query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
TODO Autogenerated method stub
private String parsePostRequest(StringTokenizer parse) { String fileRequested = parse.nextToken(); return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
JSONObject obj = new JSONObject();
public void sendResponseToClient(PrintWriter out, BufferedOutputStream dataOut, String httpResponse) throws IOException { out.println("HTTP/1.0 200 OK"); out.println("Content-length: " + httpResponse.toString().length()); out.println(); // blank line out.flush(); dataOut.write(httpResponse.toString().getBytes("UTF-8")); dataOut.flush(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "JSONObject toJson();", "JSONObject toJson();", "private static JSONObject getDataObject(JSONObject obj)\n\t{\n\t\tJSONObject objData = new JSONObject();\n\t\tobjData.put(\"data\", obj);\n\t\treturn objData;\n\t}", "void mo28373a(JSONObject jSONObject);", "void mo59932a(String str, JSONObject jSONObject);", "void mo26099a(String str, JSONObject jSONObject);", "public interface JSONAdapter {\n public JSONObject toJSONObject();\n}", "private JSONObject serializeJson(String text){\n try {\n JSONObject jsonObject = new JSONObject(text);\n return jsonObject;\n }catch (JSONException err){\n return null;\n }\n }", "void mo16412a(String str, JSONObject jSONObject);", "protected abstract JSONObject build();", "private JSON() {\n\t}", "public JSONModel() {\n jo = new JSONObject();\n }", "public void mo15090a(JSONObject jSONObject) {\n }", "private static JSONObject m91738L() {\n JSONObject jSONObject = new JSONObject();\n try {\n jSONObject.put(\"is_photo\", 1);\n } catch (JSONException unused) {\n }\n return jSONObject;\n }", "public void load(JSONObject obj);", "@Override\n\tpublic JSONObject add(JSONObject obj) {\n\t\treturn null;\n\t}", "public final JSONObject getJSONObject() {\n return jo;\n }", "static JSONObject cloneJSONObject(final JSONObject obj) {\n if (obj == null) {\n return null;\n }\n\n if (obj.length() == 0) {\n return new JSONObject();\n }\n\n // obj.names returns null if the json obj is empty.\n JSONArray nameArray = null;\n try {\n nameArray = obj.names();\n } catch (ArrayIndexOutOfBoundsException e) {\n logger.e(TAG, e.toString());\n }\n int len = (nameArray != null ? nameArray.length() : 0);\n\n String[] names = new String[len];\n for (int i = 0; i < len; i++) {\n names[i] = nameArray.optString(i);\n }\n\n try {\n return new JSONObject(obj, names);\n } catch (JSONException e) {\n logger.e(TAG, e.toString());\n return null;\n }\n }", "public JSONObject toJson() {\n }", "private JSONObject getJsonObject(Resource resource) {\n JSONParser parser = new JSONParser();\n JSONObject obj = null;\n try {\n obj = (JSONObject) parser.parse(new InputStreamReader(resource.getInputStream(), StandardCharsets.UTF_8));\n } catch (Exception e) {\n e.printStackTrace();\n }\n return obj;\n }", "public static JSONObject saveStringToJSONObject(final String json) {\n JSONObject jsonObject = null;\n try {\n jsonObject = new JSONObject(json);\n } catch (final JSONException e) {\n Log.e(TAG, \"\" + e.getMessage());\n }\n return jsonObject;\n }", "public static<T> JSONObject createJSONObject(final T t) throws JSONException {\n\t\tif(t instanceof Item) {\n\t\t\treturn Helper.createItemAsJSONObject((Item) t);\n\t\t} else if(t instanceof TriplePattern) {\n\t\t\treturn Helper.createTriplePatternJSONObject((TriplePattern) t);\n\t\t} else if(t instanceof VarBucket) {\n\t\t\treturn Helper.createVarBucketJSONObject((VarBucket) t);\n\t\t} else {\n\t\t\tSystem.err.println(\"lupos.distributed.operator.format.Helper.createJSONObject(...): Unknown type, returning an empty JSON object!\");\n\t\t\treturn new JSONObject();\n\t\t}\n\t}", "public abstract void fromJson(JSONObject jsonObject);", "JsonObject raw();", "@Override\n\tpublic JSONObject getJSONObject() {\n\t\treturn mainObj;\n\t}", "@Override\n public JSONObject getJSONObject() throws JSONException {\n return null;\n }", "protected JSONObject getJSONObject(String url) throws IOException, JSONException {\n Log.d(this.TAG, \"Loading JSON Object: \" + url);\n return new JSONObject(this.fetchJSON(url));\n }", "public abstract T zzb(JSONObject jSONObject);", "public JSON getJsonObject() {\n return jsonObject;\n }", "protected static JSONObject m3355f() {\n JSONObject jSONObject = new JSONObject();\n m3351a(jSONObject, true);\n return jSONObject;\n }", "private <T> JSONObject getJSONFromObject(T request) throws IOException, JSONException {\n ObjectMapper mapper = new ObjectMapper();\n mapper.configure(SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS, false);\n String temp = null;\n temp = mapper.writeValueAsString(request);\n JSONObject j = new JSONObject(temp);\n\n return j;\n }", "public void onSuccessInBackground(JSONObject jsonObject);", "private static JSONObject getDataObject(JSONArray arr)\n\t{\n\t\tJSONObject obj = new JSONObject();\n\t\tobj.put(\"data\", arr);\n\t\treturn obj;\n\t}", "public JsonObject toJson();", "public JSONObject toJSONObject(){\r\n\r\n JSONObject obj = new JSONObject();\r\n try {\r\n obj.put(\"lon\", this.lon);\r\n obj.put(\"addressTitle\", this.addressTitle);\r\n obj.put(\"addressStreet\", this.addressStreet);\r\n obj.put(\"category\", this.category);\r\n obj.put(\"description\", this.description);\r\n obj.put(\"name\", this.name);\r\n obj.put(\"lat\", this.lat);\r\n obj.put(\"ele\", this.ele);\r\n } catch(Exception e){\r\n // Do nothing :((\r\n }\r\n return obj;\r\n }", "static JsonObject toJsonObject(TodoItem item) {\n return Json.createObjectBuilder()\n .add(\"id\", item.getId())\n .add(\"description\", item.getDescription()==null?\"\":item.getDescription())\n .add(\"createdAt\", item.getCreatedAt().toString())\n .add(\"done\", item.isDone())\n .build();\n\n }", "Person addPerson(JSONObject person);", "private static JSONObject getDataObject(boolean val)\n\t{\n\t\tJSONObject obj = new JSONObject();\n\t\tobj.put(\"data\", val);\n\t\treturn obj;\n\t}", "public static JsonObjectBuilder object() {\n return new JsonObjectBuilder();\n }", "public JSONObject toJSONObject() {\n\t\treturn null;\n\t}", "private JSONHelper() {\r\n\t\tsuper();\r\n\t}", "@Override\n\tpublic JSONObject get(JSONObject obj) {\n\t\treturn null;\n\t}", "JSONObject mo28758a(View view);", "private static JSONObject getDataObject(int val)\n\t{\n\t\tJSONObject obj = new JSONObject();\n\t\tobj.put(\"data\", val);\n\t\treturn obj;\n\t}", "public static JSONObject getJSON(String append) {\n try {\n URL url = new URL(BASE_URL + append);\n BufferedReader reader = null;\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\n\n connection.setRequestMethod(\"GET\");\n connection.connect();\n\n InputStream stream = connection.getInputStream();\n InputStreamReader inputStreamReader = new InputStreamReader(stream);\n reader = new BufferedReader(inputStreamReader);\n\n StringBuffer buffer = new StringBuffer();\n\n String line = \"\";\n while ((line = reader.readLine()) != null) {\n buffer.append(line);\n }\n\n String json = buffer.toString();\n return new JSONObject(json);\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n } catch (JSONException e) {\n e.printStackTrace();\n return null;\n }\n }", "String parseObjectToJson(Object obj);", "@Override\n\tpublic JSONObject toJSONObject() {\n\t\treturn null;\n\t}", "@Override\n\tpublic JSONObject toJSONObject() {\n\t\treturn null;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic static<T> T createObjectFromJSON(final JSONObject json) throws JSONException {\n\t\tif(json.has(\"type\")) {\n\t\t\treturn (T) Helper.createItemFromJSON(json);\n\t\t} else if(json.has(\"triple_pattern\")) {\n\t\t\treturn (T) Helper.createTriplePatternFromJSON(json);\n\t\t} else if(json.has(\"histogram\")) {\n\t\t\treturn (T) Helper.createVarBucketFromJSON(json);\n\t\t} else {\n\t\t\tSystem.err.println(\"lupos.distributed.operator.format.Helper.createObjectFromJSON(...): Unknown type stored in JSON object, returning null!\");\n\t\t\treturn null;\n\t\t}\n\t}", "public interface JSONObjectInterface {\n\n JSONObject getContents();\n\n void setContents(JSONObject contents);\n\n void setContents(String contents);\n\n}", "private Tamagotchi tamagotchiToJson(JSONObject jsonObject) {\n String name = jsonObject.getString(\"name\");\n Tamagotchi tr = new Tamagotchi(name);\n return tr;\n }", "void generateJSON(JSONObject object, String name);", "public JSONObject save();", "public static JSONObject createJSONObject(RequirementForm req)\r\n{\r\n\tString keys[] = {\"id\", \"nameReq\",\"nameGroup\",\"startDate\",\"endDate\",\"process\",\"statusReq\", \"lateDate\", \"stage\" };\r\n \r\n\tJSONObject uc = new JSONObject(keys);\r\n uc.getObject().put(keys[0], String.valueOf(req.getId()));\r\n uc.getObject().put(keys[1], CommonUtil.convertNVLFor(req.getNameReq()));\r\n uc.getObject().put(keys[2], req.getNameGroup());\r\n uc.getObject().put(keys[3], req.getStartDate());\r\n uc.getObject().put(keys[4], req.getEndDate());\r\n uc.getObject().put(keys[5], String.valueOf(req.getProcess()));\r\n uc.getObject().put(keys[6], String.valueOf(req.getStatusReq()));\r\n uc.getObject().put(keys[7], String.valueOf(req.getLateDate()));\r\n uc.getObject().put(keys[8], String.valueOf(req.getStage()));\r\n\r\n return uc; \r\n}", "private JsonUtils() {}", "@Test(timeout = 4000)\n public void test099() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n JSONObject jSONObject1 = new JSONObject(jSONObject0);\n JSONObject jSONObject2 = jSONObject1.putOpt(\"\", jSONObject0);\n Byte.compare((byte)42, (byte)42);\n JSONObject.quote(\"\");\n Byte.toUnsignedInt((byte)42);\n JSONObject.valueToString(jSONObject2, (-1394), (-1394));\n JSONObject jSONObject3 = new JSONObject(\"{\\n\\\"java.lang.String@0000000003\\\": {},\\n\\\"java.lang.String@0000000004\\\": \\\"java.lang.Class@0000000005\\\"\\n}\");\n String string0 = \"&<uWyN63)KiOjjs&n3\";\n JSONObject jSONObject4 = null;\n try {\n jSONObject4 = new JSONObject(\"&<uWyN63)KiOjjs&n3\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // A JSONObject text must begin with '{' at character 1 of &<uWyN63)KiOjjs&n3\n //\n verifyException(\"wheel.json.JSONTokener\", e);\n }\n }", "protected JSONObject createAllOkKSON() {\r\n\t\tJSONObject jo = new JSONObject();\r\n\t\tjo.put(OnlineKeys.RESULT, \"OK\");\r\n\t\treturn jo;\r\n\t}", "public JSONModel(final String json) throws JSONException {\n jo = new JSONObject(json);\n }", "@Override\r\n\tpublic JSONObject toJSON() {\n\t\treturn null;\r\n\t}", "public static JSONObject createItemAsJSONObject(final Item item) throws JSONException {\n\t\tif (item.isVariable()) {\n\t\t\treturn Helper.createVarAsJSONObject((Variable) item);\n\t\t} else {\n\t\t\treturn Helper.createLiteralAsJSONObject((Literal) item);\n\t\t}\n\t}", "@Override\n\tpublic JSONObject update(JSONObject obj) {\n\t\treturn null;\n\t}", "public JSONObject createFinalJson(){\n JSONObject finalJson = new JSONObject();\n //Get userId from SQL lite database\n DatabaseHandler db = new DatabaseHandler(this);\n User user = db.getUser();\n //get Answer JSON object and turn it into an JSON-Array\n try {\n finalJson.put(\"user\",user);\n finalJson.put(\"survey\", survey);\n finalJson.put(\"answers\",result);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n System.out.println(finalJson.toString());\n return finalJson;\n }", "public JSONObject toJSONObject() {\r\n\t\treturn json;\r\n\t}", "public void parseJSONData(Object JSONdata){\n\n\t}", "public JSONObject toJSON(){\n\t\treturn toJSON(false, false);\n\t}", "public static JSONObject loadJSONObjectFromAsset(Context context) {\n String jsonStr = null;\n JSONObject jsonObject = null;\n try {\n //here we need context to access ASSETS --> ANDROID TUTORIAL / codeBlock - Patterns / Application.java\n InputStream is = context.getAssets().open(\"listHomeItem.json\");\n int size = is.available();\n byte[] buffer = new byte[size];\n is.read(buffer);\n is.close();\n jsonStr = new String(buffer, \"UTF-8\");\n\n jsonObject = new JSONObject(jsonStr);\n\n } catch (IOException ex) {\n ex.printStackTrace();\n return null;\n\n } catch (JSONException e) {\n e.printStackTrace();\n return null;\n }\n return jsonObject;\n }", "public static void main(String[] args) throws Exception\n {\n \n JSONArray array=new JSONArray();\n JSONObject object=new JSONObject();\n object.put(\"key1\", \"value1\");\n array.add(object);\n System.out.println(((JSONObject) (array.get(0))).get(\"key1\"));\n \n }", "public void a(JSONObject paramJSONObject) {\n }", "public JSONModel(final JSONObject json) {\n if (json == null) {\n throw new IllegalArgumentException(\"JSONObject argument is null\");\n }\n jo = json;\n }", "@Test(timeout = 4000)\n public void test101() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n JSONObject jSONObject1 = new JSONObject(jSONObject0);\n assertEquals(1, jSONObject1.length());\n \n jSONObject0.toJSONArray((JSONArray) null);\n JSONObject jSONObject2 = jSONObject0.put(\"false\", (Object) \"false\");\n boolean boolean0 = jSONObject2.getBoolean(\"false\");\n assertFalse(boolean0);\n \n String string0 = JSONObject.quote(\"true\");\n assertEquals(\"\\\"true\\\"\", string0);\n }", "public JsonObject()\n\t{\n\t\tsuper(ParserUtil.OBJECT_OPEN, ParserUtil.OBJECT_CLOSE);\n\t\tsetup();\n\t}", "public static void main(String[] args) {\n String jsonString = \"{\\\"name\\\":\\\"Pourush\\\"}\";\n JsonObject jsonObject = new JsonObject(jsonString);\n jsonObject.put(\"location\",\"Utsav\");\n System.out.println(jsonObject);\n Myitem myitem = new Myitem();\n myitem.name = \"falanadhimkana\";\n myitem.description = \"some description\";\n jsonObject.put(\"Myitem\",jsonObject.mapFrom(myitem));\n System.out.println(jsonObject);\n }", "String getJSON();", "public org.json.JSONObject getJSONObject() {\n return genClient.getJSONObject();\n }", "@Override\n\tpublic JSONObject getJSONObject() {\n\t\treturn wrapper;\n\t}", "public JSONObject toJSON() {\r\n return toJSON(new JSONObject());\r\n }", "@Nullable\n protected JSONObject fetchObjectForURL(URL url) throws IOException, JSONException {\n HttpURLConnection conn = getConnection(url);\n BufferedReader in = null;\n if (conn == null) return null;\n try {\n in = new BufferedReader(new InputStreamReader(conn.getInputStream()));\n StringBuilder buffer = new StringBuilder();\n String line;\n while ((line = in.readLine()) != null) {\n buffer.append(line);\n }\n return new JSONObject(buffer.toString());\n } finally {\n if (in != null) try { in.close(); } catch (IOException ex) {\n Log.e(\"aqx1010\", \"can not close input stream\", ex);\n }\n }\n\n }", "protected JSONObject getJsonRepresentation() throws Exception {\r\n\r\n JSONObject jsonObj = new JSONObject();\r\n jsonObj.put(\"note\", note);\r\n return jsonObj;\r\n }", "public native Object parse( Object json );", "private JSONObject toJSON() throws JSONException {\n JSONObject jo = new JSONObject();\n jo.put(\"d\", description);\n jo.put(\"t\", timestamp);\n return jo;\n }", "protected JSONObject getJsonRepresentation() throws Exception {\n\n JSONObject jsonObj = new JSONObject();\n jsonObj.put(\"name\", getName());\n return jsonObj;\n }", "private JsonUtils() { }", "public static JSONObject readJsonObject(HttpServletRequest request) {\n StringBuffer sb = new StringBuffer();\n String line = null;\n try {\n\t //get the body information from request which is a kind JSON file.\n BufferedReader reader = request.getReader(); \n while ((line = reader.readLine()) != null) {\n \t sb.append(line);\n }\n reader.close();\n return new JSONObject(sb.toString());\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "public JSONObject getInfo() throws Exception;", "public ChatMember(JsonObject json) {\n\n }", "String getJson();", "String getJson();", "String getJson();", "public JsonObject toJson(){\n JsonObject json = new JsonObject();\n if(username != null){\n json.addProperty(\"username\" , username);\n }\n json.addProperty(\"title\", title);\n json.addProperty(\"description\", description);\n json.addProperty(\"date\", date);\n json.addProperty(\"alarm\", alarm);\n json.addProperty(\"alert_before\", alert_before);\n json.addProperty(\"location\", location);\n\n return json;\n }", "public JSONObject toJSON() {\n return toJSON(true);\n }", "public static JSONObject strToJson(String jsonstring) {\n JSONParser parser = new JSONParser();\n JSONObject json = null;\n try {\n json = (JSONObject) parser.parse(jsonstring);\n } catch (ParseException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return json;\n }", "public static Json getInstance() {\n\t\treturn instance;\n\t}", "public JSONUtils() {\n\t\tsuper();\n\t}", "public static JSONObject constructEmpyTable(JSONObject obj) {\n JSONObject data = new JSONObject();\n data.put(\"repo\", obj.get(\"repo_name\")); // name of the repository associated with this file\n data.put(\"classes\", new JSONObject());\n return data;\n }", "protected abstract Object buildJsonObject(R response);", "public JSONObject toJSON() throws JSONException {\n JSONObject json = new JSONObject();\n json.put(\"id\", id);\n json.put(\"name\", name);\n return json;\n }", "public JsonObject getObject() {\n return obj;\n }", "public final static JSONObject createVarAsJSONObject(final Variable var) throws JSONException {\n\t\tfinal JSONObject varJson = new JSONObject();\n\t\tvarJson.put(\"type\", \"variable\");\n\t\tvarJson.put(\"name\", var.getName());\n\t\treturn varJson;\n\t}", "public String toJSON() throws JSONException;", "public JSONObject mo56289a_() {\n JSONObject jSONObject = new JSONObject();\n try {\n jSONObject.put(\"api_endpoint\", mo56263a());\n } catch (JSONException unused) {\n }\n f2302w.mo56245a(jSONObject, \"timestamp\", mo56265c());\n f2303x.mo56245a(jSONObject, \"cart\", mo56278d());\n return jSONObject;\n }", "public static JSONBuilder newInstance(){\n return new JSONBuilder();\n }" ]
[ "0.71375746", "0.71375746", "0.7064292", "0.6938273", "0.6638203", "0.6622999", "0.6517277", "0.64292043", "0.6409292", "0.6391049", "0.6353835", "0.633704", "0.63189954", "0.630456", "0.6293574", "0.62595946", "0.6254293", "0.62520325", "0.624725", "0.624315", "0.623574", "0.62198853", "0.6205165", "0.6187505", "0.6152057", "0.61488634", "0.61470085", "0.6137999", "0.61168003", "0.6097686", "0.609543", "0.60902524", "0.6054777", "0.6043588", "0.6042267", "0.60413116", "0.6033169", "0.6032228", "0.6014627", "0.6009572", "0.60048664", "0.600378", "0.6000654", "0.5996578", "0.59825516", "0.5980121", "0.59679586", "0.59679586", "0.5946583", "0.5926261", "0.59253776", "0.59223354", "0.590428", "0.590013", "0.58850354", "0.5829475", "0.58289117", "0.582823", "0.5822985", "0.5818694", "0.58003193", "0.5798451", "0.5798281", "0.57908756", "0.57882714", "0.5773606", "0.5772274", "0.5770498", "0.57567316", "0.57551134", "0.57522035", "0.5736752", "0.57295656", "0.5713062", "0.5710825", "0.56986195", "0.567877", "0.5666212", "0.5664182", "0.5654387", "0.5647492", "0.56391054", "0.5636196", "0.5635145", "0.56230456", "0.56202936", "0.56202936", "0.56202936", "0.5619399", "0.5613612", "0.5612618", "0.5602617", "0.5599136", "0.55989534", "0.5597496", "0.55941206", "0.55856645", "0.5583154", "0.5569509", "0.5561528", "0.5561317" ]
0.0
-1
Constructs a SandTile with its top left point at the given x and y.
public SandTile(float x, float y) { super(x, y, ImageLibrary.get("sand_tile")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TileFloor(int x, int y)\r\n {\r\n random = new Random(12345);\r\n ROWS = DEFAULT_ROWS;\r\n COLUMNS= DEFAULT_COLUMNS;\r\n this.x = x;\r\n this.y = y;\r\n }", "public Tile(final int x, final int y) {\n this.x = x;\n this.y = y;\n }", "public Tile(int x, int y, String type) {\n\tthis.x = x;\n\tthis.y = y;\n\tthis.type = type;\n\tboundingShape = null;\n }", "public Tile(int x, int y){\n this.gameX = x;\n this.gameY = y;\n state = State.OPEN;\n this.color = this.state.getColor();\n }", "public PondTile(int x, int y) {\n super(x, y);\n }", "public TileFloor( int x, int y, int rows, int columns)\r\n {\r\n random = new Random(12345);\r\n ROWS = rows;\r\n COLUMNS= columns;\r\n this.x = x;\r\n this.y = y;\r\n }", "public Tile(int imageCoordinate, int x, int y) {\n this.imageCoordinate = imageCoordinate;\n this.x = x;\n this.y = y;\n }", "public GameGridBuilder startPoint(int x, int y) {\n startColumnIndex = x;\n startRowIndex = y;\n columnIndex = x;\n rowIndex = y;\n tileCoordinateMap.put(new Coordinate(columnIndex, rowIndex), newInstanceOf(followTileType));\n return this;\n }", "Block create(int xpos, int ypos);", "public FloorCrate(Crate r, int x, int y){\r\n super(null, \"You shouldn't be reading this.\", x, y);\r\n addAll(r);\r\n description = isEmpty() ? new Description(\"tile\", \"There is nothing interesting here.\") : \r\n get(size()-1).description;\r\n }", "public Stone(int x, int y, int width, int height) {\n\t\tsuper(x, y, width, height);\n\t\t\n\t}", "public Tile createTile(int i, int x, int y) {\n\t\tif (Constants.INTERACTIVE_TILES.contains(\" \" + i + \" \")) {\n\t\t\treturn new InteractiveTile(i, x, y);\n\t\t} else if (Constants.ITEM_IDS.contains(\" \" + i + \" \")\n\t\t\t\t|| Constants.IOBJECTS_IDS.contains(\" \" + i + \" \")\n\t\t\t\t|| Constants.CREATURE_IDS.contains(\" \" + i + \" \")) {\n\t\t\treturn new Tile(0, x, y);\n\t\t} else {\n\n\t\t\treturn new Tile(i, x, y);\n\t\t}\n\t}", "@Override\n\tpublic AbstractTileOLD createTile(Frame frame, Point pos, Point sourcePos) {\n\t\t// TileOLD t = new TileOLD(frame, pos.x, pos.y, new ZoneSheet(frame,\n\t\t// ZoneSheet.TILE_SHEET), sourcePos.x, sourcePos.y);\n\t\t// t.setData((TileDataOLD) data[sourcePos.x][sourcePos.y]);\n\t\treturn null;\n\t}", "public Tile(int row, int column){\n this.row = row;\n this.column = column;\n this.piece = null;\n }", "public DoorTile(int x, int y) {\r\n\t\tsuper(\"resources/door.gif\", x, y);\r\n\t}", "public static SquareCoordinate makeCoordinate(int x, int y)\n {\n \treturn new SquareCoordinate(x, y);\n }", "public Point getTileCoordinates(int x, int y) {\n int tileWidth = this.board.getTileSet().getTileWidth() + 1;\n int tileHeight = this.board.getTileSet().getTileHeight() + 1;\n\n int tileX = Math.max(0, Math.min(x / tileWidth, this.board.getWidth() - 1));\n int tileY = Math.max(0, Math.min(y / tileHeight, this.board.getHeight() - 1));\n\n return new Point(tileX, tileY);\n }", "public FloorCrate(int x, int y){\r\n super(null, \"There is nothing interesting here.\", x, y);\r\n }", "public BlackTile(float posX, float posY, float posZ, float height, float width) {\n super(new Box3D(posX, posY, posZ, height, width, 1f));\n this.setTexture(\"black_tile\");\n this.canWalkOver = true;\n }", "public void select(int x, int y)\r\n {\r\n _ausgewahlt = new Tile(x * 64, y * 64, 64, 64,\r\n TileType.EditorAusgewahlt);\r\n }", "public Ground(int x, int y)\n {\n // initialise instance variables\n xleft= x;\n ybottom= y;\n \n }", "public Cell(int x, int y){\n\t\tif((x<0 || x>7) || (y<0 || y>7)){\n\t\t\tSystem.out.println(\"The provided coordinates for the cell are out of range.\");\n\t\t\treturn;\n\t\t}\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.placedPiece = null;\n\t}", "private Point getTileCoordinates(int x, int y)\n {\n int tileWidth = this.tileset.getTileWidth() + 1;\n int tileHeight = this.tileset.getTileHeight() + 1;\n int tileCount = this.tileset.getTileCount();\n int rows = tileCount / TILES_PER_ROW + \n (tileCount % TILES_PER_ROW > 0 ? 1 : 0);\n \n int tileX = Math.max(0, Math.min(x / tileWidth, TILES_PER_ROW - 1));\n int tileY = Math.max(0, Math.min(y / tileHeight, rows - 1));\n \n return new Point(tileX, tileY);\n }", "public FloorCrate(ArrayList<Item> ary, int x, int y){\r\n super(null, \"You shouldn't be reading this.\", x, y);\r\n addAll(ary);\r\n description = isEmpty() ? new Description(\"tile\", \"There is nothing interesting here.\") :\r\n get(size()-1).description;\r\n }", "public Snowman(int theX, int theY)\n { x = theX;\n y = theY;\n }", "public void setTileX(int x) {\n\t\ttileX = x;\n\t}", "public Walker(Map map, int x, int y) {\n // set attributes\n this.map = map;\n this.x = x;\n this.y = y;\n\n // set direction\n changeDirection();\n\n // make spawning tile ground\n this.map.tiles[this.y][this.x].add(StaticTile.FLOOR_1);\n }", "public Entity(int x, int y){\n \t\tlocation = new Point(x,y);\n \t\twidth = 0;\n\t\theight = 0;\n\t\timage = null;\n\t\t\n\t\tvisible = false;\n \t}", "public Tile getTile(int x, int y) {\n\t\tif (x < 0 || x >= (this.width / Tile.WIDTH) || y < 0 || y >= (this.height / Tile.HEIGHT)) {\n//\t\t\tSystem.out.println(x + \" \" + y + \" \" + \"comes heere\");\n\t\t\treturn VoidTiled.getInstance();\n\t\t}\n\t\treturn tiles[x + y * (this.width / Tile.WIDTH)];\n\t}", "public Cell(int x,int y){\r\n this.x = x;\r\n this.y = y;\r\n level = 0;\r\n occupiedBy = null;\r\n }", "public InaccessibleTile(int x, int y) {\n super(true, true, true, true, x, y);\n }", "public Place(int x, int y){\n this.x=x;\n this.y=y;\n isFull=false;\n }", "public wall() { //default constructor makes a 10x10 square extending right and down from the pixel located at 5,5\r\n x = 5;\r\n y = 5;\r\n height = 10;\r\n width = 10;\r\n }", "public GridPosition(int x, int y) {\n this.posX = x;\n this.posY = y;\n }", "@Override\n public SquareTile getTile(int x, int y) {\n // Check that the location is inside the grid\n if (x < 0 || x >= width || y < 0 || y >= height)\n return null;\n\n return tiles[x * width + y];\n }", "public Tile getTile(int x, int y) {\n\t\tif (x < 0 || x >= width || y < 0 || y >= height) {\n\t\t\treturn Tile.voidTile;\n\t\t}\n\t\treturn tiles[x + y * width];\n\t}", "Coordinate createCoordinate();", "private Tile getTile(int x, int y) {\n\t\tif (x < 0 || x > width || y < 0 || y > height) return Tile.VOID;\n\t\treturn Tile.tiles[tiles[x + y * width]];\n\t}", "Tile getPosition();", "public Tile(int x, int y, char type) {\n\t\tthis.tileX = x*Tile.TILE_SIDE;\n\t\tthis.tileY = LevelScreen.INFO_BAR_HEIGHT+y*Tile.TILE_SIDE;\n\t\tthis.type = type;\n\t\tthis.hasDefenseObject = false;\n\t\tthis.currentConstruct = null;\n\n\t\tif (type == TOWER_TERRAIN) {\n\t\t\ttileImage = Assets.tileEmptyTower;\n\t\t} else if (type == PATH) {\n\t\t\ttileImage = Assets.tilePath;\n\t\t} else if (type == MONSTER_GOAL) {\n\t\t\ttileImage = Assets.tileGoal;\n\t\t} else if (type == MONSTER_ENTRANCE) {\n\t\t\ttileImage = Assets.tileEntrance;\n\t\t}\n\t}", "public Shark(int x,int y) {\n\t\tsetImage(new Image(\"/shark.png\"));\n\t\tsetLocationX(x);\n\t\tsetLocationY(y);\n\t}", "public Position(int x, int y) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}", "public Position(int x, int y) {\n this.x = x;\n this.y = y;\n }", "protected void createStartSnake() {\n int screenXCenter = maxX / 2; //Cast just in case we have an odd number\n int screenYCenter = maxY / 2; //Cast just in case we have an odd number\n\n snakeSquares[screenXCenter][screenYCenter] = 1;\n snakeSquares[screenXCenter + 1][screenYCenter] = 2;\n snakeSquares[screenXCenter + 2][screenYCenter] = 3;\n\n snakeHeadX = screenXCenter;\n snakeHeadY = screenYCenter;\n\n snakeSize = 3;\n\n currentHeading = DIRECTION_LEFT;\n lastHeading = DIRECTION_LEFT;\n\n justAteMustGrowThisMuch = 0;\n }", "public Tile(int xPos, int yPos, int zPos, int colour) {\n this.xPos = xPos;\n this.yPos = yPos;\n this.zPos = zPos;\n occupied = 0;\n setWidth(50);\n setHeight(50);\n if ((colour % 2) == 0) {\n setFill(Color.YELLOW);\n } else {\n setFill(Color.GREEN);\n }\n }", "public abstract Tile getTileAt(int x, int y);", "public Tile(int type, int x, int y) {\n\t\tthis.type=type;\n\t\tthis.coordinates= new int[2];\n\t\tthis.coordinates[0]=x;\n\t\tthis.coordinates[1]=y;\n\t\tif(type==1){\n\t\t\ttileImage= new ImageIcon(this.getClass().getResource(\"scenery.png\")).getImage();\n\t\t}\n\t\telse if(type==2){\n\t\t\ttileImage= new ImageIcon(this.getClass().getResource(\"path.png\")).getImage();\n\t\t}\n\t\telse if(type==3){\n\t\t\ttileImage= new ImageIcon(this.getClass().getResource(\"tower.png\")).getImage();\n\t\t}\n\t}", "public Entity( int x, int y){\n this.x = x;\n this.y = y;\n }", "public Tile(int row, int column, Piece piece) {\n this.row = row;\n this.column = column;\n this.piece = piece;\n this.setBorder(javax.swing.BorderFactory.createEmptyBorder());\n }", "public Piece(int a_row, int a_col)\n {\n this.tileLocation = Pair.create(a_row,a_col);\n }", "public Tile (int pos, int type) { \r\n\t\tthis.tilePos = pos;\r\n\t\tthis.tileType = type;\r\n\t}", "public Point(int x,int y){\r\n\t\tthis.pos = x;\r\n\t\tthis.id = y;\r\n\t}", "public TiledWraparound(Spatial tile)\r\n {\r\n super(tile.getTopRight());\r\n final int PAD = 1;\r\n int tiles = PAD*2+1;\r\n this.tile = tile;\r\n float BLx = -tr.getX(), BLy = -tr.getY();\r\n offsets = new Location[tiles*tiles];\r\n for(int i=0; i<tiles; i++)\r\n {\r\n for(int j=0; j<tiles; j++)\r\n {\r\n offsets[i*tiles+j] = new Location.Location2D(BLx+tr.getX()*i, BLy+tr.getY()*j);\r\n }\r\n }\r\n }", "public static Tile of(final int originalPos) {\n return new Tile(originalPos);\n }", "public Cell(final int indX, final int indY, int x, int y) {\r\n\t\tthis.stage = GameScreen.stage;\r\n\t\tthis.indX = indX;\r\n\t\tthis.indY = indY;\r\n\r\n\t\tthis.img = new Image(Assets.manager.get(Assets.SQUARE_TXT, Texture.class));\r\n\t\timg.setX(x);\r\n\t\timg.setY(y);\r\n\t\tstage.addActor(img);\r\n\t\timg.addListener(new InputListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {\r\n\t\t\t\t// Call gameLogic to find where piece belongs and check game state\r\n\t\t\t\tGameScreen.game.placePiece(indX, indY);\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t});\r\n\t}", "protected ElevationTile createTile(TileKey key)\n {\n Level level = this.levels.getLevel(key.getLevelNumber());\n\n // Compute the tile's SW lat/lon based on its row/col in the level's data set.\n Angle dLat = level.getTileDelta().getLatitude();\n Angle dLon = level.getTileDelta().getLongitude();\n Angle latOrigin = this.levels.getTileOrigin().getLatitude();\n Angle lonOrigin = this.levels.getTileOrigin().getLongitude();\n\n Angle minLatitude = ElevationTile.computeRowLatitude(key.getRow(), dLat, latOrigin);\n Angle minLongitude = ElevationTile.computeColumnLongitude(key.getColumn(), dLon, lonOrigin);\n\n Sector tileSector = new Sector(minLatitude, minLatitude.add(dLat), minLongitude, minLongitude.add(dLon));\n\n return new ElevationTile(tileSector, level, key.getRow(), key.getColumn());\n }", "private void createSnake() {\r\n int halfWidth = gridWidth / 2;\r\n int halfHeight = gridHeight / 2;\r\n \r\n snake = new Snake(new Coordinates(halfWidth, halfHeight), 5, Direction.WEST);\r\n }", "public T setPoint(float x, float y) {\n this.startX = x;\n this.startY = y;\n return self();\n }", "public Position(int x, int y) {\n this.x = x;\n this.y = y;\n }", "public BoardCell(int x, int y){\n xCor=x;\n yCor=y;\n }", "private Tile getTileAt(int x, int y)\n {\n int tileAt = y * TILES_PER_ROW + x;\n \n if (tileAt >= tileset.getTileCount())\n {\n return null;\n }\n else \n {\n return tileset.getTile(tileAt);\n }\n }", "public Monster(int x,int y){\n\tposition[0] = x; //x position\n\tposition[1] = y; //y position\n }", "Stone create();", "public Tile getTile(int x, int y){\n\t\tif(x < 0 || y < 0 || x >= width || y >= height){\r\n\t\t\treturn Tile.grassTile;\r\n\t\t}\r\n\t\t\r\n\t\t//tiles[x][y] give us the id and the tiles[id] is the texture\r\n\t\tTile t = Tile.tiles[tiles[x][y]]; \r\n\t\tif(t == null){\r\n\t\t\t//If you try to access undefined tile index, return dirt tile as default\r\n\t\t\treturn Tile.dirtTile; \r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn t;\r\n\t\t}\r\n\t}", "public UISnake(int startW, int startH) {\n\t\tsuper(startW, startH);\n\t\thead = new HeadTile(startW, startH, direction, this);\n\t\tlastTile = new BodyTile(800, 800, this);\n\t}", "public WallTile()\n\t{\n\t\t\n\t}", "public Critter(int x, int y){\n\t\tthis.x_location = x;\n\t\tthis.y_location = y;\n\t\tthis.wrap();\n\t}", "public FloorCrate(Item i, int x, int y){\r\n super(null, \"You shouldn't be reading this.\", x, y);\r\n push(i);\r\n }", "public Coordinate() { row = col = -1; }", "public SubCell(int x, int y) {\n this.x = Math.floorMod(x, COLUMNS);\n this.y = Math.floorMod(y, ROWS);\n }", "public NonPlayerShip(int x, int y) {\n\t\tsuper(x, y);\n\t\tthis.r = new Random();\n\t\tthis.missileLauncher = new MissileLauncher(x, y);\n\t\tthis.setMissileCount(MAX_MISSILES); // Set number of missiles NPS starts with.\n\t\tthis.size = (r.nextInt(2) + 1) * 10; // Random integer, either 10 or 20\n\t\tthis.setColor(ColorUtil.BLACK); // Set the Color of NPS to Black.\t\t\n\t\tthis.getMissileLauncher().setDirection(this.getDirection()); // Set the direction of the missile launcher.\n\t}", "public TileEntity a_()\n {\n return new TileMarker();\n }", "public Point(int x, int y) {\n\t\tsuper();\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}", "public Tile getTile(int x, int y) {\r\n assert (tiles != null);\r\n \r\n if (x < 0 || y < 0 || x >= width || y >= height) {\r\n return Tile.floorTile;\r\n }\r\n \r\n Tile t = Tile.tiles[tiles[x][y]];\r\n if (t == null) {\r\n return Tile.floorTile;\r\n }\r\n return t;\r\n }", "public Tile(GameLogic logic, PieceService pieceservice, int x, int y) {\n\n this.x = x;\n this.y = y;\n this.pieces = new ArrayList<>();\n\n setWidth(TakApp.TILE_SIZE);\n setHeight(TakApp.TILE_SIZE);\n \n relocate(x * TakApp.TILE_SIZE, y * TakApp.TILE_SIZE);\n Image tilebg = new Image(getClass().getResourceAsStream(\"/images/tile.jpg\"));\n ImagePattern imagePattern = new ImagePattern(tilebg);\n setFill(imagePattern);\n \n if (this.hasPieces() == false) {\n setOnMousePressed(e -> {\n String pieceColor = logic.checkTurn();\n Piece piece = pieceservice.makePiece(logic, pieceColor, x, y);\n if (piece != null) {\n pieceservice.setPiece(piece, x, y);\n this.pieces.add(piece);\n }\n });\n } else if (this.hasPieces() == true) {\n \n setOnMousePressed(e -> {\n this.oldX = this.getXcoordinate();\n this.oldY = this.getYcoordinate();\n });\n\n setOnMouseDragged(e -> {\n relocate(e.getSceneX(), e.getSceneY());\n });\n \n setOnMouseReleased(e -> {\n \n double mouseX = e.getSceneX();\n double mouseY = e.getSceneY();\n\n int newX = (int) Math.floor(mouseX / 100.0);\n int newY = (int) Math.floor(mouseY / 100.0);\n \n boolean validMove = logic.isValidMove(oldX, oldY, newX, newY);\n \n if (validMove) {\n pieceservice.removePiece(this.pieces.get(this.pieces.size() - 1), oldX, oldY);\n pieceservice.setPiece(this.pieces.get(this.pieces.size() - 1), newX, newY);\n } else {\n pieceservice.setPiece(this.pieces.get(this.pieces.size() - 1), oldX, oldY);\n }\n });\n } \n }", "public Point(int x, int y) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}", "public Point(int x, int y) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}", "public Point(int x, int y) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}", "private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }", "public Coordinate(int x,int y)\n {\n this.x = x;\n this.y = y;\n }", "public static Vector2 LevelCoordinatesToScreen(int x, int y){\n\t\tVector2 screenPos = new Vector2();\n\t\tfloat screenX = (X_OFFSET + x)*TILE_SIZE;\n\t\tfloat screenY = (Y_OFFSET + y)*TILE_SIZE;\n\t\tscreenPos.x = screenX;\n\t\tscreenPos.y = screenY;\n\t\treturn screenPos;\n\t}", "private SquareCoordinate(int x, int y)\n {\n \tthis.x = x;\n \tthis.y = y;\n }", "public Point(int x, int y) {\r\n\t\tthis.x = x;\tthis.y = y;\r\n\t}", "public Point(int x, int y){\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}", "public Bomb(int x, int y) {\n\t\tsuper(x, y);\n\t\tthis.state = new Spawned();\n\t\tthis.visualStatus = new SimpleIntegerProperty(0);\n\t}", "public boolean tileSand(float xTile, float yTile)\r\n/* 217: */ {\r\n/* 218:241 */ return (tileInBounds(xTile, yTile)) && (this.sand[((int)xTile)][((int)yTile)] != 0);\r\n/* 219: */ }", "public Pillar(int x, int y)\n {\n // initialise instance variables\n xleft= x;\n ybottom= y;\n }", "Position createPosition();", "public BodyPart(int xcoord, int ycoord, int tileSize) {\r\n\t\tthis.xcoord = xcoord;\r\n\t\tthis.ycoord = ycoord;\r\n\t\twidth = tileSize;\r\n\t\theight = tileSize;\r\n\t}", "public Player(int x, int y) {\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t\tthis.w = SpaceInvaderCreatures.spaceship.getWidth();\r\n\t\tthis.h = SpaceInvaderCreatures.spaceship.getHeight();\r\n\t}", "public static final Vector<JARWall> createFloor( int x, int y, int width, JARImage imgWall, JARImage imgTopping )\n {\n Vector<JARWall> ret = new Vector<JARWall>();\n\n int drawX = x;\n\n //browse width\n for ( int i = 0; i < width; ++i )\n {\n //add wall\n ret.add( new JARWall( drawX, y, imgWall, CollisionType.EColliding, DrawingLayer.EBeforePlayer ) );\n\n //add topping if specified\n if ( imgTopping != null )\n {\n ret.add( new JARWall( drawX, y - 64, imgTopping, CollisionType.ENonColliding, DrawingLayer.EBeforePlayer ) );\n }\n\n //increase drawing location\n drawX += 128;\n }\n\n return ret;\n }", "public MarsTile(Point position) {\n\t\tthis.weight = 0;\n\t\tthis.position = position;\n\t}", "Point(int x_, int y_){\n x = x_;\n y = y_;\n }", "@Override\n public Map put(Tile tile, int left, int top) {\n // TODO if useful\n int index = getPosition(left, top);\n while (this.tiles.size() <= index) {\n this.tiles.add(null);\n }\n this.tiles.set(index, tile);\n return this;\n }", "public Point(int y, int x)\n\t\t{\n\t\t\tthis.y = y;\n\t\t\tthis.x = x;\n\t\t}", "public Entity(float x, float y) {\n this.position = new Point(0,0);\n realX = x;\n realY = y;\n determinePosition();\n }", "public Node(int x, int y) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\t//all is false at first\n\t\tthis.upBlock = false;\n\t\tthis.leftBlock = false;\n\t\tthis.rightBlock = false;\n\t\tthis.downBlock = false;\n\t\tthis.isRobot = false;\n\t\tthis.isFlag = false;\n\t}", "public pixelNode(int x, int y) {\r\n this.parent = null;\r\n this.x = x;\r\n this.y = y;\r\n this.terrain = null;\r\n this.elevation = 0.0;\r\n this.speed = 0.0f;\r\n double distance = 0;\r\n this.cost = Double.POSITIVE_INFINITY; //Initially assigned as infinity\r\n }", "Point createPoint();", "void placeTile(Tile tile, int x, int y, SurfaceEntityType type, Building building) {\r\n\t\tfor (int a = x; a < x + tile.width; a++) {\r\n\t\t\tfor (int b = y; b > y - tile.height; b--) {\r\n\t\t\t\tSurfaceEntity se = new SurfaceEntity();\r\n\t\t\t\tse.type = type;\r\n\t\t\t\tse.virtualRow = y - b;\r\n\t\t\t\tse.virtualColumn = a - x;\r\n\t\t\t\tse.tile = tile;\r\n\t\t\t\tse.tile.alpha = alpha;\r\n\t\t\t\tse.building = building;\r\n\t\t\t\tif (type != SurfaceEntityType.BASE) {\r\n\t\t\t\t\trenderer.surface.buildingmap.put(Location.of(a, b), se);\r\n\t\t\t\t} else {\r\n\t\t\t\t\trenderer.surface.basemap.put(Location.of(a, b), se);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}" ]
[ "0.67232627", "0.658383", "0.62687236", "0.6237549", "0.61946815", "0.616293", "0.6124062", "0.60213757", "0.5937195", "0.5912261", "0.589072", "0.5885573", "0.5885357", "0.58851093", "0.58154356", "0.5752829", "0.5679711", "0.56747466", "0.56716114", "0.56668544", "0.566418", "0.56572425", "0.56469965", "0.56421447", "0.56243235", "0.5620344", "0.56155616", "0.55982083", "0.5595399", "0.55871296", "0.5586483", "0.5568179", "0.5565479", "0.5562751", "0.55516243", "0.5548028", "0.5543142", "0.55389994", "0.5533953", "0.5517376", "0.55165696", "0.5515733", "0.55039054", "0.5503868", "0.5489079", "0.54822874", "0.5469605", "0.54647017", "0.54640096", "0.5461005", "0.5457894", "0.5449854", "0.54476714", "0.5446348", "0.5446266", "0.5441077", "0.54358804", "0.54327726", "0.54287326", "0.5407127", "0.54030126", "0.5402526", "0.53918594", "0.53855103", "0.5382698", "0.53752166", "0.5370499", "0.5360674", "0.5357839", "0.5357643", "0.53476316", "0.53320533", "0.53235066", "0.53161895", "0.53096926", "0.5309318", "0.5309318", "0.5309318", "0.53061056", "0.5294558", "0.52880245", "0.5284434", "0.5277575", "0.5271946", "0.52681595", "0.52651376", "0.52640986", "0.5262154", "0.5260795", "0.52531624", "0.525238", "0.5247097", "0.5245612", "0.52446175", "0.5242981", "0.52429783", "0.52408904", "0.5239212", "0.52312016", "0.52301764" ]
0.7432732
0
Renders the specified duration. If time is negative it is rendered as "?".
public static String renderDuration(long durationInMillisecondsOrNeg) { if (durationInMillisecondsOrNeg < 0) { return "?"; } if (durationInMillisecondsOrNeg < 1000) { return "< " + render(1, "sec"); } long durationInSeconds = (durationInMillisecondsOrNeg + 500) / 1000; if (durationInSeconds < 100) { return render(durationInSeconds, "sec"); } long durationInMinutes = (durationInSeconds + 30) / 60; if (durationInMinutes < 60) { return render(durationInMinutes, "min"); } long minutes = durationInMinutes % 60; long hours = durationInMinutes / 60; if (minutes > 0) { return render(hours, "h") + " " + render(minutes, "min"); } else { return render(hours, "h"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setDuration(java.lang.String duration);", "public String render()\n {\n if(getHungerCountdown() <= 0 && getHungerCountdown() > -5){\n return \"s\";\n }\n else if (getHungerCountdown() > 0){\n return \"S\";\n }\n else{\n return null;\n }\n }", "public void setDuration(int duration){\n this.duration = duration;\n }", "public void setDuration(String duration) {\n this.duration = duration;\n }", "public void setDuration(String duration) {\n this.duration = duration;\n }", "java.lang.String getDuration();", "public static void setTextDuration(TextView textView, String duration) {\n if (textView == null || duration == null || duration.isEmpty()) {\n return;\n }\n try {\n int min = (int) Double.parseDouble(duration) + 1;\n String minutes = Integer.toString(min % 60);\n minutes = minutes.length() == 1 ? \"0\" + minutes : minutes;\n textView.setText((min / 60) + \":\" + minutes);\n } catch (Exception e) {\n LLog.e(TAG, \"Error setTextDuration \" + e.toString());\n textView.setText(\" - \");\n }\n }", "@SuppressLint(\"DefaultLocale\")\n public static String formatDuration(int duration) {\n duration /= 1000; // milliseconds into seconds\n int minute = duration / 60;\n int hour = minute / 60;\n minute %= 60;\n int second = duration % 60;\n if (hour != 0)\n return String.format(\"%2d:%02d:%02d\", hour, minute, second);\n else\n return String.format(\"%02d:%02d\", minute, second);\n }", "public void setDuration(int duration) {\n this.duration = duration;\n }", "public void setDuration(int duration) {\n this.duration = duration;\n }", "public void setDuration(float duration) {\n\t\tthis.duration = duration;\n\t}", "public void setDuration(int duration)\r\n\t{\r\n\t\tif (duration < 0) { throw new IllegalArgumentException(\"duration muss groesser als 0 sein\"); }\r\n\t\tthis.duration = duration;\r\n\t}", "public void setDuration(Integer duration) {\n this.duration = duration;\n }", "void setDuration(int duration);", "public void setDuration(Integer duration) {\n this.duration = duration;\n }", "public void setDuration( Long duration );", "public void setDuration(Number duration) {\n this.duration = duration;\n }", "public void setDuration(long duration) {\n this.duration = duration;\n }", "public void setDuration(long duration) {\n this.duration = duration;\n }", "public void setDuration(long duration) {\n this.duration = duration;\n }", "public void setDuration(Long duration)\r\n {\r\n this.duration = duration;\r\n }", "public void setDuration(Duration duration)\r\n {\r\n m_duration = duration;\r\n }", "public void setDuration(int duration) {\n mDuration = duration;\n }", "public void setDuration (int sec) {\n String hoursText = \"\", minutesText = \"\", synthez = \"\";\n\n if (sec < 60) {\n synthez = \"less than one minute\";\n synthez = String.format(TEMPLATE, synthez);\n setText(Html.fromHtml(synthez)+\".\", BufferType.SPANNABLE);\n return;\n }\n\n if (sec >= 3600) {\n hoursText += sec/3600+\" Hour\";\n if (sec/3600 > 1) {\n hoursText+=\"s\";\n }\n hoursText+=\" \";\n }\n if (((sec%3600)/ 60) > 0) {\n minutesText+= ((sec%3600)/ 60)+ \" minute\";\n if (((sec%3600)/ 60 ) > 1) {\n minutesText+=\"s\";\n }\n minutesText+=\" \";\n }\n synthez = hoursText+minutesText;\n synthez = String.format(TEMPLATE, synthez);\n setText(Html.fromHtml(synthez)+\".\", BufferType.SPANNABLE);\n }", "public void setDuration(int val){this.duration = val;}", "public String duration(){\n long duration =beginTime.getTime()-endTime.getTime();\n long diffMinutes = duration / (60 * 1000) % 60;\n long diffHours = duration / (60 * 60 * 1000);\n if(diffHours ==0)\n return -1*diffMinutes + \" minutes\";\n else\n return \" \"+-1*diffHours+\":\"+ -1*diffMinutes +\"min\";\n }", "private void updateDuration() {\n duration = ((double) endTimeCalendar.getTime().getTime() - (startTimeCalendar.getTime().getTime())) / (1000 * 60 * 60.0);\n int hour = (int) duration;\n String hourString = dfHour.format(hour);\n int minute = (int) Math.round((duration - hour) * 60);\n String minuteString = dfMinute.format(minute);\n String textToPut = \"duration: \" + hourString + \" hours \" + minuteString + \" minutes\";\n eventDuration.setText(textToPut);\n }", "public void setLength(int duration){\n\t\tlength = duration;\n\t}", "private void showTime()\n {\n showText(\"Time: \" + time, 700, 25);\n }", "public void setDuration(int duration) {\n if (this.duration != duration) {\n this.duration = duration;\n }\n }", "public String getDuration() {\n return this.duration;\n }", "public int getDuration() {return this.duration;}", "public final String durationToString(final double duration) {\n String output = \"(\";\n if ( duration < this.MINUTE ) {\n output = output + duration + \" secs)\";\n } else if ( (this.MINUTE <= duration) && (duration < this.HOUR) ) {\n output = output + (duration / this.MINUTE) + \" mins)\";\n } else if ( this.HOUR <= duration ) {\n output = output + (duration / this.HOUR) + \" hrs)\";\n }\n\n return output;\n }", "Posn getDuration();", "public static String getFriendlyTime(long duration) {\n final StringBuilder sb = new StringBuilder();\n\n long months = TimeUnit.MILLISECONDS.toDays(duration);\n if (months >= 30) {\n months = months / 30;\n duration -= TimeUnit.DAYS.toMillis(months * 30);\n } else {\n months = 0;\n }\n\n final long years = months / 12;\n if (years > 0) {\n months -= Math.floor(years * 12);\n duration -= TimeUnit.DAYS.toMillis(years * 365);\n }\n\n final long days = TimeUnit.MILLISECONDS.toDays(duration);\n duration -= TimeUnit.DAYS.toMillis(days);\n\n final long hours = TimeUnit.MILLISECONDS.toHours(duration);\n duration -= TimeUnit.HOURS.toMillis(hours);\n\n final long minutes = TimeUnit.MILLISECONDS.toMinutes(duration);\n duration -= TimeUnit.MINUTES.toMillis(minutes);\n\n final long seconds = TimeUnit.MILLISECONDS.toSeconds(duration);\n\n if (years > 0) {\n sb.append(\" \").append(years);\n sb.append(\" \").append(years == 1 ? \"year\" : \"years\");\n }\n\n if (months > 0) {\n sb.append(\" \").append(months);\n sb.append(\" \").append(months == 1 ? \"month\" : \"months\");\n }\n\n if (days > 0) {\n sb.append(\" \").append(days);\n sb.append(\" \").append(days == 1 ? \"day\" : \"days\");\n }\n\n if (hours > 0) {\n sb.append(\" \").append(hours);\n sb.append(\" \").append(hours == 1 ? \"hour\" : \"hours\");\n }\n\n if (minutes > 0) {\n sb.append(\" \").append(minutes);\n sb.append(\" \").append(minutes == 1 ? \"minute\" : \"minutes\");\n }\n\n if (seconds > 0) {\n sb.append(\" \").append(seconds);\n sb.append(\" \").append(seconds == 1 ? \"second\" : \"seconds\");\n }\n\n return sb.toString().trim();\n }", "public void durationUpdate(AudioHandler handler, long duration) {\r\n slrTime.setMaximum((int) duration);\r\n lblTime.setText(Utility.formatTime(handler.getTime(), false) + \" / \" + Utility.formatTime(duration, false));\r\n if (panGlassPane.isVisible()) panGlassPane.repaint();\r\n }", "public String getDuration() {\n return duration;\n }", "public void setDuration(@Nullable final Long duration) {\n mDuration = duration;\n }", "public double getTime() { return duration; }", "public static String formatDuration(Duration duration)\n\t{\n\t\tlong seconds = duration.toMillis() / 1000;\n\t\treturn String.format(\"%02d:%02d:%02d\", seconds / 3600, (seconds % 3600) / 60, (seconds % 60));\n\t}", "public TimeEntry duration(Integer duration) {\n this.duration = duration;\n return this;\n }", "void setDuration(org.apache.xmlbeans.GDuration duration);", "public int getDuration() { return duration; }", "long getDuration();", "public static String getDurationString(long minutes, long seconds) {\n if(minutes>=0 && (seconds >=0 && seconds<=59)){\n// minutes = hours/60;\n// seconds = hours/3600;\n long hours = minutes / 60;\n long remainingMinutes = minutes % 60;\n\n return hours + \" h \" + remainingMinutes + \"m \" + seconds + \"s\";\n }\n else\n\n {\n return \"invalid value\";\n }\n }", "public int getDuration();", "public static void logPanelViewDurationAction(long durationMs) {\n if (durationMs < DateUtils.SECOND_IN_MILLIS) {\n RecordUserAction.record(\"ContextualSearch.ViewLessThanOneSecond\");\n } else if (durationMs < DateUtils.SECOND_IN_MILLIS * 3) {\n RecordUserAction.record(\"ContextualSearch.ViewOneToThreeSeconds\");\n } else if (durationMs < DateUtils.SECOND_IN_MILLIS * 10) {\n RecordUserAction.record(\"ContextualSearch.ViewThreeToTenSeconds\");\n } else {\n RecordUserAction.record(\"ContextualSearch.ViewMoreThanTenSeconds\");\n }\n }", "java.lang.String getEmploymentDurationText();", "public void showTimeLeft(int time, String state);", "@Override\n public void setDuration(final int duration) {\n if (duration < 0) {\n throw new IllegalArgumentException(\"Animators cannot have negative duration: \" +\n duration);\n }\n this.duration = duration;\n }", "Duration getDuration();", "int getDuration();", "int getDuration();", "private boolean durationValidation(int duration){\n return duration < 300 && duration >10;\n }", "public SimpleStringProperty durationProperty(){\r\n\t\treturn duration;\r\n\t}", "public void setDuration(int newDuration) {\n this.duration = newDuration;\n }", "public void showToastMessage(Context mContext, String msg, int duration) {\n\n //If the call wants to use the default time\n if(duration == -1) {\n duration = LONG;\n }\n\n Toast toast = Toast.makeText(mContext, msg, duration);\n toast.show();\n }", "public static void showToast(@CheckForNull final String msg, final int duration) {\n showToast(msg, duration, false);\n }", "public void setDuration(int duration) {\r\n this.duration = duration;\r\n if (connections.get(lightIndex).getTrafficLight().getSignal()\r\n == TrafficSignal.YELLOW) {\r\n connections.get(lightIndex).getTrafficLight().setSignal\r\n (TrafficSignal.GREEN);\r\n }\r\n currentGreenTime = 0;\r\n currentYellowTime = 0;\r\n }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn getName() + \" (\"+getDuration()+\"s)\";\r\n\t}", "boolean isSetDuration();", "boolean isSetDuration();", "boolean isSetDuration();", "Builder addTimeRequired(Duration value);", "@Override\n public void setItemDuration(Duration duration) {\n this.duration = duration;\n }", "public void setDuration(long duration) {\n\t\tthis.startDuration = System.currentTimeMillis();\n\t\tthis.endDuration = startDuration + duration * 1000;\n\t}", "@Override\n public boolean shouldDraw(long presentationTimeUs) {\n return true;\n }", "public void setAnimationDuration(final int animationDuration);", "java.lang.String getFlightLegDuration();", "public boolean isDuration() {\n return false;\n }", "private void drawCallDurations(GC gc) {\n if (mCalls == null || mCalls.size() < mEndCallIndex) {\n return;\n }\n\n gc.setBackground(mDurationLineColor);\n\n int callUnderScan = mPositionHelper.getCallUnderScanValue();\n for (int i = mStartCallIndex; i < mEndCallIndex; i += callUnderScan) {\n boolean resetColor = false;\n GLCall c = mCalls.get(i);\n\n long duration = c.getWallDuration();\n\n if (c.hasErrors()) {\n gc.setBackground(mGlErrorColor);\n resetColor = true;\n\n // If the call has any errors, we want it to be visible in the minimap\n // regardless of how long it took.\n duration = mPositionHelper.getMaxDuration();\n } else if (c.getFunction() == Function.glDrawArrays\n || c.getFunction() == Function.glDrawElements\n || c.getFunction() == Function.eglSwapBuffers) {\n gc.setBackground(mGlDrawColor);\n resetColor = true;\n\n // render all draw calls & swap buffer at max length\n duration = mPositionHelper.getMaxDuration();\n }\n\n Rectangle bounds = mPositionHelper.getDurationBounds(\n i - mStartCallIndex,\n c.getContextId(),\n duration);\n gc.fillRectangle(bounds);\n\n if (resetColor) {\n gc.setBackground(mDurationLineColor);\n }\n }\n }", "private String formatDuration(long remaining) {\n\t\tif (remaining < 1000) {\n\t\t\treturn \"< 1 second\";\n\t\t} else if (remaining < 60000) {\n\t\t\treturn remaining / 1000 + \" seconds\";\n\t\t} else if (remaining < 3600000) {\n\t\t\treturn remaining / 60000 + \" minutes\";\n\t\t} else if (remaining < 86400000) {\n\t\t\treturn remaining / 3600000 + \" hours\";\n\t\t} else {\n\t\t\treturn remaining / 86400000 + \" days\";\n\t\t}\n\t}", "void setPopupDuration(int popupDuration);", "@ApiModelProperty(value = \"The duration of logged minutes.\")\n /**\n * The duration of logged minutes.\n *\n * @return duration Integer\n */\n public Integer getDuration() {\n return duration;\n }", "long duration();", "boolean hasDuration();", "public void render(float dt) {\n SystemManager.find(RenderAction.class).forEach(ra -> ((RenderAction) ra).render(dt));\n }", "public void show(int seconds) {\n super.show(seconds);\n }", "java.lang.String getTransitFlightDuration();", "public String durationInMinutesAndSeconds( ){\n\t\t\n\t\tString time = \"\";\n\t\t\n\t\tint duration = totalTime();\n\n\t\tint minutes = 0;\n\n\t\tint seconds = 0;\n\n\t\tminutes = (int) (duration/60);\n\n\t\tseconds = (int) (duration- (minutes*60));\n\n\t\ttime = minutes + \":\" + seconds +\"\";\n\t\treturn time;\n\t\t\n\t}", "private void drawTimeLine (Graphics g) {\n g.setColor (parent.parent.parent.rulerColor);\n g.fillRect (0, _yPix - 3 * parent.lineSize, _xPix, 3 * parent.lineSize);\n \n g.setColor (Color.black);\n g.drawLine (0, _yPix - 3 * parent.lineSize, _xPix, _yPix - 3 * parent.lineSize);\n double inchT = parent.getTime (parent.dpi); if (inchT <= 0) return;\n int i = (int)Math.rint (begT / inchT);\n double t = i * inchT;\n while (t < endT) {\n int xcord = i * parent.dpi - parent.getEvtXCord (begT) - \n (int)Math.rint (parent.fm.charWidth ('|') / 2.0);\n \n g.drawString (\"|\", xcord, _yPix - 2 * parent.lineSize - parent.fDescent);\n \n String t1 = (new Float (t)).toString (), t2;\n \n if (t1.indexOf ('E') == -1) {\n\tint index = max;\n\tif (index > t1.length ()) index = t1.length ();\n\tt2 = t1.substring (0, index);\n }\n else {\n\tint exp = t1.indexOf ('E');\n\tString e = t1.substring (exp, t1.length ());\n\t\n\tint si = 5; if (exp < si) si = exp;\n\tString a = t1.substring (0, si);\n\t\n\tt2 = a + e;\n }\n \n g.drawString (t2,\n xcord - (int)Math.rint (parent.fm.stringWidth (t2) / 2.0),\n _yPix - (parent.lineSize + parent.fDescent));\n t = (++i * inchT);\n }\n }", "public void setProgressDuration(int duration){\n this.mProgressDuration = duration;\n }", "private void showTransition(int duration)\n {\n showMainView(TRANS_PANE_VIEW);\n Timer task = new Timer(duration, (ActionEvent e) ->\n {\n showMainView(VIEW_PANE);\n });\n \n task.setRepeats(false);\n task.start();\n }", "public TimerDisplay()\n {\n timeElapsed = 0;\n }", "@Override protected double convertDuration(double duration) {\n return super.convertDuration(duration);\n }", "public long getDuration() {\n return duration;\n }", "void xsetDuration(org.apache.xmlbeans.XmlString duration);", "@Override\n\tpublic void render(float deltaTime) {\n\t\t\n\t}", "public int getDuration() {\n return this.duration;\n }", "public String durationToXML(Duration duration){\r\n String output;\r\n long day;\r\n long hr;\r\n long min;\r\n day = duration.toDays();\r\n hr = duration.minusDays(day).toHours();\r\n min = duration.minusDays(day).minusHours(hr).toMinutes();\r\n output = \"<duration>\"+\"<day>\" + day +\"</day>\" +\"<hr>\" + hr +\"</hr>\" +\"<mn>\" + min +\"</mn>\" +\"</duration>\";\r\n return output;\r\n }", "public int getDuration() {\n return duration;\n }", "public int getDuration() {\n return duration;\n }", "public int getDuration() {\n return duration;\n }", "private static void showTime(int offsetX, int offsetY) {\r\n\t\tString minutesString = (int) Math.floor(GAME.elapsedTime() / 60) + \"\";\r\n\t\tString secondsString = \"\";\r\n\t\tint seconds = (int) GAME.elapsedTime() % 60;\r\n\r\n\t\t// Leading 0 regarding seconds\r\n\t\tif (seconds < 10) {\r\n\t\t\tsecondsString = \"0\" + seconds;\r\n\t\t} else {\r\n\t\t\tsecondsString = \"\" + seconds;\r\n\t\t}\r\n\r\n\t\tString text = \"Elapsed Time: \" + minutesString + \":\" + secondsString + \" - \" + GAME.elapsedTime() + \" | \"\r\n\t\t\t\t+ GAME.getFrameCount();\r\n\r\n\t\tGAME.drawTextScreen(offsetX, offsetY, text);\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn note + \" \" + duration + (duration == 1 ? \" Quaver\" : \" Crotchet\");\n\t}", "public static void reachedSavingPrinter(String duration) {\n System.out.println(line);\n if (duration.equals(ParserStringList.LIMIT_DURATION_D)) {\n System.out.println(REACHED_DS_MSG);\n } else if (duration.equals(ParserStringList.LIMIT_DURATION_W)) {\n System.out.println(REACHED_WS_MSG);\n } else {\n System.out.println(REACHED_MS_MSG);\n }\n System.out.println(WELL_DONE_MSG);\n System.out.println(line);\n }", "public static String trackDurationConverter(int secondsInput)\r\n {\r\n String result;\r\n if(secondsInput > 0)\r\n {\r\n String tmpSec = \"\"; \r\n int tmpMin = 0;\r\n\r\n String seconds = Integer.toString(secondsInput % 60);\r\n String minutes = Integer.toString((secondsInput/60) % 60);\r\n String hours = Integer.toString((secondsInput/60) / 60);\r\n\r\n seconds = Integer.parseInt(seconds) < 9 ? \"0\"+seconds : seconds;\r\n minutes = Integer.parseInt(minutes) < 9 ? \"0\"+minutes : minutes;\r\n hours = Integer.parseInt(hours) < 9 ? \"0\"+hours : hours;\r\n\r\n if(Integer.parseInt(seconds) <= 30)\r\n {\r\n tmpSec = \"30\";\r\n tmpMin = Integer.parseInt(minutes);\r\n }\r\n else\r\n {\r\n tmpSec = \"00\";\r\n tmpMin = Integer.parseInt(minutes) + 1;\r\n }\r\n String tmpResult = tmpMin < 9 ? \"0\"+Integer.toString(tmpMin) : Integer.toString(tmpMin);\r\n String typeOfTime = tmpResult.equals(\"00\") ? \" sec\" : \" min\";\r\n\r\n result = \"circa \" + tmpResult + \":\" + tmpSec + typeOfTime;\r\n return result;\r\n }\r\n else\r\n {\r\n return result = \"-1\";\r\n }\r\n }", "public static String millisToLongDhms(long duration) {\r\n if (duration < ONE_SECOND) {\r\n return \"0 second\";\r\n }\r\n int[] items = millisToDHMS(duration);\r\n StringBuilder res = new StringBuilder();\r\n if (items[0] > 0) {\r\n res.append(items[0]).append(\" day\").append(items[0] > 1 ? \"s\" : \"\")\r\n .append(items[1] > 0 ? \", \" : \"\");\r\n }\r\n if (items[1] > 0) {\r\n res.append(items[1]).append(\" hour\").append(items[1] > 1 ? \"s\" : \"\")\r\n .append(items[2] > 0 ? \", \" : \"\");\r\n }\r\n if (items[2] > 0) {\r\n res.append(items[2]).append(\" minute\").append(items[2] > 1 ? \"s\" : \"\");\r\n }\r\n if (res.length() > 0 && items[3] > 0) {\r\n res.append(\" and \");\r\n }\r\n if (items[3] > 0) {\r\n res.append(items[3]).append(\" second\").append(items[3] > 1 ? \"s\" : \"\");\r\n }\r\n return res.toString();\r\n }", "public double getDuration () {\n return duration;\n }", "java.lang.String getTransitAirportDuration();" ]
[ "0.594467", "0.5915423", "0.58812755", "0.58219695", "0.58219695", "0.58191997", "0.5813899", "0.5779415", "0.57677794", "0.57677794", "0.56965303", "0.56864303", "0.56810904", "0.5678143", "0.5670564", "0.5662809", "0.56399906", "0.5633646", "0.5633646", "0.55616015", "0.5551024", "0.5545973", "0.54981405", "0.54630387", "0.5458551", "0.5442951", "0.5376713", "0.5290349", "0.5244145", "0.5217198", "0.5186027", "0.5185938", "0.51833546", "0.5174169", "0.51580805", "0.51458526", "0.5134782", "0.5094225", "0.5089189", "0.5071296", "0.50694954", "0.5063146", "0.50536484", "0.5050633", "0.50388336", "0.49989304", "0.49945828", "0.4994213", "0.49922997", "0.49918702", "0.49861294", "0.49719712", "0.49719712", "0.4960051", "0.49424225", "0.48682746", "0.48306227", "0.48022175", "0.47959256", "0.4792814", "0.47899565", "0.47899565", "0.47899565", "0.47887474", "0.47868872", "0.478681", "0.47833252", "0.47760558", "0.4762993", "0.47571844", "0.47460386", "0.474445", "0.4739538", "0.47047493", "0.47032437", "0.4700825", "0.4694899", "0.46930864", "0.46906024", "0.46844915", "0.4676588", "0.467462", "0.46728963", "0.46710446", "0.4670194", "0.4661038", "0.46603113", "0.46551454", "0.46514866", "0.4648839", "0.46484572", "0.46484572", "0.46484572", "0.4647064", "0.46449363", "0.4639847", "0.4630887", "0.46304998", "0.4619211", "0.46185493" ]
0.69010955
0
Parses a time duration to milliseconds. The string will be trimmed and white spaces in between number and unit are ignored. Accepted numbers are: ms, msec: milliseconds s, sec or nothing: seconds m, min: minutes h, hours: hours d, days: days
public static long parseDurationToMillis(String durationStr) { final String durationStrTrimmed = durationStr.trim(); Matcher m; m = secPattern.matcher(durationStrTrimmed); if (m.matches()) { return Long.parseLong(m.group(1)) * 1000L; } m = minPattern.matcher(durationStrTrimmed); if (m.matches()) { return Long.parseLong(m.group(1)) * 60 * 1000L; } m = hourPattern.matcher(durationStrTrimmed); if (m.matches()) { return Long.parseLong(m.group(1)) * 3600 * 1000L; } m = dayPattern.matcher(durationStrTrimmed); if (m.matches()) { return Long.parseLong(m.group(1)) * 24 * 3600 * 1000L; } m = dayPattern.matcher(durationStrTrimmed); if (m.matches()) { return Long.parseLong(m.group(1)) * 24 * 3600 * 1000L; } m = milliPattern.matcher(durationStrTrimmed); if (m.matches()) { return Long.parseLong(m.group(1)); } throw new IllegalArgumentException(String.format("'%s' is not a valid duration", durationStrTrimmed)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private long extractMillis(String value)\r\n/* 364: */ {\r\n/* 365:318 */ int start = value.indexOf(\"\\\"\");\r\n/* 366:319 */ int end = value.lastIndexOf(\"\\\"\");\r\n/* 367:320 */ String time = value.substring(start + 1, end);\r\n/* 368: */ \r\n/* 369:322 */ Date result = null;\r\n/* 370: */ try\r\n/* 371: */ {\r\n/* 372:324 */ result = this.format.parse(time);\r\n/* 373: */ }\r\n/* 374: */ catch (ParseException e)\r\n/* 375: */ {\r\n/* 376:327 */ Mark.err(new Object[] {\"Unalble to get milliseconds from\", value });\r\n/* 377:328 */ return 0L;\r\n/* 378: */ }\r\n/* 379:331 */ return result.getTime();\r\n/* 380: */ }", "public static long strToMillis(String time) {\r\n long result = 0;\r\n try {\r\n Pattern p = Pattern\r\n .compile(\"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})(\\\\.([0-9]{1,3}))?\");\r\n Matcher m = p.matcher(time.trim());\r\n m.find();\r\n result += Long.parseLong(m.group(1)) * 3600000\r\n + Long.parseLong(m.group(2)) * 60000 + Long.parseLong(m.group(3))\r\n * 1000;\r\n if (m.group(5) != null)\r\n result += Long.parseLong(m.group(5));\r\n } catch (Exception e) {\r\n // don't complain, just return 0\r\n return 0;\r\n }\r\n return result;\r\n }", "public static String millisToLongDHMS(long duration) {\n StringBuilder res = new StringBuilder();\n long temp = 0;\n if (duration >= ONE_SECOND) {\n temp = duration / ONE_DAY;\n if (temp > 0) {\n duration -= temp * ONE_DAY;\n res.append(temp).append(\" day\").append(temp > 1 ? \"s\" : \"\").append(duration >= ONE_MINUTE ? \", \" : \"\");\n }\n \n temp = duration / ONE_HOUR;\n if (temp > 0) {\n duration -= temp * ONE_HOUR;\n res.append(temp).append(\" hour\").append(temp > 1 ? \"s\" : \"\").append(duration >= ONE_MINUTE ? \", \" : \"\");\n }\n \n temp = duration / ONE_MINUTE;\n if (temp > 0) {\n duration -= temp * ONE_MINUTE;\n res.append(temp).append(\" minute\").append(temp > 1 ? \"s\" : \"\");\n }\n \n if (!res.toString().equals(\"\") && duration >= ONE_SECOND) {\n res.append(\" and \");\n }\n \n temp = duration / ONE_SECOND;\n if (temp > 0) {\n res.append(temp).append(\" second\").append(temp > 1 ? \"s\" : \"\");\n }\n return res.toString();\n } else {\n return \"0 second\";\n }\n }", "public static String millisToLongDhms(long duration) {\r\n if (duration < ONE_SECOND) {\r\n return \"0 second\";\r\n }\r\n int[] items = millisToDHMS(duration);\r\n StringBuilder res = new StringBuilder();\r\n if (items[0] > 0) {\r\n res.append(items[0]).append(\" day\").append(items[0] > 1 ? \"s\" : \"\")\r\n .append(items[1] > 0 ? \", \" : \"\");\r\n }\r\n if (items[1] > 0) {\r\n res.append(items[1]).append(\" hour\").append(items[1] > 1 ? \"s\" : \"\")\r\n .append(items[2] > 0 ? \", \" : \"\");\r\n }\r\n if (items[2] > 0) {\r\n res.append(items[2]).append(\" minute\").append(items[2] > 1 ? \"s\" : \"\");\r\n }\r\n if (res.length() > 0 && items[3] > 0) {\r\n res.append(\" and \");\r\n }\r\n if (items[3] > 0) {\r\n res.append(items[3]).append(\" second\").append(items[3] > 1 ? \"s\" : \"\");\r\n }\r\n return res.toString();\r\n }", "private static Date parseTimestringWithMillis(String timestring) throws ParseException{\r\n boolean containsT = timestring.contains(\"T\");\r\n boolean containsSpace = timestring.contains(\" \");\r\n int len = timestring.length();\r\n char dot = timestring.charAt(len-4);\r\n boolean containsDot = false;\r\n if(dot == '.'){\r\n containsDot = true;\r\n }\r\n if(!containsT && containsSpace && containsDot){\r\n try {\r\n Date date = formatMiliSecs.parse(timestring);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else if(containsT && !containsSpace && containsDot){\r\n try {\r\n Date date = formatMiliSecsWT.parse(timestring);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n }", "public static long parseDHMSOrDefault(String s, long defaultLong) {\n Matcher m = DHMS.matcher(s);\n if (m.matches()) {\n long milliseconds = 0L;\n if (null != m.group(1)) {\n milliseconds += parseLongOrDefault(m.group(1), 0L) * 86_400_000L;\n }\n if (null != m.group(2)) {\n milliseconds += parseLongOrDefault(m.group(2), 0L) * 3_600_000L;\n }\n if (null != m.group(3)) {\n milliseconds += parseLongOrDefault(m.group(3), 0L) * 60_000L;\n }\n milliseconds += parseLongOrDefault(m.group(4), 0L) * 1000L;\n milliseconds += (long) (1000 * parseDoubleOrDefault(\"0.\" + m.group(5), 0d));\n return milliseconds;\n }\n return defaultLong;\n }", "public static String convertTimeMillisecondsAsLongToDuration(long milliseconds) {\n\t\t\t\tString hours = String.format(\"%02d\", TimeUnit.MILLISECONDS.toHours(milliseconds));\n\t\t\t\tString minutes = String.format(\"%02d\",\n\t\t\t\t\t TimeUnit.MILLISECONDS.toMinutes(milliseconds) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(milliseconds)));\n\t\t\t String seconds = String.format(\"%02d\",\n\t\t\t TimeUnit.MILLISECONDS.toSeconds(milliseconds) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(milliseconds)));\n\t\t\t String duration = Integer.valueOf(hours) + \":\" + minutes + \":\" + seconds;\n\t\t\t return duration; \n\t\t\t}", "public static double parse_time(String s) {\n double tm = -1;\n String patternStr = \"[:]\";\n String [] fields2 = s.split(patternStr);\n if (fields2.length >= 3) {\n tm = parse_double(fields2[2]) + 60 * parse_double(fields2[1]) + 3600 * parse_double(fields2[0]); // hrs:min:sec\n } else if (fields2.length == 2) {\n tm = parse_double(fields2[1]) + 60 * parse_double(fields2[0]); // min:sec\n } else if (fields2.length == 1){\n tm = parse_double(fields2[0]); //getColumn(_sec, head[TM_CLK]);\n }\n return tm;\n }", "public String convertTimeMillisecondsAsLongToDurationNoLeadZero(long milliseconds) {\n\t\t\t\tString hours = String.format(\"%02d\", TimeUnit.MILLISECONDS.toHours(milliseconds));\n\t\t\t\tString minutes = String.format(\"%02d\",\n\t\t\t\t\t TimeUnit.MILLISECONDS.toMinutes(milliseconds) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(milliseconds)));\n\t\t\t String seconds = String.format(\"%02d\",\n\t\t\t TimeUnit.MILLISECONDS.toSeconds(milliseconds) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(milliseconds)));\n\t\t\tif (Integer.valueOf(hours) == 0) {\n\t\t\t\tint min = Integer.valueOf(minutes);\n\t\t\t if (min != 0) { minutes = String.valueOf(min); }\n\t\t\t String duration = minutes + \":\" + seconds;\n\t\t\t return duration;\n\t\t\t} else {\n\t\t\t hours = String.valueOf(Integer.valueOf(hours));\n\t\t\t String duration = hours + \":\" + minutes + \":\" + seconds;\n\t\t\t return duration;\n\t\t\t} \n\t\t\t}", "public static String milliSecondsToTimer(long milliseconds){\r\n String finalTimerString = \"\";\r\n String secondsString = \"\";\r\n \r\n // Convert total duration into time\r\n int hours = (int)( milliseconds / (1000*60*60));\r\n int minutes = (int)(milliseconds % (1000*60*60)) / (1000*60);\r\n int seconds = (int) ((milliseconds % (1000*60*60)) % (1000*60) / 1000);\r\n // Add hours if there\r\n if(hours > 0){\r\n finalTimerString = hours + \":\";\r\n }\r\n \r\n // Prepending 0 to seconds if it is one digit\r\n if(seconds < 10){\r\n secondsString = \"0\" + seconds;\r\n }else{\r\n secondsString = \"\" + seconds;}\r\n \r\n finalTimerString = finalTimerString + minutes + \":\" + secondsString;\r\n \r\n // return timer string\r\n return finalTimerString;\r\n }", "public String convertTimeMillisecondsAsLongToDurationAuto(long milliseconds) {\n\t\t\t\tString hours = String.format(\"%02d\", TimeUnit.MILLISECONDS.toHours(milliseconds));\n\t\t\t\tString minutes = String.format(\"%02d\",\n\t\t\t\t\t TimeUnit.MILLISECONDS.toMinutes(milliseconds) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(milliseconds)));\n\t\t\t String seconds = String.format(\"%02d\",\n\t\t\t TimeUnit.MILLISECONDS.toSeconds(milliseconds) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(milliseconds)));\n\t\t\tif (Integer.valueOf(hours) == 0) {\n\t\t\t\tString duration = minutes + \":\" + seconds;\n\t\t\t return duration;\n\t\t\t} else {\n\t\t\t String duration = hours + \":\" + minutes + \":\" + seconds;\n\t\t\t return duration;\n\t\t\t} \n\t\t\t}", "long toMillisecond(long timelineValue);", "public String milliSecondsToTimer(long milliseconds){\n\t\tString finalTimerString = \"\";\n\t\tString secondsString = \"\";\n\t\t\n\t\t// Convert total duration into time\n\t\t int hours = (int)( milliseconds / (1000*60*60));\n\t\t int minutes = (int)(milliseconds % (1000*60*60)) / (1000*60);\n\t\t int seconds = (int) ((milliseconds % (1000*60*60)) % (1000*60) / 1000);\n\t\t // Add hours if there\n\t\t if(hours > 0){\n\t\t\t finalTimerString = hours + \":\";\n\t\t }\n\t\t \n\t\t // Prepending 0 to seconds if it is one digit\n\t\t if(seconds < 10){ \n\t\t\t secondsString = \"0\" + seconds;\n\t\t }else{\n\t\t\t secondsString = \"\" + seconds;}\n\t\t \n\t\t finalTimerString = finalTimerString + minutes + \":\" + secondsString;\n\t\t\n\t\t// return timer string\n\t\treturn finalTimerString;\n\t}", "protected static float toMilliseconds(int unit, float value) {\n \t\tswitch (unit) {\n \t\tcase CSSPrimitiveValue.CSS_MS:\n \t\t\treturn value;\n \t\tcase CSSPrimitiveValue.CSS_S:\n \t\t\treturn (value * 1000);\n \t\tdefault:\n \t\t\tthrow new DOMException(DOMException.INVALID_ACCESS_ERR, \"\");\n \t\t}\n \t}", "public static String millisToShortDHMS(long duration) {\n String res = \"\";\n duration /= ONE_SECOND;\n int seconds = (int) (duration % SECONDS);\n duration /= SECONDS;\n int minutes = (int) (duration % MINUTES);\n duration /= MINUTES;\n int hours = (int) (duration % HOURS);\n int days = (int) (duration / HOURS);\n if (days == 0) {\n res = String.format(\"%02d:%02d:%02d\", hours, minutes, seconds);\n } else {\n res = String.format(\"%dd%02d:%02d:%02d\", days, hours, minutes, seconds);\n }\n return res;\n }", "static long getMilliSecondsPart(Duration d) {\n long u = d.toMillis() % 1000;\n\n return u;\n }", "private static Long parseTimeStrictly(String s) throws IllegalArgumentException\n {\n String nanos_s;\n\n long hour;\n long minute;\n long second;\n long a_nanos = 0;\n\n String formatError = \"Timestamp format must be hh:mm:ss[.fffffffff]\";\n String zeros = \"000000000\";\n\n if (s == null)\n throw new java.lang.IllegalArgumentException(formatError);\n s = s.trim();\n\n // Parse the time\n int firstColon = s.indexOf(':');\n int secondColon = s.indexOf(':', firstColon+1);\n\n // Convert the time; default missing nanos\n if (firstColon > 0 && secondColon > 0 && secondColon < s.length() - 1)\n {\n int period = s.indexOf('.', secondColon+1);\n hour = Integer.parseInt(s.substring(0, firstColon));\n if (hour < 0 || hour >= 24)\n throw new IllegalArgumentException(\"Hour out of bounds.\");\n\n minute = Integer.parseInt(s.substring(firstColon + 1, secondColon));\n if (minute < 0 || minute >= 60)\n throw new IllegalArgumentException(\"Minute out of bounds.\");\n\n if (period > 0 && period < s.length() - 1)\n {\n second = Integer.parseInt(s.substring(secondColon + 1, period));\n if (second < 0 || second >= 60)\n throw new IllegalArgumentException(\"Second out of bounds.\");\n\n nanos_s = s.substring(period + 1);\n if (nanos_s.length() > 9)\n throw new IllegalArgumentException(formatError);\n if (!Character.isDigit(nanos_s.charAt(0)))\n throw new IllegalArgumentException(formatError);\n nanos_s = nanos_s + zeros.substring(0, 9 - nanos_s.length());\n a_nanos = Integer.parseInt(nanos_s);\n }\n else if (period > 0)\n throw new IllegalArgumentException(formatError);\n else\n {\n second = Integer.parseInt(s.substring(secondColon + 1));\n if (second < 0 || second >= 60)\n throw new IllegalArgumentException(\"Second out of bounds.\");\n }\n }\n else\n throw new IllegalArgumentException(formatError);\n\n long rawTime = 0;\n rawTime += TimeUnit.HOURS.toNanos(hour);\n rawTime += TimeUnit.MINUTES.toNanos(minute);\n rawTime += TimeUnit.SECONDS.toNanos(second);\n rawTime += a_nanos;\n return rawTime;\n }", "public static long convertTimeMillisecondsAsStringToSeconds(String milliseconds) {\n\t\t\t\tint MILLISECONDS_IN_A_SECOND = 1000;\n\t\t\t\tDouble d = Double.valueOf(milliseconds) / Double.valueOf(MILLISECONDS_IN_A_SECOND);\n\t\t\t\treturn Math.round(d);\n\t\t\t}", "public static String millisecondsToDateTimeDuration(long milliseconds) {\n long hours = MILLISECONDS.toHours(milliseconds);\n long minutes = MILLISECONDS.toMinutes(milliseconds % MINUTES_MOD);\n long seconds = MILLISECONDS.toSeconds((milliseconds % MINUTES_MOD) % SECONDS_MOD);\n\n return String.format(\"PT%02dH%02dM%02dS\", hours, minutes, seconds);\n }", "Duration parseDuration(final String toParse){\n try {\n final Integer hours = Integer.valueOf(parseString(MATCH_DURATION_PARSER, toParse, \"hours\"));\n final Integer minutes = Integer.valueOf(parseString(MATCH_DURATION_PARSER, toParse, \"minutes\"));\n final Integer seconds = Integer.valueOf(parseString(MATCH_DURATION_PARSER, toParse, \"seconds\"));\n return Duration.of(hours, ChronoUnit.HOURS).plusMinutes(minutes).plusSeconds(seconds);\n\n } catch (IllegalArgumentException | ParseStringException e) {\n LOGGER.warning(\"Can't extract duration will return 0 !\");\n }\n return Duration.ZERO;\n }", "public static String millisToShortDhms(long duration) {\r\n int[] items = millisToDHMS(duration);\r\n return items[0] == 0\r\n ? String.format(\"%02d:%02d:%02d\", items[1], items[2], items[3])\r\n : String.format(\"%dd%02d:%02d:%02d\", items[0], items[1], items[2], items[3]);\r\n }", "public MillisecondConverter(long millis) {\n\t\t\tmilliseconds = millis;\n\t\t\tseconds = millis / 1000;\n\t\t\tminutes = seconds / 60;\n\t\t\thours = minutes / 60;\n\t\t}", "public long toMillisecond(long value) { return value; }", "public static String getElapsedTimeFromMilliseconds(long inputTime)\r\n {\r\n String format = String.format(\"%%0%dd\", 2);\r\n long elapsedTime = inputTime / 1000000;\r\n String millisecond = String.format(format, elapsedTime % 1000);\r\n String seconds = String.format(format, (elapsedTime/1000) % 60);\r\n String minutes = String.format(format, ((elapsedTime/1000) % 3600) / 60);\r\n String hours = String.format(format, (elapsedTime/1000) / 3600);\r\n\r\n hours = hours.equals(\"00\") ? \"\" : (Integer.parseInt(hours) < 9 ? hours.substring(hours.lastIndexOf(\"0\") + 1)+\":\" :hours+\":\");\r\n minutes = minutes.equals(\"00\") ? \"\" : (Integer.parseInt(minutes) < 9 ? minutes.substring(minutes.lastIndexOf(\"0\") + 1)+\":\" :minutes+\":\");\r\n seconds = seconds.equals(\"00\") ? \"\" : (Integer.parseInt(seconds) < 9 ? seconds.substring(seconds.lastIndexOf(\"0\") + 1)+\",\" :seconds+\",\");\r\n millisecond = millisecond.equals(\"00\") ? \"\" : millisecond+(seconds.equals(\"\") ? \"ms\":(minutes.equals(\"\") ? \" sec\" : \" min\"));\r\n String time = hours+minutes+seconds+millisecond;\r\n return time;\r\n }", "public Duration parseDuration(String inputString){\r\n Duration duration = null;\r\n int day;\r\n int hr;\r\n int min;\r\n Pattern patternDuration = Pattern.compile(durationPatternString);\r\n Matcher matcherDuration = patternDuration.matcher(inputString);\r\n String dayMatch;\r\n while (matcherDuration.find()){\r\n dayMatch = matcherDuration.group(1);\r\n if (dayMatch == null|| dayMatch.isEmpty())\r\n day =0;\r\n else\r\n day = Integer.parseInt(dayMatch);\r\n\r\n hr = Integer.parseInt(matcherDuration.group(2));\r\n min = Integer.parseInt(matcherDuration.group(3));\r\n duration = Duration.ofSeconds(day*24*60*60 + hr*60*60 + min*60);\r\n }\r\n return duration;\r\n }", "public Long getDurationMs();", "java.lang.String getDuration();", "public static NormalTridasUnit parseUnitString(String str) throws Exception\n\t{\n\t\tstr = str.trim();\n\t\tif ((str==null) || (str.equals(\"\"))) return null;\n\t\n\t\tstr =str.toLowerCase();\n\t\t\n\t\tInteger val;\n\t\tBoolean mmDetected = false;\n\t\t\n\t\t//Remove leading fraction\n\t\tif(str.startsWith(\"1/\")){ str = str.substring(2);}\n\t\t\n\t\t// Remove 'ths'\n\t\tif(str.contains(\"ths\")){ str = str.replace(\"ths\", \"\");}\n\t\t\n\t\t// Remove 'th'\n\t\tif(str.contains(\"th\")){ str = str.replace(\"th\", \"\");}\n\t\t\n\t\t// Remove 'mm'\n\t\tif(str.contains(\"mm\"))\n\t\t{ \n\t\t\tstr = str.replace(\"mm\", \"\");\n\t\t\tmmDetected = true;\n\t\t}\n\t\tif(str.contains(\"millimet\"))\n\t\t{ \n\t\t\tstr = str.replace(\"millimetres\", \"\");\n\t\t\tstr = str.replace(\"millimeters\", \"\");\n\t\t\tstr = str.replace(\"millimetre\", \"\");\n\t\t\tstr = str.replace(\"millimeter\", \"\");\n\t\t\tmmDetected = true;\n\t\t}\n\t\t\n\t\tif(str.length()==0 && mmDetected)\n\t\t{\n\t\t\treturn NormalTridasUnit.MILLIMETRES;\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tval = Integer.parseInt(str.trim());\n\t\t} catch (NumberFormatException e)\n\t\t{\n\t\t\tthrow new Exception(\"Unable to parse units from units string\");\n\t\t}\n\t\t\n\t\tswitch(val)\n\t\t{\t\n\t\t\tcase 10: return NormalTridasUnit.TENTH_MM; \n\t\t\tcase 20: return NormalTridasUnit.TWENTIETH_MM;\n\t\t\tcase 50: return NormalTridasUnit.FIFTIETH_MM;\n\t\t\tcase 100: return NormalTridasUnit.HUNDREDTH_MM; \n\t\t\tcase 1000: return NormalTridasUnit.MICROMETRES; \n\t\t}\n\t\t\n\t\tthrow new Exception(\"Unable to parse units from units string\");\n\t}", "private static String millisToLongDHMS(long duration, String date) {\n StringBuilder res = new StringBuilder();\n long temp = 0;\n long cal = 0;\n if (duration >= ONE_SECOND) {\n temp = duration / ONE_SECOND;\n if (temp > 0 && temp < 60) {\n res.append(temp).append(\" giây \");\n } else {\n temp = duration / ONE_MINUTE;\n if (temp > 0 && temp < 60) {\n res.append(temp).append(\" phút \");\n } else {\n temp = duration / ONE_HOUR;\n cal = duration / ONE_MINUTE;\n if (temp > 0 && temp < 24) {\n if (cal % 60 != 0) {\n res.append(\"Khoảng \");\n }\n res.append(temp).append(\" giờ \");\n } else {\n temp = duration / ONE_DAY;\n cal = duration / ONE_HOUR;\n if (temp > 0 && temp < 2) {\n if (cal % 24 != 0) {\n res.append(\"Khoảng \");\n }\n res.append(temp).append(\" ngày \");\n } else {\n return res.append(getTimeDetails(date)).toString();\n }\n }\n }\n }\n \n return res.append(\"trước\").toString();\n } else {\n return \"Vừa tải lên\";\n }\n }", "public static TimeWindow parse(String unit) throws TimeWindowException {\n if (StringUtils.isNumeric(unit)) {\n TimeWindow tw = new TimeWindow();\n tw.setGranularity(TimeUnit.MILLISECONDS);\n tw.setResolution(Integer.parseInt(unit));\n\n return tw;\n } else {\n unit = unit.toUpperCase();\n Pattern p = Pattern.compile(\"(\\\\d+)(MS|ms|SS|ss|MI|mi|HH|hh|DD|dd{1}$)\");\n\n Matcher m = p.matcher(unit);\n if (m.matches()) {\n if (m.groupCount() >= 2) {\n String r = m.group(1);\n String g = m.group(2);\n if (!StringUtils.isEmpty(r) && !StringUtils.isEmpty(g)) {\n TimeWindow tw = new TimeWindow();\n tw.setResolution(Integer.parseInt(r));\n tw.setGranularity(timeunit(g));\n\n return tw;\n }\n }\n }\n }\n throw new TimeWindowException(\"Cannot parse Time Window from String. [string=\" + unit + \"]\");\n }", "public static long milliSecondFromNano()\r\n/* 15: */ {\r\n/* 16: 44 */ return System.nanoTime() / 1000000L;\r\n/* 17: */ }", "public static String timem( long p_lMillis ) {\n String sTime = \"\";\n if ( p_lMillis > 999 ) sTime =time( p_lMillis );\n sTime += \" \" + (p_lMillis % 1000 ) + \"ms\"; \n return sTime;\n }", "private void parseSecsBAT(String str)\n {\n // The value.\n long theValue;\n\n // Try to parse the string as a double.\n try {\n // theValue = (long)(Double.parseDouble(str) * 1000000.0);\n theValue = (long) ((new Double(str)).doubleValue() * 1000000.0);\n } catch (NumberFormatException e) {\n throw new NumberFormatException(\"bad absolute time: \\\"\" + str + \"\\\"\");\n }\n\n // Check for a negative number.\n if (theValue <= 0) {\n throw new NumberFormatException(\"bad absolute time: \\\"\" + str + \"\\\"\");\n }\n\n // Set the value in the object.\n itsValue = theValue;\n }", "public static Duration convertDurationFromDaprFormat(String valueString) {\n // Convert the format returned by the Dapr runtime into Duration\n // An example of the format is: 4h15m50s60ms. It does not include days.\n int hourIndex = valueString.indexOf('h');\n int minuteIndex = valueString.indexOf('m');\n int secondIndex = valueString.indexOf('s');\n int milliIndex = valueString.indexOf(\"ms\");\n\n String hoursSpan = valueString.substring(0, hourIndex);\n\n int hours = Integer.parseInt(hoursSpan);\n int days = hours / 24;\n hours = hours % 24;\n\n String minutesSpan = valueString.substring(hourIndex + 1, minuteIndex);\n int minutes = Integer.parseInt(minutesSpan);\n\n String secondsSpan = valueString.substring(minuteIndex + 1, secondIndex);\n int seconds = Integer.parseInt(secondsSpan);\n\n String millisecondsSpan = valueString.substring(secondIndex + 1, milliIndex);\n int milliseconds = Integer.parseInt(millisecondsSpan);\n\n return Duration.ZERO\n .plusDays(days)\n .plusHours(hours)\n .plusMinutes(minutes)\n .plusSeconds(seconds)\n .plusMillis(milliseconds);\n }", "private ChronoUnit parseUnit(String unitStr) {\n unitStr = unitStr.toUpperCase();\n // If the unitStr ends with a 'S' then do nothing otherwise add a 'S' to the end\n unitStr = unitStr.charAt(unitStr.length() - 1) == 'S' ? unitStr : unitStr + \"S\";\n // Return the corresponding ChronoUnit\n switch (unitStr) {\n case \"DAYS\":\n return ChronoUnit.DAYS;\n case \"WEEKS\":\n return ChronoUnit.WEEKS;\n case \"HOURS\":\n return ChronoUnit.HOURS;\n case \"SECONDS\":\n return ChronoUnit.SECONDS;\n case \"MINUTES\":\n return ChronoUnit.MINUTES;\n }\n return ChronoUnit.DAYS;\n }", "private static Date parseTimestringWithMillisWithTimeZone(String timestring) throws ParseException{\r\n boolean containsT = timestring.contains(\"T\");\r\n boolean containsSpace = timestring.contains(\" \");\r\n int len = timestring.length();\r\n char dot = timestring.charAt(len-9);\r\n boolean containsDot = false;\r\n if(dot == '.'){\r\n containsDot = true;\r\n }\r\n if(!containsT && containsSpace && containsDot){\r\n try {\r\n Date date = formatMiliSecsTZ.parse(timestring);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else if(containsT && !containsSpace && containsDot){\r\n try {\r\n Date date = formatMiliSecsTZwT.parse(timestring);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n }", "void setDuration(java.lang.String duration);", "private static long parseNumber(CharSequence text, String parsed, int multiplier, String errorText) {\n if (parsed == null) {\n return 0;\n }\n try {\n long val = Long.parseLong(parsed);\n return Math.multiplyExact(val, multiplier);\n } catch (NumberFormatException | ArithmeticException ex) {\n throw (DateTimeParseException) new DateTimeParseException(\"Text cannot be parsed to a Duration: \" + errorText, text, 0).initCause(ex);\n }\n }", "protected static float toMillimeters(int unit, float value) {\n \t\tswitch (unit) {\n \t\tcase CSSPrimitiveValue.CSS_CM:\n \t\t\treturn (value * 10);\n \t\tcase CSSPrimitiveValue.CSS_MM:\n \t\t\treturn value;\n \t\tcase CSSPrimitiveValue.CSS_IN:\n \t\t\treturn (value * 25.4f);\n \t\tcase CSSPrimitiveValue.CSS_PT:\n \t\t\treturn (value * 25.4f / 72);\n \t\tcase CSSPrimitiveValue.CSS_PC:\n \t\t\treturn (value * 25.4f / 6);\n \t\tdefault:\n \t\t\tthrow new DOMException(DOMException.INVALID_ACCESS_ERR, \"\");\n \t\t}\n \t}", "private void parseCPUSpeedTimes(){\n\t\tString str = parser.readFile(SYS_CPU_SPEED_STEPS, 512);\n\t\tif(str == null)\n\t\t\treturn;\n\t\t\n\t\tString[] vals;\n\t\tint index = 0;\n\t\tlong time;\n\t\t\n\t\tfor(String token : str.split(\"\\n\")){\n\t\t\tif(str.trim().length() == 0) continue;\n\t\t\ttry{\n\t\t\t\tvals = token.split(\" \");\n\t\t\t\ttime = Long.valueOf(vals[1]);\n\t\t\t\tmRelCpuSpeedTimes[index] = time - mBaseCpuSpeedTimes[index];\n\t\t\t\tmBaseCpuSpeedTimes[index] = time;\n\t\t\t}catch (NumberFormatException nfe){\n\t\t\t\tnfe.printStackTrace();\n\t\t\t}finally{\n\t\t\t\tindex++;\n\t\t\t}\n\t\t}\n\t}", "public static String formatConsumeTimeMillis(long millis) { \r\n\t long days = millis / (1000 * 60 * 60 * 24); \r\n\t long hours = (millis % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60); \r\n\t long minutes = (millis % (1000 * 60 * 60)) / (1000 * 60); \r\n\t double seconds = (millis % (1000 * 60)) / 1000.0; \r\n\t return days + \" dats \" + hours + \" hours \" + minutes + \" mins \" \r\n\t + seconds + \" seconds\";\r\n\t}", "private Duration getDurationFromTimeView() {\n String text = timeView.getText().toString();\n String[] values = text.split(\":\");\n\n int hours = Integer.parseInt(values[0]);\n int minutes = Integer.parseInt(values[1]);\n int seconds = Integer.parseInt(values[2]);\n\n return Utils.hoursMinutesSecondsToDuration(hours, minutes, seconds);\n }", "private static TimerMomentData parseTimerMoment(String momentId, Element momentElement)\n throws MissionParseException {\n float momentLengthMinutes = parseLengthMinutesElement(\n findSingleChildElementByTag(momentElement, ELEMENT_LENGTH_MINUTES));\n\n String nextMomentId = getNextMomentId(momentElement);\n\n ArrayList<String> fictionalProgress = parseMomentFictionalProgress(momentElement);\n\n return new TimerMomentData(momentId, nextMomentId, fictionalProgress, momentLengthMinutes);\n }", "public static Duration parseDuration(String str) {\n String part;\n Duration d = new Duration();\n Matcher m = durationPattern.matcher(str);\n\n if (m.find()) {\n d.negative = (str.startsWith(\"-\"));\n\n try {\n part = m.group(1);\n d.years = (part != null)\n ? Integer.parseInt(part)\n : 0;\n part = m.group(2);\n d.months = (part != null)\n ? Integer.parseInt(part)\n : 0;\n part = m.group(3);\n d.days = (part != null)\n ? Integer.parseInt(part)\n : 0;\n part = m.group(4);\n d.hours = (part != null)\n ? Integer.parseInt(part)\n : 0;\n part = m.group(5);\n d.minutes = (part != null)\n ? Integer.parseInt(part)\n : 0;\n part = m.group(6);\n d.seconds = (part != null)\n ? Double.parseDouble(part)\n : 0.0;\n } catch (Exception e) {\n d = null;\n }\n } else {\n d = null;\n }\n\n return d;\n }", "public String durationInMinutesAndSeconds( ){\n\t\t\n\t\tString time = \"\";\n\t\t\n\t\tint duration = totalTime();\n\n\t\tint minutes = 0;\n\n\t\tint seconds = 0;\n\n\t\tminutes = (int) (duration/60);\n\n\t\tseconds = (int) (duration- (minutes*60));\n\n\t\ttime = minutes + \":\" + seconds +\"\";\n\t\treturn time;\n\t\t\n\t}", "public static DateTime parseTime(String str) {\n if (str.indexOf('.') == -1) {\n return DateTimeFormat.forPattern(\"HH:mm:ss\").withZoneUTC().parseDateTime(str);\n } else {\n return DateTimeFormat.forPattern(\"HH:mm:ss.SSS\").withZoneUTC().parseDateTime(str);\n }\n }", "public abstract long toSeconds(long duration);", "long getDuration(TimeUnit timeUnit);", "public abstract void correctlyParsedUtterance(long ms);", "public Duration parse(String toParse) {\n\t\t\n\t\tString[] parts = toParse.split(delimiter);\n\t\tint[] durations = new int[3];\n\t\tIntParser intP = new IntParser();\n\t\t\n\t\tfor(int t1 = parts.length -1; t1 >= parts.length - 3; t1--) {\n\t\t\tif(parts[t1].isEmpty()) {\n\t\t\t\tparts[t1] = \"00\";\n\t\t\t}\n\t\t\tintP.tryParse(parts[t1]);\n\t\t\tdurations[t1 - (parts.length-3)] = intP.number;\n\t\t}\n\t\tduration = Duration.ZERO;\n\t\tduration = duration.plusSeconds(durations[2]);\n\t\tduration = duration.plusMinutes(durations[1]);\n\t\tduration = duration.plusHours(durations[0]);\n\t\treturn duration;\n\t}", "private String convertToDuration(Long songDuration){\n long seconds = songDuration/1000;\n long minutes = seconds / 60;\n seconds = seconds % 60;\n return minutes +\":\"+seconds;\n }", "public long parseDate_stringToMillis(String date) {\n try {\n Date _date = SDF_TYPE_1.parse(date);\n return _date.getTime();\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return 0;\n }", "public abstract void incorrectlyParsedUtterance(long ms);", "public static long parseRaw(String raw) {\n String[] unixSecondAndTimezone = raw.split(\" \");\n Assert.isTrue(unixSecondAndTimezone.length == 2, \"Illegal raw time: \" + raw);\n return toMilliseconds(Long.parseLong(unixSecondAndTimezone[0]));\n }", "public static long minutesToMilliseconds(int minutes) {\n return minutes * MS_PER_MINUTE;\n }", "public static int m66040a(String str, long j, TimeUnit timeUnit) {\n if (j < 0) {\n StringBuilder sb = new StringBuilder();\n sb.append(str);\n sb.append(\" < 0\");\n throw new IllegalArgumentException(sb.toString());\n } else if (timeUnit != null) {\n long millis = timeUnit.toMillis(j);\n if (millis > 2147483647L) {\n StringBuilder sb2 = new StringBuilder();\n sb2.append(str);\n sb2.append(\" too large.\");\n throw new IllegalArgumentException(sb2.toString());\n } else if (millis != 0 || j <= 0) {\n return (int) millis;\n } else {\n StringBuilder sb3 = new StringBuilder();\n sb3.append(str);\n sb3.append(\" too small.\");\n throw new IllegalArgumentException(sb3.toString());\n }\n } else {\n throw new NullPointerException(\"unit == null\");\n }\n }", "public static String convertMillis(long millis){\n\t\tlong hours = millis / 3600000;\r\n\t\tmillis = millis % 3600000;\r\n\t\tlong minutes = millis / 60000;\r\n\t\tmillis = millis % 60000;\r\n\t\tlong seconds = millis / 1000;\r\n\t\t\r\n\t\tString strHours = hours + \"\";\t\t\t\t\t//pretvaranje cjelobrojnih vrijednosti u satima, minutama i sekundama\r\n\t\tString strMinutes = minutes + \"\";\t\t\t\t//u String vrijednosti \r\n\t\tString strSeconds = seconds + \"\";\r\n\t\t\r\n\t\treturn strHours + \":\" + strMinutes + \":\" + strSeconds + \".\";\t\r\n\t}", "public static double getTimeMs(){\n return System.nanoTime()*nanoToMs;\n }", "public long convertCalendarDateTimeHourMinSecToMillisecondsAsLong(String stringDate) throws ParseException {\n\t\t\t\tDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\tDate date = formatter.parse(stringDate);\n\t\t\t\tlong mills = date.getTime();\n\t\t\t\treturn mills;\n\t\t\t}", "public String convertCalendarDateTimeHourMinSecToMillisecondsAsString(String stringDate) throws ParseException {\n\t\t\t\tDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\tDate date = formatter.parse(stringDate);\n\t\t\t\tlong mills = date.getTime();\n\t\t\t\treturn String.valueOf(mills);\n\t\t\t}", "private Integer parseTimeout(String timeoutStr) {\n \tInteger idsTimeout = -1;\n \tMatcher m = IDS_TIMEOUT_PATTERN.matcher(timeoutStr);\n \tif( m.matches() ) {\n \t\tidsTimeout = Integer.valueOf(m.group(1));\n \t\tString qualifier = m.group(2);\n \t\tif( \"s\".equals(qualifier) ) {\n \t\t\tidsTimeout = idsTimeout * 1000;\n \t\t} else if( \"m\".equals(qualifier) ) {\n \t\t\tidsTimeout = idsTimeout * 1000 * 60;\n \t\t}\n \t}\n \treturn idsTimeout;\n }", "public long getAsTime(String key, TimeUnit outUnit, long defaultVal) {\n String val = entries.getProperty(key);\n if (val == null) return defaultVal;\n Matcher m = TIME_UNIT_SUFFIX.matcher(val);\n if (m.matches()) {\n long duration = Long.parseLong(m.group(1));\n String unit = m.group(2).toLowerCase();\n\n // If/else chain arranged in likely order of frequency for performance\n if (unit.equals(\"s\") || unit.startsWith(\"sec\")) {\n return outUnit.convert(duration, TimeUnit.SECONDS);\n } else if (unit.equals(\"ms\") || unit.startsWith(\"msec\")) {\n return outUnit.convert(duration, TimeUnit.MILLISECONDS);\n } else if (unit.equals(\"m\") || unit.startsWith(\"min\")) {\n return outUnit.convert(duration, TimeUnit.MINUTES);\n } else if (unit.equals(\"us\") || unit.startsWith(\"usec\")) {\n return outUnit.convert(duration, TimeUnit.MICROSECONDS);\n } else if (unit.equals(\"ns\") || unit.startsWith(\"nsec\")) {\n return outUnit.convert(duration, TimeUnit.NANOSECONDS);\n } else if (unit.equals(\"h\") || unit.startsWith(\"hour\")) {\n return outUnit.convert(duration, TimeUnit.HOURS);\n } else if (unit.equals(\"d\") || unit.startsWith(\"day\")) {\n return outUnit.convert(duration, TimeUnit.DAYS);\n } else {\n throw new IllegalArgumentException(\"Invalid time unit \" + unit);\n }\n } else {\n throw new IllegalArgumentException(\"Invalid time unit \" + val);\n }\n }", "public void setMiliSeconds(int nt) {\r\n\t\tthis.milis = nt;\r\n\t}", "private static Date parseTimestringWithMicros(String timestring) throws ParseException{\r\n boolean containsT = timestring.contains(\"T\");\r\n boolean containsSpace = timestring.contains(\" \");\r\n boolean containsDot = false;\r\n int len = timestring.length();\r\n char dot = timestring.charAt(len-7);\r\n if(dot == '.'){\r\n containsDot = true;\r\n }\r\n if(!containsT && containsSpace && containsDot){\r\n try {\r\n String milisTime = timestring.substring(0, patternMiliSecsLen);\r\n Date date = formatMiliSecs.parse(milisTime);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else if(containsT && !containsSpace && containsDot){\r\n try {\r\n String milisTime = timestring.substring(0, patternMiliSecsWTLen);\r\n Date date = formatMiliSecsWT.parse(milisTime);\r\n return date;\r\n } catch (ParseException e) {\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n }", "public long toMilli(long sec) {\n\t\t\n\t\treturn sec * 1000;\n\t}", "public static String getDurationString(long minutes, long seconds) {\n if(minutes>=0 && (seconds >=0 && seconds<=59)){\n// minutes = hours/60;\n// seconds = hours/3600;\n long hours = minutes / 60;\n long remainingMinutes = minutes % 60;\n\n return hours + \" h \" + remainingMinutes + \"m \" + seconds + \"s\";\n }\n else\n\n {\n return \"invalid value\";\n }\n }", "public abstract void partiallyParsedUtterance(long ms);", "protected String timeToSpeed() {\n String speedValueText = \"\";\n try {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"hh:mm:ss aa\");\n localDate = dateFormat.parse(mLastUpdateTimeTextView.getText().toString());\n long localDateMS = localDate.getTime();\n long previousDateMs = previousDate.getTime();\n double timeValueSecond = (localDateMS - previousDateMs) / 1000;\n timeSingleValue = timeValueSecond;\n double distance = Double.parseDouble(mMoveTextView.getText().toString().substring(0, mMoveTextView.length() - 2));\n double speedValue = Math.round(((distance / timeValueSecond) * 3600 / 1000)*100)/100.0;\n if (speedValue < 0.01 || Double.isNaN(speedValue) || speedValue > 10000) speedValue = 0;\n speedValueText = String.valueOf(speedValue);\n previousDate = localDate;\n }\n catch (ParseException e) {\n mSpeedTextView.setText(e.getMessage());\n }\n return speedValueText ; // String.valueOf(timeValueMS);\n }", "public long convertCalendarDateTimeHourMinToMillisecondsAsLong(String stringDate) throws ParseException {\n\t\t\t\tDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\t\t\t\tDate date = formatter.parse(stringDate);\n\t\t\t\tlong mills = date.getTime();\n\t\t\t\treturn mills;\n\t\t\t}", "@Override\r\n\tpublic Time convert(String input, Class<? extends Time> targetType,\r\n\t\t\tCollection<ValidationError> errors) {\r\n\r\n\t\tinput = input.trim();\r\n\r\n\t\tDate date = null;\r\n\r\n\t\tfor (DateFormat format : this.formats) {\r\n\t\t\ttry {\r\n\t\t\t\tdate = format.parse(input);\r\n\t\t\t\tbreak;\r\n\t\t\t} catch (ParseException pe) {} /* Do nothing, we'll get lots of these. */\r\n\t\t}\r\n\t\t\r\n\t\t// If we successfully parsed, convert date to time and return, \r\n\t\t// otherwise send back an error\r\n\t\tif (date != null) {\r\n\t\t\treturn new Time(date.getTime());\r\n\t\t} else {\r\n\t\t\terrors.add(new ScopedLocalizableError(\"converter.time\",\"invalidTime\"));\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public static String longToHHMM(long longTime)\r\n/* 150: */ {\r\n/* 151:219 */ SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm\");\r\n/* 152:220 */ Date strtodate = new Date(longTime);\r\n/* 153:221 */ return formatter.format(strtodate);\r\n/* 154: */ }", "public static double microSecondsToMilliSeconds(double num) { return (num/Math.pow(10,3)); }", "public static String millisToLongDHMS(Date _DateTime, String _DefualtFormat) {\n\n long currTimeStamp = System.currentTimeMillis();\n\n long duration = _DateTime.getTime() - currTimeStamp;\n\n StringBuffer res = new StringBuffer();\n long temp = 0;\n if (duration >= NOW) {\n temp = duration / ONE_DAY;\n if (temp > 0) {\n duration -= temp * ONE_DAY;\n res.append(temp).append(\" day\").append(temp > 1 ? \"s\" : \"\")\n .append(duration >= ONE_MINUTE ? \", \" : \"\");\n }\n\n temp = duration / ONE_HOUR;\n if (temp > 0) {\n duration -= temp * ONE_HOUR;\n res.append(temp).append(\" hour\").append(temp > 1 ? \"s\" : \"\")\n .append(duration >= ONE_MINUTE ? \", \" : \"\");\n }\n\n temp = duration / ONE_MINUTE;\n if (temp > 0) {\n duration -= temp * ONE_MINUTE;\n res.append(temp).append(\" minute\").append(temp > 1 ? \"s\" : \"\");\n }\n\n if (!res.toString().equals(\"\") && duration >= ONE_SECOND) {\n res.append(\" and \");\n }\n\n temp = duration / ONE_SECOND;\n if (temp > 0) {\n res.append(temp).append(\" second\").append(temp > 1 ? \"s\" : \"\");\n }\n return res.toString();\n } else if (duration < ONE_SECOND) {\n return _DefualtFormat;\n } else {\n return \"a moment ago\";//\"0 second\";\n }\n }", "public static String millsToMinSec(long mills) {\n int min = (int) (mills / 1000 / 60);\n int second = (int) (mills / 1000 % 3600 % 60);\n String time = \"\";\n// if (hour < 10) {\n// time = \"0\" + hour;\n// } else {\n// time = \"\" + hour;\n// }\n if (min < 10) {\n time += \"0\" + min;\n } else {\n time += \"\" + min;\n }\n if (second < 10) {\n time += \":0\" + second;\n } else {\n time += \":\" + second;\n }\n return time;\n }", "static String timeConversion(String s) throws ParseException {\n SimpleDateFormat to = new SimpleDateFormat(\"HH:mm:ss\");\n SimpleDateFormat from = new SimpleDateFormat(\"hh:mm:ssa\");\n Date parse = from.parse(s);\n return to.format(parse);\n\n }", "public String convertCalendarDateTimeHourMinToMillisecondsAsString(String stringDate) throws ParseException {\n\t\t\t\tDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\t\t\t\tDate date = formatter.parse(stringDate);\n\t\t\t\tlong mills = date.getTime();\n\t\t\t\treturn String.valueOf(mills);\n\t\t\t}", "private static Date parseISOTimestringWithMillis(String timestring) throws ParseException{\r\n boolean containsT = timestring.contains(\"T\");\r\n boolean containsSpace = timestring.contains(\" \");\r\n int len = timestring.length();\r\n char colonTZ = timestring.charAt(len-3);\r\n if(colonTZ == ':'){\r\n String part1 = timestring.substring(0, len-3);\r\n String part2 = timestring.substring(len-2, len);\r\n try{\r\n if(containsT){\r\n Date date = formatMiliSecsTZwT.parse(part1+part2);\r\n return date;\r\n }else if(containsSpace){\r\n Date date = formatMiliSecsTZ.parse(part1+part2);\r\n return date;\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n } catch(ParseException e){\r\n throw new ParseException(e.getMessage(), 0);\r\n }\r\n }\r\n else{\r\n throw new ParseException(\"Unsupported pattern!\", 0);\r\n }\r\n }", "public static String convertMillisTime(long time_millis, String format) {\n String result = \"\";\n if (time_millis <= 0) {\n return result;\n }\n\n try {\n SimpleDateFormat dateFormat = new SimpleDateFormat(format, Locale.US);\n result = dateFormat.format(new Date(time_millis));\n } catch (IllegalArgumentException e) {\n e.printStackTrace();\n }\n\n return result;\n }", "public static String toHumanReadableTime(long milliseconds) {\n StringBuilder sb = new StringBuilder();\n int len = TIME_UNITS.length;\n int i = 0;\n for (; i < len; i++) {\n long quotient = milliseconds / TIME_UNITS[i];\n if (quotient > 0) {\n if (sb.length() > 0) {\n sb.append(' ');\n }\n sb.append(quotient).append(TIME_UNITS_ABBR[i]);\n milliseconds = milliseconds % TIME_UNITS[i];\n }\n }\n if (sb.length() > 0) {\n if (milliseconds > 0) {\n sb.append(' ').append(milliseconds).append(TIME_UNITS_ABBR[i]);\n }\n } else {\n sb.append(milliseconds).append(TIME_UNITS_ABBR[i]);\n }\n return sb.toString();\n }", "public static String millisecondsToString(long milliseconds) {\n if (milliseconds == 0 || milliseconds < MINUTE_IN_MILLIS) {\n return \"0 min\";\n }\n\n String output = \"\";\n\n long hours = MILLISECONDS.toHours(milliseconds);\n if (hours > 0) {\n output = hours + \" hr \";\n }\n\n long minutes = MILLISECONDS.toMinutes(milliseconds);\n long leftOverMinutes = minutes - HOURS.toMinutes(hours);\n\n if (leftOverMinutes > 0) {\n output += leftOverMinutes + \" min\";\n }\n return output.trim();\n }", "public long toDurationMillis() {\r\n return FieldUtils.safeAdd(getEndMillis(), -getStartMillis());\r\n }", "public static SpeedInBytes fromStringToSpeedInBytes(String s) throws HTBException {\n final String BYTE_SPEED_PATTERN = \"(\\\\d+)([MmKk]b?)?\";\n final String MBYTE_PATTERN = \"[Mm]b?\";\n final String KBYTE_PATTERN = \"[Kk]b?\";\n Pattern speedPattern = Pattern.compile(BYTE_SPEED_PATTERN);\n Matcher speedMatcher = speedPattern.matcher(s);\n if (!speedMatcher.find()) {\n throw new HTBException(\"wrong argument of SpeedInBytes function\",\n new IllegalArgumentException(\"wrong string that represents speed in bytes\"), HTBException.WRONG_ARGUMENT_ERROR);\n }\n SpeedInBytes bytesSpeed = new SpeedInBytes();\n bytesSpeed.setSpeed(Integer.parseInt(speedMatcher.group(1)));\n String unit = speedMatcher.group(2);\n if (unit != null && unit.matches(MBYTE_PATTERN)) {\n bytesSpeed.setUnit(Unit.MBPS);\n } else {\n if (unit != null && unit.matches(KBYTE_PATTERN)) {\n bytesSpeed.setUnit(Unit.KBPS);\n } else {\n bytesSpeed.setUnit(Unit.BPS);\n }\n }\n return bytesSpeed;\n\n }", "public static Long timeStringToLong(String source) throws MarshalException\n {\n if (timePattern.matcher(source).matches())\n {\n try\n {\n long result = Long.parseLong(source);\n if (result < 0 || result >= TimeUnit.DAYS.toNanos(1))\n throw new NumberFormatException(\"Input long out of bounds: \" + source);\n return result;\n }\n catch (NumberFormatException e)\n {\n throw new MarshalException(String.format(\"Unable to make long (for time) from: '%s'\", source), e);\n }\n }\n\n // Last chance, attempt to parse as time string\n try\n {\n return parseTimeStrictly(source);\n }\n catch (IllegalArgumentException e1)\n {\n throw new MarshalException(String.format(\"(TimeType) Unable to coerce '%s' to a formatted time (long)\", source), e1);\n }\n }", "long toTimelineValue(long millisecond);", "public static long parse(String s, ByteUnit defaultUnit) throws NumberFormatException {\n\n // Value must be a floating point number followed by a unit.\n Pattern p = Pattern.compile(\"^\\\\s*(\\\\d+)\\\\s*(\\\\w+)?\\\\s*$\");\n Matcher m = p.matcher(s);\n\n if (!m.matches()) {\n throw new NumberFormatException(\"Invalid size value \\\"\" + s + \"\\\"\");\n }\n\n // Group 1 is the float.\n long l;\n\n try {\n l = Long.valueOf(m.group(1));\n } catch (NumberFormatException e) {\n throw new NumberFormatException(\"Invalid size value \\\"\" + s + \"\\\"\");\n }\n\n // Group 2 is the unit.\n String unitString = m.group(2);\n ByteUnit unit;\n\n if (unitString == null) {\n if (defaultUnit == null) {\n throw new NumberFormatException(\"Invalid size value \\\"\" + s + \"\\\"\");\n } else {\n unit = defaultUnit;\n }\n } else {\n try {\n unit = ByteUnit.valueOf(unitString.trim());\n } catch (IllegalArgumentException e) {\n throw new NumberFormatException(\"Invalid size value \\\"\" + s + \"\\\"\");\n }\n }\n\n return l * unit.value;\n }", "public static double meterToMillimeter(final double meter) {\n return meter / METERS_PER_MILLIMETER;\n }", "public static String formatDuration(int hours, int minutes, int seconds, int millis){\n Date tmpDate = new Date();\n long durationMillis = (hours * 60 * 60 * 1000) + (minutes * 60 * 1000) + (seconds * 1000) + millis;\n\n int totalHours = (int) Math.floor(durationMillis / 60 / 60 / 1000);\n int totalMinutes = (int) Math.floor((durationMillis - (totalHours * 60 * 60 * 1000)) / 60 / 1000);\n int totalSeconds = (int) Math.floor((durationMillis - (totalHours * 60 * 60 * 1000) - (totalMinutes * 60 * 1000)) / 1000);\n //Milliseconds are... whatever.\n\n tmpDate.setHours(totalHours);\n tmpDate.setMinutes(totalMinutes);\n tmpDate.setSeconds(totalSeconds);\n if(totalHours > 0){\n return HOURS_MINUTES_SECONDS.format(tmpDate);\n } else {\n return MINUTES_SECONDS.format(tmpDate);\n }\n }", "public long getDurationInMillis() {\n return Utilities.convertMinutesToMilliseconds(durationMinutes);\n }", "private Measurement parseMeasurement(Element e) {\n if (e != null && e.getNodeName().equals(\"measurement\")) {\n NumberFormat format = NumberFormat.getInstance(Locale.GERMANY);\n Number value;\n\n try {\n // get measurement Value\n value = format.parse(e.getAttribute(\"value\"));\n\n // get timeStamp\n LocalDateTime timeStamp = LocalDateTime\n .parse(e.getAttribute(\"timestamp\"));\n\n Measurement m = new Measurement(value.doubleValue(), timeStamp);\n return m;\n } catch (ParseException e1) {\n System.err.println(\n \"Value was not a Number with Germany formation (comma)\");\n return null;\n }\n } else {\n return null;\n }\n }", "public static String getFriendlyTime(long duration) {\n final StringBuilder sb = new StringBuilder();\n\n long months = TimeUnit.MILLISECONDS.toDays(duration);\n if (months >= 30) {\n months = months / 30;\n duration -= TimeUnit.DAYS.toMillis(months * 30);\n } else {\n months = 0;\n }\n\n final long years = months / 12;\n if (years > 0) {\n months -= Math.floor(years * 12);\n duration -= TimeUnit.DAYS.toMillis(years * 365);\n }\n\n final long days = TimeUnit.MILLISECONDS.toDays(duration);\n duration -= TimeUnit.DAYS.toMillis(days);\n\n final long hours = TimeUnit.MILLISECONDS.toHours(duration);\n duration -= TimeUnit.HOURS.toMillis(hours);\n\n final long minutes = TimeUnit.MILLISECONDS.toMinutes(duration);\n duration -= TimeUnit.MINUTES.toMillis(minutes);\n\n final long seconds = TimeUnit.MILLISECONDS.toSeconds(duration);\n\n if (years > 0) {\n sb.append(\" \").append(years);\n sb.append(\" \").append(years == 1 ? \"year\" : \"years\");\n }\n\n if (months > 0) {\n sb.append(\" \").append(months);\n sb.append(\" \").append(months == 1 ? \"month\" : \"months\");\n }\n\n if (days > 0) {\n sb.append(\" \").append(days);\n sb.append(\" \").append(days == 1 ? \"day\" : \"days\");\n }\n\n if (hours > 0) {\n sb.append(\" \").append(hours);\n sb.append(\" \").append(hours == 1 ? \"hour\" : \"hours\");\n }\n\n if (minutes > 0) {\n sb.append(\" \").append(minutes);\n sb.append(\" \").append(minutes == 1 ? \"minute\" : \"minutes\");\n }\n\n if (seconds > 0) {\n sb.append(\" \").append(seconds);\n sb.append(\" \").append(seconds == 1 ? \"second\" : \"seconds\");\n }\n\n return sb.toString().trim();\n }", "public static double milliToSeconds(long milli) {\n return milli / 1e3;\n }", "public static long parseLong(String val) {\n\t\tval = val.toUpperCase();\n\t\tint indx = val.indexOf(\"M\");\n\n\t\tint plus = 10000;\n\t\tif (indx < 0) {\n\t\t\tindx = val.indexOf(\"K\");\n\t\t\tplus = 1000;\n\t\t}\n\t\tif (indx > 0) {\n\t\t\tString longVal = val.substring(0, indx);\n\n\t\t\tlong theVale = Long.parseLong(longVal) * plus;\n\t\t\tString remain = val.substring(indx + 1);\n\t\t\tif (remain.length() > 0) {\n\t\t\t\ttheVale += Integer.parseInt(remain);\n\t\t\t}\n\t\t\treturn theVale;\n\t\t} else {\n\t\t\treturn Long.parseLong(val);\n\t\t}\n\n\t}", "private double convertSecondsToMinutes(int seconds) {\r\n int sec = seconds;\r\n int min = 0;\r\n while (sec > 60) {\r\n sec -= 60;\r\n min++;\r\n }\r\n return Double.valueOf(min + \".\" + sec);\r\n }", "public void millimetersPerSecond(Double val)\n\t{\n\t\tsetValue(val, VelocityUnit.MILLIMETERS_PER_SECOND);\n\t}", "static String timeConversion(String s) {\n String[] timeSplit = s.split(\":\");\n String hours = timeSplit[0];\n String minutes = timeSplit[1];\n String seconds = timeSplit[2].substring(0, 2);\n String ampm = timeSplit[2].substring(2, 4);\n\n String newHours;\n if (ampm.equals(\"AM\")) {\n newHours = hours.equals(\"12\") ? \"00\" : hours;\n\n } else {\n newHours = hours.equals(\"12\") ? hours : String.valueOf(Integer.parseInt(hours) + 12);\n }\n\n return newHours + \":\" + minutes + \":\" + seconds;\n\n }", "@SuppressLint(\"DefaultLocale\")\n public static String formatDuration(int duration) {\n duration /= 1000; // milliseconds into seconds\n int minute = duration / 60;\n int hour = minute / 60;\n minute %= 60;\n int second = duration % 60;\n if (hour != 0)\n return String.format(\"%2d:%02d:%02d\", hour, minute, second);\n else\n return String.format(\"%02d:%02d\", minute, second);\n }", "public static String showTime(long ms)\n {\n long minutes = ms/1000/60;\n long seconds = (ms - 1000*60*minutes)/1000;\n long millis = ms % 1000;\n return minutes + \"m \" + seconds + \"s \" + millis +\"ms\";\n }", "@Test public void Time_len_6()\t\t\t\t\t\t\t\t\t{tst_time_(\"041526\"\t\t\t\t\t, \"04:15:26.000\");}", "public Long calculateMilliseconds() {\n\t\tString stringMonth;\n\t\tString stringDay;\n\t\tString stringYear;\n\t\tString[] dateFragments;\n\t\tCalendar cal;\n\t\tint day;\n\t\tint month;\n\t\tint year;\n\t\t\n\t\tdateFragments = this.date.split(\"/\");\n\t\t\n\t\tstringMonth = dateFragments[0];\n\t\tstringDay = dateFragments[1];\n\t\tstringYear = dateFragments[2];\n\t\t\n\t\tmonth = Integer.parseInt(stringMonth) - 1; // (Firebase/Event: Jan == 1)\n\t\tday = Integer.parseInt(stringDay);\n\t\tyear = Integer.parseInt(stringYear);\n\t\t\n\t\tcal = Calendar.getInstance();\n\t\tcal.set(year, month, day); // (Calendar.java: Jan == 0)\n\t\t\n\t\treturn cal.getTimeInMillis();\n\t}", "private AbsTime(String t) throws NumberFormatException, Time.Ex_TimeNotAvailable\n {\n // Parse the string.\n parse(t);\n }" ]
[ "0.64193875", "0.6176199", "0.61719805", "0.6024493", "0.5870323", "0.57605344", "0.57151043", "0.5702215", "0.57008487", "0.56512654", "0.56493175", "0.5623042", "0.55541503", "0.5518908", "0.5474907", "0.54178864", "0.53862125", "0.5361134", "0.533673", "0.5311045", "0.5240048", "0.5227888", "0.5222019", "0.51919025", "0.5188048", "0.5158245", "0.51230735", "0.51081896", "0.5069913", "0.5065586", "0.50617707", "0.50505674", "0.504381", "0.5040607", "0.50225717", "0.50208676", "0.5004999", "0.49938425", "0.49830198", "0.4963595", "0.49572635", "0.4957156", "0.49495634", "0.494661", "0.49366158", "0.49346125", "0.49342695", "0.49324188", "0.4931052", "0.49243566", "0.49225813", "0.49129426", "0.4895594", "0.48751995", "0.48714033", "0.48633784", "0.48470795", "0.48314703", "0.4775122", "0.4770289", "0.4761033", "0.47584924", "0.47526225", "0.4740513", "0.47401127", "0.4726559", "0.47244072", "0.47174066", "0.4701141", "0.4700524", "0.46870986", "0.468232", "0.46808612", "0.4679633", "0.467158", "0.4669153", "0.4668022", "0.46450177", "0.46204683", "0.46173608", "0.4608571", "0.46035457", "0.46021074", "0.4600064", "0.4597311", "0.45917118", "0.4569006", "0.45673776", "0.45609215", "0.45592195", "0.45584214", "0.4557427", "0.4549902", "0.4543654", "0.45432523", "0.4543238", "0.4542432", "0.45362732", "0.4529308", "0.45283368" ]
0.69804555
0
Extends the given date until the end of the day.
public static Date extendUntilEndOfDay(Date date) { return DateUtils.addMilliseconds(DateUtils.addDays(DateUtils.truncate(date, Calendar.DAY_OF_MONTH), 1), -1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Date setToEndOfDay(Date date) {\n\t\t\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(date);\n\t\tcal.set(Calendar.HOUR_OF_DAY, 23);\n\t cal.set(Calendar.MINUTE, 59);\n\t cal.set(Calendar.SECOND, 59);\n\t cal.set(Calendar.MILLISECOND, 999);\n\t return cal.getTime();\n\t}", "public void setUntilDate(Date date);", "public Date getEndOfDay(Date date) {\n\t Calendar calendar = Calendar.getInstance();\n\t calendar.setTime(date);\n\t calendar.set(Calendar.HOUR_OF_DAY, 23);\n\t calendar.set(Calendar.MINUTE, 59);\n\t calendar.set(Calendar.SECOND, 59);\n\t calendar.set(Calendar.MILLISECOND, 999);\n\t return calendar.getTime();\n\t}", "public static Date getEndOfDay(Date date)\n {\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(date);\n calendar.set(Calendar.HOUR_OF_DAY, 23);\n calendar.set(Calendar.MINUTE, 59);\n calendar.set(Calendar.SECOND, 59);\n calendar.set(Calendar.MILLISECOND, 999);\n return calendar.getTime();\n }", "Date getEndDay();", "public void setEndDate(java.util.Date value);", "protected void end( LocalDate date ) {\n\t\t//optional to implement, default noop\n\t\t}", "public void setEndDate(Date value) {\r\n this.endDate = value;\r\n }", "public CommonAlert dateEnd(Date dateEnd) {\n this.dateEnd = dateEnd;\n return this;\n }", "public static Date getEnd(Date date) {\n if (date == null) {\n return null;\n }\n Calendar c = Calendar.getInstance();\n c.setTime(date);\n c.set(Calendar.HOUR_OF_DAY, 23);\n c.set(Calendar.MINUTE, 59);\n c.set(Calendar.SECOND, 59);\n c.set(Calendar.MILLISECOND, 999);\n return c.getTime();\n }", "Date getEndDate();", "Date getEndDate();", "public void setEnddate(Date enddate) {\r\n this.enddate = enddate;\r\n }", "protected void addDay(Date date) throws Exception {\n Calendar cal = DateHelper.newCalendarUTC();\n cal.setTime(date);\n String datecode = cal.get(Calendar.YEAR) + \"-\" + (cal.get(Calendar.MONTH) + 1) + \"-\" + cal.get(Calendar.DAY_OF_MONTH);\n affectedDays.put(datecode, date);\n Date rDate = DateHelper.roundDownLocal(date);\n datesTodo.add(rDate);\n }", "public void setEndDate(Date value)\n {\n\n validateEndDate(value);\n setAttributeInternal(ENDDATE, value);\n \n }", "void setEndDate(Date endDate);", "public void goToDate(@NonNull Calendar date) {\n Calendar modifiedDate = (Calendar) date.clone();\n\n // If a minimum or maximum date is set, don't allow to go beyond them.\n if (config.minDate != null && modifiedDate.before(config.minDate)) {\n modifiedDate = (Calendar) config.minDate.clone();\n } else if (config.maxDate != null && modifiedDate.after(config.maxDate)) {\n modifiedDate = (Calendar) config.maxDate.clone();\n modifiedDate.add(Calendar.DAY_OF_YEAR, 1 - config.numberOfVisibleDays);\n } else if (config.numberOfVisibleDays >= 7 && config.showFirstDayOfWeekFirst) {\n final int diff = config.drawingConfig.computeDifferenceWithFirstDayOfWeek(config, date);\n modifiedDate.add(Calendar.DAY_OF_YEAR, (-1) * diff);\n }\n\n gestureHandler.forceScrollFinished();\n\n if (viewState.areDimensionsInvalid) {\n viewState.setScrollToDay(modifiedDate);\n return;\n }\n\n viewState.setShouldRefreshEvents(true);\n\n int diff = DateUtils.getDaysUntilDate(modifiedDate);\n\n config.drawingConfig.currentOrigin.x = diff * (-1) * config.getTotalDayWidth();\n viewState.requiresPostInvalidateOnAnimation = true;\n invalidate();\n }", "void setEventEndDate(Date endEventDate);", "public void convertEndDate(Date date) {\r\n endTime = new java.sql.Timestamp(date.getTime());\r\n }", "public void setEndDate(String date){\n\t\tthis.endDate = date;\n\t}", "private void startEndDay(int day,int month,int year) {\n int dayNum = CalendarEx.convertDay(CalendarDate.getDay(day, month, year));\n startDay = CalendarDate.moveDay(-dayNum, new CalendarDate(day,month,year));\n endDay = CalendarDate.moveDay(-dayNum+6, new CalendarDate(day,month,year));\n }", "public void advance() {\n\n if (length == Length.DAILY) {\n startDate.add(Calendar.DATE, 1);\n } else if (length == Length.WEEKLY) {\n startDate.add(Calendar.WEEK_OF_YEAR, 1);\n } else if (length == Length.BIWEEKLY) {\n startDate.add(Calendar.DATE, 14);\n } else if (length == Length.MONTHLY) {\n startDate.add(Calendar.MONTH, 1);\n } else if (length == Length.YEARLY) {\n startDate.add(Calendar.YEAR, 1);\n }\n\n calculateEndDate();\n\n }", "@Override\n public void clickDateNextDay() {\n\n if (DateUtil.isLastDate()) {\n final WebElement divElement = DriverConfig.getDriver().findElement(\n By.id(\"ui-datepicker-div\"));\n final WebElement nextElement = retrieveElementByAttributeValueContainsForSubElement(\n DriverConfig.getDriver(), divElement, TAG_SPAN, ATTR_CLASS,\n \"ui-icon ui-icon-circle-triangle-e\", SHORT_TIMEOUT);\n nextElement.click();\n changeAwayDateValue(\"1\");\n } else {\n int current = DateUtil.getCurrentDate();\n changeAwayDateValue(String.valueOf(current + 1));\n }\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getEndDate();", "public void setEndDate(Date eDate) throws IllegalArgumentException {\n\t\tif (eDate == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tendDate = eDate;\n\t\tupdateAvailability(\"\");\n\t}", "public Date getEndDate();", "public Date getEndDate();", "public void setEndDate(Date end)\r\n {\r\n this.endDate = end;\r\n }", "public void setDtEnd(Date dtEnd) {\r\n this.dtEnd = dtEnd;\r\n }", "public static void setEndOfDay(Calendar calendar) {\r\n\t\tcalendar.add(Calendar.DATE, 1);\r\n\t\tcalendar.set(Calendar.HOUR_OF_DAY, 0);\r\n\t\tcalendar.set(Calendar.MINUTE, 0);\r\n\t\tcalendar.set(Calendar.SECOND, 0);\r\n\t\tcalendar.set(Calendar.MILLISECOND, 0);\r\n\t}", "long getEndDate();", "long getEndDate();", "public Builder setEndDate(long value) {\n bitField0_ |= 0x00000080;\n endDate_ = value;\n\n return this;\n }", "protected Date getUntilDate() {\n\t\treturn until;\n\t}", "public Date afterNDays(int n) throws IllegalArgumentException{\n\t if (n < 0)\n\t throw new IllegalArgumentException(\"Enter a positive number!\");\n\t Date result = new Date(this.day, this.month, this.year);\n\t for (int i = 0; i < n; i++)\n\t result = result.tomorrow();\n\t return result;\n }", "public Date getEnddate() {\r\n return enddate;\r\n }", "public static Date lastDay(final Date date) {\n final Calendar cal = new GregorianCalendar();\n cal.setTime(date);\n cal.set(Calendar.DAY_OF_MONTH, cal.getActualMaximum(Calendar.DAY_OF_MONTH));\n cal.set(Calendar.HOUR_OF_DAY, 23);\n cal.set(Calendar.MINUTE, 59);\n cal.set(Calendar.SECOND, 59);\n cal.set(Calendar.MILLISECOND, 999);\n return cal.getTime();\n }", "public void setDateEnd_CouponsTab_Marketing() {\r\n\t\tthis.dateEnd_CouponsTab_Marketing.clear();\r\n\t\tSimpleDateFormat formattedDate = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tc.add(Calendar.DATE, 1);\r\n\t\tString tomorrow = (String) (formattedDate.format(c.getTime()));\r\n\t\tSystem.out.println(\"tomorrows date is \"+tomorrow);\r\n\t\tthis.dateEnd_CouponsTab_Marketing.sendKeys(tomorrow);\r\n\t}", "@Override\n\tprotected void setNextSiegeDate()\n\t{\n\t\tif(_siegeDate.getTimeInMillis() < Calendar.getInstance().getTimeInMillis())\n\t\t{\n\t\t\t_siegeDate = Calendar.getInstance();\n\t\t\t// Осада не чаще, чем каждые 4 часа + 1 час на подготовку.\n\t\t\tif(Calendar.getInstance().getTimeInMillis() - getSiegeUnit().getLastSiegeDate() * 1000L > 14400000)\n\t\t\t\t_siegeDate.add(Calendar.HOUR_OF_DAY, 1);\n\t\t\telse\n\t\t\t{\n\t\t\t\t_siegeDate.setTimeInMillis(getSiegeUnit().getLastSiegeDate() * 1000L);\n\t\t\t\t_siegeDate.add(Calendar.HOUR_OF_DAY, 5);\n\t\t\t}\n\t\t\t_database.saveSiegeDate();\n\t\t}\n\t}", "public static LocalDateTime getEndOfDay(LocalDateTime dateTime) {\n return dateTime.withHour(23).withMinute(59).withSecond(59);\n }", "public Builder until(Date until, boolean hasTime) {\n\t\t\tthis.until = new ICalDate(until, hasTime);\n\t\t\treturn this;\n\t\t}", "public void setEND_DATE(Date END_DATE) {\n this.END_DATE = END_DATE;\n }", "public static Date getEndTimeToDate(final Date date) {\n final Calendar calendar = Calendar.getInstance();\n calendar.setTime(date);\n calendar.set(Calendar.HOUR_OF_DAY, 23);\n calendar.set(Calendar.MINUTE, 59);\n calendar.set(Calendar.SECOND, 59);\n return calendar.getTime();\n }", "LocalDate getCollectionEndDate();", "public void setEndServiceDate(Date value) {\n setAttributeInternal(ENDSERVICEDATE, value);\n }", "public Date getEarliestFinishingDate();", "public static void resetDates() {\n arrivalDate = LocalDate.now();\n departureDate = arrivalDate.plusDays(1);\n }", "protected Date getUntilInclusiveDate() {\n\t\treturn untilInclusive;\n\t}", "private String makeEventEnd(LocalDateTime date) {\n String name = \"DTEND\";\n return formatTimeProperty(date, name) + \"\\n\";\n }", "public Builder setEndDate(long value) {\n \n endDate_ = value;\n onChanged();\n return this;\n }", "public void setEndDate(java.sql.Date newEndDate) {\n\tendDate = newEndDate;\n}", "public void setEndDate(Date endDate) {\r\n this.endDate = endDate;\r\n }", "public void setEndDate(Date endDate) {\r\n this.endDate = endDate;\r\n }", "@Override\n\tpublic Long updateEndDate() {\n\t\treturn null;\n\t}", "private Date plusDays(Date orderDate, String brand, String level) {\n Calendar c = Calendar.getInstance();\n c.setTime(orderDate);\n int numberDays = PriceList.returnNumberDays(brand, level);\n c.add(Calendar.DATE, numberDays);\n return c.getTime();\n }", "public void xsetEndExecDate(org.apache.xmlbeans.XmlDate endExecDate)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlDate target = null;\n target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(ENDEXECDATE$10, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlDate)get_store().add_element_user(ENDEXECDATE$10);\n }\n target.set(endExecDate);\n }\n }", "public referential.store.v2.WeekPattern.Builder clearEndDate() {\n endDate = null;\n fieldSetFlags()[2] = false;\n return this;\n }", "public void setREQ_END_DATE(java.sql.Date value)\n {\n if ((__REQ_END_DATE == null) != (value == null) || (value != null && ! value.equals(__REQ_END_DATE)))\n {\n _isDirty = true;\n }\n __REQ_END_DATE = value;\n }", "public void setEndDate(Date endDate) {\n this.endDate = endDate;\n }", "public void setEndDate(Date endDate) {\n this.endDate = endDate;\n }", "public void setEndDate(Date endDate) {\n this.endDate = endDate;\n }", "public void setServiceEndDate(Date value) {\n setAttributeInternal(SERVICEENDDATE, value);\n }", "public void setEndDay(java.lang.String param) {\r\n localEndDayTracker = param != null;\r\n\r\n this.localEndDay = param;\r\n }", "@Test\r\n public void testAddDaysToDate() {\r\n LocalDate date1 = LocalDate.parse(\"2018-03-21\");\r\n Date res1 = DateUtil.addDaysToDate(Date.from(date1.atStartOfDay(ZoneId.systemDefault()).toInstant()), 6);\r\n assertTrue(LocalDate.parse(\"2018-03-28\").equals(res1.toInstant().atZone(ZoneId.systemDefault()).toLocalDate()));\r\n\r\n date1 = LocalDate.parse(\"2018-04-06\");\r\n Date res2 = DateUtil.addDaysToDate(Date.from(date1.atStartOfDay(ZoneId.systemDefault()).toInstant()), 4);\r\n assertTrue(LocalDate.parse(\"2018-04-11\").equals(res2.toInstant().atZone(ZoneId.systemDefault()).toLocalDate()));\r\n\r\n date1 = LocalDate.parse(\"2018-12-21\");\r\n Date res3 = DateUtil.addDaysToDate(Date.from(date1.atStartOfDay(ZoneId.systemDefault()).toInstant()), 5);\r\n assertTrue(LocalDate.parse(\"2018-12-28\").equals(res3.toInstant().atZone(ZoneId.systemDefault()).toLocalDate()));\r\n\r\n }", "public Builder clearEndDate() {\n \n endDate_ = 0L;\n onChanged();\n return this;\n }", "public LocalDate getEndDate() { return this.endDate; }", "public Builder clearEndDate() {\n bitField0_ = (bitField0_ & ~0x00000080);\n endDate_ = 0L;\n\n return this;\n }", "public void addUsedEDay(Integer date) {\n pastEDays.add(date);\n }", "public void setEndDate(@Nullable DateWithOffset endDate) {\r\n this.endDate = endDate;\r\n }", "public Date getEndDate() {\r\n return this.endDate;\r\n }", "public void appendToReminders(Date reminders);", "public Date getEndDate()\r\n {\r\n return this.endDate;\r\n }", "@Test\r\n public void testSubDays1() {\n Calendar cal = Calendar.getInstance();\r\n cal.add(Calendar.DAY_OF_MONTH, -25);\r\n System.out.println(\"The day after increment is: \" + cal.getTime());\r\n }", "public Date getEndDate() {\r\n return endDate;\r\n }", "public Date getEndDate() {\r\n return endDate;\r\n }", "@Test\r\n public void testSubDay2(){\n int amount = -25;\r\n dateTime myDate = new dateTime(25, 4, 2019);\r\n System.out.println(\"The day before increment is: 25-4-2019\");\r\n dateTime addOrSubDays = myDate.addOrSubDays(amount);\r\n System.out.println(\"The day after increment is: \" + addOrSubDays.getDay() + \"-\" + addOrSubDays.getMonth() + \"-\" + addOrSubDays.getYear());\r\n assertEquals(\"The day after increment is: 31-3-2019\",\"The day after increment is: \" + addOrSubDays.getDay() + \"-\" + addOrSubDays.getMonth() + \"-\" + addOrSubDays.getYear());\r\n }", "public void updateAttendance(Date date);", "public void addToReminders(Date reminders);", "public static LocalDate getDayAfterTomorrow() {\n\t\treturn LocalDate.now().plus(Period.ofDays(2));\n\t}", "public void endOfRentalPeriod(Integer mileageAfter, LocalDate dateEnd) {\r\n this.mileageAfter = mileageAfter;\r\n this.dateEnd = dateEnd;\r\n }", "public void setDepartureDate(Date departureDate);", "Integer getEndDay();", "protected abstract void calcNextDate();", "@Override\n\tpublic void eventDate(Date newDate) {\n\t\t\n\t}", "public static boolean isAfterDay(Date date1, Date date2) {\n if (date1 == null || date2 == null) {\n throw new IllegalArgumentException(\"The dates must not be null\");\n }\n Calendar cal1 = Calendar.getInstance();\n cal1.setTime(date1);\n Calendar cal2 = Calendar.getInstance();\n cal2.setTime(date2);\n return isAfterDay(cal1, cal2);\n }", "public Calendar endOfDay() {\r\n\t\t\r\n\t\tCalendar c2 = Calendar.getInstance(baseCalendar.getTimeZone());\r\n\t\tc2.clear();\r\n\t\tc2.set(baseCalendar.get(Calendar.YEAR), \r\n\t\t\t\tbaseCalendar.get(Calendar.MONTH),\r\n\t\t\t\tbaseCalendar.get(Calendar.DATE) + 1);\r\n\r\n\t\treturn c2;\t\t\r\n\t}", "@Test\n\tpublic void testChangeReservationEndExtendEnd() throws Exception {\n\n\t\tCalendar cal = Calendar.getInstance();\n\t\tDate start = cal.getTime();\n\t\tcal.add(Calendar.HOUR, 1);\n\t\tDate end = cal.getTime();\n\t\tcal.add(Calendar.HOUR, +1);\n\t\tDate newEnd = cal.getTime();\n\n\t\tReservation res1 = dataHelper.createPersistedReservation(USER_ID, new ArrayList<String>(), start, end);\n\n\t\tbookingManagement.changeReservationEnd(res1.getId(), newEnd);\n\n\t\tres1 = bookingManagement.getReservation(res1.getId());\n\t\tassertNotNull(res1);\n\t\t// check if reservation is changed successfully\n\t\tassertEquals(newEnd, res1.getEndTime());\n\t\tassertEquals(start, res1.getStartTime());\n\t}", "public void setToDate(Date toDate) {\n this.toDate = DateIntervalUtils.makeIntervalToDate(fromDate, toDate);\n }", "public void setAfter(Period after) {\n to = LocalDate.now(ZoneOffset.UTC).plus(after).plusDays(1).atStartOfDay();\n }", "private void setDay() {\n Boolean result = false;\n for (int i = 0; i < 7; ++i) {\n if(mAlarmDetails.getRepeatingDay(i))\n result = true;\n mAlarmDetails.setRepeatingDay(i, mAlarmDetails.getRepeatingDay(i));\n }\n if(!result)\n mAlarmDetails.setRepeatingDay((Calendar.getInstance().get(Calendar.DAY_OF_WEEK) - 1), true);\n }", "public Date getEndDate() {\n return endDate;\n }", "public Date getEndDate() {\n return endDate;\n }", "public Date getEndDate() {\n return endDate;\n }", "public Date getEndDate() {\n return endDate;\n }", "public abstract void setEndTime(Date endTime);", "public void setValidUntil(Date validUntil);", "public static Date truncateDate(java.util.Date value)\n {\n Calendar cal = GregorianCalendar.getInstance();\n cal.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n cal.setTimeInMillis(value.getTime());\n cal.set(Calendar.MILLISECOND, 0);\n cal.set(Calendar.SECOND, 0);\n cal.set(Calendar.MINUTE, 0);\n cal.set(Calendar.HOUR_OF_DAY, 0);\n\n Date dayOnlyDate = cal.getTime();\n // Done\n return dayOnlyDate;\n }", "abstract public void setServiceAppointment(Date serviceAppointment);", "public static Date getLastTimeOfDay(Date date) {\n date = Dates.sum(date, 1, Calendar.DAY_OF_YEAR);\n date = Dates.sum(date, -1, Calendar.SECOND);\n return date;\n }", "@Test\n public void testEndDateChange() throws Exception {\n EventData deltaEvent = prepareDeltaEvent(createdEvent);\n Calendar date = Calendar.getInstance();\n date.setTimeInMillis(date.getTimeInMillis() + TimeUnit.HOURS.toMillis(4));\n deltaEvent.setEndDate(DateTimeUtil.getDateTime(date));\n\n updateEventAsOrganizer(deltaEvent);\n\n /*\n * Check that end date has been updated\n */\n AnalyzeResponse analyzeResponse = receiveUpdateAsAttendee(PartStat.NEEDS_ACTION, CustomConsumers.ACTIONS);\n AnalysisChange change = assertSingleChange(analyzeResponse);\n assertSingleDescription(change, \"The appointment was rescheduled.\");\n }" ]
[ "0.7095787", "0.6520029", "0.63282466", "0.62558824", "0.61308646", "0.600853", "0.5976809", "0.5884086", "0.5850088", "0.58098924", "0.579355", "0.579355", "0.57792294", "0.57104117", "0.5705233", "0.5663074", "0.5660271", "0.56028146", "0.5597724", "0.55667603", "0.5549183", "0.55284643", "0.5492503", "0.54889923", "0.5488976", "0.54674846", "0.54674846", "0.5461473", "0.5455461", "0.5446201", "0.54038024", "0.54038024", "0.53758746", "0.53611225", "0.5361086", "0.535595", "0.5353982", "0.53423816", "0.52794605", "0.52775186", "0.52407783", "0.5240144", "0.52353156", "0.52291775", "0.5218031", "0.52066517", "0.52013594", "0.51953167", "0.51915205", "0.5181783", "0.5173047", "0.51720893", "0.51720893", "0.5167936", "0.51594144", "0.5153983", "0.5124064", "0.5122156", "0.51171446", "0.51171446", "0.51171446", "0.51113623", "0.50854117", "0.50538", "0.5052596", "0.50484484", "0.5046632", "0.5023109", "0.5006515", "0.49901873", "0.49885282", "0.49804053", "0.49765062", "0.49761885", "0.49761885", "0.4975234", "0.49734798", "0.49732414", "0.49705967", "0.4965057", "0.49648353", "0.49583694", "0.495487", "0.4948654", "0.49456567", "0.4943996", "0.49380597", "0.49360418", "0.49191415", "0.49153793", "0.49151495", "0.49151495", "0.49151495", "0.49151495", "0.49131918", "0.4909637", "0.4904967", "0.48973715", "0.48945987", "0.4890494" ]
0.763368
0
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.nav_drawer_place_search, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.79046714", "0.78065175", "0.7766765", "0.7727237", "0.76320195", "0.7622174", "0.7585192", "0.75314754", "0.74888134", "0.7458358", "0.7458358", "0.7438547", "0.7421898", "0.7402884", "0.73917156", "0.738695", "0.73795676", "0.73704445", "0.7361756", "0.7356012", "0.7345615", "0.7341667", "0.7331483", "0.73293763", "0.73263687", "0.73189044", "0.73166656", "0.73135996", "0.7304286", "0.7304286", "0.7301858", "0.72982585", "0.7293724", "0.72870094", "0.72835064", "0.7281258", "0.7278845", "0.72600037", "0.7259943", "0.7259943", "0.7259943", "0.7259806", "0.72501236", "0.7224222", "0.7219659", "0.7217153", "0.7204567", "0.7200747", "0.7200617", "0.7194191", "0.7185161", "0.71786165", "0.7168641", "0.71677953", "0.7154376", "0.7154097", "0.7136827", "0.7135085", "0.7135085", "0.7129693", "0.712958", "0.71244156", "0.71234775", "0.7123202", "0.7122462", "0.7117733", "0.711737", "0.711737", "0.711737", "0.711737", "0.7117254", "0.7117077", "0.71151257", "0.7112254", "0.7109952", "0.71089965", "0.71060926", "0.71002764", "0.70987266", "0.7095545", "0.7094154", "0.7094154", "0.70867133", "0.7082234", "0.7081284", "0.7080377", "0.70740104", "0.7068733", "0.706227", "0.7061052", "0.70605934", "0.70518696", "0.70381063", "0.70381063", "0.7036213", "0.7035876", "0.7035876", "0.7033369", "0.70309347", "0.702967", "0.70193934" ]
0.0
-1
Handle navigation view item clicks here.
@SuppressWarnings("StatementWithEmptyBody") @Override public boolean onNavigationItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.nav_camera) { Intent intent=new Intent(NavDrawerPlaceSearchActivity.this,NavDrawerMainMenuActivity.class); startActivity(intent); // Handle the camera action } else if (id == R.id.nav_gallery) { } else if (id == R.id.nav_slideshow) { } else if (id == R.id.nav_manage) { } else if (id == R.id.nav_share) { } else if (id == R.id.nav_send) { } DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); drawer.closeDrawer(GravityCompat.START); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }", "void onDialogNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tracks, getAdapterPosition());\n }", "@Override\n public void onClickItem(MeowBottomNavigation.Model item) {\n }", "@Override\n public void onClickItem(MeowBottomNavigation.Model item) {\n }", "@Override\n public void onClick(View view) {\n listener.menuButtonClicked(view.getId());\n }", "@Override\r\n\tpublic boolean onNavigationItemSelected(int itemPosition, long itemId) {\n\t\tLog.d(\"SomeTag\", \"Get click event at position: \" + itemPosition);\r\n\t\tswitch (itemPosition) {\r\n\t\tcase 1:\r\n\t\t\tIntent i = new Intent();\r\n\t\t\ti.setClass(getApplicationContext(), MainActivity.class);\r\n\t\t\tstartActivity(i);\r\n\t\t\t//return true;\r\n\t\t\tbreak;\r\n\t\tcase 2 :\r\n\t\t\tIntent intent = new Intent(this,WhiteListActivity.class);\r\n\t\t\tstartActivity(intent);\r\n\t\t\t//return true;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String name = navDrawerItems.get(position).getListItemName();\n // call a helper method to perform a corresponding action\n performActionOnNavDrawerItem(name);\n }", "@Override\n\tpublic void rightNavClick() {\n\t\t\n\t}", "@Override\n public void OnItemClick(int position) {\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (itemClicked != null)\n\t\t\t\t\titemClicked.OnItemClicked((BusinessType)item.getTag(), item);\n\t\t\t}", "@Override\n public void onClick(View view) {\n clickListener.onItemClicked(getBindingAdapterPosition());\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\thandleClick(position);\n\t\t\t}", "@Override\n public void onItemClicked(int itemPosition, Object dataObject) {\n }", "@Override\n public void onItemClick(int pos) {\n }", "@Override\n public void onClick(View v) {\n if (listener != null)\n listener.onItemClick(itemView, getPosition());\n }", "private void handleNavClick(View view) {\n final String label = ((TextView) view).getText().toString();\n if (\"Logout\".equals(label)) {\n logout();\n }\n if (\"Profile\".equals(label)) {\n final Intent intent = new Intent(this, ViewProfileActivity.class);\n startActivity(intent);\n }\n if (\"Search\".equals(label)){\n final Intent intent = new Intent(this, SearchActivity.class);\n startActivity(intent);\n }\n if (\"Home\".equals(label)) {\n final Intent intent = new Intent(this, HomeActivity.class);\n startActivity(intent);\n }\n }", "void onMenuItemClicked();", "@Override\n public void onClick(View view) {\n\n switch (view.getId()) {\n case R.id.tvSomeText:\n listener.sendDataToActivity(\"MainActivity: TextView clicked\");\n break;\n\n case -1:\n listener.sendDataToActivity(\"MainActivity: ItemView clicked\");\n break;\n }\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tMainActivity sct = (MainActivity) act;\n\t\t\t\t\t\t\t\t\tsct.onItemClick(posit2, 11);\n\t\t\t\t\t\t\t\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t\t\t}", "@Override\n public void onClick(View v) {\n listener.onItemClick(v, position);\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\n\t}", "@Override\n public void onItemClick(View view, String data) {\n }", "abstract public void onSingleItemClick(View view);", "@Override\n public void onClick(View v) {\n this.itemClickListener.onItemClick(v, getLayoutPosition());\n }", "@Override\n public void itemClick(int pos) {\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {\n TextView textView = (TextView)view;\n switch(textView.getText().toString()){\n case \"NavBar\":\n Intent nav = new Intent(this, NavDrawerActivity.class);\n startActivity(nav);\n break;\n }\n\n //Toast.makeText(MainActivity.this,\"Go to \" + textView.getText().toString() + \" page.\",Toast.LENGTH_LONG).show();\n }", "@Override\r\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\r\n\t}", "@Override\n\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\n\t\t}", "@Override\n public void onItemClick(Nson parent, View view, int position) {\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\t\t\t\t\tlong arg3) {\n\t\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void onClick(View view) {\n int position = getAdapterPosition();\n\n // Check if listener!=null bcz it is not guarantee that we'll call setOnItemClickListener\n // RecyclerView.NO_POSITION - Constant for -1, so that we don't click item at Invalid position (safety measure)\n if (listener != null && position != RecyclerView.NO_POSITION) {\n //listener.onItemClick(notes.get(position)); - used in RecyclerView.Adapter\n listener.onItemClick(getItem(position)); // getting data from superclass\n }\n }", "@Override\n public void onClick(View v) {\n itemClickListener.itemClicked(movieId, v);\n }", "@Override\n\t\tpublic void onClick(View view) {\n\t\t\tif (iOnItemClickListener != null) {\n\t\t\t\tiOnItemClickListener.onItemClick(view, null, getAdapterPosition());\n\t\t\t}\n\t\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}", "public void onItemClick(View view, int position);", "@Override\n public void onClick(View v) {\n if (mListener != null){\n mListener.onItemClick(itemView, getLayoutPosition());\n }\n }", "@Override\n public void onItemClick(int position) {\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\titemClickListener.Callback(itemInfo);\n\t\n\t\t\t}", "@Override\n public void onItemClick(View view, int position) {\n }", "@Override\n public void onItemClick(View view, int position) {\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t}", "@Override\n public void onItemOfListClicked(Object o) {\n UserProfileFragmentDirections.ActionUserProfileFragmentToEventProfileFragment action = UserProfileFragmentDirections.actionUserProfileFragmentToEventProfileFragment((MyEvent) o);\n navController.navigate(action);\n }", "@Override\n public void onClick(View view) {\n if(mFrom.equals(NetConstants.BOOKMARK_IN_TAB)) {\n IntentUtil.openDetailActivity(holder.itemView.getContext(), NetConstants.G_BOOKMARK_DEFAULT,\n bean.getArticleUrl(), position, bean.getArticleId());\n }\n else {\n IntentUtil.openDetailActivity(holder.itemView.getContext(), mFrom,\n bean.getArticleUrl(), position, bean.getArticleId());\n }\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_ds_note) {\n // Handle the camera action\n } else if (id == R.id.nav_ds_todo) {\n\n } else if (id == R.id.nav_ql_the) {\n\n } else if (id == R.id.nav_tuychinh) {\n Intent intent = new Intent(this, CustomActivity.class);\n startActivity(intent);\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\t\t\t\t\t\tint position, long id) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}", "@Override\n public void onItemClick(View view, ListItem obj, int position) {\n }", "@Override\n\tpublic void onItemClick(Object o, int position) {\n\n\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\n\t\t\t}", "void onLinkClicked(@Nullable ContentId itemId);", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:\n Intent homeIntent = new Intent(this, MainActivity.class);\n startActivity(homeIntent);\n break;\n case R.id.send_email:\n Intent mailIntent = new Intent(this, ContactActivity.class);\n startActivity(mailIntent);\n break;\n case R.id.send_failure_ticket:\n Intent ticketIntent = new Intent(this, TicketActivity.class);\n startActivity(ticketIntent);\n break;\n case R.id.position:\n Intent positionIntent = new Intent(this, LocationActivity.class);\n startActivity(positionIntent);\n break;\n case R.id.author:\n UrlRedirect urlRed = new UrlRedirect(this.getApplicationContext(),getString(R.string.linkedinDeveloper));\n urlRed.redirect();\n break;\n default:\n break;\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout_main_activity);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@SuppressWarnings(\"ConstantConditions\")\n public void onItemClicked(@NonNull Item item) {\n getView().openDetail(item);\n }", "void onItemClick(View view, int position);", "@Override\n public void onClick(View v) {\n startNavigation();\n }", "void onItemClick(int position);", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_logs) {\n startActivity(new Intent(this, LogView.class));\n } else if (id == R.id.nav_signOut) {\n signOut();\n }\n\n DrawerLayout drawer = findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public void onClick(View v) {\n if(listener!=null & getLayoutPosition()!=0)\n listener.onItemClick(itemView, getLayoutPosition());\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\t\tpresenter.onItemClicked(position);\n\t}", "@Override\n public void onClick(View view) {\n listener.onMenuButtonSelected(view.getId());\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tHashMap<String, Object> item = (HashMap<String, Object>) arg0\n\t\t\t\t\t\t.getAdapter().getItem(arg2);\n\n\t\t\t\tIntent intent = new Intent(ViewActivity.this,\n\t\t\t\t\t\tContentActivity.class);\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\tbundle.putString(\"_id\", item.get(\"_id\").toString());\n\t\t\t\tbundle.putString(\"_CityEventID\", item.get(\"_CityEventID\")\n\t\t\t\t\t\t.toString());\n\t\t\t\tbundle.putString(\"_type\", String.valueOf(_type));\n\t\t\t\tintent.putExtras(bundle);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onClick(View view) {\n Navigation.findNavController(view).navigate(R.id.addEventFragment);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Log.w(TAG , \"POSITION : \" + position);\n\n itemClick(position);\n }", "void clickItem(int uid);", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_categories) {\n Intent intent = new Intent(getApplicationContext(), CategoryActivity.class);\n startActivity(intent, compat.toBundle());\n newsHere.setSourceActivity(\"search\");\n newsHere.setTargetActivity(\"category\");\n\n } else if (id == R.id.nav_top_headlines) {\n newsHere.setSourceActivity(\"search\");\n newsHere.setTargetActivity(\"home\");\n Intent intent = new Intent(getApplicationContext(), HomeActivity.class);\n startActivity(intent, compat.toBundle());\n } else if (id == R.id.nav_search) {\n // Do nothing\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public void onItemClick(View view, int position) {\n\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_orders) {\n\n Intent orderStatusIntent = new Intent(Home.this , OrderStatus.class);\n startActivity(orderStatusIntent);\n\n } else if (id == R.id.nav_banner) {\n\n Intent bannerIntent = new Intent(Home.this , BannerActivity.class);\n startActivity(bannerIntent);\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n }", "public void onItemClick(View view, int position) {\n\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t}", "@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\r\n\t\t\t\t\tlong arg3) {\n\r\n\t\t\t}", "void onClick(View item, View widget, int position, int which);", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n\n\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n Intent intent;\n switch(item.getItemId()){\n case R.id.nav_home:\n finish();\n intent = new Intent(this, NavigationActivity.class);\n startActivity(intent);\n return true;\n case R.id.nav_calendar:\n finish();\n intent = new Intent(this, EventHome.class);\n startActivity(intent);\n return true;\n case R.id.nav_discussion:\n return true;\n case R.id.nav_settings:\n intent = new Intent(this, SettingsActivity.class);\n startActivity(intent);\n return true;\n case R.id.nav_app_blocker:\n intent = new Intent(this, AppBlockingActivity.class);\n startActivity(intent);\n return true;\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case R.id.nav_home:\n break;\n\n case R.id.nav_favourites:\n\n if (User.getInstance().getUser() == null) {\n Intent intent = new Intent(getApplicationContext(), LoginActivity.class);\n startActivity(intent);\n }\n\n Intent intent = new Intent(getApplicationContext(), PlaceItemListActivity.class);\n startActivity(intent);\n\n break;\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tonRgtRgtMenuClick(v);\n\t\t\t}", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_camera) {\n // Handle the camera action\n } else if (id == R.id.nav_gallery) {\n Toast.makeText(this, \"gallery is clicked!\", Toast.LENGTH_LONG).show();\n\n } else if (id == R.id.nav_slideshow) {\n\n } else if (id == R.id.nav_manage) {\n\n } else if (id == R.id.nav_share) {\n\n } else if (id == R.id.nav_send) {\n\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "public void menuClicked(MenuItem menuItemSelected);", "@Override\n public void onItemClick(int position) {\n }", "@Override\n public void onItemClick(int position) {\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_my_account) {\n startActivity(new Intent(this, MyAccountActivity.class));\n } else if (id == R.id.nav_message_inbox) {\n startActivity(new Intent(this, MessageInboxActivity.class));\n } else if (id == R.id.nav_view_offers) {\n //Do Nothing\n } else if (id == R.id.nav_create_listing) {\n startActivity(new Intent(this, CreateListingActivity.class));\n } else if (id == R.id.nav_view_listings) {\n startActivity(new Intent(this, ViewListingsActivity.class));\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\r\n\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\r\n\t\t\t\t\t\tint position, long id) {\n\t\t\t\t}" ]
[ "0.7882029", "0.7235578", "0.6987005", "0.69458413", "0.6917864", "0.6917864", "0.6883472", "0.6875181", "0.68681556", "0.6766498", "0.67418456", "0.67207", "0.6716157", "0.6713947", "0.6698189", "0.66980195", "0.66793925", "0.66624063", "0.66595167", "0.6646381", "0.6641224", "0.66243863", "0.6624042", "0.66207093", "0.6602551", "0.6602231", "0.6599443", "0.65987265", "0.65935796", "0.6585869", "0.658491", "0.65811735", "0.65765643", "0.65751576", "0.65694076", "0.6561757", "0.65582377", "0.65581614", "0.6552827", "0.6552827", "0.6549224", "0.65389794", "0.65345114", "0.65337104", "0.652419", "0.652419", "0.6522521", "0.652146", "0.6521068", "0.6519354", "0.65165275", "0.65159816", "0.65028816", "0.6498054", "0.6498054", "0.64969087", "0.64937705", "0.6488544", "0.64867324", "0.64866185", "0.64865905", "0.6484047", "0.6481108", "0.6474686", "0.64628965", "0.64551884", "0.6446893", "0.64436555", "0.64436555", "0.64436555", "0.64436555", "0.64436555", "0.64386237", "0.643595", "0.64356565", "0.64329195", "0.6432562", "0.6429554", "0.64255124", "0.64255124", "0.64121485", "0.64102405", "0.64095175", "0.64095175", "0.64094734", "0.640727", "0.64060104", "0.640229", "0.6397359", "0.6392996", "0.63921124", "0.63899696", "0.63885015", "0.63885015", "0.63873845", "0.6368818", "0.6368818", "0.63643163", "0.63643163", "0.63643163", "0.6358884" ]
0.0
-1
latLng=new LatLng(arrayList.get(pos).getLatitude(),arrayList.get(pos).getLongitude()); StringBuilder placeList=new StringBuilder();
@Override protected void onPostExecute(String temp) { progressDialog.dismiss(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n// LatLng sydney = new LatLng(-34, 151);\n// mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n// mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n\n for(int i=0; i<coordinatesStringList.length; i+=2){\n pont = new LatLng(Double.parseDouble(coordinatesStringList[i]), Double.parseDouble(coordinatesStringList[i+1]));\n latLngList.add(pont);\n MarkerOptions markerOptions=new MarkerOptions();\n mMap.addMarker(new MarkerOptions().position(pont).title(\"Marker in Sydney\").icon(BitmapDescriptorFactory.fromResource(R.drawable.pin)));\n\n// mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {\n// @Override\n// public boolean onMarkerClick(Marker marker) {\n// Geocoder geocoder = new Geocoder(this, Locale.getDefault());\n// ArrayList<String> addresses = geocoder.getFromLocation(marker.getPosition().latitude(), marker.getPosition().longitude(), 1); //1 num of possible location returned\n// String address = addresses.get(0).getAddressLine(0); //0 to obtain first possible address\n// String city = addresses.get(0).getLocality();\n// String state = addresses.get(0).getAdminArea();\n// String country = addresses.get(0).getCountryName();\n// String postalCode = addresses.get(0).getPostalCode();\n// //create your custom title\n// String title = address +\"-\"+city+\"-\"+state;\n// marker.setTitle(title);\n// marker.showInfoWindow();\n// return true;\n// }\n// });\n }\n\n\n PolylineOptions polylineOptions = new PolylineOptions();\n\n// Create polyline options with existing LatLng ArrayList\n polylineOptions.addAll(latLngList);\n polylineOptions\n .width(5)\n .color(Color.RED);\n\n// Adding multiple points in map using polyline and arraylist\n // mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n mMap.addPolyline(polylineOptions);\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) \n\t\t\t{\n\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\tTreeMap<String, String> map2 = (TreeMap<String, String>) mylistView.getAdapter().getItem(position);\n\t\t\t\tfloat Lat = Float.parseFloat(map2.get(\"Latitude\"));\n\t\t\t\tfloat Long = Float.parseFloat(map2.get(\"Longitude\"));\n\n\t\t\t\tint myPoint = Integer.parseInt(map2.get(\"Id\"));\n\t\t\t\tSystem.out.println(myPoint);\n\n\t\t\t\ttry {\n\t\t\t\t\tOnePoint = (Object)client.call(\"place.fetchOne\", myPoint);\n\t\t\t\t\t//System.out.println(Arrays.toString(OnePoint));\n\t\t\t\t\tSystem.out.println(OnePoint);\n\t\t\t\t} catch (XMLRPCException e1) {\n\t\t\t\t\tSendAlert(\"place.fetchOne\");\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t@SuppressWarnings(\"rawtypes\")\n\t\t\t\tHashMap MojaMapa = (HashMap) OnePoint;\n\t\t\t\tMojaMapa.get(\"description\");\n\n\t\t\t\tString myString = \"\"\n\t\t\t\t\t\t+\"<br>\"+\"<br>\"+\"<br>\"\n\t\t\t\t\t\t+\"Category: \"+category+\"<p>\"\n\t\t\t\t\t\t+\"Address: \"+map2.get(\"Address\")+\"<p>\"\n\t\t\t\t\t\t+\"City: \"+map2.get(\"City\")+\"<p>\"\n\t\t\t\t\t\t+\"Zip Code: \"+map2.get(\"Zip\")+\"<p>\"\n\t\t\t\t\t\t+\"Country: \"+map2.get(\"Country\")+\"<p>\"\n\t\t\t\t\t\t+\"Distance: \"+String.format(\"%.2f\", Float.parseFloat(map2.get(\"Distance\").toString()))+\"km\"+\"<p>\"\n\t\t\t\t\t\t+\"Latitude: \"+map2.get(\"Latitude\")+\"<p>\"\n\t\t\t\t\t\t+\"Longitude: \"+map2.get(\"Longitude\")+\"<p>\"\n\t\t\t\t\t\t+\"Opis: \" + MojaMapa.get(\"description\");\n\n\t\t\t\tint MicroLat = (int) (Lat*1e6);\n\t\t\t\tint MicroLong = (int) (Long*1e6);\n\n\t\t\t\tmapView.getOverlays().clear();\n\t\t\t\tmapOverlays.clear();\n\t\t\t\titemizedoverlay.clear();\n\n\t\t\t\tGeoPoint point = new GeoPoint(MicroLat, MicroLong);\n\t\t\t\tMyOverlayItem overlayitem = new MyOverlayItem(point, map2.get(\"i\"), \n\t\t\t\t\t\t\"\"+category, \n\t\t\t\t\t\t\"\"+map2.get(\"Address\"),\n\t\t\t\t\t\t\"\"+map2.get(\"City\"),\n\t\t\t\t\t\t\"\"+map2.get(\"Zip\"),\n\t\t\t\t\t\t\"\"+map2.get(\"Country\"),\n\t\t\t\t\t\tString.format(\"%.2f\", Float.parseFloat(map2.get(\"Distance\").toString())),\n\t\t\t\t\t\t\"\"+map2.get(\"Latitude\"),\n\t\t\t\t\t\t\"\"+map2.get(\"Color\"),\n\t\t\t\t\t\t\"\"+map2.get(\"Icon\"), Lat+\",\"+Long);\n\n\t\t\t\tSetDrawable(\"\"+map2.get(\"Icon\"), \"\"+map2.get(\"Color\"));\n\n\t\t\t\tHelloItemizedOverlay singleitemizedoverlay = new HelloItemizedOverlay(drawable, ProjektLokalizacjaActivity.this); \n\t\t\t\tsingleitemizedoverlay.clear();\n\t\t\t\tsingleitemizedoverlay.addOverlay(overlayitem);\n\t\t\t\tmapOverlays.add(singleitemizedoverlay);\n\n\t\t\t\t// add this overlay to the MapView and refresh it\n\t\t\t\tmapView.getOverlays().add(myLocationOverlay);\n\t\t\t\tmapView.postInvalidate();\n\t\t\t\tmyLocationOverlay.enableMyLocation();\n\t\t\t\tif (isThisTablet == false)\n\t\t\t\t{\n\t\t\t\t\tmylistView.setVisibility(View.GONE);\n\t\t\t\t\tmapView.setVisibility(View.GONE);\n\n\t\t\t\t\tWebView webView = (WebView) findViewById(R.id.webView);\n\t\t\t\t\twebView.setVisibility(View.VISIBLE);\n\n\t\t\t\t\twebView.clearView();\n\t\t\t\t\twebView.clearCache(true);\n\t\t\t\t\twebView.loadDataWithBaseURL(null, myString, \"text/html\", \"utf-8\", null);\n\n\t\t\t\t\tButton Mapbutton = (Button) findViewById(R.id.map_button);\n\t\t\t\t\tMapbutton.setBackgroundColor(Color.rgb(192, 192, 192));\n\n\t\t\t\t\tButton ListButton = (Button) findViewById(R.id.list_button);\n\t\t\t\t\tListButton.setBackgroundColor(Color.rgb(192, 192, 192));\n\n\t\t\t\t\tButton SzczeButton = (Button) findViewById(R.id.szczegoly_button);\n\t\t\t\t\tSzczeButton.setBackgroundColor(Color.BLUE);\n\t\t\t\t\t//SearchItemOnMap(Lat, Long, MicroLat, MicroLong);\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tWebView webView = (WebView) findViewById(R.id.webView);\n\t\t\t\t\twebView.setVisibility(View.VISIBLE);\n\t\t\t\t\tmapView.setVisibility(View.GONE);\n\n\t\t\t\t\twebView.clearView();\n\t\t\t\t\twebView.clearCache(true);\n\t\t\t\t\twebView.loadDataWithBaseURL(null, myString, \"text/html\", \"utf-8\", null);\n\n\t\t\t\t}\n\t\t\t}", "public void getLoco(double lat, double lon){\n cords.setText(lat + \" \"+lon);\n\n // String dress = getCompleteAddressString(lat,lon);\n\n // latt = lat;\n // longg = lon;\n\n //Toast.makeText(getContext(), add, Toast.LENGTH_SHORT).show();\n\n //LocationAddress locationAddress = new LocationAddress();\n //locationAddress.getAddressFromLocation(38.898748, -77.037684\n // , getContext(), new GeocoderHandler());\n\n //String add = getAddressString(lat,lon);\n //Toast.makeText(getContext(), add, Toast.LENGTH_LONG);\n //info.setText(add);\n\n check.setVisibility(View.VISIBLE);\n\n\n\n\n\n\n\n }", "private String getCompleteAddressString(double LATITUDE, double LONGITUDE) {\n String strAdd = \"\";\n Geocoder geocoder = new Geocoder(getActivity(), Locale.getDefault());\n try {\n List<Address> addresses = geocoder.getFromLocation(LATITUDE, LONGITUDE, 1);\n if (addresses != null) {\n Address returnedAddress = addresses.get(0);\n StringBuilder strReturnedAddress = new StringBuilder(\"\");\n\n for (int i = 0; i <= returnedAddress.getMaxAddressLineIndex(); i++) {\n strReturnedAddress.append(returnedAddress.getAddressLine(i)).append(\"\\n\");\n }\n strAdd = strReturnedAddress.toString();\n } else {\n Log.e(\"Current loction address\", \"No Address returned!\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n Log.e(\"Current loction address\", \"Canont get Address!\");\n }\n return strAdd;\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n coordList = getIntent().getParcelableArrayListExtra(\"coordlist\");\n Menit = getIntent().getIntExtra(\"minute\",0);\n Detik = getIntent().getIntExtra(\"second\",0);\n totalDistance = getIntent().getDoubleExtra(\"jarak\",0);\n kecepatan = getIntent().getDoubleExtra(\"speed\",0);\n kalori = getIntent().getDoubleExtra(\"kalori\",0);\n //strLat = getIntent().getStringExtra(\"strLat\");\n //strLong = getIntent().getStringExtra(\"strLong\");\n\n\n\n\n\n txtSpeed.setText(String.valueOf(Math.round(kecepatan))+\"Km/h\");\n\n txtJarak.setText(String.valueOf(numberFormat.format(totalDistance/1000)));\n\n txtJumlahCalorie.setText(String.valueOf(numberFormat.format(kalori)));\n\n //txtMenit = (TextView)findViewById(R.id.menit);\n //txtDetik = (TextView)findViewById(R.id.detik);\n\n txtTime.setText(String.format(\"%02d\", Menit)+\":\"\n + String.format(\"%02d\", Detik)+\"hr\");\n //txtDetik.setText(String.valueOf(Detik));\n\n if(coordList.size() <= 1){\n //Toast.makeText(MyRouteMaps.this, \"ANDA BELUM BERAKTIFITAS\", Toast.LENGTH_SHORT).show();\n drawMap();\n }else{\n drawMap();\n }\n\n Log.d(\"ISI DALAM COORDLIST MAP : \",String.valueOf(coordList.size()));\n\n\n if(totalDistance < 500) {\n mMap.animateCamera(CameraUpdateFactory.zoomTo(17.0f));\n }else{\n mMap.animateCamera(CameraUpdateFactory.zoomTo(15.5f));\n }\n\n // Add a marker in Sydney and move the camera\n //LatLng sydney = new LatLng(-34, 151);\n\n }", "private void geolocate() throws IOException {\n\n\n List<Address> addresses = geocoder.getFromLocationName(bundle.getString(\"starting\"), 1);\n List<Address> addresses1 = geocoder.getFromLocationName(bundle.getString(\"destiny\"), 1);\n\n if (addresses!=null||addresses.size()>0||addresses1!=null||addresses1.size()>0)\n {\n try {\n\n\n Address address=addresses.get(0);\n Address address1=addresses1.get(0);\n\n Double orglat = address.getLatitude();\n Double orglng = address.getLongitude();\n Double dstlat = address1.getLatitude();\n Double dstlng = address1.getLongitude();\n\n origin = new LatLng(orglat, orglng);\n destiny = new LatLng(dstlat, dstlng);\n\n /* Constants.AddrouteOrigin=new LatLng(orglat,orglng);\n Constants.AddrouteDestiny=new LatLng(dstlat,dstlng);*/\n\n\n Log.d(\"origindest\",Constants.AddrouteOrigin+\" \"+Constants.AddrouteDestiny+\"\");\n\n Log.d(\"origindest\",origin+\" \"+destiny+\"\");\n\n }catch (IndexOutOfBoundsException e){\n Toast.makeText(getContext(),e.getMessage(),Toast.LENGTH_LONG).show();\n }\n\n }\n else {\n Toast.makeText(getContext(),\"no address found\",Toast.LENGTH_LONG).show();\n }\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\trunOnUiThread(new Runnable() {\r\n\t\t\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tLocation myLocation = googleMap.getMyLocation();\r\n\t\t\t\t\t\tif (myLocation != null) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t GPSTracker gpsTracker = new GPSTracker(context); \r\n\t\t\t\t\t\t\t if(gpsTracker.canGetLocation()) \r\n\t\t\t\t\t\t\t { \r\n\t\t\t\t\t\t\t\t String stringLatitude = String.valueOf(gpsTracker.latitude); \r\n\t\t\t\t\t\t\t\t String stringLongitude = String.valueOf(gpsTracker.longitude); \r\n\t\t\t\t\t\t\t\t currentlocation = new LatLng(gpsTracker.latitude,gpsTracker.longitude);\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 \r\n\t\t\t\t\t\t\t/*double dclat = googleMap.getMyLocation()\r\n\t\t\t\t\t\t\t\t\t.getLatitude();\r\n\t\t\t\t\t\t\tdouble dclon = googleMap.getMyLocation()\r\n\t\t\t\t\t\t\t\t\t.getLongitude();\r\n\t\t\t\t\t\t\tcurrentlocation = new LatLng(dclat, dclon);*/\r\n\r\n\t\t\t\t\t\t\tif (!myList.contains(currentlocation)\r\n\t\t\t\t\t\t\t\t\t&& (currentlocation != null)) {\r\n\t\t\t\t\t\t\t\tmyList.add(currentlocation);\r\n\r\n\t\t\t\t\t\t\t\tdouble lat = currentlocation.latitude;\r\n\t\t\t\t\t\t\t\tdouble lon = currentlocation.longitude;\r\n\t\t\t\t\t\t\t\tuploadarraylist.add(String.valueOf(lon) + \",\"\r\n\t\t\t\t\t\t\t\t\t\t+ String.valueOf(lat));\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (myList.size() == 1) {\r\n\t\t\t\t\t\t\t\tSystem.err.println(\"First zoom\");\r\n\t\t\t\t\t\t\t\tLatLng CurrentLocation = new LatLng(googleMap\r\n\t\t\t\t\t\t\t\t\t\t.getMyLocation().getLatitude(),\r\n\t\t\t\t\t\t\t\t\t\tgoogleMap.getMyLocation()\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getLongitude());\r\n\t\t\t\t\t\t\t\tCameraPosition cameraPosition = new CameraPosition.Builder()\r\n\t\t\t\t\t\t\t\t\t\t.target(CurrentLocation).zoom(18)\r\n\t\t\t\t\t\t\t\t\t\t.bearing(70).tilt(25).build();\r\n\t\t\t\t\t\t\t\tgoogleMap.animateCamera(CameraUpdateFactory\r\n\t\t\t\t\t\t\t\t\t\t.newCameraPosition(cameraPosition));\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (myList.size() >= 2) {\r\n\t\t\t\t\t\t\t\tdouble slat = myList.get(myList.size() - 2).latitude;\r\n\t\t\t\t\t\t\t\tdouble slon = myList.get(myList.size() - 2).longitude;\r\n\r\n\t\t\t\t\t\t\t\tdouble dlat = myList.get(myList.size() - 1).latitude;\r\n\t\t\t\t\t\t\t\tdouble dlon = myList.get(myList.size() - 1).latitude;\r\n\r\n\t\t\t\t\t\t\t\tLatLng mmarkersourcelatlng = new LatLng(myList\r\n\t\t\t\t\t\t\t\t\t\t.get(1).latitude,\r\n\t\t\t\t\t\t\t\t\t\tmyList.get(1).longitude);\r\n\t\t\t\t\t\t\t\tmsourcelatlng = new LatLng(slat, slon);\r\n\t\t\t\t\t\t\t\tmdestlatlng = new LatLng(dlat, dlon);\r\n\t\t\t\t\t\t\t\tSystem.err.println(\"myLocation:\"\r\n\t\t\t\t\t\t\t\t\t\t+ currentlocation);\r\n\t\t\t\t\t\t\t\tfor (int i = 1; i < myList.size() - 1; i++) {\r\n\t\t\t\t\t\t\t\t\tLatLng src = myList.get(i);\r\n\t\t\t\t\t\t\t\t\tLatLng dest = myList.get(i + 1);\r\n\t\t\t\t\t\t\t\t\tPolyline line = googleMap\r\n\t\t\t\t\t\t\t\t\t\t\t.addPolyline(new PolylineOptions()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// mMap is the Map Object\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.add(new LatLng(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsrc.latitude,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsrc.longitude),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew LatLng(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdest.latitude,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdest.longitude))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.width(10)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.color(R.color.pink)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.geodesic(true));\r\n\t\t\t\t\t\t\t\t\tmsmarker = googleMap\r\n\t\t\t\t\t\t\t\t\t\t\t.addMarker(new MarkerOptions()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.position(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmmarkersourcelatlng)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.title(\"Source\")\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.icon(BitmapDescriptorFactory\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.defaultMarker(BitmapDescriptorFactory.HUE_GREEN)));\r\n\r\n\t\t\t\t\t\t\t\t\tif (mdmarker != null) {\r\n\t\t\t\t\t\t\t\t\t\tmdmarker.remove();\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tmdmarker = googleMap\r\n\t\t\t\t\t\t\t\t\t\t\t.addMarker(new MarkerOptions()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.position(msourcelatlng)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.title(\"Destination\")\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.icon(BitmapDescriptorFactory\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.defaultMarker(BitmapDescriptorFactory.HUE_RED)));\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tSystem.err.println(\"Mylocation Empty\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t\t\t}", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n ArrayList<String> ArrayDescripcionMarker = new ArrayList<String>();\n ArrayList<String> ArrayX = new ArrayList<String>();\n ArrayList<String> ArrayY = new ArrayList<String>();\n Integer tamanio=0;\n\n\n new DataMainActivitBuscarUbicacionReservas(mapa.this).execute();\n\n\n\n System.out.println(\"aca lista1 ANTESSSS\" +getIntent().getStringArrayListExtra(\"miLista\"));\n System.out.println(\"aca tamaño ANTESSSS\" +getIntent().getIntExtra(\"tamanio\",0));\n System.out.println(\"aca lista2 ANTESSS\" +getIntent().getStringArrayListExtra(\"miLista2\"));\n System.out.println(\"aca listaCLIENTE ANTESSS\" +getIntent().getStringArrayListExtra(\"milistaCliente\"));\n\n //cantidad de reservas/markes a dibujar\n tamanio = getIntent().getIntExtra(\"tamanio\",0);\n /// Casteo la lista que tiene las latitudes\n double[] failsArray = new double[tamanio]; //create an array with the size of the failList\n for (int i = 0; i < tamanio; ++i) { //iterate over the elements of the list\n failsArray[i] = Double.parseDouble(getIntent().getStringArrayListExtra(\"miLista\").get(i)); //store each element as a double in the array\n // failsArray[i] = Double.parseDouble(lista.get(i)); //store each element as a double in the array\n }\n\n /// Casteo la lista que tiene las longitudes\n double[] failsArray2 = new double[tamanio]; //create an array with the size of the failList\n for (int i = 0; i < tamanio; ++i) { //iterate over the elements of the list\n failsArray2[i] = Double.parseDouble(getIntent().getStringArrayListExtra(\"miLista2\").get(i)); //store each element as a double in the array\n // failsArray2[i] = Double.parseDouble(lista2.get(i)); //store each element as a double in the array\n }\n\n ///// Recorro las listas y genero el marker.\n for (int i = 0; i < tamanio; i++){\n LatLng vol_1 = new LatLng(failsArray[i], failsArray2[i]);\n mMap.addMarker(new MarkerOptions().position(vol_1).title(getIntent().getStringArrayListExtra(\"milistaCliente\").get(i)));\n // mMap.addMarker(new MarkerOptions().position(vol_1));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(vol_1, 12f));\n }\n\n\n\n ///////////// DIUJO ZONAS - POLIGIONOS /////////////////\n\n Polygon polygon1 = mMap.addPolygon(new PolygonOptions()\n .add(new LatLng(-34.4466867, -58.7446665),\n new LatLng(-34.4755556, -58.7870237),\n new LatLng( -34.5313786, -58.7034557),\n new LatLng(-34.5005326, -58.6488037))\n .strokeColor(Color.RED));\n polygon1.setTag(\"ZONA 1\");\n polygon1.setStrokeWidth(4f);\n\n\n\n Polygon polygon2 = mMap.addPolygon(new PolygonOptions()\n .add(new LatLng(-34.4466867, -58.7446665),\n new LatLng(-34.4810476,-58.6806737),\n new LatLng( -34.4541926,-58.6249857),\n new LatLng( -34.3982066,-58.6507117))\n .strokeColor(BLUE));\n polygon2.setTag(\"ZONA 2\");\n polygon2.setStrokeWidth(4f);\n\n\n Polygon polygon3 = mMap.addPolygon(new PolygonOptions()\n .add(new LatLng(-34.4810476,-58.6806737),\n new LatLng(-34.5005326, -58.6488037),\n new LatLng( -34.4786136,-58.6067997),\n new LatLng( -34.4547056,-58.6234267))\n .strokeColor(Color.GREEN));\n polygon3.setTag(\"ZONA 3\");\n polygon3.setStrokeWidth(4f);\n\n\n ///////////// FIN DIUJO ZONAS - POLIGIONOS /////////////////\n\n\n\n\n /*\n //DIBUJO ZONAS DE CIRCULOS\n Circle circle = mMap.addCircle(new CircleOptions()\n .center(new LatLng(-34.455587, -58.685503))\n .radius(1800)\n .strokeColor(Color.RED));\n circle.setStrokeWidth(4f);\n circle.setTag(\"Zona1\");\n\n\n Circle circle2 = mMap.addCircle(new CircleOptions()\n .center(new LatLng(-34.480523, -58.717237))\n .radius(1600)\n .strokeColor(Color.BLUE));\n circle2.setStrokeWidth(4f);\n circle2.setTag(\"Zona2\");\n\n\n Circle circle3 = mMap.addCircle(new CircleOptions()\n .center(new LatLng(-34.450193, -58.725039))\n .radius(1800)\n .strokeColor(Color.GREEN));\n circle2.setStrokeWidth(4f);\n circle2.setTag(\"Zona2\");\n\n\n Circle circle4 = mMap.addCircle(new CircleOptions()\n .center(new LatLng(-34.469302, -58.653062))\n .radius(1500)\n .strokeColor(Color.YELLOW));\n circle2.setStrokeWidth(4f);\n circle2.setTag(\"Zona2\");\n\n //funcion que revisa si un punto esta dentro del circulo zona 1\n\n float[] disResultado = new float[2];\n // LatLng pos = new LatLng(40.416775, -3.703790);\n LatLng pos = new LatLng(-34.470327, -58.683718);\n double lat = pos.latitude; //getLatitude\n double lng = pos.longitude;//getLongitude\n\n\n Location.distanceBetween( pos.latitude, pos.longitude,\n circle.getCenter().latitude,\n circle.getCenter().longitude,\n disResultado);\n\n if(disResultado[0] > circle.getRadius()){\n System.out.println(\"FUERAAAA ZONA 1\" );\n } else {\n System.out.println(\"DENTROOO ZONA 1\" );\n }\n\n*/\n\n\n\n }", "public void buscarLugar(){\n String lugar= tv_lugar.getText().toString().trim();\n ubicacionEncontrada=false;\n this.geocoder= new Geocoder(getActivity());\n this.lista = new ArrayList<>();\n\n try {\n lista =geocoder.getFromLocationName(lugar,1);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n if(lista.size()>0){\n this.localizacion= lista.get(0);\n\n // Snackbar.make(myView,\"Error al crear la quedada\", Snackbar.LENGTH_SHORT).show();\n ubicacionEncontrada=true;\n Log.i(\"UBICACION A BUSCAR\", localizacion.toString());\n this.latLng = new LatLng(localizacion.getLatitude(), localizacion.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latLng, 12f));\n this.markerOptions = new MarkerOptions().position(latLng).title(localizacion.getAddressLine(0));\n\n mMap.addMarker(markerOptions);\n\n\n }\n\n }", "@Override\r\n\t\t\tprotected void onPostExecute(List<HashMap<String, String>> list) {\r\n\r\n\t\t\t\t// Clears all the existing markers\r\n\t\t\t\t// ma.clear();\r\n\r\n\t\t\t\tfor (int i = 0; i < list.size(); i++) {\r\n\r\n\t\t\t\t\t// Creating a marker\r\n\t\t\t\t\tMarkerOptions markerOptions = new MarkerOptions();\r\n\r\n\t\t\t\t\t// Getting a place from the places list\r\n\t\t\t\t\tHashMap<String, String> hmPlace = list.get(i);\r\n\r\n\t\t\t\t\t// Getting latitude of the place\r\n\t\t\t\t\tdouble lat = Double.parseDouble(hmPlace.get(\"lat\"));\r\n\r\n\t\t\t\t\t// Getting longitude of the place\r\n\t\t\t\t\tdouble lng = Double.parseDouble(hmPlace.get(\"lng\"));\r\n\r\n\t\t\t\t\t// Getting name\r\n\t\t\t\t\tString name = hmPlace.get(\"formatted_address\");\r\n\r\n\t\t\t\t\tLatLng latLng = new LatLng(lat, lng);\r\n\r\n\t\t\t\t\t// Setting the position for the marker\r\n\t\t\t\t\tmarkerOptions.position(latLng);\r\n\r\n\t\t\t\t\t// Setting the title for the marker\r\n\t\t\t\t\tmarkerOptions.title(name);\r\n\r\n\t\t\t\t\t// Placing a marker on the touched position\r\n\t\t\t\t\tmap.addMarker(markerOptions);\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Locate the first location\r\n\t\t\t\t\tif (i == 0)\r\n\t\t\t\t\t\r\n\t\t\t\t\t \r\n\t\t\t \r\n\r\n\t\t\t \r\n\t\t\t\t\tnew DownloadTask().execute(getDirectionsUrl( new LatLng(gpsTracker.getLatitude(),gpsTracker.getLongitude()), latLng));\r\n\t\t\t \r\n\t\t\t\t\t\tmap.animateCamera(CameraUpdateFactory.newLatLng(latLng));\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n for(int i=0;i<list.size();i++){\n LatLng pos = new LatLng(list.get(i).getLatitude(),list.get(i).getLongitude());\n mMap.addMarker(new MarkerOptions().position(pos).title(list.get(i).getTitle()).snippet(list.get(i).getDescription()));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(pos));\n }\n\n mMap.setOnMapLongClickListener(new GoogleMap.OnMapLongClickListener() {\n @Override\n public void onMapLongClick(final LatLng latLng) {\n final AlertDialog.Builder mBuilder = new AlertDialog.Builder(MapsActivity.this);\n final View mView =getLayoutInflater().inflate(R.layout.dialog_place,null);\n final EditText location_name =mView.findViewById(R.id.dialog_name);\n final EditText location_description = mView.findViewById(R.id.dialog_description);\n final String loc = location_name.getText().toString();\n final String desc = location_description.getText().toString();\n Button yes = mView.findViewById(R.id.yes);\n Button no = mView.findViewById(R.id.no);\n\n// LatLng sydney = new LatLng(-34, 151);\n// mMap.addMarker(new MarkerOptions().position(latLng).title(\"Marker in Sydney\").snippet(\"sdsdwdw\"));\n// mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n\n no.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n dialog.cancel();\n }\n });\n yes.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n mMap.addMarker(new MarkerOptions().position(latLng).title(loc).snippet(desc));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n Places places = new Places(location_name.getText().toString(),location_description.getText().toString(),latLng.latitude,latLng.longitude);\n //list.add(0,new Places(location_name.getText().toString(),location_description.getText().toString(),latLng.latitude,latLng.longitude));\n myDB.insertNote(places);\n list = myDB.getNotes();\n customAdapter.setContents(list);\n dialog.cancel();\n }\n });\n mBuilder.setView(mView);\n dialog = mBuilder.create();\n dialog.show();\n }\n });\n\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n LatLng pos = new LatLng(list.get(position).getLatitude(),list.get(position).getLongitude());\n map_layout.setVisibility(View.VISIBLE);\n list_layout.setVisibility(View.GONE);\n //map.moveCamera(CameraUpdateFactory.newLatLng(pos));\n mMap.animateCamera(CameraUpdateFactory.newLatLng(pos));\n }\n });\n }", "private void sendRequestAPI(Double lat,Double lng, String places) {\n\n String origin = String.valueOf(lat) + \",\" + String.valueOf(lng);\n Geocoder geocoder = new Geocoder(getActivity(), Locale.getDefault());\n String destination = \"0,0\";\n String wayPoints = \"0,0\";\n\n switch (places) {\n case \"Family Walk\" :\n destination = formatCoordinates(6);\n wayPoints = formatCoordinates(4) + \"|\" + formatCoordinates(5);\n break;\n\n case \"Retro Tour\" :\n destination = formatCoordinates(9);\n wayPoints =formatCoordinates(7) + \"|\" + formatCoordinates(8);\n break;\n\n case \"Sports Tour\" :\n destination = formatCoordinates(11);\n wayPoints = formatCoordinates(9) + \"|\" + formatCoordinates(8);\n break;\n case \"custom\":\n destination = getActivity().getIntent().getStringExtra(\"destination\");\n wayPoints = getActivity().getIntent().getStringExtra(\"waypoints\");\n break;\n\n }\n //String destination = \"-27.494721,153.014262\";\n //String wayPoints = \"-27.498172, 153.013585\";\n try {\n\n new Directions(this, origin, destination, wayPoints).execute();\n Double latDes= Double.parseDouble(destination.split(\",\")[0]);\n Double lngDes= Double.parseDouble(destination.split(\",\")[1]);\n String [] points = wayPoints.split(Pattern.quote(\"|\")) ;\n\n if(wayPoints.equals(\"\")){\n\n }\n else{\n for(String point : points) {\n Double latPoint = Double.parseDouble((point.split(\",\")[0]));\n Double lngPoint = Double.parseDouble((point.split(\",\")[1]));\n List<Address> addressesPoint = geocoder.getFromLocation(latPoint, lngPoint, 1);\n wayPointsMarkers.add(mMap.addMarker(new MarkerOptions().title(addressesPoint.get(0).getAddressLine(0))\n .position(new LatLng(latPoint, lngPoint))));\n }\n }\n\n\n List<Address> addressesStart = geocoder.getFromLocation(lat, lng, 1);\n List<Address> addressesEnd = geocoder.getFromLocation(latDes,\n lngDes, 1);\n //originMarkers.add(mMap.addMarker(new MarkerOptions().title(addressesStart.get(0).getAddressLine(0))\n //.position(new LatLng(lat, lng))));\n destinationMarkers.add(mMap.addMarker((new MarkerOptions().title(addressesEnd.get(0).getAddressLine(0))\n .position(new LatLng(latDes, lngDes)))));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latDes,\n lngDes), 16));\n\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n protected String doInBackground(String... params) {\n // get the string from params, which is an array\n // Accounts doc=new Accounts(date,fullname,image);\n\n\n runOnUiThread(new Runnable() {\n public void run() {\n\n try {\n List<Address> addressList = null;\n addressList = getAddress(location);\n Boolean flag = true;\n while (addressList.size() == 0) {\n location = location.substring(1);\n System.out.println(\"Searching \" + location);\n addressList = getAddress(location);\n if (location.length() < 5 && addressList == null) {\n\n flag = false;\n break;\n\n }\n\n }\n if (flag) {\n Address address = addressList.get(0);\n\n LatLng latLng = new LatLng(address.getLatitude(), address.getLongitude());\n progressDialog.dismiss();\n\n // markerx.remove();\n mMap.addMarker(new\n MarkerOptions().position(latLng).title(\"NGO\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 12.0f));\n GoogleDirection.withServerKey(serverKey)\n .from(latLng)\n .to(mylatlang)\n .execute(new DirectionCallback() {\n @Override\n public void onDirectionSuccess(Direction direction, String rawBody) {\n // Do something here\n System.out.println(\"Result isss\" + direction.getStatus());\n String status = direction.getStatus();\n if (status.equals(RequestResult.OK)) {\n System.out.println(\"Result is ok\");\n try {\n route = direction.getRouteList().get(0);\n leg = route.getLegList().get(0);\n Info distanceInfo = leg.getDistance();\n Info durationInfo = leg.getDuration();\n String tmp1 = distanceInfo.getText();\n tmp1 = tmp1.substring(0, tmp1.length() - 3);\n String tmp2 = durationInfo.getText();\n\n\n } catch (Exception e) {\n System.out.println(\"Exiting:\" + e);\n }\n\n ArrayList<LatLng> directionPositionList = leg.getDirectionPoint();\n\n\n PolygonOptions rectOptions = new PolygonOptions();\n\n System.out.println(\"Lol size is\" + directionPositionList.size());\n for (int i = 0; i < directionPositionList.size(); i = i + 25) {\n\n try {\n LatLng first = directionPositionList.get(i);\n LatLng second = directionPositionList.get(i + 25);\n Polyline line1 = mMap.addPolyline(new PolylineOptions()\n .add(first, second)\n .width(5)\n .color(Color.RED));\n System.out.println(first + \",\" + second);\n } catch (Exception e) {\n\n }\n }\n }\n if (status.equals(RequestResult.NOT_FOUND)) {\n System.out.println(\"Result is not ok\");\n }\n\n\n }\n\n @Override\n public void onDirectionFailure(Throwable t) {\n // Do something here\n System.out.println(\"Direction failed\");\n }\n });\n\n\n } else {\n progressDialog.dismiss();\n\n }\n\n }\n catch(Exception e){}\n }\n });\n\n\n\n return \"SUCCESS\";\n }", "public static void instantiate(){\n listOfpoints = new ArrayList<>(12);\n listOfPolygons = new ArrayList<>(listOfpoints.size());\n\n for ( int i= 0 ; i < 70; i++ ){\n listOfpoints.add(new ArrayList<LatLng>());\n }\n\n listOfpoints.get(0).add(new LatLng(44.4293595,26.1035863));\n listOfpoints.get(0).add(new LatLng(44.4295434,26.1035434));\n listOfpoints.get(0).add(new LatLng(44.4297579,26.103479));\n listOfpoints.get(0).add(new LatLng(44.431566,26.1033503));\n listOfpoints.get(0).add(new LatLng(44.4327305,26.1031572));\n listOfpoints.get(0).add(new LatLng(44.4337724,26.1029211));\n listOfpoints.get(0).add(new LatLng(44.4342474,26.1028138));\n listOfpoints.get(0).add(new LatLng( 44.4348756,26.1025563));\n listOfpoints.get(0).add(new LatLng(44.4353199,26.1023203));\n listOfpoints.get(0).add(new LatLng( 44.4353046,26.101977));\n listOfpoints.get(0).add(new LatLng( 44.4352893,26.1015478));\n listOfpoints.get(0).add(new LatLng(44.4351974,26.1010758));\n listOfpoints.get(0).add(new LatLng(44.4350595,26.100432));\n listOfpoints.get(0).add(new LatLng(44.4348756,26.0995523));\n listOfpoints.get(0).add(new LatLng(44.4346458,26.0983292));\n listOfpoints.get(0).add(new LatLng(44.4343547,26.098415));\n listOfpoints.get(0).add(new LatLng( 44.4340176,26.0983506));\n listOfpoints.get(0).add(new LatLng( 44.4327918,26.0975996));\n listOfpoints.get(0).add(new LatLng(44.4318878,26.0972134));\n listOfpoints.get(0).add(new LatLng( 44.4307692,26.0968701));\n listOfpoints.get(0).add(new LatLng( 44.4300644,26.0968271));\n listOfpoints.get(0).add(new LatLng( 44.4298498,26.0972992));\n listOfpoints.get(0).add(new LatLng(44.4297732,26.0977713));\n listOfpoints.get(0).add(new LatLng(44.4296966,26.0985867));\n listOfpoints.get(0).add(new LatLng (44.4296506,26.0994235));\n listOfpoints.get(0).add(new LatLng (44.4295587,26.1002389));\n listOfpoints.get(0).add(new LatLng (44.4294361,26.1007754));\n listOfpoints.get(0).add(new LatLng (44.4292369,26.1016766));\n listOfpoints.get(0).add(new LatLng (44.429099,26.1025778));\n listOfpoints.get(0).add(new LatLng (44.4289917,26.1033717));\n\n\n listOfpoints.get(1).add(new LatLng (44.4356099,26.1021262));\n listOfpoints.get(1).add(new LatLng (44.43630606,26.1017829));\n listOfpoints.get(1).add(new LatLng (44.4370654,26.101461));\n listOfpoints.get(1).add(new LatLng (44.4382451,26.1007958));\n listOfpoints.get(1).add(new LatLng (44.4393176,26.1002379));\n listOfpoints.get(1).add(new LatLng (44.4406045,26.0996371));\n listOfpoints.get(1).add(new LatLng (44.4418301,26.0990792));\n listOfpoints.get(1).add(new LatLng (44.4415084,26.0983067));\n listOfpoints.get(1).add(new LatLng (44.4412173,26.0977059));\n listOfpoints.get(1).add(new LatLng (44.4409875,26.097148));\n listOfpoints.get(1).add(new LatLng (44.4406811,26.0965472));\n listOfpoints.get(1).add(new LatLng (44.4404207,26.0959893));\n listOfpoints.get(1).add(new LatLng (44.4400989,26.0963326));\n listOfpoints.get(1).add(new LatLng (44.4393636,26.0968691));\n listOfpoints.get(1).add(new LatLng (44.4390725,26.0969549));\n listOfpoints.get(1).add(new LatLng (44.4381532,26.0971051));\n listOfpoints.get(1).add(new LatLng (44.4372952,26.0975557));\n listOfpoints.get(1).add(new LatLng (44.4365598,26.0977703));\n listOfpoints.get(1).add(new LatLng (44.4358244,26.0977918));\n listOfpoints.get(1).add(new LatLng (44.435043,26.0980063));\n listOfpoints.get(1).add(new LatLng (44.4348132,26.0979205));\n listOfpoints.get(1).add(new LatLng (44.4348591,26.0983497));\n listOfpoints.get(1).add(new LatLng (44.4352115,26.1003452));\n listOfpoints.get(1).add(new LatLng (44.435472,26.1017185));\n listOfpoints.get(1).add(new LatLng (44.4356099,26.1021262));\n\n\n listOfpoints.get(2).add(new LatLng (44.4358071,26.1034753));\n listOfpoints.get(2).add(new LatLng (44.435899,26.1039688));\n listOfpoints.get(2).add(new LatLng (44.4360216,26.1044623));\n listOfpoints.get(2).add(new LatLng (44.4360982,26.1049988));\n listOfpoints.get(2).add(new LatLng (44.4362361,26.1055781));\n listOfpoints.get(2).add(new LatLng (44.4363127,26.1059));\n listOfpoints.get(2).add(new LatLng (44.4364506,26.1063721));\n listOfpoints.get(2).add(new LatLng (44.4365425,26.1067583));\n listOfpoints.get(2).add(new LatLng (44.4367264,26.1068441));\n listOfpoints.get(2).add(new LatLng (44.4369715,26.1071016));\n listOfpoints.get(2).add(new LatLng (44.4374312,26.1073591));\n listOfpoints.get(2).add(new LatLng (44.4380593,26.1076381));\n listOfpoints.get(2).add(new LatLng (44.4386722,26.1078741));\n listOfpoints.get(2).add(new LatLng (44.439239,26.1080672));\n listOfpoints.get(2).add(new LatLng (44.4399744,26.1083033));\n listOfpoints.get(2).add(new LatLng (44.4406485,26.1084106));\n listOfpoints.get(2).add(new LatLng (44.4407557,26.1080458));\n listOfpoints.get(2).add(new LatLng (44.440817,26.1075737));\n listOfpoints.get(2).add(new LatLng (44.440863,26.1070373));\n listOfpoints.get(2).add(new LatLng (44.4410928,26.1070587));\n listOfpoints.get(2).add(new LatLng (44.4419814,26.1071016));\n listOfpoints.get(2).add(new LatLng (44.4422877,26.1071875));\n listOfpoints.get(2).add(new LatLng (44.4432069,26.107445));\n listOfpoints.get(2).add(new LatLng (44.443498,26.107402));\n listOfpoints.get(2).add(new LatLng (44.4433754,26.10693));\n listOfpoints.get(2).add(new LatLng (44.4432988,26.1065008));\n listOfpoints.get(2).add(new LatLng (44.4431763,26.1059858));\n listOfpoints.get(2).add(new LatLng (44.4429465,26.1052992));\n listOfpoints.get(2).add(new LatLng (44.4429312,26.1044838));\n listOfpoints.get(2).add(new LatLng (44.4429312,26.1036469));\n listOfpoints.get(2).add(new LatLng (44.4429618,26.1029818));\n listOfpoints.get(2).add(new LatLng (44.4432069,26.1027457));\n listOfpoints.get(2).add(new LatLng (44.4431303,26.1025311));\n listOfpoints.get(2).add(new LatLng (44.4429618,26.1022737));\n listOfpoints.get(2).add(new LatLng (44.4427627,26.101866));\n listOfpoints.get(2).add(new LatLng (44.4426707,26.1015656));\n listOfpoints.get(2).add(new LatLng (44.4426554,26.101072));\n listOfpoints.get(2).add(new LatLng (44.4427014,26.1002781));\n listOfpoints.get(2).add(new LatLng (44.4427933,26.0989692));\n listOfpoints.get(2).add(new LatLng (44.4420426,26.0993125));\n listOfpoints.get(2).add(new LatLng (44.4412,26.0997202));\n listOfpoints.get(2).add(new LatLng (44.4400663,26.100321));\n listOfpoints.get(2).add(new LatLng (44.4390399,26.100836));\n listOfpoints.get(2).add(new LatLng (44.4382279,26.1012651));\n listOfpoints.get(2).add(new LatLng (44.4374924,26.1016514));\n listOfpoints.get(2).add(new LatLng (44.4366038,26.1021449));\n listOfpoints.get(2).add(new LatLng (44.4358071,26.1026384));\n listOfpoints.get(2).add(new LatLng (44.4357305,26.1027886));\n listOfpoints.get(2).add(new LatLng (44.4358071,26.1034753));\n\n\n listOfpoints.get(3).add(new LatLng (44.4290806,26.1040332));\n listOfpoints.get(3).add(new LatLng (44.4295709,26.1054494));\n listOfpoints.get(3).add(new LatLng (44.4302604,26.1070373));\n listOfpoints.get(3).add(new LatLng (44.4307508,26.1080887));\n listOfpoints.get(3).add(new LatLng (44.432804,26.111994));\n listOfpoints.get(3).add(new LatLng (44.4329113,26.1123373));\n listOfpoints.get(3).add(new LatLng (44.4330798,26.1136248));\n listOfpoints.get(3).add(new LatLng (44.4332483,26.1150195));\n listOfpoints.get(3).add(new LatLng (44.433325,26.1158349));\n listOfpoints.get(3).add(new LatLng (44.4347959,26.1162855));\n listOfpoints.get(3).add(new LatLng (44.4359143,26.1166288));\n listOfpoints.get(3).add(new LatLng (44.4365272,26.1168005));\n listOfpoints.get(3).add(new LatLng (44.4367723,26.1168434));\n listOfpoints.get(3).add(new LatLng (44.4373852,26.1166503));\n listOfpoints.get(3).add(new LatLng (44.43809,26.1163713));\n listOfpoints.get(3).add(new LatLng (44.4378755,26.1154272));\n listOfpoints.get(3).add(new LatLng (44.435516,26.1027672));\n listOfpoints.get(3).add(new LatLng (44.433708,26.1034109));\n listOfpoints.get(3).add(new LatLng (44.4330032,26.1035826));\n listOfpoints.get(3).add(new LatLng (44.4321451,26.1038401));\n listOfpoints.get(3).add(new LatLng (44.4309959,26.1039259));\n listOfpoints.get(3).add(new LatLng (44.4302451,26.1039903));\n listOfpoints.get(3).add(new LatLng (44.4296628,26.1039903));\n listOfpoints.get(3).add(new LatLng(44.4290806,26.1040332));\n\n\n\n listOfpoints.get(4).add(new LatLng ( 44.4343669 ,26.0798289));\n listOfpoints.get(4).add(new LatLng (44.434229 ,26.0801508));\n listOfpoints.get(4).add(new LatLng (44.4335088 ,26.0905363));\n listOfpoints.get(4).add(new LatLng (44.4333862 ,26.092124));\n listOfpoints.get(4).add(new LatLng ( 44.433233 ,26.0926177));\n listOfpoints.get(4).add(new LatLng ( 44.4329879 ,26.0932614));\n listOfpoints.get(4).add(new LatLng (44.4327427 , 26.0936906));\n listOfpoints.get(4).add(new LatLng (44.4301838 ,26.0965659));\n listOfpoints.get(4).add(new LatLng (44.4301685 ,26.0967161));\n listOfpoints.get(4).add(new LatLng (44.4305209 ,26.096759));\n listOfpoints.get(4).add(new LatLng (44.4311338 ,26.0968878));\n listOfpoints.get(4).add(new LatLng (44.4317468 ,26.097038));\n listOfpoints.get(4).add(new LatLng (44.4323137 ,26.0972955));\n listOfpoints.get(4).add(new LatLng (44.4327427 ,26.0974457));\n listOfpoints.get(4).add(new LatLng (44.4333709 ,26.0978534));\n listOfpoints.get(4).add(new LatLng (44.4338919 ,26.0981538));\n listOfpoints.get(4).add(new LatLng (44.434229 ,26.0982611));\n listOfpoints.get(4).add(new LatLng ( 44.4345354 ,26.0982611));\n listOfpoints.get(4).add(new LatLng (44.4346886 ,26.0981752));\n listOfpoints.get(4).add(new LatLng (44.4345814, 26.0918667));\n listOfpoints.get(4).add(new LatLng (44.4343669 ,26.0798289));\n\n\n listOfpoints.get(5).add(new LatLng (44.4348405,26.097773));\n listOfpoints.get(5).add(new LatLng (44.435043,26.0980063));\n listOfpoints.get(5).add(new LatLng (44.4365598,26.0977703));\n listOfpoints.get(5).add(new LatLng (44.4372952, 26.0975557));\n listOfpoints.get(5).add(new LatLng (44.4381532, 26.0971051));\n listOfpoints.get(5).add(new LatLng ( 44.4393636,26.0968691));\n listOfpoints.get(5).add(new LatLng(44.4397739, 26.0964855));\n listOfpoints.get(5).add(new LatLng (44.4402029,26.0960993));\n listOfpoints.get(5).add(new LatLng (44.4406778,26.0956487));\n listOfpoints.get(5).add(new LatLng(44.4405706,26.0952195));\n listOfpoints.get(5).add(new LatLng (44.4403408 ,26.0942539));\n listOfpoints.get(5).add(new LatLng (44.440065 ,26.0931811));\n listOfpoints.get(5).add(new LatLng (44.4400497, 26.0919151));\n listOfpoints.get(5).add(new LatLng (44.4398199 ,26.0897693));\n listOfpoints.get(5).add(new LatLng (44.4397893 ,26.0891041));\n listOfpoints.get(5).add(new LatLng (44.4399271 , 26.0879668));\n listOfpoints.get(5).add(new LatLng (44.4399731 ,26.0873017));\n listOfpoints.get(5).add(new LatLng (44.4399884 ,26.0867223));\n listOfpoints.get(5).add(new LatLng (44.4365719, 26.0887179));\n listOfpoints.get(5).add(new LatLng (44.434672 ,26.0898337));\n listOfpoints.get(5).add(new LatLng (44.4348405 ,26.097773));\n\n\n listOfpoints.get(6).add(new LatLng (44.4365425,26.1067583));\n listOfpoints.get(6).add(new LatLng (44.4365354,26.1075151));\n listOfpoints.get(6).add(new LatLng (44.4375926,26.113137));\n listOfpoints.get(6).add(new LatLng (44.4378224,26.114167));\n listOfpoints.get(6).add(new LatLng (44.4435828,26.1191452));\n listOfpoints.get(6).add(new LatLng (44.4440117, 26.1184585));\n listOfpoints.get(6).add(new LatLng (44.4448849, 26.1172784));\n listOfpoints.get(6).add(new LatLng (44.4457888,26.1161411));\n listOfpoints.get(6).add(new LatLng (44.4462483, 26.1149395));\n listOfpoints.get(6).add(new LatLng (44.4466773, 26.113137));\n listOfpoints.get(6).add(new LatLng (44.4467998, 26.1121929));\n listOfpoints.get(6).add(new LatLng (44.4467539, 26.1112917));\n listOfpoints.get(6).add(new LatLng (44.4469683, 26.1101973));\n listOfpoints.get(6).add(new LatLng (44.4458041, 26.1093176));\n listOfpoints.get(6).add(new LatLng (44.4453905, 26.1091888));\n listOfpoints.get(6).add(new LatLng (44.4448083, 26.1089099));\n listOfpoints.get(6).add(new LatLng (44.4442109, 26.1084163));\n listOfpoints.get(6).add(new LatLng (44.4435828, 26.1076224));\n listOfpoints.get(6).add(new LatLng (44.4433377, 26.107558));\n listOfpoints.get(6).add(new LatLng (44.4420662,26.1072791));\n listOfpoints.get(6).add(new LatLng (44.440863,26.1070373));\n listOfpoints.get(6).add(new LatLng (44.4407946,26.1082018));\n listOfpoints.get(6).add(new LatLng ( 44.4406107,26.1085451));\n listOfpoints.get(6).add(new LatLng (44.43986, 26.1084163));\n listOfpoints.get(6).add(new LatLng (44.4384659, 26.1079014));\n listOfpoints.get(6).add(new LatLng (44.4372095, 26.1073864));\n listOfpoints.get(6).add(new LatLng (44.4365425, 26.1067583));\n\n\n listOfpoints.get(7).add(new LatLng (44.4268641,26.1040563));\n listOfpoints.get(7).add(new LatLng ( 44.4265883,26.1107511));\n listOfpoints.get(7).add(new LatLng (44.4261898,26.118905));\n listOfpoints.get(7).add(new LatLng (44.4274311,26.1189909));\n listOfpoints.get(7).add(new LatLng (44.4276303,26.1189265));\n listOfpoints.get(7).add(new LatLng (44.4285497,26.1191625));\n listOfpoints.get(7).add(new LatLng (44.4288408,26.1193342));\n listOfpoints.get(7).add(new LatLng (44.4294997,26.1199564));\n listOfpoints.get(7).add(new LatLng (44.4297909, 26.1200852));\n listOfpoints.get(7).add(new LatLng (44.4303272,26.1203427));\n listOfpoints.get(7).add(new LatLng (44.431124, 26.1205787));\n listOfpoints.get(7).add(new LatLng (44.4328861, 26.1207289));\n listOfpoints.get(7).add(new LatLng (44.4329933, 26.1206431));\n listOfpoints.get(7).add(new LatLng (44.4331159, 26.1194844));\n listOfpoints.get(7).add(new LatLng (44.4331925,26.118154));\n listOfpoints.get(7).add(new LatLng (44.4332844,26.1160512));\n listOfpoints.get(7).add(new LatLng (44.4328094,26.112339));\n listOfpoints.get(7).add(new LatLng (44.4327022, 26.1120171));\n listOfpoints.get(7).add(new LatLng (44.4299135, 26.1064596));\n listOfpoints.get(7).add(new LatLng (44.4289634,26.1040778));\n listOfpoints.get(7).add(new LatLng (44.4281819,26.1039705));\n listOfpoints.get(7).add(new LatLng (44.4268641,26.1040563));\n\n\n\n\n listOfpoints.get(8).add (new LatLng (44.4262461,26.1007836));\n listOfpoints.get(8).add (new LatLng (44.4260163,26.1014488));\n listOfpoints.get(8).add (new LatLng (44.4259397,26.1023715));\n listOfpoints.get(8).add (new LatLng (44.4258784,26.103616));\n listOfpoints.get(8).add (new LatLng (44.426001,26.1039593));\n listOfpoints.get(8).add (new LatLng (44.42643,26.1039593));\n listOfpoints.get(8).add (new LatLng (44.4272882,26.1038735));\n listOfpoints.get(8).add (new LatLng (44.4282995,26.1038306));\n listOfpoints.get(8).add (new LatLng (44.4289278,26.1035731));\n listOfpoints.get(8).add (new LatLng (44.4289431,26.1028006));\n listOfpoints.get(8).add (new LatLng (44.4291423,26.1015132));\n listOfpoints.get(8).add (new LatLng (44.4286366,26.1007836));\n listOfpoints.get(8).add (new LatLng (44.4284834,26.1010196));\n listOfpoints.get(8).add (new LatLng (44.4271043,26.1008694));\n listOfpoints.get(8).add (new LatLng (44.4262461, 26.1007836));\n\n\n\n listOfpoints.get(9).add(new LatLng (44.4262461,26.1007836));\n listOfpoints.get(9).add(new LatLng (44.4284834,26.1010196));\n listOfpoints.get(9).add(new LatLng (44.4290094,26.1000479));\n listOfpoints.get(9).add(new LatLng (44.4292545,26.0986961));\n listOfpoints.get(9).add(new LatLng (44.4293465,26.0971726));\n listOfpoints.get(9).add(new LatLng (44.4294844,26.0964216));\n listOfpoints.get(9).add(new LatLng (44.4301739,26.0956276));\n listOfpoints.get(9).add(new LatLng (44.432411,26.0931385));\n listOfpoints.get(9).add(new LatLng (44.4327022,26.0925163));\n listOfpoints.get(9).add(new LatLng (44.4328401,26.0919584));\n listOfpoints.get(9).add(new LatLng (44.4329014, 26.0913576));\n listOfpoints.get(9).add(new LatLng (44.4260059,26.0907353));\n listOfpoints.get(9).add(new LatLng (44.4262051,26.091658));\n listOfpoints.get(9).add(new LatLng (44.4265882, 26.0922588));\n listOfpoints.get(9).add(new LatLng (44.4269867,26.0926879));\n listOfpoints.get(9).add(new LatLng (44.4267108,26.0998763));\n listOfpoints.get(9).add(new LatLng (44.4262461,26.1007836));\n\n\n listOfpoints.get(10).add(new LatLng (44.4260059,26.0907353));\n listOfpoints.get(10).add(new LatLng (44.4215507, 26.0903665));\n listOfpoints.get(10).add(new LatLng (44.4255811,26.0980483));\n listOfpoints.get(10).add(new LatLng ( 44.4265772,26.0999795));\n listOfpoints.get(10).add(new LatLng (44.4266998,26.099722));\n listOfpoints.get(10).add(new LatLng (44.4269867, 26.0926879));\n listOfpoints.get(10).add(new LatLng (44.4265882,26.0922588));\n listOfpoints.get(10).add(new LatLng (44.4262051,26.091658));\n listOfpoints.get(10).add(new LatLng (44.4260059,26.0907353));\n\n\n listOfpoints.get(11).add(new LatLng (44.4214281, 26.0905382));\n listOfpoints.get(11).add(new LatLng (44.4207385, 26.0915467));\n listOfpoints.get(11).add(new LatLng (44.4199568, 26.0929629));\n listOfpoints.get(11).add(new LatLng (44.4192059,26.0943576));\n listOfpoints.get(11).add(new LatLng (44.4187155,26.095409));\n listOfpoints.get(11).add(new LatLng (44.4186235,26.0957524));\n listOfpoints.get(11).add(new LatLng (44.4189607, 26.0968253));\n listOfpoints.get(11).add(new LatLng (44.4212442,26.1039063));\n listOfpoints.get(11).add(new LatLng (44.4227001,26.1039921));\n listOfpoints.get(11).add(new LatLng (44.4251367,26.1039921));\n listOfpoints.get(11).add(new LatLng (44.425765,26.103799));\n listOfpoints.get(11).add(new LatLng (44.425811,26.1027476));\n listOfpoints.get(11).add(new LatLng (44.4259182,26.101503));\n listOfpoints.get(11).add(new LatLng (44.4260715,26.1009237));\n listOfpoints.get(11).add(new LatLng (44.4264086,26.1001297));\n listOfpoints.get(11).add(new LatLng (44.4260255, 26.0993143));\n listOfpoints.get(11).add(new LatLng (44.4252899, 26.0978981));\n listOfpoints.get(11).add(new LatLng (44.424064,26.0955593));\n listOfpoints.get(11).add(new LatLng (44.4230372,26.0935851));\n listOfpoints.get(11).add(new LatLng (44.4214281,26.0905382));\n\n\n listOfpoints.get(12).add(new LatLng (44.4213365,26.1040423));\n listOfpoints.get(12).add(new LatLng (44.4216123,26.1052654));\n listOfpoints.get(12).add(new LatLng (44.4226851,26.1084411));\n listOfpoints.get(12).add(new LatLng (44.4237731,26.1117241));\n listOfpoints.get(12).add(new LatLng (44.4244168,26.11181));\n listOfpoints.get(12).add(new LatLng (44.4263629,26.1118743));\n listOfpoints.get(12).add(new LatLng (44.4264242,26.1109946));\n listOfpoints.get(12).add(new LatLng (44.4265315,26.1078832));\n listOfpoints.get(12).add(new LatLng (44.4267154,26.1041496));\n listOfpoints.get(12).add(new LatLng (44.4254588, 26.1042354));\n listOfpoints.get(12).add(new LatLng (44.4242482,26.1041925));\n listOfpoints.get(12).add(new LatLng (44.4213365,26.1040423));\n\n\n\n listOfpoints.get(13).add(new LatLng (44.4212442, 26.1039063));\n listOfpoints.get(13).add(new LatLng (44.4208987, 26.1041756));\n listOfpoints.get(13).add(new LatLng (44.4155345,26.1045404));\n listOfpoints.get(13).add(new LatLng (44.4156111, 26.1051198));\n listOfpoints.get(13).add(new LatLng (44.4156724, 26.106257));\n listOfpoints.get(13).add(new LatLng (44.4157184,26.1068793));\n listOfpoints.get(13).add(new LatLng (44.4157797, 26.1071153));\n listOfpoints.get(13).add(new LatLng (44.415841, 26.1077805));\n listOfpoints.get(13).add(new LatLng (44.4159024,26.1090465));\n listOfpoints.get(13).add(new LatLng (44.416025,26.1110635));\n listOfpoints.get(13).add(new LatLng (44.4161629,26.1116643));\n listOfpoints.get(13).add(new LatLng (44.4163468, 26.112072));\n listOfpoints.get(13).add(new LatLng (44.4166993,26.1127158));\n listOfpoints.get(13).add(new LatLng (44.4170518, 26.1133595));\n listOfpoints.get(13).add(new LatLng (44.4177109, 26.1127158));\n listOfpoints.get(13).add(new LatLng (44.4184006,26.1118575));\n listOfpoints.get(13).add(new LatLng (44.4190136,26.1112566));\n listOfpoints.get(13).add(new LatLng (44.4199331, 26.1107846));\n listOfpoints.get(13).add(new LatLng (44.4215883,26.1101838));\n listOfpoints.get(13).add(new LatLng (44.4229369,26.10954));\n listOfpoints.get(13).add(new LatLng (44.422753, 26.1089178));\n listOfpoints.get(13).add(new LatLng (44.4222626,26.1074372));\n listOfpoints.get(13).add(new LatLng (44.4217262,26.1059137));\n listOfpoints.get(13).add(new LatLng (44.4212442, 26.1039063));\n\n\n\n listOfpoints.get(14).add(new LatLng (44.4172379,26.1135832));\n listOfpoints.get(14).add(new LatLng (44.4169314,26.1139266));\n listOfpoints.get(14).add(new LatLng (44.4177284,26.1143128));\n listOfpoints.get(14).add(new LatLng (44.4185253,26.1147205));\n listOfpoints.get(14).add(new LatLng (44.4237666,26.1189047));\n listOfpoints.get(14).add(new LatLng (44.4237819,26.1191408));\n listOfpoints.get(14).add(new LatLng (44.4240425,26.1191622));\n listOfpoints.get(14).add(new LatLng (44.4258814,26.1192481));\n listOfpoints.get(14).add(new LatLng (44.425912,26.1188404));\n listOfpoints.get(14).add(new LatLng (44.426004,26.1167804));\n listOfpoints.get(14).add(new LatLng (44.4261113,26.1148063));\n listOfpoints.get(14).add(new LatLng (44.4262798,26.1120812));\n listOfpoints.get(14).add(new LatLng (44.4238739,26.1119525));\n listOfpoints.get(14).add(new LatLng (44.4235674,26.1115662));\n listOfpoints.get(14).add(new LatLng (44.4230157,26.109914));\n listOfpoints.get(14).add(new LatLng (44.4218817,26.1103646));\n listOfpoints.get(14).add(new LatLng (44.4200733,26.1110512));\n listOfpoints.get(14).add(new LatLng (44.4187246,26.1118666));\n listOfpoints.get(14).add(new LatLng (44.4172379,26.1135832));\n\n\n listOfpoints.get(15).add(new LatLng (44.4329128,26.0911565));\n listOfpoints.get(15).add(new LatLng (44.4334184,26.0843973));\n listOfpoints.get(15).add(new LatLng (44.4305378,26.0839467));\n listOfpoints.get(15).add(new LatLng (44.4304765,26.0840969));\n listOfpoints.get(15).add(new LatLng (44.4305531,26.0845475));\n listOfpoints.get(15).add(new LatLng (44.4306604,26.0853844));\n listOfpoints.get(15).add(new LatLng (44.4302773,26.0908131));\n listOfpoints.get(15).add(new LatLng (44.4304765,26.0910277));\n listOfpoints.get(15).add(new LatLng (44.4329128,26.0911565));\n\n\n listOfpoints.get(16).add(new LatLng (44.4254029,26.0786466));\n listOfpoints.get(16).add(new LatLng (44.4252956,26.0790543));\n listOfpoints.get(16).add(new LatLng (44.4246213,26.0901265));\n listOfpoints.get(16).add(new LatLng (44.4247746,26.0905127));\n listOfpoints.get(16).add(new LatLng (44.4298621,26.0909634));\n listOfpoints.get(16).add(new LatLng (44.4300919,26.0907273));\n listOfpoints.get(16).add(new LatLng (44.430475,26.0853414));\n listOfpoints.get(16).add(new LatLng ( 44.4291112,26.0806422));\n listOfpoints.get(16).add(new LatLng (44.428391,26.0795693));\n listOfpoints.get(16).add(new LatLng (44.4277781,26.0794835));\n listOfpoints.get(16).add(new LatLng (44.42574,26.0784535));\n listOfpoints.get(16).add(new LatLng (44.4254029,26.0786466));\n\n\n listOfpoints.get(17).add(new LatLng (44.4334039,26.1159853));\n listOfpoints.get(17).add(new LatLng (44.433312,26.1178736));\n listOfpoints.get(17).add(new LatLng (44.4331128,26.1208562));\n listOfpoints.get(17).add(new LatLng (44.4327757,26.1238603));\n listOfpoints.get(17).add(new LatLng (44.4325765,26.1256413));\n listOfpoints.get(17).add(new LatLng (44.4354264,26.1251477));\n listOfpoints.get(17).add(new LatLng (44.4389196,26.122723));\n listOfpoints.get(17).add(new LatLng (44.4391954,26.1224012));\n listOfpoints.get(17).add(new LatLng (44.4381383,26.1165003));\n listOfpoints.get(17).add(new LatLng (44.4368666,26.1169724));\n listOfpoints.get(17).add(new LatLng (44.4364683,26.1169295));\n listOfpoints.get(17).add(new LatLng (44.4334039,26.1159853));\n\n\n listOfpoints.get(18).add(new LatLng (44.4454662,26.0911104));\n listOfpoints.get(18).add(new LatLng (44.4453896, 26.0909388));\n listOfpoints.get(18).add(new LatLng (44.4444245,26.0918185));\n listOfpoints.get(18).add(new LatLng (44.4428313, 26.093342));\n listOfpoints.get(18).add(new LatLng (44.4413912,26.0947797));\n listOfpoints.get(18).add(new LatLng (44.4405333,26.0959169));\n listOfpoints.get(18).add(new LatLng (44.4419274,26.0990069));\n listOfpoints.get(18).add(new LatLng (44.4433368,26.0983202));\n listOfpoints.get(18).add(new LatLng (44.4452824,26.0973761));\n listOfpoints.get(18).add(new LatLng (44.446707,26.0966894));\n listOfpoints.get(18).add(new LatLng (44.4468296,26.0961959));\n listOfpoints.get(18).add(new LatLng (44.4465385,26.0945651));\n listOfpoints.get(18).add(new LatLng (44.4462628,26.0935351));\n listOfpoints.get(18).add(new LatLng (44.4454662,26.0911104));\n\n\n listOfpoints.get(19).add(new LatLng (44.4401196,26.0817507));\n listOfpoints.get(19).add(new LatLng (44.4401043,26.0831669));\n listOfpoints.get(19).add(new LatLng (44.4402115,26.0846046));\n listOfpoints.get(19).add(new LatLng (44.440089,26.0863641));\n listOfpoints.get(19).add(new LatLng (44.4399358,26.0894755));\n listOfpoints.get(19).add(new LatLng ( 44.4402115, 26.0932949));\n listOfpoints.get(19).add(new LatLng (44.4407937,26.0953763));\n listOfpoints.get(19).add(new LatLng (44.440855,26.0952047));\n listOfpoints.get(19).add(new LatLng (44.4450832,26.0910419));\n listOfpoints.get(19).add(new LatLng (44.4454509,26.0905698));\n listOfpoints.get(19).add(new LatLng (44.4445011,26.0879949));\n listOfpoints.get(19).add(new LatLng (44.4437964,26.0862783));\n listOfpoints.get(19).add(new LatLng (44.4434287,26.0840681));\n listOfpoints.get(19).add(new LatLng (44.443061, 26.0812143));\n listOfpoints.get(19).add(new LatLng (44.4423257, 26.0809997));\n listOfpoints.get(19).add(new LatLng (44.4419887, 26.0810211));\n listOfpoints.get(19).add(new LatLng (44.4411767, 26.0813215));\n listOfpoints.get(19).add(new LatLng (44.4401196, 26.0817507));\n\n\n listOfpoints.get(20).add(new LatLng (44.418527,26.0958537));\n listOfpoints.get(20).add(new LatLng (44.4145114,26.0985144));\n listOfpoints.get(20).add(new LatLng (44.4143275,26.098729));\n listOfpoints.get(20).add(new LatLng (44.4143275,26.0990294));\n listOfpoints.get(20).add(new LatLng (44.4143735, 26.0993727));\n listOfpoints.get(20).add(new LatLng (44.4144195, 26.0998233));\n listOfpoints.get(20).add(new LatLng (44.4142969, 26.1008104));\n listOfpoints.get(20).add(new LatLng (44.4140976,26.1009177));\n listOfpoints.get(20).add(new LatLng (44.4138983,26.1008962));\n listOfpoints.get(20).add(new LatLng (44.4138064,26.1006602));\n listOfpoints.get(20).add(new LatLng (44.4137451,26.1000379));\n listOfpoints.get(20).add(new LatLng (44.4130247,26.098729));\n listOfpoints.get(20).add(new LatLng (44.4127335,26.0984286));\n listOfpoints.get(20).add(new LatLng (44.4113386,26.0985144));\n listOfpoints.get(20).add(new LatLng (44.4102503, 26.0985788));\n listOfpoints.get(20).add(new LatLng (44.414021,26.1043509));\n listOfpoints.get(20).add(new LatLng (44.4143122,26.1043938));\n listOfpoints.get(20).add(new LatLng (44.4159522,26.1042865));\n listOfpoints.get(20).add(new LatLng (44.4191554,26.104029));\n listOfpoints.get(20).add(new LatLng (44.4210711,26.1038574));\n listOfpoints.get(20).add(new LatLng (44.4208259,26.1030205));\n listOfpoints.get(20).add(new LatLng (44.4203508,26.1016258));\n listOfpoints.get(20).add(new LatLng (44.4198297,26.1000379));\n listOfpoints.get(20).add(new LatLng (44.4192167, 26.0981067));\n listOfpoints.get(20).add(new LatLng (44.418527,26.0958537));\n\n\n listOfpoints.get(21).add(new LatLng (44.410189,26.0984071));\n listOfpoints.get(21).add(new LatLng (44.4103883,26.0984715));\n listOfpoints.get(21).add(new LatLng (44.4128867,26.0983213));\n listOfpoints.get(21).add(new LatLng (44.4138524, 26.1000594));\n listOfpoints.get(21).add(new LatLng (44.4138524,26.1004671));\n listOfpoints.get(21).add(new LatLng (44.4139597,26.1007246));\n listOfpoints.get(21).add(new LatLng (44.4141742,26.1007246));\n listOfpoints.get(21).add(new LatLng (44.4142662,26.1003812));\n listOfpoints.get(21).add(new LatLng (44.4143275,26.0996946));\n listOfpoints.get(21).add(new LatLng (44.4141589,26.0986646));\n listOfpoints.get(21).add(new LatLng (44.418435,26.0957464));\n listOfpoints.get(21).add(new LatLng (44.4190021,26.0946306));\n listOfpoints.get(21).add(new LatLng (44.4183737,26.0934504));\n listOfpoints.get(21).add(new LatLng (44.4176534, 26.0933431));\n listOfpoints.get(21).add(new LatLng (44.4165652, 26.0933431));\n listOfpoints.get(21).add(new LatLng (44.4155996,26.0927423));\n listOfpoints.get(21).add(new LatLng (44.4149406,26.0921415));\n listOfpoints.get(21).add(new LatLng (44.4142662,26.0919055));\n listOfpoints.get(21).add(new LatLng (44.412994, 26.0920986));\n listOfpoints.get(21).add(new LatLng (44.4098211,26.0943945));\n listOfpoints.get(21).add(new LatLng (44.4096679,26.0947164));\n listOfpoints.get(21).add(new LatLng (44.4096985, 26.0953816));\n listOfpoints.get(21).add(new LatLng (44.4088401, 26.0962399));\n listOfpoints.get(21).add(new LatLng (44.4088248,26.0966047));\n listOfpoints.get(21).add(new LatLng (44.410189, 26.0984071));\n\n\n listOfpoints.get(22).add(new LatLng (44.4238034,26.0734041));\n listOfpoints.get(22).add(new LatLng (44.4252745,26.0779102));\n listOfpoints.get(22).add(new LatLng (44.426102,26.0783394));\n listOfpoints.get(22).add(new LatLng (44.4286458, 26.079541));\n listOfpoints.get(22).add(new LatLng (44.4293813,26.0807855));\n listOfpoints.get(22).add(new LatLng (44.4303313,26.0837038));\n listOfpoints.get(22).add(new LatLng (44.4329668,26.08409));\n listOfpoints.get(22).add(new LatLng (44.4335797,26.0839613));\n listOfpoints.get(22).add(new LatLng (44.4337023,26.0821159));\n listOfpoints.get(22).add(new LatLng (44.4339474,26.0797556));\n listOfpoints.get(22).add(new LatLng (44.434499,26.078039));\n listOfpoints.get(22).add(new LatLng (44.4358473,26.0748632));\n listOfpoints.get(22).add(new LatLng (44.4351732,26.073962));\n listOfpoints.get(22).add(new LatLng (44.433212,26.0710867));\n listOfpoints.get(22).add(new LatLng (44.4312201,26.0683401));\n listOfpoints.get(22).add(new LatLng (44.4299329,26.067396));\n listOfpoints.get(22).add(new LatLng (44.4283087,26.0655506));\n listOfpoints.get(22).add(new LatLng (44.4274812,26.0668381));\n listOfpoints.get(22).add(new LatLng (44.4261633,26.0691984));\n listOfpoints.get(22).add(new LatLng (44.4249374,26.0715587));\n listOfpoints.get(22).add(new LatLng (44.4238034,26.0734041));\n\n\n listOfpoints.get(23).add(new LatLng (44.4205851,26.0657652));\n listOfpoints.get(23).add(new LatLng (44.4169069,26.0695417));\n listOfpoints.get(23).add(new LatLng (44.4131364,26.073447));\n listOfpoints.get(23).add(new LatLng (44.4139948,26.0749491));\n listOfpoints.get(23).add(new LatLng (44.4156807,26.0782106));\n listOfpoints.get(23).add(new LatLng (44.4178265,26.0819443));\n listOfpoints.get(23).add(new LatLng (44.4184089,26.0840471));\n listOfpoints.get(23).add(new LatLng (44.4213514,26.0900982));\n listOfpoints.get(23).add(new LatLng (44.4240486, 26.0903986));\n listOfpoints.get(23).add(new LatLng (44.424447,26.0897978));\n listOfpoints.get(23).add(new LatLng (44.4252132,26.0783394));\n listOfpoints.get(23).add(new LatLng (44.4236808, 26.0737474));\n listOfpoints.get(23).add(new LatLng (44.4205851,26.0657652));\n\n\n\n listOfpoints.get(24).add(new LatLng (44.4427933,26.0989692));\n listOfpoints.get(24).add(new LatLng (44.442854,26.1011417));\n listOfpoints.get(24).add(new LatLng (44.4434668,26.1027725));\n listOfpoints.get(24).add(new LatLng (44.4430685, 26.1033304));\n listOfpoints.get(24).add(new LatLng (44.4430685,26.1047895));\n listOfpoints.get(24).add(new LatLng (44.4437732,26.1076648));\n listOfpoints.get(24).add(new LatLng (44.4446617,26.1085661));\n listOfpoints.get(24).add(new LatLng (44.4461629,26.1092956));\n listOfpoints.get(24).add(new LatLng (44.447174,26.1100252));\n listOfpoints.get(24).add(new LatLng (44.4473272,26.108609));\n listOfpoints.get(24).add(new LatLng (44.4480624,26.107064));\n listOfpoints.get(24).add(new LatLng (44.4480931,26.1060341));\n listOfpoints.get(24).add(new LatLng (44.4476948,26.1029871));\n listOfpoints.get(24).add(new LatLng (44.448522, 26.1028583));\n listOfpoints.get(24).add(new LatLng (44.4499006,26.102515));\n listOfpoints.get(24).add(new LatLng (44.4509729, 26.101485));\n listOfpoints.get(24).add(new LatLng (44.4529335,26.1007555));\n listOfpoints.get(24).add(new LatLng (44.452719,26.0935457));\n listOfpoints.get(24).add(new LatLng (44.4521063,26.0865934));\n listOfpoints.get(24).add(new LatLng (44.4506359,26.0897262));\n listOfpoints.get(24).add(new LatLng (44.4472046,26.0966785));\n listOfpoints.get(24).add(new LatLng (44.4465306,26.0971077));\n listOfpoints.get(24).add(new LatLng (44.4427933,26.0989692));\n\n\n listOfpoints.get(25).add(new LatLng (44.3944544,26.1201103));\n listOfpoints.get(25).add(new LatLng (44.3948837,26.1205394));\n listOfpoints.get(25).add(new LatLng (44.400587,26.1207969));\n listOfpoints.get(25).add(new LatLng (44.4069336,26.1209686));\n listOfpoints.get(25).add(new LatLng (44.4075468,26.1204536));\n listOfpoints.get(25).add(new LatLng (44.4081599,26.119252));\n listOfpoints.get(25).add(new LatLng (44.4083439, 26.1177499));\n listOfpoints.get(25).add(new LatLng (44.4084665, 26.1148317));\n listOfpoints.get(25).add(new LatLng (44.4090183,26.1131151));\n listOfpoints.get(25).add(new LatLng (44.4102139, 26.1109693));\n listOfpoints.get(25).add(new LatLng (44.411992,26.106549));\n listOfpoints.get(25).add(new LatLng (44.4128197, 26.105562));\n listOfpoints.get(25).add(new LatLng (44.4140152, 26.1047037));\n listOfpoints.get(25).add(new LatLng (44.4105512, 26.099468));\n listOfpoints.get(25).add(new LatLng (44.4088344, 26.0971077));\n listOfpoints.get(25).add(new LatLng (44.4074854,26.0960777));\n listOfpoints.get(25).add(new LatLng (44.4067803, 26.0957773));\n listOfpoints.get(25).add(new LatLng (44.4047262, 26.096936));\n listOfpoints.get(25).add(new LatLng (44.4024267, 26.098481));\n listOfpoints.get(25).add(new LatLng (44.4015068, 26.0996826));\n listOfpoints.get(25).add(new LatLng (44.3998818, 26.1055191));\n listOfpoints.get(25).add(new LatLng (44.3944544, 26.1201103));\n\n\n\n listOfpoints.get(26).add(new LatLng (44.4523651,26.0865441));\n listOfpoints.get(26).add(new LatLng (44.4526408,26.0898486));\n listOfpoints.get(26).add(new LatLng (44.4530697,26.0983887));\n listOfpoints.get(26).add(new LatLng (44.4558573,26.0971013));\n listOfpoints.get(26).add(new LatLng ( 44.4622592,26.0925522));\n listOfpoints.get(26).add(new LatLng ( 44.4635762, 26.0910073));\n listOfpoints.get(26).add(new LatLng (44.4658121,26.0865441));\n listOfpoints.get(26).add(new LatLng (44.4631474,26.0864153));\n listOfpoints.get(26).add(new LatLng (44.4534067,26.0861578));\n listOfpoints.get(26).add(new LatLng (44.4523651,26.0865441));\n\n\n\n listOfpoints.get(27).add(new LatLng (44.4346864, 26.0895482));\n listOfpoints.get(27).add(new LatLng (44.4398343, 26.0864583));\n listOfpoints.get(27).add(new LatLng (44.439865,26.0816947));\n listOfpoints.get(27).add(new LatLng (44.4420098,26.0807076));\n listOfpoints.get(27).add(new LatLng (44.4429903, 26.0808793));\n listOfpoints.get(27).add(new LatLng (44.4426532,26.0791626));\n listOfpoints.get(27).add(new LatLng (44.4405084, 26.0729399));\n listOfpoints.get(27).add(new LatLng (44.440202, 26.0727253));\n listOfpoints.get(27).add(new LatLng (44.4384555, 26.0702363));\n listOfpoints.get(27).add(new LatLng (44.4362186, 26.0744849));\n listOfpoints.get(27).add(new LatLng (44.4344413,26.0792914));\n listOfpoints.get(27).add(new LatLng (44.4346864,26.0895482));\n\n\n\n listOfpoints.get(28).add(new LatLng (44.443266, 26.0812226));\n listOfpoints.get(28).add(new LatLng (44.443061,26.0812143));\n listOfpoints.get(28).add(new LatLng (44.4437562,26.0855141));\n listOfpoints.get(28).add(new LatLng (44.4440626,26.0866299));\n listOfpoints.get(28).add(new LatLng (44.444798, 26.0884753));\n listOfpoints.get(28).add(new LatLng (44.4465443,26.0937539));\n listOfpoints.get(28).add(new LatLng (44.4468813,26.0958138));\n listOfpoints.get(28).add(new LatLng (44.4471264,26.0961142));\n listOfpoints.get(28).add(new LatLng (44.4492097, 26.0919943));\n listOfpoints.get(28).add(new LatLng (44.4507109,26.0889473));\n listOfpoints.get(28).add(new LatLng (44.4519056, 26.0864153));\n listOfpoints.get(28).add(new LatLng (44.4518137,26.0848275));\n listOfpoints.get(28).add(new LatLng (44.4481987, 26.0827246));\n listOfpoints.get(28).add(new LatLng (44.4455026,26.081523));\n listOfpoints.get(28).add(new LatLng (44.443266, 26.0812226));\n\n\n\n listOfpoints.get(29).add(new LatLng (44.4380283, 26.1146959));\n listOfpoints.get(29).add(new LatLng (44.437967, 26.115168));\n listOfpoints.get(29).add(new LatLng (44.4410924, 26.131905));\n listOfpoints.get(29).add(new LatLng (44.4413375,26.1327204));\n listOfpoints.get(29).add(new LatLng (44.443758, 26.1284717));\n listOfpoints.get(29).add(new LatLng (44.4467299, 26.1259827));\n listOfpoints.get(29).add(new LatLng (44.4480167,26.1254248));\n listOfpoints.get(29).add(new LatLng (44.4491809, 26.124266));\n listOfpoints.get(29).add(new LatLng (44.4380283, 26.1146959));\n\n\n listOfpoints.get(30).add(new LatLng (44.4129016,26.0735409));\n listOfpoints.get(30).add(new LatLng (44.4072915,26.0791628));\n listOfpoints.get(30).add(new LatLng (44.4031525,26.0816948));\n listOfpoints.get(30).add(new LatLng (44.4003317,26.0844414));\n listOfpoints.get(30).add(new LatLng (44.3973268,26.0850422));\n listOfpoints.get(30).add(new LatLng (44.4005463,26.0880463));\n listOfpoints.get(30).add(new LatLng (44.4017115, 26.0912221));\n listOfpoints.get(30).add(new LatLng (44.4043176,26.0963719));\n listOfpoints.get(30).add(new LatLng (44.4048695, 26.096329));\n listOfpoints.get(30).add(new LatLng (44.4060652,26.0956423));\n listOfpoints.get(30).add(new LatLng (44.4070462,26.0953848));\n listOfpoints.get(30).add(new LatLng (44.4084871, 26.096329));\n listOfpoints.get(30).add(new LatLng (44.4094682, 26.0951703));\n listOfpoints.get(30).add(new LatLng (44.4094375, 26.0944836));\n listOfpoints.get(30).add(new LatLng (44.4132388, 26.09178));\n listOfpoints.get(30).add(new LatLng (44.4145263, 26.091737));\n listOfpoints.get(30).add(new LatLng (44.4163656,26.0929387));\n listOfpoints.get(30).add(new LatLng (44.4183273,26.0930674));\n listOfpoints.get(30).add(new LatLng (44.4189404,26.0941832));\n listOfpoints.get(30).add(new LatLng (44.4212086, 26.0904067));\n listOfpoints.get(30).add(new LatLng (44.4210553,26.0898488));\n listOfpoints.get(30).add(new LatLng (44.4186339, 26.0850852));\n listOfpoints.get(30).add(new LatLng (44.4181741,26.0840123));\n listOfpoints.get(30).add(new LatLng (44.4176836, 26.0822527));\n listOfpoints.get(30).add(new LatLng (44.4171932,26.0813944));\n listOfpoints.get(30).add(new LatLng (44.4150781, 26.077575));\n listOfpoints.get(30).add(new LatLng (44.4129016, 26.0735409));\n\n\n\n listOfpoints.get(31).add(new LatLng (44.4152528, 26.1045537));\n listOfpoints.get(31).add(new LatLng (44.4142412, 26.1048541));\n listOfpoints.get(31).add(new LatLng (44.4125552,26.1062274));\n listOfpoints.get(31).add(new LatLng (44.4118501,26.1074291));\n listOfpoints.get(31).add(new LatLng (44.4107158,26.1103473));\n listOfpoints.get(31).add(new LatLng (44.4093976,26.1127935));\n listOfpoints.get(31).add(new LatLng (44.4087844, 26.1144243));\n listOfpoints.get(31).add(new LatLng (44.4085392, 26.1156259));\n listOfpoints.get(31).add(new LatLng (44.4085392,26.1170421));\n listOfpoints.get(31).add(new LatLng (44.4083246, 26.1195741));\n listOfpoints.get(31).add(new LatLng (44.4074355, 26.1209903));\n listOfpoints.get(31).add(new LatLng (44.409183, 26.1223636));\n listOfpoints.get(31).add(new LatLng (44.4168774, 26.1136518));\n listOfpoints.get(31).add(new LatLng (44.4158658, 26.1113344));\n listOfpoints.get(31).add(new LatLng (44.4156513, 26.1077295));\n listOfpoints.get(31).add(new LatLng (44.4152528,26.1045537));\n\n\n listOfpoints.get(32).add(new LatLng (44.4169364, 26.1141937));\n listOfpoints.get(32).add(new LatLng (44.4164766, 26.114537));\n listOfpoints.get(32).add(new LatLng (44.4110201,26.120631));\n listOfpoints.get(32).add(new LatLng (44.4094872,26.122648));\n listOfpoints.get(32).add(new LatLng (44.4131046, 26.1296003));\n listOfpoints.get(32).add(new LatLng (44.4151891, 26.1329906));\n listOfpoints.get(32).add(new LatLng (44.4171203, 26.1348789));\n listOfpoints.get(32).add(new LatLng (44.4201242, 26.1365526));\n listOfpoints.get(32).add(new LatLng (44.4204001,26.1351364));\n listOfpoints.get(32).add(new LatLng (44.4206759, 26.1333339));\n listOfpoints.get(32).add(new LatLng (44.42181,26.1313169));\n listOfpoints.get(32).add(new LatLng (44.4228827, 26.1314028));\n listOfpoints.get(32).add(new LatLng (44.4255799, 26.1284845));\n listOfpoints.get(32).add(new LatLng (44.4256412, 26.1274975));\n listOfpoints.get(32).add(new LatLng (44.4257638, 26.1234634));\n listOfpoints.get(32).add(new LatLng (44.425917, 26.1195152));\n listOfpoints.get(32).add(new LatLng (44.4238635, 26.1194294));\n listOfpoints.get(32).add(new LatLng (44.4193273,26.115567));\n listOfpoints.get(32).add(new LatLng (44.4169364, 26.1141937));\n\n\n listOfpoints.get(33).add(new LatLng (44.4261929,26.1191112));\n listOfpoints.get(33).add(new LatLng (44.4255799,26.1284845));\n listOfpoints.get(33).add(new LatLng (44.4318104,26.1386596));\n listOfpoints.get(33).add(new LatLng (44.4320863,26.1385309));\n listOfpoints.get(33).add(new LatLng (44.4313814,26.1329948));\n listOfpoints.get(33).add(new LatLng (44.4316879,26.129819));\n listOfpoints.get(33).add(new LatLng (44.4326992,26.1229526));\n listOfpoints.get(33).add(new LatLng (44.4328861,26.1207289));\n listOfpoints.get(33).add(new LatLng (44.4300024, 26.1205493));\n listOfpoints.get(33).add(new LatLng (44.4288684,26.1196481));\n listOfpoints.get(33).add(new LatLng (44.4275797,26.1191541));\n listOfpoints.get(33).add(new LatLng (44.4261929,26.1191112));\n\n\n listOfpoints.get(34).add(new LatLng (44.4202782, 26.1364709));\n listOfpoints.get(34).add(new LatLng (44.4204314,26.1366855));\n listOfpoints.get(34).add(new LatLng (44.4255806,26.1375009));\n listOfpoints.get(34).add(new LatLng (44.4293579,26.1390888));\n listOfpoints.get(34).add(new LatLng (44.4303615,26.139196));\n listOfpoints.get(34).add(new LatLng (44.4317406,26.1386596));\n listOfpoints.get(34).add(new LatLng (44.4266686,26.1303877));\n listOfpoints.get(34).add(new LatLng (44.4255882,26.128596));\n listOfpoints.get(34).add(new LatLng (44.4250212,26.1291968));\n listOfpoints.get(34).add(new LatLng (44.4230214, 26.1315571));\n listOfpoints.get(34).add(new LatLng (44.4227685,26.1316644));\n listOfpoints.get(34).add(new LatLng (44.4217877,26.1315678));\n listOfpoints.get(34).add(new LatLng (44.4207762,26.1334668));\n listOfpoints.get(34).add(new LatLng (44.4202782,26.1364709));\n\n\n listOfpoints.get(35).add(new LatLng (44.4438143,26.1191764));\n listOfpoints.get(35).add(new LatLng (44.4437985,26.1194425));\n listOfpoints.get(35).add(new LatLng (44.4469926,26.1222749));\n listOfpoints.get(35).add(new LatLng (44.4492443, 26.1240881));\n listOfpoints.get(35).add(new LatLng (44.4504315,26.123144));\n listOfpoints.get(35).add(new LatLng (44.4512893,26.1217492));\n listOfpoints.get(35).add(new LatLng (44.451421, 26.1212347));\n listOfpoints.get(35).add(new LatLng (44.4523401, 26.1180161));\n listOfpoints.get(35).add(new LatLng (44.4527077, 26.1145399));\n listOfpoints.get(35).add(new LatLng (44.452944, 26.1009052));\n listOfpoints.get(35).add(new LatLng (44.4516573,26.1013558));\n listOfpoints.get(35).add(new LatLng (44.4510217,26.1016777));\n listOfpoints.get(35).add(new LatLng (44.4500413,26.1025574));\n listOfpoints.get(35).add(new LatLng (44.449712,26.1027291));\n listOfpoints.get(35).add(new LatLng (44.4477666,26.1031153));\n listOfpoints.get(35).add(new LatLng (44.4479198,26.1042526));\n listOfpoints.get(35).add(new LatLng (44.448027,26.1051967));\n listOfpoints.get(35).add(new LatLng (44.4481419,26.1058619));\n listOfpoints.get(35).add(new LatLng (44.4481189, 26.1070206));\n listOfpoints.get(35).add(new LatLng (44.448004,26.1073425));\n listOfpoints.get(35).add(new LatLng (44.4473836,26.1088338));\n listOfpoints.get(35).add(new LatLng (44.4472917,26.1100569));\n listOfpoints.get(35).add(new LatLng (44.4471385, 26.1102929));\n listOfpoints.get(35).add(new LatLng (44.4469241,26.1116877));\n listOfpoints.get(35).add(new LatLng (44.4469394,26.1122456));\n listOfpoints.get(35).add(new LatLng (44.4467403,26.1136403));\n listOfpoints.get(35).add(new LatLng (44.445959,26.1161938));\n listOfpoints.get(35).add(new LatLng (44.4448254,26.1176744));\n listOfpoints.get(35).add(new LatLng (44.4438143,26.1191764));\n\n\n listOfpoints.get(36).add(new LatLng (44.4391967, 26.1225882));\n listOfpoints.get(36).add(new LatLng (44.4372662,26.123983));\n listOfpoints.get(36).add(new LatLng (44.4356115, 26.1252275));\n listOfpoints.get(36).add(new LatLng (44.4344471, 26.1254207));\n listOfpoints.get(36).add(new LatLng (44.4324705,26.1258069));\n listOfpoints.get(36).add(new LatLng (44.4315052, 26.1327377));\n listOfpoints.get(36).add(new LatLng (44.432256,26.1385742));\n listOfpoints.get(36).add(new LatLng (44.4351059,26.1373511));\n listOfpoints.get(36).add(new LatLng (44.4376339, 26.1363641));\n listOfpoints.get(36).add(new LatLng (44.4389822, 26.1353985));\n listOfpoints.get(36).add(new LatLng (44.4401772,26.1345402));\n listOfpoints.get(36).add(new LatLng (44.4411883, 26.1334458));\n listOfpoints.get(36).add(new LatLng (44.4402231, 26.1281458));\n listOfpoints.get(36).add(new LatLng (44.4398861,26.126279));\n listOfpoints.get(36).add(new LatLng (44.4391967, 26.1225882));\n\n\n\n listOfpoints.get(37).add(new LatLng (44.3978822,26.1102715));\n listOfpoints.get(37).add(new LatLng (44.3977135, 26.1097995));\n listOfpoints.get(37).add(new LatLng (44.3909519,26.1099282));\n listOfpoints.get(37).add(new LatLng (44.3874558, 26.1100784));\n listOfpoints.get(37).add(new LatLng (44.3877779, 26.1129538));\n listOfpoints.get(37).add(new LatLng (44.3881766, 26.1154428));\n listOfpoints.get(37).add(new LatLng (44.3886059, 26.1165586));\n listOfpoints.get(37).add(new LatLng (44.3894799, 26.1180178));\n listOfpoints.get(37).add(new LatLng (44.3906606, 26.1193052));\n listOfpoints.get(37).add(new LatLng (44.3927152, 26.1205927));\n listOfpoints.get(37).add(new LatLng (44.3936352, 26.1206785));\n listOfpoints.get(37).add(new LatLng (44.3940339, 26.1202279));\n listOfpoints.get(37).add(new LatLng (44.3978822,26.1102715));\n\n\n\n listOfpoints.get(38).add(new LatLng (44.389256,26.0917973));\n listOfpoints.get(38).add(new LatLng (44.3892556,26.0920523));\n listOfpoints.get(38).add(new LatLng (44.4003643, 26.0970731));\n listOfpoints.get(38).add(new LatLng (44.4008548, 26.0971482));\n listOfpoints.get(38).add(new LatLng (44.4030625, 26.0971601));\n listOfpoints.get(38).add(new LatLng (44.4043195,26.0965593));\n listOfpoints.get(38).add(new LatLng (44.4019587, 26.0920531));\n listOfpoints.get(38).add(new LatLng (44.4005636,26.0883195));\n listOfpoints.get(38).add(new LatLng (44.3987104,26.0864919));\n listOfpoints.get(38).add(new LatLng (44.3972443, 26.0851884));\n listOfpoints.get(38).add(new LatLng (44.3961557,26.0851884));\n listOfpoints.get(38).add(new LatLng (44.3946992,26.0841584));\n listOfpoints.get(38).add(new LatLng (44.3918473,26.0856819));\n listOfpoints.get(38).add(new LatLng (44.3912493,26.08639));\n listOfpoints.get(38).add(new LatLng (44.389256, 26.0917973));\n\n\n\n listOfpoints.get(39).add(new LatLng (44.4029942,26.0973363));\n listOfpoints.get(39).add(new LatLng (44.4011008,26.0974224));\n listOfpoints.get(39).add(new LatLng (44.399997,26.0972078));\n listOfpoints.get(39).add(new LatLng (44.389065,26.0922189));\n listOfpoints.get(39).add(new LatLng (44.3863339,26.0922418));\n listOfpoints.get(39).add(new LatLng (44.387806,26.0981212));\n listOfpoints.get(39).add(new LatLng (44.3887261,26.1004386));\n listOfpoints.get(39).add(new LatLng (44.3889714,26.1023269));\n listOfpoints.get(39).add(new LatLng (44.3887567,26.1040435));\n listOfpoints.get(39).add(new LatLng (44.3875607,26.1097513));\n listOfpoints.get(39).add(new LatLng (44.3977341,26.1097306));\n listOfpoints.get(39).add(new LatLng (44.3979142,26.1101973));\n listOfpoints.get(39).add(new LatLng (44.397964,26.1101222));\n listOfpoints.get(39).add(new LatLng (44.3996198,26.1059165));\n listOfpoints.get(39).add(new LatLng (44.4016128,26.0990715));\n listOfpoints.get(39).add(new LatLng (44.4030402,26.0978593));\n listOfpoints.get(39).add(new LatLng (44.4029942,26.0973363));\n\n\n\n listOfpoints.get(40).add(new LatLng (44.4496116, 26.1241839));\n listOfpoints.get(40).add(new LatLng (44.4494277,26.1245701));\n listOfpoints.get(40).add(new LatLng (44.4610682, 26.1325953));\n listOfpoints.get(40).add(new LatLng (44.4618646,26.1326811));\n listOfpoints.get(40).add(new LatLng (44.4644374, 26.1345265));\n listOfpoints.get(40).add(new LatLng (44.4660607, 26.1368439));\n listOfpoints.get(40).add(new LatLng (44.4665813,26.1365435));\n listOfpoints.get(40).add(new LatLng (44.4663976,26.1354277));\n listOfpoints.get(40).add(new LatLng (44.4667345, 26.1349985));\n listOfpoints.get(40).add(new LatLng (44.4681739, 26.1354277));\n listOfpoints.get(40).add(new LatLng (44.4701952, 26.1371014));\n listOfpoints.get(40).add(new LatLng (44.4719714, 26.1368868));\n listOfpoints.get(40).add(new LatLng (44.4730739, 26.1358998));\n listOfpoints.get(40).add(new LatLng (44.4731964,26.1346981));\n listOfpoints.get(40).add(new LatLng (44.4687252,26.1305783));\n listOfpoints.get(40).add(new LatLng (44.466857,26.1310932));\n listOfpoints.get(40).add(new LatLng (44.4662751, 26.1310932));\n listOfpoints.get(40).add(new LatLng (44.4658769, 26.1300633));\n listOfpoints.get(40).add(new LatLng (44.4666426, 26.129162));\n listOfpoints.get(40).add(new LatLng (44.4689089,26.1285183));\n listOfpoints.get(40).add(new LatLng (44.4697971, 26.1290333));\n listOfpoints.get(40).add(new LatLng (44.4723389, 26.1319945));\n listOfpoints.get(40).add(new LatLng (44.4743294,26.1327669));\n listOfpoints.get(40).add(new LatLng (44.4750338,26.1320374));\n listOfpoints.get(40).add(new LatLng (44.4756462,26.1297199));\n listOfpoints.get(40).add(new LatLng (44.4742376,26.1249563));\n listOfpoints.get(40).add(new LatLng (44.4742988, 26.1238835));\n listOfpoints.get(40).add(new LatLng (44.4741457,26.1231968));\n listOfpoints.get(40).add(new LatLng (44.4676533,26.1269734));\n listOfpoints.get(40).add(new LatLng (44.4668876,26.1267588));\n listOfpoints.get(40).add(new LatLng (44.4649275,26.1207506));\n listOfpoints.get(40).add(new LatLng (44.4648662,26.120064));\n listOfpoints.get(40).add(new LatLng (44.4674389,26.118562));\n listOfpoints.get(40).add(new LatLng (44.4689089,26.1177895));\n listOfpoints.get(40).add(new LatLng (44.4710833,26.1160729));\n listOfpoints.get(40).add(new LatLng (44.4714202,26.1163304));\n listOfpoints.get(40).add(new LatLng (44.4722777,26.116502));\n listOfpoints.get(40).add(new LatLng (44.4729208,26.1131117));\n listOfpoints.get(40).add(new LatLng (44.4723083,26.1107084));\n listOfpoints.get(40).add(new LatLng (44.4725227,26.1095926));\n listOfpoints.get(40).add(new LatLng (44.4733801,26.1087343));\n listOfpoints.get(40).add(new LatLng (44.4735945, 26.1082194));\n listOfpoints.get(40).add(new LatLng (44.4700727,26.1101076));\n listOfpoints.get(40).add(new LatLng (44.4533184,26.1047861));\n listOfpoints.get(40).add(new LatLng (44.4531039,26.105344));\n listOfpoints.get(40).add(new LatLng (44.4528589,26.1152146));\n listOfpoints.get(40).add(new LatLng (44.4526138,26.1174891));\n listOfpoints.get(40).add(new LatLng (44.452093,26.1197207));\n listOfpoints.get(40).add(new LatLng (44.4508982,26.1229822));\n listOfpoints.get(40).add(new LatLng (44.4496116, 26.1241839));\n\n\n listOfpoints.get(41).add(new LatLng (44.4531249,26.1045259));\n listOfpoints.get(41).add(new LatLng (44.4550165,26.1051764));\n listOfpoints.get(41).add(new LatLng (44.4698103,26.1097469));\n listOfpoints.get(41).add(new LatLng (44.4709588,26.1093392));\n listOfpoints.get(41).add(new LatLng (44.4739216,26.1077299));\n listOfpoints.get(41).add(new LatLng (44.4734929,26.1050262));\n listOfpoints.get(41).add(new LatLng (44.4721455,26.105155));\n listOfpoints.get(41).add(new LatLng (44.4701242,26.1040392));\n listOfpoints.get(41).add(new LatLng (44.467521, 26.101593));\n listOfpoints.get(41).add(new LatLng (44.4673067, 26.1001768));\n listOfpoints.get(41).add(new LatLng (44.4664185,26.099061));\n listOfpoints.get(41).add(new LatLng (44.4660816,26.0979023));\n listOfpoints.get(41).add(new LatLng (44.4662041,26.0968294));\n listOfpoints.get(41).add(new LatLng (44.4671535,26.0960569));\n listOfpoints.get(41).add(new LatLng (44.4677661,26.0958853));\n listOfpoints.get(41).add(new LatLng (44.4680723,26.0951986));\n listOfpoints.get(41).add(new LatLng (44.4691748,26.0952415));\n listOfpoints.get(41).add(new LatLng (44.4720536,26.0967865));\n listOfpoints.get(41).add(new LatLng (44.4742278,26.0964861));\n listOfpoints.get(41).add(new LatLng (44.4749015, 26.0951986));\n listOfpoints.get(41).add(new LatLng (44.4747178,26.0948124));\n listOfpoints.get(41).add(new LatLng (44.4719617,26.0923662));\n listOfpoints.get(41).add(new LatLng (44.4714717,26.0908642));\n listOfpoints.get(41).add(new LatLng (44.4717167,26.0897913));\n listOfpoints.get(41).add(new LatLng (44.4723598,26.0888901));\n listOfpoints.get(41).add(new LatLng (44.4732479,26.0894909));\n listOfpoints.get(41).add(new LatLng (44.4732785,26.0900917));\n listOfpoints.get(41).add(new LatLng (44.4732479,26.0907783));\n listOfpoints.get(41).add(new LatLng (44.4735235,26.0912075));\n listOfpoints.get(41).add(new LatLng (44.4740135,26.0907354));\n listOfpoints.get(41).add(new LatLng (44.4734316,26.0891046));\n listOfpoints.get(41).add(new LatLng (44.4724211,26.0881176));\n listOfpoints.get(41).add(new LatLng (44.4661428,26.0866585));\n listOfpoints.get(41).add(new LatLng (44.4639989,26.09095));\n listOfpoints.get(41).add(new LatLng (44.4621305,26.0931387));\n listOfpoints.get(41).add(new LatLng (44.4558053,26.0973375));\n listOfpoints.get(41).add(new LatLng (44.4531632,26.0985928));\n listOfpoints.get(41).add(new LatLng (44.4531249,26.1045259));\n\n\n\n listOfpoints.get(42).add(new LatLng (44.4386598, 26.0701274));\n listOfpoints.get(42).add(new LatLng (44.4404676, 26.072638));\n listOfpoints.get(42).add(new LatLng (44.4426125, 26.0786676));\n listOfpoints.get(42).add(new LatLng (44.4427656, 26.0791182));\n listOfpoints.get(42).add(new LatLng (44.4429801, 26.0806202));\n listOfpoints.get(42).add(new LatLng (44.4461972, 26.0758781));\n listOfpoints.get(42).add(new LatLng ( 44.4465955, 26.0753846));\n listOfpoints.get(42).add(new LatLng ( 44.4468405, 26.0753202));\n listOfpoints.get(42).add(new LatLng (44.4474227, 26.0759639));\n listOfpoints.get(42).add(new LatLng (44.4501186, 26.0695052));\n listOfpoints.get(42).add(new LatLng ( 44.4472848, 26.063776));\n listOfpoints.get(42).add(new LatLng ( 44.4461972,26.0623597));\n listOfpoints.get(42).add(new LatLng (44.4454925, 26.0618233));\n listOfpoints.get(42).add(new LatLng ( 44.4442057,26.0612654));\n listOfpoints.get(42).add(new LatLng (44.4432099,26.0609435));\n listOfpoints.get(42).add(new LatLng ( 44.4429035,26.062467));\n listOfpoints.get(42).add(new LatLng (44.4385679, 26.0699558));\n listOfpoints.get(42).add(new LatLng (44.4386598, 26.0701274));\n\n\n\n listOfpoints.get(43).add(new LatLng ( 44.4430787,26.0806953));\n listOfpoints.get(43).add(new LatLng ( 44.443126, 26.0810753));\n listOfpoints.get(43).add(new LatLng ( 44.4455924,26.0813757));\n listOfpoints.get(43).add(new LatLng (44.4467107,26.0816761));\n listOfpoints.get(43).add(new LatLng (44.4514593,26.0842939));\n listOfpoints.get(43).add(new LatLng (44.4518575,26.0844441));\n listOfpoints.get(43).add(new LatLng (44.4519188,26.0818906));\n listOfpoints.get(43).add(new LatLng (44.4520107,26.0813971));\n listOfpoints.get(43).add(new LatLng (44.452026,26.0767193));\n listOfpoints.get(43).add(new LatLng (44.4527, 26.0732861));\n listOfpoints.get(43).add(new LatLng ( 44.4511682,26.0706039));\n listOfpoints.get(43).add(new LatLng (44.4503219, 26.069692));\n listOfpoints.get(43).add(new LatLng (44.4502719,26.0698017));\n listOfpoints.get(43).add(new LatLng (44.4475595, 26.0760068));\n listOfpoints.get(43).add(new LatLng (44.447414, 26.0761356));\n listOfpoints.get(43).add(new LatLng (44.4468242, 26.0754811));\n listOfpoints.get(43).add(new LatLng (44.4465485, 26.0755562));\n listOfpoints.get(43).add(new LatLng (44.4462728, 26.0759746));\n listOfpoints.get(43).add(new LatLng (44.4430787,26.0806953));\n\n\n\n listOfpoints.get(44).add(new LatLng (44.4283234, 26.0653913));\n listOfpoints.get(44).add(new LatLng (44.4299706,26.0672689));\n listOfpoints.get(44).add(new LatLng (44.431342,26.068213));\n listOfpoints.get(44).add(new LatLng (44.4358314, 26.0745752));\n listOfpoints.get(44).add(new LatLng (44.4382828,26.0698974));\n listOfpoints.get(44).add(new LatLng (44.4353105,26.0630095));\n listOfpoints.get(44).add(new LatLng (44.435096,26.0616792));\n listOfpoints.get(44).add(new LatLng (44.4344678, 26.0595763));\n listOfpoints.get(44).add(new LatLng (44.4320315, 26.0595334));\n listOfpoints.get(44).add(new LatLng (44.4316178, 26.0600913));\n listOfpoints.get(44).add(new LatLng (44.4291968, 26.0639));\n listOfpoints.get(44).add(new LatLng (44.4283234, 26.0653913));\n\n\n listOfpoints.get(45).add(new LatLng (44.4413922,26.133057));\n listOfpoints.get(45).add(new LatLng (44.441285, 26.1333359));\n listOfpoints.get(45).add(new LatLng (44.4414535,26.1345376));\n listOfpoints.get(45).add(new LatLng (44.4428936,26.1475195));\n listOfpoints.get(45).add(new LatLng (44.443154,26.1493863));\n listOfpoints.get(45).add(new LatLng (44.4434451, 26.149794));\n listOfpoints.get(45).add(new LatLng (44.4437515,26.1497082));\n listOfpoints.get(45).add(new LatLng (44.4445175,26.1494721));\n listOfpoints.get(45).add(new LatLng (44.4454979,26.1488713));\n listOfpoints.get(45).add(new LatLng (44.4459574,26.1481847));\n listOfpoints.get(45).add(new LatLng (44.447091,26.147262));\n listOfpoints.get(45).add(new LatLng (44.448148,26.1456527));\n listOfpoints.get(45).add(new LatLng (44.4520847, 26.1353101));\n listOfpoints.get(45).add(new LatLng (44.4529577,26.1321129));\n listOfpoints.get(45).add(new LatLng (44.4531262,26.1316623));\n listOfpoints.get(45).add(new LatLng (44.4536776, 26.1311473));\n listOfpoints.get(45).add(new LatLng (44.4547192, 26.1298813));\n listOfpoints.get(45).add(new LatLng (44.455148,26.1288513));\n listOfpoints.get(45).add(new LatLng (44.449833, 26.1251177));\n listOfpoints.get(45).add(new LatLng (44.4491437, 26.12471));\n listOfpoints.get(45).add(new LatLng (44.4477038,26.1259545));\n listOfpoints.get(45).add(new LatLng (44.4462332, 26.1266841));\n listOfpoints.get(45).add(new LatLng (44.4447013, 26.1279501));\n listOfpoints.get(45).add(new LatLng (44.4436596, 26.129259));\n listOfpoints.get(45).add(new LatLng (44.4413922,26.133057));\n\n\n\n listOfpoints.get(46).add(new LatLng (44.4322314,26.1388506));\n listOfpoints.get(46).add(new LatLng (44.4335155,26.1535014));\n listOfpoints.get(46).add(new LatLng (44.4338066,26.1552395));\n listOfpoints.get(46).add(new LatLng (44.434971,26.1596598));\n listOfpoints.get(46).add(new LatLng (44.4350966, 26.1598576));\n listOfpoints.get(46).add(new LatLng (44.4421748,26.1571969));\n listOfpoints.get(46).add(new LatLng (44.4425731, 26.1570252));\n listOfpoints.get(46).add(new LatLng (44.4429102, 26.1561669));\n listOfpoints.get(46).add(new LatLng (44.443477, 26.1502231));\n listOfpoints.get(46).add(new LatLng (44.4429255, 26.1494077));\n listOfpoints.get(46).add(new LatLng (44.442328, 26.144215));\n listOfpoints.get(46).add(new LatLng (44.4418837, 26.1404384));\n listOfpoints.get(46).add(new LatLng (44.4412556, 26.1349882));\n listOfpoints.get(46).add(new LatLng (44.4411331, 26.1338295));\n listOfpoints.get(46).add(new LatLng (44.4406428,26.1344732));\n listOfpoints.get(46).add(new LatLng (44.4388656, 26.1357821));\n listOfpoints.get(46).add(new LatLng (44.4374868, 26.1367048));\n listOfpoints.get(46).add(new LatLng (44.4350813, 26.137606));\n listOfpoints.get(46).add(new LatLng (44.4322314, 26.1388506));\n\n\n\n listOfpoints.get(47).add(new LatLng (44.4202257, 26.1368063));\n listOfpoints.get(47).add(new LatLng (44.4179627,26.1463187));\n listOfpoints.get(47).add(new LatLng (44.4227749, 26.149709));\n listOfpoints.get(47).add(new LatLng (44.4231734, 26.1503527));\n listOfpoints.get(47).add(new LatLng (44.4237251, 26.1504386));\n listOfpoints.get(47).add(new LatLng (44.4261157, 26.1495373));\n listOfpoints.get(47).add(new LatLng (44.4262996, 26.1508463));\n listOfpoints.get(47).add(new LatLng (44.4268206, 26.1524341));\n listOfpoints.get(47).add(new LatLng (44.4283937, 26.1547449));\n listOfpoints.get(47).add(new LatLng (44.433251, 26.1534574));\n listOfpoints.get(47).add(new LatLng (44.4320712, 26.1388662));\n listOfpoints.get(47).add(new LatLng (44.430401,26.139467));\n listOfpoints.get(47).add(new LatLng (44.4295736, 26.1393812));\n listOfpoints.get(47).add(new LatLng (44.4254668, 26.137686));\n listOfpoints.get(47).add(new LatLng (44.4241642,26.1374929));\n listOfpoints.get(47).add(new LatLng (44.4202257,26.1368063));\n\n\n\n listOfpoints.get(48).add(new LatLng (44.4234516,26.1510693));\n listOfpoints.get(48).add(new LatLng (44.425076, 26.1630856));\n listOfpoints.get(48).add(new LatLng (44.4292135,26.1619484));\n listOfpoints.get(48).add(new LatLng(44.4286618, 26.1578285));\n listOfpoints.get(48).add(new LatLng (44.4287078,26.156026));\n listOfpoints.get(48).add(new LatLng (44.4286925,26.1557042));\n listOfpoints.get(48).add(new LatLng (44.4269762, 26.1532151));\n listOfpoints.get(48).add(new LatLng (44.4262407, 26.151713));\n listOfpoints.get(48).add(new LatLng (44.4259189, 26.1499535));\n listOfpoints.get(48).add(new LatLng (44.4237122, 26.1506402));\n listOfpoints.get(48).add(new LatLng (44.4234516, 26.1510693));\n\n\n\n listOfpoints.get(49).add(new LatLng (44.4285513, 26.1548459));\n listOfpoints.get(49).add(new LatLng (44.4286925, 26.1557042));\n listOfpoints.get(49).add(new LatLng (44.4287964, 26.1580645));\n listOfpoints.get(49).add(new LatLng (44.4290876, 26.1602317));\n listOfpoints.get(49).add(new LatLng (44.4302981,26.1670124));\n listOfpoints.get(49).add(new LatLng (44.4357222, 26.1692654));\n listOfpoints.get(49).add(new LatLng (44.4362584,26.1689865));\n listOfpoints.get(49).add(new LatLng (44.4366108, 26.1683857));\n listOfpoints.get(49).add(new LatLng (44.4367794,26.1675274));\n listOfpoints.get(49).add(new LatLng (44.433332, 26.1536442));\n listOfpoints.get(49).add(new LatLng (44.4285513, 26.1548459));\n\n\n\n listOfpoints.get(50).add(new LatLng (44.4178742, 26.14650));\n listOfpoints.get(50).add(new LatLng (44.4142265, 26.15554));\n listOfpoints.get(50).add(new LatLng (44.41369, 26.1578359));\n listOfpoints.get(50).add(new LatLng (44.4131842,26.1635008));\n listOfpoints.get(50).add(new LatLng (44.4133221, 26.1636295));\n listOfpoints.get(50).add(new LatLng (44.4154679, 26.1645951));\n listOfpoints.get(50).add(new LatLng (44.4169393, 26.1648526));\n listOfpoints.get(50).add(new LatLng (44.4181654, 26.1648097));\n listOfpoints.get(50).add(new LatLng (44.420403, 26.1642732));\n listOfpoints.get(50).add(new LatLng (44.4248319, 26.1631574));\n listOfpoints.get(50).add(new LatLng (44.4232688, 26.151227));\n listOfpoints.get(50).add(new LatLng (44.4226558, 26.1500253));\n listOfpoints.get(50).add(new LatLng (44.4178742, 26.1465063));\n\n\n listOfpoints.get(51).add(new LatLng (44.409177,26.1228262));\n listOfpoints.get(51).add(new LatLng (44.4079354,26.1261736));\n listOfpoints.get(51).add(new LatLng (44.3993506, 26.1595188));\n listOfpoints.get(51).add(new LatLng (44.4000559,26.1602484));\n listOfpoints.get(51).add(new LatLng (44.407077,26.1638962));\n listOfpoints.get(51).add(new LatLng (44.4081807, 26.1641108));\n listOfpoints.get(51).add(new LatLng (44.4091004, 26.1638104));\n listOfpoints.get(51).add(new LatLng (44.4114916, 26.162995));\n listOfpoints.get(51).add(new LatLng (44.4129018, 26.16351));\n listOfpoints.get(51).add(new LatLng (44.413147, 26.1608063));\n listOfpoints.get(51).add(new LatLng (44.4135762, 26.1567723));\n listOfpoints.get(51).add(new LatLng (44.4148943, 26.1529957));\n listOfpoints.get(51).add(new LatLng (44.4176838,26.1461722));\n listOfpoints.get(51).add(new LatLng (44.4183121,26.1435329));\n listOfpoints.get(51).add(new LatLng (44.4200133, 26.1367523));\n listOfpoints.get(51).add(new LatLng (44.4175152,26.1354433));\n listOfpoints.get(51).add(new LatLng (44.4159825, 26.1342417));\n listOfpoints.get(51).add(new LatLng (44.4146031,26.1324822));\n listOfpoints.get(51).add(new LatLng (44.4113383,26.1266242));\n listOfpoints.get(51).add(new LatLng (44.409177,26.1228262));\n\n\n listOfpoints.get(52).add(new LatLng (44.3988714,26.159323));\n listOfpoints.get(52).add(new LatLng (44.4079468,26.1248191));\n listOfpoints.get(52).add(new LatLng (44.4088665, 26.1225875));\n listOfpoints.get(52).add(new LatLng (44.4080694,26.1217721));\n listOfpoints.get(52).add(new LatLng (44.4065059,26.1213858));\n listOfpoints.get(52).add(new LatLng (44.3941185, 26.120785));\n listOfpoints.get(52).add(new LatLng (44.3862678, 26.1391528));\n listOfpoints.get(52).add(new LatLng (44.3887826,26.1415131));\n listOfpoints.get(52).add(new LatLng (44.3886293, 26.1448605));\n listOfpoints.get(52).add(new LatLng (44.3891813, 26.1464484));\n listOfpoints.get(52).add(new LatLng (44.389304, 26.1472209));\n listOfpoints.get(52).add(new LatLng (44.3927079, 26.155761));\n listOfpoints.get(52).add(new LatLng (44.3941492, 26.1572631));\n listOfpoints.get(52).add(new LatLng (44.3985648, 26.16031));\n listOfpoints.get(52).add(new LatLng (44.3988714, 26.159323));\n\n\n\n listOfpoints.get(53).add(new LatLng (44.3886499, 26.1177499));\n listOfpoints.get(53).add(new LatLng (44.3892939, 26.1179645));\n listOfpoints.get(53).add(new LatLng (44.3881592, 26.1159046));\n listOfpoints.get(53).add(new LatLng (44.3876838,26.1132224));\n listOfpoints.get(53).add(new LatLng (44.3873311, 26.1100895));\n listOfpoints.get(53).add(new LatLng (44.3887879, 26.1032445));\n listOfpoints.get(53).add(new LatLng (44.3888645, 26.1022789));\n listOfpoints.get(53).add(new LatLng (44.3886192, 26.1005838));\n listOfpoints.get(53).add(new LatLng (44.3883738,26.0998542));\n listOfpoints.get(53).add(new LatLng (44.3876225,26.097923));\n listOfpoints.get(53).add(new LatLng (44.3869478, 26.0954554));\n listOfpoints.get(53).add(new LatLng (44.3862577, 26.0924299));\n listOfpoints.get(53).add(new LatLng (44.3860584, 26.0924299));\n listOfpoints.get(53).add(new LatLng (44.3789427, 26.0917003));\n listOfpoints.get(53).add(new LatLng (44.3757526,26.1157758));\n listOfpoints.get(53).add(new LatLng (44.375998,26.1173208));\n listOfpoints.get(53).add(new LatLng (44.3765195,26.1189945));\n listOfpoints.get(53).add(new LatLng (44.3769183,26.1194665));\n listOfpoints.get(53).add(new LatLng (44.3775624, 26.1194236));\n listOfpoints.get(53).add(new LatLng (44.3786973,26.1184366));\n listOfpoints.get(53).add(new LatLng (44.3824393,26.1150248));\n listOfpoints.get(53).add(new LatLng (44.3831447, 26.114939));\n listOfpoints.get(53).add(new LatLng (44.3840802, 26.1151106));\n listOfpoints.get(53).add(new LatLng (44.3879598, 26.1175568));\n listOfpoints.get(53).add(new LatLng (44.3886499,26.1177499));\n\n\n listOfpoints.get(54).add(new LatLng ( 44.3939843, 26.1207857));\n listOfpoints.get(54).add(new LatLng (44.3928679,26.120861));\n listOfpoints.get(54).add(new LatLng (44.3916643, 26.1202602));\n listOfpoints.get(54).add(new LatLng (44.3901386, 26.1189727));\n listOfpoints.get(54).add(new LatLng (44.3894869, 26.1181573));\n listOfpoints.get(54).add(new LatLng (44.3881836, 26.1178784));\n listOfpoints.get(54).add(new LatLng (44.3839589, 26.1153034));\n listOfpoints.get(54).add(new LatLng (44.3830541, 26.1151318));\n listOfpoints.get(54).add(new LatLng (44.382479, 26.1153034));\n listOfpoints.get(54).add(new LatLng (44.3814899, 26.1160544));\n listOfpoints.get(54).add(new LatLng (44.3792585,26.1181466));\n listOfpoints.get(54).add(new LatLng (44.3765793, 26.1204638));\n listOfpoints.get(54).add(new LatLng (44.3792479, 26.1275449));\n listOfpoints.get(54).add(new LatLng (44.379524,26.135098));\n listOfpoints.get(54).add(new LatLng (44.3856888, 26.1398616));\n listOfpoints.get(54).add(new LatLng (44.3939843,26.1207857));\n\n\n listOfpoints.get(55).add(new LatLng (44.3777851, 26.0469458));\n listOfpoints.get(55).add(new LatLng (44.3767422, 26.0507223));\n listOfpoints.get(55).add(new LatLng (44.3901146,26.0632536));\n listOfpoints.get(55).add(new LatLng (44.4006018,26.0712359));\n listOfpoints.get(55).add(new LatLng (44.4064272, 26.0638544));\n listOfpoints.get(55).add(new LatLng (44.4054461,26.0626528));\n listOfpoints.get(55).add(new LatLng (44.3997432, 26.0485766));\n listOfpoints.get(55).add(new LatLng (44.3817726,26.0459158));\n listOfpoints.get(55).add(new LatLng (44.3777851, 26.0469458));\n\n\n listOfpoints.get(56).add(new LatLng (44.406462, 26.0640051));\n listOfpoints.get(56).add(new LatLng (44.4007746, 26.0715552));\n listOfpoints.get(56).add(new LatLng (44.3971564,26.0688944));\n listOfpoints.get(56).add(new LatLng (44.3905634, 26.0639591));\n listOfpoints.get(56).add(new LatLng (44.3862699, 26.078207));\n listOfpoints.get(56).add(new LatLng (44.38124,26.0855027));\n listOfpoints.get(56).add(new LatLng (44.3802585, 26.0858031));\n listOfpoints.get(56).add(new LatLng (44.3797064, 26.0867901));\n listOfpoints.get(56).add(new LatLng (44.3790009,26.091425));\n listOfpoints.get(56).add(new LatLng (44.3848591,26.091897));\n listOfpoints.get(56).add(new LatLng (44.3890301,26.0918541));\n listOfpoints.get(56).add(new LatLng (44.3909928, 26.0865755));\n listOfpoints.get(56).add(new LatLng (44.3915141,26.0856314));\n listOfpoints.get(56).add(new LatLng (44.3946727, 26.0839608));\n listOfpoints.get(56).add(new LatLng (44.3961445,26.0850122));\n listOfpoints.get(56).add(new LatLng (44.3967425,26.0849907));\n listOfpoints.get(56).add(new LatLng (44.4002074, 26.0843041));\n listOfpoints.get(56).add(new LatLng (44.4029362, 26.0816648));\n listOfpoints.get(56).add(new LatLng (44.4055576,26.0799267));\n listOfpoints.get(56).add(new LatLng (44.4070752,26.0791113));\n listOfpoints.get(56).add(new LatLng (44.4130379,26.0732319));\n listOfpoints.get(56).add(new LatLng (44.406462, 26.0640051));\n\n\n listOfpoints.get(57).add(new LatLng (44.4005004, 26.0494378));\n listOfpoints.get(57).add(new LatLng (44.4056207, 26.0623124));\n listOfpoints.get(57).add(new LatLng (44.4131623,26.0729554));\n listOfpoints.get(57).add(new LatLng (44.4204884,26.0654452));\n listOfpoints.get(57).add(new LatLng (44.4181895,26.0583212));\n listOfpoints.get(57).add(new LatLng (44.4005004, 26.0494378));\n\n\n listOfpoints.get(58).add(new LatLng (44.414413, 26.0354062));\n listOfpoints.get(58).add(new LatLng (44.415394, 26.0475512));\n listOfpoints.get(58).add(new LatLng (44.4158231,26.0502978));\n listOfpoints.get(58).add(new LatLng (44.4181221,26.0576363));\n listOfpoints.get(58).add(new LatLng (44.4207888, 26.0658331));\n listOfpoints.get(58).add(new LatLng (44.4237005, 26.0731287));\n listOfpoints.get(58).add(new LatLng (44.4298608,26.0624857));\n listOfpoints.get(58).add(new LatLng (44.4293091,26.0617562));\n listOfpoints.get(58).add(new LatLng (44.4290027,26.0610266));\n listOfpoints.get(58).add(new LatLng (44.4275316, 26.0600825));\n listOfpoints.get(58).add(new LatLng (44.426275, 26.0585375));\n listOfpoints.get(58).add(new LatLng (44.4259379,26.0566922));\n listOfpoints.get(58).add(new LatLng (44.4253862, 26.0520573));\n listOfpoints.get(58).add(new LatLng (44.4242829,26.0473366));\n listOfpoints.get(58).add(new LatLng (44.4229037,26.0406847));\n listOfpoints.get(58).add(new LatLng (44.4221374,26.0347624));\n listOfpoints.get(58).add(new LatLng (44.4165281,26.0346766));\n listOfpoints.get(58).add(new LatLng (44.414413,26.0354062));\n\n\n listOfpoints.get(59).add(new LatLng (44.4224216, 26.0344395));\n listOfpoints.get(59).add(new LatLng (44.422437, 26.0360274));\n listOfpoints.get(59).add(new LatLng (44.423004,26.040276));\n listOfpoints.get(59).add(new LatLng (44.4255632,26.0522065));\n listOfpoints.get(59).add(new LatLng (44.4259156,26.055468));\n listOfpoints.get(59).add(new LatLng (44.42636,26.0583219));\n listOfpoints.get(59).add(new LatLng (44.4274787,26.059781));\n listOfpoints.get(59).add(new LatLng (44.4290264, 26.0608325));\n listOfpoints.get(59).add(new LatLng (44.4293328,26.0616264));\n listOfpoints.get(59).add(new LatLng (44.4299764,26.0623989));\n listOfpoints.get(59).add(new LatLng (44.4319071,26.0594162));\n listOfpoints.get(59).add(new LatLng (44.4345885, 26.0593948));\n listOfpoints.get(59).add(new LatLng (44.4342361, 26.0348472));\n listOfpoints.get(59).add(new LatLng (44.4273254, 26.0330877));\n listOfpoints.get(59).add(new LatLng (44.4237396,26.0342893));\n listOfpoints.get(59).add(new LatLng (44.4224216,26.0344395));\n\n\n listOfpoints.get(60).add(new LatLng (44.4345371,26.034714));\n listOfpoints.get(60).add(new LatLng (44.4343687, 26.0351665));\n listOfpoints.get(60).add(new LatLng (44.4347671,26.059757));\n listOfpoints.get(60).add(new LatLng (44.435334, 26.0617097));\n listOfpoints.get(60).add(new LatLng (44.4355025, 26.0629327));\n listOfpoints.get(60).add(new LatLng (44.4356864,26.0635979));\n listOfpoints.get(60).add(new LatLng (44.4371728, 26.0669608));\n listOfpoints.get(60).add(new LatLng (44.4383602, 26.0697182));\n listOfpoints.get(60).add(new LatLng (44.4427184,26.0621798));\n listOfpoints.get(60).add(new LatLng (44.4429329,26.0609782));\n listOfpoints.get(60).add(new LatLng (44.447161,26.0392201));\n listOfpoints.get(60).add(new LatLng (44.4427491,26.0356152));\n listOfpoints.get(60).add(new LatLng (44.4345371,26.034714));\n\n\n listOfpoints.get(61).add(new LatLng (44.4053059, 26.0112059));\n listOfpoints.get(61).add(new LatLng (44.384914, 26.0334789));\n listOfpoints.get(61).add(new LatLng (44.3778596, 26.0462677));\n listOfpoints.get(61).add(new LatLng (44.3811722,26.0454952));\n listOfpoints.get(61).add(new LatLng (44.399879, 26.0482418));\n listOfpoints.get(61).add(new LatLng (44.4002162, 26.0489714));\n listOfpoints.get(61).add(new LatLng (44.4169858,26.0575115));\n listOfpoints.get(61).add(new LatLng (44.4180893, 26.0579407));\n listOfpoints.get(61).add(new LatLng (44.4156984,26.0508167));\n listOfpoints.get(61).add(new LatLng (44.4151773,26.0472977));\n listOfpoints.get(61).add(new LatLng (44.414135,26.0356247));\n listOfpoints.get(61).add(new LatLng (44.4110082, 26.0104334));\n listOfpoints.get(61).add(new LatLng (44.4061643,26.0117208));\n listOfpoints.get(61).add(new LatLng (44.4053059,26.0112059));\n\n\n listOfpoints.get(62).add(new LatLng (44.4103691, 26.0025379));\n listOfpoints.get(62).add(new LatLng (44.4103304, 26.0034906));\n listOfpoints.get(62).add(new LatLng (44.4127522,26.0228884));\n listOfpoints.get(62).add(new LatLng (44.4144076,26.0351192));\n listOfpoints.get(62).add(new LatLng (44.4167986,26.0343897));\n listOfpoints.get(62).add(new LatLng (44.4221013, 26.0343038));\n listOfpoints.get(62).add(new LatLng (44.4271277, 26.0328018));\n listOfpoints.get(62).add(new LatLng (44.4343295, 26.0347544));\n listOfpoints.get(62).add(new LatLng (44.4344597, 26.0345399));\n listOfpoints.get(62).add(new LatLng (44.436423, 26.0347646));\n listOfpoints.get(62).add(new LatLng (44.4424747, 26.0213321));\n listOfpoints.get(62).add(new LatLng (44.4459215, 26.0171264));\n listOfpoints.get(62).add(new LatLng (44.4457043,26.0167004));\n listOfpoints.get(62).add(new LatLng (44.4252662, 25.9987613));\n listOfpoints.get(62).add(new LatLng (44.4235193, 25.9990188));\n listOfpoints.get(62).add(new LatLng (44.4103691, 26.0025379));\n\n\n listOfpoints.get(63).add(new LatLng (44.450683, 26.0692569));\n listOfpoints.get(63).add(new LatLng (44.4530725,26.0733768));\n listOfpoints.get(63).add(new LatLng (44.4523986, 26.0762092));\n listOfpoints.get(63).add(new LatLng (44.4522454,26.0783979));\n listOfpoints.get(63).add(new LatLng (44.4521842,26.0858652));\n listOfpoints.get(63).add(new LatLng (44.4658762, 26.0861656));\n listOfpoints.get(63).add(new LatLng (44.4661262, 26.0856151));\n listOfpoints.get(63).add(new LatLng (44.4670374, 26.0787379));\n listOfpoints.get(63).add(new LatLng (44.467496, 26.0777089));\n listOfpoints.get(63).add(new LatLng (44.4773875,26.0721728));\n listOfpoints.get(63).add(new LatLng (44.4779387,26.0720012));\n listOfpoints.get(63).add(new LatLng (44.482103,26.0611007));\n listOfpoints.get(63).add(new LatLng (44.4811232,26.0571525));\n listOfpoints.get(63).add(new LatLng (44.4748153, 26.0461661));\n listOfpoints.get(63).add(new LatLng (44.4716917, 26.0438487));\n listOfpoints.get(63).add(new LatLng (44.4690579,26.0436771));\n listOfpoints.get(63).add(new LatLng (44.4667916, 26.0449645));\n listOfpoints.get(63).add(new LatLng (44.4519663, 26.0668513));\n listOfpoints.get(63).add(new LatLng (44.450683,26.0692569));\n\n\n listOfpoints.get(64).add(new LatLng (44.4663308, 26.0857322));\n listOfpoints.get(64).add(new LatLng (44.466193, 26.0862472));\n listOfpoints.get(64).add(new LatLng (44.4723947,26.0878994));\n listOfpoints.get(64).add(new LatLng (44.4731756,26.0883715));\n listOfpoints.get(64).add(new LatLng (44.4739718,26.090131));\n listOfpoints.get(64).add(new LatLng (44.4744158, 26.090882));\n listOfpoints.get(64).add(new LatLng (44.4748292,26.0909678));\n listOfpoints.get(64).add(new LatLng (44.4753498,26.0906889));\n listOfpoints.get(64).add(new LatLng (44.4774321, 26.0888006));\n listOfpoints.get(64).add(new LatLng (44.4801879,26.0864832));\n listOfpoints.get(64).add(new LatLng (44.4868014,26.0859682));\n listOfpoints.get(64).add(new LatLng (44.4880873,26.0854532));\n listOfpoints.get(64).add(new LatLng (44.489618,26.0824491));\n listOfpoints.get(64).add(new LatLng (44.4904753, 26.0788443));\n listOfpoints.get(64).add(new LatLng (44.4890057,26.0784151));\n listOfpoints.get(64).add(new LatLng (44.478167, 26.0727074));\n listOfpoints.get(64).add(new LatLng (44.4678468, 26.0779216));\n listOfpoints.get(64).add(new LatLng (44.467219, 26.0788228));\n listOfpoints.get(64).add(new LatLng (44.4663308, 26.0857322));\n\n\n listOfpoints.get(65).add(new LatLng (44.4432698,26.0604113));\n listOfpoints.get(65).add(new LatLng (44.443222,26.0605852));\n listOfpoints.get(65).add(new LatLng (44.4450067,26.0611538));\n listOfpoints.get(65).add(new LatLng (44.4465463,26.062173));\n listOfpoints.get(65).add(new LatLng (44.4472816,26.0631386));\n listOfpoints.get(65).add(new LatLng (44.448913,26.0666577));\n listOfpoints.get(65).add(new LatLng (44.4502551,26.0690373));\n listOfpoints.get(65).add(new LatLng (44.4664896,26.0448331));\n listOfpoints.get(65).add(new LatLng (44.4688479,26.0434168));\n listOfpoints.get(65).add(new LatLng (44.469491,26.0403269));\n listOfpoints.get(65).add(new LatLng (44.4702566,26.037237));\n listOfpoints.get(65).add(new LatLng (44.4701035,26.0353058));\n listOfpoints.get(65).add(new LatLng (44.4613441,26.0305422));\n listOfpoints.get(65).add(new LatLng (44.4611297,26.0346621));\n listOfpoints.get(65).add(new LatLng (44.4606089,26.0350913));\n listOfpoints.get(65).add(new LatLng (44.4595369,26.0350913));\n listOfpoints.get(65).add(new LatLng (44.458618,26.0354775));\n listOfpoints.get(65).add(new LatLng (44.4545745,26.0376233));\n listOfpoints.get(65).add(new LatLng (44.4501632,26.0417002));\n listOfpoints.get(65).add(new LatLng (44.4494892,26.0417002));\n listOfpoints.get(65).add(new LatLng (44.4485701,26.039297));\n listOfpoints.get(65).add(new LatLng (44.4477429,26.0380953));\n listOfpoints.get(65).add(new LatLng (44.4466093,26.0430306));\n listOfpoints.get(65).add(new LatLng (44.4432698,26.0604113));\n\n\n\n listOfpoints.get(66).add(new LatLng (44.4742952,26.0910108));\n listOfpoints.get(66).add(new LatLng (44.4741016,26.0912642));\n listOfpoints.get(66).add(new LatLng (44.4741016,26.0917148));\n listOfpoints.get(66).add(new LatLng (44.4743313,26.0922513));\n listOfpoints.get(66).add(new LatLng (44.4750816,26.0927019));\n listOfpoints.get(66).add(new LatLng (44.4758471,26.0937962));\n listOfpoints.get(66).add(new LatLng (44.4762758,26.0947189));\n listOfpoints.get(66).add(new LatLng (44.4766127,26.0962853));\n listOfpoints.get(66).add(new LatLng (44.4765514,26.0971436));\n listOfpoints.get(66).add(new LatLng (44.4761227,26.0977444));\n listOfpoints.get(66).add(new LatLng (44.4753878,26.0985169));\n listOfpoints.get(66).add(new LatLng (44.4745457,26.0985384));\n listOfpoints.get(66).add(new LatLng (44.4734585,26.0989675));\n listOfpoints.get(66).add(new LatLng (44.4729073,26.0990104));\n listOfpoints.get(66).add(new LatLng (44.4718508,26.0986671));\n listOfpoints.get(66).add(new LatLng (44.471223,26.0980663));\n listOfpoints.get(66).add(new LatLng (44.469263,26.0970792));\n listOfpoints.get(66).add(new LatLng (44.4689567,26.0971651));\n listOfpoints.get(66).add(new LatLng (44.468773,26.0975728));\n listOfpoints.get(66).add(new LatLng (44.4687424,26.0981092));\n listOfpoints.get(66).add(new LatLng (44.4688955,26.0985169));\n listOfpoints.get(66).add(new LatLng (44.4692017,26.0986886));\n listOfpoints.get(66).add(new LatLng (44.4694774,26.0985598));\n listOfpoints.get(66).add(new LatLng (44.4704268,26.0990319));\n listOfpoints.get(66).add(new LatLng (44.4707483,26.0994396));\n listOfpoints.get(66).add(new LatLng (44.4719733,26.1024651));\n listOfpoints.get(66).add(new LatLng (44.4735963,26.1028943));\n listOfpoints.get(66).add(new LatLng (44.474071,26.1035809));\n listOfpoints.get(66).add(new LatLng (44.4741322,26.1042676));\n listOfpoints.get(66).add(new LatLng (44.4735351,26.1047396));\n listOfpoints.get(66).add(new LatLng (44.474071,26.1077866));\n listOfpoints.get(66).add(new LatLng (44.4738413,26.1079583));\n listOfpoints.get(66).add(new LatLng (44.473826,26.1085591));\n listOfpoints.get(66).add(new LatLng (44.4733667,26.1097822));\n listOfpoints.get(66).add(new LatLng (44.4732595,26.1107478));\n listOfpoints.get(66).add(new LatLng (44.4734432,26.1111555));\n listOfpoints.get(66).add(new LatLng (44.4763087,26.1089172));\n listOfpoints.get(66).add(new LatLng (44.4946789,26.1040249));\n listOfpoints.get(66).add(new LatLng (44.4968217,26.0792198));\n listOfpoints.get(66).add(new LatLng (44.490592,26.0788336));\n listOfpoints.get(66).add(new LatLng (44.4898573,26.0820737));\n listOfpoints.get(66).add(new LatLng (44.4894593,26.0830178));\n listOfpoints.get(66).add(new LatLng (44.4882229,26.0855306));\n listOfpoints.get(66).add(new LatLng (44.4870595,26.0860456));\n listOfpoints.get(66).add(new LatLng (44.4801439,26.0866335));\n listOfpoints.get(66).add(new LatLng (44.4761173,26.090174));\n listOfpoints.get(66).add(new LatLng (44.4751527,26.0912469));\n listOfpoints.get(66).add(new LatLng (44.4742952,26.0910108));\n\n listOfpoints.get(67).add(new LatLng (44.4671287, 26.121282));\n listOfpoints.get(67).add(new LatLng (44.46768,26.1231274));\n listOfpoints.get(67).add(new LatLng (44.4696095,26.1234278));\n listOfpoints.get(67).add(new LatLng (44.4712938,26.1224408));\n listOfpoints.get(67).add(new LatLng (44.4723657,26.1229557));\n listOfpoints.get(67).add(new LatLng (44.4727944, 26.1226553));\n listOfpoints.get(67).add(new LatLng (44.4740193, 26.1226982));\n listOfpoints.get(67).add(new LatLng (44.4745399,26.1236424));\n listOfpoints.get(67).add(new LatLng (44.4743668,26.1243164));\n listOfpoints.get(67).add(new LatLng (44.4747037, 26.1250031));\n listOfpoints.get(67).add(new LatLng (44.4751324,26.1257541));\n listOfpoints.get(67).add(new LatLng (44.4758673,26.1267626));\n listOfpoints.get(67).add(new LatLng (44.4761736, 26.127578));\n listOfpoints.get(67).add(new LatLng (44.491758,26.1285221));\n listOfpoints.get(67).add(new LatLng (44.4931662, 26.1377919));\n listOfpoints.get(67).add(new LatLng (44.494452,26.1444008));\n listOfpoints.get(67).add(new LatLng (44.4947581,26.1462033));\n listOfpoints.get(67).add(new LatLng (44.4958601, 26.1472332));\n listOfpoints.get(67).add(new LatLng (44.4969009, 26.1458599));\n listOfpoints.get(67).add(new LatLng (44.4984926, 26.1450875));\n listOfpoints.get(67).add(new LatLng (44.5000231,26.1446583));\n listOfpoints.get(67).add(new LatLng (44.5006353,26.1435425));\n listOfpoints.get(67).add(new LatLng (44.5012475,26.1424267));\n listOfpoints.get(67).add(new LatLng (44.5057774, 26.144315));\n listOfpoints.get(67).add(new LatLng (44.5070629, 26.137191));\n listOfpoints.get(67).add(new LatLng (44.5066956, 26.1233723));\n listOfpoints.get(67).add(new LatLng (44.502227,26.1044896));\n listOfpoints.get(67).add(new LatLng (44.4952479,26.1044896));\n listOfpoints.get(67).add(new LatLng (44.4782558,26.1086953));\n listOfpoints.get(67).add(new LatLng (44.4765716,26.1090386));\n listOfpoints.get(67).add(new LatLng (44.4734175,26.1114848));\n listOfpoints.get(67).add(new LatLng (44.4739994,26.1124289));\n listOfpoints.get(67).add(new LatLng (44.4744587,26.1137163));\n listOfpoints.get(67).add(new LatLng (44.474275,26.1152613));\n listOfpoints.get(67).add(new LatLng (44.4738156,26.1171067));\n listOfpoints.get(67).add(new LatLng (44.4729582,26.1180937));\n listOfpoints.get(67).add(new LatLng (44.4705695, 26.1195099));\n listOfpoints.get(67).add(new LatLng (44.4677826,26.1202395));\n listOfpoints.get(67).add(new LatLng (44.4671287,26.121282));\n\n\n //Stockholm\n listOfpoints.get(68).add(new LatLng(59.339281, 18.005316));\n listOfpoints.get(68).add(new LatLng(59.263986, 18.253591));\n listOfpoints.get(68).add(new LatLng(59.260869, 17.878596));\n\n //Stockholm\n listOfpoints.get(69).add(new LatLng(59.342841, 18.040179));\n listOfpoints.get(69).add(new LatLng(59.355275, 17.884694));\n listOfpoints.get(69).add(new LatLng(59.423065, 18.075748));\n\n\n for(int i = 0 ; i < listOfpoints.size(); i++){\n listOfPolygons.add( MapsActivity.instance.mMap.addPolygon(new PolygonOptions()\n .addAll(listOfpoints.get(i))\n .strokeWidth(0)\n .fillColor(Color.argb(50, 0, 250, 0))) );\n }\n\n\n\n\n }", "public void run() {\n\r\n try {\r\n JSONArray markersData = json.getJSONArray(\"data\");\r\n for (int i=0; i < markersData.length(); i++) {\r\n JSONObject markerData = markersData.getJSONObject(i);\r\n LatLng latLng = new LatLng(\r\n Float.parseFloat(markerData.getString(\"latitude\")),\r\n Float.parseFloat(markerData.getString(\"longitude\"))\r\n );\r\n googleMap.addMarker(new MarkerOptions().position(latLng).title(markerData.getString(\"title\")));\r\n }\r\n } catch (JSONException e) {\r\n return;\r\n }\r\n }", "void mo5802a(LatLng latLng);", "@Override\r\n public void onMapClick(LatLng latLng) {\n geocoder1 = new Geocoder(getApplicationContext(), Locale.getDefault());\r\n String State = null;\r\n String City = null;\r\n String Country = null;\r\n try {\r\n\r\n List<Address> Addresses = geocoder1.getFromLocation(latLng.latitude, latLng.longitude, 1);\r\n if (Addresses != null && Addresses.size() > 0) {\r\n\r\n City = Addresses.get(0).getAddressLine(0);\r\n State = Addresses.get(0).getAddressLine(1);\r\n Country = Addresses.get(0).getAddressLine(2);\r\n\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n // Clears the previously touched position\r\n googleMap.clear();\r\n\r\n TextView tvLocation = (TextView) findViewById(R.id.tv_location);\r\n\r\n\r\n // Animating to the touched position\r\n googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 16.0f));\r\n\r\n // Placing a marker on the touched position\r\n googleMap.addMarker(new MarkerOptions().position(latLng).title(City + \",\" + State + \",\" + Country));\r\n\r\n tvLocation.setText(\"Latitude:\" + latitude + \", Longitude:\" + longitude + \"\\n\" + City + \",\" + State + \",\\n\" + Country);\r\n\r\n }", "private void ShowNearbyPlaces(List<HashMap<String, String>> nearbyPlacesList) {\n for (int i = 0; i < nearbyPlacesList.size(); i++) {\n Log.d(\"onPostExecute\",\"Entered into showing locations\");\n MarkerOptions markerOptions = new MarkerOptions();\n HashMap<String, String> googlePlace = nearbyPlacesList.get(i);\n double lat = Double.parseDouble(googlePlace.get(\"lat\"));\n double lng = Double.parseDouble(googlePlace.get(\"lng\"));\n String placeName = googlePlace.get(\"place_name\");\n String vicinity = googlePlace.get(\"vicinity\");\n LatLng latLng = new LatLng(lat, lng);\n markerOptions.position(latLng);\n markerOptions.title(placeName);\n markerOptions.snippet(vicinity);\n\n if (this.mKind == \"police\")\n markerOptions.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE));\n else if (this.mKind == \"hospital\")\n markerOptions.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_ORANGE));\n\n mMap.addMarker(markerOptions);\n }\n mMap.animateCamera(CameraUpdateFactory.zoomTo(12));\n }", "private void mappp(){\n ArrayList<NameValuePair> postParameters = new ArrayList<NameValuePair>();\r\n \r\n // define the parameter\r\n postParameters.add(new BasicNameValuePair(\"busnum\",\r\n etLng.getText().toString()));\r\n String response = null;\r\n \r\n // call executeHttpPost method passing necessary parameters \r\n try {\r\n response = CustomHttpClient.executeHttpPost(\r\n //\"http://129.107.187.135/CSE5324/jsonscript.php\", // your ip address if using localhost server\r\n \"http://banarga.com/get.php\", // in case of a remote server\r\n postParameters);\r\n \r\n // store the result returned by PHP script that runs MySQL query\r\n String result = response.toString(); \r\n \r\n //parse json data\r\n try{\r\n returnString=\"\";\r\n JSONArray jArray = new JSONArray(result);\r\n for(int i=0;i<jArray.length();i++){\r\n JSONObject json_data = jArray.getJSONObject(i);\r\n Log.i(\"log_tag\",\"BUS: \"+json_data.getInt(\"id\")+\r\n \", latitude: \"+json_data.getString(\"lati\")+\r\n \", longitude: \"+json_data.getString(\"longi\")\r\n );\r\n //Get an output to the screen\r\n \r\n lat=Double.parseDouble((json_data.getString(\"lati\")));\r\n lng=Double.parseDouble((json_data.getString(\"longi\")));\r\n returnString += \"Lat\"+ json_data.getString(\"lati\") + \" \\n \"+ \"Lon: \"+ json_data.getString(\"longi\");\r\n \r\n }\r\n }\r\n catch(JSONException e){\r\n Log.e(\"log_tag\", \"Error parsing data \"+e.toString());\r\n }\r\n try{\r\n tv.setText(returnString);\r\n }\r\n catch(Exception e){\r\n Log.e(\"log_tag\",\"Error in Display!\" + e.toString());; \r\n } }\r\n catch (Exception e) {\r\n Log.e(\"log_tag\",\"Error in http connection!!\" + e.toString()); \r\n }\r\n\t/*\t// Getting the entered latitude\r\n\t\tString lat = etLat.getText().toString();\r\n\t\t\r\n\t\t// Getting the entered longitude\r\n\t\tString lng = etLng.getText().toString();*/\r\n\t\t\r\n\t\t // Getting Google Play availability status\r\n int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(getBaseContext());\r\n\r\n // Showing status\r\n if(status!=ConnectionResult.SUCCESS){ // Google Play Services are not available\r\n\r\n int requestCode = 10;\r\n Dialog dialog = GooglePlayServicesUtil.getErrorDialog(status, getParent(), requestCode);\r\n dialog.show();\r\n\r\n }else { // Google Play Services are available \r\n\r\n // Getting reference to the SupportMapFragment of activity_main.xml\r\n SupportMapFragment fm = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map);\r\n\r\n // Getting GoogleMap object from the fragment\r\n googleMap = fm.getMap();\r\n\r\n // Enabling MyLocation Layer of Google Map\r\n googleMap.setMyLocationEnabled(true);\r\n \r\n // LatLng object to store user input coordinates\r\n LatLng point = new LatLng(lat, lng);\r\n \r\n // Drawing the marker at the coordinates\r\n drawMarker(point); \r\n }\r\n}", "void mo195a(List<LatLng> list) throws RemoteException;", "public List<Latlng_data> getLocationFromString(String address)\n {\n\n List<Latlng_data> Ldata = new ArrayList<Latlng_data>();\n\n try\n {\n String URL = \"http://maps.google.com/maps/api/geocode/json?address=\" + URLEncoder.encode(address, \"UTF-8\") + \"&en&sensor=false\";\n\n JSONObject jsonObject = new JSONObject(new WebServiceHelper().performGetCall(URL));\n\n JSONArray results = jsonObject.getJSONArray(\"results\");\n\n Latlng_data l;\n for (int j = 0; j < results.length(); j++)\n {\n\n l = new Latlng_data();\n\n double lng = results.getJSONObject(j).getJSONObject(\"geometry\").getJSONObject(\"location\").getDouble(\"lng\");\n\n double lat = results.getJSONObject(j).getJSONObject(\"geometry\").getJSONObject(\"location\").getDouble(\"lat\");\n String addrsssssName = results.getJSONObject(j).getString(\"formatted_address\");\n l.setAddress(addrsssssName != null ? addrsssssName : \"\");\n\n l.setLat(lng);\n l.setLng(lat);\n\n Ldata.add(l);\n }\n\n }\n catch (Exception e)\n {\n return Ldata;\n }\n catch (Error e)\n {\n return Ldata;\n }\n\n return Ldata;\n }", "protected void streetLoc(LatLng latLng) {\n if (latLng == null) {\n return;\n }\n TencentSearch tencentSearch = new TencentSearch(this);\n //还可以传入其他坐标系的坐标,不过需要用coord_type()指明所用类型\n //这里设置返回周边poi列表,可以在一定程度上满足用户获取指定坐标周边poi的需求\n Geo2AddressParam geo2AddressParam = new Geo2AddressParam(latLng).getPoi(true)\n .setPoiOptions(new Geo2AddressParam.PoiOptions()\n// .setRadius(1000).setCategorys(\"面包\")\n .setPolicy(Geo2AddressParam.PoiOptions.POLICY_O2O));\n tencentSearch.geo2address(geo2AddressParam, new HttpResponseListener<BaseObject>() {\n\n @Override\n public void onSuccess(int arg0, BaseObject arg1) {\n if (arg1 == null) {\n return;\n }\n Geo2AddressResultObject obj = (Geo2AddressResultObject)arg1;\n StringBuilder sb = new StringBuilder();\n sb.append(\"逆地址解析\");\n sb.append(\"\\n地址:\" + obj.result.address);\n sb.append(\"\\npois:\"+obj.result.address_component.province+obj.result.address_component.city+obj.result.address_component.district);\n// provinceMap.put()\n province1 = provinceMap.get(obj.result.address_component.province+obj.result.address_component.city+obj.result.address_component.district);\n if(province1 == null) {\n provinceMap.put(obj.result.address_component.province+obj.result.address_component.city+obj.result.address_component.district,obj.result.address_component.province+obj.result.address_component.city+obj.result.address_component.district);\n getStreet(obj.result.address_component.province, obj.result.address_component.city, obj.result.address_component.district);\n }\n\n// for (Poi poi : obj.result.pois) {\n// sb.append(\"\\n\\t\" + poi.title);\n// tencentMap.addMarker(new MarkerOptions()\n// .position(poi.latLng) //标注的位置\n// .title(poi.title) //标注的InfoWindow的标题\n// .snippet(poi.address) //标注的InfoWindow的内容\n// );\n// }\n// Log.e(\"test\", sb.toString());\n }\n\n @Override\n public void onFailure(int arg0, String arg1, Throwable arg2) {\n Log.e(\"test\", \"error code:\" + arg0 + \", msg:\" + arg1);\n }\n });\n }", "public void makeLatLong(String address){\n try {\n JSONObject jsonObject = new JSONObject(address);\n JSONObject result = jsonObject.getJSONObject(\"result\");\n JSONArray addressMatches = result.getJSONArray(\"addressMatches\");\n JSONObject firstResult = addressMatches.getJSONObject(0);\n JSONObject coordinates = firstResult.getJSONObject(\"coordinates\");\n latitude = coordinates.getDouble(\"y\");\n longitude = coordinates.getDouble(\"x\");\n\n Log.i(\"CoY \", Double.toString(latitude));\n Log.i(\"CoX\", Double.toString(longitude));\n } catch (JSONException e) {\n Log.i(\"Error\", e.getMessage());\n e.printStackTrace();\n latitude = 39.7392;\n longitude = -104.9903;\n mainActivity.apiFailed(alarmName);\n }\n }", "protected String doInBackground(Double... args) {\n List<NameValuePair> params = new ArrayList<NameValuePair>();\n /*params.add(new BasicNameValuePair(\"latitude\", Double.toString(latitude)));\n params.add(new BasicNameValuePair(\"longitude\", Double.toString(longitude)));*/\n params.add(new BasicNameValuePair(\"latitude\", Double.toString(args[0])));\n params.add(new BasicNameValuePair(\"longitude\", Double.toString(args[1])));\n JSONObject json = jParser.makeHttpRequest(MapsContract.MapsEntry.url_all_products, \"GET\", params);\n Log.d(\"All Locations: \", json.toString());\n try {\n locations = json.getJSONArray(MapsContract.MapsEntry.TAG_LOCATION);\n for (int i = 0; i < locations.length(); i++) {\n JSONObject c = locations.getJSONObject(i);\n String uid = c.getString(MapsContract.MapsEntry.TAG_UID);\n String distance = c.getString(MapsContract.MapsEntry.TAG_DISTANCE);\n String latitude = c.getString(MapsContract.MapsEntry.TAG_LATITUDE);\n String longitude = c.getString(MapsContract.MapsEntry.TAG_LONGITUDE);\n HashMap<String, String> map = new HashMap<String, String>();\n map.put(MapsContract.MapsEntry.TAG_UID, uid);\n map.put(MapsContract.MapsEntry.TAG_DISTANCE, distance);\n map.put(MapsContract.MapsEntry.TAG_LATITUDE, latitude);\n map.put(MapsContract.MapsEntry.TAG_LONGITUDE, longitude);\n locationList.add(map);\n }\n error += json.toString() + \"From DoInBackground\";\n Thread.sleep(5000);\n } catch (JSONException e) {\n error += e.getLocalizedMessage() + \"JSONExecption\";\n\n } catch (InterruptedException e) {\n error += e.getMessage() + \"InterruptedExeption\";\n }\n //Toast.makeText(getApplicationContext(), json.toString(), Toast.LENGTH_LONG).show();\n return error;\n }", "public void onMapSearch(View view) {\n\n EditText locationSearch = (EditText) findViewById(R.id.arrival);\n String location = locationSearch.getText().toString();\n List<Address>addressList = null;\n\n if (location != null || !location.equals(\"\")) {\n Geocoder geocoder = new Geocoder(this);\n try {\n addressList = geocoder.getFromLocationName(location, 1);\n\n } catch (IOException e) {\n Toast.makeText(this,\"Destination not found\",Toast.LENGTH_SHORT).show();\n\n }\n Address address = addressList.get(0);\n LatLng latLng = new LatLng(address.getLatitude(), address.getLongitude());\n MarkerPoints.add(latLng);\n Toast.makeText(MapsActivity.this,\"added position 2 \"+MarkerPoints.size(),Toast.LENGTH_SHORT).show();\n\n mMap.addMarker(new MarkerOptions().position(latLng).draggable(true).title(location+\" (\"+address.getLatitude()+\",\"+address.getLongitude()+\")\").icon(BitmapDescriptorFactory.fromResource(R.drawable.flag)));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng,16));\n //listClients.add(new Client(R.drawable.flag,\"Nasser\",\"client2 requesting cab\",100,address.getLatitude(), address.getLongitude()));\n //Toast.makeText(MapsActivity.this,\"client attended at \"+\" (\"+address.getLatitude()+\",\"+address.getLongitude()+\")\",Toast.LENGTH_SHORT).show();\n\n\n\n /* if (MarkerPoints.size() > 2) {\n // MarkerPoints.clear();\n mMap.clear();\n }*/\n\n\n // Checks, whether start and end locations are captured\n if (MarkerPoints.size() >= 2) {\n LatLng origin = MarkerPoints.get(0);\n LatLng dest = MarkerPoints.get(MarkerPoints.size()-1);\n\n // Getting URL to the Google Directions API\n String url = getUrl(origin, dest);\n Log.d(\"onMapClick\", url.toString());\n FetchUrl FetchUrl = new FetchUrl();\n\n // Start downloading json data from Google Directions API\n FetchUrl.execute(url);\n //move map camera\n //mMap.moveCamera(CameraUpdateFactory.newLatLng(origin));\n //mMap.animateCamera(CameraUpdateFactory.zoomTo(11));\n\n build_retrofit_and_get_response(\"driving\");\n\n final View mapView = getSupportFragmentManager().findFragmentById(R.id.map).getView();\n if (mapView.getViewTreeObserver().isAlive()) {\n mapView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {\n @SuppressLint(\"NewApi\")\n @Override\n public void onGlobalLayout() {\n LatLngBounds.Builder bld = new LatLngBounds.Builder();\n for (int i = 0; i < MarkerPoints.size(); i++) {\n LatLng ll = new LatLng(MarkerPoints.get(i).latitude, MarkerPoints.get(i).longitude);\n bld.include(ll);\n }\n LatLngBounds bounds = bld.build();\n mMap.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds, 70));\n mapView.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n\n }\n });\n }\n }\n\n }\n }", "private void getAddress(double lat, double longit) {\n\t\tLocationAddress.getAddressFromLocation(lat, longit, \n cont, new GeocoderHandler());\n// Log.d(\"address\", addr);\n\t\t\n\t}", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n\n\n String[] xy = new String[]{\"37.221900\",\"127.18800\",\"37.221804\",\"127.186695\",\"37.220000\",\"127.186666\"};\n\n ArrayList<LatLng> loc=new ArrayList<LatLng>();\n\n int count = 1;\n for (int i=0;i<xy.length;i++){\n\n double tmp = Double.parseDouble(xy[i]);\n double tmp2 = Double.parseDouble(xy[++i]);\n\n\n LatLng latLng = new LatLng(tmp, tmp2);\n\n loc.add(latLng);\n\n\n mMap.addMarker(new MarkerOptions().position(latLng).title(\"Pin\"+count).icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_pin_purple)));\n count++;\n }\n\n\n\n mMap.moveCamera(CameraUpdateFactory.newLatLng(loc.get(loc.size()-1)));\n\n\n// // 서울 위치\n// LatLng seoul = new LatLng(37.566535, 126.97796919);\n// mMap.addMarker(new MarkerOptions().position(seoul).title(\"Marker in Seoul\"));\n//\n// // 명지대 위치 추가\n// LatLng MJU = new LatLng(37.221804, 127.186695);\n// mMap.addMarker(new MarkerOptions()\n// .position(MJU)\n// .title(\"명지대\"));\n//\n// //핀 연결 확인용 좌표 추가\n// LatLng MJU2 = new LatLng(37.220000, 127.186666);\n// mMap.addMarker(new MarkerOptions()\n// .position(MJU2)\n// .title(\"명지대2\"));\n// mMap.moveCamera(CameraUpdateFactory.newLatLng(MJU2));\n\n // 카메라 줌\n mMap.animateCamera(CameraUpdateFactory.zoomTo(17.0f));\n\n // 인포 윈도우 클릭시 전화 걸기 -> 뭔가 게시물 쓸때 쓸수있을거 같아서 남겨둠\n mMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n @Override\n public void onInfoWindowClick(Marker marker) {\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:0312365043\"));\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }\n });\n\n //arraylist 다시 배열에 넣는거 아직 않마 까먹ㅇ멋어ㅏ\n LatLng[] line = {\n loc.get(0),loc.get(1),loc.get(2)\n };\n //좌표끼리 선 긋기 좌표가 추가 될때마다 새로운 선을 만들어야 하나.. 아니면 그냥 좌표하나씩 추가해야하나 고민\n //일단 좌표에 들어온 순서로 선이 그어짐 -> 시간별로 추가할수 있도록 해야 함\n\n\n //좌표 두개마다 각각의 polyline을 생성해야 각각 화살표로 나올수 있음\n //for문 사용해서 polyline 만들어보기\n// for(int i=0; i<line.length;){\n// Polyline polyline1 = googleMap.addPolyline(new PolylineOptions()\n// .clickable(true)\n// .add( line[i], line[++i]\n// ) .width(10)\n//\n// .geodesic(true));\n//\n//\n// }\n\n\n Polyline polyline1 = googleMap.addPolyline(new PolylineOptions()\n .clickable(true)\n .add( line\n ) .width(10)\n\n .geodesic(true));\n\n polyline1.setEndCap(new CustomCap(BitmapDescriptorFactory.fromResource(R.drawable.ic_arrow), 15));\n polyline1.setStartCap(new CustomCap(BitmapDescriptorFactory.fromResource(R.drawable.ic_circle), 15));\n\n\n\n googleMap.setOnPolylineClickListener(this);\n googleMap.setOnPolygonClickListener(this);\n\n\n\n }", "private void drawMarker(Location location){\n LatLng currentPosition = new LatLng(location.getLatitude(),location.getLongitude());\r\n runlist.add(currentPosition);\r\n\r\n\r\n for(int i = 0; i<runlist.size();i++){\r\n\r\n\r\n\r\n Marker marker = mGoogleMap.addMarker(new MarkerOptions()\r\n .position(runlist.get(i))\r\n .title(\"TRACKING\")\r\n .snippet(\"Real Time Locations\"));\r\n\r\n\r\n\r\n }\r\n\r\n AddLines();\r\n //mGoogleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(runlist.get(0),13));\r\n mGoogleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(runlist.get(0), 13.9f));\r\n\r\n\r\n }", "@Override\n public void onMapReady(final GoogleMap map) {\n\n eventListener = new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n for (DataSnapshot postSnapshot : dataSnapshot.getChildren()) {\n String lat = postSnapshot.child(\"lat\").getValue(Double.class) + \"\";\n String lon = postSnapshot.child(\"lon\").getValue(Double.class) + \"\";\n String data = postSnapshot.child(\"val\").getValue(Integer.class) + \"\";\n list.add(new Item(lat, lon, data));\n Log.e(\"TAG\",lat + lon + data);\n map.addMarker(new MarkerOptions().position(new LatLng(Double.valueOf(lat), Double.valueOf(lon))).title(data));\n\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n };\n\n myRef.addValueEventListener(eventListener);\n\n for (Item e : list) {\n Log.e(\"TAG\",\"Add\");\n }\n }", "public boolean createMarker(ArrayList<LocationsData>datas) {\n\n boolean isNotEmpty= true;\n if (isNotEmpty) {\n placesMarker= placesMap.addMarker(new MarkerOptions()\n .position(new LatLng(datas.get(0).locationLatitude,datas.get(0).locationLongitude))\n .title(datas.get(0).locationName));\n placesMarker.showInfoWindow();\n placesMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {\n @Override\n public boolean onMarkerClick(Marker marker) {\n Log.i(\"Places Marker\",marker.getTitle()+\"\\n\"+places.toString());\n\n LocationsData data= new LocationsData();\n data.set_id(places.get(0).get_id());\n data.setImage_path(places.get(0).getImage_path());\n data.setLocationName(places.get(0).getLocationName());\n data.setLocationLatitude(places.get(0).getLocationLatitude());\n data.setLocationLongitude(places.get(0).getLocationLongitude());\n data.setLocationProducts(places.get(0).getLocationProducts());\n\n Intent i= new Intent(MainActivity.this,PlaceDetailsActivity.class);\n i.putExtra(\"places\",data);\n startActivity(i);\n\n Log.i(\"Intent\",i.toString());\n Log.i(\"onMarkerClick\",\"Successfull, Title: \"+marker.getTitle());\n Log.i(\"Getting Item Id\",String.valueOf(places.get(0).get_id()));\n return false;\n }\n });\n }else {\n isNotEmpty=false;\n }\n return isNotEmpty;\n }", "private void performPlaceDetailSearch(String placeId)\n {\n GenerateGoogleMapApiUrl urlGenerator = new GenerateGoogleMapApiUrl();\n StringBuilder googlePlacesUrl = urlGenerator.getGoogleMapPlacesQueryURL(placeId,GenerateGoogleMapApiUrl.PLACE_DETAIL,mCurrentLocation.getLatitude(),mCurrentLocation.getLongitude());\n Log.d(\"Google Query\",googlePlacesUrl.toString());\n final List<Place> newPlacesList = new ArrayList<Place>();\n // Creating volley request obj\n final JsonObjectRequest placeDetailReq = new JsonObjectRequest(Request.Method.GET,googlePlacesUrl.toString(),null,\n new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject result) {\n Log.d(\"JSON Error\", result.toString());\n //hidePDialog();\n // Parsing json\n //for (int i = 0; i < response.length(); i++) {\n try {\n\n JSONObject obj = result.getJSONObject(\"result\");\n Place newPlace = new Place();\n if (!obj.isNull(\"name\")) {\n newPlace.setName(obj.getString(\"name\"));\n }\n if(!obj.isNull(\"rating\"))\n {\n newPlace.setRating(Float.parseFloat(obj.getString(\"rating\")));\n }\n newPlace.setLat(obj.getJSONObject(\"geometry\").getJSONObject(\"location\").getString(\"lat\"));\n newPlace.setLng(obj.getJSONObject(\"geometry\").getJSONObject(\"location\").getString(\"lng\"));\n JSONArray types = obj.getJSONArray(\"types\");\n newPlace.setType(types.get(0).toString());\n if(!obj.isNull(\"opening_hours\"))\n {\n newPlace.setOpen(obj.getJSONObject(\"opening_hours\").getBoolean(\"open_now\"));\n }\n if(!obj.isNull(\"place_id\"))\n {\n newPlace.setPlace_id(obj.getString(\"place_id\"));\n }\n if(!obj.isNull(\"price_level\"))\n {\n newPlace.setPrice_level(obj.getString(\"price_level\"));\n }\n if(!obj.isNull(\"international_phone_number\"))\n {\n newPlace.setPhone_number(obj.getString(\"international_phone_number\"));\n }\n if(!obj.isNull(\"formatted_address\"))\n {\n newPlace.setAddress(obj.getString(\"formatted_address\"));\n }\n if(!obj.isNull(\"website\"))\n {\n newPlace.setWebsite(obj.getString(\"website\"));\n }\n\n\n Location placeLocation = new Location(\"\");\n placeLocation.setLatitude(Double.parseDouble(newPlace.getLat()));\n placeLocation.setLongitude(Double.parseDouble(newPlace.getLng()));\n newPlace.setDistance(mCurrentLocation.distanceTo(placeLocation));\n\n\n\n newPlacesList.add(newPlace);\n\n //currentPlaceDetail = newPlace; // set currentPlaceDetail\n\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n //dismiss keyboard\n hideSoftKeyboard(ARExploreActivity.this);\n //dismiss autocomplete list\n edtSeach.dismissDropDown();\n plotGoogleMap(newPlacesList);\n mPlaceDetail = newPlacesList;\n generateWorld(mWorld,mPlaceDetail,viewSetting,true);//rerender\n zoomToLocationSearchResult(newPlacesList);\n\n if(currentDisplayMode==DISPLAY_PLACE_LIST)\n {\n placeListBottomSheetBehavior.setHideable(true);\n placeListBottomSheetBehavior.setState(BottomSheetBehavior.STATE_HIDDEN);\n previousDisplayMode = currentDisplayMode;\n }\n currentDisplayMode = DISPLAY_PLACE_DETAIL;\n\n\n bottomsheetbehaviorgoogle.setHideable(true);\n bottomsheetbehaviorgoogle.setState(BottomSheetBehaviorGoogleMapsLike.STATE_COLLAPSED);\n extendButton.setVisibility(View.VISIBLE);\n //region for putting the result into place details\n\n placeNameTextView.setText(newPlacesList.get(0).getName()); // set place name\n ratingBar.setRating(newPlacesList.get(0).getRating()); // set Rating\n\n if(!newPlacesList.get(0).getPrice_level().equals(\"\"))\n {\n String priceString=\"\";\n int price = Integer.parseInt(newPlacesList.get(0).getPrice_level()); // set price\n for(int i=0;i<=price;i++)\n {\n priceString = priceString+\"£\";\n }\n priceTextView.setText(priceString);\n /*priceTextView.requestLayout();\n priceTextView.invalidate();*/\n }\n else\n {\n priceTextView.setText(\"\");\n }\n\n if(!newPlacesList.get(0).getPhone_number().equals(\"\"))\n {\n\n phoneTextView.setText(newPlacesList.get(0).getPhone_number()); // set phone number\n /*phoneTextView.requestLayout();\n phoneTextView.invalidate();*/\n phone_row.setVisibility(View.VISIBLE);\n }\n else\n {\n phone_row.setVisibility(View.GONE);\n }\n\n if(!newPlacesList.get(0).getAddress().equals(\"\"))\n {\n\n addressTextView.setText(newPlacesList.get(0).getAddress()); // set address\n /*addressTextView.requestLayout();\n addressTextView.invalidate();*/\n address_row.setVisibility(View.VISIBLE);\n\n }\n else\n {\n phone_row.setVisibility(View.GONE);\n }\n\n if(!newPlacesList.get(0).getWebsite().equals(\"\"))\n {\n websiteTextView.setText(newPlacesList.get(0).getWebsite()); // set website\n /*websiteTextView.requestLayout();\n websiteTextView.invalidate();*/\n website_row.setVisibility(View.VISIBLE);\n\n }\n else\n {\n website_row.setVisibility(View.GONE);\n }\n //endregion\n bottomSheetCOntentLayout.requestLayout();\n bottomSheetCOntentLayout.invalidate();\n\n layoutUpdater.wrapContentAgain(bottomSheetCOntentLayout,true);\n imgPlaceDetail.requestLayout();\n imgPlaceDetail.invalidate();\n placePhotosTask(newPlacesList.get(0).getPlace_id());\n //bottomSheetPlaceDetails.requestLayout();\n\n\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n VolleyLog.d(TAG, \"Error: \" + error.getMessage());\n //hidePDialog();\n\n }\n });\n // Adding request to request queue\n AppController.getInstance().addToRequestQueue(placeDetailReq);\n }", "public void markerCreator(List<Employee>employeeArray) {\n\n employeeArrayforData= employeeArray;\n List<MarkerOptions> markers = new ArrayList<MarkerOptions>();\n for (int i = 0; i < employeeArray.size(); i++) {\n if(employeeArray.get(i).lastLocation.isEmpty())\n continue;\n// markers.add((new MarkerOptions()\n// .position(new LatLng(LatLong.getLat(employeeArray.get(i).lastLocation.replace(\": (\",\":(\")),\n// LatLong.getLongt(employeeArray.get(i).lastLocation.replace(\": (\",\":(\"))))\n// .title(employeeArray.get(i).name)));\n// updateMyMarkers(markers);\n Log.i(\"****\",employeeArray.get(i).lastLocation);\n Log.i(\"****\",\"hi\");\n if (employeeArray.get(i).online)\n\n {\n markers.add((new MarkerOptions()\n .position(new LatLng(LatLong.getLat(employeeArray.get(i).lastLocation),\n LatLong.getLongt(employeeArray.get(i).lastLocation)))\n .title(i+\":\"+employeeArray.get(i).name))\n .snippet((\"Rate = \"+employeeArray.get(i).rate+\",\"+employeeArray.get(i).email\n )).alpha(0.9f).icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_picker_green)));\n\n }\n else{\n markers.add((new MarkerOptions()\n .position(new LatLng(LatLong.getLat(employeeArray.get(i).lastLocation),\n LatLong.getLongt(employeeArray.get(i).lastLocation)))\n .title(i+\":\"+employeeArray.get(i).name))\n .snippet((\"Rate = \"+employeeArray.get(i).rate+\"\"+employeeArray.get(i).email\n )).alpha(0.1f).icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_picker_red)));\n }\n\n updateMyMarkers(markers);\n }\n }", "public void getvillagelocationinfo_new() {\n\n Call<Class_getVillageLatLong> call = userService1.getVillageLatLong(str_loginuserID);\n // Set up progress before call\n final ProgressDialog progressDoalog;\n progressDoalog = new ProgressDialog(Activity_MarkerGoogleMaps.this);\n // progressDoalog.setMax(100);\n // progressDoalog.setMessage(\"Loading....\");\n progressDoalog.setTitle(\"Please wait....\");\n progressDoalog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n // show it\n progressDoalog.show();\n\n call.enqueue(new Callback<Class_getVillageLatLong>() {\n @Override\n public void onResponse(Call<Class_getVillageLatLong> call, Response<Class_getVillageLatLong> response) {\n Log.e(\"Entered resp\", \"getVillageLatLong\");\n\n if (response.isSuccessful()) {\n progressDoalog.dismiss();\n Class_getVillageLatLong class_loginresponse = response.body();\n if (class_loginresponse.getStatus()) {\n List<Class_VillageLatLongList> monthContents_list = response.body().getListVersion();\n latlong_count=monthContents_list.size();\n Class_VillageLatLongList [] arrayObj_Class_monthcontents = new Class_VillageLatLongList[monthContents_list.size()];\n arrayObj_class_GoogleLocations = new Class_GoogleLocations[arrayObj_Class_monthcontents.length];\n\n for (int i = 0; i < arrayObj_Class_monthcontents.length; i++) {\n Log.e(\"getUserPayment\", String.valueOf(class_loginresponse.getStatus()));\n Log.e(\"getUserPayment\", class_loginresponse.getMessage());\n\n Class_GoogleLocations innerObj_Class_academic = new Class_GoogleLocations();\n innerObj_Class_academic.setLatitude(class_loginresponse.getListVersion().get(i).getLattitude());\n innerObj_Class_academic.setLongitude(class_loginresponse.getListVersion().get(i).getLogitude());\n innerObj_Class_academic.setVillagename(class_loginresponse.getListVersion().get(i).getVillageName());\n\n arrayObj_class_GoogleLocations[i] = innerObj_Class_academic;\n\n str_latitude =class_loginresponse.getListVersion().get(i).getLattitude();\n str_longitude= class_loginresponse.getListVersion().get(i).getLogitude();\n\n Log.e(\"soap_latitude\", str_latitude);\n\n }//for loop end\n\n mapFragment = (SupportMapFragment) getSupportFragmentManager()\n .findFragmentById(R.id.map);\n mapFragment.getMapAsync(Activity_MarkerGoogleMaps.this);\n mapFragment.getMapAsync(new OnMapReadyCallback() {\n @Override\n public void onMapReady(GoogleMap googleMap) {\n googleMap.setMapType(GoogleMap.MAP_TYPE_TERRAIN);\n\n int i=0;\n\n Log.e(\"latlongcount\", String.valueOf(latlong_count));\n for(i=0;i<latlong_count;i++){\n Log.e(\"lat abc\", arrayObj_class_GoogleLocations[i].getLatitude());\n\n Double lat=Double.parseDouble(arrayObj_class_GoogleLocations[i].getLatitude());\n Double longi=Double.parseDouble(arrayObj_class_GoogleLocations[i].getLongitude());\n Log.e(\"lat oncreate\", String.valueOf(lat));\n Log.e(\"longi oncreate\", String.valueOf(longi));\n\n googleMap.addMarker(new MarkerOptions()\n .position(new LatLng(lat, longi))\n .title(arrayObj_class_GoogleLocations[i].getVillagename())\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN)));\n\n\n }\n googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(15.539836, 75.056725), 4));\n\n }\n });\n\n\n } else {\n progressDoalog.dismiss();\n// str_getmonthsummary_errormsg = class_loginresponse.getMessage();\n// alerts_dialog_getmonthsummaryError();\n\n // Toast.makeText(getContext(), class_loginresponse.getMessage(), Toast.LENGTH_SHORT).show();\n }\n } else {\n progressDoalog.dismiss();\n Log.e(\"Entered resp else\", \"\");\n DefaultResponse error = ErrorUtils.parseError(response);\n // … and use it to show error information\n\n // … or just log the issue like we’re doing :)\n// Log.e(\"error message\", error.getMsg());\n// str_getmonthsummary_errormsg = error.getMsg();\n// alerts_dialog_getexlistviewError();\n\n // Toast.makeText(getContext(), error.getMsg(), Toast.LENGTH_SHORT).show();\n\n if (error.getMsg() != null) {\n\n Log.e(\"error message\", error.getMsg());\n// str_getmonthsummary_errormsg = error.getMsg();\n// alerts_dialog_getexlistviewError();\n\n //Toast.makeText(getActivity(), error.getMsg(), Toast.LENGTH_SHORT).show();\n }else{\n Toast.makeText(Activity_MarkerGoogleMaps.this,\"Kindly restart your application\", Toast.LENGTH_SHORT).show();\n\n }\n\n }\n }\n\n @Override\n public void onFailure(Call call, Throwable t) {\n progressDoalog.dismiss();\n// str_getmonthsummary_errormsg = t.getMessage();\n// alerts_dialog_getexlistviewError();\n\n // Toast.makeText(getContext(), t.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });// end of call\n\n }", "public void bindView(final int position) {\n final String output = fullNameArrayList.get(position);\n tvLocations.setText(output);\n\n tvLocations.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n final ProgressDialog progressdialog = new ProgressDialog(mActivity);\n progressdialog.setMessage(\"Please Wait....\");\n progressdialog.show();\n\n EditText etStreet = (EditText) LocationFilterFragment.mView.findViewById(R.id.etStreetFilter);\n etStreet.setText(output);\n SharedPreferences sharedPreferences = mActivity.getSharedPreferences(LOCATION_SP, Context.MODE_PRIVATE);\n final SharedPreferences.Editor edit = sharedPreferences.edit();\n edit.clear();\n Call<POJOResults> call = retrofit.getPlaceDetailsInfo(placeIdArrayList.get(position), mActivity.getResources().getString(R.string.google_maps_key));\n call.enqueue(new Callback<POJOResults>() {\n @Override\n public void onResponse(Call<POJOResults> call, Response<POJOResults> response) {\n //close keyboard\n KeyboardUtil.hideKeyboard(mActivity);\n POJOResult result = response.body().getResult();\n SharedPreferences sharedPreferences = mActivity.getSharedPreferences(LOCATION_SP, Context.MODE_PRIVATE);\n SharedPreferences.Editor edit = sharedPreferences.edit();\n edit.clear();\n\n for (int i = 0; i < result.getAddressComponents().size(); i++) {\n\n if (result.getAddressComponents().get(i).getTypes().get(0).equals(\"route\"))\n edit.putString(STREET_NAME, result.getAddressComponents().get(i).getLongName());\n\n else if (result.getAddressComponents().get(i).getTypes().get(0).equals(\"locality\"))\n edit.putString(CITY_NAME, result.getAddressComponents().get(i).getLongName());\n\n else if (result.getAddressComponents().get(i).getTypes().get(0).equals(\"administrative_area_level_1\"))\n edit.putString(STATE_NAME, result.getAddressComponents().get(i).getShortName());\n\n else if (result.getAddressComponents().get(i).getTypes().get(0).equals(\"country\"))\n edit.putString(COUNTRY_NAME, result.getAddressComponents().get(i).getLongName());\n }\n edit.putString(LNG,result.getGeometry().getLocation().getLng().toString());\n edit.putString(LAT,result.getGeometry().getLocation().getLat().toString());\n edit.apply();\n progressdialog.dismiss();\n ((AppCompatActivity) mActivity).getSupportFragmentManager().popBackStack(\"layoutStreet\", FragmentManager.POP_BACK_STACK_INCLUSIVE);\n }\n\n @Override\n public void onFailure(Call<POJOResults> call, Throwable t) {\n Toast.makeText(mActivity, \"INTERNET CONNECTION NEEDED\", Toast.LENGTH_LONG).show();\n }\n });\n\n\n }\n });\n }", "private void fillPlacesList() {\n // Set up an ArrayAdapter to convert likely places into TextViews to populate the ListView\n ArrayAdapter<String> placesAdapter =\n new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, mLikelyPlaceNames);\n lstPlaces.setAdapter(placesAdapter);\n lstPlaces.setOnItemClickListener(listClickedHandler);\n }", "@Override\n protected void onPostExecute(ArrayList<PlaceNearby> list) {\n\n for (int i = 0; i < list.size(); i++) {\n\n PlaceNearby mPlace = list.get(i);\n\n double place_lat = Double.parseDouble(mPlace.getLatitude());\n double place_lng = Double.parseDouble(mPlace.getLongitude());\n\n double x = Math.pow((place_lat-mlatitude),2);\n double y = Math.pow((place_lng-mlongitude),2);\n double distance = Math.sqrt(x+y);\n\n mPlace.setDistance(distance);\n\n mPlaces.add(mPlace);\n adapter.notifyDataSetChanged();\n }\n }", "public ArrayList<GeoPlace> getPlaces(){\n return GeoPlaces;\n}", "@Override\n public void onClick(View arg0) {\n gps = new GPSTracker(AddressBook_add.this);\n\n // check if GPS enabled\n if(gps.canGetLocation()){\n\n latitude = gps.getLatitude();\n longitude = gps.getLongitude();\n\n // \\n is for new line\n // Toast.makeText(getApplicationContext(), \"Your Location is - \\nLat: \" + latitude + \"\\nLong: \" + longitude, Toast.LENGTH_LONG).show();\n }else{\n // can't get location\n // GPS or Network is not enabled\n // Ask user to enable GPS/network in settings\n gps.showSettingsAlert();\n }\n\n latitude = gps.getLatitude();\n longitude = gps.getLongitude();\n \n \n \n\n\n List <Address> list = null;\n try {\n list = gc.getFromLocation(latitude,longitude,1);\n if(list!=null) {\n\n Address address = list.get(0);\n String locality = address.getLocality();\n String sublocality = address.getSubLocality();\n Log.d(\"locality\", locality+\" \"+sublocality);\n Intent i = new Intent(AddressBook_add.this, AddCompleteAddress.class);\n Bundle extras = new Bundle();\n extras.putString(LOCALITY, locality);\n extras.putString(SUBLOCALITY, sublocality);\n i.putExtras(extras);\n\n startActivity(i);\n }else{\n\n Toast.makeText(gps, \"Try Again.!!!\", Toast.LENGTH_SHORT).show();\n }\n\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n \n\n\n //Toast.makeText(getApplicationContext(),\"loca \" + locality + \"sublocal \" + sublocality , Toast.LENGTH_LONG).show();\n }", "public String GetAddressFromLatLng(Double latitude,Double longitude)\n {\n //Geocoder geocoder = null;\n List<Address> addresses;\n String address = \"\";\n //Geocoder geocoder = new Geocoder(HomeMapsActivity.this, Locale.getDefault());\n\n// Geocoder geocoder = CustomApplication.geoCoder;\n try {\n addresses = CustomApplication.geoCoder.getFromLocation(latitude, longitude, 1); // Here 1 represent max location result to returned, by documents it recommended 1 to 5\n address = addresses.get(0).getAddressLine(0); // If any additional address line present than only, check with max available address lines by getMaxAddressLineIndex()\n String city = addresses.get(0).getLocality();\n String state = addresses.get(0).getAdminArea();\n String country = addresses.get(0).getCountryName();\n String postalCode = addresses.get(0).getPostalCode();\n String knownName = addresses.get(0).getFeatureName(); // Only if available else return NULL\n } catch (IOException e) {\n e.printStackTrace();\n }\n Log.i(TAG, \"GetAddressFromLatLng: \"+address);\n\n return address;\n }", "@Override\n protected void onPostExecute(List<List<HashMap<String, String>>> result) {\n ArrayList<LatLng> points;\n PolylineOptions lineOptions = null;\n LatLng end=new LatLng(lat,lng);\n\n // Traversing through all the routes\n for (int i = 0; i < result.size(); i++) {\n points = new ArrayList<>();\n lineOptions = new PolylineOptions();\n\n // Fetching i-th route\n List<HashMap<String, String>> path = result.get(i);\n\n // Fetching all the points in i-th route\n for (int j = 0; j < path.size(); j++) {\n HashMap<String, String> point = path.get(j);\n\n double lat = Double.parseDouble(point.get(\"lat\"));\n double lng = Double.parseDouble(point.get(\"lng\"));\n LatLng position = new LatLng(lat, lng);\n\n points.add(position);\n }\n\n if(i==result.size()-1){\n googleMap.addMarker(new MarkerOptions().position(points.get(points.size()-1)));\n// mapBounds = new LatLngBounds(points.get(points.size()-1),end);\n }\n if(i==0){\n// end = points.get(0);\n googleMap.addMarker(new MarkerOptions().position(points.get(0)).title(from_place_name)).showInfoWindow();\n }\n // Adding all the points in the route to LineOptions\n lineOptions.addAll(points);\n lineOptions.width(10);\n lineOptions.color(Color.BLUE);\n\n Log.d(\"onPostExecute\",\"onPostExecute lineoptions decoded\");\n\n }\n\n // Drawing polyline in the Google Map for the i-th route\n if(lineOptions != null) {\n Log.d(\"POLYLINE\",\"draw\");\n googleMap.addPolyline(lineOptions);\n googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(mapBounds.getCenter(),getBoundsZoomLevel(mapBounds.northeast,mapBounds.southwest,256,256)));\n// googleMap.animateCamera(CameraUpdateFactory.zoomTo(10));\n }\n else {\n Log.d(\"onPostExecute\",\"without Polylines drawn\");\n }\n }", "private void UpdateMap(){\n Log.d(\"data\", lati + \" \" + longi );\n// sydney = new LatLng(lati, longi);\n// mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n// mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }", "private void generateGoogleMap() {\n\t\t\n\t\t\n\t\tif (list.size() > 25) {\n\t\t\ttry {\n\t\t\t\tDesktop.getDesktop().browse(new File(\"data/web/maxSize.html\").toURI());\n\t\t\t\treturn;\n\t\t\t} \n\t\t\tcatch (IOException e) {\n\t\t\t\tSystem.out.println(e.getLocalizedMessage());\n\t\t\t}\n\t\t}\n\t\tString[] points = new String[list.size()];\t\t\n\t\t\n\t\t// generate a list of latitude and longitude points\n\t\tfor (int i = 0 ; i < list.size(); i++) {\n\t\t\tString lat = list.get(i).getLat() + \"\";\n\t\t\tString lon = \"\"+list.get(i).getLon() + \"\";\n\t\t\tpoints[i] = lat+\",\"+lon;\n\t\t}\n\t\t\n\t\tString path = \"http://maps.google.com/maps?saddr=\";\n\t\t\n\t\t//initial point\n\t\tpath += points[0];\n\t\t\n\t\tpath += \"&daddr=\";\n\t\t\n\t\t// add all other stops in between the route\n\t\tfor (int i = 1; i < list.size(); i++) {\n\t\t\tif (i == 1) path += points[i];\n\t\t\telse path += \"+to:\" + points[i];\n\t\t}\n\t\t\n\t\t\n\t\t// wrap back around to final position\n\t\tpath+= \"+to:\"+points[0];\n\t\t\n\t\ttry {\n\t\t\tjava.awt.Desktop.getDesktop().browse(java.net.URI.create(path));\n\t\t} \n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(e.getLocalizedMessage());\n\t\t}\n\t}", "public void onSearch(View view){\n List<Address> addressList = null;\n EditText location_tf = (EditText) findViewById(R.id.TFaddress);\n String location = location_tf.getText().toString();\n if(location!=null || location.equals(\"\")){\n Geocoder geocoder = new Geocoder(this);\n try {\n addressList = geocoder.getFromLocationName(location, 1);\n } catch (IOException e) {\n e.printStackTrace();\n }\n Address address = addressList.get(0);\n LatLng latLng = new LatLng(address.getLatitude(), address.getLongitude());\n marker = mMap.addMarker(new MarkerOptions().position(latLng).title(\"Marker\"));\n mMap.addMarker(new MarkerOptions().position(latLng).title(\"Marker\"));\n mMap.animateCamera(CameraUpdateFactory.newLatLng(latLng));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng,17));\n\n }\n\n }", "public ArrayList<String> getAllPlacesData() {\n\t\t\n\t\tArrayList<String> place_data = new ArrayList<String>();\n\t\t\n\t\t// String array for [place id, place name, place type, place latitude, place longitude]\n\t\tString[] parsed_place_value = new String[5];\n\t\t\t\t\n\t\t// Get SharedPref map\n\t\tMap<String,?> prefsMap = mPref.getAll();\n\t\t\n\t\t// Iterate over SharedPref map and get key, value pairs\n\t\tfor (Map.Entry<String, ?> entry : prefsMap.entrySet()) {\n\t\t\t\n\t\t\t// Ignore position data for clicked ListView item\n\t\t\tif (entry.getKey().equals(\"KEY_DATA_POSITION\")) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// Store place id, place name, place type, place latitude, place longitude from values obtained in SharedPref map\n\t\t\tparsed_place_value = entry.getValue().toString().split(\",\");\n\n\t\t\t// Obtain place id and remove all occurrences of '[' and ']' and leading/trailing whitespace\n\t\t\tString id = parsed_place_value[0];\n\t\t\tid = id.replaceAll(\"\\\\[|\\\\]\", \"\");\n\t\t\tid = id.trim();\n\t\t\t\n\t\t\t// Obtain place name and remove all occurrences of '[' and ']' and leading/trailing whitespace\n\t\t\tString name = parsed_place_value[1];\n\t\t\tname = name.replaceAll(\"\\\\[|\\\\]\", \"\");\n\t\t\tname = name.trim();\n\t\t\t\n\t\t\t// Obtain place type and remove all occurrences of '[' and ']' and leading/trailing whitespace\n\t\t\tString type = parsed_place_value[2];\n\t\t\ttype = type.replaceAll(\"\\\\[|\\\\]\", \"\");\n\t\t\ttype = type.trim();\n\t\t\t\n\t\t\t// Obtain place latitude and remove all occurrences of '[' and ']' and leading/trailing whitespace\n\t\t\tString latitude = parsed_place_value[3];\n\t\t\tlatitude = latitude.replaceAll(\"\\\\[|\\\\]\", \"\");\n\t\t\tlatitude = latitude.trim();\n\t\t\t\t\t\n\t\t\t// Obtain place longitude and remove all occurrences of '[' and ']' and leading/trailing whitespace\n\t\t\tString longitude = parsed_place_value[4];\n\t\t\tlongitude = longitude.replaceAll(\"\\\\[|\\\\]\", \"\");\n\t\t\tlongitude = longitude.trim();\n\t\t\t\n\t\t\t// Obtain SharedPref key for place\n\t\t\tString sharedPref_key = entry.getKey();\n\t\t\t\n\t\t\t// Add place id, name, type, latitude, longitude, SharedPref key to ArrayList (separated by ## symbol)\n\t\t\tplace_data.add(id + \"##\" + name + \"##\" + type + \"##\" + latitude + \"##\" + longitude + \"##\" + sharedPref_key);\n\t\t\t\n\t\t\t\n\t\t\tLog.i(\"SHARED_PREFS_DATA\", entry.getKey() + \": \" + entry.getValue().toString());\n\t\t}\n\t\t\n\t\treturn place_data;\n\t}", "@Override\n public void onMapLongClick(LatLng latLng) {\n mMap.clear();\n\n //Adding a new marker to the current pressed position we are also making the draggable true\n mMap.addMarker(new MarkerOptions()\n .position(latLng)\n .draggable(true).icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)));\n\n// Toast.makeText(this, \"longitude=\" + latLng.longitude + \"latitude=\" + latLng.latitude, Toast.LENGTH_LONG).show();\n String msg = latLng.longitude + \", \" + latLng.latitude;\n// marker_address_tv.setText(msg);\n setAddressInTVFromLatlong(latLng.latitude, latLng.longitude);\n\n }", "private void GetLocation(final String str) {\n AlertUtils.showCustomProgressDialog(LocationSearchActivityNew.this);\n String selectedPlaceKey = DataToPref.getSharedPreferanceData(LocationSearchActivityNew.this, LaoxiConstant.SELECTED_PLACE_ID, LaoxiConstant.SELECTED_PLACE_ID_KEY);\n\n CommonImplementation.getInstance().doGetLocation(null, \"https://maps.googleapis.com/maps/api/place/details/json?placeid=\" + selectedPlaceKey + \"&sensor=false&key=\" + getString(R.string.browser_key) + \"&language=\" + Locale.getDefault().getCountry(), new OnTaskComplete() {\n @Override\n public void onSuccess(Response data, boolean success) {\n AlertUtils.dismissDialog();\n if (data.code() == 200) {\n\n String LAT = \"\";\n String Long = \"\";\n String Location = \"\";\n String City = \"\";\n String State = \"\";\n String postal_code = \"\";\n String country = \"\";\n\n try {\n\n String response = data.body().string();\n JSONObject object = new JSONObject(response);\n\n String status = object.getString(\"status\").toString();\n\n if (object.has(\"result\")) {\n //JSONArray results = object.getJSONArray(\"results\");\n int i = 0;\n //Log.i(\"i\", i + \",\" + results.length());\n JSONObject r = object.getJSONObject(\"result\");\n JSONArray addressComponentsArray = r.getJSONArray(\"address_components\");\n do {\n\n JSONObject addressComponents = addressComponentsArray.getJSONObject(i);\n JSONArray typesArray = addressComponents.getJSONArray(\"types\");\n String types = typesArray.getString(0);\n\n if (types.equalsIgnoreCase(\"sublocality\")) {\n Location = addressComponents.getString(\"short_name\");\n Log.i(\"Locality\", Location);\n\n } else if (types.equalsIgnoreCase(\"locality\")) {\n City = addressComponents.getString(\"long_name\");\n Log.i(\"City\", City);\n\n } else if (types.equalsIgnoreCase(\"administrative_area_level_1\")) {\n State = addressComponents.getString(\"long_name\");\n Log.i(\"State\", State);\n\n } else if (types.equalsIgnoreCase(\"postal_code\")) {\n postal_code = addressComponents.getString(\"long_name\");\n Log.i(\"postal_code\", postal_code);\n } else if (types.equalsIgnoreCase(\"country\")) {\n country = addressComponents.getString(\"long_name\");\n Log.i(\"country\", country);\n }\n\n i++;\n } while (i < addressComponentsArray.length());\n\n\n JSONObject geometry = r.getJSONObject(\"geometry\");\n JSONObject location = geometry.getJSONObject(\"location\");\n\n LAT = location.getString(\"lat\");\n Long = location.getString(\"lng\");\n\n\n /* Log.i(\"JSON Geo Locatoin =>\", currentLocation);\n return currentLocation;*/\n\n String Data = LAT + \",,,\" + Long + \",,,\" + Location + \",,,\" + City + \",,,\" + State + \",,,\" +\n postal_code + \",,,\" + country;\n\n\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"result\", Data + \",,,\" + str);\n setResult(Activity.RESULT_OK, returnIntent);\n finish();\n }\n } catch (IOException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n } else if (data.code() == 404) {\n\n }\n }\n\n @Override\n public void onFailure() {\n AlertUtils.dismissDialog();\n }\n });\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n float zoomLevel = 7.0f;\n\n // Add a markers of every destination and move the camera\n Bundle b = this.getIntent().getExtras();\n String[] records = b.getStringArray(\"Records\");\n\n double lat;\n double lon;\n\n int index = 1;\n\n for(int r = 0; r < records.length; r++){\n\n if(index == records.length - 7){\n lat = Double.parseDouble(records[records.length - 4]);\n lon = Double.parseDouble(records[records.length - 3]);\n LatLng dest = new LatLng(lat, lon);\n mMap.addMarker(new MarkerOptions().position(dest).title(records[index])).showInfoWindow();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(dest, zoomLevel));\n break;\n }\n\n lat = Double.parseDouble(records[index+3]);\n lon = Double.parseDouble(records[index+4]);\n\n LatLng dest = new LatLng(lat, lon);\n mMap.addMarker(new MarkerOptions().position(dest).title(records[index])).showInfoWindow();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(dest, zoomLevel));\n index+=8;\n }\n\n\n /*\n // Царевец\n LatLng carevec = new LatLng(43.084030f, 25.652586f);\n mMap.addMarker(new MarkerOptions().position(carevec).title(\"Царевец\")).showInfoWindow();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(carevec, zoomLevel));\n\n // Чудни мостове\n LatLng chydniMostove = new LatLng(41.819929f, 24.581748f);\n mMap.addMarker(new MarkerOptions().position(chydniMostove).title(\"„Чудните Мостове“\")).showInfoWindow();\n\n // Ягодинска Пещера\n LatLng yagodinskaPeshtera = new LatLng(41.628984f, 24.329589f);\n mMap.addMarker(new MarkerOptions().position(yagodinskaPeshtera).title(\"Ягодинска Пещера\")).showInfoWindow();\n\n // Връх Снежанка\n LatLng vruhSnejanka = new LatLng(41.638506f, 24.675594f);\n mMap.addMarker(new MarkerOptions().position(vruhSnejanka).title(\"Връх Снежанка\")).showInfoWindow();\n\n // Белоградчишки скали\n LatLng belogradchiskiSkali = new LatLng(43.623361f, 22.677964f);\n mMap.addMarker(new MarkerOptions().position(belogradchiskiSkali).title(\"Белоградчишки Скали\")).showInfoWindow();\n\n // Пещера „Леденика“\n LatLng peshteraLedenika = new LatLng(43.204703f, 23.493687f);\n mMap.addMarker(new MarkerOptions().position(peshteraLedenika).title(\"Пещера „Леденика“\")).showInfoWindow();\n\n // Паметник На Христо Ботев И Неговата Чета\n LatLng pametneikHristoBotev = new LatLng(43.798045f, 23.677926f);\n mMap.addMarker(new MarkerOptions().position(pametneikHristoBotev).title(\"Паметник На Христо Ботев И Неговата Чета\")).showInfoWindow();\n\n // Национален Музей \"Параход Радецки\"\n LatLng myzeiParahodRadecki = new LatLng(43.799125f, 23.676921f);\n mMap.addMarker(new MarkerOptions().position(myzeiParahodRadecki).title(\"Национален Музей 'Параход Радецки'\")).showInfoWindow();\n\n // Археологически Резерват „Калиакра”\n LatLng rezervatKaliakra = new LatLng(43.361190f, 28.465788f);\n mMap.addMarker(new MarkerOptions().position(rezervatKaliakra).title(\"Археологически Резерват „Калиакра”\")).showInfoWindow();\n\n // Перперикон\n LatLng perperikon = new LatLng(41.718126f, 25.468954f);\n mMap.addMarker(new MarkerOptions().position(perperikon).title(\"Перперикон\")).showInfoWindow();\n\n // Вр. Мусала (2925 М.) - Рила\n LatLng vruhMysala = new LatLng(42.180021f, 23.585167f);\n mMap.addMarker(new MarkerOptions().position(vruhMysala).title(\"Вр. Мусала (2925 М.) - Рила\")).showInfoWindow();\n\n // Връх Шипка – Национален Парк-Музей „Шипка“ - Паметник На Свободата\n LatLng vruhShipka = new LatLng(42.748281f, 25.321387f);\n mMap.addMarker(new MarkerOptions().position(vruhShipka).title(\"Връх Шипка – Национален Парк-Музей „Шипка“ - Паметник На Свободата\")).showInfoWindow();\n\n // Пещера – Пещера „Снежанка“ (Дължина: 145 М)\n LatLng peshteraSnejanka = new LatLng(42.004459f, 24.278645f);\n mMap.addMarker(new MarkerOptions().position(peshteraSnejanka).title(\"Пещера – Пещера „Снежанка“ (Дължина: 145 М)\")).showInfoWindow();\n\n // Античен Театър\n LatLng antichenTeatur = new LatLng(42.147109f, 24.751005f);\n mMap.addMarker(new MarkerOptions().position(antichenTeatur).title(\"Античен Театър\")).showInfoWindow();\n\n // Асенова Крепост\n LatLng asenovaKrepost = new LatLng(41.987020f, 24.873552f);\n mMap.addMarker(new MarkerOptions().position(asenovaKrepost).title(\"Асенова Крепост\")).showInfoWindow();\n\n // Бачковски Манастир\n LatLng bachkovskiManastir = new LatLng(41.942380f, 24.849340f);\n mMap.addMarker(new MarkerOptions().position(bachkovskiManastir).title(\"Бачковски Манастир\")).showInfoWindow();\n\n // Резерват „Сребърна“\n LatLng rezervatSreburna = new LatLng(44.115654f, 27.071807f);\n mMap.addMarker(new MarkerOptions().position(rezervatSreburna).title(\"Резерват „Сребърна“\")).showInfoWindow();\n\n // Мадарски Конник\n LatLng madarskiKonnik = new LatLng(43.277708f, 27.118949f);\n mMap.addMarker(new MarkerOptions().position(madarskiKonnik).title(\"Мадарски Конник\")).showInfoWindow();\n\n // Седемте Рилски езера\n LatLng sedemteRilskiEzera = new LatLng(42.203413f, 23.319871f);\n mMap.addMarker(new MarkerOptions().position(sedemteRilskiEzera).title(\"Седемте Рилски езера\")).showInfoWindow();\n\n //Храм-Паметник „Александър Невски“\n LatLng aleksandurNevski = new LatLng(42.696000f, 23.332879f);\n mMap.addMarker(new MarkerOptions().position(aleksandurNevski).title(\"Храм-Паметник „Александър Невски“\")).showInfoWindow();\n */\n\n }", "private void performPlaceSearch(String userQuery)\n {\n StringBuilder googlePlacesUrl = urlGenerator.getGoogleMapPlacesQueryURL(userQuery,GenerateGoogleMapApiUrl.TEXT_SEARCH, mCurrentLocation.getLatitude(),mCurrentLocation.getLongitude());\n Log.d(\"Google Query\",googlePlacesUrl.toString());\n final List<Place> newPlacesList = new ArrayList<Place>();\n // Creating volley request obj\n JsonObjectRequest movieReq = new JsonObjectRequest(Request.Method.GET,googlePlacesUrl.toString(),null,\n new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject result) {\n Log.d(\"JSON Error\", result.toString());\n //hidePDialog();\n JSONArray response = null;\n try {\n response = result.getJSONArray(\"results\");\n }\n catch (JSONException e)\n {\n e.printStackTrace();\n }\n // Parsing json\n for (int i = 0; i < response.length(); i++) {\n try {\n\n JSONObject obj = response.getJSONObject(i);\n Place newPlace = new Place();\n if (!obj.isNull(\"name\")) {\n newPlace.setName(obj.getString(\"name\"));\n }\n if(!obj.isNull(\"rating\"))\n {\n newPlace.setRating(Float.parseFloat(obj.getString(\"rating\")));\n }\n newPlace.setLat(obj.getJSONObject(\"geometry\").getJSONObject(\"location\").getString(\"lat\"));\n newPlace.setLng(obj.getJSONObject(\"geometry\").getJSONObject(\"location\").getString(\"lng\"));\n JSONArray types = obj.getJSONArray(\"types\");\n newPlace.setType(types.get(0).toString());\n if(!obj.isNull(\"opening_hours\"))\n {\n newPlace.setOpen(obj.getJSONObject(\"opening_hours\").getBoolean(\"open_now\"));\n }\n if(!obj.isNull(\"place_id\"))\n {\n newPlace.setPlace_id(obj.getString(\"place_id\"));\n }\n if(!obj.isNull(\"photos\"))\n newPlace.setPhoto_reference(obj.getJSONArray(\"photos\").getJSONObject(0).getString(\"photo_reference\"));\n\n if(!obj.isNull(\"price_level\"))\n newPlace.setPrice_level(obj.getString(\"price_level\"));\n Location placeLocation = new Location(\"\");\n placeLocation.setLatitude(Double.parseDouble(newPlace.getLat()));\n placeLocation.setLongitude(Double.parseDouble(newPlace.getLng()));\n newPlace.setDistance(mCurrentLocation.distanceTo(placeLocation));\n newPlacesList.add(newPlace);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n //dismiss keyboard\n hideSoftKeyboard(ARExploreActivity.this);\n //dismiss autocomplete list\n edtSeach.dismissDropDown();\n plotGoogleMap(newPlacesList);\n mPlaceListMain = newPlacesList;\n //List<Place> filteredList = filterPlaceResult(mPlaceListMain);\n\n generateWorld(mWorld,mPlaceListMain,viewSetting,true);\n zoomToLocationSearchResult(newPlacesList);\n if(newPlacesList.size()==1)\n {\n performPlaceDetailSearch(newPlacesList.get(0).getPlace_id());\n }\n else if(newPlacesList.size()>1)\n {\n\n if(currentDisplayMode==DISPLAY_PLACE_DETAIL)\n {\n bottomsheetbehaviorgoogle.setHideable(true);\n bottomsheetbehaviorgoogle.setState(BottomSheetBehaviorGoogleMapsLike.STATE_HIDDEN);\n previousDisplayMode = currentDisplayMode;\n }\n currentDisplayMode = DISPLAY_PLACE_LIST;\n createPlacesListBottomSheet(newPlacesList);\n }\n\n // set radar renderer to furthestPlace\n radarPlugin.setMaxDistance(furthestPlace+200.0f);\n distanceSeekBar.setProgress((int)(furthestPlace+200));\n\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n VolleyLog.d(TAG, \"Error: \" + error.getMessage());\n //hidePDialog();\n\n }\n });\n // Adding request to request queue\n AppController.getInstance().addToRequestQueue(movieReq);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_google_map);\n //quakeArrayList\n createMapView();\n addMarker();\n\n mMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {\n @Override\n public View getInfoWindow(Marker marker) {\n return null;\n }\n @Override\n public View getInfoContents(Marker marker) {\n LatLng l = marker.getPosition();\n View v = getLayoutInflater().inflate(R.layout.marker_window_layout, null);\n TextView v1 = (TextView) v.findViewById(R.id.marker_window_lat);\n TextView v2 = (TextView) v.findViewById(R.id.marker_window_lon);\n\n String[] tmp = marker.getSnippet().split(\"\\n\");\n\n v1.setText(\"Time Info : \" + tmp[0].replace(\"T\" , \"\\n\"));\n v2.setText(\"Magnitude : \" + tmp[1]);\n return v;\n }\n });\n mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {\n @Override\n public boolean onMarkerClick(Marker marker) {\n marker.showInfoWindow();\n\n return false;\n }\n });\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n Intent intent = getIntent();\n double lat = intent.getDoubleExtra(\"Lat\",10);\n double lon = intent.getDoubleExtra(\"Long\",10);\n\n Log.i(\"lat\", String.valueOf(lat));\n LatLng userLocation = new LatLng(lat ,lon);\n\n mMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n mMap.addMarker(new MarkerOptions().position(userLocation).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(userLocation));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(userLocation,15));\n\n LatLngBounds boundary = new LatLngBounds(new LatLng(lat, lon), new LatLng(lat , lon));\n builder1.setLatLngBounds(boundary);\n try {\n startActivityForResult(builder1.build(this),PLACE_PICKER_REQUEST);\n }catch (Exception e ){\n return ;\n }\n\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng korea = new LatLng(0,0);\n LatLng busan = new LatLng(ListOfLat[0], ListOfLong[0]);\n mMap.addMarker(new MarkerOptions().position(busan).icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE)).title(\"Point : 1\"));\n for(int i=1; i<=size; i++){\n korea = new LatLng(ListOfLat[i-1], ListOfLong[i-1]);\n busan = new LatLng(ListOfLat[i], ListOfLong[i]);\n PolylineOptions aa = new PolylineOptions().add(korea).add(busan);\n mMap.addMarker(new MarkerOptions().position(busan).icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE)).title(\"Point : \"+(i+1)));\n mMap.addPolyline(aa);\n }\n\n mMap.moveCamera(CameraUpdateFactory.newLatLng(busan));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n // Add a marker in Sydney, Australia,\n // and move the map's camera to the same location.\n LatLng daegu = new LatLng(35.888836, 128.6102997);\n\n for(int i =0; i < items.size();i++){\n Item item = items.get(i);\n double latitude = item.getLatitude();\n double longitude = item.getLongitude();\n //Log.d(\"MYGOOGLEMAP\",\"\"+latitude+\" \"+longitude);\n googleMap.addMarker(new MarkerOptions()\n .position(new LatLng(latitude, longitude))\n .anchor(0.5f, 0.5f)\n .title(item.getItem_name())\n .snippet(item.getItem_price_per_day()+\" won per a day\")\n //.flat(true)\n //.alpha(0.7f)//투명도\n //.icon(BitmapDescriptorFactory.fromBitmap(resizeMapIcons(item.getItem_image(),100,100)))\n );\n\n }\n// gmap.moveCamera(CameraUpdateFactory.newLatLngZoom(startingPoint,16));\n\n googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(daegu,14));\n }", "public void initializeBuildMapButton(){\n Button buildMapButton = (Button) findViewById(R.id.buildMapButton);\n buildMapButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent mapIntent = new Intent(getApplicationContext(), Map.class);\n\n ArrayList<String> destNames = new ArrayList<String>();\n double[] destLongs = new double[orderedDestinations.size()];\n double[] destLats = new double[orderedDestinations.size()];\n\n for(int i=0; i< orderedDestinations.size(); i++){\n Destination tempDest = orderedDestinations.get(i);\n destNames.add(tempDest.name);\n destLongs[i] = tempDest.longitude;\n destLats[i] = tempDest.latitude;\n }\n mapIntent.putExtra(\"dLong\", destLongs);\n mapIntent.putExtra(\"dLat\", destLats);\n mapIntent.putExtra(\"dName\", destNames);\n mapIntent.putExtra(\"polyString\", polylineEncodedString);\n startActivity(mapIntent);\n }\n\n });\n }", "@Override\n\t\t\tpublic void onLocationChanged(Location location) {\n\t\t\t\t\n\t\t\t\tmLatitude = location.getLatitude();\n\t\t\t\tmLongitude = location.getLongitude();\n\t\t\t\t\n\t\t\t\t LatLng point = new LatLng(mLatitude, mLongitude);\n\t\t\t\t\n\t\t\t\t try {\n\t\t\t\t \taddresses = geocoder.getFromLocation(location.getLatitude(), location.getLongitude(), 1);\n\t\t\t\t } catch (IOException e) {\n\t\t\t\t \t// TODO Auto-generated catch block\n\t\t\t\t \te.printStackTrace();\n\t\t\t\t }\n\t\t\t\t MarkerOptions maker= new MarkerOptions().position(point);\n\n\t\t\t\t address = addresses.get(0).getAddressLine(0);\n\t\t\t\t if(address==null)\n\t\t\t\t {\n\t\t\t\t\t maker.title(\"My Location\");\n\t\t\t\t\t\tgoogleMap.addMarker(maker);\n\t\t\t\t }\n\t\t\t\t else\n\t\t\t\t {\n\t\t\t\t\tmaker.title(\"\"+address);\n\t\t\t\t\tgoogleMap.addMarker(maker);\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t String type = mPlaceType;\n\t\t\t StringBuilder sb = new StringBuilder(\"https://maps.googleapis.com/maps/api/place/nearbysearch/json?\");\n\t\t\t sb.append(\"location=\"+mLatitude+\",\"+mLongitude);\n\t\t\t sb.append(\"&radius=1500\");\n\t\t\t sb.append(\"&types=\"+type);\n\t\t\t sb.append(\"&sensor=true\");\n\t\t\t sb.append(\"&key=AIzaSyAwZSGS1kZG7_UuqxqHH3MdO1hbwB2cjag\"); \n\t\t\t PlacesTask placesTask = new PlacesTask(); \n\t\t\t placesTask.execute(sb.toString());\n\t\t\t \n\t\t\t \n\t\t\t if(zoomm)\n\t\t\t {\n\t\t\t \t googleMap.animateCamera(CameraUpdateFactory.newCameraPosition(new CameraPosition(point, 15, 30, 0)));\n\t\t\t \t zoomm=false;\n\t\t\t }\n\t\t\t\t\n\t\t\t}", "@Override\n public void onMapReady(GoogleMap googleMap) {\n Log.i(\"MapWorks\", \"The map works\");\n mMap = googleMap;\n //center camera at her stuff\n //add pins\n // Add a marker in Sydney and move the camera\n LatLng currentLoc = new LatLng(myLat, myLong);\n mMap.addMarker(new MarkerOptions().position(currentLoc).title(\"Your Location\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(currentLoc));\n// locs[1] = new LatLng(34, 119);\n// locs[2] = new LatLng(20, 130);\n if(null != locs) {\n Log.i(\"size of message: \", \" \"+ size);\n for (int i = 0; i < size; i++) {\n LatLng l = locs[i];\n mMap.addMarker(new MarkerOptions().position(l).title(names[i] + \" is a meteor of mass \" +\n masses[i] + \" that landed here in \" + years[i]));\n }\n }\n\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.tramxe_detail);\r\n\t\t\r\n\t\tpos = getIntent().getIntExtra(\"POS_STATION_NAME\", 0);\r\n\t\t\r\n\t\tTextView txt_Huongve = (TextView) findViewById(R.id.TextView02);\r\n\t\tTextView txt_TuyenXe = (TextView) findViewById(R.id.TextTuyenXe);\r\n\t\t\r\n\t\tint iPos = getIntent().getIntExtra(\"POS_STATION_NAME\", 0);\r\n\t\tif (ParsedData.busStation.get(iPos).stationName != null) {\r\n\t\t\ttxt_TuyenXe.setText(getString(R.string.station)+\" \"+ParsedData.busStation.get(iPos).stationName);\r\n\t\t\tnameMarket = ParsedData.busStation.get(iPos).stationName;\r\n\t\t}\r\n\t\tif (ParsedData.busStation.get(iPos).StreetName != null) {\r\n\t\t\ttxt_Huongve.setText(getString(R.string.street)+\" \"+ParsedData.busStation.get(iPos).StreetName \r\n\t\t\t\t\t\t\t\t+\" - \"+getString(R.string.tuyen_qua)+\" \"+ParsedData.busStation.get(iPos).Routes);\r\n\t\t}\r\n\t\t\r\n//\t\tlat = Double.valueOf(ParsedData.busStation.get(iPos).Position_X);\r\n//\t\tlng = Double.valueOf(ParsedData.busStation.get(iPos).Position_Y);\r\n//\t\tint fromLatitude = (int)(lat * 1E6);\r\n//\t\tint fromLongitude = (int)(lng * 1E6);\r\n\t\t//Log.d(\"te\", \"la\"+fromLatitude+\"lo\"+fromLongitude);\r\n\t\tmapView = (MapView) findViewById(R.id.mapview);\r\n\t\tmapView.setBuiltInZoomControls(true);\r\n\t\t\r\n\t\tmapOverlays = mapView.getOverlays();\r\n drawable = this.getResources().getDrawable(R.drawable.pinmarker1);\r\n\r\n\t\tmPoint = new GeoPoint(lat,lng);\r\n\t\titemizedOverlay = new MyItemizedOverlay(drawable, mapView);\r\n \r\n mapView.setBuiltInZoomControls(true);\r\n\t\tmapController = mapView.getController();\r\n\t\tmapController.setZoom(16); // Zoon 1 is world view\t\t\r\n\r\n\t\tsetGPSPosition();\r\n\t\titemizedOverlay.onTap(0);\r\n\t}", "private void addMarkerOnMap(double latitude, double longitude) {\n try {\n //System.out.println(\"LAT::: \" + latitude);\n //System.out.println(\"LONG::: \" + longitude);\n mCurrentLocationLat = latitude;\n mCurrentLocationLongitude = longitude;\n if (markerOptions == null)\n markerOptions = new MarkerOptions();\n\n // Creating a LatLng object for the current / new location\n LatLng currentLatLng = new LatLng(latitude, longitude);\n markerOptions.position(currentLatLng).icon(BitmapDescriptorFactory.defaultMarker()).title(\"Current Location\");\n\n if (mapMarker != null)\n mapMarker.remove();\n\n mapMarker = mMap.addMarker(markerOptions);\n\n// if (dlBean.getAddress() != null) {\n// if (!dlBean.getAddress().equals(\"No Location Found\") && !dlBean.getAddress().equals(\"No Address returned\") && !dlBean.getAddress().equals(\"No Network To Get Address\"))\n// mapMarker.setTitle(dlBean.getAddress());\n// }\n\n // Showing the current location in Google Map by Zooming it\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(currentLatLng, 15));\n\n for (TripsheetSOList saleOrder : tripSheetSOList) {\n AgentLatLong agentLatLong = new AgentLatLong();\n double distance;\n\n // We are calculating distance b/w current location and agent location if lat long are not empty\n if (saleOrder.getmTripshetSOAgentLatitude() != null && !saleOrder.getmTripshetSOAgentLatitude().equals(\"\") && saleOrder.getmTripshetSOAgentLongitude() != null && !saleOrder.getmTripshetSOAgentLongitude().equals(\"\")) {\n double agentLatitude = Double.parseDouble(saleOrder.getmTripshetSOAgentLatitude());\n double agentLongitude = Double.parseDouble(saleOrder.getmTripshetSOAgentLongitude());\n\n distance = getDistanceBetweenLocationsInMeters(mCurrentLocationLat, mCurrentLocationLongitude, agentLatitude, agentLongitude);\n\n agentLatLong.setAgentName(saleOrder.getmTripshetSOAgentFirstName());\n agentLatLong.setLatitude(agentLatitude);\n agentLatLong.setLongitude(agentLongitude);\n agentLatLong.setDistance(distance);\n\n agentsLatLongList.add(agentLatLong);\n\n } else {\n distance = 0.0;\n }\n\n saleOrder.setDistance(Math.round(distance / 1000));\n }\n\n // Sorting by distance in descending order i.e. nearest destination\n Collections.sort(agentsLatLongList, new Comparator<AgentLatLong>() {\n @Override\n public int compare(AgentLatLong o1, AgentLatLong o2) {\n return o1.getDistance().compareTo(o2.getDistance());\n }\n });\n\n Collections.sort(tripSheetSOList, new Comparator<TripsheetSOList>() {\n @Override\n public int compare(TripsheetSOList o1, TripsheetSOList o2) {\n return o1.getDistance().compareTo(o2.getDistance());\n }\n });\n\n // to update distance value in list after getting current location details.\n if (mTripsheetSOAdapter != null) {\n mTripsheetSOAdapter.setAllSaleOrdersList(tripSheetSOList);\n mTripsheetSOAdapter.notifyDataSetChanged();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n databaseReference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n trackingLocationsList.clear();\n Iterable<DataSnapshot> tracks = dataSnapshot.child(id).getChildren();\n for (DataSnapshot info : tracks) {\n LatLong latLong = info.getValue(LatLong.class);\n trackingLocationsList.add(latLong);\n }\n int i=0;\n LatLng previous,next = null;\n for(LatLong value : trackingLocationsList){\n if(i==0){\n previous = new LatLng(Double.parseDouble(value.getLatitude()), Double.parseDouble(value.getLongitude()));\n next = new LatLng(Double.parseDouble(value.getLatitude()), Double.parseDouble(value.getLongitude()));\n mMap.addMarker(new MarkerOptions().position(previous).title(\"Marker\"+i++));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(previous));\n }\n else{\n previous=next;\n next = new LatLng(Double.parseDouble(value.getLatitude()), Double.parseDouble(value.getLongitude()));\n mMap.addMarker(new MarkerOptions().position(next).title(\"Marker\"+i++));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(next));\n }\n mMap.addPolyline(new PolylineOptions()\n .add(previous,next)\n .width(5)\n .color(Color.RED));\n }\n }\n\n\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n }", "@Override\n public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) { sydney = new LatLng(lati, longi);\n//\n// mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n//\n// latt = Double.parseDouble((String) latitxt.getText());\n// longg = Double.parseDouble((String) longtxt.getText());\n//\n//\n\n\n\n\n\n }", "void addMarkers() {\n\n Map<String, ProductDetailsCartItem> restaurantGeolocations = new HashMap<>();\n for (UserProductsItem userProductsItem : userProductsItemList) {\n for (ProductDetailsCartItem productDetailsCartItem : userProductsItem.getCartDetails()) {\n ProductDetailsCartItem restaurantDetails = new ProductDetailsCartItem(productDetailsCartItem.getRestaurantGeolocation(), productDetailsCartItem.getRestaurantAddress());\n restaurantGeolocations.put(productDetailsCartItem.getRestaurantName(), restaurantDetails);\n\n }\n }\n restaurantListServices.removeElements();\n LatLng position = new LatLng(0, 0);\n String address = \"\";\n int restaurantPosition = 0;\n for (HashMap.Entry<String, ProductDetailsCartItem> restaurantDetails : restaurantGeolocations.entrySet()) {\n try {\n String geolocation = restaurantDetails.getValue().getRestaurantGeolocation();\n address = restaurantDetails.getValue().getRestaurantAddress();\n String[] lat_long = geolocation.split(\",\");\n\n double lat = Double.parseDouble(lat_long[0]);\n double lng = Double.parseDouble(lat_long[1]);\n position = new LatLng(lat, lng);\n } catch (NumberFormatException e) {\n e.printStackTrace();\n } finally {\n MarkerOptions mo = new MarkerOptions().position(position).title(restaurantDetails.getKey());\n mo.visible(true);\n // mo.flat(true);\n mo.snippet(address);\n\n Marker marker = googleMap.addMarker(mo);\n marker.showInfoWindow();\n // polylineOptions.add(position);\n RestaurantMapItem restaurantMapItem = new RestaurantMapItem(restaurantDetails.getKey(), restaurantDetails.getValue().getRestaurantAddress(), ++restaurantPosition, position, marker);\n restaurantListServices.addRestaurant(restaurantMapItem);\n\n }\n }\n\n UiSettings settings = googleMap.getUiSettings();\n settings.setMapToolbarEnabled(true);\n settings.setMyLocationButtonEnabled(true);\n settings.setCompassEnabled(true);\n googleMap.setContentDescription(\"restaurants\");\n googleMap.setTrafficEnabled(true);\n\n\n googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(position, 12));\n\n googleMap.setOnMyLocationButtonClickListener(this);\n googleMap.setOnMyLocationClickListener(this);\n\n checkPermissions();\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n return;\n }\n googleMap.setMyLocationEnabled(true);\n\n restaurantListViewAdapter.notifyDataSetChanged();\n /*if (mMutablePolyline != null) {\n mMutablePolyline.remove();\n }\n mMutablePolyline = googleMap.addPolyline(polylineOptions);\n*/\n }", "@Override\n public void onSuccess(Location location) {\n\n if (location != null) {\n // Logic to handle location object\n\n Geocoder gcd = new Geocoder(MainActivity.this, Locale.getDefault());\n List<Address> addresses = null;\n try {\n addresses = gcd.getFromLocation(location.getLatitude(), location.getLongitude(), 1);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (addresses.size() > 0) {\n System.out.println(addresses.get(0).getLocality());\n sp.set(SPConstants.location,addresses.get(0).getLocality()+\", \"+addresses.get(0).getCountryName());\n }\n else {\n sp.set(SPConstants.location,\"\");\n\n // do your stuff\n }\n\n }\n }", "private void CallFunction() {\n\t\tmTimer.scheduleAtFixedRate(new TimerTask() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\t// What you want to do goes here\r\n\t\t\t\trunOnUiThread(new Runnable() {\r\n\t\t\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tLocation myLocation = googleMap.getMyLocation();\r\n\t\t\t\t\t\tif (myLocation != null) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t GPSTracker gpsTracker = new GPSTracker(context); \r\n\t\t\t\t\t\t\t if(gpsTracker.canGetLocation()) \r\n\t\t\t\t\t\t\t { \r\n\t\t\t\t\t\t\t\t String stringLatitude = String.valueOf(gpsTracker.latitude); \r\n\t\t\t\t\t\t\t\t String stringLongitude = String.valueOf(gpsTracker.longitude); \r\n\t\t\t\t\t\t\t\t currentlocation = new LatLng(gpsTracker.latitude,gpsTracker.longitude);\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 \r\n\t\t\t\t\t\t\t/*double dclat = googleMap.getMyLocation()\r\n\t\t\t\t\t\t\t\t\t.getLatitude();\r\n\t\t\t\t\t\t\tdouble dclon = googleMap.getMyLocation()\r\n\t\t\t\t\t\t\t\t\t.getLongitude();\r\n\t\t\t\t\t\t\tcurrentlocation = new LatLng(dclat, dclon);*/\r\n\r\n\t\t\t\t\t\t\tif (!myList.contains(currentlocation)\r\n\t\t\t\t\t\t\t\t\t&& (currentlocation != null)) {\r\n\t\t\t\t\t\t\t\tmyList.add(currentlocation);\r\n\r\n\t\t\t\t\t\t\t\tdouble lat = currentlocation.latitude;\r\n\t\t\t\t\t\t\t\tdouble lon = currentlocation.longitude;\r\n\t\t\t\t\t\t\t\tuploadarraylist.add(String.valueOf(lon) + \",\"\r\n\t\t\t\t\t\t\t\t\t\t+ String.valueOf(lat));\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (myList.size() == 1) {\r\n\t\t\t\t\t\t\t\tSystem.err.println(\"First zoom\");\r\n\t\t\t\t\t\t\t\tLatLng CurrentLocation = new LatLng(googleMap\r\n\t\t\t\t\t\t\t\t\t\t.getMyLocation().getLatitude(),\r\n\t\t\t\t\t\t\t\t\t\tgoogleMap.getMyLocation()\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getLongitude());\r\n\t\t\t\t\t\t\t\tCameraPosition cameraPosition = new CameraPosition.Builder()\r\n\t\t\t\t\t\t\t\t\t\t.target(CurrentLocation).zoom(18)\r\n\t\t\t\t\t\t\t\t\t\t.bearing(70).tilt(25).build();\r\n\t\t\t\t\t\t\t\tgoogleMap.animateCamera(CameraUpdateFactory\r\n\t\t\t\t\t\t\t\t\t\t.newCameraPosition(cameraPosition));\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (myList.size() >= 2) {\r\n\t\t\t\t\t\t\t\tdouble slat = myList.get(myList.size() - 2).latitude;\r\n\t\t\t\t\t\t\t\tdouble slon = myList.get(myList.size() - 2).longitude;\r\n\r\n\t\t\t\t\t\t\t\tdouble dlat = myList.get(myList.size() - 1).latitude;\r\n\t\t\t\t\t\t\t\tdouble dlon = myList.get(myList.size() - 1).latitude;\r\n\r\n\t\t\t\t\t\t\t\tLatLng mmarkersourcelatlng = new LatLng(myList\r\n\t\t\t\t\t\t\t\t\t\t.get(1).latitude,\r\n\t\t\t\t\t\t\t\t\t\tmyList.get(1).longitude);\r\n\t\t\t\t\t\t\t\tmsourcelatlng = new LatLng(slat, slon);\r\n\t\t\t\t\t\t\t\tmdestlatlng = new LatLng(dlat, dlon);\r\n\t\t\t\t\t\t\t\tSystem.err.println(\"myLocation:\"\r\n\t\t\t\t\t\t\t\t\t\t+ currentlocation);\r\n\t\t\t\t\t\t\t\tfor (int i = 1; i < myList.size() - 1; i++) {\r\n\t\t\t\t\t\t\t\t\tLatLng src = myList.get(i);\r\n\t\t\t\t\t\t\t\t\tLatLng dest = myList.get(i + 1);\r\n\t\t\t\t\t\t\t\t\tPolyline line = googleMap\r\n\t\t\t\t\t\t\t\t\t\t\t.addPolyline(new PolylineOptions()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// mMap is the Map Object\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.add(new LatLng(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsrc.latitude,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsrc.longitude),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew LatLng(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdest.latitude,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdest.longitude))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.width(10)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.color(R.color.pink)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.geodesic(true));\r\n\t\t\t\t\t\t\t\t\tmsmarker = googleMap\r\n\t\t\t\t\t\t\t\t\t\t\t.addMarker(new MarkerOptions()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.position(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmmarkersourcelatlng)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.title(\"Source\")\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.icon(BitmapDescriptorFactory\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.defaultMarker(BitmapDescriptorFactory.HUE_GREEN)));\r\n\r\n\t\t\t\t\t\t\t\t\tif (mdmarker != null) {\r\n\t\t\t\t\t\t\t\t\t\tmdmarker.remove();\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tmdmarker = googleMap\r\n\t\t\t\t\t\t\t\t\t\t\t.addMarker(new MarkerOptions()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.position(msourcelatlng)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.title(\"Destination\")\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.icon(BitmapDescriptorFactory\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.defaultMarker(BitmapDescriptorFactory.HUE_RED)));\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tSystem.err.println(\"Mylocation Empty\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}, 200, 5000);\r\n\r\n\t}", "private void getPlaces() {\n places = new ArrayList<Place>();\n ref = new Firebase(\"https://flickering-torch-2192.firebaseio.com/places\");\n Query likeQuery = ref.orderByChild(\"likes\").limitToLast(10);\n likeQuery.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot querySnapshot) {\n for (DataSnapshot d : querySnapshot.getChildren()) {\n ref.child(d.getKey()).addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.exists()) {\n Place p = dataSnapshot.getValue(Place.class);\n mMap.addMarker(new MarkerOptions().position(new LatLng(p.getLat(), p.getLon()))\n .title(p.getName()).snippet(p.getDescription())\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.happy_marker)));\n }\n }\n\n @Override\n public void onCancelled(FirebaseError firebaseError) {\n\n }\n });\n }\n }\n\n @Override\n public void onCancelled(FirebaseError error) {\n showToast(error.getMessage());\n }\n });\n\n LatLng bristol = new LatLng(51.4556676, -2.6266423);\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(bristol, zoomLevel));\n }", "@Override\n protected void onPostExecute(List<Parkingspot> result){\n\n if(result != null) {\n for (Parkingspot parkingspot : result) {\n Log.i(TAG, \"Address: \" + parkingspot.getAddress() + \" Location: \"\n + parkingspot.getLocation());\n\n }\n }\n }", "private void setUpPlaces(){\n db.collection(\"Tokens\").get()\n .addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\n @Override\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\n if (task.isSuccessful()) {\n for (QueryDocumentSnapshot document : task.getResult()) {\n String id = document.getId();\n String name = document.get(\"name\").toString();\n String desc = document.get(\"description\").toString();\n String[] latLng = document.get(\"latlng\").toString().split(\",\");\n double latitude = Double.parseDouble(latLng[0]);\n double longitude = Double.parseDouble(latLng[1]);\n places.add(new PlaceToken(id, name, desc, new LatLng(latitude, longitude)));\n }\n }\n }\n });\n }", "@Override\n public void onMapClick(LatLng arg0) {\n try {\n Geocoder geo = new Geocoder(MapsActivity.this, Locale.getDefault());\n List<Address> add = geo.getFromLocation(arg0.latitude, arg0.longitude, 1);\n String selectedCountry;\n if (add.size() > 0) {\n selectedCountry = add.get(0).getCountryName();\n selectedStateOrCountry = selectedCountry;\n\n //Log.d(\"country\", selectedCountry);\n //For usa go with states . All other countries - it gives the capital\n if (selectedCountry.equalsIgnoreCase(\"United States\") ||\n selectedCountry.equalsIgnoreCase(\"US\")) {\n selectedStateOrCountry = add.get(0).getAdminArea();\n }\n //Log.d(\"state\", selectedStateOrCountry);\n ConvertTextToSpeech();\n }\n } catch (Exception e) {\n //Log.e(TAG, \"Failed to initialize map\", e);\n }\n }", "@Override\n protected void onPostExecute(List<List<HashMap<String, String>>> result) {\n ArrayList<LatLng> points = null;\n PolylineOptions lineOptions = null;\n// distance = \"\";\n// duration = \"\";\n\n // Traversing through all the routes\n for(int i=0;i<result.size();i++){\n points = new ArrayList<LatLng>();\n lineOptions = new PolylineOptions();\n\n // Fetching i-th route\n List<HashMap<String, String>> path = result.get(i);\n\n // Fetching all the points in i-th route\n for(int j=0;j<path.size();j++){\n HashMap<String,String> point = path.get(j);\n\n if (j==0) {\n distance = (String)point.get(\"distance\");\n continue;\n } else if (j==1) {\n duration=(String)point.get(\"duration\");\n continue;\n }\n\n double lat = Double.parseDouble(point.get(\"lat\"));\n double lng = Double.parseDouble(point.get(\"lng\"));\n LatLng position = new LatLng(lat, lng);\n\n points.add(position);\n }\n\n // Adding all the points in the route to LineOptions\n lineOptions.addAll(points);\n lineOptions.width(7);\n lineOptions.color(Color.RED);\n\n }\n\n try{\n tvDistanceDuration.setText(\"Distance : \"+distance+\", Duration : \"+duration);\n // Drawing polyline in the Google Map for the i-th route\n line = maps.addPolyline(lineOptions);\n speakOut();\n }catch(NullPointerException e){\n e.printStackTrace();\n Toast.makeText(getBaseContext(), \"Signal GPS Kurang Akurat !\", Toast.LENGTH_SHORT).show();\n }\n\n }", "@SuppressLint(\"SetTextI18n\")\n @Override\n public void onSuccess(FetchPlaceResponse task) {\n\n\n Log.d(TAG, \"onResult: name: \" + task.getPlace().getName());\n Log.d(TAG, \"onResult: name: \" + task.getPlace().getId());\n Log.d(TAG, \"onResult: name: \" + task.getPlace().getAddress());\n\n// getValuesFromCityID(task.getPlace().getId());\n// cityGoogleId = task.getPlace().getId();\n\n\n placeId = null;\n\n// final Place place = task.getPlace();\n\n try{\n mPlace = new PlaceInfo();\n mPlace.setName( task.getPlace().getName().toString());\n// Log.d(TAG, \"onResult: name: \" + place.getName());\n placeName = task.getPlace().getName().toString();\n mPlace.setAddress( task.getPlace().getAddress().toString());\n placeAddress = task.getPlace().getAddress().toString();\n// Log.d(TAG, \"onResult: address: \" + place.getAddress());\n mPlace.setAttributions( task.getPlace().getAttributions().toString());\n//// Log.d(TAG, \"onResult: attributions: \" + place.getAttributions());\n mPlace.setId( task.getPlace().getId());\n placeId = task.getPlace().getId();\n// Log.d(TAG, \"onResult: id:\" + place.getId());\n mPlace.setLatlng( task.getPlace().getLatLng());\n// Log.d(TAG, \"onResult: latlng: \" + place.getLatLng());\n// mPlace.setRating( task.getPlace().getRating());\n// Log.d(TAG, \"onResult: rating: \" + place.getRating());\n mPlace.setPhoneNumber( task.getPlace().getPhoneNumber().toString());\n// Log.d(TAG, \"onResult: phone number: \" + place.getPhoneNumber());\n mPlace.setWebsiteUri( task.getPlace().getWebsiteUri());\n// Log.d(TAG, \"onResult: website uri: \" + place.getWebsiteUri());\n//\n// Log.d(TAG, \"onResult: place: \" + mPlace.toString());\n }catch (NullPointerException e){\n Log.e(TAG, \"onResult: NullPointerException: \" + e.getMessage() );\n }\n\n\n mPlace.setId(task.getPlace().getId());\n moveCamera(task.getPlace().getLatLng(), DEFAULT_ZOOM, task.getPlace().getName());\n\n// places.release();\n\n\n }", "private void plotGoogleMap(List<Place> list)\n {\n googleMap.clear(); // clear the map\n for (int i = 0; i < list.size(); i++) {\n MarkerOptions markerOptions = new MarkerOptions();\n Place googlePlace = list.get(i);\n String placeName = googlePlace.getName();\n double lat = Double.parseDouble(googlePlace.getLat());\n double lng = Double.parseDouble(googlePlace.getLng());\n String type = googlePlace.getType();\n //Bitmap bmImg = getBitmapFromURL(icon);\n LatLng latLng = new LatLng(lat, lng);\n markerOptions.position(latLng);\n markerOptions.title(placeName);\n markerOptions.icon(BitmapDescriptorFactory.fromBitmap(getIconHelper.decodeSampledBitmapFromResource(getResources(),getIconHelper.getIconIDFromType(type),32,32)));\n //markerOptions.icon(BitmapDescriptorFactory.fromResource(getIconHelper.getIconIDFromType(type)));\n googleMap.addMarker(markerOptions);\n }\n }", "private String format(ArrayList<Location> locs) {\n String res = \"\";\n for (Location loc : locs) {\n res += loc.getLatitude() + \"-\" + loc.getLongitude() + \";\";\n }\n return res;\n }", "public void updateGPSCoordinates(Location location) {\n longitude = location.getLongitude();\n latitude = location.getLatitude();\n LatLng userLatLng = new LatLng(latitude,longitude);\n iterator = AdParts.listIterator();\n while (iterator.hasNext()) {\n current = iterator.next();\n current.setDistance(userLatLng.distanceTo(current.getLatLng()));\n }\n Collections.sort(AdParts, new Comparator<Ad>() {\n @Override\n public int compare(Ad o1, Ad o2) {\n return Double.compare(o1.getDistance(), o2.getDistance());\n }\n });\n Log.d(\"asdf\", String.valueOf(longitude));\n mapboxMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(\n latitude, longitude), 10));\n updateTempList();\n }", "@Override\n protected void onPostExecute(List<List<HashMap<String, String>>> result) {\n ArrayList<LatLng> points;\n PolylineOptions lineOptions = null;\n\n MarkerOptions markerOptions = new MarkerOptions();\n String distance = \"\";\n String duration = \"\";\n String address = \"\";\n\n\n if (polylines.size() > 0) {\n polylines.get(0).remove();\n polylines.clear();\n }\n try {\n // Traversing through all the routes\n for (int i = 0; i < result.size(); i++) {\n points = new ArrayList<>();\n lineOptions = new PolylineOptions();\n // Fetching i-th route\n List<HashMap<String, String>> path = result.get(i);\n // Fetching all the points in i-th route\n for (int j = 0; j < path.size(); j++) {\n HashMap<String, String> point = path.get(j);\n\n if (j == 0) { // Get distance from the list\n distance = (String) point.get(\"distance\");\n continue;\n } else if (j == 1) { // Get duration from the list\n duration = (String) point.get(\"duration\");\n continue;\n }\n\n double lat = Double.parseDouble(point.get(\"lat\"));\n double lng = Double.parseDouble(point.get(\"lng\"));\n\n LatLng position = new LatLng(lat, lng);\n points.add(position);\n }\n\n\n // Adding all the points in the route to LineOptions\n lineOptions.addAll(points);\n lineOptions.width(10);\n lineOptions.color(Color.RED);\n Log.d(\"onPostExecute\", \"onPostExecute lineoptions decoded\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n Toast.makeText(Location.this, \"Please ckeck your internet connection!!\", Toast.LENGTH_SHORT).show();\n }\n\n\n //Now you can get these values from anywhere like this way:\n startAddress = DataParser.mMyAppsBundle.getString(\"startAddress\");\n // Toast.makeText(Location.this, \"Start Address..\"+startAddress, Toast.LENGTH_SHORT).show();\n source_address.setText(startAddress);\n endAddress = DataParser.mMyAppsBundle.getString(\"endAddress\");\n //Toast.makeText(Location.this, \"End Address..\"+endAddress, Toast.LENGTH_SHORT).show();\n destination_address.setText(endAddress);\n //mode = DataParser.mMyAppsBundle.getString(\"travel_mode\");\n\n /* distance_text.setVisibility(View.VISIBLE);\n duration_text.setVisibility(View.VISIBLE);*/\n\n //travelmode_text.setVisibility(View.VISIBLE);\n //empty_text.setVisibility(View.VISIBLE);\n /***********Start and End address needs to be set************/\n\n distance_text.setText(distance);\n duration_text.setText(duration);\n\n // travelmode_text.setText(mode+\" \"+\"Mode\");\n\n // tvDistanceDuration.setText(\"Distance:\"+distance + \", Duration:\"+duration);\n // Drawing polyline in the Google Map for the i-th route\n if (lineOptions != null) {\n line = mMap.addPolyline(lineOptions);\n polylines.add(line);\n } else Log.d(\"onPostExecute\", \"without Polylines drawn\");\n }", "@Override\n public void onLocationChanged(Location location) {\n latitude=String.valueOf(location.getLatitude());\n longitude= String.valueOf(location.getLongitude());\n\n System.out.println(\"asdfgh==\"+latitude);\n\n\n /* Geocoder geocoder;\n List<Address> addresses;\n geocoder = new Geocoder(SafetyActivity.this, Locale.getDefault());\n\n try {\n addresses = geocoder.getFromLocation(location.getLatitude(), location.getLongitude(), 1);\n String address = addresses.get(0).getAddressLine(0); // If any additional address line present than only, check with max available address lines by getMaxAddressLineIndex()\n String city = addresses.get(0).getLocality();\n String state = addresses.get(0).getAdminArea();\n String country = addresses.get(0).getCountryName();\n String postalCode = addresses.get(0).getPostalCode();\n String knownName = addresses.get(0).getFeatureName();\n\n System.out.println(\"addresses==\"+address);\n // Here 1 represent max location result to returned, by documents it recommended 1 to 5\n } catch (IOException e) {\n e.printStackTrace();\n }*/\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n\n Marker m = googleMap.addMarker(new MarkerOptions()\n .position(new LatLng(32.246750, 50.547618))\n .title(\"سر کوچه\"));\n m.setTag(new LatLng(32.246750, 50.547618));\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(32.246530, 50.546964);\n Marker m2 = mMap.addMarker(new MarkerOptions().position(sydney).title(\"این یک تست است\"));\n m2.setTag(new LatLng(32.246530, 50.546964));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n\n float zoomLevel = 16.0f; //This goes up to 21\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(32.246530, 50.546964), zoomLevel));\n\n Button btn = (Button) findViewById(R.id.button2);\n btn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n ArrayList points = null;\n PolylineOptions lineOptions = null;\n points = new ArrayList();\n lineOptions = new PolylineOptions();\n points.add(new LatLng(32.246530, 50.546964));\n points.add(new LatLng(32.246750, 50.547618));\n\n lineOptions.addAll(points);\n lineOptions.width(12);\n lineOptions.color(Color.RED);\n lineOptions.geodesic(false);\n\n mMap.addPolyline(lineOptions);\n }\n\n });\n mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {\n @Override\n public boolean onMarkerClick(Marker marker) {\n LatLng position = (LatLng)(marker.getTag());\n //Using position get Value from arraylist\n TextView tx = (TextView)findViewById(R.id.textView2);\n tx.setText(position.toString());\n// Toast.makeText(ct, \"this is test\" + position,Toast.LENGTH_LONG).show();\n return false;\n }\n });\n }", "@Override\n protected void onPostExecute(List<List<HashMap<String, String>>> result) {\n ArrayList points = null;\n PolylineOptions lineOptions = null;\n if (result.size() == 0) {\n // Neu khong co diem nao thi khong phai phan tich\n return;\n }\n for (int i = 0; i < result.size(); i++) {\n // Duyet danh sach tat ca cac diem\n points = new ArrayList<>();\n lineOptions = new PolylineOptions();\n // Khoi tao duong di\n List<HashMap<String, String>> path = result.get(i);\n for (int j = 0; j < path.size(); j++) {\n // Them toa do vao dien\n HashMap<String, String> point = path.get(j);\n double lat = Double.parseDouble(point.get(\"lat\"));\n double lng = Double.parseDouble(point.get(\"lng\"));\n if (color == Color.GRAY){\n // Neu la chang da di qua thi ve thut xuong duoi, sang trai\n lat -= 0.00001f;\n lng -= 0.00001f;\n } else if (color == Color.RED){\n // Neu la chang sap di qua thi ve lui len tren, sang phai\n lat += 0.00001f;\n lng += 0.00001f;\n }\n LatLng position = new LatLng(lat, lng);\n points.add(position);\n // Ve duong net dut diem bat dau\n if (j == 0) {\n drawDashedLeg (color, src, position);\n }\n // Ve duong net dut diem ket thuc\n if (j == path.size() - 1) {\n drawDashedLeg (color, position, dst);\n }\n }\n // Chinh cac thong so duong di\n lineOptions.addAll(points);\n lineOptions.width(12);\n lineOptions.color(color);\n lineOptions.geodesic(true);\n // Ve duong di tren ban do\n mMap.addPolyline(lineOptions);\n }\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n for (int i = 0; i < virtualLoc.size(); i++) {\n mMap.addMarker(new MarkerOptions().position(virtualLoc.get(i)).title(names.get(i)));\n mMap.animateCamera(CameraUpdateFactory.zoomTo(20.0f));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(virtualLoc.get(i)));\n }\n\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(virtualLoc.get(0),15));\n\n /*for (int i = 0; i < names.size(); i++) {\n //LatLng location = new LatLng(locations.get(i).latitude, locations.get(i).longitude);\n googleMap.addMarker(new MarkerOptions()\n .position(locations.get(i))\n .title(names.get(i)));\n googleMap.moveCamera(CameraUpdateFactory.newLatLng(locations.get(i)));\n }*/\n }", "private void addMarker() {\n /** Make sure that the map has been initialised **/\n LatLng lt = new LatLng(58.722599, -103.798828);\n float focus = 1f;\n if (null != mMap) {\n ArrayList<EarthQuake> earthQuakes = (ArrayList<EarthQuake>) getIntent().getSerializableExtra(\"quakeArrayList\");\n getIntent().removeExtra(\"quakeArrayList\");\n int position = getIntent().getIntExtra(\"position\", 0);\n if (earthQuakes != null) {\n if(position==0) {\n for (int i = 0; i < earthQuakes.size(); i++) {\n mMap.addMarker(\n new MarkerOptions()\n .visible(true)\n .title(\"Earthquake\")\n .snippet(earthQuakes.get(i).getDateTime() + \"\\n\" + earthQuakes.get(i).getMagnitude() + \"\\n\")\n .position(new LatLng(earthQuakes.get(i).getLat(), earthQuakes.get(i).getLon()))\n );\n }\n }else if(position>0){\n lt=new LatLng(earthQuakes.get(position).getLat(),earthQuakes.get(position).getLon());\n mMap.addMarker( new MarkerOptions()\n .visible(true)\n .title(\"Earthquake\")\n .snippet(earthQuakes.get(position).getDateTime() + \"\\n\" + earthQuakes.get(position).getMagnitude() + \"\\n\")\n .position(new LatLng(earthQuakes.get(position).getLat(), earthQuakes.get(position).getLon())));\n focus=4f;\n\n }\n }\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(lt, focus));\n\n }\n }", "public void addMapMarker() {\n if (iLat != null && !iLat.equals(\"\") && iLon != null && !iLon.equals(\"\") && iLatRef != null && !iLatRef.equals(\"\") && iLonRef != null && !iLonRef.equals(\"\")) {\n\n if (iLatRef.equals(\"N\")) {\n //North of equator, positive value\n iLatFloat = toDegrees(iLat);\n } else {\n //South of equator, negative value\n iLatFloat = 0 - toDegrees(iLat);\n }\n\n if (iLonRef.equals(\"E\")) {\n //East of prime meridian, positive value\n iLonFloat = toDegrees(iLon);\n } else {\n //West of prime meridian, negative value\n iLonFloat = 0 - toDegrees(iLon);\n }\n }\n\n final MapView gMap = (MapView) findViewById(R.id.map);\n\n if (addedMarker == false) {\n posMarker = gMap.getMap().addMarker(posMarkerOptions);\n posMarker.setTitle(getString(R.string.map_position));\n addedMarker = true;\n }\n\n posMarker.setVisible(true);\n posMarker.setPosition(new LatLng(iLatFloat, iLonFloat));\n\n GoogleMap gMapObj = gMap.getMap();\n\n gMapObj.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n posMarker.setPosition(latLng);\n displayCoordsInDegrees();\n\n //Use text view values instead of posMarker values\n iLat = toDMS(posMarker.getPosition().latitude);\n iLon = toDMS(posMarker.getPosition().longitude);\n\n if (posMarker.getPosition().latitude > 0) {\n //North of equator, positive value\n iLatFloat = toDegrees(iLat);\n iLatRef = \"N\";\n } else {\n //South of equator, negative value\n iLatFloat = 0 - toDegrees(iLat);\n iLatRef = \"S\";\n }\n\n if (posMarker.getPosition().longitude > 0) {\n //East of prime meridian, positive value\n iLonFloat = toDegrees(iLon);\n iLonRef = \"E\";\n } else {\n //West of prime meridian, negative value\n iLonFloat = 0 - toDegrees(iLon);\n iLonRef = \"W\";\n }\n }\n });\n }", "private void onSearchClick(Location loc) {\n\r\n\r\n Log.d(TAG, \"IN ONSEARCHCLICK\");\r\n\r\n String url;\r\n\r\n\r\n url = \"https://geocode-maps.yandex.ru/a1.x/?format=json&geocode=\" + loc.getLongitude() + \",\" + loc.getLatitude();\r\n\r\n Log.d(TAG, url);\r\n RequestQueue queue = Volley.newRequestQueue(this);\r\n JsonObjectRequest request = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\r\n @Override\r\n public void onResponse(JSONObject response) {\r\n Log.d(TAG, response.toString());\r\n //JSONArray jsonArray = response.getJSONObject(\"results\").getString(\"formattedString\");\r\n //String formattedAdress = response.getJSONObject(\"response\").getJSONObject(\"GeoObjectCollection\").getJSONObject(\"metaDataProperty\").getJSONObject(\"GeocoderResponseMetaData\").getString(\"request\");\r\n JSONObject country = null;\r\n JSONObject area = null;\r\n JSONObject city = null;\r\n JSONObject street = null;\r\n JSONObject houseNumber = null;\r\n try {\r\n country = response.getJSONObject(\"response\").getJSONObject(\"GeoObjectCollection\").getJSONArray(\"featureMember\").getJSONObject(0).getJSONObject(\"GeoObject\").getJSONObject(\"metaDataProperty\").getJSONObject(\"GeocoderMetaData\").getJSONObject(\"AddressDetails\").getJSONObject(\"Country\");\r\n } catch (JSONException e) {\r\n country = null;\r\n }\r\n try {\r\n area = response.getJSONObject(\"response\").getJSONObject(\"GeoObjectCollection\").getJSONArray(\"featureMember\").getJSONObject(0).getJSONObject(\"GeoObject\").getJSONObject(\"metaDataProperty\").getJSONObject(\"GeocoderMetaData\").getJSONObject(\"AddressDetails\").getJSONObject(\"Country\").getJSONObject(\"AdministrativeArea\");\r\n } catch (JSONException e) {\r\n area = null;\r\n }\r\n try {\r\n city = response.getJSONObject(\"response\").getJSONObject(\"GeoObjectCollection\").getJSONArray(\"featureMember\").getJSONObject(0).getJSONObject(\"GeoObject\").getJSONObject(\"metaDataProperty\").getJSONObject(\"GeocoderMetaData\").getJSONObject(\"AddressDetails\").getJSONObject(\"Country\").getJSONObject(\"AdministrativeArea\").getJSONObject(\"Locality\");\r\n } catch (JSONException e) {\r\n city = null;\r\n }\r\n try {\r\n street = response.getJSONObject(\"response\").getJSONObject(\"GeoObjectCollection\").getJSONArray(\"featureMember\").getJSONObject(0).getJSONObject(\"GeoObject\").getJSONObject(\"metaDataProperty\").getJSONObject(\"GeocoderMetaData\").getJSONObject(\"AddressDetails\").getJSONObject(\"Country\").getJSONObject(\"AdministrativeArea\").getJSONObject(\"Locality\").getJSONObject(\"Thoroughfare\");\r\n } catch (JSONException e) {\r\n street = null;\r\n }\r\n try {\r\n houseNumber = response.getJSONObject(\"response\").getJSONObject(\"GeoObjectCollection\").getJSONArray(\"featureMember\").getJSONObject(0).getJSONObject(\"GeoObject\").getJSONObject(\"metaDataProperty\").getJSONObject(\"GeocoderMetaData\").getJSONObject(\"AddressDetails\").getJSONObject(\"Country\").getJSONObject(\"AdministrativeArea\").getJSONObject(\"Locality\").getJSONObject(\"Thoroughfare\").getJSONObject(\"Premise\");\r\n } catch (JSONException e) {\r\n houseNumber = null;\r\n }\r\n String text = \"\";\r\n if (country != null) {\r\n// try {\r\n// text += \"Country: \" + country.getString(\"CountryName\") + \"\\n\";\r\n// } catch (JSONException e) {\r\n// }\r\n\r\n// if (area != null) {\r\n// try {\r\n// text += \"Administrative Area: \" + area.getString(\"AdministrativeAreaName\") + \"\\n\";\r\n// } catch (JSONException e) {\r\n// }\r\n\r\n if (city != null) {\r\n try {\r\n text +=city.getString(\"LocalityName\") + \" \";\r\n } catch (JSONException e) {\r\n }\r\n\r\n if (street != null) {\r\n try {\r\n text +=street.getString(\"ThoroughfareName\") + \" \";\r\n } catch (JSONException e) {\r\n }\r\n\r\n if (houseNumber != null) {\r\n try {\r\n text +=houseNumber.getString(\"PremiseNumber\");\r\n } catch (JSONException e) {\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Log.d(TAG, country);\r\n\r\n addressEditText.setText(text);\r\n getPostCode();\r\n\r\n }\r\n }, new Response.ErrorListener() {\r\n @Override\r\n public void onErrorResponse(VolleyError error) {\r\n Log.d(TAG, error.getMessage() + \" ERROR!\");\r\n }\r\n });\r\n\r\n queue.add(request);\r\n\r\n }", "private void zoomToLocationSearchResult(List<Place> places) {\n\n if(places.size()>1)\n {\n LatLngBounds.Builder builder = new LatLngBounds.Builder();\n for(Place place:places)\n {\n LatLng latLng = new LatLng(Double.parseDouble(place.getLat()), Double.parseDouble(place.getLng()));\n builder.include(latLng);\n }\n LatLngBounds bounds = builder.build();\n\n // note need to set device screen size if not the application will crash before google map is layed out\n CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngBounds(bounds,deviceWidth,deviceHeight,0);\n googleMap.animateCamera(cameraUpdate);\n }\n else if (places.size()==1)\n {\n LatLng latLng = new LatLng(Double.parseDouble(places.get(0).getLat()),Double.parseDouble(places.get(0).getLng()));\n CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(latLng, 18);\n googleMap.animateCamera(cameraUpdate);\n }\n }", "private void showBounds(){\n\n LatLngBounds.Builder boundBuilder = new LatLngBounds.Builder();\n\n\n for (int i = 0; i < points.size(); i++) {\n LatLng b_position = new LatLng(points.get(i).getLatitude(),points.get(i).getLongitude());\n boundBuilder.include(b_position);\n }\n\n LatLngBounds bounds = boundBuilder.build();\n\n int deviceWidth = getResources().getDisplayMetrics().widthPixels;\n int deviceHeight = getResources().getDisplayMetrics().heightPixels;\n int devicePadding = (int) (deviceHeight * 0.20); // offset from edges of the map 10% of screen\n\n CameraUpdate cu = CameraUpdateFactory.newLatLngBounds(bounds, deviceWidth, deviceHeight, devicePadding);\n mMap.animateCamera(cu);\n\n }", "public void onClick(View v){\n \t\ttry {\r\n \t\t\tEditText textLocation = (EditText)findViewById(R.id.edtLocation);\r\n \t\t\tmapLocation = textLocation.getText().toString();\r\n \t\t\t\r\n \t\t\tEditText textDetails = (EditText)findViewById(R.id.edtDetails);\r\n \t\t\tmapSnipper = textDetails.getText().toString();\r\n \t\t\t\r\n \t\t\t\r\n \t\t\tEditText floatLongitude = (EditText)findViewById(R.id.edtLong);\r\n \t\t\tlon = Float.valueOf(floatLongitude.getText().toString());\r\n \t\t\t\r\n \t\t\tEditText floatLatitude = (EditText)findViewById(R.id.edtLat);\r\n \t\t\tlat = Float.valueOf(floatLatitude.getText().toString());\r\n \t\t\t\r\n \t\t\t//Only Lon and Lat between -90 and 90 are allowed\r\n \t\t\tif (lat >=-90 && lat <=90 && lon >=-90 && lon <=90) {\r\n \t\t\tfinal GoogleMap mMap;\r\n \t\t\tmMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();\r\n \t\t\tmMap.addMarker(new MarkerOptions()\r\n \t\t\t .position(new LatLng(lat,lon))\r\n \t\t\t .title(mapLocation)\r\n \t\t\t .snippet(mapSnipper));\r\n \t\t\t}\r\n \t\t\telse\r\n \t\t\t{\r\n \t\t\t\tToast.makeText(getBaseContext(), \"Lonitude and Latitude can only be numbers bewteen -90 to 90 e.g 3.148\", Toast.LENGTH_LONG).show();\r\n \t\t\t}\r\n \t}\r\n \tcatch (Exception e)\r\n \t{\r\n \t\tToast.makeText(getBaseContext(), \"Lonitude and Latitude can only be numbers bewteen -90 to 90 e.g 3.148\", Toast.LENGTH_LONG).show();\r\n \t}\r\n \t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n setContentView(R.layout.activity_location_search);\n ButterKnife.bind(this);\n placeModels = new ArrayList<>();\n dataAdapter = new GooglePlacesAutocompleteAdapterNew(getApplicationContext(), placeModels);\n edEnterLocation = (EditText) findViewById(R.id.edEnterLocation);\n imgClose = (ImageView) findViewById(R.id.imgClose);\n powered_by_google = (ImageView) findViewById(R.id.powered_by_google);\n listview = (ListView) findViewById(R.id.listview);\n textviewSearchResult = (TextView) findViewById(R.id.textviewSearchResult);\n listview.setAdapter(dataAdapter);\n\n edEnterLocation.addTextChangedListener(new TextWatcher() {\n\n public void afterTextChanged(Editable s) {\n try {\n listview.setVisibility(View.VISIBLE);\n placeModels.clear();\n\n if (placeModels != null) {\n dataAdapter.notifyDataSetChanged();\n }\n progressbarSearch.setVisibility(View.VISIBLE);\n new AutocompleteApi(new LatLng(LocationHelperService.dblLatitude, LocationHelperService.dblLongitude), s.toString()).execute();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n }\n\n public void onTextChanged(final CharSequence s, int start, int before, final int count) {\n\n }\n });\n\n\n listview.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n /*String str = placeModels.get(position).getMainTitle();\n String Data = getLocationFromAddress(LocationSearchActivityNew.this, str);\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"result\", Data + \",,,\" + str);\n setResult(Activity.RESULT_OK, returnIntent);\n finish();*/\n\n String str = placeModels.get(position).getMainTitle() + \" , \" + placeModels.get(position).getSecondaryTitle();\n\n DataToPref.setSharedPreferanceData(getApplicationContext(), LaoxiConstant.SELECTED_PLACE_ID, LaoxiConstant.SELECTED_PLACE_ID_KEY, placeModels.get(position).getPlaceID() + \"\");\n String Data = getLocationFromAddress(LocationSearchActivityNew.this, str);\n\n if (Data == null || Data.equalsIgnoreCase(\"\")) {\n\n // call methood\n GetLocation(str);\n } else {\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"result\", Data + \",,,\" + str);\n setResult(Activity.RESULT_OK, returnIntent);\n finish();\n }\n\n\n }\n });\n\n\n imgClose.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n finish();\n }\n });\n\n }", "private void markerForGeofence(LatLng latLng)\n {\n Log.e(\"TAGtag\", \"markerForGeofence(\" + latLng + \")\");\n String title = latLng.latitude + \", \" + latLng.longitude;\n Log.e(\"TAGtag\", \"\"+title);\n // Define marker options\n MarkerOptions markerOptions = new MarkerOptions()\n .position(latLng)\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN))\n .title(title);\n if ( mMap!=null )\n {\n // Remove last geoFenceMarker\n if (geoFenceMarker != null)\n {\n geoFenceMarker.remove();\n }\n\n\n geoFenceMarker = mMap.addMarker(markerOptions);\n //geoFenceMarker = mMap.addMarker(markerOptions);\n }\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.list_layout, container, false);\n\n //the array list that will be presented on the screen\n final ArrayList<Place> placesToVisit = new ArrayList<Place>();\n placesToVisit.add(new Place(\"Yunque Rain Forest\",\"Lagerst Rainforest in the Caribbean\",\n R.drawable.yunque9, \"geo:18.352236, -65.800307\"));\n placesToVisit.add(new Place(\"Bioluminicent Lagoon\",\"One of the 5 bioluminescent places in the world.\",\n R.drawable.bioluminesent_bay, \"geo:18.376533, -65.623541\"));\n placesToVisit.add(new Place(\"Dry Forest\",\"Small forest filled with succulent plant and trees.\",\n R.drawable.bosque_seco, \"geo:17.983777, -66.869323\"));\n placesToVisit.add(new Place(\"Flamenco Beach\",\"The 3rd most beutifull beach in the world,\",\n R.drawable.flamenco_beach, \"geo:18.328684, -65.318981\"));\n placesToVisit.add(new Place(\"Window Cave\",\"Scenic natural cave on a limestone cliff\",\n R.drawable.cuevaentana,\"geo:18.374817, -66.692269\"));\n placesToVisit.add(new Place(\"Tamarindo Beach\",\"Crystal clear water beach great for snorkeling.\",\n R.drawable.tamarindo,\"geo:18.318457, -65.317815\"));\n\n\n\n PlaceAdapter adapter = new PlaceAdapter(getActivity(), placesToVisit, R.color.secret_color);\n ListView listView = (ListView) rootView.findViewById(R.id.list);\n\n listView.setAdapter(adapter);\n //this method will receive the position of the item the user selected and open maps showing the coordinates from the place\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n Place myPlace = placesToVisit.get(i);\n Uri getPlaceLocation = Uri.parse(myPlace.getLocation());\n Intent locationIntent = new Intent(Intent.ACTION_VIEW, getPlaceLocation);\n startActivity(locationIntent);\n }\n\n });\n\n return rootView;\n }", "public void loadPlaces(Map<String, String> queryMap){\n showProgressBar();\n\n call = foursquareApiService.getPlaces(queryMap);\n call.enqueue(new Callback<SearchResult>() {\n @Override\n public void onResponse(Call<SearchResult> call, Response<SearchResult> response) {\n hideProgressBar();\n\n ResponseList rl = response.body().getResponseList();\n placeArrayList = (ArrayList<Place>) rl.getPlaceList();\n placesListAdapter = new PlacesListAdapter(MainActivity.this,R.layout.activity_main_places_list_item,placeArrayList, MainActivity.this);\n recyclerViewPlacesList.setLayoutManager(new LinearLayoutManager(MainActivity.this));\n recyclerViewPlacesList.setAdapter(placesListAdapter);\n placesListAdapter.notifyDataSetChanged();\n\n Log.d(\"Array Size\", String.valueOf( placeArrayList.size()));\n Log.d(\"Success\",String.valueOf(response.code()));\n }\n\n @Override\n public void onFailure(Call<SearchResult> call, Throwable t) {\n Log.d(\"Fail\", \"Fail\");\n }\n });\n }", "@Override\n public void onLocationChanged(Location location) {\n Toast.makeText(MapsActivity.this, \"\" + location, Toast.LENGTH_SHORT).show();\n //mMap.clear();\n// longi = location.getLongitude();\n// lat = location.getLatitude();\n//\n// mLastLocation.set(location);\n\n\n mLastLocation = location;\n longi = mLastLocation.getLongitude();\n lat = mLastLocation.getLatitude();\n LatLng lt = new LatLng(lat,longi);\n Log.d(\"cxcxcx\",longi+\"\");\n mMap.addMarker(new MarkerOptions().position(lt).title(longi + \"\" + lat));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(lt, 8));\n\n\n }", "public CompletableFuture<String> constructGeoString(CompletableFuture<String []> latLongs){\n\n return CompletableFuture.supplyAsync(() ->{\n String [] positions= null;\n String geoLocation=null;\n try{\n positions=latLongs.get();\n geoLocation = \"geocode:\"+positions[0]+\",\"+positions[1]+\",50km\";\n }\n catch (Exception e){\n e.printStackTrace();\n }\n return geoLocation;\n });\n\n\n }", "@Override\r\n public void onPlaceSelected(Place place) {\n Log.i(TAG, \"Place: \" + place.getName());\r\n city1=place.getName().toString();\r\n Log.i(TAG,place.getAddress().toString());\r\n String a[]=place.getAddress().toString().split(\",\");\r\n int len=a.length;\r\n String h=city1;\r\n if(len>=3) {\r\n h = a[len - 3];\r\n }\r\n city1=h;\r\n\r\n }", "private List<LatLng> getCoordinates() {\n\n List<LatLng> list = new ArrayList<>();\n SharedPreferences.Editor editor = walkingSharedPreferences.edit();\n int size = walkingSharedPreferences.getInt(user.getUsername(), 0);\n for(int actual = 0; actual < size; actual++) {\n String pos = walkingSharedPreferences.getString(user.getUsername() + \"_\" + actual, \"\");\n editor.remove(user.getUsername() + \"_\" + actual);\n String[] splitPos = pos.split(\" \");\n LatLng latLng = new LatLng(Double.parseDouble(splitPos[LAT]), Double.parseDouble(splitPos[LNG]));\n list.add(latLng);\n }\n editor.remove(user.getUsername());\n editor.apply();\n return list;\n\n }", "@Override\n protected void onPostExecute(Void result) {\n for(twitter4j.Status tweet : newTweets){\n\n GeoLocation geoLoc = tweet.getGeoLocation();\n if(geoLoc!=null) {\n LatLng loc = new LatLng(geoLoc.getLatitude(), geoLoc.getLongitude());\n Marker marker = mMap.addMarker(new MarkerOptions()\n .snippet(tweet.getText()).\n position(loc).title(\"@\" +tweet.getUser().getScreenName()));\n tweetsList.put(marker.getId(),tweet);\n markersList.add(marker);\n }\n\n }\n\n newTweets.clear();\n\n super.onPostExecute(result);\n }", "@Override\n public void onLocationChanged(Location location) {\n double latitude = location.getLatitude();\n double longitude = location.getLongitude();\n ArrayList<LatLng> list = new ArrayList<LatLng>();\n //get the location name from latitude and longitude\n Geocoder geocoder = new Geocoder(getApplicationContext());\n /*CameraUpdate center =\n CameraUpdateFactory.newLatLng(new LatLng(10.339012, 123.911545));\n CameraUpdate zoom = CameraUpdateFactory.zoomTo(18);\n\n mMap.moveCamera(center);\n mMap.animateCamera(zoom);*/\n try {\n List<Address> addresses =\n geocoder.getFromLocation(latitude, longitude, 1);\n String result = addresses.get(0).getSubLocality() + \":\";\n result += addresses.get(0).getLocality() + \":\";\n result += addresses.get(0).getCountryCode();\n latLng = new LatLng(latitude, longitude);\n pos=latLng;\n //Marker.remove();\n mMap.clear();\n\n points.add(latLng); //added\n\n if(active)\n {\n latitLong(pos);\n }\n redrawLine(); //added\n\n /*Polyline line = mMap.addPolysline(new PolylineOptions()\n .add(pos)\n .width(5)\n .color(Color.RED));*/\n\n //===============memarker\n /*mMap.addMarker(new MarkerOptions().position(latLng).title(result).icon(BitmapDescriptorFactory\n .fromResource(R.drawable.memarker)));*/\n\n\n\n //list.add(latLng);\n //drawPolyLineOnMap(list);\n /* PolylineOptions options = new PolylineOptions().width(5).color(Color.BLUE).geodesic(true);\n for (int z = 0; z < list.size(); z++) {\n LatLng point = list.get(z);\n options.add(point);\n }\n polyline = mMap.addPolyline(options);*/\n\n //polylines.setPoints(list);\n\n //PolylineOptions polylines = new PolylineOptions().width(5).color(Color.BLUE).geodesic(true).add(list);\n //mMap.setOnPolylineClickListener(this);\n //=====================\n /*polyline = new PolylineOptions();\n polyline.color(ORANGE);\n polyline.width(5);\n list.add(latLng);\n polyline.addAll(list);\n //mMap.addPolyline(polyline);\n mMap.addPolyline(polyline);*/\n //=====================\n\n\n //==========\n profileMarker(latLng);\n //===============\n //mMap.setMaxZoomPreference(18);\n\n\n //Toast.makeText(getBaseContext(),\n //range+\"\", Toast.LENGTH_LONG).show();\n CircleOptions circleOptions = new CircleOptions()\n .center(latLng)\n .radius(range)\n .strokeWidth(2)\n .strokeColor(ORANGE)\n .fillColor(Color.parseColor(\"#500084d3\")); //\n // Supported formats are: #RRGGBB #AARRGGBB\n // #AA is the alpha, or amount of transparency\n\n mMap.addCircle(circleOptions);\n\n //----------setMapUI();\n //=============//mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n\n //mMap.moveCamera(CameraUpdateFactory.newLatLngBounds(latLng, 0));\n //====================================================rotunda\n\n\n /*Location mepzLocation = new Location(\"mepzlocation\");\n mepzLocation.setLatitude(10.348958);//10.348958, 123.903147\n mepzLocation.setLongitude(123.903147);\n mepszone = mMap.addMarker(new MarkerOptions()\n .position(TWENTYKPH)\n .title(\"20KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.twentyk)));\n\n mepszone.setTag(0);\n\n Location paseoLocation = new Location(\"paseolocation\");\n paseoLocation.setLatitude(10.345268);\n paseoLocation.setLongitude(123.907426);\n paseostr = mMap.addMarker(new MarkerOptions()\n .position(THIRTYKPH)\n .title(\"30KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.thirtyk)));\n\n paseostr.setTag(0);\n*/ if(!explore)\n {\n resetCamera();\n }\n\n //==============================\n final LatLng baniladFOURTYKPH = new LatLng(baniladlat, baniladlong);//10.339012, 123.911545//baniladlat, baniladlong\n Marker baniladstr;\n\n Location baniladLocation = new Location(\"baniladlocation\");\n baniladLocation.setLatitude(baniladlat);\n baniladLocation.setLongitude(baniladlong);\n\n baniladstr = mMap.addMarker(new MarkerOptions()\n .position(baniladFOURTYKPH)\n .title(baniladLimit+\"KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitch(baniladLimit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.fourtyk)));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n baniladstr.setTag(0);\n\n //=================================\n final LatLng banilad2FOURTYKPH = new LatLng(banilad2lat, banilad2long);//10.339012, 123.911545//baniladlat, baniladlong\n //Marker banilad2str;\n\n Location banilad2Location = new Location(\"banilad2location\");\n banilad2Location.setLatitude(banilad2lat);\n banilad2Location.setLongitude(banilad2long);\n\n banilad2str = mMap.addMarker(new MarkerOptions()\n .position(banilad2FOURTYKPH)\n .title(banilad2Limit+\"KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitch(banilad2Limit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n banilad2str.setTag(0);\n\n //=================================\n final LatLng maboloFOURTYKPH = new LatLng(mabololat, mabololong);//10.339012, 123.911545//baniladlat, baniladlong\n Marker mabolostr;\n\n Location maboloLocation = new Location(\"mabololocation\");\n maboloLocation.setLatitude(mabololat);\n maboloLocation.setLongitude(mabololong);\n\n mabolostr = mMap.addMarker(new MarkerOptions()\n .position(maboloFOURTYKPH)\n .title(maboloLimit+\"KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitch(maboloLimit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n mabolostr.setTag(0);\n //=================================\n final LatLng mabolo2TWENTYKPH = new LatLng(mabolo2lat, mabolo2long);//10.339012, 123.911545//baniladlat, baniladlong\n Marker mabolo2str;\n\n Location mabolo2Location = new Location(\"mabolo2location\");\n mabolo2Location.setLatitude(mabolo2lat);\n mabolo2Location.setLongitude(mabolo2long);\n\n mabolo2str = mMap.addMarker(new MarkerOptions()\n .position(mabolo2TWENTYKPH)\n .title(mabolo2Limit+\"KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitch(mabolo2Limit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n mabolo2str.setTag(0);\n //=================================\n final LatLng smFOURTYKPH = new LatLng(smlat, smlong);//10.339012, 123.911545//baniladlat, baniladlong\n Marker smstr;\n\n Location smLocation = new Location(\"smlocation\");\n smLocation.setLatitude(smlat);\n smLocation.setLongitude(smlong);\n\n smstr = mMap.addMarker(new MarkerOptions()\n .position(smFOURTYKPH)\n .title(smLimit+\"KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitch(smLimit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n smstr.setTag(0);\n //=================================\n final LatLng sm2FOURTYKPH = new LatLng(sm2lat, sm2long);//10.339012, 123.911545//baniladlat, baniladlong\n Marker sm2str;\n\n Location sm2Location = new Location(\"sm2location\");\n sm2Location.setLatitude(sm2lat);\n sm2Location.setLongitude(sm2long);\n\n sm2str = mMap.addMarker(new MarkerOptions()\n .position(sm2FOURTYKPH)\n .title(sm2Limit+\"KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitch(sm2Limit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n sm2str.setTag(0);\n //=================================\n final LatLng sm3FOURTYKPH = new LatLng(sm3lat, sm3long);//10.339012, 123.911545//baniladlat, baniladlong\n Marker sm3str;\n\n Location sm3Location = new Location(\"sm3location\");\n sm3Location.setLatitude(sm3lat);\n sm3Location.setLongitude(sm3long);\n\n sm3str = mMap.addMarker(new MarkerOptions()\n .position(sm3FOURTYKPH)\n .title(sm3Limit+\"KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitch(sm3Limit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n sm3str.setTag(0);\n //=================================\n final LatLng sergioFOURTYKPH = new LatLng(sergiolat, sergiolong);//10.339012, 123.911545//baniladlat, baniladlong\n Marker sergiostr;\n\n Location sergioLocation = new Location(\"sergiolocation\");\n sergioLocation.setLatitude(sergiolat);\n sergioLocation.setLongitude(sergiolong);\n\n sergiostr = mMap.addMarker(new MarkerOptions()\n .position(sergioFOURTYKPH)\n .title(sergioLimit+\"KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitch(sergioLimit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n sergiostr.setTag(0);\n //=================================\n final LatLng sergio2FOURTYKPH = new LatLng(sergio2lat, sergio2long);//10.339012, 123.911545//baniladlat, baniladlong\n Marker sergio2str;\n\n Location sergio2Location = new Location(\"sergio2location\");\n sergio2Location.setLatitude(sergio2lat);\n sergio2Location.setLongitude(sergio2long);\n\n sergio2str = mMap.addMarker(new MarkerOptions()\n .position(sergio2FOURTYKPH)\n .title(sergio2Limit+\"KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitch(sergio2Limit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n sergio2str.setTag(0);\n //=================================\n final LatLng tunnelMinSixty = new LatLng(tunnellat, tunnellong);\n Marker tunnelstr;\n\n Location tunnelLocation = new Location(\"tunnellocation\");\n tunnelLocation.setLatitude(tunnellat);\n tunnelLocation.setLongitude(tunnellong);\n\n tunnelstr = mMap.addMarker(new MarkerOptions()\n .position(tunnelMinSixty)\n .title(tunnelLimit+\"KPH\")\n .snippet(\"minimum \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitchGreen(tunnelLimit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n tunnelstr.setTag(0);\n //=================================\n final LatLng tunnel2MinSixty = new LatLng(tunnel2lat, tunnel2long);\n Marker tunnel2str;\n\n Location tunnel2Location = new Location(\"tunnel2location\");\n tunnel2Location.setLatitude(tunnel2lat);\n tunnel2Location.setLongitude(tunnel2long);\n\n tunnel2str = mMap.addMarker(new MarkerOptions()\n .position(tunnel2MinSixty)\n .title(tunnel2Limit+\"KPH\")\n .snippet(\"minimum \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitchGreen(tunnel2Limit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n tunnel2str.setTag(0);\n //=================================\n final LatLng cscrMinSixty = new LatLng(cscrlat, cscrlong);\n Marker cscrstr;\n\n Location cscrLocation = new Location(\"cscrlocation\");\n cscrLocation.setLatitude(cscrlat);\n cscrLocation.setLongitude(cscrlong);\n\n cscrstr = mMap.addMarker(new MarkerOptions()\n .position(cscrMinSixty)\n .title(cscrLimit+\"KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitch(cscrLimit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n cscrstr.setTag(0);\n //=================================\n final LatLng cscr2MinSixty = new LatLng(cscr2lat, cscr2long);\n Marker cscr2str;\n\n Location cscr2Location = new Location(\"cscr2location\");\n cscr2Location.setLatitude(cscr2lat);\n cscr2Location.setLongitude(cscr2long);\n\n cscr2str = mMap.addMarker(new MarkerOptions()\n .position(cscr2MinSixty)\n .title(cscr2Limit+\"KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitch(cscr2Limit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n cscr2str.setTag(0);\n //=================================\n final LatLng cscr3MinSixty = new LatLng(cscr3lat, cscr3long);\n Marker cscr3str;\n\n Location cscr3Location = new Location(\"cscr3location\");\n cscr3Location.setLatitude(cscr3lat);\n cscr3Location.setLongitude(cscr3long);\n\n cscr3str = mMap.addMarker(new MarkerOptions()\n .position(cscr3MinSixty)\n .title(cscr3Limit+\"KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitch(cscr3Limit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n cscr3str.setTag(0);\n //=================================\n final LatLng cscr4MinSixty = new LatLng(cscr4lat, cscr4long);\n Marker cscr4str;\n\n Location cscr4Location = new Location(\"cscr4location\");\n cscr4Location.setLatitude(cscr4lat);\n cscr4Location.setLongitude(cscr4long);\n\n cscr4str = mMap.addMarker(new MarkerOptions()\n .position(cscr4MinSixty)\n .title(cscr4Limit+\"KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitch(cscr4Limit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n cscr4str.setTag(0);\n //=================================\n final LatLng cscr5MinSixty = new LatLng(cscr5lat, cscr5long);\n Marker cscr5str;\n\n Location cscr5Location = new Location(\"cscr5location\");\n cscr5Location.setLatitude(cscr5lat);\n cscr5Location.setLongitude(cscr5long);\n\n cscr5str = mMap.addMarker(new MarkerOptions()\n .position(cscr5MinSixty)\n .title(cscr5Limit+\"KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitch(cscr5Limit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n cscr5str.setTag(0);\n //=================================\n final LatLng rizalMinSixty = new LatLng(rizallat, rizallong);\n Marker rizalstr;\n\n Location rizalLocation = new Location(\"rizallocation\");\n rizalLocation.setLatitude(rizallat);\n rizalLocation.setLongitude(rizallong);\n\n rizalstr = mMap.addMarker(new MarkerOptions()\n .position(rizalMinSixty)\n .title(rizalLimit+\"KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitch(rizalLimit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n rizalstr.setTag(0);\n\n\n /*if (location.distanceTo(paseoLocation) < range) {\n minimum=false;\n marker=paseostr;\n //Toast.makeText(MapView.this, \"Max speed is 30KPH\", Toast.LENGTH_LONG).show();\n limit.setText(baniladLimit);\n paseostr.showInfoWindow();\n mLastShownInfoWindowMarker = paseostr;\n success=false;\n click(paseostr);\n } else if (location.distanceTo(mepzLocation) < range) {\n minimum=false;\n //Toast.makeText(MapView.this, \"Paghinay sa pangpang!...\", Toast.LENGTH_LONG).show();\n limit.setText(\"20\");\n marker=mepszone;\n mepszone.showInfoWindow();\n mLastShownInfoWindowMarker = mepszone;\n success=false;\n click(mepszone);\n } else*/\n if (location.distanceTo(baniladLocation) < range) {\n minimum=false;\n //Toast.makeText(MapView.this, \"You are in banilad...\", Toast.LENGTH_LONG).show();\n success=false;\n limit.setText(baniladLimit);\n marker=baniladstr;\n baniladstr.showInfoWindow();\n mLastShownInfoWindowMarker =baniladstr;\n click(baniladstr);\n } else if (location.distanceTo(banilad2Location) < range) {\n minimum=false;\n //Toast.makeText(MapView.this, \"You are in banilad...\", Toast.LENGTH_LONG).show();\n limit.setText(banilad2Limit);\n success=false;\n marker=banilad2str;\n banilad2str.showInfoWindow();\n mLastShownInfoWindowMarker = banilad2str;\n click(banilad2str);\n } else if (location.distanceTo(maboloLocation) < range) {\n minimum=false;\n //Toast.makeText(MapView.this, \"You are in banilad...\", Toast.LENGTH_LONG).show();\n limit.setText(maboloLimit);\n success=false;\n marker= mabolostr;\n mabolostr.showInfoWindow();\n mLastShownInfoWindowMarker = mabolostr;\n click(mabolostr);\n } else if (location.distanceTo(mabolo2Location) < range) {\n minimum=false;\n //Toast.makeText(MapView.this, \"You are in banilad...\", Toast.LENGTH_LONG).show();\n limit.setText(mabolo2Limit);\n success=false;\n marker= mabolo2str;\n mabolo2str.showInfoWindow();\n mLastShownInfoWindowMarker = mabolo2str;\n click(mabolo2str);\n } else if (location.distanceTo(smLocation) < range) {\n minimum=false;\n //Toast.makeText(MapView.this, \"You are in banilad...\", Toast.LENGTH_LONG).show();\n limit.setText(smLimit);\n success=false;\n marker= smstr;\n smstr.showInfoWindow();\n mLastShownInfoWindowMarker = smstr;\n click(smstr);\n } else if (location.distanceTo(sm2Location) < range) {\n //Toast.makeText(MapView.this, \"You are in banilad...\", Toast.LENGTH_LONG).show();\n limit.setText(sm2Limit);\n success=false;\n marker= sm2str;\n sm2str.showInfoWindow();\n mLastShownInfoWindowMarker = sm2str;\n click(sm2str);\n } else if (location.distanceTo(sm3Location) < range) {\n minimum=false;\n //Toast.makeText(MapView.this, \"You are in banilad...\", Toast.LENGTH_LONG).show();\n limit.setText(sm3Limit);\n success=false;\n marker= sm3str;\n sm3str.showInfoWindow();\n mLastShownInfoWindowMarker = sm3str;\n click(sm3str);\n } else if (location.distanceTo(sergioLocation) < range) {\n minimum=false;\n //Toast.makeText(MapView.this, \"You are in banilad...\", Toast.LENGTH_LONG).show();\n limit.setText(sergioLimit);\n success=false;\n marker= sergiostr;\n sergiostr.showInfoWindow();\n mLastShownInfoWindowMarker = sergiostr;\n click(sergiostr);\n } else if (location.distanceTo(sergio2Location) < range) {\n minimum=false;\n //Toast.makeText(MapView.this, \"You are in banilad...\", Toast.LENGTH_LONG).show();\n limit.setText(sergio2Limit);\n success=false;\n marker= sergio2str;\n sergio2str.showInfoWindow();\n mLastShownInfoWindowMarker = sergio2str;\n click(sergio2str);\n } else if (location.distanceTo(tunnelLocation) < range) {\n minimum=true;\n limit.setText(tunnelLimit);\n success=false;\n marker= tunnelstr;\n tunnelstr.showInfoWindow();\n mLastShownInfoWindowMarker = tunnelstr;\n click(tunnelstr);\n //if below 60kph\n if (location.distanceTo(tunnelLocation) < range)\n {\n String speedo = blueKph.getText().toString();\n speed = Integer.parseInt(speedo);\n String limitation = limit.getText().toString();\n speedlimit = Integer.parseInt(limitation);\n if(speed<speedlimit){\n /*LayoutInflater inflater = getLayoutInflater();\n View layout = inflater.inflate(R.layout.toast,\n (ViewGroup) findViewById(R.id.toast_layout_root));\n\n ImageView image = (ImageView) layout.findViewById(R.id.image);\n image.setImageResource(R.drawable.sixtygreen);\n TextView text = (TextView) layout.findViewById(R.id.text);\n text.setText(\"Speed must be minimum of 60KPH!\");\n\n Toast toast = new Toast(getApplicationContext());\n toast.setGravity(Gravity.CENTER_VERTICAL, 0, 0);\n toast.setDuration(Toast.LENGTH_LONG);\n toast.setView(layout);\n toast.show();*/\n\n Context context=getApplicationContext();\n LayoutInflater inflater=getLayoutInflater();\n\n View customToastroot =inflater.inflate(R.layout.toast, null);\n\n Toast customtoast=new Toast(context);\n\n customtoast.setView(customToastroot);\n customtoast.setGravity(Gravity.CENTER_HORIZONTAL | Gravity.CENTER_VERTICAL,0, 0);\n customtoast.setDuration(Toast.LENGTH_LONG);\n customtoast.show();\n }\n }\n } else if (location.distanceTo(tunnel2Location) < range) {\n minimum=true;\n limit.setText(tunnel2Limit);\n success=false;\n marker= tunnel2str;\n tunnel2str.showInfoWindow();\n mLastShownInfoWindowMarker = tunnel2str;\n click(tunnel2str);\n //if below 60kph\n if (location.distanceTo(tunnel2Location) < range)\n {\n String speedo = blueKph.getText().toString();\n speed = Integer.parseInt(speedo);\n String limitation = limit.getText().toString();\n speedlimit = Integer.parseInt(limitation);\n if(speed<speedlimit)\n {\n /*LayoutInflater inflater = getLayoutInflater();\n View layout = inflater.inflate(R.layout.toast,\n (ViewGroup) findViewById(R.id.toast_layout_root));\n\n ImageView image = (ImageView) layout.findViewById(R.id.image);\n image.setImageResource(R.drawable.sixtygreen);\n TextView text = (TextView) layout.findViewById(R.id.text);\n text.setText(\"Speed must be minimum of 60KPH!\");\n\n Toast toast = new Toast(getApplicationContext());\n toast.setGravity(Gravity.CENTER_VERTICAL, 0, 0);\n toast.setDuration(Toast.LENGTH_LONG);\n toast.setView(layout);\n toast.show();*/\n\n Context context=getApplicationContext();\n LayoutInflater inflater=getLayoutInflater();\n\n View customToastroot =inflater.inflate(R.layout.toast, null);\n\n Toast customtoast=new Toast(context);\n\n customtoast.setView(customToastroot);\n customtoast.setGravity(Gravity.CENTER_HORIZONTAL | Gravity.CENTER_VERTICAL,0, 0);\n customtoast.setDuration(Toast.LENGTH_LONG);\n customtoast.show();\n }\n }\n } else if (location.distanceTo(cscrLocation) < range) {\n minimum=false;\n //Toast.makeText(MapView.this, \"Minimum of 60kph speed.\", Toast.LENGTH_LONG).show();\n limit.setText(cscrLimit);\n success=false;\n marker= cscrstr;\n cscrstr.showInfoWindow();\n mLastShownInfoWindowMarker = cscrstr;\n click(cscrstr);\n } else if (location.distanceTo(cscr2Location) < range) {\n minimum=false;\n //Toast.makeText(MapView.this, \"Minimum of 60kph speed.\", Toast.LENGTH_LONG).show();\n limit.setText(cscr2Limit);\n success=false;\n marker= cscr2str;\n cscr2str.showInfoWindow();\n mLastShownInfoWindowMarker = cscr2str;\n click(cscr2str);\n } else if (location.distanceTo(cscr3Location) < range) {\n minimum=false;\n //Toast.makeText(MapView.this, \"Minimum of 60kph speed.\", Toast.LENGTH_LONG).show();\n limit.setText(cscr3Limit);\n success=false;\n marker= cscr3str;\n cscr3str.showInfoWindow();\n mLastShownInfoWindowMarker = cscr3str;\n click(cscr3str);\n } else if (location.distanceTo(cscr4Location) < range) {\n minimum=false;\n //Toast.makeText(MapView.this, \"Minimum of 60kph speed.\", Toast.LENGTH_LONG).show();\n limit.setText(cscr4Limit);\n success=false;\n marker= cscr4str;\n cscr4str.showInfoWindow();\n mLastShownInfoWindowMarker = cscr4str;\n click(cscr4str);\n } else if (location.distanceTo(cscr5Location) < range) {\n minimum=false;\n //Toast.makeText(MapView.this, \"Minimum of 60kph speed.\", Toast.LENGTH_LONG).show();\n limit.setText(cscr5Limit);\n success=false;\n marker= cscr5str;\n cscr5str.showInfoWindow();\n mLastShownInfoWindowMarker = cscr5str;\n click(cscr5str);\n } else if (location.distanceTo(rizalLocation) < range) {\n minimum=false;\n //Toast.makeText(MapView.this, \"Minimum of 60kph speed.\", Toast.LENGTH_LONG).show();\n limit.setText(rizalLimit);\n success=false;\n marker= rizalstr;\n rizalstr.showInfoWindow();\n mLastShownInfoWindowMarker = rizalstr;\n click(rizalstr);\n } else {\n minimum=false;\n //successs=false;\n /*marker= driver_marker;\n //successs=false;\n while (!successs) {\n try {\n Timer timer = new Timer();\n TimerTask updateProfile = new CustomTimerTask(MapView.this);\n timer.scheduleAtFixedRate(updateProfile, 10,5000);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n successs = true;\n }*/\n //Toast.makeText(MapView.this, \"NONE SPEEDLIMIT ZONE...\", Toast.LENGTH_LONG).show();\n //limit.setText(\"0\");\n if (mLastShownInfoWindowMarker != null && mLastShownInfoWindowMarker.isInfoWindowShown()) {\n mLastShownInfoWindowMarker.hideInfoWindow();\n }\n }\n\n }catch (java.lang.SecurityException ex) {\n Log.i(TAG, \"fail to request location update, ignore\", ex);\n } catch (IllegalArgumentException ex) {\n Log.d(TAG, \"gps provider does not exist \" + ex.getMessage());\n } catch (IOException e) {\n e.printStackTrace();\n }\n while (!success) {\n try {\n fab.setEnabled(true);\n fab2.setEnabled(true);\n //progressDialogs.show();\n /*final Animation myAnim = AnimationUtils.loadAnimation(MapView.this, R.anim.bounce);\n // Use bounce interpolator with amplitude 0.2 and frequency 20\n MyBounceInterpolator interpolator = new MyBounceInterpolator(0.2, 20);\n myAnim.setInterpolator(interpolator);\n\n fab.startAnimation(myAnim);*/\n resetCamera();\n success = true;\n mProgressBar.setVisibility(View.GONE);\n load.setVisibility(View.GONE);\n /* click(paseostr);\n click(mepszone);\n click(baniladstr);\n click(banilad2str);\n click(mabolostr);\n click(mabolo2str);\n click(smstr);\n click(sm2str);\n click(sm3str);\n click(sergiostr);\n click(sergio2str);\n click(tunnelstr);\n click(tunnel2str);\n click(cscrstr);\n click(cscr2str);\n click(cscr3str);\n click(cscr4str);\n click(cscr5str);\n click(rizalstr);*/\n //progressDialogs.dismiss();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n\n // Add polylines to the map.\n // Polylines are useful to show a route or some other connection between points.\n Polyline polyline1;\n// polyline1 = googleMap.addPolyline(new PolylineOptions()\n// .clickable(true)\n// .add(\n// new LatLng(5.7070, 6.7909),\n// new LatLng(5.7360, 6.8834),\n// new LatLng(6.1111, 6.5421)\n// ));\n PolylineOptions polylineOptions = new PolylineOptions();\n// for (po : init){\n polylineOptions.add(new LatLng(6.572997708, 3.319332056)).clickable(true);\n// polylineOptions.add(new LatLng(5.7070, 6.7909)).clickable(true);\n// polylineOptions.add(new LatLng(5.7360, 6.8834)).clickable(true);\n// polylineOptions.add(new LatLng(6.1111, 6.5421)).clickable(true);\n polylineOptions.add(new LatLng(4.9690, 8.3470)).clickable(true);\n\n// }\n\n polyline1 = googleMap.addPolyline(polylineOptions);\n\n// List<String> ll = new ArrayList<>();\n// ll.add(\"5.7070, 6.7909\");\n// ll.add(\"5.7360, 6.8834\");\n// ll.add(\"6.1111, 6.5421\");\n// mSydney = mMap.addMarker(new MarkerOptions()\n// .position(SYDNEY)\n// .title(\"Sydney\");\n\n // Store a data object with the polyline, used here to indicate an arbitrary type.\n polyline1.setTag(\"A\");\n\n MarkerOptions options = new MarkerOptions();\n// options.position(new LatLng(5.7070, 6.7909));\n// options.position(new LatLng(5.7360, 6.8834));\n// options.position(new LatLng(6.1111, 6.5421));\n\n googleMap.addMarker(options.position(new LatLng(5.7070, 6.7909)));\n googleMap.addMarker(options.position(new LatLng(5.7360, 6.8834)));\n googleMap.addMarker(options.position(new LatLng(6.1111, 6.5421)));\n // Style the polyline.\n stylePolyline(polyline1);\n\n// Polyline polyline2 = googleMap.addPolyline(new PolylineOptions()\n// .clickable(true)\n// .add(\n// new LatLng(-29.501, 119.700),\n// new LatLng(-27.456, 119.672),\n// new LatLng(-25.971, 124.187),\n// new LatLng(-28.081, 126.555),\n// new LatLng(-28.848, 124.229),\n// new LatLng(-28.215, 123.938)));\n// polyline2.setTag(\"B\");\n// stylePolyline(polyline2);\n\n // Add polygons to indicate areas on the map.\n// Polygon polygon1 = googleMap.addPolygon(new PolygonOptions()\n// .clickable(true)\n// .add(\n// new LatLng(-27.457, 153.040),\n// new LatLng(-33.852, 151.211),\n// new LatLng(-37.813, 144.962),\n// new LatLng(-34.928, 138.599)));\n // Store a data object with the polygon, used here to indicate an arbitrary type.\n// polygon1.setTag(\"alpha\");\n // Style the polygon.\n// stylePolygon(polygon1);\n\n// Polygon polygon2 = googleMap.addPolygon(new PolygonOptions()\n// .clickable(true)\n// .add(\n// new LatLng(-31.673, 128.892),\n// new LatLng(-31.952, 115.857),\n// new LatLng(-17.785, 122.258),\n// new LatLng(-12.4258, 130.7932)));\n// polygon2.setTag(\"beta\");\n// stylePolygon(polygon2);\n\n // Position the map's camera near Alice Springs in the center of Australia,\n // and set the zoom factor so most of Australia shows on the screen.\n googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(5.7070, 6.7909), 4));\n\n // Set listeners for click events.\n googleMap.setOnPolylineClickListener(this);\n googleMap.setOnPolygonClickListener(this);\n\n // Set a listener for marker click.\n googleMap.setOnMarkerClickListener(this);\n\n }", "private void markerForGeofence(LatLng latLng,int indexPos)\n {\n Log.e(\"TAGtag\", \"markerForGeofence(\" + latLng + \")\");\n String title = latLng.latitude + \", \" + latLng.longitude;\n Log.e(\"TAGtag\", \"\"+title);\n // Define marker options\n MarkerOptions markerOptions = new MarkerOptions()\n .position(latLng)\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE))\n .title(title);\n if ( mMap!=null )\n {\n // Remove last geoFenceMarker\n if (GEO_FENCE_MARKER[indexPos] != null)\n {\n //geoFenceMarker.remove();\n }\n\n\n GEO_FENCE_MARKER[indexPos] = mMap.addMarker(markerOptions);\n //geoFenceMarker = mMap.addMarker(markerOptions);\n }\n startGeofence(indexPos);\n }", "@Override\r\n public void onPlaceSelected(Place place) {\n Log.i(\"city\",place.toString());\r\n Log.i(TAG, \"Place: \" + place.getName());\r\n city2=place.getName().toString();\r\n String a[]=place.getAddress().toString().split(\",\");\r\n int len=a.length;\r\n String h=city2;\r\n if(len>=3) {\r\n h = a[len - 3];\r\n }\r\n city2=h;\r\n\r\n }", "@Override\n protected void onPostExecute(List<List<HashMap<String, String>>> result) {\n ArrayList<LatLng> points = null;\n PolylineOptions lineOptions = null;\n MarkerOptions markerOptions = new MarkerOptions();\n\n // Traversing through all the routes\n for(int i=0;i<result.size();i++){\n points = new ArrayList<LatLng>();\n lineOptions = new PolylineOptions();\n\n // Fetching i-th route\n List<HashMap<String, String>> path = result.get(i);\n\n // Fetching all the points in i-th route\n for(int j=0;j<path.size();j++){\n HashMap<String,String> point = path.get(j);\n\n double lat = Double.parseDouble(point.get(\"lat\"));\n double lng = Double.parseDouble(point.get(\"lng\"));\n LatLng position = new LatLng(lat, lng);\n\n points.add(position);\n }\n\n // Adding all the points in the route to LineOptions\n lineOptions.addAll(points);\n lineOptions.width(8);\n lineOptions.color(getResources().getColor(R.color.direction_line));\n }\n\n try{\n googleMap.addPolyline(lineOptions);\n }\n catch (Exception e){}\n // Drawing polyline in the Google Map for the i-th route\n\n }", "@Override\n\t\tprotected void onPostExecute(Void result)\n\t\t{\n\t\t\tpDialog.dismiss();\n\t\t\trunOnUiThread(new Runnable()\n\t\t\t{\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tfor (int i = 0; i < listTempatMakan.size(); i++)\n\t\t\t\t\t{\n\n\t\t\t\t\t\tmap.addMarker(new MarkerOptions()\n\t\t\t\t\t\t\t\t.position(new LatLng(listTempatMakan.get(i).getLat(),\n\t\t\t\t\t\t\t\t\t\tlistTempatMakan.get(i).getLng()))\n\t\t\t\t\t\t\t\t.title(listTempatMakan.get(i).getNama())\n\t\t\t\t\t\t\t\t.snippet(listTempatMakan.get(i).getAlamat()));\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tsuper.onPostExecute(result);\n\t\t}", "@Override\n public void onMapReady(GoogleMap googleMap) {\n\n\n mMap = googleMap;\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n Location l = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n // Add a marker in Sydney and move the camera\n\n\n\n\n LatLng sydney = new LatLng(-21.2091416, -41.8870551);\n // mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n if(DepositoList.getDepositos().isEmpty()){\n Log.d(\"&&&&&&&&&\", \"A lista está vazia!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\");\n }else{\n Log.d(\"XXXXXXXXXXXXXX\", \"Funcionou!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\");\n }\n Log.d(\"&&&&&&&&&\", String.valueOf(lista.size()));\n //carregaDados();\n for(Deposito dp: DepositoList.getDepositos()){\n Log.d(\"&&&&&&&&&\", \"Value is: \" + dp.toString());\n LatLng dep = new LatLng(dp.getLatitude(),dp.getLongitude());\n mMap.addMarker(new MarkerOptions().position(dep).title(dp.getDescricao()));\n }\n\n mMap.moveCamera((CameraUpdateFactory.newLatLngZoom(sydney, 13)));\n }", "public void performPlaceTypeSearch(String userQuery)\n {\n StringBuilder googlePlacesUrl = urlGenerator.getGoogleMapPlacesQueryURL(userQuery,GenerateGoogleMapApiUrl.SEARCH_BY_TYPE, mCurrentLocation.getLatitude(),mCurrentLocation.getLongitude());\n Log.d(\"Google Query\",googlePlacesUrl.toString());\n final List<Place> newPlacesList = new ArrayList<Place>();\n // Creating volley request obj\n JsonObjectRequest movieReq = new JsonObjectRequest(Request.Method.GET,googlePlacesUrl.toString(),null,\n new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject result) {\n Log.d(\"JSON Error\", result.toString());\n //hidePDialog();\n JSONArray response = null;\n try {\n response = result.getJSONArray(\"results\");\n }\n catch (JSONException e)\n {\n e.printStackTrace();\n }\n // Parsing json\n for (int i = 0; i < response.length(); i++) {\n try {\n\n JSONObject obj = response.getJSONObject(i);\n Place newPlace = new Place();\n if (!obj.isNull(\"name\")) {\n newPlace.setName(obj.getString(\"name\"));\n }\n if(!obj.isNull(\"rating\"))\n {\n newPlace.setRating(Float.parseFloat(obj.getString(\"rating\")));\n }\n newPlace.setLat(obj.getJSONObject(\"geometry\").getJSONObject(\"location\").getString(\"lat\"));\n newPlace.setLng(obj.getJSONObject(\"geometry\").getJSONObject(\"location\").getString(\"lng\"));\n JSONArray types = obj.getJSONArray(\"types\");\n newPlace.setType(types.get(0).toString());\n if(!obj.isNull(\"opening_hours\"))\n {\n newPlace.setOpen(obj.getJSONObject(\"opening_hours\").getBoolean(\"open_now\"));\n }\n if(!obj.isNull(\"place_id\"))\n {\n newPlace.setPlace_id(obj.getString(\"place_id\"));\n }\n if(!obj.isNull(\"photos\"))\n newPlace.setPhoto_reference(obj.getJSONArray(\"photos\").getJSONObject(0).getString(\"photo_reference\"));\n\n if(!obj.isNull(\"price_level\"))\n newPlace.setPrice_level(obj.getString(\"price_level\"));\n Location placeLocation = new Location(\"\");\n placeLocation.setLatitude(Double.parseDouble(newPlace.getLat()));\n placeLocation.setLongitude(Double.parseDouble(newPlace.getLng()));\n newPlace.setDistance(mCurrentLocation.distanceTo(placeLocation));\n newPlacesList.add(newPlace);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n //dismiss keyboard\n hideSoftKeyboard(ARExploreActivity.this);\n //dismiss autocomplete list\n edtSeach.dismissDropDown();\n plotGoogleMap(newPlacesList);\n mPlaceListMain = newPlacesList;\n //List<Place> filteredList = filterPlaceResult(mPlaceListMain);\n generateWorld(mWorld,mPlaceListMain,viewSetting,true);\n zoomToLocationSearchResult(newPlacesList);\n if(newPlacesList.size()==1)\n {\n performPlaceDetailSearch(newPlacesList.get(0).getPlace_id());\n }\n else if(newPlacesList.size()>1)\n {\n\n if(currentDisplayMode==DISPLAY_PLACE_DETAIL)\n {\n bottomsheetbehaviorgoogle.setHideable(true);\n bottomsheetbehaviorgoogle.setState(BottomSheetBehaviorGoogleMapsLike.STATE_HIDDEN);\n previousDisplayMode = currentDisplayMode;\n }\n currentDisplayMode = DISPLAY_PLACE_LIST;\n createPlacesListBottomSheet(newPlacesList);\n }\n\n // set radar renderer to furthestPlace\n radarPlugin.setMaxDistance(furthestPlace+200.0f);\n distanceSeekBar.setProgress((int)(furthestPlace+200));\n\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n VolleyLog.d(TAG, \"Error: \" + error.getMessage());\n //hidePDialog();\n\n }\n });\n // Adding request to request queue\n AppController.getInstance().addToRequestQueue(movieReq);\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n mMap.getUiSettings().setZoomGesturesEnabled(true);\n // Add a marker in Sydney and move the camera\n\n for( JSONObject jo : this.ubicaciones )\n {\n try{\n Log.i(\"ubicacion\",\n \" lat : \" + jo.get(\"lat\")\n + \" lon : \" + jo.get(\"lon\")\n + \" alt : \" + jo.get(\"alt\")\n );\n LatLng marca = new LatLng( jo.getDouble(\"lat\"), jo.getDouble(\"lon\") );\n\n mMap.addMarker(\n new MarkerOptions()\n .position(marca)\n .icon(\n BitmapDescriptorFactory\n .defaultMarker(BitmapDescriptorFactory.HUE_BLUE)\n )\n );\n// .title(\"Marker in Sydney\"));\n\n mMap.moveCamera(CameraUpdateFactory.newLatLng(marca));\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }", "@Override\n protected ArrayList<PlaceNearby> doInBackground(String... jsonData) {\n ArrayList<PlaceNearby> places = null;\n PlaceJSONParser placeJsonParser = new PlaceJSONParser();\n\n try {\n jObject = new JSONObject(jsonData[0]);\n\n /** Getting the parsed data as a List construct **/\n places = placeJsonParser.parse(jObject);\n\n } catch (Exception e) {\n Log.d(\"Exception\", e.toString());\n }\n return places;\n }" ]
[ "0.63015586", "0.6234858", "0.6080893", "0.6075355", "0.60636395", "0.60534906", "0.6036986", "0.60325104", "0.6030139", "0.60081947", "0.5994634", "0.59733087", "0.59598976", "0.5958901", "0.59252137", "0.59135795", "0.589175", "0.58896065", "0.58475584", "0.58283556", "0.5826005", "0.5821153", "0.5818243", "0.5811815", "0.577008", "0.57608", "0.57503045", "0.5739148", "0.57347834", "0.5728062", "0.57107973", "0.5700411", "0.5693948", "0.56891096", "0.56826365", "0.56669176", "0.56628746", "0.56516564", "0.5642525", "0.5641964", "0.56342095", "0.5633286", "0.56271434", "0.5619641", "0.5614275", "0.5608601", "0.56021273", "0.55994827", "0.5598231", "0.5586299", "0.55842006", "0.5582701", "0.557673", "0.5575033", "0.5570606", "0.5566605", "0.5560839", "0.55536455", "0.55450475", "0.55426496", "0.5542374", "0.55423707", "0.55354357", "0.55303335", "0.5527158", "0.5522317", "0.55179286", "0.5513672", "0.55123055", "0.5511936", "0.5504719", "0.55037606", "0.5503657", "0.54972225", "0.5486096", "0.54819727", "0.5477134", "0.547512", "0.5468457", "0.54605734", "0.5460316", "0.5458082", "0.54536104", "0.5452938", "0.54504776", "0.5448052", "0.54401463", "0.54371756", "0.5425211", "0.54246503", "0.5417959", "0.5408472", "0.5407138", "0.5397798", "0.5386684", "0.5384722", "0.5383439", "0.5381146", "0.53728825", "0.5369547", "0.53687274" ]
0.0
-1
/ Retrieve the place ID of the selected item from the Adapter. The adapter stores each Place suggestion in a AutocompletePrediction from which we read the place ID and title. mAutocompleteViewSource.setEnabled(true);
@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { final AutocompletePrediction item = mAdapter.getItem(position); final String placeId = item.getPlaceId(); final CharSequence primaryText = item.getPrimaryText(null); // mAutocompleteViewDest.setText(parent.toString()); // Log.i(TAG, "Autocomplete item selected: " + primaryText); /* Issue a request to the Places Geo Data API to retrieve a Place object with additional details about the place. */ PendingResult<PlaceBuffer> placeResult = Places.GeoDataApi .getPlaceById(mGoogleApiClient, placeId); placeResult.setResultCallback(mUpdatePlaceDetailsCallback); // Toast.makeText(getApplicationContext(), "Clicked: " + primaryText, // Toast.LENGTH_SHORT).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n final AutocompletePrediction item = mAdapter.getItem(position);\n final String placeId = item.getPlaceId();\n final CharSequence primaryText = item.getPrimaryText(null);\n\n Log.i(TAG, \"Autocomplete item selected: \" + primaryText);\n\n /*\n Issue a request to the Places Geo Data API to retrieve a Place object with additional\n details about the place.\n */\n PendingResult<PlaceBuffer> placeResult = Places.GeoDataApi\n .getPlaceById(mGoogleApiClient, placeId);\n placeResult.setResultCallback(mUpdatePlaceDetailsCallback);\n\n //Toast.makeText(getApplicationContext(), \"Clicked: \" + primaryText,\n // Toast.LENGTH_SHORT).show();\n Log.i(TAG, \"Called getPlaceById to get Place details for \" + placeId);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n final PlaceAutocompleteAdapter.PlaceAutocomplete item;\n final String placeId;\n item = mAdapter.getItem(position);\n placeId = String.valueOf(item.placeId);\n Log.i(TAG, \"Autocomplete item selected: \" + item.description);\n\n /*\n Issue a request to the Places Geo Data API to retrieve a Place object with additional\n details about the place.\n */\n PendingResult<PlaceBuffer> placeResult = Places.GeoDataApi\n .getPlaceById(mGoogleApiClient, placeId);\n placeResult.setResultCallback(mUpdatePlaceDetailsCallback);\n Toast.makeText(getApplicationContext(), \"Clicked: \" + item.description,\n Toast.LENGTH_SHORT).show();\n Log.i(TAG, \"Called getPlaceById to get Place details for \" + item.placeId);\n }", "@Override\n\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\tfinal PlaceAutocompleteAdapter.PlaceAutocomplete item = placeAutocompleteAdapter.getItem(position);\n\t\t\tfinal String placeId = String.valueOf(item.placeId);\n\t\t\tLog.i(TAG, \"Autocomplete item selected: \" + item.description);\n\n\t\t\t/*\n Issue a request to the Places Geo Data API to retrieve a Place object with additional\n details about the place.\n\t\t\t */\n\t\t\tPendingResult<PlaceBuffer> placeResult = Places.GeoDataApi\n\t\t\t\t\t.getPlaceById(mGoogleApiClient, placeId);\n\t\t\t//placeResult.setResultCallback(mUpdatePlaceDetailsCallback);\n\n\t\t\tToast.makeText(ApplicationContext.getContext(), \"Clicked: \" + item.description,\n\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\tLog.i(TAG, \"Called getPlaceById to get Place details for \" + item.placeId);\n\n\t\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == 1) {\n if (resultCode == RESULT_OK) {\n // retrive the data by using getPlace() method.\n Place place = PlaceAutocomplete.getPlace(this, data);\n String latlang = \"\" + place.getLatLng();\n Log.e(\"Tag\", \"Place: \" + place.getAddress() + place.getPhoneNumber());\n Log.d(\"LatLang\", latlang);\n\n dLat = Double.valueOf(getLattitude(latlang));\n dLang = Double.valueOf(getLangitude(latlang));\n Log.d(\"Lat\", \"\" + dLat);\n Log.d(\"Lang\", \"\" + dLang);\n\n destination.setText(place.getName());\n clearDest.setVisibility(View.VISIBLE);\n //selDest.setVisibility(View.GONE);\n recyclerView.setVisibility(View.VISIBLE);\n\n //Make call to Async\n //new GetRides().execute();\n fetchingRides();\n } else if (resultCode == PlaceAutocomplete.RESULT_ERROR) {\n Status status = PlaceAutocomplete.getStatus(this, data);\n // TODO: Handle the error.\n Log.e(\"Tag\", status.getStatusMessage());\n } else if (resultCode == RESULT_CANCELED) {\n // The user canceled the operation.\n }\n }\n\n else if (requestCode == 2) {\n if (resultCode == RESULT_OK) {\n // retrive the data by using getPlace() method.\n Place place = PlaceAutocomplete.getPlace(this, data);\n String latlang = \"\" + place.getLatLng();\n Log.e(\"Tag\", \"Place: \" + place.getAddress() + place.getPhoneNumber());\n Log.d(\"LatLang\", latlang);\n\n sLat = Double.valueOf(getLattitude(latlang));\n sLang = Double.valueOf(getLangitude(latlang));\n Log.d(\"Lat\", \"\" + sLat);\n Log.d(\"Lang\", \"\" + sLang);\n\n\n\n source.setText(place.getName());\n\n // selDest.setVisibility(View.GONE);\n recyclerView.setVisibility(View.VISIBLE);\n\n //Make call to Async\n //new GetRides().execute();\n fetchingRides();\n } else if (resultCode == PlaceAutocomplete.RESULT_ERROR) {\n Status status = PlaceAutocomplete.getStatus(this, data);\n // TODO: Handle the error.\n Log.e(\"Tag\", status.getStatusMessage());\n } else if (resultCode == RESULT_CANCELED) {\n // The user canceled the operation.\n }\n }\n }", "@Override\n public void onPlaceSelected(Place place) {\n\n Log.i(\"place_autocomplete\", \"Place: \" + place.getName() + \", \" + place.getId() + \", \" + place.getLatLng());\n LatLng latLng = place.getLatLng();\n setLocationWork(latLng.latitude, latLng.longitude);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n String str = placeModels.get(position).getMainTitle() + \" , \" + placeModels.get(position).getSecondaryTitle();\n\n DataToPref.setSharedPreferanceData(getApplicationContext(), LaoxiConstant.SELECTED_PLACE_ID, LaoxiConstant.SELECTED_PLACE_ID_KEY, placeModels.get(position).getPlaceID() + \"\");\n String Data = getLocationFromAddress(LocationSearchActivityNew.this, str);\n\n if (Data == null || Data.equalsIgnoreCase(\"\")) {\n\n // call methood\n GetLocation(str);\n } else {\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"result\", Data + \",,,\" + str);\n setResult(Activity.RESULT_OK, returnIntent);\n finish();\n }\n\n\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n PlaceAutoComplete selected = (PlaceAutoComplete) parent.getItemAtPosition(position);\n // set distance to render because the search is up to 5000m\n radarPlugin.setMaxDistance(6000);\n mBeyondarFragment.setMaxDistanceToRender(6000);\n performPlaceDetailSearch(selected.getPlaceID());\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n // Check that the result was from the autocomplete widget.\n if (requestCode == REQUEST_CODE_AUTOCOMPLETE) {\n if (resultCode == RESULT_OK) {\n // Get the user's selected place from the Intent.\n Place place = PlaceAutocomplete.getPlace(this, data);\n Log.i(LOG_TAG, \"Place Selected: \" + place.getName());\n\n if(place!=null) {\n setMarkerPosition(place.getLatLng());\n if (tvLokasiUsaha != null) {\n tvLokasiUsaha.setText(place.getAddress());\n } else {\n tvLokasiUsaha.setText(\"\");\n }\n }\n\n } else if (resultCode == PlaceAutocomplete.RESULT_ERROR) {\n Status status = PlaceAutocomplete.getStatus(this, data);\n Log.e(LOG_TAG, \"Error: Status = \" + status.toString());\n } else if (resultCode == RESULT_CANCELED) {\n // Indicates that the activity closed before a selection was made. For example if\n // the user pressed the back button.\n }\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n // Check that the result was from the autocomplete widget.\n if (requestCode == REQUEST_CODE_AUTOCOMPLETE) {\n if (resultCode == RESULT_OK) {\n // Get the user's selected place from the Intent.\n Place place = PlaceAutocomplete.getPlace(this, data);\n Log.i(TAG, \"Place Selected: \" + place.getName());\n\n // Format the place's details and display them in the TextView.\n eventEditVenue.setText(place.getName().toString().trim());\n eventEditAddres.setText(place.getAddress().toString().trim());\n\n // Display attributions if required.\n CharSequence attributions = place.getAttributions();\n// if (!TextUtils.isEmpty(attributions)) {\n// mPlaceAttribution.setText(Html.fromHtml(attributions.toString()));\n// } else {\n// mPlaceAttribution.setText(\"\");\n// }\n } else if (resultCode == PlaceAutocomplete.RESULT_ERROR) {\n Status status = PlaceAutocomplete.getStatus(this, data);\n Log.e(TAG, \"Error: Status = \" + status.toString());\n } else if (resultCode == RESULT_CANCELED) {\n // Indicates that the activity closed before a selection was made. For example if\n // the user pressed the back button.\n }\n }\n }", "public String getPlaceId() {\n return placeId;\n }", "@Override\n public void onPlaceSelected(Place place) {\n Log.i(TAG, \"Place: \" + place.getName());\n editTextBusinessName.setText(place.getName());\n editTextLocation.setText(place.getAddress());\n editTextPhone.setText(place.getPhoneNumber());\n barCoordinates = place.getLatLng();\n //editTextBusinessDescription.setText(place.getAttributions());\n\n }", "@Override\n public void onPlaceSelected(Place place) {\n\n place_str[0] = place.getName() + \",\" + place.getId();\n }", "@Override\r\n\t\tpublic Place getItem(int position) {\n\t\t\treturn mPlaceList.get(position);\r\n\t\t}", "public String idOfPlace()\n {\n return id;\n }", "@Override\n\t public void onItemClick(AdapterView<?> parent, View view,\n\t int position, long id) {\n\t String reference = ((TextView) view.findViewById(R.id.reference)).getText().toString();\n\t \n\t // Starting new intent\n\t Intent in = new Intent(getApplicationContext(),\n\t SinglePlaceActivity.class);\n\t in.putExtra(\"LAT\", latitude);\n\t in.putExtra(\"LON\", longitude);\n\t // Sending place refrence id to single place activity\n\t // place refrence id used to get \"Place full details\"\n\t in.putExtra(KEY_REFERENCE, reference);\n\t startActivity(in);\n\t }", "@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view,\r\n\t\t\t\t\tint position, long id) {\n\r\n\t\t\t\tlocation_id = _locationAdapter.getItem(position).getStrId();\r\n\r\n\t\t\t}", "@Override\n public void onBindViewHolder(MyViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n\n MyPlace place = mDataset.get(position);\n\n holder.bind(activity,place,itemClicked,position);\n //https://www.google.com/maps/place/?q=place_id:\n }", "@Override\n public void onSuggestionClick(String id, String name, LatLng latLng, int position) {\n Log.d(TAG, String.format(\"onSuggestionClick: BusinessId:%s, Name:%s, Position:%d\", id, name, position));\n\n Intent pagerIntent = SuggestionsPagerActivity.buildIntent(this,\n position,\n SimplifiedBusiness.buildSimplifiedBusinessList(((SuggestionsDataFragment) fragments[DATA]).getAllResults()),\n new ArrayList<>(selectedIdsMap.keySet()),\n new ArrayList<>(selectedIdsMap.values()),\n userTravelArrayList,\n PreferenceUtils.getPreferredDataSource(this),\n userLatLng, friendLatLng, midLatLng);\n startActivityForResult(pagerIntent, REQUEST_CODE_PAGER_VIEW);\n }", "@Override\n public void onPlaceSelected(Place place) {\n initiateSearch(place.getLatLng());\n }", "public void onItemClick(AdapterView parent, View v, int position, long id) {\n LatLng markerLatLng = mLikelyPlaceLatLngs[position];\n String markerSnippet = mLikelyPlaceAddresses[position];\n if (mLikelyPlaceAttributions[position] != null) {\n markerSnippet = markerSnippet + \"\\n\" + mLikelyPlaceAttributions[position];\n }\n\n // Add a marker for the selected place, with an info window\n // showing information about that place.\n mMap.addMarker(new MarkerOptions()\n .title(mLikelyPlaceNames[position])\n .position(markerLatLng)\n .snippet(markerSnippet));\n\n // Position the map's camera at the location of the marker.\n mMap.moveCamera(CameraUpdateFactory.newLatLng(markerLatLng));\n }", "@Override\n\t\t\t\t\t\tpublic void onItemClick(AdapterView<?> adapterView, View view, int pos, long id) {\n\t\t\t\t\t\t\t_selectedautocompletedto = (settingdto) adapterView.getItemAtPosition(pos);\n\t\t\t\t\t\t\trefreshlistfromdbonfilter(_selectedautocompletedto.getsetting_name());\n\t\t\t\t\t\t}", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n if (!((MainActivity) getActivity()).loadInterstitial()) {\n if (!AskRate()) {\n System.out.println(\"click: \" + places.get(i).id + \" \" + places.get(i).name);\n Intent intent = new Intent(context, SinglePlaceActivity.class);\n intent.putExtra(ITEM_KEY, places.get(i).id);\n startActivity(intent);\n }\n }\n }", "public static String getPlaceAutoComplete(Context context, String API_KEY, AutocompleteSupportFragment autocompleteSupportFragment) {\n\n final String[] place_str = new String[1];\n Places.initialize(context, API_KEY);\n PlacesClient placesClient = Places.createClient(context);\n\n if (autocompleteSupportFragment != null) {\n autocompleteSupportFragment.setPlaceFields(Arrays.asList(Place.Field.ID, Place.Field.NAME));\n\n autocompleteSupportFragment.setOnPlaceSelectedListener(new PlaceSelectionListener() {\n @Override\n public void onPlaceSelected(Place place) {\n // TODO: Get info about the selected place.\n // textView.setText(place.getName()+\",\"+place.getId());\n // Log.i(TAG, \"Place: \" + place.getName() + \", \" + place.getId());\n\n place_str[0] = place.getName() + \",\" + place.getId();\n }\n\n @Override\n public void onError(Status status) {\n // TODO: Handle the error.\n //Log.i(TAG, \"An error occurred: \" + status);\n }\n });\n }\n\n String places = \"\";\n if (place_str[0] != null) {\n places = place_str[0];\n }\n return places;\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n setContentView(R.layout.activity_location_search);\n ButterKnife.bind(this);\n placeModels = new ArrayList<>();\n dataAdapter = new GooglePlacesAutocompleteAdapterNew(getApplicationContext(), placeModels);\n edEnterLocation = (EditText) findViewById(R.id.edEnterLocation);\n imgClose = (ImageView) findViewById(R.id.imgClose);\n powered_by_google = (ImageView) findViewById(R.id.powered_by_google);\n listview = (ListView) findViewById(R.id.listview);\n textviewSearchResult = (TextView) findViewById(R.id.textviewSearchResult);\n listview.setAdapter(dataAdapter);\n\n edEnterLocation.addTextChangedListener(new TextWatcher() {\n\n public void afterTextChanged(Editable s) {\n try {\n listview.setVisibility(View.VISIBLE);\n placeModels.clear();\n\n if (placeModels != null) {\n dataAdapter.notifyDataSetChanged();\n }\n progressbarSearch.setVisibility(View.VISIBLE);\n new AutocompleteApi(new LatLng(LocationHelperService.dblLatitude, LocationHelperService.dblLongitude), s.toString()).execute();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n }\n\n public void onTextChanged(final CharSequence s, int start, int before, final int count) {\n\n }\n });\n\n\n listview.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n /*String str = placeModels.get(position).getMainTitle();\n String Data = getLocationFromAddress(LocationSearchActivityNew.this, str);\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"result\", Data + \",,,\" + str);\n setResult(Activity.RESULT_OK, returnIntent);\n finish();*/\n\n String str = placeModels.get(position).getMainTitle() + \" , \" + placeModels.get(position).getSecondaryTitle();\n\n DataToPref.setSharedPreferanceData(getApplicationContext(), LaoxiConstant.SELECTED_PLACE_ID, LaoxiConstant.SELECTED_PLACE_ID_KEY, placeModels.get(position).getPlaceID() + \"\");\n String Data = getLocationFromAddress(LocationSearchActivityNew.this, str);\n\n if (Data == null || Data.equalsIgnoreCase(\"\")) {\n\n // call methood\n GetLocation(str);\n } else {\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"result\", Data + \",,,\" + str);\n setResult(Activity.RESULT_OK, returnIntent);\n finish();\n }\n\n\n }\n });\n\n\n imgClose.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n finish();\n }\n });\n\n }", "@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint position, long arg3) {\n\t\t\t\t\r\n\t\t\t\tAutoCompleteTextView countryInputText = (AutoCompleteTextView) layout\r\n\t\t\t\t\t\t.findViewById(R.id.inputText);\r\n\t\t\t\t\r\n\t\t\t//\tif (curSwipeCountries.size() < MAX_LANG) {\r\n\r\n\t\t\t\t\tString pickedCountry = (String) countryList\r\n\t\t\t\t\t\t\t.getItemAtPosition(position);\r\n\t\t\t\t\t// String pickedLanguage\r\n\t\t\t\t\tuserLang = pickedCountry;\r\n\r\n\t\t\t\t\tcurCountries.clear();\r\n\t\t\t\t\tcurCountries.add(pickedCountry);\r\n\t\t\t\t\tcountryInputText.setText(pickedCountry);\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\tcountryListAdapter.notifyDataSetChanged();\r\n\t\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\tCountry_ID = (Integer.parseInt(lst_countries.get(position).get(\"Country_ID\")));\r\n\t\t\t}", "@Override\n public void onPlaceSelected(Place place) {\n Log.i(\"Place: \", place.getAddress().toString());\n if (mybound != null) {\n if (mybound.contains(place.getLatLng())) {\n zoomToSearchedLocation(place);\n }\n }\n// zoomToSearchedLocation(place);\n bolFlag = true;\n }", "@Override\n public DrugSuggest getItem(int position) {\n return maps.get(position);\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n\n if (resultCode == Activity.RESULT_OK) {\n\n if (requestCode == REQUEST_CODE_PLACEPICKER){\n displaySelectedPlaceFromPlacePicker(data);\n }\n }\n\n }", "@SuppressLint(\"NewApi\")\n @Override\n public void onPlaceSelected(@NonNull final Place place) {\n Log.i(\"ssd\", \"Place: \" + place.getName() + \", \" + place.getId());\n\n final LatLng latLng = place.getLatLng();\n name = place.getName();\n lat= Objects.requireNonNull(place.getLatLng()).latitude;\n longt= Objects.requireNonNull(place.getLatLng()).longitude;\n\n Log.i(\"la\", String.valueOf(latLng));\n\n final MarkerOptions markerOptions = new MarkerOptions();\n\n Toast.makeText(getApplicationContext(), String.valueOf(place.getLatLng()), Toast.LENGTH_LONG).show();\n // Setting the position for the marker\n markerOptions.position(Objects.requireNonNull(place.getLatLng()));\n\n // Setting the title for the marker.\n // This will be displayed on taping the marker\n markerOptions.title(name);\n\n // Clears the previously touched position\n mMap.clear();\n\n mMap.setOnMapLoadedCallback(new GoogleMap.OnMapLoadedCallback() {\n @Override\n public void onMapLoaded() {\n // Animating to the touched position\n mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 13.3f));\n\n // Placing a marker on the touched position\n mMap.addMarker(markerOptions);\n }\n });\n\n\n Log.i(\"lt\", String.valueOf(Objects.requireNonNull(place.getLatLng()).latitude));\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n Log.i(\"click\",\"\"+placesAdaptor.getItem(i).toString());\n //TODO: set intent if needed\n //hard code to geisel details page\n\n Intent intent = new Intent(getApplicationContext(),LandmarkDetailsActivity.class);\n intent.putExtra(\"placeName\", \"\"+placesAdaptor.getItem(i).toString());\n //hard code to geisel details page\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tString name = searchList.get(position);\n\t\t\t\tString pinyin = PinyinUtil.toPinyin(getApplicationContext(),\n\t\t\t\t\t\tname);\n\t\t\t\tCity city = new City(name, pinyin);\n\t\t\t\tattemptSelect(city);\n\t\t\t}", "public Item pickItemFromCurrentPlace(String id)\r\n\t{\r\n\t\treturn this.currentPlace.pickItem(id);\r\n\t}", "private void openPlacesDialog() {\n DialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // The \"which\" argument contains the position of the selected item.\n LatLng markerLatLng = mLikelyPlaceLatLngs[which];\n String markerSnippet = mLikelyPlaceAddresses[which];\n if (mLikelyPlaceAttributions[which] != null) {\n markerSnippet = markerSnippet + \"\\n\" + mLikelyPlaceAttributions[which];\n }\n int height = 200;\n int width = 100;\n BitmapDrawable bitmapdraw = (BitmapDrawable) getResources().getDrawable(R.drawable.ic_car_marker);\n Bitmap b = bitmapdraw.getBitmap();\n Bitmap smallMarker = Bitmap.createScaledBitmap(b, width, height, false);\n // Add a marker for the selected place, with an info window\n // showing information about that place.\n mMap.addMarker(new MarkerOptions()\n .title(mLikelyPlaceNames[which])\n .position(markerLatLng)\n .snippet(markerSnippet))\n .setIcon(BitmapDescriptorFactory.fromBitmap(smallMarker));\n\n // Position the customer_map's camera at the location of the marker.\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(markerLatLng,\n DEFAULT_ZOOM));\n }\n };\n\n // Display the dialog.\n AlertDialog dialog = new AlertDialog.Builder(getActivity())\n .setTitle(R.string.pick_place)\n .setItems(mLikelyPlaceNames, listener)\n .show();\n }", "@Override\n public boolean onSuggestionSelect(int position) {\n return true;\n }", "@Override\n public void onItemSelected(OurPlace place) {\n\n Log.i(LOG_TAG, \"YES!\");\n }", "public void GetPlace(String placeid,\n String key,\n Callback<GooglePlaceData> cb) {\n if (CMAppGlobals.DEBUG) Logger.i(TAG, \":: GoogleModel.GetAutocomplete placeid : \" + placeid\n + \" : key : \" + key\n + \" : cb : \" + cb);\n\n Call<GooglePlaceData> googleGeocodeCall = googleService.GetPlace(placeid, key);\n googleGeocodeCall.enqueue(cb);\n\n }", "@Override\r\n public void onItemChosen(View labelledSpinner, AdapterView<?> adapterView, View itemView, int position, long id) {\r\n String selectedText = adapterView.getItemAtPosition(position).toString();\r\n switch (labelledSpinner.getId()) {\r\n case R.id.spinner_planets:\r\n //Toast.makeText(getActivity(), \"Selected: \" + selectedText, Toast.LENGTH_SHORT).show();\r\n selectTextSpinner = selectedText;\r\n break;\r\n // If you have multiple LabelledSpinners, you can add more cases here\r\n }\r\n }", "@Override\n public void onBindViewHolder(@NonNull final IndevidualPlaceAdapter.MyViewHolder holder, final int position) {\n PlaceInformation place = this.AllItemsPlaceClass.get(position);\n\n holder.myTextView.setText(place.getName());\n holder.myTextView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent it = new Intent(myContext,PlaceDetailsActivity.class);\n it.putExtra(\"ItemClickedPosition\",position);\n myContext.startActivity(it);\n }\n });\n }", "private void clickPlaceItem_OpensManualDetailActivity() {\n // check the name and address of the manual place\n onView(withId(R.id.rv_places))\n .perform(RecyclerViewActions.scrollToPosition(POS_PLACE))\n .check(matches(atPosition(POS_PLACE, hasDescendant(withText(PLACE_NAME)))))\n .check(matches(atPosition(POS_PLACE, hasDescendant(withText(PLACE_ADDRESS)))));\n // click on the manual place\n onView(withId(R.id.rv_places))\n .perform(RecyclerViewActions.actionOnItemAtPosition(POS_PLACE, click()));\n\n // check manual place details\n checkManualPlaceDetails();\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = parent.getItemAtPosition(position).toString();\n areaId = dbHendler.getAreaID(item);\n }", "@Override\n public void onItemClick(AdapterView<?> av, View v, int position, long id) {\n\n getLocation(id);\n\n\n }", "@Override\n public void onPlaceSelected(Place place) {\n destination = place.getName().toString();\n destinationLatLng = place.getLatLng();\n }", "@Override\n\t\t\t\t\t\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\t\t\t\t\t\t\tString marksAvail = commonList.get(position);\n\t\t\t\t\t\t\t\t\t\tLog.e(\"TAG\", \"Value for marksAvail:\" + marksAvail);\n\t\t\t\t\t\t\t\t\t\tdropMarksAvails.setText(marksAvail);\n\t\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\n\t\t\t\t\t\t\t\t\t}", "static Place getPlaceByID ( int key)\r\n\t{\r\n\t\treturn tm.get(key);\r\n\t}", "@Override\r\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\r\n long arg3) {\n bqListWindow.dismiss();\r\n DeptWardMapInfo departmentandward = bqlist.get(arg2);\r\n et_bqks.setText(bqlist.get(arg2).getBqmc() + \" | \"\r\n + bqlist.get(arg2).getKsmc());\r\n SharedPreferenceTools.saveInt(Login.this,\"BqSel\",arg2);\r\n GlobalCache.getCache().setBqSel(arg2);\r\n }", "@Override\n public void onBindViewHolder(PlaceAdapter.ViewHolder holder, int position) {\n // Get current place.\n Place currentPlace = mPlacesData.get(position);\n\n // Populate the textviews with data.\n holder.bindTo(currentPlace);\n }", "@Override\n public void onPlaceSelected(Place place) {\n latLng = place.getLatLng();\n locationName = place.getName().toString();\n locationAddress = place.getAddress().toString();\n Log.i(TAG, \"Location:latitude: \" + place.getLatLng().latitude);\n Log.i(TAG, \"Location:Address: \" + place.getAddress());\n Log.i(TAG, \"Location:Web: \" + place.getWebsiteUri());\n Log.i(TAG, \"Location:Place: \" + place.getName());\n mMap.addMarker(new MarkerOptions().position(latLng).title(locationName).snippet(locationAddress)).showInfoWindow();\n mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n }", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n str_loc = Arraylist_location.get(arg2);\n str_loc_id = Arraylist_location_id.get(arg2);\n\n System.out.println(\"### ID : \" + str_loc + \" : \" + str_loc_id);\n\n\n\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n cityId = aKodeKota[i];\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n cityId = aKodeKota[i];\n }", "@Override\n public void onSuggestionToggle(String id, int position, boolean toggleState) {\n if (selectedIdsMap.containsKey(id) && !toggleState) {\n //if the item is in the map AND resulting toggle state is false (not selected), we remove it\n Log.d(TAG, \"onSuggestionToggle: Item is in the map, so removing:\" + id);\n selectedIdsMap.remove(id);\n }\n else if (!selectedIdsMap.containsKey(id) && toggleState) {\n //if the item is not in the map AND resulting toggle state is true, we add it\n Log.d(TAG, \"onSuggestionToggle: Item is not in the map, so adding:\" + id);\n selectedIdsMap.put(id, position);\n }\n\n //notify all the fragments that a selection has changed\n if (fragments[MAP] != null) {\n Log.d(TAG, \"onSuggestionToggle: Notifying map fragment that a selection has changed\");\n ((SuggestionsClusterMapFragment) fragments[MAP]).onSelectionChanged(id, toggleState);\n }\n\n if (fragments[LIST] != null) {\n Log.d(TAG, \"onSuggestionToggle: Notifying list fragment that a selection has changed\");\n ((SuggestionsListFragment) fragments[LIST]).onSelectionChanged(id, toggleState);\n }\n }", "@Override\n public void onItemSelected(AdapterView<?> adapter, View view,\n int position, long id) {\n\n kitchenCity=cityList.get(position);\n cityid=cityId.get(position);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n searchTxtView.setText(adapter.getItem(position));\n\n // Dismiss dialog\n dialog.dismiss();\n\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view,\n int position, long id) {\n super.onItemClick(adapterView, view, position, id);\n\n if (adapterView.getId() == R.id.runners_you_may_know_list) {\n\n Runner user = (Runner) adapterView.getAdapter().getItem(\n position);\n LogUtil.d(mCurrentClassName,\"Add runner id: \" + user.getId());\n\n chosenRunner = user;\n\n getGroups();\n }\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n id = i;\n }", "@Override\n\tprotected void onListItemClick(ListView l, View v, int position, long id) {\n\t\tif(hintlist==null){\n\t\t\tToast.makeText(getApplicationContext(), R.string.problem_loading_hint_map,Toast.LENGTH_SHORT).show();\n\t\t}\n\t\tHint selectedHint=hintlist.get(position-1);\n\t\tLog.i(TAG, \"item \"+position+\" is clicked\");\n\t\tLog.i(TAG, \"item title:\"+selectedHint.title);\n\t\tLog.i(TAG, \"item ddUrl:\"+selectedHint.ddUrl);\n\t\tLog.i(TAG, \"item ddUrlToHere:\"+selectedHint.ddUrlToHere);\n\t\tLog.i(TAG, \"item ddUrlFromHere:\"+selectedHint.ddUrlFromHere);\n\t\tLog.i(TAG, \"item staticMapUrl:\"+selectedHint.staticMapUrl);\n\t\t\n\t\t//Show only this in mapView\n\t\tIntent intentShowInMap = new Intent(HintList.this, Map.class);\n\t\tintentShowInMap.putExtra(\"hintlist\",hintlist);\n\t\tintentShowInMap.putExtra(\"selectedPos\",position);\n\t\tintentShowInMap.putExtra(\"tasktitle\",tasktitle);\n\t\t\n\t\tstartActivityForResult(intentShowInMap, 0);\n\t\t\n\t\t//View path in browser\n\t\t//Intent browserIntent = new Intent(\"android.intent.action.VIEW\", Uri.parse(selectedHint.ddUrl));\n\t\t//startActivity(browserIntent);\n\n\t\t\n\t}", "@Override\n public void onPlaceSelected(int viewPosition) {\n if (mExternalEventListener != null){\n LocationData clickedPlace = null;\n /** make sure we have data for this place, for that check its state */\n try {\n clickedPlace = mRegistry.getPlaceByEncounter(viewPosition);\n /** make sure we have data for this place, for that check its state */\n PlaceUpdateState placeState = mRegistry.getPlaceState(clickedPlace);\n if (placeState == PlaceUpdateState.NameOnly){\n return;\n }\n }catch (IndexOutOfBoundsException e){\n Log.d(\"ForecastViewer\", \"Error, index out of bound because of unknown reason\");\n return;\n }\n mExternalEventListener.onPlaceSelected(clickedPlace);\n }\n }", "public final native PlaceResult getPlace() /*-{\n return this.getPlace();\n }-*/;", "@Override\r\n public void fetchPlaceData(MenuItem item) {\r\n if (mGoogleMap != null && mCurrentLocation != null) {\r\n if (mApiClass == null) {\r\n mApiClass = new ApiClass(this);\r\n }\r\n if (Utils.checkConnectivity(this) && mPlaceType != null) {\r\n showLoading();\r\n clearMarkers();\r\n mPreviousPlaceType = mPlaceType;\r\n Map map = new HashMap<String, String>();\r\n map.put(Constants.KEY, getString(R.string.google_api_key));\r\n map.put(Constants.TYPE, mPlaceType);\r\n map.put(Constants.LOCATION, mCurrentLocation.getLatitude() + \",\" + mCurrentLocation.getLongitude());\r\n map.put(Constants.RADIUS, String.valueOf(mRadius));\r\n mApiClass.getPlace(map);\r\n } else {\r\n mPreviousPlaceType = \"\";\r\n if (mPlaceType == null) {\r\n Utils.showToast(this, \"Please select place from drawer\");\r\n return;\r\n }\r\n if(item!=null){\r\n item.setChecked(false);\r\n }\r\n Utils.showToast(this, getString(R.string.network_error));\r\n }\r\n }\r\n else{\r\n if(item!=null){\r\n item.setChecked(false);\r\n }\r\n\r\n }\r\n }", "private void getLocation() {\n fields = Arrays.asList(Place.Field.ID, Place.Field.NAME, Place.Field.LAT_LNG);\n\n // Start the autocomplete intent.\n Intent intent = new Autocomplete.IntentBuilder(\n AutocompleteActivityMode.FULLSCREEN, fields)\n .build(this);\n startActivityForResult(intent, AUTOCOMPLETE_REQUEST_CODE);\n }", "private void showPlaceAutoComplete(int typeLocation) {\n REQUEST_CODE = typeLocation;\n\n // Filter hanya tmpat yg ada di Indonesia\n AutocompleteFilter typeFilter = new AutocompleteFilter.Builder().setCountry(\"ID\").build();\n try {\n // Intent untuk mengirim Implisit Intent\n Intent mIntent = new PlaceAutocomplete.IntentBuilder(PlaceAutocomplete.MODE_OVERLAY)\n .setFilter(typeFilter)\n .build(getActivity());\n // jalankan intent impilist\n startActivityForResult(mIntent, REQUEST_CODE);\n } catch (GooglePlayServicesRepairableException e) {\n e.printStackTrace(); // cetak error\n } catch (GooglePlayServicesNotAvailableException e) {\n e.printStackTrace(); // cetak error\n // Display Toast\n Toast.makeText(getContext(), \"Layanan Play Services Tidak Tersedia\", Toast.LENGTH_SHORT).show();\n }\n\n }", "@Override\n public void onClick(View v) {\n try {\n PlacePicker.IntentBuilder intentBuilder = new PlacePicker.IntentBuilder();\n Intent intent = intentBuilder.build(DiscoverActivity.this);\n // Start the Intent by requesting a result, identified by a request code.\n startActivityForResult(intent, PLACE_PICKER_REQUEST); // Result should be placename and coordinates\n // Hide the pick option in the UI to prevent users from starting the picker\n // multiple times.\n //showPickAction(false);\n\n } catch (GooglePlayServicesRepairableException e) {\n GooglePlayServicesUtil\n .getErrorDialog(e.getConnectionStatusCode(), DiscoverActivity.this, 0);\n } catch (GooglePlayServicesNotAvailableException e) {\n Toast.makeText(DiscoverActivity.this, \"Google Play Services is not available.\",\n Toast.LENGTH_LONG)\n .show();\n }\n\n }", "@Override\n public void onClick(View v) {\n PlacePicker.IntentBuilder builder = new PlacePicker.IntentBuilder();\n try {\n startActivityForResult(builder.build(MainActivity.this), PLACE_PICKER_REQUEST);\n } catch (GooglePlayServicesRepairableException e) {\n e.printStackTrace();\n } catch (GooglePlayServicesNotAvailableException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void onItemSeleted(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\t\tswitch (view.getId()) {\n\t\tcase R.id.editingquestionopt:\n\t\t\topt = position;\n\t\t\tbreak;\n\n\t\tcase R.id.editingquestionnum:\n\t\t\tnum = position + 1;\n\t\t\tbreak;\n\t\t}\n\t}", "public int getPlaceName() {\n return mPlaceName;\n }", "private void getPlace(String _id) {\n this.binding.main.setVisibility(View.GONE);\n this.binding.loading.setVisibility(View.VISIBLE);\n\n ParseQuery<Place> query = ParseQuery.getQuery(Place.class);\n query.whereEqualTo(Place.KEY_OBJECT_ID, _id);\n query.include(Place.KEY_CATEGORY);\n query.include(Place.KEY_USER);\n query.getFirstInBackground(new GetCallback<Place>() {\n @Override\n public void done(Place object, ParseException e) {\n if(e == null) {\n place = object;\n bindInformation();\n enterReveal();\n } else {\n Toast.makeText(PlaceDetailActivity.this, \"Place not found\", Toast.LENGTH_LONG).show();\n finish();\n }\n }\n });\n\n // Set up elements visibility\n binding.fabCall.setVisibility(View.INVISIBLE);\n binding.fabLike.setVisibility(View.INVISIBLE);\n binding.main.setVisibility(View.VISIBLE);\n binding.loading.setVisibility(View.GONE);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n final String def = definition.get(position);\n\n // Create an intent for the termDefinitions View\n Intent intent = new Intent(getApplicationContext(), termDefinition.class);\n\n // Parse the data selected\n intent.putExtra(\"definition\", def);\n startActivity(intent);\n }", "protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == AUTOCOMPLETE_REQUEST_CODE) {\n if (resultCode == RESULT_OK) {\n Place place = PlaceAutocomplete.getPlace(this, data);\n dest = place.getLatLng();\n getDirections();\n getDistance(); //consider storing in variable, using button to display info\n //After this I should handle result error and result cancelled - the above only handles valid places\n }\n }\n }", "public static String getPlaceID(String placeName) {\r\n\t\tString output = \"\";\r\n\t\ttry {\r\n\t\t\tURL url = new URL(\"https://maps.googleapis.com/maps/api/place/findplacefromtext/json?input=\"+placeName+\"&inputtype=textquery&fields=place_id&key=AIzaSyAcM2vc8-2JY9I5P7jgvt61TCYa1vo0b98\");\r\n\t\t\tHttpURLConnection conn = (HttpURLConnection)url.openConnection();\r\n\t\t\tconn.setRequestMethod(\"GET\");\r\n\t\t\tconn.connect();\r\n\t\t\tint responsecode = conn.getResponseCode();\r\n\t\t\tif(responsecode != 200) {\r\n\t\t\t\tthrow new RuntimeException(\"HttpResponseCode: \"+responsecode);\r\n\t\t\t} else {\r\n\t\t\t\tJSONParser parse = new JSONParser();\r\n\t\t\t\tScanner scanner = new Scanner(url.openStream());\r\n\t\t\t\twhile (scanner.hasNext()) {\r\n\t\t\t\t\toutput+=scanner.nextLine();\r\n\t\t\t\t}\r\n\t\t\t\tJSONObject jsonobject = (JSONObject)parse.parse(output);\r\n\t\t\t\tJSONArray resultArray = (JSONArray) jsonobject.get(\"candidates\");\r\n\t\t\t\tfor(int count=0; count<1;count++) {\r\n\t\t\t\t\tJSONObject jsonobject1 = (JSONObject)resultArray.get(count);\r\n\t\t\t\t\tSystem.out.println(placeName+\" Place ID: \"+jsonobject1.get(\"place_id\"));\r\n\t\t\t\t\toutput = (String) jsonobject1.get(\"place_id\");\r\n\t\t\t\t}\r\n\t\t\t\tscanner.close();\r\n\t\t\t}\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ParseException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn output;\r\n\t}", "@Override\n public long getItemId(final int position) {\n return mBaseAdapter.getItemId(position);\n }", "@Override\n\t\t\t\tpublic void onItemSelected(AdapterView<?> parent, View v, int position,long id) {\n\t\t\t\t\tselectedStateName = parent.getItemAtPosition(position).toString();\n\t\t\t\t\tObject[] stateparmas;\n\t\t\t\t\t// checks for the selected value of item is not null\n\t\t\t\t\tif(selectedStateName!=null){\n\t\t\t\t\t\t// array of selected state name of type Object\n\t\t\t\t\t\tstateparmas = new Object[]{selectedStateName};\n\t\t\t\t\t\t// call the getCities method to get all related cities of given selected state name \n\t\t\t\t\t\tObject[] CityList = startup.getCities(stateparmas);\n\t\t\t\t\t\tList<String> citylist = new ArrayList<String>();\n\t\t \n\t\t\t\t\t\t// for loop to iterate list of city name and add to list\n\t\t\t\t\t\tfor(Object st : CityList)\n\t\t\t\t\t\t\tcitylist.add((String) st);\n\t\t\t\t\t\t\t\tif(editDetailsflag==false){\n\t\t\t\t\t\t\t\t\t// creating array adaptor to take list of city \n\t\t\t\t\t\t\t\t\tdataAdapter1 = new ArrayAdapter<String>(context,\n\t\t\t\t\t\t\t\t\t\t\tandroid.R.layout.simple_spinner_item, citylist);\n\t\t\t\t\t\t\t\t\t// set resource layout of spinner to that adaptor\n\t\t\t\t\t\t\t\t\tdataAdapter1.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\t\t\t\t\t\t\t\t\t// set Adaptor contain cities list to spinner \n\t\t\t\t\t\t\t\t\tgetcity.setAdapter(dataAdapter1);\n\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\tString city = detailsList_foredit.get(4).trim();\n\t\t\t\t\t\t\t\t\tdataAdapter1 = new ArrayAdapter<String>(context,\n\t\t\t\t\t\t\t\t\t\t\tandroid.R.layout.simple_spinner_item, citylist);\n\t\t\t\t\t\t\t\t\tdataAdapter1.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\t\t \n\t\t\t\t\t\t\t\t\t//System.out.println(\"city name\"+dataAdapter1.getItem(2).trim().);\n\t\t\t\t\t\t\t\t\tint pos = dataAdapter1.getPosition(city);\n\t\t\t\t\t\t\t\t\tgetcity.setAdapter(dataAdapter1);\n\t\t\t\t\t\t\t\t\tgetcity.setSelection(pos);\n\t\t \n\t\t \n\t\t\t\t\t\t\t\t}\n\t\t \n\t\t\t\t\t}// End of if condition\n\t\t\t\t}", "public void onItemClick(AdapterView<?> parent, View v, int position, long id) {\n\n gaTracker.send(new HitBuilders.EventBuilder()\n .setCategory(\"UX\")\n .setAction(\"Click\")\n .setLabel(\"restaurantList\")\n .build());\n\n HashMap<String, String> obj = FindListFragment.mapsHolder.get(position);\n loadRestaurant(obj.get(\"id\"));\n\n }", "@Override\n public void onPlaceSelected(Place place) {\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(place.getLatLng().latitude,\n place.getLatLng().longitude), mMap.getCameraPosition().zoom));\n\n addMarkerAtPoi(place);\n }", "@Override\n public void onPlaceSelected(Place place) {\n Log.i(TAG, \"Place: \" + place.getName() + \", \" + place.getId());\n\n move=place.getLatLng();\n moveCamera(move,15f);\n }", "private void openPlacesDialog() {\n // Ask the user to choose the place where they are now.\n DialogInterface.OnClickListener listener =\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // The \"which\" argument contains the position of the selected item.\n LatLng markerLatLng = mLikelyPlaceLatLngs[which];\n String markerSnippet = mLikelyPlaceAddresses[which];\n if (mLikelyPlaceAttributions[which] != null) {\n markerSnippet = markerSnippet + \"\\n\" + mLikelyPlaceAttributions[which];\n }\n\n // Position the map's camera at the location of the marker.\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(markerLatLng,\n DEFAULT_ZOOM));\n }\n };\n\n // Display the dialog.\n AlertDialog dialog = new AlertDialog.Builder(this)\n .setTitle(R.string.pick_place)\n .setItems(mLikelyPlaceNames, listener)\n .show();\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n // Provide results based on location picked in placepicker.\n if (requestCode == PLACE_PICKER_REQUEST) {\n if (resultCode == RESULT_OK) {\n Place place = PlacePicker.getPlace(data, this);\n String toastPlaceNameMsg = String.format(\"Place selected: %s\", place.getName());\n Toast.makeText(this, toastPlaceNameMsg, Toast.LENGTH_LONG).show();\n\n /*String toastCoordinateNameMsg = String.format(\"Coordinates selected: %s\", place.getLatLng());\n Toast.makeText(this, toastCoordinateNameMsg, Toast.LENGTH_LONG).show();*/\n\n // Store information based on place picked.\n mPlaceSelected = (String) place.getName();\n mSelectedLat = place.getLatLng().latitude;\n mSelectedLng = place.getLatLng().longitude;\n mCoordinates = place.getLatLng();\n\n // Update TextView showing location\n locationChosen.setText(mPlaceSelected);\n\n // Store Coordinates in a bundle so other fragments can use if necessary.\n coordinatesBundle = new Bundle();\n coordinatesBundle.putParcelable(CoordinatesKey, mCoordinates);\n rad = 50000;\n }\n }\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n TextView mTextViewId = view.findViewById(R.id.hidden_nearby_id);\n TextView mTextViewName = view.findViewById(R.id.text_nearby_name);\n TextView mTextViewAddress = view.findViewById(R.id.text_nearby_address);\n\n Intent intent = new Intent(LocateDoctorActivity.this, DoctorInfoActivity.class);\n\n //pass intent extra(doctorID)\n intent.putExtra(\"doctorId\", mTextViewId.getText().toString());\n intent.putExtra(\"doctorName\", mTextViewName.getText().toString());\n intent.putExtra(\"doctorAddress\", mTextViewAddress.getText().toString());\n startActivity(intent);\n\n }", "@Override\n public long getItemId(int position) {\n return getItem(position).id;\n }", "public void loadPlaces() {\n\n if (getActivity() == null || !isAdded())\n return;\n\n //clear markers\n markers.clear();\n map.clear();\n\n //add new markers\n for (int i = 0; i < places.size(); i++) {\n LatLng coordinate = new LatLng(places.get(i).gpslat, places.get(i).gpslng);\n\n //add marker with no icon\n Marker marker;\n\n marker = map.addMarker(new MarkerOptions().position(coordinate).icon(BitmapDescriptorFactory.fromBitmap(resizeMapIcons(\"pin\", 100))));\n marker.setTag(i);\n markers.add(marker);\n\n //load icon from server using the picasso library\n places.get(i).loadPinBitmap(context, i, new Place.PinLoadedListener() {\n @Override\n public void onLoaded(Bitmap bitmap, Place place, int i) {\n markers.get(i).setIcon(BitmapDescriptorFactory.fromBitmap(bitmap));\n }\n\n @Override\n public void onFailed(Place place, int i) {\n\n }\n });\n }\n\n //create list\n mAdapter = new MapPlaceAdapter(places, new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n //open ad. If ad not open attempt to open rate\n if (!((MainActivity) getActivity()).loadInterstitial()) {\n if (!AskRate()) {\n System.out.println(\"click: \" + places.get(i).id + \" \" + places.get(i).name);\n Intent intent = new Intent(context, SinglePlaceActivity.class);\n intent.putExtra(ITEM_KEY, places.get(i).id);\n startActivity(intent);\n }\n }\n }\n }, context);\n mRecyclerView.swapAdapter(mAdapter, false);\n scrollListener.resetState();\n\n //set marker to first item\n if (places.size() > 0) {\n Place p = places.get(0);\n gotoMap(p.gpslat, p.gpslng);\n }\n }", "@Override\r\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\r\n long arg3) {\n TV.setText(array[arg2]);\r\n mVehicleCode = array[arg2];\r\n if (array[arg2].equals(\"苏\")) {\r\n mChooseCityLL.setVisibility(View.GONE);\r\n }\r\n dialog.dismiss();\r\n }", "@Override\n public void onGetSuggestionResult(MKSuggestionResult mkSuggestionResult, int i) {\n if (getActivity() != null && mkSuggestionResult != null\n && mkSuggestionResult.getAllSuggestions() != null) {\n mSuggestAdapter.clear();\n List<MKSuggestionInfo> sugList = mkSuggestionResult.getAllSuggestions();\n for (MKSuggestionInfo info : sugList) {\n if (info.key != null) {\n mSuggestAdapter.add(info.key);\n }\n }\n mSuggestAdapter.notifyDataSetChanged();\n }\n }", "@Override\n\t public void onItemClick(AdapterView<?> listView, View view, int position, long id) {\n\t // Get the cursor, positioned to the corresponding row in the result set\n\t Cursor cursor = (Cursor) listView.getItemAtPosition(position);\n\t \n\t // Get the Item Number from this row in the database.\n\t String itemNumber = cursor.getString(cursor.getColumnIndexOrThrow(ItemsDbAdapter.COL_DEFINITION));\n\t \n\t // Update the parent class's TextView\n//\t itemView.setText(itemNumber);\n\t t.setText(itemNumber);\n\t Log.w(\"Quantity:\", String.valueOf(itemNumber));\n\t autoCompleteView.setText(cursor.getString(cursor.getColumnIndexOrThrow(ItemsDbAdapter.COL_WORD)));\n\t }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\tstartLocationFlag = false;\n\t\t\t}", "public void onPickButtonClick(View v) {\n try {\n PlacePicker.IntentBuilder intentBuilder =\n new PlacePicker.IntentBuilder();\n if(ll != null)\n intentBuilder.setLatLngBounds(new LatLngBounds(\n new LatLng(ll.latitude-0.002, ll.longitude-0.002),\n new LatLng(ll.latitude+0.002, ll.longitude+0.002)));\n\n Intent intent = intentBuilder.build(this);\n // Start the intent by requesting a result,\n // identified by a request code.\n startActivityForResult(intent, REQUEST_PLACE_PICKER);\n\n } catch (GooglePlayServicesRepairableException e) {\n // ...\n } catch (GooglePlayServicesNotAvailableException e) {\n // ...\n }\n }", "@Override\n public void onBindViewHolder(TravelPlacesSelectorViewHolder holder, int position) {\n final TravelPlacesModel model = getList().get(position);\n holder.txtTitle.setText(model.getName());\n holder.txtCategory.setText(model.getCategoryModel().getName());\n holder.overlay.setVisibility(isSelected(position)?View.VISIBLE:View.GONE);\n }", "@Override\n public void onItemClick(View view, int position) {\n Log.e(\"You Clicked\", mapRecyclerAdapter.getItem(position).getLocationName());\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n recipeType = (String) recipeAdapter.getRecipeType(position);\n\n }", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n Country selectedCountry;\n country = new Country();\n if (!(ssWholeSale_Imported_Country.getSelectedItem() == null)) {\n selectedCountry = (Country) ssWholeSale_Imported_Country.getSelectedItem();\n app.setImportSugarCountryOfOrigin(selectedCountry);\n\n String country_id = (String) selectedCountry.getC_country_id();\n\n country = selectedCountry;\n\n }\n }", "@Override\n public void onItemSelected(MaterialSpinner view, int position, long id, Object item) {\n\n if(item.equals(\"Other\")){\n othereditText.setVisibility(View.VISIBLE);\n serviceSelected = othereditText.getText().toString().trim();\n }else{\n serviceSelected = item+\"\";\n }\n }", "@Override\n public void onPlaceSelected(Place place) {\n String name = place.getName();\n double lat, lng;\n lat = 0;\n lng = 0;\n if (place.getLatLng() != null) {\n lat = place.getLatLng().latitude;\n lng = place.getLatLng().longitude;\n }\n fromPosition = new LatLng(place.getLatLng().latitude, place.getLatLng().longitude);\n //do something\n moveCamera(new LatLng(lat, lng), DEFAULT_ZOOM,\n \"Start Location\");\n }", "private Place getPlace(Integer idPlace) {\n\t\tPlace place = null;\n\t\tfor(Place p: places ){\n\t\t\tif(p.getId().equals(idPlace)){\n\t\t\t\tplace = p;\n\t\t\t}\n\t\t}\n\t\treturn place;\n\t}", "static void requestPlaceById(@NonNull final String placeId,\n @Nullable final ParameterRunnable<Place> responseRunnable,\n @Nullable final Runnable failureRunnable) {\n if (Controller.getGoogleApiClient() != null)\n Places.GeoDataApi.getPlaceById(Controller.getGoogleApiClient(), placeId)\n .setResultCallback(new ResultCallback<PlaceBuffer>() {\n\n /**\n * Automatically invoked upon reception of result from the Google Places\n * GeoDataApi server\n * @param places buffer containing the Place object that corresponds to\n * the submitted placeId\n */\n @Override\n public void onResult(@NonNull PlaceBuffer places) {\n // Update the UI via callbacks to methods defined in the view layer\n if (places.getStatus().isSuccess() && places.getCount() > 0\n && places.get(0) != null) {\n // Successfully retrieved Place object\n if (responseRunnable != null)\n responseRunnable.run(places.get(0));\n } else { // Did not successfully retrieve Place object\n if (failureRunnable != null)\n failureRunnable.run();\n }\n places.release(); // release buffer to prevent memory leak\n }\n });\n }", "private void pickCurrentPlace() {\n if (mMap == null) {\n return;\n }\n\n if (mLocationPermissionGranted) {\n getDeviceLocation();\n } else {\n // The user has not granted permission.\n Log.i(TAG, \"The user did not grant location permission.\");\n\n // Add a default marker, because the user hasn't selected a place.\n mMap.addMarker(new MarkerOptions()\n .title(getString(R.string.default_info_title))\n .position(mDefaultLocation)\n .snippet(getString(R.string.default_info_snippet)));\n\n // Prompt the user for permission.\n getLocationPermission();\n }\n }", "public PlacesAutocompleteTextView(@NonNull final Context context, @NonNull final String googleApiKey) {\n super(context);\n\n init(context, null, R.attr.pacv_placesAutoCompleteTextViewStyle, R.style.PACV_Widget_PlacesAutoCompleteTextView, googleApiKey, context.getString(R.string.pacv_default_history_file_name));\n }", "private Place getPlace(String identifierPlace) {\n\t\tPlace place = null;\n\t\tfor(Place p: places ){\n\t\t\tif(p.getName().equals(identifierPlace)){\n\t\t\t\tplace = p;\n\t\t\t}\n\t\t}\n\t\treturn place;\n\t}", "@Override\n\t\t\t\t\t\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\t\t\t\t\t\t\tString workOrder = commonList.get(position);\n\t\t\t\t\t\t\t\t\t\tLog.e(\"TAG\", \"Value for workOrder:\" + workOrder);\n\t\t\t\t\t\t\t\t\t\tdropWorkingOrder.setText(workOrder);\n\t\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\n\t\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\t\t\t\t\t\t\tString visualInspection = commonList.get(position);\n\t\t\t\t\t\t\t\t\t\tLog.e(\"TAG\", \"Value for visualInspection:\" + visualInspection);\n\t\t\t\t\t\t\t\t\t\tdropVisualInspect.setText(visualInspection);\n\t\t\t\t\t\t\t\t\t\t// visualInspectionText =\n\t\t\t\t\t\t\t\t\t\t// visualInspection;\n\t\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\n\t\t\t\t\t\t\t\t\t}", "private void openPlacesDialog() {\n DialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n LatLng markerLatLng = mLikelyPlaceLatLngs[which];\n String markerSnippet = mLikelyPlaceAddresses[which];\n if (mLikelyPlaceAttributions[which] != null) {\n markerSnippet = markerSnippet + \"\\n\" + mLikelyPlaceAttributions[which];\n }\n\n mMap.addMarker(new MarkerOptions()\n .title(mLikelyPlaceNames[which])\n .position(markerLatLng)\n .snippet(markerSnippet));\n\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(markerLatLng,\n DEFAULT_ZOOM));\n }\n };\n\n // Display the dialog.\n AlertDialog dialog = new AlertDialog.Builder(this)\n // .setTitle(R.string.pick_place)\n .setItems(mLikelyPlaceNames, listener)\n .show();\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\t\n\t\t\t\tConstants.VenueID = dataVenue.get(position).getId();\n\t\t\t\t\n\t\t\t\tfinish();\n\t\t\t}" ]
[ "0.77653176", "0.76055294", "0.72782856", "0.6238127", "0.62195283", "0.61986315", "0.61563915", "0.5977826", "0.59510887", "0.5914813", "0.5784226", "0.5783813", "0.5780982", "0.57801193", "0.576408", "0.5755081", "0.5740926", "0.57156", "0.5692044", "0.56620127", "0.5650833", "0.5619565", "0.5612487", "0.5599847", "0.5578112", "0.5568811", "0.55483204", "0.5517402", "0.5501601", "0.54995865", "0.5498212", "0.5464057", "0.5392729", "0.5373263", "0.535103", "0.5335993", "0.5333384", "0.5330596", "0.5274678", "0.5252578", "0.5244334", "0.52392125", "0.52322114", "0.52275914", "0.5225213", "0.52091974", "0.52039033", "0.5199412", "0.5194282", "0.51864594", "0.51864594", "0.5184433", "0.5181847", "0.51728153", "0.51701355", "0.5152865", "0.5133886", "0.5123833", "0.5110419", "0.51006526", "0.50984687", "0.5094434", "0.5075645", "0.5068413", "0.50652575", "0.5064143", "0.5052613", "0.505111", "0.5049812", "0.5049039", "0.50374746", "0.503708", "0.50242", "0.50209004", "0.5015168", "0.5007692", "0.5002683", "0.50016457", "0.4991958", "0.49913782", "0.4990266", "0.49841794", "0.49839097", "0.4983427", "0.4980199", "0.4966399", "0.49648717", "0.49648646", "0.49473447", "0.494268", "0.49317607", "0.49293643", "0.49267888", "0.49204195", "0.491281", "0.49108082", "0.49060005", "0.48892537", "0.488881", "0.48869246" ]
0.77524716
1
TODO(Developer): Check error code and notify the user of error state and resolution.
@Override public void onConnectionFailed(ConnectionResult connectionResult) { Toast.makeText(this, "Could not connect to Google API Client: Error " + connectionResult.getErrorCode(), Toast.LENGTH_SHORT).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void handleError(int code);", "void notSupported(String errorcode);", "@Override\n protected void handleErrorResponseCode(int code, String message) {\n }", "public abstract void OnError(int code);", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "@Override\n public void onError(int code, String msg) {\n }", "@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "protected abstract void setErrorCode();", "@Override\n\t\t\tpublic void onFail(int code) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onFail(int code) {\n\t\t\t\t\t\n\t\t\t}", "protected abstract void error(String err);", "public void inquiryError() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void onError(int httpcode) {\n\t\t\t\t\n\t\t\t}", "abstract void error(String error);", "@Override\n public void onResponceError(final ErrorCode errorCode) {\n }", "public void error();", "public void correctErrors();", "private void wrapError(String code, String message) {\r\n recentErrorCode = code;\r\n\r\n\t\t/* \r\n\t\t *\t<error>\r\n\t\t *\t\t<code>TEAL_8453</code>\r\n\t\t *\t\t<message>[request_id=201203082] Failed to create a process module by wrong value of a parameter(=topic_id)</message>\r\n\t\t *\t</error>\r\n\t\t *\r\n\t\t *\t<error>\r\n\t\t *\t\t<code>TEAL_4410</code>\r\n\t\t *\t\t<message>Topic ID <1000> does not exist.</message>\r\n\t\t *\t</error> \r\n\t\t*/\r\n if (\"TEAL_8453\".equals(recentServerErrorCode)) {\r\n recentErrorCode = \"APIL_0155\";\r\n recentErrorMessage = message + \": argument's not valid (server-side): \" + recentServerErrorMessage;\r\n } else if (\"TEAL_4410\".equals(recentServerErrorCode)) {\r\n recentErrorCode = \"APIL_0161\";\r\n recentErrorMessage = message + \": topic ID's not exist\";\r\n } else {\r\n recentErrorMessage = message + \" DUE TO [\" + recentServerErrorCode + \": \" + recentServerErrorMessage + \"]\";\r\n }\r\n\r\n recentServerErrorMessage = \"\";\r\n\r\n if (consoleLog) {\r\n System.out.println(\"[E!:\" + recentErrorCode + \"] \" + recentErrorMessage);\r\n }\r\n }", "private void zzScanError(int errorCode) {\n\t\tString message;\n\t\ttry {\n\t\t\tmessage = ZZ_ERROR_MSG[errorCode];\n\t\t}\n\t\tcatch (ArrayIndexOutOfBoundsException e) {\n\t\t\tmessage = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n\t\t}\n\n\t\tthrow new Error(message);\n\t}", "@Override\n\t\t\tpublic void onFailed(String message, int code) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onFailed(String message, int code) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onFailed(String message, int code) {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void error(Object message) {\n\n\t}", "@Override\n\tpublic void error(Message msg) {\n\n\t}", "@Override\n\tpublic void onError(int error, String msg) {\n\t\t\n\t}", "void onError(String code, String error);", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n } catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void yy_ScanError(int errorCode) {\n String message;\n try {\n message = YY_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = YY_ERROR_MSG[YY_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void yy_ScanError(int errorCode) {\n String message;\n try {\n message = YY_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = YY_ERROR_MSG[YY_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "@Override\n\tpublic void error(CharSequence message) {\n\n\t}", "private void zzScanError(int errorCode) {\r\n String message;\r\n try {\r\n message = ZZ_ERROR_MSG[errorCode];\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r\n }\r\n\r\n throw new Error(message);\r\n }", "private void zzScanError(int errorCode) {\r\n String message;\r\n try {\r\n message = ZZ_ERROR_MSG[errorCode];\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r\n }\r\n\r\n throw new Error(message);\r\n }", "private void zzScanError(int errorCode) {\r\n String message;\r\n try {\r\n message = ZZ_ERROR_MSG[errorCode];\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r\n }\r\n\r\n throw new Error(message);\r\n }", "private void zzScanError(int errorCode) {\r\n String message;\r\n try {\r\n message = ZZ_ERROR_MSG[errorCode];\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r\n }\r\n\r\n throw new Error(message);\r\n }", "private void zzScanError(int errorCode) {\r\n String message;\r\n try {\r\n message = ZZ_ERROR_MSG[errorCode];\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r\n }\r\n\r\n throw new Error(message);\r\n }", "@Override\r\n\t\t\tpublic void onError(int error) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void onError(String err) {\n\t\t\r\n\t}", "private void fail(int code, String message) {\n // Error object\n JSONObject errorObj = new JSONObject();\n try {\n errorObj.put(\"code\", code);\n errorObj.put(\"message\", message);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n PluginResult err = new PluginResult(PluginResult.Status.ERROR, errorObj);\n err.setKeepCallback(true);\n callbackContext.sendPluginResult(err);\n }", "@Override\n public void onError(Status status) {\n }", "int getErrcode();", "@Override\n public void onError() {\n\n }", "private void handleErrInSuccess(int errCode) {\n\t\t// Consider process with error here (display message...)\n\t\t// switch (errCode) {\n\t\t// case Constants.ErrorCode.ERR_INCORRECT_ID:\n\t\t// case Constants.ErrorCode.ERR_INCORRECT_PWD:\n\t\t// case Constants.ErrorCode.ERR_INCORRECT_TOKEN:\n\t\t// case Constants.ErrorCode.ERR_INCORRECT_DIGI_ID:\n\t\t// case Constants.ErrorCode.ERR_INCORRECT_PARAM:\n\t\t// case Constants.ErrorCode.ERR_NO_DATA:\n\t\t// break;\n\t\t// default:\n\t\t// break;\n\t\t// }\n\t\t// Response error to caller\n\t\tErrorMessage errMsg = new ErrorMessage();\n\t\terrMsg.setResultCode(errCode);\n\t\terrMsg.setMessage(\"\");\n\t\t_responseHandler.onError(errMsg);\n\t}", "private void showErrorDialog(int errorCode) {\n\t\t\n }", "protected void handleError(String error, boolean fromSysErr) {}", "@Override\r\n\t\t\tpublic void onError(int error) {\n\r\n\t\t\t}", "@Override\r\n\tpublic void displayError(EntityPropertyCode code, String message) {\n\t}", "public void onReceivedError();", "public void errorFromNative(int errCode) {\n //stop pushing stream\n stopPush();\n if (liveStateChangeListener != null && activity != null) {\n String msg = \"\";\n switch (errCode) {\n case ERROR_VIDEO_ENCODER_OPEN:\n msg = activity.getString(R.string.error_video_encoder);\n break;\n case ERROR_VIDEO_ENCODER_ENCODE:\n msg = activity.getString(R.string.error_video_encode);\n break;\n case ERROR_AUDIO_ENCODER_OPEN:\n msg = activity.getString(R.string.error_audio_encoder);\n break;\n case ERROR_AUDIO_ENCODER_ENCODE:\n msg = activity.getString(R.string.error_audio_encode);\n break;\n case ERROR_RTMP_CONNECT_SERVER:\n msg = activity.getString(R.string.error_rtmp_connect);\n break;\n case ERROR_RTMP_CONNECT_STREAM:\n msg = activity.getString(R.string.error_rtmp_connect_strem);\n break;\n case ERROR_RTMP_SEND_PACKET:\n msg = activity.getString(R.string.error_rtmp_send_packet);\n break;\n default:\n break;\n }\n liveStateChangeListener.onError(msg);\n }\n }", "void setError();", "@Override\n public void onError(Status status) {\n }", "@Override\n public void OnFailed(String error)\n {\n\n }", "public LiquidoException(Errors errCode, String msg) {\n\tsuper(msg);\n\tthis.error = errCode;\n }", "private void sendOldError(Exception e) {\n }", "@Override\n\tpublic void error(Marker marker, Message msg) {\n\n\t}", "public void dealwitherrors(int retval)\n \t\t{\n \t\t\tmProgBar.dismiss();\n \t\t\tswitch (retval) {\n \t\t\tcase -1:\n \t\t\t\tgetDialog(\"I'm sorry, but please retype the authentication code.\"\n \t\t\t\t\t\t+ \"The one you entered could not be verified\");\n \t\t\t\tbreak;\n \t\t\tcase -2:\n \t\t\t\tgetDialog(\"I'm sorry, but please retype your NetID.\"\n \t\t\t\t\t\t+ \"The one you entered could not be verified\");\n \t\t\t\tbreak;\n \t\t\tcase -3:\n \t\t\tcase -4:\n\t\t\tcase -5:\n\t\t\t\tif(exceptionalMessage.compareTo(\"\") != 0)\n\t\t\t\t\tgetDialog(exceptionalMessage);\n\t\t\t\telse\n\t\t\t\t\tgetDialog(\"We don't know what went wrong. Please make\" +\n\t\t\t\t\t\t\t\" sure all of the fields are fill in correctly\" +\n\t\t\t\t\t\t\t\". Thanks!\");\n\t\t\t\tbreak;\n \t\t\tdefault:\n\t\t\t\tgetDialog(\"I'm sorry, but an unknown error occurred. \"\n\t\t\t\t\t\t+ \"Please call dispatch/the supervisor if this persists.\");\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}", "public void error(Exception e);", "@Override\n\tprotected void reqError(Message msg) {\n\t\tsuper.reqError(msg);\n\t\tswitch (msg.arg1) {\n\t\tcase FusionCode.REQUEST_QRYGRPMEMBER:\n\t\tcase FusionCode.REQUEST_ADDRINGTOGROUP:\n\t\tcase FusionCode.REQUEST_ADDNEWGROUP:\n\t\tcase FusionCode.REQUEST_QRYGRP:\n\t\t}\n\t\tstopPbarU();\n\t}", "@Override\n\tpublic void setWrongError() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void onErrorResponse(String errorMessage) {\n\r\n\t\t\t}", "@Override\n\tpublic void error(Marker marker, MessageSupplier msgSupplier) {\n\n\t}", "@Override\n public void onError(Status status) {\n }", "@Override\n public void onError(Status status) {\n }", "void errorResponse( String error );", "public void errorOccured(String errorMessage, Exception e);" ]
[ "0.7270686", "0.7251273", "0.7128089", "0.71085995", "0.69722676", "0.69100237", "0.6820016", "0.6817764", "0.67877114", "0.67706555", "0.67592007", "0.675071", "0.67452073", "0.67305857", "0.67294455", "0.6718882", "0.66334605", "0.6560256", "0.65439934", "0.65090275", "0.65090275", "0.65090275", "0.64769274", "0.64732605", "0.64500976", "0.64409256", "0.6403547", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6390613", "0.6382399", "0.6382399", "0.63795793", "0.6376428", "0.6376428", "0.6376428", "0.6376428", "0.6376428", "0.6370057", "0.63534147", "0.6348115", "0.63470757", "0.63453174", "0.6338497", "0.6327564", "0.63071615", "0.63064766", "0.6300647", "0.62569445", "0.6248615", "0.6239819", "0.6238108", "0.6218345", "0.6212344", "0.61949724", "0.6190597", "0.61901724", "0.6187037", "0.61557615", "0.6148947", "0.61486334", "0.6142205", "0.6138174", "0.6133949", "0.6133949", "0.6123541", "0.61234456" ]
0.0
-1
Retorna um pedido por ID.
@GetMapping(value = "/{id}") public ResponseEntity<Response<PedidoDto>> listarPorId(@PathVariable("id") Long id) { log.info("Buscando pedido por ID: {}", id); Response<PedidoDto> response = new Response<PedidoDto>(); Optional<Pedido> pedido = this.pedidoService.buscarPorId(id); if (!pedido.isPresent()) { log.info("Pedido não encontrado para o ID: {}", id); response.getErrors().add("Pedido não encontrado para o id " + id); return ResponseEntity.badRequest().body(response); } response.setData(pedidoService.converterPedidoDto(pedido.get())); return ResponseEntity.ok(response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getIdPedido() {\r\n\t\treturn idPedido;\r\n\t}", "BeanPedido getPedido(UUID idPedido);", "@Override\n public long getPartidoId() {\n return _partido.getPartidoId();\n }", "@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n\t\tpublic ResponseEntity<Optional<Pedido>> find(@PathVariable Integer id) {\n\t\t\tOptional<Pedido> obj = service.find(id);\n\t\t\treturn ResponseEntity.ok().body(obj);\n\t\t}", "public Pedido buscarPedidos(Long id) {\n\t\treturn em.find(Pedido.class, id);\n\t}", "public n501070324_PedidoAssistencia getPedido(int id) {\n for (n501070324_PedidoAssistencia p : getList()) {\n if (p.getNumero() == id) {\n return p;\n }\n }\n\n return null; // not found\n }", "Optional<ItemPedido> findOne(Long id);", "public Paciente obtenerPorId(long id) {\n return pacienteRepository.findById(id);\n }", "@Override\n\tpublic ExamenDTO obtenerPorId(Integer id) {\n\t\treturn null;\n\t}", "@Override\n\t@Transactional(readOnly = true)\n\tpublic ProdutoPedido buscarPorId(Long id) {\n\t\treturn dao.findById(id);\n\t}", "public int getId_cabecera_pedido() {\n return id_cabecera_pedido;\n }", "public Long getId() {\r\n return idComentario;\r\n }", "RespuestaRest<ParqueaderoEntidad> consultar(String id);", "public Long getId()\r\n {\r\n return id;\r\n }", "@Override\n public long getPrimaryKey() {\n return _partido.getPrimaryKey();\n }", "public Long getId()\n {\n return id;\n }", "public Long getId()\n {\n return id;\n }", "public Long getId()\n {\n return id;\n }", "public Commande getSingleCommandes(Integer theId) {\n return commandeDao.findById(theId).get();\r\n }", "public long getDossierId();", "public Optional<Cliente>obtenerId(Long id){\n return clienteRepositori.findById(id);\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() \r\n {\r\n return id;\r\n }", "public int getId() {\n return orderID;\n }", "@Override\n\tpublic Optional<Trabajador> listarId(Integer id) {\n\t\treturn null;\n\t}", "public int getPed() {\n return ped;\n }", "@Override\n public Paciente procurarPorId(int id) {\n EntityManagerFactory factory = Persistence.createEntityManagerFactory(\"vesaliusPU\"); \n EntityManager em = factory.createEntityManager();\n Paciente paciente = em.find(Paciente.class, id);\n em.close();\n factory.close();\n return (paciente);\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }", "public Long getId() {\n return id;\n }" ]
[ "0.7094651", "0.70320255", "0.65670127", "0.6320557", "0.6278179", "0.6062296", "0.60563815", "0.6044965", "0.60434973", "0.6035983", "0.6035696", "0.6028832", "0.6012237", "0.59930027", "0.5991311", "0.59706146", "0.59706146", "0.59706146", "0.5969153", "0.59626794", "0.5957936", "0.5941358", "0.5941358", "0.5941358", "0.5941358", "0.5941358", "0.5941358", "0.5941358", "0.5941358", "0.5941358", "0.5941358", "0.5941358", "0.5941358", "0.5941358", "0.5941358", "0.5941358", "0.5941358", "0.5941358", "0.5941358", "0.5941358", "0.5941358", "0.5941358", "0.5941358", "0.5941358", "0.5941358", "0.5941358", "0.5941358", "0.59389126", "0.59301984", "0.59247416", "0.5922415", "0.59219563", "0.59170496", "0.59170496", "0.59170496", "0.59170496", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367", "0.59149367" ]
0.6064209
5
Adiciona um novo pedido.
@PostMapping public ResponseEntity<Response<PedidoDto>> adicionar(@Valid @RequestBody PedidoDto pedidoDto, BindingResult result) throws ParseException { log.info("Adicionando pedido: {}", pedidoDto.toString()); Response<PedidoDto> response = new Response<PedidoDto>(); pedidoService.validarUsuario(pedidoDto, result); Pedido pedido = pedidoService.converterDtoParaPedido(pedidoDto, result); if (result.hasErrors()) { log.error("Erro validando pedido: {}", result.getAllErrors()); result.getAllErrors().forEach(error -> response.getErrors().add(error.getDefaultMessage())); return ResponseEntity.badRequest().body(response); } pedido = this.pedidoService.persistir(pedidoDto, pedido); response.setData(pedidoService.converterPedidoDto(pedido)); return ResponseEntity.ok(response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void hacerPedido(){\n this.sucursal.procesarPedido(this.pedido, this.id);\n this.pedido = new Integer[5];\n contadorPedido = 0;\n }", "public void agregarPedido(PedidoIndividual pedido) throws QRocksException;", "public OrdemDeServico inserir (OrdemDeServico servico) {\n\t\tservico.setId((Long) null);\n\t\treturn repoOrdem.save(servico);\n\t}", "public void pedir(int idTorta) throws Exception{\n if(contadorPedido == 5){\n throw new Exception(\"Pedido lleno\");\n } else {\n this.pedido[contadorPedido] = idTorta;\n this.contadorPedido++;\n }\n }", "@Override\n public DetalleVenta add(DetalleVenta detalleVenta) {\n return detalleVentaJpaRepository.save(detalleVenta);\n }", "@Override\n\tpublic void salvar(ProdutoPedido produtoPedido) {\n\t\tdao.save(produtoPedido);\n\t}", "void adicionaComentario(Comentario comentario);", "public void insert(ProdutoPedido produtoPedido) {\n\t\tem.getTransaction().begin();\n\t\tem.persist(produtoPedido);\n\t\tem.getTransaction().commit();\n\t\tem.close();\n\t\temf.close();\n\t}", "@Override\n\tpublic void delete(Pedido arg0) {\n\n\t}", "ParqueaderoEntidad agregar(ParqueaderoEntidad parqueadero);", "public static void setPedido(Pedido pPedido){\n\t\tmiPedido = pPedido;\n\t}", "@Transactional\n public void guardarPedido(PedidoMaterial pedido){\n \n pedidoMaterialRepository.save(pedido);\n }", "public Pedido(int id_pedido, Mesa mesa, Time hora, Usuario usuario, int cancelado, Date fecha) {\n this.id_pedido = id_pedido;\n this.mesa = mesa;\n this.hora = hora;\n this.usuario = usuario;\n this.cancelado = cancelado;\n this.fecha = fecha;\n }", "Lancamento persistir(Lancamento lancamento);", "@Override\n\tpublic boolean adicionar(Veiculo veiculo) {\n\t\treturn false;\n\t}", "private void añadirEnemigo() {\n\t\t\n\t\tif(enemigo.isVivo()==false){\n\t\t\tint k;\n\t\t\tk = (int)(Math.random()*1000)+1;\n\t\t\tif(k<=200){\n\t\t\t\tif(this.puntuacion<10000){\n\t\t\t\t\tenemigo.setTipo(0);\n\t\t\t\t\tenemigo.setVivo(true);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tenemigo.setTipo(1);\n\t\t\t\t\tenemigo.setVivo(true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void addAmigo() {\n\t\tusuarioidentificado.enviar_solicitud(Parametros.getIdUsuario(), amigo.getIdUsuario());\n\t}", "@Override\n\tpublic ResponsePersist persist(Produto entity, ProdutoService service, Object role) {\n\t\treturn null;\n\t}", "com.soa.SolicitarServicioDocument.SolicitarServicio addNewSolicitarServicio();", "public void add(T conteudo){\n No<T> novoNo = new No(conteudo);\n if( this.isEmpty() ){\n this.referenciaEntrada = novoNo;\n }else {\n No<T> noAuxiliar = referenciaEntrada;\n for (int i = 0; i < this.size() - 1; i++) {\n noAuxiliar = noAuxiliar.getProximoNo();\n }\n noAuxiliar.setProximoNo(novoNo);\n }\n }", "@Override\n public void salvar(Object pacienteParametro) {\n Paciente paciente;\n paciente = (Paciente) pacienteParametro;\n EntityManagerFactory factory = Persistence.createEntityManagerFactory(\"vesaliusPU\"); \n EntityManager em = factory.createEntityManager();\n em.getTransaction().begin();\n if(paciente.getIdPaciente() == 0){\n em.persist(paciente);\n }else{\n em.merge(paciente);\n }\n em.getTransaction().commit();\n em.close();\n factory.close();\n }", "public static void inserir(Venda venda)\r\n throws Exception {\r\n venda.setId(totalVenda++);\r\n listaVenda.add(venda);\r\n }", "public void crearEntidad() throws EntidadNotFoundException {\r\n\t\tif (validarCampos(getNewEntidad())) {\r\n\t\t\tif (validarNomNitRepetidoEntidad(getNewEntidad())) {\r\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_WARN, \"Advertencia: \", \"Nombre, Nit o Prejifo ya existe en GIA\"));\r\n\t\t\t} else {\r\n\t\t\t\tif (entidadController.crearEntidad(getNewEntidad())) {\r\n\t\t\t\t\tmensajeGrow(\"Entidad Creada Satisfactoriamente\", getNewEntidad());\r\n\t\t\t\t\tRequestContext.getCurrentInstance().execute(\"PF('entCrearDialog').hide()\");\r\n\t\t\t\t\tsetNewEntidad(new EntidadDTO());\r\n\t\t\t\t\tresetCodigoBUA();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmensajeGrow(\"Entidad No Fue Creada\", getNewEntidad());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlistarEntidades();\r\n\t\t\t// newEntidad = new EntidadDTO();\r\n\t\t\t// fechaActual();\r\n\t\t}\r\n\r\n\t}", "public ComentPregunta addComentario(String c, Pregunta p, Usuario autor);", "@RequestMapping(method = RequestMethod.POST)\n\t\tpublic ResponseEntity<Void> inserir(@RequestBody Pedido obj) {\n\t\t\tobj = service.insere(obj);\n\t\t\tURI uri = ServletUriComponentsBuilder.fromCurrentRequest().path(\"/{id}\").buildAndExpand(obj.getId()).toUri();\n\t\t\treturn ResponseEntity.created(uri).build();\n\t\t}", "public void adiciona(Servidor novo) {\n String sql = \"insert into servidor \"\n + \"(nome, email, codcampus, cargo, papel, login, senha, adm, logado, definitivo)\"\n + \" values (?,?,?,?,?,?,?,?,?,?)\";\n\n try (Connection con = new ConnectionFactory().Conn()) {\n PreparedStatement stmt;\n stmt = con.prepareStatement(sql);\n\n stmt.setString(1, novo.getNome());\n stmt.setString(2, novo.getEmail());\n stmt.setInt(3, novo.getCampus());\n stmt.setString(4, novo.getCargo());\n stmt.setString(5, novo.getPapel());\n stmt.setString(6, novo.getLogin());\n stmt.setString(7, novo.getSenha());\n stmt.setInt(8, novo.isAdm());\n stmt.setInt(9, novo.isLogado());\n stmt.setInt(10, novo.isSystem());\n\n stmt.execute();\n stmt.close();\n\n JOptionPane.showMessageDialog(null, \"Servidor adicionado\", \"\", JOptionPane.INFORMATION_MESSAGE);\n\n } catch (SQLException e) {\n JOptionPane.showMessageDialog(null, \"Erro ao Adicionar\", \"\", JOptionPane.ERROR_MESSAGE);\n throw new RuntimeException(e);\n }\n }", "@Override\r\n public void inserirQuestaoDiscursiva(QuestaoDiscursiva questaoDiscursiva)\r\n throws Exception {\n rnQuestaoDiscursiva.inserir(questaoDiscursiva);\r\n\r\n }", "@Override\n\tpublic void SavePais(Pais elemento) {\n\t\tgetSession().persist(elemento);\n\t\t\n\t}", "@Override\n\tpublic Oglas addPonuda(Ponuda p, Long id) {\n\t\tOglas oglas = repository.findOne(id);\n\t\toglas.getPonudeZaOglas().add(p);\n\t\treturn repository.save(oglas);\n\t}", "public void insert(Service servico){\n Database.servico.add(servico);\n }", "@Override\n\tpublic void insertarServicio(Servicio nuevoServicio) {\n\t\tservicioDao= new ServicioDaoImpl();\n\t\tservicioDao.insertarServicio(nuevoServicio);\n\t\t\n\t\t\n\t}", "@Override\n\tpublic <S extends Pedido> S save(S arg0) {\n\t\treturn null;\n\t}", "private static void crearPedidoGenerandoOPP() throws RemoteException {\n\n\t\tlong[] idVariedades = { 25 };\n\t\tint[] cantidades = { 7 };\n\t\tPedidoClienteDTO pedido = crearPedido(\"20362134596\", \"test 2\", idVariedades, cantidades);\n\n\t\tpedido = PedidoController.getInstance().crearPedido(pedido).toDTO();\n\n\t\tPedidoController.getInstance().cambiarEstadoPedidoCliente(pedido.getNroPedido(), EstadoPedidoCliente.ACEPTADO);\n\t}", "public Paciente agregar(PacienteDTO nuevoPaciente) {\n\n int valor_hipertension = nuevoPaciente.getHipertension().equalsIgnoreCase(\"Si\") ? 100 : 0;\n int valor_mareo = nuevoPaciente.getMareo().equalsIgnoreCase(\"Si\") ? 100 : 0;\n int valor_presion = medirPresion(nuevoPaciente.getPresion());\n int valor_fiebre = medirFiebre(nuevoPaciente.getFiebre());\n int valor_edad = medirEdad(nuevoPaciente.getEdad());\n int puntaje = valor_mareo + valor_edad + valor_presion + valor_fiebre + valor_hipertension;\n\n Date date = new Date(new java.util.Date().getTime());\n Color color = colorRepository.getColorBetweenRange(puntaje);\n\n Paciente paciente = new Paciente();\n paciente.setName(nuevoPaciente.getNombre());\n paciente.setDni(nuevoPaciente.getDni());\n paciente.setColor(color);\n paciente.setScore(puntaje);\n paciente.setStatus(cantidadSiendoAtendidos(color) < color.getCant_max_patient() ? \"Siendo atendido\" : \"En espera\");\n paciente.setDate(date);\n Paciente elemento = pacienteRepository.saveAndFlush(paciente);\n return elemento;\n }", "public void adicionar(Pessoa pessoa){\n adicionar(raiz, pessoa);\n }", "public void adiciona(Produto produto) {\n\t\tthis.produtos.addAll(produtos);\n\t}", "public void addPrimero(Object obj) {\n if (cabeza == null) { //Si la cabeza es nula, entoces se creará un nuevo nodo donde le pasaremos el valor de obj\n cabeza = new Nodo(obj);\n } else { //Si no es nula, signifa que el valor que se ingrese, pasara a ser la nueva cabeza\n Nodo temp = cabeza; //Metemos la cabeza en un nodo temporal\n Nodo nuevo = new Nodo(obj); //Creamos un nuevo nodo, que no está enlazado\n nuevo.enlazarSiguiente(temp); //Y el nuevo nodo lo enlazamos a el nodo Temp, que contenia el valor anterior de la otra cabeza\n cabeza = nuevo; //Y ahora le decimos que la cabeza sera nuevo\n }\n size++; //Cada vez que agreguemos un nuevo nodo el tamaño de nuestra lista tendra que aumentar\n }", "public int getIdPedido() {\r\n\t\treturn idPedido;\r\n\t}", "private void adicionar(No novo, Pessoa pessoa) {\n if(raiz == null)\n raiz = new No(pessoa);\n else{\n if(pessoa.getIdade()<novo.getPessoa().getIdade()){\n if(novo.getEsquerda() != null)\n adicionar(novo.getEsquerda() , pessoa);\n else\n novo.setEsquerda(new No(pessoa));\n }else{\n if(novo.getDireita() !=null)\n adicionar(novo.getDireita(), pessoa);\n else\n novo.setDireita(new No(pessoa));\n }\n }\n \n }", "public void agregarAlFinal(int edad){\n if(!estaVacia()){\n fin.siguiente = new Nodo(edad);\n fin=fin.siguiente;\n }else{\n fin=inicio = new Nodo(edad);\n }\n }", "public void insertar(Proceso p) {\n\t\tif (p == null) {\n\t\t\treturn;\n\t\t}\n\t\tProceso nuevo = new Proceso();\n\t\tnuevo.rafaga = p.rafaga;\n\t\tnuevo.tllegada = p.tllegada;\n\t\tnuevo.IdCola = this.IdCola;\n\t\tnuevo.NombreCola = this.NombreCola;\n\t\tnuevo.rrejecutada = p.rrejecutada;\n\t\tnuevo.ColaProviene = p.ColaProviene;\n\t\tint tamaņo = p.id.length();\n\t\tif (tamaņo == 1) {\n\t\t\tnuevo.id = p.id + \"1\";\n\t\t} else {\n\t\t\tchar id = p.id.charAt(0);\n\t\t\tint numeroId = Integer.parseInt(String.valueOf(p.id.charAt(1))) + 1;\n\t\t\tnuevo.id = String.valueOf(id) + String.valueOf(numeroId);\n\t\t}\n\t\tif (raiz.sig == raiz) {\n\t\t\traiz.sig = nuevo;\n\t\t\tcabeza = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\tnuevo.padre = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t} else {\n\t\t\tProceso aux = raiz.padre;\n\t\t\taux.sig = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t\tnuevo.padre = aux;\n\t\t}\n\t\tthis.numProcesos++;\n\t\tthis.rafagaTotal += nuevo.rafaga;\n\t\tthis.Ordenamiento();\n\t}", "@Override\n\tpublic DAOPedidosMedicos CrearPedidoMedicos() {\n\t\treturn null;\n\t}", "public void insertar(Proceso p, int tiempo) {\n\t\tif (p == null || tiempo < 0) {\n\t\t\treturn;\n\t\t}\n\t\tProceso nuevo = new Proceso();\n\t\tnuevo.rafaga = p.rafaga;\n\t\tnuevo.id = p.id;\n\t\tnuevo.IdCola = this.IdCola;\n\t\tnuevo.NombreCola = this.NombreCola;\n\t\tnuevo.tllegada = tiempo;\n\t\tnuevo.ColaProviene = p.ColaProviene;\n\n\t\tif (raiz.sig == raiz) {\n\t\t\traiz.sig = nuevo;\n\t\t\tcabeza = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\tnuevo.padre = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t} else {\n\t\t\tProceso aux = raiz.padre;\n\t\t\taux.sig = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t\tnuevo.padre = aux;\n\t\t}\n\t\tthis.numProcesos++;\n\t\tthis.rafagaTotal += nuevo.rafaga;\n\t\tthis.Ordenamiento();\n\t}", "void adicionar(Object o);", "ParqueaderoEntidad agregar(String nombre);", "public Paciente add(Paciente codigo) {\r\n\t\t\tlogger.debug(\"Adding new codigo\");\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\t// Find suitable id\r\n\t\t\t\tLong newId = 0L;\r\n\t\t\t\tBoolean hasFoundSuitableId = false;\r\n\t\t\t\t/*while(hasFoundSuitableId == false) {\r\n\t\t\t\t\tfor (int i=0; i <codigos.size(); i++) {\r\n\t\t\t\t\t\tif (codigos.get(i).getId().longValue() == newId.longValue()) {\r\n\t\t\t\t\t\t\tnewId++;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Exit while loop\r\n\t\t\t\t\t\tif(i==codigos.size()-1) {\r\n\t\t\t\t\t\t\tlogger.debug(\"Assigning id: \" + newId);\r\n\t\t\t\t\t\t\thasFoundSuitableId = true;\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\t// Assign new id\r\n\t\t\t\tcodigo.setId(newId);\r\n\t\t\t\t// Add to list\r\n\t\t\t\tcodigos.add(codigo);*/\r\n\t\t\t\t\r\n\t\t\t\tlogger.debug(\"Added new codigo\");\r\n\t\t\t\treturn codigo;\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tlogger.error(e);\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}", "@Override\n public void agregarObsevadorFinDeJuego(ObservadorDeFinJuego observador)\n {\n this.observadoresFinJuegos.add(observador);\n }", "public void addPedidoDetalle(biz.belcorp.www.canonico.ffvv.vender.TPedidoDetalle param){\n if (localPedidoDetalle == null){\n localPedidoDetalle = new biz.belcorp.www.canonico.ffvv.vender.TPedidoDetalle[]{};\n }\n\n \n\n java.util.List list =\n org.apache.axis2.databinding.utils.ConverterUtil.toList(localPedidoDetalle);\n list.add(param);\n this.localPedidoDetalle =\n (biz.belcorp.www.canonico.ffvv.vender.TPedidoDetalle[])list.toArray(\n new biz.belcorp.www.canonico.ffvv.vender.TPedidoDetalle[list.size()]);\n\n }", "public void agregarAlInicio( int elemento ) {\n\t\tif( !estaVacia() ) {\n\t\t\tinicio = new NodoDoble(elemento, inicio, null);\n\t\t\tinicio.siguiente.anterior = inicio;\n\t\t} else {\n\t\t\tinicio = fin = new NodoDoble(elemento);\n\t\t}\n\t}", "@POST\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Consumes(MediaType.APPLICATION_JSON)\n\n\tpublic Response addServicioDeAlojamiento(ServicioDeAlojamiento servicioDeAlojamiento) {\n\n\t\ttry{\n\t\t\tAlohAndesTransactionManager tm = new AlohAndesTransactionManager( getPath( ) );\n\t\t\ttm.addServicioDeAlojamiento(servicioDeAlojamiento);\n\t\t\treturn Response.status(200).entity(servicioDeAlojamiento).build();\n\t\t}\n\t\tcatch( Exception e )\n\t\t{\n\t\t\treturn Response.status( 500 ).entity( doErrorMessage( e ) ).build( );\n\t\t}\n\t}", "public void agregarAlInicio(int edad){\n //CREAR UN NUEVO NODO AL INICIO DE LA LISTA\n inicio = new Nodo(edad,inicio);\n if(fin==null){\n fin=inicio;\n }\n }", "@Override\n\tpublic void alterar(Parcela entidade) {\n\n\t}", "public void insertOption(Opcion o){\n\t\topciones.persist(o);\n\t}", "@Override\n\tpublic ResponsePersist persist(Produto entity, ProdutoService service, List<?> objects, Object role) {\n\t\treturn null;\n\t}", "public void setPedidoSolicitado(Pedido pedidoSolicitado) {\n\t\tthis.pedidoSolicitado = pedidoSolicitado;\n\t}", "@Override\r\n public Assunto persistir(Assunto assunto) {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n em.getTransaction().begin();\r\n try {\r\n assunto = em.merge(assunto);\r\n em.getTransaction().commit();\r\n System.out.println(\"Registro Assunto gravado com sucesso\");\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return assunto;\r\n }", "private static void crearPedidoConStockDeVariedades() throws RemoteException {\n\t\tlong[] idVariedades = { 25, 33 };\n\t\tint[] cantidades = { 2, 3 };\n\t\tPedidoClienteDTO pedido = crearPedido(\"20362134596\", \"test 1\", idVariedades, cantidades);\n\n\t\tpedido = PedidoController.getInstance().crearPedido(pedido).toDTO();\n\n\t\tPedidoController.getInstance().cambiarEstadoPedidoCliente(pedido.getNroPedido(), EstadoPedidoCliente.ACEPTADO);\n\t}", "public void persistir(Cliente cliente){\n }", "public void adicionaExame(ExameColposcopico exame) {\n\t\tEntityManager entityManager = ExameColposcopioFactory.carregaBanco();\n//\t\thttps://www.guj.com.br/t/hibernate-jsf-erro-ao-persistir-objeto/337939\n\t\tif (!entityManager.getTransaction().isActive()) \n\t\t\tentityManager.getTransaction().begin();\n\t\tentityManager.persist(exame);\n\t\tentityManager.getTransaction().commit();\n\t}", "@Override\r\npublic int create(Detalle_pedido d) {\n\treturn detalle_pedidoDao.create(d);\r\n}", "@Override\n public Paciente create(Paciente paciente) {\n return this.pacienteRepository.save(paciente);\n }", "public void add(n501070324_PedidoAssistencia assistencia) {\n if (assistencia.getNumero() == Integer.MIN_VALUE) {\n assistencia.setNumero(++nextID);\n } else {\n if (assistencia.getNumero() > nextID) {\n nextID = assistencia.getNumero();\n }\n }\n\n listPedidosAssistencia.add(assistencia);\n }", "public Contexto agregarArticulo(Contexto articulo){\n\t\t\n\t\t//Creamos una nueva transacción y la iniciamos.\n\t\tTransactionManager.getInstance().nuevaTransaccion();\n\t\tTransactionManager.getInstance().getTransaccion().start();\n\t\t\n\t\t//Montamos el Transfer\n\t\tTransferVideojuego tVideojuego = FactoriaDAO.getInstance().createDAOVideojuego().searchId(articulo.getEvento());\n\t\t\n\t\t//Si el juego no existe y no esta activo\n\t\tif(tVideojuego == null || !tVideojuego.getActivo()){\n articulo = null;\n TransactionManager.getInstance().getTransaccion().rollback();\n }\n else{\n TransactionManager.getInstance().getTransaccion().commit();\n }\n\t\t\n\t\t//Finalmente cerramos la transaccion\n\t\tTransactionManager.getInstance().eliminaTransaccion();\n\t\t\n\t\treturn articulo;\n \n \n\t}", "@Override\n\tpublic MensajeBean inserta(Tramite_informesem nuevo) {\n\t\treturn tramite_informesemDao.inserta(nuevo);\n\t}", "public void add(LDCEstudante estudante){\n lista.add(estudante);\n }", "@Override\n\tpublic void AlterarCartao(EntidadeDominio entidade) throws SQLException {\n\t\t\n\t}", "@Override\n public void adicionar(EntidadeBase entidade) throws Exception {\n setOperacao(OPERACAO_ADICIONAR);\n\n // validar se os campos vêm todos bem preenchidos\n boolean isValido = validarCampos(entidade);\n\n // se estiver bem preenchido,\n // avança para a adição\n if (isValido) {\n // gerar o codigo para a nova enfermaria\n String novoCodigo = gerarCodigo();\n entidade.setCodigo(novoCodigo);\n\n lista.put(novoCodigo, entidade);\n } else {\n // senão, retorna erro\n throw new AdicionarEntidadeException();\n }\n }", "Persistencia() {\n\t}", "Motivo create(Motivo motivo);", "public void adicionar(ItemProduto item) {\n\t\titens.add(item);\n\t}", "public void agregarAlInicio(String valor){\r\n // Define un nuevo nodo.\r\n Nodo nuevo = new Nodo();\r\n // Agrega al valor al nodo.\r\n nuevo.setValor(valor);\r\n // Consulta si la lista esta vacia.\r\n if (esVacia()) {\r\n // Inicializa la lista agregando como inicio al nuevo nodo.\r\n inicio = nuevo;\r\n // Caso contrario va agregando los nodos al inicio de la lista.\r\n } else{\r\n // Une el nuevo nodo con la lista existente.\r\n nuevo.setSiguiente(inicio);\r\n // Renombra al nuevo nodo como el inicio de la lista.\r\n inicio = nuevo;\r\n }\r\n // Incrementa el contador de tamaño de la lista.\r\n tamanio++;\r\n }", "public void add(Profilo profilo) {\r\n\t\tlogger.debug(\"Aggiungo un nuovo Profilo\");\r\n\t\t\t\r\n\t\t//Recupero la sessione da Hibernate\r\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\t\t\r\n\t\t//Salvo il Profilo\r\n\t\tsession.save(profilo);\r\n\t}", "void incluir(Entidade entidade);", "public void InsertarProceso(Proceso nuevo) {\n\t\tif (raiz.sig == raiz) {\n\t\t\traiz.sig = nuevo;\n\t\t\tthis.cabeza = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\tnuevo.padre = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t} else {\n\t\t\tProceso aux = raiz.padre;\n\t\t\taux.sig = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t\tnuevo.padre = aux;\n\t\t}\n\t\tthis.numProcesos++;\n\t}", "public void agregarAlFinal(String valor){\r\n // Define un nuevo nodo.\r\n Nodo nuevo = new Nodo();\r\n // Agrega al valor al nodo.\r\n nuevo.setValor(valor);\r\n // Consulta si la lista esta vacia.\r\n if (esVacia()) {\r\n // Inicializa la lista agregando como inicio al nuevo nodo.\r\n inicio = nuevo;\r\n // Caso contrario recorre la lista hasta llegar al ultimo nodo\r\n //y agrega el nuevo.\r\n } else{\r\n // Crea ua copia de la lista.\r\n Nodo aux = inicio;\r\n // Recorre la lista hasta llegar al ultimo nodo.\r\n while(aux.getSiguiente() != null){\r\n aux = aux.getSiguiente();\r\n }\r\n // Agrega el nuevo nodo al final de la lista.\r\n aux.setSiguiente(nuevo);\r\n }\r\n // Incrementa el contador de tamaño de la lista\r\n tamanio++;\r\n }", "public void asignarPedido(Pedido pedido){\n\t\tdouble costeMin=100000;\n\t\tint pos=0;\n\t\t\n\t\tif (pedido.getPeso()<PESOMAXMOTO) {\n\t\tif(motosDisponibles.size()!=0){\n\t\t \n\t\t\tpos=0;\n\t\t\t//Damos como primer valor el de primera posición\n\t\t\t\n\t\t\tcosteMin=pedido.coste(motosDisponibles.get(0));\n\t\t\t\n\t\t\t//Ahora vamos a calcular el min yendo uno por uno\n\t\t\t\n\t\t\tfor(int i=0; i<motosDisponibles.size(); i++){\n\t\t\t\tif(costeMin>pedido.coste(motosDisponibles.get(i))){\n\t\t\t\t\tcosteMin=pedido.coste(motosDisponibles.get(i));\n\t\t\t\t\tpos=i;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Una vez hallada la moto de menor coste la asignamos\n\t\t\tpedido.setTransporte(motosDisponibles.get(pos));\n\t\t\tmotosDisponibles.removeElementAt(pos);\n\t\t\t\n\t\t \n\t\t}\n\t\telse {\n\t\t\tpedidosEsperandoMoto.add(pedidosEsperandoMoto.size(),pedido);\n\t\t}\n\t\t}\n\t\t\n\t\telse {\n\t\t\tif (furgonetasDisponibles.size()!=0){\n\t\t\tcosteMin = pedido.coste(furgonetasDisponibles.get(0));\n\t\t\tfor(int i=0; i<furgonetasDisponibles.size(); i++){\n\t\t\t\tif(costeMin>pedido.coste(furgonetasDisponibles.get(i))){\n\t\t\t\t\tcosteMin=pedido.coste(furgonetasDisponibles.get(i));\n\t\t\t\t\tpos=i;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tpedido.setTransporte(furgonetasDisponibles.get(pos));\n\t\t\tfurgonetasDisponibles.removeElementAt(pos);\n\t\t}\n\t\t\telse{\n\t\t\t\tpedidosEsperandoFurgoneta.add(pedidosEsperandoFurgoneta.size(),pedido);\n\t\t\t}\n\t\t}\n\t}", "BeanPedido crearPedido(BeanCrearPedido pedido);", "@Override\n\tpublic void adicionar(Pergunta pergunta, ArrayList<Integer> id) {\n\t\ttry {\n\t\t\tString queryPergunta = \"INSERT INTO pergunta_forum VALUES (\" + pergunta.getIDPergunta() + \", \"\n\t\t\t\t\t+ pergunta.getIDForum() + \",\" + pergunta.getObjetoAutor().getId() + \", '\" + pergunta.getTitulo()\n\t\t\t\t\t+ \"', '\" + pergunta.getDuvida() + \"', '\" + pergunta.getData() + \"')\";\n\n\t\t\tUtilBD.alterarBd(queryPergunta);\n\n\t\t} catch (SQLException e1) {\n\t\t\tAlertaFX.erro(\"Falha ao inserir Pergunta no banco de dados\");\n\t\t}\n\t}", "public void agregar_Alinicio(int elemento){\n inicio=new Nodo(elemento, inicio);// creando un nodo para que se inserte otro elemnto en la lista\r\n if (fin==null){ // si fin esta vacia entonces vuelve al inicio \r\n fin=inicio; // esto me sirve al agregar otro elemento al final del nodo se recorre al inicio y asi sucesivamnete\r\n \r\n }\r\n \r\n }", "@Override\n public boolean inserir(Pessoa p) {\n try {\n pessoa.getPessoas().add(p);\n serializar(arquivo2Serializado, pessoa);\n } catch (Exception ex) {\n Logger.getLogger(PessoaDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n return true;\n }", "@Override\r\n\tpublic MensajeBean inserta(Tramite_presentan_info_impacto nuevo) {\n\t\treturn tramite.inserta(nuevo);\r\n\t}", "public void agregar(Producto producto) throws BusinessErrorHelper;", "@PostMapping(\"/agendamentos/novo\")\n\tpublic ResponseEntity<Agendamento> inserirNovoAgendamento(@RequestBody Agendamento novo){\n\t\t\n\t\ttry {\n\t\t\tdao.save(novo);\n\t\t\treturn ResponseEntity.status(201).body(novo);\n\t\t}\n\t\tcatch(Exception ex) {\n\t\t\treturn ResponseEntity.status(400).build(); // requisicao errada\n\t\t}\n\t}", "public void adicionar(ContaBancaria conta) {\n contas.add(conta);\n }", "public void finalizarPedido(Pedido ped, Usuario usu) {\n\t\ttry {\n\t\t\tpedido.finalizarPedido(ped, usu); // Indica que este pedido pasa a la lista de espera para ser atendido\n\t\t\tusuario.asignarNuevoId(usu); // Asigna un nuevo identificador de pedido al usuario\n\t\t} catch (TiendaDatabaseException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "private void insert(HttpServletRequest request)throws Exception {\n\t\tPedido p = new Pedido();\r\n\t\tCliente c = new Cliente();\r\n\t\tCancion ca = new Cancion();\r\n\t\tp.setCod_pedido(request.getParameter(\"codigo\"));\r\n\t\tca.setCod_cancion(request.getParameter(\"cod_cancion\"));\r\n\t\tc.setCod_cliente(request.getParameter(\"cod_cliente\"));\r\n\t\tp.setCan(ca);\r\n\t\tp.setCl(c);\r\n\t\t\r\n\t\tpdmodel.RegistrarPedido(p);\r\n\t\t\r\n\t}", "public void addVoto(Voto v) {\n if(v.idPA != this.id) {\n \tSystem.out.println(\"addVoto PA error: idPa \"+v.idPA +\"!= this \"+ this.id); \n }\n votos.add(v); \n }", "public void agregarAlinicio(int el){\n if(!estVacia()){\n inicio=new NodoDoble(el, inicio, null);\n inicio.siguiente.anterior=inicio;\n }else{\n inicio=fin=new NodoDoble(el);\n }\n }", "public void entregarVehiculo(Modelo modeloAAdjudicar) {\n\t\t\n\t}", "void persiste(UsuarioDetalle usuarioDetalle);", "public void HordaHardcodeada() {\n\t\t\n\t\tObjetoDelJuego c = mapa.AgregarEnemigo();\n\t\tlistaDeEnemigos.add( (Enemigo) c );\n\t\t\n\t}", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "@Override\n\tpublic void nuevo() {\n\n\t}", "public void agregarOrden(Orden o) {\n\t\tthis.colaOrdenes.add(o);\n\t}", "public void agregarPlanta(Integer id_planta, String nombre_planta, Boolean esAcopio) {\n\t\t\n\t\tPlanta p1 = new Planta(id_planta, nombre_planta, esAcopio);\n\t\tlistaPlantas.add(p1);\n\t}", "private static void crearPedidoGenerandoOPCyOrdenInsumo() throws RemoteException {\n\t\tlong[] idVariedades = { 63 };\n\t\tint[] cantidades = { 4 };\n\t\tPedidoClienteDTO pedido = crearPedido(\"20362134596\", \"test 5\", idVariedades, cantidades);\n\n\t\tpedido = PedidoController.getInstance().crearPedido(pedido).toDTO();\n\n\t\tPedidoController.getInstance().cambiarEstadoPedidoCliente(pedido.getNroPedido(), EstadoPedidoCliente.ACEPTADO);\n\t}", "public Pedido guardarPedidos(Pedido pedidos)\n\t\t\tthrows NotSupportedException, SystemException, SecurityException,\n\t\t\tIllegalStateException, RollbackException, HeuristicMixedException,\n\t\t\tHeuristicRollbackException {\n\t\tut.begin();\n\t\tem.persist(pedidos);\n\t\tut.commit();\n\t\treturn pedidos;\n\t}", "public void aceitarPedido(Usuario novoAmigo, Usuario logado) {\n logado.getAmigos().put(novoAmigo.getLogin(), novoAmigo);\n logado.getPedidosAmizade().removeKey(novoAmigo.getLogin());\n novoAmigo.getAmigos().put(logado.getLogin(), logado);\n }", "public void addSeguidor(Usuario usuario){\n seguidores.add(usuario.getNombre());\n }", "public void adicionarProdutoSede(Produto produto, Sede sede) {\n\t\tList<Produto> produtos = sede.getProdutos();\n\t\tif(!produtos.contains(produto)) {\n\t\t\tprodutos.add(produto);\n\t\t\tsede.setProdutos(produtos);\n\t\t\t\n\t\t\tsedeService.salvar(sede);\n\t\t}\n\t}", "private void attachEntity(Usuario entity) {\n }" ]
[ "0.6684213", "0.64254874", "0.6191333", "0.61819255", "0.6170274", "0.6159252", "0.5989382", "0.59390223", "0.59106773", "0.5866079", "0.5842741", "0.5785965", "0.5779698", "0.57734036", "0.5763098", "0.572469", "0.567758", "0.56602824", "0.5656219", "0.56441396", "0.5639044", "0.5632439", "0.56305724", "0.5602761", "0.5602131", "0.560124", "0.5585353", "0.5585018", "0.5581732", "0.55740786", "0.55697525", "0.55526775", "0.55488497", "0.55460435", "0.55442363", "0.553587", "0.5535544", "0.5518937", "0.55168694", "0.55053145", "0.55006707", "0.54757506", "0.54742026", "0.5470771", "0.5464182", "0.5462495", "0.5459186", "0.54579455", "0.5457396", "0.54505366", "0.5449353", "0.5448871", "0.5446379", "0.5444634", "0.54308033", "0.5424112", "0.5422405", "0.5421699", "0.54196405", "0.540662", "0.540264", "0.5396438", "0.5385076", "0.5380462", "0.53739816", "0.53685516", "0.53674513", "0.53652304", "0.5359735", "0.5357858", "0.5351472", "0.534982", "0.53467345", "0.53396684", "0.5338311", "0.5324489", "0.5324213", "0.53225726", "0.53175366", "0.53125376", "0.53112614", "0.5309376", "0.53031796", "0.52988625", "0.52900505", "0.52894783", "0.5287519", "0.5285926", "0.5283197", "0.52771705", "0.5275347", "0.52547777", "0.52520436", "0.525187", "0.52380013", "0.5235139", "0.523172", "0.5231192", "0.5225782", "0.521997", "0.521394" ]
0.0
-1
Remove um pedido por ID.
@DeleteMapping(value = "/{id}") @PreAuthorize("hasAnyRole('ADMIN')") public ResponseEntity<Response<String>> remover(@PathVariable("id") Long id) { log.info("Removendo pedido: {}", id); Response<String> response = new Response<String>(); Optional<Pedido> pedido = this.pedidoService.buscarPorId(id); if (!pedido.isPresent()) { log.info("Erro ao remover devido ao pedido ID: {} ser inválido.", id); response.getErrors().add("Erro ao remover pedido. Registro não encontrado para o id " + id); return ResponseEntity.badRequest().body(response); } this.pedidoService.remover(id); return ResponseEntity.ok(new Response<String>()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void eliminarPedido(UUID idPedido);", "@Override\n public int remove(int id) {\n detalleVentaJpaRepository.delete(id);\n return 0;\n }", "public void eliminarTripulante(Long id);", "void remove(Long id);", "void remove(Long id);", "void remove(String id);", "void remove(String id);", "void remove(String id);", "E remove(Id id);", "void eliminarPedidosUsuario(String idUsuario);", "public void removeByid_(long id_);", "public void elimina(Long id) {\n\n final EntityManager em = getEntityManager();\n\n try {\n\n final EntityTransaction tx = em.getTransaction();\n\n tx.begin();\n\n // Busca un conocido usando su llave primaria.\n\n final Conocido modelo = em.find(Conocido.class, id);\n\n if (modelo != null) {\n\n /* Si la referencia no es nula, significa que el modelo se encontró la\n\n * referencia no es nula y se elimina. */\n\n em.remove(modelo);\n\n }\n\n tx.commit();\n\n } finally {\n\n em.close();\n\n }\n\n }", "void remove(int id);", "@Override\n public void remove(int id) {\n Venda v;\n\n v = em.find(Venda.class, id);\n em.remove(v);\n// transaction.commit();\n }", "@Override\n\tpublic void eliminar(int id) {\n\t\tdao.deleteById(id);;\n\t}", "public void remove(String id) {\n\t\t\n\t}", "public void remove(Integer id) {\n\t\t\r\n\t}", "public void eliminar(Short idEmpleado) {\n\t\tEmpleado empleado;\n\t\templeado = entityManager.find(Empleado.class, idEmpleado);\n\t\tentityManager.getTransaction().begin();\n\t\tentityManager.remove(empleado);\n\t\tentityManager.getTransaction().commit();\n\t\tJPAUtil.shutdown();\n\t}", "public void eliminar(int id) {\n\t\tvacantesrepo.deleteById(id);\n\t}", "@Override\n\tpublic void remove(int id) {\n\n\t}", "public void eliminarReceiver(Long id){\r\n persistence.remove(id);\r\n }", "void remove(PK id);", "@Override\n\tpublic void eliminar(Integer id) {\n\t\t\n\t}", "@Override\n\tpublic void eliminar(Integer id) {\n\t\t\n\t}", "public void remove(Integer id) {\n\r\n\t}", "@Override\n\tpublic void remove(int id) {\n\t}", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delUtente(int id);", "@Override\n\tpublic void remove(int id){\n\t\ttry {\n\t\t\tcon = ConexaoSingleton.getInstance();\n\t\t\tpst = con.prepareStatement(\"DELETE FROM Medicamento WHERE IDMEDC=?\");\n\t\t\tpst.setInt(1, id);\n\t\t\tpst.execute();\n\t\t}catch(SQLException e) {\n\t\t\t\n\t\t}\n\t}", "boolean remove (I id);", "@Override\r\n\tpublic void removeStrumentoById(int id) throws StrumentoNotFoundException {\n\t\t\r\n\t}", "public void eliminar(Long id) throws AppException;", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Sintoma : {}\", id);\n sintomaRepository.delete(id);\n }", "public void delById(Serializable id) ;", "@Override\r\n\tpublic void del(Integer id) {\n\t\t\r\n\t}", "public void eliminarUsuario(Long idUsuario);", "@Override\r\n\tpublic void eliminar(Long id) {\n\t\tiUsuario.deleteById(id);\r\n\t}", "public void eliminarProyecto(int id) {\n\t\t\tRestTemplate plantilla = new RestTemplate();\n\t\t\tplantilla.delete(\"http://localhost:5000/proyectos/\" + id);\n\t\t}", "void remover(Long id);", "void remover(Long id);", "public void deleteById(String id);", "void eliminar(Long id);", "public void delete(Integer id);", "public void delete(Integer id);", "public void delete(Integer id);", "void deleteById(final String id);", "@DELETE\r\n @Path(\"{proveedorId: \\\\d+}\")\r\n public void eliminarProveedorID(@PathParam(\"proveedorId\") Long proveedorId) {\r\n ProveedorEntity entity = proveedorLogic.getProveedor(proveedorId);\r\n if (entity == null) {\r\n throw new WebApplicationException(\"El recurso /proveedores/\" + proveedorId + \" no existe.\", 404);\r\n }\r\n proveedorLogic.deleteProveedor(proveedorId);\r\n }", "public void delete(int id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "@Override\n\tpublic void eliminar(Long id) {\n\t\tiUsuario.deleteById(id);\n\t}", "public void atenderPedidoDelCliente(Long idPedido) throws QRocksException;", "@RequestMapping(method = RequestMethod.GET, value = \"/remove/{id}\")\n public String remove(@PathVariable(\"id\") Integer id)\n {\n Estado estado = estadoDao.findById(id);\n estadoDao.remove(estado);\n return \"redirect:/estado\";\n }", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "@GetMapping(\"/remover/{id}\")\n\tpublic String excluir(@PathVariable long id) {\n\t\tPservice.delete(id);\n\t\treturn \"redirect:/agendas\";\n\t}", "@Override\n\tpublic void delete(Pedido arg0) {\n\n\t}", "@Override\n\tpublic void remover(int idServico) throws SQLException {\n\t\t\n\t}", "@Override\r\n\tpublic void delete(int idStrumento) {\n\t\tstrumentoRepository.delete(idStrumento);\r\n\t}", "public void removeItem(int id);", "@Override\n\tpublic int remove(String id) {\n\t\treturn 0;\n\t}", "public void eliminarCajeros(int id);", "public void delete(int id) {\n\t \t\n\t T entity = getEntityManager().find(getEntityClass(), id);\n\t System.out.print(\"------ \" + ((Conexion)entity).getCamposConexion().size()+ \" - - - - - \");\n\t getEntityManager().getTransaction().begin();\n\t getEntityManager().remove(entity);\n\t getEntityManager().getTransaction().commit();\n\t }", "@Override\r\n\tpublic void delete(String id) {\n\t\t\r\n\t}", "@Override\n\tpublic void removeUsuario(String id) {\n\t\t\n\t}", "void removeById(Long id) throws DaoException;", "boolean delete(final ID id);", "@Override\n\tpublic void del(Object id) {\n\n\t}", "public int deletar(int id) {\n\n\t\tConnection conn = null;\n\t\tconn = getConnection();\n\t\tint excluidos = 0;\n\t\tPreparedStatement stmt = null;\n\t\ttry {\n\t\t\tstmt = conn\n\t\t\t\t\t.prepareStatement(\"DELETE FROM INGREDIENTE WHERE IDRESTAURANTE = ?\");\n\t\t\tstmt.setInt(1, id);\n\t\t\texcluidos = stmt.executeUpdate();\n\n\t\t\tif (excluidos > 0) {\n\t\t\t\tSystem.out.println(\"INGREDIENTE REMOVIDO!\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"INGREDIENTE NÃO EXISTE!\");\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"ERRO AO DELETAR INGREDIENTE!\");\n\t\t} finally {\n\t\t\tcloseConnection(conn, stmt);\n\t\t}\n\t\treturn excluidos;\n\t}", "void delete(final Long id);", "public ResponseEntity delete(Integer id){\n alunos.removeIf(aluno -> aluno.getId().equals(id));\n return new ResponseEntity(HttpStatus.NO_CONTENT);\n }", "public void eliminar(Long Id){\r\n EspecieEntity productoEliminar=em.find(EspecieEntity.class, Id);\r\n em.remove(productoEliminar);\r\n }", "@Override\r\n\tpublic TaotaoResult DeletePunishment(Long id) {\n\t\treturn null;\r\n\t}", "public void removePlayer(int id) {\n\n Jogador j = this.listaJogadores.get(id);\n\n if(bankruptcy && j.temPropriedades() && j.isBankruptcy()){\n //System.out.println(\"vez: \" + vez + \"id: \" + id );\n jogoInterrompidoEm = vez = voltaVez(vez);\n j.addComandoGiveUp();\n j.removeComandoRoll();\n j.setBankruptcy(true);\n vez = voltaVez(id);\n if(build)\n j.removerComandoBuild();\n }else{\n falirJogador(id);\n }\n\n }", "public void deleteById(Long id);", "public void eliminarSolicitud(int id){\n listaSolicitudes.remove(id);\n }", "public void eliminarUsuario(String id) throws BLException;", "public boolean delete(String id);", "public boolean delete(String id);", "@Override\r\n public void removerQuestaoDiscursiva(long id) throws Exception {\n rnQuestaoDiscursiva.remover(id);\r\n\r\n }", "public void removeByTodoId(long todoId);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "void delete(String id);" ]
[ "0.78902996", "0.72243947", "0.7156589", "0.7094088", "0.7094088", "0.70567423", "0.70567423", "0.70567423", "0.7042451", "0.6989119", "0.69769347", "0.6918859", "0.6912046", "0.6872654", "0.6840061", "0.68290806", "0.68116814", "0.67892253", "0.6770344", "0.6761848", "0.6756318", "0.6749732", "0.67400986", "0.67400986", "0.67269266", "0.67213774", "0.6707307", "0.6707307", "0.6707307", "0.6707307", "0.6707307", "0.67062134", "0.6705581", "0.67038864", "0.6696731", "0.66576725", "0.6656513", "0.6655413", "0.6640332", "0.6638125", "0.6617418", "0.6615672", "0.66025853", "0.66025853", "0.65933955", "0.6588159", "0.6578548", "0.6578548", "0.6578548", "0.65699035", "0.6567417", "0.65554374", "0.65361035", "0.65361035", "0.65361035", "0.65361035", "0.65361035", "0.65361035", "0.65361035", "0.65361035", "0.65361035", "0.65361035", "0.6534268", "0.65315217", "0.65304357", "0.65222853", "0.65222853", "0.65222853", "0.65222853", "0.65222853", "0.65222365", "0.65101016", "0.6509686", "0.64919055", "0.6490369", "0.6481428", "0.64750695", "0.64693767", "0.6468043", "0.6464213", "0.6453571", "0.6452374", "0.6448574", "0.6446521", "0.64463675", "0.6444865", "0.64422643", "0.6441746", "0.6441049", "0.6440511", "0.6439226", "0.64328855", "0.64313865", "0.64313865", "0.6423079", "0.6419418", "0.6412283", "0.6412283", "0.6412283", "0.6412283" ]
0.72995454
1
helper method to dynamically load writer classes, this allows external libraries to be loaded without breaking things at compile time
private static void loadWriterClass(String writer, String regex){ try { FASTAWriterFactory factory = (FASTAWriterFactory)Class.forName(writer).newInstance(); setFASTAWriter(factory, regex); } catch (Exception e){ System.err.println("Failed to load writer class "+writer+", skipping."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected StoryClassLoader createStoryClassLoader() throws MalformedURLException {\n return new StoryClassLoader(classpathElements());\n }", "@Override\n public void load() throws IOException, ClassNotFoundException {\n \n }", "public static void load() throws IOException {\n ClassPath classPath = ClassPath.from(ClassLoader.getSystemClassLoader());\n //System.out.println(\"Length:\"+classPath.getTopLevelClasses(\"util\").size());\n for (ClassPath.ClassInfo classInfo : classPath.getTopLevelClasses(\"util\")) {\n Scene.v().addBasicClass(classInfo.getName(), SootClass.BODIES);\n sootClasses.add(classInfo.getName());\n }\n }", "private static ClassLoader getClassLoader() {\n return LoggerProviders.class.getClassLoader();\n }", "private void readClasses(SB_SingletonBook book) throws SB_FileException\r\n\t{\r\n\t for (Class javaClass : SB_ClassMap.getBaseJavaClasses()) {\r\n\t addJavaClass(book, javaClass.getSimpleName(), javaClass.getName());\r\n\t }\r\n\t \r\n\t List<String> importedClasses = _dataModel.getJavaScript().getImportedJavaClasses();\r\n\t\tfor( String javaClassName : importedClasses) {\r\n\t\t\tString classPackage = javaClassName;\r\n\t\t\tString className = javaClassName.substring(javaClassName.lastIndexOf('.') + 1);\r\n\t\t\taddJavaClass(book, className, classPackage);\r\n\t }\r\n\t\t\r\n\t\t//Now that all classes read in, convert class descriptions\r\n\t\ttry\r\n\t\t{\r\n\t\t book.getUserClassMap().convertClassDescriptions(book);\r\n\t\t}\r\n\t\tcatch(SB_Exception ex)\r\n\t\t{\r\n\t\t throw new SB_FileException(ex.toString());\r\n\t\t}\r\n\t}", "YobBuilderOrBuiltObject(String qualifiedClassName,\n ClassLoader registeredAppClassLoader) {\n try {\n yangDefaultClass =\n registeredAppClassLoader.loadClass(qualifiedClassName);\n yangBuilderClass = yangDefaultClass.getDeclaredClasses()[0];\n setBuilderObject(yangBuilderClass.newInstance());\n } catch (ClassNotFoundException e) {\n log.error(L_FAIL_TO_LOAD_CLASS, qualifiedClassName);\n throw new YobException(E_FAIL_TO_LOAD_CLASS + qualifiedClassName);\n } catch (InstantiationException | IllegalAccessException e) {\n log.error(L_FAIL_TO_CREATE_OBJ, qualifiedClassName);\n throw new YobException(E_FAIL_TO_CREATE_OBJ + qualifiedClassName);\n } catch (NullPointerException e) {\n log.error(L_REFLECTION_FAIL_TO_CREATE_OBJ, qualifiedClassName);\n throw new YobException(E_REFLECTION_FAIL_TO_CREATE_OBJ +\n qualifiedClassName);\n }\n }", "private void initClassloaders() {\n\t\tthis.commonloader = createClassloader(\"common\",null);\n\t\tthis.sharedloader = createClassloader(\"shared\", commonloader);\n\t\tthis.catalinaloader = createClassloader(\"server\", commonloader);\n\t}", "Type buildType( ClassLoader classloader ) \r\n throws IntrospectionException, IOException;", "public void load() throws ClassNotFoundException, IOException;", "public String[] readClasses();", "void addClassLoader(ClassLoader cl);", "private void loadClasses() {\n\t\tString[] classes = new String[] { \"com.sssprog.delicious.api.ApiAsyncTask\" };\n\t\tfor (String c : classes) {\n\t\t\ttry {\n\t\t\t\tClass.forName(c);\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private Document getDocumentInClassPath()throws Exception{\r\n\t\t\r\n\t\tDocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();\r\n\t\tDocumentBuilder builder = builderFactory.newDocumentBuilder();\r\n\t\t\r\n\t\tDocument doc = builder.parse(ServiceLoader.class.getResourceAsStream(\"/\"+FILE_NAME));\r\n\t\t\r\n\t\treturn doc;\r\n\t}", "private void scanAndRegisterTypes() throws Exception {\n ScannedClassLoader scl = ScannedClassLoader.getSystemScannedClassLoader();\n // search annotations\n Iterator<Metadata> it = scl.getAll(MetadataType.class, Metadata.class); //CellFactorySPI.class);\n logger.log(Level.INFO, \"[Metadata Service] about to search classloader\");\n while (it.hasNext()) {\n Metadata metadata = it.next();\n logger.log(Level.INFO, \"[Metadata Service] using system scl, scanned type:\" + metadata.simpleName());\n registerMetadataType(metadata);\n }\n }", "public interface TypeBuilder\r\n{\r\n /**\r\n * Build a part type.\r\n * @param classloader the classloader\r\n * @return the serializable part type.\r\n * @exception IntrospectionException if a introspection occurs during type construction\r\n * @exception IOException if an I/O exception occurs\r\n */\r\n Type buildType( ClassLoader classloader ) \r\n throws IntrospectionException, IOException;\r\n\r\n}", "public void initClassLoader() {\n FileClassLoadingService classLoader = new FileClassLoadingService();\n\n // init from preferences...\n Domain classLoaderDomain = getPreferenceDomain().getSubdomain(\n FileClassLoadingService.class);\n\n Collection details = classLoaderDomain.getPreferences();\n if (details.size() > 0) {\n\n // transform preference to file...\n Transformer transformer = new Transformer() {\n\n public Object transform(Object object) {\n DomainPreference pref = (DomainPreference) object;\n return new File(pref.getKey());\n }\n };\n\n classLoader.setPathFiles(CollectionUtils.collect(details, transformer));\n }\n\n this.modelerClassLoader = classLoader;\n }", "private PluginLoader<Object> createPluginLoader() {\n return PluginLoader.forType(Object.class)\n .ifVersionGreaterOrEqualTo(JAVA_9).load(pluginTypeBetweenJava9AndJava13.getName())\n .ifVersionGreaterOrEqualTo(JAVA_14).load(pluginTypeAfterJava13.getName())\n .fallback(newInstance(pluginTypeBeforeJava9));\n }", "public static void loadClass(String name) {\n\n }", "public interface Instrumentor {\n\n InstrumentionClass getInstrucmentClass(ClassLoader loader, String className, byte[] classfileBuffer);\n\n}", "SchemaBuilder withClassLoader(ClassLoader classLoader);", "private void init() throws ClassNotFoundException{\n }", "protected void genWriter() {\n\t\t\n\t\tfixWriter_h();\n\t\tfixWriter_cpp();\n\t}", "public interface BuiltInsLoader {\n public static final Companion Companion = Companion.$$INSTANCE;\n\n PackageFragmentProvider createPackageFragmentProvider(StorageManager storageManager, ModuleDescriptor moduleDescriptor, Iterable<? extends ClassDescriptorFactory> iterable, PlatformDependentDeclarationFilter platformDependentDeclarationFilter, AdditionalClassPartsProvider additionalClassPartsProvider, boolean z);\n\n /* compiled from: BuiltInsLoader.kt */\n public static final class Companion {\n static final /* synthetic */ Companion $$INSTANCE = new Companion();\n private static final Lazy<BuiltInsLoader> Instance$delegate = LazyKt.lazy(LazyThreadSafetyMode.PUBLICATION, BuiltInsLoader$Companion$Instance$2.INSTANCE);\n\n private Companion() {\n }\n\n public final BuiltInsLoader getInstance() {\n return Instance$delegate.getValue();\n }\n }\n}", "LoadGenerator createLoadGenerator();", "LoadGenerator createLoadGenerator();", "@Override\n public Class getJavaClass() throws IOException, ClassNotFoundException {\n open();\n URL url;\n int p = path.lastIndexOf('/');\n int p2 = path.substring(0,p-1).lastIndexOf('/');\n\n File f = new File(path.substring(0,p2));\n url = f.toURI().toURL();\n URL[] urls = new URL[1];\n urls[0] = url;\n ClassLoader loader = new URLClassLoader(urls);\n\n String cls = path.substring(p2 + 1, path.lastIndexOf('.')).replace('/', '.');\n\n if (cfile.getParentFile().getParentFile().getName().equals(\"production\")) {\n cls = cls.substring(cls.lastIndexOf('.') + 1);\n }\n\n\n\n return loader.loadClass(cls);\n }", "public void testNewClassPathImplementation() throws Exception {\n\n\t\t// Create the source\n\t\tStringWriter buffer = new StringWriter();\n\t\tPrintWriter source = new PrintWriter(buffer);\n\t\tsource.println(\"package net.officefloor.test;\");\n\t\tsource.println(\"public class ExtraImpl extends \" + CLASS_LOADER_EXTRA_CLASS_NAME + \" {\");\n\t\tsource.println(\" public String getMessage() {\");\n\t\tsource.println(\" return \\\"TEST\\\";\");\n\t\tsource.println(\" }\");\n\t\tsource.println(\"}\");\n\t\tsource.flush();\n\n\t\t// Override compiler with extra class path\n\t\tURLClassLoader extraClassLoader = (URLClassLoader) createNewClassLoader();\n\t\tClassLoader classLoader = new URLClassLoader(extraClassLoader.getURLs()) {\n\t\t\t@Override\n\t\t\tpublic Class<?> loadClass(String name) throws ClassNotFoundException {\n\t\t\t\tif (OfficeFloorJavaCompilerImpl.class.getName().equals(name)) {\n\t\t\t\t\treturn OfficeFloorJavaCompilerImpl.class;\n\t\t\t\t} else {\n\t\t\t\t\treturn extraClassLoader.loadClass(name);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tthis.compiler = OfficeFloorJavaCompiler.newInstance(getSourceContext(classLoader));\n\n\t\t// Compile the source\n\t\tJavaSource javaSource = this.compiler.addSource(\"net.officefloor.test.ExtraImpl\", buffer.toString());\n\t\tClass<?> clazz;\n\t\ttry {\n\t\t\tclazz = javaSource.compile();\n\t\t} catch (CompileError error) {\n\n\t\t\t// Maven + Java8 has class path issues in running Lombok\n\t\t\tif (!new ModulesJavaFacet().isSupported()) {\n\t\t\t\tSystem.err.println(\"KNOWN GOTCHA: \" + this.getClass().getSimpleName()\n\t\t\t\t\t\t+ \" new class path on Java8 with Maven is having Lombok issues\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Propagate failure\n\t\t\tthrow error;\n\t\t}\n\n\t\t// Ensure appropriate compile to extra class\n\t\tObject object = clazz.getConstructor().newInstance();\n\t\tassertEquals(\"Incorrect parent class from class path\", CLASS_LOADER_EXTRA_CLASS_NAME,\n\t\t\t\tobject.getClass().getSuperclass().getName());\n\t}", "protected ClassLoader getRestrictedClassloader(Profile profile) throws MalformedURLException\n {\n StringContainsClassRestrictor recipeLoader = null;\n URL libUrl = servletContext.getResource(\"/WEB-INF/\" + RECIPE_LIBRARY_PATH + \"/\" + profile.getRecipeLibraryFile());\n recipeLoader = new StringContainsClassRestrictor(new URL[] { libUrl }, servletContext.getClassLoader(), RESTRICTED_PACKAGES);\n return recipeLoader;\n }", "private void generate() throws FileNotFoundException {\n if (clazz.isInterface())\n generateInterface();\n writer.close();\n }", "@Override\n\tpublic void close() throws IOException {\n\t\tfor (String cl : generated) {\n\t\t\ttry {\n\t\t\t\tgetClassByName(cl);\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\tthrow new IllegalStateException(\"Failed to load class that was generated \" + cl, e);\n\t\t\t}\n\t\t}\n\t\tfileManager.close();\n\t}", "private ClassLoader getClassLoader() {\r\n return this.getClass().getClassLoader();\r\n }", "public interface Loader {\n void loadLibrary(String str) throws Exception;\n\n void loadLibraryFromPath(String str) throws Exception;\n }", "public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException {\n MyClassLoader mcl = new MyClassLoader(\"myClassLoader1\");\n// // 根据全限定名加载,注意,这里调用loadClass方法\n// Class<?> clazz = mcl.loadClass(\"Student\");\n// Student student = (Student)clazz.newInstance();\n Object o = mcl.loadClass(\"Student\").newInstance();\n o.getClass().getMethod(\"shuchu\").invoke(o);\n// student.shuchu();\n// List<Integer> list = new ArrayList<>();\n// Object o = new Object();\n System.out.println(o.getClass().getClassLoader());\n// System.out.println(list.getClass().getClassLoader());\n// System.out.println(o.getClass().getClassLoader());\n byte[] allocation1, allocation2;\n allocation1 = new byte[30900 * 1024*2];\n allocation2 = new byte[900 * 1024*2];\n\n\n }", "private ClassLoader makeClassLoader() throws MojoExecutionException {\n final List<URL> urls = new ArrayList<URL>();\n try {\n for (String cp: project.getRuntimeClasspathElements()) {\n urls.add(new File(cp).toURI().toURL());\n }\n } catch (DependencyResolutionRequiredException e) {\n throw new MojoExecutionException(\"dependencies not resolved\", e);\n } catch (MalformedURLException e) {\n throw new MojoExecutionException(\"invalid classpath element\", e);\n }\n return new URLClassLoader(urls.toArray(new URL[urls.size()]),\n getClass().getClassLoader());\n }", "private static void load(){\n }", "default boolean canLoadClassPath(String classPath) { return true; }", "private void load() {\n\t\ttry {\r\n\t\t\tA a = new A();\r\n\t\t\ta.action();\r\n\t\t\tSystem.out.println(\"********下面为静态*********\");\r\n\t\t\tString name = a.getClass().getName();\r\n//\t\t\tClass aClass = Class.forName(\"com.guonl.dynamic.A\");\r\n\t\t\tClass<?> aClass = Class.forName(name);\r\n\t\t\tIC ic = (IC)aClass.newInstance();\r\n\t\t\tic.action();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "public void initFromClasspath() throws IOException {\n \t\tcontactNames = loadFromClassPath(\"contactNames\");\n \t\tgroupNames = loadFromClassPath(\"groupNames\");\n \t\tmessageWords = loadFromClassPath(\"messageWords\");\n \t}", "protected void genReader() {\n\t\t\n\t\tfixReader_h();\n\t\tfixReader_cpp();\n\t}", "ClassLoaderConfigType createClassLoaderConfigType();", "protected abstract void generateClassFiles(ClassDoc[] arr, ClassTree classtree);", "@BeforeClass\n public void loadGeneratedClasses() throws IOException, ClassNotFoundException {\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n assertNotNull(classLoader, \"Unable to load ClassLoader to find generated JPA Java classes.\");\n \n Enumeration<URL> jpaClassFileURL = classLoader.getResources(\"com/goldstandard/model/\");\n assertTrue(jpaClassFileURL.hasMoreElements(), \"Cannot find com/goldstandard/model/ resource\");\n \n // There should only be one base resource directory\n File jpaClassFileDir = new File(jpaClassFileURL.nextElement().getFile());\n \n generatedClassList = new ArrayList<Class<?>>();\n generatedClassNameMap = new HashMap<String, Class<?>>();\n generatedEnumNameMap = new HashMap<String, Class<?>>();\n \n // Loop through all the class files in the com.goldstandard.model package\n for (File classFile : jpaClassFileDir.listFiles()) {\n Matcher matcher = GENERATED_CLASS_PATTERN.matcher(classFile.getCanonicalPath());\n if (matcher.matches()) {\n String packageName = matcher.group(1).replace('/', '.');\n String className = matcher.group(2);\n \n // Load up the generated class and add it to the data provider\n Class<?> generatedClass = Class.forName(packageName + \".\" + className);\n if (!generatedClass.isEnum()) {\n generatedClassList.add(generatedClass);\n generatedClassNameMap.put(generatedClass.getAnnotation(Table.class).name(), generatedClass);\n } else {\n generatedEnumNameMap.put(className, generatedClass);\n }\n }\n }\n \n assertTrue(generatedClassList.size() > 0, \"Did not find any generated classes\");\n }", "private void loadJarsFromClasspath() {\n\n loadedJarsMap.clear();\n\n ClassLoader classLoader = getClass().getClassLoader();\n URL[] urls = null;\n do {\n //check if the class loader is instance of URL and cast it\n if (classLoader instanceof URLClassLoader) {\n urls = ((URLClassLoader) classLoader).getURLs();\n } else {\n // if the ClassLoader is not instance of URLClassLoader we will break the cycle and log a message\n log.info(\"ClassLoader \" + classLoader\n + \" is not instance of URLClassLoader, so it will skip it.\");\n\n // if the ClassLoader is from JBoss, it is instance of BaseClassLoader,\n // we can take the ClassPath from a public method -> listResourceCache(), from JBoss-classloader.jar\n // this ClassLoader is empty, we will get the parent\n classLoader = classLoader.getParent();\n continue;\n }\n try {\n loadJarsFromManifestFile(classLoader);\n } catch (IOException ioe) {\n log.warn(\"MANIFEST.MF is loaded, so we will not search for duplicated jars!\");\n }\n\n // add all jars from ClassPath to the map\n for (int i = 0; i < urls.length; i++) {\n addJarToMap(urls[i].getFile());\n }\n\n // get the parent classLoader\n classLoader = classLoader.getParent();\n } while (classLoader != null);\n\n if (loadedJarsMap.isEmpty()) {\n // jars are not found, so probably no URL ClassLoaders are found\n throw new RuntimeException(\"Most probrably specific server is used without URLClassLoader instances!\");\n }\n }", "protected WjrConfigLoader getConfigLoader() {\r\n\t\treturn new WjrConfigLoader();\r\n\t}", "LiveClassLoader()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tthis.defineClassMethod = ClassLoader.class.getDeclaredMethod(\"defineClass\", String.class, byte[].class, int.class, int.class);\r\n\t\t\tthis.defineClassMethod.setAccessible(true);\r\n\t\t}\r\n\t\tcatch (NoSuchMethodException | SecurityException e)\r\n\t\t{\r\n\t\t\t// TODO: debug..\r\n\t\t\tSystem.out.println(\"CLASS LOADER >> Erro ao recuperar o metodo 'ClassLoader.defineClass()'!\");\r\n\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public interface ClassContainer {\n\n void addLoadableClass(String className, byte[] classData);\n}", "@Deprecated\n@ConsumerType\npublic interface DynamicClassLoaderProvider {\n\n /**\n * Return the class loader used for dynamic class loading.\n * The returned class loader should use the provided parent class loader\n * as one of its parent class loaders. This ensures that the returned\n * class loader has access to all dynamically loaded classes that\n * are not part of this class loader.\n * When the class loader is not needed anymore, it is released by\n * calling the {@link #release(ClassLoader)} method.\n * @param parent The parent class loader for this dynamic class loader.\n * @return The class loader.\n * @see #release(ClassLoader)\n */\n ClassLoader getClassLoader(ClassLoader parent);\n\n /**\n * Release the provided class loader.\n * When the class loader is not needed anymore, e.g. when the dynamic class\n * loader is shutdown, it is released with this method.\n * The implementation can use this hook to free any allocated resources etc.\n * @param classLoader The class loader.\n * @see #getClassLoader(ClassLoader)\n * @since 2.0\n */\n void release(ClassLoader classLoader);\n}", "public interface TypeSystemWriterResource {\n /**\n * Writes the type system to the path if it has not already been written.\n * @param path path to write to\n * @param typeSystem type system to write\n * @throws IOException if getting the path fails\n * @throws SAXException if writing XML fails\n */\n void writeToPath(Path path, TypeSystem typeSystem) throws IOException, SAXException;\n}", "protected void writeFile(Document model, FileWriter writer)\n throws IOException, Exception {\n writer.loadTemplate();\n\n String className = model.getDocumentElement().getAttribute(\"name\");\n writer.createOutFile(null, className); //pass in null as the package\n\n // use the global resolver\n writer.parse(model, resolver);\n }", "public interface Loader {\n\t\tpublic void load();\n\t}", "private List<ExtensionClassLoader> getClassLoaders() {\n final List<ExtensionClassLoader> classLoaders = new ArrayList<>();\n\n // start with the class loader that loaded ExtensionManager, should be WebAppClassLoader for API WAR\n final ExtensionClassLoader frameworkClassLoader = new ExtensionClassLoader(\"web-api\", new URL[0], this.getClass().getClassLoader());\n classLoaders.add(frameworkClassLoader);\n\n // we want to use the system class loader as the parent of the extension class loaders\n ClassLoader systemClassLoader = FlowPersistenceProvider.class.getClassLoader();\n\n // add a class loader for each extension dir\n final Set<String> extensionDirs = properties.getExtensionsDirs();\n for (final String dir : extensionDirs) {\n if (!StringUtils.isBlank(dir)) {\n final ExtensionClassLoader classLoader = createClassLoader(dir, systemClassLoader);\n if (classLoader != null) {\n classLoaders.add(classLoader);\n }\n }\n }\n\n return classLoaders;\n }", "public Class<?> loadMagic() {\n ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_MAXS);\n cw.visit(Opcodes.V1_4, Opcodes.ACC_PUBLIC, \"sun/reflect/GroovyMagic\", null, \"java/lang/Object\", null);\n MethodVisitor mv = cw.visitMethod(Opcodes.ACC_PUBLIC, \"<init>\", \"()V\", null, null);\n mv.visitCode();\n mv.visitMaxs(0,0);\n mv.visitEnd();\n cw.visitEnd();\n\n byte[] bytes = cw.toByteArray();\n\t return defineClass(\"sun.reflect.GroovyMagic\", bytes, 0, bytes.length);\n }", "private void registerAvailableSerializers() {\r\n LOG.info(\"Registering available serializer object\");\r\n mSerializers.put(XML, new XmlObjectBaseSerializer());\r\n mSerializers.put(PHP, new PHPObjectBaseSerializer());\r\n }", "private static AMetadataExtractor getExtractor(Path fileordir) {\n String ext =getFileExtension(fileordir);\n //gets class implementing extension\n Class extclass = type2extractor.get(ext);\n //set default if extension is not recognized\n if (extclass == null) extclass = DefaultMetadataExtractor.class;\n //get existing instance if it was already instantiated\n AMetadataExtractor cobj = class2extractorobj.get(extclass.getName());\n\n if (cobj==null) {\n try { //try to create class using default constructor\n //Constructor ct = extclass.getConstructor(extclass);\n AMetadataExtractor obj2 = (AMetadataExtractor) extclass.newInstance();\n class2extractorobj.put(extclass.getName(),obj2);\n return obj2;\n } catch (Exception e){\n //create default extractor\n LOG.error(\"error creating class for extension \"+ext);\n LOG.error(e.getMessage());\n e.printStackTrace();\n AMetadataExtractor obj2 = new DefaultMetadataExtractor();\n class2extractorobj.put(extclass.getName(),obj2);\n return obj2;\n }\n } else return cobj;\n }", "public void importClass(String klass) throws Exception;", "public static void load() {\n }", "public String getSharedLoader(IPath baseDir);", "public static DOMImplementationRegistry newInstance() \t\t\n throws ClassNotFoundException, InstantiationException, \n IllegalAccessException\n {\n Vector _sources = new Vector(); \n\n // fetch system property:\n String p = System.getProperty(PROPERTY);\n if (p != null) {\n StringTokenizer st = new StringTokenizer(p);\n while (st.hasMoreTokens()) {\n String sourceName = st.nextToken();\n // Use context class loader, falling back to Class.forName\n // if and only if this fails...\n Object source = getClass(sourceName).newInstance();\n _sources.add(source);\n }\n }\n return new DOMImplementationRegistry(_sources);\n }", "@Override\n public void addLoaders(WorldLoader wl, WorldInfo info) {\n }", "private void init() {\n\t\tMvcs.scanPackagePath = analyseScanPath();\n\t\tif(StringHandler.isEmpty(Mvcs.scanPackagePath))\n\t\t\tthrow new RuntimeException(\"No scan path has been set! you need to setup ScanPackage annotation\");\n\t\t\n\t\t//put all class into the list\n\t\tList<String> allClassNames = scanAllClassNames();\n\t\tif(StringHandler.isEmpty(allClassNames)) //some loader may have no return value \n\t\t\treturn ;\n\t\t\n\t\tfor(String pkgPath : allClassNames){\n\t\t\tlist.add(ClassUtil.getClass(pkgPath));\n\t\t}\n\t}", "public static XML.ObjectLoader getLoader() {\n return new Loader();\n }", "ClassLoader getNewTempClassLoader() {\n return new ClassLoader(getClassLoader()) {\n };\n }", "private void loadOutputModules() {\n\t\tthis.outputModules = new ModuleLoader<IOutput>(\"/Output_Modules\", IOutput.class).loadClasses();\n\t}", "protected SimulationData(final File givenPath) {\n\t\ttry {\n\t\t\tclassLoader =\n\t\t\t\t\tnew URLClassLoader(new URL[] {givenPath.toURI()\n\t\t\t\t\t\t\t.toURL()});\n\t\t} catch (MalformedURLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public interface ContributionLoader {\n\n /**\n * Performs the load operation. This includes resolution of dependent contributions if necessary, and constructing a\n * classloader with access to resources contained in and required by the contribution.\n *\n * @param contribution the contribution to load\n * @return the classloader with access to the contribution and dependent resources\n * @throws ContributionLoadException if an error occurs during load\n * @throws MatchingExportNotFoundException\n * if matching export could not be found\n */\n ClassLoader loadContribution(Contribution contribution)\n throws ContributionLoadException, MatchingExportNotFoundException;\n}", "public boolean loadAdditionalPackages( String canonicalNameClassOrPkg) throws Exception;", "private ClassLoader getCompileClassLoader() throws MojoExecutionException {\n\t\ttry {\n\t\t\tList<String> runtimeClasspathElements = project.getRuntimeClasspathElements();\n\t\t\tList<String> compileClasspathElements = project.getCompileClasspathElements();\n\t\t\tArrayList<URL> classpathURLs = new ArrayList<>();\n\t\t\tfor (String element : runtimeClasspathElements) {\n\t\t\t\tclasspathURLs.add(new File(element).toURI().toURL());\n\t\t\t}\n\t\t\tfor (String element : compileClasspathElements) {\n\t\t\t\tclasspathURLs.add(new File(element).toURI().toURL());\n\t\t\t}\n\t\t\tURL[] urlArray = classpathURLs.toArray(new URL[classpathURLs.size()]);\n\t\t\treturn new URLClassLoader(urlArray, Thread.currentThread().getContextClassLoader());\n\n\t\t} catch (Exception e) {\n\t\t\tthrow new MojoExecutionException(\"Unable to load project runtime !\", e);\n\t\t}\n\t}", "private void createClassPath() {\n classPath = classFactory.createClassPath();\n }", "public void libraryLoaded();", "public void implementJar(Class<?> token, File jar) throws ImplerException {\n try {\n String name = \"\";\n String fileAbsPath = \"tmp/\";\n if (token.getPackage() != null) {\n name = jar.getName().replaceAll(\"/\", \"\\\\.\") + \"\\\\.\" + token.getPackage().getName().replaceAll(\"/\", \"\\\\.\") + \"\\\\.\" + token.getSimpleName();\n fileAbsPath += token.getPackage().getName().replaceAll(\"\\\\.\", \"/\");\n fileAbsPath += \"/\";\n } else\n name = jar.getName().replaceAll(\"/\", \"\\\\.\") + \"\\\\.\" + token.getSimpleName();\n \n \n (new File(fileAbsPath)).mkdirs();\n fileAbsPath += token.getSimpleName() + \"Impl.java\";\n this.writer = new PrintWriter(fileAbsPath);\n this.clazz = token;\n this.fullName = name;\n String[] tokens = fullName.split(\"\\\\.\");\n className = tokens[tokens.length - 1];\n generate();\n compileFile(fileAbsPath);\n String classAbsPath = fileAbsPath.substring(0, fileAbsPath.indexOf(\".java\")) + \".class\";\n makeJar(jar.getPath(), classAbsPath);\n System.gc();\n recDelete(new File(\"tmp/\"));\n } catch (IOException e) {\n e.printStackTrace();\n System.out.println(\"Error occurred while working with files\");\n }\n }", "private ExtensionClassLoader createClassLoader(final String dir, final ClassLoader parentClassLoader) {\n final File dirFile = new File(dir);\n\n if (!dirFile.exists()) {\n LOGGER.warn(\"Skipping extension directory that does not exist: \" + dir);\n return null;\n }\n\n if (!dirFile.canRead()) {\n LOGGER.warn(\"Skipping extension directory that can not be read: \" + dir);\n return null;\n }\n\n final List<URL> resources = new LinkedList<>();\n\n try {\n resources.add(dirFile.toURI().toURL());\n } catch (final MalformedURLException mfe) {\n LOGGER.warn(\"Unable to add {} to classpath due to {}\",\n new Object[]{ dirFile.getAbsolutePath(), mfe.getMessage()}, mfe);\n }\n\n if (dirFile.isDirectory()) {\n final File[] files = dirFile.listFiles();\n if (files != null) {\n for (final File resource : files) {\n if (resource.isDirectory()) {\n LOGGER.warn(\"Recursive directories are not supported, skipping \" + resource.getAbsolutePath());\n } else {\n try {\n resources.add(resource.toURI().toURL());\n } catch (final MalformedURLException mfe) {\n LOGGER.warn(\"Unable to add {} to classpath due to {}\",\n new Object[]{ resource.getAbsolutePath(), mfe.getMessage()}, mfe);\n }\n }\n }\n }\n }\n\n final URL[] urls = resources.toArray(new URL[resources.size()]);\n return new ExtensionClassLoader(dir, urls, parentClassLoader);\n }", "public OPDSManifestWriters()\n {\n\n }", "private Map<String, SkylarkModuleDoc> collectTypes() throws ClassPathException {\n return SkylarkDocumentationCollector.collectModules(\n Classpath.findClasses(MODULES_PACKAGE_PREFIX));\n }", "private static Class<?> loadClass(String archiveImplClassName) throws Exception \n {\n return SecurityActions.getThreadContextClassLoader().loadClass(archiveImplClassName);\n }", "void implementJar(Class<?> token, Path jarFile) throws ImplerException;", "public void addInfrastructure(String implBeanClass, FileObject pkg);", "@Override\n\tprotected Class<?> findClass(String name) throws ClassNotFoundException {\n\t\tFile file = new File(getSimpleName(name) + \".class\");\n FileInputStream fis = null;\n Class<?> clazz = null;\n try {\n fis = new FileInputStream(file);\n int content = 0;\n int i = 0;\n byte[] data = new byte[fis.available()];\n while ((content = fis.read()) != -1) {\n // convert to char and display it\n data[i] = (byte) content;\n i++;\n }\n clazz = defineClass(name, data, 0, data.length);\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n if (fis != null)\n fis.close();\n } catch (IOException ex) {\n \t\tex.printStackTrace();\n \t}\n }\n return clazz;\n\t}", "public interface BeanDefinitionReader {\n\n void loadBeanDefinitions(String location) throws Exception;\n\n}", "private JarFileLoader() {\n }", "public HashMap<String,HashSet<String>> loadTypes(String commonTypeInstanceFile) throws Exception;", "public Class<?> getClazz(ClassLoader loader);", "public interface JavaWriter \r\n{\r\n /**\r\n * Abstract method that takes a WSDLHolder\r\n * and returns back the Java representation.\r\n * The Java representation is returned as\r\n * a SerializedHolder array. Each element\r\n * of the array is a SerializedHolder that\r\n * contains the byte[] representing the Java\r\n * class and the name of the file in the file\r\n * system to write to.\r\n */\r\n public SerializedHolder[] toJava(WSDLHolder wsdl, Options options)\r\n throws JavaHolderException, IOException, WSDLException;\r\n \r\n}", "@SuppressWarnings(\"unchecked\")\n private void resolveClasses() {\n for (String s : filesToResolve) {\n SchemaTupleFactory.LOG.info(\"Attempting to resolve class: \" + s);\n // Step one is to simply attempt to get the class object from the classloader\n // that includes the generated code.\n Class<?> clazz;\n try {\n clazz = classLoader.loadClass(s);\n } catch (ClassNotFoundException e) {\n throw new RuntimeException(\"Unable to find class: \" + s, e);\n }\n\n // Step three is to check if the class is a SchemaTuple. If it isn't,\n // we do not attempt to resolve it, because it is support code, such\n // as anonymous classes.\n if (!SchemaTuple.class.isAssignableFrom(clazz)) {\n return;\n }\n\n Class<SchemaTuple<?>> stClass = (Class<SchemaTuple<?>>)clazz;\n\n // Step four is to actually try to create the SchemaTuple instance.\n SchemaTuple<?> st;\n try {\n st = stClass.newInstance();\n } catch (InstantiationException e) {\n throw new RuntimeException(\"Error instantiating file: \" + s, e);\n } catch (IllegalAccessException e) {\n throw new RuntimeException(\"Error accessing file: \" + s, e);\n }\n\n // Step five is to get information about the class.\n boolean isAppendable = st instanceof AppendableSchemaTuple<?>;\n int id = st.getSchemaTupleIdentifier();\n Schema schema = st.getSchema();\n\n SchemaTupleFactory stf = new SchemaTupleFactory(stClass, st.getQuickGenerator());\n\n for (GenContext context : GenContext.values()) {\n if (context != GenContext.FORCE_LOAD && !context.shouldGenerate(stClass)) {\n SchemaTupleFactory.LOG.debug(\"Context [\"+context+\"] not present for class, skipping.\");\n continue;\n }\n\n // the SchemaKey (Schema sans alias) and appendability are how we will\n // uniquely identify a SchemaTupleFactory\n Triple<SchemaKey, Boolean, GenContext> trip =\n Triple.make(new SchemaKey(schema), isAppendable, context);\n\n schemaTupleFactoriesByTriple.put(trip, stf);\n\n SchemaTupleFactory.LOG.info(\"Successfully resolved class for schema [\"+schema+\"] and appendability [\"+isAppendable+\"]\"\n + \" in context: \" + context);\n }\n schemaTupleFactoriesById.put(id, stf);\n }\n }", "public interface LOAD {\n\n /**\n * Create a new loader with a given set of arguments and kick off the\n * loading process. An instance of the class specified by the\n * {@code java_class} parameter is created. The specified class is expected\n * to implement the {@link\n * io.ciera.runtime.instanceloading.generic.IGenericLoader IGenericLoader}\n * interface. Once created, the {@code load} method of the loader will be\n * invoked, passing {@code args} and an instance of the {@code LOAD} class\n * to link call back in to the instance population.\n *\n * @param java_class the fully qualified class name of the loader class to\n * create\n * @param args the list of arguments to pass to the loader class\n * @throws XtumlException if the class specified by {@code java_class}\n * cannot be loaded or if it does not implement the {@link\n * io.ciera.runtime.instanceloading.generic.IGenericLoader IGenericLoader}\n * interface\n * @see io.ciera.runtime.instanceloading.generic.IGenericLoader IGenericLoader\n */\n public void load(String java_class, String[] args) throws XtumlException;\n\n /**\n * Create an xtUML class instance.\n *\n * @param key_letters the key letters of the xtUML class\n * @return an instance handle to the newly created class instance\n * @throws XtumlException if no class with matching key letters can be found\n * in the component\n */\n\tpublic Object create(String key_letters) throws XtumlException;\n\n /**\n * Relate two xtUML instances together across the given relationship. For\n * non-reflexive relationships, {@code inst1} and {@code inst2} are\n * interchangeable and the value of {@code phrase} has no effect. It may be\n * {@code null}. For reflexive relationships, {@code inst1} and {@code inst2}\n * will \"read across\" according to the value of {@code phrase} with the same\n * semantics as OAL.\n *\n * @param inst1 the first instance to relate\n * @param inst2 the second instance to relate\n * @param rel_num the relationship number to create\n * @param phrase the text phrase used to disambiguate relates of reflexive\n * relationships\n * @throws XtumlException if the relationship specified does not exist\n * between inst1 and inst2 or if the act of relating the instances results in\n * a model integrity violation\n */\n public void relate(Object inst1, Object inst2, int rel_num, String phrase) throws XtumlException;\n\n /**\n *\n * Relate three xtUML instances together across the given associative\n * relationship. For non-reflexive relationships, {@code inst1} and {@code\n * inst2} are interchangeable and the value of {@code phrase} has no effect.\n * It may be {@code null}. For reflexive relationships, {@code inst1} and\n * {@code inst2} will \"read across\" according to the value of {@code phrase}\n * with the same semantics as OAL.\n *\n * @param inst1 the first instance to relate\n * @param inst2 the second instance to relate\n * @param link the associative instance to relate\n * @param rel_num the relationship number to create\n * @param phrase the text phrase used to disambiguate relates of reflexive\n * relationships\n * @throws XtumlException if the relationship specified does not exist\n * between inst1 and inst2 or if the act of relating the instances results in\n * a model integrity violation\n */\n public void relate_using(Object inst1, Object inst2, Object link, int rel_num, String phrase) throws XtumlException;\n\n /**\n * Set the value of an attribute on an instance of an xtUML class.\n *\n * @param instance the model class instance\n * @param attribute_name the name of the attribute to set\n * @param value the value to assign to the specified attribute\n * @throws XtumlException if the specified attribute does not exist on the\n * class or if the type of the passed value is not compatible with the\n * attribute type\n */\n public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;\n\n /**\n * Invoke an xtUML domain function in the same component which originally\n * created the instance of {@code LOAD}.\n *\n * @param function_name The name of the domain function to invoke\n * @param args The argument list in modeled order\n * @return The result of the function invocation or {@code null} for\n * functions with void return type\n * @throws XtumlException if the a domain function could not be found with\n * the given names, or if the number of arguments or types of arguments\n * mismatch\n */\n\tpublic Object call_function(String function_name, Object ... args) throws XtumlException;\n\n\n\n}", "private ArrayList<Class<Critter>> getCritterClasses(Package pkg) {\n\t\tArrayList<Class<Critter>> classes = new ArrayList<Class<Critter>>();\n\t\tString packagename = pkg.getName();\n\t\tURL resource = ClassLoader.getSystemClassLoader().getResource(packagename);\n\t\tString path = resource.getFile(); //path to package\n\t\tFile directory;\n\t\ttry {\n\t\t\tdirectory = new File(resource.toURI());\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t\tif (directory.exists()) {\n\t\t\tString[] files = directory.list();\n\t\t\tfor (String file : files) {\n\t\t\t\tif (file.endsWith(\".class\")) {\n\t\t\t\t\t// removes the .class extension\n\t\t\t\t\tString className = packagename + '.' + file.substring(0, file.length() - 6);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tClass classObj = Class.forName(className);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tObject obj = classObj.newInstance();\n\t\t\t\t\t\t\tif (obj instanceof Critter) {\n\t\t\t\t\t\t\t\tclasses.add(classObj);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tcontinue; //Skip if class cannot be made into object\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn classes;\n\t}", "public IClassLoader getClassLoader();", "protected void addDefinition(ClassLoader al, String name, String classname)\n throws BuildException {\n Class<?> cl = null;\n try {\n try {\n name = ProjectHelper.genComponentName(getURI(), name);\n\n if (onError != OnError.IGNORE) {\n cl = Class.forName(classname, true, al);\n }\n\n if (adapter != null) {\n adapterClass = Class.forName(adapter, true, al);\n }\n\n if (adaptTo != null) {\n adaptToClass = Class.forName(adaptTo, true, al);\n }\n\n AntTypeDefinition def = new AntTypeDefinition();\n def.setName(name);\n def.setClassName(classname);\n def.setClass(cl);\n def.setAdapterClass(adapterClass);\n def.setAdaptToClass(adaptToClass);\n def.setRestrict(restrict);\n def.setClassLoader(al);\n if (cl != null) {\n def.checkClass(getProject());\n }\n ComponentHelper.getComponentHelper(getProject())\n .addDataTypeDefinition(def);\n } catch (ClassNotFoundException cnfe) {\n throw new BuildException(\n getTaskName() + \" class \" + classname\n + \" cannot be found\\n using the classloader \" + al,\n cnfe, getLocation());\n } catch (NoClassDefFoundError ncdfe) {\n throw new BuildException(\n getTaskName() + \" A class needed by class \" + classname\n + \" cannot be found: \" + ncdfe.getMessage()\n + \"\\n using the classloader \" + al,\n ncdfe, getLocation());\n }\n } catch (BuildException ex) {\n switch (onError) {\n case OnError.FAIL_ALL:\n case OnError.FAIL:\n throw ex;\n case OnError.REPORT:\n log(ex.getLocation() + \"Warning: \" + ex.getMessage(),\n Project.MSG_WARN);\n break;\n default:\n log(ex.getLocation() + ex.getMessage(),\n Project.MSG_DEBUG);\n }\n }\n }", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic void refreshModules()\n\t{\n\t\t// Scan each directory in turn to find JAR files\n\t\t// Subdirectories are not scanned\n\t\tList<File> jarFiles = new ArrayList<>();\n\n\t\tfor (File dir : moduleDirectories) {\n\t\t\tfor (File jarFile : dir.listFiles(jarFileFilter)) {\n\t\t\t\tjarFiles.add(jarFile);\n\t\t\t}\n\t\t}\n\n\t\t// Create a new class loader to ensure there are no class name clashes.\n\t\tloader = new GPIGClassLoader(jarFiles);\n\t\tfor (String className : loader.moduleVersions.keySet()) {\n\t\t\ttry {\n\t\t\t\t// Update the record of each class\n\t\t\t\tClass<? extends Interface> clz = (Class<? extends Interface>) loader.loadClass(className);\n\t\t\t\tClassRecord rec = null;\n\t\t\t\tfor (ClassRecord searchRec : modules.values()) {\n\t\t\t\t\tif (searchRec.clz.getName().equals(className)) {\n\t\t\t\t\t\trec = searchRec;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (rec != null) {\n\t\t\t\t\t// This is not an upgrade, ignore it\n\t\t\t\t\tif (rec.summary.moduleVersion >= loader.moduleVersions.get(className)) continue;\n\n\t\t\t\t\t// Otherwise update the version number stored\n\t\t\t\t\trec.summary.moduleVersion = loader.moduleVersions.get(className);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\trec = new ClassRecord();\n\t\t\t\t\trec.summary = new ModuleSummary(IDGenerator.getNextID(), loader.moduleVersions.get(className),\n\t\t\t\t\t\t\tclassName);\n\t\t\t\t\tmodules.put(rec.summary.moduleID, rec);\n\t\t\t\t}\n\t\t\t\trec.clz = clz;\n\n\t\t\t\t// Update references to existing objects\n\t\t\t\tfor (StrongReference<Interface> ref : instances.values()) {\n\t\t\t\t\tif (ref.get().getClass().getName().equals(className)) {\n\t\t\t\t\t\tConstructor<? extends Interface> ctor = clz.getConstructor(Object.class);\n\t\t\t\t\t\tref.object = ctor.newInstance(ref.get());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (NoSuchMethodException e) {\n\t\t\t\t// Thrown when trying to find a suitable constructor\n\t\t\t\tSystem.err.println(\"Discovered class which has no available upgrade constructor: \" + className + \"\\n\\t\"\n\t\t\t\t\t\t+ e.getLocalizedMessage());\n\t\t\t}\n\t\t\tcatch (InstantiationException | IllegalAccessException | IllegalArgumentException\n\t\t\t\t\t| InvocationTargetException e) {\n\t\t\t\t// All thrown by the instantiate call\n\t\t\t\tSystem.err.println(\"Unable to create new instance of class: \" + className + \"\\n\\t\"\n\t\t\t\t\t\t+ e.getLocalizedMessage());\n\t\t\t}\n\t\t\tcatch (ClassNotFoundException e) {\n\t\t\t\t// Should never occur but required to stop the compiler moaning\n\t\t\t\tSystem.err.println(\"Discovered class which has no available upgrade constructor: \" + className + \"\\n\\t\"\n\t\t\t\t\t\t+ e.getLocalizedMessage());\n\t\t\t}\n\t\t}\n\t}", "protected abstract void loader() throws IOException;", "@Override\n public Loader getClassLoader() {\n\treturn this.classLoader;\n }", "public void prepare() throws ClassNotFoundException {\n }", "public static void main(String[] args) throws IOException {\n\n\t\t// get path to rt.jar file\n\t\tString rtPath = args[0];\n\t\tFile rtFile = new File(rtPath);\n\t\tif (!rtFile.isFile()) {\n\t\t\tSystem.err.println(\"File not found: \" + rtFile.getAbsolutePath());\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\t// load all classes from rt.jar file into memory\n\t\tClasspathLoader loader = LoaderBuilder.create().forClassLoader(\"Runtime\").buildClasspathLoader();\n\t\tClasspath classpath = loader.load(Collections.singletonList(rtFile));\n\t\tJarFile jarFile = classpath.getJarFiles().get(0);\n\t\tList<ClassDef> classDefs = jarFile.getClassDefs();\n\n\t\t// list of packages which will be added to resource file\n\t\tList<String> includedPackageNames = Arrays.asList(\n\t\t\t\t\"com.sun.net.httpserver\", \"com.sun.xml.internal.ws.addressing\",\n\t\t\t\t\"java.applet\", \"java.awt\", \"java.beans\", \"java.io\", \"java.lang\", \"java.math\", \"java.net\", \"java.nio\", \"java.rmi\", \"java.security\", \"java.sql\", \"java.text\", \"java.time\", \"java.util\",\n\t\t\t\t\"javax.activation\", \"javax.annotation\", \"javax.imageio\", \"javax.jws\", \"javax.management\", \"javax.naming\", \"javax.net\", \"javax.script\", \"javax.security.auth\", \"javax.sql\", \"javax.transaction\", \"javax.xml\",\n\t\t\t\t\"org.w3c.dom\", \"org.xml.sax\",\n\t\t\t\t\"sun.misc\"\n\t\t);\n\n\t\t// split into included classes (class defs) and excluded classes (names)\n\t\tList<ClassDef> includedClassDefs = new ArrayList<>();\n\t\tList<String> excludedClassNames = new ArrayList<>();\n\t\tfor (ClassDef classDef : classDefs) {\n\t\t\tString className = classDef.getClassName();\n\t\t\tboolean include = includedPackageNames.stream().anyMatch(p -> className.startsWith(p + \".\"));\n\t\t\tif (include) {\n\t\t\t\tincludedClassDefs.add(classDef);\n\t\t\t} else {\n\t\t\t\texcludedClassNames.add(className);\n\t\t\t}\n\t\t}\n\n\t\t// open compressed output stream to test resource file\n\t\tString resourcePath = \"./src/test/resources/classes-oracle-jdk-1.8.0_144.dat.gz\";\n\t\tFile resourceFile = new File(resourcePath);\n\t\ttry (FileOutputStream fos = new FileOutputStream(resourceFile)) {\n\t\t\ttry (GZIPOutputStream zos = new GZIPOutputStream(fos)) {\n\t\t\t\ttry (DataOutputStream dos = new DataOutputStream(zos)) {\n\t\t\t\t\t// write list of included class definitions\n\t\t\t\t\tdos.writeInt(includedClassDefs.size());\n\t\t\t\t\tfor (ClassDef classDef : includedClassDefs) {\n\t\t\t\t\t\tClassDefUtils.write(classDef, dos);\n\t\t\t\t\t}\n\t\t\t\t\t// write list of excluded class names\n\t\t\t\t\tdos.writeInt(excludedClassNames.size());\n\t\t\t\t\tfor (String className : excludedClassNames) {\n\t\t\t\t\t\tdos.writeUTF(className);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"Runtime file : \" + rtFile.getAbsolutePath());\n\t\tSystem.out.println(\"Total classes found: \" + classDefs.size());\n\t\tSystem.out.println(\"Included classes : \" + includedClassDefs.size());\n\t\tSystem.out.println(\"Excluded classes : \" + excludedClassNames.size());\n\t\tSystem.out.println(\"Resource file : \" + resourceFile.getAbsolutePath());\n\t\tSystem.out.println(\"Final file size : \" + FileUtils.formatFileSize(resourceFile.length()));\n\t}", "CodegenFactory getCodegenFactory();", "private void registerPrinters() {\n List<Class> classes = null;\n try {\n classes = ReflectionUtils.getAnnotatedClasses(PrinterAnnotation.class);\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n if(classes != null && classes.size() != 0) {\n for(Class aClass : classes) {\n try {\n Class<?> clazz = aClass;\n if (clazz.isAnnotationPresent(PrinterAnnotation.class) &&\n clazz.getAnnotation(PrinterAnnotation.class).parent() == PrinterAnnotation.NULL.class) {\n AbstractPrinter printer = (AbstractPrinter) clazz.newInstance();\n registerSignaturePrinters(printer);\n printers.put(clazz.getAnnotation(PrinterAnnotation.class).type(), printer);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n }", "private ClinicFileLoader() {\n\t}", "void load ()\n {\n String name = this.getName();\n try\n {\n\tObject value = Class.forName (className).newInstance ();\n if (value instanceof Syntax)\n\t {\n\t loaded = (Syntax) value;\t\n\t if (name != null && loaded.getName() == null)\n\t loaded.setName(name);\n\t }\n\telse\n\t throw_error (\"failed to autoload valid syntax object \");\n }\n catch (ClassNotFoundException ex)\n {\tthrow_error (\"failed to find class \"); }\n catch (InstantiationException ex)\n { throw_error (\"failed to instantiate class \"); }\n catch (IllegalAccessException ex)\n { throw_error (\"illegal access in class \"); }\n catch (UnboundLocationException e)\n { throw_error (\"missing symbol '\" + e.getMessage () + \"' \"); }\n catch (WrongArguments ex)\n { throw_error (\"type error\"); }\n }", "public String[] getClassesToCompile();", "public static void register() {\n ArrowRelationIOFactory.getInstance().registerWriter(ArrowRelationSerializerTeX.getInstance(), \"tex\");\n }", "private void setupLauncherClassLoader() throws Exception {\n ClassLoader extCL = ClassLoader.getSystemClassLoader().getParent();\n ClassPathBuilder cpb = new ClassPathBuilder(extCL);\n\n try {\n addFrameworkJars(cpb);\n addJDKToolsJar(cpb);\n findDerbyClient(cpb);\n File moduleDir = bootstrapFile.getParentFile();\n cpb.addGlob(moduleDir, additionalJars);\n this.launcherCL = cpb.create();\n } catch (IOException e) {\n throw new Error(e);\n }\n Thread.currentThread().setContextClassLoader(launcherCL);\n }", "public <T> Class<T> defineAndLoadClass(ClassLoader classLoader, String proxyName, byte[] proxyBytes,\n Class<?> parent)\n throws ProxyGenerationException\n {\n Class<?> definedClass = null;\n try\n {\n // CHECKSTYLE:OFF\n switch (defineClassImpl) {\n case 0: // unset\n case 1: // classloader\n {\n if (defineClassMethod == null)\n {\n Method defineClassMethodTmp;\n try\n {\n // defineClass is a final method on the abstract base ClassLoader\n // thus we need to cache it only once\n defineClassMethodTmp = ClassLoader.class.getDeclaredMethod(\n \"defineClass\", String.class, byte[].class, int.class, int.class);\n if (!defineClassMethodTmp.isAccessible())\n {\n try\n {\n defineClassMethodTmp.setAccessible(true);\n defineClassMethod = defineClassMethodTmp;\n }\n catch (final RuntimeException re)\n {\n // likely j9 or not accessible via security, let's use unsafe or MethodHandle as fallbacks\n }\n }\n }\n catch (final NoSuchMethodException e)\n {\n // all fine, we just skip over from here\n }\n }\n\n if (defineClassMethod != null)\n {\n try\n {\n definedClass = Class.class.cast(defineClassMethod.invoke(\n classLoader, proxyName, proxyBytes, 0, proxyBytes.length));\n defineClassImpl = 1;\n break;\n }\n catch (final Throwable t)\n {\n definedClass = handleLinkageError(t, proxyName, classLoader);\n if (definedClass != null)\n {\n defineClassImpl = 1;\n break;\n }\n }\n }\n }\n case 2: // lookup\n {\n if (privateLookup == null)\n {\n synchronized (this)\n {\n if (privateLookup == null)\n {\n try\n {\n lookup = MethodHandles.lookup();\n defineClass = lookup.getClass().getMethod(\"defineClass\", byte[].class);\n privateLookup = MethodHandles.class.getDeclaredMethod(\n \"privateLookupIn\", Class.class, MethodHandles.Lookup.class);\n }\n catch (final Exception re)\n {\n // no-op\n }\n }\n }\n }\n\n if (privateLookup != null)\n {\n try\n {\n final MethodHandles.Lookup lookupInstance = MethodHandles.Lookup.class.cast(\n privateLookup.invoke(\n null,\n proxyName.startsWith(\"org.apache.webbeans.custom.signed.\") ?\n CustomSignedProxyPackageMarker.class :\n proxyName.startsWith(\"org.apache.webbeans.custom.\") ?\n CustomProxyPackageMarker.class : parent,\n lookup));\n definedClass = (Class<T>) defineClass.invoke(lookupInstance, proxyBytes);\n defineClassImpl = 2;\n break;\n }\n catch (final Exception e)\n {\n definedClass = handleLinkageError(e, proxyName, classLoader);\n if (definedClass != null)\n {\n defineClassImpl = 2;\n break;\n }\n }\n }\n }\n case 3: // unlikely - unsafe\n try\n {\n definedClass = Class.class.cast(unsafeDefineClass().invoke(\n internalUnsafe, proxyName, proxyBytes, 0, proxyBytes.length, classLoader, null));\n defineClassImpl = 3;\n }\n catch (final Throwable t)\n {\n definedClass = handleLinkageError(t, proxyName, classLoader);\n }\n break;\n default:\n throw new IllegalAccessError(\"Unknown defineClass impl: \" + defineClassImpl);\n }\n\n // CHECKSTYLE:ON\n if (definedClass == null)\n {\n throw new IllegalStateException(\"Can't define proxy \" + proxyName);\n }\n\n return (Class<T>) Class.forName(definedClass.getName(), true, classLoader);\n }\n catch (final Throwable e)\n {\n return onProxyGenerationError(e, proxyName, classLoader);\n }\n }" ]
[ "0.5713129", "0.56474894", "0.56104004", "0.55988777", "0.5546238", "0.55064756", "0.55002546", "0.54668725", "0.5424729", "0.53880167", "0.5278635", "0.5270314", "0.52618337", "0.524165", "0.52347875", "0.5230964", "0.5223411", "0.5209855", "0.5204838", "0.5204426", "0.51746184", "0.51666725", "0.5156706", "0.51523167", "0.51523167", "0.5150508", "0.5146869", "0.5131634", "0.51221216", "0.5108482", "0.50783753", "0.5060954", "0.5055472", "0.505469", "0.5047733", "0.5045852", "0.5038437", "0.5029598", "0.5025921", "0.50188065", "0.50164294", "0.5010355", "0.5003504", "0.4997741", "0.49923167", "0.49851888", "0.4962738", "0.49464598", "0.49436876", "0.4934704", "0.4930054", "0.492083", "0.4904124", "0.4900806", "0.4884692", "0.48789993", "0.48789153", "0.48719642", "0.4869543", "0.4849651", "0.48344132", "0.48325124", "0.48307782", "0.48301327", "0.4820584", "0.4819161", "0.48145553", "0.4814029", "0.480536", "0.4802818", "0.4800368", "0.48000115", "0.47934428", "0.47805092", "0.47801286", "0.4777178", "0.4772824", "0.4772135", "0.4771317", "0.4761624", "0.4759676", "0.4755632", "0.47454226", "0.47429222", "0.47394603", "0.47376624", "0.47279668", "0.47254425", "0.47160214", "0.47120443", "0.4701488", "0.4700166", "0.46961385", "0.46926725", "0.46901855", "0.4680144", "0.46716562", "0.4669095", "0.46685272", "0.46664637" ]
0.69911957
0
Returns all the registered writers.
public static FASTAWriterFactory[] getRegisteredWriters(){ return (FASTAWriterFactory[])writers.values().toArray(new FASTAWriterFactory[0]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Set<PrintWriter> getWriters() {\n return writers;\n }", "public Collection<WriterProxy> getMatchedWriters() {\r\n\t\treturn writerProxies.values();\r\n\t}", "public Enumeration getAllAppenders() {\n synchronized (myAppenders) {\n return myAppenders.getAllAppenders();\n }\n }", "public static Collection<TreeRendererDescriptor> registeredRenderers() {\n return Collections.unmodifiableCollection(REGISTRY.values());\n }", "public final Set<WritableSession> getSubscribers() {\r\n return sessions;\r\n }", "public List<IStoryWriter> getWriterStories();", "@SuppressWarnings(\"unchecked\")\r\n\tpublic static Set<AppenderProxy> getAppenders() {\r\n\t\tSet<AppenderProxy> appenders = new HashSet<AppenderProxy>();\r\n\t\t\r\n\t\t// Add system appender\r\n\t\tif (AppenderProxy.getSystemAppender() != null)\r\n\t\t\tappenders.add(AppenderProxy.getSystemAppender());\r\n\t\t\r\n\t\t// Add appenders attached to the root logger\r\n\t\tEnumeration<Appender> rootAppenders = LogManager.getRootLogger().getAllAppenders();\r\n\t\twhile (rootAppenders.hasMoreElements())\r\n\t\t\tappenders.add(new AppenderProxy(rootAppenders.nextElement()));\r\n\t\t\r\n\t\t// Search for appenders on all other loggers\r\n\t\tEnumeration<Logger> loggersEnum = LogManager.getCurrentLoggers();\r\n\t\twhile (loggersEnum.hasMoreElements()) {\r\n\t\t\tLogger logger = loggersEnum.nextElement();\r\n\t\t\tEnumeration<Appender> appendersEnum = logger.getAllAppenders();\r\n\t\t\t\r\n\t\t\twhile (appendersEnum.hasMoreElements())\r\n\t\t\t\tappenders.add(new AppenderProxy(appendersEnum.nextElement()));\r\n\t\t}\r\n\t\t\r\n\t\treturn appenders;\r\n\t}", "public Map<String, Appender> getAppenders() {\n return privateConfig.loggerConfig.getAppenders();\n }", "public java.util.List<ServiceRegistry> getServiceRegistries() {\n if (serviceRegistries == null) {\n serviceRegistries = new com.amazonaws.internal.SdkInternalList<ServiceRegistry>();\n }\n return serviceRegistries;\n }", "public java.util.List<ServiceRegistry> getServiceRegistries() {\n if (serviceRegistries == null) {\n serviceRegistries = new com.amazonaws.internal.SdkInternalList<ServiceRegistry>();\n }\n return serviceRegistries;\n }", "public String[] getRegisteredChannels()\n {\n int x = 0;\n String[] ret = new String[channelToHandlers.size()];\n \n for (String value : channelToHandlers.keySet())\n {\n ret[x++] = value;\n }\n return ret;\n }", "@Override\r\n\tpublic List<MemberVO> getWriter(String id) {\n\t\treturn sqlSession.selectList(namespace + \".getWriter\", id);\r\n\t}", "@Override\r\n\tpublic List<MemberVO> getWriter(String id) {\n\t\treturn sqlSession.selectList(namespace + \".getWriter\", id);\r\n\t}", "public Map<QName, Marshaller> getMarshallers() {\n return Collections.unmodifiableMap(marshallers);\n }", "public Collection<WriterProxy> getMatchedWriters(GuidPrefix prefix) {\r\n\t\tList<WriterProxy> proxies = new LinkedList<>();\r\n\r\n\t\tfor (Entry<Guid, WriterProxy> e : writerProxies.entrySet()) {\r\n\t\t\tif (prefix.equals(e.getKey().getPrefix())) {\r\n\t\t\t\tproxies.add(e.getValue());\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\t\r\n\t\treturn proxies;\r\n\t}", "@Override\n public void write() {\n for(MDCWriter writer : this.writers) {\n writer.write();\n }\n }", "public Iterator<RendererBean> renderers()\r\n {\r\n return _renderers.values().iterator();\r\n }", "public Collection<AbstractReaderPlugin> getReaders();", "public List<Publisher> getPublishers() {\n return publishers;\n }", "public Collection<IRequestHandler<?>> getRegisteredValues() {\n return registry.values();\n }", "private synchronized static Map getListeners() {\n\t\tif (registeredListeners == null) {\n\t\t\tregisteredListeners = Collections.synchronizedMap(new HashMap());\n\t\t}\n\t\treturn registeredListeners;\n\t}", "public List<ServiceRegistry> getServiceRegistrys() {\n\t\treturn (new ServiceRegistryDAO()).getCloneList();\r\n\t}", "private List<Map<String, Object>> writeConsumers() {\n // Create json array for consumers\n List<Map<String, Object>> jsonConsumers = new ArrayList<>();\n Database database = Database.getInstance();\n\n // Convert each consumer object to json object\n for (Consumer consumer : database.getConsumersMap().values()) {\n Map<String, Object> jsonConsumer = new LinkedHashMap<>();\n\n jsonConsumer.put(Constants.ID, consumer.getId());\n jsonConsumer.put(Constants.ISBANKRUPT, consumer.isBankrupt());\n jsonConsumer.put(Constants.BUDGET, consumer.getBudget());\n\n jsonConsumers.add(jsonConsumer);\n }\n return jsonConsumers;\n }", "@Override\n\tpublic List<Generator> getAll() {\n\t\treturn new ArrayList<>();\n\t}", "public Collection getRegisteredObjects() {\n return usedByObjects;\n }", "public List<Registration> getRegistrations() {\n\t\treturn registrations;\n\t}", "public Vector<String> getWriter_h() {\n\t\t\n\t\treturn writer_h;\n\t}", "public void closeAll() throws IOException {\n\t\tfor (BufferedWriter writer : writers.values()) {\n\t\t\twriter.close();\n\t\t}\n\t\twriters.clear();\n\t}", "public java.util.List<org.hyperledger.fabric.protos.token.Transaction.PlainOutput.Builder> \n getOutputsBuilderList() {\n return getOutputsFieldBuilder().getBuilderList();\n }", "public java.util.List<org.hyperledger.fabric.protos.token.Transaction.PlainOutput.Builder> \n getOutputsBuilderList() {\n return getOutputsFieldBuilder().getBuilderList();\n }", "public java.util.List<org.hyperledger.fabric.protos.token.Transaction.PlainOutput.Builder> \n getOutputsBuilderList() {\n return getOutputsFieldBuilder().getBuilderList();\n }", "public java.util.List<com.rpg.framework.database.Protocol.Monster.Builder> \n getMonstersBuilderList() {\n return getMonstersFieldBuilder().getBuilderList();\n }", "public java.util.List<com.rpg.framework.database.Protocol.Monster.Builder> \n getMonstersBuilderList() {\n return getMonstersFieldBuilder().getBuilderList();\n }", "@Override\r\n public void close() throws IOException {\r\n IOException ioException = null;\r\n for (WriterInfo writerInfo : mWriters) {\r\n try {\r\n Writer writer = writerInfo.getWriter();\r\n if (writerInfo.getOwned()) {\r\n writer.close();\r\n } else {\r\n writer.flush();\r\n }\r\n } catch(IOException ioex) {\r\n ioException = ioex;\r\n }\r\n }\r\n if (ioException != null) {\r\n throw ioException;\r\n }\r\n }", "public java.util.List<io.grafeas.v1.Jwt.Builder> getJwtsBuilderList() {\n return getJwtsFieldBuilder().getBuilderList();\n }", "private List<IntWatcher> getWatchers(String name) {\n List<IntWatcher> ws = watchers.get(name);\n if (ws == null) {\n ws = new ArrayList<>();\n watchers.put(name, ws);\n }\n return ws;\n }", "public GaugeConsumer[] getGaugeConsumers() {\n\t\treturn gaugeConsumers;\n\t}", "public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllTextWriter_asNode() {\r\n\t\treturn Base.getAll_asNode(this.model, this.getResource(), TEXTWRITER);\r\n\t}", "private List<Map<String, Object>> writeProducers() {\n // Create json array for producers\n List<Map<String, Object>> jsonProducers = new ArrayList<>();\n Database database = Database.getInstance();\n\n // Convert each distributor object to json object\n for (Producer producer : database.getProducersMap().values()) {\n Map<String, Object> jsonProducer = new LinkedHashMap<>();\n\n jsonProducer.put(Constants.ID, producer.getId());\n jsonProducer.put(Constants.MAXDISTRIBUTORS, producer.getMaxDistributors());\n jsonProducer.put(Constants.PRICEKW, producer.getPriceKW());\n jsonProducer.put(Constants.ENERGYTYPE, producer.getEnergyType().getLabel());\n jsonProducer.put(Constants.ENERGYPERDISTRIBUTOR, producer.getEnergyPerDistributor());\n\n // Convert producer's monthly stats to json objects\n List<Map<String, Object>> jsonMonthlyStats = writeStats(producer);\n\n jsonProducer.put(Constants.MONTHLYSTATS, jsonMonthlyStats);\n\n jsonProducers.add(jsonProducer);\n }\n return jsonProducers;\n }", "public String[] unregisterAll()\n {\n String[] ret = getRegisteredChannels();\n channelToHandlers.clear();\n handlerToChannels.clear();\n return ret;\n }", "public java.util.List<org.hyperledger.fabric.protos.token.Transaction.PlainDelegatedOutput.Builder> \n getDelegatedOutputsBuilderList() {\n return getDelegatedOutputsFieldBuilder().getBuilderList();\n }", "public Map<String, Mapper> getMappers() {\n return new HashMap<String, Mapper>(this.mappers);\n }", "public List<Spectator> findAllSpectators(){\n\t\treturn spectatorRepository.findAll();\n\t}", "static ImmutableList<EAScoringObserver.Outputter> getOutputters(Parameters params) {\n final ImmutableList.Builder<EAScoringObserver.Outputter> ret =\n ImmutableList.builder();\n ret.add(EAScoringObserver.createStandardOutputter());\n ret.add(EAScoringObserver.createEquivalenceClassIDOutputter());\n if (params.isPresent(NUM_BOOTSTRAP_SAMPLES)) {\n final int bootstrapSeed = params.getInteger(\"bootstrapSeed\");\n final int numBootstrapSamples = params.getPositiveInteger(\"numBootstrapSamples\");\n ret.add(EAScoringObserver\n .createBootstrapOutputter(bootstrapSeed, numBootstrapSamples));\n }\n return ret.build();\n }", "@Override\n public PrintWriter getWriter() throws IOException {\n return this.writer;\n }", "public Writer getWriter ()\n {\n\tif (myWriter == null)\n\t{\n\t myWriter = new MyWriter ();\n\t}\n\n\treturn myWriter;\n }", "@Override\n public final SortedSet<Node<N>> getSinks() {\n return new Sinks(this);\n }", "public List<WorkspaceUser> getSavers() {\n\t\treturn savers;\n\t}", "public java.util.List<MonitoringOutput> getMonitoringOutputs() {\n return monitoringOutputs;\n }", "@SuppressWarnings(\"rawtypes\")\n\tpublic static Enumeration getCurrentLoggers() {\n\t\tArrayList<Logger> copy;\n\t\tsynchronized (mutex) {\n\t\t\tcopy = new ArrayList<Logger>(loggers.values());\n\t\t}\n\t\tcopy.remove(root);\n\t\treturn Collections.enumeration(copy);\n\t}", "public IndexersImpl indexers() {\n return this.indexers;\n }", "public List<WorkspaceUser> getSavers() {\n\t\t\treturn savers;\n\t\t}", "public Enumeration<?> getCurrentLoggers() {\n\t\treturn this.hierarchy.getCurrentLoggers();\n\t}", "public java.util.List<com.rpg.framework.database.Protocol.Monster> getMonstersList() {\n if (monstersBuilder_ == null) {\n return java.util.Collections.unmodifiableList(monsters_);\n } else {\n return monstersBuilder_.getMessageList();\n }\n }", "public java.util.List<com.rpg.framework.database.Protocol.Monster> getMonstersList() {\n if (monstersBuilder_ == null) {\n return java.util.Collections.unmodifiableList(monsters_);\n } else {\n return monstersBuilder_.getMessageList();\n }\n }", "Map<String, Logger> loggers();", "@Override\n\tpublic List<RoomInterface> getRooms() {\n\t\treturn rooms;\n\t}", "public Map<HandlerRegistryInfo, PhaseHandler> getHandlers() {\r\n return this.delegate.getHandlers();\r\n }", "@Override\n public List<ISubscriber> getSubscribers() {\n return subscribers;\n }", "@SuppressWarnings(\"unchecked\")\r\n\t public void close() throws IOException, InterruptedException {\r\n\t for (RecordWriter writer : recordWriters.values()) {\r\n\t writer.close(context);\r\n\t }\r\n\t }", "public java.util.List<org.auvua.utils.protobuffer.AUVprotocol.AUVCommand.Output.Builder> \n getOutputsBuilderList() {\n return getOutputsFieldBuilder().getBuilderList();\n }", "public Collection<MetricInfo> listMetrics() {\n if (!registeredMetrics.isEmpty()) {\n return registeredMetrics.values();\n }\n return null;\n }", "public BufferedMCLWriter getWriter() {\n\t\treturn writer;\n\t}", "public RuleSetInfo[] listRegistrations() throws RemoteException, RuleException;", "public String getWriter() {\r\n return writer;\r\n }", "public List<String> getOutputs() {\n\t\tif (outputs == null){\r\n\t\t\tif (checkAndGetSensorDescription() && (sensorDescription.getMemberList()!= null)) {\r\n\t\t\t\tfor(Inner_Element_member member : sensorDescription.getMemberList()){\r\n\t\t\t\t\tif (member.get_Process()!= null) {\r\n\t\t\t\t\t\t//Inner_Element_OutputList \r\n\t\t\t\t\t\tfor (IoComponentPropertyType elementOut: member.get_Process().getOutputs().getOutputList().getOutputList()){\r\n\t\t\t\t\t\t\toutputs.add(elementOut.getName());\r\n\t\t\t\t\t\t\tif (elementOut.getQuantity()!= null) {\r\n\t\t\t\t\t\t\t\tElement_Quantity quantity = elementOut.getQuantity(); \r\n\t\t\t\t\t\t\t\t//fill the properties as they are already setup\r\n\t\t\t\t\t\t\t\tupdateObservedProperty(quantity);\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\treturn outputs;\r\n\t}", "Iterable<String> getRegisteredNames();", "public String getPublishers() {\n return publishers;\n }", "public static List<DocumentUploader> getDocumentUploaders() {\n\t\tif (documentUploaders == null) {\n\t\t\tdocumentUploaders = new ArrayList<DocumentUploader>();\n\t\t\tLOG.debug(\"Loading UploadDocuments...\");\n\t\t\ttry {\n\t\t\t\tfor (DocumentUploader documentUploader : ServiceLoader.load(DocumentUploader.class)) {\n\t\t\t\t\tLOG.debug(\"Loaded: %s\", documentUploader.getTitle());\n\t\t\t\t\tdocumentUploaders.add(documentUploader);\n\t\t\t }\n\t\t\t}\n\t\t\tcatch (ServiceConfigurationError ex) {\n\t\t\t\tLOG.error(\"ServiceConfigurationError: %s\", ex);\n\t\t\t}\n\t\t}\n\t\treturn documentUploaders;\n\t}", "public Set<IAspectWrite> getWriteAspects();", "public Collection<T> getListeners() {\n return new ArrayList(_elements);\n }", "public List<SecretMetadata> resources() {\n return resources;\n }", "public JTextAreaWriter getWriter() {\n return this.writer;\n }", "public DescriptorExtensionList<Builder, Descriptor<Builder>> getBuilderDescriptors() {\n return Builder.all();\n }", "@Override\n public final HandlerList getHandlers(){\n return handlers;\n }", "public void clearAllWatchers() {\n\t\tif (registeredWatchers.size() > 0) {\n\t\t\tboolean isRemoved = false;\n\t\t\tLOG.info(\"About to unregister all watchers.\");\n\t\t\tfor (WatchKey watchKey : registeredWatchers.keySet()) {\n\t\t\t\ttry {\n\t\t\t\t\tisRemoved = notifier.removeWatcher(watchKey);\n\t\t\t\t\tif (isRemoved) {\n\t\t\t\t\t\tregisteredWatchers.remove(watchKey);\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// Let other watchers be cleared off\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (registeredWatchers.size() > 0) {\n\t\t\t\tLOG.info(\"Failed to clear all the watchers. Some watchers couldn't be unregistered.\");\n\t\t\t}\n\t\t} else {\n\t\t\tLOG.warn(\"Failed to clear all the watchers as no watchers registered.\");\n\t\t}\n\t}", "List<ContextBuilderConfigurator> getConfigurators() {\n return configurators;\n }", "public List<MBean> getAllMbeans() {\n\n\t\tList<MBean> mbeans = new ArrayList<MBean>();\n\n\t\tfor (Map.Entry<String, List<MBean>> entry : mbeanMap.entrySet()) {\n\t\t\tList<MBean> entryMbeans = entry.getValue();\n\t\t\tif (entryMbeans != null) {\n\t\t\t\tmbeans.addAll(entryMbeans);\n\t\t\t}\n\t\t}\n\n\t\treturn Collections.unmodifiableList(mbeans);\n\t}", "public Collection<Provider> getProviders() {\n if (providers != null) {\n return new ArrayList<>(providers);\n } else {\n return new ArrayList<>();\n }\n }", "@Deprecated\n public Map<File, FileWatcher> getWatchers() {\n final Map<File, FileWatcher> map = new HashMap<>(watchers.size());\n for (Map.Entry<Source, ConfigurationMonitor> entry : watchers.entrySet()) {\n if (entry.getValue().getWatcher() instanceof ConfigurationFileWatcher) {\n map.put(entry.getKey().getFile(), (FileWatcher) entry.getValue().getWatcher());\n } else {\n map.put(entry.getKey().getFile(), new WrappedFileWatcher((FileWatcher) entry.getValue().getWatcher()));\n }\n }\n return map;\n }", "public java.util.List<com.rpg.framework.database.Protocol.Monster> getMonstersList() {\n return monsters_;\n }", "public java.util.List<com.rpg.framework.database.Protocol.Monster> getMonstersList() {\n return monsters_;\n }", "public OPDSManifestWriters()\n {\n\n }", "public Iterator<Object> listeners() {\n return Arrays.asList(fListeners).iterator();\n }", "public LinkedList getConsumers() {\n return consumer;\n }", "public List<Script> getWatchedScripts() {\n try {\n return new ArrayList<Script>(watchedScripts);\n } finally {\n }\n }", "@GET\n @Produces({MediaType.APPLICATION_JSON, MediaType.TEXT_PLAIN})\n public String getAvailableDatabaseDrivers() {\n final Enumeration<Driver> loadedDrivers = DriverManager.getDrivers();\n final List<String> drivers = new ArrayList<>();\n while (loadedDrivers.hasMoreElements()) {\n Driver driver = loadedDrivers.nextElement();\n drivers.add(driver.getClass().getCanonicalName());\n }\n final DriversDTO driversDTO = DtoFactory.getInstance().createDto(DriversDTO.class).withDrivers(drivers);\n final String msg = DtoFactory.getInstance().toJson(driversDTO);\n LOG.debug(msg);\n return msg;\n }", "public List<Registery> getAllRegisteryItems() {\n\t\treturn allRegisteryItems;\n\t}", "public Set<String> getFonts() {\n return generators.keySet();\n }", "public Iterable<L> getListeners() {\r\n if (weakHandler || listeners.size() == 0) return weak.keySet();\r\n if (weak.size() == 0) return listeners.keySet();\r\n LinkedList<L> ll = new LinkedList<L>(listeners.keySet());\r\n ll.addAll(weak.keySet());\r\n return ll;\r\n }", "protected PayloadBuilderSet[] getPayloadBuilderSets() {\n\t\treturn sets;\n\t}", "public synchronized List<EventListener> getListeners() {\n \treturn listeners;\n }", "public Set<AngularClientVariableWatcher> getAngularWatchers()\n\t{\n\t\tif (angularWatchers == null)\n\t\t{\n\t\t\tangularWatchers = new LinkedHashSet<>();\n\t\t}\n\t\treturn angularWatchers;\n\t}", "@Override\n\tpublic List<WechatsBean> findAll() {\n\t\treturn mapper.findAll();\n\t}", "public java.util.List<org.hyperledger.fabric.protos.token.Transaction.PlainDelegatedOutput> getDelegatedOutputsList() {\n if (delegatedOutputsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(delegatedOutputs_);\n } else {\n return delegatedOutputsBuilder_.getMessageList();\n }\n }", "public java.util.List<com.yahoo.xpathproto.TransformTestProtos.ContentImage.Builder> \n getImagesByHandlerBuilderList() {\n return getImagesByHandlerFieldBuilder().getBuilderList();\n }", "private static XMLWriters<Track>\n\twriters(final Function<? super Number, String> formatter) {\n\t\treturn new XMLWriters<Track>()\n\t\t\t.v00(XMLWriter.elem(\"name\").map(t -> t._name))\n\t\t\t.v00(XMLWriter.elem(\"cmt\").map(r -> r._comment))\n\t\t\t.v00(XMLWriter.elem(\"desc\").map(r -> r._description))\n\t\t\t.v00(XMLWriter.elem(\"src\").map(r -> r._source))\n\t\t\t.v11(XMLWriter.elems(Link.WRITER).map(r -> r._links))\n\t\t\t.v10(XMLWriter.elem(\"url\").map(Track::url))\n\t\t\t.v10(XMLWriter.elem(\"urlname\").map(Track::urlname))\n\t\t\t.v00(XMLWriter.elem(\"number\").map(r -> toIntString(r._number)))\n\t\t\t.v00(XMLWriter.elem(\"type\").map(r -> r._type))\n\t\t\t.v00(XMLWriter.doc(\"extensions\").map(gpx -> gpx._extensions))\n\t\t\t.v10(XMLWriter.elems(TrackSegment.xmlWriter(Version.V10, formatter)).map(r -> r._segments))\n\t\t\t.v11(XMLWriter.elems(TrackSegment.xmlWriter(Version.V11, formatter)).map(r -> r._segments));\n\t}", "Set<ServiceProducer> getAllServiceProviders();", "public java.util.List<? extends com.rpg.framework.database.Protocol.MonsterOrBuilder> \n getMonstersOrBuilderList() {\n if (monstersBuilder_ != null) {\n return monstersBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(monsters_);\n }\n }", "public java.util.List<? extends com.rpg.framework.database.Protocol.MonsterOrBuilder> \n getMonstersOrBuilderList() {\n if (monstersBuilder_ != null) {\n return monstersBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(monsters_);\n }\n }" ]
[ "0.8038602", "0.7432554", "0.63610506", "0.6091162", "0.5995395", "0.5986705", "0.5886756", "0.58227175", "0.5726672", "0.5726672", "0.5686658", "0.5645691", "0.5645691", "0.56237715", "0.55873966", "0.55847216", "0.5572516", "0.5535187", "0.5507472", "0.55023277", "0.54479015", "0.5421843", "0.5386282", "0.53857625", "0.53839684", "0.5378334", "0.5377219", "0.53623056", "0.53430605", "0.53430605", "0.53430605", "0.5315133", "0.531384", "0.527794", "0.52642125", "0.52618027", "0.5250079", "0.52356625", "0.5234431", "0.52285177", "0.52119946", "0.520366", "0.5174798", "0.5144726", "0.51272905", "0.5123814", "0.5104489", "0.5099456", "0.50949913", "0.5093142", "0.5089679", "0.50845885", "0.50834805", "0.5081583", "0.5081513", "0.50741696", "0.506528", "0.50565076", "0.5051961", "0.5050842", "0.50347364", "0.5017871", "0.5009212", "0.5006926", "0.49910933", "0.4977963", "0.49722004", "0.49654672", "0.4963724", "0.49597245", "0.4954638", "0.4953239", "0.49426693", "0.49390295", "0.49360695", "0.49332097", "0.49313065", "0.49251428", "0.49234936", "0.49201992", "0.49133214", "0.49131235", "0.4913108", "0.49095273", "0.490719", "0.4903531", "0.4900723", "0.48971662", "0.4893348", "0.4886808", "0.48863667", "0.48752904", "0.48632815", "0.48623383", "0.48594347", "0.48593017", "0.48546538", "0.4851546", "0.4843806", "0.48428863" ]
0.7544297
1
Helper method to register writer objects. Each factory is registered with a regular expression. The regular expression is used to screen filenames for matches that can be parsed by the reader.
public synchronized static void setFASTAWriter(FASTAWriterFactory factory, String regex) { // treat the extension as a regular expression Pattern pattern = Pattern.compile(regex); writers.put(pattern, factory); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void loadWriterClass(String writer, String regex){\r\n try {\r\n FASTAWriterFactory factory = (FASTAWriterFactory)Class.forName(writer).newInstance();\r\n setFASTAWriter(factory, regex);\r\n } catch (Exception e){\r\n System.err.println(\"Failed to load writer class \"+writer+\", skipping.\");\r\n }\r\n }", "private ReaderWorld() {\r\n pattern = Pattern.compile(regularExpression);\r\n matcher = pattern.matcher(getText());\r\n }", "public static void register() {\n ArrowRelationIOFactory.getInstance().registerWriter(ArrowRelationSerializerTeX.getInstance(), \"tex\");\n }", "private WriterFactory() {\n }", "public static FASTAWriterFactory[] getRegisteredWriters(){\r\n return (FASTAWriterFactory[])writers.values().toArray(new FASTAWriterFactory[0]);\r\n }", "protected void genWriter() {\n\t\t\n\t\tfixWriter_h();\n\t\tfixWriter_cpp();\n\t}", "public interface Registries {\n\n /***/\n ElementHandlerRegistry getElementHandlerRegistry();\n\n /***/\n AnnotationRegistry getAnnotationHandlerRegistry();\n\n /***/\n PainterRegistry getPaintRegistry();\n\n /**\n * Bundles up extension of each registry.\n */\n Registries createExtension();\n}", "public ModifyingWriter createRegexModifyingWriter(Writer output, String regex, int flags, String replacement,\r\n int minimumLengthOfLookBehind, int requestedCapacityOfCharacterBuffer) {\n if (!(output instanceof BufferedWriter)) {\r\n output = new BufferedWriter(output);\r\n }\r\n\r\n // create modifier\r\n Modifier modifier = new RegexModifier(regex, flags, replacement, minimumLengthOfLookBehind,\r\n requestedCapacityOfCharacterBuffer);\r\n\r\n // create and return Writer\r\n return new ModifyingWriter(output, modifier);\r\n }", "private static XMLWriters<Track>\n\twriters(final Function<? super Number, String> formatter) {\n\t\treturn new XMLWriters<Track>()\n\t\t\t.v00(XMLWriter.elem(\"name\").map(t -> t._name))\n\t\t\t.v00(XMLWriter.elem(\"cmt\").map(r -> r._comment))\n\t\t\t.v00(XMLWriter.elem(\"desc\").map(r -> r._description))\n\t\t\t.v00(XMLWriter.elem(\"src\").map(r -> r._source))\n\t\t\t.v11(XMLWriter.elems(Link.WRITER).map(r -> r._links))\n\t\t\t.v10(XMLWriter.elem(\"url\").map(Track::url))\n\t\t\t.v10(XMLWriter.elem(\"urlname\").map(Track::urlname))\n\t\t\t.v00(XMLWriter.elem(\"number\").map(r -> toIntString(r._number)))\n\t\t\t.v00(XMLWriter.elem(\"type\").map(r -> r._type))\n\t\t\t.v00(XMLWriter.doc(\"extensions\").map(gpx -> gpx._extensions))\n\t\t\t.v10(XMLWriter.elems(TrackSegment.xmlWriter(Version.V10, formatter)).map(r -> r._segments))\n\t\t\t.v11(XMLWriter.elems(TrackSegment.xmlWriter(Version.V11, formatter)).map(r -> r._segments));\n\t}", "public static FactoryWriter getInstance() {\n return FactoryWriterHolder.INSTANCE;\n }", "public void registerRenders() {\n }", "public boolean writePatterns(String filename, ArrayList<IPattern> patterns);", "public abstract AbstractLineWriter newWriter(String filename)\r\n\t\t\tthrows FileNotFoundException, IOException;", "private void initRegs(){\n\n keyWordReg = \"\";\n\n for (String seg: keyWordMap.keySet()){\n\n keyWordReg += seg + \"|\";\n\n }\n\n symbolReg = \"[\\\\&\\\\*\\\\+\\\\(\\\\)\\\\.\\\\/\\\\,\\\\-\\\\]\\\\;\\\\~\\\\}\\\\|\\\\{\\\\>\\\\=\\\\[\\\\<]\";\n intReg = \"[0-9]+\";\n strReg = \"\\\"[^\\\"\\n]*\\\"\";\n idReg = \"[a-zA-Z_]\\\\w*\";\n\n tokenPatterns = Pattern.compile(idReg + \"|\" + keyWordReg + symbolReg + \"|\" + intReg + \"|\" + strReg);\n }", "public interface IMacroFactory {\n /**\n * Gets a Class of <code>GmMacro</code>.\n *\n * @return Class\n */\n Class getGmMacroClass();\n\n /**\n * Sets a <b>errorHandler</b>.\n *\n * @param errorHandler\n */\n void setErrorHandler(org.xml.sax.ErrorHandler errorHandler);\n\n /**\n * Gets a <b>errorHandler</b>.\n *\n * @return org.xml.sax.ErrorHandler\n */\n org.xml.sax.ErrorHandler getErrorHandler();\n\n /**\n * Sets a <b>entityResolver</b>.\n *\n * @param entityResolver\n */\n void setEntityResolver(org.xml.sax.EntityResolver entityResolver);\n\n /**\n * Gets a <b>entityResolver</b>.\n *\n * @return org.xml.sax.EntityResolver\n */\n org.xml.sax.EntityResolver getEntityResolver();\n\n /**\n * Sets a <b>baseUri</b>.\n *\n * @param baseUri\n */\n void setBaseUri(String baseUri);\n\n /**\n * Gets a <b>baseUri</b>.\n *\n * @return String\n */\n String getBaseUri();\n\n /**\n * Creates a <code>Object</code> by the File <code>file</code>.\n *\n * @param file\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return Object\n */\n Object create(File file) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>Object</code> by the String representation of URI <code>uri</code>.\n *\n * @param uri\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return Object\n */\n Object create(String uri) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>Object</code> by the URL <code>url</code>.\n *\n * @param url\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return Object\n */\n Object create(URL url) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>Object</code> by the InputStream <code>in</code>.\n *\n * @param in\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return Object\n */\n Object create(InputStream in) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>Object</code> by the InputSource <code>is</code>.\n *\n * @param is\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return Object\n */\n Object create(InputSource is) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>Object</code> by the Reader <code>reader</code>.\n *\n * @param reader\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return Object\n */\n Object create(Reader reader) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>Object</code> by the Object <code>source</code>.\n *\n * @param source\n * @return Object\n */\n Object create(Object source);\n\n /**\n * Creates a <code>Object</code> by the Document <code>dom</code>.\n *\n * @param doc\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return Object\n */\n Object create(Document doc) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>Object</code> by the Element <code>element</code>.\n *\n * @param element\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return Object\n */\n Object create(Element element) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>GmMacro</code> by the File <code>file</code>.\n *\n * @param file\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return GmMacro\n */\n GmMacro createGmMacro(File file) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>GmMacro</code>\n * by the String representation of URI <code>uri</code>.\n *\n * @param uri\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return GmMacro\n */\n GmMacro createGmMacro(String uri) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>GmMacro</code> by the URL <code>url</code>.\n *\n * @param url\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return GmMacro\n */\n GmMacro createGmMacro(URL url) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>GmMacro</code> by the InputStream <code>in</code>.\n *\n * @param in\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return GmMacro\n */\n GmMacro createGmMacro(InputStream in) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>GmMacro</code> by the InputSource <code>is</code>.\n *\n * @param is\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return GmMacro\n */\n GmMacro createGmMacro(InputSource is) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>GmMacro</code> by the Reader <code>reader</code>.\n *\n * @param reader\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return GmMacro\n */\n GmMacro createGmMacro(Reader reader) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>GmMacro</code>.\n *\n * @return GmMacro\n */\n GmMacro createGmMacro();\n\n /**\n * Creates a <code>GmMacro</code> by the GmMacro <code>source</code>.\n *\n * @param source\n * @return GmMacro\n */\n GmMacro createGmMacro(GmMacro source);\n\n /**\n * Creates a <code>GmMacro</code> by the Document <code>doc</code>.\n *\n * @param doc\n * @return GmMacro\n */\n GmMacro createGmMacro(Document doc);\n\n /**\n * Creates a <code>GmMacro</code> by the Element <code>element</code>.\n *\n * @param element\n * @return GmMacro\n */\n GmMacro createGmMacro(Element element);\n\n /**\n * Creates a <code>GmMacro</code> by the Stack <code>stack</code>.\n * This mehtod is supposed to be used internally\n * by the Relaxer system.\n *\n * @param stack\n * @return GmMacro\n */\n GmMacro createGmMacro(RStack stack);\n}", "public void addPattern(TokenPattern pattern) throws Exception {\n RE[] temp = regExps;\n RE re;\n\n re = new JavaRE(pattern.getPattern());\n regExps = new RE[temp.length + 1];\n System.arraycopy(temp, 0, regExps, 0, temp.length);\n regExps[temp.length] = re;\n pattern.setDebugInfo(\"native Java regexp\");\n super.addPattern(pattern);\n }", "public void addPattern(String pattern, Handler<Match> handler) {\n Matcher m = Pattern.compile(\":([A-Za-z][A-Za-z0-9]*)\").matcher(pattern);\n StringBuffer sb = new StringBuffer();\n Set<String> groups = new HashSet<>();\n while (m.find()) {\n String group = m.group().substring(1);\n if (groups.contains(group)) {\n throw new IllegalArgumentException(\"Cannot use identifier \" + group + \" more than once in pattern string\");\n }\n m.appendReplacement(sb, \"(?<$1>[^\\\\/]+)\");\n groups.add(group);\n }\n m.appendTail(sb);\n String regex = sb.toString();\n PatternBinding binding = new PatternBinding(Pattern.compile(regex), groups, handler);\n bindings.add(binding);\n }", "public synchronized static FASTAWriterFactory getFASTAWriterFactory(String filename) {\r\n \r\n // check for the appropriate factory\r\n for (Iterator it = writers.keySet().iterator(); it.hasNext();) {\r\n Pattern p = (Pattern) it.next();\r\n // always match against lower case\r\n Matcher m = p.matcher(filename.toLowerCase());\r\n if (m.matches()) {\r\n return (FASTAWriterFactory) writers.get(p);\r\n }\r\n }\r\n \r\n // get the appropriate factory\r\n throw new RuntimeException(\"Can't find a create the fasta file \"+filename+\". Please try a different format.\");\r\n }", "private void setupWriter() {\n output = new StringWriter();\n writer = new PrintWriter(output);\n }", "public WriterBasedJsonGenerator(IOContext ctxt, int features, com.fasterxml.jackson.core.ObjectCodec codec, Writer w)\n/* */ {\n/* 87 */ super(ctxt, features, codec);\n/* 88 */ this._writer = w;\n/* 89 */ this._outputBuffer = ctxt.allocConcatBuffer();\n/* 90 */ this._outputEnd = this._outputBuffer.length;\n/* */ }", "public interface ContentWriter {\n\t// *** Class Members ***\n\n\t// *** Public Methods ***\n\t\n\t// --- Writer State ---\n\tpublic Name getName();\n\tpublic List<Name> getElementNameStack();\n\t\n\t// --- Escaped Text Content ---\n\tpublic void text(Text text) throws IOException;\n\tpublic void text(String text) throws IOException;\n\tpublic Writer text() throws IOException;\n\tpublic Writer cdata() throws IOException;\n\t\n\t// --- Character Data Content---\n\tpublic void characters(CharData charData) throws IOException;\n\tpublic void cdata(CData cdata) throws IOException;\n\t\n\t// --- Reference Content ---\n\tpublic void reference(CharRef charRef) throws IOException;\n\tpublic void reference(Name entityName) throws IOException;\n\t\n\t// --- Namespaces ---\n\tpublic void defaultNamespace(NamespaceURI uri) throws IOException;\n\tpublic void namespace(NamespaceURI uri) throws IOException;\n\t\n\t// --- Element Content ---\n\tpublic ContentWriter element(Name elementName) throws IOException;\n\tpublic ContentWriter element(Name elementName, Attribute... attributes) throws IOException;\n\t\n\t// --- Misc Content ---\n\tpublic void comment(Comment c) throws IOException;\n\tpublic void pi(Target target, Instruction instruction) throws IOException;\n\tpublic void space(Whitespace space) throws IOException;\n\t\n\t// --- Custom Content ---\n\tpublic void content(Content c) throws IOException;\n}", "public static JsonWriter newWriter(Writer writer) {\n if (provider == JsonProvider.UNKNOWN) {\n init();\n }\n return provider.newWriter(writer);\n }", "private void registerAvailableSerializers() {\r\n LOG.info(\"Registering available serializer object\");\r\n mSerializers.put(XML, new XmlObjectBaseSerializer());\r\n mSerializers.put(PHP, new PHPObjectBaseSerializer());\r\n }", "public DispenserFactory() {\n log = LogManager.getLogger(DispenserFactory.class.getName());\n dispensers = new LinkedHashMap<String, Dispenser>();\n addDispenser(\"exp\" , \"Expander\" );\n addDispenser(\"intexp\" , \"IntegerExpander\" );\n addDispenser(\"modo\" , \"ModoMeter\" );\n addDispenser(\"monexp\" , \"MonotoneExpander\" );\n addDispenser(\"perm\" , \"Permutator\" );\n addDispenser(\"range\" , \"RangeDispenser\" );\n }", "private void initReportWriter() {\n\t\tfinal XMLOutputFactory xmlof = XMLOutputFactory.newInstance();\r\n\r\n\t\t// Create an XML stream writer\r\n\t\tfinal File reportFile = new File(getOutputDirectory(), \"report.xml\");\r\n\t\ttry {\r\n\t\t\treportWriter = xmlof.createXMLStreamWriter(new FileWriter(reportFile));\r\n\r\n\t\t} catch (final XMLStreamException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (final IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public RegexFormatter(Pattern pattern) {\n this();\n setPattern(pattern);\n }", "private void registerPrinters() {\n List<Class> classes = null;\n try {\n classes = ReflectionUtils.getAnnotatedClasses(PrinterAnnotation.class);\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n if(classes != null && classes.size() != 0) {\n for(Class aClass : classes) {\n try {\n Class<?> clazz = aClass;\n if (clazz.isAnnotationPresent(PrinterAnnotation.class) &&\n clazz.getAnnotation(PrinterAnnotation.class).parent() == PrinterAnnotation.NULL.class) {\n AbstractPrinter printer = (AbstractPrinter) clazz.newInstance();\n registerSignaturePrinters(printer);\n printers.put(clazz.getAnnotation(PrinterAnnotation.class).type(), printer);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n }", "private void compilePattern() {\r\n\r\n pattern_startOfPage = Pattern.compile(regex_startOfPage);\r\n pattern_headerAttribute = Pattern.compile(regex_headerAttribute);\r\n pattern_messageFirstLine = Pattern.compile(regex_messageFirstLine);\r\n pattern_messageContinuationLine = Pattern.compile(regex_messageContinuationLine);\r\n }", "public void registerRenderers() {\n\n\t}", "public abstract JsonWriter newWriter(Writer writer);", "public FileIOManager() {\n\t\tthis.reader = new Reader(this);\n\t\tthis.writer = new Writer(this);\n\t}", "private static FilenameFilter createFilter(final List<Pattern> patterns) {\n return new FilenameFilter() {\n \n @Override\n public boolean accept(File dir, String name) {\n for (Pattern p : patterns) {\n if (p.matcher(name).matches()) {\n return true;\n }\n }\n return false;\n }\n };\n }", "public WriterProxy addMatchedWriter(final PublicationData writerData) {\r\n\r\n\t\tList<Locator> locators = getLocators(writerData);\r\n\t\tWriterProxy wp = writerProxies.get(writerData.getBuiltinTopicKey());\r\n\t\tif (wp == null) {\r\n\t\t\twp = new WriterProxy(this, writerData, locators, heartbeatSuppressionDuration);\r\n\t\t\twp.preferMulticast(getConfiguration().preferMulticast());\r\n\t\t\twp.setLivelinessTask(createLivelinessTask(wp));\r\n\r\n\t\t\twriterProxies.put(writerData.getBuiltinTopicKey(), wp);\r\n\t\t}\r\n\t\telse {\r\n\t\t\twp.update(writerData);\r\n\t\t}\r\n\r\n\t\tlogger.debug(\"[{}] Added matchedWriter {}, locators {}\", getEntityId(), writerData, wp.getLocators());\r\n\r\n\t\t//sendAckNack(wp);\r\n\r\n\t\treturn wp;\r\n\t}", "Registries createExtension();", "public static ImageWriter createImageWriter(String imageExtension)\n\t{\n\t\tImageWriter writer = null;\n\n\t\tif (imageExtension != null)\n\t\t{\n\t\t\tfor (ImageWriter imageWriter : imageWriters)\n\t\t\t{\n\t\t\t\tif (imageWriter.isValidFileFormat(imageExtension))\n\t\t\t\t{\n\t\t\t\t\twriter = imageWriter;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (writer == null)\n\t\t\t{\n\t\t\t\tSystem.err.println(\"No support for file format \" + imageExtension);\n\t\t\t}\n\t\t}\n\n\t\treturn writer;\n\t}", "private void checkForPattern(Pattern grepPattern, Path[] filePathArray, BufferedWriter writer) {\n for (int j = 0; j < filePathArray.length; j++) {\n try (BufferedReader reader = Files.newBufferedReader(filePathArray[j], Jsh.encoding)) {\n outputMatchedLines(grepPattern, reader, writer);\n } catch (IOException e) {\n throw new RuntimeException(\"grep: cannot open \" + filePathArray[j].getFileName());\n }\n }\n }", "public static void matchMaker()\n {\n \n }", "public void createFiles() {\r\n try {\r\n FileWriter file = new FileWriter(registerNumber + \".txt\");\r\n file.write(\"Name : \" + name + \"\\n\");\r\n file.write(\"Surname : \" + surname + \"\\n\");\r\n file.write(\"Registration Number : \" + registerNumber + \"\\n\");\r\n file.write(\"Position : \" + position + \"\\n\");\r\n file.write(\"Year of Start : \" + yearOfStart + \"\\n\");\r\n file.write(\"Total Salary : \" + Math.round(totalSalary) + \".00 TL\" +\"\\n\");\r\n file.close();\r\n }\r\n catch(IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "private FileFormats(String fileFormat, TeaFileReader reader, TeaFileWriter writer, String description) {\r\n\t\tthis.fileFormat = fileFormat;\r\n\t\tthis.reader = reader;\r\n\t\tthis.writer = writer;\r\n\t\tthis.description = description;\r\n\t}", "public interface Patterns {\n String LOGIN = \"[a-zA-Z0-9]+\";\n String PASSWORD = \"[a-zA-Z0-9.-]+\";\n String EMAIL = \"[a-zA-Z0-9.-@]+\";\n}", "private void outputMatchedLines(Pattern grepPattern, BufferedReader reader, BufferedWriter writer) throws IOException {\n String line = null;\n while ((line = reader.readLine()) != null) {\n Matcher matcher = grepPattern.matcher(line);\n if (matcher.find()) {\n writer.write(line);\n writer.write(System.getProperty(\"line.separator\"));\n writer.flush();\n }\n }\n }", "private PrintWriter getWriter(String signature) throws IOException {\n\n\tFile f = signature2file.get(signature);\n\n\tif (f == null) {\n\n\t throw new IllegalStateException(\"Supposed to have file name for \"\n\t\t + signature + \", but don't???\");\n\t}\n\n\t// Create a FileWriter with 'append'\n\treturn new PrintWriter(new FileWriter(f, true));\n }", "protected abstract GraphicsWriter newGraphicsWriter();", "public void addPattern(TokenPattern pattern)\n throws ParserCreationException {\n\n switch (pattern.getType()) {\n case TokenPattern.STRING_TYPE:\n try {\n stringDfaMatcher.addPattern(pattern);\n } catch (Exception e) {\n throw new ParserCreationException(\n ParserCreationException.INVALID_TOKEN_ERROR,\n pattern.getName(),\n \"error adding string token: \" +\n e.getMessage());\n }\n break;\n case TokenPattern.REGEXP_TYPE:\n try {\n nfaMatcher.addPattern(pattern);\n } catch (Exception ignore) {\n try {\n regExpMatcher.addPattern(pattern);\n } catch (Exception e) {\n throw new ParserCreationException(\n ParserCreationException.INVALID_TOKEN_ERROR,\n pattern.getName(),\n \"regular expression contains error(s): \" +\n e.getMessage());\n }\n }\n break;\n default:\n throw new ParserCreationException(\n ParserCreationException.INVALID_TOKEN_ERROR,\n pattern.getName(),\n \"pattern type \" + pattern.getType() + \" is undefined\");\n }\n }", "public interface Registry\n {\n /**\n * Collection ids start at 1.\n */\n public <T extends Collection<?>> Registry registerCollection(\n CollectionSchema.MessageFactory factory, int id);\n \n /**\n * Map ids start at 1.\n */\n public <T extends Map<?,?>> Registry registerMap(\n MapSchema.MessageFactory factory, int id);\n \n /**\n * Enum ids start at 1.\n */\n public <T extends Enum<T>> Registry registerEnum(Class<T> clazz, int id);\n \n /**\n * Enum ids start at 1.\n */\n public Registry registerEnum(EnumIO<?> eio, int id);\n \n /**\n * Pojo ids start at 1.\n */\n public <T> Registry registerPojo(Class<T> clazz, int id);\n \n /**\n * Pojo ids start at 1.\n */\n public <T> Registry registerPojo(Schema<T> schema, Pipe.Schema<T> pipeSchema, \n int id);\n \n /**\n * If you are sure that you are only using a single implementation of \n * your interface/abstract class, then it makes sense to map it directly \n * to its impl class to avoid writing the type.\n * \n * Note that the type is always written when your field is \n * {@link java.lang.Object}. \n * \n * Pojo ids start at 1.\n */\n public <T> Registry mapPojo(Class<? super T> baseClass, Class<T> implClass);\n \n /**\n * Register a {@link Delegate} and assign an id.\n * \n * Delegate ids start at 1.\n */\n public <T> Registry registerDelegate(Delegate<T> delegate, int id);\n }", "public static JSONWriter getInstance(){\n\t\treturn new JSONWriter();\n\t}", "private JsonWriter(JsonGenerator jgen, com.sample.masking.json.JsonView result, Match currentMatch, SerializerProvider serializerProvider) {\n this.jgen = jgen;\n this.result = result;\n this.currentMatch = currentMatch;\n this.serializerProvider = serializerProvider;\n }", "private void createWriter() throws IOException {\n if (outputFile.exists()) {\n outputFile.delete();\n }\n FileWriter outFw = null;\n try {\n outFw = new FileWriter(outputFile.getAbsolutePath());\n } catch (IOException e) {\n LOG.error(\"Can not create writer for {} {}\", outputFile.getAbsolutePath(), e);\n throw e;\n }\n this.bufferedWriter = new BufferedWriter(outFw);\n writeOutputLine(\"User Agent - started\");\n }", "static Extractor byRegex(String format, Object... args) {\n\t\t\treturn byRegex(RegexUtil.compile(format, args));\n\t\t}", "public interface IMainRendererFactory {\n\t\n\t/**\n\t * Return the render.\n\t * @param view the view for this render.\n\t */\n\tRenderer getRenderer(String view);\n\t\n\t/**\n\t * The extension of the view.\n\t * <p>\n\t * It must start with dot char \".\"\n\t * Example: \".html\" or \".ftl\"\n\t * </p>\n\t */\n\tString getViewExtension();\n}", "public RegexPatternBuilder (String regex)\n {\n this.regex = regex;\n }", "public interface IOFactory {\r\n /**\r\n * Creates a {@link ProfileReader} for the given {@link InputStream}.\r\n * @param stream the stream to be read.\r\n * @return the created {@link ProfileReader}.\r\n */\r\n public abstract ProfileReader createProfilerReader(InputStream stream);\r\n \r\n /**\r\n * Creates a {@link ProfileWriter} for the given {@link OutputStream}.\r\n * @param stream the stream to be written to.\r\n * @return the created {@link ProfileWriter}.\r\n */\r\n public abstract ProfileWriter createProfileWriter(OutputStream stream);\r\n \r\n /**\r\n * Creates a {@link MergeFileReader} for the given {@link InputStream}.\r\n * @param stream the stream to be read.\r\n * @return the created {@link MergeFileReader}.\r\n */\r\n public abstract MergeFileReader createMergeReader(InputStream stream);\r\n \r\n /**\r\n * Creates a {@link MergeFileWriter} for the given {@link OutputStream}.\r\n * @param stream the stream to be written.\r\n * @return the created {@link MergeFileWriter}.\r\n */\r\n public abstract MergeFileWriter createMergeWriter(OutputStream stream);\r\n \r\n /**\r\n * Creates a {@link MergeFileReader} simulating an empty merge file.\r\n * @return the created {@link MergeFileReader}.\r\n */\r\n public abstract MergeFileReader createEmptyMergeReader();\r\n}", "public static void registerImageIOServices() {\n\t\tlogger.debug(\"Registering ImageIO readers / writers\");\n\t\tIIORegistry registry = IIORegistry.getDefaultInstance();\n\n\t\tfor (ImageReaderSpi spi : iioReaderList) {\n\t\t\tregisterImageIOService(registry, spi, javax.imageio.spi.ImageReaderSpi.class);\n\t\t}\n\n\t\tfor (ImageWriterSpi spi : iioWriterList) {\n\t\t\tregisterImageIOService(registry, spi, javax.imageio.spi.ImageWriterSpi.class);\n\t\t}\n\t}", "public SearcherTaxonomyManager(\n IndexWriter writer, SearcherFactory searcherFactory, DirectoryTaxonomyWriter taxoWriter)\n throws IOException {\n this(writer, true, searcherFactory, taxoWriter);\n }", "private void addHandlers()\n {\n handlers.add(new FileHTTPRequestHandler());\n }", "public Collection<WriterProxy> getMatchedWriters() {\r\n\t\treturn writerProxies.values();\r\n\t}", "private void init() {\n\n DateFormat dateFormatter = new SimpleDateFormat(\"YYYY_MM_dd-HH_mm_ss_SSS\");\n String timeString = dateFormatter.format(new Date(System.currentTimeMillis()));\n urlsFile = new File(\"urls_\" + timeString + \".txt\");\n emailsFile = new File(\"emails_\" + timeString + \".txt\");\n\n try {\n urlsFile.createNewFile();\n emailsFile.createNewFile();\n urlsWriter = new PrintWriter(urlsFile.getPath(), \"UTF-8\");\n emailsWriter = new PrintWriter(emailsFile.getPath(), \"UTF-8\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "protected void genReader() {\n\t\t\n\t\tfixReader_h();\n\t\tfixReader_cpp();\n\t}", "public DefaultValidationAnnotationHandlerRegistry() {\n\n // class annotation handlers\n registerClassHandler(new ExpressionClassValidationAnnotationHandler());\n registerClassHandler(new ExpressionsClassValidationAnnotationHandler());\n registerClassHandler(new ValidatorClassValidationAnnotationHandler());\n registerClassHandler(new ValidatorsClassValidationAnnotationHandler());\n registerClassHandler(new ValidatorReferenceClassValidationAnnotationHandler());\n\n // method annotation handlers\n registerMethodHandler(new ValidationMethodAnnotationHandler());\n\n // property annotation handlers\n registerPropertyHandler(new CascadeValidationAnnotationHandler());\n registerPropertyHandler(new EmailValidationAnnotationHandler());\n registerPropertyHandler(new DateInTheFutureValidationAnnotationHandler());\n registerPropertyHandler(new DateInThePastValidationAnnotationHandler());\n registerPropertyHandler(new LengthValidationAnnotationHandler());\n registerPropertyHandler(new NotBlankValidationAnnotationHandler());\n registerPropertyHandler(new NotEmptyValidationAnnotationHandler());\n registerPropertyHandler(new NotNullValidationAnnotationHandler());\n registerPropertyHandler(new RangeValidationAnnotationHandler());\n registerPropertyHandler(new RegExpValidationAnnotationHandler());\n registerPropertyHandler(new SizeValidationAnnotationHandler());\n registerPropertyHandler(new ExpressionPropertyValidationAnnotationHandler());\n registerPropertyHandler(new ExpressionsPropertyValidationAnnotationHandler());\n registerPropertyHandler(new ConditionReferenceValidationAnnotationHandler());\n\n if (LibraryUtils.JODA_TIME_IN_CLASSPATH) {\n registerPropertyHandler(new InstantInTheFutureValidationAnnotationHandler());\n registerPropertyHandler(new InstantInThePastValidationAnnotationHandler());\n }\n\n }", "public void addPattern(TokenPattern pattern) throws Exception {\n if (pattern.getType() == TokenPattern.STRING_TYPE) {\n automaton.addTextMatch(pattern.getPattern(), ignoreCase, pattern);\n } else {\n automaton.addRegExpMatch(pattern.getPattern(), ignoreCase, pattern);\n }\n super.addPattern(pattern);\n }", "public ImageWriter createWriterInstance(Object extension)\n throws IOException\n {\n return new DcmImageWriter(this);\n }", "public Genie() {\n\t\tsuper();\n\t\tpackages(TelegramResource.class.getPackage().getName());\n\t\tregister(MoxyJsonFeature.class);\n\t\tregister(LoggingFilter.class);\n\t\tregister(MultiPartFeature.class);\n\t\tregister(DefaultExceptionMapper.class);\n }", "public RegistryCreator() {\n this.vehicleRegistry = new VehicleRegistry();\n this.inspectionResultRegistry = new InspectionResultRegistry();\n }", "public static void register() {\n // Registers the GUI Handler\n NetworkRegistry.instance().registerGuiHandler(Dendritis.instance, GUIHandler.instance());\n \n OreDictionaryRegistry.oreDictionary();\n BlockRegistry.registerBlocks();\n WorldRegistry.registerWorld();\n RecipeHandler.init();\n }", "public ReaderWriterProvider readerWriterProvider() { return _readerProvider; }", "public interface RegExp {\n String NAME_REGEXP = \"^[А-Я][а-я]{2,30}$\";\n String AGE_REGEXP = \"^((1[012][0-9])|([1-9][0-9]))$\";\n String EMAIL_REGEXP = \"^[-z0-9_.]{1,30}@([A-z]+[A-z0-9]{1,15}.){1,2}([A-z]+[A-z0-9]{1,15})$\";\n String CELL_PHONE_REGEXP = \"([\\\\+]\\\\d{2}\\\\s?)?(([\\\\(\\\\s]\\\\d{3}[\\\\)\\\\s])|\" +\n \"(\\\\d{3}))[\\\\s-]?\\\\d{3}[\\\\s-]?\\\\d{2}[\\\\s-]?\\\\d{2}$\";\n String CELL_PHONE_OPTIONAL_REGEXP = \"^(([\\\\+]\\\\d{2}\\\\s?)?(([\\\\(\\\\s]\\\\d{3}[\\\\)\\\\s])|\" +\n \"(\\\\d{3}))[\\\\s-]?\\\\d{3}[\\\\s-]?\\\\d{2}[\\\\s-]?\\\\d{2})?\";\n String LOCAL_PHONE_REGEXP = \"^([\\\\+]\\\\d{2}\\\\s?)?(([\\\\(\\\\s]\\\\d{3}[\\\\)\\\\s])|(\\\\d{3}))?[\\\\s-]?\\\\d{3}[\\\\s-]?\\\\d{3}$\";\n String COMMENT_REGEXP = \"^([\\\\d\\\\s\\\\w\\\\.\\\\,\\\\!]){0,127}$\";\n String GROUP_REGEXP = \"^[А-я]{4,10}$\";\n String SKYPE_NICK_REGEXP = \"^[\\\\w\\\\d\\\\_]{3,20}$\";\n String INDEX_REGEXP = \"^[\\\\d]{8}$\";\n String CITY_STREET_REGEXP = \"^[А-Я][а-я]{3,20}$\";\n String BUILDING_REGEXP = \"^[\\\\d]{1,3}[\\\\w]?$\";\n String FLAT_REGEXP = \"^[\\\\d]{1,3}$\";\n}", "private WSEditorProviderRegistry() {\n }", "public GlobFilenameFilter(String regex) {\n super(__CACHE, __MATCHER, regex);\n }", "abstract UrlPatternMatcher create( String pattern );", "protected abstract Regex pattern();", "public interface IRegexFinder {\n String getTag();\n\n // Put tag for a item in tiarray if the item match to a regex.\n default boolean putTagIfRegexFound(TaggedItemsArray tiarray) {\n Iterator<String> itr = tiarray.getIterator();\n boolean anyRegexFound = false;\n\n while (itr.hasNext()) {\n String item = itr.next();\n\n if (match(item)) {\n tiarray.modify(item, getTag());\n anyRegexFound = true;\n }\n }\n\n return anyRegexFound;\n }\n\n // Returns kind / name of regex finder.\n String whoAmI();\n\n boolean match(String toCheck);\n}", "@Override\n\tpublic void addResourceHandlers(ResourceHandlerRegistry registry) {\n\t\t\n\t}", "private static void addConsumer()\r\n\t{\r\n\t\tparsers++;\r\n\t\tParser consumer = new Parser();\r\n\t\tconsumer.start();\r\n\t}", "public interface WikiFileFactory {\n boolean isValidWikiFile(String fileContent);\n WikiFile createWikiFile(String path, String content);\n}", "public TokenMatcherList addMatcher(final String tokens,\n final Function<List<String>, String> fun) {\n TokenPattern tp = new TokenPattern(tokens);\n TokenMatcher tm = tp.compile();\n tm.setFunction(fun);\n return addMatcher(tm);\n }", "public void create_registerFile(String name,String roll){\n try{\n outputStreamWriter=new OutputStreamWriter(context.openFileOutput(Constant.REGISTER_FILE,Context.MODE_PRIVATE));\n outputStreamWriter.write(name+\",\");\n outputStreamWriter.write(roll+\",\");\n outputStreamWriter.close();\n }\n catch (Exception e){\n Message.logMessages(\"ERROR: \",e.toString());\n }\n }", "protected void writeFile(Document model, FileWriter writer)\n throws IOException, Exception {\n writer.loadTemplate();\n\n String className = model.getDocumentElement().getAttribute(\"name\");\n writer.createOutFile(null, className); //pass in null as the package\n\n // use the global resolver\n writer.parse(model, resolver);\n }", "@SuppressWarnings(\"unchecked\")\n public void register()\n {\n this.phpProcessor.registerProcessorExtension(this);\n \n // Register the node type if specified\n if (this.nodeType != null)\n {\n try\n {\n QName type = QName.createQName(this.nodeType);\n Class clazz = Class.forName(this.extensionClass); \n this.nodeFactory.addNodeType(type, clazz);\n }\n catch (ClassNotFoundException exception)\n {\n throw new PHPProcessorException(\"Unable to load node type (\" + this.extensionClass + \")\", exception);\n }\n }\n }", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tprivate Formatter getDynamicCSVFormatters() {\n\t\t int i = 1;\n\t\t CSVFomatter formatter = new CSVFomatter(FormatPattern.getFormatPattern(i),converter);\n\t\t CSVFomatter chainedFormatter = formatter,\n\t\t \t\t nextFormatter ;\n\t\t //Create a dynamic chain of the formatters -- Chain of Responsibility(COR)\n\t\t for(i = i + 1; i<=FormatPattern.DATA_PATTERNS.size(); i++) {\n\t\t \t nextFormatter = new CSVFomatter(FormatPattern.getFormatPattern(i),converter);\n\t\t \t chainedFormatter.setNextFormatter(nextFormatter);\n\t\t \t chainedFormatter = nextFormatter;\n\t\t }\n\t\t \n\t\t return formatter;\n\t}", "protected void register(String widgetClass, Invoker creator) {\n creators.put(widgetClass, creator);\n }", "private void setDataWriterForFilename(String filename) throws KettleException {\n\t\t// First handle the writers themselves.\n\t\t// If we didn't have a writer yet, we create one.\n\t\t// Basically we open a new file\n\t\tdata.writer = data.fileWriterMap.get(filename);\n\t\tif (data.writer==null) {\n\t\t\topenNewFile(filename);\n\t\t\tdata.oneFileOpened = true;\n\n\t\t\tdata.fileWriterMap.put(filename, data.writer);\n\t\t\n\t\t\t// If it's the first time we open it and we have a header, we write a header...\n\t\t\t//\n\t\t\tif (!meta.isFileAppended() && meta.isHeaderEnabled()) {\n\t\t\t\tif (writeHeader()) {\n\t\t\t\t\tincrementLinesOutput();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public interface IOFactory {\n\n public FileIO newFile(String path);\n\n}", "void init(IRenamer renamer);", "public void addPattern(TokenPattern pattern) throws Exception {\n automaton.addMatch(pattern.getPattern(), ignoreCase, pattern);\n super.addPattern(pattern);\n }", "@Override\n public void addResourceHandlers(ResourceHandlerRegistry registry) {\n }", "public OPDSManifestWriters()\n {\n\n }", "public interface IReplacerComponentRegistrationHandler {\n \n /**\n * Registers an {@link ITargetingFilter} that will be applied globally.\n *\n * <p>This essentially allows you to remove recipes from the list of recipes that a replacer is allowed to see or\n * perform additional changes. Note that this targeting filter is global and <strong>positive</strong>, meaning that\n * it will be executed on every replacer instance and will be responsible for determining which recipes the replacer\n * is allowed to inspect.</p>\n *\n * <p>If this filter should be conditional, refer to\n * {@link com.blamejared.crafttweaker.api.recipe.replacement.IFilteringRule} instead.</p>\n *\n * @param filter The global filter that needs to be registered.\n *\n * @since 10.0.0\n */\n void registerTargetingFilter(final ITargetingFilter filter);\n \n /**\n * Registers an {@link ITargetingStrategy} for script usage.\n *\n * <p>It is not allowed to register multiple targeting strategies with the same ID.</p>\n *\n * @param id The ID of the targeting strategy.\n * @param strategy The targeting strategy that needs to be registered.\n *\n * @throws IllegalArgumentException If a strategy was already registered with the given id.\n * @since 10.0.0\n */\n void registerTargetingStrategy(final ResourceLocation id, final ITargetingStrategy strategy);\n \n}", "private void addPatterns(String[] patterns) {\n\t\tif (patterns != null) {\n\t\t\tEntry entry = null;\n\t\t\tfor (String pattern : patterns) {\n\t\t\t\tentry = createEntry(pattern);\n\t\t\t\tif (entry != null) {\n\t\t\t\t\tthis.patterns.add(pattern);\n\t\t\t\t\tthis.entries.add(entry);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static TeaFileWriter getWriter(String fileFormat) {\r\n\t\t\r\n\t\tfor(FileFormats ff : FileFormats.values()) {\r\n\t\t\tif(ff.equals(fileFormat)) {\r\n\t\t\t\treturn ff.writer;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Default. Should never happen :)\r\n\t\treturn new TextWriter();\r\n\t}", "protected JsonGenerator createResponseWriter(final HttpServletResponse response) throws IOException {\n response.setCharacterEncoding(\"UTF-8\");\n response.setHeader(\"Content-Type\", \"application/json\");\n Writer w = response.getWriter();\n return ParsingUtilities.mapper.getFactory().createGenerator(w);\n }", "public static StringDescriptionWriter stringWriter() {\n return new StringDescriptionWriter();\n }", "public static Factory factory() {\n return Document_print::new;\n }", "public void registerBeanDefinitions(AnnotationMetadata metadata, BeanDefinitionRegistry registry)\n/* */ {\n/* 48 */ if (!ADFRuntime.getRuntime().isClientSide())\n/* */ {\n/* 50 */ return;\n/* */ }\n/* */ \n/* 53 */ ADFConfigHelper.initConfig();\n/* 54 */ ADFConfigHelper.initLog4j();\n/* 55 */ ADFBeanDefinitionRegistryRegister scanner = new ADFBeanDefinitionRegistryRegister(registry);\n/* 56 */ Class[] typeClasses = { InternalBeanInstantiationAwareBeanPostProcessor.class, InternalBeanPosterProcessor.class, ApplicationStartedListener.class, ApplicationContextBeansAware.class };\n/* */ \n/* 58 */ scanner.register(typeClasses);\n/* */ \n/* */ \n/* 61 */ scanner.register(new Class[] { BeanAdditionalPropertyGenerator.class });\n/* */ \n/* */ \n/* 64 */ ADFClassPathBeanDefinitionScanner classPathBeanDefinitionScanner = new ADFClassPathBeanDefinitionScanner(registry, true);\n/* */ \n/* 66 */ if (StringUtils.isNotEmpty(\"com.jnj.adf.grid,com.jnj.adf.client.api\"))\n/* */ {\n/* 68 */ String[] basePackages = \"com.jnj.adf.grid,com.jnj.adf.client.api\".split(\",\");\n/* 69 */ classPathBeanDefinitionScanner.scan(basePackages);\n/* */ }\n/* */ }", "public interface TypeSystemWriterResource {\n /**\n * Writes the type system to the path if it has not already been written.\n * @param path path to write to\n * @param typeSystem type system to write\n * @throws IOException if getting the path fails\n * @throws SAXException if writing XML fails\n */\n void writeToPath(Path path, TypeSystem typeSystem) throws IOException, SAXException;\n}", "public void register() {\r\n\t\tHandlerSet hs = HandlerSet.getHandlerSet();\r\n\t\ths.addHandler(this);\r\n\t}", "public interface CDFFileWriter {\n\t\n\t/**\n\t * \n\t * @param model\n\t * @param filename\n\t * @return a registry to the cdf components that get written for \"model\"\n\t * @throws IOException\n\t */\n\tpublic void saveFile(ElectricPowerModel model, String filename) throws IOException;\t\n}", "public ResultHandlerDaoFactory(DataSource datasource, ItemWriter itemWriter, Writer writer) {\n setDatasource(datasource);\n setItemWriter(itemWriter);\n setWriter(writer);\n }", "@Override\n\tpublic ResponseWriter createResponseWriter(Writer writer, String contentTypeList, String characterEncoding) {\n\t\treturn new Html5ResponseWriter(super.createResponseWriter(writer, contentTypeList, characterEncoding));\n\t}", "public JsonGenerator createGenerator(Writer w)\n/* */ throws IOException\n/* */ {\n/* 1129 */ IOContext ctxt = _createContext(w, false);\n/* 1130 */ return _createGenerator(_decorate(w, ctxt), ctxt);\n/* */ }", "void decorate(Writer out, String content) throws IOException;" ]
[ "0.6514624", "0.5390684", "0.532539", "0.53004104", "0.51624405", "0.51597494", "0.51333755", "0.51116186", "0.50897795", "0.49908438", "0.49402273", "0.49184486", "0.49063396", "0.48728293", "0.48448312", "0.4819419", "0.48122287", "0.4800138", "0.4775419", "0.47753394", "0.47423664", "0.47382239", "0.47168213", "0.46832776", "0.46766415", "0.46747953", "0.46637225", "0.4656361", "0.46482027", "0.46401706", "0.463974", "0.46378973", "0.46193993", "0.45887616", "0.45820963", "0.45819414", "0.4576647", "0.45751244", "0.45732325", "0.45698026", "0.45643377", "0.45624626", "0.45609915", "0.45604038", "0.4537616", "0.45330983", "0.4532067", "0.45310435", "0.45214558", "0.4520727", "0.4515952", "0.4513468", "0.45101672", "0.44831604", "0.44774815", "0.44739863", "0.44732904", "0.4454831", "0.4452921", "0.44412354", "0.4436173", "0.4424286", "0.4417889", "0.44165584", "0.44135594", "0.4402154", "0.43986532", "0.43955746", "0.43905362", "0.43894055", "0.43800825", "0.43778825", "0.43699858", "0.43666768", "0.436496", "0.4362296", "0.43622822", "0.43520653", "0.4350215", "0.43498307", "0.43463987", "0.43350568", "0.43300503", "0.43268555", "0.43265495", "0.4326002", "0.43194", "0.43180344", "0.43178073", "0.43077603", "0.43040144", "0.42998898", "0.42913428", "0.42900586", "0.4281561", "0.4281083", "0.42779526", "0.42762125", "0.42745763", "0.42665485" ]
0.6424491
1
Helper method to get an appropriate reader based on a filename.
public synchronized static FASTAWriter getFASTAWriter(String filename) { // get the appropriate factory FASTAWriterFactory factory = (FASTAWriterFactory) getFASTAWriterFactory(filename); // return null if none exist if (factory == null) { return null; } // make the reader FASTAWriter writer = factory.newInstance(filename); // return a new FASTAReader instance return writer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Reader getReader(String filename) throws FileNotFoundException {\n\t\ttry {\n\t\t\tInputStream inputStream = new FileInputStream(filename);\n\t\t\treturn new InputStreamReader(inputStream, \"UTF-8\");\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\tthrow new IllegalStateException(\"Unable to read input\", e);\n\t\t}\n\t}", "private static ImageReader getReader(String fileName) {\n\t\ttry {\n\t\t\tObject source;\n\t\t\tif (fileName.startsWith(\"http\")) {\n\t\t\t\ttry {\n\t\t\t\t\tsource = cache.getImage(fileName);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t} catch (ExecutionException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t} else\n\t\t\t\tsource = new File(fileName); // Create a File from the path\n\t\t\t\t\t\t\t\t\t\t\t\t// string.\n\t\t\tIterator readers = ImageIO.getImageReadersByFormatName(\"jpeg\"); // Read\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// JPEGs.\n\t\t\tImageReader reader = (ImageReader) readers.next();\n\t\t\tImageInputStream iis = ImageIO.createImageInputStream(source); // Create\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// input\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// stream.\n\t\t\treader.setInput(iis, true); // And assign it to the reader.\n\t\t\tIIOReadWarningListener rwl = new MyWarningListener(fileName); // Set\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// up\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// listeners...\n\t\t\tmrpl = new MyReadProgressListener();\n\t\t\treader.addIIOReadProgressListener(mrpl);\n\t\t\treader.addIIOReadWarningListener(rwl);\n\t\t\treturn reader; // Give back the reader.\n\t\t} catch (java.io.IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t\tSystem.out.println(\"There was an error loading the image: \"\n\t\t\t\t\t+ fileName); // Debugging.\n\t\t\treturn null;\n\t\t}\n\t}", "public static TeaFileReader getReader(String fileFormat) {\r\n\t\tfor(FileFormats ff : FileFormats.values()) {\r\n\t\t\tif(ff.equals(fileFormat)) {\r\n\t\t\t\treturn ff.reader;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Default. Should never happen :)\r\n\t\treturn new TextReader();\r\n\t}", "public abstract UIReader getReaderByName(String readerName);", "private BufferedReader getBufferedReader(String filename) {\n\t\tBufferedReader retval;\n\t\ttry{\n\t\t\tretval = createReader(filename);\n\t\t\tif (retval != null) {\n\t\t\t\treturn retval;\n\t\t\t} else {\n\t\t\t\tDebug.error(\"Jay3DModel\", \"Unable to load file: \" + filename);\n\t\t\t}\n\t\t}catch(NullPointerException e){\n\t\t\tDebug.error(\"Jay3DModel\", \"Unable to load file: \" + filename);\n\t\t}\n\t\treturn null;\n\t}", "public static BufferedReader getReader(String fileName) throws IOException {\n return getReader(getPath(fileName));\n }", "public static BamLocusReader getLocusReader(String filepath){\n if(!instances.containsKey(filepath)){\n synchronized (BamLocusReader.class){\n if(!instances.containsKey(filepath)){\n SamHeaderAndIterator headerAndIterator = IOHelper.openInput(filepath);\n BamLocusReader reader = new BamLocusReader();\n reader.samHeaderAndIterator = headerAndIterator;\n instances.put(filepath, reader);\n return reader;\n }\n }\n\n }\n return instances.get(filepath);\n\n }", "public static ImageReader getReaderOnly(String fileName) {\n\t\treturn getReader(fileName);\n\t}", "interface Source {\n /** Finds a reader for a given file name.\n */\n public java.io.Reader getReader (URL url) throws java.io.IOException;\n }", "protected abstract InputStream getInStreamImpl(String filename) throws IOException;", "public fileReaderDesignated() throws FileNotFoundException{\n\t\tBufferedReader in=new BufferedReader(new FileReader(fileName));\n\t\ttry {\n\t\t\treadLargerTextFile(fileName);\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}", "public static FileReader getReader() {\n return new CsvFileReader();\n }", "private static IIteratingChemObjectReader<IAtomContainer> getInputReader(\n ArgumentHandler argsH, IChemObjectBuilder builder) throws FileNotFoundException {\n DataFormat inputFormat = argsH.getInputFormat();\n IIteratingChemObjectReader<IAtomContainer> reader;\n String filepath = argsH.getInputFilepath();\n InputStream in = new FileInputStream(filepath);\n switch (inputFormat) {\n case SMILES: reader = new IteratingSMILESReader(in, builder); break;\n case SIGNATURE: reader = new IteratingSignatureReader(in, builder); break;\n case SDF: reader = new IteratingSDFReader(in, builder); break;\n case ACP: reader = new IteratingACPReader(in, builder); break;\n default: reader = null; error(\"Unrecognised format\"); break;\n }\n return reader;\n }", "public FlashCardReader(String filename)\n\t{\t\n\t\ttry\n\t\t{\n\t\t\tFileReader freader = new FileReader(filename);\n\t\t\treader = new BufferedReader(freader);\n\t\t} catch(FileNotFoundException fnfe)\n\t\t{\n\t\t\tSystem.out.println(\"File not found!\");\n\t\t\tnotFound = true;\n\t\t}\n\t}", "public InstanceReader(String filename) throws FileNotFoundException{\n this.reader = new FileReader(filename);\n }", "protected abstract Reader getReader() throws IOException;", "public static BufferedReader asReader(String name) throws IOException {\n ClassLoader classLoader = Reflection.getCallerClass(3).getClassLoader();\n return new BufferedReader(new InputStreamReader(asStream(name, classLoader), UTF_8));\n }", "public java.io.Reader getReader (URL url) throws java.io.IOException;", "public ObjReader(String filename){\n file = filename;\n }", "public static Object readObjectFromFile(String filename)\n/* */ throws IOException, ClassNotFoundException\n/* */ {\n/* 122 */ return readObjectFromFile(new File(filename));\n/* */ }", "@SuppressWarnings(\"squid:S2095\")\n public synchronized TsFileSequenceReader get(String filePath, boolean isClosed)\n throws IOException {\n\n Map<String, TsFileSequenceReader> readerMap =\n !isClosed ? unclosedFileReaderMap : closedFileReaderMap;\n if (!readerMap.containsKey(filePath)) {\n int currentOpenedReaderCount = readerMap.size();\n if (currentOpenedReaderCount >= MAX_CACHED_FILE_SIZE\n && (currentOpenedReaderCount % PRINT_INTERVAL == 0)) {\n logger.warn(\"Query has opened {} files !\", readerMap.size());\n }\n\n TsFileSequenceReader tsFileReader = null;\n // check if the file is old version\n if (!isClosed) {\n tsFileReader = new UnClosedTsFileReader(filePath);\n } else {\n tsFileReader = new TsFileSequenceReader(filePath);\n if (tsFileReader.readVersionNumber() != TSFileConfig.VERSION_NUMBER) {\n tsFileReader.close();\n throw new IOException(\"The version of this TsFile is not correct.\");\n }\n }\n readerMap.put(filePath, tsFileReader);\n return tsFileReader;\n }\n\n return readerMap.get(filePath);\n }", "public InputStream readFile( String fileName, FileType type );", "public static void reading(String fileName)\n {\n\n }", "@SneakyThrows\n public Reader reader() {\n return new FileReader(this.temp);\n }", "static Reader createReaderFromStream(Path path, FSDataInputStream fsdis, long size,\n CacheConfig cacheConf, Configuration conf) throws IOException {\n FSDataInputStreamWrapper wrapper = new FSDataInputStreamWrapper(fsdis);\n return pickReaderVersion(path, wrapper, size, cacheConf, null, conf);\n }", "private CSVReaderHeaderAware getCSVReader(File file)\n throws IOException {\n FileReader fileReader;\n CSVReaderHeaderAware rowReader;\n try {\n fileReader = new FileReader(file);\n try {\n rowReader = new CSVReaderHeaderAware(fileReader);\n } catch (IOException exception) {\n System.out.println(\"IO ERROR ON CSV READ\");\n throw exception;\n }\n } catch (FileNotFoundException exception) {\n System.out.println(\"CSV FILE NOT FOUND\");\n throw exception;\n }\n return rowReader;\n }", "public static BufferedReader Reader(String path) throws IOException\n\t{\n\t\treturn new BufferedReader(new InputStreamReader(new FileInputStream(path),\"UTF-8\"));\n\t}", "public BfReader(String filename) throws FileNotFoundException {\n\t\ttry {\n\t\t\treader = new RandomAccessFile(filename, \"r\");\n\t\t\tmarks = new Stack<>();\n\t\t} catch (java.io.IOException e) {\n\t\t\tthrow new FileNotFoundException(filename);\n\t\t}\n\t}", "StreamReader underlyingReader();", "public StatDataFileReader createReaderInstance() throws IOException{\n return createReaderInstance(null);\n }", "public interface FileReader {\n\n String read(String fileName);\n}", "public interface ReaderFromFile {\n\t\n\tpublic List<Data> readDataFromFile (String filename);\n}", "public Reader getReader(Object templateSource, String encoding)\r\n/* 43: */ throws IOException\r\n/* 44: */ {\r\n/* 45:75 */ Resource resource = (Resource)templateSource;\r\n/* 46: */ try\r\n/* 47: */ {\r\n/* 48:77 */ return new InputStreamReader(resource.getInputStream(), encoding);\r\n/* 49: */ }\r\n/* 50: */ catch (IOException ex)\r\n/* 51: */ {\r\n/* 52:80 */ if (this.logger.isDebugEnabled()) {\r\n/* 53:81 */ this.logger.debug(\"Could not find FreeMarker template: \" + resource);\r\n/* 54: */ }\r\n/* 55:83 */ throw ex;\r\n/* 56: */ }\r\n/* 57: */ }", "public void fileRead(String filename) throws IOException;", "public abstract StatDataFileReader createReaderInstance(Object extension)\n throws IOException;", "private BufferedReader getBufferedReader(final String fileName)\n throws UnsupportedEncodingException {\n InputStream configStream = Thread.currentThread().\n getContextClassLoader().getResourceAsStream(fileName);\n return new BufferedReader(new InputStreamReader(configStream, \"UTF-8\"));\n }", "public FilesInputStreamLoad readFile() throws ArcException {\r\n\tFile dir = new File(this.archiveChargement + \".dir\");\r\n\tString fileName = ManipString.substringAfterFirst(this.idSource, \"_\");\r\n\tFile toRead = new File(dir + File.separator + ManipString.redoEntryName(fileName));\r\n\tFilesInputStreamLoad filesInputStreamLoadReturned = null;\r\n\ttry {\r\n\t\tfilesInputStreamLoadReturned = new FilesInputStreamLoad (toRead);\r\n\t} catch (IOException ioReadException) {\r\n\t\tthrow new ArcException(ioReadException, ArcExceptionMessage.FILE_READ_FAILED, toRead);\r\n\t}\r\n\treturn filesInputStreamLoadReturned;\r\n }", "RandomAccessFile openInputFile(String fileName) {\n if (dbg) System.out.println(\"<br>\" + thisClass + \".openInputFile: \" +\n \"fileName = \" + fileName);\n RandomAccessFile file = null;\n try {\n file = new RandomAccessFile(fileName, \"r\");\n if (dbg) System.out.println(\"<br>\" + thisClass + \".openInputFile: \" +\n \"success: file opened for read\");\n } catch (Exception e) {\n ec.processError(e, thisClass, \"openInputFile\", \"\");\n if (dbg) System.out.println(\"<br>\" + thisClass + \".openInputFile: \" +\n \"error: file opened for read\");\n } // try-catch\n return file;\n }", "public static BufferedReader getReader(Path path) throws IOException {\n return Files.newBufferedReader(path);\n }", "@Override\n public Ini read(Path path) throws IOException {\n try (Reader reader = Files.newBufferedReader(path)) {\n return read(reader);\n }\n }", "public InputStreamReader getInputStreamReader()\n/* */ {\n/* 118 */ InputStream in = ResourceUtils.getResourceAsStream(this, this);\n/* */ \n/* 120 */ if (in == null) {\n/* 121 */ return null;\n/* */ }\n/* */ \n/* 124 */ InputStreamReader reader = new InputStreamReader(in);\n/* */ \n/* 126 */ return reader;\n/* */ }", "FileLoader createJob(Reader reader);", "@Override\n public boolean initializeIndexReader(String filename) {\n try {\n READER = DirectoryReader.open(FSDirectory.open(FileSystems.getDefault().getPath(filename)));\n } catch (IOException e) {\n READER = null;\n log.error(\"Failed to instantiate the index api.reader with directory: \" + filename);\n }\n return isInitialized();\n }", "@Override\n public InputStream openInputFile(String pathname) throws IOException {\n return new FileInputStream(pathname);\n }", "String Reader(String FileName, Context context){\n FileInputStream inputStream = null;\n String Text = \"\";\n StringBuilder sb = null;\n try{\n //inputStream = context.openFileInput(FileName);\n inputStream = new FileInputStream(new File(FileName));\n InputStreamReader reader = new InputStreamReader(inputStream);\n BufferedReader buffRead = new BufferedReader(reader);\n sb = new StringBuilder();\n\n while ((Text = buffRead.readLine())!= null){\n sb.append(Text);\n sb.append(\"\\n\");\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return sb.toString();\n }", "public static Reader createReader(FileSystem fs, Path path\n ) throws IOException {\n return new ReaderImpl(fs, path);\n }", "private FileReader openLabelsFile() {\n FileReader file = null;\n try {\n file = new FileReader(riaaLabelsFile);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return file;\n }", "@edu.umd.cs.findbugs.annotations.SuppressWarnings(value = \"SF_SWITCH_FALLTHROUGH\", justification = \"Intentional\")\n private static Reader pickReaderVersion(Path path, FSDataInputStreamWrapper fsdis, long size,\n CacheConfig cacheConf, HFileSystem hfs, Configuration conf) throws IOException {\n FixedFileTrailer trailer = null;\n try {\n boolean isHBaseChecksum = fsdis.shouldUseHBaseChecksum();\n assert !isHBaseChecksum; // Initially we must read with FS checksum.\n trailer = FixedFileTrailer.readFromStream(fsdis.getStream(isHBaseChecksum), size);\n switch (trailer.getMajorVersion()) {\n case 2:\n return new HFileReaderV2(path, trailer, fsdis, size, cacheConf, hfs, conf);\n case 3:\n return new HFileReaderV3(path, trailer, fsdis, size, cacheConf, hfs, conf);\n default:\n throw new IllegalArgumentException(\"Invalid HFile version \" + trailer.getMajorVersion());\n }\n } catch (Throwable t) {\n try {\n fsdis.close();\n } catch (Throwable t2) {\n LOG.warn(\"Error closing fsdis FSDataInputStreamWrapper\", t2);\n }\n throw new CorruptHFileException(\"Problem reading HFile Trailer from file \" + path, t);\n }\n }", "@Override\n public InputStream openInternalInputFile(String pathname) throws IOException {\n return new FileInputStream(pathname);\n }", "public static CategoriesReader create(String file) {\n if (file.endsWith((CommonFileExtensions.CSV_EXTENSION))) {\n return new CSVCategoriesReader(file);\n } else if (file.endsWith(CommonFileExtensions.XML_EXTENSION)) {\n return new XMLCategoriesReader(file);\n } else if (file.endsWith(CommonFileExtensions.JSON_EXTENSION)) {\n return new JSONCategoriesReader(file);\n }\n return null;\n }", "public static final Object deserializeFromFile(String filename)\n\t{\n\t\tObject object = null;\n\n\t\t// Define local constants.\n\n\t\tString METHOD_NAME = \"deserializeFromFile\";\n\n\t\t// Check the parameters received and throw the appropriate\n\t\t// exception if necessary.\n\n\t\tif (null == filename)\n\t\t{\n\t\t\tthrow new NullPointerException(Messages.buildErrorMessage(CLASS_NAME,\n\t\t\t METHOD_NAME,\n\t\t\t Messages.NULL_PARAMETER_MSG));\n\t\t}\n\n\t\tif (0 == filename.length())\n\t\t{\n\t\t\tthrow new IllegalArgumentException(Messages.buildErrorMessage(CLASS_NAME,\n\t\t\t METHOD_NAME,\n\t\t\t Messages.ZERO_LENGTH_PARAMETER_MSG));\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\tObjectInputStream objectInputStream =\n\t\t\t\tnew ObjectInputStream(new FileInputStream(filename));\n\t\t\tobject = objectInputStream.readObject();\n\t\t\tobjectInputStream.close();\n\t\t}\n\n\t\tcatch (IOException exception)\n\t\t{\n\t\t\tSystem.out.println(\"Caught: \" + exception);\n\t\t}\n\n\t\tcatch (ClassNotFoundException exception)\n\t\t{\n\t\t\tSystem.out.println(\"Caught: \" + exception);\n\t\t}\n\n\t\treturn object;\n\t}", "@Override\n public InputStream readFileInternal(String _fileName) throws IOException\n { // Reads a file from the devices internal storage. Takes a filename as a parameter and throws an IOException if failed.\n return context.openFileInput(_fileName);\n }", "public FeatureReader<SimpleFeatureType, SimpleFeature> getFeatureReader(final String typeName)\n throws IOException {\n \treturn new DelegateFeatureReader<SimpleFeatureType, SimpleFeature>( getSchema(typeName), collection.features() );\n }", "public static BufferedReader getBufferedReader(String filePath) {\r\n\r\n BufferedReader bufferedReader = null;\r\n try {\r\n bufferedReader = Files.newBufferedReader(Paths.get(filePath), Charset.defaultCharset());\r\n } catch (IOException ex) {\r\n Logger.getLogger(FileUtility.class.getName()).log(Level.SEVERE, \"Error in readLine\", ex);\r\n }\r\n return bufferedReader;\r\n }", "public SourceFileReader createSourceFileReader(String fileReaderType) {\n\t\tSourceFileReader fileReader;\n\t\tif (fileReaderType.equals(\"local\")) {\n\t\t\tfileReader = new LocalFileReader();\n\t\t} else if (fileReaderType.equals(\"web\")) {\n\t\t\tfileReader = new WebFileReader();\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"Unknown file reader type : \" + fileReaderType);\n\t\t}\n\t\treturn fileReader;\n\t}", "private String readDeserialize(String fileName, AssetManager assetManager) {\n StringBuffer sb = new StringBuffer();\n try {\n InputStream is = assetManager.open(fileName);\n InputStreamReader isr = new InputStreamReader(is);\n BufferedReader br = new BufferedReader(isr);\n\n String line = br.readLine();\n while (line != null) {\n sb.append(line);\n line = br.readLine();\n }\n br.close();\n isr.close();\n is.close();\n } catch (FileNotFoundException e) {\n Log.e(\"login activity\", String.format(\"File not found: %s\", e.toString()));\n } catch (IOException e) {\n Log.e(\"login activity\", String.format(\"Can not read file: %s\", e.toString()));\n }\n return sb.toString();\n }", "public FastaReader(String fileName) throws IOException{\n\t\tthis(new FileInputStream(fileName));\n\t}", "private static InputStream getInputStream(final String filename) throws IOException, FileNotFoundException {\r\n final ResourcePatternResolver applicationContext = new ClassPathXmlApplicationContext(new String[] {});\r\n final Resource[] resource = applicationContext.getResources(\"classpath*:\" + filename);\r\n if (resource.length == 0) {\r\n throw new FileNotFoundException(\"Unable to find file '\" + filename + \"' in classpath.\");\r\n }\r\n return resource[0].getInputStream();\r\n }", "private static DataFileStream<GenericRecord> getAvroReader(Path avroFile)\n throws IOException {\n FileSystem fs = FileSystem.get(new Configuration());\n if (avroFile.getName().endsWith(\"gz\")) {\n return new DataFileStream<>(new GZIPInputStream(fs.open(avroFile)), new GenericDatumReader<>());\n } else {\n return new DataFileStream<>(fs.open(avroFile), new GenericDatumReader<>());\n }\n }", "@Override\n public Ini read(File file) throws IOException {\n try ( Reader reader = new FileReader(file)) {\n return read(reader);\n }\n }", "public static BufferedReader generateInputReader(String[] args) \n\t\t\tthrows IOException\n\t{\n\t\tif(args.length == 0)\n\t\t{\n\t\t\tInputStream stream = Main.class.getResourceAsStream(\"input.txt\");\n\t\t\treturn new BufferedReader(new InputStreamReader(stream));\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn new BufferedReader(new FileReader(args[0]));\n\t\t}\n\t}", "public static BufferedReader generateInputReader(String[] args) \n\t\t\tthrows IOException\n\t{\n\t\tif(args.length == 0)\n\t\t{\n\t\t\tInputStream stream = Main.class.getResourceAsStream(\"input.txt\");\n\t\t\treturn new BufferedReader(new InputStreamReader(stream));\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn new BufferedReader(new FileReader(args[0]));\n\t\t}\n\t}", "public final InputStream getInStream(String filename) throws IOException {\n\t\tint pos = filename.indexOf(\".bin\");\n\t\tsendMessage((pos > -1) ? filename.substring(0, pos) : filename);\n\t\treturn getInStreamImpl(filename);\n\t}", "public static BufferedReader readDataFile(String filename,String pathOfFile)\n\t{\n\t\tString pathToSave = pathOfFile;\n BufferedReader inputReader = null;\n try\n {\n inputReader = new BufferedReader(new FileReader(pathToSave+filename));\n }\n catch (FileNotFoundException ex)\n {\n System.err.println(\"File not found: \" + filename);\n }\n \n return inputReader;\n }", "public MyInputStream(String fileName)\n {\n try\n {\n in = new BufferedReader\n (new FileReader(fileName));\n }\n catch (FileNotFoundException e)\n {throw new MyInputException(e.getMessage());}\n }", "public RecordReader getRecordReader( InputSplit split, JobConf job, Reporter reporter ) throws IOException\n {\n MultiInputSplit multiSplit = (MultiInputSplit) split;\n JobConf currentConf = mergeConf( job, multiSplit.config, true );\n \n return currentConf.getInputFormat().getRecordReader( multiSplit.inputSplit, currentConf, reporter );\n }", "public JsonReader(String file) {\n this.file = file;\n }", "private static String readLine(String filename) throws IOException {\n\t\ttry (BufferedReader reader = new BufferedReader(\n\t\t\t\tnew FileReader(filename), 256)) {\n\t\t\treturn reader.readLine();\n\t\t}\n\t}", "T read(String identifier) throws IOException;", "private static InputStream getResourceAsStream(final String filename) throws IOException {\n\t\t// Try to load resource from jar\n\t\tInputStream stream = TextureLoader.class.getResourceAsStream(filename);\n\t\t// If not found in jar, then load from disk\n\t\tif (stream == null) {\n\t\t\treturn new BufferedInputStream( new FileInputStream(filename) );\n\t\t} else {\n\t\t\treturn stream;\n\t\t}\n\t}", "public static InputStream createInputStream(String filename) throws FileReadingException {\n File file = new File(filename);\n if (!file.exists()) {\n throw new FileReadingException(\"File Not Found: \" + filename + \"\\n\");\n }\n if (!file.isFile()) {\n throw new FileReadingException(filename + \" is not a file.\\n\");\n }\n if (!file.canRead()) {\n throw new FileReadingException(\"Reading file \" + filename + \" is not permitted.\\n\");\n }\n\n try {\n return new FileInputStream(file);\n } catch (FileNotFoundException e) {\n throw new FileReadingException(\"File Not Found: \" + filename + \"\\n\");\n }\n }", "public SqlFileParser(String filename) {\n try {\n this.reader = new BufferedReader(new FileReader(filename));\n } catch (FileNotFoundException e) {\n throw new IllegalArgumentException(\"file not found \" + filename);\n }\n }", "private SgfReader load(File file)\n {\n \tFileInputStream in;\n \ttry {\n \t in = new FileInputStream(file);\n \t}\n \tcatch(FileNotFoundException e) {\n \t showError(\"File not found!\");\n \t return null;\n \t}\n \n \tSgfReader sgf;\n \ttry {\n \t sgf = new SgfReader(in);\n \t}\n \tcatch (SgfReader.SgfError e) {\n \t showError(\"Error reading SGF file:\\n \\\"\" + e.getMessage() + \"\\\"\");\n \t return null;\n \t}\n \t\n \treturn sgf;\n }", "private static Optional<InputStream> openFile(Path name) {\n try {\n return Optional.of(Files.newInputStream(name, StandardOpenOption.READ));\n } catch (IOException e) {\n System.err.printf(\"Unable to open file %s for reading: %s\\n\", name, e.toString());\n }\n\n return Optional.empty();\n }", "private Scanner getInput(String name) {\n try {\n return new Scanner(new File(name));\n } catch (IOException excp) {\n throw error(\"could not open %s\", name);\n }\n }", "private Object deserializeObject(String filename)\n throws FileNotFoundException, IOException, ClassNotFoundException\n {\n if (filename == null)\n {\n throw new NullPointerException(\"filename\");\n }\n if (filename.isEmpty())\n {\n throw new IllegalArgumentException(\"filename\");\n }\n synchronized(filename)\n {\n FileInputStream fileIn = new FileInputStream(filename);\n ObjectInputStream in = new ObjectInputStream(fileIn);\n Object result = in.readObject();\n in.close();\n fileIn.close();\n return result;\n }\n }", "@Override\n public InputStream findResource(String filename)\n {\n InputStream resource = null;\n try\n {\n Path scriptRootPath = Files.createDirectories(getScriptRootPath(side));\n Path scriptPath = scriptRootPath.resolve(filename).toAbsolutePath();\n resource = Files.newInputStream(scriptPath, StandardOpenOption.READ);\n } catch (IOException e)\n {\n resource = super.findResource(filename);\n }\n return resource;\n }", "public synchronized InputStream tryToLoadFromEverywhere(String filename) {\n InputStream result = null;\n result = System.class.getResourceAsStream(filename);\n if (result != null) {\n return result;\n }\n\n result = Thread.currentThread().getContextClassLoader().getResourceAsStream(filename);\n if (result != null) {\n return result;\n }\n\n result = Thread.currentThread().getClass().getResourceAsStream(filename);\n if (result != null) {\n return result;\n }\n\n result = ClassLoader.getSystemResourceAsStream(filename);\n if (result != null) {\n return result;\n }\n result = ClassLoader.getSystemClassLoader().getResourceAsStream(filename);\n if (result != null) {\n return result;\n }\n\n return result;\n }", "@Override\n public InputStream open() throws IOException {\n return getClass().getClassLoader().getResourceAsStream(name);\n }", "@Override\n public Reader getReader(final Object templateSource, final String encoding) throws IOException {\n try (final Reader reader = delegate.getReader(templateSource, encoding)) {\n final String templateText = IOUtils.toString(reader);\n if (!templateText.contains(\"<#ftl\")) {\n return new StringReader(ESCAPE_PREFIX + templateText + ESCAPE_SUFFIX);\n } else {\n return new StringReader(templateText);\n }\n }\n }", "String readFile( String filename ) {\n try {\n FileReader fileReader = new FileReader( filename );\n BufferedReader bufferedReader = new BufferedReader( fileReader );\n StringBuilder stringBuilder = new StringBuilder();\n String line = bufferedReader.readLine();\n while( line != null ) {\n stringBuilder.append( line );\n stringBuilder.append( \"\\n\" );\n line = bufferedReader.readLine();\n }\n bufferedReader.close();\n fileReader.close();\n return stringBuilder.toString();\n } catch( Exception e ) {\n playerObjects.getLogFile().WriteLine( Formatting.exceptionToStackTrace( e ) );\n return null;\n }\n }", "private BufferedReader inFromFile(String indexFullName) \n {\n try \n { return new BufferedReader( new FileReader( new File( indexFullName ) ) ); } \n catch (FileNotFoundException e) \n {\n log.warn( \"could not find index file \" + indexFullName + \": no bindings created\" );\n return new BufferedReader( new EmptyReader() );\n }\n }", "public Reader openReader(boolean ignoreEncodingErrors) throws IOException {\n throw new UnsupportedOperationException();\n }", "public ReadFile (String file) throws java.io.FileNotFoundException\n {\n reader = new java.io.FileReader(file);\t\t//Construct the file reader\n br = new java.io.BufferedReader(reader);\t//Wrap it with a BufferedReader\n assert this.isValid(); \t\t\t//Make sure all is well and we can read the file\n }", "public DatasetReader(final String filename)\n\t{\n\t\tthis();\n\t\t\n\t\treadReviews(filename + \".txt\");\n\t}", "private ResourceInputStream findResource(String resName, HttpServletRequest request) throws IOException {\n\t\tFile resFile = this.findFile(resName);\n\t\tif (resFile != null)\n\t\t\treturn new ResourceInputStream(resFile);\n\t\t\n\t\t//\ttry resource providers (copy for thread safety, as we don't want concurrent modification exceptions)\n\t\tLinkedList rpList = new LinkedList(this.resourceProviders);\n\t\twhile (rpList.size() != 0) {\n\t\t\tResourceProvider rp = ((ResourceProvider) rpList.removeFirst());\n\t\t\tResourceInputStream ris = rp.getResource(resName, request);\n\t\t\tif (ris != null)\n\t\t\t\treturn ris;\n\t\t}\n\t\t\n\t\t//\tnothing we can do about this one\n\t\treturn null;\n\t}", "private static XMLReaders\n\treaders(final Function<? super String, Length> lengthParser) {\n\t\treturn new XMLReaders()\n\t\t\t.v00(XMLReader.elem(\"name\"))\n\t\t\t.v00(XMLReader.elem(\"cmt\"))\n\t\t\t.v00(XMLReader.elem(\"desc\"))\n\t\t\t.v00(XMLReader.elem(\"src\"))\n\t\t\t.v11(XMLReader.elems(Link.READER))\n\t\t\t.v10(XMLReader.elem(\"url\").map(Format::parseURI))\n\t\t\t.v10(XMLReader.elem(\"urlname\"))\n\t\t\t.v00(XMLReader.elem(\"number\").map(UInt::parse))\n\t\t\t.v00(XMLReader.elem(\"type\"))\n\t\t\t.v00(XMLReader.doc(\"extensions\"))\n\t\t\t.v10(XMLReader.elems(TrackSegment.xmlReader(Version.V10, lengthParser)))\n\t\t\t.v11(XMLReader.elems(TrackSegment.xmlReader(Version.V11, lengthParser)));\n\t}", "public static String readFromFile(String filename, String username) {\n\n // Read in the file from top to bottom\n ArrayList<String> tmp = new ArrayList<>();\n String ch;\n\n try {\n FileReader fr = new FileReader(PATH + filename);\n BufferedReader br = new BufferedReader(fr);\n\n do {\n ch = br.readLine();\n tmp.add(ch);\n } while (ch != null);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // Read the array from the back to the front.\n // There's an extra blank line at the bottom of the file so its -2\n for (int i = (tmp.size() - 2); i >= 0; i--) {\n String[] parts = tmp.get(i).split(Utilities.PARSE_SPLITTER_FIELD);\n if (parts[0].equals(username)) {\n return tmp.get(i);\n }\n }\n\n return null;\n }", "protected abstract Object readFile(BufferedReader buf) throws IOException, FileParseException;", "public CodeReader createCodeReaderForInclusion(String path) {\n \t\ttry {\n \t\t\ttry {\n\t\t\t\tFile file = new File(path);\n\t\t\t\tif (!file.exists())\n\t\t\t\t\treturn null;\n \t\t\t\tpath = new File(path).getCanonicalPath();\n \t\t\t} catch (IOException e) {\n \t\t\t\t// ignore and use the path we were passed in\n \t\t\t}\n \t\t\tPDOMFile file = pdom.getFile(path);\n \t\t\tif (file != null) {\n \t\t\t\t// Already got things from here, pass in a magic\n \t\t\t\t// buffer with the macros in it\n \t\t\t\tskippedHeaders.add(path);\n \t\t\t\tStringBuffer buffer = new StringBuffer();\n \t\t\t\tfillMacros(file, buffer, new HashSet());\n \t\t\t\tint length = buffer.length();\n \t\t\t\tchar[] chars = new char[length];\n \t\t\t\tbuffer.getChars(0, length, chars, 0);\n \t\t\t\treturn new CodeReader(path, chars);\n \t\t\t}\n \t\t} catch (CoreException e) {\n \t\t\tCCorePlugin.log(new CoreException(new Status(IStatus.ERROR,\n \t\t\t\t\tCCorePlugin.PLUGIN_ID, 0, \"PDOM Exception\", e)));\n \t\t}\n \t\t\n \t\treturn ParserUtil.createReader(path, null);\n \t}", "public String read(String filename) {\n StringBuilder stringBuilder = new StringBuilder();\n try (BufferedReader bufferedReader = new BufferedReader(new FileReader(filename))) {\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n stringBuilder.append(line).append(\"\\n\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n return stringBuilder.toString();\n }", "private InputSource filesystemLookup(ResourceLocation matchingEntry) {\n\n String uri = matchingEntry.getLocation();\n // the following line seems to be necessary on Windows under JDK 1.2\n uri = uri.replace(File.separatorChar, '/');\n URL baseURL;\n\n //\n // The ResourceLocation may specify a relative path for its\n // location attribute. This is resolved using the appropriate\n // base.\n //\n if (matchingEntry.getBase() != null) {\n baseURL = matchingEntry.getBase();\n } else {\n try {\n baseURL = FILE_UTILS.getFileURL(getProject().getBaseDir());\n } catch (MalformedURLException ex) {\n throw new BuildException(\"Project basedir cannot be converted to a URL\");\n }\n }\n\n URL url = null;\n try {\n url = new URL(baseURL, uri);\n } catch (MalformedURLException ex) {\n // this processing is useful under Windows when the location of the DTD\n // has been given as an absolute path\n // see Bugzilla Report 23913\n File testFile = new File(uri);\n if (testFile.exists() && testFile.canRead()) {\n log(\"uri : '\"\n + uri + \"' matches a readable file\", Project.MSG_DEBUG);\n try {\n url = FILE_UTILS.getFileURL(testFile);\n } catch (MalformedURLException ex1) {\n throw new BuildException(\n \"could not find an URL for :\" + testFile.getAbsolutePath());\n }\n } else {\n log(\"uri : '\"\n + uri + \"' does not match a readable file\", Project.MSG_DEBUG);\n\n }\n }\n\n InputSource source = null;\n if (url != null && \"file\".equals(url.getProtocol())) {\n String fileName = FILE_UTILS.fromURI(url.toString());\n if (fileName != null) {\n log(\"fileName \" + fileName, Project.MSG_DEBUG);\n File resFile = new File(fileName);\n if (resFile.exists() && resFile.canRead()) {\n try {\n source = new InputSource(Files.newInputStream(resFile.toPath()));\n String sysid = JAXPUtils.getSystemId(resFile);\n source.setSystemId(sysid);\n log(\"catalog entry matched a readable file: '\"\n + sysid + \"'\", Project.MSG_DEBUG);\n } catch (IOException ex) {\n // ignore\n }\n }\n }\n }\n return source;\n }", "protected final Reader getReader()\n {\n return _reader;\n }", "private BarCodeReader barCodeReaderPdf(String filename) throws Exception {\n com.aspose.barcode.License licenceBarCode = new com.aspose.barcode.License();\n licenceBarCode.setLicense(getLicenseDir() + \"Aspose.Total.Java.lic\");\n\n PdfExtractor pdfExtractor = new PdfExtractor();\n pdfExtractor.bindPdf(filename);\n\n // Set page range for image extraction.\n pdfExtractor.setStartPage(1);\n pdfExtractor.setEndPage(1);\n\n pdfExtractor.extractImage();\n\n ByteArrayOutputStream imageStream = new ByteArrayOutputStream();\n pdfExtractor.getNextImage(imageStream);\n ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(imageStream.toByteArray());\n\n pdfExtractor.close();\n\n // Recognize the barcode from the image stream above.\n BarCodeReader barcodeReader = new BarCodeReader(byteArrayInputStream, DecodeType.QR);\n\n for (BarCodeResult result : barcodeReader.readBarCodes())\n System.out.println(\"Codetext found: \" + result.getCodeText() + \", Symbology: \" + result.getCodeTypeName());\n\n return barcodeReader;\n }", "public BufferedReader createReaderForGz(String gzFileName) throws IOException\r\n\t{\r\n\t\tBufferedInputStream in = new BufferedInputStream(new FileInputStream(gzFileName));\r\n\t\tGzipCompressorInputStream gzIn = new GzipCompressorInputStream(in);\r\n\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(gzIn));\r\n\t\t\r\n\t\t/*\r\n\t\t * test\r\n\t\tString line = null;\r\n\t\tint lineNum = 0;\r\n\t\twhile ( (line = rd.readLine()) != null) \r\n\t\t{\r\n\t\t\tSystem.out.println(lineNum++ + \" : \" + line);\r\n\t\t}\r\n\t\t*/\r\n\t\t\r\n\t\treturn rd;\r\n\r\n\t}", "public static BufferedReader getReader(File file) throws IOException {\n return getReader(file.toPath());\n }", "public interface SourceFileReader {\n\t\n\t/**\n\t * Reads a file and returns its content in a List\n\t * @param fileReaderType the location of a file \n\t * (<b>local</b> for locally stored files, \n\t * <b>web</b> for files stored on the web). \n\t * @param filepath the url of the file\n\t * @return a List that contains the contents of the file \n\t * or null if the type is neither <b>local</b> nor <b>web</b>\n\t * @throws IOException\n\t */\n\tpublic List<String> readFileIntoList(String filepath) throws IOException;\n\t\n\t/**\n\t * Reads a file and returns its content in a single String\n\t * @param fileReaderType the location of a file \n\t * (<b>local</b> for locally stored files, \n\t * <b>web</b> for files stored on the web). \n\t * @param filepath the url of the file\n\t * @return a String that contains the contents of the file\n\t * or null if the type is neither <b>local</b> nor <b>web</b>\n\t * @throws IOException\n\t */\n\tpublic String readFileIntoString(String filepath) throws IOException;\n\n}", "@Override\n public InputStream readFileExternal(String _fileName) throws IOException \n { // Reads a file saved to external storage. Takes the filename as a parameter and throws an IOException if failed.\n return new FileInputStream(externalStoragePath + _fileName);\n }", "@Override\n\tpublic RecordReader<Text, ArchiveReader> getRecordReader(InputSplit arg0,\n\t\t\tJobConf arg1, Reporter arg2) throws IOException {\n\t\ttry {\n\t\t\treturn new WARCFileRecordReader(arg0, arg1);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "protected void _openReader() throws IllegalActionException {\n\t\tfileOrURL.close();\n\n\t\t// Ignore if the fileOrUL is blank.\n\t\tif (fileOrURL.getExpression().trim().equals(\"\")) {\n\t\t\t_soundReader = null;\n\t\t\t_reachedEOF = true;\n\t\t} else {\n\t\t\t// Each read this many samples per channel when\n\t\t\t// _soundReader.getSamples() is called.\n\t\t\t// This value was chosen arbitrarily.\n\t\t\tint getSamplesArraySize = 64;\n\n\t\t\ttry {\n\t\t\t\t_soundReader = new SoundReader(fileOrURL.asURL(),\n\t\t\t\t\t\tgetSamplesArraySize);\n\t\t\t} catch (IOException ex) {\n\t\t\t\tString newFileOrURL = ((StringToken) fileOrURL.getToken())\n\t\t\t\t\t\t.stringValue();\n\t\t\t\tthrow new IllegalActionException(this, ex,\n\t\t\t\t\t\t\"Cannot open fileOrURL '\" + newFileOrURL + \"'.\");\n\t\t\t}\n\n\t\t\t// Get the number of audio channels.\n\t\t\t_channels = _soundReader.getChannels();\n\n\t\t\t// Begin immediately reading data so that we stay at\n\t\t\t// least one sample ahead. This is important so that\n\t\t\t// postfire() will return false when the last sample\n\t\t\t// in the file is encountered, rather than on the next\n\t\t\t// iteration.\n\t\t\ttry {\n\t\t\t\t// Read in audio data.\n\t\t\t\t_audioIn = _soundReader.getSamples();\n\t\t\t} catch (Exception ex) {\n\t\t\t\tthrow new IllegalActionException(this, ex,\n\t\t\t\t\t\t\"Unable to get samples from the file.\");\n\t\t\t}\n\n\t\t\t_sampleIndex = 0;\n\n\t\t\t// Check that the read was successful\n\t\t\tif (_audioIn != null) {\n\t\t\t\t_reachedEOF = false;\n\t\t\t} else {\n\t\t\t\t_reachedEOF = true;\n\t\t\t}\n\t\t}\n\t}", "public IFormatReader getReader() {\n\t\t\treturn reader;\n\t\t}" ]
[ "0.7367298", "0.7126739", "0.6817769", "0.6750906", "0.67122096", "0.664678", "0.65937346", "0.6526513", "0.6472308", "0.6397687", "0.6393442", "0.6324193", "0.6271937", "0.6251481", "0.6240681", "0.62169474", "0.6213994", "0.6160378", "0.60221595", "0.59919554", "0.59729534", "0.5938577", "0.58811766", "0.5863025", "0.58507216", "0.58481675", "0.58236337", "0.58010966", "0.5798447", "0.57978433", "0.57914746", "0.5789858", "0.57670116", "0.5758628", "0.5733235", "0.57283044", "0.57128876", "0.566353", "0.5663391", "0.56615275", "0.5634299", "0.5610561", "0.55910635", "0.55808115", "0.55751157", "0.55645376", "0.55453026", "0.5542847", "0.5537482", "0.5522876", "0.5518219", "0.5517448", "0.5515364", "0.55115736", "0.5510922", "0.55076844", "0.54863894", "0.5474995", "0.54552686", "0.5454905", "0.54352164", "0.54352164", "0.54179615", "0.5415881", "0.5414924", "0.54083973", "0.5402109", "0.53923184", "0.5389944", "0.53775376", "0.5376461", "0.5367955", "0.536464", "0.5361737", "0.5361062", "0.5349141", "0.5344164", "0.5331524", "0.5324671", "0.5321051", "0.53141576", "0.5313035", "0.5311734", "0.5297835", "0.5297222", "0.52911836", "0.52901745", "0.5285979", "0.52743566", "0.52730906", "0.5271706", "0.52689075", "0.5264082", "0.52619666", "0.5261499", "0.5259732", "0.5256762", "0.5254627", "0.5253151", "0.52475494", "0.5239746" ]
0.0
-1
Helper method to get an appropriate FASTAWriterFactory instance.
public synchronized static FASTAWriterFactory getFASTAWriterFactory(String filename) { // check for the appropriate factory for (Iterator it = writers.keySet().iterator(); it.hasNext();) { Pattern p = (Pattern) it.next(); // always match against lower case Matcher m = p.matcher(filename.toLowerCase()); if (m.matches()) { return (FASTAWriterFactory) writers.get(p); } } // get the appropriate factory throw new RuntimeException("Can't find a create the fasta file "+filename+". Please try a different format."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized static FASTAWriter getFASTAWriter(String filename) {\r\n // get the appropriate factory\r\n FASTAWriterFactory factory = (FASTAWriterFactory) getFASTAWriterFactory(filename);\r\n // return null if none exist\r\n if (factory == null) {\r\n return null;\r\n }\r\n \r\n // make the reader\r\n FASTAWriter writer = factory.newInstance(filename);\r\n \r\n // return a new FASTAReader instance\r\n return writer;\r\n }", "public static FactoryWriter getInstance() {\n return FactoryWriterHolder.INSTANCE;\n }", "public synchronized static void setFASTAWriter(FASTAWriterFactory factory, String regex) {\r\n // treat the extension as a regular expression\r\n Pattern pattern = Pattern.compile(regex);\r\n writers.put(pattern, factory);\r\n }", "public static TeaFileWriter getWriter(String fileFormat) {\r\n\t\t\r\n\t\tfor(FileFormats ff : FileFormats.values()) {\r\n\t\t\tif(ff.equals(fileFormat)) {\r\n\t\t\t\treturn ff.writer;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Default. Should never happen :)\r\n\t\treturn new TextWriter();\r\n\t}", "private WriterFactory() {\n }", "private static void loadWriterClass(String writer, String regex){\r\n try {\r\n FASTAWriterFactory factory = (FASTAWriterFactory)Class.forName(writer).newInstance();\r\n setFASTAWriter(factory, regex);\r\n } catch (Exception e){\r\n System.err.println(\"Failed to load writer class \"+writer+\", skipping.\");\r\n }\r\n }", "public static ISWFWriterFactory getSWFWriterFactory(File sizeReport)\n {\n if (sizeReport != null)\n return new SWFWriterFactory(sizeReport);\n\n return SWFWriter.DEFAULT_SWF_WRITER_FACTORY;\n }", "public static Factory factory() {\n return Document_print::new;\n }", "GramaticaFactory getGramaticaFactory();", "public static FASTAWriterFactory[] getRegisteredWriters(){\r\n return (FASTAWriterFactory[])writers.values().toArray(new FASTAWriterFactory[0]);\r\n }", "ASAFactory getASAFactory();", "public AoDai chooseFactory(){\n\t\treturn new ModernAoDai();\n\t}", "public FastaReader getFasta() {\n\t\tif (fasta == null) {\n\t\t\tString defaultFasta = SnpomicsEngine.getProperty(\"default.fasta\");\n\t\t\tif (defaultFasta != null)\n\t\t\t\tfasta = new FastaReader(new File(defaultFasta));\n\t\t}\n\t\treturn fasta;\n\t}", "TransformFactory getFactory();", "public Factory getFactory()\r\n {\r\n if( m_factory != null ) return m_factory;\r\n m_factory = FactoryHelper.narrow( m_primary );\r\n return m_factory;\r\n }", "public IndexWriter getIndexWriter(boolean create) throws IOException {\n // Followed online tutorial\n if(indexWriter == null) {\n try {\n // Make sure and store to /var/lib/lucene/ per the spec\n Directory indexDir = FSDirectory.open(new File(\"/var/lib/lucene/index1\"));\n IndexWriterConfig config = new IndexWriterConfig(Version.LUCENE_4_10_2, new StandardAnalyzer());\n indexWriter = new IndexWriter(indexDir, config);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return indexWriter;\n }", "public interface AprioriCorpusFactory {\n \n /**\n * Initializes and populates an a priori index with documents whos text is known to be correct.\n *\n * @param dictionary dictionary to extract data from.\n * @param suggester suggester used to navigate the dictionary.\n * @param aprioriIndex lucene index, will be created/reinitialized.\n * @param aprioriIndexField index field used to store the a priori text.\n * @param aprioriAnalyzer analyzer used to tokenize a priori text.\n * @throws IOException\n * @throws QueryException\n */\n public abstract void factory(Dictionary dictionary, Suggester suggester, IndexFacade aprioriIndex, String aprioriIndexField, Analyzer aprioriAnalyzer, IndexWriter.MaxFieldLength mfl) throws IOException, QueryException;\n \n }", "Factory getFactory()\n {\n return configfile.factory;\n }", "SchemaBuilder withFactory(String factoryClassName);", "DocumentationFactory getDocumentationFactory();", "private IndexWriter getIndexWriter() throws IOException {\n\n\t\tAnalyzer a = getAnaLyzer();\n\n\t\tif (idxWriter == null) {\n\n\t\t\tindexPath = this.analyzer + \" index-directory\";\n\t\t\tDirectory indexDir = FSDirectory.open(Paths.get(indexPath));\n\t\t\tIndexWriterConfig config = new IndexWriterConfig(a);\n\n\t\t\tconfig.setOpenMode(OpenMode.CREATE);\n\n\t\t\tidxWriter = new IndexWriter(indexDir, config);\n\t\t}\n\n\t\treturn idxWriter;\n\t}", "public interface IOFactory {\r\n /**\r\n * Creates a {@link ProfileReader} for the given {@link InputStream}.\r\n * @param stream the stream to be read.\r\n * @return the created {@link ProfileReader}.\r\n */\r\n public abstract ProfileReader createProfilerReader(InputStream stream);\r\n \r\n /**\r\n * Creates a {@link ProfileWriter} for the given {@link OutputStream}.\r\n * @param stream the stream to be written to.\r\n * @return the created {@link ProfileWriter}.\r\n */\r\n public abstract ProfileWriter createProfileWriter(OutputStream stream);\r\n \r\n /**\r\n * Creates a {@link MergeFileReader} for the given {@link InputStream}.\r\n * @param stream the stream to be read.\r\n * @return the created {@link MergeFileReader}.\r\n */\r\n public abstract MergeFileReader createMergeReader(InputStream stream);\r\n \r\n /**\r\n * Creates a {@link MergeFileWriter} for the given {@link OutputStream}.\r\n * @param stream the stream to be written.\r\n * @return the created {@link MergeFileWriter}.\r\n */\r\n public abstract MergeFileWriter createMergeWriter(OutputStream stream);\r\n \r\n /**\r\n * Creates a {@link MergeFileReader} simulating an empty merge file.\r\n * @return the created {@link MergeFileReader}.\r\n */\r\n public abstract MergeFileReader createEmptyMergeReader();\r\n}", "public static Factory factory() {\n return text::new;\n }", "public ObjectifyFactory factory() {\n return ofy().factory();\n }", "PlanningFactory getFactory();", "public static final DocumentBuilderFactory getFactory() {\r\n if (documentFactory == null) {\r\n documentFactory = DocumentBuilderFactory.newInstance();\r\n }\r\n\r\n return documentFactory;\r\n }", "public static OutputFactory getOutputFactory() {\n\n return m_OutputFactory;\n\n }", "public SearcherTaxonomyManager(\n IndexWriter writer, SearcherFactory searcherFactory, DirectoryTaxonomyWriter taxoWriter)\n throws IOException {\n this(writer, true, searcherFactory, taxoWriter);\n }", "protected IndexWriter getWriter(boolean wipeIndex) throws IOException {\n Directory dir = FSDirectory.open(Paths.get(indexFolder));\n Analyzer analyzer = new StandardAnalyzer();\n IndexWriterConfig iwc = new IndexWriterConfig(analyzer);\n\n if (wipeIndex) {\n iwc.setOpenMode(OpenMode.CREATE);\n } else {\n iwc.setOpenMode(OpenMode.CREATE_OR_APPEND);\n }\n\n IndexWriter writer = new IndexWriter(dir, iwc);\n return writer;\n }", "private Writer createSequenceFileWriter(File outputPath) throws Exception {\n Configuration conf = new Configuration();\n org.apache.hadoop.fs.Path path = new org.apache.hadoop.fs.Path(outputPath.getAbsolutePath());\n\n CompressionCodec codec = getCompressionCodec();\n Writer.Option optPath = Writer.file(path);\n Writer.Option optKey = Writer.keyClass(keyConverter.getClassName());\n Writer.Option optValue = Writer.valueClass(valueConverter.getClassName());\n Writer.Option optCom = Writer.compression(compressionType, codec);\n\n return createWriter(conf, optPath, optKey, optValue, optCom);\n }", "SerializeFactory getSerializeFactory();", "public static Factory factory() {\n return ext_accdt::new;\n }", "public static FileWriter getWriter() {\n return new CsvFileWriter();\n }", "public static XmlCodecFactory getInstance() {\n return factory;\n }", "public static TokenizerFactory<Word> factory()\n/* */ {\n/* 111 */ return new ArabicTokenizerFactory(false);\n/* */ }", "public interface AbstractFactory {\n Bmw produceBmw();\n Benz produceBenz();\n}", "public static SerializerFactory getInstance() {\r\n return INSTANCE;\r\n }", "public static Factory factory() {\n return ext_dbf::new;\n }", "private AccessorFactory() {\n\n\t\tCoreConfig cc = CoreConfig.getInstance();\n\t\tString defaultName = cc.getString(\"builder.default\",CoreConstants.BUILDER_HBASE);\n\t\tdefaultBuilder = defaultName;\n\n\t\tfor (int i = 0; i < 20; i++) {\n\n\t\t\tString builderClass = cc.getString(BUILDER_PREFIX + i);\n\t\t\t\n\t\t\tif(StringUtils.isBlank(builderClass))\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\ttry {\n\t\t\t\tClass<?> builderClazz = getClass().getClassLoader().loadClass(builderClass);\n\n\t\t\t\tAccessorBuilder hbaseBuilder = (AccessorBuilder) builderClazz.newInstance();\n\n\t\t\t\tbuilderMap.put(hbaseBuilder.getBuilderName(), hbaseBuilder);\n\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\tLOGGER.error(\"class:{} is not found.\", builderClass);\n\t\t\t} catch (InstantiationException e) {\n\t\t\t\tLOGGER.error(\"class:{} error in instantiation.\", builderClass);\n\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\tLOGGER.error(\"class:{} be illegal accessed.\", builderClass);\n\t\t\t}\n\n\t\t}\n\n\t\tappendMapping(CoreConstants.BUILDER_HBASE, \"com/obal/meta/AccessorMap.hbase.properties\");\n\n\t}", "Class<?> getFactoryClass();", "public static XMLStringWriter create() {\r\n return new XMLStringWriter(new StringWriter());\r\n }", "public IndexWriter getIndexWriter() {\n\t\ttry {\n\t\t\tcheckDirectory();\n\t\t\tcheckIndexLocking();\n\n\t\t\tboolean create = !IndexReader.indexExists(getDirectory());\n\t\t\tIndexWriter writer = new IndexWriter(getDirectory(),getAnalyzer(),create);\n\t\t\tsetIndexWriterParameters(writer);\n\t\t\treturn writer;\n\t\t} catch(IOException ex) {\n\t\t\tthrow new LuceneIndexAccessException(\"Error during creating the writer\",ex);\n\t\t}\n\t}", "public WstxOutputFactory() {\n mConfig = WriterConfig.createFullDefaults();\n }", "public static JSONWriter getInstance(){\n\t\treturn new JSONWriter();\n\t}", "public static SAXParserFactory getSAXParserFactory() {\n\t return spf;\n\t}", "CodegenFactory getCodegenFactory();", "public Writer getWriter(String cliParameter) {\n Writer writer = null;\n if(\"csv\".equals(cliParameter)){\n writer = new WriterCSV();\n }\n \n return writer;\n }", "public static SerializerFactory createFactory(Class factory, \n Class javaType, \n QName xmlType) {\n if (factory == null) {\n return null;\n }\n\n try {\n if (factory == BeanSerializerFactory.class) {\n return new BeanSerializerFactory(javaType, xmlType);\n } else if (factory == SimpleSerializerFactory.class) {\n return new SimpleSerializerFactory(javaType, xmlType);\n } else if (factory == EnumSerializerFactory.class) {\n return new EnumSerializerFactory(javaType, xmlType);\n } else if (factory == ElementSerializerFactory.class) {\n return new ElementSerializerFactory();\n } else if (factory == SimpleListSerializerFactory.class) {\n return new SimpleListSerializerFactory(javaType, xmlType);\n }\n } catch (Exception e) {\n if (log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n return null;\n }\n\n SerializerFactory sf = null;\n try {\n Method method = \n factory.getMethod(\"create\", CLASS_QNAME_CLASS);\n sf = (SerializerFactory) \n method.invoke(null, \n new Object[] {javaType, xmlType});\n } catch (NoSuchMethodException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n } catch (IllegalAccessException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n } catch (InvocationTargetException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n }\n\n if (sf == null) {\n try {\n Constructor constructor = \n factory.getConstructor(CLASS_QNAME_CLASS);\n sf = (SerializerFactory) \n constructor.newInstance(\n new Object[] {javaType, xmlType});\n } catch (NoSuchMethodException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n } catch (InstantiationException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n } catch (IllegalAccessException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n } catch (InvocationTargetException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n }\n }\n \n if (sf == null) {\n try {\n sf = (SerializerFactory) factory.newInstance();\n } catch (InstantiationException e) {\n } catch (IllegalAccessException e) {}\n }\n return sf;\n }", "public OBStoreFactory getFactory();", "public interface IOFactory {\n\n public FileIO newFile(String path);\n\n}", "public interface IMacroFactory {\n /**\n * Gets a Class of <code>GmMacro</code>.\n *\n * @return Class\n */\n Class getGmMacroClass();\n\n /**\n * Sets a <b>errorHandler</b>.\n *\n * @param errorHandler\n */\n void setErrorHandler(org.xml.sax.ErrorHandler errorHandler);\n\n /**\n * Gets a <b>errorHandler</b>.\n *\n * @return org.xml.sax.ErrorHandler\n */\n org.xml.sax.ErrorHandler getErrorHandler();\n\n /**\n * Sets a <b>entityResolver</b>.\n *\n * @param entityResolver\n */\n void setEntityResolver(org.xml.sax.EntityResolver entityResolver);\n\n /**\n * Gets a <b>entityResolver</b>.\n *\n * @return org.xml.sax.EntityResolver\n */\n org.xml.sax.EntityResolver getEntityResolver();\n\n /**\n * Sets a <b>baseUri</b>.\n *\n * @param baseUri\n */\n void setBaseUri(String baseUri);\n\n /**\n * Gets a <b>baseUri</b>.\n *\n * @return String\n */\n String getBaseUri();\n\n /**\n * Creates a <code>Object</code> by the File <code>file</code>.\n *\n * @param file\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return Object\n */\n Object create(File file) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>Object</code> by the String representation of URI <code>uri</code>.\n *\n * @param uri\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return Object\n */\n Object create(String uri) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>Object</code> by the URL <code>url</code>.\n *\n * @param url\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return Object\n */\n Object create(URL url) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>Object</code> by the InputStream <code>in</code>.\n *\n * @param in\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return Object\n */\n Object create(InputStream in) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>Object</code> by the InputSource <code>is</code>.\n *\n * @param is\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return Object\n */\n Object create(InputSource is) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>Object</code> by the Reader <code>reader</code>.\n *\n * @param reader\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return Object\n */\n Object create(Reader reader) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>Object</code> by the Object <code>source</code>.\n *\n * @param source\n * @return Object\n */\n Object create(Object source);\n\n /**\n * Creates a <code>Object</code> by the Document <code>dom</code>.\n *\n * @param doc\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return Object\n */\n Object create(Document doc) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>Object</code> by the Element <code>element</code>.\n *\n * @param element\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return Object\n */\n Object create(Element element) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>GmMacro</code> by the File <code>file</code>.\n *\n * @param file\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return GmMacro\n */\n GmMacro createGmMacro(File file) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>GmMacro</code>\n * by the String representation of URI <code>uri</code>.\n *\n * @param uri\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return GmMacro\n */\n GmMacro createGmMacro(String uri) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>GmMacro</code> by the URL <code>url</code>.\n *\n * @param url\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return GmMacro\n */\n GmMacro createGmMacro(URL url) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>GmMacro</code> by the InputStream <code>in</code>.\n *\n * @param in\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return GmMacro\n */\n GmMacro createGmMacro(InputStream in) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>GmMacro</code> by the InputSource <code>is</code>.\n *\n * @param is\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return GmMacro\n */\n GmMacro createGmMacro(InputSource is) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>GmMacro</code> by the Reader <code>reader</code>.\n *\n * @param reader\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return GmMacro\n */\n GmMacro createGmMacro(Reader reader) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>GmMacro</code>.\n *\n * @return GmMacro\n */\n GmMacro createGmMacro();\n\n /**\n * Creates a <code>GmMacro</code> by the GmMacro <code>source</code>.\n *\n * @param source\n * @return GmMacro\n */\n GmMacro createGmMacro(GmMacro source);\n\n /**\n * Creates a <code>GmMacro</code> by the Document <code>doc</code>.\n *\n * @param doc\n * @return GmMacro\n */\n GmMacro createGmMacro(Document doc);\n\n /**\n * Creates a <code>GmMacro</code> by the Element <code>element</code>.\n *\n * @param element\n * @return GmMacro\n */\n GmMacro createGmMacro(Element element);\n\n /**\n * Creates a <code>GmMacro</code> by the Stack <code>stack</code>.\n * This mehtod is supposed to be used internally\n * by the Relaxer system.\n *\n * @param stack\n * @return GmMacro\n */\n GmMacro createGmMacro(RStack stack);\n}", "public org.linphone.mediastream.Factory getMediastreamerFactory();", "public interface BuilderAndTesterFactory {\n\tpublic DirectoryFinder getDirectoryFinder();\n\t\n\t/**\n\t * Create a Builder for a ProjectSubmission.\n\t * \n\t * @param projectSubmission the ProjectSubmission to build\n\t * @return a Builder which can build the ProjectSubmission\n\t * @throws BuilderException\n\t * @throws MissingConfigurationPropertyException\n\t */\n\tpublic Builder createBuilder(ProjectSubmission projectSubmission)\n\t\t\tthrows BuilderException, MissingConfigurationPropertyException, ZipExtractorException;\n\t\n\t/**\n\t * Create a Tester for a ProjectSubmission.\n\t * \n\t * @param haveSecurityPolicyFile true if there is a security.policy file\n\t * @param projectSubmission the ProjectSubmission to test\n\t * @return a Tester which can test the ProjectSubmission\n\t * @throws MissingConfigurationPropertyException\n\t */\n\tpublic Tester createTester(boolean haveSecurityPolicyFile, ProjectSubmission projectSubmission)\n\t\t\tthrows MissingConfigurationPropertyException;\n}", "protected static final TransformerFactory getTransformerFactory() {\r\n if (transformerFactory == null) {\r\n try {\r\n transformerFactory = TransformerFactory.newInstance();\r\n } catch (final TransformerFactoryConfigurationError tfce) {\r\n logB.error(\"XmlFactory.getTransformerFactory : failure on TransformerFactory initialisation : \", tfce);\r\n }\r\n }\r\n\r\n return transformerFactory;\r\n }", "public XMLInputFactory newXMLInputFactory()\n {\n return XMLInputFactory.newFactory();\n }", "public interface Factory {\n LeiFeng createLeiFeng();\n}", "public abstract void factory(Dictionary dictionary, Suggester suggester, IndexFacade aprioriIndex, String aprioriIndexField, Analyzer aprioriAnalyzer, IndexWriter.MaxFieldLength mfl) throws IOException, QueryException;", "private PrintWriter getWriter(String signature) throws IOException {\n\n\tFile f = signature2file.get(signature);\n\n\tif (f == null) {\n\n\t throw new IllegalStateException(\"Supposed to have file name for \"\n\t\t + signature + \", but don't???\");\n\t}\n\n\t// Create a FileWriter with 'append'\n\treturn new PrintWriter(new FileWriter(f, true));\n }", "public Writer getWritier(String writerType) {\n if (writerType == null) {\n return null;\n }\n if (writerType.equalsIgnoreCase(CSV)) {\n return new CSVWriter();\n }\n return null;\n }", "public static synchronized ANSSRegionsFactory getFactory() {\n return getFactory(true);\n }", "private static KeyStrokeMapProvider getGenerator() {\n if (generator == null) {\n try {\n String gname =\n System.getProperty(\"abbot.keystroke_map_generator\",\n \"abbot.tester.KeyStrokeMap\");\n if (gname != null) {\n generator = (KeyStrokeMapProvider)\n Class.forName(gname).newInstance();\n }\n }\n catch(Exception e) {\n Log.warn(e);\n }\n }\n return generator;\n }", "public StyleAbstractFactory getStyleFactory() {\r\n\t\t// Leggo da file esterno quale Factory utilizzare\r\n String stile = ULeggiDaFile.getStileInterfaccia();\r\n // Factory da restituire\r\n StyleAbstractFactory styleAbstractFactory;\r\n switch (stile) {\r\n\t\tcase \"light\":\r\n\t\t\tstyleAbstractFactory = LightStyleFactory.getInstance();\r\n\t\t\tbreak; \r\n\t\tcase \"dark\":\r\n\t\t\tstyleAbstractFactory = DarkStyleFactory.getInstance();\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\t// Di default fornisco la factory \"light\"\r\n\t\t\tstyleAbstractFactory = LightStyleFactory.getInstance();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn styleAbstractFactory;\r\n\t}", "public static DocumentUploader createDocumentUploader() {\n\t\tDocumentUploader documentUploader = TextFormsProperties.getDocumentUploader();\n\t\tif (documentUploader != null) {\n\t\t\ttry {\n\t\t\t\t//create instance of currently selected UploadDocument class\n\t\t\t\treturn documentUploader.getClass().newInstance();\n\t\t\t} \n\t\t\tcatch (InstantiationException ex) {\n\t\t\t\tLOG.error(\"InstantiationException: %s\", ex);\n\t\t\t} \n\t\t\tcatch (IllegalAccessException ex) {\n\t\t\t\tLOG.error(\"IllegalAccessException: %s\", ex);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public static XSLTTransformerFactory getInstance() {\r\n\t\treturn transformerFactory;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tprivate synchronized RecordWriter getRecordWriter(\r\n\t\t\tTaskAttemptContext taskContext, String baseFileName) \r\n\t\t\t\t\tthrows IOException, InterruptedException {\r\n\r\n\t\t// look for record-writer in the cache\r\n\t\tRecordWriter writer = recordWriters.get(baseFileName);\r\n\r\n\t\t// If not in cache, create a new one\r\n\t\tif (writer == null) {\r\n\t\t\t// get the record writer from context output format\r\n\t\t\tMultiFileOutputFormat.setOutputName(taskContext, baseFileName);\r\n\t\t\ttry {\r\n\t\t\t\twriter = ((OutputFormat) ReflectionUtils.newInstance(\r\n\t\t\t\t\t\ttaskContext.getOutputFormatClass(), taskContext.getConfiguration()))\r\n\t\t\t\t\t\t.getRecordWriter(taskContext);\r\n\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\tthrow new IOException(e);\r\n\t\t\t}\r\n\r\n\t\t\t// add the record-writer to the cache\r\n\t\t\trecordWriters.put(baseFileName, writer);\r\n\t\t}\r\n\t\treturn writer;\r\n\t}", "private HFile.Writer getNewWriter(final HFile.Writer writer,\n final Path familydir)\n throws IOException {\n close(writer);\n return new HFile.Writer(fs, StoreFile.getUniqueFile(fs, familydir),\n blocksize, compression, KeyValue.KEY_COMPARATOR);\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate static XmlEntityObjectFactory getFactory() {\n\t\tif (factory == null) {\n\t\t\tfactory = new XmlEntityObjectFactory();\n\t\t\ttry {\n\t\t\t\tClass<IXmlEntityResolverLoader> loaderClass = (Class<IXmlEntityResolverLoader>) Class\n\t\t\t\t\t\t.forName(defaulEntityResolverLoaderClassName);\n\t\t\t\tIXmlEntityResolverLoader loader;\n\t\t\t\tloader = loaderClass.newInstance();\n\t\t\t\tloader.loadTo(factory);\n\t\t\t} catch (Exception ex) {\n\t\t\t\tthrow new UnexpectedRuntimeException(ex);\n\t\t\t}\n\t\t}\n\t\treturn factory;\n\t}", "SemanticFactory getSemanticFactory();", "public static QuizFactory getFactoryInstance(){\n\t\tif (defQuizFactory == null)\n\t\t\tdefQuizFactory = new DefaultQuizFactory();\n\t\t\n\t\treturn defQuizFactory;\n\t}", "static DataFrameFactory factory() {\n return DataFrameFactory.getInstance();\n }", "public void convert() throws IOException\n\t{\n\t\t// Build chain of readers.\n\t\tFileReader fr = new FileReader(fastq);\n\t\tBufferedReader br = new BufferedReader(fr);\n\t\tFastqReader fqr = new FastqReader(br);\n\n\t\t// Build chain of writers.\n\t\tFileWriter fw = new FileWriter(fasta);\n\t\tPrintWriter pw = new PrintWriter(fw);\n\t\tFastaWriter faw = new FastaWriter(pw);\n\t\t\n\t\t// Read each fastq record until end of fastq file is reached; for valid records w/ unique \n\t\t// defline and enough quality, create a fasta record \n\t\t\n\t\tHashSet<String> hSet = new HashSet<String>();\n\t\tFastqRecord checker;\n\t\tboolean done = false;\n\t\t\n\t\twhile (!done)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\twhile ((checker = fqr.readRecord()) != null) // Read fastq record till end of file reached \n\t\t\t\t{\n\t\t\t\t\tboolean add = hSet.add(checker.getDefline());\n\t\t\t\t\t// If quality is proper and you can add checker to the hashSet, write to the fasta record \n\t\t\t\t\tif ((checker.qualityIsHigh()) && add)\n\t\t\t\t\t{\n\t\t\t\t\t\tFastaRecord theAns = new FastaRecord(checker);\n\t\t\t\t\t\tfaw.writeRecord(theAns);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdone = true;\n\t\t\t}\n\t\t\tcatch(RecordFormatException r) {\n\t\t\t\t// Don't do anything if record not valid \n\t\t\t}\n\t\t}\n\t\t\n\t\t// Closes fr, br, fw, and pw in reverse order of creation.\n\t\tpw.close();\n\t\tfw.close();\n\t\tbr.close();\n\t\tfr.close();\n\t}", "public Writer getWriter ()\n {\n\tif (myWriter == null)\n\t{\n\t myWriter = new MyWriter ();\n\t}\n\n\treturn myWriter;\n }", "public interface SerializerFactory<T> {\n\t\n\t/** the method creates a new MessageSerializer.\n\t * \n\t * @return new object that implements the MessageSerializer interface. \n\t */\n MessageSerializer<T> create();\n}", "public static DAOFactory getDAOFactory(\n int whichFactory) {\n\n switch (whichFactory) {\n case XML:\n return new XmlDAOFactory();\n case MySQL:\n return new MySqlDAOFactory();\n default:\n return null;\n }\n }", "Sticker.Factory getStickerFactory();", "public static Factory factory() {\n return ext_h::new;\n }", "private Formatter makeFormatter(String formatterName) {\r\n Class c = null;\r\n Formatter f = null;\r\n\r\n try {\r\n c = Class.forName(formatterName);\r\n f = (Formatter) c.newInstance();\r\n } catch (Exception e) {\r\n f = new SimpleFormatter();\r\n }\r\n return f;\r\n }", "public static Writer writerCreator(String iFile, String config) throws IOException\n\t{\n\t\tWriter writer = new BufferedWriter(\n\t\t\t\tnew OutputStreamWriter(new FileOutputStream(iFile), UTF8));\n\t\twriter.write(config);\n\t\treturn writer;\n\t}", "public Writer openWriter() throws IOException {\n return new FileWriter(this);\n }", "public static GeoCoderInterface createGeoCoder(){\n\t\tif (Config.default_geo_api.equals(OSM)){\n\t\t\t//TODO: implement\n\t\t\tDebugger.println(\"GeoFactory - unknown GeoCoderInterface: \" + Config.default_geo_api, 1);\n\t\t\treturn null;\n\t\t}else if (Config.default_geo_api.equals(GOOGLE)){\n\t\t\treturn new GeoCoderGoogle();\n\t\t}else if (Config.default_geo_api.equals(GRAPHHOPPER)){\n\t\t\treturn new GeoCoderGraphhopper();\n\t\t}else{\n\t\t\tDebugger.println(\"GeoFactory - unknown GeoCoderInterface: \" + Config.default_geo_api, 1);\n\t\t\treturn null;\n\t\t}\n\t}", "protected synchronized WriterPoolMember makeNewWriterIfAppropriate() {\n\t long now = System.currentTimeMillis();\n\t lastWriterNeededTime = now; \n if(currentActive < maxActive) {\n currentActive++;\n lastWriterRolloverTime = now; \n return makeWriter(); \n }\n return null; \n }", "Factory<? extends T> buildPersonFactory(String type);", "protected NbaLogger getLogger() {\n\t\tif (logger == null) {\n\t\t\ttry {\n\t\t\t\tlogger = NbaLogFactory.getLogger(this.getClass());\n\t\t\t} catch (Exception e) {\n\t\t\t\tNbaBootLogger.log(this.getClass().getName() + \" could not get a logger from the factory.\");\n\t\t\t\te.printStackTrace(System.out);\n\t\t\t}\n\t\t}\n\t\treturn logger;\n\t}", "public static BusquedaMaker getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new BusquedaMaker();\n\t\t}\n\n\t\treturn instance;\n\t}", "@Deprecated\n\t public CqlFlinkRecordWriter getRecordWriter(org.apache.hadoop.fs.FileSystem filesystem, org.apache.hadoop.mapred.JobConf job, String name, org.apache.hadoop.util.Progressable progress) throws IOException\n\t {\n\t return new CqlFlinkRecordWriter(job, progress);\n\t }", "public static StringDescriptionWriter stringWriter() {\n return new StringDescriptionWriter();\n }", "public static String getFactoryName() {\n\n return FACTORY_CLASS.getName();\n }", "public static AttributeFactory newAttributeFactory() {\n\t\treturn newAttributeFactory(random());\n\t}", "public interface TempFileManagerFactory {\n\n\t\tpublic TempFileManager create();\n\t}", "AtomFactory getAtomFactory();", "public static GseqFactory init() {\n\t\ttry {\n\t\t\tGseqFactory theGseqFactory = (GseqFactory)EPackage.Registry.INSTANCE.getEFactory(GseqPackage.eNS_URI);\n\t\t\tif (theGseqFactory != null) {\n\t\t\t\treturn theGseqFactory;\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 GseqFactoryImpl();\n\t}", "TransformationFactory getTransformationFactory();", "protected Object buildFactory() throws DescriptorException {\n if (this.getFactoryClass() == null) {\n return null;\n }\n\n // If there is a factory class specified but no factory method name,\n // instantiate the factory using the default constructor\n if (this.getFactoryMethodName() == null) {\n return this.buildFactoryUsingDefaultConstructor();\n }\n\n // If both the factory class and the factory method name have been specified,\n // instantiate the factory by invoking the static factory method\n return this.buildFactoryUsingStaticMethod();\n }", "public SearcherTaxonomyManager(\n IndexWriter writer,\n boolean applyAllDeletes,\n SearcherFactory searcherFactory,\n DirectoryTaxonomyWriter taxoWriter)\n throws IOException {\n if (searcherFactory == null) {\n searcherFactory = new SearcherFactory();\n }\n this.searcherFactory = searcherFactory;\n this.taxoWriter = taxoWriter;\n DirectoryTaxonomyReader taxoReader = new DirectoryTaxonomyReader(taxoWriter);\n current =\n new SearcherAndTaxonomy(\n SearcherManager.getSearcher(\n searcherFactory, DirectoryReader.open(writer, applyAllDeletes, false), null),\n taxoReader);\n this.taxoEpoch = taxoWriter.getTaxonomyEpoch();\n }", "public static StaticFactoryInsteadOfConstructors getInstance(Object optionalParameters){\n return new StaticFactoryInsteadOfConstructors();\n }", "public Mapper newInstance() {\n Mapper mapper;\n\n mapper = new Mapper(name, parser.newInstance(), oag.newInstance());\n mapper.setLogging(logParsing, logAttribution);\n return mapper;\n }", "public abstract AbstractLineWriter newWriter(String filename)\r\n\t\t\tthrows FileNotFoundException, IOException;", "protected static final SchemaFactory getSchemaFactory() {\r\n if (schemaFactory == null) {\r\n\r\n // 1. Lookup a factory for the W3C XML Schema language\r\n schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);\r\n\r\n // 2. Set the custom XML catalog resolver :\r\n schemaFactory.setResourceResolver(CustomXmlCatalogResolver.getInstance());\r\n }\r\n\r\n return schemaFactory;\r\n }", "UsageevolutionFactory getUsageevolutionFactory();", "public static JsonWriter newWriter(Writer writer) {\n if (provider == JsonProvider.UNKNOWN) {\n init();\n }\n return provider.newWriter(writer);\n }" ]
[ "0.75494844", "0.61863285", "0.61625415", "0.5787723", "0.57695127", "0.5762683", "0.55918425", "0.5586374", "0.55822784", "0.55238944", "0.5507426", "0.53591704", "0.5344908", "0.52628297", "0.5260005", "0.52305216", "0.5220771", "0.52133286", "0.52126604", "0.51588404", "0.5153181", "0.51518905", "0.5151335", "0.5144948", "0.5138125", "0.51315325", "0.51094824", "0.5085983", "0.5082386", "0.5076724", "0.5059847", "0.5050865", "0.5038291", "0.5024673", "0.500334", "0.49868962", "0.4976749", "0.4962793", "0.4960623", "0.49470484", "0.4942699", "0.49275005", "0.49246845", "0.49005938", "0.48780093", "0.4872808", "0.48563784", "0.4855521", "0.48496154", "0.48485145", "0.4845514", "0.4840764", "0.48390827", "0.4825604", "0.48243126", "0.4822205", "0.48051083", "0.476478", "0.4763078", "0.47485828", "0.47440246", "0.47246152", "0.4723494", "0.47148255", "0.47084326", "0.4707232", "0.4705703", "0.4698893", "0.46931154", "0.46878874", "0.4678271", "0.46701282", "0.4668708", "0.46656168", "0.46610728", "0.46511778", "0.46370274", "0.46325767", "0.46197945", "0.46152827", "0.46072224", "0.46071362", "0.45909607", "0.45816237", "0.4577717", "0.4575357", "0.45656985", "0.45649138", "0.4564089", "0.45639482", "0.4559874", "0.45535025", "0.45419687", "0.45386246", "0.45363188", "0.45353898", "0.4534616", "0.45342425", "0.4531714", "0.45315236" ]
0.79608464
0
Public constructor, automatically sets up buffered IO.
public AbstractFASTAWriter(String fileName) { try { this.fileName = fileName; fileWriter = new FileWriter(fileName, true); } catch (Exception e) { throw new RuntimeException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BaseServerInputStream() {\n data = new ArrayDeque<IoBuffer>();\n marked = false;\n resetCache = null;\n }", "@Override\n public void construct() throws IOException {\n \n }", "public FileIOManager() {\n\t\tthis.reader = new Reader(this);\n\t\tthis.writer = new Writer(this);\n\t}", "public JS_IO() {\n init();\n }", "private BufferUtil() {\n\n }", "public TestBuffer() {\n }", "public PacketInputStream ()\n {\n _buffer = ByteBuffer.allocate(INITIAL_BUFFER_CAPACITY);\n }", "public StreamReader() {}", "public FileInputTools(SharedBuffer buffer, int bufferInputFileLength) throws Exception {\r\n\t\tsuper (buffer);\r\n\t\tthis.reset();\r\n\t\tthis.bufferInputFileLength = bufferInputFileLength;\r\n\t\tthis.initializeStream();\r\n\t}", "public FileDecoder() {\n pathSB = new StringBuilder(100);\n }", "public void init() throws IOException;", "public void init()\r\n {\n readFile(inputFile);\r\n writeInfoFile();\r\n }", "protected FileSystem() {\n\t}", "public ResponseBuffer()\n {\n // Do nothing.\n }", "public Reader(){\n\n\t}", "@Override\n public void initialize() throws IOException {\n\n }", "private IOHandler(){\n download_queue = new ArrayList<>(); \n initialize();\n }", "public FastqReader(BufferedReader in)\n\t{\n\t\ttheBufferedReader = in;\n\t}", "protected ServletInputStream() { }", "public PipedOutputStream() {\n }", "public void initializeIOBuffers(){\n for(int i=0; i<outputBuffer.length; i++){\n outputBuffer[i] = new LinkedBlockingQueue();\n inputBuffer[i] = new LinkedBlockingQueue();\n }\n }", "public Mocket()\n throws IOException\n {\n init (null);\n }", "public FileLines() {\r\n\t}", "protected StreamParser()\n {\n }", "public FileObject() {\n\t}", "private FileUtil() {\n \t\tsuper();\n \t}", "public GameClient() {\r\n super(new Client(Config.WRITE_BUFFER_SIZE, Config.OBJECT_BUFFER_SIZE), null, null);\r\n }", "void init() throws IOException;", "void init() throws IOException;", "public BufferedFile(String filename) throws IOException {\n this(filename, \"r\", BufferedFile.DEFAULT_BUFFER_SIZE);\n }", "public FileIOManager(Conscientia conscientia) {\n\t\tthis.reader = new Reader(this);\n\t\tthis.writer = new Writer(this);\n\t\tthis.conscientia = conscientia;\n\t}", "private void initializeIOStreams() {\n try {\n inputStream = new ObjectInputStream(new BufferedInputStream(socket.getInputStream()));\n outputStream = new ObjectOutputStream(new BufferedOutputStream(socket.getOutputStream()));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public fileServer() {\n }", "private IOUtils() {\n }", "void init() throws IOException {\n\t\tif (this.type==FILE){\n\t\t\tstream.init(new FileInputStream(name));\n\t\t}\n\t\telse{\n\t\t\tURL url = new URL(name);\n\t\t\tstream.init((url.openStream()));\n\t\t}\n\t}", "private StreamFactory()\n {\n /*\n * nothing to do\n */\n }", "public BufferedReader2(Reader in)\r\n\t{\r\n\t\tsuper(in);\r\n\t}", "public BufferedReader2(Reader in, int sz)\r\n\t{\r\n\t\tsuper(in, sz);\r\n\t}", "private IOUtils() {\n\n }", "BaseReader (final String buffer, final int mode) {\n if (buffer == null) {\n return;\n }\n m_sb = new StringBuffer ();\n m_charBuf = new StringBuffer ();\n m_mode = mode;\n m_nbLines = 1;\n m_debugMode = (mode & DEBUG) == DEBUG;\n if ((mode & BUFFER) == BUFFER) {\n createFromString (buffer);\n } else {\n if ((mode & ASYNC) == ASYNC) {\n new Thread () {\n public void run () {\n openUrl (buffer);\n MiniPlayer.wakeUpCanvas();\n }\n }.start ();\n } else {\n openUrl (buffer);\n }\n }\n }", "public AncFile() {\n }", "public void init() {\n\t\ttry {\n\t\t\tthis.is = new ObjectInputStream(clientSocket.getInputStream());\n\t\t\tthis.os = new ObjectOutputStream(clientSocket.getOutputStream());\n\t\t\twhile (this.readCommand()) {}\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\tSystem.out.println(\"XX. There was a problem with the Input/Output Communication:\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public SplitFile() {\n\t}", "public TxtReader() {\n numberOfCharacters = getNumberOfCharacters();\n }", "public PajekNetReader()\n {\n this(false, false);\n }", "private IOUtils()\n {\n }", "public FileServ() {\n\t\tsuper();\n\t}", "public BiomartAccess(String fname) \n {\n m_file = new File(fname);\n }", "public BufferPool(String fileName, int numBuffers)\n throws IOException\n {\n BLOCK_SIZE = 4096;\n // create linked list of buffers, open file, create pointer tempArray\n this.pool = new LinkedList<Buffer>();\n this.buffArr = new Buffer[numBuffers];\n this.file = new RandomAccessFile(fileName, \"rw\");\n this.tempArray = new byte[BLOCK_SIZE];\n\n // initialize all the statistics to zero\n cacheHits = cacheMisses = diskReads = diskWrites = 0;\n\n Buffer newBuf;\n // initialize the appropriate number of buffers\n for (int i = 0; i < numBuffers; i++)\n {\n newBuf = new Buffer(tempArray, -1);\n pool.append(newBuf);\n buffArr[i] = newBuf;\n }\n }", "public DataRepository() throws IOException {\n\t\tthis.init();\n\t}", "private IOUtilities() {\n }", "public TestCase()\r\n {\r\n super();\r\n resetIO();\r\n }", "protected void initBuffer() throws IOException {\n if (buf != null) {\r\n Util.disposeDirectByteBuffer(buf);\r\n }\r\n // this check is overestimation:\r\n int size = bufferNumLength << Main.log2DataLength;\r\n assert (size > 0);\r\n if (Main.debug) { System.out.println(\"Allocating direct buffer of \"+bufferNumLength+\" ints.\"); }\r\n buf = ByteBuffer.allocateDirect(size).order(Main.byteOrder);\r\n buf.clear();\r\n }", "public File() {\n }", "public FileManager() {\n\t\t\n\t}", "public BufferedDataInputStream(InputStream o, int bufLength) {\n\t\tsuper(o, bufLength);\n\t}", "public void init() {\n // TODO start asynchronous download of heavy resources\n }", "public Driver() {\n setupFiles();\n }", "public ExternalFileMgrImpl()\r\n \t{\r\n \t\t\r\n \t}", "private TextReader() {\n // There are no fields required to initialize\n }", "public OutputBufferMap () {\n }", "public BufferedDataInputStream(InputStream o) {\n\t\tsuper(o, 32768);\n\t}", "public WorkDataFile()\n\t{\n\t\tsuper();\n\t}", "public FreebaseProducerImpl()\n {\n this.queue = new ArrayBlockingQueue<>(DEFAULT_QUEUE_CAPACITY);\n this.file = null;\n }", "public MainframeFile (String name, byte[] buffer)\n // ---------------------------------------------------------------------------------//\n {\n this.name = name;\n this.buffer = buffer;\n }", "abstract public Buffer createBuffer();", "public CacheFIFO()\r\n/* 16: */ {\r\n/* 17: 95 */ this(20);\r\n/* 18: */ }", "private ClinicFileLoader() {\n\t}", "public JsonDataset() {\r\n\t\tsuper();\r\n\t\tlogger.trace(\"JsonDataset() - start\");\r\n\t\tlogger.trace(\"JsonDataset() - end\");\r\n\t}", "public ProgramManager() {\n display = new DisplayManager();\n fileName = \"resources/aLargeFile\";\n try {\n fileReader = new BufferedReader(new FileReader(fileName));\n } catch (FileNotFoundException e) {\n logger.error(e.getMessage());\n }\n wordStorage = new WordStorage();\n }", "private TcpClient()\n {\n socket = null;\n writer = null;\n connected = false;\n \n connect(\"localhost\", 7778);\n }", "public TeeWriter() {\r\n ; // nothing to do\r\n }", "private ExecutableReader() {}", "public BufferedFile(File file) throws IOException {\n this(file, \"r\", BufferedFile.DEFAULT_BUFFER_SIZE);\n }", "public CBS(java.io.InputStream in) {\n this(new java.io.InputStreamReader(in));\n }", "public BufferPool(int numPages) {\n // some code goes here\n this.pageNum = numPages;\n this.bufferedPages = new ConcurrentHashMap<PageId, Node>();\n currentTransactions = new ConcurrentHashMap<TransactionId, Long>();\n lockManager = new LockManager();\n }", "public IBuffer newBuffer();", "public MyInputStream()\n {\n in = new BufferedReader\n (new InputStreamReader(System.in));\n }", "public FileObjectFactory() {\n }", "protected PicoFile(RandomAccessFile backing) throws PicoException, IOException {\n assert backing != null : \"Backing is null.\";\n _backing = backing;\n _open = true;\n _resetDigest();\n _readHeader();\n mode = \"r\";\n position(0L);\n }", "public TCPAdapter() throws IOException {\n\t\tthis(9999);\n\t}", "protected FileDepositorImpl() {\n\t}", "private FileUtility() {\r\n\t}", "public MsxReader ( ) {\r\n\t\tsuper();\r\n\t}", "public ImageIOServlet() {\n\t\tsuper();\n\t}", "public \n PipedObjectReader() \n {}", "private ConfigReader() {\r\n\t\tsuper();\r\n\t}", "public Log()\n {\n filePath = String.format(\"log-%d.sl\", System.currentTimeMillis());\n\n open();\n }", "public TaskQueue(){\n this(\n new PrintWriter(System.out, true),\n new PrintWriter(System.err, true),\n DEFAULT_CONCURRENT_ACTIONS\n );\n }", "MyInputStream(String name, InputStream in) {\n this.name = name;\n this.in = new BufferedInputStream(in);\n buffer = new StringBuffer(4096);\n Thread thr = new Thread(this);\n thr.setDaemon(true);\n thr.start();\n }", "public SerialCommFrame()\n {\n super();\n initialize();\n }", "public BufferedFile(String filename, String mode) throws IOException {\n this(filename, mode, BufferedFile.DEFAULT_BUFFER_SIZE);\n }", "private BlocksPool() {\n this(DEFAULT_BLOCK_SIZE_BYTES);\n }", "public StatDataFileReader createReaderInstance() throws IOException{\n return createReaderInstance(null);\n }", "_JavaCCLexer(java.io.InputStream in) {\n this(new java.io.InputStreamReader(in));\n }", "public BufferPool(int numPages) {\n // some code goes here\n this.numPages = numPages;\n this.bufferPool = new PageBufferPool(numPages);\n }", "@Override\n public void initialize() {\n // TODO Auto-generated method stub\n String name = (String)getConfigParameterValue(\"OutputPath\");\n File file = new File(name);\n try {\n bout = new BufferedWriter(new FileWriter(file));\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n throw new UIMARuntimeException(e);\n } catch (IOException e) {\n // TODO Auto-generated catch block\n throw new UIMARuntimeException(e);\n }\n output = new HashSet<String>();\n }", "protected StatDataFileReaderSpi() {\n }", "public FastaReader(InputStream ins) throws IOException{\n\t\tsuper(ins);\n\t}", "public void init() {\r\n\t\ttry {\r\n\t\t\tmessages = new ConcurrentLinkedDeque<>();\r\n\t\t\tout = sock.getOutputStream();\r\n\t\t\tin = sock.getInputStream();\t\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tstartMessageThread();\r\n\t}", "public BufferedIOStream(String inFileString, String ouString, int bufferSize, ArrayList<String> keywords) {\n\t\tsuper(inFileString, ouString, bufferSize, keywords);\n\t}" ]
[ "0.73676336", "0.70422137", "0.6841451", "0.6780272", "0.65986955", "0.655068", "0.65195674", "0.6333862", "0.6329219", "0.6324815", "0.6300129", "0.6269976", "0.6240602", "0.6222719", "0.6198548", "0.6186256", "0.6180021", "0.6157513", "0.6133576", "0.6122183", "0.611962", "0.6115633", "0.6096259", "0.6095237", "0.60933995", "0.6085655", "0.60807514", "0.60805815", "0.60805815", "0.6058149", "0.6055083", "0.6037223", "0.6024232", "0.6020766", "0.6015131", "0.59969544", "0.59497374", "0.59434474", "0.5943119", "0.5928682", "0.5921234", "0.59046197", "0.5898866", "0.58970606", "0.5890885", "0.5881922", "0.58817786", "0.5876226", "0.586994", "0.585471", "0.5840498", "0.5836121", "0.58349854", "0.5825317", "0.5824978", "0.5820799", "0.581637", "0.58071744", "0.5806951", "0.58031404", "0.57989097", "0.5787468", "0.57794863", "0.5776072", "0.5767118", "0.5754226", "0.5751496", "0.5749147", "0.57469755", "0.5741762", "0.57353896", "0.5733778", "0.5729943", "0.57286537", "0.5722982", "0.572017", "0.57174885", "0.5715939", "0.57156795", "0.5713664", "0.57089025", "0.5692757", "0.5678524", "0.566274", "0.5662251", "0.5655732", "0.56518906", "0.5643937", "0.5642477", "0.5638502", "0.5636798", "0.56304526", "0.5629498", "0.56117254", "0.56095815", "0.56081516", "0.5601275", "0.56009513", "0.55937785", "0.55932266", "0.55929047" ]
0.0
-1
/ Complete the 'getMaxStreaks' function below. The function is expected to return an INTEGER_ARRAY. The function accepts STRING_ARRAY toss as parameter.
public static List<Integer> getMaxStreaks(List<String> toss) { // Return an array of two integers containing the maximum streak of heads and tails respectively String last = new String(); int maxHeads = 0; int maxTails = 0; int currHeads = 0; int currTails = 0; for (int i = 0; i < toss.size(); i++) { String currString = toss.get(i); if (currString.equals("Heads")) { currHeads++; } else { currTails++; } if (!currString.equals(last) && last.length() > 0) { if (currString.equals("Tails")) { if (currHeads > maxHeads) { maxHeads = currHeads; } currHeads = 0; } if (currString.equals("Heads")) { if (currTails > maxTails) { maxTails = currTails; } currTails = 0; } } last = currString; if (i == toss.size() - 1 && currHeads > maxHeads) { maxHeads = currHeads; } if (i == toss.size() - 1 && currTails > maxTails) { maxTails = currTails; } System.out.println(i + ". currHeads = " + currHeads + ", currTails = " + currTails); } ArrayList<Integer> result = new ArrayList<>(); result.add(maxHeads); result.add(maxTails); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Streak[] findStreaks() {\n List<Streak> streaks = new LinkedList<>();\n Streak s;\n Piece[][] arrs = new Piece[4][4];\n Piece[][] diagArr = new Piece[2][4];\n int f;\n for (int row = 0; row < 4; row++) {\n f = 4 * row;\n s = Streak.gotStreak(Arrays.copyOfRange(board, f, f + 4), Streak.Orientation.HORIZONTAL, row);\n if (s != null) {\n streaks.add(s);\n }\n arrs[0][row] = board[f];\n arrs[1][row] = board[f + 1];\n arrs[2][row] = board[f + 2];\n arrs[3][row] = board[f + 3];\n\n diagArr[0][row] = board[f + row];\n diagArr[1][row] = board[4 * (3 - row) + row];\n }\n for (int col = 0; col < 4; col++) {\n s = Streak.gotStreak(arrs[col], Streak.Orientation.VERTICAL, col);\n if (s != null) {\n streaks.add(s);\n }\n }\n for (int diag = 0; diag < 2; diag++) {\n s = Streak.gotStreak(diagArr[diag], Streak.Orientation.DIAGONAL, diag);\n if (s != null) {\n streaks.add(s);\n }\n }\n Streak[] st = new Streak[streaks.size()];\n return streaks.toArray(st);\n }", "public void checkLongestStreak(){\n int max = _maxStreak;\n int streak = 1;\n if (_savedDates.size() > 1) {\n for (int i = 0; i < _savedDates.size() - 1; i++) {\n LocalDate prevDay = _savedDates.get(i).minusDays(1);\n LocalDate nextDay = _savedDates.get(i + 1);\n// Log.i(\"DailyLogFragment\", \"prevDay = \" + prevDay);\n// Log.i(\"DailyLogFragment\", \"nextDay = \" + nextDay);\n if (prevDay.compareTo(nextDay) == 0) {\n streak++;\n } else {\n if (max < streak) {\n max = streak;\n }\n streak = 1;\n }\n// Log.i(\"DailyLogFragment\", \"Looping Streak for max = \" + streak);\n }\n }\n if (max < streak){\n max = streak;\n }\n _maxStreak = max;\n// Log.i(\"DailyLogFragment\", \"Max Streak after check = \" + _maxStreak);\n }", "public static void maxStreak(int m, List<String> data) {\r\n\t\t//public static int maxStreak(int m, List<String> data) {\r\n \t\r\n\t\tint total_employees=m;\r\n\t\tint total_allPresent=0;\r\n\t\tString attendance=null;\r\n\t\t\r\n\t\tfor (int i=0;i<total_employees;i++)\r\n\t\t{\r\n\t\t\tif(attendance==null)\r\n\t\t\t{\r\n\t\t\t\tattendance=\"Y\";\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tattendance+=\"Y\";\r\n\t\t\t}\r\n\t\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tfor (int index=0;index<data.size();index++)\r\n\t\t{\r\n\t\t\tif (attendance.equalsIgnoreCase(data.get(index)))\r\n\t\t\t{\r\n\t\t\t\ttotal_allPresent++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\tSystem.out.println(\"Total Present Days :\" + Integer.toString(total_allPresent));\r\n }", "public static int longestStreak(String str) {\n\n\t\tint longest = 0;\n\t\tfor(int i = 0; i<str.length(); i++){\n\t\t\tint temp = 0;\n\t\t\tfor(int j = i; j<str.length(); j++){\n\t\t\t\tif(str.charAt(i)==str.charAt(j)) {\n\t\t\t\t\ttemp++;\n\t\t\t\t}else\n\t\t\t\t\tbreak;\n\t\t\t} if(temp>longest) longest = temp;\n\t\t}\n\n\n\n\t\treturn longest;\n\t}", "@Override\n public int[][] getStreakForMonth(CalendarDayModel day) {\n if (day.getMonth() == 7) {\n return streaks;\n }\n return new int[0][];\n }", "private Scorestreak getScorestreak(Player player) {\n Game game = Dogfight.instance.getGame(player);\n\n if (game != null) {\n return game.getScoreRegistry().getScorestreak(player);\n }\n\n return null; //No game found\n }", "@Override\n public int longestStreak(int personId) {\n\n /**\n * check the longest streak is available or not in cache memory\n */\n Integer longestStreak = (Integer) lru.get(personId + StringConstents.BADMINTON + \"LongestStreak\");\n\n /**\n * if longest streak is available in cache then just return it.\n * if not available, then if condition doesn't execute\n */\n if (longestStreak != null) {\n return longestStreak;\n }\n\n ResultSet resultSet = badmintonDao.longestStreak(personId);\n\n /**\n * use to store all dates in sorted order\n */\n SortedSet<String> days = new TreeSet<String>();\n\n try{\n while (resultSet.next()) {\n days.add(resultSet.getDate(\"day\").toString());\n }\n\n /**\n * get all the details of person in badminton table and perform operation on it.\n * To find the longest streak\n */\n longestStreak = similarRequirement.longestStreak(days);\n\n /**\n * insert into cache\n */\n lru.put(personId + StringConstents.BADMINTON + \"LongestStreak\", longestStreak);\n\n return longestStreak;\n }catch (SQLException e){\n throw new ApplicationException(500, \"Sorry, come internal error come\");\n }\n }", "public int[] longestSequence(int arrayParameter[]) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tint arrayLength=arrayParameter.length;\r\n\t\tint maxSequenceFirstIndex=0;\r\n\t\tint maxSequenceLength=0;\r\n\t\tint temperarySequenceLength=1;\r\n\t\tint arrayFirstIndex;\r\n\t\tint arrayLastIndex;\r\n\t\tint maxSequenceIndex;\r\n\t\tfor(arrayFirstIndex=0,arrayLastIndex=0;arrayLastIndex<(arrayLength-1);arrayLastIndex++){\r\n\t\t\tif(arrayParameter[arrayLastIndex]<arrayParameter[arrayLastIndex+1]){\r\n\t\t\t\ttemperarySequenceLength++;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t\tif(temperarySequenceLength>maxSequenceLength){\r\n\t\t\t\t\t\tmaxSequenceLength=temperarySequenceLength;\r\n\t\t\t\t\t\ttemperarySequenceLength=1;\r\n\t\t\t\t\t\tmaxSequenceFirstIndex=arrayFirstIndex;\r\n\t\t\t\t\t\tarrayFirstIndex=arrayLastIndex+1;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\ttemperarySequenceLength=1;\r\n\t\t\t\t\t\tarrayFirstIndex=arrayLastIndex+1;\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(temperarySequenceLength>maxSequenceLength){\r\n\t\t\tmaxSequenceLength=temperarySequenceLength;\r\n\t\t\tmaxSequenceFirstIndex=arrayFirstIndex;\r\n\t\t}\r\n\t\tint temeraryArrayIndex=0;\r\n\t\tint temperaryArray[]=new int[maxSequenceLength];\r\n\t\tfor(maxSequenceIndex=maxSequenceFirstIndex;maxSequenceIndex<(maxSequenceFirstIndex+maxSequenceLength);maxSequenceIndex++){\r\n\t\t\ttemperaryArray[temeraryArrayIndex]=arrayParameter[maxSequenceIndex];\r\n\t\t\ttemeraryArrayIndex++;\r\n\t\t}\r\n\t\treturn temperaryArray;\r\n\t}", "public int wiggleMaxLength(int[] nums) {\n if (nums.length == 0) return 0;\n int[] up = new int[nums.length];\n int[] down = new int[nums.length];\n\n up[0] = 1;\n down[0] = 1;\n\n for (int i = 1; i < nums.length; i++) {\n if (nums[i] > nums[i - 1]) {\n up[i] = down[i - 1] + 1;\n down[i] = down[i - 1];\n } else if (nums[i] < nums[ i - 1]) {\n down[i] = up[i - 1] + 1;\n up[i] = up[i - 1];\n } else {\n down[i] = down[i - 1];\n up[i] = up[i - 1];\n }\n }\n return Math.max(down[nums.length - 1], up[nums.length - 1]);\n }", "public int findMaxLength(int[] nums) {\n int[] arr = new int[2*nums.length+1];\n Arrays.fill(arr, -2);\n arr[nums.length] = -1;\n int max = 0;\n int count=0;\n for(int i=0;i<nums.length;i++){\n count += (nums[i]==0?-1:1);\n if(arr[count+nums.length]>=-1){\n max = Math.max(max,i-arr[count+nums.length]);\n }else{\n arr[count+nums.length]= i;\n }\n }\n return max;\n }", "public String solution(int[] T) {\n \n if(T==null || T.length==0 || T.length%4!=0)\n return \"Invalid Input\";\n \n //List of seasons\n List<String> seasons = Arrays.asList(\"WINTER\",\"SPRING\",\"SUMMER\",\"AUTUM\");\n \n int daysInSeason = T.length/4;\n \n String maxAmplitudeSeason = \"\";\n int maxAmplitude = Integer.MIN_VALUE;\n for(int i=0;i<seasons.size();i++){\n \n String curSeason = seasons.get(i);\n int curMax = Integer.MIN_VALUE;\n int curMin = Integer.MAX_VALUE;\n System.out.println(i*daysInSeason + \" -- \" + ((i*daysInSeason) + daysInSeason));\n for(int j=i*daysInSeason;j<(i*daysInSeason)+daysInSeason;j++){\n \n curMax = Math.max(curMax,T[j]);\n curMin = Math.min(curMin,T[j]);\n \n }\n \n if(maxAmplitude<(curMax-curMin)){\n maxAmplitude = curMax-curMin;\n maxAmplitudeSeason = curSeason;\n }\n }\n \n return maxAmplitudeSeason;\n\n }", "private int getMax(int[] times) {\n\n\t\t//Initially set max to the first value\n\t\tint max = times[0];\n\n\t\t//Loop through all times in the array\n\t\tfor (int i = 0; i < times.length; i++) {\n\n\t\t\t//Find max\n\t\t\tif (times[i]>max) {\n\n\t\t\t\t//Update max\n\t\t\t\tmax = times[i];\n\t\t\t}\n\t\t}\n\n\t\treturn max;\n\t\t//Print the max time to the console\n\n\t}", "public int findMaxLength2222(int[] nums) {\n if(nums == null) return 0;\n int currCount = 0, prevCount = 0, max = 0;\n for (int i = 0; i < nums.length; ) { // important not to increase i here, as we do it inside the loop\n int j = i + 1;\n currCount = 1;\n for (; j < nums.length && nums[j] == nums[i]; j++)\n currCount++;\n max = Math.max(max, Math.min(currCount, prevCount));\n prevCount = currCount;\n i = j;\n }\n\n return max * 2;\n }", "public void findHighestConsecutive(){\r\n\r\n int maxSame = 1;\r\n int tempSame = 1;\r\n\r\n int testArr[] = getIntArr();\r\n\r\n for(int i = 0; i < testArr.length; i++){\r\n\r\n for(int j = i + 1; j < testArr.length; j++){\r\n if(testArr[i] == testArr[j]){\r\n tempSame++;\r\n }\r\n }\r\n if(tempSame > maxSame) {\r\n maxSame = tempSame;\r\n }\r\n\r\n tempSame = 1;\r\n }\r\n\r\n setHighestConsecutive(maxSame);\r\n }", "private static ArrayList<Integer> findMaximumUnsortedSubArray(int[] input) {\n ArrayList<Integer> result = new ArrayList<>();\n int previous = -1;\n int left = -1;\n int right = -1;\n boolean failed = false;\n int minimumAfterFailure = Integer.MAX_VALUE;\n int maximumAfterFailure = Integer.MIN_VALUE;\n for(int i=0;i<input.length;i++) {\n if(input[i] < previous && !failed) {\n failed = true;\n minimumAfterFailure = input[i];\n maximumAfterFailure = input[i-1];\n right = i;\n continue;\n }\n if(input[i] < maximumAfterFailure) {\n right = i;\n } else {\n maximumAfterFailure = input[i];\n }\n if(input[i] < minimumAfterFailure) {\n minimumAfterFailure = input[i];\n }\n previous = input[i];\n }\n if(failed) {\n for(int i=0;i<input.length;i++) {\n if(input[i] > minimumAfterFailure) {\n left = i;\n break;\n }\n }\n result.add(left);\n result.add(right);\n }\n return result;\n }", "public static int[] solution(String[] genres, int[] plays) {\n\t\tint[] answer = {};\n\t\tMap<String, Integer> total = new HashMap<>();\n\n\t\tfor (int i = 0; i < genres.length; i++) {\n\t\t\ttotal.put(genres[i], total.getOrDefault((genres[i]), 0) + plays[i]);\n\t\t}\n\n\t\tList<String> list = new ArrayList<>(total.keySet());\n\t\tCollections.sort(list, (o1, o2) -> total.get(o2).compareTo(total.get(o1)));\n\n\t\t\n\t\tList<Integer> answerList = new ArrayList<>();\n\t\tfor (String str : list) {\n\t\t\tint[] play = new int[2];\n\t\t\tint maxIdx = -1;\n\t\t\tint secondIdx = -1;\n\t\t\tint maxValue = 0;\n\t\t\tint secondValue = 0;\n\t\t\tfor (int i = 0; i < plays.length; i++) {\n\t\t\t\tif (genres[i].equals(str)) {\n\t\t\t\t\tif (secondValue < plays[i] && plays[i] <= maxValue) {\n\t\t\t\t\t\tsecondValue = plays[i];\n\t\t\t\t\t\tsecondIdx = i;\n\t\t\t\t\t} \n\t\t\t\t\telse if (maxValue < plays[i]) {\n\t\t\t\t\t\tsecondValue = maxValue;\n\t\t\t\t\t\tsecondIdx = maxIdx;\n\t\t\t\t\t\tmaxIdx = i;\n\t\t\t\t\t\tmaxValue = plays[i];\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tanswerList.add(maxIdx);\n\t\t\tif(secondValue != 0)\n\t\t\t\tanswerList.add(secondIdx);\n\t\t\t\n\t\t}\n\t\t\n\t\tanswer = new int[answerList.size()];\n\t\tint index = 0;\n\t\tfor(int i : answerList)\n\t\t\tanswer[index++] = i;\n\t\treturn answer;\n\t}", "public int arrayNesting(int[] nums) {\n int res = 0;\n\n for (int i = 0; i < nums.length; i++) {\n int cur = 0;\n int j = i;\n while (nums[j] != Integer.MAX_VALUE) {\n int temp = nums[j];\n nums[j] = Integer.MAX_VALUE;\n j = temp;\n cur++;\n }\n res = Math.max(cur, res);\n }\n return res;\n }", "public int longestConsecutive(int[] nums) {\n\t\tif (nums == null || nums.length == 0){\n\t\t\treturn 0;\n\t\t}\n\t\tMap<Integer, Integer> map = new HashMap<>();\n\t\tint max = 0;\n\t\tfor (int num : nums){\n\t\t\tif (!map.containsKey(num)){\n\t\t\t\tint left = map.getOrDefault(num - 1, 0);\n\t\t\t\tint right = map.getOrDefault(num + 1, 0);\n\t\t\t\tint sum = left + right + 1;\n\t\t\t\tmap.put(num, sum);\n\t\t\t\tmax = Math.max(sum, max);\n\t\t\t\tmap.put(num - left, sum);\n\t\t\t\tmap.put(num + right, sum);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\treturn max;\n\t\t}\n\t\t\t\n\t}", "public Integer[] getTeamSizeArray() {\n Integer numOfStudentsInATeam[];\n int numOfStudents = ProjectManager.studentsNotInATeam.size();\n int numOfTempTeams = numOfStudents / 4;\n int numOfExtraStudents = numOfStudents % 4; // extra students\n int i;\n if (numOfExtraStudents == 0) {\n numOfStudentsInATeam = new Integer[numOfTempTeams];\n } else {\n numOfStudentsInATeam = new Integer[numOfTempTeams + 1];\n }\n\n if (numOfExtraStudents == 3) {\n\n for (i = 0; i < numOfTempTeams; i++) {\n numOfStudentsInATeam[i] = 4;\n }\n numOfStudentsInATeam[i] = 3;\n } else if (numOfExtraStudents == 2) {\n\n for (i = 0; i < numOfTempTeams; i++) {\n numOfStudentsInATeam[i] = 4;\n }\n numOfStudentsInATeam[i] = 2;\n } else if (numOfExtraStudents == 1) {\n\n for (i = 0; i < numOfTempTeams - 1; i++) {\n numOfStudentsInATeam[i] = 4;\n }\n numOfStudentsInATeam[i] = 3;\n numOfStudentsInATeam[i + 1] = 2;\n } else {\n for (i = 0; i < numOfTempTeams; i++) {\n numOfStudentsInATeam[i] = 4;\n }\n }\n return numOfStudentsInATeam;\n }", "@Override\n public int latestStreak(int personId) {\n /**\n * check the latest streak is available in cache or not\n */\n Integer latestStreak = (Integer) lru.get(personId + StringConstents.BADMINTON + \"LatestStreak\");\n\n /**\n * if latest streak is available in cache, then just return it.\n * if not available, then if condition doesn't execute\n */\n if(latestStreak != null) {\n return latestStreak;\n }\n\n ResultSet resultSet = badmintonDao.longestStreak(personId);\n\n /**\n * use to store all dates in sorted order\n */\n SortedSet<String> days = new TreeSet<String>();\n\n try {\n /**\n * get all the details of person in badminton table and perform operation on it.\n * To find the longest streak\n */\n while (resultSet.next()) {\n days.add(resultSet.getDate(\"day\").toString());\n }\n latestStreak = similarRequirement.latestStreak(days);\n\n /**\n * insert into cache\n */\n lru.put(personId + StringConstents.BADMINTON + \"LatestStreak\", latestStreak);\n return latestStreak;\n }catch (SQLException e) {\n throw new ApplicationException(500,\"Sorry, some internal error comes\");\n }\n }", "public static void main(String[] args) {\n\n\tint[] nums = { 1, 4, 2, 1, 4, 1, 4 };\n\n\tSystem.out.println(maxSpan(nums));\n\n }", "public int findMaxLength(int[] nums) {\n if(nums == null) return 0;\n int max = 0;\n List<Integer> counts = new ArrayList<>();\n for (int i = 0; i < nums.length; ) { // important not to increase i here, as we do it inside the loop\n int j = i + 1;\n int count = 1;\n for (; j < nums.length && nums[j] == nums[i]; j++)\n count++;\n counts.add(count);\n i = j;\n }\n\n for (int i = 0; i < counts.size() - 1; i++) {\n max = Math.max(max, Math.min(counts.get(i), counts.get(i + 1)));\n }\n\n return max * 2;\n }", "public static int[] findLargestGap() {\n int[] gapIndex = new int[2];\n int lastMaxGap = 0, highestGapIndex = 0, lowestGapIndex = 0;\n\n for (int i = 0; i < movieTheater.length; i++) {\n if (movieTheater[i]) {\n lowestGapIndex = i + 1;\n highestGapIndex = 0;\n } else highestGapIndex += 1;\n\n if (highestGapIndex > lastMaxGap) {\n lastMaxGap = highestGapIndex;\n gapIndex[0] = lowestGapIndex;\n gapIndex[1] = i;\n }\n }\n\n return gapIndex;\n }", "private static int[] findGreatestNumInArray(int[] array) {\r\n\t\tint maxValue = Integer.MIN_VALUE;\r\n \r\n\t\tint secondValue = Integer.MIN_VALUE;\r\n\t\t\r\n\t\tint thirdValue = Integer.MIN_VALUE;\r\n\t\t\r\n\t int[] result = new int[2];\r\n\t \r\n\t int[] result2 = new int[3];\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tif (array[i] > maxValue) {\r\n\t\t\t\tthirdValue = secondValue;\r\n\t\t\t\tsecondValue = maxValue;\r\n\t\t\t\tmaxValue = array[i];\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse if(array[i]>secondValue)\r\n\t\t\t{\r\n\t\t\t\tsecondValue = array[i];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if(array[i]>thirdValue)\r\n\t\t\t{\r\n\t\t\t\tthirdValue = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\tallowResult( result,maxValue,secondValue);\r\n\t\t\r\n\t\tallowResult( result2,maxValue,secondValue,thirdValue);\r\n\t\t//return maxValue;\r\n\t\treturn result2;\r\n\t}", "public int[] maxSlidingWindow(int[] nums, int k) {\n if (nums.length == 0)\n return nums;\n \n int[] output = new int[nums.length-k+1];\n \n for (int i=0; i+k-1 < nums.length; i++) {\n int max = nums[i];\n for (int j=1; j<k; j++) {\n if (nums[i+j] > max)\n max = nums[i+j];\n }\n output[i] = max;\n }\n \n return output;\n }", "public String largestTimeFromDigits(int[] arr) {\n int[] temp = new int[4];\n boolean[] mark = new boolean[4];\n search(temp, mark, arr, 0);\n return result == null ? \"\" : result;\n }", "public int findMaxConsecutiveOnes(int[] nums) {\n int maxLen = 0;\n int i = 0, j = 0;\n while (j < nums.length) {\n if (nums[j] != 1) {\n maxLen = Math.max(maxLen, j - i);\n i = j + 1;\n }\n j++;\n }\n maxLen = Math.max(maxLen, j - i);\n return maxLen;\n }", "public void streakCounter(int cMove)\r\n { \r\n switch (Win)\r\n {case 1:\r\n case 2:\r\n case 3:\r\n tieStreak++;\r\n uStreak=0;\r\n cStreak=0;\r\n break;\r\n case 4:\r\n case 5:\r\n case 6:\r\n tieStreak=0;\r\n uStreak++;\r\n cStreak=0;\r\n break;\r\n case 7:\r\n case 8:\r\n case 9:\r\n tieStreak=0;\r\n uStreak=0;\r\n cStreak++;\r\n break;\r\n }\r\n \r\n switch (cMove)\r\n {case 1:\r\n cMovStreak[0]++;\r\n cMovStreak[1]=0;\r\n cMovStreak[2]=0;\r\n break;\r\n case 2:\r\n cMovStreak[0]=0;\r\n cMovStreak[1]++;\r\n cMovStreak[2]=0;\r\n break;\r\n case 3:\r\n cMovStreak[0]=0;\r\n cMovStreak[1]=0;\r\n cMovStreak[2]++;\r\n break; \r\n }\r\n }", "public static int LIS(int[] A) {\n // TODO\n if(A.length == 0){\n return 0;\n }\n int[] DP = new int[A.length];\n for(int i = 0; i < A.length; i++){\n DP[i] = -1;\n }\n int max = 1;\n for(int j = A.length - 1; j >= 0; j--){\n int length = LIShelper(A,j,DP);\n if (length > max){\n max = length;\n }\n }\n return max;\n }", "public int longestConsecutive(int[] num) {\r\n\r\n Set<Integer> set = new HashSet<Integer>();\r\n for (int i : num) {\r\n set.add(i);\r\n }\r\n\r\n int max = 0;\r\n for (int curt : num) {\r\n\r\n int left = curt - 1;\r\n int right = curt + 1;\r\n int count = 1;\r\n\r\n while (set.contains(left)) {\r\n set.remove(left); // save some time, will TLE if not remove this\r\n left--;\r\n count++;\r\n }\r\n\r\n while (set.contains(right)) {\r\n set.remove(right);\r\n right++;\r\n count++;\r\n }\r\n\r\n if (count > max) {\r\n max = count;\r\n }\r\n }\r\n\r\n return max;\r\n }", "@Test\r\n\tvoid testWordLengthsTallyHandout() {\n\t\tString input[] = Main.TEXT_LIST;\r\n\t\tint expected[] = {0, 9, 25, 42, 43, 26, 13, 11, 4, 2, 3, 1 };\r\n\r\n\t\t// Use assertEquals to compare arrays\r\n\t\tassertArrayEquals(expected, Main.wordLengthsTally(input) );\r\n\r\n\t}", "public static int MaxRun(String userInput){\n\t\tint maxRun = 1;\r\n\t\tint currentRun = 0;\r\n\t\tchar lastLetter = userInput.charAt( 0 );\r\n\t\t\r\n\t\tfor (int count = 0; count < userInput.length(); count++){\r\n\t\t\t//loop that loops until each character in string is done.\r\n\t\t\t\r\n\t\t\tif (lastLetter == userInput.charAt(count)){\r\n\t\t\t\t//adds one more number to the current run.\r\n\t\t\t\tcurrentRun++;\r\n\t\t\t\t//System.out.println(\"current run: \" + currentRun);\r\n\t\t\t\tif (currentRun > maxRun){\r\n\t\t\t\t\t//if the current count is higher than the max, it's the new max.\r\n\t\t\t\t\tmaxRun = currentRun;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t\r\n\t\t\t\t//if the last letter was different than this one, reset currentRun to 1.\r\n\t\t\t\tcurrentRun = 1;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//makes the current letter the new last letter before re-looping.\r\n\t\t\tlastLetter = userInput.charAt(count);\r\n\r\n\t\t}\r\n\t\t\r\n\t\treturn maxRun;\r\n\t}", "public int maxLength(List<String> arr) {\n\n List<String> results = new ArrayList<>();\n\n results.add(\"\");\n\n for (String word : arr) {\n if (!isValid(word)) continue;\n\n List<String> tempResults = new ArrayList<>();\n for (String result : results) {\n String candidate = result + word;\n if (isValid(candidate)) tempResults.add(candidate);\n }\n results.addAll(tempResults);\n }\n\n String result = results.stream().max(Comparator.comparingInt(String::length)).orElse(\"\");\n\n return result.length();\n }", "public static String maxWeather(int[] array, String[]a) {\n String day=\" \";\n int max = array[0];//set int to array[0] because could be more or less than 0 but the first number in array is largest for now\n //finding max value in the array that will be plugged in when we use this method\n for (int i = 1; i < array.length; i++) {//start loop at 0 because array also start at 0, not super necessary here because already at 0 so here we'll do = to 1\n if (array[i] > max) { // when put i in loop, linking it to loop, this will check every index 1st to end\n max = array[i]; //can't just do return max here because haven't checked the rest so return outside the loop\n day = a[i];\n }\n }return day+ \" at \"+max+\".\"; //returns a string\n }", "public int maxSubArray(int[] nums) {\n int maxNow = Integer.MIN_VALUE, maxEnd = 0;\n for (int i = 0; i < nums.length; i++) {\n maxEnd = maxEnd + nums[i];\n if (maxNow < maxEnd) {\n maxNow = maxEnd;\n }\n if (maxEnd < 0) {\n maxEnd = 0;\n }\n }\n return maxNow;\n\n }", "public int maxEvents(int[] arrival, int[] duration) {\n int[][] events = new int[arrival.length][2];\n for (int i = 0; i < arrival.length; i++) {\n events[i] = new int[] {arrival[i], arrival[i] + duration[i]};\n }\n\n // events = [[1, 3], [3, 5], [3, 4], [5, 7], [7, 8]]\n // use start as a sweep line, from left to right\n // 1. create arrays to record all start points, and ends points\n // 2. sort starts and ends \n // 3. sweep starts and ends from left to right\n // time: O(nlogn), space: O(n)\n\n int[] starts = new int[events.length];\n int[] ends = new int[events.length];\n for (int i = 0; i < events.length; i++) {\n starts[i] = events[i][0];\n ends[i] = events[i][1];\n }\n\n Arrays.sort(starts);\n Arrays.sort(ends);\n\n int results = 0;\n int end = 0;\n for (int i = 0; i < events.length; i++) {\n if (starts[i] < ends[end]) {\n results++;\n } else {\n end++;\n }\n }\n return results;\n}", "private int[] numberOfLines(int[] widths, String S) {\n int linesCount = 0;\n int wordCount = 0;\n\n for(char character: S.toCharArray()){\n int index = character - 97;\n int wordLength = widths[index];\n if(wordCount + wordLength <= 100){\n wordCount+=wordLength;\n } else {\n linesCount++;\n wordCount = wordLength;\n }\n }\n\n if(wordCount > 0){\n linesCount++;\n }\n return new int[]{linesCount, wordCount};\n }", "public void testScoreboardCaseFour () throws Exception {\n \n // RunID TeamID Prob Time Result\n \n String [] runsData = {\n\n \"1,1,A,1,No\", //20\n \"2,1,A,3,Yes\", //3 (first yes counts Minutes only)\n \"3,1,A,5,No\", //20\n \"4,1,A,7,Yes\", //20 \n \"5,1,A,9,No\", //20\n \n \"6,1,B,11,No\", //20 (all runs count)\n \"7,1,B,13,No\", //20 (all runs count)\n \n \"8,2,A,30,Yes\", //30\n \n \"9,2,B,35,No\", //20 (all runs count)\n \"10,2,B,40,No\", //20 (all runs count)\n \"11,2,B,45,No\", //20 (all runs count)\n \"12,2,B,50,No\", //20 (all runs count)\n \"13,2,B,55,No\", //20 (all runs count)\n\n };\n \n // Rank TeamId Solved Penalty\n \n String [] rankData = {\n \"1,team1,1,23\",\n \"2,team2,1,30\"\n };\n \n // TODO when SA supports count all runs, replace rankData\n \n /**\n * Case 4 tests when all runs are counted, the current SA\n * does not support this scoring method. The commented\n * rankData is the proper results\n */\n \n// Team 1 -- 123 <-- Team 1 is winning again\n// Team 2 -- 130\n \n// String [] rankData = {\n// \"1,team1,1,123\",\n// \"2,team2,1,130\"\n// };\n \n scoreboardTest (2, runsData, rankData);\n }", "static List<Integer> getMax(int[] arr, int len){\n\t\tList<Integer> res = new ArrayList<>();\n\t\tif(arr == null || arr.length == 0 || len == 0){\n\t\t\treturn res;\n\t\t}\n\t\tif(arr.length <= len){\n\t\t\tres.add(getMax(arr, 0, arr.length-1));\n\t\t\treturn res;\n\t\t}\n\t\tint i =0, j = len-1, max = 0;\n\t\twhile(j < arr.length){\n\t\t\tif(max == 0){\n\t\t\t\tmax = getMax(arr, i, j);\n\t\t\t\tres.add(max);\n\t\t\t}\n\t\t\telse if(arr[j] > max){\n\t\t\t\tmax = arr[j];\n\t\t\t\tres.add(max);\n\t\t\t}\n\t\t\telse if(arr[i] == max){\n\t\t\t\tres.add(max);\n\t\t\t\tmax = 0;\n\t\t\t}else{\n\t\t\t\tres.add(max);\n\t\t\t}\n\t\t\ti++;\n\t\t\tj++;\n\t\t}\n\t\treturn res;\n\t}", "void findLeadrsInArray2(int[] a){\n\t\tint n = a.length;\n\t\tSystem.out.println(a[n-1]);\n\t\tint max = a[n-1];\n\t\tfor(int i = n-2; i>=0 ; i--){\n\t\t\tif(a[i] < max){\n\t\t\t\tmax = a[i];\n\t\t\t\tSystem.out.println(a[i]);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "public int wiggleMaxLength3(int[] nums) {\n if(nums == null || nums.length == 0){\n return 0;\n } else if(nums.length == 1){\n \treturn 1;\n }\n \n int len = nums.length;\n int[] tempNums = new int[len - 1];\n int maxLen = 0;\n int preFlag = 0;\n \n for(int i = 0; i < len - 1; i++){\n if(nums[i] - nums[i + 1] > 0){\n tempNums[i] = 1;\n } else if(nums[i] - nums[i + 1] < 0){\n tempNums[i] = -1;\n } else {\n tempNums[i] = 0;\n }\n }\n \n for(int i = 0; i < len - 1; i++){\n \tif(tempNums[i] != 0){\n \t\tif(preFlag == 0){\n \t\t\tpreFlag = tempNums[i];\n \t\t\tmaxLen++;\n \t\t} else if(preFlag * tempNums[i] == -1){\n \t\t\tpreFlag = tempNums[i];\n \t\t\tmaxLen++;\n \t\t} \t\t\n \t}\n }\n \n return maxLen + 1;\n }", "private String findMaximumValidTime1(int a, int b, int c, int d) {\n int[] arr = {a,b,c,d};\n int maxHr = -1;\n int hr_i = 0, hr_j = 0;\n\n //Find maximum HR\n for(int i=0; i < arr.length; i++){\n for(int j=i+1; j < arr.length; j++){\n int value1 = arr[i] * 10 + arr[j];\n int value2 = arr[j] * 10 + arr[i];\n if(value1 < 24 && value2 < 24){\n if(value1 > value2 && value1 > maxHr) {\n maxHr = value1;\n hr_i = i;\n hr_j = j;\n }else if(value2 > value1 && value2 > maxHr){\n maxHr = value2;\n hr_i = i;\n hr_j = j;\n }\n }else if(value1 < 24 && value2 > 24 && value1 > maxHr){\n maxHr = value1;\n hr_i = i;\n hr_j = j;\n }else if(value2 < 24 && value1 > 24 && value2 > maxHr){\n maxHr = value2;\n hr_i = i;\n hr_j = j;\n }\n\n }\n }\n System.out.println(maxHr);\n\n //Find maximum MM\n int[] mArr = new int[2]; //minutes array\n int k=0;\n for(int i=0; i < arr.length; i++){\n if(i != hr_i && i != hr_j){\n mArr[k++] = arr[i];\n }\n }\n\n System.out.println(Arrays.toString(mArr));\n int maxMin = -1;\n int val1 = mArr[0] * 10 + mArr[1];\n int val2 = mArr[1] * 10 + mArr[0];\n\n if(val1 < 60 && val2 < 60){\n maxMin = Math.max(val1,val2);\n }else if(val1 < 60 && val2 > 60) {\n maxMin = val1;\n }else if(val2 < 60 && val1 > 60){\n maxMin = val2;\n }\n System.out.println(maxMin);\n\n //Create answer\n StringBuilder sb = new StringBuilder();\n if(maxHr == -1 || maxMin == -1){\n return \"Not Possible\";\n }\n\n if(Integer.toString(maxHr).length() < 2){ //HR\n sb.append(\"0\"+maxHr+\":\");\n }else {\n sb.append(maxHr+\":\");\n }\n\n if(Integer.toString(maxMin).length() < 2){ //MM\n sb.append(\"0\"+maxMin);\n }else {\n sb.append(maxMin);\n }\n\n return sb.toString();\n }", "public static int[] calculateScores(String[] resultsToCheck)\n\t{\n\t\tint[] scores = new int[entrants.length];\n\t\t//results = checkResults(preResults);\n\t\tfor(int i = 0; i < resultsToCheck.length; i++)\n\t\t{\n\t\t\tif(!resultsToCheck[i].equals(\"\"))\n\t\t\t{\n\t\t\t\t//for each player\n\t\t\t\tfor(int j = 0; j < entrants.length; j++)\n\t\t\t\t{\n\t\t\t\t\t//if the player's pick for the match is equal to the result\n\t\t\t\t\tif(allPicks.get(j)[i].equals(resultsToCheck[i]))\n\t\t\t\t\t{\n\t\t\t\t\t\t//increase their points by the value of the match\n\t\t\t\t\t\tscores[j] += values[i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn scores;\n\t}", "private int findLongestConsecutiveSequence(int[] nums) {\r\n\t\tif(nums.length == 0)\r\n\t\t\treturn 0;\r\n\t\tArrays.sort(nums);\r\n\t\tint index = 0, count = 1, max = 0;\r\n\t\twhile(index < nums.length-1) {\r\n\t\t\tif(nums[index+1] - nums[index] == 1)\r\n\t\t\t\tcount++;\r\n\t\t\tmax = Math.max(max,count);\r\n\t\t\tindex++;\r\n\t\t}\r\n\t\treturn max;\r\n\t}", "public static int maxLength(String arr[])\n {\n int maxL = 0;\n for (String s:arr) {\n if(s.length()>maxL){\n maxL=s.length();\n }\n }\n return maxL;\n }", "public int maxEnvelopes(int[][] envelopes){\n int n = envelopes.length;\n if(n == 0)return 0;\n Arrays.sort(envelopes, new Comparator<int[]>() {\n @Override\n public int compare(int[] o1, int[] o2) {\n if(o1[0] == o2[0]){\n return o2[1] - o1[1];\n }else {\n return o1[0] - o2[0];\n }\n }\n });\n int len = 0;\n int[] tail = new int[n];\n for (int[] envelop : envelopes){\n int index = Arrays.binarySearch(tail, 0, len, envelop[1]);\n if(index < 0){\n index = -(index + 1);\n }\n tail[index] = envelop[1];\n if(index == len){\n len++;\n }\n }\n return len;\n }", "public static int findMax(int[] a) {\r\n int max = a[0];\r\n\r\n //10th error , n = 1\r\n for (int n = 1; n < a.length; n++) {\r\n if (a[n] > max) {\r\n max = a[n];\r\n }\r\n }\r\n return max;\r\n\r\n }", "private static Hand getStreak(List<Card> cards, int length, Rank prev) {\n List<Card> streak = new ArrayList<Card>();\n\n for (int i = 0; i < cards.size()-1; i++) {\n if (prev != null && cards.get(i).isSameRank(prev)) {\n continue;\n }\n\n Card next = cards.get(i+1);\n\n if (cards.get(i).isSameRank(next)) {\n if (streak.isEmpty()) {\n streak.add(cards.get(i));\n }\n\n streak.add(next);\n } else {\n streak.clear();\n }\n\n if (streak.size() == length) {\n Hand hand = new Hand();\n\n hand.setHandStreak(length);\n\n hand.addAll(streak);\n\n\n for (Card card : cards) {\n if (hand.getCards().size() == 5) {\n break;\n }\n\n if (! streak.contains(card)) {\n if (prev == null || !card.isSameRank(prev)) {\n hand.add(card);\n }\n }\n }\n\n return hand;\n }\n }\n\n return null;\n }", "Integer getMaximumResults();", "int getMaxCount();", "int getMaxCount();", "public int[] maxSlidingWindow(int[] nums, int k) {\n if (nums == null || k <= 0) {\n return new int[0];\n }\n int len = nums.length;\n int []res=new int[len-k+1];\n int ri = 0;\n Deque<Integer> map= new ArrayDeque();\n for(int i=0;i<len;i++){\n // remove numbers out of range k\n if (map.size()>0 && map.peek() < i - k + 1) {\n map.poll();\n }\n // remove smaller numbers in k range as they are useless\n while(map.size()>0 && nums[map.peekLast()]<nums[i]){\n map.pollLast();\n }\n map.offerLast(i);\n if(i+1>=k){\n res[ri++]=nums[map.peek()];\n }\n }\n return res;\n }", "private int findMaxEvents(List<List<double[]>> timeLevel) {\n int max = 0;\n\n for(List<double[]> locations : timeLevel) {\n if (locations.size() > max) {\n max = locations.size();\n }\n }\n\n return max;\n }", "public int[] zeroMax(int[] nums) {\n int max = 0;\n for (int i = nums.length - 1; i >= 0 ;i--){\n if(nums[i] > max && nums[i] % 2 !=0){\n max = nums[i];\n }\n if(nums[i] == 0){\n nums[i] = max;\n }\n }\n return nums;\n }", "public ArrayList<Integer> getWeeksIndexWithMaxSales(){\n\t\tArrayList<Integer> maxWeeks = new ArrayList<>();\n\t\tint max = this.weeklySoldItems.get(0);\n\t\t\n\t\tfor(int i = 0; i < this.weeklySoldItems.size(); i++)\n\t\t\tif(this.weeklySoldItems.get(i) > max)\n\t\t\t\tmaxWeeks.add(i);\n\t\t\n\t\treturn maxWeeks;\n\t}", "public static int longestConsecutive(int[] num) {\n \tArrays.sort(num);\n \tint len=num.length;\n \tif(len<=0) return 0;\n \tint count=1;\n \tint max=1;\n \tfor(int i=1;i<len;i++){\n \t\tif(num[i]-num[i-1]==1){\n \t\t\tcount++;\n \t\t}\n \t\telse{\n \t\t\tcount=1;\n \t\t}\n \t\tif(count>max){\n \t\t\tmax=count;\n \t\t}\n \t}\n \treturn max;\n }", "public void testScoreboardCaseTwo () throws Exception{\n \n // RunID TeamID Prob Time Result\n \n String [] runsData = {\n \"1,1,A,1,No\", // 20\n \"2,1,A,3,Yes\", // 3 (Minute points for 1st Yes count)\n \"3,1,A,5,No\", // 20 (a No on a solved problem)\n \"4,1,A,7,Yes\", // zero (only \"No's\" count)\n \"5,1,A,9,No\", // 20 (another No on the solved problem)\n \n \"6,1,B,11,No\", // zero (problem has not been solved)\n \"7,1,B,13,No\", // zero (problem has not been solved)\n \n \"8,2,A,30,Yes\", // 30 (Minute points for 1st Yes)\n \n \"9,2,B,35,No\", // zero -- not solved\n \"10,2,B,40,No\", // zero -- not solved\n \"11,2,B,45,No\", // zero -- not solved\n \"12,2,B,50,No\", // zero -- not solved\n \"13,2,B,55,No\", // zero -- not solved\n };\n \n\n // Rank TeamId Solved Penalty\n \n String [] rankData = {\n \"1,team1,1,23\",\n \"2,team2,1,30\",\n };\n \n // TODO when SA supports count all runs, replace rankData\n \n /**\n * Case 2 tests when all no runs are counted, the current SA\n * does not support this scoring method. The commented\n * rankData is the proper results\n */\n\n// Team 2 -- 30 <-- Team 2 is now winning with a lower score \n// Team 1 -- 63 (same database; different scoring method)\n \n// String [] rankData = {\n// \"1,team2,1,30\",\n// \"2,team1,1,63\",\n// };\n \n \n scoreboardTest (2, runsData, rankData);\n \n }", "@Override\r\n public String[] getResult(){\n int max = Collections.max(user_input.values());\r\n //iterate the inputs and find the players who matches\r\n List<String> winners = new ArrayList<>();\r\n for (Entry<String, Integer> entry : user_input.entrySet()) {\r\n if (entry.getValue()==max) {\r\n winners.add(entry.getKey());\r\n }\r\n }\r\n return Arrays.copyOf(winners.toArray(), winners.size(), String[].class);\r\n }", "public static int[] maxSlidingWindow(int[] nums, int k) {\n if (nums == null || k <= 0) {\n return new int[0];\n }\n int[] result = new int[nums.length-k+1];\n int resultIndex = 0;\n // store index\n Deque<Integer> queue = new LinkedList<>();\n for (int index = 0; index < nums.length; index++) {\n // remove numbers out of range k\n while (!queue.isEmpty() && queue.peek() < index - k + 1) {\n queue.poll();\n }\n // remove smaller numbers in k range as they are useless\n while (!queue.isEmpty() && nums[queue.peekLast()] < nums[index]) {\n queue.pollLast();\n }\n // q contains index... r contains content\n queue.offer(index);\n if (index >= k - 1) {\n result[resultIndex++] = nums[queue.peek()];\n }\n }\n return result;\n }", "public int findMaxWaveHeight(int[] arr)\n\t{\n\t\tint size = arr.length;\n\t\tint waveCount = 1;\n\t\tint maxWaveCount = 1;\n\t\tBoolean flag = false;\n\t\tBoolean negativeFlag = false;\n\t\t\n\t\t//3 Conditions\n\t\t// 1. All nos are positive\n\t\t// 2. All nos are negative\n\t\t// 3. Combination of both\n\t\tfor(int i =0; i< size-1 ; i++)\n\t\t{\n\t\t\tif(arr[i+1] > arr[i]) // {-5,-4,-3,2,-1, 0 ,1,2,3,5,6};\n\t\t\t{\n\t\t\t\tif(negativeFlag == true)\n\t\t\t\t{\n\t\t\t\t\twaveCount = 1;\n\t\t\t\t\tnegativeFlag = false;\n\t\t\t\t}\n\t\t\t\tflag = true; //Wave should always be increasing first then decreasing\n\t\t\t\twaveCount++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//The wave cannot be started with decreasing notation. That's why\n\t\t\t\t// boolean has been used.\n\t\t\t\tif(flag == true)\n\t\t\t\t{\n\t\t\t\t\twaveCount++;\n\t\t\t\t\tnegativeFlag = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(waveCount > maxWaveCount)\n\t\t\t\tmaxWaveCount = waveCount;\n\t\t}\n\t\treturn maxWaveCount;\n\t}", "public static void main(String[] args) throws Exception {\n Scanner scn = new Scanner(System.in);\n \n int n = scn.nextInt();\n int[] arr = new int[n];\n \n for(int i=0; i<n;i++){\n arr[i] = scn.nextInt();\n }\n \n \n int ans = maxOfArray(arr,0,0);\n System.out.println(ans);\n }", "private static String largestNumber(String[] a) {\n String result = \"\";\n\n List<String> strArr = new ArrayList<>(Arrays.asList(a));\n\n// Collections.sort(strArr, Collections.reverseOrder());\n\n int longestNumberLength = 0;\n for (int i = 0; i < strArr.size(); i++) {\n if (strArr.get(i).length() > longestNumberLength) {\n longestNumberLength = strArr.get(i).length();\n }\n }\n\n int nDigit = 0;\n int maxNDigit = 0;\n int maxFirstDigit = 0;\n int maxSecondDigit = 0;\n int maxThirdDigit = 0;\n int maxFourthDigit = 0;\n int maxFifthDigit = 0;\n for (int i = 0; i < strArr.size(); i++) {\n if (strArr.get(i).length() >= nDigit + 1 && (strArr.get(i).charAt(nDigit) - '0') > maxNDigit) {\n maxNDigit = strArr.get(i).charAt(nDigit) - '0';\n }\n }\n\n List<String> maxNDigitNumbers = new ArrayList<>();\n\n for (int i = 0; i < strArr.size(); i++) {\n if (strArr.get(i).length() >= nDigit + 1 && (strArr.get(i).charAt(nDigit) - '0') == maxNDigit) {\n maxNDigitNumbers.add(strArr.get(i));\n }\n }\n\n\n// for (String s : maxNDigitNumbers) {\n// result = new StringBuilder().append(result).append(s).toString();\n// }\n\n return result;\n }", "public static int bigStraightYahtzee(int... result) {\n\n Arrays.sort(result);\n\n int[] uniqueValues = IntStream.of(result).distinct().sorted().toArray();\n long noUniqVals = IntStream.of(uniqueValues).distinct().count();\n int score = 0;\n\n if (noUniqVals >= 5) {\n ArrayList<int[]> matchArrays = new ArrayList<>();\n matchArrays.add(new int[]{1, 2, 3, 4, 5});\n matchArrays.add(new int[]{2, 3, 4, 5, 6});\n\n ArrayList<int[]> resultSubArrays = new ArrayList<>();\n for (int i = 0; i < noUniqVals - 4; i++) {\n resultSubArrays.add(Arrays.copyOfRange(uniqueValues, i, i + 5));\n }\n\n for (int[] arr : resultSubArrays) {\n for (int[] match : matchArrays) {\n if (Arrays.equals(arr, match)) {\n score = 40;\n }\n\n }\n }\n }\n return score;\n }", "public static int getMax(int[] scores) {\r\n\t\r\n\t\tint temp = scores[0];\r\n\t\tfor(int i = 1; i < scores.length; ++i) {\r\n\t\t\r\n\t\t\tif (scores[i] > temp) {\r\n\t\t\t\ttemp = scores[i];\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn temp;\r\n\t\r\n\t}", "public int findTargetSubWays(int [] nums, int s){\n\t\tint count = 0;\n\t\treturn count;\n\t}", "public static int getMax(int[] inputArray){ \n int maxValue = inputArray[0]; \n for(int i=1;i < inputArray.length;i++){ \n if(inputArray[i] > maxValue){ \n maxValue = inputArray[i]; \n } \n } \n return maxValue; \n }", "public int videoStitching(int[][] clips, int t) {\n if (clips == null || clips.length == 0) return -1;\n if (t <= 0) return t < 0 ? -1 : 0;\n int n = clips.length;\n\n // int[] dp = new int[t + 1];\n int maxEnd = 0;\n TreeMap<Integer, Integer> startPos = new TreeMap<>();\n TreeMap<Integer, Integer> endPos = new TreeMap<>();\n for (int i = 0; i < n; ++i) {\n int[] clip = clips[i];\n addPos(clips, startPos, i, true);\n addPos(clips, endPos, i, false);\n if (maxEnd < clip[1]) {\n maxEnd = clip[1];\n }\n // Set<Integer> set1 = endPos.computeIfAbsent(clip[1], e -> new TreeSet<>());\n // set1.add(len);\n }\n if (!startPos.containsKey(0) || t > maxEnd) return -1;\n int start = 0;\n int end = t;\n Set<Integer> selectedClip = new HashSet<>();\n while (start < end) {\n NavigableMap<Integer, Integer> headMap = startPos.headMap(start, true);\n if (headMap.size() == 0) return -1;\n start = searchMaxLen(headMap, clips, true, selectedClip);\n if (start >= end) break;\n NavigableMap<Integer, Integer> tailMap = endPos.tailMap(end, true);\n if (tailMap.size() == 0) return -1;\n end = searchMaxLen(tailMap, clips, false, selectedClip);\n }\n\n return selectedClip.size();\n }", "public static int smallStraightYahtzee(int... result) {\n\n Arrays.sort(result);\n\n int[] uniqueValues = IntStream.of(result).distinct().sorted().toArray();\n long noUniqVals = IntStream.of(uniqueValues).distinct().count();\n\n int score = 0;\n\n if (noUniqVals >= 4) {\n\n ArrayList<int[]> matchArrays = new ArrayList<>();\n matchArrays.add(new int[] {1, 2, 3, 4});\n matchArrays.add(new int[] {2, 3, 4, 5});\n matchArrays.add(new int[] {3, 4, 5, 6});\n\n ArrayList<int[]> resultSubArrays = new ArrayList<>();\n for (int i = 0; i < noUniqVals - 3; i++) {\n int[] testArr = Arrays.copyOfRange(uniqueValues, i, i + 4);\n resultSubArrays.add(testArr);\n }\n\n for (int[] arr : resultSubArrays) {\n for (int[] match : matchArrays) {\n if (Arrays.equals(arr, match)) {\n score = 30;\n }\n }\n }\n }\n return score;\n }", "private int findLongestConsecutiveSequenceUsingHashSet(int[] nums) {\r\n\t\tif(nums.length == 0)\r\n\t\t\treturn 0;\r\n\t\tSet<Integer> set = new HashSet<Integer>();\r\n\t\tint max = 0, count = 0;\r\n\t\tfor(int i = 0; i < nums.length; i++)\r\n\t\t\tset.add(nums[i]);\r\n\t\tfor(int i = 0; i < nums.length; i++) {\r\n\t\t\tint curr = nums[i];\r\n\t\t\tcount = 0;\r\n\t\t\twhile(set.contains(curr--)) \r\n\t\t\t\tcount++;\r\n\t\t\tmax = Math.max(max, count);\r\n\t\t}\r\n\t\treturn max;\r\n\t\t\r\n\t}", "public int getLaps() {\n\t\treturn meanTimes.size() + 1;\n\t}", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] arr = new int[n];\n\n for(int i = 0; i < n; i++)\n arr[i] = sc.nextInt();\n\n System.out.println(maxOfArray(arr,0));\n }", "public static void main(String[] args) {\n\t\tString s = \"10000\";\r\n\t\tSystem.out.println(maxScoreSplit(s));\r\n\t}", "public void endGame(Player[] players) { \n int[] ret = calculateScore(players);\n int playerWinnerIdx = 0;\n \n int maxScore = 0;\n for(int i = 0; i < ret.length; i++){\n if(ret[i] > maxScore){\n playerWinnerIdx = i;\n maxScore = ret[i];\n }\n }\n board.setWinningIdx(playerWinnerIdx);\n board.setIsGameEnd(true);\n }", "public int getRuns();", "static ArrayList<Integer> maxOdd(int[] a) {\n\n\t\tHashMap<Integer,Integer> b=new HashMap<Integer,Integer>();\n\t\tArrayList<Integer> x=new ArrayList<Integer>();\n\n\t\t\n\t\tfor(int i=0;i<a.length;i++)\n\t\t{\n\t\t\tif(b.get(a[i])==null)\n\t\t\t\tb.put(a[i],1);\n\t\t\telse\n\t\t\t\tb.put(a[i],b.get(a[i])+1);\n\t\t}\n\t\tint max=0,j=0;\n\n\t\tfor(int i: b.keySet())\n\t\t{\n\t\t\tif(b.get(i)%2==1) {\n\t\t\t\tx.add(i);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn x;\n\t}", "public static int minimumNumberOfGames() {\n\t\treturn 0;\n\t}", "public static int[] findMinMax(int[] nums){\n int[] minMax = new int[2];\n\n if(nums == null || nums.length == 0) return minMax;\n\n minMax[0] = nums[0];\n minMax[1] = nums[1];\n\n int bound = nums.length;\n\n if(nums.length % 2 == 1){\n bound = bound-1; \n }\n\n int min = 0; int max = 0;\n for(int i =0;i<bound;i =i+2){\n if(nums[i]<nums[i+1]){\n min = nums[i];\n max = nums[i+1]; \n }\n else{\n min = nums[i+1];\n max = nums[i];\n }\n if(min<minMax[0]){\n minMax[0] = min;\n }\n if(max>minMax[1]){\n minMax[1] = max;\n }\n }\n\n if(bound != nums.length){\n if(nums[bound] < minMax[0] ){\n minMax[0] = nums[bound];\n }\n if(nums[bound] > minMax[1] ){\n minMax[1] = nums[bound];\n }\n }\n return minMax;\n }", "public int[] maxSlidingWindow_1(int[] nums, int k) {\n\t\tint maxIndex = 0;\n\t\tint currStorePtr=0;\n\t\tfor(int i=0;i<nums.length;i++){\n\t\t\tif(i<= maxIndex +k-1){\n\t\t\t\tif(nums[i]>=nums[maxIndex]) {\n\t\t\t\t\tmaxIndex =i;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmaxIndex =i-k+1;\n\t\t\t\tfor(int j=i-k+1;j<=i;j++){\n\t\t\t\t\tif(nums[j]>=nums[maxIndex]) maxIndex =j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tnums[currStorePtr]=nums[maxIndex];\n\n\t\t\tif(i>=k-1){\n\t\t\t\tcurrStorePtr++;\n\t\t\t}\n\t\t}\n\t\treturn Arrays.copyOfRange(nums,0,currStorePtr);\n\t}", "static int LCS(int arr[])\n {\n int size = arr.length;\n int max_so_far = Integer.MIN_VALUE, max_ending_here = 0;\n\n for (int i = 0; i < size; i++)\n {\n max_ending_here = max_ending_here + arr[i];\n if (max_so_far < max_ending_here)\n max_so_far = max_ending_here;\n if (max_ending_here < 0)\n max_ending_here = 0;\n }\n return max_so_far;\n }", "public int findLengthOfLCIS(int[] nums) {\n if (nums == null || nums.length == 0) {\n return 0;\n }\n if (nums.length == 1) {\n return 1;\n }\n int max = 0;\n int cur = 0;\n int pre = nums[0];\n int count = 1;\n for(int i = 1; i < nums.length; i++) {\n cur = nums[i];\n if (cur > pre) {\n count ++;\n } else {\n max = Math.max(count, max);\n count = 1;\n }\n pre = cur;\n }\n\n return Math.max(count, max);\n }", "public int longestPalindromeSubseqV2(String s) {\n int n = s.length();\n Integer[][] memo = new Integer[n][n];\n return helper(s, memo, 0, n - 1);\n }", "public static int get_max(Integer[] a){\n int max = Integer.MIN_VALUE;\n\n for (int i = 0; i < a.length; i++){\n if (a[i] > max);\n max = a[i];\n }\n return max;\n }", "public static int[] zeroMax1(int[] nums) {\n\t\tfor(int i=0;i<nums.length;i++) \n\t\t\t\t{\n\t\t\t\t\tif(nums[i]==0) \n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int j=i;j<nums.length;j++)\n\t\t\t\t\t\t{ \n\t\t\t\t\t\t\tif(nums[j]%2!=0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tint[] arr= {nums[j]};\n\t\t\t\t\t\t\t\tint maxNo=0;\n\t\t\t\t\t\t\t\tfor(int t=0;t<arr.length;t++)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif(arr[t]>maxNo)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tmaxNo=arr[t];\n\t\t\t\t\t\t\t\t\t\tnums[i]=maxNo;\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\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t \n\t\t \n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn nums;\n\t\t}", "public static int longestConsecutive1(int[] num) {\n \n if(num == null || num.length == 0) return 0;\n HashSet<Integer> set = new HashSet<Integer>();\n for(int i=0; i< num.length; i++){\n set.add(num[i]);\n }\n \n int maxCount = 1;\n int start, end;\n int number;\n while(!set.isEmpty()){\n number = set.iterator().next();\n start = end = number;\n set.remove(number);\n while(set.contains(start -1)){\n set.remove(start -1);\n start --;\n }\n \n while(set.contains(end +1)){\n set.remove(end + 1);\n end ++;\n }\n if(maxCount < end - start + 1){\n maxCount = end - start + 1;\n }\n }\n \n \n return maxCount;\n }", "public int maxWaveHeight(int[] arr)\n\t{\n\t\t//get the size of the array\n\t\tint size = arr.length;\n\t\tint waveCount = 1;\n\t\tint maxWaveCount = 1;\n\t\tBoolean flag = false;\n\t\t\n\t\tfor(int i = 0; i< size-1;i++)\n\t\t{\n\t\t\t//when element is positive\n\t\t\tif(arr[i+1] > arr[i])\n\t\t\t{\n\t\t\t\t//add the condition to reset the wavecount. check the corner cases\n\t\t\t\tif(i > 0 && arr[i-1] > arr[i] && arr[i] < arr[i+1])\n\t\t\t\t\twaveCount = 1;\n\t\t\t\twaveCount++;\n\t\t\t\tflag= true;\n\t\t\t}\n\t\t\telse //use a flag so that the wave starts from increasing notation only\n\t\t\t{\n\t\t\t\tif(flag == true)\n\t\t\t\t\twaveCount++;\n\t\t\t}\n\t\t\t//in the end compare the wavecount and maxWaveCount and update the count\n\t\t\tif(waveCount > maxWaveCount)\n\t\t\t\tmaxWaveCount = waveCount;\n\t\t}\n\t\treturn maxWaveCount;\n\t}", "void setMaxWrongGuesses(Integer max);", "static int calculateScore(Card[] winnings) {\n int score = 0;\n for (Card card : winnings)\n if (card != null)\n score++;\n else\n break;\n return score;\n }", "public static void main(String[] args) throws Exception {\n \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n \n int arr[] = new int[n];\n for(int i=0;i<n;i++){\n arr[i] = sc.nextInt();\n }\n int maxn = Integer.MIN_VALUE;\n MaxArr(arr,maxn,0);\n }", "public static String stoneGameIII(int[] stoneValue) {\n List<Integer> nums = Arrays.stream( stoneValue ).boxed().collect( Collectors.toList() );\n\n\n return canWin(nums);\n }", "public int findMaxConsecutiveOnes(int[] nums) {\n\n int max = 0;\n int count = 0;\n for(int i = 0; i < nums.length; i++) {\n if( nums[i] == 1 ){\n count++;\n max = Math.max(max, count);\n } else {\n count=0;\n }\n\n }\n\n return max;\n }", "private static int[] findMaxValues(int[] weightArr, int[] heightArr){\r\n int[] max = new int[3];\r\n for(int i = 0; i < weightArr.length; i++){\r\n if(weightArr[i] > max[0]){\r\n max[0] = weightArr[i];\r\n max[1] = heightArr[i];\r\n max[2] = i;\r\n }\r\n }\r\n\r\n return max;\r\n }", "static int getMaxCoinValGeeks(int arr[], int n)\n {\n // Create a table to store solutions of subproblems\n int table[][] = new int[n][n];\n int gap, gapStartIndx, gapEndIndx, x, y, z;\n\n // Fill table using above recursive formula.\n // Note that the tableis filled in diagonal\n // fashion (similar to http://goo.gl/PQqoS),\n // from diagonal elements to table[0][n-1]\n // which is the result.\n for (gap = 0; gap < n; ++gap)\n {\n // both gapStartIndx and gapEndIndx are incremented in each loop iteration\n // for each gap, gapStartIndx keeps moving\n // gapEndIndx is always gap more than the gapStartIndx\n // when gap == 0, gapStartIndx = gapEndIndx\n // table[i,j] identifies the max value obtained by the player who picks first\n // first player = i to get val[i] , range of coins left = i+1, j\n // second player max value = table[i+1,j], range of coins left = i+2, j\n // first player max value = table[i+2,j]. So total value for player 1 is\n // val[i] + table[i+2, j]\n // first player picks j to get val[j], range of coins left i, j-1.\n // second player max = table[i, j-1] range of coins left i, j-2\n // first player max = table[i,j-2]\n // so for finding max value for a p\n for (gapStartIndx = 0, gapEndIndx = gap; gapEndIndx < n; ++gapStartIndx, ++gapEndIndx)\n {\n // Here x is value of F(i+2, j),\n // y is F(i+1, j-1) and z is\n // F(i, j-2) in above recursive formula\n // if gapStartIndx and gapEndIndx are two or more apart\n x = ((gapStartIndx + 2) <= gapEndIndx) ? table[gapStartIndx + 2][gapEndIndx] : 0;\n y = ((gapStartIndx + 1) <= (gapEndIndx - 1)) ? table[gapStartIndx +1 ][gapEndIndx - 1] : 0;\n z = (gapStartIndx <= (gapEndIndx - 2)) ? table[gapStartIndx][gapEndIndx - 2]: 0;\n\n table[gapStartIndx][gapEndIndx] = Math.max(arr[gapStartIndx] +\n Math.min(x, y), arr[gapEndIndx] +\n Math.min(y, z));\n }\n }\n\n return table[0][n - 1];\n }", "private void getLosePatterns() {\r\n int losePatternsCount = 0;\r\n losePatterns = new String[loseRecords.length*2];\r\n for (int ii=0; ii<loseRecords.length;ii++) {\r\n losePatterns[ii] = loseRecords[ii].substring(0, loseRecords[ii].length() - 1);\r\n }\r\n losePatternsCount = loseRecords.length;\r\n\r\n// System.out.println(\"Lose Patterns retrieved:\");\r\n// for (int ii=0; ii<losePatternsCount; ii++) {\r\n// System.out.println(losePatterns[ii]);\r\n// }\r\n\r\n //check patterns with fixed length for new pattern.\r\n //From losePatterns[] with length 7, we get the counts of all instances having the same first 6\r\n //char (moves). If we have 3 of those, then the person can always repeat the win if the computer\r\n //take the moves up to move #5 with the same moves. Therefore, the first 5 moves constitute a\r\n //lose pattern--which can lead to the same lose. So we do:\r\n //losePatterns[] with length 7==>more losePatterns[] with length 5\r\n //losePatterns[] with length 5==>more losePatterns[] with length 3\r\n for (int ii=7; ii>=3; ii-=2) { \r\n //Count lose patterns with a specific length to construct the array to be used\r\n int countSpecificLengthPattern = 0;\r\n for (int jj=0; jj<losePatternsCount; jj++) {\r\n if ( (losePatterns[jj] != null) &&\r\n\t (losePatterns[jj].length() == ii) ) {\r\n\t countSpecificLengthPattern++;\r\n\t}\r\n }\r\n if (countSpecificLengthPattern < 3) {\r\n\tcontinue;\r\n }\t\r\n\r\n //newPattern is used to count how many lose patterns we have for a certain lose pattern\r\n //with the same moves up to the last person move\r\n //For example: for a lose pattern with 7-step, we count how many patterns we have for the \r\n //same 6-steps, storing the 6-step pattern in newPattern[] and the count in newPatternCount[]\r\n String[] newPattern = new String[countSpecificLengthPattern];\r\n int[] newPatternCount = new int[countSpecificLengthPattern];\r\n countSpecificLengthPattern = 0;\r\n for (int jj=0; jj<losePatternsCount; jj++) {\r\n if ( (losePatterns[jj] != null) &&\r\n\t (losePatterns[jj].length() == ii) ) {\r\n\t String tmpPattern = losePatterns[jj].substring(0, ii-1);\r\n\t boolean repeated = false;\r\n\t for (int kk=0; kk < countSpecificLengthPattern; kk++) {\r\n\t if (newPattern[kk].equals(tmpPattern)) {\r\n\t newPatternCount[kk] = newPatternCount[kk] + 1;\r\n\t repeated = true;\r\n\t break;\r\n\t }\r\n\t }\r\n\t if (!repeated) {\r\n\t newPattern[countSpecificLengthPattern] = losePatterns[jj].substring(0, ii-1);\r\n newPatternCount[countSpecificLengthPattern] = 1;\r\n\t countSpecificLengthPattern++;\r\n\t }\r\n\t}\r\n }\r\n \r\n //adding new lose patterns\r\n //For a specific newPattern[], if newPatternCount[] equal to # of possibilities, we get a\r\n //new lose pattern.\r\n //For example: for a 7-step losePatterns[], we have a 6-step newPattern[], if the newPatternCount[]\r\n //for this newPattern[] is 3 (=9-7+1), we get a new losePatterns[] using the first 5 digits of\r\n //the newPattern[]\r\n for (int jj=0; jj<countSpecificLengthPattern; jj++) {\r\n\t//System.out.println(\"Pattern: \" + newPattern[jj] + \", Count=\" + newPatternCount[jj]);\r\n\tif (newPatternCount[jj] == (9-ii+1) ) {\r\n\t //got a new lose pattern\r\n losePatterns[losePatternsCount] = newPattern[jj].substring(0,ii-2);\r\n //System.out.println(\"Add new lose pattern:\" + losePatterns[losePatternsCount]);\r\n losePatternsCount++;\r\n\t}\r\n }\r\n }\r\n }", "public static int max(String[] wordsArray, int[] countArray){\r\n\t\tint max= 0;\r\n\t\t\r\n\t\tfor(int i=0; i<wordsArray.length;i++) {\r\n\t\t\tif(countArray[i]>max) max=countArray[i];\r\n\t\t}\r\n\t\t\r\n\t\treturn max;\r\n\t}", "int getMaximalIterationCount();", "private static int max(int[] array) {\n int result = array[0];\n for (int x : array)\n result = Math.max(x, result);\n return result;\n }", "private int calculateMaxLagViolation(Team team, int time, int previousTime) {\n if (time - previousTime > team.getMaxLag()) {\n return (time - previousTime) - team.getMaxLag();\n }\n return 0;\n }", "int findMax(int[] arr){\n\t\tint maximum=0;\n\t\tfor (int i=0; i<arr.length; i++) {\n\t\t\tif (arr[i]>maximum) {\n\t\t\t\tmaximum=arr[i];\n\t\t\t}\n\t\t}\n\t\treturn maximum;\n\t}", "public static int calculateMessiness(String[] text, int linelen, int maxCharacters) {\n// int totalChar = calculateTotalChars(text, j, i);\n return (int) Math.pow(maxCharacters - linelen, 2);\n }", "public int maxSubArray(int[] nums) {\n return helper(nums, 0, nums.length - 1);\n }" ]
[ "0.641016", "0.6256608", "0.5976324", "0.5704277", "0.54652935", "0.5319744", "0.5209085", "0.5115883", "0.5087625", "0.5038352", "0.4993062", "0.4971435", "0.49625146", "0.4957989", "0.49376357", "0.48686224", "0.4855518", "0.48518324", "0.48384354", "0.48271886", "0.48147655", "0.4809548", "0.47897127", "0.4787133", "0.4767047", "0.47263047", "0.4703216", "0.46994537", "0.46838802", "0.46822524", "0.46793658", "0.46640942", "0.4659689", "0.4649516", "0.4645873", "0.46323538", "0.46184605", "0.46139085", "0.4610263", "0.4608642", "0.46044832", "0.46030712", "0.45981634", "0.45905286", "0.4586043", "0.45839408", "0.45682797", "0.45528045", "0.45421442", "0.45412105", "0.45412105", "0.45268828", "0.45262802", "0.45149156", "0.4506213", "0.45054853", "0.44963628", "0.4495834", "0.44935033", "0.44932115", "0.44798777", "0.44715115", "0.44652522", "0.44623372", "0.44593662", "0.4457032", "0.44562986", "0.44516096", "0.4450149", "0.4445723", "0.44446498", "0.44427228", "0.44411895", "0.44387686", "0.44367266", "0.4436225", "0.4428251", "0.44272608", "0.44235277", "0.44188192", "0.44177666", "0.4416106", "0.4401933", "0.43989968", "0.4397636", "0.43966594", "0.43888384", "0.43862832", "0.43797", "0.43795273", "0.43758035", "0.43708476", "0.43699187", "0.43694454", "0.43689898", "0.43567577", "0.43534386", "0.43531892", "0.43511653", "0.43502572" ]
0.70643556
0
left frame to hold simulation engine
@Override public void start(Stage primaryStage) { // StackPane root = new StackPane(); Scene scene = new Scene(root, 900, 900); //set up a window with these propotions primaryStage.setTitle("Keep it Clean simulator"); //window title primaryStage.setScene(scene); primaryStage.show(); setLayout(); drawUI.Draw(dataInput, tileMin, tileMax); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void leftSystem() {\n }", "public void executeLeftGame() {\r\n //COME BACK TO THIS\r\n }", "public void newFrame()\n {\n //////////////////////////////////////////////////////////////\n // If vehicle is moving, update its position (by calling its \n // newFrame method. \n // Somehow, need to know if it has reached its goal position. \n // If so, figure out what the next goal should be.\n // \n // If previous goal was emergency site, new goal is hospital\n // If previous goal was a hospital (or if it was at home,\n // or if it was going home), new goal is the next\n // emergency site, if there is one, or home if no more \n // emergencies.\n //////////////////////////////////////////////////////////////\n if( state == 2 )\n {\n line.setVisible( false );\n if( reset == false ) \n { \n car.travelTo( 10, 10, EMTApp.normalSpeed );\n if( car.getLocation().x == 10 )\n {\n if( car.getLocation().y == 10 )\n {\n reset = true;\n }\n }\n }\n car.traveledReset();\n car.newFrame();\n if( _emergency.size() > 0 )\n {\n reset = false;\n state = 0; \n }\n }\n if( state == 3 )\n {\n Hospital h1 = this.getClosestHospital( car.getLocation() );\n line.setPoints( car.getLocation().x + car.getWidth() / 2, \n car.getLocation().y + car.getHeight() / 2, \n h1.getLocation().x, h1.getLocation().y );\n line.setVisible( true );\n car.travelTo( h1.getLocation().x, \n h1.getLocation().y , EMTApp.highSpeed );\n car.newFrame();\n }\n if( car.isTargetReached() == true )\n {\n if( state == 0 )\n { \n _frametimer.restart();\n boolean justGoHome = false;\n if( _emergency.size() > 0 ) \n {\n _emergency.get( 0 ).setColor( Color.BLUE );\n _emergency.get( 0 ).setVisible( false );\n _emergency.remove( 0 ); //removes the first object\n } else if ( _emergency.size() == 0 )\n {\n justGoHome = true;\n state = 1;\n }\n state = 3; \n } \n else if ( state == 1 )\n { \n _frametimer.restart(); \n if( _emergency.size() > 0 )\n { \n state = 0; \n } else \n {\n state = 2;\n }\n } \n else if ( state == 3 )\n {\n if( _emergency.size() > 0 )\n {\n _frametimer.restart();\n state = 0;\n } else \n {\n _frametimer.restart();\n state = 2;\n }\n }\n }\n if ( state == 1 ) \n {\n car.newFrame(); \n } \n else if( state == 0 )\n {\n if( this.nextSite() != null )\n {\n EmergencySite e = this.nextSite();\n currentSite = e;\n }\n currentSite.setNoDrag( true );\n \n int nextX = currentSite.getXLocation();\n int nextY = currentSite.getYLocation();\n line.setPoints( car.getX() + car.getWidth() / 2 , \n car.getY() + car.getHeight() / 2 , \n nextX + currentSite.getWidth() / 2 , \n nextY + currentSite.getHeight() / 2 );\n line.setVisible( true );\n \n int tmpx = currentSite.getXLocation();\n car.travelTo( tmpx, currentSite.getYLocation(), EMTApp.highSpeed );\n car.newFrame();\n } \n }", "void leftInv() {\n startAnimation(leftSubCubes(), Axis.X, Direction.CLOCKWISE);\n leftCubeSwap();\n leftCubeSwap();\n leftCubeSwap();\n }", "public static void changeFrame() {\r\n\t\t\r\n\t}", "void setupFrame()\n {\n int wd = shopFrame.getWidth();\n sellItemF(wd);\n\n requestItemF(wd);\n setAllVisFalse();\n }", "public void preGame() {\n\n\t}", "public void frame() {\r\n\r\n\r\n\t\t//this will solves a thread issue, to do FX application stuff in a non FX application thread. \r\n\t\tPlatform.runLater(() -> {\r\n\r\n\t\t\tif (Player.isBattle()) {\r\n\r\n\t\t\t\tPlayer.setVelX(0);\r\n\t\t\t\tPlayer.setVelY(0);\r\n\t\t\t\tmainStage.setScene(combatScene);\r\n\r\n\t\t\t} else if (Player.isShop()) {\r\n\t\t\t\tmainStage.setScene(shopScene);\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\tcircle.setFill(getColor());\r\n\t\t\t\tmainStage.setScene(mainScene);\r\n\t\t\t}\r\n\r\n\t\t});\r\n\r\n\t\tgetMainScene().setOnKeyPressed(e -> {\r\n\t\t\tPlayer.move(e);\r\n\t\t});\r\n\r\n\t\tgetMainScene().setOnKeyReleased(e -> {\r\n\t\t\tPlayer.stop(e);\t\r\n\t\t});\r\n\r\n\t\tPlayer.update();\r\n\t\tposition();\r\n\t}", "void left() {\n startAnimation(leftSubCubes(), Axis.X, Direction.ANTICLOCKWISE);\n leftCubeSwap();\n }", "public void enterHatchingState() {\n\n\t}", "public void runGame()\r\n\t{\r\n\t\tmainFrame.runGame();\r\n\t}", "private void resetAfterGame() {\n }", "@Override\n public void run() {\n try {\n while (true) {\n frame.updateState();\n Thread.sleep(1000);\n }\n } catch (Exception e) {\n // e.printStackTrace();\n }\n }", "public void actionPerformed(ActionEvent e){\n\t\t\t\tframe.setSize(1105,705);\n\t\t\t\tframe.remove(op);\n\t\t\t\tgp = new GamePanel(numplanes);\n\t\t\t\tframe.add(gp);\n\t\t\t\tframe.setBackground(Color.black);\n\t\t\t\tgp.requestFocus();\n\t\t\t\t\n\t\t\t\tframe.setLocationRelativeTo(null);\n\t\t\t\ttime.start();\n\t\t\t}", "public static void startGame()\r\n\t{\r\n\t\tnew ModeFrame();\r\n\t}", "@Override\n public void onFrame() {\n intel.tabulateUnits();\n intel.updateEnemyBuildingMemory();\n\n DataManager dm = combat.getDataManagers().get(0);\n //game.setTextSize(10);\n game.drawTextScreen(10, 10, \"Playing as \" + self.getName() + \" - \" + self.getRace());\n if(dm != null) {\n game.drawTextScreen(10, 50, \"Type: \" + dm.getClassification());\n game.drawTextScreen(10, 60, \"Skirmish: \" + !skirmVal);\n game.drawTextScreen(10, 70, \"Data Points: \" + dm.getDataPoints().size());\n game.drawTextScreen(10, 80, \"Unique States: \" + dm.getStateFrequency().keySet().size());\n game.drawTextScreen(10, 90, \"Average Reward: \" + dm.getAverageReward());\n game.drawTextScreen(10, 100, \"Avg. Attack Reward: \" + dm.getAverageReward(ActionType.valueOf(\"ATTACK\")));\n game.drawTextScreen(10, 110, \"Avg. GoHome Reward: \" + dm.getAverageReward(ActionType.valueOf(\"GOHOME\")));\n game.drawTextScreen(10, 120, \"Avg. MoveTowards Reward: \" + dm.getAverageReward(ActionType.valueOf(\"MOVETOWARDS\")));\n game.drawTextScreen(10, 130, \"Avg. Retreat Reward: \" + dm.getAverageReward(ActionType.valueOf(\"RETREAT\")));\n }\n game.drawTextScreen(10, 230, \"Resources: \" + self.minerals() + \" minerals, \" + self.gas() + \" gas, \" + (self.supplyUsed() / 2) + \"/\" + (self.supplyTotal() / 2) + \" psi\");\n\n intel.tabulateUnits();\n\n if(frameCount % epoch == 0) {\n frameCount = 0;\n combat.controlArmy(game, new ArrayList<>(intel.getUnitsListOfType(UnitType.Protoss_Zealot)));\n Epoch_Cycles++;\n }\n if(Epoch_Cycles % 400 == 0) {\n Epoch_Cycles = 1;\n combat.setSkirmish(skirmVal);\n skirmVal = !skirmVal;\n }\n frameCount++;\n }", "public void setFrame() {\r\n\t\tif (logger.isDebugEnabled())\r\n\t\t\tlogger.debug(\"setFrame\");\r\n\t\t\r\n\t\tif (state != GameState.STOPPED) {\r\n\t\t\ttry {\r\n\t\t\t\t// Wait for event\r\n\t\t\t\tif (state == GameState.PAUSED\r\n\t\t\t\t\t|| state == GameState.WAITING_FRAME) {\r\n\t\t\t\t\tsynchronized (this) {\r\n\t\t\t\t\t\twait();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// Wait between two frames\r\n\t\t\t\telse if (speed < CowSimulator.UNLIMITED_SPEED) {\r\n\t\t\t\t\tThread.sleep(period);\r\n\t\t\t\t}\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tlogger.error(e.getMessage(), e);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Game stopped during turn\r\n\t\tif (state == GameState.STOPPED) {\r\n\t\t\t// End game\r\n\t\t\tendGame();\r\n\t\t}\r\n\t}", "public void run() {\n gf = addGameFrame(\"Pacman\", displayW, displayH);\n }", "public void run() {\n\n renderingForce = true;\n //file.play();\n\n\n if (haplyBoard.data_available()) {\n /* GET END-EFFECTOR STATE (TASK SPACE) */\n widgetOne.device_read_data();\n\n angles.set(widgetOne.get_device_angles()); \n posEE.set(widgetOne.get_device_position(angles.array()));\n posEE.set(posEE.copy().mult(200));\n }\n\n s.setToolPosition(edgeTopLeftX+worldWidth/2-(posEE).x, edgeTopLeftY+(posEE).y-7); \n\n\n s.updateCouplingForce();\n fEE.set(-s.getVirtualCouplingForceX(), s.getVirtualCouplingForceY());\n fEE.div(100000); //dynes to newtons\n\n torques.set(widgetOne.set_device_torques(fEE.array()));\n widgetOne.device_write_torques();\n\n world.step(1.0f/1000.0f);\n\n\n checkSplat();\n\n renderingForce = false;\n }", "@Override\n\tpublic void gameStopped() {\n\t}", "public void startSimulation();", "public void left() {\n\t\tstate.left();\n\t}", "public void resetGame() { \n\t\tInvokeMessage im = new InvokeMessage();\n\t\tim.setMethodName(\"doResetGame\");\n\t\tSheepPhysicsState sps = getSps();\n\t\tnew InvokeCallable(im, sps);\n\t}", "public FirstNewFrame() {\n\t\tjbInit();\n\t}", "protected void serverAiStep() {\n/* 539 */ super.serverAiStep();\n/* 540 */ updateSwingTime();\n/* */ \n/* 542 */ this.yHeadRot = this.yRot;\n/* */ }", "public void refreshFrame() {\n switchWindow();\n this.switchToFrame(\"botFr\");\n }", "@Override\n\tpublic void gameStarted() {\n\t\tupdatePosition(0,0,0);\n//\t\tstartSendingPositionsThread();\n\t}", "private void startGame() {\n\t\tmain.next_module = new Game(main, inputs, gameSelectionData);\n\t}", "public void startNewGame() {\n numOfTurnsLeft = NUMBER_OF_TURNS_ALLOWED;\n decodingBoard.clearBoard();\n }", "private void Level1() {\n\t\tEngine eng = new Engine();\n\t\teng.Maingame();\n\t\tthis.setVisible(false);\n\t}", "@Override\n public void start() {\n runtime.reset();\n leftWheel.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n rightWheel.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n }", "@Override\n public void runOpMode() {\n motorFL = hardwareMap.get(DcMotor.class, \"motorFL\");\n motorBL = hardwareMap.get(DcMotor.class, \"motorBL\");\n motorFR = hardwareMap.get(DcMotor.class, \"motorFR\");\n motorBR = hardwareMap.get(DcMotor.class, \"motorBR\");\n landerRiser = hardwareMap.get(DcMotor.class, \"lander riser\");\n landerRiser = hardwareMap.get(DcMotor.class, \"lander riser\");\n landerRiser.setDirection(DcMotor.Direction.FORWARD);\n landerRiser.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n markerDrop = hardwareMap.get(Servo.class, \"marker\");\n markerDrop.setDirection(Servo.Direction.FORWARD);\n telemetry.addData(\"Status\", \"Initialized\");\n telemetry.update();\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n runtime.reset();\n\n //Landing & unlatching\n landerRiser.setPower(-1);\n telemetry.addData(\"Status\", \"Descending\");\n telemetry.update();\n sleep(5550);\n landerRiser.setPower(0);\n telemetry.addData(\"Status\",\"Unhooking\");\n telemetry.update();\n move(-0.5, 600, true);\n strafe(-0.4,0.6, 3600, true);\n move(0.5,600,true);\n markerDrop.setPosition(0);\n sleep(1000);\n markerDrop.setPosition(0.5);\n sleep(700);\n markerDrop.setPosition(0);\n strafe(0, -0.5,500,true);\n strafe(0.5, -0.25, 8500, true);\n\n }", "public void regulateFramerate(){\n\t\tsleepTime = frameInterval - (System.currentTimeMillis()-lastDraw);\n\t\t\n\t\ttry {\n\t\t\tif(sleepTime > 0) {\n\t\t\t\tlong takeOne = sleepTime/2;\n\t\t\t\tThread.sleep(takeOne);\n\t\t\t\t\n\t\t\t\tif(capturedMouse && !mouseLeftScreen && !focusLost) {\n\t\t\t\t\tcurrentMouseX = MouseInfo.getPointerInfo().getLocation().x;\n\t\t\t\t\tcurrentMouseY = MouseInfo.getPointerInfo().getLocation().y; \n\t\t\t\t\t\n\t\t\t\t\tint deltaX = currentMouseX - centerScreenX;\n\t\t\t\t\tint deltaY = currentMouseY - centerScreenY;\n\t\t\t\t\n\t\t\t\t\tmouseX+=deltaX;\n\t\t\t\t\tmouseY+=deltaY;\n\t\t\t\t\t\n\t\t\t\t\tmyRobot.mouseMove(centerScreenX, centerScreenY);\n\t\t\t\t\t\n\t\t\t\t\tif(mouseX < 0)\n\t\t\t\t\t\tmouseX = 0;\n\t\t\t\t\tif(mouseX >= screen_width)\n\t\t\t\t\t\tmouseX = screen_width-1;\n\t\t\t\t\tif(mouseY < 0)\n\t\t\t\t\t\tmouseY = 0;\n\t\t\t\t\tif(mouseY >= screen_height)\n\t\t\t\t\t\tmouseY = screen_height-1;\n\t\t\t\t\t\n\t\t\t\t\tinputHandler.mouse_x = mouseX;\n\t\t\t\t\tinputHandler.mouse_y = mouseY;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(frameIndex %2 == 0 && frameIndex > 3){\n\t\t\t\t\tbf = doubleBuffer;\n\t\t\t\t\t//draw mouse cursor \n\t\t\t\t\ttheGameCursor.updateAndDraw(bufferScreen);\n\t\t\t\t\t\n\t\t\t\n\t\t\t\t}else if(frameIndex != 1 && frameIndex > 3){\n\t\t\t\t\tbf = doubleBuffer2;\n\t\t\t\t\t//draw mouse cursor \n\t\t\t\t\ttheGameCursor.updateAndDraw(buffer2Screen);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(frameIndex > 3)\n\t\t\t\t\tpanel.getGraphics().drawImage(bf, 0, 0, this);\n\t\t\t\t\n\t\t\t\tsleepTime = frameInterval - (System.currentTimeMillis()-lastDraw);\n\t\t\t\tif(sleepTime > 0) \n\t\t\t\t\tThread.sleep(sleepTime);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t} catch (InterruptedException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tlastDraw=System.currentTimeMillis();\n\t}", "public void actionPerformed(ActionEvent e){\t\n\t\t\n\t\t\n\t\tif(frameIndex == 0) {\n\t\t\t\n\t\t\t//Add key handler\n\t\t\tpanel.addKeyListener(this);\n\t\t\tpanel.addMouseMotionListener(this);\n\t\t\tpanel.addMouseListener(this);\n\t\t\tpanel.addFocusListener(this);\n\t\t\tpanel.requestFocus();\n\t\t\t\n\t\t\t//create camera\n\t\t\tCamera = new camera(new vector(3,2f,-1.25f), 0, 300);\n\t\t\n\t\t\t//Create look up tables\n\t\t\tgameData.makeData();\n\t\t\t\n\t\t\t//init grid \n\t\t\tgridMap = new grid(128);\n\t\t\t\n\t\t\t//init light source\n\t\t\tsunLight.init();\n\t\t\t\n\t\t\t//init rasterizer\n\t\t\trasterizer.init();\n\t\t\t\n\t\t\t//init 2d to 3d factory\n\t\t\tmy2Dto3DFactory = new Turn2DTo3DFactory();\n\t\t\tmy2Dto3DFactory.init();\n\t \n\t\t\tloadTexture();\n\t\t\t\t\n\t\t\ttheAssetManager = new AssetManager();\n\t\t\ttheAssetManager.init();\n\t\t\t\n\t\t\ttheGameCursor = new gameCursor();\n\t\t\ttheGameCursor.init();\n\t\t\t\n\t\t\tcurrentMouseX = getLocationOnScreen().x + screen_width/2;\n\t\t\tcurrentMouseY = getLocationOnScreen().y + screen_height/2;\n\t\t\t\n\t\t\tcenterScreenX = getLocationOnScreen().x + screen_width/2;\n\t\t\tcenterScreenY = getLocationOnScreen().y + screen_height/2;\n\t\t\t\n\t\t\t\n\t\t\tif(capturedMouse)\n\t\t\t\tmyRobot.mouseMove(centerScreenX, centerScreenY);\n\t\t\t\n\t\t\t//hide mouse cursor\n\t \t// Transparent 16 x 16 pixel cursor image.\n\t \tBufferedImage cursorImg = new BufferedImage(16, 16, BufferedImage.TYPE_INT_ARGB);\n\n\t \t// Create a new blank cursor.\n\t \tCursor blankCursor = Toolkit.getDefaultToolkit().createCustomCursor(\n\t \t cursorImg, new Point(0, 0), \"blank cursor\");\n\n\t \t// Set the blank cursor to the JFrame.\n\t \tthis.getContentPane().setCursor(blankCursor);\n\t \t\n\t\t}\n\t\t\n\t\tframeIndex++;\t\n\n\t\tif(capturedMouse && !mouseLeftScreen && !focusLost) {\n\t\t\tcurrentMouseX = MouseInfo.getPointerInfo().getLocation().x;\n\t\t\tcurrentMouseY = MouseInfo.getPointerInfo().getLocation().y;\n\t\t\t\n\t\t\tcenterScreenX = getLocationOnScreen().x + screen_width/2;\n\t\t\tcenterScreenY = getLocationOnScreen().y + screen_height/2;\n\t\t\t\n\t\t\tint deltaX = currentMouseX - centerScreenX;\n\t\t\tint deltaY = currentMouseY - centerScreenY;\n\t\t\n\t\t\tmouseX+=deltaX;\n\t\t\tmouseY+=deltaY;\n\t\t\t\n\t\t\tmyRobot.mouseMove(centerScreenX, centerScreenY);\n\t\t\t\n\t\t\tif(mouseX < 0)\n\t\t\t\tmouseX = 0;\n\t\t\tif(mouseX >= screen_width)\n\t\t\t\tmouseX = screen_width-1;\n\t\t\tif(mouseY < 0)\n\t\t\t\tmouseY = 0;\n\t\t\tif(mouseY >= screen_height)\n\t\t\t\tmouseY = screen_height-1;\n\t\t\t\n\t\t\tinputHandler.mouse_x = mouseX;\n\t\t\tinputHandler.mouse_y = mouseY;\n\t\t}\n\t\tinputHandler.processInput();\n\t\t\n\t\tif(!gamePaused) {\n\t\t\tif(gameStarted)\n\t\t\t\tgameFrame++;\n\t\t\t\n\t\t\ttimeString = secondsToString((int)(gameFrame*0.025));\n\t\t\t\n\t\t\t//handle user's interaction with game GUI\n\t\t\tif(gameFrame == 1 && gameStarted){\n\t\t\t\ttheAssetManager.prepareAssetForNewGame();\n\t\t\t}\n\t\t\t\n\t\t\tgridMap.update();\n\t\t\t\n\t\t\t//Clears the z-buffer. All depth values are set to 0.\n\t\t\tclearDepthBuffer();\n\t\t\t\n\t\t\t//update camera\n\t\t\tCamera.update();\n\t\t\t\n\t\t\t//update light source\n\t\t\tsunLight.update();\n\t\t\t\t\t\n\t\t\t//update and draw 3D mashes from game objects\n\t\t\ttheAssetManager.updateAndDraw();\n\t\t\t\n\t\t\tif(gameStarted) {\n\t\t\t\tpc.update();\n\t\t\t\tec.update();\n\t\t\t}\n\t\t}else {\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t//show unpassable obstacle \n\t\t//gridMap.draw();\n\t\t\n\t\tif(this.getGraphics() != null && PPT!= null){\n\t\t\t//wait for the Post processing Thread if it is still working\n\t\t\twaitForPostProcessingThread();\n\t\t\t\n\t\t\t//prepare resources for the post processing thread\n\t\t\tpostProcessingThread.prepareResources();\n\t\t\t\n\t\t\t//Signal post processing thread that it can proceed\n\t\t\tsynchronized(PPT) {\n\t\t\t\tPPT.notify();\n\t\t\t}\n\t\t\t\n\t\t\tif(frameIndex %2 == 0 && frameIndex > 3){\n\t\t\t\tbf = doubleBuffer;\n\t\t\t\t//draw mouse cursor \n\t\t\t\ttheGameCursor.updateAndDraw(bufferScreen);\n\t\t\t\t\n\t\t\n\t\t\t}else if(frameIndex != 1 && frameIndex > 3){\n\t\t\t\tbf = doubleBuffer2;\n\t\t\t\t//draw mouse cursor \n\t\t\t\ttheGameCursor.updateAndDraw(buffer2Screen);\n\t\t\t}\n\t\t\t\n\t\t\tif(frameIndex > 3)\n\t\t\t\tpaintComponent(panel.getGraphics());\n\t\t\t\n\t\t\tswapResources();\n\t\t\n\t\t\t//maintain a constant frame rate\n\t\t\tregulateFramerate();\n\t\t}else{\n\t\t\tSystem.exit(-1);\n\t\t}\n\t}", "public EmulatorFrame() {\r\n\t\tsuper(\"Troyboy Chip8 Emulator\");\r\n\t\t\r\n\t\tsetNativeLAndF();\r\n\t\tinitComponents();\r\n\t\tinitMenubar();\r\n\t\tsetupLayout();\r\n\t\tinitFrame();\r\n\t\t//frame is now ready to run a game\r\n\t\t//running of any games must be started by loading a ROM\r\n\t}", "public void buildFrame();", "@Override\n public void beginGame() {\n }", "@Override\n public void actionPerformed(ActionEvent evt) {\n\t\t\t\tv = new SpaceShip(180, 525, 50, 50,1);\t// Create Player1\n\t\t\t\tv2 = new SpaceShip(180, 525, 50, 50,2); // Create Player2\n\t\t\t\tgp = new GamePanel();\n\t\t\t\t//New Game Single mode\n\t\t\t\tengine = new GameEngine(gp, v, v2,1);\n\n\n\t\t\t\t//Remove button's panel from Main frame\n\t\t\t\tframe.getContentPane().remove(buttonPanel);\n\n\t\t\t\t//add KeyListener and GamePanel to Main frame\n\t\t\t\tframe.addKeyListener(engine);\n\t\t\t\tframe.getContentPane().add(gp,BorderLayout.CENTER);\n\n\t\t\t\t//Start timmer\n\t\t\t\tengine.start();\n\n\t\t\t\t//Setting MainFrame and re-panting\n\t\t\t\tframe.validate();\n\t\t\t\tframe.repaint();\n\n\t\t\t\t//Eable KeyListener\n\t\t\t\tframe.requestFocus();\n }", "public void gameStart() {\n\t\tremove(_right1);\n\t\tadd(_right2, BorderLayout.EAST);\n\t\t_forfeit.setEnabled(true);\n\t\tvalidate();\n\t\trepaint();\n\t}", "public void tick(){\n\t\t//first check if blocked\n\t\tsuper.tick();\n\t\ttickTimers();\n\t\tapplySpecialAbilitiesWithinDuration();\n\t\tif(sequence!=null){\n\t\t\tsequence.tick();\n\t\t}\n\t\tif(adjustToBlockageAndReturnTrueIfBlocked()||atEdge) {\n\t\t\tif(atEdge){\n\t\t\t\tcheckIfAtEdge();\n\t\t\t}\n\t\t\tif(charging) stopCharge();\n\t\t\tif(animation!=ANIMATION.DYING&&animation!=ANIMATION.DAMAGED) {\n\t\t\t\tif(animation!=ANIMATION.STAND) {\n\t\t\t\t\tanimation=ANIMATION.STAND;\n\t\t\t\t\tif(stand!=null) sequence.startSequence(stand);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif(buttonReleased){\n\t\t\tif(targetPositionReached()){\n\t\t\t\tvelX=0;\n\t\t\t\tvelY=0;\n\t\t\t\tmoving=false;\n\t\t\t\tif(animation!=ANIMATION.DYING&&animation!=ANIMATION.DAMAGED) {\n\t\t\t\t\tif(animation!=ANIMATION.STAND) {\n\t\t\t\t\t\tanimation=ANIMATION.STAND;\n\t\t\t\t\t\tif(stand!=null) sequence.startSequence(stand);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdirection=\"stand\";\n\t\t\t}\n\t\t}\n\t\tif(damaged){\n\t\t\tif(animation!=ANIMATION.DYING) {\n\t\t\t\tif(animation!=ANIMATION.DAMAGED) {\n\t\t\t\t\tanimation=ANIMATION.DAMAGED;\n\t\t\t\t\tif(damage!=null) sequence.startSequence(damage,stand);\n\t\t\t\t}\n\t\t\t}\n\t\t\tsetVelX(0);\n\t\t\tsetVelY(0);\n\t\t}\n\t\t\n\t\tx+=velX;\n\t\ty+=velY;\n\t\tupdatePosition();\n\t\tcheckIfAtEdge();\n\t\t\n\t\t\n\t}", "public void start() {\n\t\tcurrentFrameIndex = 0;\n\t}", "public void step(){\r\n\t\t\r\n\t\t\r\n\t\tsuper.step();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tif(marketEntryHappend){\r\n\t\t\t\r\n\t\t\t\r\n\t\t\taddSequencesToGraphs();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tif(marketExitHappend){\r\n\t\t\t\r\n\t\t\tfor(int i =0; i < exitedFirms.size();i++){\r\n\t\t\t\r\n\t\t\t\tfreeCoordinates.add(new Coordinate(exitedFirms.get(i).x_coord,exitedFirms.get(i).y_coord)); \r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\r\n\t\tgraphOutput.step();\r\n\t\tgraphPrice.step();\r\n\t\tgraphQuality.step();\r\n\t\tgraphFirmLocations.step();\r\n\t\t//graphEnteringCosts.step();\r\n\t\tgraphAverageProbability.step();\r\n\t\tgraphTotalProfit.step();\r\n\t\tgraphNumFirms.step();\r\n\t\t\r\n\t\tgraphSingleOutput.step();\r\n\t\tgraphSinglePrice.step(); \r\n\t\tgraphSingleQuality.step(); \r\n\t\tgraphSingleFirmLocations.step();\r\n\t graphSingleProbability.step(); \r\n\t\tgraphSinglelProfit.step();\r\n\t\tgraphSingleQualityConcept.step();\r\n\t\r\n\t\tgraphClusteringCoefficient.step();\r\n\t\t\r\n\t\tgraphCumProfit.step();\r\n\t\t\r\n\t\tfor(int i=0; i < dsurfList.size();i++){\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tgridSpaceList.get(i).update(locationList.get(i));;\r\n\t\t\t\r\n\t\t dsurfList.get(i).updateDisplay();\r\n\t\t }\r\n\t\t\r\n\t\t\tlayout.setList(nodeList);\r\n\t\t\r\n\t\t layout.updateLayout();\r\n\t\t surface.updateDisplay();\r\n\t\t \r\n\t\t\r\n\t\t\r\n\t}", "private static void processGroundCal()\n\t{\n\t\tif (testMotor != null) {\n\t\t\tSystem.out.println(\"Calibrating arm to floor position\");\n\t\t\ttestMotor.setPosition(SOFT_ENCODER_LIMIT_FLOOR);\n\t\t}\n\t}", "public void startGame()\n\t{\n\t\tdead = false;\n\t\tpaused = false;\n\t\ttime = 0;\n\t\tclock = 0;\n\t\tdirection = RIGHT;\n\t\tdirection2 = RIGHT2;\n\t\thead = new Point(0, -1);\n\t\thead2 = new Point(58, -1);\n\t\ttronBody.clear();\n\t\ttronBody2.clear();\n\t\ttimer.start();\n\t\tlast_direction = 'R';\n\t\tlast_key = 'R';\n\t\tlast_direction2 = 'R';\n\t\tlast_key2 = 'R';\n\t\t\n\t}", "@Override\n public void runOpMode() {\n\n robot.init(hardwareMap);\n robot.MotorRightFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot.MotorLeftFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot.MotorRightFront.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.MotorLeftFront.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n /** Wait for the game to begin */\n while (!isStarted()) {\n telemetry.addData(\"angle\", \"0\");\n telemetry.update();\n }\n\n\n }", "private void pique() {\n\t\ttry {\n\t\t\tThread.sleep(5000); // espera, para dar tempo de ver as mensagens iniciais\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tint xInit = -38;\n\t\tint yInit = 0;\n\t\tEFieldSide side = selfPerception.getSide();\n\t\tVector2D initPos = new Vector2D(xInit * side.value(), yInit * side.value());\n\t\tplayerDeafaultPosition = initPos;\n\t\tVector2D ballPos;\n\t\tdouble ballX = 0, ballY = 0;\n\t\t\n\t\tRectangle area = side == EFieldSide.LEFT ? new Rectangle(-52, -25, 32, 50) : new Rectangle(25, -25, 32, 50);\n\t\t\n\t\twhile (commander.isActive()) {\n\t\t\tupdatePerceptions(); // deixar aqui, no começo do loop, para ler o resultado do 'move'\n\t\t\tballPos = fieldPerception.getBall().getPosition();\n\t\t\tswitch (matchPerception.getState()) {\n\t\t\tcase BEFORE_KICK_OFF:\t\t\t\t\n\t\t\t\tcommander.doMoveBlocking(-38, 0);\t\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase PLAY_ON:\n\t\t\t\tballX = fieldPerception.getBall().getPosition().getX();\n\t\t\t\tballY = fieldPerception.getBall().getPosition().getY();\n\t\t\t\tif (arrivedAtBall()) { // chutar\n\t\t\t\t\tcommander.doKickBlocking(100.0d, 0.0d);\n\t\t\t\t} else if (area.contains(ballX, ballY)) { // defender\n\t\t\t\t\tdashBall(ballPos);\n\t\t\t\t} else if (!isCloseTo(initPos)) { // recuar\t\t\t\t\t\n\t\t\t\t\tdash(initPos);\n\t\t\t\t} else { // olhar para a bola\n\t\t\t\t\tturnTo(ballPos);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KICK_OFF_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KICK_OFF_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CORNER_KICK_LEFT: // escanteio time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CORNER_KICK_RIGHT: // escanteio time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KICK_IN_LEFT: // lateral time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\tcase KICK_IN_RIGHT: // lateal time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_LEFT: // Tiro livre time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_RIGHT: // Tiro Livre time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_FAULT_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_FAULT_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase GOAL_KICK_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase GOAL_KICK_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase AFTER_GOAL_LEFT:\n\t\t\t\tcommander.doMoveBlocking(-38, 0);\n\t\t\t\tbreak;\n\t\t\tcase AFTER_GOAL_RIGHT:\n\t\t\t\tcommander.doMoveBlocking(-38, 0);\n\t\t\t\tbreak;\t\t\t\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "void newGame() {\n\t\tstate = new model.State () ; \n\t\tif(host != null ) host.show(state) ; \n\t}", "public void createFrame() {\r\n System.out.println(\"Framing: Adding the log walls.\");\r\n }", "@Override\n public void runOpMode() {\n leftDrive = hardwareMap.get(DcMotor.class, \"left_drive\");\n rightDrive = hardwareMap.get(DcMotor.class, \"right_drive\");\n intake = hardwareMap.get (DcMotor.class, \"intake\");\n dropServo = hardwareMap.get(Servo.class, \"drop_Servo\");\n leftDrive.setDirection(DcMotor.Direction.REVERSE);\n rightDrive.setDirection(DcMotor.Direction.FORWARD);\n\n dropServo.setPosition(1.0);\n waitForStart();\n dropServo.setPosition(0.6);\n sleep(500);\n VuforiaOrientator();\n encoderSequence(\"dumbDrive\");\n\n\n }", "void gameStarted();", "void gameStarted();", "private void initialize() {\n\n\t\tf = new DecimalFormat(\"#.##\");\n\t\t\n\t\t/***************************************************\n\t\t * Frame Setup *\n\t\t ***************************************************/\n\t\tgame_frame = new JFrame(); \n\t\t//game_frame.setBounds(0, 0, 1920, 1080);\n\t\tgame_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tgame_frame.getContentPane().setLayout(new FlowLayout(FlowLayout.LEADING, 0, 0));\n\t\tgame_frame.setResizable(false);\n\t\t\n\t\tdoMonsterThread = true;\n\t\tdoTrapThread = true;\n\t\tdoMapThread = true;\n\n\t\t//1668\n\t\tgameEngine = new RenderEngine_tm(1668, 1080, 16, 5000);\n\t\tgameEngine.setRefreshColor(Color.LIGHT_GRAY);\n\t\tgame_frame.getContentPane().add(gameEngine); \n\t\tgameEngine.setLayout(null);\n\t\t\n\t\tlblPause = new JLabel (\"PAUSE\");\n\t\tlblPause.setFont(new Font(\"Tahoma\", Font.PLAIN, 60));\n\t\tlblPause.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblPause.setSize(375, 104);\n\t\tlblPause.setLocation(672, 454); \n\t\tgameEngine.add(lblPause);\n\t\tlblPause.setVisible(false);\n\t\t\n\t\t\n\t\tlblMouse = new JLabel(\"Mouse: \");\n\t\tlblMouse.setBounds(834, 5, 80, 14);\n\t\tgameEngine.add(lblMouse); \n\t\t\n\t\tif(debug) {\n\t\t\tlblMouseLocation = new JLabel(\"Mouse x: Mouse Y:\");\n\t\t\tlblMouseLocation.setSize(360, 28);\n\t\t\tlblMouseLocation.setLocation(10, 10);\n\t\t\tgameEngine.add(lblMouseLocation);\n\t\t}\n\t\tgameHud = new Hud_tm(this, SCREEN_WIDTH, SCREEN_HEIGHT);\n\t\tgame_frame.getContentPane().add(gameHud);\n\t\tgame_frame.pack();\n\t\t\n\t\t\n\t\t\n\t\t/**************************************************************\n\t\t * Create Map and Monster Roster *\n\t\t **************************************************************/\n\t\t//S NB ND WD EB ED WB ND NB WB NT\n\t\t\n\t\tmapStr = \"0 0 S NB WB EB EB WB NB WB EB NB ED EB NB WB EB EB WB NB WB WB NB NB ND NT\";\n\t\tmonStr = \"k 500 k 500 k 200 k 200 k 200 k 0 k 500 k 500 k 500 k 500 k 500\";\n\t\t\n\t\tfor(int i = 0; i < 30; i++) {\n\t\t\tmonStr = monStr.concat(\"k 500\");\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t/***************************************************************\n\t\t * Game Variables *\n\t\t ***************************************************************/\n\t\tgameMap = Mapper.buildMap(5000, mapStr, monStr);\n\t\t\n\t\tcollisions = new Stack<ActionBox>();\n\t\tcollision = null; \n\t\t\n\t\tgameWidth = gameEngine.getViewportWidth();\n\t\tgameHeight = gameEngine.getViewportHeight();\n\t\tscreenScrollXZone = gameWidth/50;\n\t\tscreenScrollYZone = gameHeight/50; \n\t\tmoveCamLeft = false;\n\t\tmoveCamRight = false;\n\t\tmoveCamUp = false;\n\t\tmoveCamDown = false; \n\t\tcanPlace = false;\n\t\tmouseX = 0;\n\t\tmouseY = 0;\n\t\tmode = 0;\n\t\tgoldAmt = 500;\n\t\tendSpawn = false;\n\n\t\t\n\t\t\n\t\t/***************************************************************\n\t\t * Game Object References & Initializations *\n\t\t ***************************************************************/\n\t\t\n\t\tint i, arraySize;\n\t\tTile_tm currTile;\n\t\tMonster_tm currMonster;\n\t\tTrap_tm currTrap;\n\t\tActionBox currAB;\n\t\t/************************\n\t\t * Tile Initializations *\n\t\t ************************/\n\t\t\n\t\tspawn = gameMap.getSpawnTile();\n\t\ttiles = gameMap.getTiles();\n\t\tdoors = gameMap.getDoorTiles();\n\t\ttreasures = gameMap.getTreasureTiles();\n\t\t\n\n\t\tdouble tileKey = tiles.firstKey();\n\t\tcurrTile = tiles.get(tileKey); \n\t\t \n\t\t\n\t\t\n\t\twhile(currTile != null) { \n\t\t\tgameEngine.addRenderObj(currTile);\n\t\t\tif(tiles.higherKey(tileKey) != null) {\n\t\t\t\ttileKey = tiles.higherKey(tileKey);\n\t\t\t\tcurrTile = tiles.get(tileKey);\n\t\t\t}\n\t\t\telse \n\t\t\t\tcurrTile = null;\n\t\t\t \n\t\t}\n\t\t\n\t\t\n\t\tint treTiCnt = treasures.size();\n\t\tint amountPerChest = getGoldAmt()/treTiCnt;\n\t\t\n\t\tfor(TreasureTile curr: treasures) {\n\t\t\tcurr.setTreasure(amountPerChest);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t/* Some code/method call to populate the tiles\n\t\t\n\t\tarraySize = tiles.size(); \n\t\tfor(i = 0; i < arraySize; i++) {\n\t\t\tcurr = tiles.get(i);\n\t\t\tgameEngine.addRenderObj(curr);\n\t\t}\n\t\t */\n\t\t\n\t\t/************************\n\t\t * Trap Initializations *\n\t\t ************************/\n\t\t\n\t\ttraps = new ArrayList<Trap_tm>(); \n\t\t/*\n\t\t * Some code/method call to populate the traps\n\t\t */\n\t\tarraySize = traps.size();\n\t\tfor(i = 0; i < arraySize; i++) {\n\t\t\tcurrTrap = traps.get(i);\n\t\t\tgameEngine.addRenderObj(currTrap);\n\t\t}\n\n\t\t/***************************\n\t\t * Monster Initializations *\n\t\t ***************************/ \n\t\tmonsters = new ArrayList<Monster_tm>();\n\t\tarraySize = monsters.size();\n\t\tfor(i = 0; i < arraySize; i++) {\n\n\t\t\tcurrMonster = monsters.get(i);\n\t\t\tgameEngine.addRenderObj(currMonster);\n\t\t}\n\t\t\n\t\t/*\n\t\t * Some code/method call to populate the monsters\n\t\t */\n\t\t/*****************************\n\t\t * GameBound Initializations *\n\t\t *****************************/\n\t\tgameBounds = new ArrayList<ActionBox>();\n\t\t\n\t\ttileKey = tiles.firstKey();\n\t\tcurrTile = tiles.get(tileKey);\n\t\tArrayList<ActionBox> currHits; \n\t\t\n\t\twhile(currTile != null) { \n\t\t\tcurrHits = ((Tile_tm)currTile).getHitboxAsList();\n\t\t\t\n\t\t\tfor(i = 0; i < currHits.size(); i++) {\n\t\t\t\tcurrAB = currHits.get(i); \n\t\t\t\tgameBounds.add(currAB); \n\t\t\t}\n\t\t\t\n\t\t\tif(tiles.higherKey(tileKey) != null) {\n\t\t\t\ttileKey = tiles.higherKey(tileKey);\n\t\t\t\tcurrTile = tiles.get(tileKey);\n\t\t\t}\n\t\t\telse \n\t\t\t\tcurrTile = null;\n\t\t\t \n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * Some code/method call to populate the ActionBox (psst: base it off the tile list)\n\t\t */\n\t\t\n\t\t/*************************\n\t\t * debug Initializations *\n\t\t *************************/\n\t\tif(debug) {\n\t\t\tarraySize = gameBounds.size(); \n\t\t\tfor(i = 0; i < arraySize; i++) {\n\t\t\t\tcurrAB = gameBounds.get(i);\n\t\t\t\tgameEngine.addRenderObj(currAB);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\n\t\t\n\t\t/****************************************************\n\t\t * Game Listeners *\n\t\t ****************************************************/\n\t\n\t\t/*\n\t\t * Use the mouse motion listener to accomplish any function while the mouse is moving across the game world\n\t\t */\n\t\tgameEngine.addMouseMotionListener(new MouseMotionAdapter() {\n\t\t\t\n\t\t\tpublic void mouseMoved(MouseEvent e) { \n\t\t\t\tgameEngine.requestFocus();\n\t\t\t\tmouseX = e.getX(); \n\t\t\t\tmouseY = e.getY();\n\n \n\t\t\t\t\n\t\t\t\tlblMouse.setLocation(mouseX + 8, mouseY - 5);\n\t\t\t\tif(mode== STD_MODE) {\n\t\t\t\t\tlblMouse.setText(\"\");\n\t\t\t\t}\n\t\t\t\tif(mode == REPAIR_MODE) {\n\t\t\t\t\tlblMouse.setText(\"REPAIR\");\n\t\t\t\t}\n\t\t\t\telse if(mode == SELL_MODE) {\n\t\t\t\t\tlblMouse.setText(\"SELL\");\n\t\t\t\t}\n\t\t\t\telse if(mode == BUY_MODE) {\n\t\t\t\t\tpurchase.setXPosWorld(gameEngine.getViewportX() + mouseX);\n\t\t\t\t\tpurchase.setYPosWorld(gameEngine.getViewportY() + mouseY);\n\t\t\t\t\tif(getGoldAmt() >= purchaseCost) {\n\t\t\t\t\t\tcanPlace = true;\n\t\t\t\t\t\tint i, size; \n\t\t\t\t\t\tsize = traps.size();\n\t\t\t\t\t\tRenderObj thing;\n\t\t\t\t\t\n\t\t\t\t\t\tfor(i = 0; i < size; i++) {\n\t\t\t\t\t\t\tif(traps.get(i) != null) {\n\t\t\t\t\t\t\t\tthing = traps.get(i);\n\t\t\t\t\t\t\t\tif(RenderObj.isColliding(purchase, thing)) {\n\t\t\t\t\t\t\t\t\tcanPlace = false;\n\t\t\t\t\t\t\t\t\ti = size;\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\tsize = monsters.size();\n\t\t\t\t\t\tfor(i = 0; i < size; i++) {\n\t\t\t\t\t\t\tthing = monsters.get(i);\n\t\t\t\t\t\t\tif(RenderObj.isColliding(purchase, thing)) {\n\t\t\t\t\t\t\t\tcanPlace = false;\n\t\t\t\t\t\t\t\ti = size;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsize = gameBounds.size();\n\t\t\t\t\t\tfor(i = 0; i < size; i++) {\n\t\t\t\t\t\t\tthing = gameBounds.get(i);\n\t\t\t\t\t\t\tif(RenderObj.isColliding(purchase, thing)) {\n\t\t\t\t\t\t\t\tcanPlace = false;\n\t\t\t\t\t\t\t\ti = size;\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\telse {\n\t\t\t\t\t\tcanPlace = false;\n\t\t\t\t\t}\n\t\t\t\t\tif(canPlace == false)\n\t\t\t\t\t\tpurchase.addFilter(Color.RED, 45);\n\t\t\t\t\telse {\n\t\t\t\t\t\t\n\t\t\t\t\t\tpurchase.addFilter(Color.GREEN, 45);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(debug)\n\t\t\t\t\tlblMouseLocation.setText(\"Mouse (viewport): (\" + f.format(mouseX) + \", \" + f.format(mouseY) + \")\" +\n\t\t\t\t\t\t\t\" Mouse (world): (\" + f.format(mouseX + gameEngine.getViewportX()) + \", \" + f.format(mouseY + gameEngine.getViewportY()) + \")\");\n\t\t\t\tif(mouseX < screenScrollXZone) {\n\t\t\t\t\tmoveCamRight = false;\n\t\t\t\t\tmoveCamLeft = true;\n\t\t\t\t}\n\t\t\t\telse if(mouseX > gameWidth - screenScrollXZone) {\n\t\t\t\t\tmoveCamRight = true;\n\t\t\t\t\tmoveCamLeft = false; \n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tmoveCamRight = false;\n\t\t\t\t\tmoveCamLeft = false;\n\t\t\t\t}\n\t\t\t\tif(mouseY < screenScrollYZone) {\n\t\t\t\t\tmoveCamUp = true;\n\t\t\t\t\tmoveCamDown = false; \n\t\t\t\t}\n\t\t\t\telse if(mouseY > gameHeight - screenScrollYZone) {\n\t\t\t\t\tmoveCamUp = false;\n\t\t\t\t\tmoveCamDown = true; \n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tmoveCamUp = false;\n\t\t\t\t\tmoveCamDown = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}); \n\t\t\n\t\t/*\n\t\t * The mouseListener relates to any functions that involve clicking on the game world\n\t\t */\n\t\tgameEngine.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tmouseXClick = e.getX() + (int)gameEngine.getViewportX();\n\t\t\t\tmouseYClick = e.getY() + (int)gameEngine.getViewportY();\n\t\t\t\t\n\t\t\t\tif(mode == SELL_MODE) {\n\t\t\t\t\tTrap_tm currTrap;\n\t\t\t\t\tint i; \n\t\t\t\t\tfor(i = 0; i < traps.size(); i++) {\n\t\t\t\t\t\tcurrTrap = traps.get(i); \n\t\t\t\t\t\tif(currTrap.contains(mouseXClick, mouseYClick)) {\n\t\t\t\t\t\t\ttraps.remove(i); \n\t\t\t\t\t\t\tgameEngine.removeRenderObj(currTrap);\n\t\t\t\t\t\t\tgameEngine.removeRenderObj(currTrap.getAOE());\n\t\t\t\t\t\t\tgiveGold(currTrap.tr_sell());\n\t\t\t\t\t\t\ti = traps.size();\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t\telse if(mode == REPAIR_MODE) {\n\t\t\t\t\tTrap_tm currTrap;\n\t\t\t\t\tboolean repairGet = false;\n\t\t\t\t\tint i; \n\t\t\t\t\tfor(i = 0; i < traps.size(); i++) {\n\t\t\t\t\t\tcurrTrap = traps.get(i); \n\t\t\t\t\t\tif(currTrap.contains(mouseXClick, mouseYClick)) {\n\t\t\t\t\t\t\tcurrTrap.getHealed(takeGold(150));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\trepairGet = true;\n\t\t\t\t\t\t\ti = traps.size();\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t\tif(repairGet == false) {\n\t\t\t\t\t\tDoorTile currDoor; \n\t\t\t\t\t\tfor(i = 0; i < doors.size(); i++) {\n\t\t\t\t\t\t\tcurrDoor = doors.get(i);\n\t\t\t\t\t\t\tif(currDoor.contains(mouseXClick, mouseYClick)) {\n\t\t\t\t\t\t\t\tcurrDoor.getHealed(takeGold(150));\n\t\t\t\t\t\t\t\ti = doors.size();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if(mode == STD_MODE) {\n\t\t\t\t\tTrap_tm currTrap; \n\t\t\t\t\tMonster_tm currMonster;\n\t\t\t\t\tDoorTile currDoor;\n\t\t\t\t\t\n\t\t\t\t\tint i, len;\n\t\t\t\t\tboolean oldState;\n\t\t\t\t\tlen = traps.size();\n\t\t\t\t\t//Check if a trap has focus\n\t\t\t\t\tfor(i = 0; i < len; i++) {\n\t\t\t\t\t\tcurrTrap = traps.get(i);\n\t\t\t\t\t\tif(currTrap.contains(mouseXClick, mouseYClick)) {\n\t\t\t\t\t\t\tcurrTrap.setFocus(true);\n\t\t\t\t\t\t\tcurrTrap.rotateCurrSprite();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\toldState = currTrap.isFocused();\n\t\t\t\t\t\t\tif(oldState) {\n\t\t\t\t\t\t\t\tcurrTrap.setFocus(false);\n\t\t\t\t\t\t\t\tcurrTrap.rotateCurrSprite();\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//Check if a monster has focus\n\t\t\t\t\tlen = monsters.size();\n\t\t\t\t\tfor(i = 0; i < len; i++) {\n\t\t\t\t\t\tcurrMonster = monsters.get(i);\n\t\t\t\t\t\tif(currMonster.contains(mouseXClick, mouseYClick)) {\n\t\t\t\t\t\t\tcurrMonster.setFocus(true);\n\t\t\t\t\t\t\tcurrMonster.rotateCurrSprite();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\toldState = currMonster.isFocused();\n\t\t\t\t\t\t\tif(oldState) {\n\t\t\t\t\t\t\tcurrMonster.setFocus(false);\n\t\t\t\t\t\t\tcurrMonster.rotateCurrSprite();\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//Check if a door has focus- also, a double click will open it or close it.\n\t\t\t\t\tlen = doors.size();\n\t\t\t\t\tfor(i = 0; i < len; i++) {\n\t\t\t\t\t\tcurrDoor = doors.get(i);\n\t\t\t\t\t\tif(currDoor.contains(mouseXClick, mouseYClick)) { \n\t\t\t\t\t\t\tcurrDoor.setFocus(true);\n\t\t\t\t\t\t\tcurrDoor.redrawCurrSprite();\n\t\t\t\t\t\t\tif(e.getClickCount() == 2)\n\t\t\t\t\t\t\t\tcurrDoor.toggle();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\toldState = currDoor.isFocused();\n\t\t\t\t\t\t\tif(oldState) {\n\t\t\t\t\t\t\t\tcurrDoor.setFocus(false);\n\t\t\t\t\t\t\t\tcurrDoor.redrawCurrSprite();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t \n\t\t\t\t\t\n\t\t\t\t\tif(debug) {\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\n\t\t\t\t\t\tTile_tm curr; \n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\n\t\t\t\t\t\tdouble tileKey = tiles.firstKey();\n\t\t\t\t\t\tcurr = tiles.get(tileKey); \n\t\t\t\t\t\t \n\t\t\t\t\t\t\n\t\t\t\t\t\twhile(curr != null) { \n\t\t\t\t\t\t\tif(curr.contains(mouseXClick, mouseYClick)) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"This tile's treasure value is: \" + curr.getFScore(Tile_tm.TREASURE));\n\t\t\t\t\t\t\t\tSystem.out.println(\"This tile's spawn value is: \" + curr.getFScore(Tile_tm.SPAWN));\n\t\t\t\t\t\t\t\tcurr = null;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(tiles.higherKey(tileKey) != null) {\n\t\t\t\t\t\t\t\ttileKey = tiles.higherKey(tileKey);\n\t\t\t\t\t\t\t\tcurr = tiles.get(tileKey);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\tcurr = null;\n\t\t\t\t\t\t\t//while(curr == null && (tileKey == gameMap.getNortherlyKey() || tileKey == gameMap.getSoutherlyKey() || tileKey == 0)) {\n\t\t\t\t\t\t\t//\ttiles.higherKey(tileKey);\n\t\t\t\t\t\t\t//\tcurr = tiles.get(tileKey);\n\t\t\t\t\t\t\t//}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\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}\n\t\t\t\t}\n\t\t\t\tif(canPlace == true && mode == BUY_MODE) {\n\t\t\t\t\tpurchase.removeFilter();\n\t\t\t\t\tsetMode(STD_MODE);\n\t\t\t\t\ttakeGold(purchaseCost);\n\t\t\t\t\t\n\t\t\t\t\tswitch(purchaseType) {\n\t\t\t\t\t\tcase MONSTER:\n\t\t\t\t\t\t\tmonsters.add((Monster_tm)purchase);\n\t\t\t\t\t\t\tpurchase = null;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase TRAP:\n\t\t\t\t\t\t\ttraps.add((Trap_tm)purchase);\n\t\t\t\t\t\t\t((Trap_tm)purchase).tr_place();\n\t\t\t\t\t\t\tif(debug) { \n\t\t\t\t\t\t\t\tgameEngine.addRenderObj(((Trap_tm)purchase).getAOE());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tpurchase = null;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase TILE:\n\t\t\t\t\t\t\ttiles.put(tiles.lastKey() + 1, (Tile_tm)purchase);\n\t\t\t\t\t\t\tpurchase = null;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t/*\n\t\t * The gameHud listener is for anything to do with moving the mouse over the gameHud\n\t\t */\n\t\tgameHud.addMouseMotionListener(new MouseMotionAdapter() {\n\t\t\tpublic void mouseMoved(MouseEvent e) {\n\t\t\t\tmoveCamRight = false;\n\t\t\t}\n\t\t});\n\t\t\n\t\t/*\n\t\t * The key listener is for responding to keyPress events. \n\t\t * If you wanted to customize the controls, you could have a set of ints set by some sort of\n\t\t * Menu the player has access to? To change a control, you can just poll the player. But that \n\t\t * Is beyond the scope of this game\n\t\t */\n\t\tgameEngine.addKeyListener(new KeyAdapter() {\n\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_A) {\n\t\t\t\t\tmoveCamLeftKey = true;\n\t\t\t\t}\n\t\t\t\tif(e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_W) {\n\t\t\t\t\tmoveCamUpKey = true;\n\t\t\t\t}\n\t\t\t\tif(e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_D) {\n\t\t\t\t\tmoveCamRightKey = true;\n\t\t\t\t}\n\t\t\t\tif(e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_S) {\n\t\t\t\t\tmoveCamDownKey = true;\n\t\t\t\t}\n\t\t\t\tif(e.getKeyCode() == KeyEvent.VK_ESCAPE) {\n\t\t\t\t\tif(debug) {\n\t\t\t\t\t\tswitch(mode) {\n\t\t\t\t\t\t\tcase STD_MODE: System.out.println(\"Standard mode\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase REPAIR_MODE: System.out.println(\"Repair Mode\");break ;\n\t\t\t\t\t\t\tcase SELL_MODE: System.out.println(\"Sell Mode\"); break;\n\t\t\t\t\t\t\tcase PAUSE_MODE: System.out.println(\"Pause Mode\"); break;\n\t\t\t\t\t\t\tcase BUY_MODE: System.out.println(\"BUY_MODE\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(mode != STD_MODE) {\n\t\t\t\t\t\tif(mode == BUY_MODE) {\n\t\t\t\t\t\t\tgameEngine.removeRenderObj(purchase);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsetMode(STD_MODE);\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\tsetMode(PAUSE_MODE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\tif(e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_A) {\n\t\t\t\t\tmoveCamLeftKey = false;\n\t\t\t\t}\n\t\t\t\tif(e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_W) {\n\t\t\t\t\tmoveCamUpKey = false;\n\t\t\t\t}\n\t\t\t\tif(e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_D) {\n\t\t\t\t\tmoveCamRightKey = false;\n\t\t\t\t}\n\t\t\t\tif(e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_S) {\n\t\t\t\t\tmoveCamDownKey = false;\n\t\t\t\t}\n\t\t\t\tif(e.getKeyCode() == KeyEvent.VK_Q) {\n if(purchase != null) {\n if (((Trap_tm)purchase).get_facing() != 0) {\n ((Trap_tm)purchase).set_facing(((Trap_tm)purchase).get_facing() - 1);\n } else {\n ((Trap_tm)purchase).set_facing(3);\n }\n purchase.setCurrSpriteCol(((Trap_tm)purchase).get_facing());\n }\n }\n\n if(e.getKeyCode() == KeyEvent.VK_E) {\n if(purchase != null) {\n if (((Trap_tm)purchase).get_facing() != 3) {\n ((Trap_tm)purchase).set_facing(((Trap_tm)purchase).get_facing() + 1);\n } else {\n ((Trap_tm)purchase).set_facing(0);\n }\n purchase.setCurrSpriteCol(((Trap_tm)purchase).get_facing());\n }\n }\n if(e.getKeyCode() == KeyEvent.VK_B) {\n \tTrap_Ballista nuBallista = new Trap_Ballista(getGameBoundary() - 100, getGameBoundary() - 100, 0);\n \tmakePurchase(nuBallista, TRAP, nuBallista.getTr_cost());\n }\n\t\t\t}\n\n\n\t\t\tpublic void keyTyped(KeyEvent arg0) { }\n\t\t\t\n\t\t});\n\t\t\n\t\t\n\t\t\n\t\t\t\n\t\tgameEngine.setFocusable(true);\n\t\t\n\t\t\n\t\t\n\t\t/******************************************************\n\t\t * *\n\t\t * *\n\t\t * GAME EXECUTION THREADS *\n\t\t * * \n\t\t * *\n\t\t ******************************************************/\n\t\t//The monster thread handles everything related to monsters- their movements, their health, possible additions or removals...\n\t\tmonsterThread = new Thread() {\n\t\t\tpublic void run() {\n\t\t\t\twhile(true) {\n\t\t\t\t\tif(doMonsterThread) {\n\t\t\t\t\t\tint output;\n\t\t\t\t\t\tint response = -1;\n\t\t\t\t\t\tfor(monsterIt = 0; monsterIt < monsters.size(); monsterIt++) {\n\t\t\t\t\t\t\tmonster = monsters.get(monsterIt);\n\t\t\t\t\t\t\tif(monster != null) { \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\tif(monster.isDead()) { \n\t\t\t\t\t\t\t\t\tif(monster.isLooted() == false) {\n\t\t\t\t\t\t\t\t\t\tsplitTreasure(monster.getLoot());\n\t\t\t\t\t\t\t\t\t\tmonster.setLooted(true);\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\telse if(monster.isDespawned() == false) { \n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\ttile = gameMap.getTile(monster.getXPosWorld(), monster.getYPosWorld());\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Current monster is \" + monster + \" With \" + monster.getLoot() + \" plunder! Standing on \" + tile);\n\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\tfor(ActionBox currBound: gameBounds) {\n\t\t\t\t\t\t\t\t\t\tif(RenderObj.isColliding(monster, currBound)) {\n\t\t\t\t\t\t\t\t\t\t\tif(currBound.doBlock()) {\n\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Hello?\");\n\t\t\t\t\t\t\t\t\t\t\t\tmonster.revertWorldPos(); \n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tcollision = currBound;\n\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\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\toutput = monster.choice(collision, tile);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(output == Monster_tm.KILLEDTARGET) {\n\t\t\t\t\t\t\t\t\t\tcollision = null;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(output == Monster_tm.CONFIRM_TREASURE){\n\t\t\t\t\t\t\t\t\t\tint TID = tile.getNearestTID();\n\t\t\t\t\t\t\t\t\t\tif(TID != -1) {\n\t\t\t\t\t\t\t\t\t\t\tif(treasures.get(TID).getTreasure() > 0) {\n\t\t\t\t\t\t\t\t\t\t\t\tmonster.reply(Monster_tm.TARGET_HAS_TREASURE);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(monster.isDead()) {\n\t\t\t\t\t\t\t\t\t\tgiveGold(monster.lootAmt());\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\n\\n\\n\");\n\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 * Monster Move action\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 * Monster damage-taking actions\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 * Monster attack actions\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 * Monster treasure-taking actions\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\tif(endSpawn == false) {\n\t\t\t\t\t\t\tmonster = spawn.spawn();\n\t\t\t\t\t\t\tif(monster != null) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"New monster!\");\n\t\t\t\t\t\t\t\tmonsters.add(monster);\n\t\t\t\t\t\t\t\tgameEngine.addRenderObj(monster);\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\tif(debug)\n\t\t\t\t\t\t\t\t\tgameEngine.addRenderObj(monster.getHitbox());\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\tif(monster.isLastMonster()) {\n\t\t\t\t\t\t\t\t\tendSpawn = true;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmonster = null;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\t\t \n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsleep(20);\n\t\t\t\t\t}\n\t\t\t\t\tcatch(InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\t//Trap Thread handles trap working- placing or removing damage zones, etc. \n\t\ttrapThread = new Thread() {\n\t\t\tpublic void run() {\n\t\t\t\twhile(true) {\n\t\t\t\t\tif(doTrapThread) { \n\t\t\t\t\t\tfor(trapIt = 0; trapIt < traps.size(); trapIt++) {\n\t\t\t\t\t\t\ttrap = traps.get(trapIt);\n\t\t\t\t\t\t\tif(trap != null) {\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\n\t\t\t\t\t\t\t\ttrap.acquireTarget(monsters);\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\ttrap.acquireTarget(monsters);\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\tAmmo_tm ammo = trap.tr_attack(monsters);\n\t\t\t\t\t\t\t\tif (ammo != null) {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"POW\");\n\t\t\t\t\t\t\t\t\tammo.fire();\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 * Trap cooldown actions\n\t\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t\t/*if(trap.isRepairable() && getGoldAmt() > 10) {\n\t\t\t\t\t\t\t\t\ttrap.setTr_currentHealth(trap.getTr_currentHealth() + 10);\n\t\t\t\t\t\t\t\t\ttakeGold(10);\n\t\t\t\t\t\t\t\t\tif(trap.getTr_currentHelp() >= trap.getTr_maximumHealth()) \n\t\t\t\t\t\t\t\t\t\ttrap.setRepairable(false);\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\ttry {\n\t\t\t\t\t\tsleep(20);\n\t\t\t\t\t}\n\t\t\t\t\tcatch(InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\t//mapThread handles the workings of the map- routing, viewport adjustments, all that. \n\t\tmapThread = new Thread() {\n\t\t\tpublic void run() {\n\t\t\t\twhile(true) {\n\t\t\t\t\tif(doMapThread) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Put map actions(?) here\n\t\t\t\t\t */\n\t\t\t\t\t\t/*int sumTreas = 0;\n\t\t\t\t\t\tfor(TreasureTile curr: treasures) { \n\t\t\t\t\t\t\tsumTreas += curr.getTreasure();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tsetGoldAmt(sumTreas);\n\t\t\t\t\t\t\n\t\t\t\t\t\tgameHud.setGold(getGoldAmt());\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\tfor(TreasureTile curr: treasures) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttakeGold(curr.getTreasureLost());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t\t\n\t\t\t\t\t\tgameHud.setGold(getGoldAmt());\n\t\t\t\t\t\t\n\t\t\t\t\t\t/*********************\n\t\t\t\t\t\t * Scrolling options *\n\t\t\t\t\t\t *********************/\n\t\t\t\t\t\tif(moveCamLeft) \n\t\t\t\t\t\t\tgameEngine.setViewportX(gameEngine.getViewportX() - (screenScrollXZone - mouseX)/3.8);\n\t\t\t\t\t\telse if(moveCamRight) \n\t\t\t\t\t\t\tgameEngine.setViewportX(gameEngine.getViewportX() + (mouseX%(gameWidth - screenScrollXZone))/3.8);\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(moveCamLeftKey) {\n\t\t\t\t\t\t\tgameEngine.setViewportX(gameEngine.getViewportX() - 8);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(moveCamRightKey) \n\t\t\t\t\t\t\tgameEngine.setViewportX(gameEngine.getViewportX() + 8);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(moveCamUp) {\n\t\t\t\t\t\t\tgameEngine.setViewportY(gameEngine.getViewportY() - (screenScrollYZone - mouseY)/3.8); \n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(moveCamDown) {\n\t\t\t\t\t\t\tgameEngine.setViewportY(gameEngine.getViewportY() + (mouseY%(gameHeight - screenScrollYZone))/3.8);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\n\t\t\t\t\t\tif(moveCamUpKey) {\n\t\t\t\t\t\t\tgameEngine.setViewportY(gameEngine.getViewportY() - 8); \n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(moveCamDownKey) {\n\t\t\t\t\t\t\tgameEngine.setViewportY(gameEngine.getViewportY() + 8);\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 * End Scrolling Options *\n\t\t\t\t\t\t *************************/\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsleep(20);\n\t\t\t\t\t}\n\t\t\t\t\tcatch(InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\t\n\n \n\t\tgameEngine.startRender(); \n\t\tmonsterThread.start();\n\t\ttrapThread.start();\n\t\tmapThread.start();\n\t}", "public void newGame()\n\t{\n\t\tplanet.setLevel(0);\n\t\tship.resetScore();\n\t\tstopThreads();\n\t\tplanet = new Planet(750,600);\n\t\tship = new Ship(20.0,750,600,planet);\n\t\tbuttonPanel.update(ship,planet);\n\t\tgamePanel.update(ship,planet);\n\n\t\trestartThreads();\n\t}", "public void forward() {\n\t\t\n\t\tif(hasEaten()) {\n\t\t\taddBodyPart();\n\t\t} else {\n\t\t\tshuffleBody();\n\t\t}\n\t\t\n\t\tthis.setLocation(this.getX()+dX, this.getY()+dY); // move head\n\t\tthis.display(w); \n\t}", "public void start(){\n\t\tthis.lastUpdate = System.currentTimeMillis();\n\t\tthis.millisIntoFrame=0;\n\t\tthis.currentFrame=0;\n\t}", "@Override\n public void resetGame() {\n\n }", "public void interactWhenLeaving() {\r\n\t\t\r\n\t}", "@Override\r\n public void initialRun(){\r\n tProcess = parser.nextSimProcessTime();\r\n System.out.println();\r\n boolean goRun=true;\r\n while(goRun){\r\n\r\n if(currentTime == tProcess){\r\n mc = parser.simProcess(mc);\r\n tProcess = parser.nextSimProcessTime();\r\n }\r\n mc.doOneStep();\r\n\r\n if(makeVideo){\r\n if(currentTime%FrameRate ==0){\r\n\r\n vid.addLatticeFrame(mc.getSimSystem().getSystemImg());\r\n makeVideo = vid.isWritten();\r\n }\r\n }\r\n\r\n if((currentTime % 10) ==0){System.out.println(\"t:\"+currentTime+\" M:\"+mc.getM());}\r\n currentTime++;\r\n\r\n\r\n goRun = !(mc.nucleated());\r\n if(mc.getM()<0 && currentTime> 300){goRun=false;}\r\n if(currentTime > maxT){goRun= false;}\r\n }\r\n\r\n if(makeVideo){\r\n vid.writeVideo();\r\n }\r\n }", "public frame() {\r\n\t\tframeOwner = 0;\r\n\t\tassignedProcess = 0;\r\n\t\tpageNumber = 0;\r\n\t}", "@Override\r\n\tpublic void gameLoopLogic(double time) {\n\r\n\t}", "void finishFrame() {\n\t\tcontrollers[CONTROLLER_OLD].set(controllers[CONTROLLER_NEW]);\n\t}", "public void resetWorld(){\r\n\t\tSystem.out.println(\"Resetting world\");\r\n\t\tengine.removeAllEntities();\r\n\t\tlvlFactory.resetWorld();\r\n\t\t\r\n\t\tplayer = lvlFactory.createPlayer(cam);\r\n\t\tlvlFactory.createFloor();\r\n lvlFactory.createWaterFloor();\r\n \r\n int wallWidth = (int) (1*RenderingSystem.PPM);\r\n int wallHeight = (int) (60*RenderingSystem.PPM);\r\n TextureRegion wallRegion = DFUtils.makeTextureRegion(wallWidth, wallHeight, \"222222FF\");\r\n lvlFactory.createWalls(wallRegion); //TODO make some damn images for this stuff \r\n \r\n // reset controller controls (fixes bug where controller stuck on directrion if died in that position)\r\n controller.left = false;\r\n controller.right = false;\r\n controller.up = false;\r\n controller.down = false;\r\n controller.isMouse1Down = false;\r\n controller.isMouse2Down = false;\r\n controller.isMouse3Down = false;\r\n\t\t\r\n\t}", "@Override\n public void actionPerformed(ActionEvent evt) {\n\t\t\t\tv = new SpaceShip(120, 525, 50, 50,1);\t// Create Player1\n\t\t\t\tv2 = new SpaceShip(230, 525, 50, 50,2); // Create Player2\n\t\t\t\tgp = new GamePanel();\n\t\t\t\t//New Game 2 players mode\n\t\t\t\tengine = new GameEngine(gp, v, v2,2);\n\n\t\t\t\t//Remove button's panel from Main frame\n\t\t\t\tframe.getContentPane().remove(buttonPanel);\n\n\t\t\t\t//add KeyListener and GamePanel to Main frame\n\t\t\t\tframe.addKeyListener(engine);\n\t\t\t\tframe.getContentPane().add(gp,BorderLayout.CENTER);\n\n\t\t\t\t//Start timmer\n\t\t\t\tengine.start();\n\n\t\t\t\t//Setting MainFrame and re-panting\n\t\t\t\tframe.validate();\n\t\t\t\tframe.repaint();\n\n\t\t\t\t//Eable KeyListener\n\t\t\t\tframe.requestFocus();\n }", "public void currentWorld(WumpusWorld world) throws RemoteException {\n\t\twidth = world.getWidth();\n\t\theight = world.getHeight();\n\t\tif (frame == null) {\n\t\t\tframe = new Frame();\n\t\t\tframe.addWindowListener(new WindowAdapter() {\n\t\t\t\tpublic void windowClosing(WindowEvent evt) {\n\t\t\t\t\tframe.dispose();\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t});\n\t\t\tframe.setTitle(\"The Wumpus Monitor\");\n\t\t\tframe.setLayout(new GridLayout(width * 2, height * 2));\n\t\t\tDimension d = Toolkit.getDefaultToolkit().getScreenSize();\n\t\t\tframe.setBounds(0, 0, d.width - 1, d.height - 1);\n\t\t} else {\n\t\t\tframe.removeAll();\n\t\t}\n\t\trooms = new DirectionalPanel[width][height][8];\n\t\tfor (int row = 0; row < width; row++) {\n\t\t\tfor (int col = 0; col < height; col++) {\n\t\t\t\trooms[row][col][0] = new DirectionalPanel(-1,\n\t\t\t\t\t\t\t\t\t\tImagePanel.NORTH | ImagePanel.WEST);\n\t\t\t\trooms[row][col][1] = new DirectionalPanel(-1,\n\t\t\t\t\t\t\t\t\t\tImagePanel.NORTH | ImagePanel.EAST);\n\t\t\t\trooms[row][col][2] = new DirectionalPanel(-1,\n\t\t\t\t\t\t\t\t\t\tImagePanel.SOUTH | ImagePanel.WEST);\n\t\t\t\trooms[row][col][3] = new DirectionalPanel(-1,\n\t\t\t\t\t\t\t\t\t\tImagePanel.SOUTH | ImagePanel.EAST);\n\t\t\t\tfor (int k = 4; k < 8; k++) {\n\t\t\t\t\trooms[row][col][k] = new DirectionalPanel(-1);\n\t\t\t\t}\n\t\t\t\tagentPositions.put(new Point(row, col), new HashSet());\n\t\t\t}\n\t\t}\n\t\tfor (int row = 0; row < world.getWidth(); row++) {\n\t\t\tfor (int turn = 0; turn < 2; turn++) {\n\t\t\t\tfor (int col = 0; col < world.getHeight(); col++) {\n\t\t\t\t\tframe.add(rooms[height - row - 1][col][2*turn]);\n\t\t\t\t\tframe.add(rooms[height - row - 1][col][2*turn + 1]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int row = 0; row < width; row++) {\n\t\t\tfor (int col = 0; col < height; col++) {\n\t\t\t\tRoom room = world.getRoom(row, col);\n\t\t\t\tif (room.getPit()) {\n\t\t\t\t\taddImage(row, col, PIT_FILE, PIT_FILE);\n\t\t\t\t}\n\t\t\t\tif (room.getGold()) {\n\t\t\t\t\taddImage(row, col, GOLD_FILE, GOLD_FILE);\n\t\t\t\t}\n\t\t\t\tWumpus w = room.getWumpus();\n\t\t\t\tif (w != null) {\n\t\t\t\t\taddImage(row, col, w.getName(), WUMPUS_FILE);\n\t\t\t\t\tsetDirection(row, col, w.getName(), w.getDirection());\n\t\t\t\t\tPoint pos = new Point(w.getRow(), w.getColumn());\n\t\t\t\t\tagents.put(w.getName(), pos);\n\t\t\t\t\tSet s = (Set) agentPositions.get(pos);\n\t\t\t\t\ts.add(w);\n\t\t\t\t\tcheckStench(row + 1, col - 1, row - 1, col + 1);\n\t\t\t\t}\n\t\t\t\tSet explorers = room.getExplorers();\n\t\t\t\tfor (Iterator it = explorers.iterator(); it.hasNext(); ) {\n\t\t\t\t\tExplorer e = (Explorer) it.next();\n\t\t\t\t\taddImage(row, col, e.getName(), EXPLORER_FILE);\n\t\t\t\t\tsetDirection(row, col, e.getName(), e.getDirection());\n\t\t\t\t\tPoint pos = new Point(e.getRow(), e.getColumn());\n\t\t\t\t\tagents.put(e.getName(), pos);\n\t\t\t\t\tSet s = (Set) agentPositions.get(pos);\n\t\t\t\t\ts.add(e);\n\t\t\t\t}\n\t\t\t\tboolean breeze = false;\n\t\t\t\tif (row > 0 && world.getRoom(row - 1, col).getPit()) {\n\t\t\t\t\tbreeze = true;\n\t\t\t\t} else if (row < world.getWidth() - 1 &&\n\t\t\t\t\t\t\t\t\tworld.getRoom(row + 1, col).getPit()) {\n\t\t\t\t\tbreeze = true;\n\t\t\t\t} else if (col > 0 && world.getRoom(row, col - 1).getPit()) {\n\t\t\t\t\tbreeze = true;\n\t\t\t\t} else if (col < world.getHeight() - 1 &&\n\t\t\t\t\t\t\t\t\tworld.getRoom(row, col + 1).getPit()) {\n\t\t\t\t\tbreeze = true;\n\t\t\t\t}\n\t\t\t\tif (breeze) {\n\t\t\t\t\taddImage(row, col, BREEZE_FILE, BREEZE_FILE);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tframe.show();\n\t\tthis.enabled = true;\n\t}", "@Override\r\n public int playGameLoop() {\r\n return 0;\r\n }", "protected void createFrames() {\n createStandingRight();\n createStandingLeft();\n createWalkingRight();\n createWalkingLeft();\n createJumpingRight();\n createJumpingLeft();\n createDying();\n }", "private Frame3() {\n\t}", "public void run (){\n\t\t\t\t\t\t\t\t\tgame.setScreen(game.ui);\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\n\t\t\t\t\t\t\t\t}", "private void LeftLeftLeft() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<1) {\n\t\t\t\tRobot.drivebase.run(.53, -.53);\n\t\t\t}\n \t\tif (Robot.autotime.get()>=1) {\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\n \t}\n\t\t}", "void toyPlacingfStuff(){\n //nu stiu daca asta ramane\n gettingBackToInitial();\n nearingTheWallBefore();\n parallelToTheWall();\n actualToyPlacing();\n }", "@Override\n public void livingTick() {\n super.livingTick();\n }", "public void onStateLeft();", "private void newGame()\r\n {\r\n //close the current screen\r\n screen.dispose();\r\n //start back at the set up menu\r\n SetupView screen = new SetupView();\r\n SetupController controller = new SetupController(screen);\r\n screen.registerObserver(controller);\r\n }", "void gettingBackToInitial(){\n robot.setDrivetrainPosition(-hittingMineralDistance, \"translation\", 1.0);\n }", "@Override\n public void runOpMode() throws InterruptedException {\n hMap(hardwareMap);\n ElapsedTime time = new ElapsedTime();\n\n\n\n markerDeploy.setPosition(0.25);\n latch.setPosition(0.25);\n rightBoxRotate.setPosition(.345);\n leftBoxRotate.setPosition(.655);\n\n\n /** Wait for the game to begin */\n telemetry.addData(\">\", \"Press Play to start tracking\");\n telemetry.update();\n waitForStart();\n\n rightBoxRotate.setPosition(0.15);\n leftBoxRotate.setPosition(0.85);\n\n motorArmLeft.setPower(0.5);\n motorArmRight.setPower(-0.5);\n Thread.sleep(1100);\n motorArmLeft.setPower(0);\n motorArmRight.setPower(0);\n\n\n Thread.sleep(100);\n\n\n // moveTo(0.4,20);\n\n\n // Thread.sleep(1000);\n\n\n rightBoxRotate.setPosition(.345);\n leftBoxRotate.setPosition(.655);\n\n Thread.sleep(100);\n\n motorArmLeft.setPower(0.5);\n motorArmRight.setPower(-0.5);\n Thread.sleep(1150);\n motorArmLeft.setPower(0);\n motorArmRight.setPower(0);\n\n Thread.sleep(250);\n\n setMotors(-0.4,-0.4);\n Thread.sleep(250);\n setMotors(0,0);\n\n Thread.sleep(250);\n\n motorArmLeft.setPower(0.5);\n motorArmRight.setPower(-0.5);\n Thread.sleep(475);\n motorArmLeft.setPower(0);\n motorArmRight.setPower(0);\n //up\n //servo init position\n Thread.sleep(250);\n\n motorArmLeft.setPower(-0.5);\n motorArmRight.setPower(0.5);\n Thread.sleep(200);\n motorArmLeft.setPower(0);\n motorArmRight.setPower(0);\n\n Thread.sleep(100);\n\n moveTo(0.4,200);\n\n// Thread.sleep(100);\n\n// rightBoxRotate.setPosition(0.15);\n// leftBoxRotate.setPosition(0.85);\n\n Thread.sleep(100);\n manip.setPower(1);\n }", "@Override\n public void enterModel(org.sdxchange.dynamo.parser4.DynamoParser.ModelContext ctx)\n {\n XFrame frame = new XFrame(\"defaultModule\");\n frame.setSimulationName(simulationName);\n frameIndex.put(frame.getName(), frame);\n if (defaultModule != null){ // it might be occupied by a macro declaration frame.\n System.err.println(\"FrameHandling Error, current frame not null at stgart of default module\");\n }\n currentFrame = frame;\n defaultModule = frame;\n }", "public void teleopPeriodic() \n {\n // NIVision.Rect rect = new NIVision.Rect(10, 10, 100, 100);\n /*\n NIVision.IMAQdxGrab(session, frame, 1);\n //NIVision.imaqDrawShapeOnImage(frame, frame, rect,\n // DrawMode.DRAW_VALUE, ShapeMode.SHAPE_OVAL, 0.0f);\n */\n \n //cam.getImage(frame);\n //camServer.setImage(frame);\n \n //CameraServer.getInstance().setImage(frame);\n \n if(verticalLift.limitSwitchHit())\n verticalLift.resetEnc();\n \n Scheduler.getInstance().run();\n }", "private void newGame ()\n {\n this.game.abort ();\n try\n {\n Thread.sleep(50);\n }catch (InterruptedException e)\n { \n Logger.getLogger(AsteroidsFrame.class.getName()).log(Level.SEVERE, \"Could not sleep before initialing a new game.\");\n }\n this.game.initGameData ();\n }", "private void halt() {\n robot.leftFront.setPower(0);\n robot.leftBack.setPower(0);\n robot.rightFront.setPower(0);\n robot.rightBack.setPower(0);\n }", "@Override\n public void newGame() {\n //TODO Implement this method\n }", "public void simulation(){\n GameInformation gi = this.engine.getGameInformation();\n Point ball = gi.getBallPosition();\n Player playerSelected;\n int xTemp;\n team = gi.getTeam(ball.x , ball.y);\n\n //Attack\n if(team == gi.activeActor){\n selectAttackerPlayer(gi.getPlayerTeam(gi.activeActor));\n doAttackMoove(playerOne.getPosition(), gi.cells[(int) playerOne.getPosition().getX()][(int) playerOne.getPosition().getY()].playerMoves);\n selectProtectPlayer(gi.getPlayerTeam(gi.activeActor));\n doProtectMoove(playerTwo.getPosition(), playerOne.getPosition() ,gi.cells[(int) playerTwo.getPosition().getX()][(int) playerTwo.getPosition().getY()].playerMoves);\n playerOne = null;\n playerTwo = null;\n this.engine.next();\n }\n else{//Defense\n selectCloserPlayer(gi.getPlayerTeam(gi.activeActor));\n doDefenseMoove(playerOne.getPosition(), this.engine.getGameInformation().getBallPosition() ,gi.cells[(int) playerOne.getPosition().getX()][(int) playerOne.getPosition().getY()].playerMoves);\n selectCloserPlayer(gi.getPlayerTeam(gi.activeActor));\n doDefenseMoove(playerOne.getPosition(), this.engine.getGameInformation().getBallPosition() ,gi.cells[(int) playerOne.getPosition().getX()][(int) playerOne.getPosition().getY()].playerMoves);\n TacklAction tackl = new TacklAction();\n tackl.setSource(playerOne.getPosition());\n VisualArea[] area;\n if ( area = tackl.getVisualArea(this.engine.getGameInformation() ) != null ){\n tackl.setDestination(area[0]);\n this.engine.performAction( tackl );\n }\n\n tackl.setSource(playerTwo.getPosition());\n\n if ( area = tackl.getVisualArea(this.engine.getGameInformation() ) != null ){\n tackl.setDestination(area[0]);\n this.engine.performAction( tackl );\n }\n playerOne = null;\n playerTwo = null;\n }\n }", "@Override\n\tpublic void start()\n\t{\n\t\tarena = \"scenarios/boxpushing/arena/pioneer.controller.arena.txt\"; \n\n\t\t\n\t\tschedule.reset();\n\n\t\tsuper.start();\n\n\t\tresetBehavior();\n\n\t}", "public RobotEngine (){\r\n\t\tthis.fuel = 100;\r\n\t\tthis.recycledMaterial = 0;\r\n\t\tthis.container = new ItemContainer ();\r\n\t\tthis.direction = Direction.NORTH;\r\n\t\tthis.navega = new NavigationModule();\r\n\t}", "@Override\n public void buildAndSetGameLoop() {\n }", "private void LeftRightLeft() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<1) {\n\t\t\t\tRobot.drivebase.run(.53, -.53);\n\t\t\t}\n \t\tif (Robot.autotime.get()>=1) {\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\n \t}\n \t}", "public abstract void turnLeft();", "@Override\n protected void end() {\n Robot.SCISSOR.extendLift(0);\n }", "public static void main(String[] args) {\n Map map = Experiment.getAverageMapManyHoles();\n ArrayList<AbstractAgent> agents = new ArrayList<>();\n JFrame frame = new JFrame();\n Floor floor = map.getFloors().iterator().next();\n\n MapViewPanel panel = new MapViewPanel(map, agents);\n KeyboardInputListener l = new KeyboardInputListener();\n frame.addKeyListener(l);\n\n MinimalPathOverseer overseer = new MinimalPathOverseer(map);\n panel.setMinimalPathOverseer(overseer);\n for(int i = 0 ; i < overseer.getAmountOfAgents(); i++)\n {\n agents.add(overseer.getAgent(i));\n }\n\n Engine simulationEngine = new Engine(map, agents, panel, 60);\n\n// CoordinatorEvaderKillKillKillEmAll hunter = new CoordinatorEvaderKillKillKillEmAll(simulationEngine,map, floor, map.getEvaderSpawnLocation(), Direction.SOUTH, 5,\n// EngineConstants.VISION_RANGE, EngineConstants.VISION_ANGLE, agents,false);\n// hunter.setViewPort(panel);\n\n //agents.add(new RandomAgent(map, floor, new Vector2D(200.0, 100.0), Direction.NORTH, 5, 100, 120));\n agents.add(new UserAgent(map, floor, new Vector2D(200.0, 320.0), Direction.NORTH, 5, EngineConstants.VISION_RANGE, EngineConstants.VISION_ANGLE, l, true));\n //agents.add(new RandomAgent(map, floor, new Vector2D(200.0, 320.0), Direction.NORTH, 5, EngineConstants.VISION_RANGE, EngineConstants.VISION_ANGLE, true));\n// agents.add(new DistanceAgent(map, floor, map.getEvaderSpawnLocation(), Direction.NORTH, EngineConstants.AGENT_RADIUS, EngineConstants.VISION_RANGE, EngineConstants.VISION_ANGLE));\n\n\n frame.getContentPane().add(panel);\n frame.pack();\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n frame.setVisible(true);\n Future<Integer> f = simulationEngine.start();\n while (!f.isDone()){\n try{\n Thread.sleep(1000);\n }\n catch (Exception e){\n // lol\n }\n }\n try{\n System.out.printf(\"iterations: %d\", f.get());\n }\n catch (Exception lol){\n lol.printStackTrace();\n }\n\n\n //drawFrame(frame, map, visibilityGraph, null);\n }", "@Override\n\tpublic void onSimulationComplete()\n\t{\n\t}", "void openSuperMarketSimulation()\r\n\t{\n\t\t\r\n\t\tqueueManager = new QueueManager(shoppingQueue);\r\n\t\tdataManager = new DataCollector();\r\n\t\ttimerLoop.start();\r\n\t\tsuperMarketTime.timerStart();\r\n//\t\twhile(timerLoop.isRunning())\r\n//\t\t{\r\n//\t\t\t\r\n//\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//CLOSE THE MARKET :(((\r\n\t}", "@Override\n public void loop() { //Starts this loop after you press the START Button\n /**\n * Functional control of up down lift with no limit switches Meet 0 ready\n */\n double liftposition = robot.liftUpDown.getCurrentPosition();\n double liftrotposition = robot.liftRotate.getCurrentPosition();\n telemetry.addData(\"Lift Position\",\"%5.2f\",liftposition);\n telemetry.addData(\"LiftRot Position\", \"%5.2f\", liftrotposition);\n // telemetry.addData(\"Block Stack\", BlockStack);\n telemetry.update();\n\n/**Main drive controls\n * Driver 1\n */\n\n/**\n * Drag servos\n */\n if (gamepad1.a){ //release\n robot.drag1.setPosition(0);\n robot.drag2.setPosition(1);\n } else if (gamepad1.b){//grab\n robot.drag1.setPosition(1);\n robot.drag2.setPosition(0);\n }\n\n/**Mast and Lift controls\n *\n *\n * Driver Two\n *\n *\n*/\n\n/**\n * Need controls to\n * Maybe predetermined locations based on number of pushes of a button.\n */\n\n /**\n * Functional arm rotation with limit switches and encoder limits. Meet 2 ready\n */\n\n //Twists lift up after verifying that rotate up limit switch is not engaged and that step count is less than 5400\n if ( gamepad2.dpad_up && robot.rotateup.getState() == true){\n robot.liftRotate.setPower(1.0);\n }\n else if (gamepad2.dpad_down && robot.rotatedown.getState() == true){ //Twists lift down\n robot.liftRotate.setPower(-1.0);\n }\n //required or lift rotate motor continues to run in last direction (breaks the motor shaft)\n else robot.liftRotate.setPower(0);\n\n /**\n * claw controls a= open b= close\n * FUNCTIONAL Meet 2 ready\n */\n if (gamepad2.a){\n robot.claw1.setPosition(0);\n robot.claw2.setPosition(1);\n } else if (gamepad2.b){\n robot.claw1.setPosition(1);\n robot.claw2.setPosition(0);\n }\n\n /**\n * Lift controls with limit switches and encoder position Meet 2 ready\n * right_trigger = lift\n * left_trigger = down\n */\n\n if ( gamepad2.right_trigger>= 0.2 && robot.liftup.getState()) {\n triggerpress=true;\n robot.liftUpDown.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.liftUpDown.setPower(.9);\n robot.liftRotate.setPower(.15);\n }\n if (gamepad2.left_trigger>=0.2){\n triggerpress=true;\n robot.liftUpDown.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.liftUpDown.setPower(-0.9);\n robot.liftRotate.setPower(-0.15);\n }\n if (gamepad2.left_trigger<.2 && gamepad2.right_trigger<.2 && triggerpress ){\n robot.liftUpDown.setPower(0);\n robot.liftRotate.setPower(0);\n triggerpress=false;\n }\n\n int x;\n int y;\n double motorDelayTime;\n //Necessary Debounce to keep bumper from being seen as multiple touches\n/* motorDelayTime=.1;\n if (robot.liftUpDown.getCurrentPosition()<50){\n BlockStack =0;\n }\n //skips servos unless runtime is greater than 20 ms.\n if( runtime.time() > motorDelayTime ) {\n //Need to move 5.5 inches on position 2, subsequent blocks will only need to move up 4 inches.\n x = robot.liftUpDown.getCurrentPosition();\n y= robot.liftRotate.getCurrentPosition();\n if (gamepad2.right_bumper ) {\n\n BlockStack= BlockStack + 1;\n robot.liftUpDown.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.liftUpDown.setTargetPosition(x + robot.floorheight);\n robot.liftUpDown.setPower(.9);\n robot.liftRotate.setTargetPosition(y + robot.floorheightrotate);\n robot.liftRotate.setPower(.1);\n bumperpress=true;\n\n //don't want to drive the cable too far loose checks that we can move a full block down\n } else if (gamepad2.left_bumper && x >= robot.floorheight ) {\n BlockStack= BlockStack - 1;\n robot.liftUpDown.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.liftUpDown.setTargetPosition(x - robot.floorheight);\n robot.liftUpDown.setPower(-.5);\n}\n\n runtime.reset();\n robot.liftUpDown.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n }*/\n\n /**\n * Limit switch tests that reset the encoders Meet 1 ready\n * * liftdown also allows the X button to work\n * * rotatedown also allows the Y button to work\n */\n\n if (robot.rotatedown.getState() == false) {\n robot.liftRotate.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot.liftRotate.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n }\n }", "public void initGameMode() {\n\n for (JPanel p : attached) {\n mainPanel.remove(p);\n }\n mainPanel.setLayout(null);\n initNavigationBar();\n\n marketFrame = new MarketFrame(gui);\n productionDeckFrame = new ProductionDeckFrame(gui);\n reserveFrame = new ReserveFrame();\n\n gameboardPanel = new GameboardPanel(gui);\n gameboardPanel.setBounds(0, 0, 800, 572);\n mainPanel.add(gameboardPanel);\n serverMessagePanel = new ServerMessagePanel();\n serverMessagePanel.setBounds(800, 0, 380, 275);\n mainPanel.add(serverMessagePanel);\n leaderCardsPanel = new LeaderCardsPanel(gui);\n leaderCardsPanel.setBounds(805, 280, leaderWidth, leaderHeight);\n mainPanel.add(leaderCardsPanel);\n\n\n this.setVisible(false);\n }", "public GameHandler() {\n boardGraph = new BoardGraph();\n reset();\n }", "public void endOfLife() {\r\n for (SeleneseQueue frameQ : frameAddressToSeleneseQueue.values()) {\r\n frameQ.endOfLife();\r\n }\r\n }", "@Override\n public void runOpMode() {\n hw = new RobotHardware(robotName, hardwareMap);\n rd = new RobotDrive(hw);\n rs=new RobotSense(hw, telemetry);\n /*rd.moveDist(RobotDrive.Direction.FORWARD, .5, .3);\n rd.moveDist(RobotDrive.Direction.REVERSE, .5, .3);\n rd.moveDist(RobotDrive.Direction.FORWARD, .5, 1);\n rd.moveDist(RobotDrive.Direction.REVERSE, .5, 1);*/\n telemetry.addData(\"Ready! \", \"Go Flamangos!\"); \n telemetry.update();\n\n //Starting the servos in the correct starting position\n /*hw.armRight.setPosition(1-.3);\n hw.armLeft.setPosition(.3);\n hw.level.setPosition(.3+.05);*/\n hw.f_servoLeft.setPosition(1);\n hw.f_servoRight.setPosition(0.5);\n \n rd.moveArm(hw.startPos());\n waitForStart();\n while (opModeIsActive()) {\n \n /*Starting close to the bridge on the building side\n Move under the bridge and push into the wall*/\n rd.moveDist(RobotDrive.Direction.LEFT,2,.5);\n rd.moveDist(RobotDrive.Direction.FORWARD, 10, .5);\n break;\n }\n }", "public void internalFrameActivated(javax.swing.event.InternalFrameEvent e) {\n\t\t\t\tactualizaScreen();\r\n\t\t\t}", "public CurrentRobotState() {\r\n currentPos = new RobotCoordinates();\r\n motorState = new Motor();\r\n reInitialize();\r\n }", "protected void prospect(){\n //While the Gold Position is undetermined, keep updating the camera\n cam.activateTFOD();\n\n runtime.reset();\n resetHeading();\n rotatedLeft = false;\n rotatedRight = false;\n rotatePhoneMount(.48);\n\n while(cam.getGoldPosition() == BuggleCam.GOLD_POSITION.NULL && runtime.seconds() < 4 && opModeIsActive()) {\n cam.betterUpdate(telemetry);\n //telemetry.update();\n if(runtime.seconds() > 2 && !rotatedRight) {\n rotatePhoneMount(.65);\n rotatedRight = true;\n }\n }\n if(cam.getGoldPosition() == BuggleCam.GOLD_POSITION.NULL)\n rotatedLeft = true;\n if(rotatedRight && !rotatedLeft)\n cam.setGoldPosition(BuggleCam.GOLD_POSITION.RIGHT);\n else if(rotatedRight)\n cam.setGoldPosition(BuggleCam.GOLD_POSITION.LEFT);\n cam.stopTFOD();\n\n }", "public void home ()\r\n\t{\r\n\t\tthis.sector = this.head = this.cylinder = 0;\r\n\t}", "FRAME createFRAME();", "void gameResumed();" ]
[ "0.66159624", "0.6445453", "0.62573147", "0.6114551", "0.60494757", "0.5998839", "0.59892076", "0.5953101", "0.5939131", "0.59252876", "0.5920479", "0.5920478", "0.5918061", "0.5915449", "0.5913535", "0.5909248", "0.5896721", "0.5890921", "0.5865181", "0.5864907", "0.58449256", "0.583145", "0.58118165", "0.57972264", "0.57819194", "0.57815325", "0.57786053", "0.577475", "0.5767377", "0.576458", "0.57562864", "0.5753863", "0.5748708", "0.574591", "0.5740247", "0.5733089", "0.57330257", "0.5731652", "0.5731627", "0.5731566", "0.57272863", "0.572142", "0.5716492", "0.57155627", "0.57124305", "0.57095957", "0.5709255", "0.57085377", "0.57032305", "0.56990916", "0.56990916", "0.5698941", "0.56916225", "0.56899184", "0.5681761", "0.56809765", "0.56785744", "0.5677561", "0.567691", "0.5674668", "0.56714654", "0.5668899", "0.5651433", "0.56468284", "0.5637258", "0.56368834", "0.5634963", "0.5629911", "0.56268346", "0.562448", "0.56221086", "0.5621291", "0.56199795", "0.56184876", "0.56159514", "0.56144124", "0.5610805", "0.5607375", "0.56059307", "0.5599979", "0.5598038", "0.559112", "0.55872977", "0.5585737", "0.5585295", "0.55819094", "0.5578957", "0.5575966", "0.55745", "0.5566526", "0.5564891", "0.55585456", "0.5558386", "0.55581003", "0.5550454", "0.55472666", "0.5543544", "0.5542835", "0.5540294", "0.5538616", "0.5538315" ]
0.0
-1
class that takes in a 2d Array and shows it on the scree
private void setLayout (){ /* define placeholders for content*/ HBox mainFrame= new HBox(); //the Main frame component. root.getChildren().add(mainFrame); //add it to the scene mainFrame.getChildren().addAll(leftPane,rightPane); Rectangle leftR= new Rectangle(600.0, 900.0); leftR.setFill(Color.WHITE); Rectangle rightR= new Rectangle(300.0, 900.0); rightR.setFill(Color.RED); rightPane.getChildren().add(rightR); leftPane.getChildren().add(leftR); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Array2DPrint() {}", "public void displayData(int[][] arr);", "public void displayArray(Cell[][] cells);", "public static void display2dArray(int [][] arr){\n for (int i = 0; i < arr.length; i++){ \n System.out.println(Arrays.toString(arr[i]));\n }\n \n // the iterative approach\n for (int i = 0; i < arr.length; i++){\n for (int j = 0; j < arr[i].length; j++){\n System.out.print(arr[i][j]+ \" \");\n }\n System.out.println();\n }\n System.out.println();\n }", "void show(double[][][] arr,String name){\n \n System.out.println(name+\"Array\");\n Vector Size = new Vector(arr.length,arr[0].length,arr[0][0].length);\n \n for(int i=0;i<Size.x;i++){\n \n for(int j=0;j<Size.y;j++){\n \n for(int k=0;k<Size.z;k++){\n \n System.out.print(arr[i][j][k]+\" \");\n }\n System.out.println();\n }\n System.out.println();\n }\n\n}", "void display(String w[][]){\r\n System.out.println(\"\\nGambaran dari area (world) yang di buat\\n\");\r\n for (int i = 1; i <= 4; i++) {\r\n System.out.println(\"\\n-----------------------------------------------------------------\");\r\n System.out.print(\"|\\t\");\r\n for (int j = 1; j <= 4; j++) {\r\n System.out.print(w[i][j]+ \"\\t|\\t\");\r\n }\r\n }\r\n\r\n System.out.println(\"\\n-----------------------------------------------------------------\");\r\n }", "public static void main(String[] args) {\n int [][] flats; // A 2-D Array\n flats = new int[3][3];\n flats[0][0] = 101; flats[1][0] = 201; flats[2][0] = 301;\n flats[0][1] = 102; flats[1][1] = 202; flats[2][1] = 302;\n flats[0][2] = 103; flats[1][2] = 203; flats[2][2] = 303;\n\n\n //Displaying the Array (for loop)\n System.out.println(\"Printing a 2-D array using for loop\");\n for (int i=0; i<flats.length; i++){\n for (int j=0; j<flats[i].length; j++) {\n System.out.print(flats[i][j]);\n System.out.print(\" \");\n }\n System.out.print(\"\\n\");\n }\n }", "public void displayGrid()\n {\n\t\t\n\tfor (int y=0; y<cases.length; y++)\n\t{\n for (int x=0; x<cases[y].length; x++)\n {\n\t\tSystem.out.print(\"|\"+cases[y][x].getValue());\n }\n System.out.println(\"|\");\n\t}\n }", "public void displayGrid ()\n {\n for (int i = 0; i < getDimX(); i++) {\n System.out.print(\"[ \");\n for (int y = 0; y < getDimY(); y++) {\n System.out.print(m_grid[i][y]);\n System.out.print(\" \");\n }\n System.out.println(\"]\");\n }\n }", "public void printArray(){\n\n\t\tfor (int i=0;i<1;i++){\n\n\t\t\tfor (int j=0;j<population[i].getLength();j++){\n\n\t\t\t\tSystem.out.println(\"X\" + j + \": \" + population[i].getX(j) + \" \" + \"Y\"+ j + \": \" + population[i].getY(j));\n\t\t\t\tSystem.out.println();\n\n\t\t\t}//end j\n\n\t\t\tSystem.out.println(\"The duplicate count is: \" + population[i].duplicateCheck());\n\t\t\tSystem.out.println(\"The fitness is \" + population[i].computeFitness());\n\t\t\t//population[i].computeFitness();\n\n\t\t}//end i\n\n\t}", "private static void printArray(Node[][] puzzle) {\r\n\t\tfor (int i = 0; i < puzzle.length; i++) {\r\n\t\t\tfor (int j = 0; j < puzzle[0].length; j++) {\r\n\t\t\t\tSystem.out.print(puzzle[i][j].getValue());\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\r\n\t}", "public void affiche(){\r\n\t\tfor (int i = 0; i < this.grille.length; i++){\r\n\t\t\tfor (int j = 0; j < this.grille.length; j++){\r\n\t\t\t\tSystem.out.print(this.grille[i][j]);\r\n\t\t\t}\r\n\t\t\tSystem.out.print('\\n');\r\n\t\t}\r\n\t}", "public void printdia(int[][] array){\n\t\tint dim = array.length;\n\n\t for( int k = 0 ; k < dim * 2 ; k++ ) {\n\t for( int j = 0 ; j <= k ; j++ ) {\n\t int i = k - j;\n\t if( i < dim && j < dim ) {\n\t System.out.print( array[i][j] + \" \" );\n\t }\n\t }\n\t System.out.println();\n\t }\n\t}", "void printGrid() {\n\t\tSystem.out.println();\n\t\tfor (int row = 0; row < moleGrid.length; row++) {\n\t\t\tfor (int col = 0; col < moleGrid[row].length; col++) {\n\t\t\t\tSystem.out.print(moleGrid[row][col] + \"\\t\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public String toString() {\n StringBuilder s = new StringBuilder();\n s.append(this.dim + \"\\n\");\n int counter = 0;\n for (int i = 0; i < this.dim; i++) {\n for (int j = 0; j < this.dim; j++) {\n int n = tiles[counter++];\n s.append(String.format(\"%2d \", n));\n }\n s.append(\"\\n\");\n }\n return s.toString();\n }", "public void showPuzzle() {\n\n for (int r = 0; r < numbers.length; r++) {\n for (int c = 0; c < numbers[r].length; c++) {\n System.out.print(numbers[r][c] + \"\\t\");\n }\n System.out.println();\n }\n }", "public static void show(int[][] arr) {\n\t\t\tfor(int i=0;i<arr.length;i++) {\n\t\t\t\tfor(int j=0;j<arr.length;j++) {\n\t\t\t\t\tSystem.out.print(arr[i][j]+\"\\t \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}", "public void printGrid() {\n // Creation of depth Z\n for (int d = 0; d < grid[0][0].length; d++) {\n System.out.println(\"\");\n int layer = d + 1;\n System.out.println(\"\");\n System.out.println(\"Grid layer: \" + layer);\n // Creation of height Y\n for (int h = 1; h < grid.length; h++) {\n System.out.println(\"\");\n // Creation of width X\n for (int w = 1; w < grid[0].length; w++) {\n if (grid[h][w][d] == null) {\n System.out.print(\" . \");\n } else {\n String gridContent = grid[h][w][d];\n char identifier = gridContent.charAt(0);\n\n int n = 0;\n if(grid[h][w][d].length() == 3) {\n n = grid[h][w][d].charAt(2) % 5;\n } else if (grid[h][w][d].length() == 2) {\n n = grid[h][w][d].charAt(1)%5;\n }\n if(n == 0) n = 6;\n\n // Labelling\n if (identifier == 'G' && grid[h][w][d].length() == 3) {\n System.out.print(\"\\033[47m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n } else if (identifier == 'G') {\n System.out.print(\"\\033[47m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n System.out.print(\" \");\n } else if (identifier == 'L' && grid[h][w][d].length() == 3) {\n System.out.print(\"\\033[3\"+ n + \"m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n } else if (identifier == 'L') {\n System.out.print(\"\\033[3\"+ n + \"m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n System.out.print(\" \");\n }\n }\n }\n }\n }\n System.out.println(\"\");\n }", "public void displayBoard() {\n System.out.printf(\"%20s\",\"\"); // to add spacing\n for(int i = 0; i < space[0].length; i++) //Put labels for number axis\n {\n System.out.printf(\"%4d\",i+1);\n }\n System.out.println();\n for(int row = 0; row < this.space.length; row++) { //Put letter labels and appropriate coordinate values\n System.out.print(\" \"+ (char)(row+'A') + \"|\");\n for (String emblem: this.space[row]) //coordinate values\n System.out.print(emblem + \" \");\n System.out.println();\n }\n }", "private void displayBoard(Board board)\n {\n for (int i = 0; i < size; i++)\n {\n System.out.print(\"|\");\n for (int j = 0; j < size; j++)\n \n System.out.print(board.array[i][j] + \"|\");\n System.out.println();\n }\n }", "void matice(){\n\t\tfor(int i = 0;i<matice.length;i++){\n\t\t\tfor(int j =0; j< matice[i].length;j++){\n\t\t\t\tSystem.out.print(matice[i][j] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void printClass(Object _class[][],int line,int column){\r\n \r\n for (int i = 0; i < line; i++) {\r\n for (int j = 0; j < column; j++) {\r\n if(_class[i][j] != null){\r\n int array[] = (int[]) _class[i][j];\r\n for (int k = 0; k < array.length; k++) {\r\n System.out.print(array[k]);\r\n }\r\n System.out.print(\"|\");\r\n }\r\n else{\r\n System.out.print(\" - |\");\r\n }\r\n \r\n }\r\n System.out.println();\r\n }\r\n }", "static void showMatrix()\n {\n String sGameField = \"Game field: \\n\";\n for (String [] row : sField) \n {\n for (String val : row) \n {\n sGameField += \" \" + val;\n }\n sGameField += \"\\n\";\n }\n System.out.println(sGameField);\n }", "static void spiral_disp(int arr[][]) {\n\t\t\tint mincol, minrow, maxcol, maxrow, count = 0;\n\t\t\tmincol = 0;\n\t\t\tminrow = 0;\n\t\t\tmaxrow = arr.length - 1;\n\t\t\tmaxcol = arr[0].length - 1;\n\t\t\tint net = arr.length * arr[0].length;\n\t\t\twhile (count < net) {\n\n\t\t\t\tfor (int row = minrow; row <= maxrow && count < net; row++) {\n\t\t\t\t\tSystem.out.print(arr[row][mincol] + \", \");\n\t\t\t\t\tcount++;\n\t\t\t\t}\t\t\n\t\t\t\tmincol++;\n\t\t\t\tfor (int col = mincol; col <= maxcol && count < net; col++) {\n\t\t\t\t\tSystem.out.print(arr[maxrow][col] + \", \");\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tmaxrow--;\n\t\t\t\tfor (int row = maxrow; row >= minrow && count < net; row--) {\n\t\t\t\t\tSystem.out.print(arr[row][maxcol] + \", \");\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tmaxcol--;\n\t\t\t\tfor (int col = maxcol; col>= mincol && count < net; col--) {\n\t\t\t\t\tSystem.out.print(arr[minrow][col] + \", \");\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tminrow++;\n\n\t\t\t}\n\n\t\t}", "public void printMatrix(){\n for (int row = 0; row < matrix.length; row++){\n for (int count = 0; count < matrix[row].length; count++){\n System.out.print(\"----\");\n }\n System.out.println();\n System.out.print('|');\n for (int column = 0; column < matrix[row].length; column++){\n if (matrix[row][column] == SHIP)\n System.out.print('X' + \" | \");\n else if (matrix[row][column] == HIT)\n System.out.print('+' + \" | \");\n else if (matrix[row][column] == MISS)\n System.out.print('*' + \" | \");\n else\n System.out.print(\" \" + \" | \");\n }\n System.out.println();\n }\n }", "private void displayGrid() {\r\n System.out.print(this.grid);\r\n }", "@Override\n public void printGrid(){\n for(int row = 0; row < rows; row++){\n System.out.print(\"\\n\");\n if(row==0){\n char row_char='A';\n System.out.print(\" |\");\n for(int i=0; i<rows; i++){\n System.out.print(\"[\" + row_char + \"]\");\n row_char++;\n }\n System.out.print(\"\\n\");\n System.out.print(\"---|\");\n for(int i=0; i<rows;i++){\n System.out.print(\"---\");\n }\n System.out.print(\"\\n\");\n }\n\n for(int column = 0; column < columns; column++){\n if (column==0){System.out.print(\"[\"+row+\"]|\");}\n System.out.print(grid[row][column]);\n }\n }\n }", "public void mapToString() {\r\n for (Square[] x : map) {\r\n for (Square y : x) {\r\n System.out.print(y.getVisual() + \" \");\r\n }\r\n System.out.println();\r\n }\r\n }", "public void PrintGameBoard(int [][] arr) {\r\n\t\tsb.append(\" | A B C D E F G H I J\");\r\n\t\tSystem.out.println(sb.toString());\r\n\t\tsb.delete(0, sb.length());\r\n\t\tfor (int i = 0; i <arr.length; i++ ) {\r\n\t\t\t\r\n\t\t\tfor (int j = 0; j < arr.length; j++) {\r\n\t\t\t\tif (arr[i][j] == 0 || arr[i][j] == 3) {\r\n\t\t\t\t\tsb.append(\"* \");\r\n\t\t\t\t}\r\n\t\t\t\telse if(arr[i][j] == 1) {\r\n\t\t\t\t\tsb.append(\"O \");\r\n\t\t\t\t}\r\n\t\t\t\telse if (arr[i][j] == 2) {\r\n\t\t\t\t\tsb.append(\"X \");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(i+\"| \"+sb.toString());\r\n\t\t\tsb.delete(0, sb.length());\r\n\t\t}\r\n\t}", "public void print() {\n\t\tfor(int i = 0; i < size; i++) {\n\t\t\tfor(int j = 0; j < size; j++) {\n\t\t\t\tSystem.out.print(m[i][j] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\t\n\t}", "public void print() {\r\n System.out.print(\"[id: <\" + this.id + \"> \");\r\n if (this.dimension > 0) {\r\n System.out.print(this.data[0]);\r\n }\r\n for (int i = 1; i < this.dimension * 2; i++) {\r\n System.out.print(\" \" + this.data[i]);\r\n }\r\n System.out.println(\"]\");\r\n }", "public void show()\n\t{\n\t\tSystem.out.print(\" \");\n\t\tfor(int i=1;i<=row;i++)\n\t\t{\n\t\t\tSystem.out.print(i+\" \");\n\t\t\t\n\t\t}\n\t\tSystem.out.println();\n\t for(int i=0;i<col;i++)\n\t\t{\n\t \t\n\t \tSystem.out.print(i+1+\" \");\n\t\t\tfor(int j=0;j<player1[i].length;j++)\n\t\t\t\tSystem.out.print(player1[i][j]+\" \");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void printFinalArray(String[][] realArray, int counter, int [] xvalues, int [] yvalues){ //method print the final solved maze if possible, with the + signs in the correct path\r\n System.out.println(\"\\nThe Solved Maze: \");\r\n for(int i = 1; i<=counter; i++){\r\n realArray[yvalues[i]][xvalues[i]] = \"+\"; //changes the coordinate points to '+'\r\n }\r\n \r\n for(int i = 0; i<realArray.length; i++){\r\n for(int j = 0; j<realArray[i].length; j++){ //prints the array\r\n System.out.print(realArray[i][j]+\" \");\r\n }\r\n System.out.println();\r\n } \r\n }", "void create(){\n // I assign zero value to each element of the array.\n for (int i = 0;i< this.row; i++){\n for (int j = 0; j< this.column; j++){\n array[i][j]= 0;\n }\n }\n // I create random values for mines indexes\n int min = 0;\n int max = this.row;\n Random random = new Random();\n int randRow, randColumn, count=0;\n //I generate random mines quarter of the size of the array and assign it into the array.\n while(count != (this.row*this.column/4)){\n randRow = random.nextInt(max + min) + min;\n randColumn = random.nextInt(max + min) + min;\n if (array[randRow][randColumn] != -1){\n array[randRow][randColumn]= -1;\n count++;\n }\n }\n // I show the all minesweeper map\n for (int i = 0;i< this.row; i++){\n for (int j = 0; j< this.column; j++){\n if (array[i][j]==0)\n System.out.print(\"0 \");\n else\n System.out.print(\"* \");\n }\n System.out.println();\n }\n }", "private void showArray() {\n\t\tSystem.out.println(Arrays.toString(this.array));\n\n\t}", "public void PrintBoard() {\n\tSystem.out.println(\"printing from class\");\n\t\tString[][] a = this.piece;\n\t\tSystem.out.println(\" 0 1 2 3 4 5 6 7 <- X axis\");\n\t\tSystem.out.println(\" +----------------+ \");\n\t\t\n\t\tfor (int i=0; i<8 ;i++) {\n\t\t\tSystem.out.print(i + \" |\");\n\t\t\tfor (int j=0; j<8;j++) {\n\t\t\t\t\n\t\tSystem.out.print(\"\" + a[i] [j] + \" \");\n\t\t\t\t\t} \n\t\t\tSystem.out.println(\"|\");\n\t\t}\n\t\tSystem.out.println(\" +----------------+ \");\n\t\tSystem.out.println(\" 0 1 2 3 4 5 6 7 \");\n\t\n\t}", "public void updateBoard(int[][] array) {\n\n\t\tfor(int i=0; i<array.length; i++) {\n\t\t\tfor(int j=0; j<array.length; j++) {\n\t\t\t\ttry {\n\t\t\t\t\tMyNode node = new MyNode(array[i][j], (j*73+119), (i*73+58), 70, 70);\n\t\t\t\t\troot.getChildren().add(node.display());\n\t\t\t\t\tnode = null;\n\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tarray = null;\n\t\tisUpdatedB = true;\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tint [][] matrix={\r\n\t\t\t\t{10,15,2,76,-9},\r\n\t\t\t\t{85,-22,4,35,99},\r\n\t\t\t\t{64,68,31,7,-3},\r\n\t\t\t\t{1,53,94,33,8}\r\n\t\t};\r\n\t\t\r\n\t\tfor(int[] fila:matrix){\r\n\t\t\tSystem.out.println();//le da salto de linea cuando termina cada fila\r\n\t\t\tfor (int z:fila){\r\n\t\t\t\tSystem.out.print(z + \" \");\r\n\t\t\t}\r\n\t\t}\r\n\t\t/*int [][] matrix= new int[4][5];//primera dimension, segunda dimension\r\n\t\t\r\n\t\tmatrix [0][0]=5;\r\n\t\tmatrix [0][1]=18;\r\n\t\tmatrix [0][2]=29;\r\n\t\tmatrix [0][3]=80;\r\n\t\tmatrix [0][4]=3;\r\n\t\t\r\n\t\tmatrix [1][0]=-9;\r\n\t\tmatrix [1][1]=71;\r\n\t\tmatrix [1][2]=32;\r\n\t\tmatrix [1][3]=-24;\r\n\t\tmatrix [1][4]=62;\r\n\t\t\r\n\t\tmatrix [2][0]=54;\r\n\t\tmatrix [2][1]=22;\r\n\t\tmatrix [2][2]=-39;\r\n\t\tmatrix [2][3]=1;\r\n\t\tmatrix [2][4]=97;\r\n\t\t\r\n\t\tmatrix [3][0]=74;\r\n\t\tmatrix [3][1]=43;\r\n\t\tmatrix [3][2]=39;\r\n\t\tmatrix [3][3]=96;\r\n\t\tmatrix [3][4]=-63;\r\n\r\n\t\tfor (int i=0; i<4; i++){\r\n\t\t\tSystem.out.println();\r\n\t\t\tfor (int j=0; j<5; j++){\r\n\t\t\t\tSystem.out.print(matrix[i][j] + \" \");\r\n\t\t\t}\r\n\t\t}*/\r\n\t}", "private void printGrid(StateObservation stateObs) {\n\n ArrayList<Observation>[][] gameGrid = stateObs.getObservationGrid();\n System.out.println(\"rows \" + gameGrid.length + \" cols \" + gameGrid[0].length);\n\n System.out.println(\"------------------\");\n for (int i = 0; i < gameGrid[0].length; i++) { // cols\n for (int j = 0; j < gameGrid.length; j++) { // rows\n\n if (gameGrid[j][i].isEmpty()) {\n System.out.print(\". \");\n } else {\n for (Observation o : gameGrid[j][i]) {\n System.out.print(o.itype + \" \");\n }\n }\n }\n System.out.println();\n }\n System.out.println(\"------------------\");\n }", "public void printGrid(){\n System.out.println(\"printing the grid\");\n for(int i=0;i<row_size;i++){\n for(int j = 0;j<col_size;j++){\n System.out.println(grid[i][j]);\n }\n }\n }", "public void displayMaze(){\n System.out.println(\"---- SOLUTION------\");\n for(int j = 0; j < maze.length; j++){\n for(int k = 0; k < maze[0].length; k++){\n System.out.print(maze[j] [k]);\n }\n System.out.println();\n\n }\n }", "public void print_maze () {\n \n System.out.println();\n\n for (int row=0; row < grid.length; row++) {\n for (int column=0; column < grid[row].length; column++)\n System.out.print (grid[row][column]);\n System.out.println();\n }\n\n System.out.println();\n \n }", "public void display() {\n\t\ttree.resize(30,50);\n\t\tfor(int i = 650; i > 0; i -= 100) {\t\n\t\t\tt.image(tree,25,i);\n\t\t}\n\t\tfor(int i = 650; i > 0; i -= 100) {\t\n\t\t\tt.image(tree, 575, i);\n\t\t}\n\t}", "public void showMap() {\n//\t\tSystem.out.print(\" \");\n//\t\tfor (int i = 0; i < maxY; i++) {\n//\t\t\tSystem.out.print(i);\n//\t\t\tSystem.out.print(' ');\n//\t\t}\n\t\tSystem.out.println();\n\t\tfor (int i = 0; i < maxX; i++) {\n//\t\t\tSystem.out.print(i + \" \");\n\t\t\tfor (int j = 0; j < maxY; j++) {\n\t\t\t\tSystem.out.print(coveredMap[i][j]);\n\t\t\t\tSystem.out.print(' ');\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t}", "public void showGrid() {\n for (int i = minRow; i <= maxRow; i++) {\n for (int j = minCol; j <= maxCol; j++) {\n clientOutputStream.print(grid[i][j] + \" \");\n }\n clientOutputStream.println();\n }\n clientOutputStream.println();\n clientOutputStream.flush();\n }", "public static void print2DArray(int[][] myDataGrid){\n\t\n\tfor(int i=0; i<3; i++){\n\t\tfor(int j=0; j<5; j++){\n\t\t\tSystem.out.println(myDataGrid[i][j] + \", \");\n\t\t}\n\t\tSystem.out.println();\n\t}\n}", "public void printGrid(){\n\t\tfor (int i = 0; i < 8; i++){\n\t\t\tfor (int j = 0; j < 8; j++)\n\t\t\t\tSystem.out.print(Grid[i][j]+\" \"); \n\t\t\tSystem.out.println(); \n\t\t}\n\t}", "public String toString(){\n\t\tStringBuilder output = new StringBuilder();\n\t\tfor(int i = 0; i<this.size; i++){\n\t\t\tfor(int j=0; j<this.size; j++){\n\t\t\t\toutput.append(this.numbers[i][j] + \"\\t\");\n\t\t\t}\n\t\t\toutput.append(\"\\n\");\n\t\t}\n\t\treturn output.toString();\n\t}", "public SimpleShow(int rows, int cols)\n\t{\n\t\tseat = new boolean[rows][cols];\n\t}", "public static void printClassAll(Object _class[][],int line,int column){\r\n \r\n for (int i = 0; i < line; i++) {\r\n for (int j = 0; j < column; j++) {\r\n if(_class[i][j] != null){\r\n int array[] = (int[]) _class[i][j];\r\n String label = DadosEngenhariaComputacaoMatutino.getClassLabel(array[0]).trim();\r\n int lengthLabel = label.length();\r\n \r\n while(label.length() <6)\r\n label = label+\" \";\r\n \r\n System.out.print(label);//Label disciplina\r\n System.out.print(\"????? \");//professor\r\n String periodo = \"\";\r\n if(array[2] < 10)\r\n periodo = \"0\"+array[2];\r\n else if(array[2] < 99)\r\n periodo = \"\"+array[2];\r\n \r\n System.out.print(periodo+\" \");//periodo\r\n System.out.print(array[3]+\" \");//Carga Horaria\r\n System.out.print(CONSTANTS.getNameTypeClass(array[4])+\" \");//Tipo de Sala\r\n String sala = \"\";\r\n if(array[5] < 10)\r\n sala = \"00\"+array[5];\r\n else if(array[5] < 100)\r\n sala = \"0\"+array[5];\r\n else\r\n sala = \"0\"+array[5];\r\n System.out.print(\" \"+sala);// Sala\r\n System.out.print(\"|\");\r\n }\r\n else{\r\n System.out.print(\" - |\");\r\n }\r\n \r\n }\r\n System.out.println();\r\n }\r\n }", "public void test(){\n\t\tfor(int i =0; i< this.position.length;i++){\n\t\t\tSystem.out.println(\" \");\n\t\t\tfor(int p = 0 ; p<this.position.length;p++){\n\t\t\t\tSystem.out.print(this.position[i][p]);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\" \");\n\t\tfor(int i =0; i< this.position.length;i++){\n\t\t\tSystem.out.println(\" \");\n\t\t\tfor(int p = 0 ; p<this.position.length;p++){\n\t\t\t\tSystem.out.print(this.Ari[i][p]);\n\t\t\t}\n\t\t}\n\t}", "public void printTiles() {\n for (int i = 0; i < tiles.length; i++) {\n for (int k = 0; k < tiles[0].length; k++) {\n System.out.println(\"//\");\n System.out.println(\"ROW: \" + tiles[i][k].getRow());\n System.out.println(\"COL: \" + tiles[i][k].getColumn());\n System.out.println(\"TER: \" + tiles[i][k].getTerrain().getName());\n }\n }\n }", "public void display() {\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tSystem.out.print(a[i] + \"\\t\");\n\t\t}\n\t\tSystem.out.println();\n\t}", "private void showArray(ArrayList<String[]> arr) {\n for(String[] row: arr){\n for(String x: row){\n System.out.print(x + \"\\t\\t\");\n }\n System.out.println();\n } \n System.out.println(\"------------------------------------\");\n }", "public static void show(int[] kd){\n final int NUM_OF_LINES = 5;\n\n Line[] lines = new Line[NUM_OF_LINES];\n\n //gives each array element the necessary memory\n for(int i = 0; i < NUM_OF_LINES; i++){\n lines[i] = new Line();\n }\n\n //in order to print\n lines[0].setLine(4,0,0);\n lines[1].setLine(3,1,2);\n lines[2].setLine(2,3,5);\n lines[3].setLine(1,6,9);\n lines[4].setLine(0,10,14);\n\n for(int i = 0; i < NUM_OF_LINES; i++){\n String tab = \"\";\n\n //creates the 'tab' effect based on position\n for(int j = 0; j < lines[i].getT(); j++){\n tab += \" \";\n }\n System.out.print(tab);\n\n for(int j = lines[i].getA(); j < lines[i].getB() + 1; j++){\n if(kd[j] == 0){\n System.out.print(\". \");\n }\n else{\n System.out.print(\"x \");\n }\n }\n System.out.println();\n }\n\n }", "public static void printArray(Object[][] dataArray) {\n\t\t\n\t\tif (dataArray == null) {\n\t\t\tSystem.out.print(\"Empty Array\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tint rows = dataArray.length;\n\t\tint cols = dataArray[0].length;\n\t\t\n\t\tSystem.out.print(\"\\nData: \\n\");\n\t\tSystem.out.print(\"Number of Rows: \" + (rows) + \" \\n\");\n\t\tSystem.out.print(\"Number of Columns: \" + (cols) + \" \\n\\n\");\n\t\n\t\tfor (int i = 0; i < rows ; i++) { \n\t\t\tfor (int j = 0; j < cols; j++) {\n\t\t\t\tSystem.out.print(dataArray[i][j].toString() + \"\\t\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}", "public static void print2D(char mat[][]) {\n System.out.println(\"printing matrix\");\n for (int i = 0; i < mat.length; i++) {\n for (int j = 0; j < mat[i].length; j++) {\n System.out.print(mat[i][j] + \" \");\n }\n System.out.println(\"\");\n }\n\n }", "public static void show(int mat3d[][][]) {\n //for loop which runs 3 times again\n for(int s=0; s<3; s++) {\n //this for loop does the same as the first method\n for(int j=0; j<(3+2*s); j++) {\n //for follows pattern of array ^^\n for(int c=0; c<(s+j+1); c++) {\n //prints of the array slot for s,j,c\n System.out.print(mat3d[s][j][c]);\n //prints out a blank space to seperate\n System.out.print(\" \");\n }\n //prints out blank line to seperate \n System.out.println();\n }\n \n System.out.println();\n }\n }", "void printGridToUser() {\n\t\tSystem.out.println();\n\t\tfor (int row = 0; row < moleGrid.length; row++) {\n\t\t\tfor (int col = 0; col < moleGrid[row].length; col++) {\n\t\t\t\tSystem.out.print(moleGrid[row][col] + \"\\t\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void stampa() {\n GridPane matrice = new GridPane();\n buildGriglia(matrice);\n Text scritta;\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n if (getElementAt(griglia, i, j).cerchio.isVisible()) {\n scritta = new Text(\"1\");\n }\n else {\n scritta = new Text(\"0\");\n }\n matrice.add(scritta, j, i);\n }\n }\n Scene scene3 = new Scene(matrice, N * 100, N * 100);\n Stage stage3 = new Stage();\n stage3.setTitle(\"Matrice di occupazione:\");\n stage3.setScene(scene3);\n stage3.show();\n }", "public void printMap(){\n\n for (Tile [] tile_row : this.layout)\n {\n for (Tile tile : tile_row)\n {\n if (tile.isShelf()){\n System.out.print(\" R \");\n }\n else if (tile.isDP()){\n System.out.print(\" D \");\n }\n\n else {\n System.out.print(\" * \");\n }\n\n }\n System.out.println();\n }\n\n }", "public void printEdges(){\n System.out.print(\" |\");\n for(int i=0;i<size;i++)\n System.out.print(\" \"+i+\" \");\n System.out.print(\"\\n\");\n for(int i=0;i<size+1;i++)\n System.out.print(\"-------\");\n System.out.print(\"\\n\");\n for(int i=0;i<size;i++){\n System.out.print(\" \"+i+\" |\");\n for(int j=0;j<size;j++){\n System.out.print(\" \"+Matrix[i][j]+\" \");\n }\n System.out.print(\"\\n\");\n }\n }", "public SimpleShow()\n\t{\n\t\tseat = new boolean[10][5];\n\t}", "@Override\r\n public String toString() {\r\n StringBuilder res = new StringBuilder();\r\n for (int i=0 ; i<this.tiles.length ; i++) {\r\n if (i>0 && i%this.width == 0) {\r\n res.append(\"\\n\");\r\n }\r\n res.append(this.tiles[i]);\r\n }\r\n return res.toString();\r\n }", "public static void displayBoard(char[][] a){\r\n int rowNumber = a.length;\r\n int colNumber = a[0].length;\r\n for (int i = 0; i<rowNumber;i++){\r\n rowLine(colNumber);\r\n for (int j = 0; j<colNumber;j++){\r\n System.out.print('|');\r\n System.out.print(a[i][j]);\r\n }\r\n System.out.println('|');\r\n }\r\n rowLine(colNumber);\r\n }", "public String toString ()\n\t{\n\t\tString s = \"Grid:\\n\";\n\t\tfor (int row=0; row<GRID_SIZE; row++)\n\t\t{\n\t\t\tfor (int col=0; col<GRID_SIZE; col++) {\n\t\t\t\ts = s + grid[col][row].value()+ \" \";\n\t\t\t}\n\t\t\ts += \"\\n\";\n\t\t}\n\t\treturn s;\n\t}", "public void show(Graphics g) {\n for (int row = 0; row < grid.length; row++) { //iterate through the array\r\n for (int col = 0; col < grid[0].length; col++) {\r\n if (grid[row][col]==true) //if the value is \"alive\"\r\n {\r\n g.setColor(Color.black); //display black square\r\n } else {\r\n g.setColor(Color.white); //otherwise display white square\r\n }\r\n g.fillRect(col * 5 + 2, row * 5 + 2, 5, 5); // fill the square in\r\n }\r\n }\r\n }", "public static void display(double[][] t)\n\t{\n\t\tfor (int i=0;i<t.length;i++)\n\t\t{\n\t\t\tfor (int j=0;j<t[i].length;j++)\n\t\t\t\tSystem.out.print(t[i][j]+\" \");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void Display(int[] array) {\n for(int i=0;i<array.length;i++){\n System.out.print(array[i]+\"\\t\");\n }\n System.out.println();\n }", "public void display() { \r\n\t\tfor (int i=0; i<3; i++){ \r\n\t\t\tSystem.out.print(\"|\"); \r\n\t\t\tfor (int j=0; j<3; j++){ \r\n\t\t\t\tSystem.out.print(board[i][j] + \"|\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(); \r\n\t\t}\r\n\t\tSystem.out.println(); \r\n\t}", "@Override\n\tpublic String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint sqRt = (int)Math.sqrt(dimension);\n\t\tString line = \"\";\n\t\tint lineLength = (sqRt + 1) + (sqRt) * (sqRt + sqRt + 1);\n\t\tfor(int i = 0; i < lineLength; i++) {\n\t\t\tline += \"-\";\n\t\t}\n\t\tsb.append(line + \"\\n\");\t\n\t\tfor(int i = 1; i <= dimension; i++) {\n\t\t\tfor(int j = 1; j <= dimension; j++) {\n\t\t\t\tif(j == 1) {\n\t\t\t\t\tsb.append(\"| \");\n\t\t\t\t}\n\t\t\t\tsb.append(puzzle[i - 1][j - 1]);\n\t\t\t\tsb.append(\" \");\n\t\t\t\tif(j % sqRt == 0) \n\t\t\t\t\tsb.append(\"| \");\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t\tif(i % sqRt == 0) \n\t\t\t\tsb.append(line + \"\\n\");\t\n\t\t}\n\t\treturn sb.toString();\n\t}", "public void printArray2D(int[][] array2D) {\r\n\t\tfor (int i = 0; i < array2D.length; i++) {\r\n\t\t\tfor (int j = 0; j < array2D[i].length; j++) {\r\n\t\t\t\tSystem.out.print(array2D[i][j] + \", \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "public void printTiles() {\r\n for (int row=0; row<BOARD_MAX_WIDTH; row++) {\r\n for (int col=0; col<BOARD_MAX_WIDTH; col++) {\r\n System.out.print(tiles[row][col]);\r\n }\r\n System.out.println();\r\n }\r\n System.out.println();\r\n }", "public static void print2DArray(int input[][]) {\n int m = input.length;\n if (m == 0)\n return;\n int n = input[0].length;\n\n for (int i = 0; i < m; i++) {\n int k = i;\n while (k < m) {\n for (int j = 0; j < n; j++) {\n System.out.print(input[i][j] + \" \");\n }\n k++;\n System.out.println();\n }\n }\n }", "public static void main(String[] args) {\n\n float[][][] arr = new float[500][14761][2];\n\n\n // Shallow\n System.out.println(ClassLayout.parseInstance(arr));\n\n\n System.out.println(GraphLayout.parseInstance((Object) arr).toFootprint());\n\n\n float[][][] arr2 = new float[2][500][14761];\n System.out.println(GraphLayout.parseInstance((Object) arr2).toFootprint());\n\n }", "public static void print1( int[][] a )\n {\n for(int x = 0; a.length > x; x++) { //for the amount of rows...\n\t for(int y = 0; a[x].length > y; y++){//...and for the length of the\n\t //nested array\n\t System.out.println(a[x][y]); //print out that specific array point\n\t }\n }\n }", "public void display(){\n for(int i=0;i<N;i++){\n for(int j=0;j<N;j++)\n System.out.print(adj_matrix[i][j]+\" \");\n System.out.println();\n }\n }", "public void print() {\n\t\tcounter++;\n\t\tSystem.out.print(counter + \" \");\n\t\tfor (int i = 0; i < size; i++) {\n\t\t for (int j = 0; j < size; j++) {\n\t\t\t\tSystem.out.print(squares[j][i].getValue());\n\t\t }\n\t\t System.out.print(\"//\");\n\t\t}\n\t\tSystem.out.println();\n }", "private void displayArray() {\r\n System.out.println(\"CEK ARRAY : \");\r\n for (i = 0; i < array.length; i++) {\r\n System.out.print(array[i]+\",\");\r\n }\r\n }", "public static void display(int[][] matrix){\n for (int i = 0; i < matrix.length; i++) {\n for (int j = 0; j < matrix.length; j++) {\n System.out.print(matrix[i][j] + \" \");\n }\n System.out.println(\"\");\n }\n }", "public void create(int [][] arr) {\n //default background image\n gc.drawImage(bg0, 0, 0);\n gc.drawImage(bg0, 1024,0);\n\n // traverses 2D array to creat map\n for(int i = 0; i < arr.length; i++) {\n for(int j = 0; j < arr[0].length; j++) {\n if(arr[i][j] == 0) {\n //blank space, for reference\n } else if(arr[i][j] == 1) { // make IndestructibleObject\n IndestructibleObject object = new IndestructibleObject(img0, j*64, i*64);\n mapList.add(object);\n } else if(arr[i][j] == 2) { // make DestructibleObject\n DestructibleObject object = new DestructibleObject(img1, j*64, i*64);\n mapList.add(object);\n } else if(arr[i][j] == 3) { // make power up\n PowerUpObject object = new PowerUpObject(img2, j*64+1, i*64, 1);\n powerList.add(object);\n } else if(arr[i][j] == 4) { // make power up\n PowerUpObject object = new PowerUpObject(img3, j*64+1, i*64, 2);\n powerList.add(object);\n } else if(arr[i][j] == 5) { // make power up\n PowerUpObject object = new PowerUpObject(img4, j*64+1, i*64, 3);\n powerList.add(object);\n } else if(arr[i][j] == 6) { // make power up\n PowerUpObject object = new PowerUpObject(img5, j*64+1, i*64, 4);\n powerList.add(object);\n }\n }\n }\n }", "public static void displayboard(String board[][]){\n\t\tint rowindicator[]=new int[boardwidth+1];\n\t\tint rowcount=1;\n\t\tfor(int i=1;i<=boardwidth;i++){\n\t\t\trowindicator[i]=rowcount;\n\t\t\trowcount++;\n\t\t}\n\t\tint columnindicator[]=new int[boardlength+1];\n\t\tint columncount=1;\n\t\tfor(int i=1;i<=boardlength;i++){\n\t\t\tcolumnindicator[i]=columncount;\n\t\t\tcolumncount++;\n\t\t}\n\t\tSystem.out.print(\"\\n \");\n\t\tfor(int i=1;i<=boardlength;i++){\n\t\t\t//displays column indicator\n\t\t\tSystem.out.print(\" \"+columnindicator[i]);\n\t\t}\n\t\t//displays board\n\t\tSystem.out.println(\"\");\n\t\tfor(int x=1;x<=boardwidth;x++){\n\t\t\t//displays row indicator\n\t\t\tSystem.out.print(\" \"+rowindicator[x]);\n\t\t\tfor(int i=1;i<=boardlength;i++){\n\t\t\t\tSystem.out.print(\" \"+board[x][i]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public ArrayList<Integer[]> display_() {\n\t\tArrayList<Integer[]> f = new ArrayList<Integer[]>();\n\t\tArrayList<Integer> row = new ArrayList<Integer>();\n\t\tInteger[] row_;\n\t\tfor (int i = 0; i < player.length; ++i) {\n\t\t\t// inserting empty line in every 3 rows.\n\t\t\tif (i % 3 == 0 && i != 0) {\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tfor (int j = 0; j < player[i].length; ++j) {\n\t\t\t\t// inserting empty space in every 3 columns.\n\t\t\t\t/*\n\t\t\t\t * if (j % 3 == 0 && j != 0) { System.out.print(' '); }\n\t\t\t\t */\n\t\t\t\tif (problem[i][j] == 0 && player[i][j] == 0) {\n\t\t\t\t\t// System.out.print(\"( )\");\n\t\t\t\t\trow.add(0);\n\t\t\t\t} else if (problem[i][j] == 0) {\n\t\t\t\t\t//System.out.print(\"(\" + player[i][j] + \")\");\n\t\t\t\t\trow.add(player[i][j]);\n\t\t\t\t} else {\n\t\t\t\t\t//System.out.print(\"[\" + player[i][j] + \"]\");\n\t\t\t\t\trow.add(player[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\trow_ = new Integer[row.size()];\n\t\t\trow_ = row.toArray(row_);\n\t\t\tf.add(row_);\n\t\t\trow_ = null;\n\t\t\trow.clear();\n\t\t}\n\t\tSystem.out.println();\n\n\t\treturn f;\n\t}", "public void displayRectangles() {\n\n\n int arr[] = IntStream.of(findDuplicates(TricolourController.BloodCells)).distinct().toArray(); //takes only the unique values from the array\n int arrWhite[] = IntStream.of(findDuplicates(TricolourController.WhiteCells)).distinct().toArray();\n int rIndex = 0;\n int lIndex = 0;\n int numCells = 0;\n\n for(int num : arrWhite) {\n System.out.println(num);\n }\n\n for(int j=0; j < arr.length - 1; j++) {\n for (int i = 0; i < TricolourController.BloodCells.length; i++) {\n if (TricolourController.BloodCells[i] == arr[j]) {\n int x = i % width, y = i / width;\n if (r[rIndex] == null) {\n r[rIndex] = new Rectangle(x, y, 1, 1);\n numCells++;\n }\n else {\n if (x > r[rIndex].getX() + r[rIndex].getWidth()) r[rIndex].setWidth(x - r[rIndex].getX());\n if (x < r[rIndex].getX()) {\n r[rIndex].setWidth(r[rIndex].getX() + r[rIndex].getWidth() - x);\n r[rIndex].setX(x);\n }\n if (y > r[rIndex].getY() + r[rIndex].getHeight()) r[rIndex].setHeight(y - r[rIndex].getY());\n }\n }\n }\n if (r[rIndex] != null) {\n r[rIndex].setFill(Color.TRANSPARENT);\n if(r[rIndex].getWidth() * r[rIndex].getHeight() > 2500) {\n r[rIndex].setStroke(Color.BLUE);\n }\n else r[rIndex].setStroke(Color.DARKGREEN);\n\n r[rIndex].setTranslateX(ImageViewTri.getLayoutX());\n r[rIndex].setTranslateY(ImageViewTri.getLayoutY());\n ((Pane) ImageViewTri.getParent()).getChildren().add(r[rIndex++]);\n RedCellText.setText(String.valueOf(numCells));\n }\n l[lIndex] = new Label();\n l[lIndex].setText(String.valueOf(numCells));\n l[lIndex].setTextFill(Color.BLACK);\n l[lIndex].setTranslateX(r[rIndex - 1].getX());\n l[lIndex].setTranslateY(r[rIndex - 1].getY());\n\n ((Pane) ImageViewTri.getParent()).getChildren().add(l[lIndex++]);\n }\n\n//Handles the white cell rectangles.\n int whitenumcells = 0;\n for(int j=0; j < arrWhite.length - 1; j++) {\n for (int i = 0; i < TricolourController.WhiteCells.length; i++) {\n if (TricolourController.WhiteCells[i] == arrWhite[j]) {\n int x = i % width, y = i / width;\n if (r[rIndex] == null) {\n r[rIndex] = new Rectangle(x, y, 1, 1);\n whitenumcells++;\n }\n else {\n if (x > r[rIndex].getX() + r[rIndex].getWidth()) r[rIndex].setWidth(x - r[rIndex].getX());\n if (x < r[rIndex].getX()) {\n r[rIndex].setWidth(r[rIndex].getX() + r[rIndex].getWidth() - x);\n r[rIndex].setX(x);\n }\n if (y > r[rIndex].getY() + r[rIndex].getHeight()) r[rIndex].setHeight(y - r[rIndex].getY());\n }\n }\n }\n if (r[rIndex] != null) {\n r[rIndex].setFill(Color.TRANSPARENT);\n r[rIndex].setStroke(Color.YELLOW);\n\n r[rIndex].setTranslateX(ImageViewTri.getLayoutX());\n r[rIndex].setTranslateY(ImageViewTri.getLayoutY());\n ((Pane) ImageViewTri.getParent()).getChildren().add(r[rIndex++]);\n WhiteCellText.setText(String.valueOf(whitenumcells));\n }\n l[lIndex] = new Label();\n l[lIndex].setText(String.valueOf(whitenumcells));\n l[lIndex].setTextFill(Color.BLACK);\n l[lIndex].setTranslateX(r[rIndex - 1].getX());\n l[lIndex].setTranslateY(r[rIndex - 1].getY());\n\n ((Pane) ImageViewTri.getParent()).getChildren().add(l[lIndex++]);\n }\n }", "public static void printClassSIGLA(Object _class[][],int line,int column){\r\n \r\n for (int i = 0; i < line; i++) {\r\n for (int j = 0; j < column; j++) {\r\n if(_class[i][j] != null){\r\n int array[] = (int[]) _class[i][j];\r\n System.out.print(DadosEngenhariaComputacaoMatutino.getClassLabel(array[0]));\r\n System.out.print(\"|\");\r\n }\r\n else{\r\n System.out.print(\" - |\");\r\n }\r\n \r\n }\r\n System.out.println();\r\n }\r\n }", "public void showBoardState() {\n System.out.print(\" \");\n //top row X axis\n for(int i = 0; i < boardSize; i++){\n System.out.print(\" \" + i + \" \");\n }\n System.out.println();\n for (int i = 0; i < boardSize; i++) {\n //conversion 0-9 to char for display as Y axis\n System.out.print(\" \" + (char)(i + 'A') + \" \");\n for (int j = 0; j < boardSize; j++) {\n System.out.print(\" \" + board[i][j] + \" \");\n }\n System.out.println();\n\n }\n System.out.println();\n }", "public String toString()\n\t{\n\t\t//DecimalFormat df = new DecimalFormat(\"0.00\");\n\t\tString report = \"\";\n\t\treport += \"m = \" + rows + \"\\n\";\n\t\treport += \"n = \" + cols + \"\\n\";\n\t\treport += \"[ | ] = \" + \"\\n\";\n\t\tfor(int i = 0; i < rows; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < cols+1; j++)\n\t\t\t{\n\t\t\t\treport += /*df.format*/(A[i][j]) + \" \";\n\t\t\t}\n\t\t\treport += \"\\n\";\n\t\t}\n\t\treturn report;\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\tString str = new String();\r\n\t\tfor(Cell2048[] a : game) {\r\n\t\t\tfor(Cell2048 b : a)\r\n\t\t\t\tstr += b.getValue();\r\n\t\t}\r\n\t\treturn Integer.toString(rows_size) + \",\" + Integer.toString(columns_size) +\",\" +str;\r\n\t}", "public void renderBoard(){\n for (int k = 0; k < grid.length; k++)\n for (int m = 0; m < grid[k].length; m++)\n grid[k][m] = 0;\n\n // fill the 2D array using information for non-empty tiles\n for (Cell c : game.getNonEmptyTiles())\n grid[c.getRow()][c.getCol()] = c.getValue();\n }", "public void Matriz()\n {\n int dim;\n dim = Principal.dimension;\n \n matrix = new JLabel [dim][dim];\n\n for(int i=0; i< dim; i++){\n\n\t\t\t\tfor(int j=0; j< dim; j++){\n\n\t\t\t\t\t\n\n matrix[i][j] = new JLabel();\n\n matrix[i][j].setVisible(true);\n\n matrix[i][j].setBorder(javax.swing.BorderFactory.createLineBorder(Color.black, 1));\n\n matrix[i][j].setBounds(5 +(i*43), 5 +(j*43), 40, 40);\n\n matrix[i][j].setBackground(Color.green);\n\n matrix[i][j].setText(\"\");\n Pan_Tablero.add(matrix[i][j]);\n\n //this.getContentPane().add(matrix[i][j]);\n\n } \n\n} \n }", "private static void print(int[][] image) {\n for(int i = 0; i < image.length; i++) {\n for(int j = 0; j < image[0].length; j++) {\n System.out.print(image[i][j] + \" \");\n }\n System.out.println(\"\\n\");\n }\n }", "private void showTheMove() {\n\r\n updateTicTacToeShape();\r\n for (int ii=0; ii<5; ii++) {\r\n System.out.println(ticTacToeShape[ii]);\r\n }\r\n }", "private void printBoard() {\r\n for (int i = 0; i < board.length; i++) {\r\n for (int j = 0; j < board[i].length; j++) {\r\n System.out.print(board[j][i] + \" \");\r\n }\r\n System.out.println();\r\n }\r\n }", "public void displayInfo(){\n\t\tint planeNum=0;\n\t\t\n\t\tfor(int i=0; i<planes.size(); i++){\t// loop to know the number of planes\n\t\t\tif(planes.get(i)!=null){\n\t\t\t\tplaneNum++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tPlane[] infoBoard = new Plane[planeNum];\t// create the array that will collect all the planes\n\t\t\n\t\tint j=0;\n\t\tfor(int i=0; i<planes.size(); i++){\t\t// put the planes in the array\n\t\t\tif(planes.get(i)!=null){\n\t\t\t\tinfoBoard[j] = planes.get(i);\n\t\t\t\tj++;\n\t\t\t}\n\t\t}\n\t\tString[][] grid = new String[17][infoBoard.length + 1];\t// new matrix\n\t\t\n\t\t//característiques a mostrar fixes\n\t\tgrid[0][0] = \"Id..................\";\n\t\tgrid[1][0] = \"License plate.......\";\n\t\tgrid[2][0] = \"Brand...............\";\n\t\tgrid[3][0] = \"Model...............\";\n\t\tgrid[4][0] = \"Capacity............\";\n\t\tgrid[5][0] = \"Type................\";\n\t\tgrid[6][0] = \"X...................\";\n\t\tgrid[7][0] = \"Y...................\";\n\t\tgrid[8][0] = \"Height..............\";\n\t\tgrid[9][0] = \"Speed...............\";\n\t\tgrid[10][0] = \"Landing gear........\";\n\t\tgrid[11][0] = \"Engine..............\";\n\t\tgrid[12][0] = \"Crew................\";\n\t\tgrid[13][0] = \"Passengers..........\";\n\t\tgrid[14][0] = \"Missiles............\";\n\t\tgrid[15][0] = \"Origin..............\";\n\t\tgrid[16][0] = \"Destination.........\";\n\t\t\n\t\t// loop to fill the plane's data\n\t\tfor(int i=0; i<infoBoard.length; i++){\n\t\t\tPlane selection = infoBoard[i]; \t// each turn will fill the data of one plane\n\t\t\t\n\t\t\tint id= i + 1;\n\t\t\t// with the getters, the information is collected\n\t\t\tgrid[0][id] = String.valueOf(id);\n\t\t\t\n\t\t\tif(selection.isEncrypted()==false){\n\t\t\t\t\n\t\t\t\tgrid[1][id] = selection.getLicensePlate();\n\t\t\t\tgrid[2][id] = selection.getBrand();\n\t\t\t\tgrid[3][id] = selection.getModel();\n\t\t\t\tgrid[4][id] = String.valueOf(selection.getCapacity());\n\t\t\t\t\n\t\t\t\tif(selection.getClass().equals(\"CommercialPlane\")){\n\t\t\t\t\tgrid[5][id] = \"Commercial\";\n\t\t\t\t}else{\n\t\t\t\t\tgrid[5][id] = \"Military\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tgrid[6][id]=String.valueOf(selection.getCoordinates().getX());\n\t\t\t\tgrid[7][id]=String.valueOf(selection.getCoordinates().getY());\n\t\t\t\tgrid[8][id]=String.valueOf(selection.getHeight());\n\t\t\t\tgrid[9][id]=String.valueOf(selection.getSpeed());\n\t\t\t\t\n\t\t\t\tif(selection.isLandingGear()==true){\n\t\t\t\t\tgrid[10][id] = \"On\";\n\t\t\t\t}else{\n\t\t\t\t\tgrid[10][id] = \"Off\";\n\t\t\t\t}\n\t\t\t\tif(selection.isEngine()==true){\n\t\t\t\t\tgrid[11][id] = \"On\";\n\t\t\t\t}else{\n\t\t\t\t\tgrid[11][id] = \"Off\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tgrid[12][id] = String.valueOf(selection.getSpeed());\n\t\t\t\t\n\t\t\t\tif(selection instanceof CommercialPlane){\n\t\t\t\t\tgrid[13][id] = String.valueOf(selection.getPassengers());\n\t\t\t\t}else{\n\t\t\t\t\tgrid[13][id] = \"No\";\n\t\t\t\t}\n\t\t\t\tif(selection instanceof CommercialPlane){\n\t\t\t\t\tgrid[14][id] = \"No\";\n\t\t\t\t}else{\n\t\t\t\t\tgrid[14][id] = String.valueOf(selection.getMissiles());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tgrid[15][id]=String.valueOf(selection.getOrigin());\n\t\t\t\tgrid[16][id]=String.valueOf(selection.getDestination());\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tgrid[1][id] = \"ENCRYPTED\";\n\t\t\t\tgrid[2][id] = \"\";\n\t\t\t\tgrid[3][id] = \"\";\n\t\t\t\tgrid[4][id] = \"\";\n\t\t\t\tgrid[5][id] = \"\";\n\t\t\t\tgrid[6][id] = \"\";\n\t\t\t\tgrid[7][id] = \"\";\n\t\t\t\tgrid[8][id] = \"\";\n\t\t\t\tgrid[9][id] = \"\";\n\t\t\t\tgrid[10][id] = \"\";\n\t\t\t\tgrid[11][id] = \"\";\n\t\t\t\tgrid[12][id] = \"\";\n\t\t\t\tgrid[13][id] = \"\";\n\t\t\t\tgrid[14][id] = \"\";\n\t\t\t\tgrid[15][id] = \"\";\n\t\t\t\tgrid[16][id] = \"\";\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t// each piece of data has to be in a 10 character string\n\t\tString unit = \" \";\n\t\tint stringLength = 11;\n\t\t\n\t\tfor(int a=0; a<grid.length; a++){\n\t\t\tfor(int b=1; b<grid[a].length; b++){\n\t\t\t\tint realLength = grid[a][b].length(); // current length of the string\n\t\t\t\tint spaces = stringLength - realLength;\t// spaces to fill until the 10th character\n\t\t\t\tString pack = \"\";\n\t\t\t\t\n\t\t\t\tfor(int c=0; c<=spaces; c++){\n\t\t\t\t\tpack = pack + unit;\n\t\t\t\t}\n\t\t\t\tgrid[a][b] = grid[a][b]+ pack;\t// add spaces\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t// show information\n\t\tfor(int x=0; x<grid.length; x++){\n\t\t\tfor(int y=0; y<grid[x].length; y++){\n\t\t\t\tSystem.out.print(grid[x][y]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\t\n\t}", "public void printGrid(){\n\t\tfor(int i=0;i<getHeight();i++){\n\t\t\tfor(int j=0;j<getWidth();j++){\n\t\t\t\tif(grid[i][j]==null)\n\t\t\t\t\tSystem.out.print(\"- \");\n\t\t\t\telse if(getGrid(i,j).isPath())\n\t\t\t\t\tSystem.out.print(\"1 \");\n\t\t\t\telse if(getGrid(i,j).isScenery())\n\t\t\t\t\tSystem.out.print(\"0 \");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(\"? \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tSystem.out.println();\n\t}", "public static void display(Student[] students) {\n System.out.print(\"\\nPrint Graph:\\n |\");\n for (int i = 0; i < students.length; i++) {\n System.out.printf(\"#%-2d|\", students[i].id);//column label\n }\n for (int i = 0; i < students.length; i++) {\n //grid\n System.out.println();\n for (int j = 0; j < 10; j++) {\n System.out.print(\"---|\");\n }\n System.out.println();\n\n //row label\n System.out.printf(\"#%-2d|\", students[i].id);\n for (int j = 0; j < students.length; j++) {\n int r = students[i].getFriendRep(students[j]);\n String rep = (r == 0) ? \" \" : String.valueOf(r); \n System.out.printf(\"%-3s|\", rep);\n }\n }\n }", "public static void main(String[] args)\n {\n String[][] stringArray = new String[10][10];\n for (int row = 0; row < stringArray.length; row++)\n {\n for (int i = 0; i < stringArray.length; i++)\n {\n stringArray[row][i] = \"Row \" + row + \" Item \" + i;\n }\n }\n for (int row = 0; row < stringArray.length; row++)\n {\n for (int i = 0; i < stringArray.length; i++)\n {\n System.out.println(stringArray[row][i]); \n }\n }\n\n }", "public static void main(String[] args) {\n\r\nint sale[][][] = new int[][][] {{{1,2,3,4},{5,6,7,8}},{{9,10,11,12,13},{14,15,16,17}}};\r\n\r\nfor(int i=0; i<2; i++)\r\n\tfor(int j=0; j<2; j++)\r\n\t\tfor( int k=0; k<2; k++)\r\n\t\t\tSystem.out.println(sale[i][j][k]);\r\n\r\n\r\n\t}", "public void print() {\n for (int i = 0; i < matrix.length; i++) {\n for (int j = 0; j < matrix[i].length; j++) {\n System.out.print(matrix[i][j] + \" \");\n }\n System.out.println();\n }\n }", "public static void main(String[] args) { \r\n int[][] a = new int[3][5]; // прямоугольный массив\r\n int size1 = a.length;\r\n int size2 = a[0].length;\r\n int[][] b = new int[3][]; // массив переменной длины (тут - треугольный)\r\n b[0] = new int[1];\r\n b[1] = new int[2];\r\n b[2] = new int[3];\r\n int c[] = new int[] {1,2,3,};\r\n c = new int[]{0,1,2,3}; // а вот так не сработает: c = {0,1,2,3};\r\n \r\n int[] array1D= {0,1,2,3}; \r\n int[][] array2D= {{0,1,5,10},{2,3,1,0,5,55,16},{0,1}};\r\n int[][][] array3D= {\r\n { {2,3,1,0},\r\n {2,3,1,0},\r\n {2,3,1,0}},\r\n \r\n { {2,3,1,0},\r\n {2,3,1,0},\r\n {2,3,1,0}},\r\n \r\n { {2,3,1,0},\r\n {2,3,1,0},\r\n {2,3,1,0}}};\r\n System.out.println(\"============array1D==========\");\r\n System.out.println(array1D);\r\n System.out.println(Arrays.toString(array1D)); //Работает на глубину одного измерения (для одномерных масивов)\r\n System.out.println(\"============array2D==========\");\r\n System.out.println(array2D);\r\n System.out.println(Arrays.toString(array2D)); \r\n System.out.println(Arrays.deepToString(array2D));\r\n System.out.println(\"============array3D==========\");\r\n System.out.println(array3D);\r\n System.out.println(Arrays.toString(array3D));\r\n System.out.println(Arrays.deepToString(array3D));\r\n }", "public String toString() {\n StringBuilder s = new StringBuilder();\n s.append(dim + \"\\n\");\n for (int i = 0; i < dim; i++) {\n for (int j = 0; j < dim; j++) {\n s.append(String.format(\"%2d \", board[i][j]));\n }\n s.append(\"\\n\");\n }\n return s.toString();\n }" ]
[ "0.70648813", "0.68325084", "0.6590163", "0.65354687", "0.65208834", "0.63508016", "0.6340456", "0.6214306", "0.6162643", "0.61624926", "0.6084579", "0.60249656", "0.60201067", "0.600139", "0.5996814", "0.5982566", "0.5956299", "0.5955127", "0.5935877", "0.5935305", "0.59281355", "0.5906661", "0.5894474", "0.58932287", "0.5889062", "0.58890337", "0.58741164", "0.5867376", "0.58625484", "0.58617973", "0.58579534", "0.58539784", "0.5850886", "0.5836658", "0.58362424", "0.5829687", "0.5814202", "0.58081883", "0.5808064", "0.5800595", "0.57927907", "0.57923996", "0.5786507", "0.57793206", "0.5776725", "0.57712764", "0.5768261", "0.5759131", "0.57543033", "0.57490474", "0.5739593", "0.5738527", "0.573751", "0.5732523", "0.57282287", "0.5721269", "0.5717327", "0.5713667", "0.5713158", "0.5708309", "0.5706095", "0.5700533", "0.56927764", "0.5692492", "0.5690094", "0.5681629", "0.5675907", "0.56741494", "0.5662728", "0.5661671", "0.56574583", "0.56463945", "0.5634114", "0.56292045", "0.5626738", "0.56250745", "0.562343", "0.56218725", "0.5620776", "0.56202567", "0.5605237", "0.5603675", "0.5602548", "0.55922866", "0.5588375", "0.5580494", "0.55749094", "0.5574446", "0.55733246", "0.55732244", "0.5572627", "0.5567561", "0.5567458", "0.5567341", "0.5563036", "0.55624425", "0.5562334", "0.5559653", "0.55590177", "0.55581427", "0.55510217" ]
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column partner_contract_snapshots.snapshot_id
public Integer getSnapshotId() { return snapshotId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSnapshotId() {\n return this.snapshotId;\n }", "String getSnapshot_id();", "public long getSnapshotId() {\n return snapshotId;\n }", "public long snapshotId() {\n return snapshotId;\n }", "public java.lang.String getSnapshotId() {\r\n return snapshotId;\r\n }", "public String getSourceSnapshotId() {\n return this.sourceSnapshotId;\n }", "public String getSnapshotIdentifier() {\n return this.snapshotIdentifier;\n }", "OffsetAndEpoch snapshotId();", "public void setSnapshotId(Integer snapshotId) {\r\n this.snapshotId = snapshotId;\r\n }", "public String getDBSnapshotIdentifier() {\n return this.dBSnapshotIdentifier;\n }", "public void setSnapshotId(long value) {\n this.snapshotId = value;\n }", "TbSnapshot selectByPrimaryKey(Integer id);", "public void setSnapshotId(String snapshotId) {\n this.snapshotId = snapshotId;\n }", "public void setSnapshotId(java.lang.String snapshotId) {\r\n this.snapshotId = snapshotId;\r\n }", "public StrColumn getRevisionId() {\n return delegate.getColumn(\"revision_id\", DelegatingStrColumn::new);\n }", "java.lang.String getSnapshotLocation();", "public java.lang.String getSnapshotName() {\r\n return snapshotName;\r\n }", "public String snapshotRunAsAccountId() {\n return this.snapshotRunAsAccountId;\n }", "public void setSourceSnapshotId(String sourceSnapshotId) {\n this.sourceSnapshotId = sourceSnapshotId;\n }", "SMRSnapshot<S> getSnapshot(@NonNull ViewGenerator<S> viewGenerator,\n @NonNull VersionedObjectIdentifier version);", "public void setSnapshotIdentifier(String snapshotIdentifier) {\n this.snapshotIdentifier = snapshotIdentifier;\n }", "public Ebs withSnapshotId(String snapshotId) {\n setSnapshotId(snapshotId);\n return this;\n }", "public int getAuditId();", "public Snapshot getLatestSnapshot() {\r\n return isSnapshot? null: snapshot;\r\n }", "com.google.protobuf.ByteString getSnapshotLocationBytes();", "long getSourceId();", "Long getInvoiceId();", "public String getRevisionId() {\n return revisionId;\n }", "public Model getProjectSnapshot()\n\t{\n\t\treturn project.getProjectSnapshot();\n\t}", "int getSourceSnId();", "String artifactSourceId();", "long getLockOwnersID(String uuid) throws DatabaseException;", "@Query(\"select ins.id from InstancesInfo ins where ins.dataMd5Hash = :dataMd5Hash\")\n Long findIdByDataMd5Hash(@Param(\"dataMd5Hash\") String dataMd5Hash);", "public Integer getSourceID()\r\n\t\t{ return mapping.getSourceId(); }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getDBSnapshotIdentifier() != null)\n sb.append(\"DBSnapshotIdentifier: \").append(getDBSnapshotIdentifier()).append(\",\");\n if (getDBSnapshotAttributes() != null)\n sb.append(\"DBSnapshotAttributes: \").append(getDBSnapshotAttributes());\n sb.append(\"}\");\n return sb.toString();\n }", "@Nullable\n public ObjectId getRevision() {\n return ObjectIds.copyOrNull(revision);\n }", "public abstract byte[] getSnapshot();", "public static String getRevision() {\n return annotation != null ? annotation.revision() : \"Unknown\";\n }", "String getGlJournalId();", "public Snapshot getPathSnapshot() {\r\n return isSnapshot? snapshot: null;\r\n }", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _candidate.getPrimaryKey();\n\t}", "public Long getVersionId() {\n return versionId;\n }", "public Integer getRowId() {\n return rowId;\n }", "String get_row_id()\n {\n return row_id;\n }", "java.lang.String getStageId();", "public String getSourceId() {\n return sourceId;\n }", "public int getProjectCommitRecordId(int pgId, int commitNumber) {\n String query = \"SELECT id FROM Project_Commit_Record where pgId = ? and commitNumber = ?\";\n int id = 0;\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(query)) {\n preStmt.setInt(1, pgId);\n preStmt.setInt(2, commitNumber);\n\n try (ResultSet rs = preStmt.executeQuery();) {\n if (rs.next()) {\n id = rs.getInt(\"id\");\n }\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return id;\n }", "long getCommitID() {\r\n return commit_id;\r\n }", "private String getRowIdColumn(ConnectorTableMetadata meta)\n {\n String rowIdColumn = AccumuloTableProperties.getRowId(meta.getProperties());\n if (rowIdColumn == null) {\n rowIdColumn = meta.getColumns().get(0).getName();\n }\n return rowIdColumn.toLowerCase();\n }", "public static boolean isSnapshotVersion() {\n\t\treturn getShortVersion().toLowerCase().startsWith(\"snapshot\");\n\t}", "public int get(int index, int snap_id) {\n if (map[index]==null) return 0;\n Map.Entry<Integer, Integer> entry = map[index].floorEntry(snap_id);\n if (entry==null) return 0;\n return entry.getValue();\n }", "public long getSourceId() {\n return sourceId_;\n }", "@Override\n public void handleSnapshotStart(String dpSchemaName, PrimaryKey primaryKey, ConnectSchema\n sinkSchema) {\n }", "java.lang.String getBackupId();", "java.lang.String getBackupId();", "java.lang.String getBackupId();", "java.lang.String getBackupId();", "String getSnapshotDiskFileName();", "public long getAssetVersionId() {\r\n return assetVersionId;\r\n }", "public IAuditID getAuditID() {\n return this.auditID;\n }", "public Image getSnapshot() {\n\t\treturn null;\n\t}", "public Guid getInvoiceRecipientId() {\r\n return invoiceRecipientId;\r\n }", "public interface Snapshot {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the location property: The geo-location where the resource lives.\n *\n * @return the location value.\n */\n String location();\n\n /**\n * Gets the tags property: Resource tags.\n *\n * @return the tags value.\n */\n Map<String, String> tags();\n\n /**\n * Gets the managedBy property: Unused. Always Null.\n *\n * @return the managedBy value.\n */\n String managedBy();\n\n /**\n * Gets the sku property: The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS.\n *\n * @return the sku value.\n */\n SnapshotSku sku();\n\n /**\n * Gets the timeCreated property: The time when the disk was created.\n *\n * @return the timeCreated value.\n */\n OffsetDateTime timeCreated();\n\n /**\n * Gets the osType property: The Operating System type.\n *\n * @return the osType value.\n */\n OperatingSystemTypes osType();\n\n /**\n * Gets the hyperVGeneration property: The hypervisor generation of the Virtual Machine. Applicable to OS disks\n * only.\n *\n * @return the hyperVGeneration value.\n */\n HyperVGeneration hyperVGeneration();\n\n /**\n * Gets the creationData property: Disk source information. CreationData information cannot be changed after the\n * disk has been created.\n *\n * @return the creationData value.\n */\n CreationData creationData();\n\n /**\n * Gets the diskSizeGB property: If creationData.createOption is Empty, this field is mandatory and it indicates the\n * size of the disk to create. If this field is present for updates or creation with other options, it indicates a\n * resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's\n * size.\n *\n * @return the diskSizeGB value.\n */\n Integer diskSizeGB();\n\n /**\n * Gets the diskSizeBytes property: The size of the disk in bytes. This field is read only.\n *\n * @return the diskSizeBytes value.\n */\n Long diskSizeBytes();\n\n /**\n * Gets the uniqueId property: Unique Guid identifying the resource.\n *\n * @return the uniqueId value.\n */\n String uniqueId();\n\n /**\n * Gets the encryptionSettingsCollection property: Encryption settings collection used be Azure Disk Encryption, can\n * contain multiple encryption settings per disk or snapshot.\n *\n * @return the encryptionSettingsCollection value.\n */\n EncryptionSettingsCollection encryptionSettingsCollection();\n\n /**\n * Gets the provisioningState property: The disk provisioning state.\n *\n * @return the provisioningState value.\n */\n String provisioningState();\n\n /**\n * Gets the incremental property: Whether a snapshot is incremental. Incremental snapshots on the same disk occupy\n * less space than full snapshots and can be diffed.\n *\n * @return the incremental value.\n */\n Boolean incremental();\n\n /**\n * Gets the encryption property: Encryption property can be used to encrypt data at rest with customer managed keys\n * or platform managed keys.\n *\n * @return the encryption value.\n */\n Encryption encryption();\n\n /**\n * Gets the region of the resource.\n *\n * @return the region of the resource.\n */\n Region region();\n\n /**\n * Gets the name of the resource region.\n *\n * @return the name of the resource region.\n */\n String regionName();\n\n /**\n * Gets the inner com.azure.resourcemanager.azurestack.compute.fluent.models.SnapshotInner object.\n *\n * @return the inner object.\n */\n SnapshotInner innerModel();\n\n /** The entirety of the Snapshot definition. */\n interface Definition\n extends DefinitionStages.Blank,\n DefinitionStages.WithLocation,\n DefinitionStages.WithResourceGroup,\n DefinitionStages.WithCreate {\n }\n /** The Snapshot definition stages. */\n interface DefinitionStages {\n /** The first stage of the Snapshot definition. */\n interface Blank extends WithLocation {\n }\n /** The stage of the Snapshot definition allowing to specify location. */\n interface WithLocation {\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithResourceGroup withRegion(Region location);\n\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithResourceGroup withRegion(String location);\n }\n /** The stage of the Snapshot definition allowing to specify parent resource. */\n interface WithResourceGroup {\n /**\n * Specifies resourceGroupName.\n *\n * @param resourceGroupName The name of the resource group.\n * @return the next definition stage.\n */\n WithCreate withExistingResourceGroup(String resourceGroupName);\n }\n /**\n * The stage of the Snapshot definition which contains all the minimum required properties for the resource to\n * be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithTags,\n DefinitionStages.WithSku,\n DefinitionStages.WithOsType,\n DefinitionStages.WithHyperVGeneration,\n DefinitionStages.WithCreationData,\n DefinitionStages.WithDiskSizeGB,\n DefinitionStages.WithEncryptionSettingsCollection,\n DefinitionStages.WithIncremental,\n DefinitionStages.WithEncryption {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n Snapshot create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n Snapshot create(Context context);\n }\n /** The stage of the Snapshot definition allowing to specify tags. */\n interface WithTags {\n /**\n * Specifies the tags property: Resource tags..\n *\n * @param tags Resource tags.\n * @return the next definition stage.\n */\n WithCreate withTags(Map<String, String> tags);\n }\n /** The stage of the Snapshot definition allowing to specify sku. */\n interface WithSku {\n /**\n * Specifies the sku property: The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS..\n *\n * @param sku The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS.\n * @return the next definition stage.\n */\n WithCreate withSku(SnapshotSku sku);\n }\n /** The stage of the Snapshot definition allowing to specify osType. */\n interface WithOsType {\n /**\n * Specifies the osType property: The Operating System type..\n *\n * @param osType The Operating System type.\n * @return the next definition stage.\n */\n WithCreate withOsType(OperatingSystemTypes osType);\n }\n /** The stage of the Snapshot definition allowing to specify hyperVGeneration. */\n interface WithHyperVGeneration {\n /**\n * Specifies the hyperVGeneration property: The hypervisor generation of the Virtual Machine. Applicable to\n * OS disks only..\n *\n * @param hyperVGeneration The hypervisor generation of the Virtual Machine. Applicable to OS disks only.\n * @return the next definition stage.\n */\n WithCreate withHyperVGeneration(HyperVGeneration hyperVGeneration);\n }\n /** The stage of the Snapshot definition allowing to specify creationData. */\n interface WithCreationData {\n /**\n * Specifies the creationData property: Disk source information. CreationData information cannot be changed\n * after the disk has been created..\n *\n * @param creationData Disk source information. CreationData information cannot be changed after the disk\n * has been created.\n * @return the next definition stage.\n */\n WithCreate withCreationData(CreationData creationData);\n }\n /** The stage of the Snapshot definition allowing to specify diskSizeGB. */\n interface WithDiskSizeGB {\n /**\n * Specifies the diskSizeGB property: If creationData.createOption is Empty, this field is mandatory and it\n * indicates the size of the disk to create. If this field is present for updates or creation with other\n * options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and\n * can only increase the disk's size..\n *\n * @param diskSizeGB If creationData.createOption is Empty, this field is mandatory and it indicates the\n * size of the disk to create. If this field is present for updates or creation with other options, it\n * indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can\n * only increase the disk's size.\n * @return the next definition stage.\n */\n WithCreate withDiskSizeGB(Integer diskSizeGB);\n }\n /** The stage of the Snapshot definition allowing to specify encryptionSettingsCollection. */\n interface WithEncryptionSettingsCollection {\n /**\n * Specifies the encryptionSettingsCollection property: Encryption settings collection used be Azure Disk\n * Encryption, can contain multiple encryption settings per disk or snapshot..\n *\n * @param encryptionSettingsCollection Encryption settings collection used be Azure Disk Encryption, can\n * contain multiple encryption settings per disk or snapshot.\n * @return the next definition stage.\n */\n WithCreate withEncryptionSettingsCollection(EncryptionSettingsCollection encryptionSettingsCollection);\n }\n /** The stage of the Snapshot definition allowing to specify incremental. */\n interface WithIncremental {\n /**\n * Specifies the incremental property: Whether a snapshot is incremental. Incremental snapshots on the same\n * disk occupy less space than full snapshots and can be diffed..\n *\n * @param incremental Whether a snapshot is incremental. Incremental snapshots on the same disk occupy less\n * space than full snapshots and can be diffed.\n * @return the next definition stage.\n */\n WithCreate withIncremental(Boolean incremental);\n }\n /** The stage of the Snapshot definition allowing to specify encryption. */\n interface WithEncryption {\n /**\n * Specifies the encryption property: Encryption property can be used to encrypt data at rest with customer\n * managed keys or platform managed keys..\n *\n * @param encryption Encryption property can be used to encrypt data at rest with customer managed keys or\n * platform managed keys.\n * @return the next definition stage.\n */\n WithCreate withEncryption(Encryption encryption);\n }\n }\n /**\n * Begins update for the Snapshot resource.\n *\n * @return the stage of resource update.\n */\n Snapshot.Update update();\n\n /** The template for Snapshot update. */\n interface Update\n extends UpdateStages.WithTags,\n UpdateStages.WithSku,\n UpdateStages.WithOsType,\n UpdateStages.WithDiskSizeGB,\n UpdateStages.WithEncryptionSettingsCollection,\n UpdateStages.WithEncryption {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n Snapshot apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n Snapshot apply(Context context);\n }\n /** The Snapshot update stages. */\n interface UpdateStages {\n /** The stage of the Snapshot update allowing to specify tags. */\n interface WithTags {\n /**\n * Specifies the tags property: Resource tags.\n *\n * @param tags Resource tags.\n * @return the next definition stage.\n */\n Update withTags(Map<String, String> tags);\n }\n /** The stage of the Snapshot update allowing to specify sku. */\n interface WithSku {\n /**\n * Specifies the sku property: The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS..\n *\n * @param sku The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS.\n * @return the next definition stage.\n */\n Update withSku(SnapshotSku sku);\n }\n /** The stage of the Snapshot update allowing to specify osType. */\n interface WithOsType {\n /**\n * Specifies the osType property: the Operating System type..\n *\n * @param osType the Operating System type.\n * @return the next definition stage.\n */\n Update withOsType(OperatingSystemTypes osType);\n }\n /** The stage of the Snapshot update allowing to specify diskSizeGB. */\n interface WithDiskSizeGB {\n /**\n * Specifies the diskSizeGB property: If creationData.createOption is Empty, this field is mandatory and it\n * indicates the size of the disk to create. If this field is present for updates or creation with other\n * options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and\n * can only increase the disk's size..\n *\n * @param diskSizeGB If creationData.createOption is Empty, this field is mandatory and it indicates the\n * size of the disk to create. If this field is present for updates or creation with other options, it\n * indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can\n * only increase the disk's size.\n * @return the next definition stage.\n */\n Update withDiskSizeGB(Integer diskSizeGB);\n }\n /** The stage of the Snapshot update allowing to specify encryptionSettingsCollection. */\n interface WithEncryptionSettingsCollection {\n /**\n * Specifies the encryptionSettingsCollection property: Encryption settings collection used be Azure Disk\n * Encryption, can contain multiple encryption settings per disk or snapshot..\n *\n * @param encryptionSettingsCollection Encryption settings collection used be Azure Disk Encryption, can\n * contain multiple encryption settings per disk or snapshot.\n * @return the next definition stage.\n */\n Update withEncryptionSettingsCollection(EncryptionSettingsCollection encryptionSettingsCollection);\n }\n /** The stage of the Snapshot update allowing to specify encryption. */\n interface WithEncryption {\n /**\n * Specifies the encryption property: Encryption property can be used to encrypt data at rest with customer\n * managed keys or platform managed keys..\n *\n * @param encryption Encryption property can be used to encrypt data at rest with customer managed keys or\n * platform managed keys.\n * @return the next definition stage.\n */\n Update withEncryption(Encryption encryption);\n }\n }\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @return the refreshed resource.\n */\n Snapshot refresh();\n\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @param context The context to associate with this operation.\n * @return the refreshed resource.\n */\n Snapshot refresh(Context context);\n}", "public BigDecimal getStatementId() {\n return getStatementIdProperty().getValue();\n }", "private int getRID() throws SQLException {\n\t\tResultSet result = getRidStatement.executeQuery();\n\t\tif (result.next()) {\n\t\t\tint out = result.getInt(1);\n\t\t\tresult.close();\n\t\t\tif (DEBUG) {\n\t\t\t\tSystem.out.println(\"getRID: \"+out+\"\\n\");\n\t\t\t}\n\t\t\treturn out;\n\t\t} else {\n\t\t\tif (DEBUG) {\n\t\t\t\tSystem.out.println(\"getRID: \"+0+\"\\n\");\n\t\t\t}\n\t\t\treturn 0;\n\t\t}\n\t}", "public long getEventVersionId()\n {\n return eventVersionId;\n }", "public String getRevisionNumber()\n {\n return (revisionNumber);\n }", "public NBBOStruct getNbboSnapshotForProduct(String sessionName, int productKey) throws UserException;", "public int getBSCA_PriceChangePrev_ID();", "public long getSourceId() {\n return sourceId_;\n }", "public String getRevision() {\n return RevisionUtils.extract(\"$Revision: 8034 $\");\n }", "@Override\n public HashedVersion getEndVersion() {\n return getSnapshot().getHashedVersion();\n }", "public Integer getRevision()\r\n {\r\n return (m_revision);\r\n }", "int getLatestCopyNo(int materialID)\n throws SQLException, NoSuchElementException;", "public Long readLatestVersionId(final Artifact artifact);", "public SnapshotSku getSku() {\n return this.sku;\n }", "public String getRevisionNumber()\n { // begin getRevisionNumber()\n // return string\n return(revisionNumber);\n }", "public String getRevisionNumber()\n { // begin getRevisionNumber()\n // return string\n return(revisionNumber);\n }", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _esfTournament.getPrimaryKey();\n\t}", "long getCaptureFestivalId();", "public String getRevisionNumber()\n {\n return(revisionNumber);\n }", "public int getSourceSnId() {\n return sourceSnId_;\n }", "long getCurrentRevision();", "public abstract Long getIdHistoricalWrapper();", "int getReprojectedModisId(String project, DataDate date) throws SQLException;", "String getSourceID();", "@GET\n @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })\n @Path(\"/{id}/protection/snapshots/{sid}\")\n @CheckPermission(roles = { Role.SYSTEM_MONITOR, Role.TENANT_ADMIN }, acls = { ACL.ANY })\n public BlockSnapshotRestRep getConsistencyGroupSnapshot(\n @PathParam(\"id\") final URI consistencyGroupId, @PathParam(\"sid\") final URI snapshotId) {\n final BlockConsistencyGroup consistencyGroup = (BlockConsistencyGroup) queryResource(consistencyGroupId);\n final BlockSnapshot snapshot = (BlockSnapshot) queryResource(snapshotId);\n verifySnapshotIsForConsistencyGroup(snapshot, consistencyGroup);\n return BlockMapper.map(_dbClient, snapshot);\n }", "public int getC_Invoice_ID();", "com.google.protobuf.ByteString getStageIdBytes();", "public String getLastAvailableSnapshotVersion( )\n {\n return _strLastAvailableSnapshotVersion;\n }", "public abstract SnapShot GetSnapshot();", "@Transient\n @Override\n public Integer getId()\n {\n return this.journalId;\n }", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _dlSyncEvent.getPrimaryKey();\n\t}", "public Integer getBillSourceId() {\n return billSourceId;\n }", "ConstantIdentityKey[] getMappingSnapshot();", "public String getRevisionReference();", "public int getSrcId(int index) {\n return srcId_.getInt(index);\n }", "public int getInvoiceID(){\n return invoiceID;\n }", "public int getVersionId() {\r\n\t\tif (versionId != null) {\r\n\t\t\treturn versionId;\r\n\t\t}\r\n\t\t\r\n\t\tcreateVersion();\r\n\t\treturn versionId;\r\n\t}", "String getRepositoryUUID();" ]
[ "0.7201915", "0.71878994", "0.7088822", "0.7027994", "0.68865263", "0.68710476", "0.66339505", "0.618749", "0.6158555", "0.60647786", "0.60464007", "0.5774188", "0.5730752", "0.5629432", "0.5588099", "0.54012495", "0.538356", "0.52775526", "0.51694036", "0.5155534", "0.51392806", "0.51285547", "0.5082778", "0.50698483", "0.50452095", "0.49759105", "0.49442807", "0.4935704", "0.49204883", "0.4876701", "0.48611534", "0.4853191", "0.4828373", "0.48260486", "0.4796328", "0.47932905", "0.47866648", "0.47827494", "0.4778803", "0.47521332", "0.47487664", "0.47260273", "0.47168618", "0.47049308", "0.46939307", "0.46921593", "0.46894473", "0.46721488", "0.4652965", "0.4645613", "0.46420205", "0.4630302", "0.4622303", "0.46168146", "0.46168146", "0.46168146", "0.46168146", "0.46153587", "0.4605899", "0.4603415", "0.46008933", "0.4600776", "0.46006644", "0.45953256", "0.4590368", "0.45852697", "0.457497", "0.4573864", "0.45731378", "0.45655277", "0.45589674", "0.45583835", "0.45580202", "0.45548728", "0.45505318", "0.45467794", "0.45440197", "0.45440197", "0.45396483", "0.45370883", "0.45361394", "0.45274684", "0.45249793", "0.45235944", "0.45212182", "0.45080987", "0.45042846", "0.44958502", "0.44932124", "0.44912153", "0.44887173", "0.4488354", "0.44825494", "0.44815147", "0.44785595", "0.44776148", "0.44759595", "0.44758323", "0.44727808", "0.44700485" ]
0.73444927
0
This method was generated by MyBatis Generator. This method sets the value of the database column partner_contract_snapshots.snapshot_id
public void setSnapshotId(Integer snapshotId) { this.snapshotId = snapshotId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSnapshotId(long value) {\n this.snapshotId = value;\n }", "public void setSnapshotId(String snapshotId) {\n this.snapshotId = snapshotId;\n }", "public void setSnapshotId(java.lang.String snapshotId) {\r\n this.snapshotId = snapshotId;\r\n }", "public void setSnapshot(Snapshot snapshot) {\n m_table.getEntry(\"snapshot\").setValue(snapshot.getValue());\n }", "public Integer getSnapshotId() {\r\n return snapshotId;\r\n }", "public String getSnapshotId() {\n return this.snapshotId;\n }", "public void setSnapshotIdentifier(String snapshotIdentifier) {\n this.snapshotIdentifier = snapshotIdentifier;\n }", "public long getSnapshotId() {\n return snapshotId;\n }", "public long snapshotId() {\n return snapshotId;\n }", "String getSnapshot_id();", "public java.lang.String getSnapshotId() {\r\n return snapshotId;\r\n }", "public void setSourceSnapshotId(String sourceSnapshotId) {\n this.sourceSnapshotId = sourceSnapshotId;\n }", "public String getSourceSnapshotId() {\n return this.sourceSnapshotId;\n }", "public String getSnapshotIdentifier() {\n return this.snapshotIdentifier;\n }", "public Ebs withSnapshotId(String snapshotId) {\n setSnapshotId(snapshotId);\n return this;\n }", "OffsetAndEpoch snapshotId();", "public void setSnapshotName(java.lang.String snapshotName) {\r\n this.snapshotName = snapshotName;\r\n }", "public void setDBSnapshotIdentifier(String dBSnapshotIdentifier) {\n this.dBSnapshotIdentifier = dBSnapshotIdentifier;\n }", "public void setSnapshotSizeFactor(double snapshotSizeFactor) {\n this.snapshotSizeFactor = snapshotSizeFactor;\n }", "TbSnapshot selectByPrimaryKey(Integer id);", "@Override\n public void setCurrentSnapshot(Snapshot nextSnapshot) {\n if (currentSnapshot != null && nextSnapshot.getLastIndex() <= currentSnapshot.getLastIndex()) {\n LOGGER.debug(\"Not installing snapshot that would not advance us (currentSnapshot.getLastIndex() == {}, nextSnapshot.getLastLogIndex() == {}\",\n currentSnapshot.getLastIndex(), nextSnapshot.getLastIndex());\n return;\n }\n currentSnapshot = (InMemorySnapshot) nextSnapshot;\n logStorage.installSnapshot(currentSnapshot);\n for (SnapshotInstalledListener listener : snapshotInstalledListeners) {\n listener.onSnapshotInstalled(currentSnapshot);\n }\n }", "public void init(long availSnapshotId) {\n this.availSnapshotInfoRef.set(new SnapshotInfo(availSnapshotId, availSnapshotId));\n }", "@Override\n public void handleSnapshotStart(String dpSchemaName, PrimaryKey primaryKey, ConnectSchema\n sinkSchema) {\n }", "@Override\n public void handleSnapshot(FarmUtilDomain.PublishUtilState snapshot) {\n \n }", "public void reset(long topologyId, long snapshot) {\n log.debug(\"Reset snapshot writer, snapshot={}, topologyConfigId={}\", snapshot, topologyId);\n topologyConfigId = topologyId;\n srcGlobalSnapshot = snapshot;\n recvSeq = 0;\n phase = Phase.TRANSFER_PHASE;\n snapshotSyncStartMarker = Optional.empty();\n replicatedStreamIds.clear();\n // Sync with registry table to capture local updates on Sink side\n replicationContext.refresh();\n }", "public ModifySnapshotAttributeResponse modifySnapshotAttribute(ModifySnapshotAttribute modifySnapshotAttribute) {\n \t\treturn null;\r\n \t}", "public String getDBSnapshotIdentifier() {\n return this.dBSnapshotIdentifier;\n }", "void setInvoiceId(Long invoiceId);", "SMRSnapshot<S> getSnapshot(@NonNull ViewGenerator<S> viewGenerator,\n @NonNull VersionedObjectIdentifier version);", "public StorediSCSIVolume withSourceSnapshotId(String sourceSnapshotId) {\n setSourceSnapshotId(sourceSnapshotId);\n return this;\n }", "@Override\n public void handleSnapshotDone(String dpSchemaName, PrimaryKey primaryKey) {\n }", "@Override\n public void restoreSnapshot(BlockSnapshot snapshot, Volume parentVolume, String taskId) {\n _log.info(String.format(\"Request to restore RP volume %s from snapshot %s.\",\n parentVolume.getId().toString(), snapshot.getId().toString()));\n super.restoreSnapshot(snapshot, parentVolume, taskId);\n }", "private void setSrcId(int value) {\n \n srcId_ = value;\n }", "public void setSequenceId(long sequence_id)\n {\n sequence_id_ = sequence_id;\n }", "public void setBucketID(long param){\n localBucketIDTracker = true;\n \n this.localBucketID=param;\n \n\n }", "protected void setVersion(EmployeeLeave employeeLeave, ResultSet rs, int rowNumber) throws SQLException{\n\t\tInteger version = rs.getInt(EmployeeLeaveTable.COLUMN_VERSION);\n\t\tif(version == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\n\t\temployeeLeave.setVersion(version);\n\t}", "public void setRowId(Integer rowId) {\n this.rowId = rowId;\n }", "public void m21466o() throws bv {\n if (this.f18795a == null) {\n throw new cp(\"Required field 'snapshots' was not present! Struct: \" + toString());\n }\n }", "public void setBSCA_PriceChangePrev_ID (int BSCA_PriceChangePrev_ID);", "public ResetSnapshotAttributeResponse resetSnapshotAttribute(ResetSnapshotAttribute resetSnapshotAttribute) {\n \t\treturn null;\r\n \t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_candidate.setPrimaryKey(primaryKey);\n\t}", "public void setC_Invoice_ID (int C_Invoice_ID);", "public void mo35711a(MessageSnapshot snapshot) {\n this.f33334b.execute(new C10908f(this, snapshot));\n }", "int updateByPrimaryKey(TbSnapshot record);", "@Generated\n @Selector(\"setRollingStartNumber:\")\n public native void setRollingStartNumber(int value);", "private void setSrcId(int value) {\n \n srcId_ = value;\n }", "public abstract boolean ReleaseSnapshot(SnapShot snapshot);", "Update withSku(SnapshotSku sku);", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_esfTournament.setPrimaryKey(primaryKey);\n\t}", "java.lang.String getSnapshotLocation();", "public void setPrimaryKey(long primaryKey) {\n _courseImage.setPrimaryKey(primaryKey);\n }", "public void setStargateId(int val) {\n stargateId = val;\n }", "@Override\n public void uploadVerifiedSnapshot(long captureTimestamp) {\n final TableId tableId = getTableId(VERIFIED_SNAPSHOT_TABLE_NAME);\n final InsertAllRequest insertAllRequest =\n InsertAllRequest.newBuilder(tableId)\n .setIgnoreUnknownValues(false)\n .addRow(RowToInsert.of(generateInsertId(), getFixedValues(captureTimestamp)))\n .build();\n InsertAllResponse response = bigQueryService.insertAll(insertAllRequest);\n checkResponse(ImmutableMultimap.of(tableId, response));\n log.info(String.format(\"Verified snapshot at %d\", captureTimestamp));\n }", "void setCommitID(long commit_id) {\r\n this.commit_id = commit_id;\r\n }", "public void snapshot(PSSnapshotBuilder builder) throws DocumentException;", "@Override\n\tpublic void setRowId(int parameterIndex, RowId x) throws SQLException {\n\t\t\n\t}", "@Override\r\n public void setsaleId(int saleid) {\n this.saleId = saleid;\r\n }", "public interface Snapshot {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the location property: The geo-location where the resource lives.\n *\n * @return the location value.\n */\n String location();\n\n /**\n * Gets the tags property: Resource tags.\n *\n * @return the tags value.\n */\n Map<String, String> tags();\n\n /**\n * Gets the managedBy property: Unused. Always Null.\n *\n * @return the managedBy value.\n */\n String managedBy();\n\n /**\n * Gets the sku property: The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS.\n *\n * @return the sku value.\n */\n SnapshotSku sku();\n\n /**\n * Gets the timeCreated property: The time when the disk was created.\n *\n * @return the timeCreated value.\n */\n OffsetDateTime timeCreated();\n\n /**\n * Gets the osType property: The Operating System type.\n *\n * @return the osType value.\n */\n OperatingSystemTypes osType();\n\n /**\n * Gets the hyperVGeneration property: The hypervisor generation of the Virtual Machine. Applicable to OS disks\n * only.\n *\n * @return the hyperVGeneration value.\n */\n HyperVGeneration hyperVGeneration();\n\n /**\n * Gets the creationData property: Disk source information. CreationData information cannot be changed after the\n * disk has been created.\n *\n * @return the creationData value.\n */\n CreationData creationData();\n\n /**\n * Gets the diskSizeGB property: If creationData.createOption is Empty, this field is mandatory and it indicates the\n * size of the disk to create. If this field is present for updates or creation with other options, it indicates a\n * resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's\n * size.\n *\n * @return the diskSizeGB value.\n */\n Integer diskSizeGB();\n\n /**\n * Gets the diskSizeBytes property: The size of the disk in bytes. This field is read only.\n *\n * @return the diskSizeBytes value.\n */\n Long diskSizeBytes();\n\n /**\n * Gets the uniqueId property: Unique Guid identifying the resource.\n *\n * @return the uniqueId value.\n */\n String uniqueId();\n\n /**\n * Gets the encryptionSettingsCollection property: Encryption settings collection used be Azure Disk Encryption, can\n * contain multiple encryption settings per disk or snapshot.\n *\n * @return the encryptionSettingsCollection value.\n */\n EncryptionSettingsCollection encryptionSettingsCollection();\n\n /**\n * Gets the provisioningState property: The disk provisioning state.\n *\n * @return the provisioningState value.\n */\n String provisioningState();\n\n /**\n * Gets the incremental property: Whether a snapshot is incremental. Incremental snapshots on the same disk occupy\n * less space than full snapshots and can be diffed.\n *\n * @return the incremental value.\n */\n Boolean incremental();\n\n /**\n * Gets the encryption property: Encryption property can be used to encrypt data at rest with customer managed keys\n * or platform managed keys.\n *\n * @return the encryption value.\n */\n Encryption encryption();\n\n /**\n * Gets the region of the resource.\n *\n * @return the region of the resource.\n */\n Region region();\n\n /**\n * Gets the name of the resource region.\n *\n * @return the name of the resource region.\n */\n String regionName();\n\n /**\n * Gets the inner com.azure.resourcemanager.azurestack.compute.fluent.models.SnapshotInner object.\n *\n * @return the inner object.\n */\n SnapshotInner innerModel();\n\n /** The entirety of the Snapshot definition. */\n interface Definition\n extends DefinitionStages.Blank,\n DefinitionStages.WithLocation,\n DefinitionStages.WithResourceGroup,\n DefinitionStages.WithCreate {\n }\n /** The Snapshot definition stages. */\n interface DefinitionStages {\n /** The first stage of the Snapshot definition. */\n interface Blank extends WithLocation {\n }\n /** The stage of the Snapshot definition allowing to specify location. */\n interface WithLocation {\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithResourceGroup withRegion(Region location);\n\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithResourceGroup withRegion(String location);\n }\n /** The stage of the Snapshot definition allowing to specify parent resource. */\n interface WithResourceGroup {\n /**\n * Specifies resourceGroupName.\n *\n * @param resourceGroupName The name of the resource group.\n * @return the next definition stage.\n */\n WithCreate withExistingResourceGroup(String resourceGroupName);\n }\n /**\n * The stage of the Snapshot definition which contains all the minimum required properties for the resource to\n * be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithTags,\n DefinitionStages.WithSku,\n DefinitionStages.WithOsType,\n DefinitionStages.WithHyperVGeneration,\n DefinitionStages.WithCreationData,\n DefinitionStages.WithDiskSizeGB,\n DefinitionStages.WithEncryptionSettingsCollection,\n DefinitionStages.WithIncremental,\n DefinitionStages.WithEncryption {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n Snapshot create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n Snapshot create(Context context);\n }\n /** The stage of the Snapshot definition allowing to specify tags. */\n interface WithTags {\n /**\n * Specifies the tags property: Resource tags..\n *\n * @param tags Resource tags.\n * @return the next definition stage.\n */\n WithCreate withTags(Map<String, String> tags);\n }\n /** The stage of the Snapshot definition allowing to specify sku. */\n interface WithSku {\n /**\n * Specifies the sku property: The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS..\n *\n * @param sku The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS.\n * @return the next definition stage.\n */\n WithCreate withSku(SnapshotSku sku);\n }\n /** The stage of the Snapshot definition allowing to specify osType. */\n interface WithOsType {\n /**\n * Specifies the osType property: The Operating System type..\n *\n * @param osType The Operating System type.\n * @return the next definition stage.\n */\n WithCreate withOsType(OperatingSystemTypes osType);\n }\n /** The stage of the Snapshot definition allowing to specify hyperVGeneration. */\n interface WithHyperVGeneration {\n /**\n * Specifies the hyperVGeneration property: The hypervisor generation of the Virtual Machine. Applicable to\n * OS disks only..\n *\n * @param hyperVGeneration The hypervisor generation of the Virtual Machine. Applicable to OS disks only.\n * @return the next definition stage.\n */\n WithCreate withHyperVGeneration(HyperVGeneration hyperVGeneration);\n }\n /** The stage of the Snapshot definition allowing to specify creationData. */\n interface WithCreationData {\n /**\n * Specifies the creationData property: Disk source information. CreationData information cannot be changed\n * after the disk has been created..\n *\n * @param creationData Disk source information. CreationData information cannot be changed after the disk\n * has been created.\n * @return the next definition stage.\n */\n WithCreate withCreationData(CreationData creationData);\n }\n /** The stage of the Snapshot definition allowing to specify diskSizeGB. */\n interface WithDiskSizeGB {\n /**\n * Specifies the diskSizeGB property: If creationData.createOption is Empty, this field is mandatory and it\n * indicates the size of the disk to create. If this field is present for updates or creation with other\n * options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and\n * can only increase the disk's size..\n *\n * @param diskSizeGB If creationData.createOption is Empty, this field is mandatory and it indicates the\n * size of the disk to create. If this field is present for updates or creation with other options, it\n * indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can\n * only increase the disk's size.\n * @return the next definition stage.\n */\n WithCreate withDiskSizeGB(Integer diskSizeGB);\n }\n /** The stage of the Snapshot definition allowing to specify encryptionSettingsCollection. */\n interface WithEncryptionSettingsCollection {\n /**\n * Specifies the encryptionSettingsCollection property: Encryption settings collection used be Azure Disk\n * Encryption, can contain multiple encryption settings per disk or snapshot..\n *\n * @param encryptionSettingsCollection Encryption settings collection used be Azure Disk Encryption, can\n * contain multiple encryption settings per disk or snapshot.\n * @return the next definition stage.\n */\n WithCreate withEncryptionSettingsCollection(EncryptionSettingsCollection encryptionSettingsCollection);\n }\n /** The stage of the Snapshot definition allowing to specify incremental. */\n interface WithIncremental {\n /**\n * Specifies the incremental property: Whether a snapshot is incremental. Incremental snapshots on the same\n * disk occupy less space than full snapshots and can be diffed..\n *\n * @param incremental Whether a snapshot is incremental. Incremental snapshots on the same disk occupy less\n * space than full snapshots and can be diffed.\n * @return the next definition stage.\n */\n WithCreate withIncremental(Boolean incremental);\n }\n /** The stage of the Snapshot definition allowing to specify encryption. */\n interface WithEncryption {\n /**\n * Specifies the encryption property: Encryption property can be used to encrypt data at rest with customer\n * managed keys or platform managed keys..\n *\n * @param encryption Encryption property can be used to encrypt data at rest with customer managed keys or\n * platform managed keys.\n * @return the next definition stage.\n */\n WithCreate withEncryption(Encryption encryption);\n }\n }\n /**\n * Begins update for the Snapshot resource.\n *\n * @return the stage of resource update.\n */\n Snapshot.Update update();\n\n /** The template for Snapshot update. */\n interface Update\n extends UpdateStages.WithTags,\n UpdateStages.WithSku,\n UpdateStages.WithOsType,\n UpdateStages.WithDiskSizeGB,\n UpdateStages.WithEncryptionSettingsCollection,\n UpdateStages.WithEncryption {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n Snapshot apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n Snapshot apply(Context context);\n }\n /** The Snapshot update stages. */\n interface UpdateStages {\n /** The stage of the Snapshot update allowing to specify tags. */\n interface WithTags {\n /**\n * Specifies the tags property: Resource tags.\n *\n * @param tags Resource tags.\n * @return the next definition stage.\n */\n Update withTags(Map<String, String> tags);\n }\n /** The stage of the Snapshot update allowing to specify sku. */\n interface WithSku {\n /**\n * Specifies the sku property: The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS..\n *\n * @param sku The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS.\n * @return the next definition stage.\n */\n Update withSku(SnapshotSku sku);\n }\n /** The stage of the Snapshot update allowing to specify osType. */\n interface WithOsType {\n /**\n * Specifies the osType property: the Operating System type..\n *\n * @param osType the Operating System type.\n * @return the next definition stage.\n */\n Update withOsType(OperatingSystemTypes osType);\n }\n /** The stage of the Snapshot update allowing to specify diskSizeGB. */\n interface WithDiskSizeGB {\n /**\n * Specifies the diskSizeGB property: If creationData.createOption is Empty, this field is mandatory and it\n * indicates the size of the disk to create. If this field is present for updates or creation with other\n * options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and\n * can only increase the disk's size..\n *\n * @param diskSizeGB If creationData.createOption is Empty, this field is mandatory and it indicates the\n * size of the disk to create. If this field is present for updates or creation with other options, it\n * indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can\n * only increase the disk's size.\n * @return the next definition stage.\n */\n Update withDiskSizeGB(Integer diskSizeGB);\n }\n /** The stage of the Snapshot update allowing to specify encryptionSettingsCollection. */\n interface WithEncryptionSettingsCollection {\n /**\n * Specifies the encryptionSettingsCollection property: Encryption settings collection used be Azure Disk\n * Encryption, can contain multiple encryption settings per disk or snapshot..\n *\n * @param encryptionSettingsCollection Encryption settings collection used be Azure Disk Encryption, can\n * contain multiple encryption settings per disk or snapshot.\n * @return the next definition stage.\n */\n Update withEncryptionSettingsCollection(EncryptionSettingsCollection encryptionSettingsCollection);\n }\n /** The stage of the Snapshot update allowing to specify encryption. */\n interface WithEncryption {\n /**\n * Specifies the encryption property: Encryption property can be used to encrypt data at rest with customer\n * managed keys or platform managed keys..\n *\n * @param encryption Encryption property can be used to encrypt data at rest with customer managed keys or\n * platform managed keys.\n * @return the next definition stage.\n */\n Update withEncryption(Encryption encryption);\n }\n }\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @return the refreshed resource.\n */\n Snapshot refresh();\n\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @param context The context to associate with this operation.\n * @return the refreshed resource.\n */\n Snapshot refresh(Context context);\n}", "public void setValuationClock(final Clock snapshotClock) {\n put(VALUATION_CLOCK_NAME, snapshotClock);\n }", "CopySnapshotResult copySnapshot(CopySnapshotRequest copySnapshotRequest);", "public String snapshotRunAsAccountId() {\n return this.snapshotRunAsAccountId;\n }", "public void setBundleID(long param){\n localBundleIDTracker = true;\n \n this.localBundleID=param;\n \n\n }", "void markOffset(String sourceTable, String sourceOffset, boolean isSnapshot);", "public void startTakingSnapShots() {\n setNumber(\"snapshot\", 0);\n }", "public java.lang.String getSnapshotName() {\r\n return snapshotName;\r\n }", "public void setTransSnapshot(String transSnapshot) {\n this.transSnapshot = transSnapshot == null ? null : transSnapshot.trim();\n }", "public final void mT__84() throws RecognitionException {\n try {\n int _type = T__84;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:152:7: ( 'snapshot' )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:152:9: 'snapshot'\n {\n match(\"snapshot\"); if (state.failed) return ;\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public void addSnapshot(Vector<Observation<P>> snapshot)\n\t{\n\t\tVector<P> newSnapshot = new Vector<P>();\n\n\t\tfor (Observation<P> observation : snapshot)\n\t\t{\n\t\t\tnewSnapshot.add(this.clonePoint(observation.getRobotPosition()));\n\t\t}\n\n\t\tthis.snapshots.add(newSnapshot);\n\t}", "protected void setId(EmployeeLeave employeeLeave, ResultSet rs, int rowNumber) throws SQLException{\n\t\tString id = rs.getString(EmployeeLeaveTable.COLUMN_ID);\n\t\tif(id == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\n\t\temployeeLeave.setId(id);\n\t}", "private void setSrcId(\n int index, int value) {\n ensureSrcIdIsMutable();\n srcId_.setInt(index, value);\n }", "protected void registerSnapshotInfo(String id, String segment, IndexCommit commit) {\r\n idToSnapshot.put(id, new SnapshotInfo(id, segment, commit));\r\n Set<String> ids = segmentsFileToIDs.get(segment);\r\n if (ids == null) {\r\n ids = new HashSet<String>();\r\n segmentsFileToIDs.put(segment, ids);\r\n }\r\n ids.add(id);\r\n }", "private SnapshotSaveConfirmationModal newSaveSnapshotModal() {\n\t\tfinal IModel<String> projectNameModel = Model.of(\"\");\r\n\r\n\t\tsaveSnapshotModal = new SnapshotSaveConfirmationModal(\r\n\t\t\t\t\"newSaveSnapshootModal\", projectNameModel) {\r\n\t\t\tprivate static final long serialVersionUID = -5489628601177981259L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onConfirmed(AjaxRequestTarget target) {\r\n\r\n\t\t\t\t// If there is no historic values update before storing the\r\n\t\t\t\t// snapshot\r\n\t\t\t\tif (historicalDataService.countHistValuesForProject(project\r\n\t\t\t\t\t\t.getId()) <= 0) {\r\n\t\t\t\t\tUQasarUtil.updateTree(project);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tproject.addSnapshot(projectNameModel.getObject());\r\n\r\n\t\t\t\tPageParameters parameters = BasePage.appendSuccessMessage(\r\n\t\t\t\t\t\tProjectViewPage.forProject(project),\r\n\t\t\t\t\t\tnew StringResourceModel(\"snapshot.saved.message\", this,\r\n\t\t\t\t\t\t\t\tModel.of(project)));\r\n\t\t\t\tsetResponsePage(ProjectViewPage.class, parameters);\r\n\t\t\t}\r\n\t\t};\r\n\t\treturn saveSnapshotModal;\r\n\t}", "public Builder setRowId(int value) {\n \n rowId_ = value;\n onChanged();\n return this;\n }", "public Builder setRowId(int value) {\n \n rowId_ = value;\n onChanged();\n return this;\n }", "public Builder setRowId(int value) {\n \n rowId_ = value;\n onChanged();\n return this;\n }", "public Builder setRowId(int value) {\n \n rowId_ = value;\n onChanged();\n return this;\n }", "public Builder setRowId(int value) {\n \n rowId_ = value;\n onChanged();\n return this;\n }", "public void setM_PriceList_Version_ID (int M_PriceList_Version_ID);", "public void takeSnapshot(String snapshotName) throws IOException\n {\n ssProxy.takeAllSnapshot(snapshotName);\n }", "public void setRegionid(int newValue) {\n\tthis.regionid = newValue;\n}", "public void setReleaseId(int releaseId) { this.releaseId = releaseId; }", "public Builder setCaptureFestivalId(long value) {\n \n captureFestivalId_ = value;\n onChanged();\n return this;\n }", "public void snapshot(String name) {\n snapshot(name, null, null, false, null);\n }", "@Override\n\tpublic void takeEnvSnapshot(long envId) {\n\t}", "public void setRoomstlogid(Long newVal) {\n if ((newVal != null && this.roomstlogid != null && (newVal.compareTo(this.roomstlogid) == 0)) || \n (newVal == null && this.roomstlogid == null && roomstlogid_is_initialized)) {\n return; \n } \n this.roomstlogid = newVal; \n roomstlogid_is_modified = true; \n roomstlogid_is_initialized = true; \n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_dlSyncEvent.setPrimaryKey(primaryKey);\n\t}", "interface WithSku {\n /**\n * Specifies the sku property: The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS..\n *\n * @param sku The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS.\n * @return the next definition stage.\n */\n Update withSku(SnapshotSku sku);\n }", "@Override\n public void execute(DelegateExecution delegateExecution) throws Exception {\n JsonValue candidate = delegateExecution.getVariableTyped(\"new_candidate\");\n Integer candidate_id = (Integer) delegateExecution.getVariable(\"candidate_id\");\n\n // Convert birthdate\n String s_birth_date = candidate.getValue().prop(\"birth_date\").stringValue();\n java.util.Date util_birth_date = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\").parse(s_birth_date);\n java.sql.Date birth_date = new java.sql.Date(util_birth_date.getTime());\n\n // Prepare Update Statement\n String candidate_update =\n \"UPDATE Candidate SET \" +\n //\"first_name = \\'\" + candidate.getValue().prop(\"first_name\").stringValue() + \"\\', \" +\n //\"last_name = \\'\" + candidate.getValue().prop(\"last_name\").stringValue() + \"\\', \" +\n \"sex = \\'\" + candidate.getValue().prop(\"sex\").stringValue() + \"\\', \" +\n \"email = \\'\" + candidate.getValue().prop(\"email\").stringValue() + \"\\', \" +\n \"title = \\'\" + candidate.getValue().prop(\"title\").stringValue() + \"\\', \" +\n \"address = \\'\" + candidate.getValue().prop(\"address\").stringValue() + \"\\' \" +\n //\"birth_date = \\'\" + birth_date + \"\\' \" +\n \"WHERE candidate_id = \" + candidate_id;\n\n Connection con = DriverManager.getConnection(\"jdbc:h2:./camunda-db\", \"sa\", \"sa\");\n PreparedStatement statement = con.prepareStatement(candidate_update);\n Integer index = statement.executeUpdate();\n\n // Index = Updated PK id\n System.out.println(index);\n\n // insert new application to db\n String application_insert = \"INSERT INTO Application ( CA_AP_FK, FK_job_Opening_Id) VALUES (?,?)\";\n PreparedStatement statement_application = con.prepareStatement(application_insert, Statement.RETURN_GENERATED_KEYS);\n statement_application.setInt(1, candidate_id);\n statement_application.setInt(2, (Integer) delegateExecution.getVariable(\"openingId\"));\n statement_application.executeUpdate();\n ResultSet rs_application = statement_application.getGeneratedKeys();\n\n if (rs_application.next()){\n // set process variable required for next step\n delegateExecution.setVariable(\"applications_received\", true);\n delegateExecution.setVariable(\"candidate_email\", \"wplacmrecruiting@gmail.com\");\n delegateExecution.setVariable(\"candidate_confirmation_text\", \"hello this is a test\");\n\n // add application to collection\n String application = \"{\\\"application_id\\\" : \\\"\" + rs_application.getInt(1) + \"\\\",\"\n + \"\\\"candidate_id\\\" : \\\"\" + candidate_id + \"\\\",\"\n + \"\\\"first_name\\\" : \\\"\" + candidate.getValue().prop(\"first_name\").stringValue() + \"\\\",\"\n + \"\\\"last_name\\\" : \\\"\" + candidate.getValue().prop(\"last_name\").stringValue() + \"\\\",\"\n + \"\\\"cv\\\" : \\\"\" + \"cv link\" + \"\\\"\"\n + \"}\";\n\n System.out.println(application);\n SpinJsonNode application_json = JSON(application);\n\n JsonValueImpl collApplication = (JsonValueImpl) delegateExecution.getVariableTyped(\"collectedApplications\");\n\n SpinJsonNode application_collection = JSON(collApplication.getValueSerialized());\n\n if (!application_collection.hasProp(\"applications\")){\n application_collection.prop(\"applications\", application_json);\n }\n else{\n application_collection.prop(\"applications\").append(application_json);\n }\n delegateExecution.setVariable(\"collectedApplications\", application_collection);\n }\n else {\n //error\n }\n }", "public static void setInvoiceData (final InvoiceData id)\n {\n invoiceData = id;\n }", "public void setRoomstid(Long newVal) {\n if ((newVal != null && this.roomstid != null && (newVal.compareTo(this.roomstid) == 0)) || \n (newVal == null && this.roomstid == null && roomstid_is_initialized)) {\n return; \n } \n this.roomstid = newVal; \n roomstid_is_modified = true; \n roomstid_is_initialized = true; \n }", "@Override\n public void onSnapshotReady(Bitmap arg0) {\n mIsMapStatic = true;\n\n // Creating an imageview with the snapshot\n ImageView imageView = new ImageView(getActivity());\n imageView.setLayoutParams(new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT,\n LayoutParams.WRAP_CONTENT));\n imageView.setImageBitmap(arg0);\n\n // Removing all the views (dynamic map) and adding the imageview\n assert getView() != null;\n ((ViewGroup) getView()).removeAllViews();\n ((ViewGroup) getView()).addView(imageView);\n\n mMapDataLoader.onMapCameraChange();\n }", "protected BlockSnapshot prepareSnapshotFromVolume(Volume volume, String snapshotName, Volume targetVolume) {\n BlockSnapshot snapshot = new BlockSnapshot();\n snapshot.setId(URIUtil.createId(BlockSnapshot.class));\n URI cgUri = null;\n\n URIQueryResultList queryResults = new URIQueryResultList();\n _dbClient.queryByConstraint(AlternateIdConstraint.Factory\n .getVolumeByAssociatedVolumesConstraint(volume.getId().toString()),\n queryResults);\n if (queryResults.iterator().hasNext()) {\n Volume sourceVplexVolume = _dbClient.queryObject(Volume.class, queryResults.iterator().next());\n cgUri = sourceVplexVolume.getConsistencyGroup();\n snapshot.setProject(new NamedURI(sourceVplexVolume.getProject().getURI(), snapshotName));\n } else {\n cgUri = volume.getConsistencyGroup();\n snapshot.setProject(new NamedURI(volume.getProject().getURI(), snapshotName));\n }\n\n if (cgUri != null) {\n snapshot.setConsistencyGroup(cgUri);\n }\n\n snapshot.setSourceNativeId(volume.getNativeId());\n snapshot.setParent(new NamedURI(volume.getId(), snapshotName));\n String modifiedSnapshotName = snapshotName;\n\n // We want snaps of targets to contain the varray label so we can distinguish multiple\n // targets from one another\n if (targetVolume != null) {\n VirtualArray targetVarray = _dbClient.queryObject(VirtualArray.class, targetVolume.getVirtualArray());\n modifiedSnapshotName = modifiedSnapshotName + \"-\" + targetVarray.getLabel();\n }\n snapshot.setLabel(modifiedSnapshotName);\n\n snapshot.setStorageController(volume.getStorageController());\n snapshot.setVirtualArray(volume.getVirtualArray());\n snapshot.setProtocol(new StringSet());\n snapshot.getProtocol().addAll(volume.getProtocol());\n snapshot.setSnapsetLabel(ResourceOnlyNameGenerator.removeSpecialCharsForName(\n snapshotName, SmisConstants.MAX_SNAPSHOT_NAME_LENGTH));\n\n return snapshot;\n }", "public void setSeqNo (int SeqNo);", "public void setSeqNo (int SeqNo);", "public abstract void installSnapshot(byte[] state);", "public void setAuditLogId(long value) {\n this.auditLogId = value;\n }", "public void setSdSeminarID(long value){\n\t\tthis.m_bIsDirty = (this.m_bIsDirty || (value != this.m_lSdSeminarID));\n\t\tthis.m_lSdSeminarID=value;\n\t}", "public Builder setSourceSnId(int value) {\n \n sourceSnId_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void setGLSeqNum(BigInteger arg0) {\n\n\t}", "public StrColumn getRevisionId() {\n return delegate.getColumn(\"revision_id\", DelegatingStrColumn::new);\n }" ]
[ "0.6903252", "0.6517318", "0.64591926", "0.6329639", "0.6198441", "0.61135167", "0.6010419", "0.5969199", "0.583119", "0.58136016", "0.57510126", "0.57023424", "0.5634788", "0.5435122", "0.52949923", "0.5256972", "0.50643355", "0.5040595", "0.5029129", "0.4987674", "0.49593648", "0.4937439", "0.48702946", "0.48307878", "0.47984913", "0.47981545", "0.4736956", "0.4717369", "0.46071783", "0.46052423", "0.4593511", "0.45547035", "0.45290434", "0.45170963", "0.45079798", "0.4493509", "0.44779608", "0.44644654", "0.4436318", "0.44352946", "0.44267598", "0.44229466", "0.44093698", "0.4392636", "0.43863678", "0.4376412", "0.43647304", "0.4361678", "0.43584868", "0.4354711", "0.43429658", "0.43421474", "0.43416026", "0.43346548", "0.4331785", "0.4329665", "0.4329383", "0.43253985", "0.43156746", "0.4314399", "0.4312866", "0.4303854", "0.42988056", "0.4297425", "0.42926615", "0.42905626", "0.42802352", "0.42774668", "0.42752132", "0.42630458", "0.425529", "0.42488587", "0.42399237", "0.42399237", "0.42399237", "0.42399237", "0.42399237", "0.42353866", "0.42316967", "0.42259133", "0.4204645", "0.41955563", "0.41888827", "0.41744807", "0.41743258", "0.41732574", "0.4158372", "0.41568214", "0.41534117", "0.41529545", "0.41483346", "0.4147977", "0.41478398", "0.41478398", "0.41469896", "0.41431364", "0.41401178", "0.41336864", "0.41292846", "0.41204387" ]
0.6962418
0
This method was generated by MyBatis Generator. This method returns the value of the database column partner_contract_snapshots.platform_id
public Integer getPlatformId() { return platformId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getPlatform() {\n\t\treturn platform;\n\t}", "public String getPlatformCode() {\n return platformCode;\n }", "public Integer getPlatId() {\n return platId;\n }", "public String getPlatformcode() {\n return platformcode;\n }", "public void setPlatformId(Integer platformId) {\r\n this.platformId = platformId;\r\n }", "public interface ElgPlatformIdRepository extends JpaRepository<ElgPlatformId, String> {\n\n public ElgPlatformId findByPlatformId(String platFormId); \n \n @Query(value = \"select distinct(trim(p.platformId)) as platformId from ElgPlatformId p, ElgPlatformCarrierMap c, ElgEligProfileEpf pr \" +\n\t \"where p.platformId = c.platformId and c.carrierId = pr.carCarrierId order by platformId\") \n public List<String> getAllPlatforms();\n\n \n}", "public StrColumn getBindingPartnerEntityId() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"binding_partner_entity_id\", StrColumn::new) :\n getBinaryColumn(\"binding_partner_entity_id\"));\n }", "public Integer getPlateId() {\r\n return plateId;\r\n }", "public static String selectParentID(ConnectionProvider connectionProvider, String key) throws ServletException {\n String strSql = \"\";\n strSql = strSql + \n \" SELECT MA_ProcessPlan_Version.MA_Processplan_ID AS NAME\" +\n \" FROM MA_ProcessPlan_Version\" +\n \" WHERE MA_ProcessPlan_Version.MA_Processplan_Version_ID = ?\";\n\n ResultSet result;\n String strReturn = \"\";\n PreparedStatement st = null;\n\n int iParameter = 0;\n try {\n st = connectionProvider.getPreparedStatement(strSql);\n QueryTimeOutUtil.getInstance().setQueryTimeOut(st, SessionInfo.getQueryProfile());\n iParameter++; UtilSql.setValue(st, iParameter, 12, null, key);\n\n result = st.executeQuery();\n if(result.next()) {\n strReturn = UtilSql.getValue(result, \"name\");\n }\n result.close();\n } catch(SQLException e){\n log4j.error(\"SQL error in query: \" + strSql + \"Exception:\"+ e);\n throw new ServletException(\"@CODE=\" + Integer.toString(e.getErrorCode()) + \"@\" + e.getMessage());\n } catch(Exception ex){\n log4j.error(\"Exception in query: \" + strSql + \"Exception:\"+ ex);\n throw new ServletException(\"@CODE=@\" + ex.getMessage());\n } finally {\n try {\n connectionProvider.releasePreparedStatement(st);\n } catch(Exception ignore){\n ignore.printStackTrace();\n }\n }\n return(strReturn);\n }", "public java.lang.String getPrimaryKey() {\n\t\treturn _imageCompanyAg.getPrimaryKey();\n\t}", "public String getPlatformVersion() {\n return this.platformVersion;\n }", "public String getPlatformVersion() {\n return this.platformVersion;\n }", "@Id\n @WhereSQL(sql = \"id=:WxPayconfig_id\")\n public java.lang.String getId() {\n return this.id;\n }", "long getSourceId();", "public void setPlatformId(int platformId) {\n this.platformId = platformId;\n }", "java.lang.String getDatabaseId();", "private String getRowIdColumn(ConnectorTableMetadata meta)\n {\n String rowIdColumn = AccumuloTableProperties.getRowId(meta.getProperties());\n if (rowIdColumn == null) {\n rowIdColumn = meta.getColumns().get(0).getName();\n }\n return rowIdColumn.toLowerCase();\n }", "public int getId() {\n return parameter.getId();\n }", "public Integer getPlatformType() {\n return platformType;\n }", "CodeBuildProcedure selectByPrimaryKey(Integer buildProcedureId);", "public Long getVersionId() {\n return versionId;\n }", "public Integer getBuildId() {\n return buildId;\n }", "public String getSoftwareDriverId();", "long getParkingId();", "long getParkingId();", "long getParkingId();", "@JsonProperty(\"platform\")\n public String getPlatform() {\n return platform;\n }", "UUID getConnectorId();", "public long getPrimaryKey() {\n\t\treturn _telefonoSolicitudProducto.getPrimaryKey();\n\t}", "public int getJDBCTypeId()\n {\n return JDBCTypeId;\n }", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _dlSyncEvent.getPrimaryKey();\n\t}", "public String getPlatformName() {\n\t\treturn myPlatformName;\n\t}", "@Override\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.IDENTITY)\n\t@Column(name = \"pepe_sq_id\")\n\tpublic Long getId() {\n\t\treturn super.getId();\n\t}", "public StrColumn getRevisionId() {\n return delegate.getColumn(\"revision_id\", DelegatingStrColumn::new);\n }", "public abstract Integer getCompteId();", "public static Map<String, Integer> getAllComponentIdForEnv(int envId,String platform) {\n \tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n Criteria hcCriteria = session.createCriteria(HealthCheckEntity.class,\"hc\");\n hcCriteria.createCriteria(\"hc.component\", \"c\");\n hcCriteria.createCriteria(\"c.parentComponent\", \"pc\");\n hcCriteria.add(Restrictions.eq(\"hc.delInd\", 0));\n hcCriteria.add(Restrictions.eq(\"c.delInd\", 0));\n hcCriteria.add(Restrictions.eq(\"pc.delInd\", 0));\n hcCriteria.add(Restrictions.eq(\"hc.environment.environmentId\", envId));\n hcCriteria.add(Restrictions.eq(\"c.platform\", platform));\n Map<String, Integer> compMap = new HashMap<String, Integer>();\n List<HealthCheckEntity> results = hcCriteria.list();\n for(HealthCheckEntity healthCheckEntity : results){\n \tString comp = healthCheckEntity.getComponent().getParentComponent().getComponentName()+\"/\"+healthCheckEntity.getComponent().getComponentName();\n \tcompMap.put(comp, healthCheckEntity.getComponent().getComponentId());\n }\n txn.commit();\n\t\treturn compMap;\n\t}", "public String getPaymentPlatform() {\n\t\treturn paymentPlatform;\n\t}", "@Id\n\t@Column(name=\"provider_procedure_id\")\n\t@GeneratedValue(strategy=GenerationType.IDENTITY)\n\tpublic java.lang.Integer getProviderProcedureId(){\n\t\treturn providerProcedureId;\n\t}", "int getReprojectedModisId(String project, DataDate date) throws SQLException;", "public long getOrganizationId();", "protected String getDatabasePkColumnName() {\n return this.pkColumn == null ? getPlan().getDocIdField() : this.pkColumn;\n }", "public int getVersionId() {\r\n\t\tif (versionId != null) {\r\n\t\t\treturn versionId;\r\n\t\t}\r\n\t\t\r\n\t\tcreateVersion();\r\n\t\treturn versionId;\r\n\t}", "public String getRepositoryDatabaseDriver(){\n \t\treturn getProperty(\"org.sagebionetworks.id.generator.database.driver\");\n \t}", "String getSnapshot_id();", "public static String selectParentID(ConnectionProvider connectionProvider, String key) throws ServletException {\n String strSql = \"\";\n strSql = strSql + \n \" SELECT ma_machineEVENT.MA_Machine_ID AS NAME\" +\n \" FROM ma_machineEVENT\" +\n \" WHERE ma_machineEVENT.MA_Machineevent_ID = ?\";\n\n ResultSet result;\n String strReturn = \"\";\n PreparedStatement st = null;\n\n int iParameter = 0;\n try {\n st = connectionProvider.getPreparedStatement(strSql);\n iParameter++; UtilSql.setValue(st, iParameter, 12, null, key);\n\n result = st.executeQuery();\n if(result.next()) {\n strReturn = UtilSql.getValue(result, \"name\");\n }\n result.close();\n } catch(SQLException e){\n log4j.error(\"SQL error in query: \" + strSql + \"Exception:\"+ e);\n throw new ServletException(\"@CODE=\" + e.getSQLState() + \"@\" + e.getMessage());\n } catch(Exception ex){\n log4j.error(\"Exception in query: \" + strSql + \"Exception:\"+ ex);\n throw new ServletException(\"@CODE=@\" + ex.getMessage());\n } finally {\n try {\n connectionProvider.releasePreparedStatement(st);\n } catch(Exception ignore){\n ignore.printStackTrace();\n }\n }\n return(strReturn);\n }", "String getMarketId();", "@Override\n public long getPrimaryKey() {\n return _partido.getPrimaryKey();\n }", "public Integer getSnapshotId() {\r\n return snapshotId;\r\n }", "int getPrimarySnId();", "int getPrimarySnId();", "public int getJDBCTypeId() {\r\n return typeId.getJDBCTypeId();\r\n }", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _esfShooterAffiliationChrono.getPrimaryKey();\n\t}", "public String getPlateID() {\n\t\treturn plateID.toString();\n\t}", "long getOwnerIdLong();", "public static String selectParentID(ConnectionProvider connectionProvider, String key) throws ServletException {\n String strSql = \"\";\n strSql = strSql + \n \" SELECT C_ProjectLine.C_Project_ID AS NAME\" +\n \" FROM C_ProjectLine\" +\n \" WHERE C_ProjectLine.C_ProjectLine_ID = ?\";\n\n ResultSet result;\n String strReturn = \"\";\n PreparedStatement st = null;\n\n int iParameter = 0;\n try {\n st = connectionProvider.getPreparedStatement(strSql);\n iParameter++; UtilSql.setValue(st, iParameter, 12, null, key);\n\n result = st.executeQuery();\n if(result.next()) {\n strReturn = UtilSql.getValue(result, \"name\");\n }\n result.close();\n } catch(SQLException e){\n log4j.error(\"SQL error in query: \" + strSql + \"Exception:\"+ e);\n throw new ServletException(\"@CODE=\" + e.getSQLState() + \"@\" + e.getMessage());\n } catch(Exception ex){\n log4j.error(\"Exception in query: \" + strSql + \"Exception:\"+ ex);\n throw new ServletException(\"@CODE=@\" + ex.getMessage());\n } finally {\n try {\n connectionProvider.releasePreparedStatement(st);\n } catch(Exception ignore){\n ignore.printStackTrace();\n }\n }\n return(strReturn);\n }", "String getRepositoryUUID();", "String getPipelineId();", "public StrColumn getBindingPartnerAsymId() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"binding_partner_asym_id\", StrColumn::new) :\n getBinaryColumn(\"binding_partner_asym_id\"));\n }", "long getCodeId();", "long getCodeId();", "long getCodeId();", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _candidate.getPrimaryKey();\n\t}", "@JsonIgnore\n public String getVMId() {\n if (wvm == null || wvm == WVM.Workspace) {\n return null;\n }\n switch (wvm) {\n case Version:\n return versionId;\n default:\n return microversionId;\n }\n }", "Long getDbId();", "public long getMinId(MigrationType type);", "protected Field getPrimaryKeyField() {\n Field returnField = null;\n Field[] fieds = MetaData.class.getDeclaredFields();\n for (Field field : fieds) {\n Id annotation = field.getAnnotation(Id.class);\n EmbeddedId annotationEmb = field.getAnnotation(EmbeddedId.class);\n if (annotation != null || annotationEmb != null) {\n return field;\n }\n }\n return returnField;\n }", "public Long getBaseId() {\n return baseId;\n }", "public void setPlatform(Long platform) {\n\t\tthis.platform = platform;\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getPlatformMajorSchemaVersion() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(PLATFORMMAJORSCHEMAVERSION_PROP.get());\n }", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _scienceApp.getPrimaryKey();\n\t}", "public String getUpdatePlatform() {\n return updatePlatform;\n }", "public long getVocubalaryId();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getPlatformMajorSchemaVersion() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(PLATFORMMAJORSCHEMAVERSION_PROP.get());\n }", "public Platform getPlatform();", "public String getCreatePlatform() {\n return createPlatform;\n }", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "int getModisId(ModisProduct product, DataDate date, int horz, int vert) throws SQLException;", "public abstract byte getTableId();", "public int getM_Production_ID();", "@Id\n\t@Column(name = \"provider_id\")\n\t@GeneratedValue(strategy = GenerationType.IDENTITY)\n\tpublic java.lang.Integer getProviderId() {\n\t\treturn providerId;\n\t}", "@Id\n\t@Column(name = \"SERV_PROV_CODE\")\n\t@AccelaGenerator(env = Context.AGENCY_CODE)\n\tpublic String getServiceProviderCode()\n\t{\n\t\treturn serviceProviderCode;\n\t}", "public int getPrimaryKey() {\r\n for (int i = 0; i < eventFields.size(); i++) {\r\n EventDataEntry currentEntry = eventFields.get(i);\r\n if (currentEntry.getColumnName().equalsIgnoreCase(\"linkid\")) {\r\n Integer it = (Integer) currentEntry.getValues().getFirst();\r\n return it.intValue();\r\n }\r\n }\r\n return -1;\r\n }", "public static Serializable getSystemId() {\n Serializable ret = null;\n if (getSystemStatic() != null) {\n ret = getSystemStatic().getDistributionManager().getId();\n }\n return ret;\n }", "public long snapshotId() {\n return snapshotId;\n }", "@Override\n\tpublic String getPK(){\n\t\treturn parkOpeningNo;\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _esfTournament.getPrimaryKey();\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _buySellProducts.getPrimaryKey();\n\t}", "String getOrganizationPartyId();", "String artifactSourceId();", "public String getBaseId();", "private int save_InsertGetInsertId() {\n\t\t\n\t\tfinal String INSERT_SQL = \"INSERT INTO project__insert_id_tbl ( ) VALUES ( )\";\n\t\t\n\t\t// Use Spring JdbcTemplate so Transactions work properly\n\t\t\n\t\t// How to get the auto-increment primary key for the inserted record\n\t\t\n\t\ttry {\n\t\t\tKeyHolder keyHolder = new GeneratedKeyHolder();\n\t\t\tint rowsUpdated = this.getJdbcTemplate().update(\n\t\t\t\t\tnew PreparedStatementCreator() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic PreparedStatement createPreparedStatement(Connection connection) throws SQLException {\n\n\t\t\t\t\t\t\tPreparedStatement pstmt =\n\t\t\t\t\t\t\t\t\tconnection.prepareStatement( INSERT_SQL, Statement.RETURN_GENERATED_KEYS );\n\n\t\t\t\t\t\t\treturn pstmt;\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\tkeyHolder);\n\n\t\t\tNumber insertedKey = keyHolder.getKey();\n\t\t\t\n\t\t\tlong insertedKeyLong = insertedKey.longValue();\n\t\t\t\n\t\t\tif ( insertedKeyLong > Integer.MAX_VALUE ) {\n\t\t\t\tString msg = \"Inserted key is too large, is > Integer.MAX_VALUE. insertedKey: \" + insertedKey;\n\t\t\t\tlog.error( msg );\n\t\t\t\tthrow new LimelightInternalErrorException( msg );\n\t\t\t}\n\t\t\t\n\t\t\tint insertedKeyInt = (int) insertedKeyLong; // Inserted auto-increment primary key for the inserted record\n\t\t\t\n\t\t\treturn insertedKeyInt;\n\t\t\t\n\t\t} catch ( RuntimeException e ) {\n\t\t\tString msg = \"SQL: \" + INSERT_SQL;\n\t\t\tlog.error( msg, e );\n\t\t\tthrow e;\n\t\t}\n\t}", "default VlanId getNativeVlanId(ConnectPoint connectPoint) {\n return null;\n }", "public int getId() {\n\t\treturn config >> 8;\n\t}", "java.lang.String getStageId();", "long getLoginId();", "long getLoginId();" ]
[ "0.56456393", "0.5599581", "0.5519997", "0.5431441", "0.5373526", "0.52887577", "0.52740186", "0.5200059", "0.5187063", "0.516693", "0.50963694", "0.50963694", "0.50864315", "0.50860196", "0.5085172", "0.50596446", "0.50382054", "0.50187665", "0.50186604", "0.50135446", "0.4991372", "0.4991217", "0.49776632", "0.49768856", "0.49768856", "0.49768856", "0.49756756", "0.49731848", "0.4969246", "0.49440873", "0.4911649", "0.49077585", "0.49009532", "0.48981473", "0.48966852", "0.48855796", "0.4883227", "0.48699188", "0.4864899", "0.48611218", "0.48604792", "0.48603597", "0.4858332", "0.48524418", "0.48500806", "0.48436767", "0.48395726", "0.48372698", "0.48346192", "0.48346192", "0.4832746", "0.48239255", "0.4822701", "0.48211846", "0.48168555", "0.4814448", "0.48099768", "0.4807982", "0.48070085", "0.48070085", "0.48070085", "0.48028922", "0.48003814", "0.4799527", "0.47967923", "0.47920293", "0.47912812", "0.47893563", "0.47881532", "0.47840697", "0.47838464", "0.4779908", "0.47766212", "0.47736707", "0.47721392", "0.47678098", "0.47678098", "0.47678098", "0.47678098", "0.47678098", "0.47645685", "0.47621524", "0.47497338", "0.47477707", "0.47458813", "0.47441283", "0.47424787", "0.4739406", "0.47270796", "0.47196132", "0.47173214", "0.47172603", "0.47162366", "0.470743", "0.4695809", "0.46943125", "0.46918046", "0.46883684", "0.46847868", "0.46847868" ]
0.67757374
0
This method was generated by MyBatis Generator. This method sets the value of the database column partner_contract_snapshots.platform_id
public void setPlatformId(Integer platformId) { this.platformId = platformId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPlatformId(int platformId) {\n this.platformId = platformId;\n }", "public Integer getPlatformId() {\r\n return platformId;\r\n }", "public void setPlatform(Long platform) {\n\t\tthis.platform = platform;\n\t}", "public void setPlatformCode(String platformCode) {\n this.platformCode = platformCode == null ? null : platformCode.trim();\n }", "@JsonProperty(\"platform\")\n public void setPlatform(String platform) {\n this.platform = platform;\n }", "public void setPlatformcode(String platformcode) {\n this.platformcode = platformcode == null ? null : platformcode.trim();\n }", "public void setPlatformType(Integer platformType) {\n this.platformType = platformType;\n }", "public void setId(int driverDBId);", "@Override\n public void setPrimaryKey(long primaryKey) {\n _partido.setPrimaryKey(primaryKey);\n }", "public void setBundleID(long param){\n localBundleIDTracker = true;\n \n this.localBundleID=param;\n \n\n }", "public void setDevicePlatform(com.sforce.soap._2006._04.metadata.DevicePlatformType devicePlatform) {\r\n this.devicePlatform = devicePlatform;\r\n }", "public void setPipePipelinedetailsElementId(Integer v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/pipe_pipelineDetails_element_id\",v);\n\t\t_PipePipelinedetailsElementId=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_esfShooterAffiliationChrono.setPrimaryKey(primaryKey);\n\t}", "public void setPaymentPlatform(String paymentPlatform) {\n\t\tthis.paymentPlatform = paymentPlatform == null ? null : paymentPlatform\n\t\t\t\t.trim();\n\t}", "@Override\n public final void setItsId(final Long pId) {\n //stub\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_scienceApp.setPrimaryKey(primaryKey);\n\t}", "public void setPlatformVersion(String platformVersion) {\n this.platformVersion = platformVersion;\n }", "public void setPlatformVersion(String platformVersion) {\n this.platformVersion = platformVersion;\n }", "public void setPrimaryKey(long primaryKey) {\n\t\t_telefonoSolicitudProducto.setPrimaryKey(primaryKey);\n\t}", "public void setPlatId(Integer platId) {\n this.platId = platId;\n }", "private <T> void setIdGeneration(DeployBeanDescriptor<T> desc) {\n if (desc.getIdGenerator() != null) {\n // already assigned (So custom or UUID)\n return;\n }\n if (desc.idProperty() == null) {\n return;\n }\n final DeployIdentityMode identityMode = desc.getIdentityMode();\n if (identityMode.isSequence() && !dbIdentity.isSupportsSequence()) {\n // explicit sequence but not supported by the DatabasePlatform\n log.log(INFO, \"Explicit sequence on {0} but not supported by DB Platform - ignored\", desc.getFullName());\n identityMode.setIdType(IdType.AUTO);\n }\n if (identityMode.isIdentity() && !dbIdentity.isSupportsIdentity()) {\n // explicit identity but not supported by the DatabasePlatform\n log.log(INFO, \"Explicit Identity on {0} but not supported by DB Platform - ignored\", desc.getFullName());\n identityMode.setIdType(IdType.AUTO);\n }\n\n if (identityMode.isAuto()) {\n if (desc.isPrimaryKeyCompoundOrNonNumeric()) {\n identityMode.setIdType(IdType.EXTERNAL);\n return;\n }\n if (desc.isIdGeneratedValue() || config.isIdGeneratorAutomatic()) {\n // use IDENTITY or SEQUENCE based on platform\n identityMode.setPlatformType(dbIdentity.getIdType());\n } else {\n // externally/application supplied Id values\n identityMode.setIdType(IdType.EXTERNAL);\n return;\n }\n }\n\n if (desc.getBaseTable() == null) {\n // no base table so not going to set Identity or sequence information\n return;\n }\n\n if (identityMode.isIdentity()) {\n // used when getGeneratedKeys is not supported (SQL Server 2000, SAP Hana)\n String selectLastInsertedId = dbIdentity.getSelectLastInsertedId(desc.getBaseTable());\n String selectLastInsertedIdDraft = (!desc.isDraftable()) ? selectLastInsertedId : dbIdentity.getSelectLastInsertedId(desc.getDraftTable());\n desc.setSelectLastInsertedId(selectLastInsertedId, selectLastInsertedIdDraft);\n return;\n }\n\n if (identityMode.isSequence()) {\n String seqName = identityMode.getSequenceName();\n if (seqName == null || seqName.isEmpty()) {\n String primaryKeyColumn = desc.getSinglePrimaryKeyColumn();\n seqName = namingConvention.getSequenceName(desc.getBaseTable(), primaryKeyColumn);\n }\n int stepSize = desc.setIdentitySequenceBatchMode(databasePlatform.sequenceBatchMode());\n desc.setIdGenerator(createSequenceIdGenerator(seqName, stepSize));\n }\n }", "public void setId(long param) {\n localIdTracker = param != java.lang.Long.MIN_VALUE;\r\n\r\n this.localId = param;\r\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_buySellProducts.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(java.lang.String primaryKey) {\n\t\t_imageCompanyAg.setPrimaryKey(primaryKey);\n\t}", "public void setSnapshotId(long value) {\n this.snapshotId = value;\n }", "private void setSrcId(int value) {\n \n srcId_ = value;\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_esfTournament.setPrimaryKey(primaryKey);\n\t}", "public void updatePlatformMap() {\n\n logger.info(\"Updating platform maps\");\n\n PreparedStatement ps = db.prepareStatement(connId, SELECT_QUERY);\n ResultSet rs = null;\n\n try {\n rs = ps.executeQuery();\n\n while (rs != null && rs.next()) {\n Platform platform = populatePlatform(rs);\n\n if (platform.getToTime() == null)\n platformUpdateMap.put(platform.getStaticId(), platform);\n\n int pId = platform.getId();\n synchronized (platform1stQueryMap) {\n if (platform1stQueryMap.get(pId) == null)\n platform1stQueryMap.put(pId, platform);\n }\n\n if (platform.getToTime() == null) {\n Integer contribId = Integer.valueOf(platform.getContribId());\n synchronized (platform2ndQueryMap) {\n HashMap<String, TimeVariantMetadata> map = platform2ndQueryMap.get(contribId);\n if (map == null)\n map = new HashMap<>();\n\n map.put(platform.getPlatformCode(), platform);\n platform2ndQueryMap.put(contribId, map);\n }\n }\n }\n } catch (SQLException e) {\n e.printStackTrace();\n logger.error(e.getMessage());\n } finally {\n try {\n rs.close();\n rs = null;\n ps.close();\n ps = null;\n } catch (SQLException se) {\n // ignore\n }\n }\n\n logger.info(\"Finished updating platform maps\");\n }", "public void setVersion(long param){\n \n // setting primitive attribute tracker to true\n \n if (param==java.lang.Long.MIN_VALUE) {\n localVersionTracker = false;\n \n } else {\n localVersionTracker = true;\n }\n \n this.localVersion=param;\n \n\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_candidate.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_dlSyncEvent.setPrimaryKey(primaryKey);\n\t}", "@Update(\n \"UPDATE \" + ServeInfoSqlProvider.TABLE_NAME +\n \" SET owner_id = #{ownerId} \" +\n \" WHERE id = #{serveId}\"\n )\n int changeServeOwner(@Param(\"serveId\") Long serveId, @Param(\"ownerId\") Long ownerId);", "public void setDriverId(java.lang.Long value) {\n this.driverId = value;\n }", "public void setPrimaryKey(long primaryKey) {\n _courseImage.setPrimaryKey(primaryKey);\n }", "public void setSpid(int param){\n localSpidTracker = true;\n \n this.localSpid=param;\n \n\n }", "private void setIdentifiedPlatform(ControllerType identfiedPlatformType) {\r\n\t\tthis.identifiedControllerType = identfiedPlatformType;\r\n\r\n\t}", "public void setSpId(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localSpIdTracker = true;\r\n } else {\r\n localSpIdTracker = false;\r\n \r\n }\r\n \r\n this.localSpId=param;\r\n \r\n\r\n }", "public void setPlatformMajorSchemaVersion(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(PLATFORMMAJORSCHEMAVERSION_PROP.get(), value);\n }", "public void setPlatformMajorSchemaVersion(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(PLATFORMMAJORSCHEMAVERSION_PROP.get(), value);\n }", "public String getPlatformCode() {\n return platformCode;\n }", "public void setProviderId(String value) { _providerId = value; }", "private void setSrcId(int value) {\n \n srcId_ = value;\n }", "protected void setPlatform(final int platform) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"40349ab7-0b3b-403c-96e1-7b2987154812\");\n this.platform = platform;\n }", "@Override\n public void setPrimaryKey(java.lang.Object key) {\n\n mnDbmsType = ((int[]) key)[0];\n mnPkYearId = ((int[]) key)[1];\n mnPkTypeCostObjectId = ((int[]) key)[2];\n mnPkRefCompanyBranchId = ((int[]) key)[3];\n mnPkRefReferenceId = ((int[]) key)[4];\n mnPkRefEntityId = ((int[]) key)[5];\n mnPkBizPartnerId = ((int[]) key)[6];\n mtDbmsDateStart = ((java.util.Date[]) key)[7];\n mtDbmsDateEnd = ((java.util.Date[]) key)[8];\n }", "void setLoginId(long loginId);", "void setLoginId(long loginId);", "void setLoginId(long loginId);", "public void setFedericaTopology(Platform platform)\n\t{\n\t\tif (platform != null)\n\t\t{\n\t\t\ttopology = new TopologyImpl(platform.toString());\n\t\t\ttopology.setContains(platform.getContains());\n\t\t}\n\t}", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setM_PriceList_Version_ID (int M_PriceList_Version_ID);", "private void setOtherId(int value) {\n \n otherId_ = value;\n }", "public void setBucketID(long param){\n localBucketIDTracker = true;\n \n this.localBucketID=param;\n \n\n }", "private void setRoomId(long value) {\n \n roomId_ = value;\n }", "public void setPresentid(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localPresentidTracker = true;\r\n } else {\r\n localPresentidTracker = false;\r\n \r\n }\r\n \r\n this.localPresentid=param;\r\n \r\n\r\n }", "public static void storePlatform (EditableProperties props, UpdateHelper helper, Object platformKey, Object sourceLevelKey) {\n assert platformKey instanceof PlatformKey; \n PlatformKey pk = (PlatformKey) platformKey;\n JavaPlatform platform = getPlatform(pk); \n //null means active broken (unresolved) platform, no need to do anything\n if (platform != null) {\n SpecificationVersion jdk13 = new SpecificationVersion (\"1.3\"); //NOI18N\n String platformAntName = (String) platform.getProperties().get(\"platform.ant.name\"); //NOI18N \n assert platformAntName != null;\n props.put(JbiCompProjectProperties.JAVA_PLATFORM, platformAntName);\n Element root = helper.getPrimaryConfigurationData(true);\n boolean defaultPlatform = pk.isDefaultPlatform();\n boolean changed = false;\n NodeList explicitPlatformNodes = root.getElementsByTagNameNS (JbiCompProjectType.PROJECT_CONFIGURATION_NAMESPACE,\"explicit-platform\"); //NOI18N\n if (defaultPlatform) { \n if (explicitPlatformNodes.getLength()==1) {\n root.removeChild(explicitPlatformNodes.item(0));\n changed = true;\n } \n }\n else {\n Element explicitPlatform;\n switch (explicitPlatformNodes.getLength()) {\n case 0:\n explicitPlatform = root.getOwnerDocument().createElementNS(JbiCompProjectType.PROJECT_CONFIGURATION_NAMESPACE, \"explicit-platform\"); //NOI18N \n NodeList sourceRootNodes = root.getElementsByTagNameNS (JbiCompProjectType.PROJECT_CONFIGURATION_NAMESPACE,\"source-roots\"); //NOI18N\n assert sourceRootNodes.getLength() == 1 : \"Broken project.xml file\"; //NOI18N\n root.insertBefore(explicitPlatform, sourceRootNodes.item(0));\n changed = true;\n break;\n case 1:\n explicitPlatform = (Element)explicitPlatformNodes.item(0);\n break;\n default:\n throw new AssertionError(\"Broken project.xml file\"); //NOI18N\n } \n String explicitSourceAttrValue = explicitPlatform.getAttribute(\"explicit-source-supported\"); //NOI18N\n if (jdk13.compareTo(platform.getSpecification().getVersion())>=0 &&\n !\"false\".equals(explicitSourceAttrValue)) { //NOI18N\n explicitPlatform.setAttribute(\"explicit-source-supported\",\"false\"); //NOI18N\n changed = true;\n }\n else if (jdk13.compareTo(platform.getSpecification().getVersion())<0 &&\n !\"true\".equals(explicitSourceAttrValue)) { //NOI18N\n explicitPlatform.setAttribute(\"explicit-source-supported\",\"true\"); //NOI18N\n changed = true;\n } \n }\n \n SpecificationVersion sourceLevel;\n if (sourceLevelKey == null) {\n sourceLevel = platform.getSpecification().getVersion();\n }\n else {\n assert sourceLevelKey instanceof SourceLevelKey;\n sourceLevel = ((SourceLevelKey)sourceLevelKey).getSourceLevel();\n }\n String javacSource = sourceLevel.toString();\n String javacTarget = jdk13.compareTo(sourceLevel)>=0 ? \"1.1\" : javacSource; //NOI18N\n if (!javacSource.equals(props.getProperty(JbiCompProjectProperties.JAVAC_SOURCE))) {\n props.setProperty (JbiCompProjectProperties.JAVAC_SOURCE, javacSource);\n }\n if (!javacTarget.equals(props.getProperty(JbiCompProjectProperties.JAVAC_TARGET))) {\n props.setProperty (JbiCompProjectProperties.JAVAC_TARGET, javacTarget);\n }\n \n if (changed) {\n helper.putPrimaryConfigurationData(root, true);\n }\n }\n }", "@JsonSetter(\"company_id\")\n public void setCompanyId (String value) { \n this.companyId = value;\n }", "@Override\n\tpublic void setPrimaryKey(int primaryKey) {\n\t\t_locMstLocation.setPrimaryKey(primaryKey);\n\t}", "@JsonSetter(\"orgId\")\r\n public void setOrgId (long value) { \r\n this.orgId = value;\r\n }", "public String getPlatformcode() {\n return platformcode;\n }", "public abstract void setCompteId(Integer pCompteId);", "@Override\n public void setCompanyId(long companyId) {\n _partido.setCompanyId(companyId);\n }", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public void setPlatformType(PlatformType name);", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_expandoColumn.setPrimaryKey(primaryKey);\n\t}", "public void setIdOwner(Long idOwner) {\r\n this.idOwner = idOwner;\r\n }", "private int setUpAlternativePrimaryImplementation() throws SQLException\n {\n DatabaseOperationMonitoring.instance().dropMonitoringTriggers(testClassSetup.dataSource());\n\n /* determine the model containing the process definition whose primary implementation we'd like to change */\n final Models models = sf.getQueryService().getModels(DeployedModelQuery.findActiveForId(MODEL_ID));\n assertThat(models.size(), equalTo(1));\n final int modelOid = models.get(0).getModelOID();\n\n /* set primary implementation to the alternative one */\n sf.getAdministrationService().setPrimaryImplementation(modelOid, TransientProcessInstanceModelConstants.PROCESS_DEF_ID_PROCESS_INTERFACE_UNQUALIFIED, ALTERNATIVE_IMPL_MODEL_ID, null);\n\n /* restart monitoring */\n DatabaseOperationMonitoring.instance().createMonitoringTriggers(testClassSetup.dataSource());\n\n return modelOid;\n }", "public Integer getPlatId() {\n return platId;\n }", "public interface DealsWithPlatformDatabaseSystem {\n\n public void setPlatformDatabaseSystem(PlatformDatabaseSystem platformDatabaseSystem);\n \n}", "public void setId(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n localIdTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.localId=param;\r\n \r\n\r\n }", "@Override\n\tpublic void setRowId(int parameterIndex, RowId x) throws SQLException {\n\t\t\n\t}", "@Override\n public void setPrimaryKey(int primaryKey) {\n _entityCustomer.setPrimaryKey(primaryKey);\n }", "public void setM_Production_ID (int M_Production_ID);", "public void setStagingSolarSystemId(int val) {\n stagingSolarSystemId = val;\n }", "public void setCurrentFloorId(int currentFloorId) {\n\t\tthis.currentFloorId = currentFloorId;\n\t}", "public void setPlatformType(final String platformType)\n {\n this.platformType = platformType.toUpperCase();\n }", "public void setInternalId()\n {\n // generate a unique id that will be used for the internal id:\n UUID uuid = UUID.randomUUID();\n this.internalId = uuid.toString();\n }", "public void setSysPK(Integer SysPK) {\n\t\tthis.sysPK.set(SysPK);\n\t}", "public void setPlatformActivityDao(IPlatformActivityDao platformActivityDao) {\r\n\r\n\t\tthis.platformActivityDao = platformActivityDao;\r\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_employee.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(long primaryKey) {\n this.primaryKey = primaryKey;\n }" ]
[ "0.59580517", "0.57002276", "0.5500018", "0.5027716", "0.49803764", "0.49497616", "0.49372655", "0.49202734", "0.48897487", "0.4868665", "0.48262516", "0.47693574", "0.47680977", "0.47607318", "0.4759558", "0.47591597", "0.47552672", "0.47552672", "0.47533444", "0.47368848", "0.47366145", "0.47309393", "0.47116455", "0.46951944", "0.46917343", "0.4675733", "0.46749339", "0.46536925", "0.46466443", "0.46401817", "0.46287972", "0.46267733", "0.46259347", "0.46255526", "0.4613338", "0.4609923", "0.4608021", "0.45948663", "0.4594297", "0.45734626", "0.45720774", "0.4556777", "0.4541178", "0.45391333", "0.45365784", "0.45365784", "0.45365784", "0.4534638", "0.45320532", "0.45320532", "0.45320532", "0.45320532", "0.45320532", "0.45320532", "0.45320532", "0.45320532", "0.45320532", "0.45320532", "0.45320532", "0.45320532", "0.45320532", "0.45320532", "0.45320532", "0.45320532", "0.45320532", "0.45298967", "0.4524585", "0.45208722", "0.4517496", "0.45106733", "0.45098844", "0.44961643", "0.449493", "0.44739273", "0.44587222", "0.44545516", "0.44539082", "0.44528353", "0.44528353", "0.44528353", "0.44528353", "0.44528353", "0.44509396", "0.44453797", "0.44449452", "0.44393605", "0.44381902", "0.44363543", "0.44315812", "0.44286305", "0.4427703", "0.44216117", "0.44136268", "0.4406452", "0.44022292", "0.43955913", "0.43881804", "0.4384844", "0.43825692", "0.43788087" ]
0.6046728
0
This method was generated by MyBatis Generator. This method returns the value of the database column partner_contract_snapshots.purchase_id
public Integer getPurchaseId() { return purchaseId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Long getInvoiceId();", "public int getSalesPurchase() {\n return salesPurchase;\n }", "public CustomerPurchase getById(Integer id) throws SQLException;", "public void setPurchaseId(Integer purchaseId) {\r\n this.purchaseId = purchaseId;\r\n }", "String getSnapshot_id();", "@Select({\n \"select\",\n \"ID, SDATE, STYPE, SMONEY, TOUCHING, ACCOUNT, CHECKSTATUS, DEMO1, DEMO2, DEMO3\",\n \"from PURCHASE\",\n \"where ID = #{id,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"ID\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"SDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"STYPE\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"SMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOUCHING\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"ACCOUNT\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"CHECKSTATUS\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO1\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO2\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"DEMO3\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL)\n })\n Purchase selectByPrimaryKey(BigDecimal id);", "@Override\r\n public int getsaleId() {\n return this.saleId;\r\n }", "private String generatePurchaseId() {\n\t\tint purchaseId = purchaseIdCounter.incrementAndGet();\n\t\treturn Integer.toString(purchaseId);\n\t}", "Purchase retrieve(Long id) throws SQLException, DAOException;", "io.dstore.values.IntegerValue getCampaignId();", "io.dstore.values.IntegerValue getCampaignId();", "public int getC_Invoice_ID();", "public String generatePurchaseId() {\n\t\tint purchaseId = purchaseIdCounter.incrementAndGet();\n\t\treturn Integer.toString(purchaseId);\n\t}", "String getTransactionID();", "PurchasePayment selectByPrimaryKey(Long id);", "long getSourceId();", "io.dstore.values.IntegerValue getOrderPersonId();", "public java.lang.Integer getPurchase () {\n\t\treturn purchase;\n\t}", "public StrColumn getRevisionId() {\n return delegate.getColumn(\"revision_id\", DelegatingStrColumn::new);\n }", "public int getInvoiceID(){\n return invoiceID;\n }", "io.dstore.values.IntegerValue getUnitId();", "public Integer getSnapshotId() {\r\n return snapshotId;\r\n }", "@Override\n public Purchase addPurchase(Connection connection, Purchase purchase) throws SQLException {\n PreparedStatement ps = null;\n try{\n String insertSQL = \"INSERT INTO Purchase (userID, timeOfPurchase) VALUES (?, ?);\";\n ps = connection.prepareStatement(insertSQL, Statement.RETURN_GENERATED_KEYS);\n ps.setString(1, purchase.getUserID().toString());\n ps.setString(2, purchase.getTimeOfPurchase().toString());\n \n ps.executeUpdate();\n \n // Return generated ID\n ResultSet keyRS = ps.getGeneratedKeys();\n keyRS.next();\n int lastKey = keyRS.getInt(1);\n purchase.setPurchaseID((long) lastKey);\n \n return purchase;\n }\n catch(Exception ex){\n ex.printStackTrace();\n //System.out.println(\"Exception in PurchaseDaoImpl.create(2 arg)\");\n if (ps != null && !ps.isClosed()){\n ps.close();\n }\n if (connection != null && !connection.isClosed()){\n connection.close();\n }\n \n return null;\n }\n }", "public long getItemShopBasketId();", "String getReceiptId();", "public int getTransactionID() {\r\n return transactionID;\r\n }", "@JsonIgnore\n\t@Id\n\tpublic Long getId() {\n\t\treturn Long.valueOf(String.format(\"%d%02d\", sale.getSaleYear(), this.num));\n\t}", "DangerMerchant selectByPrimaryKey(Integer id);", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _buySellProducts.getPrimaryKey();\n\t}", "public Integer getSourceID()\r\n\t\t{ return mapping.getSourceId(); }", "public String getSourceSnapshotId() {\n return this.sourceSnapshotId;\n }", "java.lang.String getTxId();", "public int getSalesRep_ID();", "public int getSalesRep_ID();", "public int getCurrentBuyID(){\n return currentBuyID;\n }", "public long getSalesID() {\n return salesID;\n }", "public long getShopBasketId();", "PurchaseSummary retrievePurchaseSummary(Long customerID) throws SQLException, DAOException;", "public int getCustId(){\n return this.custId;\r\n }", "ProductPurchaseItem getProductPurchaseItemPerId(long sprcId);", "public long getSnapshotId() {\n return snapshotId;\n }", "@Id\n @WhereSQL(sql = \"id=:WxPayconfig_id\")\n public java.lang.String getId() {\n return this.id;\n }", "public String getSnapshotId() {\n return this.snapshotId;\n }", "java.lang.String getCustomerId();", "java.lang.String getCustomerId();", "public long getTransactionID() {\r\n return transactionID;\r\n }", "public PurchasePlanAutoGenerated purchasePlan() {\n return this.purchasePlan;\n }", "public Integer getBillSourceId() {\n return billSourceId;\n }", "public long getTransactionid() {\n return transactionid;\n }", "public long snapshotId() {\n return snapshotId;\n }", "OcCustContract selectByPrimaryKey(String contractNo);", "public Long getMerchantId()\n {\n return merchantId;\n }", "public Integer getInvestId() {\r\n\t\treturn investId;\r\n\t}", "@Override\n\tpublic long getId() {\n\t\treturn _buySellProducts.getId();\n\t}", "CGcontractCredit selectByPrimaryKey(Integer id);", "public Long getCustId() {\n return custId;\n }", "public String getSourceId() {\n return sourceId;\n }", "List<Purchase> retrieveForCustomerID(Long customerID) throws SQLException, DAOException;", "public java.lang.Integer getReleaseId() {\n return releaseId;\n }", "BusinessRepayment selectByPrimaryKey(String id);", "String artifactSourceId();", "String getSourceID();", "public int getOverdueBill() {\n int customer_id = 0;\n try {\n ResultSet resultset = overdueBills.executeQuery();\n while (resultset.next()) {\n customer_id = resultset.getInt(\"customer_id\");\n System.out.println(\"Customer ID: \" + customer_id);\n }\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"Try Again!\");\n }\n return customer_id;\n }", "public int getProjectCommitRecordId(int pgId, int commitNumber) {\n String query = \"SELECT id FROM Project_Commit_Record where pgId = ? and commitNumber = ?\";\n int id = 0;\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(query)) {\n preStmt.setInt(1, pgId);\n preStmt.setInt(2, commitNumber);\n\n try (ResultSet rs = preStmt.executeQuery();) {\n if (rs.next()) {\n id = rs.getInt(\"id\");\n }\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return id;\n }", "public Timestamp getPurchaseDate() {\n return purchaseDate;\n }", "public long getVocubalaryId();", "long getCommitID() {\r\n return commit_id;\r\n }", "public int getTransactionId() {\n return transactionId;\n }", "public int getC_Payment_ID();", "String getMarketId();", "Long getCurrencyId();", "PaymentTrade selectByPrimaryKey(String id);", "Payment selectByPrimaryKey(Long id);", "public Long getPayId() {\r\n return payId;\r\n }", "public long getSourceId() {\n return sourceId_;\n }", "public Long getMerchantId() {\n return merchantId;\n }", "public int toInt(){\n\t\treturn CustomerId;\n\t}", "CustomReport selectByPrimaryKey(BigDecimal reportId);", "private static String GetNewID() {\n DBConnect db = new DBConnect(); // Create a database connection\n String id = db.SqlSelectSingle(\"SELECT vendor_id FROM vendor ORDER BY vendor_id DESC LIMIT 1\"); // First try to get the top ID.\n if (id.equals(\"\")) // This is incase there are no registered vendors in the software\n id = \"001\";\n else\n id = String.format(\"%03d\", Integer.parseInt(id) + 1); // This will increment the top ID by one then format it to have three digits \n db.Dispose(); // This will close our database connection for us\n return id;\n }", "@Override\n public int getPrimaryKey() {\n return _entityCustomer.getPrimaryKey();\n }", "public Guid getInvoiceRecipientId() {\r\n return invoiceRecipientId;\r\n }", "public String getCustId() {\n return custId;\n }", "java.lang.String getCouponId();", "public long getTransactionId();", "public BigDecimal getStatementId() {\n return getStatementIdProperty().getValue();\n }", "java.lang.String getArtifactId();", "public int getInvoiceNumber() {\n return invoiceNumber;\n }", "public int getInvoiceNumber() {\n return invoiceNumber;\n }", "List<Purchase> retrieveForProductID(Long productID) throws SQLException, DAOException;", "SsPaymentBillPerson selectByPrimaryKey(Long id);", "public java.lang.String getSnapshotId() {\r\n return snapshotId;\r\n }", "private Integer obtainWarehouseId(Invoice invoice) {\r\n\t\ttry {\r\n\t\t\tIManagerBean invoiceDetailBean = BeanManager.getManagerBean(InvoiceDetail.class);\r\n\t\t\tCriteria criteria = new Criteria();\r\n\t\t\tcriteria.addEqualExpression(invoiceDetailBean.getFieldName(IFinanceAlias.INVOICE_DETAIL_INVOICE_ID), invoice.getId());\r\n\t\t\tcriteria.addEqualExpression(invoiceDetailBean.getFieldName(IFinanceAlias.INVOICE_DETAIL_SOURCE), InvoiceSource.DIRECT_PURCHASE);\r\n\t\t\tIterator iter = invoiceDetailBean.getList(criteria, 0, 1).iterator();\r\n\t\t\tIncomeDetail incomeDetail = null;\r\n\t\t\tif(iter.hasNext()){\r\n\t\t\t\tInvoiceDetail invoiceDetail = (InvoiceDetail)iter.next();\r\n\t\t\t\tincomeDetail = obtainIncomeDetail(invoiceDetail.getDeliveryDetail());\r\n\t\t\t}else{\r\n\t\t\t\tcriteria = new Criteria();\r\n\t\t\t\tcriteria.addEqualExpression(invoiceDetailBean.getFieldName(IFinanceAlias.INVOICE_DETAIL_INVOICE_ID), invoice.getId());\r\n\t\t\t\titer = invoiceDetailBean.getList(criteria, 0, 1).iterator();\r\n\t\t\t\tif(iter.hasNext()){\r\n\t\t\t\t\tInvoiceDetail invoiceDetail = (InvoiceDetail)iter.next();\r\n\t\t\t\t\tincomeDetail = obtainIncomeDetail(invoiceDetail.getDeliveryDetail());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(incomeDetail != null){\r\n\t\t\t\treturn incomeDetail.getWarehouse().getId();\r\n\t\t\t}\r\n\t\t} catch (ManagerBeanException e) {\r\n\t\t\tLOGGER.log(Level.SEVERE, \"Error obtaining warehouse for invoice with id= \" + invoice.getId(), e);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public long getSourceId() {\n return sourceId_;\n }", "public void setPurchase (java.lang.Integer purchase) {\n\t\tthis.purchase = purchase;\n\t}", "InvoiceDTO fetchByID(int id);", "public String getUserActivePurchaseLog(int conversationId){\n\t String UserActivePurchaseLogId=null;\n\t try{\n\t\t //STEP 2: Register JDBC driver\n\t\t Class.forName(\"com.mysql.jdbc.Driver\");\n\n\t\t //STEP 3: Open a connection\n\t\t ////System.out.println(\"Connecting to database...\");\n\t\t conn = DriverManager.getConnection(DB_URL,USER,PASS);\n\n\t\t //STEP 4: Execute a query\n\t\t ////System.out.println(\"Creating statement...\");\n\t\t stmt = conn.createStatement();\n\t\t \n\t\t //Dapetin jarak setiap narik data\n\t\t String statement = \"SELECT * FROM `purchase_logs` INNER JOIN `conversations` ON `purchase_logs`.`user_id` = `conversations`.`user_id` WHERE `conversations`.`id` = \"+conversationId+\" AND `purchase_logs`.`status` = 0\";\n\t\t \n\t\t ////System.out.println(statement);\n\t\t ResultSet rs = stmt.executeQuery(statement);\n\t\t while(rs.next()){\n\t \t\t\t//////System.out.println(\"test III\");\n\t\t //Retrieve by column name\n\t\t String id = rs.getString(\"id\");\n\t\t //Display values\n\t\t ////System.out.println(\", Purchase Log Id : \" + id);\n\t\t UserActivePurchaseLogId = id;\n\t\t }\n\t\t //STEP 6: Clean-up environment\n\t\t rs.close();\n\t\t stmt.close();\n\t\t conn.close();\n\t\t }catch(SQLException se){\n\t\t //Handle errors for JDBC\n\t\t se.printStackTrace();\n\t\t }catch(Exception e){\n\t\t //Handle errors for Class.forName\n\t\t e.printStackTrace();\n\t\t }finally{\n\t\t //finally block used to close resources\n\t\t try{\n\t\t if(stmt!=null)\n\t\t stmt.close();\n\t\t }catch(SQLException se2){\n\t\t }// nothing we can do\n\t\t try{\n\t\t if(conn!=null)\n\t\t conn.close();\n\t\t }catch(SQLException se){\n\t\t se.printStackTrace();\n\t\t }//end finally try\n\t\t }//end try\n\t \t ////System.out.println(\"Goodbye!\");\t \n\t return UserActivePurchaseLogId;\n }", "@Transient\n @Override\n public Integer getId()\n {\n return this.journalId;\n }", "long getTxid();", "ShopAccount selectByPrimaryKey(Integer spAccount);", "@Override\n\tpublic Object getRowKey(InvitoDTO arg0) {\n\t\treturn arg0.getId();\n\t}" ]
[ "0.59670895", "0.5832295", "0.58175004", "0.5739757", "0.56316996", "0.5630514", "0.5615031", "0.5589134", "0.55702466", "0.55499285", "0.55499285", "0.55497104", "0.5532028", "0.55190724", "0.5493168", "0.54568964", "0.5413143", "0.5393164", "0.53835404", "0.5344476", "0.5329043", "0.5323015", "0.53118646", "0.5291623", "0.52630216", "0.52247727", "0.5219529", "0.5218339", "0.5216958", "0.52134115", "0.5211145", "0.5210513", "0.51999176", "0.51999176", "0.519879", "0.5155346", "0.5141048", "0.51003915", "0.50963813", "0.5090899", "0.50744134", "0.5072613", "0.50485784", "0.5048426", "0.5048426", "0.50454074", "0.5042185", "0.5028646", "0.5017159", "0.50133246", "0.5008747", "0.5007675", "0.5001633", "0.50003517", "0.4982716", "0.49775594", "0.49735758", "0.49641332", "0.4963522", "0.49629658", "0.49592888", "0.49584284", "0.49554127", "0.4944999", "0.49412197", "0.4930936", "0.49302062", "0.49267074", "0.49229044", "0.48891437", "0.48878738", "0.4885303", "0.48805186", "0.48764253", "0.48637286", "0.4863291", "0.4846441", "0.4836855", "0.4829541", "0.4829185", "0.4826729", "0.4818096", "0.48091215", "0.48080066", "0.48079938", "0.48060188", "0.48003525", "0.48003525", "0.479771", "0.4792175", "0.47869912", "0.47841805", "0.4783504", "0.4775752", "0.47664943", "0.4755774", "0.47529066", "0.47511894", "0.4749278", "0.4745868" ]
0.6898319
0
This method was generated by MyBatis Generator. This method sets the value of the database column partner_contract_snapshots.purchase_id
public void setPurchaseId(Integer purchaseId) { this.purchaseId = purchaseId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getPurchaseId() {\r\n return purchaseId;\r\n }", "public void setPurchase (java.lang.Integer purchase) {\n\t\tthis.purchase = purchase;\n\t}", "@Override\r\n public void setsaleId(int saleid) {\n this.saleId = saleid;\r\n }", "public void setC_Invoice_ID (int C_Invoice_ID);", "void setInvoiceId(Long invoiceId);", "public void setCustomerPurchase(double purchase) { this.customerPurchase = purchase; }", "@Select({\n \"select\",\n \"ID, SDATE, STYPE, SMONEY, TOUCHING, ACCOUNT, CHECKSTATUS, DEMO1, DEMO2, DEMO3\",\n \"from PURCHASE\",\n \"where ID = #{id,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"ID\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"SDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"STYPE\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"SMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOUCHING\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"ACCOUNT\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"CHECKSTATUS\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO1\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO2\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"DEMO3\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL)\n })\n Purchase selectByPrimaryKey(BigDecimal id);", "public void setSalesRep_ID (int SalesRep_ID);", "public void setSalesRep_ID (int SalesRep_ID);", "public void setReleaseId(int releaseId) { this.releaseId = releaseId; }", "@Override\n public boolean editPurchase(Connection connection, Purchase purchase) throws SQLException {\n PreparedStatement ps = null;\n try{\n // Prepare the statement\n String editSQL = \"UPDATE Purchase SET purchaseID = ?, userID = ?,\"\n + \" timeOfPurchase = ? \"\n + \"WHERE purchaseID = ?;\";\n ps = connection.prepareStatement(editSQL);\n ps.setLong(1, purchase.getPurchaseID());\n ps.setLong(2, purchase.getUserID());\n ps.setDate(3, purchase.getTimeOfPurchase());\n ps.setLong(4, purchase.getPurchaseID());\n ps.executeUpdate();\n \n return true;\n }\n catch(Exception ex){\n ex.printStackTrace();\n //System.out.println(\"Exception in ContainerDaoImpl.retrieveContainer()\");\n if (ps != null && !ps.isClosed()){\n ps.close();\n }\n if (connection != null && !connection.isClosed()){\n connection.close();\n }\n \n return false;\n }\n }", "public void setPurchaseDate(Timestamp aPurchaseDate) {\n purchaseDate = aPurchaseDate;\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_buySellProducts.setPrimaryKey(primaryKey);\n\t}", "@Override\n public Purchase addPurchase(Connection connection, Purchase purchase) throws SQLException {\n PreparedStatement ps = null;\n try{\n String insertSQL = \"INSERT INTO Purchase (userID, timeOfPurchase) VALUES (?, ?);\";\n ps = connection.prepareStatement(insertSQL, Statement.RETURN_GENERATED_KEYS);\n ps.setString(1, purchase.getUserID().toString());\n ps.setString(2, purchase.getTimeOfPurchase().toString());\n \n ps.executeUpdate();\n \n // Return generated ID\n ResultSet keyRS = ps.getGeneratedKeys();\n keyRS.next();\n int lastKey = keyRS.getInt(1);\n purchase.setPurchaseID((long) lastKey);\n \n return purchase;\n }\n catch(Exception ex){\n ex.printStackTrace();\n //System.out.println(\"Exception in PurchaseDaoImpl.create(2 arg)\");\n if (ps != null && !ps.isClosed()){\n ps.close();\n }\n if (connection != null && !connection.isClosed()){\n connection.close();\n }\n \n return null;\n }\n }", "int update(Purchase purchase) throws SQLException, DAOException;", "public int getSalesPurchase() {\n return salesPurchase;\n }", "int updateByPrimaryKey(PurchasePayment record);", "@Override\r\n public int getsaleId() {\n return this.saleId;\r\n }", "public static void setInvoiceData (final InvoiceData id)\n {\n invoiceData = id;\n }", "@Override\r\n\tpublic void updatePurchase(Purchase Purchase) throws Exception {\n\t\t\r\n\t}", "@Override\r\n\tpublic void updateTranCode(Purchase Purchase) throws Exception {\n\t\t\r\n\t}", "@Override\n\tpublic int updateTranCode(Purchase purchase) throws Exception {\n\t\treturn sqlSession.update(\"PurchaseMapper.updateTranCode\", purchase);\n\t}", "Long getInvoiceId();", "public void setPurchaseDate (Date purchaseDate)\t{\n\t\tmPurchaseDate = purchaseDate;\n\t}", "public void setC_Payment_ID (int C_Payment_ID);", "@Override\n public void setPrimaryKey(int primaryKey) {\n _entityCustomer.setPrimaryKey(primaryKey);\n }", "public CustomerPurchase getById(Integer id) throws SQLException;", "public void setId(BigDecimal id) {\n\t\tthis.id = id;\n\t}", "public void setPurchases(Integer purchases) {\n this.purchases = this.purchases + purchases;\n }", "public void setPurchaseDate(String d)\n {\n this.purchaseDate = d;\n }", "int updateByPrimaryKeySelective(PurchasePayment record);", "public void setSalesAmount(Integer salesAmount) {\n this.salesAmount = salesAmount;\n }", "public void setWasPurchased(int wasPurchased) {\n this.wasPurchased = wasPurchased;\n }", "void setTransactionId( long txId )\n {\n this.transactionId = txId;\n }", "public void setDateOfPurchase(Date dateOfPurchase) {\n this.dateOfPurchase = dateOfPurchase;\n }", "@Override\n\tpublic void setId(long id) {\n\t\t_buySellProducts.setId(id);\n\t}", "public void setRegionid(int newValue) {\n\tthis.regionid = newValue;\n}", "@Update({\n \"update PURCHASE\",\n \"set SDATE = #{sdate,jdbcType=TIMESTAMP},\",\n \"STYPE = #{stype,jdbcType=VARCHAR},\",\n \"SMONEY = #{smoney,jdbcType=DECIMAL},\",\n \"TOUCHING = #{touching,jdbcType=VARCHAR},\",\n \"ACCOUNT = #{account,jdbcType=VARCHAR},\",\n \"CHECKSTATUS = #{checkstatus,jdbcType=DECIMAL},\",\n \"DEMO1 = #{demo1,jdbcType=DECIMAL},\",\n \"DEMO2 = #{demo2,jdbcType=VARCHAR},\",\n \"DEMO3 = #{demo3,jdbcType=DECIMAL}\",\n \"where ID = #{id,jdbcType=DECIMAL}\"\n })\n int updateByPrimaryKey(Purchase record);", "public void setPurchasecopy(String purchasecopy) {\r\n this.purchasecopy = purchasecopy;\r\n }", "public void setTransactionID(int transactionID) {\r\n this.transactionID = transactionID;\r\n }", "@Override\r\n\tpublic void insertPurchase(Purchase Purchase) throws Exception {\n\t\t\r\n\t}", "public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }", "void setCommitID(long commit_id) {\r\n this.commit_id = commit_id;\r\n }", "public int getInvoiceID(){\n return invoiceID;\n }", "public void setC_Currency_ID (int C_Currency_ID);", "public void setSupplierId(int SupplierIdIn)\n {\n this.SupplierId = SupplierIdIn;\n }", "private String generatePurchaseId() {\n\t\tint purchaseId = purchaseIdCounter.incrementAndGet();\n\t\treturn Integer.toString(purchaseId);\n\t}", "PurchasePayment selectByPrimaryKey(Long id);", "public void updatePurchase(String purchaseId, List<Item> bought, List<Item> notBought){\n\t\tPurchase p = new Purchase(purchaseId, \"0\", bought, notBought);\n\t\tpurchases.put(purchaseId, p);\n\t}", "@Override\n\tpublic void set(int id, Generator generator) {\n\n\t\ttry (Connection c = context.getConnection(); \n\t\t\tPreparedStatement stmt = c.prepareStatement(setQuery)) \n\t\t{\n\n \t\tstmt.setString(1, generator.getName());\n \t\tstmt.setString(2, generator.getDescription());\n \t\tstmt.setInt(3, generator.getRate());\n \t\tstmt.setInt(4, generator.getBaseCost());\n \t\tstmt.setInt(5, generator.getUnlockAt());\n\n\t\t\tstmt.executeUpdate();\n\t\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void setBuyerId(Long buyerId) {\r\n this.buyerId = buyerId;\r\n }", "public void setSalesID(final long newSalesID) {\n this.salesID = newSalesID;\n }", "public void setPurchasecopy(String purchasecopy) {\r\n\t\tthis.purchasecopy = purchasecopy;\r\n\t}", "public void setTransactionId(int value) {\n this.transactionId = value;\n }", "public void setPurchasePrice(Double purchasePrice) {\r\n this.purchasePrice = purchasePrice;\r\n }", "public void setSnapshotId(long value) {\n this.snapshotId = value;\n }", "public void setTransactionID(long value) {\r\n this.transactionID = value;\r\n }", "public void setTransactionId(Long transactionId) {\r\n this.transactionId = transactionId;\r\n }", "public void setSupplierid(Integer supplierid) {\r\n this.supplierid = supplierid;\r\n }", "@Override\n public Purchase createPurchase(Connection connection, Purchase purchase) throws SQLException {\n PreparedStatement ps = null;\n try{\n String insertSQL = \"INSERT INTO Purchase (purchaseID, userID, timeOfPurchase) VALUES (?, ?, ?);\";\n ps = connection.prepareStatement(insertSQL);\n ps.setString(1, purchase.getPurchaseID().toString());\n ps.setString(2, purchase.getUserID().toString());\n ps.setString(3, purchase.getTimeOfPurchase().toString());\n \n ps.executeUpdate();\n \n return purchase;\n }\n catch(Exception ex){\n ex.printStackTrace();\n //System.out.println(\"Exception in PurchaseDaoImpl.create(2 arg)\");\n if (ps != null && !ps.isClosed()){\n ps.close();\n }\n if (connection != null && !connection.isClosed()){\n connection.close();\n }\n \n return null;\n }\n }", "public void setM_Warehouse_ID (int M_Warehouse_ID)\n{\nset_Value (\"M_Warehouse_ID\", new Integer(M_Warehouse_ID));\n}", "public void setCustomer_id(int customer_id){\n this.customer_id = customer_id;\n }", "Purchase retrieve(Long id) throws SQLException, DAOException;", "public void setSale_num(Integer sale_num) {\n this.sale_num = sale_num;\n }", "public long getSalesID() {\n return salesID;\n }", "public void setReleaseId(java.lang.Integer releaseId) {\n this.releaseId = releaseId;\n }", "public JavapurchaseModel postpurchase(JavapurchaseModel oJavapurchaseModel){\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 /* Insert the new purchase to database*/\n int purchaseId = (Integer) hibernateSession.save(oJavapurchaseModel);\n\n /* Commit and terminate the session*/\n hibernateTransaction.commit();\n hibernateSession.close();\n\n /* Return the JavapurchaseModel with updated purchaseId*/\n oJavapurchaseModel.setpurchaseId(purchaseId);\n return oJavapurchaseModel;\n }", "public void setCustCountryId(int v) throws TorqueException\n {\n \n if (this.custCountryId != v)\n {\n this.custCountryId = v;\n setModified(true);\n }\n \n \n if (aCountry != null && !(aCountry.getCountryId() == v))\n {\n aCountry = null;\n }\n \n }", "public abstract void setWarehouseAmount(int productID, int newAmount) throws GettingDataFailedException;", "@Override\r\n\tpublic void setId(String id) {\n\t\tmWarehouseId = id;\r\n\t}", "public void setPropertySellerId(Integer propertySellerId) {\n\t\tthis.propertySellerId = propertySellerId;\n\t}", "protected void setTransactionId(String transactionId) {\n this.transactionId = transactionId;\n }", "public void setTransactionId(String transactionId)\n\t{\n\t\tthis.transactionId = Toolbox.trim(transactionId, 50);\n\t}", "@Override\r\n\tpublic void setId(String id) {\n\t\tmProductionId = id;\r\n\t}", "int updateByPrimaryKey(CGcontractCredit record);", "public void setIdacquirente(int aIdacquirente) {\n idacquirente = aIdacquirente;\n }", "public void setSalesPrice(int value) {\n this.salesPrice = value;\n }", "public void xsetRelease(org.apache.xmlbeans.XmlString release)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(RELEASE$4, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(RELEASE$4);\r\n }\r\n target.set(release);\r\n }\r\n }", "public void setCustId(Long custId) {\n this.custId = custId;\n }", "int updateByPrimaryKey(ResPartnerBankEntity record);", "public void setC_Decoris_PreSalesLine_ID (int C_Decoris_PreSalesLine_ID);", "public void setOrderID(java.lang.String param){\n \n this.localOrderID=param;\n \n\n }", "public void setOrderID(java.lang.String param){\n \n this.localOrderID=param;\n \n\n }", "public void setBucketID(long param){\n localBucketIDTracker = true;\n \n this.localBucketID=param;\n \n\n }", "@Override\r\n\tpublic void updateByDetail(PurchaseContractDetail purchaseContractDetail) {\n\t\tsuper.baseMapper.updateByDetail(purchaseContractDetail);\r\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_esfTournament.setPrimaryKey(primaryKey);\n\t}", "public void setBSCA_PriceChangePrev_ID (int BSCA_PriceChangePrev_ID);", "int updateByPrimaryKey(PaymentTrade record);", "DangerMerchant selectByPrimaryKey(Integer id);", "public void setMerchantId(Long merchantId) {\n this.merchantId = merchantId;\n }", "public void setCustID(String custID) {\r\n this.custID = custID;\r\n }", "public void xsetCoverage(org.apache.xmlbeans.XmlString coverage)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(COVERAGE$4);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(COVERAGE$4);\n }\n target.set(coverage);\n }\n }", "public void setMerchantId (java.lang.Long merchantId) {\r\n\t\tthis.merchantId = merchantId;\r\n\t}", "public void setSequenceId(long sequence_id)\n {\n sequence_id_ = sequence_id;\n }", "public void setM_Product_ID (int M_Product_ID)\n{\nset_Value (\"M_Product_ID\", new Integer(M_Product_ID));\n}", "public String generatePurchaseId() {\n\t\tint purchaseId = purchaseIdCounter.incrementAndGet();\n\t\treturn Integer.toString(purchaseId);\n\t}", "public void setM_Product_ID (int M_Product_ID);", "public void setM_Product_ID (int M_Product_ID);", "void setCurrencyId(Long currencyId);", "public void setC_BPartner_ID (int C_BPartner_ID);" ]
[ "0.6135741", "0.5807969", "0.58018285", "0.564068", "0.5496338", "0.5291189", "0.5250596", "0.5209898", "0.5209898", "0.52022713", "0.5201924", "0.51534003", "0.5151057", "0.51396215", "0.5134303", "0.5128345", "0.5112768", "0.5100854", "0.5082878", "0.50501674", "0.5026056", "0.50224763", "0.4929782", "0.4922617", "0.48826915", "0.4865818", "0.48628932", "0.48497927", "0.48380876", "0.4830062", "0.48288202", "0.48242664", "0.48235542", "0.4823486", "0.48154098", "0.48088887", "0.4804016", "0.48003733", "0.4785547", "0.47551212", "0.47535476", "0.47467297", "0.47455975", "0.4739085", "0.47322118", "0.47217727", "0.47192508", "0.4709731", "0.46869776", "0.46728915", "0.46673638", "0.46638858", "0.46559143", "0.4649736", "0.46488264", "0.4645857", "0.46437296", "0.46418834", "0.46412718", "0.4630287", "0.4624809", "0.4622024", "0.461597", "0.46155834", "0.4607192", "0.46041933", "0.45928976", "0.4591617", "0.45906648", "0.45822585", "0.45742673", "0.45725703", "0.45698825", "0.45564875", "0.45353532", "0.4533225", "0.45314115", "0.45310545", "0.45297548", "0.45246777", "0.45202205", "0.4520102", "0.4520102", "0.45195845", "0.451618", "0.4512823", "0.4510999", "0.45095098", "0.45080695", "0.45070294", "0.4494766", "0.4493535", "0.4493449", "0.44916695", "0.44881898", "0.44872132", "0.44831222", "0.44831222", "0.4482648", "0.44797546" ]
0.66665816
0
This method was generated by MyBatis Generator. This method returns the value of the database column partner_contract_snapshots.partner_contract_id
public Integer getPartnerContractId() { return partnerContractId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public StrColumn getBindingPartnerEntityId() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"binding_partner_entity_id\", StrColumn::new) :\n getBinaryColumn(\"binding_partner_entity_id\"));\n }", "public Integer getContractId() {\n return contractId;\n }", "public int getContractId() {\n return contractId;\n }", "public void setPartnerContractId(Integer partnerContractId) {\r\n this.partnerContractId = partnerContractId;\r\n }", "public int getC_BPartner_ID();", "public String getContractId() {\n return contractId;\n }", "public int getC_BPartner_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_BPartner_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public int getC_BPartner_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_BPartner_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "OcCustContract selectByPrimaryKey(String contractNo);", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _candidate.getPrimaryKey();\n\t}", "Long getInvoiceId();", "public abstract Integer getCompteId();", "public IntColumn getParentId() {\n return delegate.getColumn(\"parent_id\", DelegatingIntColumn::new);\n }", "@Transient\n\tpublic String getPartnerId() {\n\t\treturn mPartnerId;\n\n\t}", "public int getContractorID() {\n return contractorID;\n }", "public StrColumn getRevisionId() {\n return delegate.getColumn(\"revision_id\", DelegatingStrColumn::new);\n }", "long getSourceId();", "public StrColumn getIprId() {\n return delegate.getColumn(\"ipr_id\", DelegatingStrColumn::new);\n }", "public int getC_Invoice_ID();", "public String partnerNodeId() {\n return this.partnerNodeId;\n }", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _esfTournament.getPrimaryKey();\n\t}", "public String getPartnerid() {\n return partnerid;\n }", "int getSourceSnId();", "@Override\n\tpublic Contract selectByPrimaryKey(Integer contractId) {\n\t\treturn contractMapper.selectByPrimaryKey(contractId);\n\t}", "public String getXpeContractId() {\n return (String) getAttributeInternal(XPECONTRACTID);\n }", "public String getXpeContractId() {\n return (String) getAttributeInternal(XPECONTRACTID);\n }", "public java.lang.Integer getParentId();", "String getSnapshot_id();", "int getEviId(String project, DataDate date) throws SQLException;", "public void setContractId(int value) {\n this.contractId = value;\n }", "@Id\n @WhereSQL(sql = \"id=:WxPayconfig_id\")\n public java.lang.String getId() {\n return this.id;\n }", "public Integer getSnapshotId() {\r\n return snapshotId;\r\n }", "public StrColumn getBindingPartnerAsymId() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"binding_partner_asym_id\", StrColumn::new) :\n getBinaryColumn(\"binding_partner_asym_id\"));\n }", "int getReprojectedModisId(String project, DataDate date) throws SQLException;", "public StrColumn getEntityId() {\n return delegate.getColumn(\"entity_id\", DelegatingStrColumn::new);\n }", "public long getVocubalaryId();", "public int getProjectCommitRecordId(int pgId, int commitNumber) {\n String query = \"SELECT id FROM Project_Commit_Record where pgId = ? and commitNumber = ?\";\n int id = 0;\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(query)) {\n preStmt.setInt(1, pgId);\n preStmt.setInt(2, commitNumber);\n\n try (ResultSet rs = preStmt.executeQuery();) {\n if (rs.next()) {\n id = rs.getInt(\"id\");\n }\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return id;\n }", "String getMarketId();", "public static String selectDef1003900005_3(ConnectionProvider connectionProvider, String C_BPartner_IDR) throws ServletException {\n String strSql = \"\";\n strSql = strSql + \n \" SELECT ( COALESCE(TO_CHAR(TO_CHAR(COALESCE(TO_CHAR(table2.Name), ''))), '') ) as C_BPartner_ID FROM C_BPartner left join (select C_BPartner_ID, Name from C_BPartner) table2 on (C_BPartner.C_BPartner_ID = table2.C_BPartner_ID) WHERE C_BPartner.isActive='Y' AND C_BPartner.C_BPartner_ID = ? \";\n\n ResultSet result;\n String strReturn = \"\";\n PreparedStatement st = null;\n\n int iParameter = 0;\n try {\n st = connectionProvider.getPreparedStatement(strSql);\n QueryTimeOutUtil.getInstance().setQueryTimeOut(st, SessionInfo.getQueryProfile());\n iParameter++; UtilSql.setValue(st, iParameter, 12, null, C_BPartner_IDR);\n\n result = st.executeQuery();\n if(result.next()) {\n strReturn = UtilSql.getValue(result, \"c_bpartner_id\");\n }\n result.close();\n } catch(SQLException e){\n log4j.error(\"SQL error in query: \" + strSql + \"Exception:\"+ e);\n throw new ServletException(\"@CODE=\" + Integer.toString(e.getErrorCode()) + \"@\" + e.getMessage());\n } catch(Exception ex){\n log4j.error(\"Exception in query: \" + strSql + \"Exception:\"+ ex);\n throw new ServletException(\"@CODE=@\" + ex.getMessage());\n } finally {\n try {\n connectionProvider.releasePreparedStatement(st);\n } catch(Exception ignore){\n ignore.printStackTrace();\n }\n }\n return(strReturn);\n }", "@Override\n\tpublic long getCandidateId() {\n\t\treturn _candidate.getCandidateId();\n\t}", "@Transient\n @Override\n public Integer getId()\n {\n return this.journalId;\n }", "public int getC_BPartnerCashTrx_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_BPartnerCashTrx_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public int getC_BPartnerRelation_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_BPartnerRelation_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "@Override\n @Transient\n public Integer getParentId()\n {\n return parentTblId;\n }", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "private String getRowIdColumn(ConnectorTableMetadata meta)\n {\n String rowIdColumn = AccumuloTableProperties.getRowId(meta.getProperties());\n if (rowIdColumn == null) {\n rowIdColumn = meta.getColumns().get(0).getName();\n }\n return rowIdColumn.toLowerCase();\n }", "int getReprojectedEtoId(String project, DataDate date) throws SQLException;", "protected ConditionValue getCValueEnterpriseId() { return _myCQ.getEnterpriseId(); }", "@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);", "public String getOriginalReservationOpenTransactionId() {\n for (Enumeration em = compositePOSTransaction.getSaleLineItems(); em.hasMoreElements(); ) {\n CMSSaleLineItem line = (CMSSaleLineItem)em.nextElement();\n if (line.getReservationLineItem() != null) {\n return line.getReservationLineItem().getTransaction().getCompositeTransaction().getId();\n }\n }\n for (Enumeration em = compositePOSTransaction.getReturnLineItems(); em.hasMoreElements(); ) {\n CMSReturnLineItem line = (CMSReturnLineItem)em.nextElement();\n if (line.getReservationLineItem() != null) {\n return line.getReservationLineItem().getTransaction().getCompositeTransaction().getId();\n }\n }\n return null;\n }", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _esfTournament.getCompanyId();\n\t}", "public String getIdForRow(int row);", "public Integer getCrowdId() {\n return crowdId;\n }", "@Override\n public int getPrimaryKey() {\n return _entityCustomer.getPrimaryKey();\n }", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _dlSyncEvent.getPrimaryKey();\n\t}", "@JsonIgnore\n\t@Id\n\tpublic Long getId() {\n\t\treturn Long.valueOf(String.format(\"%d%02d\", sale.getSaleYear(), this.num));\n\t}", "CGcontractCredit selectByPrimaryKey(Integer id);", "int getPrimarySnId();", "int getPrimarySnId();", "java.lang.String getTxId();", "public Integer getSourceID()\r\n\t\t{ return mapping.getSourceId(); }", "public String fetchPrimaryKey(){\n\t\treturn primaryKey;\n\t}", "io.dstore.values.IntegerValue getCampaignId();", "io.dstore.values.IntegerValue getCampaignId();", "@Transient\n @Override\n public Integer getId()\n {\n return this.conservDescriptionId;\n }", "public int getLBR_PartnerDFe_ID();", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _employee.getPrimaryKey();\n\t}", "public BigDecimal getOrgId() {\n return orgId;\n }", "public int getAD_Tree_BPartner_ID() {\n\t\tInteger ii = (Integer) get_Value(\"AD_Tree_BPartner_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "long getBusinessCircleId();", "public int getId() {\n return decision.getConsensusId();\n }", "public int getVersionId() {\r\n\t\tif (versionId != null) {\r\n\t\t\treturn versionId;\r\n\t\t}\r\n\t\t\r\n\t\tcreateVersion();\r\n\t\treturn versionId;\r\n\t}", "public String getSContractNo() {\n return sContractNo;\n }", "public static String selectParentID(ConnectionProvider connectionProvider, String key) throws ServletException {\n String strSql = \"\";\n strSql = strSql + \n \" SELECT MA_ProcessPlan_Version.MA_Processplan_ID AS NAME\" +\n \" FROM MA_ProcessPlan_Version\" +\n \" WHERE MA_ProcessPlan_Version.MA_Processplan_Version_ID = ?\";\n\n ResultSet result;\n String strReturn = \"\";\n PreparedStatement st = null;\n\n int iParameter = 0;\n try {\n st = connectionProvider.getPreparedStatement(strSql);\n QueryTimeOutUtil.getInstance().setQueryTimeOut(st, SessionInfo.getQueryProfile());\n iParameter++; UtilSql.setValue(st, iParameter, 12, null, key);\n\n result = st.executeQuery();\n if(result.next()) {\n strReturn = UtilSql.getValue(result, \"name\");\n }\n result.close();\n } catch(SQLException e){\n log4j.error(\"SQL error in query: \" + strSql + \"Exception:\"+ e);\n throw new ServletException(\"@CODE=\" + Integer.toString(e.getErrorCode()) + \"@\" + e.getMessage());\n } catch(Exception ex){\n log4j.error(\"Exception in query: \" + strSql + \"Exception:\"+ ex);\n throw new ServletException(\"@CODE=@\" + ex.getMessage());\n } finally {\n try {\n connectionProvider.releasePreparedStatement(st);\n } catch(Exception ignore){\n ignore.printStackTrace();\n }\n }\n return(strReturn);\n }", "public String getEventidforAssigning(String eventId){\n System.out.println(\"hello\" + eventId);\n ViewObjectImpl usersVO = this.getEventCandidateDatawithName1();\n usersVO.setApplyViewCriteriaName(\"EventCandidateDatawithNameCriteria\");\n usersVO.setNamedWhereClauseParam(\"pid\",eventId);\n usersVO.executeQuery();\n // System.out.println(usersVO);\n Row usersVORow = usersVO.first();\n // System.out.println(usersVORow);\n // System.out.println(usersVORow.getAttribute(\"EVENT_ID\").toString());\n return (usersVORow != null) ? usersVORow.getAttribute(\"EVENT_ID\").toString(): null;\n }", "int getOtherId();", "io.dstore.values.IntegerValue getOrderPersonId();", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _expandoColumn.getCompanyId();\n\t}", "public BigDecimal getFcontractid() {\n return fcontractid;\n }", "String getValueId();", "@Override\n public long generateNewContractId() {\n return idCounter++;\n }", "String getOuter_id();", "String get_row_id()\n {\n return row_id;\n }", "@Override\n\tpublic long getResumeId() {\n\t\treturn _candidate.getResumeId();\n\t}", "public BigDecimal getStatementId() {\n return getStatementIdProperty().getValue();\n }", "long getOwnerIdLong();", "@Override\n\tpublic long getCompanyId();", "@Override\n\tpublic long getCompanyId();", "@Override\n\tpublic long getCompanyId();", "@Override\n\tpublic long getCompanyId();", "java.lang.String getBusinessId();", "public Integer getRowId() {\n return rowId;\n }", "public StrColumn getCitationId() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"citation_id\", StrColumn::new) :\n getBinaryColumn(\"citation_id\"));\n }", "long getLockOwnersID(String uuid) throws DatabaseException;", "NeeqCompanyAccountingFirmOnline selectByPrimaryKey(Integer id);", "public Guid getInvoiceRecipientId() {\r\n return invoiceRecipientId;\r\n }" ]
[ "0.61487406", "0.5905964", "0.5861136", "0.5791137", "0.5680316", "0.5610177", "0.5588247", "0.5588247", "0.5502287", "0.5487683", "0.5432214", "0.54096913", "0.5381086", "0.5359946", "0.5353519", "0.53134346", "0.5279022", "0.52727586", "0.5265002", "0.5229934", "0.51956576", "0.51707125", "0.51397616", "0.51315373", "0.51084226", "0.51084226", "0.5061882", "0.506004", "0.50453", "0.5042013", "0.50358784", "0.50304365", "0.50210917", "0.50185806", "0.5018141", "0.5016009", "0.5006789", "0.50049096", "0.5003851", "0.5002315", "0.4992448", "0.49757522", "0.49624246", "0.49587464", "0.49559504", "0.49559504", "0.49559504", "0.49559504", "0.49559504", "0.49533072", "0.4949846", "0.4947043", "0.49422848", "0.49385208", "0.49324724", "0.49284136", "0.49211657", "0.49200964", "0.4911691", "0.4910118", "0.4908733", "0.49016237", "0.49016237", "0.4900391", "0.4895738", "0.4891304", "0.48902732", "0.48902732", "0.48645103", "0.4864165", "0.48579633", "0.48492697", "0.48491293", "0.48464984", "0.48463005", "0.48429003", "0.48422182", "0.4838576", "0.48362336", "0.48306248", "0.48272464", "0.48241922", "0.48174018", "0.48164186", "0.48076773", "0.48049438", "0.4803465", "0.4803188", "0.48020366", "0.48012128", "0.4799425", "0.4799425", "0.4799425", "0.4799425", "0.47977108", "0.47950155", "0.4792387", "0.4790802", "0.47895548", "0.47893417" ]
0.6736019
0
This method was generated by MyBatis Generator. This method sets the value of the database column partner_contract_snapshots.partner_contract_id
public void setPartnerContractId(Integer partnerContractId) { this.partnerContractId = partnerContractId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setContractId(int value) {\n this.contractId = value;\n }", "public Integer getPartnerContractId() {\r\n return partnerContractId;\r\n }", "public void setC_BPartner_ID (int C_BPartner_ID);", "public void setPartnerId(long partnerId) {\n this.partnerId = partnerId;\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_candidate.setPrimaryKey(primaryKey);\n\t}", "public void setContractorID(int contractorID) {\n this.contractorID = contractorID;\n }", "public void setContractId(Integer contractId) {\n this.contractId = contractId;\n }", "public void setPartnerid(String partnerid) {\n this.partnerid = partnerid;\n }", "public void setC_Invoice_ID (int C_Invoice_ID);", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_esfTournament.setPrimaryKey(primaryKey);\n\t}", "public void setContractId(String contractId) {\n this.contractId = contractId == null ? null : contractId.trim();\n }", "@Override\r\n public void setsaleId(int saleid) {\n this.saleId = saleid;\r\n }", "@Override\n public void setPrimaryKey(int primaryKey) {\n _entityCustomer.setPrimaryKey(primaryKey);\n }", "public void setReceiverId(int v) \n {\n \n if (this.receiverId != v)\n {\n this.receiverId = v;\n setModified(true);\n }\n \n \n }", "public void setPartnerId(String partnerId) {\n\t\tmPartnerId = partnerId;\n\t}", "private void setOtherId(int value) {\n \n otherId_ = value;\n }", "protected void setId(EmployeeLeave employeeLeave, ResultSet rs, int rowNumber) throws SQLException{\n\t\tString id = rs.getString(EmployeeLeaveTable.COLUMN_ID);\n\t\tif(id == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\n\t\temployeeLeave.setId(id);\n\t}", "public abstract void setCompteId(Integer pCompteId);", "public void setXpeContractId(String value) {\n setAttributeInternal(XPECONTRACTID, value);\n }", "public int getContractId() {\n return contractId;\n }", "@Override\n public void setPrimaryKey(long primaryKey) {\n _partido.setPrimaryKey(primaryKey);\n }", "void setInvoiceId(Long invoiceId);", "public void setC_BPartner_ID(int C_BPartner_ID) {\n\t\tif (C_BPartner_ID < 1)\n\t\t\tthrow new IllegalArgumentException(\"C_BPartner_ID is mandatory.\");\n\t\tset_Value(\"C_BPartner_ID\", new Integer(C_BPartner_ID));\n\t}", "public Integer getContractId() {\n return contractId;\n }", "@Override\n\tpublic void setCandidateId(long candidateId) {\n\t\t_candidate.setCandidateId(candidateId);\n\t}", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "private void setSrcId(int value) {\n \n srcId_ = value;\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_dlSyncEvent.setPrimaryKey(primaryKey);\n\t}", "@Transient\n\tpublic String getPartnerId() {\n\t\treturn mPartnerId;\n\n\t}", "public void setC_Decoris_PreSalesLine_ID (int C_Decoris_PreSalesLine_ID);", "public void setPartner(String partner) {\n this.partner = partner;\n }", "public void setPartner(String partner) {\n this.partner = partner;\n }", "public void setEmployerId(BigDecimal employerId) {\n getEmployerIdProperty().setValue(employerId);\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_employee.setPrimaryKey(primaryKey);\n\t}", "public void setContractAmount(Integer contractAmount) {\n this.contractAmount = contractAmount;\n }", "public String getPartnerid() {\n return partnerid;\n }", "@Override\n\tpublic void setRowId(int parameterIndex, RowId x) throws SQLException {\n\t\t\n\t}", "public void setSalesRep_ID (int SalesRep_ID);", "public void setSalesRep_ID (int SalesRep_ID);", "public void setOrgId(BigDecimal orgId) {\n this.orgId = orgId;\n }", "public void setBSCA_PriceChangePrev_ID (int BSCA_PriceChangePrev_ID);", "@JsonSetter(\"company_id\")\n public void setCompanyId (String value) { \n this.companyId = value;\n }", "private void setSrcId(\n int index, int value) {\n ensureSrcIdIsMutable();\n srcId_.setInt(index, value);\n }", "public String getContractId() {\n return contractId;\n }", "public StrColumn getBindingPartnerEntityId() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"binding_partner_entity_id\", StrColumn::new) :\n getBinaryColumn(\"binding_partner_entity_id\"));\n }", "private void setSrcId(int value) {\n \n srcId_ = value;\n }", "public Builder setCastleId(long value) {\n \n castleId_ = value;\n onChanged();\n return this;\n }", "public void setPrimaryKey(int primaryKey);", "@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_expandoColumn.setCompanyId(companyId);\n\t}", "@Override\n\tpublic void setResumeId(long resumeId) {\n\t\t_candidate.setResumeId(resumeId);\n\t}", "@Override\n public void setCompanyId(long companyId) {\n _partido.setCompanyId(companyId);\n }", "@Override\n public final void setItsId(final Long pId) {\n //stub\n }", "public void setIdOwner(Long idOwner) {\r\n this.idOwner = idOwner;\r\n }", "public void setCompanyId(Integer value) {\n this.companyId = value;\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_expandoColumn.setPrimaryKey(primaryKey);\n\t}", "OcCustContract selectByPrimaryKey(String contractNo);", "@Override\n\tpublic void setPrimaryKey(int primaryKey) {\n\t\t_locMstLocation.setPrimaryKey(primaryKey);\n\t}", "public void setC_BPartnerCashTrx_ID(int C_BPartnerCashTrx_ID) {\n\t\tif (C_BPartnerCashTrx_ID <= 0)\n\t\t\tset_Value(\"C_BPartnerCashTrx_ID\", null);\n\t\telse\n\t\t\tset_Value(\"C_BPartnerCashTrx_ID\", new Integer(C_BPartnerCashTrx_ID));\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_second.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_buySellProducts.setPrimaryKey(primaryKey);\n\t}", "public Builder setRowId(int value) {\n \n rowId_ = value;\n onChanged();\n return this;\n }", "public Builder setRowId(int value) {\n \n rowId_ = value;\n onChanged();\n return this;\n }", "public Builder setRowId(int value) {\n \n rowId_ = value;\n onChanged();\n return this;\n }", "public Builder setRowId(int value) {\n \n rowId_ = value;\n onChanged();\n return this;\n }", "public Builder setRowId(int value) {\n \n rowId_ = value;\n onChanged();\n return this;\n }", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setRowId(Integer rowId) {\n this.rowId = rowId;\n }", "public void setFcontractid(BigDecimal fcontractid) {\n this.fcontractid = fcontractid;\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_state.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_esfShooterAffiliationChrono.setPrimaryKey(primaryKey);\n\t}", "public void setIdAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI(int idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI)\r\n/* 85: */ {\r\n/* 86:118 */ this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI = idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 87: */ }", "public void setC_BankAccount_ID (int C_BankAccount_ID);", "public void setStargateId(int val) {\n stargateId = val;\n }", "public void setMarketId(Number value) {\n\t\tsetNumber(MARKET_ID, value);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_changesetEntry.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(long primaryKey) {\n _courseImage.setPrimaryKey(primaryKey);\n }", "public final void setId_entreprise(final Long id_entreprise) {\n this.id_entreprise = id_entreprise;\n }", "public void setRowId(int parameterIndex, RowId x) throws SQLException {\n currentPreparedStatement.setRowId(parameterIndex, x);\n }", "public final void setNetId( String id) //final doesn't allow new rules or ways in door\r\n {\r\n netId = id; //only place I can do it in set methods\r\n }", "protected void setVersion(EmployeeLeave employeeLeave, ResultSet rs, int rowNumber) throws SQLException{\n\t\tInteger version = rs.getInt(EmployeeLeaveTable.COLUMN_VERSION);\n\t\tif(version == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\n\t\temployeeLeave.setVersion(version);\n\t}" ]
[ "0.6091521", "0.6002849", "0.5836774", "0.5637287", "0.53971696", "0.53366005", "0.53075427", "0.52800715", "0.527131", "0.5183702", "0.5116503", "0.51055914", "0.5036405", "0.5034014", "0.50269455", "0.50267786", "0.49882957", "0.4960263", "0.49220625", "0.49188042", "0.4908303", "0.490283", "0.49022374", "0.4873977", "0.48390725", "0.48225307", "0.48225307", "0.48225307", "0.48225307", "0.48225307", "0.48142174", "0.47933832", "0.4788976", "0.4780299", "0.4775677", "0.4775677", "0.47700384", "0.47630644", "0.4754178", "0.47537735", "0.47433648", "0.47393784", "0.47393784", "0.4737647", "0.47359732", "0.47324952", "0.47234067", "0.47138906", "0.47111732", "0.47089562", "0.46965152", "0.46919945", "0.46890354", "0.46878448", "0.46878153", "0.4683214", "0.4681735", "0.467077", "0.4669695", "0.46579495", "0.46563217", "0.46518758", "0.4641736", "0.46361777", "0.4636141", "0.4636141", "0.4636141", "0.4636141", "0.4636141", "0.46236148", "0.46236148", "0.46236148", "0.46236148", "0.46236148", "0.46236148", "0.46236148", "0.46236148", "0.46236148", "0.46236148", "0.46236148", "0.46236148", "0.46236148", "0.46236148", "0.46236148", "0.46236148", "0.46236148", "0.46230766", "0.4622678", "0.46213767", "0.46210283", "0.46154776", "0.4594509", "0.45923033", "0.4587723", "0.4577813", "0.45738444", "0.45668808", "0.45638844", "0.45616916", "0.4561443" ]
0.6737907
0
This method was generated by MyBatis Generator. This method returns the value of the database column partner_contract_snapshots.price
public Integer getPrice() { return price; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "BigDecimal getPrice();", "public BigDecimal getPrice() {\r\n return price;\r\n }", "public BigDecimal getPrice() {\r\n return price;\r\n }", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPriceActual();", "public BigDecimal getPriceEntered();", "public BigDecimal\tgetPrice();", "public BigDecimal getPrice()\n\t{\n\t\treturn price;\n\t}", "public Long getPrice() {\n return price;\n }", "BigDecimal getOpenPrice();", "public BigDecimal getStock_price() {\n return stock_price;\n }", "BigDecimal getDirtyPrice();", "Price getTradePrice();", "cosmos.base.v1beta1.CoinOuterClass.Coin getPrice(int index);", "public Integer getPrice() {\n return price;\n }", "public Integer getPrice() {\n return price;\n }", "public Integer getPrice() {\n return price;\n }", "public Integer getPrice() {\n return price;\n }", "@Import(\"price\")\n\tint getPrice();", "@Override\n public float getPriceCard() {\n return database.getPriceCard();\n }", "@Element \n public Long getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public Double getPrice() {\r\n return price;\r\n }", "public BigDecimal getPrice() {\n return (BigDecimal)getAttributeInternal(PRICE);\n }", "public java.math.BigDecimal getPrice() {\n return price;\n }", "public double getPrice()\n {\n return this.price;\n }", "public BigDecimal getHistoryPrice() {\n return historyPrice;\n }", "String getPrice() {\n return Double.toString(price);\n }", "public double getPrice() {\n return this.price;\n }", "public Double getPrice() {\n return price;\n }", "public Double getPrice() {\n return price;\n }", "public Double getPrice();", "public BigDecimal getPriceListOld();", "long getPrice();", "public BigDecimal getpPrice() {\n return pPrice;\n }", "public int getPrice() {\n return price;\n }", "public Money getPrice() {\n return price;\n }", "public Float getOriginalPrice() {\n return this.OriginalPrice;\n }", "public double getPrice()\r\n {\r\n return this.price;\r\n }", "public double getPrice() {\n return price_;\n }", "public BigDecimal getPriceLastInv();", "public double getPrice() {\r\n return price;\r\n }", "public double getPrice() {\r\n return price;\r\n }", "public double getPrice() {\r\n return price;\r\n }", "public double getPrice() {\r\n return price;\r\n }", "@Override\n public double getPrice(){\n \n return currentPrice; \n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public long getPrice() {\n return price;\n }", "public Date getPrice() {\n return price;\n }", "public double getPrice(){\n\t\treturn this.price;\n\t}", "public BigDecimal getPriceStdOld();", "public double getPrice(){\r\n\t\treturn price;\r\n\t}", "public double price() {\n return price;\n }", "public double getPrice();", "public int getPrice() {\n return price_;\n }", "public double getPrice()\r\n {\r\n return price;\r\n }", "public BigDecimal getVehiclePrice() {\n\t\treturn vehiclePrice;\n\t}", "public java.lang.Integer getPrice()\n {\n return price;\n }", "public BigDecimal getPriceStdEntered();", "public Float getPrice() {\r\n return price;\r\n }", "public double getPrice()\n {\n return price;\n }", "public Float getPrice() {\n return price;\n }", "double getPrice();", "double getPrice();", "double getPrice();", "public double getPrice() {\n return price_;\n }", "public double getPrice(){\n\t\treturn price;\n\t}", "public int getPrice() {\n\treturn price;\n}", "public BigDecimal getPriceLimitOld();", "public String getPrice() {\n return price;\n }", "public String getPrice() {\n return price;\n }", "public float getPrice() {\n return _price;\n }", "public float getPrice() {\n return price;\n }", "public float getPrice() {\n return price;\n }", "public float getPrice() {\n return price;\n }", "public Number getPrice() {\n return (Number)getAttributeInternal(PRICE);\n }", "public int getPrice() {\r\n return price;\r\n }", "public int getPrice() {\n return price;\n }", "public int getPrice() {\n return price;\n }", "public BigDecimal getMarketPrice() {\n return marketPrice;\n }", "public BigDecimal getSellingPrice() {\n return sellingPrice;\n }", "public Double getSaleBoxPrice() {\r\n return saleBoxPrice;\r\n }", "String getPrice();", "public BigDecimal getHistoryMarketPrice() {\n return historyMarketPrice;\n }", "public double getOriginalPrice() {\n return originalPrice;\n }" ]
[ "0.6390445", "0.63528275", "0.63528275", "0.63367444", "0.63367444", "0.63367444", "0.63367444", "0.63367444", "0.62526757", "0.6249533", "0.6158286", "0.6154216", "0.61356777", "0.6067172", "0.60349286", "0.60295504", "0.60181016", "0.59878904", "0.59545016", "0.59545016", "0.59545016", "0.59545016", "0.5947992", "0.59403974", "0.5933974", "0.5926754", "0.59227127", "0.5922485", "0.59198326", "0.59189695", "0.59038144", "0.58855605", "0.58831286", "0.58672166", "0.58672166", "0.5865121", "0.5863788", "0.58564615", "0.5856003", "0.5849074", "0.58455706", "0.5844104", "0.5841483", "0.5839315", "0.5838019", "0.58363456", "0.58363456", "0.58363456", "0.58363456", "0.5833909", "0.5832407", "0.5832407", "0.5832407", "0.5832407", "0.5832407", "0.5832407", "0.5832407", "0.5832407", "0.5832407", "0.5832407", "0.5832407", "0.58290917", "0.5825473", "0.58216536", "0.58210874", "0.58069575", "0.5793346", "0.57901186", "0.578561", "0.5782615", "0.57808554", "0.57747626", "0.57737494", "0.57693297", "0.57689595", "0.57673573", "0.5760542", "0.5760542", "0.5760542", "0.57601374", "0.5752399", "0.57420665", "0.5741261", "0.573919", "0.573919", "0.57347906", "0.5733648", "0.5733648", "0.5733648", "0.57332426", "0.5728496", "0.5726937", "0.5726937", "0.5720482", "0.5719471", "0.5716993", "0.5716128", "0.57158273", "0.5711886" ]
0.5958382
19
This method was generated by MyBatis Generator. This method sets the value of the database column partner_contract_snapshots.price
public void setPrice(Integer price) { this.price = price; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }", "public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }", "public void setPrice(BigDecimal price) {\n this.price = price;\n }", "public void setPrice(BigDecimal price) {\n this.price = price;\n }", "public void setPrice(java.math.BigDecimal price) {\n this.price = price;\n }", "public void setPrice(final BigDecimal price) {\n this.price = price;\n }", "public void setPriceActual (BigDecimal PriceActual);", "public void setPriceEntered (BigDecimal PriceEntered);", "public void setPrice(double price)\n {\n this.price = price;\n }", "public void setPrice(Money price) {\n this.price = price;\n }", "public void setPrice(double price)\n {\n this.price = price;\n }", "public void setPrice(double price) {\r\n this.price = price;\r\n }", "public void setPrice(double price) {\r\n this.price = price;\r\n }", "public void setPrice(double price) {\r\n this.price = price;\r\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double newPrice) {\r\n price = newPrice;\r\n }", "public void setPriceLimitOld (BigDecimal PriceLimitOld);", "public void setPriceListOld (BigDecimal PriceListOld);", "public void setPrice(Double price) {\r\n this.price = price;\r\n }", "public void setPrice(int price) {\r\n this.price = price;\r\n }", "public void setPrice(int price) {\n this.price = price;\n }", "public void setPrice(Double price) {\n this.price = price;\n }", "public void setPrice(Double price) {\n this.price = price;\n }", "public void setPrice(int newPrice){\n productRelation.setCost(newPrice);\n }", "public void setPrice(float price) {\n this.price = price;\n }", "public void setPrice(float price) {\n this.price = price;\n }", "public void setPriceStdOld (BigDecimal PriceStdOld);", "public void setPrice(Float price) {\r\n this.price = price;\r\n }", "public void setPrice(Float price) {\n this.price = price;\n }", "public void setPrice(int price) {\n\tthis.price = price;\n}", "public void setPrice(double value) {\n this.price = value;\n }", "public void setPrice(double value) {\n this.price = value;\n }", "public void setPrice(int price) {\n this.price = (double)price;\n }", "public void setPrice(Date price) {\n this.price = price;\n }", "public void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}", "public void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}", "public void setStock_price(BigDecimal stock_price) {\n this.stock_price = stock_price;\n }", "public void setPrice(double price) \n\t{\n\t\tthis.price = price;\n\t}", "public void setPrice(Double price);", "public void setPrice(double price){this.price=price;}", "public void setPrice(int value) {\n this.price = value;\n }", "public void setPrice(Integer price) {\n this.price = price;\n }", "public void setPrice(Integer price) {\n this.price = price;\n }", "public void setPrice(Integer price) {\n this.price = price;\n }", "public void setPrice(Integer price) {\n this.price = price;\n }", "public void changePrice(TripDTO trip, BigDecimal price);", "public void setPriceLastInv (BigDecimal PriceLastInv);", "public void setpPrice(BigDecimal pPrice) {\n this.pPrice = pPrice;\n }", "public void setPrice(double price) {\n\t\tthis.price = price;\n\t}", "public void setPrice(double price) {\n\t\tthis.price = price;\n\t}", "public void setPrice(double price) {\n\t\tthis.price = price;\n\t}", "public void setPrice(Long price) {\n this.price = price;\n }", "public void setPrice(java.lang.Integer _price)\n {\n price = _price;\n }", "public void setPriceList (BigDecimal PriceList);", "public void setPriceLimit (BigDecimal PriceLimit);", "public void setOriginalPrice(Float OriginalPrice) {\n this.OriginalPrice = OriginalPrice;\n }", "public void setPrice(double p)\r\n\t{\r\n\t\tprice = p;\r\n\t}", "@Override\n\tpublic void setPrice(double price) {\n\t\tconstantPO.setPrice(price);\n\t}", "@Override\n\tpublic void setPrice(int price) {\n\t\t\n\t}", "public void setPriceStdEntered (BigDecimal PriceStdEntered);", "@Override\r\n\tpublic void setPrice(double p) {\n\t\tprice = p;\r\n\t}", "public void setPriceListEntered (BigDecimal PriceListEntered);", "public void setPrice (double ticketPrice)\r\n {\r\n price = ticketPrice;\r\n }", "public void setPrice(double price) {\n this.price = price;\n if (this.price < 0) {\n this.price = 0;\n }\n }", "public void setPriceLimitEntered (BigDecimal PriceLimitEntered);", "public void setPrice(BigDecimal value) {\n setAttributeInternal(PRICE, value);\n }", "public void setPrice(Double price) {\n\t\tthis.price = price;\n\t}", "public void setSalesPrice(int value) {\n this.salesPrice = value;\n }", "protected void setPrice(float price) {\n\t\t\tthis.price = price;\n\t\t}", "public void setPriceStd (BigDecimal PriceStd);", "public void setPrice(String price) {\n\t\tthis.price = price;\n\t}", "public void setHistoryPrice(BigDecimal historyPrice) {\n this.historyPrice = historyPrice;\n }", "@Element \n public void setPrice(Long price) {\n this.price = price;\n }", "public void setVehiclePrice(BigDecimal vehiclePrice) {\n\t\tthis.vehiclePrice = vehiclePrice;\n\t}", "public void setPrice(float itemPrice) \n {\n price = itemPrice;\n }", "public void setMarketPrice(BigDecimal marketPrice) {\n this.marketPrice = marketPrice;\n }", "public void setPrice(double p) {\n\t\tprice = p;\n\t}", "@Override\n\tpublic void setPrice() {\n\t\tprice = 24.99;\n\n\t}", "public void setPrice(double price) {\n\t\tif(price > 0 )\n\t\t\tthis.price=price;\n\t}", "public void setM_price(BigDecimal m_price) {\n this.m_price = m_price;\n }", "public void setPrice(double x){\n\t\t\tprice = x;\t\n\t\t}", "public void setPrice(Number value) {\n setAttributeInternal(PRICE, value);\n }", "public void setpPrice(double pPrice) {\n this.pPrice = pPrice;\n }", "public void setPrice(java.lang.String price) {\n this.price = price;\n }", "public BigDecimal getPrice() {\r\n return price;\r\n }", "public BigDecimal getPrice() {\r\n return price;\r\n }", "public void setSellingPrice(BigDecimal sellingPrice) {\n this.sellingPrice = sellingPrice;\n }", "protected void setPrice(DukatAmount price){\r\n\t\tif(canHaveAsPrice(price))\r\n\t\t\tthis.price = price;\r\n\t}", "public void setO_price(BigDecimal o_price) {\n this.o_price = o_price;\n }", "public void setBookPrice(Float bookPrice) {\n this.bookPrice = bookPrice;\n }", "public void setCostPrice(BigDecimal costPrice) {\n this.costPrice = costPrice;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }" ]
[ "0.6771381", "0.6771381", "0.6762446", "0.6762446", "0.662336", "0.659473", "0.64993656", "0.6480948", "0.64563924", "0.64206946", "0.641176", "0.6397744", "0.6397744", "0.6397744", "0.6396725", "0.6396725", "0.6396725", "0.6396725", "0.6396725", "0.6396725", "0.6396725", "0.638497", "0.63621545", "0.6326379", "0.6308719", "0.6280726", "0.6270619", "0.62430674", "0.62430674", "0.62161493", "0.6214735", "0.6214735", "0.6210206", "0.6207726", "0.62016475", "0.6193959", "0.619295", "0.619295", "0.6188516", "0.61721694", "0.61703163", "0.61703163", "0.6145319", "0.61403483", "0.6128816", "0.61245495", "0.61067855", "0.6102767", "0.6102767", "0.6102767", "0.6102767", "0.6093711", "0.6075034", "0.6070479", "0.60636365", "0.60636365", "0.60636365", "0.605077", "0.6029873", "0.6021648", "0.6017047", "0.5996041", "0.59609723", "0.5952916", "0.5928774", "0.59235626", "0.5920667", "0.59182847", "0.59119457", "0.59030306", "0.58904636", "0.5888574", "0.58865565", "0.5882389", "0.5874988", "0.5863143", "0.5861532", "0.58398116", "0.5838239", "0.5838137", "0.5836098", "0.58257174", "0.5821895", "0.57992554", "0.57910967", "0.5779343", "0.57627493", "0.57424027", "0.57355917", "0.5732939", "0.5716269", "0.5716269", "0.5703058", "0.5679604", "0.5677054", "0.56726724", "0.5659679", "0.56590986", "0.56590986" ]
0.6111074
47
This method was generated by MyBatis Generator. This method returns the value of the database column partner_contract_snapshots.created
public Integer getCreated() { return created; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.Date getCreated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_created);\r\n }", "public java.util.Date getCreated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_created);\r\n }", "public java.util.Date getCreated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_created);\r\n }", "public java.sql.Timestamp getCreated() {\n\treturn created;\n}", "public String getCreated() {\n return this.created;\n }", "public String getCreated() {\n return this.created;\n }", "public Timestamp getCreated() {\n return created;\n }", "public BundleTimestamp creation_ts() {\r\n\t\treturn creation_ts_;\r\n\t}", "public Integer getCreated() {\n return created;\n }", "public String getDateCreated(){\n return dateCreated.toString();\n }", "public Timestamp getCreatedDate() {\n return createdDate;\n }", "public Date getCreated ()\n throws ContentObjectException\n {\n try\n {\n final String METHOD_NAME = \"getCreated\";\n this.logDebug(METHOD_NAME + \": 1/2: Started\");\n this.ensureDbHelper();\n ResultSet resultSet =\n this.dbHelper.queryDatum(this.type, this.id, DbColumn.CREATED);\n if ( ! resultSet.next() )\n throw new SQLException\n (this.getIdentification() + \": \" + METHOD_NAME + \": Empty ResultSet\");\n Date created = resultSet.getTimestamp(DbColumn.CREATED);\n this.logDebug(METHOD_NAME + \": 2/2: Done. created = \" + created);\n return created;\n }\n catch (Exception exception)\n {\n throw new ContentObjectException(exception);\n }\n }", "public String getDateCreated() {\n return this.dateCreated.toString();\n }", "public String getDateCreated() {\n return this.dateCreated.toString();\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "@JsonProperty(\"Date Created\")\n\tString getCreated() {\n\t\treturn getDate(created);\n\t}", "@Override\n protected String getCreationDate() {\n try {\n if (exists() && ((Node) item).hasProperty(JcrConstants.JCR_CREATED)) {\n long creationTime = ((Node) item).getProperty(JcrConstants.JCR_CREATED).getValue().getLong();\n return HttpDateFormat.creationDateFormat().format(new Date(creationTime));\n }\n } catch (RepositoryException e) {\n log.warn(\"Error while accessing jcr:created property\");\n }\n\n // fallback\n return super.getCreationDate();\n }", "public Timestamp getCreateModifiedDate() {\n return createModifiedDate;\n }", "public Timestamp getCreateModifiedDate() {\n return createModifiedDate;\n }", "public Timestamp getCreateModifiedDate() {\n return createModifiedDate;\n }", "public Date getCreated() {\r\n return created;\r\n }", "public Date getCreated() {\r\n return created;\r\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public int getCreated() {\n return created;\n }", "public Date getDateCreated(){return DATE_CREATED;}", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Date getCreated() {\r\n return createdDate;\r\n }", "public Long getCreated() {\n if (created == null) {\n return Long.valueOf(0);\n } else {\n return created;\n }\n }", "public Date getDateCreated()\n {\n return dateCreated;\n }", "@JsonIgnore\n public long getDateCreated() {\n return this.dateCreated;\n }", "@Override\n public Date getCreated() {\n return created;\n }", "public java.sql.Timestamp getCreated() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.sql.Timestamp) __getCache(\"created\")));\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Timestamp getCreateDate() {\n return createDate;\n }", "public Timestamp getCreatedDate() {\n return (Timestamp)getAttributeInternal(CREATEDDATE);\n }", "public Date getDateCreated(){\n\t\treturn dateCreated;\n\t}", "public Date getCreated() {\r\n\t\treturn created;\r\n\t}", "public Date getCreated() {\r\n\t\treturn created;\r\n\t}", "@SimpleProperty(description = \"iSENSE Project Creation Date\", \n category = PropertyCategory.BEHAVIOR)\n public String ProjectDateCreated() {\n if(this.project == null || this.fields == null) {\n Log.e(\"iSENSE\", \"Couldn't get project information!\");\n return \"DNE\";\n }\n return project.timecreated;\n }", "public Timestamp getCreatedDate() {\n return (Timestamp) getAttributeInternal(CREATEDDATE);\n }", "public Date getCreatedOn()\n {\n return _model.getCreatedOn();\n }", "public ScGridColumn<AcFossWebServiceMessage> newCreatedUtcTsColumn()\n {\n return newCreatedUtcTsColumn(\"Created Utc Ts\");\n }", "public Date getCreated() {\n return mCreated;\n }", "public java.lang.Long getCreated() {\n return created;\n }", "public Date getCreatedTs() {\n\t\treturn createdTs;\n\t}", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn _changesetEntry.getCreateDate();\n\t}", "public Long getCreatedDate() {\r\n\t\treturn createdDate;\r\n\t}", "Date getDateCreated();", "public OffsetDateTime createdDateTime() {\n return this.innerProperties() == null ? null : this.innerProperties().createdDateTime();\n }", "String getCreated_at();", "public Date getDateCreated();", "public java.lang.Long getCreated() {\n return created;\n }", "public Date getCreatedDate() {\n return this.createdDate;\n }", "public Date getCreatedDate() {\n return this.createdDate;\n }", "public Date getCreatedDate() {\n return createdDate;\n }", "public Date getCreatedDate() {\n return createdDate;\n }", "public Date getCreatedDate() {\r\n return createdDate;\r\n }", "public Date getCreatedDate() {\r\n return createdDate;\r\n }", "public String getDatecreated() {\n return datecreated;\n }", "public Date getDateCreated() {\r\n\t\treturn dateCreated;\r\n\t}", "public java.util.Date getCreated() {\n return this.created;\n }", "@ZAttr(id=790)\n public Date getCreateTimestamp() {\n return getGeneralizedTimeAttr(Provisioning.A_zimbraCreateTimestamp, null);\n }", "public String getDatecreated() {\n\t\treturn datecreated;\n\t}", "public Date getCreateddate() {\n return createddate;\n }", "public Date getCREATED_DATE() {\r\n return CREATED_DATE;\r\n }", "public Date getDateCreated() {\n\t\treturn dateCreated;\n\t}", "public Date getCreateTimestamp() {\r\n return createTimestamp;\r\n }", "public java.util.Date getDateCreated(){\r\n\t\treturn dateCreated;\r\n\t}", "public Date getCreateTimestamp() {\n return createTimestamp;\n }", "public Long getCreationDate()\r\n\t{\r\n\t\treturn creationDate;\r\n\t}", "public Long getCreationTimestamp() {\n return creationTimestamp;\n }", "public Timestamp getCreatedOn() {\r\n\t\treturn createdOn;\r\n\t}", "public DateTime getCreatedTimestamp() {\n\t\treturn getDateTime(\"sys_created_on\");\n\t}", "public Date getCreationDate() {\n\n \n return creationDate;\n\n }", "public long getCreated() {\n\t\treturn m_created;\n\t}", "public Date getCreatedDate();", "Date getCreatedDate();", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "@Override\n\tpublic java.util.Date getCreateDate() {\n\t\treturn _candidate.getCreateDate();\n\t}" ]
[ "0.6105299", "0.6105299", "0.6105299", "0.6059346", "0.60437727", "0.60437727", "0.5912448", "0.5898239", "0.5897942", "0.5878622", "0.5872518", "0.58505476", "0.5845231", "0.5845231", "0.57908326", "0.57908326", "0.5770279", "0.5767519", "0.5757634", "0.5757634", "0.5757634", "0.57574826", "0.57574826", "0.5756203", "0.5756203", "0.5756203", "0.5756203", "0.57466775", "0.5742724", "0.57418585", "0.57418585", "0.57418585", "0.57418585", "0.57418585", "0.57418585", "0.57418585", "0.57418585", "0.57418585", "0.57418585", "0.57418585", "0.57418585", "0.57418585", "0.57321835", "0.5726758", "0.5722893", "0.57038283", "0.56784636", "0.5675546", "0.5673316", "0.5673316", "0.5673316", "0.5673316", "0.5672664", "0.56647587", "0.5663952", "0.5657564", "0.5657564", "0.56573313", "0.5640211", "0.5626305", "0.56226236", "0.56182194", "0.56155074", "0.5599497", "0.55970246", "0.5594093", "0.55839306", "0.55699646", "0.556857", "0.5565664", "0.55614775", "0.5557344", "0.5557344", "0.55529916", "0.55529916", "0.5549733", "0.5549733", "0.5534947", "0.5533006", "0.5523264", "0.55186033", "0.5513643", "0.55135244", "0.5509361", "0.55040854", "0.55029005", "0.55025345", "0.5488676", "0.548803", "0.54878044", "0.54869884", "0.5482056", "0.5478617", "0.54754436", "0.54720426", "0.5460729", "0.54601204", "0.54601204", "0.54601204", "0.5449777" ]
0.5915901
6
This method was generated by MyBatis Generator. This method sets the value of the database column partner_contract_snapshots.created
public void setCreated(Integer created) { this.created = created; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCreated(Date v) \n {\n \n if (!ObjectUtils.equals(this.created, v))\n {\n this.created = v;\n setModified(true);\n }\n \n \n }", "@PrePersist\n\tprotected void onCreate() {\n\t\tupdated = new Date();\n\t\trcaCase.updated = updated;\n\t}", "public void setCreated(java.sql.Timestamp newValue) {\n\tthis.created = newValue;\n}", "void setCreatedDate(Date createdDate);", "public void setCreatedDate(Date createdDate);", "public void setCreated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_created, value);\r\n }", "public void setCreated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_created, value);\r\n }", "public void setCreated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_created, value);\r\n }", "void setCreateDate(final Date creationDate);", "public void setCreationDate(Date creationDate) {\n }", "public void setCreated(Date created) {\r\n this.created = created;\r\n }", "public void setCreated(Date created) {\r\n this.created = created;\r\n }", "public void setDateCreated(Date dateCreated);", "public void setCreationDate(Date creationDate);", "void setDateCreated(final Date dateCreated);", "void setCreationDate(Date val)\n throws RemoteException;", "public void setCreated( java.sql.Timestamp newValue ) {\n __setCache(\"created\", newValue);\n }", "public void setCreated(Date created) {\n this.created = created;\n }", "public void setCreated(Date created) {\n this.created = created;\n }", "public void setCreated(Date created) {\n this.created = created;\n }", "public void setCreated(Date created) {\n this.created = created;\n }", "public void setCreateDate(Date createDate) { this.createDate = createDate; }", "public void setCreated(Timestamp created) {\n this.created = created;\n }", "@PrePersist\n\tprivate void setDateCreation() {\n\t\tthis.dateCreation = ZonedDateTime.now();\n\n\t}", "public void setCreatedDate(Date value) {\n this.createdDate = value;\n }", "public void setCreatedDate(Date value) {\n this.createdDate = value;\n }", "public void setDateCreated(Date dateCreated) {\n this.dateCreated = dateCreated;\n }", "public void setDateCreated(Date dateCreated) {\n this.dateCreated = dateCreated;\n }", "public void setDateCreated(Date dateCreated) {\n this.dateCreated = dateCreated;\n }", "@PrePersist\r\n void createdAt() {\r\n setDateRecordAdded();\r\n setDateRecordUpdated();\r\n }", "public void set_creation_ts(BundleTimestamp creation_ts) {\r\n\t\tcreation_ts_ = creation_ts;\r\n\t}", "public void setCreated(Integer created) {\n this.created = created;\n }", "@PrePersist\n protected void onCreate(){\n this.createdAt = new Date();\n }", "public void setCreated(Date created) {\r\n\t\tthis.created = created;\r\n\t}", "public void setCreated(Date created) {\r\n\t\tthis.created = created;\r\n\t}", "@PrePersist\n\t protected void onCreate(){\n\t this.createdAt = new Date();\n\t }", "public void setEventCreated() {\n Date now = new Date();\n this.eventCreated = now;\n }", "public void setCREATED_DATE(Date CREATED_DATE) {\r\n this.CREATED_DATE = CREATED_DATE;\r\n }", "public void setCreationDate(Date bucketCreationDate)\n {\n this.creationDate = bucketCreationDate;\n }", "public IBusinessObject setCreationDate(Timestamp creationDate)\n throws ORIOException;", "public void setCreateDate(Date createDate)\r\n/* */ {\r\n/* 165 */ this.createDate = createDate;\r\n/* */ }", "public void setCreatedDate(Date createdDate) {\r\n this.createdDate = createdDate;\r\n }", "public void setCreatedDate(Date createdDate) {\r\n this.createdDate = createdDate;\r\n }", "public void setCreationDate(Date creationDate) {\r\n this.creationDate = creationDate;\r\n }", "@Override\r\n\tpublic void setCreated(LocalDateTime created) {\n\t\tthis.created = created;\t\t\r\n\t}", "public void setCreatedDate(Timestamp aCreatedDate) {\n createdDate = aCreatedDate;\n }", "@Override\n\tpublic void setCreateDate(Date createDate) {\n\t\t_changesetEntry.setCreateDate(createDate);\n\t}", "public void setCreated(java.lang.Long value) {\n this.created = value;\n }", "public void setCreatedon( Date createdon )\n {\n this.createdon = createdon;\n }", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn _changesetEntry.getCreateDate();\n\t}", "public Builder setCreationDate(long value) {\n \n creationDate_ = value;\n onChanged();\n return this;\n }", "public void setDateCreated(java.util.Date dateCreated){\r\n\t\tthis.dateCreated = dateCreated;\r\n\t}", "public void setCreatedOn(DateTime createdOn);", "public void setCreatedDate(Date createdDate) {\n this.createdDate = createdDate;\n }", "public void setCreateDate(Date createDate);", "public void setCreateDate(Date createDate);", "public void setCreateDate(Date createDate);", "public void setCreationDate(Long creationDate)\r\n\t{\r\n\t\tthis.creationDate = creationDate;\r\n\t}", "public void setCreationDate(Calendar creationDate) {\n/* 248 */ getCOSObject().setDate(COSName.CREATION_DATE, creationDate);\n/* */ }", "@Override\n\tpublic void setCreateDate(java.util.Date createDate) {\n\t\t_esfTournament.setCreateDate(createDate);\n\t}", "public void setCreationDate(String creationDate) {\r\n\t\tthis.creationDate = new SimpleStringProperty(creationDate);\r\n\t}", "public void setCreateddate( Date createddate )\n {\n this.createddate = createddate;\n }", "public void setCreateDate(String value) {\n this.createDate = value;\n }", "void setCreateDate(Date date);", "public void setDateCreated(java.util.Calendar param) {\n localDateCreatedTracker = param != null;\n\n this.localDateCreated = param;\n }", "public void setCreatorDate(Date creatorDate) {\n this.creatorDate = creatorDate;\n }", "public void setCreationDate(Date creationDate) {\n \n this.creationDate = creationDate;\n\n }", "private void setCreatedTime(int value) {\n \n createdTime_ = value;\n }", "public void setDateCreated(Date dateCreated) {\n\t\tthis.dateCreated = dateCreated;\n\t}", "public void setCreated(java.util.Calendar created)\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(CREATED$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CREATED$0);\n }\n target.setCalendarValue(created);\n }\n }", "public void setCreatedDate(Timestamp value) {\n setAttributeInternal(CREATEDDATE, value);\n }", "public void setCreateModifiedDate(Timestamp aCreateModifiedDate) {\n createModifiedDate = aCreateModifiedDate;\n }", "public void setCreateModifiedDate(Timestamp aCreateModifiedDate) {\n createModifiedDate = aCreateModifiedDate;\n }", "public void setCreateModifiedDate(Timestamp aCreateModifiedDate) {\n createModifiedDate = aCreateModifiedDate;\n }", "public void setnCreated(int nCreated) {\r\n this.nCreated = nCreated;\r\n }", "Builder addDateCreated(String value);", "public ScGridColumn<AcFossWebServiceMessage> newCreatedUtcTsColumn()\n {\n return newCreatedUtcTsColumn(\"Created Utc Ts\");\n }", "public void xsetCreated(org.apache.xmlbeans.XmlDateTime created)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlDateTime target = null;\n target = (org.apache.xmlbeans.XmlDateTime)get_store().find_element_user(CREATED$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlDateTime)get_store().add_element_user(CREATED$0);\n }\n target.set(created);\n }\n }", "public void setCreatedTs(Date createdTs) {\n\t\tthis.createdTs = createdTs;\n\t}", "public void setnCreated(Integer nCreated) {\r\n this.nCreated = nCreated;\r\n }", "@Override\n\tpublic void setCreatedDate(java.util.Date CreatedDate) {\n\t\t_locMstLocation.setCreatedDate(CreatedDate);\n\t}", "@Override\n\tpublic void setCreateDate(Date createDate);", "@Override\n\tpublic void setCreateDate(Date createDate);", "public void setCreationDate(Date newCreationDate) {\n\t\tthis.creationDate = newCreationDate;\n\t}", "public void setCreationdate(Date creationdate) {\n this.creationdate = creationdate;\n }", "@Override\n\tpublic void setCreateDate(java.util.Date createDate) {\n\t\t_candidate.setCreateDate(createDate);\n\t}", "public void setDATE_CREATED(Date DATE_CREATED) {\r\n this.DATE_CREATED = DATE_CREATED;\r\n }", "public void setDATE_CREATED(Date DATE_CREATED) {\r\n this.DATE_CREATED = DATE_CREATED;\r\n }", "public void setDATE_CREATED(Date DATE_CREATED) {\r\n this.DATE_CREATED = DATE_CREATED;\r\n }", "public void setCreateDate(long newVal) {\n setCreateDate(new java.util.Date(newVal));\n }", "public void setCreatedDate(String createdDate) {\n this.createdDate = createdDate;\n }", "public void setCreated(java.util.Date created) {\n this.created = created;\n }", "public void setCreationDate(Date creationDate)\r\n {\r\n m_creationDate = creationDate;\r\n }", "public Timestamp getCreatedDate() {\n return createdDate;\n }", "public void setDateCreated(java.util.Date dateCreated) {\n this.dateCreated = dateCreated;\n }", "public void setCreateDate(Timestamp createDate) {\n this.createDate = createDate;\n }", "@Override\n protected String getCreationDate() {\n try {\n if (exists() && ((Node) item).hasProperty(JcrConstants.JCR_CREATED)) {\n long creationTime = ((Node) item).getProperty(JcrConstants.JCR_CREATED).getValue().getLong();\n return HttpDateFormat.creationDateFormat().format(new Date(creationTime));\n }\n } catch (RepositoryException e) {\n log.warn(\"Error while accessing jcr:created property\");\n }\n\n // fallback\n return super.getCreationDate();\n }", "@SuppressWarnings(\"JdkObsolete\")\n public void setCreated(Instant date) {\n this.created = Timestamp.from(date);\n }", "@Override\n protected void setGeneratedDateIfRequired(SscsCaseData sscsCaseData, EventType eventType) {\n if (eventType == EventType.WRITE_FINAL_DECISION) {\n sscsCaseData.getSscsFinalDecisionCaseData().setWriteFinalDecisionGeneratedDate(LocalDate.now().toString());\n }\n }", "public void setCreateTimestamp(Date createTimestamp) {\r\n this.createTimestamp = createTimestamp;\r\n }" ]
[ "0.55862164", "0.5464574", "0.5441327", "0.53787225", "0.53130245", "0.5306003", "0.5306003", "0.5306003", "0.5266379", "0.5237714", "0.5237381", "0.5237381", "0.5217589", "0.5209996", "0.5209169", "0.5197056", "0.5192103", "0.51637524", "0.51637524", "0.51637524", "0.51637524", "0.51568955", "0.5153613", "0.5141273", "0.51367635", "0.51367635", "0.51312816", "0.51312816", "0.51312816", "0.51087743", "0.51007664", "0.50920963", "0.50600505", "0.5057575", "0.5057575", "0.50565267", "0.5040077", "0.50397766", "0.5014354", "0.5008956", "0.49939892", "0.49725226", "0.49725226", "0.4963612", "0.49635044", "0.49612027", "0.49536836", "0.49341688", "0.49322566", "0.49260473", "0.49243817", "0.49209216", "0.49174336", "0.49126482", "0.49082705", "0.49082705", "0.49082705", "0.49045506", "0.48956096", "0.48855984", "0.4885466", "0.48826012", "0.48767516", "0.48752877", "0.48718318", "0.486932", "0.48680657", "0.4864434", "0.48536623", "0.48479903", "0.48337507", "0.48288938", "0.48288938", "0.48288938", "0.4821391", "0.48162538", "0.48071656", "0.48068088", "0.480173", "0.4794655", "0.4794136", "0.4793498", "0.4793498", "0.47932768", "0.47740096", "0.47714683", "0.4757667", "0.4757667", "0.4757667", "0.47471645", "0.47408167", "0.47382417", "0.47381204", "0.4730256", "0.4729109", "0.47234544", "0.4722623", "0.47079563", "0.47044668", "0.47011116" ]
0.5134097
26
This method was generated by MyBatis Generator. This method returns the value of the database column partner_contract_snapshots.updated
public Integer getUpdated() { return updated; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getUpdated() {\n return this.updated;\n }", "public String getUpdated() {\n return this.updated;\n }", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public java.util.Date getUpdated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_updated);\r\n }", "public java.util.Date getUpdated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_updated);\r\n }", "public java.util.Date getUpdated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_updated);\r\n }", "String getUpdated();", "public String getUpdated() {\n if(updated == null)\n return \"\";\n return updated.toString();\n }", "public Date getUpdated() {\n return updated;\n }", "public Date getUpdated() {\n return updated;\n }", "public int getUpdated() {\n return updated;\n }", "Date getDateUpdated();", "public Date getUpdated() {\r\n return updated;\r\n }", "public Date getUpdated() {\r\n return updated;\r\n }", "public Date getUpdated() {\n return updated;\n }", "public Date getUpdated() {\n return updated;\n }", "public Date getDATE_UPDATED() {\r\n return DATE_UPDATED;\r\n }", "public Date getDATE_UPDATED() {\r\n return DATE_UPDATED;\r\n }", "long getUpdated();", "public Date getUpdated() {\r\n\t\treturn updated;\r\n\t}", "public java.lang.Long getUpdated() {\n return updated;\n }", "public java.lang.Long getUpdated() {\n return updated;\n }", "public Date getUpdatedDate() {\n return updatedDate;\n }", "public Date getUpdatedOn();", "public Date getUpdated() {\n return mUpdated;\n }", "public OffsetDateTime updatedDateTime() {\n return this.innerProperties() == null ? null : this.innerProperties().updatedDateTime();\n }", "Date getUpdatedDate();", "public Timestamp getUpdateddate() {\n return (Timestamp)getAttributeInternal(UPDATEDDATE);\n }", "@Basic( optional = false )\r\n\t@Column( name = \"updated_date\", nullable = false )\r\n\tpublic Date getUpdatedDate() {\r\n\t\treturn this.updatedDate;\r\n\t\t\r\n\t}", "public String getUpdatedId()\r\n {\r\n return updatedId;\r\n }", "@Schema(description = \"The datetime on which the worklog was last updated.\")\n public OffsetDateTime getUpdated() {\n return updated;\n }", "public java.sql.Timestamp getModified() {\n return modified;\n }", "public String getIndividualDropboxChangeSql() \r\n \t{\r\n \t\treturn \"select LAST_UPDATE from CONTENT_DROPBOX_CHANGES where (DROPBOX_ID = ?)\";\r\n \t}", "public Timestamp getUpdateDate() {\n return updateDate;\n }", "public Long getUpdatedAt() {\n return updatedAt;\n }", "public java.sql.Timestamp getModified() {\n\treturn modified;\n}", "public Date getUpdatedDate() {\n return (Date) getAttributeInternal(UPDATEDDATE);\n }", "public DateTime getUpdatedDateTime() {\n return updatedDateTime;\n }", "public java.util.Date getDateUpdated() {\n return dateUpdated;\n }", "public Date getUpdatedAt() {\r\n return updatedAt;\r\n }", "public Date getUpdatedAt() {\r\n return updatedAt;\r\n }", "public Date getUpdatedAt() {\r\n return updatedAt;\r\n }", "public Date getDateUpdated() {\n\t\treturn parseDate(getProperty(DATE_UPDATED_PROPERTY));\n\t}", "@ApiModelProperty(required = true, value = \"last update timestamp in ISO-8601 format, see http://en.wikipedia.org/wiki/ISO_8601\")\n @JsonProperty(\"updated\")\n public Date getUpdated() {\n return updated;\n }", "@Schema(example = \"1592180992\", required = true, description = \"Time when labeling information was last changed (timestamp)\")\n public Long getUpdatedAt() {\n return updatedAt;\n }", "public Long getUpdateAt() {\n return updateAt;\n }", "public Date getUpdatedate() {\r\n return updatedate;\r\n }", "@JsonIgnore\n\tpublic Date getLatestUpdate()\n\t{\n\t\treturn latestUpdate;\n\t}", "public String getUpdateDate() {\r\n return updateDate;\r\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "@JsonIgnore\n @DynamoDBAttribute(attributeName=\"updatedAt\")\n public Long getUpdatedAtDD() {\n return getUpdatedAt() == null ? null : getUpdatedAt().getTime();\n }", "public ZonedDateTime getUpdatedDateTime() {\n return updatedDateTime;\n }", "public Date getUpdatedate() {\n return updatedate;\n }", "public Date getUpdatedate() {\n return updatedate;\n }", "public String getUpdatedCode() {\n\t\treturn updatedCode;\n\t}", "public OffsetDateTime updatedAt() {\n return this.updatedAt;\n }", "public Date getUpdatedAt() {\r\n\t\treturn updatedAt;\r\n\t}", "public long getUpdate();", "public Date getUpdatedDt() {\n\t\treturn updatedDt;\n\t}", "public DateTime getUpdatedTimestamp() {\n\t\treturn this.updatedTimestamp;\n\t}", "public Date getUpdatedAt() {\n\t\treturn updatedAt;\n\t}", "public String getUpdateVersion() {\n return updateVersion;\n }", "public DateTime getUpdatedTimestamp() {\n\t\treturn getDateTime(\"sys_updated_on\");\n\t}", "public Long getUpdateDatetime() {\n return updateDatetime;\n }", "public DateTime updatedAt() {\n return this.updatedAt;\n }", "public Date getUpdatedAt() {\n return (Date)getAttributeInternal(UPDATEDAT);\n }", "public Date getUpdatedAt() {\n return (Date)getAttributeInternal(UPDATEDAT);\n }", "public long getDateRecordLastUpdated(){\n return dateRecordLastUpdated;\n }", "public Date getUpdateDate() {\n return updateDate;\n }", "public Date getUpdateDate() {\n return updateDate;\n }", "public Date getUpdateDate() {\n return updateDate;\n }", "public Date getUpdateDate() {\n return updateDate;\n }", "public Date getUpdateDate() {\n return updateDate;\n }", "public Date getUpdateDate() {\n return updateDate;\n }", "public Date getUpdateDate() {\n return updateDate;\n }", "public Date getUpdateDate() {\n return updateDate;\n }", "public Date getUpdateDate() {\n return updateDate;\n }", "public Date getUpdateDate() {\n return updateDate;\n }", "@JsonProperty(\"updated_at\")\n public Date getUpdatedAt() {\n return updatedAt;\n }", "public java.util.Calendar getUpdatedDate() {\n return updatedDate;\n }", "public Date getUpdateDate() {\r\n return updateDate;\r\n }", "public final boolean getIsRowUpdated() {\n return isRowUpdated_;\n }" ]
[ "0.61391485", "0.61391485", "0.6130677", "0.6130677", "0.6130677", "0.6130677", "0.6130677", "0.6130677", "0.6130677", "0.6130677", "0.6130677", "0.6130677", "0.6130677", "0.6130677", "0.6130677", "0.6062414", "0.6062414", "0.6062414", "0.6007013", "0.5921204", "0.5886541", "0.5886541", "0.58828443", "0.58574164", "0.5853578", "0.5853578", "0.5827164", "0.5827164", "0.5774507", "0.5774507", "0.5756577", "0.574551", "0.57119524", "0.56618404", "0.5658818", "0.56521773", "0.56111985", "0.56042194", "0.55974454", "0.55853397", "0.5576342", "0.5527538", "0.54929084", "0.54772705", "0.54731405", "0.5463853", "0.54624426", "0.544523", "0.54330015", "0.5430465", "0.54083055", "0.54054224", "0.54054224", "0.54054224", "0.5403593", "0.54017824", "0.5396024", "0.5395974", "0.53949857", "0.5394911", "0.5369801", "0.5362239", "0.5362239", "0.5362239", "0.5362239", "0.5362239", "0.5362239", "0.5362239", "0.5353019", "0.5350015", "0.5337327", "0.5337327", "0.5327088", "0.53111565", "0.531016", "0.5306044", "0.53042006", "0.53014386", "0.5270043", "0.5258324", "0.52547413", "0.5251623", "0.5251232", "0.52283454", "0.52283454", "0.5227775", "0.5223264", "0.5223264", "0.5223264", "0.5223264", "0.5223264", "0.5223264", "0.5223264", "0.5223264", "0.5223264", "0.5223264", "0.5217475", "0.521146", "0.5210348", "0.520697" ]
0.5957424
19
This method was generated by MyBatis Generator. This method sets the value of the database column partner_contract_snapshots.updated
public void setUpdated(Integer updated) { this.updated = updated; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@PreUpdate\r\n void updatedAt() {\r\n setDateRecordUpdated();\r\n }", "public void setUpdated(Date updated) {\r\n this.updated = updated;\r\n }", "public void setUpdated(Date updated) {\r\n this.updated = updated;\r\n }", "public void setUpdated(Date updated) {\n this.updated = updated;\n }", "public void setUpdated(Date updated) {\n this.updated = updated;\n }", "void setUpdatedDate(Date updatedDate);", "public void setUpdated(Date updated) {\r\n\t\tthis.updated = updated;\r\n\t}", "void setDateUpdated(final Date dateUpdated);", "public void setUpdatedOn(Date updatedOn);", "@PreUpdate\n\tprotected void onUpdate() {\n\t\tupdated = new Date();\n\t\trcaCase.updated = updated;\n\t}", "@PreUpdate\n private void beforeUpdate() {\n updatedDate = new Date();\n }", "public void setUpdated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_updated, value);\r\n }", "public void setUpdated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_updated, value);\r\n }", "public void setUpdated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_updated, value);\r\n }", "public void setUpdatedDateUtc(String updatedDateUtc) {\n this.updatedDateUtc = updatedDateUtc;\n }", "public void setDATE_UPDATED(Date DATE_UPDATED) {\r\n this.DATE_UPDATED = DATE_UPDATED;\r\n }", "public void setDATE_UPDATED(Date DATE_UPDATED) {\r\n this.DATE_UPDATED = DATE_UPDATED;\r\n }", "public void setUpdatedDate(Date date) {\n\t\tthis.updatedDate=date;\r\n\t}", "public void setUpdatedon( Date updatedon )\n {\n this.updatedon = updatedon;\n }", "public void setUpdatedate(Date updatedate) {\r\n this.updatedate = updatedate;\r\n }", "Snapshot.Update update();", "@Override\r\n protected void updateCI(RepositoryAction action, boolean preview)\r\n throws DataFormatException, IOException, SQLException, IllegalArgumentException {\r\n action.assertHasProperty(OLD_VALUE);\r\n action.assertHasProperty(NEW_VALUE);\r\n\r\n String newValue = action.getProperties().get(\"newValue\");\r\n int cnt = 0;\r\n\r\n if (!preview) {\r\n\r\n String sql = lookupSql(action, preview);\r\n /*\r\n * update CI for XLR requires a select which returns a result set then for each,\r\n * get content blob, modify content blob then update the record with new ci type\r\n * and modified content blob\r\n */\r\n\r\n ResultSet result = null;\r\n String[] stringArray = createSqlArray(sql);\r\n NamedParamStatement pstmtSelect = null;\r\n PreparedStatement secondPstmtUpdate = null;\r\n Boolean origCommitState = dbconn.getAutoCommit();\r\n\r\n // ensure we have two sql statments\r\n // We expect the first statement to be the select and\r\n // the second statement is the update\r\n if (stringArray != null && stringArray.length == 2) {\r\n try {\r\n // Turn autocommit off\r\n dbconn.setAutoCommit(false);\r\n\r\n pstmtSelect = new NamedParamStatement(this.dbconn, stringArray[0]);\r\n pstmtSelect = populateNamedParamStmt(action, pstmtSelect);\r\n result = pstmtSelect.executeQuery();\r\n if (result != null) {\r\n while (result.next()) {\r\n int ci_uid = result.getInt(\"ci_uid\");\r\n\r\n byte [] currentBytes = null;\r\n\r\n if (dbType == DbType.POSTGRESQL){\r\n currentBytes = result.getBytes(\"content\");\r\n }\r\n else {\r\n Blob blobContent = result.getBlob(\"content\");\r\n currentBytes = convertBlobToByteArray(blobContent);\r\n }\r\n \r\n String blobString = new String(CompressionUtils.decompress(currentBytes));\r\n // Now, update blob\r\n String updatedBlobString = updateBlob(blobString, \"type\", newValue);\r\n\r\n //System.out.println(\"******BEGIN - this is the updated content blob for xlr - update ci\");\r\n //System.out.println(updatedBlobString);\r\n \r\n byte[] newByteArray = CompressionUtils.compress(updatedBlobString.getBytes());\r\n\r\n secondPstmtUpdate = dbconn.prepareStatement(stringArray[1]);\r\n secondPstmtUpdate.setString(1, action.getProperties().get(\"newValue\"));\r\n\r\n if (dbType == DbType.POSTGRESQL){\r\n secondPstmtUpdate.setBytes(2, newByteArray);\r\n }\r\n else {\r\n Blob blobFromBytes = dbconn.createBlob();\r\n int numWritten = blobFromBytes.setBytes(1, newByteArray);\r\n //System.out.println(\"******END - numWritten to blob = \"+numWritten+\", size = \"+blobFromBytes.length()+\", this is the updated content blob for xlr - update task\");\r\n // old way Blob blobFromBytes = new javax.sql.rowset.serial.SerialBlob(newByteArray); \r\n secondPstmtUpdate.setBlob(2, blobFromBytes); \r\n }\r\n\r\n secondPstmtUpdate.setInt(3, ci_uid);\r\n\r\n cnt = secondPstmtUpdate.executeUpdate();\r\n }\r\n\r\n } else {\r\n os.println(String.format(\"\\n%sUpdate CI from %s to %s. 0 row(s) altered. %s\",\r\n (preview ? \"[PREVIEW] \" : \"\"), action.getProperties().get(OLD_VALUE),\r\n action.getProperties().get(NEW_VALUE), \"No records found to update.\"));\r\n }\r\n\r\n // successfully reached the end, so commit\r\n //os.println(\"About to commit the database transaction.\");\r\n dbconn.commit();\r\n os.println(String.format(\"\\n%sUpdate CI from %s to %s. %d row(s) altered.\", (preview ? \"[PREVIEW] \" : \"\"),\r\n action.getProperties().get(OLD_VALUE), action.getProperties().get(\"newValue\"), cnt));\r\n if(cnt>0 && action.getMessage() != null && !action.getMessage().isEmpty()){\r\n os.println(\"\\tAttention: \"+action.getMessage());\r\n }\r\n } catch (SQLException se){\r\n dbconn.rollback();\r\n os.println(\"\\nERROR: SQLExecption thrown, so database transcaction has been rolled back.\");\r\n throw se; \r\n } finally {\r\n try {\r\n if(dbconn != null) dbconn.setAutoCommit(origCommitState);\r\n if (result != null) result.close();\r\n if (secondPstmtUpdate != null) secondPstmtUpdate.close();\r\n if (pstmtSelect != null) pstmtSelect.close();\r\n } catch (Exception e) {\r\n }\r\n }\r\n\r\n } else {\r\n throw new IllegalArgumentException(\r\n \"updateCI mapping must contain two SQL statements, a SELECT and an UPDATE.\");\r\n }\r\n\r\n } else {\r\n // perform preview action\r\n cnt = processAction(action, preview);\r\n os.println(String.format(\"\\n%sUpdate CI from %s to %s. %d row(s) altered.\", (preview ? \"[PREVIEW] \" : \"\"),\r\n action.getProperties().get(OLD_VALUE), action.getProperties().get(\"newValue\"), cnt));\r\n \r\n }\r\n }", "public void setUpdatedate(Date updatedate) {\n this.updatedate = updatedate;\n }", "public void setUpdatedate(Date updatedate) {\n this.updatedate = updatedate;\n }", "public void setUpdatedDate(java.util.Calendar updatedDate) {\n this.updatedDate = updatedDate;\n }", "public final void setIsRowUpdated(boolean isRowUpdated) {\n isRowUpdated_ = isRowUpdated;\n }", "public void setUpdatedDateTime(ZonedDateTime updatedDateTime) {\n this.updatedDateTime = updatedDateTime;\n }", "public void setCateUpdated(Date cateUpdated) {\n this.cateUpdated = cateUpdated;\n }", "Date getDateUpdated();", "public void aChanged()\r\n throws OpbDataAccessException {\r\n final String methodName = \"aChanged()\";\r\n\r\n logger.entering(CLASS_NAME, methodName);\r\n\r\n final OpbPlsqlCallHelper opbCallHelper = new OpbPlsqlCallHelper(\r\n logger, CLASS_NAME, methodName,\r\n opbConnectionProvider,\r\n \"BEGIN fields.a_changed(); END;\");\r\n\r\n opbCallHelper.execute();\r\n\r\n opbCallHelper.callComplete();\r\n\r\n logger.exiting(CLASS_NAME, methodName);\r\n\r\n }", "public void setUpdatedDateTime(DateTime updatedDateTime) {\n this.updatedDateTime = updatedDateTime;\n }", "public void setUpdatedDate(final Date updatedDate) {\r\n\t\tthis.updatedDate = updatedDate;\r\n\t}", "public void setModified(java.sql.Timestamp newValue) {\n\tthis.modified = newValue;\n}", "public Date getUpdatedDate() {\n return updatedDate;\n }", "public Date getDATE_UPDATED() {\r\n return DATE_UPDATED;\r\n }", "public Date getDATE_UPDATED() {\r\n return DATE_UPDATED;\r\n }", "@Basic( optional = false )\r\n\t@Column( name = \"updated_date\", nullable = false )\r\n\tpublic Date getUpdatedDate() {\r\n\t\treturn this.updatedDate;\r\n\t\t\r\n\t}", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas)\")\n\n public String getUpdateRevision() {\n return updateRevision;\n }", "public void setUpdatedDt(Date updatedDt) {\n\t\tthis.updatedDt = updatedDt;\n\t}", "public void setUpdated(java.lang.Long value) {\n this.updated = value;\n }", "@JsonProperty(\"updated_at\")\n public void setUpdatedAt(Date updatedAt) {\n this.updatedAt = updatedAt;\n }", "public synchronized final void setUpdated(boolean sts) {\n\t\tsetFlag(Updated, sts);\n\t}", "public void setUpdateDate(Date updateDate) {\r\n this.updateDate = updateDate;\r\n }", "protected void repositoryMetadataChanged() {\n }", "public Date getUpdated() {\n return updated;\n }", "public Date getUpdated() {\n return updated;\n }", "public OffsetDateTime updatedDateTime() {\n return this.innerProperties() == null ? null : this.innerProperties().updatedDateTime();\n }", "public String getUpdated() {\n return this.updated;\n }", "public String getUpdated() {\n return this.updated;\n }", "public void setUpdatedAt(Date updatedAt) {\r\n this.updatedAt = updatedAt;\r\n }", "public void setUpdatedAt(Date updatedAt) {\r\n this.updatedAt = updatedAt;\r\n }", "public void setUpdatedAt(Date updatedAt) {\r\n this.updatedAt = updatedAt;\r\n }", "public void willbeUpdated() {\n\t\t\n\t}", "public void setModified(Date v) \n {\n \n if (!ObjectUtils.equals(this.modified, v))\n {\n this.modified = v;\n setModified(true);\n }\n \n \n }", "public Date getUpdated() {\r\n return updated;\r\n }", "public Date getUpdated() {\r\n return updated;\r\n }", "public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }", "public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }", "public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }", "public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }", "public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }", "public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }", "public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }", "public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }", "public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }", "public void setUpdateDate(String updateDate) {\r\n this.updateDate = updateDate;\r\n }", "public void setUpdateDate( Date updateDate ) {\n this.updateDate = updateDate;\n }", "public void setUpdateDate( Date updateDate ) {\n this.updateDate = updateDate;\n }", "@Element(required = false)\n\tpublic void setDateChanged(Date dateChanged) {\n\t\tthis.dateChanged = dateChanged;\n\t}", "public void setDateUpdated(java.util.Date dateUpdated) {\n this.dateUpdated = dateUpdated;\n }", "@Update({\n \"update SWMS_stock_out_record_detail\",\n \"set stock_out_record_id = #{stockOutRecordId,jdbcType=BIGINT},\",\n \"stock_out_record_head_id = #{stockOutRecordHeadId,jdbcType=BIGINT},\",\n \"stock_out_record_head_code = #{stockOutRecordHeadCode,jdbcType=BIGINT},\",\n \"group_name = #{groupName,jdbcType=VARCHAR},\",\n \"stock_in_record_account_id = #{stockInRecordAccountId,jdbcType=BIGINT},\",\n \"material_code = #{materialCode,jdbcType=VARCHAR},\",\n \"material_batch = #{materialBatch,jdbcType=VARCHAR},\",\n \"material_type_id = #{materialTypeId,jdbcType=INTEGER},\",\n \"material_sub_type_id = #{materialSubTypeId,jdbcType=INTEGER},\",\n \"material_workshop_id = #{materialWorkshopId,jdbcType=INTEGER},\",\n \"material_name_code = #{materialNameCode,jdbcType=INTEGER},\",\n \"material_supplier_code = #{materialSupplierCode,jdbcType=INTEGER},\",\n \"material_name = #{materialName,jdbcType=VARCHAR},\",\n \"bag_num = #{bagNum,jdbcType=INTEGER},\",\n \"weight = #{weight,jdbcType=REAL},\",\n \"measure_unit = #{measureUnit,jdbcType=VARCHAR},\",\n \"created_time = #{createdTime,jdbcType=TIMESTAMP},\",\n \"completion_flag = #{completionFlag,jdbcType=BIT}\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n int updateByPrimaryKey(SwmsStockOutRecordDetail record);", "public void updateDateModified() {\n dateModified = DateTime.now();\n }", "public void setUpdatedAt(Date updatedAt) {\r\n\t\tthis.updatedAt = updatedAt;\r\n\t}", "public void setSnapshot(Snapshot snapshot) {\n m_table.getEntry(\"snapshot\").setValue(snapshot.getValue());\n }", "public void setUpdatedAt( Date updatedAt ) {\n this.updatedAt = updatedAt;\n }", "public void setUpdateDate(Timestamp updateDate) {\n this.updateDate = updateDate;\n }", "@Update(\n \"UPDATE \" + ServeInfoSqlProvider.TABLE_NAME +\n \" SET owner_id = #{ownerId} \" +\n \" WHERE id = #{serveId}\"\n )\n int changeServeOwner(@Param(\"serveId\") Long serveId, @Param(\"ownerId\") Long ownerId);", "public Date getUpdated() {\n return updated;\n }", "public Date getUpdated() {\n return updated;\n }", "public Date getUpdatedOn();", "public FileObject updatedDateUtc(String updatedDateUtc) {\n this.updatedDateUtc = updatedDateUtc;\n return this;\n }", "public String getUpdateIndividualDropboxChangeSql() \r\n \t{\r\n \t\treturn \"update CONTENT_DROPBOX_CHANGES set (IN_COLLECTION = ?, LAST_UPDATE = ?) where (DROPBOX_ID = ?)\";\r\n \t}", "@PreUpdate\n public void preUpdate() {\n updatedOn = LocalDateTime.now();\n updatedBy = ApplicationUtils.getUserName();\n }", "public void setUpdatedAt(Date value) {\n setAttributeInternal(UPDATEDAT, value);\n }", "public void setUpdatedAt(Date value) {\n setAttributeInternal(UPDATEDAT, value);\n }", "@ApiModelProperty(example = \"2020-12-03T19:04:58.6970000\", value = \"Updated date in UTC\")\n /**\n * Updated date in UTC\n *\n * @return updatedDateUtc String\n */\n public String getUpdatedDateUtc() {\n return updatedDateUtc;\n }", "@Override\n\tpublic Long updateEndDate() {\n\t\treturn null;\n\t}" ]
[ "0.5611454", "0.55922276", "0.55922276", "0.5517683", "0.5517683", "0.5410703", "0.54087126", "0.5368337", "0.53500706", "0.53425866", "0.52388376", "0.5162543", "0.5162543", "0.5162543", "0.51182765", "0.5100034", "0.5100034", "0.50188446", "0.49910504", "0.49356562", "0.49087152", "0.48364532", "0.48342103", "0.48342103", "0.4831789", "0.48048937", "0.47857705", "0.47750306", "0.47643727", "0.47632718", "0.47631302", "0.47555953", "0.47408125", "0.47397038", "0.4733302", "0.4733302", "0.47218513", "0.4721459", "0.4721459", "0.4721459", "0.4721459", "0.4721459", "0.4721459", "0.4721459", "0.4721459", "0.4721459", "0.4721459", "0.4721459", "0.4721459", "0.4721459", "0.4710496", "0.4707029", "0.4704131", "0.47039482", "0.46945676", "0.46878386", "0.468681", "0.4679563", "0.4679563", "0.46645835", "0.46627054", "0.46627054", "0.4662693", "0.4662693", "0.4662693", "0.46552962", "0.4653985", "0.4645575", "0.4645575", "0.46449485", "0.46449485", "0.46449485", "0.46449485", "0.46449485", "0.46449485", "0.46449485", "0.46449485", "0.46449485", "0.46406743", "0.46322262", "0.46322262", "0.46212396", "0.46202976", "0.46201473", "0.4618251", "0.46155977", "0.46140543", "0.4612266", "0.4603621", "0.45981154", "0.4595154", "0.4595154", "0.45921984", "0.45839614", "0.45824718", "0.45810118", "0.45720372", "0.45720372", "0.4571904", "0.4563927" ]
0.5257174
10
This method was generated by MyBatis Generator. This method returns the value of the database column partner_contract_snapshots.is_deleted
public Byte getIsDeleted() { return isDeleted; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getIsdeleted() {\n return isdeleted;\n }", "public java.lang.Boolean getDeleted();", "public Integer getIsDeleted() {\n return isDeleted;\n }", "public Byte getIsDeleted() {\n return isDeleted;\n }", "public Byte getIsDeleted() {\n return isDeleted;\n }", "public String getIsDeleted() {\n return isDeleted;\n }", "public String getIsDeleted() {\n return isDeleted;\n }", "public Boolean getDeleted() {\n return deleted;\n }", "public Boolean getIsDeleted() {\r\n return isDeleted;\r\n }", "public Boolean getIsDeleted() {\n return isDeleted;\n }", "public Boolean getDeleted() {\n return deleted;\n }", "public Boolean getDeleted() {\n return deleted;\n }", "public Boolean getDeleted() {\n return deleted;\n }", "public Boolean getDeleted() {\n return deleted;\n }", "public Integer getIsDeleted() {\r\n\t\treturn isDeleted;\r\n\t}", "public Long deleted() {\n return this.deleted;\n }", "public boolean getDeleted() {\n return deleted;\n }", "public Boolean getDeleted() {\r\n\t\treturn deleted;\r\n\t}", "public Integer getDeleted() {\n return deleted;\n }", "@java.lang.Override\n public boolean getDeleted() {\n return deleted_;\n }", "public boolean isDeleted()\r\n {\r\n return getSemanticObject().getBooleanProperty(swb_deleted);\r\n }", "public boolean isDeleted();", "public String getIsDeleted() {\n\t\treturn isDeleted;\n\t}", "@java.lang.Override\n public boolean getDeleted() {\n return deleted_;\n }", "public boolean isDeleted() {\r\n\treturn isDeleted;\r\n}", "@ApiModelProperty(value = \"True if campaign/flow has been archived\")\r\n public Boolean isDeleted() {\r\n return deleted;\r\n }", "public Boolean getDeleted() {\n return mDeleted;\n }", "boolean isDeleted();", "public Boolean getIsDeleted() {\n\t\treturn isDeleted;\n\t}", "public Byte getDeleted() {\n return deleted;\n }", "public java.lang.Boolean getIsDeleted() {\r\n return isDeleted;\r\n }", "@DISPID(75)\r\n\t// = 0x4b. The runtime will prefer the VTID if present\r\n\t@VTID(80)\r\n\tboolean isDeleted();", "public Boolean isDeleted() {\n\t\treturn this.deleted;\n\t\t\n\t}", "public boolean getDeleted() {\n\t\treturn _primarySchoolStudent.getDeleted();\n\t}", "public boolean isDeleted()\r\n\t{\r\n\t\treturn deletedFlag;\r\n\t}", "public Boolean getDeleted() throws NotLoadedException {\n return deleted.getValue();\n }", "@Override\n \t\t\t\tpublic boolean isDeleted() {\n \t\t\t\t\treturn false;\n \t\t\t\t}", "@DISPID(13)\n\t// = 0xd. The runtime will prefer the VTID if present\n\t@VTID(23)\n\tboolean deleted();", "public boolean isIsDeleted() {\n return isDeleted;\n }", "public boolean isDeleted() {\n return deleted;\n }", "@Override\n\tpublic int getIsDelete() {\n\t\treturn _dmGtStatus.getIsDelete();\n\t}", "@IcalProperty(pindex = PropertyInfoIndex.DELETED)\n public void setDeleted(final boolean val) {\n deleted = val;\n }", "public boolean isDeleted() {\n return deleted != null;\n }", "@ApiModelProperty(value = \"True if this gift certificate was deleted.\")\n public Boolean isDeleted() {\n return deleted;\n }", "public int getIsDelete() {\n\t\treturn _dmHistoryMaritime.getIsDelete();\n\t}", "public boolean isDeleted() {\n\t\treturn deleted;\n\t}", "public Criteria andLogicalDeleted(boolean deleted) {\n return deleted ? andDeletedEqualTo(YoungSeckillPromotionProductRelation.IS_DELETED) : andDeletedNotEqualTo(YoungSeckillPromotionProductRelation.IS_DELETED);\n }", "public Criteria andLogicalDeleted(boolean deleted) {\n return deleted ? andDeletedEqualTo(BDicTreeCode.IS_DELETED) : andDeletedNotEqualTo(BDicTreeCode.IS_DELETED);\n }", "public Byte getIsDelete() {\n return isDelete;\n }", "public Byte getIsDelete() {\n return isDelete;\n }", "public void setDeleted(boolean deleted);", "protected boolean deleted() {\n if (state.isSynced()) {\n this.state.setState(ENodeState.Deleted);\n return true;\n } else if (state.isUpdated()) {\n this.state.setState(ENodeState.Deleted);\n return true;\n }\n return false;\n }", "public Integer getIsdelete() {\n return isdelete;\n }", "public Integer getDeleteflag() {\n return deleteflag;\n }", "public boolean isDeleted() {\n return (this == RecordStatusEnum.DELETED);\n }", "public void setIsdeleted( Boolean isdeleted )\n {\n this.isdeleted = isdeleted;\n }", "public Integer getIsdelete() {\r\n return isdelete;\r\n }", "public boolean isDeleted() {\n\t\treturn getStatus() == STATUS_DELETED;\n\t}", "public void setDeleted(boolean deleted) {\n this.deleted = deleted;\n }", "@Column(name = \"isDelete\")\r\n\tpublic Boolean getIsDelete() {\r\n\t\treturn this.isDelete;\r\n\t}", "public void setDeleted(Boolean deleted) {\n this.deleted = deleted;\n }", "public void setDeleted(Boolean deleted) {\n this.deleted = deleted;\n }", "public void setDeleted(Boolean deleted) {\n this.deleted = deleted;\n }", "public void setDeleted(Boolean deleted) {\n this.deleted = deleted;\n }", "public void setDeleted(Boolean deleted) {\n this.deleted = deleted;\n }", "public Criteria andLogicalDeleted(boolean deleted) {\n return deleted ? andDeletedEqualTo(SaleClassifyGood.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(SaleClassifyGood.Deleted.IS_DELETED.value());\n }", "public void setIsdeleted(Integer isdeleted) {\n this.isdeleted = isdeleted;\n }", "public DateTime deletedAt() {\n return this.deletedAt;\n }", "public String getDeleteStatus() {\n return deleteStatus;\n }", "public Boolean getIsdelete() {\r\n return isdelete;\r\n }", "public String getIs_delete() {\n return is_delete;\n }", "public void setDeleted(Boolean deleted) {\r\n\t\tthis.deleted = deleted;\r\n\t}", "public void setIsDeleted(Byte isDeleted) {\n this.isDeleted = isDeleted;\n }", "public void setIsDeleted(Byte isDeleted) {\n this.isDeleted = isDeleted;\n }", "public void setDeleted(java.lang.Boolean deleted);", "io.dstore.values.BooleanValue getDeleteCampaign();", "public void setIsDeleted(Byte isDeleted) {\r\n this.isDeleted = isDeleted;\r\n }", "public Integer getIsdelete() {\n\t\treturn isdelete;\n\t}", "@Override\n\tpublic int getIsDelete() {\n\t\treturn _dmGTShipPosition.getIsDelete();\n\t}", "public Date getDeletedAt() {\n return deletedAt;\n }", "public void setIsDeleted(Integer isDeleted) {\n this.isDeleted = isDeleted;\n }", "public void setIsDeleted(Boolean isDeleted) {\r\n this.isDeleted = isDeleted;\r\n }", "public DateTime getDeletionTime() {\n return deleted;\n }", "public void setIsDeleted(String isDeleted) {\n this.isDeleted = isDeleted;\n }", "public Criteria andLogicalDeleted(boolean deleted) {\n return deleted ? andDeletedEqualTo(LitemallOrder.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallOrder.Deleted.IS_DELETED.value());\n }", "public void setDeleted(boolean deleted) {\n\t\tthis.deleted = deleted;\n\t}", "public void setIsDeleted(Boolean isDeleted) {\n this.isDeleted = isDeleted;\n }", "public String getIsdelete() {\n return isdelete;\n }", "public String getIsdelete() {\n return isdelete;\n }", "public String getDeleteFlag() {\r\n return deleteFlag;\r\n }", "public String getDeleteFlag() {\n return deleteFlag;\n }", "public void setIsDeleted(Integer isDeleted) {\r\n\t\tthis.isDeleted = isDeleted;\r\n\t}", "public Byte getDeleteFlag() {\n return deleteFlag;\n }", "abstract public boolean isDeleted(int n);", "public void setIsDeleted(boolean isDeleted) {\n this.isDeleted = isDeleted;\n }", "public boolean getDelete() {\n\t\t\treturn delete.get();\n\t\t}", "@DISPID(13)\n\t// = 0xd. The runtime will prefer the VTID if present\n\t@VTID(24)\n\tvoid deleted(boolean pVal);", "public io.dstore.values.BooleanValueOrBuilder getDeleteCharacteristicOrBuilder() {\n return getDeleteCharacteristic();\n }", "public boolean getDelete() {\n\t\treturn delete;\n\t}", "public boolean isDeleted() {\n\t\treturn _primarySchoolStudent.isDeleted();\n\t}" ]
[ "0.6752885", "0.65955377", "0.657647", "0.65241224", "0.65241224", "0.64363736", "0.64363736", "0.6393992", "0.6390363", "0.63571024", "0.6329126", "0.6329126", "0.6329126", "0.6329126", "0.63030016", "0.62491333", "0.62439996", "0.62307847", "0.62015384", "0.61857086", "0.61442864", "0.6135297", "0.6135191", "0.6107768", "0.61067265", "0.60988283", "0.60965616", "0.60551", "0.6040495", "0.6031008", "0.6014388", "0.5925919", "0.59100944", "0.59090513", "0.58795726", "0.5874596", "0.5873278", "0.5861797", "0.58468246", "0.57981586", "0.5794976", "0.57650065", "0.57248163", "0.5686605", "0.5618862", "0.5616707", "0.56127864", "0.55948716", "0.55882925", "0.55882925", "0.5584617", "0.55826473", "0.5564205", "0.5562429", "0.5547921", "0.5542112", "0.553904", "0.5526133", "0.5503921", "0.5484463", "0.54761755", "0.54761755", "0.54761755", "0.54761755", "0.54761755", "0.5465597", "0.5450596", "0.54416114", "0.54408944", "0.54235315", "0.5419626", "0.5413308", "0.54113007", "0.54113007", "0.54094017", "0.5405785", "0.5405437", "0.54041755", "0.54023856", "0.540126", "0.53772885", "0.53708917", "0.5358996", "0.5353893", "0.5348942", "0.53436875", "0.53346205", "0.5332589", "0.5332589", "0.53266966", "0.5316301", "0.5312421", "0.530469", "0.5302993", "0.5287121", "0.5277729", "0.5269691", "0.525984", "0.5254834", "0.524842" ]
0.65002894
5
This method was generated by MyBatis Generator. This method sets the value of the database column partner_contract_snapshots.is_deleted
public void setIsDeleted(Byte isDeleted) { this.isDeleted = isDeleted; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@IcalProperty(pindex = PropertyInfoIndex.DELETED)\n public void setDeleted(final boolean val) {\n deleted = val;\n }", "public void setIsdeleted( Boolean isdeleted )\n {\n this.isdeleted = isdeleted;\n }", "public void setDeleted(boolean deleted);", "public void setDeleted(java.lang.Boolean deleted);", "public void setIsdeleted(Integer isdeleted) {\n this.isdeleted = isdeleted;\n }", "public void setIsDeleted(Boolean isDeleted) {\r\n this.isDeleted = isDeleted;\r\n }", "public void setDeleted(Boolean deleted) {\n this.deleted = deleted;\n }", "public void setDeleted(Boolean deleted) {\n this.deleted = deleted;\n }", "public void setDeleted(Boolean deleted) {\n this.deleted = deleted;\n }", "public void setDeleted(Boolean deleted) {\n this.deleted = deleted;\n }", "public void setDeleted(Boolean deleted) {\n this.deleted = deleted;\n }", "public void setIsDeleted(Byte isDeleted) {\n this.isDeleted = isDeleted;\n }", "public void setIsDeleted(Byte isDeleted) {\n this.isDeleted = isDeleted;\n }", "public void setIsDeleted(Boolean isDeleted) {\n this.isDeleted = isDeleted;\n }", "public void setIsDeleted(Integer isDeleted) {\n this.isDeleted = isDeleted;\n }", "public void setDeleted(boolean deleted) {\n this.deleted = deleted;\n }", "public void setIsDeleted(boolean isDeleted) {\n this.isDeleted = isDeleted;\n }", "public void setIsDeleted(String isDeleted) {\n this.isDeleted = isDeleted;\n }", "public void setDeleted(Boolean deleted) {\r\n\t\tthis.deleted = deleted;\r\n\t}", "public void setIsDeleted(Integer isDeleted) {\r\n\t\tthis.isDeleted = isDeleted;\r\n\t}", "public void setIsDeleted(java.lang.Boolean isDeleted) {\r\n this.isDeleted = isDeleted;\r\n }", "public void setIsDeleted(Boolean isDeleted) {\n\t\tthis.isDeleted = isDeleted;\n\t}", "public void setDeleted();", "public void setDeleted(boolean deleted) {\n\t\tthis.deleted = deleted;\n\t}", "public void setIsDeleted(String isDeleted) {\n\t\tthis.isDeleted = isDeleted;\n\t}", "public void setDeleted(boolean deleted) {\n\t\t_primarySchoolStudent.setDeleted(deleted);\n\t}", "public void setDeleted(boolean value)\r\n {\r\n getSemanticObject().setBooleanProperty(swb_deleted, value);\r\n }", "public void setDeleted(final boolean deleted) {\n this.deleted = deleted;\n }", "public void setDeleted(final Boolean deleted) {\n\t\tthis.deleted = deleted;\n\t}", "public void setDeleted(Byte deleted) {\n this.deleted = deleted;\n }", "public void setDeleted(Integer deleted) {\n this.deleted = deleted;\n }", "public void andLogicalDeleted(boolean deleted) {\n setIsDelete(deleted ? IS_DELETED : NOT_DELETED);\n }", "public void setIsDeleted(String isDeleted) {\n this.isDeleted = isDeleted == null ? null : isDeleted.trim();\n }", "@DISPID(13)\n\t// = 0xd. The runtime will prefer the VTID if present\n\t@VTID(24)\n\tvoid deleted(boolean pVal);", "public void andLogicalDeleted(boolean deleted) {\n setIsDeleted(deleted ? DELETED : NOT_DELETED);\n }", "public void andLogicalDeleted(boolean deleted) {\n setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value());\n }", "public void andLogicalDeleted(boolean deleted) {\n setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value());\n }", "public void andLogicalDeleted(boolean deleted) {\n setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value());\n }", "public Integer getIsdeleted() {\n return isdeleted;\n }", "@ApiModelProperty(value = \"True if campaign/flow has been archived\")\r\n public Boolean isDeleted() {\r\n return deleted;\r\n }", "public Builder setDeleted(boolean value) {\n\n deleted_ = value;\n bitField0_ |= 0x00000040;\n onChanged();\n return this;\n }", "public Boolean getIsDeleted() {\r\n return isDeleted;\r\n }", "public java.lang.Boolean getDeleted();", "@Override\n\tpublic void setIsDelete(int isDelete) {\n\t\t_dmGtStatus.setIsDelete(isDelete);\n\t}", "public Byte getIsDeleted() {\r\n return isDeleted;\r\n }", "public Byte getIsDeleted() {\n return isDeleted;\n }", "public Byte getIsDeleted() {\n return isDeleted;\n }", "public Boolean getIsDeleted() {\n return isDeleted;\n }", "public void setIsDelete(int isDelete) {\n\t\t_dmHistoryMaritime.setIsDelete(isDelete);\n\t}", "public Integer getIsDeleted() {\n return isDeleted;\n }", "public Criteria andLogicalDeleted(boolean deleted) {\n return deleted ? andDeletedEqualTo(YoungSeckillPromotionProductRelation.IS_DELETED) : andDeletedNotEqualTo(YoungSeckillPromotionProductRelation.IS_DELETED);\n }", "public Boolean getDeleted() {\n return deleted;\n }", "public void setIsDelete( Integer isDelete ) {\n this.isDelete = isDelete;\n }", "public boolean isDeleted();", "public Boolean getDeleted() {\n return deleted;\n }", "public Boolean getDeleted() {\n return deleted;\n }", "public Boolean getDeleted() {\n return deleted;\n }", "public Boolean getDeleted() {\n return deleted;\n }", "@DISPID(13)\n\t// = 0xd. The runtime will prefer the VTID if present\n\t@VTID(23)\n\tboolean deleted();", "public String getIsDeleted() {\n return isDeleted;\n }", "public String getIsDeleted() {\n return isDeleted;\n }", "@Override\n \t\t\t\tpublic boolean isDeleted() {\n \t\t\t\t\treturn false;\n \t\t\t\t}", "public void setIsDelete(Byte isDelete) {\n this.isDelete = isDelete;\n }", "public void setIsDelete(Byte isDelete) {\n this.isDelete = isDelete;\n }", "public boolean isDeleted() {\r\n\treturn isDeleted;\r\n}", "public Criteria andLogicalDeleted(boolean deleted) {\n return deleted ? andDeletedEqualTo(BDicTreeCode.IS_DELETED) : andDeletedNotEqualTo(BDicTreeCode.IS_DELETED);\n }", "Deleted(Boolean value, String name) {\n this.value = value;\n this.name = name;\n }", "Deleted(Boolean value, String name) {\n this.value = value;\n this.name = name;\n }", "Deleted(Boolean value, String name) {\n this.value = value;\n this.name = name;\n }", "public void setDeletedDateTime(LocalDateTime deletedDateTime) {\n\t\tthis.deletedDateTime = deletedDateTime;\n\t}", "boolean isDeleted();", "@java.lang.Override\n public boolean getDeleted() {\n return deleted_;\n }", "public void delete()\n\t{\n\t\t_Status = DBRowStatus.Deleted;\n\t}", "@Override\n\tpublic void setIsDelete(int isDelete) {\n\t\t_dmGTShipPosition.setIsDelete(isDelete);\n\t}", "public boolean getDeleted() {\n return deleted;\n }", "public Boolean getDeleted() {\r\n\t\treturn deleted;\r\n\t}", "public Integer getIsDeleted() {\r\n\t\treturn isDeleted;\r\n\t}", "public void setIsdelete(Boolean isdelete) {\r\n this.isdelete = isdelete;\r\n }", "public void setIsDelete(Boolean isDelete) {\r\n\t\tthis.isDelete = isDelete;\r\n\t}", "public void setIsDelete(boolean isDelete) {\n this.isDelete = isDelete;\n }", "@DISPID(75)\r\n\t// = 0x4b. The runtime will prefer the VTID if present\r\n\t@VTID(80)\r\n\tboolean isDeleted();", "public void setIsdelete(Integer isdelete) {\r\n this.isdelete = isdelete;\r\n }", "CamelJpaConsumerBindingModel setConsumeDelete(Boolean consumeDelete);", "public void setIs_delete(String is_delete) {\n this.is_delete = is_delete;\n }", "public boolean isDeleted()\r\n {\r\n return getSemanticObject().getBooleanProperty(swb_deleted);\r\n }", "public Criteria andLogicalDeleted(boolean deleted) {\n return deleted ? andDeletedEqualTo(SaleClassifyGood.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(SaleClassifyGood.Deleted.IS_DELETED.value());\n }", "public void setIsdelete(Integer isdelete) {\n this.isdelete = isdelete;\n }", "@java.lang.Override\n public boolean getDeleted() {\n return deleted_;\n }", "public void markAsDeleted() {\n\t\tthis.setDeleted(true);\t\t\n\t}", "public void setDELETED_DATE(Date DELETED_DATE) {\r\n this.DELETED_DATE = DELETED_DATE;\r\n }", "public void setIsdelete(Integer isdelete) {\n\t\tthis.isdelete = isdelete;\n\t}", "public void setDeletedAt(Date deletedAt) {\n this.deletedAt = deletedAt;\n }", "public Boolean getIsDeleted() {\n\t\treturn isDeleted;\n\t}", "public void setDelete(boolean delete) {\n\t\tthis.delete = delete;\n\t}", "public Boolean getDeleted() {\n return mDeleted;\n }", "public void setDelete(boolean d) {\n\t\t\tdelete.set(d);\n\t\t}", "public String getIsDeleted() {\n\t\treturn isDeleted;\n\t}", "@ApiModelProperty(value = \"True if this gift certificate was deleted.\")\n public Boolean isDeleted() {\n return deleted;\n }", "public boolean isDeleted()\r\n\t{\r\n\t\treturn deletedFlag;\r\n\t}", "protected boolean deleted() {\n if (state.isSynced()) {\n this.state.setState(ENodeState.Deleted);\n return true;\n } else if (state.isUpdated()) {\n this.state.setState(ENodeState.Deleted);\n return true;\n }\n return false;\n }" ]
[ "0.6486961", "0.6480004", "0.64344424", "0.63491786", "0.6305754", "0.62943774", "0.62180173", "0.62180173", "0.62180173", "0.62180173", "0.62180173", "0.62161934", "0.62161934", "0.62111104", "0.61860824", "0.6178001", "0.6164293", "0.61308354", "0.61243373", "0.609822", "0.60888875", "0.6065766", "0.6061332", "0.5989301", "0.5986921", "0.5986257", "0.5984641", "0.59746313", "0.5866397", "0.58585256", "0.5820667", "0.5778505", "0.57424605", "0.5650073", "0.56297374", "0.56142277", "0.56142277", "0.56142277", "0.5562584", "0.54968435", "0.5474903", "0.54667777", "0.5455683", "0.54487896", "0.54235077", "0.540183", "0.540183", "0.53996545", "0.5377329", "0.535316", "0.5334835", "0.53346443", "0.5287224", "0.5278464", "0.5276381", "0.5276381", "0.5276381", "0.5276381", "0.5259677", "0.524935", "0.524935", "0.52474284", "0.5245971", "0.5245971", "0.5238616", "0.5222183", "0.51844895", "0.51844895", "0.51844895", "0.5173803", "0.5172121", "0.51662344", "0.5133945", "0.5132963", "0.5124269", "0.5122709", "0.5095167", "0.5086614", "0.5076688", "0.5055744", "0.5054486", "0.50532657", "0.505274", "0.5052505", "0.5051249", "0.5037718", "0.5032507", "0.5024295", "0.5024208", "0.50195545", "0.5012205", "0.50119746", "0.4998932", "0.49906665", "0.49875432", "0.49549907", "0.4950332", "0.49489394", "0.49480915", "0.49471182" ]
0.6231867
6
This method was generated by MyBatis Generator. This method returns the value of the database column partner_contract_snapshots.content
public String getContent() { return content; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Blob getContentBlob() {\n return Hibernate.createBlob(this.content);\n }", "public interface VersionedContent {\n /**\n * Version of the content.\n */\n long version();\n\n /**\n * Actual content\n */\n String content();\n }", "public StrColumn getRevisionDescription() {\n return delegate.getColumn(\"revision_description\", DelegatingStrColumn::new);\n }", "public String getContent()\n/* */ {\n/* 1329 */ return this.content;\n/* */ }", "public String getSourceSnapshotId() {\n return this.sourceSnapshotId;\n }", "public String getContent() {\n return this.content;\n }", "public String getContent() {\n\t\treturn content.toString();\n\t}", "public String get(String content)\n {\n String nValue = \"\";\n \n try {\n FileInputStream input;\n if(Global.dataFile ==null)\n {\n input = new FileInputStream(Global.workDir+\"\\\\TestData\\\\licensing.xls\");\n }\n else if((Global.dataFile.equals(\"\")))\n {\n input = new FileInputStream(Global.workDir+\"\\\\TestData\\\\licensing.xls\");\n }\n else\n {\n input = new FileInputStream(Global.dataFile);\n }\n HSSFWorkbook wb = new HSSFWorkbook(input);\n HSSFSheet sheet = wb.getSheetAt(0);\n nValue = findValue(sheet, content);\n return nValue;\n } catch (Exception e) {\n // TODO Auto-generated catch block\n// e.printStackTrace();\n return nValue=\"\";\n } \n }", "com.google.protobuf.ByteString\n getContentBytes();", "com.google.protobuf.ByteString\n getContentBytes();", "com.google.protobuf.ByteString\n getContentBytes();", "com.google.protobuf.ByteString\n getContentBytes();", "com.google.protobuf.ByteString\n getContentBytes();", "com.google.protobuf.ByteString\n getContentBytes();", "@Column(name = \"FILE_CONTENT\" )\n @Lob\n public Byte[] getFileContent() {\n return fileContent;\n }", "public String getContent() { return this.content; }", "public String getContent() {\r\n\t\treturn this.content;\r\n\t}", "public String getContent() {\n return this.content;\n }", "public String getContent() {\n return this.content;\n }", "public String getContent() {\n return this.content;\n }", "public String getContent() {\n return this.content;\n }", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "com.google.protobuf.ByteString getContentBytes();", "public String getContent() {\n return content_;\n }", "public String getContent() {\n return content_;\n }", "@JsonIgnore public Mass getSodiumContent() {\n return (Mass) getValue(\"sodiumContent\");\n }", "public String getContent() {\n return instance.getContent();\n }", "public String getContent() {\n return instance.getContent();\n }", "public String getContent() {\n return instance.getContent();\n }", "public String getContent() {\n return instance.getContent();\n }", "public String getContent() {\n return content_;\n }", "public String getContent() {\n return content_;\n }", "com.google.protobuf.ByteString\n getContentBytes();", "com.google.protobuf.ByteString\n getContentBytes();", "com.google.protobuf.ByteString\n getContentBytes();", "com.google.protobuf.ByteString\n getContentBytes();", "public String getContent() {\n\t return content;\n }", "public BbsDto getContent(long bbs_seq) {\n\t\tBbsDto bbsDto = bDao.findBySeqForFile(bbs_seq);\n\t\treturn bbsDto;\n\t}", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "String getClobField();", "public String getContent() {\n return this.m_content;\n }", "public java.lang.String getContent() {\n return content;\n }", "java.lang.String getContentId();", "public String getContent() {\r\n\t\treturn content;\r\n\t}", "public static String sourceContent()\n {\n read_if_needed_();\n \n return _src_content;\n }", "@JsonGetter(\"fileContent\")\r\n public String getFileContent ( ) { \r\n return this.fileContent;\r\n }", "public String getContent() {\n Object ref = content_;\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 content_ = s;\n return s;\n }\n }", "public String getContentText(Integer contentId) {\n String sql = \"SELECT content_text FROM contents WHERE content_id = ?\";\n return jdbc.queryForObject(sql, String.class, contentId);\n }", "public java.lang.String getContent() {\n return this._content;\n }", "public abstract byte[] getSnapshot();", "public java.lang.String getContent(\n ) {\n return this._content;\n }", "public java.lang.String getContent() {\n java.lang.Object ref = content_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n content_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n\tpublic\n\tObject getContent() {\n\t\treturn this.content;\n\t}", "public String getContent() {\n\t\treturn content;\n\t}", "public String getContent() {\n\t\treturn content;\n\t}", "public String getContent() {\n\t\treturn content;\n\t}", "@Override\r\n public String getContent() {\r\n return content;\r\n }", "public String getContent();", "public String getContent() {\n Object ref = content_;\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 content_ = s;\n return s;\n }\n }", "public java.lang.String getContent() {\n java.lang.Object ref = content_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n content_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getContent() {\n Object ref = content_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n content_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getContent() {\n Object ref = content_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n content_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public com.google.protobuf.ByteString\n getContentBytes() {\n return instance.getContentBytes();\n }", "public com.google.protobuf.ByteString\n getContentBytes() {\n return instance.getContentBytes();\n }", "public com.google.protobuf.ByteString\n getContentBytes() {\n Object ref = content_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n content_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getContent() {\n return content;\n }", "public String getContent() throws IOException {\r\n\t\tlogger.trace(\"getContent() - start\");\r\n\t\tif (status.contains(DatasetStatus.STATUS_CONTENT)) {\r\n\t\t\tlogger.trace(\"getContent() - {}\", DatasetStatus.STATUS_CONTENT);\r\n\t\t\tlogger.debug(\"getContent() - content\");\r\n\t\t\tlogger.trace(\"getContent() - end\");\r\n\t\t\treturn content;\r\n\t\t}\r\n\t\tlogger.trace(\"getContent() - end\");\r\n\t\treturn null;\r\n\t}", "@java.lang.Override\n public int getContentId() {\n return instance.getContentId();\n }", "public java.lang.String getContent () {\n\t\treturn content;\n\t}", "public String getContent() {\n\t\treturn mContent;\n\t}", "@java.lang.Override\n public java.lang.String getContent() {\n java.lang.Object ref = content_;\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 content_ = s;\n return s;\n }\n }", "com.google.protobuf.ByteString getContent();", "com.google.protobuf.ByteString getContent();", "public java.lang.String getContent() {\n java.lang.Object ref = content_;\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 content_ = s;\n }\n return s;\n }\n }", "public java.lang.String getContent() {\n java.lang.Object ref = content_;\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 content_ = s;\n }\n return s;\n }\n }", "public java.lang.String getContent() {\n java.lang.Object ref = content_;\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 content_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public com.google.protobuf.ByteString\n getContentBytes() {\n return instance.getContentBytes();\n }", "public com.google.protobuf.ByteString\n getContentBytes() {\n return instance.getContentBytes();\n }" ]
[ "0.5775243", "0.5308229", "0.52767706", "0.51890177", "0.51485187", "0.5119048", "0.51171404", "0.5096905", "0.5096212", "0.5096212", "0.5079545", "0.5079545", "0.5079545", "0.5079545", "0.5065507", "0.50272834", "0.50268596", "0.5006908", "0.5006908", "0.5006908", "0.5006908", "0.49908632", "0.49908632", "0.49908632", "0.49908632", "0.49908632", "0.49908632", "0.49791774", "0.49772552", "0.49772552", "0.49740025", "0.49689412", "0.49689412", "0.49632093", "0.49632093", "0.49631277", "0.49631277", "0.495929", "0.495929", "0.49418446", "0.49418446", "0.49400344", "0.49157712", "0.49063605", "0.49063605", "0.49063605", "0.49063605", "0.49063605", "0.49063605", "0.49063605", "0.49063605", "0.49063605", "0.49063605", "0.49063605", "0.49063605", "0.49063605", "0.49063605", "0.49063605", "0.49063605", "0.49063605", "0.48952326", "0.4889782", "0.48812547", "0.48779032", "0.48724562", "0.48692802", "0.48691002", "0.48603386", "0.48585683", "0.48583853", "0.48580918", "0.48567817", "0.4854139", "0.4853743", "0.48475924", "0.48475924", "0.48475924", "0.48459122", "0.4844511", "0.48428592", "0.48426273", "0.48416945", "0.48416945", "0.48338076", "0.48338076", "0.4830314", "0.48292103", "0.4826679", "0.48160005", "0.48151082", "0.48124275", "0.4811592", "0.48046246", "0.48046246", "0.48025537", "0.48025537", "0.48005453", "0.47987545", "0.47987545" ]
0.49386898
43
This method was generated by MyBatis Generator. This method sets the value of the database column partner_contract_snapshots.content
public void setContent(String content) { this.content = content == null ? null : content.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setDataFromDBContent() {\n\n }", "public BlobName setContent(String content) {\n this.content = content;\n return this;\n }", "public void setContent(String newValue);", "@Override\n\tpublic void setBlob(int parameterIndex, InputStream inputStream) throws SQLException {\n\t\t\n\t}", "public void setSnapshot(Snapshot snapshot) {\n m_table.getEntry(\"snapshot\").setValue(snapshot.getValue());\n }", "public void setContent(String content)\n/* */ {\n/* 1340 */ this.content = content;\n/* */ }", "public Blob getContentBlob() {\n return Hibernate.createBlob(this.content);\n }", "protected void changeContent() {\n byte[] data = Arrays.copyOf(content.getContent(),\n content.getContent().length + 1);\n data[content.getContent().length] = '2'; // append one byte\n content.setContent(data);\n LOG.info(\"document content changed\");\n }", "public void setContent(String content) {\n this.contents = content;\n }", "void overwriteContent(Md2Entity content);", "@Override\r\n protected void updateCI(RepositoryAction action, boolean preview)\r\n throws DataFormatException, IOException, SQLException, IllegalArgumentException {\r\n action.assertHasProperty(OLD_VALUE);\r\n action.assertHasProperty(NEW_VALUE);\r\n\r\n String newValue = action.getProperties().get(\"newValue\");\r\n int cnt = 0;\r\n\r\n if (!preview) {\r\n\r\n String sql = lookupSql(action, preview);\r\n /*\r\n * update CI for XLR requires a select which returns a result set then for each,\r\n * get content blob, modify content blob then update the record with new ci type\r\n * and modified content blob\r\n */\r\n\r\n ResultSet result = null;\r\n String[] stringArray = createSqlArray(sql);\r\n NamedParamStatement pstmtSelect = null;\r\n PreparedStatement secondPstmtUpdate = null;\r\n Boolean origCommitState = dbconn.getAutoCommit();\r\n\r\n // ensure we have two sql statments\r\n // We expect the first statement to be the select and\r\n // the second statement is the update\r\n if (stringArray != null && stringArray.length == 2) {\r\n try {\r\n // Turn autocommit off\r\n dbconn.setAutoCommit(false);\r\n\r\n pstmtSelect = new NamedParamStatement(this.dbconn, stringArray[0]);\r\n pstmtSelect = populateNamedParamStmt(action, pstmtSelect);\r\n result = pstmtSelect.executeQuery();\r\n if (result != null) {\r\n while (result.next()) {\r\n int ci_uid = result.getInt(\"ci_uid\");\r\n\r\n byte [] currentBytes = null;\r\n\r\n if (dbType == DbType.POSTGRESQL){\r\n currentBytes = result.getBytes(\"content\");\r\n }\r\n else {\r\n Blob blobContent = result.getBlob(\"content\");\r\n currentBytes = convertBlobToByteArray(blobContent);\r\n }\r\n \r\n String blobString = new String(CompressionUtils.decompress(currentBytes));\r\n // Now, update blob\r\n String updatedBlobString = updateBlob(blobString, \"type\", newValue);\r\n\r\n //System.out.println(\"******BEGIN - this is the updated content blob for xlr - update ci\");\r\n //System.out.println(updatedBlobString);\r\n \r\n byte[] newByteArray = CompressionUtils.compress(updatedBlobString.getBytes());\r\n\r\n secondPstmtUpdate = dbconn.prepareStatement(stringArray[1]);\r\n secondPstmtUpdate.setString(1, action.getProperties().get(\"newValue\"));\r\n\r\n if (dbType == DbType.POSTGRESQL){\r\n secondPstmtUpdate.setBytes(2, newByteArray);\r\n }\r\n else {\r\n Blob blobFromBytes = dbconn.createBlob();\r\n int numWritten = blobFromBytes.setBytes(1, newByteArray);\r\n //System.out.println(\"******END - numWritten to blob = \"+numWritten+\", size = \"+blobFromBytes.length()+\", this is the updated content blob for xlr - update task\");\r\n // old way Blob blobFromBytes = new javax.sql.rowset.serial.SerialBlob(newByteArray); \r\n secondPstmtUpdate.setBlob(2, blobFromBytes); \r\n }\r\n\r\n secondPstmtUpdate.setInt(3, ci_uid);\r\n\r\n cnt = secondPstmtUpdate.executeUpdate();\r\n }\r\n\r\n } else {\r\n os.println(String.format(\"\\n%sUpdate CI from %s to %s. 0 row(s) altered. %s\",\r\n (preview ? \"[PREVIEW] \" : \"\"), action.getProperties().get(OLD_VALUE),\r\n action.getProperties().get(NEW_VALUE), \"No records found to update.\"));\r\n }\r\n\r\n // successfully reached the end, so commit\r\n //os.println(\"About to commit the database transaction.\");\r\n dbconn.commit();\r\n os.println(String.format(\"\\n%sUpdate CI from %s to %s. %d row(s) altered.\", (preview ? \"[PREVIEW] \" : \"\"),\r\n action.getProperties().get(OLD_VALUE), action.getProperties().get(\"newValue\"), cnt));\r\n if(cnt>0 && action.getMessage() != null && !action.getMessage().isEmpty()){\r\n os.println(\"\\tAttention: \"+action.getMessage());\r\n }\r\n } catch (SQLException se){\r\n dbconn.rollback();\r\n os.println(\"\\nERROR: SQLExecption thrown, so database transcaction has been rolled back.\");\r\n throw se; \r\n } finally {\r\n try {\r\n if(dbconn != null) dbconn.setAutoCommit(origCommitState);\r\n if (result != null) result.close();\r\n if (secondPstmtUpdate != null) secondPstmtUpdate.close();\r\n if (pstmtSelect != null) pstmtSelect.close();\r\n } catch (Exception e) {\r\n }\r\n }\r\n\r\n } else {\r\n throw new IllegalArgumentException(\r\n \"updateCI mapping must contain two SQL statements, a SELECT and an UPDATE.\");\r\n }\r\n\r\n } else {\r\n // perform preview action\r\n cnt = processAction(action, preview);\r\n os.println(String.format(\"\\n%sUpdate CI from %s to %s. %d row(s) altered.\", (preview ? \"[PREVIEW] \" : \"\"),\r\n action.getProperties().get(OLD_VALUE), action.getProperties().get(\"newValue\"), cnt));\r\n \r\n }\r\n }", "public sparqles.avro.discovery.DGETInfo.Builder setContent(java.lang.CharSequence value) {\n validate(fields()[8], value);\n this.Content = value;\n fieldSetFlags()[8] = true;\n return this; \n }", "public void setContent(String newContent)\n\t{\n\t\tthis.content = newContent;\n\t}", "private void setContent(String content) {\n this.content = content;\n }", "public void setContent(Object content) {\n this.content = content;\n }", "public void setContent(String content) { this.content = content; }", "public void setContentBlob(Blob imageBlob) {\n this.content = this.toByteArray(imageBlob);\n }", "@JsonSetter(\"fileContent\")\r\n public void setFileContent (String value) { \r\n this.fileContent = value;\r\n }", "void setBlob(int index, Blob value) throws SQLException;", "public void updateBlob(int columnIndex, InputStream x) throws SQLException {\n\n updateBlob(columnIndex, x, -1);\n }", "@Override\n\tpublic void setBlob(int parameterIndex, InputStream inputStream, long length) throws SQLException {\n\t\t\n\t}", "public com.babbler.ws.io.avro.model.BabbleValue.Builder setContent(java.lang.String value) {\n validate(fields()[1], value);\n this.content = value;\n fieldSetFlags()[1] = true;\n return this;\n }", "public static void set_SourceContent(String v) throws RuntimeException\n {\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaSourceContentCmd, v);\n UmlCom.check();\n \n _src_content = v;\n \n }", "private void setContentBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n content_ = value.toStringUtf8();\n }", "private void setContentBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n content_ = value.toStringUtf8();\n }", "private void setContent(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n content_ = value;\n }", "private void setContent(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n content_ = value;\n }", "@Override\n public void set(C content) {\n this.content = content;\n }", "private void setContent(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n content_ = value;\n }", "private void setContent(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n content_ = value;\n }", "public void setContent(String content) {\n\t this.content = content;\n\t}", "public interface VersionedContent {\n /**\n * Version of the content.\n */\n long version();\n\n /**\n * Actual content\n */\n String content();\n }", "@Override\n\tpublic void setBinaryStream(int parameterIndex, InputStream x) throws SQLException {\n\t\t\n\t}", "public void setContent(String content) {\n\t\tthis.content = content == null ? null : content.trim();\n\t}", "private void setContentBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n content_ = value.toStringUtf8();\n }", "private void setContentBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n content_ = value.toStringUtf8();\n }", "public void setBlob(int parameterIndex, InputStream inputStream) throws SQLException {\n currentPreparedStatement.setBlob(parameterIndex, inputStream);\n\n }", "public void setContent(String content) {\r\n\t\tthis.content = content;\r\n\t}", "public void setContent(Source source) {\n this.content = source;\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n\t\tmContent = content;\n\t}", "public void setContent(String content) {\n\t\tthis.content = content;\n\t}", "public void setContent(String content) {\n\t\tthis.content = content;\n\t}", "public void updateBlob(String columnName, InputStream x) throws SQLException {\n\n updateBlob(columnName, x, -1);\n }", "public void setContent(byte[] value) {\r\n this.content = value;\r\n }", "static public void setContents(Item copyIntoFolderComposer, Item value) throws CadseException {\n\t\tcopyIntoFolderComposer.setOutgoingItem(CopyComposerCST.COPY_INTO_FOLDER_COMPOSER_lt_CONTENTS,value);\n\t}", "public void setContents(String contentString) {\n\t\tcontents=contentString;\n\t}", "public void updateBlob(int columnIndex, Blob x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateBlob(\" + columnIndex + \", x);\");\n }\n checkClosed();\n Value v;\n if (x == null) {\n v = ValueNull.INSTANCE;\n }\n else {\n v = conn.createBlob(x.getBinaryStream(), -1);\n }\n update(columnIndex, v);\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "public Builder setContent(\n String value) {\n copyOnWrite();\n instance.setContent(value);\n return this;\n }", "public Builder setContent(\n String value) {\n copyOnWrite();\n instance.setContent(value);\n return this;\n }", "public synchronized void setContent(Object content) {\n // nothing\n }", "public abstract void setContent(Object o);", "@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)\n public void setTaskContent(Task taskObj, Boolean inbound, Map<String, Object> taskContent) {\n EntityManager eManager = null;\n ObjectOutputStream out = null; \n try {\n eManager = humanTaskEMF.createEntityManager();\n uTrnx.begin();\n \n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n out = new ObjectOutputStream(bos);\n out.writeObject(taskContent);\n out.close();\n byte[] byteResults = bos.toByteArray();\n \n // persist the serialized results map into Content table\n Content content = new Content();\n content.setContent(byteResults);\n eManager.persist(content); // will generate a unique id for this content by jpa\n \n ContentData contentData = new ContentData();\n contentData.setContent(byteResults);\n contentData.setAccessType(org.jbpm.task.AccessType.Inline);\n taskObj.getTaskData().setOutput(content.getId(), contentData);\n eManager.merge(taskObj);\n \n uTrnx.commit();\n log.info(\"setTaskContent() taskId = \"+taskObj.getId()+\" : inbound = \"+inbound+\" contentBytes size = \"+byteResults.length);\n } catch(Exception x) {\n throw new RuntimeException(x);\n } finally {\n if(eManager != null)\n eManager.close();\n try {\n if(out != null)\n out.close();\n }catch(Exception x){x.printStackTrace();}\n }\n }", "void setContent(java.lang.String content);", "public void setContent(String content) {\n this.m_content = content;\n }", "public void setContent(String content) {\n this.content = content == null ? null : content.trim();\n }", "public void setContent(String content) {\n this.content = content == null ? null : content.trim();\n }", "public void setContent(String content) {\n this.content = content == null ? null : content.trim();\n }", "public void setContent(String content) {\n this.content = content == null ? null : content.trim();\n }", "public void setContent(String content) {\n this.content = content == null ? null : content.trim();\n }", "public void setContent(String content) {\n this.content = content == null ? null : content.trim();\n }", "public Builder setContent(\n String value) {\n copyOnWrite();\n instance.setContent(value);\n return this;\n }", "public Builder setContent(\n String value) {\n copyOnWrite();\n instance.setContent(value);\n return this;\n }", "void setContent(String data) {\n this.content = data;\n }", "public Result<T> setContent(T content) {\n Result<T> returnResult = new Result<T>(this.resultCode, this.resultText);\n returnResult.content = content;\n return returnResult;\n }", "void xsetContent(org.apache.xmlbeans.XmlString content);", "public void setUserGeneratedContent(String userGeneratedContent) {\n mUserGeneratedContent = userGeneratedContent;\n }", "void setBlob(PreparedStatement pstmt, Object value, int pos)\r\n throws Exception;", "public void setBlob(int parameterIndex, Blob x) throws SQLException {\n currentPreparedStatement.setBlob(parameterIndex, x);\n }", "public void setSnapshotId(long value) {\n this.snapshotId = value;\n }", "IViewerBinding setContent(IObservableValue object, EReference reference);", "public void store(String namespace, String id, long version, String content) throws StageException;", "public abstract void setContentDescription(String description);", "public void setContent(\n final java.lang.String content) {\n this._content = content;\n }", "public Builder setContent(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n content_ = value;\n onChanged();\n return this;\n }", "public void updateBlob(String columnName, Blob x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateBlob(\" + quote(columnName) + \", x);\");\n }\n checkClosed();\n Value v;\n if (x == null) {\n v = ValueNull.INSTANCE;\n }\n else {\n v = conn.createBlob(x.getBinaryStream(), -1);\n }\n update(columnName, v);\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "protected void setVersion(EmployeeLeave employeeLeave, ResultSet rs, int rowNumber) throws SQLException{\n\t\tInteger version = rs.getInt(EmployeeLeaveTable.COLUMN_VERSION);\n\t\tif(version == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\n\t\temployeeLeave.setVersion(version);\n\t}", "public void updateContent(String new_content){\n\t\tif(content == null){\n\t\t\tcontent = \"\";\n\t\t}\n\t\tcontent = content.concat(new_content);\n\t\tupdateSize();\t\t\n\t}", "public void setFileContent(String fileContent) {\n this.fileContent = fileContent;\n }", "private static void writeCLOBData() {\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\ttry {\n\t\t\tconn = JDBCUtils.getMySQLConnection();\n\t\t\tString sql = \"INSERT INTO testclob(name, resume) values(?,?)\";\n\t\t\tstmt = conn.prepareStatement(sql);\n\t\t\tstmt.setString(1, \"ke\");\n\t\t\tFile file = new File(\"D:\" + File.separator + \"test.txt\");\n\t\t\tReader reader = new InputStreamReader(new FileInputStream(file), \"utf-8\");\n\t\t\tstmt.setCharacterStream(2, reader, (int)file.length());\n\t\t\tstmt.executeUpdate();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\tJDBCUtils.release(stmt, conn);\n\t\t}\n\t}", "@Override\n\tpublic String changeToWZLContent(String content) {\n\t\treturn null;\n\t}", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n DBDataType dBDataType0 = DBDataType.getInstance(\"CLOB\");\n Integer integer0 = RawTransaction.SAVEPOINT_ROLLBACK;\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"CLOB\", defaultDBTable0, dBDataType0, integer0);\n defaultDBColumn0.setNullable(false);\n String string0 = SQLUtil.renderColumn(defaultDBColumn0);\n assertEquals(\"CLOB CLOB NOT NULL\", string0);\n }", "public void setSnapshotSizeFactor(double snapshotSizeFactor) {\n this.snapshotSizeFactor = snapshotSizeFactor;\n }", "public OldImmutableContent(Id id, Serializable content) {\n super(id);\n this.content = content;\n }", "@Override\n public void setValue(InputStream value) throws ValueFormatException,\n VersionException, LockException, ConstraintViolationException,\n RepositoryException {\n \n }", "@Override\r\n public void onDataChange(DataSnapshot dataSnapshot) {\n String value = dataSnapshot.getValue(String.class);\r\n contentDesc.setText(Html.fromHtml(value));\r\n\r\n Log.d(TAG, \"Value is: \" + value);\r\n }", "public Builder setContentBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n content_ = value;\n onChanged();\n return this;\n }", "public Builder setContent(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n content_ = value;\n onChanged();\n return this;\n }", "@Accessor(qualifier = \"dataExportMediaCode\", type = Accessor.Type.SETTER)\n\tpublic void setDataExportMediaCode(final String value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(DATAEXPORTMEDIACODE, value);\n\t}", "public Builder setContent(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n content_ = value;\n onChanged();\n return this;\n }" ]
[ "0.5201714", "0.50882137", "0.49733493", "0.49058867", "0.48339108", "0.48104247", "0.48069453", "0.48049688", "0.47819766", "0.4760076", "0.47564414", "0.47252682", "0.4682035", "0.46776745", "0.46554694", "0.46522903", "0.46449867", "0.46376812", "0.46101785", "0.46080363", "0.4605887", "0.46012568", "0.45972875", "0.45848343", "0.45848343", "0.45703512", "0.45703512", "0.45622402", "0.45566887", "0.45566887", "0.45234942", "0.4510869", "0.44982362", "0.449454", "0.44900283", "0.44900283", "0.4484092", "0.448283", "0.44612363", "0.44561598", "0.44561598", "0.44561598", "0.44561598", "0.44561598", "0.44561598", "0.44561598", "0.44561598", "0.44561598", "0.44561598", "0.44561598", "0.44443646", "0.44437015", "0.44437015", "0.44363356", "0.44306904", "0.4416297", "0.4416268", "0.44126227", "0.44065425", "0.44065425", "0.44043756", "0.43949342", "0.43918774", "0.4388217", "0.43875328", "0.43782237", "0.43782237", "0.43782237", "0.43782237", "0.43782237", "0.43782237", "0.43739322", "0.43739322", "0.4361552", "0.43430328", "0.43376943", "0.4326506", "0.43166456", "0.43026003", "0.42914236", "0.42767394", "0.42629847", "0.42561817", "0.42553398", "0.42539278", "0.4249996", "0.42483902", "0.4246071", "0.42442143", "0.42389315", "0.42292225", "0.42285302", "0.42280233", "0.4225538", "0.42113042", "0.42027608", "0.42020318", "0.41996673", "0.4187981", "0.41873053" ]
0.4380833
65
This method was generated by MyBatis Generator. This method returns the value of the database column partner_contract_snapshots.superior_commission
public String getSuperiorCommission() { return superiorCommission; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSuperior() {\n return superior;\n }", "@Override\r\n\tpublic int getPayCheque() {\n\t\treturn profit+annuelSalary;\r\n\t\t\r\n\t}", "public Long getTotalcommission() {\n return totalcommission;\n }", "public void setSuperiorCommission(String superiorCommission) {\r\n this.superiorCommission = superiorCommission == null ? null : superiorCommission.trim();\r\n }", "public BigDecimal getCommission() {\n return commission;\n }", "public BigDecimal getCommission() {\n return commission;\n }", "public String getSuperiorIdName() {\n return superiorIdName;\n }", "public BigDecimal getAgencyProfit() {\r\n return agencyProfit;\r\n }", "public int getCommission() {\n\treturn commission;\n}", "public int getYearlyBonus(){\n return this.yearlyBonus;\n }", "public Contribution getContribution(SqlRowSet rowSet)\n {\n rowSet.next();\n\n return new Contribution(rowSet.getInt(1), rowSet.getString(2),\n rowSet.getDouble(3),rowSet.getDate(4));\n }", "public int getAnnualIncome() {\n return annualIncome;\n }", "@Override\n\tpublic BigDecimal getSuperficie() {\n\t\treturn model.getSuperficie();\n\t}", "public double getIncome() {\n\n return gross;\n }", "@Override\n\tpublic double getPayment() {\n\t\treturn baseSalary + (this.getGrossSales() * this.getCommissionRate());\n\t}", "@Column(name = \"SPLIT_PERCENTAGE\")\r\n @Audited\r\n public Integer getSplitPercentage() {\r\n return splitPercentage;\r\n }", "BigDecimal getCommission( String officeCode );", "public String getGovernor()\n\t{\n\t\tassert this.cursor != null;\n\t\treturn this.cursor.getString(2);\n\t}", "@Override\r\n\tpublic final int getSaludBonus() {\r\n\t\treturn BONUSSALUD;\r\n\t}", "public int getOpponentMinRating() {\n return getIntegerProperty(\"MinRating\");\n }", "protected Skill getNpcSuperiorBuff()\r\n\t{\n\t\treturn getSkill(15649, 1); //warrior\r\n//\t\treturn getSkill(15650, 1); //wizzard\r\n\t}", "public BigDecimal getPriorYear() {\n return priorYear;\n }", "public BigDecimal getRealProfit() {\r\n return realProfit;\r\n }", "public IUser getCommissioner() {\n\t\treturn User.get()\n\t\t\t\t\t.setPerson(Person.get()\n\t\t\t\t\t\t\t\t\t.setFirstname(\"Андрій\")\n\t\t\t\t\t\t\t\t\t.setLastname(\"Іванов\")\n\t\t\t\t\t\t\t\t\t.setEmail(\"andr@gmail.com\")\n\t\t\t\t\t\t\t\t\t.build()\n\t\t\t\t\t\t\t\t\t.setMiddlename(\"Петрович\")\n\t\t\t\t\t\t\t\t\t.setPhonenumber(\"\")\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.setAccount(Account.get()\n\t\t\t\t\t\t\t\t\t.setLogin(\"commissioner\")\n\t\t\t\t\t\t\t\t\t.setPassword(\"commissioner\")\n\t\t\t\t\t\t\t\t\t.setRole(\"Адміністратор\")\n\t\t\t\t\t\t\t\t\t.setStatus(\"Активний\")\n\t\t\t\t\t\t\t\t\t.setCommunity(\"Україна\")\n\t\t\t\t\t\t\t\t\t.build()\n\t\t\t\t\t\t\t\t\t.setData(\"\")\n\t\t\t\t\t\t\t\t\t.setRegisterNumber(\"0\")\n\t\t\t\t\t\t\t\t\t.setRegistratorNumber(\"0\")\n\t\t\t\t\t\t\t\t\t.setVolumeNumber(\"0\")\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.build()\n\t\t\t\t\t.setAddress(Address.get()\n\t\t\t\t\t\t\t.setRegion(\"Киівська\")\n\t\t\t\t\t\t\t.setDistrict(\"Троєщина\")\n\t\t\t\t\t\t\t.setCity(\"Львів\")\n\t\t\t\t\t\t\t.setStreet(\"Стрийська\")\n\t\t\t\t\t\t\t.setBuilding(\"43\")\n\t\t\t\t\t\t\t.setFlat(\"43\")\n\t\t\t\t\t\t\t.setPostcode(\"34345\")\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.setPassport(Passport.get()\n\t\t\t\t\t\t\t.setSeria(\"КС\")\n\t\t\t\t\t\t\t.setNumber(\"43545\")\n\t\t\t\t\t\t\t.setPublished(\"Львівським\")\n\t\t\t\t\t\t\t);\n\t}", "public double getCommission(){\r\n return commission;\r\n }", "public java.lang.String getStudent_penalty() {\n\t\treturn _primarySchoolStudent.getStudent_penalty();\n\t}", "public java.math.BigDecimal getInsuranceCharge () {\n\t\treturn insuranceCharge;\n\t}", "public BigDecimal getCarProfitMoney() {\n return carProfitMoney;\n }", "@Override\n public int annualSalary() {\n int commission;\n if (getAnnualSales() * getCommissionAmount() > getMaximumCommission()) { //Checks if the commission would be over the max\n commission = (int) getMaximumCommission();\n } else {\n commission = (int) (getAnnualSales() * getCommissionAmount());\n }\n return (this.getSalary() * getMonthInYear()) + commission;\n }", "public EntityImpl getPublicCashPenalty() {\n return (EntityImpl)getEntity(0);\n }", "public DBSequence getPromoBonusId() {\n return (DBSequence)getAttributeInternal(PROMOBONUSID);\n }", "InsurancePremiumAmountType getInsurancePremiumAmount();", "public com.vsp.bl.product.dto.relationshipservice.v002.Commission getCommission() {\n return commission;\n }", "public void setSuperior(String superior) {\n this.superior = superior == null ? null : superior.trim();\n }", "public Person getAccountSupervisoryUser() {\n accountSupervisoryUser = SpringContext.getBean(org.kuali.rice.kim.api.identity.PersonService.class).updatePersonIfNecessary(accountsSupervisorySystemsIdentifier, accountSupervisoryUser);\n return accountSupervisoryUser;\n }", "@Override\n\tpublic int getProfit() {\n\t\treturn 0;\n\t}", "@Override\r\n public String toString() {\r\n return String.format(\"Commission Compensation With:\\nGross Sales of: \" + super.grossSales\r\n + \"\\nCommission Rate of: \" + super.commissionRate + \"\\nEarnings: \" + super.earnings());\r\n }", "public String getSuper()\n {\n ensureLoaded();\n return (m_clzSuper == null ? (String) null : m_clzSuper.getValue());\n }", "public String toString(){\n return super.toString() + \" -- Yearly Bonus: \" + yearlyBonus +\" -- TOTAL Salary = \" + (yearlyBonus + super.getSalary()); \n }", "public String\n getSupervisor() \n {\n return pSupervisor;\n }", "@Override\n public HashMap<String, String> getSupervision(String docLicence) {\n HashMap<String,String> whereConditions = new HashMap<String, String>();\n whereConditions.put(\"doc_license_number\", docLicence);\n HashMap<Integer, HashMap<String, String>> data = dbController.getDoctor(whereConditions);\n\n for (Map.Entry<Integer,HashMap<String,String>> objs : data.entrySet()){\n HashMap<String,String> obj = objs.getValue();\n // get cmid of Supervision\n int cmid = new Integer(obj.get(\"community_member_id\"));\n //Get all the data on it and return\n HashMap<String,String> doctor = getUserByCmid(cmid);\n return doctor;\n }\n return null;\n }", "public Integer getSupervisoryTransmitRate()\r\n\t{\r\n\t\treturn supervisoryTransmitRate;\r\n\t}", "public String getProfitLoss() {\n\n return this.profitLoss;\n }", "@RequiresIdFrom(type = Governor.class)\n\t@Override\n\tpublic String dataRow()\n\t{\n\t\treturn String.format(\"%d,%s\", first, second.getSqlId());\n\t}", "public int getJack() {\n return this.JackMoney;\n }", "public int getBalanceLowGate() {\r\n return balanceLowGate;\r\n }", "public double getScholarshipAmount() {\n return this.scholarshipAmount;\n }", "@Digits(integer=5,fraction=2)\n\t@Override\n\tpublic BigDecimal getSal() {\n\t\treturn super.getSal();\n\t}", "public String getSalaryRange() {\r\n return salaryRange;\r\n }", "public double getProfit() {\n\t\treturn profit;\n\t}", "public double getProfit() {\n\t\treturn profit;\n\t}", "public BigDecimal getBalanceBonus() {\n return balanceBonus;\n }", "public BigDecimal getTeamLeaderMoney() {\n return teamLeaderMoney;\n }", "public String getSaleConsultantCode() {\n\t\treturn saleConsultantCode;\n\t}", "public Deplacement getProchainMouvement();", "public int getMinYearAmount() {\r\n return minYearAmount;\r\n }", "public String getUs1120incomeStmt() {\n\n return this.us1120incomeStmt;\n }", "public void setCommission(BigDecimal commission) {\n this.commission = commission;\n }", "public void setCommission(BigDecimal commission) {\n this.commission = commission;\n }", "public BigDecimal getTOTAL_PRINCIPAL_OUTSTANDIG() {\r\n return TOTAL_PRINCIPAL_OUTSTANDIG;\r\n }", "@Override \npublic double getPaymentAmount() { \n return getCommissionRate() * getGrossSales(); \n}", "public Integer getJretSubper() {\n return jretSubper;\n }", "public double getPaymentAmount() {\n\t\treturn baseSalary+this.grossSales*this.commissionRate;\r\n\t}", "public Object getAnnualPremium() {\n\t\treturn null;\n\t}", "@Override\n\tpublic double getSalud() {\n\t\treturn this.salud;\n\t}", "public BigDecimal getAgentMoney() {\n return agentMoney;\n }", "public Object getMinimumBalance() {\n\treturn null;\n}", "public String getProfitLossName() {\n\n return this.profitLossName;\n }", "int getBonusMoney();", "@Override\r\n\tpublic String employeeSupervisorRole() {\n\t\treturn ((WebUserRole) webContext.get()).getEmployeeSupervisor();\r\n\t}", "public Float getBonusBole() {\n return bonusBole;\n }", "public Integer getStudentNumber()\n {\n return studentNumber;\n }", "@Override\n\tpublic double getInsuranceAmount() {\n\t\treturn 200000;\n\t}", "@Override\n public double getAnnualSalary() {\n return super.getAnnualSalary() + 10000;\n }", "public void setCommission(int commission) {\n\tthis.commission = commission;\n}", "public double getProfit() {\n\n\n double difference = maxRange * GAS_RATE;\n double sum = super.getProfit();\n\n return sum - difference;\n\n }", "public Integer getProposer() {\r\n return proposer;\r\n }", "public BigDecimal getSupBynum2() {\n return supBynum2;\n }", "@Override\r\n\tpublic Integer getMaxInvSrno() {\n\t\tQStnLooseMt qStnLooseMt = QStnLooseMt.stnLooseMt;\r\n\t\tJPAQuery query = new JPAQuery(entityManager);\r\n\t\tInteger retVal = -1;\r\n\t\t\r\n\t\tCalendar date = new GregorianCalendar();\r\n\t\t\r\n\t\tList<Integer> maxSrno = query\r\n\t\t\t.from(qStnLooseMt)\r\n\t\t\t.where(qStnLooseMt.invDate.year().eq(date.get(Calendar.YEAR))).list(qStnLooseMt.srNo.max());\r\n\t\t\r\n\t\tfor (Integer srno : maxSrno) {\r\n\t\t\tretVal = (srno == null ? 0 : srno);\r\n\t\t}\r\n\r\n\t\t\r\n\t\t\r\n\t\treturn retVal;\r\n\t}", "public String toString() {\n\t\treturn String.format( \"%s: %s\\n%s: $%,.2f; %s:%.2f\",\r\n\t\t\t\t \"commission employee\", super.toString(),\r\n\t\t\t\t \"gross sales\", getGrossSales(),\r\n\t\t\t\t \"commission rate\", getCommissionRate() );\r\n\t}", "public String getMajor() \r\n {\r\n return studentMajor;\r\n }", "@Override\n public String toString()\n {\n return String.format(\"%s %s%s: $%,.2f%n%s: %.2f%n\", \"commission\", super\n .toString(), \"gross sales\", getGrossSales(), \"commission rate\",\n getCommissionRate());\n }", "public int getSalary () {\n return salary;\n }", "public void calculateCommission(){\r\n commission = (sales) * 0.15;\r\n //A sales Person makes 15% commission on sales\r\n }", "public int getSalary() {\n return salary;\n }", "public String getSupEntMoney() {\n return supEntMoney;\n }", "@Column(name = \"cash_gained\", precision = 10)\n\t@Override\n\tpublic Integer getCashGained() {\n\t\treturn (Integer) getValue(4);\n\t}", "public double getTotalSalesProfit(){\n return totalSaleProfit;\n }", "@Override\n\tpublic double mencariGajiKotor() {\n\t\treturn super.mencariGajiKotor()+mencariBonus();\n\t}", "public BigDecimal getLiterAllocation();", "public BigDecimal getgOtherSsje() {\n return gOtherSsje;\n }", "public double getBonificacao() {\n\t\tSystem.out.println(\"Chamando o metodo de bonificacao do gerente\");\n\t\treturn super.getBonificacao() + super.salario;\n\t}", "@Override\n public double annualSalary(){\n double bonus = 0.00;\n\n if(currentStockPrice > 50){\n bonus = 30000;\n }\n\n return (super.annualSalary() + bonus);\n }", "@Override\n public double calculatePay ()\n {\n double commissionPay = this.sales * this.rate / 100;\n return commissionPay;\n }", "public String getCommission() {\n return commission.getText();\n }", "public String toString() {\r\n\t\treturn String.format(\"This is a junior employee. ID is %d, hired since %d, and commission is $%,.2f.\\r\\n\", \r\n\t\t\tgetID(), getYearHired(), getCommission());\r\n\t}", "public void setSuperiorIdName(String superiorIdName) {\n this.superiorIdName = superiorIdName;\n }", "public BigDecimal getSpecialContributionMoney() {\n return specialContributionMoney;\n }", "public void setCommission(double commission){\r\n this.commission = commission;\r\n }", "public String getSupEntCorporate() {\n return supEntCorporate;\n }" ]
[ "0.5799867", "0.54739463", "0.54107136", "0.5385745", "0.51818407", "0.51818407", "0.5137909", "0.5082163", "0.50249606", "0.49602497", "0.49339408", "0.49092397", "0.48882794", "0.48877162", "0.48867285", "0.4874189", "0.48612642", "0.48523077", "0.48439807", "0.48407143", "0.4825723", "0.47695452", "0.47637358", "0.47471935", "0.47449014", "0.47404984", "0.47387925", "0.4734577", "0.47211057", "0.47044167", "0.46982974", "0.46853247", "0.46798125", "0.46793643", "0.46759078", "0.46719965", "0.46491003", "0.4634655", "0.46302438", "0.46019906", "0.45962363", "0.4593892", "0.45909953", "0.4590961", "0.4590733", "0.45896584", "0.458799", "0.4584273", "0.45776108", "0.45732996", "0.45732996", "0.4560508", "0.45575458", "0.45555815", "0.45539412", "0.4552711", "0.45503986", "0.4548597", "0.4548597", "0.45479754", "0.45455226", "0.45424148", "0.45393738", "0.45385313", "0.45378804", "0.4531449", "0.45203176", "0.45188278", "0.45157412", "0.45149946", "0.45147678", "0.4511673", "0.45070362", "0.44940507", "0.4490228", "0.44895738", "0.44888797", "0.44883227", "0.44859397", "0.4483952", "0.44791123", "0.4477878", "0.44770914", "0.44762304", "0.44588518", "0.44566804", "0.44562903", "0.44506055", "0.44497782", "0.44484645", "0.44484404", "0.44482794", "0.44459197", "0.44451952", "0.4444319", "0.44429523", "0.44398522", "0.44370592", "0.4432398", "0.4432297" ]
0.64723885
0
This method was generated by MyBatis Generator. This method sets the value of the database column partner_contract_snapshots.superior_commission
public void setSuperiorCommission(String superiorCommission) { this.superiorCommission = superiorCommission == null ? null : superiorCommission.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSuperior(String superior) {\n this.superior = superior == null ? null : superior.trim();\n }", "public String getSuperiorCommission() {\r\n return superiorCommission;\r\n }", "public void setCommission(int commission) {\n\tthis.commission = commission;\n}", "public void setCommission(double commission){\r\n this.commission = commission;\r\n }", "public void setCommission(BigDecimal commission) {\n this.commission = commission;\n }", "public void setCommission(BigDecimal commission) {\n this.commission = commission;\n }", "public void setSuperiorIdName(String superiorIdName) {\n this.superiorIdName = superiorIdName;\n }", "@Override\n\tpublic void setSuperficie(BigDecimal superficie) {\n\t\tmodel.setSuperficie(superficie);\n\t}", "public void secondarySetOrganization(com.hps.july.persistence.Organization anOrganization) throws java.rmi.RemoteException;", "public void setSupervisoryTransmitRate(Integer supervisoryTransmitRate)\r\n\t{\r\n\t\tthis.supervisoryTransmitRate = supervisoryTransmitRate;\r\n\t}", "public void setYearlyBonus(int yearlyBonus){\n this.yearlyBonus = yearlyBonus;\n }", "public void setSupervisor(Supervisor supervisor){\r\n this.supervisor = supervisor;\r\n }", "public void setLiterAllocation (BigDecimal LiterAllocation);", "public String getSuperior() {\n return superior;\n }", "public void setSalary (int newSalary) {\n if (joined == false) {\n this.salary = newSalary;\n }else{\n System.out.println(\"It is not possible to change the salary.\");\n }\n }", "public void setCompany(java.lang.Integer newCompany) {\n\tcompany = newCompany;\n}", "private void setSALIR(int opcionSalida){\n\t\tthis.opcionSalida = opcionSalida;\n\t}", "public void secondarySetSuperregion(com.hps.july.persistence.SuperRegion arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondarySetSuperregion(arg0);\n }", "public void setPercentageProfitPLimit (BigDecimal PercentageProfitPLimit);", "public void setLBR_TaxBaseOwnOperation (BigDecimal LBR_TaxBaseOwnOperation);", "public void setAnnualIncome(int value) {\n this.annualIncome = value;\n }", "public void setPriorYear(BigDecimal priorYear) {\n this.priorYear = priorYear;\n }", "public void setSplitQty (BigDecimal SplitQty)\n{\nif (SplitQty == null) throw new IllegalArgumentException (\"SplitQty is mandatory\");\nset_Value (\"SplitQty\", SplitQty);\n}", "public void setCommission(com.vsp.bl.product.dto.relationshipservice.v002.Commission commission) {\n this.commission = commission;\n }", "public void setAgencyProfit(BigDecimal agencyProfit) {\r\n this.agencyProfit = agencyProfit;\r\n }", "public void setCompanycode(java.lang.Integer newCompany) {\n\tcompanycode = newCompany;\n}", "public void setAccountSupervisoryUser(Person accountSupervisoryUser) {\n this.accountSupervisoryUser = accountSupervisoryUser;\n }", "@Override\r\n\tpublic int getPayCheque() {\n\t\treturn profit+annuelSalary;\r\n\t\t\r\n\t}", "public void setScholarshipAmount(double scholarshipAmount) {\n this.scholarshipAmount = scholarshipAmount;\n }", "public Executive(int salary, String name, String department, int yearlyBonus){\n super(salary,name,department); \n this.yearlyBonus = yearlyBonus;\n }", "public void setBSCA_ProfitPriceLimitEntered (BigDecimal BSCA_ProfitPriceLimitEntered);", "@Override\n \tpublic void setContributedBy(CitagoraAgent contributedBy) {\n \t\t// do nothing if relationship not changed\n \t\tif (this.contributedBy == contributedBy)\n \t\t\treturn; // no change\n \t\t// remove from inverse relationship\n \t\tif (this.contributedBy != null) {\n \t\t\tthis.contributedBy.getAgentReferences().remove(this);\n \t\t}\n \t\t// set forward relationship\n \t\tthis.contributedBy = contributedBy;\n \t\t// set inverse relationship\n \t\tif (contributedBy == null)\n \t\t\treturn;\n \t\tcontributedBy.getAgentReferences().add(this);\n \t}", "public String getSuperiorIdName() {\n return superiorIdName;\n }", "@Column(name = \"SPLIT_PERCENTAGE\")\r\n @Audited\r\n public Integer getSplitPercentage() {\r\n return splitPercentage;\r\n }", "public void companyPayRoll(){\n calcTotalSal();\n updateBalance();\n resetHoursWorked();\n topBudget();\n }", "public void calculateCommission(){\r\n commission = (sales) * 0.15;\r\n //A sales Person makes 15% commission on sales\r\n }", "public void adjustPay(double percentage){\r\n this.commission = getCommission() + getCommission() * percentage;\r\n }", "public void setBSCA_ProfitPriceStdEntered (BigDecimal BSCA_ProfitPriceStdEntered);", "public void setProposer(Integer proposer) {\r\n this.proposer = proposer;\r\n }", "@Override\n\tpublic void setSal(BigDecimal sal) {\n\t\tsuper.setSal(sal);\n\t}", "public void setPrixDeVente(Produit p){\n\t\tif (p.getNomProduit() == \"50%\") {\n\t\t\tthis.prixDeVente.set(0, this.getPrixDeVenteParProduit(p));\n\t\t}\n\t\telse {\n\t\t\tif (p.getNomProduit() == \"60%\") {\n\t\t\t\tthis.prixDeVente.set(1, this.getPrixDeVenteParProduit(p));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.prixDeVente.set(2, this.getPrixDeVenteParProduit(p));\n\t\t\t}\n\t\t}\n\t}", "public void setRESERVE_AMOUNT(BigDecimal RESERVE_AMOUNT) {\r\n this.RESERVE_AMOUNT = RESERVE_AMOUNT;\r\n }", "public void setTotalcommission(Long totalcommission) {\n this.totalcommission = totalcommission;\n }", "@Override\r\n\tpublic Integer editInsuranceComapny(Insurance insurance) {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic double computeMonthlyPremium(double salary) {\n\t\treturn salary*0.08;\n\t}", "public Contribution getContribution(SqlRowSet rowSet)\n {\n rowSet.next();\n\n return new Contribution(rowSet.getInt(1), rowSet.getString(2),\n rowSet.getDouble(3),rowSet.getDate(4));\n }", "public void setCurrentYear(BigDecimal currentYear) {\n this.currentYear = currentYear;\n }", "public void setBalance(){\n balance.setBalance();\n }", "Salesman() {\n super();\n super.setType(EMPLOYEE_TYPE);\n this.setAnnualSales(-1);\n }", "public void setProfit(double profit) {\n\t\tthis.profit = profit;\n\t}", "public final void addIncomeToBudget() {\n for (int i = 0; i < this.getConsumers().size(); i++) {\n if (!this.getPastDueConsumers().contains(this.getConsumers().get(i))) {\n setInitialBudget(getInitialBudget()\n + this.getConsumers().get(i).getContractPrice());\n }\n }\n }", "public BigDecimal getAgencyProfit() {\r\n return agencyProfit;\r\n }", "public void setC_BPartner_ID (int C_BPartner_ID);", "public void secondarySetOrganization(com.hps.july.persistence.Organization arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondarySetOrganization(arg0);\n }", "protected void beforeUpdateSalaryGrade(\n RetailscmUserContext userContext,\n SalaryGrade existed,\n String retailStoreCountryCenterId,\n String salaryGradeId,\n int salaryGradeVersion,\n String property,\n String newValueExpr,\n String[] tokensExpr)\n throws Exception {}", "void secondarySetAgregate(com.hps.july.persistence.StorageCard anAgregate) throws java.rmi.RemoteException;", "public void setTeamLeaderMoney(BigDecimal teamLeaderMoney) {\n this.teamLeaderMoney = teamLeaderMoney;\n }", "public void setSalary(double salary){\r\n this.salary = salary;\r\n }", "@Override\n public double annualSalary(){\n double bonus = 0.00;\n\n if(currentStockPrice > 50){\n bonus = 30000;\n }\n\n return (super.annualSalary() + bonus);\n }", "@Override\n\tpublic void setComm(BigDecimal comm) {\n\t\tsuper.setComm(comm);\n\t}", "void setCapitalPayed(ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount capitalPayed);", "public void setLBR_TaxRateCredit (BigDecimal LBR_TaxRateCredit);", "void setIncome(double newIncome) throws BankException {\n throw new BankException(\"This account does not support this feature\");\n }", "public void setCreditScore( int score ) {\n if ( score < MIN_CREDIT_SCORE || score > MAX_CREDIT_SCORE ) \r\n throw new IllegalArgumentException( \"Customer credit score can't be < \" + MIN_CREDIT_SCORE + \" or > \" + MAX_CREDIT_SCORE + \".\" );\r\n else\r\n\t this.creditScore = score; \r\n }", "@External\n\tpublic void set_super_admin(Address _super_admin) {\n\t\tif (Context.getCaller().equals(Context.getOwner())) {\n\t\t\tthis.super_admin.set(_super_admin);\n\t\t\tthis.admin_list.add(_super_admin);\n\t\t}\n\t\t\n\t}", "public BigDecimal getPriorYear() {\n return priorYear;\n }", "public void setBorneSup() { \n\t\tif(profondeur < ListObjet.size())borneSup = borneInf + ((poids_maximal - poidsActuelle)*ListObjet.get(profondeur).getRapport());\n\t\telse borneSup = borneInf + ((poids_maximal - poidsActuelle)*0);\n\t}", "public void setLBR_TaxAmtCredit (BigDecimal LBR_TaxAmtCredit);", "public void setConvertedSplitQty (BigDecimal ConvertedSplitQty)\n{\nset_Value (\"ConvertedSplitQty\", ConvertedSplitQty);\n}", "protected void setVersion(EmployeeLeave employeeLeave, ResultSet rs, int rowNumber) throws SQLException{\n\t\tInteger version = rs.getInt(EmployeeLeaveTable.COLUMN_VERSION);\n\t\tif(version == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\n\t\temployeeLeave.setVersion(version);\n\t}", "@Override\n public void llenardeposito(){\n this.setCombustible(getTankfuel());\n }", "public Person getAccountSupervisoryUser() {\n accountSupervisoryUser = SpringContext.getBean(org.kuali.rice.kim.api.identity.PersonService.class).updatePersonIfNecessary(accountsSupervisorySystemsIdentifier, accountSupervisoryUser);\n return accountSupervisoryUser;\n }", "public void setBSCA_ProfitPriceLimit (BigDecimal BSCA_ProfitPriceLimit);", "public void setRealProfit(BigDecimal realProfit) {\r\n this.realProfit = realProfit;\r\n }", "public void setOrganization(com.hps.july.persistence.Organization anOrganization) throws java.rmi.RemoteException;", "public void setUWCompany(entity.UWCompany value);", "public void setCommissionRate(double commissionRate) {\n if(commissionRate <= 0.0 || commissionRate >= 1.0)\n throw new IllegalArgumentException(\"Commsiion rate must be between 0.0 and 1.0\");\n\n this.commissionRate = commissionRate;\n }", "public Long getTotalcommission() {\n return totalcommission;\n }", "public void setBalanceBonus(BigDecimal balanceBonus) {\n this.balanceBonus = balanceBonus;\n }", "public void setSuperregion(com.hps.july.persistence.SuperRegion arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().setSuperregion(arg0);\n }", "@Override\n public int annualSalary() {\n int commission;\n if (getAnnualSales() * getCommissionAmount() > getMaximumCommission()) { //Checks if the commission would be over the max\n commission = (int) getMaximumCommission();\n } else {\n commission = (int) (getAnnualSales() * getCommissionAmount());\n }\n return (this.getSalary() * getMonthInYear()) + commission;\n }", "public void setSL_NO(BigDecimal SL_NO) {\r\n this.SL_NO = SL_NO;\r\n }", "public void setSL_NO(BigDecimal SL_NO) {\r\n this.SL_NO = SL_NO;\r\n }", "public void setSL_NO(BigDecimal SL_NO) {\r\n this.SL_NO = SL_NO;\r\n }", "@JsonSetter(\"salary\")\n public void setSalary (int value) { \n this.salary = value;\n notifyObservers(this.salary);\n }", "@Override\n public void calculatePayment()\n {\n this.paymentAmount = annualSalary / SALARY_PERIOD;\n }", "private Builder() {\n super(net.explorys.samhat.z12.r837.X837Pro_2420D_REF_SupervisingProviderSecondaryIdentification.SCHEMA$);\n }", "void setIncome(double amount);", "public void secondarySetDivision(com.hps.july.persistence.Division arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondarySetDivision(arg0);\n }", "public void secondarySetDivision(com.hps.july.persistence.Division arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondarySetDivision(arg0);\n }", "@Override\r\n\tpublic Etat_PrixReserve prixReserveEstAtteint(Enchere enchere) {\n\t\treturn null;\r\n\t}", "public void setEntrustPaid(BigDecimal entrustPaid) {\n this.entrustPaid = entrustPaid;\n }", "public void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);", "public void setjScore(BigDecimal jScore) {\n this.jScore = jScore;\n }", "public void setCollegeRank(int collegeRank)\r\n\t{\r\n\t\tthis.collegeRank = collegeRank;\r\n\t}", "public void setBonusScore() {\r\n count = count+50;\r\n }", "public int getYearlyBonus(){\n return this.yearlyBonus;\n }", "public void setSplitPercentage(Integer splitPercentage) {\r\n this.splitPercentage = splitPercentage;\r\n }", "@RequestMapping(value = \"/commissions\", method = RequestMethod.PUT)\n public ResponseEntity<?> changeCommission(@Valid @RequestBody ApiCommission input, BindingResult result) {\n return super.put(input.getId(),input, result);\n }", "public void secondarySetExpeditor(com.hps.july.persistence.Worker anExpeditor) throws java.rmi.RemoteException;" ]
[ "0.5714257", "0.54235655", "0.52969885", "0.52722985", "0.52513057", "0.52513057", "0.5031435", "0.49695477", "0.48228163", "0.48155233", "0.4812835", "0.48051473", "0.47956645", "0.47434774", "0.4699667", "0.4649668", "0.45979115", "0.4584831", "0.4581245", "0.457331", "0.45660722", "0.4556175", "0.45495605", "0.45477682", "0.45332053", "0.45282623", "0.45160118", "0.45063144", "0.4490114", "0.448563", "0.44709066", "0.4443663", "0.44298613", "0.44024235", "0.43909353", "0.437892", "0.43777692", "0.4377703", "0.43718913", "0.43700135", "0.4348993", "0.43207362", "0.43163624", "0.43127877", "0.43115073", "0.4309571", "0.43079197", "0.42948493", "0.42945048", "0.4294166", "0.429026", "0.42826888", "0.42812863", "0.42782602", "0.4269453", "0.42672715", "0.42628983", "0.42598003", "0.4257183", "0.42566183", "0.42362258", "0.42359653", "0.42303288", "0.42266604", "0.42250326", "0.42234483", "0.42231843", "0.42214435", "0.4220424", "0.42183012", "0.42176282", "0.42173988", "0.42142004", "0.42105827", "0.42088068", "0.42086434", "0.42074236", "0.4207268", "0.4201952", "0.41990367", "0.41962978", "0.41962397", "0.41962397", "0.41962397", "0.41952574", "0.41916028", "0.4188645", "0.41848594", "0.4184815", "0.4184815", "0.4184578", "0.41837904", "0.41818562", "0.41806227", "0.41771486", "0.41725922", "0.41710147", "0.4167588", "0.41674718", "0.41666663" ]
0.6140071
0
This method was generated by MyBatis Generator. This method returns the value of the database column partner_contract_snapshots.introducer_commission
public String getIntroducerCommission() { return introducerCommission; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getTotalcommission() {\n return totalcommission;\n }", "public BigDecimal getCommission() {\n return commission;\n }", "public BigDecimal getCommission() {\n return commission;\n }", "public int getCommission() {\n\treturn commission;\n}", "public String getCommission() {\n return commission.getText();\n }", "public double getCommission(){\r\n return commission;\r\n }", "public void setIntroducerCommission(String introducerCommission) {\r\n this.introducerCommission = introducerCommission == null ? null : introducerCommission.trim();\r\n }", "public String getSuperiorCommission() {\r\n return superiorCommission;\r\n }", "public com.vsp.bl.product.dto.relationshipservice.v002.Commission getCommission() {\n return commission;\n }", "public String getProfitLoss() {\n\n return this.profitLoss;\n }", "BigDecimal getCommission( String officeCode );", "public String consensus_sequence () {\n return(current_contig.consensus.sequence.toString());\r\n }", "public StrColumn getJournalIdCSD() {\n return delegate.getColumn(\"journal_id_CSD\", DelegatingStrColumn::new);\n }", "public void setCommission(BigDecimal commission) {\n this.commission = commission;\n }", "public void setCommission(BigDecimal commission) {\n this.commission = commission;\n }", "@Override\r\n\tpublic int getPayCheque() {\n\t\treturn profit+annuelSalary;\r\n\t\t\r\n\t}", "public void setCommission(int commission) {\n\tthis.commission = commission;\n}", "java.lang.String getBrokerCommission();", "@Override\r\n public String toString() {\r\n return String.format(\"Commission Compensation With:\\nGross Sales of: \" + super.grossSales\r\n + \"\\nCommission Rate of: \" + super.commissionRate + \"\\nEarnings: \" + super.earnings());\r\n }", "public String getIntroduce() {\n return introduce;\n }", "public String getIntroduce() {\n return introduce;\n }", "public int getJack() {\n return this.JackMoney;\n }", "public String getProfitLossName() {\n\n return this.profitLossName;\n }", "public void setCommission(double commission){\r\n this.commission = commission;\r\n }", "public Integer getCocSeqNo() {\n\t\treturn cocSeqNo;\n\t}", "@Query(value = \"select max(sec_no) from section where course_id = ?1\",nativeQuery = true)\n Optional<Integer> currentSecNo(Long courseId);", "public StrColumn getDepReleaseCodeSequence() {\n return delegate.getColumn(\"dep_release_code_sequence\", DelegatingStrColumn::new);\n }", "public java.lang.String getStudent_whoIntroduce() {\n\t\treturn _primarySchoolStudent.getStudent_whoIntroduce();\n\t}", "public String toString() {\n\t\treturn String.format( \"%s: %s\\n%s: $%,.2f; %s:%.2f\",\r\n\t\t\t\t \"commission employee\", super.toString(),\r\n\t\t\t\t \"gross sales\", getGrossSales(),\r\n\t\t\t\t \"commission rate\", getCommissionRate() );\r\n\t}", "public int getCadence() {\n return cadence;\n }", "public void fetchEmployeeDetailsByPromotionCode(EmpCredit empCredit, String promotionCode){\r\n\t\ttry {\r\n\t\t\t String empDetailQuery = \"SELECT HRMS_EMP_OFFC.EMP_TOKEN , HRMS_EMP_OFFC.EMP_FNAME||' '||HRMS_EMP_OFFC.EMP_MNAME||' '||HRMS_EMP_OFFC.EMP_LNAME AS NAME,\" \r\n\t\t\t\t\t+ \" HRMS_CENTER.CENTER_NAME, HRMS_RANK.RANK_NAME,\"\r\n\t\t\t\t\t+ \" NVL(SALGRADE_TYPE,' ') ,SALGRADE_CODE, HRMS_EMP_OFFC.EMP_ID,\" \r\n\t\t\t\t\t+ \" HRMS_SALARY_MISC.GROSS_AMT,DECODE(HRMS_SALARY_MISC.SAL_EPF_FLAG,'Y','true','N','false'), NVL(SAL_ACCNO_REGULAR,' '), \"\r\n\t\t\t\t\t+ \" NVL(SAL_PANNO,' '), NVL(DEPT_NAME,' '), DEPT_ID , TO_CHAR(EMP_REGULAR_DATE,'DD-MM-YYYY'), NVL(CADRE_NAME,' '), HRMS_PROMOTION.PRO_GRADE, NVL(CTC,0)\" \r\n\t\t\t\t\t+ \" FROM HRMS_EMP_OFFC \" \r\n\t\t\t\t\t+ \" INNER JOIN HRMS_PROMOTION ON(HRMS_PROMOTION.EMP_CODE = HRMS_EMP_OFFC.EMP_ID AND HRMS_PROMOTION.PROM_CODE =\"+promotionCode+\")\"\r\n\t\t\t\t\t+ \" INNER JOIN HRMS_RANK ON (HRMS_RANK.RANK_ID=HRMS_PROMOTION.PRO_DESG)\" \r\n\t\t\t\t\t+ \" INNER JOIN HRMS_CENTER ON (HRMS_CENTER.CENTER_ID = HRMS_PROMOTION.PRO_BRANCH)\" \r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_TITLE ON (HRMS_EMP_OFFC.EMP_TITLE_CODE = HRMS_TITLE.TITLE_CODE)\" \r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_DEPT ON (HRMS_DEPT.DEPT_ID = HRMS_PROMOTION.PRO_DEPT )\" \r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_CADRE ON (HRMS_CADRE.CADRE_ID = HRMS_PROMOTION.PRO_GRADE)\"\r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_SALGRADE_HDR ON(HRMS_SALGRADE_HDR.SALGRADE_CODE = HRMS_PROMOTION.PROM_SALGRADE)\"\r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_SALARY_MISC ON(HRMS_SALARY_MISC.EMP_ID = HRMS_EMP_OFFC.EMP_ID)\" \r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_FORMULABUILDER_HDR ON(HRMS_FORMULABUILDER_HDR.FORMULA_ID = HRMS_SALARY_MISC.FORMULA_ID)\";\r\n\t\t\tObject empDetailObj[][] = getSqlModel().getSingleResult(empDetailQuery);\r\n\t\t\t\r\n\t\t\tif(empDetailObj!=null && empDetailObj.length>0){\r\n\t\t\t\r\n\t\t\t\tempCredit.setEmpToken(String.valueOf(empDetailObj[0][0]));\r\n\t\t\t\tempCredit.setEmpName(String.valueOf(empDetailObj[0][1]));\r\n\t\t\t\tempCredit.setEmpCenter(String.valueOf(empDetailObj[0][2]));\r\n\t\t\t\tempCredit.setEmpRank(String.valueOf(empDetailObj[0][3]));\r\n\t\t\t\tempCredit.setGradeName(String.valueOf(empDetailObj[0][4]));\r\n\t\t\t\tempCredit.setGradeId(String.valueOf(empDetailObj[0][5]));\r\n\t\t\t\tempCredit.setEmpId(String.valueOf(empDetailObj[0][6]));\r\n\t\t\t\tempCredit.setGrsAmt(String.valueOf(empDetailObj[0][7]));\r\n\t\t\t\tempCredit.setPfFlag(String.valueOf(empDetailObj[0][8]));\r\n\t\t\t\tempCredit.setEmpAccountNo(String.valueOf(empDetailObj[0][9]));\r\n\t\t\t\tempCredit.setEmpPanNo(String.valueOf(empDetailObj[0][10]));\r\n\t\t\t\tempCredit.setEmpDeptName(String.valueOf(empDetailObj[0][11]));\r\n\t\t\t\tempCredit.setEmpDeptId(String.valueOf(empDetailObj[0][12]));\r\n\t\t\t\tempCredit.setJoiningDate(String.valueOf(empDetailObj[0][13]));\r\n\t\t\t\tempCredit.setEmpGradeName(String.valueOf(empDetailObj[0][14]));\r\n\t\t\t\tempCredit.setEmpGradeId(String.valueOf(empDetailObj[0][15]));\r\n\t\t\t\tempCredit.setCtcAmt(String.valueOf(empDetailObj[0][16]));\r\n\t\t\t\t\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\tfetchIncrementPeriod(empCredit);\r\n\t}", "public java.lang.String getStudent_penalty() {\n\t\treturn _primarySchoolStudent.getStudent_penalty();\n\t}", "public Integer getCocSerialNo() {\n\t\treturn cocSerialNo;\n\t}", "float getCPC() throws SQLException;", "@Override\n public String getDescription() {\n return \"Claim currency reserve\";\n }", "public String getConsultationDetail() {\n String consultationDetail = \"\";\n if (!symptoms.isEmpty()) {\n consultationDetail += extractField(\"Symptoms\", symptoms);\n }\n if (!diagnoses.isEmpty()) {\n consultationDetail += extractField(\"Diagnoses\", diagnoses);\n }\n if (!prescriptions.isEmpty()) {\n consultationDetail += extractField(\"Prescriptions\", prescriptions);\n }\n return consultationDetail;\n }", "public String getRemasterCatalogueNumber() {\r\n\t\treturn this.remasterCatalogueNumber;\r\n\t}", "public Deplacement getProchainMouvement();", "public String getSContractNo() {\n return sContractNo;\n }", "public double calculateCommissionTest() {\n\t\tCommission commission = new Commission(lockPrice, stockPrice, barrelPrice);\n\t\tcommission.processNewSale(locks, stocks, barrels);\n\t\tcommission.calculateSales();\n\t\treturn commission.calculateCommission();\n\t}", "@Override\r\n\tpublic Integer editInsuranceComapny(Insurance insurance) {\n\t\treturn null;\r\n\t}", "public Double getMinimal_enroll_scoring() {\n return minimal_enroll_scoring;\n }", "public BigDecimal getsalehdrseq() {\n return (BigDecimal) getAttributeInternal(SALEHDRSEQ);\n }", "public java.lang.String getPrevious_insolvency_id() {\n return previous_insolvency_id;\n }", "public String getUs1120incomeStmt() {\n\n return this.us1120incomeStmt;\n }", "public StrColumn getJournalIdASTM() {\n return delegate.getColumn(\"journal_id_ASTM\", DelegatingStrColumn::new);\n }", "public BigDecimal getCOVERING_ACC_SL() {\r\n return COVERING_ACC_SL;\r\n }", "public BigDecimal getAgencyProfit() {\r\n return agencyProfit;\r\n }", "@Override\n public String toString()\n {\n return String.format(\"%s %s%s: $%,.2f%n%s: %.2f%n\", \"commission\", super\n .toString(), \"gross sales\", getGrossSales(), \"commission rate\",\n getCommissionRate());\n }", "public void calculateCommission(){\r\n commission = (sales) * 0.15;\r\n //A sales Person makes 15% commission on sales\r\n }", "public StrColumn getJournalIssue() {\n return delegate.getColumn(\"journal_issue\", DelegatingStrColumn::new);\n }", "public String getMajor() \r\n {\r\n return studentMajor;\r\n }", "public DBSequence getPromoBonusId() {\n return (DBSequence)getAttributeInternal(PROMOBONUSID);\n }", "@JsonProperty(\"criticality\")\r\n @JacksonXmlProperty(localName = \"criticality\", isAttribute = true)\r\n public String getCriticality() {\r\n return criticality;\r\n }", "public ScGridColumn<AcUpuTagSummaryVo> newReceptacleSerialNumberColumn()\n {\n return newReceptacleSerialNumberColumn(\"Receptacle Serial Number\");\n }", "public double getCoveredSlipAnnualLease(){//added by Nathalie\n double annualLeaseAmount = COVERED_SLIP_BY_LINEAR_FOOT * lenght;\n return annualLeaseAmount;\n }", "public java.math.BigDecimal getInsuranceCharge () {\n\t\treturn insuranceCharge;\n\t}", "public BigDecimal getSecuenciaExpediente() {\r\n return secuenciaExpediente;\r\n }", "public String get_snmpcommunity()\r\n\t{\r\n\t\treturn this.snmpcommunity;\r\n\t}", "public String getLoyaltyNumber() {\n if (compositePOSTransaction.getLoyaltyCard() != null)\n return compositePOSTransaction.getLoyaltyCard().getLoyaltyNumber();\n else\n return null;\n }", "public String getProvience() {\n\t\treturn provience;\n\t}", "public StrColumn getJournalIdISSN() {\n return delegate.getColumn(\"journal_id_ISSN\", DelegatingStrColumn::new);\n }", "public String getPromotedEducation() {\n if (isGraduatingYear(this)) {\n return toString();\n }\n\n return educationalLevel.name() + \" \" + (educationalGrade + 1);\n }", "public String getStudentsAcademicLevelQuantity()\r\n {\r\n String result = \"\";\r\n\r\n result += \"Number of Freshman: \" + academic_levels[0] + \"\\n\";\r\n result += \"Number of Sophmore: \" + academic_levels[1] + \"\\n\";\r\n result += \"Number of Sophmore: \" + academic_levels[2] + \"\\n\";\r\n result += \"Number of Sophmore: \" + academic_levels[3] + \"\\n\";\r\n\r\n return result;\r\n }", "public int getAnnualIncome() {\n return annualIncome;\n }", "public double getUncoveredSlipAnnualLease(){//added by Nathalie\n double annualLeaseAmount = UNCOVERED_SLIP_BY_LINEAR_FOOT * slipLenght;\n return annualLeaseAmount;\n }", "public StrColumn getSeq() {\n return delegate.getColumn(\"seq\", DelegatingStrColumn::new);\n }", "@Override\r\n\tpublic String getInterest(int ccode) throws Exception {\n\t\treturn session.selectOne(namespace + \".getInterest\",ccode);\r\n\t}", "public static String selectDef1002100057_2(ConnectionProvider connectionProvider, String GL_Journal_IDR) throws ServletException {\n String strSql = \"\";\n strSql = strSql + \n \" SELECT ( COALESCE(TO_CHAR(TO_CHAR(COALESCE(TO_CHAR(table2.DocumentNo), ''))), '') ) as GL_Journal_ID FROM GL_Journal left join (select GL_Journal_ID, DocumentNo from GL_Journal) table2 on (GL_Journal.GL_Journal_ID = table2.GL_Journal_ID) WHERE GL_Journal.isActive='Y' AND GL_Journal.GL_Journal_ID = ? \";\n\n ResultSet result;\n String strReturn = \"\";\n PreparedStatement st = null;\n\n int iParameter = 0;\n try {\n st = connectionProvider.getPreparedStatement(strSql);\n QueryTimeOutUtil.getInstance().setQueryTimeOut(st, SessionInfo.getQueryProfile());\n iParameter++; UtilSql.setValue(st, iParameter, 12, null, GL_Journal_IDR);\n\n result = st.executeQuery();\n if(result.next()) {\n strReturn = UtilSql.getValue(result, \"gl_journal_id\");\n }\n result.close();\n } catch(SQLException e){\n log4j.error(\"SQL error in query: \" + strSql + \"Exception:\"+ e);\n throw new ServletException(\"@CODE=\" + Integer.toString(e.getErrorCode()) + \"@\" + e.getMessage());\n } catch(Exception ex){\n log4j.error(\"Exception in query: \" + strSql + \"Exception:\"+ ex);\n throw new ServletException(\"@CODE=@\" + ex.getMessage());\n } finally {\n try {\n connectionProvider.releasePreparedStatement(st);\n } catch(Exception ignore){\n ignore.printStackTrace();\n }\n }\n return(strReturn);\n }", "public int getCredit() {\n return this.credit;\n }", "public Float getCourseCredit() {\n return courseCredit;\n }", "public String getInsuranceDetailsForResubmission(String dataSet,String centreAcc){\n\t\tDbFunctions dbfunc = new DbFunctions();\n\t\treturn (dbfunc.getInsuranceDetailsForResubmission(dataSet, centreAcc));\n\t\t/*String month= dbfunc.monthYear();\n\t\t\n\t\ttry{\n\t\t\tClass.forName(\"sun.jdbc.odbc.JdbcOdbcDriver\"); \n\t\t\ttestConnection = DriverManager.getConnection(\"jdbc:odbc:Driver={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)};\"\n\t\t\t\t\t+ \"DBQ=\"+ EnvironmentSetup.strDataSheetPath + \";readOnly=false\");\n\t\t\tQueryStatement = EnvironmentSetup.dBConnection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n\t\t\tstrQuery = \"SELECT PrimaryInsuranceCo,PrimarySponsorName,InsurancePlanType,InsurancePlanName from TestData where DataSet = '\" + dataSet + \"'\";\n\t\t\t\n\t\t\ttestResultSet = QueryStatement.executeQuery(strQuery);\n\t\t\ttestResultSet.beforeFirst();\n\t\t\tString PrimaryInsuranceCo =\"\";\n String PrimarySponsorName=\"\";\n String InsurancePlanType=\"\";\n String InsurancePlanName=\"\";\n \n\t\t\twhile (testResultSet.next()){\n\t\t\t\t\n PrimaryInsuranceCo =testResultSet.getString(\"PrimaryInsuranceCo\");\n PrimarySponsorName =testResultSet.getString(\"PrimarySponsorName\");\n InsurancePlanType= testResultSet.getString(\"InsurancePlanType\");\n InsurancePlanName=testResultSet.getString(\"InsurancePlanName\");\n // getInsuranceDetails.put(PrimaryInsuranceCo,PrimarySponsorName,InsurancePlanType,InsurancePlanName);\n //downloadedFile = PrimaryInsuranceCo+ \"-\" +PrimarySponsorName+\"-All-\"+month+\"-\"+InsurancePlanType+\"-\"+InsurancePlanName+\"- Account Group -\"+centreAcc;\n downloadedFile = \"Resubmission-\"+PrimaryInsuranceCo+ \"-\" +PrimarySponsorName+\"-All-\"+month+\"-\"+InsurancePlanType+\"-\"+InsurancePlanName+centreAcc;\n \t\t\n break;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t\tEnvironmentSetup.logger.info(\"Executing Query on Objects: \" + ex.toString());\n\t\t} finally{\n\t\t\ttry {\n\t\t\t\ttestResultSet.close();\n\t\t\t\ttestResultSet=null;\n\t\t\t} catch (SQLException e) {\n\t\t\t\t\t//TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t}\t\t\t\t\t\t\t\n\t\t}\n\t\t//DAMAN-National Health Insurance Company-National Health Insurance Company (DAMAN)-ALL-March2017-DAMAN - NW1-DAMAN - NW1 - GLO. (C0,D0,Dn100,Ch0)- Account Group -Pharmacy\n\t\tSystem.out.println(downloadedFile);\n\t\treturn downloadedFile;\n\t\t*/\n\t\t}", "public String getJournal() {\n return journal;\n }", "public String toStr() {\n\t\treturn getCollege();\n\t}", "@Column(name = \"cash_gained\", precision = 10)\n\t@Override\n\tpublic Integer getCashGained() {\n\t\treturn (Integer) getValue(4);\n\t}", "public BigDecimal getConcentracionmolecula() {\n return concentracionmolecula;\n }", "GICLClaimReserve getClaimReserve(Integer claimId, Integer itemNo, Integer perilCd) throws SQLException;", "@Override\n public double earnings() {\n return salary + commission + quantity;\n }", "public StrColumn getJournalFull() {\n return delegate.getColumn(\"journal_full\", DelegatingStrColumn::new);\n }", "public java.sql.Date getDateemission() {\r\n\t\treturn dateemission;\r\n\t}", "@Override\n\tpublic long getEmployeeDesignationId() {\n\t\treturn _candidate.getEmployeeDesignationId();\n\t}", "public String getMinSeqNo() throws Exception {\n return \"-1\";\n }", "public BigDecimal getjScore() {\n return jScore;\n }", "public String toString() {\r\n\t\treturn String.format(\"This is a junior employee. ID is %d, hired since %d, and commission is $%,.2f.\\r\\n\", \r\n\t\t\tgetID(), getYearHired(), getCommission());\r\n\t}", "public Integer getProfitandlossJyDetailId() {\n return profitandlossJyDetailId;\n }", "public String getMouvement() {\r\n\t\treturn mouvement;\r\n\t}", "public String getConsultDetail() {\n return consultDetail;\n }", "public void setCommission(com.vsp.bl.product.dto.relationshipservice.v002.Commission commission) {\n this.commission = commission;\n }", "public String obtenerCicloLetra() {\n\n if (conectado) {\n try {\n String letra = \"\";\n\n String Query = \"SELECT `CURRENT_CICLO`() AS `CURRENT_CICLO`; \";\n Logy.mi(\"Query: \" + Query);\n Statement st = Conexion.createStatement();\n ResultSet resultSet;\n resultSet = st.executeQuery(Query);\n\n if (resultSet.next()) {\n letra = resultSet.getString(\"CURRENT_CICLO\");\n Logy.m(\"letra obtenida ------------ : \" + letra);\n } else {\n Logy.me(\"no se obtuvieron resultados de CURRENT_CICLO()\");\n }\n\n if (letra != null && (letra.equals(\"A\") || letra.equals(\"B\"))) {\n return letra;\n } else {\n Logy.me(\"error al obtener la letra del CICLO de DB\");\n return null;\n }\n\n } catch (SQLException ex) {\n Logy.me(\"No se pudo consultar CURRENT_CICLO`() de la DB: \" + ex.getMessage());\n return null;\n }\n } else {\n Logy.me(\"No se ha establecido previamente una conexion a la DB\");\n return null;\n }\n }", "public Integer getStudentNumber()\n {\n return studentNumber;\n }", "public String getColl(){\n return this.college;\n }", "public Integer getSale_num() {\n return sale_num;\n }", "public java.lang.String getBrokerCommission() {\n java.lang.Object ref = brokerCommission_;\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 brokerCommission_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getSaleConsultantCode() {\n\t\treturn saleConsultantCode;\n\t}", "double getCommission(String commission) throws IllegalArgumentException;", "@java.lang.Override\n public java.lang.String getBrokerCommission() {\n java.lang.Object ref = brokerCommission_;\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 brokerCommission_ = s;\n return s;\n }\n }", "public int getCSeqNumber() {\n return cSeqHeader.getSequenceNumber();\n }", "public StrColumn getEbiOrganelle() {\n return delegate.getColumn(\"ebi_organelle\", DelegatingStrColumn::new);\n }", "public StrColumn getRecvdInitialDepositionDate() {\n return delegate.getColumn(\"recvd_initial_deposition_date\", DelegatingStrColumn::new);\n }", "public Integer getCommodityQuantity() {\n return commodityQuantity;\n }" ]
[ "0.5865323", "0.55606365", "0.55606365", "0.544902", "0.5364074", "0.512831", "0.510245", "0.5098923", "0.5090856", "0.5005372", "0.49898672", "0.49618062", "0.49382675", "0.48716804", "0.48716804", "0.48640463", "0.4833005", "0.4825454", "0.48067248", "0.47917676", "0.47917676", "0.47813475", "0.47722188", "0.4770125", "0.47551104", "0.47475937", "0.47112742", "0.46992365", "0.46969998", "0.46805033", "0.46756572", "0.46742645", "0.46692637", "0.46623966", "0.464873", "0.46473944", "0.46464428", "0.46459073", "0.46279937", "0.46217924", "0.46199673", "0.46193072", "0.46088615", "0.460673", "0.46060696", "0.4604023", "0.4590072", "0.45790753", "0.45639768", "0.4558581", "0.45555532", "0.45458972", "0.45362636", "0.4533979", "0.453272", "0.4526837", "0.4524774", "0.4521808", "0.45215648", "0.45209348", "0.45186424", "0.45185983", "0.4509364", "0.44978464", "0.44939747", "0.44797176", "0.44796962", "0.44654104", "0.44638035", "0.4459973", "0.4457317", "0.44492063", "0.44489396", "0.44481447", "0.44467327", "0.44423717", "0.44377452", "0.44336602", "0.44260567", "0.4422181", "0.44202557", "0.44187257", "0.44161874", "0.4408636", "0.44055897", "0.44054806", "0.44041973", "0.4402278", "0.43984506", "0.4395476", "0.43880016", "0.43858165", "0.4380243", "0.43787232", "0.4374619", "0.43709552", "0.4368887", "0.43661156", "0.43643305", "0.4363636" ]
0.6410078
0
This method was generated by MyBatis Generator. This method sets the value of the database column partner_contract_snapshots.introducer_commission
public void setIntroducerCommission(String introducerCommission) { this.introducerCommission = introducerCommission == null ? null : introducerCommission.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCommission(int commission) {\n\tthis.commission = commission;\n}", "public void setCommission(double commission){\r\n this.commission = commission;\r\n }", "public void setCommission(BigDecimal commission) {\n this.commission = commission;\n }", "public void setCommission(BigDecimal commission) {\n this.commission = commission;\n }", "public String getIntroducerCommission() {\r\n return introducerCommission;\r\n }", "public void setCommission(com.vsp.bl.product.dto.relationshipservice.v002.Commission commission) {\n this.commission = commission;\n }", "@Override\r\n\tpublic Integer editInsuranceComapny(Insurance insurance) {\n\t\treturn null;\r\n\t}", "public void setCadence(int newValue) {\n cadence = newValue;\n }", "public void setSeqNo (int SeqNo);", "public void setSeqNo (int SeqNo);", "public void setCedula(Integer cedula) {this.cedula = cedula;}", "public void setProfitLoss(String profitLoss) {\n\n this.profitLoss = profitLoss;\n }", "protected void setVersion(EmployeeLeave employeeLeave, ResultSet rs, int rowNumber) throws SQLException{\n\t\tInteger version = rs.getInt(EmployeeLeaveTable.COLUMN_VERSION);\n\t\tif(version == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\n\t\temployeeLeave.setVersion(version);\n\t}", "public Saving bonusProlongationAgreement(String bonusProlongationAgreement) {\n this.bonusProlongationAgreement = bonusProlongationAgreement;\n return this;\n }", "public Long getTotalcommission() {\n return totalcommission;\n }", "public void setTotalcommission(Long totalcommission) {\n this.totalcommission = totalcommission;\n }", "public void setSuperiorCommission(String superiorCommission) {\r\n this.superiorCommission = superiorCommission == null ? null : superiorCommission.trim();\r\n }", "public void adjustPay(double percentage){\r\n this.commission = getCommission() + getCommission() * percentage;\r\n }", "public void setCedula(int value) {\n this.cedula = value;\n }", "public CommissionEmployee(String name, double monthlySales)\n {\n super(name);\n setMonthlySales(monthlySales);\n }", "public void setCadence(int cadence){\n\t\tthis.cadence = cadence;\n\t}", "public void setEstablecimiento(String establecimiento)\r\n/* 119: */ {\r\n/* 120:198 */ this.establecimiento = establecimiento;\r\n/* 121: */ }", "public void setAfford(BigDecimal afford)\n {\n this.afford = afford;\n }", "public void setIntroduce(String introduce) {\n this.introduce = introduce;\n }", "protected void setRemark(EmployeeLeave employeeLeave, ResultSet rs, int rowNumber) throws SQLException{\n\t\tString remark = rs.getString(EmployeeLeaveTable.COLUMN_REMARK);\n\t\tif(remark == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\n\t\temployeeLeave.setRemark(remark);\n\t}", "public BigDecimal getCommission() {\n return commission;\n }", "public BigDecimal getCommission() {\n return commission;\n }", "@JsonProperty(\"criticality\")\r\n @JacksonXmlProperty(localName = \"criticality\", isAttribute = true)\r\n public void setCriticality(String criticality) {\r\n this.criticality = criticality;\r\n }", "public void setC_Decoris_PreSalesLine_ID (int C_Decoris_PreSalesLine_ID);", "public void setCocSeqNo(Integer cocSeqNo) {\n\t\tthis.cocSeqNo = cocSeqNo;\n\t}", "public void calculateCommission(){\r\n commission = (sales) * 0.15;\r\n //A sales Person makes 15% commission on sales\r\n }", "public ModificationEmploye() {\n initComponents();\n \n Employe e = GestionSociete.personnel.get(GestionSociete.rowID);\n \n \n nom.setText(e.getNom());\n prenom.setText(e.getPrenom());\n dateEntree.setText(e.getDateEntree());\n \n DefaultTableModel model = (DefaultTableModel) jTable1.getModel();\n model.setRowCount(0);\n \n for (Map.Entry<String, Competence> entry : GestionSociete.competences.entrySet()){\n model.addRow(new Object[] {entry.getValue().getId(),entry.getValue().getNomFr(),\n entry.getValue().getNomEn(),e.possedeCompetence(entry.getValue())});\n }\n \n }", "void changeCadence(int newValue);", "public void setMinimal_enroll_scoring(Double minimal_enroll_scoring) {\n this.minimal_enroll_scoring = minimal_enroll_scoring;\n }", "public void setPrecioc(int p){\n this.precioc=p;\n \n }", "public static void addcommision(float commision) {\r\n\t\tcommissionSum += commision;\r\n\t}", "public void setSecuenciaExpediente(BigDecimal secuenciaExpediente) {\r\n this.secuenciaExpediente = secuenciaExpediente;\r\n }", "@Then(\"^user selects the accommodation and enters the quantity$\")\n\tpublic void user_selects_the_accommodation_and_enters_the_quantity() throws Throwable {\n\t\tamendFerry.updateExtraAccom();\n\t\tamendFerry.updateExtra();\n\t}", "public void setACC_SL(BigDecimal ACC_SL) {\r\n this.ACC_SL = ACC_SL;\r\n }", "public void setCommencDate(Date commencDate) {\n this.commencDate = commencDate;\n }", "public org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder setCLAPPROVAL(java.lang.CharSequence value) {\n validate(fields()[5], value);\n this.CL_APPROVAL = value;\n fieldSetFlags()[5] = true;\n return this;\n }", "public void setLBR_InterestCharge_ID (int LBR_InterestCharge_ID);", "public void updateInsurance(Insurance insurance) throws DataAccessException;", "public void setC_Invoice_ID (int C_Invoice_ID);", "public void updateStudentCOOP(StudentCOOP toUpdate) {\n openConnection();\n try {\n updateStudent = conn.prepareStatement(\"update app.studentcoop set firstname=?, lastname=?, gender=?, address=?,\"\n + \" contact=?, email=?, workemail=?, notes=?, subject=?, semestercompleted=?, mark=?, wam=?\");\n \n updateStudent.setString(1, toUpdate.getZID());\n updateStudent.setString(1, toUpdate.getFName());\n updateStudent.setString(2, toUpdate.getLName());\n updateStudent.setString(3, toUpdate.getGEnder());\n updateStudent.setString(4, toUpdate.getADdress());\n updateStudent.setInt(5, toUpdate.getCOntact());\n updateStudent.setString(6, toUpdate.getEMail());\n updateStudent.setString(7, toUpdate.getWOrkemail());\n updateStudent.setString(8, toUpdate.getNOtes());\n updateStudent.setString(9, toUpdate.getSUbject());\n updateStudent.setInt(10, toUpdate.getSEmestercompleted());\n updateStudent.setDouble(11, toUpdate.getMArk());\n updateStudent.setDouble(12, toUpdate.getWAm());\n\n updateStudent.executeUpdate();\n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n closeConnection();\n }", "public void setData(LeaveEncashmentProcess leaveEncashProcess) {\n\t\ttry {\r\n\t\t\tString query = \" SELECT NVL(DIV_NAME,' '),\" +\t\t\t\t//0\r\n\t\t\t\t\t\"TO_CHAR(ENCASHMENT_PROCESS_DATE,'DD-MM-YYYY'),\" +\t//1\r\n\t\t\t\t\t\"DECODE(ENCASHMENT_PROCESS_FLAG,'Y','LOCK','N','UNLOCK'),\" +\t//2\r\n\t\t\t\t\t\"DECODE(ENCASHMENT_INCLUDE_SAL_MONTH,'1','January','2','February','3','March','4','April','5','May','6','June','7','July','8','August','9','September','10','October','11','November','12','December'), \" +\r\n\t\t\t\t\t\"ENCASHMENT_INCLUDE_SAL_YEAR,\" +\t\t//4\r\n\t\t\t\t\t\"NVL(TYPE_NAME,' '), \" + \t//5\r\n\t\t\t\t\t\" ENCASHMENT_PROCESS_DIVISION, \" +\t//6\r\n\t\t\t\t\t\"ENCASHMENT_PROCESS_DEPT, \" + \t//7\r\n\t\t\t\t\t\" ENCASHMENT_PROCESS_BRANCH, \" +\t//8\r\n\t\t\t\t\t\"ENCASHMENT_PROCESS_EMPTYPE, \" + \t//9\r\n\t\t\t\t\t\" ENCASHMENT_INCLUDE_SAL_FLAG,\" +\t//10\r\n\t\t\t\t\t\"ENCASHMENT_INCLUDE_SAL_MONTH,\" +\t//11\r\n\t\t\t\t\t\"HRMS_ENCASHMENT_PROCESS_HDR.ENCASHMENT_PROCESS_LEAVETYPE,\" +\t\t\t//12\r\n\t\t\t\t\t\"ENCASHMENT_PROCESS_CODE,\" +\t\t//13\r\n\t\t\t\t\t\"NVL(ENCASHMENT_EXCESS_BAL,0), \" + \t//14\r\n\t\t\t\t\t\"ENCASHMENT_CREDIT_CODE ,\" +\t\t//15\r\n\t\t\t\t\t\"CREDIT_NAME, \" +\t\t\t\t\t//16\r\n\t\t\t\t\t\"HRMS_ENCASHMENT_PROCESS_HDR.ENCASHMENT_PROCESS_PAYBILL, \" +\t//17\r\n\t\t\t\t\t\"HRMS_ENCASHMENT_PROCESS_HDR.ENCASHMENT_PROCESS_GRADE, \" +\t\t\t//18\r\n\t\t\t\t\t\"HRMS_ENCASHMENT_PROCESS_HDR.ENCASHMENT_PROCESS_COSTCENTER,\" +\t//19\r\n\t\t\t\t\t\"HRMS_ENCASHMENT_PROCESS_HDR.ENCASHMENT_DEDUCT_TAX_FLAG\" \t//20\r\n\t\t\t\t\t+ \" FROM HRMS_ENCASHMENT_PROCESS_HDR \"\r\n\t\t\t\t\t+ \" INNER JOIN HRMS_DIVISION ON(HRMS_DIVISION.DIV_ID=HRMS_ENCASHMENT_PROCESS_HDR.ENCASHMENT_PROCESS_DIVISION) \"\r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_EMP_TYPE ON HRMS_EMP_TYPE.TYPE_ID = HRMS_ENCASHMENT_PROCESS_HDR.ENCASHMENT_PROCESS_EMPTYPE \"\r\n\t\t\t\t\t+ \"\tLEFT JOIN HRMS_CREDIT_HEAD ON HRMS_CREDIT_HEAD.CREDIT_CODE = HRMS_ENCASHMENT_PROCESS_HDR.ENCASHMENT_CREDIT_CODE \"\r\n\t\t\t\t\t+ \" WHERE ENCASHMENT_PROCESS_CODE = \"\r\n\t\t\t\t\t+ leaveEncashProcess.getProcessCode()\r\n\t\t\t\t\t+ \" \"\r\n\t\t\t\t\t+ \" ORDER BY ENCASHMENT_PROCESS_CODE \";\r\n\r\n\t\t\tObject data[][] = getSqlModel().getSingleResult(query);\r\n\r\n\t\t\tif (data != null && data.length > 0) {\r\n\t\t\t\tleaveEncashProcess.setDivName(checkNull(String.valueOf(data[0][0])));\r\n\t\t\t\tleaveEncashProcess.setProcessingDate(checkNull(String.valueOf(data[0][1])));\r\n\t\t\t\tleaveEncashProcess.setLockFlag(checkNull(String.valueOf(data[0][2])));\r\n\t\t\t\tleaveEncashProcess.setSalarymonth(checkNull(String.valueOf(data[0][3])));\r\n\t\t\t\tleaveEncashProcess.setSalaryyear(checkNull(String.valueOf(data[0][4])));\r\n\t\t\t\tleaveEncashProcess.setEmpTypeName(checkNull(String.valueOf(data[0][5])));\r\n\t\t\t\tleaveEncashProcess.setDivCode(checkNull(String.valueOf(data[0][6])));\r\n\t\t\t\tleaveEncashProcess.setDeptCode(checkNull(String.valueOf(data[0][7])));\r\n\t\t\t\tleaveEncashProcess.setBranchCode(checkNull(String.valueOf(data[0][8])));\r\n\t\t\t\tleaveEncashProcess.setEmpTypeCode(checkNull(String.valueOf(data[0][9])));\r\n\t\t\t\t\r\n\t\t\t\tif(checkNull(String.valueOf(data[0][10])).equals(\"Y\")){\r\n\t\t\t\t\tleaveEncashProcess.setSalaryCheck(\"true\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tleaveEncashProcess.setSalaryCheck(\"false\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tleaveEncashProcess.setSalarymonth(checkNull(String.valueOf(data[0][11])));\r\n\t\t\t\tleaveEncashProcess.setLevCode(checkNull(String.valueOf(data[0][12])));\r\n\t\t\t\tleaveEncashProcess.setProcessCode(checkNull(String.valueOf(data[0][13])));\r\n\t\t\t\tleaveEncashProcess.setGreaterEncashBal(checkNull(String.valueOf(data[0][14])));\r\n\t\t\t\tleaveEncashProcess.setCreditCode(checkNull(String.valueOf(data[0][15])));\r\n\t\t\t\tleaveEncashProcess.setCreditType(checkNull(String.valueOf(data[0][16])));\r\n\t\t\t\t\r\n\t\t\t\tleaveEncashProcess.setPayBillNo(checkNull(String.valueOf(data[0][17])));\r\n\t\t\t\tleaveEncashProcess.setCadreCode(checkNull(String.valueOf(data[0][18])));\r\n\t\t\t\tleaveEncashProcess.setCostCenterCode(checkNull(String.valueOf(data[0][19])));\r\n\t\t\t\t\r\n\t\t\t\tif(checkNull(String.valueOf(data[0][20])).equals(\"Y\")){\r\n\t\t\t\t\tleaveEncashProcess.setDeductIncomeTax(\"true\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tleaveEncashProcess.setDeductIncomeTax(\"false\");\r\n\t\t\t\t}\r\n\t\t\t\tif(!checkNull(String.valueOf(data[0][7])).equals(\"\")){\r\n\t\t\t\t\tString deptQuery = \" SELECT DEPT_NAME FROM HRMS_DEPT WHERE HRMS_DEPT.DEPT_ID IN ( \" + checkNull(String.valueOf(data[0][7])) + \" ) \" ;\r\n\t\t\t\t\tObject deptData[][] = getSqlModel().getSingleResult(deptQuery);\r\n\t\t\t\t\tif (deptData != null && deptData.length > 0) {\r\n\t\t\t\t\t\tString deptString = \"\"; \r\n\t\t\t\t\t\tfor (int i = 0; i < deptData.length; i++) {\r\n\t\t\t\t\t\t\tdeptString += deptData[i][0];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tleaveEncashProcess.setDeptName(deptString);\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(!checkNull(String.valueOf(data[0][8])).equals(\"\")){\r\n\t\t\t\t\tString branQuery = \" SELECT NVL(CENTER_NAME,' ') FROM HRMS_CENTER WHERE HRMS_CENTER.CENTER_ID IN ( \" + checkNull(String.valueOf(data[0][8])) + \" ) \" ;\r\n\t\t\t\t\tObject branData[][] = getSqlModel().getSingleResult(branQuery);\r\n\t\t\t\t\tif (branData != null && branData.length > 0) {\r\n\t\t\t\t\t\tString branString = \"\"; \r\n\t\t\t\t\t\tfor (int i = 0; i < branData.length; i++) {\r\n\t\t\t\t\t\t\tbranString += branData[i][0];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tleaveEncashProcess.setBranchName(branString);\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(!checkNull(String.valueOf(data[0][17])).equals(\"\")){\r\n\t\t\t\t\tString payBillQuery = \" SELECT NVL(HRMS_PAYBILL.PAYBILL_GROUP,' ') FROM HRMS_PAYBILL WHERE HRMS_PAYBILL.PAYBILL_ID IN ( \" + checkNull(String.valueOf(data[0][17])) + \" ) \" ;\r\n\t\t\t\t\tObject payBillData[][] = getSqlModel().getSingleResult(payBillQuery);\r\n\t\t\t\t\tif (payBillData != null && payBillData.length > 0) {\r\n\t\t\t\t\t\tString payBillString = \"\"; \r\n\t\t\t\t\t\tfor (int i = 0; i < payBillData.length; i++) {\r\n\t\t\t\t\t\t\tpayBillString += payBillData[i][0];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tleaveEncashProcess.setPayBillName(payBillString);\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(!checkNull(String.valueOf(data[0][18])).equals(\"\")){\r\n\t\t\t\t\tString gradeQuery = \" SELECT NVL(HRMS_CADRE.CADRE_NAME,' ') FROM HRMS_CADRE WHERE HRMS_CADRE.CADRE_ID IN ( \" + checkNull(String.valueOf(data[0][18])) + \" ) \" ;\r\n\t\t\t\t\tObject gradeData[][] = getSqlModel().getSingleResult(gradeQuery);\r\n\t\t\t\t\tif (gradeData != null && gradeData.length > 0) {\r\n\t\t\t\t\t\tString gradeString = \"\"; \r\n\t\t\t\t\t\tfor (int i = 0; i < gradeData.length; i++) {\r\n\t\t\t\t\t\t\tgradeString += gradeData[i][0];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tleaveEncashProcess.setCadreName(gradeString);\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(!checkNull(String.valueOf(data[0][19])).equals(\"\")){\r\n\t\t\t\t\tString costCenterQuery = \" SELECT NVL(HRMS_COST_CENTER.COST_CENTER_NAME,' ') FROM HRMS_COST_CENTER WHERE HRMS_COST_CENTER.COST_CENTER_ID IN ( \" + checkNull(String.valueOf(data[0][19])) + \" ) \" ;\r\n\t\t\t\t\tObject costCenterData[][] = getSqlModel().getSingleResult(costCenterQuery);\r\n\t\t\t\t\tif (costCenterData != null && costCenterData.length > 0) {\r\n\t\t\t\t\t\tString costCenterString = \"\"; \r\n\t\t\t\t\t\tfor (int i = 0; i < costCenterData.length; i++) {\r\n\t\t\t\t\t\t\tcostCenterString += costCenterData[i][0];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tleaveEncashProcess.setCostCenterName(costCenterString);\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(!checkNull(String.valueOf(data[0][12])).equals(\"\")){\r\n\t\t\t\tString leaveQuery = \" SELECT NVL(HRMS_LEAVE.LEAVE_NAME,' ') FROM HRMS_LEAVE WHERE HRMS_LEAVE.LEAVE_ID IN ( \" + checkNull(String.valueOf(data[0][12])) + \" ) \" ;\r\n\t\t\t\tObject leaveData[][] = getSqlModel().getSingleResult(leaveQuery);\r\n\t\t\t\tif (leaveData != null && leaveData.length > 0) {\r\n\t\t\t\t\tString leaveString = \"\"; \r\n\t\t\t\t\tfor (int i = 0; i < leaveData.length; i++) {\r\n\t\t\t\t\t\tleaveString += leaveData[i][0];\r\n\t\t\t\t\t}\r\n\t\t\t\t\tleaveEncashProcess.setLevType(leaveString);\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t/*\r\n\t\t\t\t * leaveEncashProcess.setEmployeeToken(checkNull(String\r\n\t\t\t\t * .valueOf(data[0][17])));\r\n\t\t\t\t * leaveEncashProcess.setEmployeeName(checkNull(String\r\n\t\t\t\t * .valueOf(data[0][18])));\r\n\t\t\t\t * leaveEncashProcess.setEmployeeCode(checkNull(String\r\n\t\t\t\t * .valueOf(data[0][19])));\r\n\t\t\t\t */\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public int Edbroker(Long broker_id, String firstname, String lastname,\r\n\t\tString address, String gender, String eMail, Long phone,\r\n\t\tString experience) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"update broker set first_name='\"+firstname+\"',last_name='\"+lastname+\"',address='\"+address+\"',gender='\"+gender+\"',e_mail='\"+eMail+\"',phone=\"+phone+\",experience='\"+experience+\"' where broker_id=\"+broker_id+\"\");\r\n\treturn i;\r\n}", "public void setLiterAllocation (BigDecimal LiterAllocation);", "public void setAcknowledgment(Acknowledgment acknowledgment) {\n\t\tthis.acknowledgment = acknowledgment;\n\t\t\n\t\tif (this.acknowledgment.getANumber() == null) {\n//\t\t\tisNew = true;\n\t\t\taNumberField.setText(\"0\");\n\t\t} else {\n\t\t\taNumberField.setText(acknowledgment.getANumber());\n\t\t}\n\t\t\n\t\tif (acknowledgment.getSoldToAddress() != null) {\n\t\t\tsoldToNameLabel.setText(acknowledgment.getSoldToAddress().getName());\n\t\t\tsoldToStreetLabel.setText(acknowledgment.getSoldToAddress().getStreet1());\n\t\t\tsoldToComboLabel.setText(acknowledgment.getSoldToAddress().getCity() + \", \" + \n\t\t\t\t\t\t\t\t\t\tacknowledgment.getSoldToAddress().getState() + \" \" +\n\t\t\t\t\t\t\t\t\t\tacknowledgment.getSoldToAddress().getZip() + \" \" +\n\t\t\t\t\t\t\t\t\t\tacknowledgment.getSoldToAddress().getCountry());\n\t\t} else {\n\t\t\tsoldToNameLabel.setText(\"\");\n\t\t\tsoldToStreetLabel.setText(\"\");\n\t\t\tsoldToComboLabel.setText(\"\");\n\t\t}\n\t\t\n\t\tif (acknowledgment.getShipToAddress() != null) {\n\t\t\tshipToNameLabel.setText(acknowledgment.getShipToAddress().getName());\n\t\t\tshipToStreetLabel.setText(acknowledgment.getShipToAddress().getStreet1());\n\t\t\tshipToComboLabel.setText(acknowledgment.getShipToAddress().getCity() + \", \" + \n\t\t\t\t\t\t\t\t\t\tacknowledgment.getShipToAddress().getState() + \" \" +\n\t\t\t\t\t\t\t\t\t\tacknowledgment.getShipToAddress().getZip() + \" \" +\n\t\t\t\t\t\t\t\t\t\tacknowledgment.getShipToAddress().getCountry());\n\t\t} else {\n\t\t\tshipToNameLabel.setText(\"\");\n\t\t\tshipToStreetLabel.setText(\"\");\n\t\t\tshipToComboLabel.setText(\"\");\n\t\t}\n\t\t\n\t\tif (acknowledgment.getDate() != null) {\n\t\t\tdateField.setValue(DateUtil.formatToLocalDate(acknowledgment.getDate()));\n\t\t}\n\t\t\n\t\tnotifyField.setText(acknowledgment.getNotify());\n\t\ttagField.setText(acknowledgment.getTag());\n\t\t\n\t\tif (acknowledgment.getDateOrderReceived() != null) {\n\t\t\tdateOrderReceivedField.setValue(DateUtil.formatToLocalDate(acknowledgment.getDateOrderReceived()));\n\t\t}\n\t\t\n\t\tcustomerOrderNumberField.setText(acknowledgment.getCustomerOrderNumber());\n\t\t\n\t\tif (acknowledgment.getApproxShipDate() != null) {\n\t\t\tapproxShipDateField.setValue(DateUtil.formatToLocalDate(acknowledgment.getApproxShipDate()));\n\t\t}\n\t\t\n\t\tshippingCostField.setText(acknowledgment.getShippingCost());\n\t\tfobField.setText(acknowledgment.getFob());\n\t\tshipViaField.setText(acknowledgment.getShipVia());\n\t\tdocumentsField.setText(acknowledgment.getDocuments());\n\t\tpriceField.setText(acknowledgment.getPrice());\n\t\t\n\t\tproductTable.setItems(acknowledgment.getProductData());\n\t\t\n\t\tprodQuantityColumn.setCellValueFactory(cellData -> cellData.getValue().quantityProperty());\n\t\tprodDescriptionColumn.setCellValueFactory(cellData -> cellData.getValue().descriptionProperty());\n\t\t\n\t\tprodQuantityColumn.setStyle( \"-fx-alignment: CENTER;\");\n\t\tprodDescriptionColumn.setStyle( \"-fx-alignment: CENTER;\");\n\t}", "@Override\n public String getDescription() {\n return \"Claim currency reserve\";\n }", "public void setConcern(long concern);", "public static void updateManualEncumAppAmt(EscmProposalMgmt proposalmgmt, Boolean iscancel) {\n\n try {\n EscmProposalMgmt baseProposalObj = proposalmgmt.getEscmBaseproposal();\n OBContext.setAdminMode();\n List<EscmProposalmgmtLine> prolineList = proposalmgmt.getEscmProposalmgmtLineList();\n // checking with propsal line\n if (baseProposalObj == null) {\n for (EscmProposalmgmtLine proposalline : prolineList) {\n if (!proposalline.isSummary()) {\n EfinBudgetManencumlines encline = proposalline.getEfinBudgmanencumline();\n if (encline != null) {\n if (\"PAWD\".equals(proposalmgmt.getProposalstatus())) {\n encline.setAPPAmt(encline.getAPPAmt().subtract(proposalline.getAwardedamount()));\n } else {\n encline.setAPPAmt(encline.getAPPAmt().subtract(proposalline.getLineTotal()));\n }\n OBDal.getInstance().save(encline);\n }\n if (iscancel) {\n // BidManagementDAO.insertEncumbranceModification(encline,\n // proposalline.getLineTotal().negate(), null, \"PRO\", null, null);\n } else {\n proposalline.setEfinBudgmanencumline(null);\n OBDal.getInstance().save(proposalline);\n }\n }\n }\n } else if (baseProposalObj != null) {\n for (EscmProposalmgmtLine lines : prolineList) {\n if (!lines.isSummary()) {\n if (lines.getStatus() == null) {\n EfinBudgetManencumlines encline = lines.getEscmOldProposalline()\n .getEfinBudgmanencumline();\n // if reserved then consider new proposal line total\n BigDecimal amountDiffernce = lines.getEscmOldProposalline().getLineTotal()\n .subtract(lines.getLineTotal());\n\n // update in remaining amount\n EfinBudgetManencumlines encumLn = Utility.getObject(EfinBudgetManencumlines.class,\n encline.getId());\n encumLn.setAPPAmt(encumLn.getAPPAmt().add(amountDiffernce));\n encumLn.setRemainingAmount(encumLn.getRemainingAmount().subtract(amountDiffernce));\n OBDal.getInstance().save(encumLn);\n } else if (lines.getStatus() != null && lines.getEscmOldProposalline() != null\n && lines.getEscmOldProposalline().getStatus() == null) {\n EfinBudgetManencumlines encline = lines.getEscmOldProposalline()\n .getEfinBudgmanencumline();\n // if reserved then consider new proposal line total\n BigDecimal amountDiffernce = lines.getEscmOldProposalline().getLineTotal();\n\n // update in remaining amount\n EfinBudgetManencumlines encumLn = Utility.getObject(EfinBudgetManencumlines.class,\n encline.getId());\n encumLn.setAPPAmt(encumLn.getAPPAmt().add(amountDiffernce));\n encumLn.setRemainingAmount(encumLn.getRemainingAmount().subtract(amountDiffernce));\n OBDal.getInstance().save(encumLn);\n }\n }\n }\n }\n\n } catch (final Exception e) {\n log.error(\"Exception in updateManualEncumAppAmt after Reject : \", e);\n } finally {\n OBContext.restorePreviousMode();\n }\n }", "public void setSplitQty (BigDecimal SplitQty)\n{\nif (SplitQty == null) throw new IllegalArgumentException (\"SplitQty is mandatory\");\nset_Value (\"SplitQty\", SplitQty);\n}", "public Builder setBrokerCommission(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n brokerCommission_ = value;\n onChanged();\n return this;\n }", "public void updateAccountingSystem(Sale sale)\n {\n \n }", "public SalesEmployee(String firstName, String lastName, String number, double salary, double commission){\r\n this.firstname = firstName;\r\n this.lastname = lastName;\r\n this.number = number;\r\n this.salary = salary;\r\n this.commission = commission;\r\n }", "public void setCuentaContableCierre(CuentaContable cuentaContableCierre)\r\n/* 103: */ {\r\n/* 104:119 */ this.cuentaContableCierre = cuentaContableCierre;\r\n/* 105: */ }", "public void setCOVERING_ACC_SL(BigDecimal COVERING_ACC_SL) {\r\n this.COVERING_ACC_SL = COVERING_ACC_SL;\r\n }", "@Transactional\n\tpublic void updateConsumer() {\n\t\t\n\t}", "public void setCredit(int credit) {\n this.credit = credit;\n }", "public void setsalehdrseq(BigDecimal value) {\n setAttributeInternal(SALEHDRSEQ, value);\n }", "public void setM_Production_ID (int M_Production_ID);", "public void setClaimLineNumber(java.math.BigDecimal value) {\n __getInternalInterface().setFieldValue(CLAIMLINENUMBER_PROP.get(), value);\n }", "public int getCommission() {\n\treturn commission;\n}", "public CensoSeccionE() {\n this.columnName1=\"\";\n this.columnName2=\"\";\n this.Total_institu=0;\n this.Total_severo=0;\n }", "public void setClaimLineNumber(java.math.BigDecimal value) {\n __getInternalInterface().setFieldValue(CLAIMLINENUMBER_PROP.get(), value);\n }", "public void setCreditScore( int score ) {\n if ( score < MIN_CREDIT_SCORE || score > MAX_CREDIT_SCORE ) \r\n throw new IllegalArgumentException( \"Customer credit score can't be < \" + MIN_CREDIT_SCORE + \" or > \" + MAX_CREDIT_SCORE + \".\" );\r\n else\r\n\t this.creditScore = score; \r\n }", "@Override\n\tpublic void setComm(BigDecimal comm) {\n\t\tsuper.setComm(comm);\n\t}", "public void setC_BPartner_ID (int C_BPartner_ID);", "public void setCSeq\n (CSeqHeader cseqHeader) {\n this.setHeader(cseqHeader);\n }", "public void setAnnouncement(String announcement);", "void setSequenceNumber(int sequenceNumber);", "public final void addIncomeToBudget() {\n for (int i = 0; i < this.getConsumers().size(); i++) {\n if (!this.getPastDueConsumers().contains(this.getConsumers().get(i))) {\n setInitialBudget(getInitialBudget()\n + this.getConsumers().get(i).getContractPrice());\n }\n }\n }", "public void setSequenceNumberForHibernate(INT sequenceNumber) {\n _sequenceNumber = sequenceNumber;\n }", "public void setConsortium(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CONSORTIUM_PROP.get(), value);\n }", "public void fetchEmployeeDetailsByPromotionCode(EmpCredit empCredit, String promotionCode){\r\n\t\ttry {\r\n\t\t\t String empDetailQuery = \"SELECT HRMS_EMP_OFFC.EMP_TOKEN , HRMS_EMP_OFFC.EMP_FNAME||' '||HRMS_EMP_OFFC.EMP_MNAME||' '||HRMS_EMP_OFFC.EMP_LNAME AS NAME,\" \r\n\t\t\t\t\t+ \" HRMS_CENTER.CENTER_NAME, HRMS_RANK.RANK_NAME,\"\r\n\t\t\t\t\t+ \" NVL(SALGRADE_TYPE,' ') ,SALGRADE_CODE, HRMS_EMP_OFFC.EMP_ID,\" \r\n\t\t\t\t\t+ \" HRMS_SALARY_MISC.GROSS_AMT,DECODE(HRMS_SALARY_MISC.SAL_EPF_FLAG,'Y','true','N','false'), NVL(SAL_ACCNO_REGULAR,' '), \"\r\n\t\t\t\t\t+ \" NVL(SAL_PANNO,' '), NVL(DEPT_NAME,' '), DEPT_ID , TO_CHAR(EMP_REGULAR_DATE,'DD-MM-YYYY'), NVL(CADRE_NAME,' '), HRMS_PROMOTION.PRO_GRADE, NVL(CTC,0)\" \r\n\t\t\t\t\t+ \" FROM HRMS_EMP_OFFC \" \r\n\t\t\t\t\t+ \" INNER JOIN HRMS_PROMOTION ON(HRMS_PROMOTION.EMP_CODE = HRMS_EMP_OFFC.EMP_ID AND HRMS_PROMOTION.PROM_CODE =\"+promotionCode+\")\"\r\n\t\t\t\t\t+ \" INNER JOIN HRMS_RANK ON (HRMS_RANK.RANK_ID=HRMS_PROMOTION.PRO_DESG)\" \r\n\t\t\t\t\t+ \" INNER JOIN HRMS_CENTER ON (HRMS_CENTER.CENTER_ID = HRMS_PROMOTION.PRO_BRANCH)\" \r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_TITLE ON (HRMS_EMP_OFFC.EMP_TITLE_CODE = HRMS_TITLE.TITLE_CODE)\" \r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_DEPT ON (HRMS_DEPT.DEPT_ID = HRMS_PROMOTION.PRO_DEPT )\" \r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_CADRE ON (HRMS_CADRE.CADRE_ID = HRMS_PROMOTION.PRO_GRADE)\"\r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_SALGRADE_HDR ON(HRMS_SALGRADE_HDR.SALGRADE_CODE = HRMS_PROMOTION.PROM_SALGRADE)\"\r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_SALARY_MISC ON(HRMS_SALARY_MISC.EMP_ID = HRMS_EMP_OFFC.EMP_ID)\" \r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_FORMULABUILDER_HDR ON(HRMS_FORMULABUILDER_HDR.FORMULA_ID = HRMS_SALARY_MISC.FORMULA_ID)\";\r\n\t\t\tObject empDetailObj[][] = getSqlModel().getSingleResult(empDetailQuery);\r\n\t\t\t\r\n\t\t\tif(empDetailObj!=null && empDetailObj.length>0){\r\n\t\t\t\r\n\t\t\t\tempCredit.setEmpToken(String.valueOf(empDetailObj[0][0]));\r\n\t\t\t\tempCredit.setEmpName(String.valueOf(empDetailObj[0][1]));\r\n\t\t\t\tempCredit.setEmpCenter(String.valueOf(empDetailObj[0][2]));\r\n\t\t\t\tempCredit.setEmpRank(String.valueOf(empDetailObj[0][3]));\r\n\t\t\t\tempCredit.setGradeName(String.valueOf(empDetailObj[0][4]));\r\n\t\t\t\tempCredit.setGradeId(String.valueOf(empDetailObj[0][5]));\r\n\t\t\t\tempCredit.setEmpId(String.valueOf(empDetailObj[0][6]));\r\n\t\t\t\tempCredit.setGrsAmt(String.valueOf(empDetailObj[0][7]));\r\n\t\t\t\tempCredit.setPfFlag(String.valueOf(empDetailObj[0][8]));\r\n\t\t\t\tempCredit.setEmpAccountNo(String.valueOf(empDetailObj[0][9]));\r\n\t\t\t\tempCredit.setEmpPanNo(String.valueOf(empDetailObj[0][10]));\r\n\t\t\t\tempCredit.setEmpDeptName(String.valueOf(empDetailObj[0][11]));\r\n\t\t\t\tempCredit.setEmpDeptId(String.valueOf(empDetailObj[0][12]));\r\n\t\t\t\tempCredit.setJoiningDate(String.valueOf(empDetailObj[0][13]));\r\n\t\t\t\tempCredit.setEmpGradeName(String.valueOf(empDetailObj[0][14]));\r\n\t\t\t\tempCredit.setEmpGradeId(String.valueOf(empDetailObj[0][15]));\r\n\t\t\t\tempCredit.setCtcAmt(String.valueOf(empDetailObj[0][16]));\r\n\t\t\t\t\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\tfetchIncrementPeriod(empCredit);\r\n\t}", "public void setConsortium(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CONSORTIUM_PROP.get(), value);\n }", "public ScGridColumn<AcUpuTagSummaryVo> newReceptacleSerialNumberColumn()\n {\n return newReceptacleSerialNumberColumn(\"Receptacle Serial Number\");\n }", "public void setAnnualIncome(int value) {\n this.annualIncome = value;\n }", "public void setGrade(int grade){ ///update com.company.students grade\n this.grade = grade;\n }", "public int updateRemainderCount(String socialEmail,int remainderCount)\r\n\t{\r\n\t\tConnection conn=getConnection();\r\n\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tint result=0;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"update SOCIAL_EAI_APPROVAL set (NUM_REMINDER_SENT)=(?) where REQ_SOCIAL_EMAIL=?\";\r\n\t\t\tpstmt = conn.prepareStatement(query); \r\n\t\t\tpstmt.setInt(1,remainderCount); \r\n\t\t\tpstmt.setString(2,socialEmail); \r\n\r\n\t\t\tresult=pstmt.executeUpdate(); \r\n\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\r\n\r\n\t\treturn result;\r\n\t}", "public void setSalesRep_ID (int SalesRep_ID);", "public void setSalesRep_ID (int SalesRep_ID);", "public void calcular()\r\n/* 530: */ {\r\n/* 531:556 */ this.facturaProveedorSRI.setMontoIva(this.facturaProveedorSRI.getBaseImponibleDiferenteCero().multiply(\r\n/* 532:557 */ ParametrosSistema.getPorcentajeIva().divide(BigDecimal.valueOf(100L))));\r\n/* 533: */ }", "public void setSERIAL_NO(BigDecimal SERIAL_NO) {\r\n this.SERIAL_NO = SERIAL_NO;\r\n }", "public void setSERIAL_NO(BigDecimal SERIAL_NO) {\r\n this.SERIAL_NO = SERIAL_NO;\r\n }", "public void setComentario(Comentario comentario) {\n this.comentario = comentario;\n acutualizarInfo();\n }", "public void AtualizaPassageiro(String nome, String NovoCpf, String cpfPrimario) {\n\n\t\ttry {\n\n\t\t\t// Meu cpf é a chjave\n\t\t\t// setando nome\n\n\t\t\tstmt = con.prepareStatement(\" update Passageiro set nome= ? where cpf= ? \");\n\t\t\tstmt.setString(1, nome);\n\t\t\tstmt.setString(2, cpfPrimario);\n\t\t\tstmt.executeUpdate();\n\n\t\t\t// setando cpf\n\n\t\t\tstmt = con.prepareStatement(\" update Passageiro set cpf= ? where cpf= ? \");\n\t\t\tstmt.setString(1, NovoCpf);\n\t\t\tstmt.setString(2, cpfPrimario);\n\t\t\tstmt.executeUpdate();\n\n\t\t\tJOptionPane.showMessageDialog(null, \"Passageiro Alterado com sucesso!!\");\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\n\t\t\tSystem.out.println(\"Erro ao atualizar passageiro!\");\n\t\t\tJOptionPane.showMessageDialog(null, \"-Erro ao atualizar o passageiro \");\n\t\t\tJOptionPane.showMessageDialog(null, \"certifique se de inserir um CPF VALIDO(15 CARACTERES)\t \");\n\t\t}\n\n\t}", "public void update() throws SQLException {\n DatabaseConnector.updateQuery(\"UPDATE course SET \"\n + \"courseDept='\" + this.courseDept + \"', \"\n + \"courseNum='\" + this.courseNum + \"', \"\n + \"courseName='\" + this.courseName + \"', \"\n + \"info='\" + this.info + \"', \"\n + \"credit=\" + this.credit);\n }", "protected void onChange_EncounterRate() {\n onChange_EncounterRate_xjal( EncounterRate );\n }", "@RequestMapping(value = \"/commissions\", method = RequestMethod.PUT)\n public ResponseEntity<?> changeCommission(@Valid @RequestBody ApiCommission input, BindingResult result) {\n return super.put(input.getId(),input, result);\n }", "public void setCourseCredit(Float courseCredit) {\n this.courseCredit = courseCredit;\n }", "public void setConsumption(BigDecimal consumption) {\n this.consumption = consumption;\n }", "public CommissionCompensationModel(double grossSales, double commissionRate) {\r\n //determines if an input is valid\r\n if(commissionRate < 0 || grossSales < 0) {\r\n throw new Error(\"Invalid Input\");\r\n }\r\n super.commissionRate = commissionRate;\r\n super.grossSales = grossSales;\r\n }", "protected void setId(EmployeeLeave employeeLeave, ResultSet rs, int rowNumber) throws SQLException{\n\t\tString id = rs.getString(EmployeeLeaveTable.COLUMN_ID);\n\t\tif(id == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\n\t\temployeeLeave.setId(id);\n\t}", "private void saveCurrentAcknowledgment() {\n\t\tacknowledgment.setANumber(aNumberField.getText());\n\t\tacknowledgment.setDate(DateUtil.formatToString(dateField.getValue()));\n\t\tacknowledgment.setNotify(notifyField.getText());\n\t\tacknowledgment.setTag(tagField.getText());\n\t\tacknowledgment.setDateOrderReceived(DateUtil.formatToString(dateOrderReceivedField.getValue()));\n\t\tacknowledgment.setCustomerOrderNumber(customerOrderNumberField.getText());\n\t\tacknowledgment.setApproxShipDate(DateUtil.formatToString(approxShipDateField.getValue()));\n\t\tacknowledgment.setShippingCost(shippingCostField.getText());\n\t\tacknowledgment.setFob(fobField.getText());\n\t\tacknowledgment.setShipVia(shipViaField.getText());\n\t\tacknowledgment.setDocuments(documentsField.getText());\n\t\tacknowledgment.setPrice(priceField.getText());\n\t\tacknowledgment.setUsername(main.getPreferenceList().get(0).getUsername());\n\t}", "private ClaimOrConcession(int proposal) {\n this.proposal = proposal;\n }", "public void activarInactivarClasificacionesLineaComercial(String userId, Long codigoLineaComercial,Long codigoLineaComercialCambio, Collection<LineaComercialClasificacionDTO> lineaComercialClasificacionCol, String estado)throws SICException{\n\t\tLogeable.LOG_SICV2.info(\"Activa o inactiva las clasificaciones de una linea comercial: {}\");\n\t\tStringBuilder query = null;\n\t\tQuery sqlQuery = null;\n\t\t\n\t\ttry {\n\t\t\tString codigosClasificaciones = \"\";\n\t\t\tList<String> codigosList = new ArrayList<String>();\t\t\t\n\t\t\t//Obtenemos los codigos de las clasificaciones\n\t\t\tfor(LineaComercialClasificacionDTO lineaComercialClasificacionDTO:lineaComercialClasificacionCol){\n\t\t\t\tcodigosList.add(lineaComercialClasificacionDTO.getId().getCodigoClasificacion());\n\t\t\t\tcodigosClasificaciones = codigosClasificaciones + \"'\" + lineaComercialClasificacionDTO.getId().getCodigoClasificacion()+\"',\" ;\n\t\t\t}\n\t\t\tcodigosClasificaciones = codigosClasificaciones.substring(0, codigosClasificaciones.length()-1);\n\t\t\tLogeable.LOG_SICV2.info(\"Codigos: {}\",codigosClasificaciones);\n\t\t\t\n\t\t\t// se remueve las relaciones entre clasificacion, funcionario y la linea comercial a la que se esta reasignando\n\t\t\tremoverLineaComercialFuncionarioClasificacion(codigoLineaComercial.toString(), codigosList);\t\t\n\t\t\t\n\t\t\tSession session = hibernateH.getHibernateSession();\n\t\t\tsession.clear();\n\n\t\t\t\tquery = new StringBuilder();\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tquery.append(\"UPDATE SCADMTLINCOMCLA \");\n\t\t\tif(codigoLineaComercialCambio==null){\n\t\t\t\tquery.append(\" SET ESTADO = '\"+estado+\"' \");\n\t\t\t}else{\n\t\t\t\tquery.append(\" SET CODIGOLINEACOMERCIAL = '\"+codigoLineaComercialCambio+\"' \");\t\t\n\t\t\t}\n\t\t\t\tquery.append(\" ,IDUSUARIOMODIFICACION = '\"+userId+\"' \");\n\t\t\t\tquery.append(\" ,FECHAMODIFICACION = CURRENT_TIMESTAMP \");\n\t\t\t\tquery.append(\" WHERE CODIGOCLASIFICACION IN(\" + codigosClasificaciones +\") \");\n\t\t\t\tquery.append(\" AND CODIGOLINEACOMERCIAL = '\"+codigoLineaComercial+\"'\");\n\t\t\t\t\n\t\t\tsqlQuery = session.createSQLQuery(query.toString());\n\t\t\tsqlQuery.executeUpdate();\n\t\t\tsession.flush();\n\t\t\t\n\t\t\t//se agrega las relaciones entre clasificacion\n\t\t\tagregarLineaComercialFuncionarioClasificacion(codigoLineaComercialCambio, userId, codigosList);\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tLogeable.LOG_SICV2.info(\"Error al activar las clasificaciones de la linea comercial {}\", e);\n\t\t\tthrow new SICException(\"Error al activar las clasificaciones de la linea comercial {}\", e);\n\t\t}\n\t}", "public void setHC_EmployeeGrade2_ID (int HC_EmployeeGrade2_ID);", "@Override\r\n\tpublic void updateEncore(Encore encore) {\n\t\tint i = sqlSession.update(ns3+\".updateEncore\", encore);\r\n\t\tif(i>0) System.out.println(\"update encore table completed\");\r\n\t}" ]
[ "0.572084", "0.56556475", "0.5588724", "0.5588724", "0.5185671", "0.5051323", "0.4644178", "0.46413422", "0.45768288", "0.45768288", "0.4566993", "0.45542374", "0.4535175", "0.4533299", "0.45260894", "0.44931155", "0.4486431", "0.4468397", "0.4433668", "0.43892154", "0.4386103", "0.43853307", "0.4384935", "0.43834543", "0.43663222", "0.43594834", "0.43594834", "0.43584427", "0.4358209", "0.43549973", "0.433646", "0.43295175", "0.4321929", "0.43190935", "0.4315014", "0.4311223", "0.42957237", "0.42848364", "0.42790452", "0.4275628", "0.426987", "0.42595592", "0.42432407", "0.42379287", "0.4235181", "0.42315206", "0.42267877", "0.42258066", "0.42190668", "0.42139745", "0.42114386", "0.42112795", "0.41971645", "0.4193071", "0.41878757", "0.4186402", "0.41804707", "0.41802207", "0.41794398", "0.4177799", "0.4175236", "0.41740766", "0.41726068", "0.41700226", "0.4169396", "0.41622227", "0.41542596", "0.41532493", "0.414459", "0.41442335", "0.4137686", "0.41351125", "0.41343644", "0.41313738", "0.41301128", "0.41278097", "0.4121671", "0.41213217", "0.4119707", "0.41153395", "0.41151303", "0.41124564", "0.41124564", "0.4111371", "0.41106594", "0.41106594", "0.41079906", "0.41028464", "0.41025928", "0.41016683", "0.40963343", "0.40941292", "0.40926057", "0.40844882", "0.4081632", "0.40778288", "0.40771165", "0.40745997", "0.40741295", "0.40736854" ]
0.5648743
2
This method was generated by MyBatis Generator. This method corresponds to the database table partner_contract_snapshots
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", snapshotId=").append(snapshotId); sb.append(", platformId=").append(platformId); sb.append(", purchaseId=").append(purchaseId); sb.append(", partnerContractId=").append(partnerContractId); sb.append(", price=").append(price); sb.append(", created=").append(created); sb.append(", updated=").append(updated); sb.append(", isDeleted=").append(isDeleted); sb.append(", content=").append(content); sb.append(", superiorCommission=").append(superiorCommission); sb.append(", introducerCommission=").append(introducerCommission); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void handleSnapshotStart(String dpSchemaName, PrimaryKey primaryKey, ConnectSchema\n sinkSchema) {\n }", "public String getSourceSnapshotId() {\n return this.sourceSnapshotId;\n }", "public interface Snapshot {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the location property: The geo-location where the resource lives.\n *\n * @return the location value.\n */\n String location();\n\n /**\n * Gets the tags property: Resource tags.\n *\n * @return the tags value.\n */\n Map<String, String> tags();\n\n /**\n * Gets the managedBy property: Unused. Always Null.\n *\n * @return the managedBy value.\n */\n String managedBy();\n\n /**\n * Gets the sku property: The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS.\n *\n * @return the sku value.\n */\n SnapshotSku sku();\n\n /**\n * Gets the timeCreated property: The time when the disk was created.\n *\n * @return the timeCreated value.\n */\n OffsetDateTime timeCreated();\n\n /**\n * Gets the osType property: The Operating System type.\n *\n * @return the osType value.\n */\n OperatingSystemTypes osType();\n\n /**\n * Gets the hyperVGeneration property: The hypervisor generation of the Virtual Machine. Applicable to OS disks\n * only.\n *\n * @return the hyperVGeneration value.\n */\n HyperVGeneration hyperVGeneration();\n\n /**\n * Gets the creationData property: Disk source information. CreationData information cannot be changed after the\n * disk has been created.\n *\n * @return the creationData value.\n */\n CreationData creationData();\n\n /**\n * Gets the diskSizeGB property: If creationData.createOption is Empty, this field is mandatory and it indicates the\n * size of the disk to create. If this field is present for updates or creation with other options, it indicates a\n * resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's\n * size.\n *\n * @return the diskSizeGB value.\n */\n Integer diskSizeGB();\n\n /**\n * Gets the diskSizeBytes property: The size of the disk in bytes. This field is read only.\n *\n * @return the diskSizeBytes value.\n */\n Long diskSizeBytes();\n\n /**\n * Gets the uniqueId property: Unique Guid identifying the resource.\n *\n * @return the uniqueId value.\n */\n String uniqueId();\n\n /**\n * Gets the encryptionSettingsCollection property: Encryption settings collection used be Azure Disk Encryption, can\n * contain multiple encryption settings per disk or snapshot.\n *\n * @return the encryptionSettingsCollection value.\n */\n EncryptionSettingsCollection encryptionSettingsCollection();\n\n /**\n * Gets the provisioningState property: The disk provisioning state.\n *\n * @return the provisioningState value.\n */\n String provisioningState();\n\n /**\n * Gets the incremental property: Whether a snapshot is incremental. Incremental snapshots on the same disk occupy\n * less space than full snapshots and can be diffed.\n *\n * @return the incremental value.\n */\n Boolean incremental();\n\n /**\n * Gets the encryption property: Encryption property can be used to encrypt data at rest with customer managed keys\n * or platform managed keys.\n *\n * @return the encryption value.\n */\n Encryption encryption();\n\n /**\n * Gets the region of the resource.\n *\n * @return the region of the resource.\n */\n Region region();\n\n /**\n * Gets the name of the resource region.\n *\n * @return the name of the resource region.\n */\n String regionName();\n\n /**\n * Gets the inner com.azure.resourcemanager.azurestack.compute.fluent.models.SnapshotInner object.\n *\n * @return the inner object.\n */\n SnapshotInner innerModel();\n\n /** The entirety of the Snapshot definition. */\n interface Definition\n extends DefinitionStages.Blank,\n DefinitionStages.WithLocation,\n DefinitionStages.WithResourceGroup,\n DefinitionStages.WithCreate {\n }\n /** The Snapshot definition stages. */\n interface DefinitionStages {\n /** The first stage of the Snapshot definition. */\n interface Blank extends WithLocation {\n }\n /** The stage of the Snapshot definition allowing to specify location. */\n interface WithLocation {\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithResourceGroup withRegion(Region location);\n\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithResourceGroup withRegion(String location);\n }\n /** The stage of the Snapshot definition allowing to specify parent resource. */\n interface WithResourceGroup {\n /**\n * Specifies resourceGroupName.\n *\n * @param resourceGroupName The name of the resource group.\n * @return the next definition stage.\n */\n WithCreate withExistingResourceGroup(String resourceGroupName);\n }\n /**\n * The stage of the Snapshot definition which contains all the minimum required properties for the resource to\n * be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithTags,\n DefinitionStages.WithSku,\n DefinitionStages.WithOsType,\n DefinitionStages.WithHyperVGeneration,\n DefinitionStages.WithCreationData,\n DefinitionStages.WithDiskSizeGB,\n DefinitionStages.WithEncryptionSettingsCollection,\n DefinitionStages.WithIncremental,\n DefinitionStages.WithEncryption {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n Snapshot create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n Snapshot create(Context context);\n }\n /** The stage of the Snapshot definition allowing to specify tags. */\n interface WithTags {\n /**\n * Specifies the tags property: Resource tags..\n *\n * @param tags Resource tags.\n * @return the next definition stage.\n */\n WithCreate withTags(Map<String, String> tags);\n }\n /** The stage of the Snapshot definition allowing to specify sku. */\n interface WithSku {\n /**\n * Specifies the sku property: The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS..\n *\n * @param sku The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS.\n * @return the next definition stage.\n */\n WithCreate withSku(SnapshotSku sku);\n }\n /** The stage of the Snapshot definition allowing to specify osType. */\n interface WithOsType {\n /**\n * Specifies the osType property: The Operating System type..\n *\n * @param osType The Operating System type.\n * @return the next definition stage.\n */\n WithCreate withOsType(OperatingSystemTypes osType);\n }\n /** The stage of the Snapshot definition allowing to specify hyperVGeneration. */\n interface WithHyperVGeneration {\n /**\n * Specifies the hyperVGeneration property: The hypervisor generation of the Virtual Machine. Applicable to\n * OS disks only..\n *\n * @param hyperVGeneration The hypervisor generation of the Virtual Machine. Applicable to OS disks only.\n * @return the next definition stage.\n */\n WithCreate withHyperVGeneration(HyperVGeneration hyperVGeneration);\n }\n /** The stage of the Snapshot definition allowing to specify creationData. */\n interface WithCreationData {\n /**\n * Specifies the creationData property: Disk source information. CreationData information cannot be changed\n * after the disk has been created..\n *\n * @param creationData Disk source information. CreationData information cannot be changed after the disk\n * has been created.\n * @return the next definition stage.\n */\n WithCreate withCreationData(CreationData creationData);\n }\n /** The stage of the Snapshot definition allowing to specify diskSizeGB. */\n interface WithDiskSizeGB {\n /**\n * Specifies the diskSizeGB property: If creationData.createOption is Empty, this field is mandatory and it\n * indicates the size of the disk to create. If this field is present for updates or creation with other\n * options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and\n * can only increase the disk's size..\n *\n * @param diskSizeGB If creationData.createOption is Empty, this field is mandatory and it indicates the\n * size of the disk to create. If this field is present for updates or creation with other options, it\n * indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can\n * only increase the disk's size.\n * @return the next definition stage.\n */\n WithCreate withDiskSizeGB(Integer diskSizeGB);\n }\n /** The stage of the Snapshot definition allowing to specify encryptionSettingsCollection. */\n interface WithEncryptionSettingsCollection {\n /**\n * Specifies the encryptionSettingsCollection property: Encryption settings collection used be Azure Disk\n * Encryption, can contain multiple encryption settings per disk or snapshot..\n *\n * @param encryptionSettingsCollection Encryption settings collection used be Azure Disk Encryption, can\n * contain multiple encryption settings per disk or snapshot.\n * @return the next definition stage.\n */\n WithCreate withEncryptionSettingsCollection(EncryptionSettingsCollection encryptionSettingsCollection);\n }\n /** The stage of the Snapshot definition allowing to specify incremental. */\n interface WithIncremental {\n /**\n * Specifies the incremental property: Whether a snapshot is incremental. Incremental snapshots on the same\n * disk occupy less space than full snapshots and can be diffed..\n *\n * @param incremental Whether a snapshot is incremental. Incremental snapshots on the same disk occupy less\n * space than full snapshots and can be diffed.\n * @return the next definition stage.\n */\n WithCreate withIncremental(Boolean incremental);\n }\n /** The stage of the Snapshot definition allowing to specify encryption. */\n interface WithEncryption {\n /**\n * Specifies the encryption property: Encryption property can be used to encrypt data at rest with customer\n * managed keys or platform managed keys..\n *\n * @param encryption Encryption property can be used to encrypt data at rest with customer managed keys or\n * platform managed keys.\n * @return the next definition stage.\n */\n WithCreate withEncryption(Encryption encryption);\n }\n }\n /**\n * Begins update for the Snapshot resource.\n *\n * @return the stage of resource update.\n */\n Snapshot.Update update();\n\n /** The template for Snapshot update. */\n interface Update\n extends UpdateStages.WithTags,\n UpdateStages.WithSku,\n UpdateStages.WithOsType,\n UpdateStages.WithDiskSizeGB,\n UpdateStages.WithEncryptionSettingsCollection,\n UpdateStages.WithEncryption {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n Snapshot apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n Snapshot apply(Context context);\n }\n /** The Snapshot update stages. */\n interface UpdateStages {\n /** The stage of the Snapshot update allowing to specify tags. */\n interface WithTags {\n /**\n * Specifies the tags property: Resource tags.\n *\n * @param tags Resource tags.\n * @return the next definition stage.\n */\n Update withTags(Map<String, String> tags);\n }\n /** The stage of the Snapshot update allowing to specify sku. */\n interface WithSku {\n /**\n * Specifies the sku property: The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS..\n *\n * @param sku The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS.\n * @return the next definition stage.\n */\n Update withSku(SnapshotSku sku);\n }\n /** The stage of the Snapshot update allowing to specify osType. */\n interface WithOsType {\n /**\n * Specifies the osType property: the Operating System type..\n *\n * @param osType the Operating System type.\n * @return the next definition stage.\n */\n Update withOsType(OperatingSystemTypes osType);\n }\n /** The stage of the Snapshot update allowing to specify diskSizeGB. */\n interface WithDiskSizeGB {\n /**\n * Specifies the diskSizeGB property: If creationData.createOption is Empty, this field is mandatory and it\n * indicates the size of the disk to create. If this field is present for updates or creation with other\n * options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and\n * can only increase the disk's size..\n *\n * @param diskSizeGB If creationData.createOption is Empty, this field is mandatory and it indicates the\n * size of the disk to create. If this field is present for updates or creation with other options, it\n * indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can\n * only increase the disk's size.\n * @return the next definition stage.\n */\n Update withDiskSizeGB(Integer diskSizeGB);\n }\n /** The stage of the Snapshot update allowing to specify encryptionSettingsCollection. */\n interface WithEncryptionSettingsCollection {\n /**\n * Specifies the encryptionSettingsCollection property: Encryption settings collection used be Azure Disk\n * Encryption, can contain multiple encryption settings per disk or snapshot..\n *\n * @param encryptionSettingsCollection Encryption settings collection used be Azure Disk Encryption, can\n * contain multiple encryption settings per disk or snapshot.\n * @return the next definition stage.\n */\n Update withEncryptionSettingsCollection(EncryptionSettingsCollection encryptionSettingsCollection);\n }\n /** The stage of the Snapshot update allowing to specify encryption. */\n interface WithEncryption {\n /**\n * Specifies the encryption property: Encryption property can be used to encrypt data at rest with customer\n * managed keys or platform managed keys..\n *\n * @param encryption Encryption property can be used to encrypt data at rest with customer managed keys or\n * platform managed keys.\n * @return the next definition stage.\n */\n Update withEncryption(Encryption encryption);\n }\n }\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @return the refreshed resource.\n */\n Snapshot refresh();\n\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @param context The context to associate with this operation.\n * @return the refreshed resource.\n */\n Snapshot refresh(Context context);\n}", "SnapshotInner innerModel();", "@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);", "SMRSnapshot<S> getSnapshot(@NonNull ViewGenerator<S> viewGenerator,\n @NonNull VersionedObjectIdentifier version);", "@Override\r\n\t\t\tpublic Object doInTransaction(TransactionStatus arg0) {\n\t\t\t\t\r\n\t\t\t\tSqlLogInspetor sqlLogInspetor = new SqlLogInspetor();\r\n\t\t\t\tsqlLogInspetor.enable();\r\n\t\t\t\t\r\n\t\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\t\tList<MasterBEnt> masterBEntList = \r\n\t\t\t\t\t\thbSupport.createCriteria(ss, MasterBEnt.class)\r\n\t\t\t\t\t\t\t.addOrder(OrderCompat.asc(\"compId.idA\"))\r\n\t\t\t\t\t\t\t.addOrder(OrderCompat.asc(\"compId.idB\")).list();\r\n\t\t\t\tList<Map<String, Map<String, MasterBEnt>>> masterBEntBizarreList = new ArrayList<>();\r\n\t\t\t\t\r\n\t\t\t\tfor (MasterBEnt masterB : masterBEntList) {\r\n\t\t\t\t\tSignatureBean signBean = ((IPlayerManagerImplementor) PlayerManagerTest.this.manager).generateSignature(masterB);\r\n\t\t\t\t\tString signStr = PlayerManagerTest.this.manager.serializeSignature(signBean);\r\n\t\t\t\t\tMap<String, Map<String, MasterBEnt>> mapItem = new LinkedHashMap<>();\r\n\t\t\t\t\tPlayerSnapshot<MasterBEnt> masterBPS = PlayerManagerTest.this.manager.createPlayerSnapshot(masterB);\r\n\t\t\t\t\tMap<String, MasterBEnt> mapMapItem = new LinkedHashMap<>();\r\n\t\t\t\t\tmapMapItem.put(\"wrappedSnapshot\", masterB);\r\n\t\t\t\t\tmapItem.put(signStr, mapMapItem);\r\n\t\t\t\t\tmasterBEntBizarreList.add(mapItem);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t.this\r\n\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t.overwriteConfigurationTemporarily(\r\n\t\t\t\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t\t\t\t.this\r\n\t\t\t\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t\t\t\t\t.getConfig()\r\n\t\t\t\t\t\t\t\t\t\t\t.clone()\r\n\t\t\t\t\t\t\t\t\t\t\t.configSerialiseBySignatureAllRelationship(false));\r\n\t\t\t\t\r\n\t\t\t\tPlayerSnapshot<List<Map<String, Map<String, MasterBEnt>>>> playerSnapshot = PlayerManagerTest.this.manager.createPlayerSnapshot(masterBEntBizarreList);\r\n\t\t\t\t\r\n\t\t\t\tFileOutputStream fos;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfos = new FileOutputStream(generatedFileResult);\r\n\t\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t\t.this\r\n\t\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t\t\t.getConfig()\r\n\t\t\t\t\t\t\t\t\t.getObjectMapper()\r\n\t\t\t\t\t\t\t\t\t\t.writerWithDefaultPrettyPrinter()\r\n\t\t\t\t\t\t\t\t\t\t\t.writeValue(fos, playerSnapshot);\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\tthrow new RuntimeException(\"Unexpected\", e);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tsqlLogInspetor.disable();\r\n\t\t\t\t\r\n\t\t\t\treturn null;\r\n\t\t\t}", "private void assertIsolatedSnapshot(String source, String dest) {\n List<Row> expected = spark.sql(String.format(\"SELECT * FROM %s\", source)).collectAsList();\n\n List<SimpleRecord> extraData = Lists.newArrayList(new SimpleRecord(4, \"d\"));\n Dataset<Row> df = spark.createDataFrame(extraData, SimpleRecord.class);\n df.write().format(\"iceberg\").mode(\"append\").saveAsTable(dest);\n\n List<Row> result = spark.sql(String.format(\"SELECT * FROM %s\", source)).collectAsList();\n Assert.assertEquals(\n \"No additional rows should be added to the original table\", expected.size(), result.size());\n\n List<Row> snapshot =\n spark\n .sql(String.format(\"SELECT * FROM %s WHERE id = 4 AND data = 'd'\", dest))\n .collectAsList();\n Assert.assertEquals(\"Added row not found in snapshot\", 1, snapshot.size());\n }", "@Override\n public void handleSnapshotDone(String dpSchemaName, PrimaryKey primaryKey) {\n }", "@Override\r\n\tpublic String getTableName() {\n\t\treturn \"contract\";\r\n\t}", "public boolean isSnapshottable() {\r\n return false;\r\n }", "Set<ComputerSnapshot> getSnapshots();", "TbSnapshot selectByPrimaryKey(Integer id);", "String getSnapshot_id();", "@Insert({\n \"insert into SWMS_stock_out_record_detail (stock_out_record_id, stock_out_record_head_id, \",\n \"stock_out_record_head_code, group_name, \",\n \"stock_in_record_account_id, material_code, \",\n \"material_batch, material_type_id, \",\n \"material_sub_type_id, material_workshop_id, \",\n \"material_name_code, material_supplier_code, \",\n \"material_name, bag_num, \",\n \"weight, measure_unit, \",\n \"created_time, completion_flag)\",\n \"values (#{stockOutRecordId,jdbcType=BIGINT}, #{stockOutRecordHeadId,jdbcType=BIGINT}, \",\n \"#{stockOutRecordHeadCode,jdbcType=BIGINT}, #{groupName,jdbcType=VARCHAR}, \",\n \"#{stockInRecordAccountId,jdbcType=BIGINT}, #{materialCode,jdbcType=VARCHAR}, \",\n \"#{materialBatch,jdbcType=VARCHAR}, #{materialTypeId,jdbcType=INTEGER}, \",\n \"#{materialSubTypeId,jdbcType=INTEGER}, #{materialWorkshopId,jdbcType=INTEGER}, \",\n \"#{materialNameCode,jdbcType=INTEGER}, #{materialSupplierCode,jdbcType=INTEGER}, \",\n \"#{materialName,jdbcType=VARCHAR}, #{bagNum,jdbcType=INTEGER}, \",\n \"#{weight,jdbcType=REAL}, #{measureUnit,jdbcType=VARCHAR}, \",\n \"#{createdTime,jdbcType=TIMESTAMP}, #{completionFlag,jdbcType=BIT})\"\n })\n @SelectKey(statement=\"SELECT LAST_INSERT_ID()\", keyProperty=\"id\", before=false, resultType=Long.class)\n int insert(SwmsStockOutRecordDetail record);", "public interface MigratableTableDAO extends MigrationTypeProvider {\r\n\t\r\n\t/**\r\n\t * The total number of rows in the table.\r\n\t * @return\r\n\t */\r\n\tpublic long getCount(MigrationType type);\r\n\t\r\n\t/**\r\n\t * The current max(id) for a table\r\n\t */\r\n\tpublic long getMaxId(MigrationType type);\r\n\t\r\n\t/**\r\n\t * The current min(id) for a table\r\n\t */\r\n\tpublic long getMinId(MigrationType type);\r\n\t\r\n\t/**\r\n\t * MigrationTypeCount for given migration type\r\n\t */\r\n\tpublic MigrationTypeCount getMigrationTypeCount(MigrationType type);\r\n\t\r\n\t/**\r\n\t * A checksum on etag or id for a range of ids\r\n\t */\r\n\tpublic String getChecksumForIdRange(MigrationType type, String salt, long minId, long maxId);\r\n\t\r\n\t/**\r\n\t * A table checksum (CHECKSUM TABLE statement)\r\n\t */\r\n\tpublic String getChecksumForType(MigrationType type);\r\n\t\t\r\n\t/**\r\n\t * Stream over all of the database object for the given within the provided ID range.\r\n\t * \r\n\t * @param migrationType\r\n\t * @param minimumId Smallest ID in the range (inclusive).\r\n\t * @param maximumId Largest ID in range (exclusive).\r\n\t * @param batchSize\r\n\t * @return\r\n\t */\r\n\tpublic Iterable<MigratableDatabaseObject<?, ?>> streamDatabaseObjects(MigrationType migrationType, Long minimumId,\r\n\t\t\tLong maximumId, Long batchSize);\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the MigratableObjectType from \r\n\t * @param type\r\n\t * @return\r\n\t */\r\n\tpublic MigratableDatabaseObject getObjectForType(MigrationType type);\r\n\t\r\n\t/**\r\n\t * The list of primary migration types represents types that either stand-alone or are the owner's of other types.\r\n\t * Migration is driven off this list as secondary types are migrated with their primary owners.\r\n\t * @return\r\n\t */\r\n\tpublic List<MigrationType> getPrimaryMigrationTypes();\r\n\t\r\n\t/**\r\n\t * Run a method with foreign key and uniqueness constraints checks off.\r\n\t * The global state of the database changed to disable checks while the passed callable is running.\r\n\t * The key checking will unconditionally be re-enabled after the callable finishes.\r\n\t * @param call\r\n\t * @return\r\n\t * @throws Exception\r\n\t */\r\n\tpublic <T> T runWithKeyChecksIgnored(Callable<T> call) throws Exception;\r\n\t\r\n\t/**\r\n\t * Checks if the migration type has been registered\r\n\t * @param type\r\n\t * @return\r\n\t */\r\n\tpublic boolean isMigrationTypeRegistered(MigrationType type);\r\n\t\r\n\t/**\r\n\t * List all non-restricted foreign keys in the schema.\r\n\t * @return\r\n\t */\r\n\tpublic List<ForeignKeyInfo> listNonRestrictedForeignKeys();\r\n\r\n\r\n\t/**\r\n\t * Map each secondary table name to all of the table names within its primary group.\r\n\t * Secondary tables can have restricted foreign keys to any table within their primary group.\r\n\t * @return\r\n\t */\r\n\tMap<String, Set<String>> mapSecondaryTablesToPrimaryGroups();\r\n\r\n\t/**\r\n\t * Create or update a batch of database objects\r\n\t * @param batch\r\n\t * @return\r\n\t * @throws Exception \r\n\t */\r\n\tpublic List<Long> createOrUpdate(MigrationType type, List<DatabaseObject<?>> batch);\r\n\r\n\t/**\r\n\t * Delete all rows of the given type and row ID range.\r\n\t * @param type\r\n\t * @param minimumId inclusive\r\n\t * @param maximumId exclusive\r\n\t */\r\n\tpublic int deleteByRange(TypeData type, long minimumId, long maximumId);\r\n\r\n\t/**\r\n\t * Calculate the ID ranges with the optimal number of rows for the given type.\r\n\t * @param migrationType\r\n\t * @param minimumId\r\n\t * @param maximumId\r\n\t * @param optimalNumberOfRows\r\n\t * @return\r\n\t */\r\n\tpublic List<IdRange> calculateRangesForType(MigrationType migrationType, long minimumId, long maximumId, long optimalNumberOfRows);\r\n\r\n\t/**\r\n\t * Get the SQL used for primary cardinality.\r\n\t * @param node\r\n\t * @return\r\n\t */\r\n\tpublic String getPrimaryCardinalitySql(MigrationType node);\r\n\r\n\t/**\r\n\t * Calculate a batch of checksums for the given type and ID range.\r\n\t * @param request\r\n\t * @return\r\n\t */\r\n\tpublic List<RangeChecksum> calculateBatchChecksums(BatchChecksumRequest request);\r\n\t\r\n\t/**\r\n\t * Get the type data for the given migration type.\r\n\t * @param type\r\n\t * @return\r\n\t */\r\n\tpublic TypeData getTypeData(MigrationType type);\r\n\r\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface InvoiceHistoryRepository extends JpaRepository<InvoiceHistory, Long> {\n}", "public Integer getSnapshotId() {\r\n return snapshotId;\r\n }", "public abstract byte[] getSnapshot();", "private String getCloneGenealogyTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table CLONE_GENEALOGY(\");\n \t\tbuilder.append(\"CLONE_GENEALOGY_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"START_REVISION_ID LONG,\");\n \t\tbuilder.append(\"END_REVISION_ID LONG,\");\n \t\tbuilder.append(\"CLONES TEXT NOT NULL,\");\n \t\tbuilder.append(\"CLONE_LINKS TEXT NOT NULL,\");\n \t\tbuilder.append(\"CHANGES INTEGER,\");\n \t\tbuilder.append(\"ADDITIONS INTEGER,\");\n \t\tbuilder.append(\"DELETIONS INTEGER,\");\n \t\tbuilder.append(\"DEAD INTEGER\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "public interface InventoryUserLoginHistoryRepository extends JpaRepository<InventoryUserLoginHistory,Serializable> {\n}", "List<TbSnapshot> selectByExample(TbSnapshotExample example);", "public boolean writePlicSnapshotToFile(File f, String dbSchema, String dataSource){\n try{\n //Obtener la conexion JDBC del proyecto\n InitialContext ctx = new InitialContext();\n DataSource ds = (DataSource) ctx.lookup(dataSource);\n Connection connection = ds.getConnection();\n\n\t String query = \"SELECT '\\\"'||REPLACE(COALESCE(globaluniqueidentifier,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(scientificname,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(institutioncode,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||COALESCE(to_char(datelastmodified,'YYYY-MM-DD HH24:MI:SS'),'')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(taxonrecordid,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(language,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(creators,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(distribution,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(abstract,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(kingdomtaxon,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(phylumtaxon,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(classtaxon,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(ordertaxon,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(familytaxon,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(genustaxon,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(synonyms,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(authoryearofscientificname,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(speciespublicationreference,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(commonnames,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(typification,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(contributors,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||COALESCE(to_char(datecreated,'YYYY-MM-DD'),'')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(habit,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(lifecycle,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(reproduction,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(annualcycle,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(scientificdescription,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(briefdescription,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(feeding,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(behavior,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(interactions,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(chromosomicnumbern,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(moleculardata,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(populationbiology,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(threatstatus,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(legislation,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(habitat,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(territory,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(endemicity,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(theuses,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(themanagement,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(folklore,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(thereferences,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(unstructureddocumentation,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(otherinformationsources,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(papers,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(identificationkeys,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(migratorydata,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(ecologicalsignificance,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(unstructurednaturalhistory,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(invasivenessdata,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(targetaudiences,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(version,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(urlimage1,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(captionimage1,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(urlimage2,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(captionimage2,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(urlimage3,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(captionimage3,''),'\\r\\n', ' ')||'\\\"'\"+\n\t\t\t \" AS aux \"+\n\t\t\t \"FROM \"+dbSchema+\".plic_snapshot;\";\n\n System.out.println(query);\n\n\t\t\tStatement st = connection.createStatement();\n\t\t\tResultSet rs = st.executeQuery(query); \n\n //Imprimir los datos en el archivo\n BufferedWriter out = new BufferedWriter(new FileWriter(f));\n\t\t\twhile (rs.next()) {\n\t\t\t\tout.write(rs.getString(\"aux\")+\"\\n\");\n\t\t\t}\n out.close();\n\n //Cerrar el resultset y el statement\n rs.close();\n\t\t\tst.close();\n\n //Resultado\n return true;\n }\n catch(Exception e){\n e.printStackTrace();\n return false;}\n }", "@Repository\npublic interface HeaderHistoryMapper {\n\n @Insert(\"INSERT INTO HeaderHistory VALUES(NULL, #{name}, #{value}, #{resultHistory.id})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\")\n int save(HeaderHistory headerHistory);\n\n @Insert(\"<script>INSERT INTO HeaderHistory(name, value, resultHistoryId) VALUES \"\n + \"<foreach collection='headerHistories' item='headerHistory' separator=','> \"\n + \"(#{headerHistory.name}, #{headerHistory.value}, #{id}) \"\n + \"</foreach></script>\")\n int saveByResultHistory(ResultHistory resultHistory);\n\n @Select(\"SELECT id, name, value FROM HeaderHistory WHERE id = #{id}\")\n @Results({ @Result(id = true, property = \"id\", column = \"id\", jdbcType = JdbcType.INTEGER),\n @Result(property = \"name\", column = \"name\", jdbcType = JdbcType.VARCHAR),\n @Result(property = \"value\", column = \"value\", jdbcType = JdbcType.VARCHAR)\n })\n HeaderHistory load(int id);\n\n @Select(\"SELECT id, name, value FROM HeaderHistory WHERE resultHistoryId = #{id}\")\n @Results({ @Result(id = true, property = \"id\", column = \"id\", jdbcType = JdbcType.INTEGER),\n @Result(property = \"name\", column = \"name\", jdbcType = JdbcType.VARCHAR),\n @Result(property = \"value\", column = \"value\", jdbcType = JdbcType.VARCHAR)\n })\n List<HeaderHistory> loadByResultHistoryId(int id);\n\n @Update(\"UPDATE HeaderHistory SET name = #{name}, value = #{value}, \"\n + \"resultHistoryId = #{resultHistory.id} WHERE id = #{id}\")\n int update(HeaderHistory headerHistory);\n\n @Delete(\"DELETE FROM HeaderHistory WHERE id = #{id}\")\n int delete(int id);\n\n @Delete(\"DELETE FROM HeaderHistory WHERE resultHistoryId = #{id}\")\n int deleteByResultHistoryId(int id);\n}", "private String getRevisionTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table REVISION(\");\n \t\tbuilder.append(\"REVISION_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"REVISION_IDENTIFIER TEXT UNIQUE\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "public String getSnapshotId() {\n return this.snapshotId;\n }", "@Override\r\n\t\t\tpublic Object doInTransaction(TransactionStatus arg0) {\n\t\t\t\t\r\n\t\t\t\tSqlLogInspetor sqlLogInspetor = new SqlLogInspetor();\r\n\t\t\t\tsqlLogInspetor.enable();\r\n\t\t\t\t\r\n\t\t\t\tMasterAEnt masterAEnt = (MasterAEnt) ss.get(MasterAEnt.class, 1);\r\n\t\t\t\t//doing lazy-load\r\n\t\t\t\tmasterAEnt.getDetailAEntCol().size();\r\n\t\t\t\t\r\n\t\t\t\tPlayerManagerTest.this\r\n\t\t\t\t\t.manager\r\n\t\t\t\t\t.overwriteConfigurationTemporarily(\r\n\t\t\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t\t\t.this\r\n\t\t\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t\t\t\t.getConfig()\r\n\t\t\t\t\t\t\t\t\t\t.clone()\r\n\t\t\t\t\t\t\t\t\t\t.configSerialiseBySignatureAllRelationship(true));\r\n\t\t\t\t\r\n\t\t\t\tSignatureBean signatureBean = PlayerManagerTest.this.manager.deserializeSignature(\"eyJjbGF6ek5hbWUiOiJvcmcuanNvbnBsYXliYWNrLnBsYXllci5oaWJlcm5hdGUuZW50aXRpZXMuTWFzdGVyQUVudCIsImlzQ29sbCI6dHJ1ZSwicHJvcGVydHlOYW1lIjoiZGV0YWlsQUVudENvbCIsInJhd0tleVZhbHVlcyI6WyIxIl0sInJhd0tleVR5cGVOYW1lcyI6WyJqYXZhLmxhbmcuSW50ZWdlciJdfQ\");\r\n\t\t\t\tCollection<DetailAEnt> detailAEntCol = PlayerManagerTest.this.manager.getBySignature(signatureBean);\r\n\t\t\t\tArrayList<DetailAEnt> detailAEntCuttedCol = new ArrayList<>();\r\n\t\t\t\tdetailAEntCuttedCol.add(new ArrayList<>(detailAEntCol).get(1));\r\n\t\t\t\tdetailAEntCuttedCol.add(new ArrayList<>(detailAEntCol).get(2));\r\n\t\t\t\tPlayerSnapshot<Collection<DetailAEnt>> playerSnapshot = PlayerManagerTest.this.manager.createPlayerSnapshot(detailAEntCuttedCol);\r\n\t\t\t\t\r\n\t\t\t\tFileOutputStream fos;\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfos = new FileOutputStream(generatedFileResult);\r\n\t\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t\t.this\r\n\t\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t\t\t.getConfig()\r\n\t\t\t\t\t\t\t\t\t.getObjectMapper()\r\n\t\t\t\t\t\t\t\t\t\t.writerWithDefaultPrettyPrinter()\r\n\t\t\t\t\t\t\t\t\t\t\t.writeValue(fos, playerSnapshot);\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\tthrow new RuntimeException(\"Unexpected\", e);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tsqlLogInspetor.disable();\r\n\t\t\t\t\r\n\t\t\t\treturn null;\r\n\t\t\t}", "@Override\r\n\t\t\tpublic Object doInTransaction(TransactionStatus arg0) {\n\t\t\t\t\r\n\t\t\t\tSqlLogInspetor sqlLogInspetor = new SqlLogInspetor();\r\n\t\t\t\tsqlLogInspetor.enable();\r\n\t\t\t\t\r\n\t\t\t\tMasterAEnt masterAEnt = (MasterAEnt) ss.get(MasterAEnt.class, 1);\r\n\t\t\t\t//doing lazy-load\r\n\t\t\t\tmasterAEnt.getDetailAEntCol().size();\r\n\t\t\t\t\r\n\t\t\t\tPlayerManagerTest.this\r\n\t\t\t\t\t.manager\r\n\t\t\t\t\t.overwriteConfigurationTemporarily(\r\n\t\t\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t\t\t.this\r\n\t\t\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t\t\t\t.getConfig()\r\n\t\t\t\t\t\t\t\t\t\t.clone()\r\n\t\t\t\t\t\t\t\t\t\t.configSerialiseBySignatureAllRelationship(true));\r\n\t\t\t\t\r\n\t\t\t\tSignatureBean signatureBean = PlayerManagerTest.this.manager.deserializeSignature(\"eyJjbGF6ek5hbWUiOiJvcmcuanNvbnBsYXliYWNrLnBsYXllci5oaWJlcm5hdGUuZW50aXRpZXMuTWFzdGVyQUVudCIsImlzQ29sbCI6dHJ1ZSwicHJvcGVydHlOYW1lIjoiZGV0YWlsQUVudENvbCIsInJhd0tleVZhbHVlcyI6WyIxIl0sInJhd0tleVR5cGVOYW1lcyI6WyJqYXZhLmxhbmcuSW50ZWdlciJdfQ\");\r\n\t\t\t\tCollection<DetailAEnt> detailAEntCol = PlayerManagerTest.this.manager.getBySignature(signatureBean);\r\n\t\t\t\tArrayList<DetailAEnt> detailAEntCuttedCol = new ArrayList<>();\r\n\t\t\t\tdetailAEntCuttedCol.add(new ArrayList<>(detailAEntCol).get(0));\r\n\t\t\t\tdetailAEntCuttedCol.add(new ArrayList<>(detailAEntCol).get(1));\r\n\t\t\t\tPlayerSnapshot<Collection<DetailAEnt>> playerSnapshot = PlayerManagerTest.this.manager.createPlayerSnapshot(detailAEntCuttedCol);\r\n\t\t\t\t\r\n\t\t\t\tFileOutputStream fos;\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfos = new FileOutputStream(generatedFileResult);\r\n\t\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t\t.this\r\n\t\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t\t\t.getConfig()\r\n\t\t\t\t\t\t\t\t\t.getObjectMapper()\r\n\t\t\t\t\t\t\t\t\t\t.writerWithDefaultPrettyPrinter()\r\n\t\t\t\t\t\t\t\t\t\t\t.writeValue(fos, playerSnapshot);\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\tthrow new RuntimeException(\"Unexpected\", e);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tsqlLogInspetor.disable();\r\n\t\t\t\t\r\n\t\t\t\treturn null;\r\n\t\t\t}", "public long getSnapshotId() {\n return snapshotId;\n }", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "String getVersionFilter(String tableAlias);", "@Override\n public void handleSnapshot(FarmUtilDomain.PublishUtilState snapshot) {\n \n }", "public Model getProjectSnapshot()\n\t{\n\t\treturn project.getProjectSnapshot();\n\t}", "public Date getVersionRow(){\n\t\treturn this.versionRow;\r\n\t}", "public Date getVersionRow(){\n\t\treturn this.versionRow;\r\n\t}", "public Date getVersionRow(){\n\t\treturn this.versionRow;\r\n\t}", "public Date getVersionRow(){\n\t\treturn this.versionRow;\r\n\t}", "public Date getVersionRow(){\n\t\treturn this.versionRow;\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "@SuppressWarnings(\"unused\")\n@Repository\n@JaversSpringDataAuditable\n\npublic interface SellContractCustomerRepository extends JpaRepository<SellContractCustomer, Long> {\n\n SellContractCustomer findByCustomer_Id(Long customerId);\n\n List<SellContractCustomer> findAllBySellContract_Id(Long sellContractId);\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ContractDocumentEntryRowRepository extends JpaRepository<ContractDocumentEntryRow, Long> {\n\n}", "@Override\n\tpublic void checkTableVersion() {\n\n\t}", "@Override\r\n\t\t\tpublic Object doInTransaction(TransactionStatus arg0) {\n\t\t\t\t\r\n\t\t\t\tSqlLogInspetor sqlLogInspetor = new SqlLogInspetor();\r\n\t\t\t\tsqlLogInspetor.enable();\r\n\t\t\t\t\r\n\t\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\t\tList<MasterBEnt> masterBEntList = \r\n\t\t\t\t\t\thbSupport.createCriteria(ss, MasterBEnt.class)\r\n\t\t\t\t\t\t\t.addOrder(OrderCompat.asc(\"compId.idA\"))\r\n\t\t\t\t\t\t\t.addOrder(OrderCompat.asc(\"compId.idB\")).list();\r\n\t\t\t\t\r\n\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t.this\r\n\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t.overwriteConfigurationTemporarily(\r\n\t\t\t\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t\t\t\t.this\r\n\t\t\t\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t\t\t\t\t.getConfig()\r\n\t\t\t\t\t\t\t\t\t\t\t.clone()\r\n\t\t\t\t\t\t\t\t\t\t\t.configSerialiseBySignatureAllRelationship(false));\r\n\t\t\t\t\r\n\t\t\t\tPlayerSnapshot<List<MasterBEnt>> playerSnapshot = PlayerManagerTest.this.manager.createPlayerSnapshot(masterBEntList);\r\n\t\t\t\t\r\n\t\t\t\tFileOutputStream fos;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfos = new FileOutputStream(generatedFileResult);\r\n\t\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t\t.this\r\n\t\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t\t\t.getConfig()\r\n\t\t\t\t\t\t\t\t\t.getObjectMapper()\r\n\t\t\t\t\t\t\t\t\t\t.writerWithDefaultPrettyPrinter()\r\n\t\t\t\t\t\t\t\t\t\t\t.writeValue(fos, playerSnapshot);\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\tthrow new RuntimeException(\"Unexpected\", e);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tsqlLogInspetor.disable();\r\n\t\t\t\t\r\n\t\t\t\treturn null;\r\n\t\t\t}", "@Repository\npublic interface OnboardingStatusViewRepsitory extends CrudRepository<CandidateInfo,Long> {\n //@Query(\"SELECT c FROM CandidateInfo c WHERE c.onboardingStatus = :id\")\n // @Query(\"SELECT c FROM CandidateInfo c WHERE c.onboardingStatus = :id\")\n @Query(\"SELECT c FROM OnboardingView c left join c.onboardingStatus s WHERE s.aid = :id\")\n List<OnboardingView> findStatus(@Param(\"id\") Long id);\n @Query(\"SELECT c FROM OnboardingView c left join c.onboardingStatus s\")\n List<OnboardingView> findStatusAll();\n\n @Query(\"SELECT o FROM OnboardingSummaryView o left join o.onboardingStatus s left join o.contractInfo c where o.aid =:id\")\n OnboardingSummaryView findStatusSummary(@Param(\"id\") Long id);\n\n\n\n // @Query(\"SELECT o FROM OnboardingView o left join o.onboardingStatus s \")\n // List<OnboardingView> findStatusViewAll();\n}", "ConstantIdentityKey[] getMappingSnapshot();", "public long snapshotId() {\n return snapshotId;\n }", "@Projection(name=\"summary\", types = TvSeriesSummary.class)\npublic interface TvSeriesSummaryProjection {\n Date getLastUpdateDate();\n}", "@Override\n public HashedVersion getEndVersion() {\n return getSnapshot().getHashedVersion();\n }", "OffsetAndEpoch snapshotId();", "java.lang.String getSnapshotLocation();", "public void setSnapshotId(Integer snapshotId) {\r\n this.snapshotId = snapshotId;\r\n }", "@Override\r\n\t\t\t\tpublic Object doInTransaction(TransactionStatus arg0) {\n\t\t\t\t\t\r\n\t\t\t\t\tSqlLogInspetor sqlLogInspetor = new SqlLogInspetor();\r\n\t\t\t\t\tsqlLogInspetor.enable();\r\n\t\t\t\t\t\r\n\t\t\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\t\t\tList<MasterAEnt> masterAEntList = hbSupport.createCriteria(ss, MasterAEnt.class)\r\n\t\t\t\t\t\t.addOrder(OrderCompat.asc(\"id\")).list();\r\n\t\t\t\t\t\r\n\t\t\t\t\tPlayerManagerTest.this.manager\r\n\t\t\t\t\t\t.overwriteConfigurationTemporarily(\r\n\t\t\t\t\t\t\tPlayerManagerTest.this.manager.getConfig().clone()\r\n\t\t\t\t\t\t\t\t.configSerialiseBySignatureAllRelationship(true));\r\n\t\t\t\t\t\r\n\t\t\t\t\tPlayerSnapshot<List<MasterAEnt>> playerSnapshot = PlayerManagerTest.this.manager.createPlayerSnapshot(masterAEntList);\r\n\t\t\t\t\t\r\n\t\t\t\t\tFileOutputStream fos;\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tfos = new FileOutputStream(generatedFileResult);\r\n\t\t\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t\t.this\r\n\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t.getConfig()\r\n\t\t\t\t\t\t.getObjectMapper()\r\n\t\t\t\t\t\t.writerWithDefaultPrettyPrinter()\r\n\t\t\t\t\t\t.writeValue(fos, playerSnapshot);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\tthrow new RuntimeException(\"Unexpected\", e);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tsqlLogInspetor.disable();\r\n\t\t\t\t\t\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}", "public java.lang.String getSnapshotId() {\r\n return snapshotId;\r\n }", "com.google.protobuf.ByteString getSnapshotLocationBytes();", "Snapshot create();", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "private String getCommitTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table VCS_COMMIT(\");\n \t\tbuilder.append(\"VCS_COMMIT_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"BEFORE_REVISION_ID LONG,\");\n \t\tbuilder.append(\"AFTER_REVISION_ID LONG,\");\n \t\tbuilder.append(\"BEFORE_REVISION_IDENTIFIER TEXT,\");\n \t\tbuilder.append(\"AFTER_REVISION_IDENTIFIER TEXT\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "public NBBOStruct getNbboSnapshotForProduct(String sessionName, int productKey) throws UserException;", "@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);", "@Repository\n@Transactional\npublic interface ScratcherGameSnapshotDao extends CrudRepository<ScratcherGameSnapshot, Integer> {\n}", "@DB(table = \"share_list\")\npublic interface ShareDao {\n\n @SQL(\"insert into #table(code,name,industry,area,pe,outstanding,totals,totalAssets,liquidAssets,fixedAssets,esp,bvps,pb,timeToMarket,undp,holders) \" +\n \"values(:1.code,:1.name,:1.industry,:1.area,:1.pe,:1.outstanding,:1.totals,:1.totalAssets,:1.liquidAssets,:1.fixedAssets,:1.esp,:1.bvps,:1.pb,:1.timeToMarket,:1.undp,:1.holders)\")\n int insert(List<Share> shares);\n\n @SQL(\"select code,name,timeToMarket from #table\")\n List<Share> findAll();\n\n @SQL(\"select * from #table where code=:1\")\n Share find(String code);\n \n}", "@Select({\n \"select\",\n \"id, stock_out_record_id, stock_out_record_head_id, stock_out_record_head_code, \",\n \"group_name, stock_in_record_account_id, material_code, material_batch, material_type_id, \",\n \"material_sub_type_id, material_workshop_id, material_name_code, material_supplier_code, \",\n \"material_name, bag_num, weight, measure_unit, created_time, completion_flag\",\n \"from SWMS_stock_out_record_detail\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n @ResultMap(\"BaseResultMap\")\n SwmsStockOutRecordDetail selectByPrimaryKey(Long id);", "@Override\n\tpublic List<StockEntity> queryStockByWaybillNo(String originalWaybillNo) {\n\t\treturn null;\n\t}", "@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n List<ASuitMeasurement> selectAll();", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getDBSnapshotIdentifier() != null)\n sb.append(\"DBSnapshotIdentifier: \").append(getDBSnapshotIdentifier()).append(\",\");\n if (getDBSnapshotAttributes() != null)\n sb.append(\"DBSnapshotAttributes: \").append(getDBSnapshotAttributes());\n sb.append(\"}\");\n return sb.toString();\n }", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "public String getSourceTable();", "public void m21466o() throws bv {\n if (this.f18795a == null) {\n throw new cp(\"Required field 'snapshots' was not present! Struct: \" + toString());\n }\n }", "int insert(TbSnapshot record);", "@Override\r\n\t\t\tpublic Object doInTransaction(TransactionStatus arg0) {\n\t\t\t\t\r\n\t\t\t\tSqlLogInspetor sqlLogInspetor = new SqlLogInspetor();\r\n\t\t\t\tsqlLogInspetor.enable();\r\n\t\t\t\t\r\n\t\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\t\tList<DetailAEnt> detailAEntList = \r\n\t\t\t\t\t\thbSupport.createCriteria(ss, DetailAEnt.class)\r\n\t\t\t\t\t\t\t.addOrder(OrderCompat.asc(\"compId.masterA.id\"))\r\n\t\t\t\t\t\t\t.addOrder(OrderCompat.asc(\"compId.subId\")).list();\r\n\t\t\t\t\r\n\t\t\t\tList<DetailACompId> detailACompIdList = new ArrayList<>();\r\n\t\t\t\tfor (DetailAEnt detailAEnt : detailAEntList) {\r\n\t\t\t\t\tdetailACompIdList.add(detailAEnt.getCompId());\r\n\t\t\t\t\tPlayerManagerTest.this.manager.registerComponentOwner(DetailAEnt.class, detailAEnt.getCompId(), d -> d.getCompId());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t.this\r\n\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t.overwriteConfigurationTemporarily(\r\n\t\t\t\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t\t\t\t.this\r\n\t\t\t\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t\t\t\t\t.getConfig()\r\n\t\t\t\t\t\t\t\t\t\t\t.clone()\r\n\t\t\t\t\t\t\t\t\t\t\t.configSerialiseBySignatureAllRelationship(false));\r\n\t\t\t\t\r\n\t\t\t\tPlayerSnapshot<List<DetailACompId>> playerSnapshot = PlayerManagerTest.this.manager.createPlayerSnapshot(detailACompIdList);\r\n\t\t\t\t\r\n\t\t\t\tFileOutputStream fos;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfos = new FileOutputStream(generatedFileResult);\r\n\t\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t\t.this\r\n\t\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t\t\t.getConfig()\r\n\t\t\t\t\t\t\t\t\t.getObjectMapper()\r\n\t\t\t\t\t\t\t\t\t\t.writerWithDefaultPrettyPrinter()\r\n\t\t\t\t\t\t\t\t\t\t\t.writeValue(fos, playerSnapshot);\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\tthrow new RuntimeException(\"Unexpected\", e);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tsqlLogInspetor.disable();\r\n\t\t\t\t\r\n\t\t\t\treturn null;\r\n\t\t\t}", "OcCustContract selectByPrimaryKey(String contractNo);", "int getVersion() {\n String sql = \"SELECT * FROM \" + tableName;\n\n return query(new QueryAllStatement<Integer>(sql) {\n @Override\n public Integer processResults(ResultSet set) throws SQLException {\n set.next();\n return set.getInt(VERSION_COL);\n }\n });\n }", "public String getSnapshotIdentifier() {\n return this.snapshotIdentifier;\n }", "@PostConstruct\r\n\t@Transactional\r\n\tpublic void afterPropertiesSet() throws Exception {\n\t\t\r\n\t\tFile two = new File( context.getRealPath(\"/variants\") );\r\n\t\t//System.out.println(two.getAbsolutePath());\r\n\t\tVariantManager.init(new File[]{two}, false);\r\n\t\t\r\n\t\tJdbcTemplate template = new JdbcTemplate(dataSource);\r\n\t\ttemplate.execute(\"create table if not exists UserConnection (userId varchar(255) not null,\tproviderId varchar(255) not null,\tproviderUserId varchar(255),\trank int not null,\tdisplayName varchar(255),\tprofileUrl varchar(512),\timageUrl varchar(512),\taccessToken varchar(255) not null,\t\t\t\t\tsecret varchar(255),\trefreshToken varchar(255),\texpireTime bigint,\tprimary key (userId(100), providerId(50), providerUserId(150)))\");\r\n\t\ttry{\r\n\t\t\ttemplate.execute(\"create unique index UserConnectionRank on UserConnection(userId, providerId, rank)\");\r\n\t\t}catch(BadSqlGrammarException e){\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t//sf.openSession();\r\n\t\t\r\n//\t\tRowMapper<Object> rm = new RowMapper<Object>() {\r\n//\r\n// public Object mapRow(ResultSet rs, int rowNum) throws SQLException {\r\n// DefaultLobHandler lobHandler = new DefaultLobHandler();\r\n// InputStream stream = lobHandler.getBlobAsBinaryStream(rs, \"turnStates\");\r\n// ObjectInputStream ois;\r\n//\t\t\t\ttry {\r\n//\t\t\t\t\tois = new ObjectInputStream(stream);\r\n//\t\t\t\t\tTurnState ts = (TurnState) ois.readObject();\r\n//\t\t\t\t\tint id = rs.getInt(\"World_id\");\r\n//\t\t\t\t\tgr.addTurnstate(id, ts);\r\n//\t\t\t\t} catch (IOException e) {\r\n//\t\t\t\t\t// TODO Auto-generated catch block\r\n//\t\t\t\t\te.printStackTrace();\r\n//\t\t\t\t} catch (ClassNotFoundException 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//\r\n// return null;\r\n// }\r\n// };\r\n\t\t\r\n\t\t\r\n//\t\ttemplate.query(\"SELECT * FROM World_turnStates\",rm);\r\n\t\t\r\n\t\t\r\n\t\tUserEntity.NULL_USER = us.getUserEntity(126);\r\n\t\t\r\n\t\tif (UserEntity.NULL_USER == null){\r\n\t\t\tUserEntity.NULL_USER = new UserEntity();\r\n\t\t\tUserEntity.NULL_USER.setId(126);\r\n\t\t\tUserEntity.NULL_USER.setUsername(\"EMPTY\");\r\n\t\t\tus.saveUser(UserEntity.NULL_USER);\r\n\t\t}\r\n\t\t\r\n\t\tTimeZone.setDefault(TimeZone.getTimeZone(\"UTC\"));\r\n\t}", "@Dao\npublic interface UnsentChangedDao {\n\n\n @Insert\n long insertSingleChange(UnsentChange change);\n\n @Delete\n void deleteChanges(List<UnsentChange> changes);\n\n @Update\n void updateSigleChange(UnsentChange change);\n\n /**\n * Returns all unsent changed runner for given competition\n * @param competition_id ID of given competition\n */\n @SuppressWarnings(RoomWarnings.CURSOR_MISMATCH)\n @Query(\"SELECT * FROM unsent_changes \" +\n \"JOIN changed_runners ON unsent_changes.changed_runner_id = changed_runners.id \" +\n \"WHERE changed_runners.competition_id = :competition_id\")\n List<UnsentChange> GetUnsentChangesByCompetitionId(int competition_id);\n}", "@Override\r\n\t\t\tpublic Object doInTransaction(TransactionStatus arg0) {\n\t\t\t\t\r\n\t\t\t\tSqlLogInspetor sqlLogInspetor = new SqlLogInspetor();\r\n\t\t\t\tsqlLogInspetor.enable();\r\n\t\t\t\t\r\n\t\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\t\tList<DetailAEnt> detailAEntList = \r\n\t\t\t\t\t\thbSupport.createCriteria(ss, DetailAEnt.class)\r\n\t\t\t\t\t\t\t.addOrder(OrderCompat.asc(\"compId.masterA.id\"))\r\n\t\t\t\t\t\t\t.addOrder(OrderCompat.asc(\"compId.subId\")).list();\r\n\t\t\t\t\r\n\t\t\t\tList<DetailACompComp> detailACompIdList = new ArrayList<>();\r\n\t\t\t\tfor (DetailAEnt detailAEnt : detailAEntList) {\r\n\t\t\t\t\tdetailACompIdList.add(detailAEnt.getDetailAComp().getDetailACompComp());\r\n\t\t\t\t\tPlayerManagerTest.this.manager.registerComponentOwner(detailAEnt, d -> d.getDetailAComp());\r\n\t\t\t\t\tPlayerManagerTest.this.manager.registerComponentOwner(detailAEnt.getDetailAComp(), dc -> dc.getDetailACompComp());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t.this\r\n\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t.overwriteConfigurationTemporarily(\r\n\t\t\t\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t\t\t\t.this\r\n\t\t\t\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t\t\t\t\t.getConfig()\r\n\t\t\t\t\t\t\t\t\t\t\t.clone()\r\n\t\t\t\t\t\t\t\t\t\t\t.configSerialiseBySignatureAllRelationship(false));\r\n\t\t\t\t\r\n\t\t\t\tPlayerSnapshot<List<DetailACompComp>> playerSnapshot = PlayerManagerTest.this.manager.createPlayerSnapshot(detailACompIdList);\r\n\t\t\t\t\r\n\t\t\t\tFileOutputStream fos;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfos = new FileOutputStream(generatedFileResult);\r\n\t\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t\t.this\r\n\t\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t\t\t.getConfig()\r\n\t\t\t\t\t\t\t\t\t.getObjectMapper()\r\n\t\t\t\t\t\t\t\t\t\t.writerWithDefaultPrettyPrinter()\r\n\t\t\t\t\t\t\t\t\t\t\t.writeValue(fos, playerSnapshot);\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\tthrow new RuntimeException(\"Unexpected\", e);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tsqlLogInspetor.disable();\r\n\t\t\t\t\r\n\t\t\t\treturn null;\r\n\t\t\t}", "@Override\r\n\t\t\tpublic Object doInTransaction(TransactionStatus arg0) {\n\t\t\t\t\r\n\t\t\t\tSqlLogInspetor sqlLogInspetor = new SqlLogInspetor();\r\n\t\t\t\tsqlLogInspetor.enable();\r\n\t\t\t\t\r\n\t\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\t\tList<DetailAEnt> detailAEntList = \r\n\t\t\t\t\t\thbSupport.createCriteria(ss, DetailAEnt.class)\r\n\t\t\t\t\t\t\t.addOrder(OrderCompat.asc(\"compId.masterA.id\"))\r\n\t\t\t\t\t\t\t.addOrder(OrderCompat.asc(\"compId.subId\")).list();\r\n\t\t\t\t\r\n\t\t\t\tList<DetailACompComp> detailACompIdList = new ArrayList<>();\r\n\t\t\t\tfor (DetailAEnt detailAEnt : detailAEntList) {\r\n\t\t\t\t\tdetailACompIdList.add(detailAEnt.getDetailAComp().getDetailACompComp());\r\n\t\t\t\t\tPlayerManagerTest.this.manager.registerComponentOwner(\r\n\t\t\t\t\t\t\tDetailAEnt.class, \r\n\t\t\t\t\t\t\tdetailAEnt.getDetailAComp().getDetailACompComp(),\r\n\t\t\t\t\t\t\td -> d.getDetailAComp().getDetailACompComp());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t.this\r\n\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t.overwriteConfigurationTemporarily(\r\n\t\t\t\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t\t\t\t.this\r\n\t\t\t\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t\t\t\t\t.getConfig()\r\n\t\t\t\t\t\t\t\t\t\t\t.clone()\r\n\t\t\t\t\t\t\t\t\t\t\t.configSerialiseBySignatureAllRelationship(false));\r\n\t\t\t\t\r\n\t\t\t\tPlayerSnapshot<List<DetailACompComp>> playerSnapshot = PlayerManagerTest.this.manager.createPlayerSnapshot(detailACompIdList);\r\n\t\t\t\t\r\n\t\t\t\tFileOutputStream fos;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfos = new FileOutputStream(generatedFileResult);\r\n\t\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t\t.this\r\n\t\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t\t\t.getConfig()\r\n\t\t\t\t\t\t\t\t\t.getObjectMapper()\r\n\t\t\t\t\t\t\t\t\t\t.writerWithDefaultPrettyPrinter()\r\n\t\t\t\t\t\t\t\t\t\t\t.writeValue(fos, playerSnapshot);\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\tthrow new RuntimeException(\"Unexpected\", e);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tsqlLogInspetor.disable();\r\n\t\t\t\t\r\n\t\t\t\treturn null;\r\n\t\t\t}", "public static boolean isSnapshotVersion() {\n\t\treturn getShortVersion().toLowerCase().startsWith(\"snapshot\");\n\t}", "@Override\r\n\t\t\tpublic Object doInTransaction(TransactionStatus arg0) {\n\t\t\t\t\r\n\t\t\t\tSqlLogInspetor sqlLogInspetor = new SqlLogInspetor();\r\n\t\t\t\tsqlLogInspetor.enable();\r\n\t\t\t\t\r\n\t\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\t\tList<DetailAEnt> detailAEntList = \r\n\t\t\t\t\t\thbSupport.createCriteria(ss, DetailAEnt.class)\r\n\t\t\t\t\t\t\t.addOrder(OrderCompat.asc(\"compId.masterA.id\"))\r\n\t\t\t\t\t\t\t.addOrder(OrderCompat.asc(\"compId.subId\")).list();\r\n\t\t\t\t\r\n\t\t\t\tList<DetailACompId> detailACompIdList = new ArrayList<>();\r\n\t\t\t\tfor (DetailAEnt detailAEnt : detailAEntList) {\r\n\t\t\t\t\tdetailACompIdList.add(detailAEnt.getCompId());\r\n\t\t\t\t\tPlayerManagerTest.this.manager.registerComponentOwner(detailAEnt, d -> d.getCompId());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t.this\r\n\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t.overwriteConfigurationTemporarily(\r\n\t\t\t\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t\t\t\t.this\r\n\t\t\t\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t\t\t\t\t.getConfig()\r\n\t\t\t\t\t\t\t\t\t\t\t.clone()\r\n\t\t\t\t\t\t\t\t\t\t\t.configSerialiseBySignatureAllRelationship(false));\r\n\t\t\t\t\r\n\t\t\t\tPlayerSnapshot<List<DetailACompId>> playerSnapshot = PlayerManagerTest.this.manager.createPlayerSnapshot(detailACompIdList);\r\n\t\t\t\t\r\n\t\t\t\tFileOutputStream fos;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfos = new FileOutputStream(generatedFileResult);\r\n\t\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t\t.this\r\n\t\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t\t\t.getConfig()\r\n\t\t\t\t\t\t\t\t\t.getObjectMapper()\r\n\t\t\t\t\t\t\t\t\t\t.writerWithDefaultPrettyPrinter()\r\n\t\t\t\t\t\t\t\t\t\t\t.writeValue(fos, playerSnapshot);\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\tthrow new RuntimeException(\"Unexpected\", e);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tsqlLogInspetor.disable();\r\n\t\t\t\t\r\n\t\t\t\treturn null;\r\n\t\t\t}", "public interface CustomerAuditRepository extends JpaRepository<CustomerAudit, Long>{\n\n}", "ResPartnerBankEntityWithBLOBs selectByPrimaryKey(Integer id);", "private String getCloneSetTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table CLONE_SET(\");\n \t\tbuilder.append(\"CLONE_SET_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"OWNER_REVISION_ID LONG,\");\n \t\tbuilder.append(\"ELEMENTS TEXT NOT NULL,\");\n \t\tbuilder.append(\"NUMBER_OF_ELEMENTS INTEGER\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "public TableVersion() {\n this(DSL.name(\"table_version\"), null);\n }", "public List<TransactionReportRow> generateReportOnAllReserveTransactions(int start, int numOfRows) throws MiddlewareQueryException;", "@Transactional\npublic interface TradeRecordRepository extends Repository<TradeRecord,Long> {\n @Query(\"select t from TradeRecord t\")\n List<TradeRecord> getAll();\n\n @Modifying\n @Query(\"select t from TradeRecord t \" +\n \"where t.from_card_id = ?1 \" +\n \"and STR_TO_DATE(t.date_time,'%Y%m%d%H%i%s') >= STR_TO_DATE(?2,'%Y%m%d%H%i%s') \" +\n \"and STR_TO_DATE(t.date_time,'%Y%m%d%H%i%s') <= STR_TO_DATE(?3,'%Y%m%d%H%i%s')\")\n List<TradeRecord> findTradeRecordByFrom_card_idIs( int to_card_id,String startdate,String enddate);\n @Modifying\n @Query(\"select t from TradeRecord t \" +\n \"where t.to_card_id = ?1 \"+\n \"and STR_TO_DATE(t.date_time,'%Y%m%d%H%i%s') >= STR_TO_DATE(?2,'%Y%m%d%H%i%s') \" +\n \"and STR_TO_DATE(t.date_time,'%Y%m%d%H%i%s') <= STR_TO_DATE(?3,'%Y%m%d%H%i%s')\")\n List<TradeRecord> findTradeRecordByTo_card_idIs(int to_card_id,String startdate,String enddate);\n @Modifying\n @Query( \"select o from TradeRecord o where o.to_card_id in :ids\" )\n List<TradeRecord> findTradeRecordByTo_card_idContains(@Param(\"ids\") List<Integer> inventoryIdList);\n\n @Modifying\n @Query(\"select t from TradeRecord t \" +\n \"where t.to_card_id in :ids \" +\n \"and STR_TO_DATE(t.date_time,'%Y%m%d%H%i%s') >= STR_TO_DATE(:startdate,'%Y%m%d%H%i%s') \" +\n \"and STR_TO_DATE(t.date_time,'%Y%m%d%H%i%s') <= STR_TO_DATE(:enddate,'%Y%m%d%H%i%s')\")\n List<TradeRecord> findTradeRecordByTo_card_idContainsAndDate_time(@Param(\"ids\") List<Integer> inventoryIdList,@Param(\"startdate\") String startdate,@Param(\"enddate\") String enddate);\n\n @Modifying\n @Query(\"select t from TradeRecord t \" +\n \"where t.from_card_id in :ids \" +\n \"and STR_TO_DATE(t.date_time,'%Y%m%d%H%i%s') >= STR_TO_DATE(:startdate,'%Y%m%d%H%i%s') \" +\n \"and STR_TO_DATE(t.date_time,'%Y%m%d%H%i%s') <= STR_TO_DATE(:enddate,'%Y%m%d%H%i%s')\")\n List<TradeRecord> findTradeRecordByFrom_card_idContainsAndDate_time(@Param(\"ids\") List<Integer> inventoryIdList,@Param(\"startdate\") String startdate,@Param(\"enddate\") String enddate);\n}", "@Override\r\n\t\t\tpublic Object doInTransaction(TransactionStatus arg0) {\n\t\t\t\t\r\n\t\t\t\tSqlLogInspetor sqlLogInspetor = new SqlLogInspetor();\r\n\t\t\t\tsqlLogInspetor.enable();\r\n\t\t\t\t\r\n\t\t\t\tMasterBCompId compId = new MasterBCompId();\r\n\t\t\t\tcompId.setIdA(1);\r\n\t\t\t\tcompId.setIdB(1);\r\n\t\t\t\tMasterBEnt masterBEnt = (MasterBEnt) ss.get(MasterBEnt.class, compId);\r\n\t\t\t\tSystem.out.println(\"$$$$: \" + masterBEnt.getDatetimeA());\r\n\t\t\t\tSystem.out.println(\"$$$$: \" + masterBEnt.getDatetimeA().getTime());\r\n\t\t\t\r\n\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t.this\r\n\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t.overwriteConfigurationTemporarily(\r\n\t\t\t\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t\t\t\t.this\r\n\t\t\t\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t\t\t\t\t.getConfig()\r\n\t\t\t\t\t\t\t\t\t\t\t.clone()\r\n\t\t\t\t\t\t\t\t\t\t\t.configSerialiseBySignatureAllRelationship(true));\r\n\t\t\t\t\r\n\t\t\t\tPlayerSnapshot<MasterBEnt> playerSnapshot = PlayerManagerTest.this.manager.createPlayerSnapshot(masterBEnt);\r\n\t\t\t\t\r\n\t\t\t\tFileOutputStream fos;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfos = new FileOutputStream(generatedFileResult);\r\n\t\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t\t.this\r\n\t\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t\t\t.getConfig()\r\n\t\t\t\t\t\t\t\t\t.getObjectMapper()\r\n\t\t\t\t\t\t\t\t\t\t.writerWithDefaultPrettyPrinter()\r\n\t\t\t\t\t\t\t\t\t\t\t.writeValue(fos, playerSnapshot);\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\tthrow new RuntimeException(\"Unexpected\", e);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tsqlLogInspetor.disable();\r\n\t\t\t\t\r\n\t\t\t\treturn null;\r\n\t\t\t}", "private void createCloneGenealogyTableIndexes() throws Exception {\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index CLONE_GENEALOGY_ID_INDEX_CLONE_GENEALOGY on CLONE_GENEALOGY(CLONE_GENEALOGY_ID)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index START_REVISION_ID_INDEX_CLONE_GENEALOGY on CLONE_GENEALOGY(START_REVISION_ID)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index END_REVISION_ID_INDEX_CLONE_GENEALOGY on CLONE_GENEALOGY(END_REVISION_ID)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index CHANGES_INDEX_CLONE_GENEALOGY on CLONE_GENEALOGY(CHANGES)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index ADDITIONS_INDEX_CLONE_GENEALOGY on CLONE_GENEALOGY(ADDITIONS)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index DELETIONS_INDEX_CLONE_GENEALOGY on CLONE_GENEALOGY(DELETIONS)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index DEAD_INDEX_CLONE_GENEALOGY on CLONE_GENEALOGY(DEAD)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index START_END_REVISION_ID_INDEX_CLONE_GENEALOGY on CLONE_GENEALOGY(START_REVISION_ID,END_REVISION_ID)\");\n \t}", "public abstract SnapShot GetSnapshot();", "@Override\n public void snapshotState(FunctionSnapshotContext functionSnapshotContext) throws Exception {\n }", "private static StringBuilder generateSqlForSeason(IndexParams params) {\n \n StringBuilder sbSQL = new StringBuilder(\"SELECT sea.id\");\n sbSQL.append(SQL_COMMA_SPACE_QUOTE).append(SEASON).append(SQL_AS_VIDEO_TYPE);\n sbSQL.append(\", sea.title, sea.title_original AS originalTitle, sea.title_sort AS sortTitle\");\n sbSQL.append(\", sea.publication_year as videoYear, null as releaseDate\");\n sbSQL.append(\", sea.series_id AS seriesId, sea.id AS seasonId, sea.season AS season, -1 AS episode\");\n\t\tif (!params.getLibrary_item()) { sbSQL.append(\", null AS library_base \");}\n sbSQL.append(\", (SELECT min(vid.watched) from videodata vid where vid.season_id=sea.id) as watched\");\n sbSQL.append(\", sea.create_timestamp as createTimestamp \");\n sbSQL.append(DataItemTools.addSqlDataItems(params.getDataItems(), \"sea\"));\n\n if (params.checkNewest()) {\n String source = params.getNewestSource();\n if (LITERAL_CREATION.equalsIgnoreCase(source)) {\n sbSQL.append(\", sea.create_timestamp AS newest\");\n } else if (LITERAL_LASTSCAN.equalsIgnoreCase(source)) {\n sbSQL.append(\", sea.last_scanned AS newest\");\n } else {\n params.addParameter(LITERAL_EXTRA, Boolean.FALSE);\n\n sbSQL.append(\", (SELECT MAX(sf.file_date) FROM stage_file sf JOIN mediafile mf ON mf.id=sf.mediafile_id \");\n sbSQL.append(\"JOIN mediafile_videodata mv ON mv.mediafile_id=mf.id JOIN videodata vd ON mv.videodata_id=vd.id \");\n sbSQL.append(\"WHERE vd.season_id=sea.id AND sf.file_type\");\n sbSQL.append(SQL_SELECTABLE_VIDEOS);\n sbSQL.append(\"AND sf.status\");\n sbSQL.append(SQL_IGNORE_STATUS_SET);\n sbSQL.append(\"AND mf.extra=:extra) AS newest\");\n }\n }\n\t\tif (params.getLibrary_item()) {\n\t\t\tsbSQL.append(\" ,l.base_directory as library_base from series_libraries sl join library l on l.id = sl.library_id join season sea on sea.series_id = sl.series_id WHERE 1=1\");\n }\n\t\telse {sbSQL.append(\" FROM season sea WHERE 1=1\");}\n \n if (params.getId().longValue() > 0L) {\n sbSQL.append(\" AND sea.id=\").append(params.getId());\n }\n\n if (params.includeYear()) {\n sbSQL.append(\" AND sea.publication_year=\").append(params.getYear());\n } else if (params.excludeYear()) {\n sbSQL.append(\" AND sea.publication_year!=\").append(params.getYear());\n }\n if (params.getYearStart() > 0) {\n sbSQL.append(\" AND sea.publication_year>=\").append(params.getYearStart());\n }\n if (params.getYearEnd() > 0) {\n sbSQL.append(\" AND sea.publication_year<=\").append(params.getYearEnd());\n }\n \n // check watched\n if (params.getWatched() != null) {\n sbSQL.append(\" AND exists (SELECT 1 FROM videodata v WHERE v.watched=\");\n sbSQL.append(params.getWatched().booleanValue() ? \"1\" : \"0\");\n sbSQL.append(\" AND v.season_id=sea.id)\");\n }\n\n // check genre inclusion/exclusion\n includeOrExcludeGenre(SEASON, params, sbSQL);\n\n // check studio inclusion/exclusion\n includeOrExcludeStudio(SEASON, params, sbSQL);\n\t\t\n\t\t// check library inclusion/exclusion\n includeOrExcludeLibrary(SEASON, params, sbSQL);\n\n // check country inclusion/exclusion\n includeOrExcludeCountry(SEASON, params, sbSQL);\n\n // check certification inclusion/exclusion\n includeOrExcludeCertification(SEASON, params, sbSQL);\n\n // check award inclusion/exclusion\n includeOrExcludeAward(SEASON, params, sbSQL);\n\n // check video source inclusion/exclusion\n includeOrExcludeVideoSource(SEASON, params, sbSQL);\n\n // check resolution inclusion/exclusion\n includeOrExcludeResolution(SEASON, params, sbSQL);\n\n // check resolution inclusion/exclusion\n includeOrExcludeRating(SEASON, params, sbSQL);\n\n // check rating inclusion/exclusion\n includeOrExcludeRating(SEASON, params, sbSQL);\n\n // check boxed set inclusion/exclusion\n includeOrExcludeBoxedSet(SEASON, params, sbSQL);\n\n // check newest\n final String newestSource = params.getNewestSource();\n if (newestSource != null) {\n Date newestDate = params.getNewestDate();\n params.addParameter(LITERAL_NEWEST_DATE, newestDate);\n\n if (LITERAL_CREATION.equalsIgnoreCase(newestSource)) {\n if (params.includeNewest()) {\n sbSQL.append(\" AND sea.create_timestamp >= :newestDate\");\n } else {\n sbSQL.append(\" AND sea.create_timestamp < :newestDate\");\n }\n } else if (LITERAL_LASTSCAN.equalsIgnoreCase(newestSource)) {\n if (params.includeNewest()) {\n sbSQL.append(\" AND (sea.last_scanned is null or sea.last_scanned >= :newestDate)\");\n } else {\n sbSQL.append(\" AND sea.last_scanned is not null AND sea.last_scanned < :newestDate\");\n }\n } else {\n params.addParameter(LITERAL_EXTRA, Boolean.FALSE);\n \n addExistsOrNot(params.includeNewest(), sbSQL);\n sbSQL.append(\"JOIN mediafile mf ON mf.id=sf.mediafile_id JOIN mediafile_videodata mv ON mv.mediafile_id=mf.id \");\n sbSQL.append(\"JOIN videodata vd ON mv.videodata_id=vd.id WHERE vd.season_id=sea.id \");\n sbSQL.append(\"AND sf.file_type\");\n sbSQL.append(SQL_SELECTABLE_VIDEOS);\n sbSQL.append(\"AND sf.status!='DUPLICATE' AND mf.extra=:extra AND sf.file_date >= :newestDate)\");\n }\n }\n\n // add the search string, this will be empty if there is no search required\n return sbSQL.append(params.getSearchString(false));\n }", "@Override\n public boolean modelRecordWithBLOBsClassGenerated(TopLevelClass topLevelClass, IntrospectedTable introspectedTable) {\n addDataAnnotation(topLevelClass);\n return true;\n }", "@Override\n public TableFunctionSignature[] getFunctionSignatures() {\n return ArrayConcatenator.\n concatenate(sourceDestinationSignatures(),\n sourceSignatures(),\n sourceDestinationTableSignatures());\n }", "ArrayList<Bet> selectAllBetsOnMatch(int eventID) throws DAOException;", "public String getSiteDropboxChangeSql() \r\n \t{\r\n \t\treturn \"select DROPBOX_ID, LAST_UPDATE from CONTENT_DROPBOX_CHANGES where (IN_COLLECTION = ?)\";\r\n \t}", "@Override\n\t@Transactional\n\n\tpublic void initProjection() {\n\t\tdouble[] prices=new double[] {30,50,60,70,90,100};//\n\t\tvilleRepository.findAll().forEach(ville->{\n\t\tville.getCinemas().forEach(cinema->{\n\t\tcinema.getSalles().forEach(salle->{\n\t\tfilmRepository.findAll().forEach(film->{\n\t\tseanceRepository.findAll().forEach(seance->{\n\t\tProjection projection=new Projection();\n\t\tprojection.setDateProjection(new Date());\n\t\tprojection.setFilm(film);\n\t\tprojection.setPrix(prices[new Random().nextInt(prices.length)]);\n\t\tprojection.setSalle(salle);\n\t\tprojection.setSeance(seance);\n\t\tprojectionRepository.save(projection);\n\t\t});\n\t\t});\n\t\t});\n\t\t});\n\t\t});\n\t\t\n\t}", "public boolean isSnapshotVersion( )\n {\n return Version.isSnapshot( getCurrentVersion( ) );\n }", "@Nullable public GridCacheVersion ownedVersion(IgniteTxKey key);", "public ClassSQLContract(SQLTagsGeneratorTable sqlTagsGeneratorTable){\n //---------------------------------------------------------------------------\n this.sqlTagsGeneratorTable=sqlTagsGeneratorTable;\n this.tableName=sqlTagsGeneratorTable.getTableName();\n createClassSQLContract();\n }", "ArrayList<Bet> selectLostBetsOfAccount(Account account) throws DAOException;", "public interface TradeRecordAndTradeCardRepository extends Repository<TradeCardAccount,Long>{\n\n @Modifying\n @Query(value = \"select a.from_card_id as card_id, a.money_amount,a.date_time,b.card_number,(@cnt\\\\:=@cnt+1) as id from t_trade_record a\\n\" +\n \"join t_card b\\n\" +\n \"on a.from_card_id = b.id\\n\" +\n \"CROSS JOIN (SELECT @cnt\\\\:=0) AS dummy\\n\"+\n \"where b.card_number in :ids \" +\n \"and STR_TO_DATE(a.date_time,'%Y%m%d%H%i%s') >= STR_TO_DATE(:startdate,'%Y%m%d%H%i%s') \"+\n \"and STR_TO_DATE(a.date_time,'%Y%m%d%H%i%s') <= STR_TO_DATE(:enddate,'%Y%m%d%H%i%s') \" +\n \"order by STR_TO_DATE(a.date_time,'%Y%m%d%H%i%s') \"\n ,nativeQuery = true)\n\n\n List<TradeCardAccount> findByFromCard_number (@Param(\"ids\") List<String> inventoryIdList,@Param(\"startdate\") String startdate,@Param(\"enddate\") String enddate);\n\n @Modifying\n @Query(value = \"select a.from_card_id as card_id, a.money_amount,a.date_time,b.card_number,(@cnt\\\\:=@cnt+1) as id from t_trade_record a\\n\" +\n \"join t_card b\\n\" +\n \"on a.to_card_id = b.id\\n\" +\n \"CROSS JOIN (SELECT @cnt\\\\:=0) AS dummy\\n\"+\n \"where b.card_number in :ids \" +\n \"and STR_TO_DATE(a.date_time,'%Y%m%d%H%i%s') >= STR_TO_DATE(:startdate,'%Y%m%d%H%i%s') \"+\n \"and STR_TO_DATE(a.date_time,'%Y%m%d%H%i%s') <= STR_TO_DATE(:enddate,'%Y%m%d%H%i%s') \"\n ,nativeQuery = true)\n\n\n List<TradeCardAccount> findByToCard_number (@Param(\"ids\") List<String> inventoryIdList,@Param(\"startdate\") String startdate,@Param(\"enddate\") String enddate);\n}" ]
[ "0.5203647", "0.4986407", "0.49669755", "0.49612403", "0.49244353", "0.48972932", "0.48783895", "0.486266", "0.48614007", "0.486068", "0.48571524", "0.483736", "0.48060375", "0.47946525", "0.47339612", "0.47145146", "0.47072762", "0.47060493", "0.4690331", "0.46875563", "0.4678352", "0.46749562", "0.46545443", "0.46524304", "0.46492463", "0.4645069", "0.46419588", "0.46342534", "0.46305275", "0.46015072", "0.45887923", "0.45868564", "0.45800886", "0.45680493", "0.45680493", "0.45680493", "0.45680493", "0.45680493", "0.45668668", "0.4558934", "0.45474806", "0.45250046", "0.45183668", "0.4512587", "0.44935036", "0.4487532", "0.44872066", "0.44835606", "0.44717613", "0.4461282", "0.44452375", "0.44430894", "0.44423893", "0.44420856", "0.44391358", "0.44360644", "0.44358578", "0.4433087", "0.44303823", "0.44281378", "0.4427839", "0.44276288", "0.44183037", "0.44152763", "0.44115925", "0.4403317", "0.44003236", "0.43964657", "0.4388104", "0.4384915", "0.43696144", "0.43643004", "0.43642014", "0.43604198", "0.43578905", "0.4352792", "0.4352097", "0.435193", "0.43469977", "0.43457368", "0.43441084", "0.4343971", "0.43356025", "0.43304035", "0.4327817", "0.43168518", "0.4310777", "0.43042266", "0.4302124", "0.42959803", "0.42908272", "0.42849723", "0.42841253", "0.4283927", "0.42805758", "0.4279074", "0.42766488", "0.42744237", "0.42739815", "0.4269374", "0.4269293" ]
0.0
-1
isSpamDetection() This method is supposed to detect the most basic of DDoS attacks from one or many locations to prevent to many repeat interactions with the system.
public static boolean isSpamConnect(int identifier, long timestamp){ int id = identifier % MAX_CONNECTION_BUFFER; /* Check whether we are dealing with a recent connection or a new one */ if(connections.get(id) != null){ /* Test time since previous connection */ if(timestamp - connections.get(id) < MIN_CONNECTION_WAIT){ /* We have a spammer, punish them */ connections.put(id, timestamp + PUNISH_TIMEOUT); return true; } } connections.put(id, timestamp); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized boolean hasSpamFolder() {\n return !K9.FOLDER_NONE.equalsIgnoreCase(mSpamFolderName);\n }", "public boolean IsSpam(File testFile) throws FileNotFoundException {\n List<String> words = readFile(testFile);\n List<Integer> wordCount = new ArrayList<>();\n int index;\n\n //Set the wordCount to zero for all words in vocabularyList.\n wordCount.add(1);\n for (int count = 0; count < vocabularyList.size(); count++) {\n wordCount.add(new Integer(0));\n }\n\n //Calculate wordCount for the testFile\n for (String eachWord : words) {\n if (this.vocabularyList.contains(eachWord)) {\n index = this.vocabularyList.indexOf(eachWord);\n wordCount.set(index, wordCount.get(index) + 1);\n }\n }\n\n //Calculate the value of perceptron function O\n return getVavlueOfO(wordCount) > 0;\n }", "public boolean spam() {\n\t\tsynchronized (this) {\n\t\t\tif (!canUse() || !start())\n\t\t\t\treturn false;\n\t\t\tfinal TimedCondition tc = new TimedCondition(1000) {\n\t\t\t\t@Override\n\t\t\t\tpublic boolean isDone() {\n\t\t\t\t\treturn !canUse() || BarNode.this.isDone();\n\t\t\t\t}\n\t\t\t};\n\t\t\tdo {\n\t\t\t\tsend();\n\t\t\t\tTask.sleep(300, 400);\n\t\t\t} while (tc.isRunning());\n\t\t\treturn tc.isDone();\n\t\t}\n\t}", "private boolean lookupSentiments(Sentence sent) {\n if (selectCovered(NGram.class, sent).size() > 0)\n return true;\n return false;\n }", "public void testSpamCategory(){\n\t\t\n\t\tTweetStatus tweetStatus = new TweetStatus();\n\t\tString tweet = \"Call us to get the best deal on vacation to rome\";\n\t\ttweetStatus.setTweetText(tweet);\n\t\tTweetCategoryType tweetCategoryType = naiveBayeClassifier.classify(tweetStatus);\n\t\t\n\t\tAssert.assertEquals(TweetCategoryType.SPAM, tweetCategoryType);\n\t}", "private boolean isAnExaminedPosition() {\n\t\treturn this\n\t\t\t\t.getFindedThreats()\n\t\t\t\t.stream()\n\t\t\t\t.anyMatch(\n\t\t\t\t\t\tthreat -> threat.getPosition().equals(\n\t\t\t\t\t\t\t\tthis.getCurrentPosition().getCoordinate()));\n\t}", "@Override\n\tpublic boolean isDanger() {\n\t\tSharedPreferences prefs = NotificationStack.context.getSharedPreferences(\"com.app.virtualguardian\", Context.MODE_PRIVATE); \n\t\tint distancia=pingGps(Latitud,Longitud);\n\t\tint distanciaAuto=pingCar();\n\t\tint maxPer = Integer.parseInt(prefs.getString(\"distanciaPersonal\",\"3000\")); \n\t\tint maxCar = Integer.parseInt(prefs.getString(\"distanciaAuto\",\"3000\"));\n\t\tif(distancia<=maxPer){\n\t\t\t//avisaamigos\n\t\t\tavisaAmigos(distancia);\n\t\t}\n\t\tif(distanciaAuto<=maxCar){\n\t\t\t//avisaauto\n\t\t\tavisaAuto(distanciaAuto);\n\t\t}\n\t\tif(distancia<=maxPer || distanciaAuto<=maxCar)return true;\n\t\treturn false;\n\t}", "public void checkHits() {\n\t\t// your code here\n\t\tfor (int i = 0; i < enemyX.length; i++) {\n\t\t\tif (distance((int)xI, (int)yI, enemyX[i], enemyY[i]) <= DIAM_ENEMY/2 + DIAM_LAUNCHER/2) {\n\t\t\t}\n\t\t}\n\t}", "@Test\n @Ignore\n public void testDTypeSpam() throws Exception {\n Random rnd = new Random();\n for(int i = 0; i < 100; i++) {\n DataTypeUtil.setDTypeForContext(DataBuffer.Type.FLOAT);\n float rand[] = new float[rnd.nextInt(10) + 1];\n for (int x = 0; x < rand.length; x++) {\n rand[x] = rnd.nextFloat();\n }\n Nd4j.getConstantHandler().getConstantBuffer(rand);\n\n int shape[] = new int[rnd.nextInt(3)+2];\n for (int x = 0; x < shape.length; x++) {\n shape[x] = rnd.nextInt(100) + 2;\n }\n\n DataTypeUtil.setDTypeForContext(DataBuffer.Type.DOUBLE);\n INDArray array = Nd4j.rand(shape);\n BooleanIndexing.applyWhere(array, Conditions.lessThan(rnd.nextDouble()), rnd.nextDouble());\n }\n }", "void checkPositions() {\n //check if any bullets have hit any asteroids\n for (int i = 0; i < bullets.size(); i++) {\n for (int j = 0; j < asteroids.size(); j++) {\n if (asteroids.get(j).checkIfHit(bullets.get(i).pos)) {\n shotsHit++;\n bullets.remove(i);//remove bullet\n score +=1;\n break;\n }\n }\n }\n //check if player has been hit\n if (immortalityTimer <=0) {\n for (int j = 0; j < asteroids.size(); j++) {\n if (asteroids.get(j).checkIfHitPlayer(position)) {\n playerHit();\n }\n }\n }\n }", "public void hasHammer() {\n\t\tif (checkHammer(Integer.parseInt(getCurrentPositionX()),Integer.parseInt(getCurrentPositionY()))) {\n\t\t\tDisplay.setHammer(\"Yes\");\n\t\t\tDisplay.setMessage(\"You have found an ax! Try to cut a withered tree!\");\n\t\t}\n\t}", "boolean hasSentimentAnalysis();", "void test(String hamEmailsDirectoryPath, String spamEmailsDirectoryPath,boolean noStopWordsRemoval) throws IOException {\n hashLexicons();\n //String hamEmailsDirectoryPath = \"C:\\\\Users\\\\Praveen\\\\OneDrive\\\\Spring 2016\\\\Machine_Learning\\\\Assignment\\\\2\\\\test\\\\ham\";\n findTruePositive(hamEmailsDirectoryPath, EmailClass.ham,noStopWordsRemoval);\n findTruePositive(spamEmailsDirectoryPath, EmailClass.spam,noStopWordsRemoval);\n //System.out.println(\"The accuracy in classifying the ham emails using Naive Bayes classifier is \"+d*100);\n //String spamEmailsDirectoryPath = \"C:\\\\Users\\\\Praveen\\\\OneDrive\\\\Spring 2016\\\\Machine_Learning\\\\Assignment\\\\2\\\\test\\\\spam\";\n //System.out.println(\"The accuracy in classifying the spam emails using Naive Bayes classifier is \"+findAccuracy(spamEmailsDirectoryPath, EmailClass.spam,noStopWordsRemoval)*100);\n System.out.println(\"Accuracy of email clasification using Naive Bayes Algorithm is: \" + (truePositive / (double) testSamples)*100);\n }", "public boolean perdu() {\r\n return this.robots.isEmpty();\r\n }", "@Override\n public boolean checkForScoringCondition(BotState botState) {\n Location botLocation = new Location(botState.x, botState.y);\n for (var ballLocation: ballLocations) {\n if (botLocation.getDistance(ballLocation) < SCORING_DISTANCE) {\n // The robot picked up the ball!\n logger.info(\"FOUND A BALL BOT=\"+botLocation+\" ball=\"+ballLocation);\n ballLocations.remove(ballLocation);\n return true;\n }\n }\n return false;\n }", "public void checkFoodCollision(){\r\n\t\tint a = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));// converts it to double with 0.00\r\n\t\tint b = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\tfor (int x = a - 1; x < a + 1;x++){\r\n\t\t\tfor(int y = b - 1; y < b + 1; y++){\r\n\t\t\t\tif(x < foodArray.length && x > 0){\r\n\t\t\t\t\tif(y < foodArray[0].length && y > 0){\r\n\t\t\t\t\t\tif (collision(foodArray[x][y],pacmansprite)){\r\n\t\t\t\t\t\t\tif (!foodArray[x][y].getText().equals(\"\")){//if there is food, \"eats\" it\r\n\t\t\t\t\t\t\t\tfoodArray[x][y].setText(\"\");\r\n\t\t\t\t\t\t\t\tfoodCounter --;\r\n\t\t\t\t\t\t\t\tfoodSound();\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\telse{\r\n\t\t\t\t\t\tcheckwarp();\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\tcheckwarp();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "boolean hasPingerLoc();", "boolean hasHasAlcoholBloodContent();", "private boolean checkDadBot(MessageReceivedEvent event) {\n String message = event.getMessage().getContentDisplay();\n\n // Ignore messages that are too short or long to be funny\n if (message.length() < 5 || message.length() > 40)\n return false;\n\n String name = null;\n\n if (message.toLowerCase(Locale.ROOT).startsWith(\"i'm \"))\n name = message.substring(4);\n else if (message.toLowerCase(Locale.ROOT).startsWith(\"im \"))\n name = message.substring(3);\n\n if (name != null && Math.random() < Setting.DAD_BOT_CHANCE) {\n event.getMessage().reply(\"Hi \" + name + \", I'm StatsBot!\").queue();\n return true;\n }\n\n return false;\n }", "boolean hasSms();", "boolean hasIsHotwordTriggered();", "private void collisionsCheck() {\n\t\tif(this.fence.collisionTest(\n\t\t\t\tthis.spider.getMovementVector())) \n\t\t{\n\t\t\t// we actually hit something!\n\t\t\t// call collision handlers\n\t\t\tthis.spider.collisionHandler();\n\t\t\tthis.fence.collisionHandler();\n\t\t\t// vibrate!\n\t\t\tvibrator.vibrate(Customization.VIBRATION_PERIOD);\n\t\t\t// lose one life\n\t\t\tthis.data.lostLife();\n\t\t}\n\t}", "private boolean canDamoneBlackSaveItselfLeftAhead(Damone damone) {\n return canBlackSaveItselfLeftAhead(damone);\n }", "public boolean floodCheck() {\r\n return true;\r\n }", "public boolean isDamagable() {\n\t\treturn _isDamagable;\n\t}", "private boolean isAtFish(){\n final RSNPC[] fishing_spots = NPCs.findNearest(\"Fishing spot\");\n if (fishing_spots.length < 1){\n return false;\n }\n return fishing_spots[0].isOnScreen();\n }", "void check_and_send(){\r\n\t\twhile(not_ack_yet <= WINDOW_SIZE){\r\n\t\t\tif(covered_datagrams >= total_datagrams)\r\n\t\t\t\treturn;\r\n\t\t\t//send one data more\r\n\t\t\tcovered_datagrams++;\r\n\t\t\tbyte[] data_to_send = Helper.get_bytes(data_send,(covered_datagrams-1)*BLOCK_SIZE,BLOCK_SIZE);\r\n\t\t\tDataDatagram send = new DataDatagram((short)the_connection.session_num,\r\n\t\t\t\t\t(short)(covered_datagrams),data_to_send,the_connection);\r\n\t\t\tsend.send_datagram();\r\n\t\t\tput_and_set_timer(send);\r\n\t\t}\r\n\t}", "private boolean allGPSDataExists() {\n for(int i = 0; i < 6; i++) {\n if(databaseHandler.getSingleExperimentInfoValue(experimentNumber, DatabaseHandler.SENDER_LATITUDE).equals(\"-1\"))\n return false;\n }\n return true;\n }", "@Override\r\n\tpublic boolean wasIncident() {\r\n\t\tdouble random = Math.random()*100;\r\n\t\tif(random<=25) return true;\r\n\t\treturn false;\r\n\t}", "public boolean foodDetection() {\n ArrayList<Creature> creatures = world.getCreatureList();\n for (Creature c : creatures) {\n if (c.creatureLocation().equals((x + 1) + \",\" + y) || c.creatureLocation().equals((x - 1) + \",\" + y) ||\n c.creatureLocation().equals(x + \",\" + (y + 1)) || c.creatureLocation().equals(x + \",\" + (y - 1))) {\n //System.out.println(\"Creature Found: \" + c.creatureLocation());\n return true;\n }\n }\n return false;\n }", "public void testNotSpamCategory(){\n\t\t\n\t\tTweetStatus tweetStatus = new TweetStatus();\n\t\tString tweet = \"Really having a fun vacation in miami\";\n\t\ttweetStatus.setTweetText(tweet);\n\t\tTweetCategoryType tweetCategoryType = naiveBayeClassifier.classify(tweetStatus);\n\t\t\n\t\tAssert.assertEquals(TweetCategoryType.NOTSPAM, tweetCategoryType);\n\t}", "public boolean isSunk(){\n if(places.isEmpty()){\n //ship cant be sunk if empty\n return false;\n }\n\n //Checks each place in list for hit\n for(Place place : places){\n if(!place.isHit()){\n return false;\n }\n }\n return true;\n }", "public boolean pacMan(List<List<Integer>> ghostList, List<Integer> target) {\n\n boolean didpacmanmakeIt = true;\n\n //set the array for the ghosts and pacman\n pacmanLocation();\n ghostLocation(ghostList.get(0).get(0),ghostList.get(0).get(1));\n\n //////do this for every ghost/////////\n //ghostLocation();\n ///////////////////////////\n\n\n\n //now we loop the number of moves that pacman makes\n\n int numOfMovesPAC = pacmanMoves(target);\n while(numOfMovesPAC>0 && didpacmanmakeIt==true) {\n int numOfMovesGhost = ghostMoves(pacmanLocay, ghostLocay);\n\n if (numOfMovesPAC < numOfMovesGhost) {\n numOfMovesPAC--;\n }else{\n didpacmanmakeIt=false;\n }\n\n }\n\n\n\n\n return didpacmanmakeIt;\n\n\n }", "public boolean hitTanques(List<Enemigo> enemigos){\n for (int i = 0; i < enemigos.size(); i++){\n if (hitTanqueEnemigo(enemigos.get(i)))\n {\n return true;//para que desaparezca la bala, pero hittanquealiado se encarga de matar al enemigo\n }\n }\n return false;\n }", "private boolean allowsSmsMessage()\n {\n for(ChatTransport tr : transportMenuItems.keySet())\n {\n if(tr.allowsSmsMessage())\n return true;\n }\n\n return false;\n }", "private boolean verifyMessagePresence(){\n boolean overallResult = true;\n \n for(int ii = 0; ii < 3; ii = ii +1){\n if(121 == getHidden(ii)){\n overallResult = true;\n }else{\n overallResult = false;\n }\n }\n \n return overallResult;\n }", "public boolean isThisShipSunken(String hitEmblem)\n {\n for(Ship ship: this.fleet)\n {\n if(ship.getEmblem() == hitEmblem.charAt(1)) {\n return ship.isDestroyed();\n }\n }\n \n throw new IllegalStateException(\"No value is given for isDestoryed\"); //Thrown if point that was hit isn't a ship\n }", "private boolean m36043c(Throwable th) {\n return ((th instanceof ShareTextException) && ((ShareTextException) th).d() == ExceptionType.USER_IS_HIDDEN) ? true : null;\n }", "public void checkInflected(Individual other)\n\t{\n\t\tdouble probability = world.getSpreadingFactor() * (1+(Math.max(other.getConversationTime(), getConversationTime()) / 10))\n\t\t\t\t* getMaskIndicator() * other.getMaskIndicator() * (1-(Math.min(other.getSocialDistance(), getSocialDistance()) / 10));\n\t\tif(Math.min(probability, 1) > 0.3)\n\t\t\tgetCovid();\n\t\t\t\n\t}", "public boolean checkForGourds() {return false;}", "public static Boolean containsSOS(List<String> message) {\n\t\t String correctCode = \"\";\n\t\t for (int i = 0; i < message.size(); i++) {\n\t\t\t correctCode += message.get(i);\n\t\t}\n\t\t if (correctCode.contains(\"... --- ...\")) {\n\t\t\treturn true;\n\t\t}\n\t\t else {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}", "boolean hasAdGroupSimulation();", "void collisionDetection() {\n\t\tfor (int a = 0; a < botsList.size(); a++) {\r\n\t\t\tfor (int b = 0; b < botsList.size(); b++) {\r\n\r\n\t\t\t\tif (a == b) // Avoid checking if bot hits itself.\r\n\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\ttime = System.currentTimeMillis();\r\n\t\t\t\tif (time - botsList.get(a).enemy_last_detected > botsList.get(a).enemy_detect_timeout) {\r\n\t\t\t\t\tfor (int i = 0; i > botsList.get(b).bullets.size(); i++) {\r\n\t\t\t\t\t\tif (colides(botsList.get(a), botsList.get(b).bullets.get(i)))\r\n\t\t\t\t\t\t\tbotsList.get(a).loseLife();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (botsList.get(0).detect.intersects(botsList.get(1).body.getFrame())) {\r\n\t\t\tbotsList.get(0).enemyDetected(botsList.get(1).body);\r\n\t\t\tbot_1_detect = false;\r\n\t\t\tbot_1_detected = System.currentTimeMillis();\r\n\t\t}\r\n\t\tif (System.currentTimeMillis() - bot_1_detected > bot_1_detect_timeout)\r\n\t\t\tbot_1_detect = true;\r\n\t\t// and now same for bot 2\r\n\t\tif (botsList.get(1).detect.intersects(botsList.get(0).body.getFrame())) {\r\n\t\t\tbotsList.get(1).enemyDetected(botsList.get(0).body);\r\n\t\t\tbot_2_detect = false;\r\n\t\t\tbot_2_detected = System.currentTimeMillis();\r\n\t\t}\r\n\t\tif (System.currentTimeMillis() - bot_2_detected > bot_2_detect_timeout)\r\n\t\t\tbot_2_detect = true;\r\n\r\n\t\t// Bullets collision\r\n\t\t// See if bot_n hits the other bot with a bullet\r\n\t\tfor (int mainB = 0; mainB < botsList.size(); mainB++) {\r\n\t\t\tfor (int secB = 0; secB < botsList.size(); secB++) {\r\n\r\n\t\t\t\tif (secB == mainB)\r\n\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\t// if player_2 collides with player 1's bullets\r\n\t\t\t\tfor (int i = 0; i < botsList.get(mainB).bullets.size(); i++) {\r\n\t\t\t\t\tif (colides(botsList.get(secB), botsList.get(mainB).bullets.get(i))) {\r\n\t\t\t\t\t\tSystem.out.println(\"Bot \" + 2 + \" intersects bullet nš \" + i);\r\n\t\t\t\t\t\tbotsList.get(mainB).bullets.remove(i);\r\n\t\t\t\t\t\tbotsList.get(secB).loseLife();\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// if player_1 collides with player 2's bullets\r\n\t\tfor (int i = 0; i < botsList.get(1).bullets.size(); i++) {\r\n\t\t\tif (colides(botsList.get(0), botsList.get(1).bullets.get(i))) {\r\n\t\t\t\tSystem.out.println(\"Bot \" + 2 + \" intersects bullet nš \" + i);\r\n\t\t\t\tbotsList.get(1).bullets.remove(i);\r\n\t\t\t\tbotsList.get(0).loseLife();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "private boolean isParting(String userMessage) {\n String message = userMessage.toLowerCase();\n List<String> partings = additionalDB.get(\"parting\");\n for (String str : partings) {\n if (message.contains(str)) {\n responsesList.clear();\n responsesList.add(new Response(getRandomElementFromList(partings)));\n return true;\n }\n }\n return false;\n }", "@Scheduled(fixedRate = 30 * 60 * 1000)\n public void CheckSafe() {\n log.info(\"Checking if links still safe\");\n try {\n googleSafeBrowsingUrlVerifier = new GoogleSafeBrowsingUrlVerifier();\n for(ShortURL s : urlList) {\n if(!googleSafeBrowsingUrlVerifier.isSafe(s.getTarget())){\n log.info(\"URL {} not safe anymore.\", s.getTarget());\n s.setSafe(false);\n s.setMode(HttpStatus.GONE.value());\n } else{\n s.setSafe(true);\n s.setMode(HttpStatus.TEMPORARY_REDIRECT.value());\n }\n }\n } catch( NullPointerException e) {\n //No se ha inicializado aun\n }\n }", "protected boolean isSSDPDiscovery(DatagramPacket packet) {\n\t\t// Only respond to discover request for strict upnp form\n\t\tString packetString = new String(packet.getData(), 0, packet.getLength());\n//\t\tlog.info(\"Packet string <<<\" + packetString + \">>>\");\n\t\tif (packetString != null && packetString.startsWith(\"M-SEARCH * HTTP/1.1\")\n\t\t\t\t&& packetString.contains(\"\\\"ssdp:discover\\\"\")) {\n\t\t\tif ((packetString.contains(\"ST: urn:schemas-upnp-org:device:basic:1\")\n\t\t\t\t\t|| packetString.contains(\"ST: upnp:rootdevice\") || packetString.contains(\"ST: ssdp:all\"))) {\n\t\t\t\tif (traceupnp) {\n\t\t\t\t\tlog.info(\"Traceupnp: SSDP M-SEARCH packet from \" + packet.getAddress().getHostAddress() + \":\"\n\t\t\t\t\t\t\t+ packet.getPort());\n\t\t\t\t} else\n\t\t\t\t\tlog.debug(\"SSDP M-SEARCH packet from \" + packet.getAddress().getHostAddress() + \":\"\n\t\t\t\t\t\t\t+ packet.getPort() + \", body: <<<\" + packetString + \">>>\");\n\t\t\t\treturn true;\n\t\t\t} /*\n\t\t\t\t * else if (!strict) { if(traceupnp) {\n\t\t\t\t * log.info(\"Traceupnp: SSDP M-SEARCH packet (!strict) from \" +\n\t\t\t\t * packet.getAddress().getHostAddress() + \":\" + packet.getPort()); } else\n\t\t\t\t * log.debug(\"SSDP M-SEARCH packet (!strict) from \" +\n\t\t\t\t * packet.getAddress().getHostAddress() + \":\" + packet.getPort() + \", body: <<<\"\n\t\t\t\t * + packetString + \">>>\"); return true; }\n\t\t\t\t */\n\t\t} else {\n\t\t\t// log.debug(\"isSSDPDiscovery found message to not be valid - strict: \" +\n\t\t\t// strict);\n\t\t\tlog.debug(\"SSDP packet from \" + packet.getAddress().getHostAddress() + \":\" + packet.getPort() + \", body: \"\n\t\t\t\t\t+ packetString);\n\t\t}\n\t\treturn false;\n\t}", "public boolean sps() {\n\t\tupdateFrontUnknown();\n\t\tboolean successful = false;\n\t\tfor (int i = 0; i < frontUnknown.size(); i++) {\n\t\t\tint x = frontUnknown.get(i)[0];\n\t\t\tint y = frontUnknown.get(i)[1];\n\t\t\tArrayList<int[]> knownNeighbors = findAdjacentSafe(frontUnknown.get(i));\n\t\t\tfor (int[] j: knownNeighbors) {\n\t\t\t\t//all clear neighbours\n\t\t\t\tif (answerMap[j[0]][j[1]] == findAdjacentMark(j).size()) {\n\t\t\t\t\tprobe(x, y);\n\t\t\t\t\tsuccessful = true;\n\t\t\t\t\tSystem.out.println(\"SPS: probe[\" + x + \",\" + y + \"]\");\n\t\t\t\t\tspsCount++;\n\t\t\t\t\tshowMap();\n\t\t\t\t\ti--;\n\t\t\t\t\tupdateFrontUnknown();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//all marked neighbours\n\t\t\t\t\tif (answerMap[j[0]][j[1]] == findAdjacentRisk(j).size()) {\n\t\t\t\t\t\tmark(x, y);\n\t\t\t\t\t\tsuccessful = true;\n\t\t\t\t\t\tSystem.out.println(\"SPS: probe[\" + x + \",\" + y + \"]\");\n\t\t\t\t\t\tspsCount++;\n\t\t\t\t\t\tshowMap();\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tupdateFrontUnknown();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn successful;\n\t}", "boolean hasSendMarketingEmails();", "public boolean isSunk() {\n\t\tfor (Coordinate coordinate : shipPositions) {\n\t\t\tif (!coordinate.getIsHit()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean hasSms() {\n return typeCase_ == 3;\n }", "public boolean isSentiment (String lemma){\n boolean sentimentPresent = false;\n \n sentimentPresent = this.keys.contains(lemma);\n\n return sentimentPresent;\n }", "private boolean isFound(int remaingingMarbles) {\n\n return (Math.log(remaingingMarbles) / Math.log(2)) % 1 == 0 ;\n\n }", "public static boolean deleteAidingData(Context context,LocationManager locationManager) {\n if (locationManager == null) {\n return false;\n }\n return locationManager.sendExtraCommand(LocationManager.GPS_PROVIDER, context.getString(R.string.delete_aiding_data_command), null);\n }", "public static boolean forcePsdsInjection(Context context, LocationManager locationManager) {\n if (locationManager == null) {\n return false;\n }\n String command;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {\n command = context.getString(R.string.force_psds_injection_command);\n } else {\n command = context.getString(R.string.force_xtra_injection_command);\n }\n return locationManager.sendExtraCommand(LocationManager.GPS_PROVIDER, command, null);\n }", "boolean allWordsGuessed()\n\t{\n\t\tfor( int i = 0; i < entry.getLinkedWords().size(); i++ )\n\t\t\tif( ! wordGuessed[i] )\n\t\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t}", "private boolean requireSMSPermissions() {\r\n boolean hasSendSMSPerms = ActivityCompat.checkSelfPermission(this, Manifest.permission.SEND_SMS) == PackageManager.PERMISSION_GRANTED;\r\n boolean hasReadPhoneStatePerms = ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE) == PackageManager.PERMISSION_GRANTED;\r\n\r\n if (hasSendSMSPerms && hasReadPhoneStatePerms)\r\n return true;\r\n\r\n ActivityCompat.requestPermissions(this, new String[] {\r\n Manifest.permission.SEND_SMS,\r\n Manifest.permission.READ_PHONE_STATE\r\n }, REQUEST_PERMISSION_SHARE_SMS);\r\n\r\n return false;\r\n }", "public boolean isTrackingBlocked() {\n return (this.mConflictingQsExpansionGesture && this.mQsExpanded) || this.mBlockingExpansionForCurrentTouch;\n }", "public boolean isDangerousToPeople() {\n\t\treturn this.eats.equals(\"people\");\n\t}", "private void showSpam(){\n getSpam();\n //display persons\n MainActivity.instance().displayPersonsRunnable = new DisplayPersonsRunnable(MainActivity.instance());\n this.thread = new Thread(MainActivity.instance().displayPersonsRunnable);\n this.thread.start();\n }", "public boolean hasSms() {\n return typeCase_ == 3;\n }", "public void silenttest() {\n long start = System.currentTimeMillis();\n EcgCheck chk = EcgCheck.getInstance();\n System.out.println(\"Silent Test\");\n\n System.out.print(\"Start ... \");\n int a = 0;\n int a_true = 0;\n int a_false = 0;\n\n int loopcount = 5000;\n for (int i = 0; i < loopcount; i++) {\n for (String s : this.mail_lst) {\n if (chk.isInEcg(s)) {\n a_true++;\n } else {\n a_false++;\n }\n a++;\n }\n }// outer loop N\n\n System.out.println(\"Silent Test ende \" + a + \"(\" + a_true + \"/\" + a_false + \")\");\n System.out.println(System.currentTimeMillis() - start + \" ms\");\n System.out.println(\"checks overall : \" + a + \" * \" + chk.getEntryCount()\n + \" * \" + this.mail_lst.size()\n + \" -> \" + (a * chk.getEntryCount() * this.mail_lst.size()));\n }", "public static boolean isGood(String text){\n\t\tif(text.startsWith(\"global\")) return true;\n\t\tVector<WikiMatch> matches = WikiMatcher.getMatches(text);\n\t\tfor(WikiMatch wm : matches){\n\t\t\tif(wm.score > 0.015){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean isSpellCaster() {\r\n if (_index == 2 || _index == 3 || _index == 6 || _index == 8 ||\r\n _index == 10 || _index == 11 || _index == 14 || _index == 16) {\r\n return true;\r\n }\r\n return false;\r\n }", "boolean isAllowFriendlyFire();", "private static boolean checkmsg(SmsMessage smsmessage) {\n\t\tboolean isok = false;\n\t\t\n//\t private String MA_TYPE=\"\";\n//\t private String MESSAGE_TYPE=\"\";\n//\t private String TEL=\"\";\n//\t private String VBODY=\"\";\n//\t private String VTIME=\"\";\n\n\t\tif(null != smsmessage.getTEL() \n\t\t\t\t&& !\"\".equalsIgnoreCase(smsmessage.getTEL()) &&\n\t\t null != smsmessage.getVBODY()\n\t\t\t\t&& !\"\".equalsIgnoreCase(smsmessage.getVBODY())){\n\t\t\tisok = true;\n\t\t}\n\t\t\n\t\treturn isok;\n\t}", "public boolean hasScannedEnemies()\n\t{\n\t\treturn (lastscanround == br.curRound && !needToScanEnemies);\n\t}", "static AnalysisResult analyseQuery(String query) {\n for (String attack : commonAttacks) {\n attack = attack.toLowerCase();\n if (trim(query.toLowerCase()).contains(trim(attack))) {\n return new AnalysisResult(true, null, attack, true);\n }\n }\n return new AnalysisResult(false, null, null, true);\n }", "@SuppressWarnings({ \"resource\", \"static-method\", \"unused\" })\n private boolean isNaughtySorceressBeaten(\n final LogBlock block) {\n for (final String line : block.getBlockLines())\n // Three figure stat gains aren't possible through combat items\n // while winning against the NS will give these amounts, so if there\n // is such a line, it means the fight has been won.\n if (THREE_FIGURE_STATGAIN.matcher(line).matches()) {\n final Scanner scanner = new Scanner(line);\n scanner.findInLine(UsefulPatterns.GAIN_LOSE_CAPTURE_PATTERN);\n final String substatName = scanner.match().group(2);\n scanner.close();\n\n if (UsefulPatterns.MUSCLE_SUBSTAT_NAMES.contains(substatName)\n || UsefulPatterns.MYST_SUBSTAT_NAMES.contains(substatName)\n || UsefulPatterns.MOXIE_SUBSTAT_NAMES.contains(substatName))\n return true;\n }\n\n return false;\n }", "public abstract void isASRRejection(long ms);", "public void checkCollisions() {\n\t\t List<Missile> missiles = player.getMissiles();\n\t\t for(Missile n : missiles) {\n\t\t\t Rectangle r1 = n.getBounds();\n\t\t\t for(Mushroom mush : mushrooms) {\n\t\t\t\t Rectangle r2 = mush.getBounds();\n\t\t\t\t r2.x += 8;\n\t\t\t\t if(r1.intersects(r2)) {\n\t\t\t\t\t mush.hitCnt += 1;\n\t\t\t\t\t if(mush.hitCnt == 3) {\n\t\t\t\t\t\t score += 5;\n\t\t\t\t\t\t n.setVisible(false);\n\t\t\t\t\t\t mush.setVisible(false);\n\t\t\t\t\t } else {\n\t\t\t\t\t\t score += 1;\n\t\t\t\t\t\t n.setVisible(false);\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if Missile hits Centipede\n\t\t //missiles = player.getMissiles();\n\t\t for(Missile m: missiles) {\n\t\t\t Rectangle rm = m.getBounds();\n\t\t\t for(int i = 0; i < centipede.size(); i++) {\n\t\t\t\t Segment s = centipede.get(i);\n\t\t\t\t Rectangle rs = s.getBounds();\n\t\t\t\t if(rs.intersects(rm)) {\n\t\t\t\t\ts.hit();\n\t\t\t\t\tscore = (s.hitCnt < 2 ? score +2 : score + 0);\n\t\t\t\t\tif(s.hitCnt == 2){\n\t\t\t\t\t\t//split centipede\n\t\t\t\t\t\tscore += 5;\n\t\t\t\t\t\tm.setVisible(false);\n\t\t\t\t\t\tcentipede.remove(i);\n\t\t\t\t\t\t//mushrooms.add(new Mushroom(s.getX(), s.getY()));\n\t\t\t\t\t}else {\n\t\t\t\t\t\tm.setVisible(false);\n\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if missile hits spider\n\t\t missiles = player.getMissiles();\n\t\t for(Missile m : missiles) {\n\t\t\t Rectangle mBound = m.getBounds();\n\t\t\t Rectangle spiderBound = spider.getBounds();\n\t\t\t if(mBound.intersects(spiderBound)) {\n\t\t\t\t spiderHitCnt += 1;\n\t\t\t\t if(spiderHitCnt == 2) {\n\t\t\t\t\t m.setVisible(false);\n\t\t\t\t\t spider.setVisible(false);\n\t\t\t\t\t score += 600;\n\t\t\t\t } else {\n\t\t\t\t\t score += 100;\n\t\t\t\t\t m.setVisible(false);\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if centipede hits mushroom\n\t\t for(Segment c : centipede) {\n\t\t\t Rectangle cB = c.getBounds();\n\t\t\t for(Mushroom m: mushrooms) {\n\t\t\t\t Rectangle mB = new Rectangle(m.getX(), m.getY() + 5, m.getWidth(), m.getHeight() - 10);\n\t\t\t\t mB.y += 3;\n\t\t\t\t if(cB.intersects(mB)) {\n\t\t\t\t\t//makes each segment to go downs\n\t\t\t\t\tc.y += 16;\n\t\t\t\t\tc.dx = -c.dx;\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if Centipede hits Player\n\t\t Rectangle playerBounds = player.getBounds();\n\t\t for(Segment s : centipede) {\n\t\t\t Rectangle sB = s.getBounds();\n\t\t\t if(playerBounds.intersects(sB)) {\n\t\t\t\t playerLives -= 1;\n\t\t\t\t playerHitCnt += 1;\n\t\t\t\t if(playerHitCnt > MAX_HIT_COUNT) {\n\t\t\t\t\t// System.out.println(playerLives+\" \"+ x);\n\t\t\t\t\t player.setVisible(false);\n\t\t\t\t\t inGame = false;\n\t\t\t\t }else {\n\t\t\t\t\t\tplayer.x = 707;\n\t\t\t\t\t\tplayer.y = 708;\n\t\t\t\t\t\tPoint location = getLocationOnScreen();\n\t\t\t\t\t\trobot.mouseMove(location.x + 250, location.y + 425);\n\t\t\t\t\t\tplayer = new Player(300, 400);\n\t\t\t\t\t\tregenMushrooms();\n\t\t\t\t\t}\n\t\t\t }\n\t\t }\n\n\t\t //check if Spider hits Player\n\t\t playerBounds = player.getBounds();\n\t\t Rectangle spiderBounds = spider.getBounds();\n\t\t if(spiderBounds.intersects(playerBounds)) {\n\t\t\tplayerLives -= 1;\n\t\t\tplayerHitCnt += 1;\n\t\t\tif(playerLives > MAX_HIT_COUNT) {\n\t\t\t\t//System.out.println(playerLives+\" \"+ y);\n\t\t\t\tplayer.setVisible(false);\n\t\t\t\tspider.setVisible(false);\n\t\t\t}else {\n\t\t\t\tregenMushrooms();\n\t\t\t\tcentipede.clear();\n\t\t\t\tcreateCentipede();\n\t\t\t\tplayer.x = 707;\n\t\t\t\tplayer.y = 708;\n\t\t\t\tPoint location = getLocationOnScreen();\n\t\t\t\trobot.mouseMove(location.x + 250, location.y + 425);\n\t\t\t\tplayer = new Player(300, 400);\n\t\t\t}\n\t\t}\n\t }", "private boolean isClashing() {\n\t\tArrayList<Item> events = getEvents();\n\t\tfor (Item t : events) {\n\t\t\tif (isTimeOverlap(t)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "protected boolean dangerAnimal(double margin) {\n if (!state.isHoldingItem() && !(state.isSearching() && state.getTimeToFinishSearching() > 1)) {\n return false;\n }\n FoodType type = state.isHoldingItem() ? state.getItemHeld() : state.getFoodSearched();\n int dangerGoose = 0;\n int dangerMonkey = 0;\n final Point location = state.getLocation();\n for (Animal animal : animals) {\n if (animal.isEating()) {\n continue;\n }\n if (animal.getType() == AnimalType.MONKEY) { //monkey\n if (//distance(animal.predictNextLocation(), location) <= 5.0 + 1e-7 && \n distance(animal.getLocation(), location) <= 5.0 + 1e-7 + margin) {\n dangerMonkey += 1;\n }\n } else if (type == FoodType.SANDWICH) { //goose\n if (//distance(animal.predictNextLocation(), location) <= 2.0 + 1e-7 &&\n distance(animal.getLocation(), location) <= 2.0 + 1e-7 + margin) {\n dangerGoose += 1;\n }\n }\n }\n return (dangerGoose >= 1 || dangerMonkey >= 3);\n }", "public static boolean canSendSMS2(Context context) {\n //возможно, так нужно вызывать?\n try{\n return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_TELEPHONY);\n\n }\n catch(Exception e) {\n // code that doesn't use telephony features\n return true;\n }\n }", "public static boolean canSendSMS(Context context) {\n return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_TELEPHONY);\n }", "public static boolean canCast(Thing b,Thing s) {\r\n \t\tif (s.place!=b) {\r\n \t\t\tGame.warn(\"Spell.canCast: spell not in inventory!\");\r\n \t\t\treturn false;\r\n \t\t}\r\n \t\t\r\n \t\tString order=s.getString(\"Order\");\r\n \t\tif (order.equals(Skill.BLACKMAGIC)) {\r\n \t\t\tint cost=s.getStat(\"SpellCost\");\r\n \t\t\tif (b.getStat(RPG.ST_MPS)<cost) return false;\r\n \t\t\tint us=Recipe.checkIngredients(b,s.getString(\"Ingredients\"));\t\r\n \t\t\treturn (us>0);\r\n \t\t} \r\n \t\t\r\n \t\tint c=s.getStat(\"Charges\");\r\n \t\treturn (c>0);\r\n \r\n \t}", "private boolean alreadyHit(int x, int y) {\n for (int i = 0; i < hitCount; i++){\n if (x == hitList[i].x && y == hitList[i].y){\n return true;\n }\n }\n for (int i = 0; i < missCount; i++) {\n if (x == missList[i].x && y == missList[i].y) {\n return true;\n }\n }\n return false;\n }", "public boolean mo43873m() {\n return ((String) this.f42902g.get(C13822a.Domain)).endsWith(\"ip6.arpa\");\n }", "private boolean canDamoneBlackSaveItselfLeftBehind(Damone damone) {\n return canBlackSaveItselfLeftBehind(damone);\n }", "private boolean hasGPSDevice(Context context) {\n final LocationManager mgr = (LocationManager) context\n .getSystemService(Context.LOCATION_SERVICE);\n if (mgr == null)\n return false;\n final List<String> providers = mgr.getAllProviders();\n if (providers == null)\n return false;\n return providers.contains(LocationManager.GPS_PROVIDER);\n }", "private void checkExplosionKill() {\n\t\t\n\t\texplosion.expand();\n\t\t\n\t\tfor (ArrayList<Invader> row : enemyArray) {\n\t\t\tfor (Invader a : row) {\n\t\t\t\tif (explosion.detectDownwardCollision(a.getX(), a.getY())) {\n\t\t\t\t\ta.setVisibility(false);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public boolean attack(int dir) {\n\t\treturn false;\n\t}", "protected boolean isMovementNoisy() {\n/* 1861 */ return (!this.abilities.flying && (!this.onGround || !isDiscrete()));\n/* */ }", "private void startSpamFilterTest(Boolean bool) {\n\t\tif(bool) {\n\t\t\tfor(String rule : AntiSpamFilterControl.ruleList) {\n\t\t\t\trulesCB.addElement(rule);\n\t\t\t\tautoRulesCB.addElement(rule);\n\t\t\t}\n\t\t\tcurrRule = manualCBRules.getItemAt(0);\n\t\t}\n\t\tmanualCBRules.setEnabled(bool);\n\t\tmanualRuleValue.setEnabled(bool);\n\t\tmanualTestButton.setEnabled(bool);\n\t\tmanualSaveValuesButton.setEnabled(bool);\n\t\tmanualResults.setEnabled(false);\n\t\t\n\t\tautoCBRules.setEnabled(bool);\n\t\tautoRuleValue.setEnabled(false);\n\t\tautoTestButton.setEnabled(bool);\n\t\tautoSaveValuesButton.setEnabled(bool);\n\t\tautoResults.setEnabled(false);\n\t}", "private boolean shouldApplyGFTGun(double aimedEnemyDistance, int enemiesCount) {\n double totalIncreasePercentageDistance = enemiesCount * PERCENTAGE_INCREASING_DISTANCE_FOR_EACH_ADDITIONAL_ENEMY;\n boolean result = aimedEnemyDistance <= FURTHEST_DISTANCE_TO_FIRE_ONE_ON_ONE * (1 + totalIncreasePercentageDistance);\n return result;\n }", "private boolean seesWall() {\n\t\treturn getFilteredData() <= WALL_DIST;\n\t}", "public boolean allSunken() {\n\t\tfor (Ship s : ships) {\n\t\t\tif (!s.isSunk()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean isSmsPermissionGranted()\n {\n return ContextCompat.checkSelfPermission(this, android.Manifest.permission.READ_SMS)\n == PackageManager.PERMISSION_GRANTED &&\n ContextCompat.checkSelfPermission(this, android.Manifest.permission.SEND_SMS)\n == PackageManager.PERMISSION_GRANTED &&\n ContextCompat.checkSelfPermission(this, android.Manifest.permission.RECEIVE_SMS)\n == PackageManager.PERMISSION_GRANTED &&\n ContextCompat.checkSelfPermission(this, android.Manifest.permission.READ_PHONE_STATE)\n == PackageManager.PERMISSION_GRANTED;\n }", "protected boolean getStravaCheckToken()\n {\n return true;\n }", "private boolean canDamoneBlackSaveOtherLeftAhead(Damone damone) {\n return canBlackSaveOtherLeft(damone);\n }", "boolean isSneaking();", "private void isGreeting(String userMessage) {\n String message = userMessage.toLowerCase();\n List<String> greetings = additionalDB.get(\"greeting\");\n for (String str : greetings) {\n if (message.contains(str)) {\n responsesList.clear();\n responsesList.add(new Response(getRandomElementFromList(greetings)));\n }\n }\n }", "protected boolean canSilkHarvest()\n {\n return true;\n }", "protected boolean canSilkHarvest()\n {\n return true;\n }", "public boolean documentContainsMorphologicalInformation(DocTheory dt) {\n for (final SentenceTheory sentenceTheory : dt.sentenceTheories()) {\n if (!sentenceTheory.morphTokenSequences().isEmpty()) {\n return true;\n }\n }\n return false;\n }", "private boolean m76078a(String str) {\n return str.contains(Uri.encode(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FBF2CF403DF52FAECCBC22497D008B223\"))) || str.contains(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FBF2CF403DF52FAECCBC22497D008B223\")) || str.contains(Uri.encode(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FBF2CF403DF52FAECCBC22497D008B223\"))) || str.contains(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FBF2CF403DF52FAECCBC22497D008B223\")) || str.contains(Uri.encode(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FAA2AE5018546E6AAD7D27B8E9A0AAD39BD28E517\"))) || str.contains(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FAA2AE5018546E6AAD7D27B8E9A0AAD39BD28E517\")) || str.contains(Uri.encode(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FBF2CF403DF58E0ECD5D66A9A\"))) || str.contains(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FBF2CF403DF58E0ECD5D66A9A\")) || str.contains(Uri.encode(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FAA2AE5018546E6AAC2C77986D416E025BF24D91D9F5DE0E6C68A688DD108B039AF\"))) || str.contains(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FAA2AE5018546E6AAC2C77986D416E025BF24D91D9F5DE0E6C68A688DD108B039AF\")) || str.contains(Uri.encode(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FAA39F618994DE5AACBD26593EA19BA3EBF2CF441815DF7F6D7DE668DEA0EA620AE\"))) || str.contains(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FAA39F618994DE5AACBD26593EA19BA3EBF2CF441815DF7F6D7DE668DEA0EA620AE\")) || str.contains(C6969H.m41409d(\"G738BDC12AA6AE466F51B9245FBF1FCD16C86D118BE33A0\")) || str.contains(Uri.encode(C6969H.m41409d(\"G738BDC12AA6AE466F51B9245FBF1FCD16C86D118BE33A0\"))) || str.contains(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FAA39F618994DE5AACBD26593EA19BA3EBF2CF441815DF7F6D7DE668D\")) || str.contains(Uri.encode(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FAA39F618994DE5AACBD26593EA19BA3EBF2CF441815DF7F6D7DE668D\"))) || str.contains(C6969H.m41409d(\"G6197C10AAC6AE466E340C110ABABC0D92690D111F031AC3BE30B9D4DFCF18CD36C97D413B37EAF26B906994CF7F1CCC73497C70FBA\")) || str.contains(Uri.encode(C6969H.m41409d(\"G6197C10AAC6AE466E340C110ABABC0D92690D111F031AC3BE30B9D4DFCF18CD36C97D413B37EAF26B906994CF7F1CCC73497C70FBA\"))) || str.contains(C6969H.m41409d(\"G6197C10AAC6AE466F10F8006F1E8D3D67A90C515AD24E52AE903DF5AF7F6CCC27B80D009F038BF24EA419347FCF1D1D66A979B12AB3DA7\")) || str.contains(Uri.encode(C6969H.m41409d(\"G6197C10AAC6AE466F10F8006F1E8D3D67A90C515AD24E52AE903DF5AF7F6CCC27B80D009F038BF24EA419347FCF1D1D66A979B12AB3DA7\"))) || str.contains(C6969H.m41409d(\"G6197C10AAC6AE466EB1DDE52E8FD9A996A8D9A12AB3DA766E90F855CFAAAD3C56697DA19B03CF967EE1A9D44\")) || str.contains(Uri.encode(C6969H.m41409d(\"G6197C10AAC6AE466EB1DDE52E8FD9A996A8D9A12AB3DA766E90F855CFAAAD3C56697DA19B03CF967EE1A9D44\"))) || str.contains(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FAA27F2078358F3E88CC26781D915BC3B\")) || str.contains(Uri.encode(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FAA27F2078358F3E88CC26781D915BC3B\")));\n }", "private void smell() {\n try {\n this.console.println(MapControl.checkSmell(FireSwamp.getPlayer().getPlayerPosition(),\n FireSwamp.getCurrentGame().getGameMap()));\n } catch (MapControlException ex) {\n Logger.getLogger(GameMenuView.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "protected void validateSpaRequest()\n\t{\n\t\tif (isSpaRequest())\n\t\t{\n\t\t\thttpContext.disableSpaRequest();\n\t\t\tsendSpaHeaders();\n\t\t}\n\t}", "public boolean blockedGame() {\r\n int pointsperplayer = 0;\r\n if (playedDominoes.size() > 9) {\r\n if (end[0] == end[1]) {\r\n List<Domino> aux = new ArrayList();\r\n for (Domino d : playedDominoes) {\r\n if (d.getBothNumbers().contains(end[0])) {\r\n System.out.println(\"Adding domino\" + d.toString());\r\n aux.add(d);\r\n }\r\n }\r\n return aux.size() == 7;\r\n }\r\n }\r\n return false;\r\n }", "public boolean isOspfProcess() {\n\t\treturn (this.ospfConfig != null);\n\t}", "public boolean mo43867h() {\n boolean z = false;\n if (!((String) this.f42902g.get(C13822a.Application)).equals(\"dns-sd\")) {\n return false;\n }\n String name = (String) this.f42902g.get(C13822a.Instance);\n if (\"b\".equals(name) || \"db\".equals(name) || \"r\".equals(name) || \"dr\".equals(name) || \"lb\".equals(name)) {\n z = true;\n }\n return z;\n }" ]
[ "0.5564569", "0.5495339", "0.53311557", "0.5327455", "0.51680726", "0.5054275", "0.49602285", "0.48994133", "0.48962602", "0.48882437", "0.48598853", "0.48080435", "0.47737843", "0.4766452", "0.47523797", "0.47473696", "0.47389182", "0.47337973", "0.47308463", "0.47161236", "0.47124803", "0.47109574", "0.46676156", "0.46511948", "0.4607014", "0.459964", "0.45940536", "0.45912915", "0.4590895", "0.4589839", "0.45864102", "0.45597556", "0.45572805", "0.4556981", "0.45476454", "0.45370284", "0.45292073", "0.45259935", "0.4514951", "0.45142508", "0.4509286", "0.44848776", "0.44833457", "0.44751218", "0.44727108", "0.446726", "0.4456659", "0.44556093", "0.44496602", "0.4437023", "0.44350576", "0.44264778", "0.44263148", "0.4422541", "0.44191432", "0.4417766", "0.44113114", "0.4405582", "0.44011778", "0.43992868", "0.43972337", "0.4388095", "0.438565", "0.43854448", "0.4385111", "0.43814644", "0.43803123", "0.4370037", "0.43611678", "0.43589976", "0.43582466", "0.43408594", "0.4338625", "0.4332466", "0.43317837", "0.43225032", "0.43179995", "0.43171784", "0.43100733", "0.430871", "0.43085217", "0.43021533", "0.42982247", "0.42972916", "0.42924765", "0.42913863", "0.42898533", "0.42895317", "0.42891905", "0.4288004", "0.42877445", "0.42807907", "0.42807907", "0.42793885", "0.4276814", "0.42763934", "0.42705852", "0.42688927", "0.42684606", "0.42657915" ]
0.45824867
31
RMI interface for server
public interface ServerController extends java.rmi.Remote{ // abstract classes public int connect() throws RemoteException; public String getPath() throws RemoteException; public String echo(String message) throws RemoteException; public String isFileExists(String fname) throws RemoteException; public int[] sortList(int[] a) throws RemoteException; public int[][] mMultiplication(int[][] a, int[][] b, int row, int col) throws RemoteException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ClientServerRMIInterface extends Remote {\n Metadata getMeta(String id) throws IOException;\n\n Metadata putMeta(String id, long length) throws IOException, NotBoundException, URISyntaxException;\n\n byte[] get(String id, long part) throws IOException;\n\n void put(String id, long part, byte[] data) throws IOException, NotBoundException, URISyntaxException;\n}", "public interface IServer extends Remote {\n /**\n * @param auction\n * @throws RemoteException\n */\n void placeAuction(AuctionBean auction) throws RemoteException;\n\n /**\n * @param client\n * @throws RemoteException\n * @throws InterruptedException\n */\n void register(IClient client) throws RemoteException, InterruptedException;\n\n void disconnect(IClient client) throws RemoteException;\n\n /**\n * @param client\n * @param newBid\n * @throws RemoteException\n */\n void raiseBid(IClient client, int newBid) throws RemoteException;\n\n /**\n * @param client\n * @throws RemoteException\n * @throws InterruptedException\n */\n void timeElapsed(IClient client) throws RemoteException, InterruptedException;\n\n\tvoid registerCredentials(String username, String password) throws RemoteException, InterruptedException;\n\n\tboolean verifyCredentials(String username, String password) throws RemoteException, InterruptedException;\n\t\n}", "public interface RMIInterface extends Remote {\n\n public String helloTo(String name) throws RemoteException;\n\n}", "public void initRMI() {\n\t\ttry {\n\t\t\t//creo RMI handler\n\t\t\tGossip_RMI_handler handler = new Gossip_RMI_handler(data);\n\t\t\t//esporto l'interfaccia\n\t\t\tGossip_RMI_server_interface stub = (Gossip_RMI_server_interface)UnicastRemoteObject.exportObject(handler, 0);\n\t\t\tLocateRegistry.createRegistry(Gossip_config.RMI_PORT);\n\t\t\tRegistry r = LocateRegistry.getRegistry(Gossip_config.RMI_PORT);\n\t\t\tr.rebind(Gossip_config.RMI_NAME, stub);\n\t\t\t\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public interface RMIClientInterface extends Remote {\n\n void sendSnapshot(SnapshotToSend snapshotToSend) throws RemoteException;\n\n void sendMap(ArrayList<Map> mapArrayList) throws RemoteException;\n\n void gameInitialization(SnapshotToSend snapshotToSend) throws RemoteException;\n\n void isYourTurn() throws RemoteException;\n\n void finishTurn() throws RemoteException;\n\n void onStartMarket() throws RemoteException;\n\n void onStartBuyPhase() throws RemoteException;\n\n void disableMarketPhase() throws RemoteException;\n\n void selectPermitCard() throws RemoteException;\n\n void selectCityRewardBonus(SnapshotToSend snapshotToSend) throws RemoteException;\n\n void moveKing(ArrayList<City> kingPath) throws RemoteException;\n\n void sendMatchFinishedWithWin(ArrayList<BaseUser> finalSnapshot) throws RemoteException;\n\n void ping() throws RemoteException;\n\n void selectOldPermiCard() throws RemoteException;\n\n void onUserDisconnect(String username) throws RemoteException;\n}", "public interface ServerIF extends RemoteIF{\n void RegisterClient(ClientIF client) throws RemoteException;\n void WelcomeScreen() throws RemoteException;\n ArrayList<ClientIF> getClients() throws RemoteException;\n}", "public interface ILamportServer extends Remote {\n public String SERVICE_NAME = \"LAMPORT_RMI\"; // Nom du service\n \n /**\n * Envoie un Message REQUEST aux autres serveurs pour annoncer le fait de \n * vouloir rentrer dans la section critique\n * @param message Le message envoyé avec une requête\n * @throws RemoteException \n */\n public void request(Message message) throws RemoteException;\n \n /**\n * Envoi du Message RESPONSE après avoir Reçu le Message REQUEST\n * @param message Le message envoyé avec une réponse\n * @throws RemoteException \n */\n public void response(Message message) throws RemoteException;\n \n /**\n * Envoie du message FREE pour indiquer aux autres serveur que l'on sort de\n * la section critique\n * @param message Le message envoyé pour libérer la section critique\n * @throws RemoteException \n */\n public void freeSC(Message message) throws RemoteException;\n \n /**\n * Métode pour modifier la variable globalle dans tous les serveurs\n * @param newValue La nouvelle valeur de la variable\n * @throws RemoteException \n */\n public void setVariableGlobally(int newValue) throws RemoteException;\n}", "private void initRMI() throws RemoteException {\n log.info(\"Registering with RMI\");\n Registry registry = LocateRegistry.getRegistry();\n registry.rebind(address, this);\n }", "public static void main(String args[]) {\n try {\n LocateRegistry.createRegistry(80);\n OperacoesImpl obj = new OperacoesImpl();\n Naming.rebind(\"ServerRMI\", obj);\n System.out.println(\"Server RMI pronto.\");\n } catch (Exception e) {\n System.out.println(\"Server erro\" + e.getMessage());\n }\n }", "public interface PeerRMI extends Remote {\n\n\t/**\n\t * Allows the backup of a document amongst the peers of the network\n\t * @param request\n\t * \t\t\t\tString containing the details about the request\n\t * @return\n\t * \t\t\t\tString containing the status of the execution\n\t * @throws RemoteException\n\t */\n\tString backup(String request) throws RemoteException;\n\n\t/**\n\t * Allows the enhanced backup of a document amongst the peers of the network\n\t * @param request\n\t * \t\t\t\tString containing the details about the request\n\t * @return\n\t * \t\t\t\tString containing the status of the execution\n\t * @throws RemoteException\n\t */\n\tString backupENH(String request) throws RemoteException;\n\t\n\t/**\n\t * Allows the deletion of a document saved in the peers of the network\n\t * @param request\n\t * \t\t\t\tString containing the details about the request\n\t * @return\n\t * \t\t\t\tString containing the status of the execution\n\t * @throws RemoteException\n\t */\n\tString delete(String request) throws RemoteException;\n\n\t/**\n\t * Allows the enhanced deletion of a document saved in the peers of the network\n\t * @param request\n\t * \t\t\t\tString containing the details about the request\n\t * @return\n\t * \t\t\t\tString containing the status of the execution\n\t * @throws RemoteException\n\t */\n\tString deleteENH(String request) throws RemoteException;\n\n\t/**\n\t * Allows the restoration of a document saved in the other peers of the network, the restored file will be saved in the peer-iniatior\n\t * @param request\n\t * \t\t\t\tString containing the details about the request\n\t * @return\n\t * \t\t\t\tString containing the status of the execution\n\t * @throws RemoteException\n\t */\n\tString restore(String request) throws RemoteException;\n\n\t/**\n\t * Allows the restoration of a document saved in the other peers of the network, the restored file will be saved in the peer-iniatior\n\t * @param request\n\t * \t\t\t\tString containing the details about the request\n\t * @return\n\t * \t\t\t\tString containing the status of the execution\n\t * @throws RemoteException\n\t */\n\tString restoreENH(String request) throws RemoteException;\n\n\t/**\n\t * Allows the enhanced reclaim of space of the initiator-peer\n\t * @param request\n\t * \t\t\t\tString containing the details about the request\n\t * @return\n\t * \t\t\t\tString containing the status of the execution\n\t * @throws RemoteException\n\t */\n\tString reclaim(String request) throws RemoteException;\n\n\t/**\n\t * Allows the user to get the state of the initiator-peer\n\t * @param request\n\t * \t\t\t\tString containing the details about the request\n\t * @return\n\t * \t\t\t\tString containing the status of the execution\n\t * @throws RemoteException\n\t */\n\tString state() throws RemoteException;\n}", "public void startClient() throws RemoteException {\n\t\t\n\t\t// object to be passed to server\n\t\tString[] details = { name, dob, country, clientServiceName, hostName };\n\n\t\t// creating server stub \n\t\ttry {\n\t\t\tNaming.rebind(\"rmi://\" + hostName + \"/\" + clientServiceName, this);\n\t\t\tIServer = (IChatServer) Naming.lookup(\"rmi://\" + hostName + \"/\" + serviceName);\n\t\t} catch (ConnectException e) {\n\t\t\tJOptionPane.showMessageDialog(chatGUI.frame, \"The server seems to be unavailable\\nPlease try later\",\n\t\t\t\t\t\"Connection problem\", JOptionPane.ERROR_MESSAGE);\n\t\t\tconnectionProblem = true;\n\t\t\te.printStackTrace();\n\t\t} catch (NotBoundException | MalformedURLException me) {\n\t\t\tconnectionProblem = true;\n\t\t\tme.printStackTrace();\n\t\t}\n\t\t// if no problem sends details object to the server to be processed\n\t\tif (!connectionProblem) {\n\t\t\tIServer.initiateRegister(details);\n\n\t\t}\n\t\t// print this if it was able to reach this point\n\t\tSystem.out.println(\"Client Listen RMI Server is running...\\n\");\n\t}", "public interface IServer extends Remote {\n boolean sanityCheck() throws RemoteException;\n UUID addNewPlayer() throws RemoteException;\n void updateState(UUID uuid, Vector3f position, Quaternionf orientation) throws RemoteException;\n Map<UUID, PlayerState> getRemotePlayers() throws RemoteException;\n}", "public static void main(String args[]) {\n try {\n //Cria HelloImpl\n //Runtime.getRuntime().exec(\"rmiregistry 1010\");\n //Registry registry = LocateRegistry.getRegistry(2001);\n \tSystem.setProperty(\"java.rmi.server.hostname\",\"192.168.0.30\");\n Registry registry = LocateRegistry.createRegistry(2001);\n Implementation obj = new Implementation();\n registry.bind(\"HelloServer\", obj);\n System.out.println(\"Hello Server pronto.\");\n } catch (Exception e) {\n System.out.println(\"HelloServer erro \" + e.getMessage());\n }\n }", "@Override\n/**\n * Communication Tester method\n */\npublic String Communicate() throws RemoteException {\n\treturn \"Server Says Hi\";\n}", "public static void main(String[] args) {\n\n\t\tString registryHost;\n\t\tint registryPort;\n\t\tString localIP = \"127.0.1.1\";\n\t\ttry {\n\t\t\tlocalIP = Inet4Address.getLocalHost().getHostAddress();\n\t\t} catch (UnknownHostException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif(args.length == 2) {\n\t\t\tregistryHost = args[0];\n\t\t\tregistryPort = Integer.parseInt(args[1]);\n\t\t} else if (args.length == 3) {\n\t\t\tregistryHost = args[0];\n\t\t\tregistryPort = Integer.parseInt(args[1]);\n\t\t\tlocalIP = args[2];\n\t\t} else {\n\t\t\tSystem.out.print(\"Usage: java RMIserver <Registry host> <Registry port> [ServerIP]\");\n\t\t\treturn;\t\t\t\n\t\t}\n\t\tRMIserver myserver = new RMIserver(localIP);\n\n\t\tRegistry registry;\n\t\tregistry = LocateRegistry.getRegistry(registryHost, registryPort);\n\n\t\twhile (true) {\n\t\t\tSystem.out.print(myserver.getPrompt());\n\t\t\tString cmdl = System.console().readLine();\n\t\t\tString cmdargs[] = cmdl.split(\" \");\n\t\t\tif (cmdargs[0].equals(\"register\")) {\n\t\t\t\tString class_name = cmdargs[1];\n\t\t\t\tString class_stub_name = cmdargs[1] + \"_stub\";\n\t\t\t\t// start a new thread to handle this particular server\n\t\t\t\t// object\n\t\t\t\tRunnable job = new ServerHandler(registry, class_name,\n\t\t\t\t\t\tclass_stub_name, localIP);\n\t\t\t\tThread t = new Thread(job);\n\t\t\t\tt.start();\n\t\t\t} else if (cmdargs[0].equals(\"exit\")) {\n\t\t\t\tSystem.out.println(\"Server Exisiting...\");\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tmyserver.printUsage();\n\t\t\t}\n\t\t}\n\t}", "public static void main ( String args [] )\n {\n // Variable deceleration\n String hostname = \"localhost\" ; // Default host to use\n \n // Override the default values for hostname if passed through command line.\n if ( args [0].length () != 0 ) { hostname = args [0] ; }\n \n try\n {\n // Set the system property for \"java.rmi.server.hostname\".\n System.setProperty ( \"java.rmi.server.hostname\", hostname ) ;\n \n // Initialize the interface to access all the remote functions.\n HelloServerImplementation registerObject = new HelloServerImplementation () ;\n\n // Declare registry variable\n Registry registry ;\n \n // This try catch is to make sure that the registry is created\n try \n {\n // Try to get the remote object Registry for the local host on the default registry port of 1099.\n registry = LocateRegistry.getRegistry() ;\n registry.list() ; // Fetch the names bounded to the registry\n }\n // Catch the exception where communication with the registry fails and create the registry.\n catch ( RemoteException e ) \n {\n // Create the registry on the default rmi port 1099\n System.out.println ( \"RMI registry cannot be located at port \" + Registry.REGISTRY_PORT ) ;\n registry = LocateRegistry.createRegistry ( Registry.REGISTRY_PORT ) ;\n System.out.println ( \"RMI registry created at port \" + Registry.REGISTRY_PORT ) ;\n }\n \n // Once the registry is successfully created, rebind the HelloServerInterface to the remote reference created above.\n registry.rebind ( \"HelloServerInterface\", registerObject ) ;\n System.out.println ( \"Callback Server ready.\" ) ;\n }\n // Catch the exception and provide the necessary information to the user. \n catch ( Exception e ) { System.out.println ( \"Exception: \" + e.getMessage () ) ; e.printStackTrace () ; }\n }", "public interface Server {\n void register(String serverName, Class impl) throws Exception;\n\n void start() throws IOException;\n\n\n}", "public static void main(String[] args) throws RemoteException{\n \r\n Registry registry= LocateRegistry.createRegistry(5099); //registrar a nuestro cliente \r\n registry.rebind(\"hello\", new ObjectRemote());\r\n }", "public static void main(String[] args) throws NotBoundException, ClassNotFoundException, SQLException {\n\t\ttry {\n\t\t\tRegistry registry = LocateRegistry.createRegistry(1099);\n\t\t\tregistry.rebind(\"server\", (RMIServerInterface) new RMIServer());\n\t\t\tSystem.out.println(\"Rmi Server Running...\");\n\t\t} catch (AccessException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) throws RemoteException {\n\t\tServidorRMI server = new ServidorRMI();\n\t}", "public interface RegistrationInterface extends Remote {\n public int registraUtente(String nickname, String password) throws RemoteException;\n}", "public interface NogServer extends Remote {\n \n /**\n * getParticipants\n * @return list of participants\n * @throws RemoteException thrown when problem with remote method-call occurs.\n */\n public ArrayList<Participant> getParticipants() throws RemoteException;\n \n /**\n * putParticipants\n * @param tableParticipants list of participantDTO\n * @throws RemoteException thrown when problem with remote method-call occurs.\n */\n public void putParticipants(ArrayList<ParticipantDTO> tableParticipants) throws RemoteException;\n \n /**\n * register a client\n * @param client remote client\n * @throws RemoteException thrown when problem with remote method-call occurs.\n */\n public void registerClient(Client client) throws RemoteException;\n \n /**\n * deRegister client\n * @param client remote client\n * @throws RemoteException thrown when problem with remote method-call occurs.\n */\n public void deRegisterClient(Client client) throws RemoteException;\n \n /**\n * Edit participant\n * @param p edited participant\n * @throws RemoteException thrown when problem with remote method-call occurs.\n */\n public void editParticipant(ParticipantDTO p) throws RemoteException;\n \n /**\n * Add new participant\n * @param p participant to add\n * @throws RemoteException thrown when problem with remote method-call occurs.\n */\n public void addParticipant(ParticipantDTO p) throws RemoteException;\n \n /**\n * Delete participant\n * @param p participant to delete\n * @throws RemoteException thrown when problem with remote method-call occurs.\n */\n public void deleteParticipant(ParticipantDTO p) throws RemoteException;\n \n}", "public interface IServer {\n\n Result Login(String id, String password);\n Result Register(String id, String password);\n Result JoinGame(String id, String gameID, String authToken);\n Result CreateGame(Game game, String authToken);\n Result StartGame(Game game, String authToken);\n Result GetGameList(String authToken);\n Result GetPlayerList(String gameID, String authToken);\n}", "public void connect() throws RemoteException, NotBoundException {\n\t\t//RMI starten & Binden\n\t\tRegistry registry = null;\n\t\tregistry = LocateRegistry.getRegistry(\"127.0.0.1\", Constant.RMI_PORT);\n\t\tserver = (ServerInterface) registry.lookup(Constant.RMI_ID);\n\t\tserver.login(client);\n\t\tSystem.out.println(\"[DEBUG] Spielernummer: \" + spielerNummer);\n\t\t//Mehr als 2 Spieler sind nicht zulaessig\n\t\tif(spielerNummer==-1) {\n\t\t\tSystem.out.println(\"[DEBUG] ungueltige Spielernummer!\");\n\t\t\tSystem.out.println(\"[DEBUG] Gute Nacht :(\");\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t}", "public RMIServer() {\n System.setProperty(\"java.security.policy\", \"AllPermission.policy\");\n this.config = RMIConfiguration.getInstance();\n }", "public interface IBillingServer extends Remote {\r\n\r\n\t/**\r\n\t * \r\n\t * @param username\r\n\t * @param password\r\n\t * @return null if user not authorized, access otherwise\r\n\t * @throws RemoteException\r\n\t */\r\n\tIBillingServerSecure login(String username, String password) throws RemoteException;\r\n}", "public interface REPServer {\n\n /**\n * The port on which all {@code REPServer} classes should be listening for\n * requests.\n */\n public static final int PORT = 1309;\n\n /**\n * Starts this {@code REPServer} processing incoming processing requests.\n */\n public void start();\n\n /**\n * Stops this {@code REPServer} processing incoming processing requests.\n */\n public void stop();\n}", "public void send(){ \n\t\tserverAddress=tfTxtIpServer.getText();\n\t\tserverPort=\"3232\";\n\t\ttext=tfTxtMsg.getText();\n try{\n\t\t\t// get the \"registry\"\n registry=LocateRegistry.getRegistry(\n serverAddress,\n (new Integer(serverPort)).intValue()\n );\n\t\t // look up the remote object\n rmiServer=(ReceiveMessageInterface)(registry.lookup(\"rmiServer\"));\n\t\t\t// call the remote method\n rmiServer.receiveMessage(text);\n }\n catch(RemoteException e){\n e.printStackTrace();\n }\n catch(NotBoundException e){\n e.printStackTrace();\n } \n }", "public interface Server {\n\n /**\n * start server\n */\n public void start();\n}", "private void startServer() throws RemoteException, AlreadyBoundException{\n\t\ttry{\n\t\t\tInsuranceImplementation impl = new InsuranceImplementation();\n\t\t\timpl.setIPAddress(ipHospital.getText());\n\t\t\timpl.setPortNumebr(Integer.parseInt(portHospital.getText()));\n\t\t\t\n\t\t\tRegistry registry = LocateRegistry.createRegistry(Integer.parseInt(portInsurance.getText()));\n\t\t\tregistry.bind(Constants.RMI_ID, impl); \n\t\t\t\n\t\t\tlogMessage(\"Insurance Server Started\");\n\t\t\t\n\t\t} catch (Exception exp)\n\t\t{\n\t\t\tlogMessage(\"ObjID already in use.\\nPlease kill the process running at port 5002\");\n\t\t\texp.printStackTrace();\n\t\t} \n\t\t\n\t}", "public static void main(String args[])\r\n {\n System.setSecurityManager(new RMISecurityManager());\r\n\r\n try\r\n {\r\n // Create ResultRMIImpl\r\n ResultRMIImpl myResult = new ResultRMIImpl(\"//Binita/myResultRMI\");\r\n System.out.println(\"ResultRMI Server ready.\");\r\n } \r\n catch (Exception e)\r\n { \r\n System.out.println(\"Exception: \" + e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }", "public static void setupRMI(final boolean localHostOnly) {\n if (System.getProperty(SERVER_HOSTNAME) == null) {\n System.setProperty(SERVER_HOSTNAME, getLoopbackAddress());\n }\n // do not use HTTP tunnelling\n System.setProperty(\"java.rmi.server.disableHttp\", \"true\");\n\n if (RMISocketFactory.getSocketFactory() != null) return;\n try {\n RMISocketFactory.setSocketFactory(new RMISocketFactory() {\n final InetAddress loopbackAddress = InetAddress.getByName(getListenAddress(localHostOnly));\n\n @Override\n public Socket createSocket(String host, int port) throws IOException {\n Socket socket = new Socket(host, port);\n socket.setKeepAlive(true);\n return socket;\n }\n\n @Override\n public ServerSocket createServerSocket(int port) throws IOException {\n return new ServerSocket(port, 0, loopbackAddress);\n }\n });\n }\n catch (IOException e) {\n throw new AssertionError(e);\n }\n }", "public interface Server {\n\n public void start();\n\n public void stop();\n\n}", "public interface ClientRemoteDoor extends Remote{\n public int query_state_door(int id) throws RemoteException;\n\n}", "public static void main(String[] args) {\n\n try {\n\n Registry registry = LocateRegistry.createRegistry( 1888);\n registry.rebind(\"YStudentServerImpl\", new YStudentServerImpl());\n\n\n }\n catch (Exception ex){\n System.err.println(\"YStudentServerImpl exeption\");\n ex.printStackTrace();\n }\n\n\n }", "public static void main(String[] args){\n try{\n // El servidor se registra en RMI\n IP = args[0];\n IPBroker = args[1];\n\n Registry registryA = LocateRegistry.getRegistry();\n\n ServerAInterface sA = new ServerA();\n\n ServerAInterface stub = (ServerAInterface) UnicastRemoteObject.exportObject(sA,0);\n\n System.setProperty(\"java.rmi.server.hostname\",IP);\n registryA.rebind(\"//\"+IP+\":ServerA\",stub);\n System.out.println(\"Servidor A registrado correctamente.\");\n\n // Obtenemos el Broker\n Registry registry = LocateRegistry.getRegistry(IPBroker);\n ServicesBrokerInterface s = (ServicesBrokerInterface) registry.lookup(\"//\"+IPBroker+\":ServicesBroker\");\n\t\n Scanner teclado = new Scanner(System.in);\n boolean finalizar = false;\n String entrada = \"\";\n\t\t\t\n while (!finalizar) {\n System.out.println(\"\\n--------------------------------------\\n\");\n System.out.println(\"LISTA DE SERVICIOS DEL SERVIDOR B:\\n\" +\n \" - Nombre: introducir_libro; Parametros: String nombreLibro; Return: Void \\n\" +\n \" - Nombre: lista_libros; Parametros: none; Return: ArrayList<String> \\n\");\n\n System.out.println(\"¿Que desea hacer? \\n\"+\n \" 1 - Introducir libro\\n\"+\n \" 2 - Obtener lista de libros\\n\");\n System.out.print(\"Accion: \");\n entrada = teclado.nextLine();\n\n if (entrada.equals(\"1\")) {\n System.out.println(\"Introduzca el titulo del libro que desea almacenar:\");\n System.out.print(\"Titulo:\");\n entrada = teclado.nextLine();\n System.out.println(s.ejecutar_servicio(\"introducir_libro\", entrada));\n } else if (entrada.equals(\"2\")) {\n System.out.println(s.ejecutar_servicio(\"lista_libros\",\"\"));\n } else System.out.println(\"Accion no existente.\");\n }\n\n }catch (RemoteException e){\n System.out.println(e);\n } catch (ArrayIndexOutOfBoundsException e) {\n System.out.println(\"Es necesario pasar como parametro la IP del servidor donde se hostea el registro RMI y la IP del Broker.\");\n } catch (NotBoundException e) {\n e.printStackTrace();\n }\n }", "public void run() {\n\t try{\n \t\tRegistry registry = LocateRegistry.createRegistry(1099);\n \t\tTestUnitImpl testUnit = new TestUnitImpl();\n \t\tProxyMonitoringUnit proxyUnit= new ProxyMonitoringUnit();\n\t registry.rebind(\"TestingUnit\", testUnit);\n\t registry.rebind(\"ProxyUnit\", proxyUnit);\n\t System.out.println(\"server.RMI Server is ready.\");\n \t}catch(RemoteException e){\n \t\te.printStackTrace();\n \t}\n \t\n }", "public interface ImageServer extends Remote {\n\n /**\n * Returns the identifier of the remote image. This method should be\n * called to return an identifier before any other methods are invoked.\n * The same ID must be used in all subsequent references to the remote\n * image.\n */\n Long getRemoteID() throws RemoteException;\n\n /**\n * Disposes of any resouces allocated to the client object with\n * the specified ID.\n */\n void dispose(Long id) throws RemoteException;\n\n /**\n * Increments the reference count for this id, i.e. increments the\n * number of RMIServerProxy objects that currently reference this id.\n */\n void incrementRefCount(Long id) throws RemoteException;\n\n\n /// Methods Common To Rendered as well as Renderable modes.\n\n\n /**\n * Gets a property from the property set of this image.\n * If the property name is not recognized, java.awt.Image.UndefinedProperty\n * will be returned.\n *\n * @param id An ID for the source which must be unique across all clients.\n * @param name the name of the property to get, as a String.\n * @return a reference to the property Object, or the value\n * java.awt.Image.UndefinedProperty.\n */\n Object getProperty(Long id, String name) throws RemoteException;\n\n /**\n * Returns a list of names recognized by getProperty(String).\n *\n * @return an array of Strings representing proeprty names.\n */\n String [] getPropertyNames(Long id) throws RemoteException;\n\n /**\n * Returns a list of names recognized by getProperty().\n *\n * @return an array of Strings representing property names.\n */\n String[] getPropertyNames(String opName) throws RemoteException;\n\n\n /// Rendered Mode Methods\n\n\n /** Returns the ColorModel associated with this image. */\n SerializableState getColorModel(Long id) throws RemoteException;\n\n /** Returns the SampleModel associated with this image. */\n SerializableState getSampleModel(Long id) throws RemoteException;\n\n /** Returns the width of the image on the ImageServer. */\n int getWidth(Long id) throws RemoteException;\n\n /** Returns the height of the image on the ImageServer. */\n int getHeight(Long id) throws RemoteException;\n\n /**\n * Returns the minimum X coordinate of the image on the ImageServer.\n */\n int getMinX(Long id) throws RemoteException;\n\n /**\n * Returns the minimum Y coordinate of the image on the ImageServer.\n */\n int getMinY(Long id) throws RemoteException;\n\n /** Returns the number of tiles across the image. */\n int getNumXTiles(Long id) throws RemoteException;\n\n /** Returns the number of tiles down the image. */\n int getNumYTiles(Long id) throws RemoteException;\n\n /**\n * Returns the index of the minimum tile in the X direction of the image.\n */\n int getMinTileX(Long id) throws RemoteException;\n\n /**\n * Returns the index of the minimum tile in the Y direction of the image.\n */\n int getMinTileY(Long id) throws RemoteException;\n\n /** Returns the width of a tile in pixels. */\n int getTileWidth(Long id) throws RemoteException;\n\n /** Returns the height of a tile in pixels. */\n int getTileHeight(Long id) throws RemoteException;\n\n /** Returns the X offset of the tile grid relative to the origin. */\n int getTileGridXOffset(Long id) throws RemoteException;\n\n /** Returns the Y offset of the tile grid relative to the origin. */\n int getTileGridYOffset(Long id) throws RemoteException;\n\n /**\n * Returns tile (x, y). Note that x and y are indices into the\n * tile array, not pixel locations. Unlike in the true RenderedImage\n * interface, the Raster that is returned should be considered a copy.\n *\n * @param id An ID for the source which must be unique across all clients.\n * @param x the x index of the requested tile in the tile array\n * @param y the y index of the requested tile in the tile array\n * @return a copy of the tile as a Raster.\n */\n SerializableState getTile(Long id, int x, int y) throws RemoteException;\n\n /**\n * Compresses tile (x, y) and returns the compressed tile's contents\n * as a byte array. Note that x and y are indices into the\n * tile array, not pixel locations.\n *\n * @param id An ID for the source which must be unique across all clients.\n * @param x the x index of the requested tile in the tile array\n * @param y the y index of the requested tile in the tile array\n * @return a byte array containing the compressed tile contents.\n */\n byte[] getCompressedTile(Long id, int x, int y) throws RemoteException;\n\n /**\n * Returns the entire image as a single Raster.\n *\n * @return a SerializableState containing a copy of this image's data.\n */\n SerializableState getData(Long id) throws RemoteException;\n\n /**\n * Returns an arbitrary rectangular region of the RenderedImage\n * in a Raster. The rectangle of interest will be clipped against\n * the image bounds.\n *\n * @param id An ID for the source which must be unique across all clients.\n * @param bounds the region of the RenderedImage to be returned.\n * @return a SerializableState containing a copy of the desired data.\n */\n SerializableState getData(Long id, Rectangle bounds) \n\tthrows RemoteException;\n\n /**\n * Returns the same result as getData(Rectangle) would for the\n * same rectangular region.\n */\n SerializableState copyData(Long id, Rectangle bounds)\n\tthrows RemoteException;\n\n /**\n * Creates a RenderedOp on the server side with a parameter block\n * empty of sources. The sources are set by separate calls depending\n * upon the type and serializabilty of the source.\n */\n\n void createRenderedOp(Long id, String opName,\n\t\t\t ParameterBlock pb,\n\t\t\t SerializableState hints) throws RemoteException;\n\n /**\n * Calls for Rendering of the Op and returns true if the RenderedOp\n * could be rendered else false\n */\n boolean getRendering(Long id) throws RemoteException;\n\n /**\n * Retrieve a node from the hashtable.\n */\n RenderedOp getNode(Long id) throws RemoteException;\n\n /**\n * Sets the source of the image as a RenderedImage on the server side\n */\n void setRenderedSource(Long id, RenderedImage source, int index)\n\tthrows RemoteException;\n\n /**\n * Sets the source of the image as a RenderedOp on the server side\n */\n void setRenderedSource(Long id, RenderedOp source, int index)\n\tthrows RemoteException;\n\n /**\n * Sets the source of the image which is on the same\n * server\n */\n void setRenderedSource(Long id, Long sourceId, int index)\n\tthrows RemoteException;\n\n /**\n * Sets the source of the image which is on a different\n * server\n */\n void setRenderedSource(Long id, Long sourceId, String serverName,\n\t\t\t String opName, int index) throws RemoteException;\n\n\n /// Renderable mode methods\n\n\n /** \n * Gets the minimum X coordinate of the rendering-independent image\n * stored against the given ID.\n *\n * @return the minimum X coordinate of the rendering-independent image\n * data.\n */\n float getRenderableMinX(Long id) throws RemoteException;\n\n /** \n * Gets the minimum Y coordinate of the rendering-independent image\n * stored against the given ID.\n *\n * @return the minimum X coordinate of the rendering-independent image\n * data.\n */\n float getRenderableMinY(Long id) throws RemoteException;\n\n /** \n * Gets the width (in user coordinate space) of the \n * <code>RenderableImage</code> stored against the given ID.\n *\n * @return the width of the renderable image in user coordinates.\n */\n float getRenderableWidth(Long id) throws RemoteException;\n \n /**\n * Gets the height (in user coordinate space) of the \n * <code>RenderableImage</code> stored against the given ID.\n *\n * @return the height of the renderable image in user coordinates.\n */\n float getRenderableHeight(Long id) throws RemoteException;\n\n /**\n * Creates a RenderedImage instance of this image with width w, and\n * height h in pixels. The RenderContext is built automatically\n * with an appropriate usr2dev transform and an area of interest\n * of the full image. All the rendering hints come from hints\n * passed in.\n *\n * <p> If w == 0, it will be taken to equal\n * Math.round(h*(getWidth()/getHeight())).\n * Similarly, if h == 0, it will be taken to equal\n * Math.round(w*(getHeight()/getWidth())). One of\n * w or h must be non-zero or else an IllegalArgumentException \n * will be thrown.\n *\n * <p> The created RenderedImage may have a property identified\n * by the String HINTS_OBSERVED to indicate which RenderingHints\n * were used to create the image. In addition any RenderedImages\n * that are obtained via the getSources() method on the created\n * RenderedImage may have such a property.\n *\n * @param w the width of rendered image in pixels, or 0.\n * @param h the height of rendered image in pixels, or 0.\n * @param hints a RenderingHints object containg hints.\n * @return a RenderedImage containing the rendered data.\n */\n RenderedImage createScaledRendering(Long id, \n\t\t\t\t\tint w, \n\t\t\t\t\tint h, \n\t\t\t\t\tSerializableState hintsState) \n\tthrows RemoteException;\n \n /** \n * Returnd a RenderedImage instance of this image with a default\n * width and height in pixels. The RenderContext is built\n * automatically with an appropriate usr2dev transform and an area\n * of interest of the full image. The rendering hints are\n * empty. createDefaultRendering may make use of a stored\n * rendering for speed.\n *\n * @return a RenderedImage containing the rendered data.\n */\n RenderedImage createDefaultRendering(Long id) throws RemoteException;\n \n /** \n * Creates a RenderedImage that represented a rendering of this image\n * using a given RenderContext. This is the most general way to obtain a\n * rendering of a RenderableImage.\n *\n * <p> The created RenderedImage may have a property identified\n * by the String HINTS_OBSERVED to indicate which RenderingHints\n * (from the RenderContext) were used to create the image.\n * In addition any RenderedImages\n * that are obtained via the getSources() method on the created\n * RenderedImage may have such a property.\n *\n * @param renderContext the RenderContext to use to produce the rendering.\n * @return a RenderedImage containing the rendered data.\n */\n RenderedImage createRendering(Long id, \n\t\t\t\t SerializableState renderContextState) \n\tthrows RemoteException;\n\n /**\n * Creates a RenderableOp on the server side with a parameter block\n * empty of sources. The sources are set by separate calls depending\n * upon the type and serializabilty of the source.\n */\n void createRenderableOp(Long id, String opName, ParameterBlock pb)\n\tthrows RemoteException;\n\n /**\n * Calls for rendering of a RenderableOp with the given SerializableState\n * which should be a RenderContextState.\n */\n Long getRendering(Long id, SerializableState rcs) throws RemoteException;\n\n /**\n * Sets the source of the image which is on the same\n * server\n */\n void setRenderableSource(Long id, Long sourceId, int index)\n\tthrows RemoteException;\n\n /**\n * Sets the source of the image which is on a different\n * server\n */\n void setRenderableSource(Long id, Long sourceId, String serverName,\n\t\t\t String opName, int index) throws RemoteException;\n\n /**\n * Sets the source of the operation refered to by the supplied \n * <code>id</code> to the <code>RenderableRMIServerProxy</code>\n * that exists on the supplied <code>serverName</code> under the\n * supplied <code>sourceId</code>. \n */\n void setRenderableRMIServerProxyAsSource(Long id,\n\t\t\t\t\t Long sourceId, \n\t\t\t\t\t String serverName,\n\t\t\t\t\t String opName,\n\t\t\t\t\t int index) throws RemoteException;\n\n /**\n * Sets the source of the image as a RenderableOp on the server side.\n */\n void setRenderableSource(Long id, RenderableOp source,\n\t\t\t int index) throws RemoteException;\n\n /**\n * Sets the source of the image as a RenderableImage on the server side.\n */\n void setRenderableSource(Long id, SerializableRenderableImage source,\n\t\t\t int index) throws RemoteException;\n\n /**\n * Sets the source of the image as a RenderedImage on the server side\n */\n void setRenderableSource(Long id, RenderedImage source, int index)\n\tthrows RemoteException;\n\n /**\n * Maps the RenderContext for the remote Image\n */\n SerializableState mapRenderContext(int id, Long nodeId,\n\t\t\t\t String operationName,\n\t\t\t\t SerializableState rcs)\n\tthrows RemoteException;\n\n /**\n * Gets the Bounds2D of the specified Remote Image\n */\n SerializableState getBounds2D(Long nodeId, String operationName)\n\tthrows RemoteException;\n\n /**\n * Returns <code>true</code> if successive renderings with the same\n * arguments may produce different results for this opName\n *\n * @return <code>false</code> indicating that the rendering is static.\n */\n public boolean isDynamic(String opName) throws RemoteException;\n\n /**\n * Returns <code>true</code> if successive renderings with the same\n * arguments may produce different results for this opName\n *\n * @return <code>false</code> indicating that the rendering is static.\n */\n public boolean isDynamic(Long id) throws RemoteException;\n\n /**\n * Gets the operation names supported on the Server\n */\n String[] getServerSupportedOperationNames() throws RemoteException;\n\n /**\n * Gets the <code>OperationDescriptor</code>s of the operations\n * supported on this server.\n */\n List getOperationDescriptors() throws RemoteException;\n\n /**\n * Calculates the region over which two distinct renderings\n * of an operation may be expected to differ.\n *\n * <p> The class of the returned object will vary as a function of\n * the nature of the operation. For rendered and renderable two-\n * dimensional images this should be an instance of a class which\n * implements <code>java.awt.Shape</code>.\n *\n * @return The region over which the data of two renderings of this\n * operation may be expected to be invalid or <code>null</code>\n * if there is no common region of validity.\n */\n SerializableState getInvalidRegion(Long id,\n\t\t\t\t ParameterBlock oldParamBlock,\n\t\t\t\t SerializableState oldHints,\n\t\t\t\t ParameterBlock newParamBlock,\n\t\t\t\t SerializableState newHints)\n\tthrows RemoteException;\n\n /**\n * Returns a conservative estimate of the destination region that\n * can potentially be affected by the pixels of a rectangle of a\n * given source. \n *\n * @param id A <code>Long</code> identifying the node for whom\n * the destination region needs to be calculated .\n * @param sourceRect The <code>Rectangle</code> in source coordinates.\n * @param sourceIndex The index of the source image.\n *\n * @return A <code>Rectangle</code> indicating the potentially\n * affected destination region, or <code>null</code> if\n * the region is unknown.\n */\n Rectangle mapSourceRect(Long id, Rectangle sourceRect, int sourceIndex)\n\tthrows RemoteException;\n\n /**\n * Returns a conservative estimate of the region of a specified\n * source that is required in order to compute the pixels of a\n * given destination rectangle. \n *\n * @param id A <code>Long</code> identifying the node for whom\n * the source region needs to be calculated .\n * @param destRect The <code>Rectangle</code> in destination coordinates.\n * @param sourceIndex The index of the source image.\n *\n * @return A <code>Rectangle</code> indicating the required source region.\n */\n Rectangle mapDestRect(Long id, Rectangle destRect, int sourceIndex)\n\tthrows RemoteException;\n\n /**\n * A method that handles a change in some critical parameter.\n */\n Long handleEvent(Long renderedOpID, \n\t\t String propName,\n\t\t Object oldValue, \n\t\t Object newValue) throws RemoteException;\n\n /**\n * A method that handles a change in one of it's source's rendering,\n * i.e. a change that would be signalled by RenderingChangeEvent.\n */\n Long handleEvent(Long renderedOpID, \n\t\t int srcIndex,\n\t\t SerializableState srcInvalidRegion, \n\t\t Object oldRendering) throws RemoteException;\n\n /**\n * Returns the server's capabilities as a\n * <code>NegotiableCapabilitySet</code>. Currently the only capabilities\n * that are returned are those of TileCodecs.\n */\n NegotiableCapabilitySet getServerCapabilities() throws RemoteException;\n\n /**\n * Informs the server of the negotiated values that are the result of\n * a successful negotiation.\n *\n * @param id An ID for the node which must be unique across all clients.\n * @param negotiatedValues The result of the negotiation.\n */\n void setServerNegotiatedValues(Long id, \n\t\t\t\t NegotiableCapabilitySet negotiatedValues)\n\tthrows RemoteException; \n}", "@SuppressWarnings(\"unused\")\npublic interface AccountI extends Remote {\n String login(String id, String passwd) throws RemoteException;\n String signUp(String id, String passwd, String secureQuestion, String answer)throws RemoteException;\n String logOut(String userName) throws RemoteException;\n String forgetPassword(String username)throws RemoteException;\n String resetPassword(String username,String answer, String password)throws RemoteException;\n void startIO()throws RemoteException;\n int getRuntimeServer()throws RemoteException;\n int getFileServer() throws RemoteException;\n int getIOUniqueNumber()throws RemoteException;\n}", "public java.rmi.Remote getSomethingRemote() throws RemoteException;", "public interface ISortServer extends Remote {\n \n\t/**\n\t * Register a new sort client. Clients can only register successfully if sort()\n\t * has not been called.\n\t * @param client client to register\n\t * @return if the client was registered\n\t * @throws RemoteException\n\t */\n\tpublic boolean registerClient(ISortClient client) throws RemoteException;\n\t\n\t/**\n\t * Add a new item to the \"to be sorted\" data\n\t * @param element\n\t */\n\tpublic abstract void add(String element) throws RemoteException;\n\n\t/**\n\t * Initiates the sort operation\n\t * @throws RemoteException \n\t */\n\tpublic abstract void sort() throws RemoteException;\n\t\n\tpublic Iterator<String> iterator() throws RemoteException;\n\n\n}", "public ClientMain() throws RemoteException, MalformedURLException, NotBoundException\r\n\t{\r\n\t\t//server = (IServer) Naming.lookup(\"rmi://10.152.206.74:1099/bankingServer\");\r\n\t\tserver = (IServer) Naming.lookup(\"rmi://localhost:1099/bankingServer\");\r\n\r\n\t\tmodel = new BankModel();\r\n\r\n\t\tSystem.out.println(\"Client running\");\r\n\t}", "public interface DemoService extends Remote {\r\n public final static String SERVICE_NAME = \"DemoService\";\r\n \r\n public String doTask(String[] args) throws RemoteException;\r\n}", "public interface NetworkRegistryMBean extends NotificationBroadcaster, MBeanRegistration\n{\n /**\n * return the servers on the network\n *\n * @return\n */\n public NetworkInstance[] getServers();\n\n /**\n * add a server for a given identity that is available on the network\n *\n * @param identity\n * @param invokers\n */\n public void addServer(Identity identity, ServerInvokerMetadata invokers[]);\n\n /**\n * remove a server no longer available on the network\n *\n * @param identity\n */\n public void removeServer(Identity identity);\n\n /**\n * update the invokers for a given server\n *\n * @param identity\n * @param invokers\n */\n public void updateServer(Identity identity, ServerInvokerMetadata invokers[]);\n\n /**\n * returns true if the server with the identity is available\n *\n * @param identity\n * @return\n */\n public boolean hasServer(Identity identity);\n\n /**\n * query the network registry for <tt>0..*</tt> of servers based on a\n * filter\n *\n * @param filter\n * @return\n */\n public NetworkInstance[] queryServers(NetworkFilter filter);\n\n /**\n * change the main domain of the local server\n *\n * @param newDomain\n */\n public void changeDomain(String newDomain);\n}", "public void conectServer() {\n\n\t}", "public interface RemoteDBConnection extends Remote, DBConnection {\n\n\t/**\n\t * Key the database connection in registered with in RMI registry.\n\t */\n\tpublic static final String REGISTRY_KEY = \"DBConnection\";\n}", "public interface InterfaceClient extends Remote {\n\n double seConnecter(Client client) throws RemoteException;\n\n \n\n boolean peutReserver(Reservation rv) throws RemoteException;\n\n void visualiser(Vehicule voiture) throws RemoteException;\n\n \n \n \n void deconnexion() throws RemoteException;\n\n boolean sinscrire(Client client) throws RemoteException;\n\n void inscriptionReussite(Client client) throws RemoteException;\n}", "@Override\n\tpublic void run() {\n\t\t\t\n\t\t\ttry {\n\t\t\tLocateRegistry.createRegistry(port);\n\t\t\t}catch(RemoteException e){\n\t\t\t\tSystem.out.println(\"Another peer is running in this machine\");\n\t\t\t}\n\t\t\t\n\t\t\tInterfaceUI rmi;\n\t\t\ttry {\n\t\t\t\trmi = (InterfaceUI)UnicastRemoteObject.exportObject(this, 0);\n\t\t\t\tRegistry registry = LocateRegistry.getRegistry();\n\t\t\t\tregistry.rebind(this.id, rmi);\n\t\t\t\n\t\t\t\n\t\t\t} catch (RemoteException 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\n\t\t\n\t}", "public interface ClientInterface extends Remote {\n\tpublic static final int NUMBEROFSERVER=7;\n\t\n\t/*public static final String[] SERVERS = { \"glados.cs.rit.edu\", \"glados.cs.rit.edu\", \"glados.cs.rit.edu\", \"glados.cs.rit.edu\",\n\t\t\"glados.cs.rit.edu\", \"glados.cs.rit.edu\", \"glados.cs.rit.edu\", \"glados.cs.rit.edu\", \"glados.cs.rit.edu\",\n\t\t\"glados.cs.rit.edu\", \"glados.cs.rit.edu\", \"glados.cs.rit.edu\" };*/\n\tpublic static final String[] SERVERS = { \"glados.cs.rit.edu\", \"kansas.cs.rit.edu\", \"doors.cs.rit.edu\", \"gorgon.cs.rit.edu\",\n\t\t\"newyork.cs.rit.edu\", \"yes.cs.rit.edu\", \"kinks.cs.rit.edu\", \"medusa.cs.rit.edu\", \"joplin.cs.rit.edu\",\n\t\t\"delaware.cs.rit.edu\", \"buddy.cs.rit.edu\", \"arizona.cs.rit.edu\" };\n\t//public static final String ClientIP=\"129.21.88.98\";\n\t/**\n\t * This remote method will be called by server for copying file at Client using remote object.\n\t * @param data Byte array containing File data\n\t * @param name Name of the File\n\t * @param Server Name of the server\n\t * @throws RemoteException\n\t */\n\tpublic void getFile(byte[] data, String name,String server) throws RemoteException;\n\t/**\n\t * Servers will update request trail by invoking this remote method\n\t * @param request Name of the Server which is serving the file request.\n\t * @throws RemoteException\n\t */\n\tpublic void updateRequestTrail(String request) throws RemoteException;\n\t/**\n\t * Severs invoke this method for passing message to client Ex File does not exist \n\t * @param error Message contains\n\t * @throws RemoteException \n\t */\n\tpublic void Error(String error) throws RemoteException; \n\t\t\n\t\n}", "public interface ClientRemoteInterface extends Remote {\n\n /**\n * Receiver method, used by the server to send to the client\n// * @param playerMessage message that has been sent\n * @throws RemoteException exception due to communication fall\n */\n void receiveFromServer(PlayerMessage playerMessage) throws RemoteException;\n\n /**\n * Method used to\n * @throws RemoteException\n */\n void receiveLifeline() throws RemoteException;\n}", "public interface IRestServer {\n\n void start();\n\n void stop();\n}", "public interface ClientHandler extends Remote {\n\n public void handleMessage(Message msg) throws RemoteException;\n\n}", "public RMIClient() {\n if(ipAdress == null){\n ipAdress = \"127.0.0.1\";\n }\n try {\n loginRegistry = LocateRegistry.getRegistry(ipAdress, 421);\n mainScreenRegistry = LocateRegistry.getRegistry(ipAdress, 422);\n } catch (RemoteException ex) {\n StageController.getInstance().popup(\"Server connection\", false, \"server connection failed.\");\n Logger.getLogger(RMIClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n if (loginRegistry != null) {\n try {\n loginProvider = (ILoginProvider) loginRegistry.lookup(\"loginProvider\");\n } catch (RemoteException | NotBoundException ex) {\n StageController.getInstance().popup(\"Server connection\", false, \"server connection failed.\");\n Logger.getLogger(RMIClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n if (mainScreenRegistry != null) {\n try {\n mainScreenProvider = (IMainScreenProvider) mainScreenRegistry.lookup(\"mainScreenProvider\");\n } catch (RemoteException | NotBoundException ex) {\n StageController.getInstance().popup(\"Server connection\", false, \"server connection failed.\");\n Logger.getLogger(RMIClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "public interface Service extends AsyncRunnable, Remote {\n\n\tint registryPort() throws RemoteException;\n\n\tString name() throws RemoteException;\n}", "public interface RemotingServer<T> {\n Set<RemotingClient<T>> getRemotingClients();\n\n Set<RemotingSupervisor<T>> getSupervisors();\n\n Set<SharingSession<T>> getSessions();\n\n void addRemotingClient(RemotingClient<T> client);\n\n void addSuprevisor(RemotingSupervisor<T> supervisor);\n}", "@Override\n public boolean serverRegister(String ip, int port, int id) throws RemoteException {\n try {\n if(this.ip.equals(ip) && this.port == port){\n return false;\n }else if(this.id == id){\n return false;\n }\n \n String url = \"rmi://\"+ip+\":\"+port+\"/mytube\";\n ServerInterface server = (ServerInterface) Naming.lookup(url);\n \n if(server.acceptRegister(this.ip, this.port, this.id)){\n servers.add(server);\n //Check if servers are really bidirectionally connected.\n if(server.serverPing(this) == this.id){\n System.out.println(\"CONNECT: Bidirectionally connected to the server \"+url);\n return true;\n }\n }\n return false;\n } catch (NotBoundException | MalformedURLException | RemoteException e){\n return false;\n }\n }", "interface NotifyClient extends Remote {\n\n\t/**\n\t * An identity has been assigned to this node.\n\t * \n\t * @param id\n\t * the identity\n\t * @param oldNode\n\t * the last node the identity was assigned to, or {@code null} if\n\t * this is a new node assignment\n\t * @throws IOException\n\t * if there is a communication problem\n\t */\n\tvoid added(Identity id, Node oldNode) throws IOException;\n\n\t/**\n\t * \n\t * An identity has been removed from this node.\n\t * \n\t * @param id\n\t * the identity\n\t * @param newNode\n\t * the new node the identity is assigned to, or {@code null} if\n\t * the identity is being removed from the map\n\t * @throws IOException\n\t * if there is a communication problem\n\t */\n\tvoid removed(Identity id, Node newNode) throws IOException;\n\n\t/**\n\t * An identity has been selected for relocation from this node.\n\t * \n\t * @param id\n\t * the identity\n\t * @param newNodeId\n\t * the ID of the new node the identity will be relocated to\n\t * @throws IOException\n\t * if there is a communication problem\n\t */\n\tvoid prepareRelocate(Identity id, long newNodeId) throws IOException;\n}", "public interface IServer {\n /**\n * \n * @param data\n */\n public void sendData(String data);\n\n /**\n * \n * @return\n * @throws ServerNullDataException\n * @throws ServerEmptyDataException\n * @throws ServerBadDataException\n * @throws ServerBadFormatException\n */\n public String receiveData() throws ServerNullDataException, ServerEmptyDataException, ServerBadDataException, ServerBadFormatException;\n\n /**\n * \n * @param data\n * @return\n * @throws ServerNullDataException\n * @throws ServerEmptyDataException\n * @throws ServerBadDataException\n * @throws ServerBadFormatException\n */\n public boolean verifyData(String data) throws ServerNullDataException, ServerEmptyDataException, ServerBadDataException, ServerBadFormatException;\n\n /**\n * \n * @return\n */\n public String getData();\n\n /**\n * \n * @param s\n */\n public void setData(String s);\n\n /**\n * \n * @return\n */\n public Socket getConnectedSocket();\n \n /**\n * \n * @param s\n */\n public void setConnectedSocket(Socket s);\n\n /**\n * \n * @return\n */\n public Socket getDistantServerSocket();\n \n /**\n * \n * @param s\n */\n public void setDistantServerSocket(Socket s);\n \n /**\n * Permet de connecter la socket issues de l'écoute.\n * @return La socket permettant de communiquer avec le second joueur.\n * @throws ServerSocketAcceptException \n */\n public Socket connectSocket() throws ServerSocketAcceptException;\n \n /**\n * Méthode deconnectant la <code>Socket</code> et fermant son flux. \n * @throws ServerClosedSocketException \n * @throws ServerNullSocketException \n * @pre \n * isRunning() == true\n * s != null\n */\n public void closeSocket(Socket s) throws ServerClosedSocketException, ServerNullSocketException;\n \n /**\n * Méthode permettant de définir un <code>Timeout</code> en milliseconde.\n * @pre \n * s != null\n * 0 < timeout < MAX_TIMEOUT\n */\n public void setTimeout(Socket s, int timeout);\n \n /**\n * Retourne L'IP sous forme d'InetAddress.\n */\n public InetAddress getIP();\n \n /**\n * Retourne le nom du serveur.\n */\n public String getHostName();\n \n /**\n * Retourne le port sur lequel écoute le serveur.\n */\n public int getPort();\n \n /**\n * Permet de changer le port que l'on utilise par défaut sur le serveur.\n * @throws ServerBadPortException \n * @pre\n * 1024 < port < 49152\n * @post\n * getPort() == port\n */\n public void setPort(int port) throws ServerBadPortException;\n}", "public interface IRpcResponser {\n\n public void callback(String secret, Class<?> clazzOfInterface, Object serviceProvider, long timeout, TimeUnit timeUnit);\n\n public WrappedRpcServer buildRpcServer(String secret, IRpcMessageProcessor rpcMsgProcessor);\n}", "public interface FSInterface extends Remote\n{\n\tpublic String browseDirs(String dir) throws RemoteException;\n\tpublic String browseFiles(String dir) throws RemoteException;\n\tpublic String search(String file, String startDir) throws RemoteException;\n\tpublic boolean createFile(String file) throws RemoteException;\n\tpublic boolean createDir(String dir) throws RemoteException;\n\tpublic boolean delete(String file) throws RemoteException;\n\tpublic boolean rename(String oldName, String newName) throws RemoteException;\n\tpublic String getOSName()throws RemoteException;\n\tpublic String getHostName() throws RemoteException;\n\tpublic String getHostAddress() throws RemoteException;\n\tpublic void sendClientAddress(String clientAddress) throws RemoteException;\n\tpublic String getClientAddress() throws RemoteException;\n\tpublic Path [] getFileList() throws RemoteException;\n\t//public String sendClientName(String clientName) throws RemoteException; //ToDo\n\t//public String sendClientOS(String clientOS) throws RemoteException; //ToDo\n}", "public interface BattleShipInterface extends Remote {\n void resetAndDisplayBoard() throws RemoteException;\n void playerName(String player) throws RemoteException;\n void displayBoard() throws RemoteException;\n void setShip() throws RemoteException;\n void getSetShip(char[][] playerBoard) throws RemoteException;\n void setBomb() throws RemoteException;\n boolean hitOrMiss(int row, int col) throws RemoteException;\n String checkHitOrMiss(String enemyAttack) throws RemoteException;\n boolean checkIfAllDestroyed() throws RemoteException;\n void displayBoard(char[][] board) throws RemoteException;\n void updateMyBoard(String enemyAttack) throws RemoteException;\n void updateEnemyBoard(String rowcol, String enemyResponse) throws RemoteException;\n}", "public interface ImgServer extends ImgServerOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}", "public RMIServerInvokerInf getServerStub()\n {\n return this.server;\n }", "public Object getRMIInterface(String bindLocation)\n\t{\n\t\treturn this.networkinterface.getRMIInterface(bindLocation);\n\t}", "public boolean connect() throws RemoteException {\n\t\ttry {\n\t\t\t// Get remote object reference\n\t\t\tthis.registry = LocateRegistry.getRegistry(host, port);\n\t\t\tthis.server = (ServerInterface) registry.lookup(\"Server\");\n\t\t\tid = this.server.getNewClientId();\n\t\t\tClientInterface c_strub = (ClientInterface) UnicastRemoteObject.exportObject(this, 0);\n\t\t\tregistry.bind(id, c_strub);\n\t\t\treturn this.server.addClient(username, password, id);\n\t\t}\n\t\tcatch (AlreadyBoundException | NotBoundException e) {\n\t\t\tSystem.err.println(\"Error on client :\" + e);\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public static void main(String[] args) {\n /* obtenção da localização do serviço de registo RMI */\n \n // nome do sistema onde está localizado o serviço de registos RMI\n String rmiRegHostName;\n \n // port de escuta do serviço\n int rmiRegPortNumb; \n\n RegistryConfig rc = new RegistryConfig(\"config.ini\");\n rmiRegHostName = rc.registryHost();\n rmiRegPortNumb = rc.registryPort();\n \n /* instanciação e instalação do gestor de segurança */\n if (System.getSecurityManager() == null) {\n System.setSecurityManager(new SecurityManager());\n }\n \n /* instanciação do objecto remoto que representa o referee site e geração de um stub para ele */\n RefereeSite referee_site = null;\n RefereeSiteInterface refereeSiteInterface = null;\n referee_site = new RefereeSite();\n \n try {\n refereeSiteInterface = (RefereeSiteInterface) UnicastRemoteObject.exportObject(referee_site, rc.refereeSitePort());\n } catch (RemoteException e) {\n System.out.println(\"Excepção na geração do stub para o referee site: \" + e.getMessage());\n System.exit(1);\n }\n \n System.out.println(\"O stub para o referee site foi gerado!\");\n\n /* seu registo no serviço de registo RMI */\n String nameEntryBase = RegistryConfig.registerHandler;\n String nameEntryObject = RegistryConfig.refereeSiteNameEntry;\n Registry registry = null;\n RegisterInterface reg = null;\n\n try {\n registry = LocateRegistry.getRegistry(rmiRegHostName, rmiRegPortNumb);\n } catch (RemoteException e) {\n System.out.println(\"Excepção na criação do registo RMI: \" + e.getMessage());\n System.exit(1);\n }\n \n System.out.println(\"O registo RMI foi criado!\");\n\n try {\n reg = (RegisterInterface) registry.lookup(nameEntryBase);\n } catch (RemoteException e) {\n System.out.println(\"RegisterRemoteObject lookup exception: \" + e.getMessage());\n System.exit(1);\n } catch (NotBoundException e) {\n System.out.println(\"RegisterRemoteObject not bound exception: \" + e.getMessage());\n System.exit(1);\n }\n\n try {\n reg.bind(nameEntryObject, refereeSiteInterface);\n } catch (RemoteException e) {\n System.out.println(\"Excepção no registo do referee site: \" + e.getMessage());\n System.exit(1);\n } catch (AlreadyBoundException e) {\n System.out.println(\"O referee site já está registado: \" + e.getMessage());\n System.exit(1);\n }\n \n System.out.println(\"O referee site foi registado!\");\n }", "public interface ChatInterface extends Remote {\r\n void postMessage(String msg) throws RemoteException;\r\n\r\n String getName() throws RemoteException;\r\n\r\n void setClient(ChatInterface c) throws RemoteException;\r\n\r\n ChatInterface getClient() throws RemoteException;\r\n\r\n}", "public interface IClient extends Remote {\n /**\n * Gets called by the server to start game if desired number of player (2,3,4) in registration is achieved\n * @param playerList\n * @param player\n * @throws IClientException\n * @throws RemoteException\n */\n public boolean startGame(ArrayList<RemotePlayer> playerList, RemotePlayer player) throws IClientException, RemoteException;\n\t\n /**\n * Gets called for propagating a move to the other players\n * @param player \n * @param prisoner\n * @param roworCol\n * @param row\n * @param col\n * @throws IClientException\n * @throws RemoteException\n */\n public boolean doMoveRemote(Player player, Prisoner prisoner, int rowOrCol, int row, int col) throws IClientException, RemoteException;\n}", "public static void rebind(String name, myRemoteInterface obj) throws RemoteException, AlreadyBoundException {\n\t\n\t\tString className = obj.getClass().getCanonicalName();\n\t\tString ip = null;\n\t\ttry {\n\t\t\tip = InetAddress.getLocalHost().getHostAddress();\n \n\t\t} catch (UnknownHostException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tString nameWithSpace = Naming.parseHostPort(name);\n\t\tString args[] = nameWithSpace.split(\" \");\n\t\t\n\t\tRemoteObjectRef newRef = new RemoteObjectRef(ip, 9999,args[2] , className,\"rebind\");\n\t\t\n\t\tObjectMap.insertIntoServerMap(args[2], obj);\n\t\t\n\t\tRegistryInterface stub = null;\n\t\t try{\n\t\t\t \n\t\t\t Class<?> stub_class = Class.forName(\"registry.Registry_stub\");\n\t\t\t stub = (RegistryInterface)Class.forName(\"registry.Registry_stub\").newInstance();\n\t\t\t if(stub_class != null){\n\t\t\t\t byte[] temp = downloadToServer(stub_class, newRef);\n\t\t\t }\n\t\t} catch (InstantiationException | IllegalAccessException\n\t\t\t\t| ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tstub.rebind(name, newRef);\n\t\t\n\t\t\n\t}", "public LoyaltyRMIServerImpl(Properties props)\n throws RemoteException {\n super(props);\n setImpl();\n init();\n }", "public interface Server extends Endpoint, Resetable {\n\n /**\n * is bound.\n *\n * @return bound\n */\n boolean isBound();\n\n /**\n * get channels.\n *\n * @return channels\n */\n Collection<Channel> getChannels();\n\n /**\n * get channel.\n *\n * @param remoteAddress\n * @return channel\n */\n Channel getChannel(InetSocketAddress remoteAddress);\n\n}", "public static void main(String[] args) throws Exception{\n /* get location of the generic registry service */\n String rmiRegHostName;\n int rmiRegPortNumber;\n \n Scanner sc = new Scanner(System.in);\n int listeningPort = 22324;\n String nameEntry = RegistryConfig.bettingCenterNameEntry;\n \n System.out.println(\"Node process host name(RMI Service Host Name): \");\n rmiRegHostName = sc.nextLine();\n System.out.println(\"Node process port number(RMI Service Port Number): \");\n rmiRegPortNumber = sc.nextInt();\n \n /* Instanciate and install security manager */\n if(System.getSecurityManager() == null){\n System.setSecurityManager(new SecurityManager());\n }\n \n /* Get Central Registry */\n Registry registry = null;\n try{\n registry = LocateRegistry.getRegistry(rmiRegHostName, rmiRegPortNumber);\n }catch(RemoteException e){\n System.err.println(\"Wrong registry location!!!\");\n System.exit(1);\n }\n System.out.println(\"RMI Registry created!\");\n \n /* Get LogRepository register */\n Log_Interface log_itf = null;\n try{\n log_itf = (Log_Interface) registry.lookup(RegistryConfig.logRepositoryNameEntry);\n } catch (NotBoundException e){\n System.out.println(\"LogRepository lookup exception: \" + e.getMessage());\n e.printStackTrace();\n System.exit(1);\n }\n \n /* Create Betting Center Stub */\n Betting_Center betting_center = new Betting_Center(log_itf, GlobalInfo.numSpec, rmiRegHostName, rmiRegPortNumber);\n BettingCenter_Itf betting_center_itf = null;\n \n try{\n betting_center_itf = (BettingCenter_Itf) UnicastRemoteObject.exportObject(betting_center, listeningPort);\n } catch (RemoteException e) {\n System.out.println(\"Betting stub create exception: \" + e.getMessage());\n e.printStackTrace();\n System.exit(1);\n }\n System.out.print(\"Betting Center Stub created!\\n\");\n \n /* Register RMI register */\n Register register = null;\n String nameEntryBase = RegistryConfig.rmiRegisterName;\n try {\n register = (Register) registry.lookup(nameEntryBase);\n } catch (RemoteException | NotBoundException ex) {\n System.out.println(\"Wrong register location!\");\n System.exit (1);\n }\n \n try {\n register.bind(nameEntry, betting_center_itf);\n } catch (RemoteException e) {\n System.out.println(\"Betting Center register exception \" + e.getMessage());\n e.printStackTrace();\n System.exit(1);\n } catch (Exception e) {\n System.out.println(\"Betting Center is already registered: \" + e.getMessage());\n e.printStackTrace();\n System.exit(1);\n }\n System.out.println(\"Betting Center module has been registered!\");\n }", "public interface InterfaceServeurClient extends Remote {\n\n\tpublic void setServeur(InterfaceServeurClient serveur) throws RemoteException;\n\tpublic void setListeClient(ArrayList<InterfaceServeurClient> client) throws RemoteException;\n\tpublic Partie getPartie() throws RemoteException;\n\tpublic void ajouterClient(InterfaceServeurClient client) throws RemoteException;\n\tpublic boolean retirerClient(InterfaceServeurClient client) throws RemoteException;\n\tpublic InterfaceServeurClient getServeur() throws RemoteException;\n\tpublic String getNamespace() throws RemoteException;\n\tpublic String getNomJoueur() throws RemoteException;\n\tpublic int getIdObjetPartie() throws RemoteException;\n\tpublic void setIdObjetPartie(int idObjetPartie) throws RemoteException;\n\tpublic ArrayList<Dynastie> getListeDynastie() throws RemoteException;\n\tpublic void setListeDynastie(ArrayList<Dynastie> liste) throws RemoteException;\n\tpublic ArrayList<Dynastie> getListeDynastieDispo() throws RemoteException;\n\tpublic void setJoueur(Joueur j) throws RemoteException;\n\n\tpublic boolean deconnecter() throws RemoteException;\n\n\tpublic void notifierChangement(ArrayList<Object> args) throws RemoteException;\n\tpublic void addListener(ChangeListener listener) throws RemoteException;\n\tpublic void removeListener(ChangeListener listener) throws RemoteException;\n\tpublic void clearListeners() throws RemoteException;\n\tpublic Joueur getJoueur() throws RemoteException;\n\tpublic void setPartieCourante(Partie partie) throws RemoteException;\n\tpublic ArrayList<InterfaceServeurClient> getClients() throws RemoteException;\n\tpublic boolean send(Action action, int idClient) throws RemoteException;\n\tpublic void passerTour() throws RemoteException;\n\n\tpublic void switchJoueurEstPret(InterfaceServeurClient client) throws RemoteException;\n\tpublic void switchJoueurPret() throws RemoteException;\n\tpublic boolean setDynastieOfClient(InterfaceServeurClient client, Dynastie dynastie) throws RemoteException;\n\tpublic void setDynastie(Dynastie d) throws RemoteException;\n\tpublic void libererDynastie(Dynastie d) throws RemoteException;\n\tpublic int getUniqueId() throws RemoteException;\n\n\tpublic void envoyerNouveauConflit(Conflits conflit, int idClient) throws RemoteException;\n\tpublic void envoyerRenforts(ArrayList<TuileCivilisation> renforts, Joueur joueur) throws RemoteException;\n\tpublic boolean piocherCartesManquantes(Joueur j) throws RemoteException;\n\tpublic void finirPartie() throws RemoteException;\n\tpublic void envoyerPointsAttribues(Joueur joueur) throws RemoteException;\n\tpublic ArrayList<Joueur> recupererListeJoueurPartie() throws RemoteException;\n\tpublic void chargerPartie() throws RemoteException;\n}", "public interface RemoteClientService extends Remote {\n\n /**\n * Returns a ClientDTO object with the given id.\n * @param sessionId session id to gain access\n * @param id database id of the client\n * @return a client dto with the given id\n * @throws RemoteException mandatory\n * @throws UserNotLoggedInException is thrown if the sessionId is invalid\n */\n ClientDTO getById(String sessionId, int id) throws RemoteException, UserNotLoggedInException;\n\n /**\n * Returns all clients.\n * @param sessionId session id to gain access\n * @return list with all clients\n * @throws RemoteException mandatory\n * @throws UserNotLoggedInException is thrown if the sessionId is invalid\n */\n List<ClientDTO> getList(String sessionId) throws RemoteException, UserNotLoggedInException;\n}", "public static void main(String[] args) {\n try {\n //创建一个远程对象\n\n String ip = args[0];\n String port = args[1];\n Integer totalSpace = args[2] == null ? 100 :Integer.valueOf(args[2]);\n ChunkServerProperties properties = new ChunkServerProperties();\n properties.setIp(ip);\n properties.setPort(port);\n\n IChunkServerService chunkServer = new BFSChunkServer(totalSpace,0,\"/\",ip);\n\n LocateRegistry.createRegistry(Integer.parseInt(port));\n\n String rmi = \"rmi://\"+properties.getServerIpPort()+\"/chunk_server\";\n Printer.println(rmi);\n Naming.bind(rmi,chunkServer);\n\n String masterRMI =\"rmi://127.0.0.1:8888/master\";\n\n IMasterService masterService =(IMasterService) Naming.lookup(\"rmi://127.0.0.1:8888/master\");\n\n\n masterService.registerChunkServer(properties);\n\n Printer.println(\"register to master \"+masterRMI + \" succcess\");\n\n } catch (RemoteException e) {\n e.printStackTrace();\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (AlreadyBoundException e) {\n e.printStackTrace();\n } catch (NotBoundException e) {\n e.printStackTrace();\n }\n }", "public interface RegistryReplicationService extends RegistryService {\n\n GetServicesResponse getServices(GetServicesRequest request);\n\n}", "public interface IClient {\n void start(String hostIP);\n void stop();\n}", "public MorpionServerImpl() throws RemoteException {\r\n\t\tmorpionClients = new HashMap<String, MorpionClientInterface>();\r\n\t}", "public static void main(String[] args) {\n System.out.println(\"Begin Server...\");\n\n\n\n try {\n Remote r = Naming.lookup(\"UniversalRegistry\");\n IUniversalRegistry iur = (IUniversalRegistry)r;\n\n //on ajoute des voitures dans le registre universel\n Voiture v1 = new Voiture(1);\n iur.bind(\"v1\",v1);\n Voiture v2 = new Voiture(2);\n iur.bind(\"v2\",v2);\n\n\n //On ajoute des voitures electrique dans le registre universel\n VoitureElectrique ve = new VoitureElectrique(4,0);\n iur.bind(\"ve\",ve);\n VoitureElectrique ve1 = new VoitureElectrique(4,1);\n iur.bind(\"ve1\",ve1);\n\n VoitureElectrique ve3 = new VoitureElectrique(4,1);\n iur.bind(\"ve3\",ve3);\n\n ClassTest classTest = new ClassTest();\n iur.bind(\"cl\",classTest);\n\n\n }\n\n catch(Exception e){\n e.printStackTrace();\n }\n\n\n\n }", "public interface CalculadoraInterface extends Remote {\n \n \n public double somar(double x, double y) throws RemoteException;\n public double subtrari(double x, double y) throws RemoteException;\n public double multiplicar(double x, double y) throws RemoteException;\n public double dividir(double x, double y) throws RemoteException;\n}", "public interface IRemoteClient extends IClient {\t\n\tString getUuid();\n\t\n\t/**\n\t * Send a message to the remote client\n\t * @param msg\n\t */\n\tvoid sendMessage(String msg);\n\t\n\t/**\n\t * Disconnect the client, ending any existing sessions.\n\t * This must be thread safe, as it can be called from a worker thread.\n\t */\n\tvoid disconnect(String reason);\n\t\n\t/**\n\t * Whether this Client is connected.\n\t * If this is false, any message received and sent should be ignored.\n\t * This must be thread safe.\n\t * @return\n\t */\n\tboolean isConnected();\n}", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\tMyRemote service = (MyRemote) Naming.lookup(\"rmi://127.0.0.1:6600/remoteTest\");\r\n\t\t\tString s = service.sayHello();\r\n\t\t\tSystem.out.println(s);\r\n\t\t} catch (MalformedURLException | RemoteException | NotBoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "public interface ControllerInterface extends Remote {\n\n /**\n * Remotely invocable method.\n *\n * @param text\n * @exception RemoteException if the remote invocation fails.\n */\n public void setText(String text) throws RemoteException;\n\n public String getText() throws RemoteException;\n \n public void criarArquivo(String nome) throws RemoteException;\n\n public String[] listarArquivos() throws RemoteException;\n \n public String abrirArquivo(String nome) throws RemoteException;\n \n public void editarArquivo(String nome, String texto) throws RemoteException;\n \n public void insert(char c, int pos) throws RemoteException;\n}", "public interface ServerCommand {\n\t\n\t/**\n\t * Command wird ausgef&uuml;hrt.\n\t * \n\t * @param m Member, welcher den Command ausgef&uuml;hrt hat.\n\t * @param c TextChannel, in dem der Command ausgef&uuml;hrt wurde.\n\t * @param msg Message, in der der Command steht.\n\t */\n public abstract void performCommand(Member m, TextChannel c, Message msg);\n}", "public SyncServer() throws RemoteException\r\n\t{\r\n\t\ttry {\r\n\t\t\tinit(SYNC);\r\n\t\t} catch (Exception e) {\r\n\t\t\tDebug.ErrorMessage(\"SyncServer initialization error\",\"Exception\" + e);\r\n\t\t}\r\n\t}", "private void runRemotely() {\n if (!isDas())\n return;\n\n List<Server> remoteServers = getRemoteServers();\n\n if (remoteServers.isEmpty())\n return;\n\n try {\n ParameterMap paramMap = new ParameterMap();\n paramMap.set(\"monitor\", \"true\");\n paramMap.set(\"DEFAULT\", pattern);\n ClusterOperationUtil.replicateCommand(\"get\", FailurePolicy.Error, FailurePolicy.Warn, remoteServers,\n context, paramMap, habitat);\n }\n catch (Exception ex) {\n setError(Strings.get(\"admin.get.monitoring.remote.error\", getNames(remoteServers)));\n }\n }", "public interface ServerRegisterListener {\r\n \r\n /**\r\n * Register server listener.\r\n *\r\n * @param server the server\r\n */\r\n public void registerServerListener(Server server);\r\n \r\n}", "public static void bind(String name, myRemoteInterface obj) throws AlreadyBoundException, RemoteException, IOException {\n\t\tString className = obj.getClass().getCanonicalName();\n\t\tString ip = null;\n\t\ttry {\n\t\t\tip = InetAddress.getLocalHost().getHostAddress();\n \n\t\t} catch (UnknownHostException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tString nameWithSpace = Naming.parseHostPort(name);\n\t\tString args[] = nameWithSpace.split(\" \");\n\t\t\n\t\tRemoteObjectRef newRef = new RemoteObjectRef(ip, 9999,args[2] , className,\"bind\");\n\t\t\n\t\tObjectMap.insertIntoServerMap(args[2], obj);\n\t\t\n\t\tRegistryInterface stub = null;\n\t\t try{\n\t\t\t \n\t\t\t Class<?> stub_class = Class.forName(\"registry.Registry_stub\");\n\t\t\t stub = (RegistryInterface)Class.forName(\"registry.Registry_stub\").newInstance();\n\t\t\t if(stub_class != null){\n\t\t\t\t byte[] temp = downloadToServer(stub_class, newRef);\n\t\t\t }\n\t\t} catch (InstantiationException | IllegalAccessException\n\t\t\t\t| ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tstub.bind(name, newRef);\n\t\t\n\t}", "public interface MainMBean\n{\n // Attributes ---------------------------------------------------\n \n void setRmiPort(int port);\n int getRmiPort();\n \n void setPort(int port);\n int getPort();\n\n void setBindAddress(String host) throws UnknownHostException; \n String getBindAddress();\n\n void setRmiBindAddress(String host) throws UnknownHostException; \n String getRmiBindAddress();\n\n void setBacklog(int backlog); \n int getBacklog();\n\n /** Whether the MainMBean's Naming server will be installed as the NamingContext.setLocal global value */\n void setInstallGlobalService(boolean flag);\n boolean getInstallGlobalService();\n\n /** Get the UseGlobalService which defines whether the MainMBean's\n * Naming server will initialized from the existing NamingContext.setLocal\n * global value.\n * \n * @return true if this should try to use VM global naming service, false otherwise \n */ \n public boolean getUseGlobalService();\n /** Set the UseGlobalService which defines whether the MainMBean's\n * Naming server will initialized from the existing NamingContext.setLocal global\n * value. This allows one to export multiple servers via different transports\n * and still share the same underlying naming service.\n * \n * @return true if this should try to use VM global naming service, false otherwise \n */ \n public void setUseGlobalService(boolean flag);\n\n /** The RMIClientSocketFactory implementation class */\n void setClientSocketFactory(String factoryClassName)\n throws ClassNotFoundException, InstantiationException, IllegalAccessException;\n String getClientSocketFactory();\n \n /** The RMIServerSocketFactory implementation class */\n void setServerSocketFactory(String factoryClassName)\n throws ClassNotFoundException, InstantiationException, IllegalAccessException;\n String getServerSocketFactory();\n\n /** The JNPServerSocketFactory implementation class */\n void setJNPServerSocketFactory(String factoryClassName) \n throws ClassNotFoundException, InstantiationException, IllegalAccessException;\n\n // Operations ----------------------------------------------------\n \n public void start() throws Exception;\n \n public void stop();\n \n}", "public static void main(String[] args) {\n\t\t//System.setSecurityManager(new RMISecurityManager());\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Server is starting...\");\n\t\t\n\t\ttry {\n\t\t\tServer server = new Server(sPort);\n\t\t\tserver.start();\n\t\t\tSystem.out.println(\"Press Enter to exit.\") ;\n\t\t\t\n\t\t\tin.nextLine() ;\n\t\t\t\n\t\t\t//Naming.rebind(Utilities.SERVER_NAME, gc);\n\t\t\tSystem.out.println(\"Server is started\");\n\t\t} catch (RemoteException | UnknownHostException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tin.close(); \n\t}", "public static void main(String[] args) {\n\n try {\n MyRemote service = new MyRemoteImp1();\n Naming.rebind(\"Remote Hello\", service);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tRegistryInterface rInterface = new RegistryServer();\n\t\t\tint portnum=Integer.parseInt(args[1]);\n\t\t\tInetAddress iAddress=InetAddress.getByName(args[0]);\n\t\t\tSocketFactory sFactory=new SocketFactory(iAddress);\n\t\t\tRegistry registry = LocateRegistry.createRegistry(portnum,null,sFactory);\n\t\t\tregistry.bind(\"registryServer\", rInterface);\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (AlreadyBoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (UnknownHostException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public interface Hello extends Remote {\n /**\n * Return the greetings\n * @param timeOfDay integer to 1..4\n * @return the greeting value\n * @throws RemoteException\n */\n String sayHello(int timeOfDay) throws RemoteException;\n}", "public interface IGame extends Remote\n{\n /**\n * Create a game between two players\n * @param playerOne the receiver who accepted the invitation\n * @param playerTwo the sender of the invitation\n * @throws RemoteException if there's a problem with the connection\n */\n void createGame(User playerOne, User playerTwo) throws RemoteException;\n\n /**\n * Gives player one\n * @return player one\n * @throws RemoteException if there's a problem with the connection\n */\n User getPlayerOne() throws RemoteException;\n\n /**\n * Gives player two\n * @return player two\n * @throws RemoteException if there's a connection error\n */\n User getPlayerTwo() throws RemoteException;\n\n /**\n * Gives the tiles of player one back\n * @return a list of tiles\n * @throws RemoteException if there's a problem with the connection\n */\n ArrayList<Tile> getTilesPlayerOne() throws RemoteException;\n\n /**\n * Gives the tiles of player two back\n * @return a list of tiles\n * @throws RemoteException if there's a problem with the connection\n */\n ArrayList<Tile> getTilesPlayerTwo() throws RemoteException;\n\n /**\n * Initialize randomly which player can start and change the players turn after every move\n * @throws RemoteException if there's a problem with the connection\n */\n void setPlayerTurn() throws RemoteException;\n\n /**\n * Gives back the player which turn it is\n * @return player one or player two depends on which one has the turn\n * @throws RemoteException if there's a problem with the connection\n */\n User getPlayerTurn() throws RemoteException;\n\n /**\n * Checks if there's a hit\n * @param x the x coordinate where the missile will land\n * @param y the y coordinate where the missile will land\n * @throws RemoteException if there's a problem with the connection\n */\n void launch(int x, int y) throws RemoteException;\n\n /**\n * Checks if the game is ended\n * @return true if a player hit every ship of the other player. Else it returns false\n * @throws RemoteException if there's a problem with the connection\n */\n boolean checkEndGame() throws RemoteException;\n}", "public interface Server {\n\n /**\n * Start server.\n */\n void start();\n\n /**\n * Stop server.\n */\n void stop();\n\n /**\n * Is the server running?\n *\n * @return return true, not return false.\n */\n boolean isRunning();\n\n interface Listener {\n\n /**\n * The server is started.\n */\n void onStarted();\n\n /**\n * The server is stopped.\n */\n void onStopped();\n\n /**\n * An error occurred.\n *\n * @param e error.\n */\n void onError(Exception e);\n\n }\n}", "public ServerRetriever() throws IOException {\n\t\t//Try to get the registry\n\t\ttry {\n\t\t\tthis.registry = LocateRegistry.getRegistry(IP, PORT);\n\t\t\tSystem.out.println(\"Registry lookup succesfull\");\n\t\t} catch (RemoteException re) {\n\t\t\tSystem.out.println(\"GameServer: RemoteException: \" + re.getMessage());\n\t\t\tthis.registry = null;\n\t\t}\n\n\t\tif (this.registry != null) {\n\t\t\ttry {\n\t\t\t\tthis.serverList = (IServerList) this.registry.lookup(BINDINGNAME);\n\t\t\t} catch (RemoteException re) {\n\t\t\t\tSystem.out.println(\"GameServer: RemoteException: \" + re.getMessage());\n\t\t\t\tthis.serverList = null;\n\t\t\t} catch (NotBoundException nbe) {\n\t\t\t\tSystem.out.println(\"GameServer: NotBoundException: \" + nbe.getMessage());\n\t\t\t\tthis.serverList = null;\n\t\t\t}\n\t\t}\n\t}", "public interface AliveCheck extends Remote {\n public boolean isAlive() throws RemoteException;\n}", "public interface RpcClient {\r\n\r\n\t/**\r\n\t * Initializes this RpcClient\r\n\t */\r\n\tpublic void initialize();\r\n\t\r\n\t/**\r\n\t * Sends the specified object and waits for a response message (or) the specified timeout to occur. Keeps the connection open for further \r\n\t * send requests. Note that clients of this RPCClient must call {@link RPCClient#closeConnections()} when done using this RPCClient.\r\n\t * This method performs to-and-from conversion of the specified object to a raw byte array when publishing it to the queue / consuming off it. \r\n\t * @param message the message to be sent\r\n\t * @param timeout the timeout duration in milliseconds\r\n\t * @return response Object from the RPC message call\r\n\t * @throws MessagingTimeoutException in case the specified timeout occurs\r\n\t * @throws MessagingException in case of errors in message publishing\r\n\t */\r\n\tpublic Object send(Object message, int timeout) throws MessagingTimeoutException, MessagingException;\r\n\r\n\t/**\r\n\t * Sends the specified String and waits for a response message (or) the specified timeout to occur. Keeps the connection open for further \r\n\t * send requests. Note that clients of this RPCClient must call {@link RPCClient#closeConnections()} when done using this RPCClient.\r\n\t * This method performs to-and-from conversion of the specified object to UTF-8 encoded byte array when publishing it to the queue / consuming off it. \r\n\t * @param message the String message to be sent\r\n\t * @param timeout the timeout duration in milliseconds\r\n\t * @return response String from the RPC message call\r\n\t * @throws MessagingTimeoutException in case the specified timeout occurs\r\n\t * @throws MessagingException in case of errors in message publishing\r\n\t */\r\n\tpublic String sendString(String message , int timeout) throws MessagingTimeoutException, MessagingException;\r\n\t\r\n\t/**\r\n\t * Closes connection related objects used by this RpcClient.\r\n\t * @throws MessagingException in case of errors closing connections to the underlying messaging system.\r\n\t */\r\n\tpublic void closeConnections() throws MessagingException;\r\n\t\r\n}", "public static void main(String args[]) throws RemoteException\r\n {\r\n Scanner myObj = new Scanner(System.in);\r\n\r\n System.out.println(\"Enter your message: \");\r\n \r\n String text = \"\";\r\n text = myObj.nextLine();\r\n msg rmi = null;\r\n\r\n try {\r\n Registry registry = LocateRegistry.getRegistry(\"localhost\", 1234);\r\n rmi = (msg) registry.lookup(\"server\");\r\n System.out.println(\"Connected to Server\");\r\n } catch (NotBoundException | RemoteException e) {\r\n }\r\n if (rmi != null) {\r\n try {\r\n /**\r\n * sends the message to the server \r\n */\r\n rmi.sendMsg(text);\r\n \r\n /**\r\n * Receives the value for the Character counter\r\n */\r\n System.out.println(rmi.getMsg(text));\r\n } catch (RemoteException e) {\r\n }\r\n System.out.println(\"Finished\");\r\n }\r\n }", "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 }" ]
[ "0.79273677", "0.75636834", "0.74663186", "0.72812325", "0.7244906", "0.7181452", "0.71014977", "0.70904076", "0.6833795", "0.68110096", "0.67794585", "0.6773419", "0.6745892", "0.67091554", "0.66778374", "0.6621948", "0.6598699", "0.6597956", "0.65864897", "0.6569464", "0.6544692", "0.65013176", "0.6500627", "0.64954853", "0.6488042", "0.64551765", "0.6431079", "0.6422229", "0.6420048", "0.6406351", "0.64032084", "0.6402901", "0.64025927", "0.63912684", "0.6388243", "0.6381421", "0.63602346", "0.6359801", "0.6285678", "0.6277555", "0.62622064", "0.62605584", "0.6250171", "0.6246348", "0.62307894", "0.62204134", "0.62080014", "0.61881673", "0.6187639", "0.6183469", "0.6165129", "0.6156093", "0.61507845", "0.6130635", "0.6110691", "0.6053957", "0.6036717", "0.60223573", "0.60209113", "0.59921837", "0.5984955", "0.59691226", "0.5957557", "0.59573907", "0.5956998", "0.5944363", "0.5941597", "0.59385943", "0.59145427", "0.59135413", "0.59122294", "0.59005195", "0.58963156", "0.5893203", "0.5887109", "0.5884148", "0.58818066", "0.5879776", "0.5868792", "0.58651495", "0.5844349", "0.58418816", "0.5834575", "0.5822958", "0.58140683", "0.57986015", "0.5797953", "0.57947433", "0.57938975", "0.579328", "0.57846767", "0.57809603", "0.5769753", "0.57605064", "0.5760214", "0.5756196", "0.5755715", "0.57480735", "0.57475585", "0.57463" ]
0.75165486
2
Constructor for the class.
public TextAreaDetail(CalendarListElement list) { list.addListener(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public CyanSus() {\n\n }", "public PSRelation()\n {\n }", "public _355() {\n\n }", "private Instantiation(){}", "public Chick() {\n\t}", "public CSSTidier() {\n\t}", "public Pitonyak_09_02() {\r\n }", "public Trening() {\n }", "public Coche() {\n super();\n }", "public Phl() {\n }", "public Curso() {\r\n }", "public Tbdtokhaihq3() {\n super();\n }", "public Libro() {\r\n }", "public Orbiter() {\n }", "public Cohete() {\n\n\t}", "private TMCourse() {\n\t}", "public Lanceur() {\n\t}", "public Chauffeur() {\r\n\t}", "public Clade() {}", "public SgaexpedbultoImpl()\n {\n }", "public RngObject() {\n\t\t\n\t}", "public Odontologo() {\n }", "public Ov_Chipkaart() {\n\t\t\n\t}", "public Self__1() {\n }", "public SlanjePoruke() {\n }", "public Parameters() {\n\t}", "public ClassTemplate() {\n\t}", "public Tigre() {\r\n }", "public Pasien() {\r\n }", "public ExamMB() {\n }", "public Aanbieder() {\r\n\t\t}", "public Anschrift() {\r\n }", "public Excellon ()\n {}", "private Rekenhulp()\n\t{\n\t}", "public Demo() {\n\t\t\n\t}", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public Zeffit()\n {\n // TODO: initialize instance variable(s)\n }", "public TRIP_Sensor () {\n super();\n }", "public Mitarbeit() {\r\n }", "public mapper3c() { super(); }", "public Soil()\n\t{\n\n\t}", "public Catelog() {\n super();\n }", "public Rol() {}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public JSFOla() {\n }", "public Goodsinfo() {\n super();\n }", "public DetArqueoRunt () {\r\n\r\n }", "public Carrera(){\n }", "public CMN() {\n\t}", "public Supercar() {\r\n\t\t\r\n\t}", "public Node(){\n\n\t\t}", "public Data() {\n \n }", "public Data() {\n }", "public Data() {\n }", "public PjxParser()\r\n {\r\n LOG.info(this + \" instantiated\");\r\n }", "public SubjectClass() {\n }", "public Cgg_jur_anticipo(){}", "public Classe() {\r\n }", "public Carrinho() {\n\t\tsuper();\n\t}", "public Resource() {\n }", "public Resource() {\n }", "public TTau() {}", "public Magazzino() {\r\n }", "public Livro() {\n\n\t}", "public HGDClient() {\n \n \t}", "public AirAndPollen() {\n\n\t}", "public Parser()\n {\n //nothing to do\n }", "public EnsembleLettre() {\n\t\t\n\t}", "private Node() {\n\n }", "public Achterbahn() {\n }", "public Purp() {\n }", "public AntrianPasien() {\r\n\r\n }", "public Genret() {\r\n }", "@Override public void init()\n\t\t{\n\t\t}", "private SingleObject()\r\n {\r\n }", "public Instance() {\n }", "public ChaCha()\n\t{\n\t\tsuper();\n\t}", "public Rook()\n {\n super();\n }", "public Reader(){\n\n\t}", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "public Tbdcongvan36() {\n super();\n }", "public OOP_207(){\n\n }", "public OVChipkaart() {\n\n }", "@Override\n\t\tpublic void init() {\n\t\t}", "public Generic(){\n\t\tthis(null);\n\t}", "public Sequence(){\n\n }", "public Event() {\r\n\r\n\t}", "public Boop() {\n\t\tsuper();\n\t}", "public Stat() {\n }", "public Requisition() {\n\n }", "public Component() {\n }", "public Corso() {\n\n }", "@Override\n public void init() {}", "public BaseParameters(){\r\n\t}", "public ContasCorrentes(){\n this(0,\"\",0.0,0.0,0);\n }", "public SensorData() {\n\n\t}", "public Book() {\n\t\t// Default constructor\n\t}", "protected Betaling()\r\n\t{\r\n\t\t\r\n\t}", "public SimOI() {\n super();\n }" ]
[ "0.84834844", "0.80363995", "0.7402332", "0.73984003", "0.7169051", "0.7097029", "0.7073533", "0.7069785", "0.70525056", "0.70207524", "0.7020108", "0.6995734", "0.6990981", "0.69893134", "0.6969099", "0.6965046", "0.696421", "0.6951068", "0.6946851", "0.69132704", "0.68860525", "0.68828857", "0.6879351", "0.6863541", "0.6849351", "0.68467003", "0.6843756", "0.6835958", "0.6814206", "0.6801247", "0.67999965", "0.67924136", "0.679119", "0.67893094", "0.67813194", "0.6779526", "0.67769456", "0.67760205", "0.6775397", "0.6775162", "0.67691094", "0.6767995", "0.6766996", "0.6765329", "0.67651075", "0.6764254", "0.6758045", "0.67576134", "0.67563283", "0.675321", "0.6750128", "0.67358655", "0.67323154", "0.6731836", "0.67299706", "0.67299706", "0.672308", "0.67227376", "0.6718976", "0.6712384", "0.67080057", "0.6702406", "0.6702406", "0.66974086", "0.6695257", "0.6694878", "0.6688753", "0.6688724", "0.66674787", "0.6665243", "0.665841", "0.6656873", "0.6652635", "0.66342133", "0.66329515", "0.6627858", "0.6627226", "0.66240734", "0.66228473", "0.6617534", "0.6616546", "0.66159505", "0.66157675", "0.6602376", "0.66015846", "0.6600396", "0.6598987", "0.65954584", "0.6595302", "0.65948933", "0.659425", "0.65941626", "0.65926206", "0.6592146", "0.6591548", "0.65899646", "0.65848094", "0.6583974", "0.65833145", "0.65825796", "0.6582045" ]
0.0
-1
Updates whenever the model changes.
@Override public void update(Object ob) { if (ob instanceof CalendarEvent) { CalendarEvent event = (CalendarEvent) ob; setText(event.toString() + event.printFeedback()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void notifyModelUpdated()\n {}", "@Override\n public void Update(Model model) {\n\n }", "void updateModel() {\n updateModel(false);\n }", "private void setModelToChanged() {\n\t\tsetChanged();\r\n\t\tnotifyObservers();\r\n\t}", "@Override\n\tpublic int update(Object model) {\n\t\treturn 0;\n\t}", "public void update() {\n tableChanged(new TableModelEvent(this));\n }", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n public void update(EntityModel model) {\n super.update(model);\n\n }", "public void updateModel() {\n\t\t// Set the mode to validation\n\t\tmode = UPDATE;\n\t\t// Traverses the source and updates the model when UML elements are\n\t\t// missing\n\t\tinspect();\n\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "public void updateModel() {\n\t\tIterator<Cell> itr = iterator();\n\t\twhile(itr.hasNext()) itr.next().update();\n\t\titr = iterator();\n\t\twhile(itr.hasNext()) {\n\t\t\t(itr.next()).nextGeneration();\n\t\t}\n\t\tupdateGraph();\n\t}", "@Override\r\n\tpublic void update() {\n\t\tsuper.update();\r\n\t}", "public void willbeUpdated() {\n\t\t\n\t}", "void updateModelFromView();", "public void update(){\n\t\tSystem.out.println(\"Return From Observer Pattern: \\n\" + theModel.getObserverState() \n\t\t+ \"\\n\");\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\r\n\t}", "@Override\r\n\tpublic void update() {\r\n\r\n\t}", "@Override\n\tpublic void update() {}", "@Override\n\tpublic void update() {}", "@Override\n\t\t\t\tpublic void modelStructureChanged() {\n\n\t\t\t\t}", "@Override\n public void update() {\n \n }", "@Override\r\n\tpublic void update() {\n\t}", "@Override\r\n\tpublic void update() {\n\t}", "void onModelChange();", "@Override\n\tpublic void update() { }", "public void update()\n\t{\n\t\tsuper.update();\n\t}", "void updateViewFromModel();", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n public void update() {\n }", "@Override\n public void update() {\n }", "@Override\n\tpublic void update() {\n\t\tobj.update();\n\t}", "@Override\n\tpublic void update() {\n\t}", "@Override\n\tpublic void update() {\n\t}", "@Override\n\tpublic void update() {\n\t}", "public void update(){}", "public void update(){}", "@Override\n public void update() {\n\n }", "@Override\r\n\tpublic void update() {\n\r\n\t}", "@Override\r\n\tpublic void update() {\n\r\n\t}", "@Override\n public void update()\n {\n\n }", "private void notifyUpdated() {\n if (mChanged) {\n mChanged = false;\n mObserver.onChanged(this);\n }\n }", "public void updateCurrentValues(AnyUriModel model) {\r\n this.model = model;\r\n resetValuesFromModel();\r\n }", "@Override\r\n\tpublic boolean update(LabelArticle model) {\n\t\treturn false;\r\n\t}", "@Override\r\n public void onUpdate() {\n super.onUpdate();\r\n }", "public void update() {\n manager.update();\n }", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void userModelChanged() \r\n\t\t{\n\t\t\t\r\n\t\t}", "public abstract void modelStructureChanged();", "public void update() {\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "protected void handleModelChanged() {\n\t\t// refresh connections on the source edit part!\n\t\tif (isActive()) {\n//\t\t\tLink link = (Link)getModel();\n//\t\t\tEObject sourceActivity = FlowLinkUtil.getLinkSource(link); \n//\t\t\tif (sourceActivity != null) {\n//\t\t\t\tObject editPart = getViewer().getEditPartRegistry().get(sourceActivity);\n//\t\t\t\tif (editPart instanceof ActivityEditPart) {\n//\t\t\t\t\t((ActivityEditPart)editPart).refresh();\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\tEObject targetActivity = FlowLinkUtil.getLinkTarget(link); \n//\t\t\tif (targetActivity != null) {\n//\t\t\t\tObject editPart = getViewer().getEditPartRegistry().get(targetActivity);\n//\t\t\t\tif (editPart instanceof ActivityEditPart) {\n//\t\t\t\t\t((ActivityEditPart)editPart).refresh();\n//\t\t\t\t}\n//\t\t\t}\n\t\t\t// If property name is children, refresh children.\n\t\t\t// If property name is size or location, refresh visuals.\n\t\t\trefreshVisuals();\n\t\t}\n\t}", "public void update() {\n\t\tmLast = mNow;\n\t\tmNow = get();\n\t}", "@Override\n public void cycleStarted(ModelEvent event)\n {\n checkForChange();\n }", "@Override\r\n\tpublic void update(Interest model, InterestEntity entity) {\n\r\n\t}", "private void modelListenersNotify()\n {\n modelArray = this.toArray(new Object[this.size()]);\n notifyTableModelChange();\n notifyComboBoxModelChange(0, this.size()-1);\n }", "public void update() {}", "protected void onUpdate() {\r\n\r\n\t}", "public void update() {\n\t\t\n\t}", "@Override\n public void stateChanged()\n {\n if (this.systemUpdated)\n {\n inputModelReady = true;\n }\n }", "public void update()\n {\n this.controller.updateAll();\n theLogger.info(\"Update request recieved from UI\");\n }", "public boolean update() {\n if(0==modified) return false;\n \n final int res = modified;\n if( (res&DIRTY_MODELVIEW)!=0 ) {\n setMviMvit();\n }\n modified=0;\n return res!=0;\n }", "@PreUpdate\n\tprotected void onUpdate() {\n\t\tupdated = new Date();\n\t\trcaCase.updated = updated;\n\t}", "public void fireModelChanged() {\n if (enabled)\n for (IInifileChangeListener listener : getListeners())\n listener.modelChanged();\n }", "public void update() {\n }", "void onModelChanged(MatchSnapshot matchSnapshot);", "@Override\n\tpublic int update() {\n\t\treturn 0;\n\t}", "public void update() {\r\n\t\t\r\n\t}", "public void refreshData() {\r\n\t\tfireTableDataChanged();\r\n\t\tgetTable().tableChanged(new TableModelEvent(this));\r\n\t}", "@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}", "protected void modelChanged() {\n // create a view hierarchy\n ViewFactory f = rootView.getViewFactory();\n Document doc = editor.getDocument();\n Element elem = doc.getDefaultRootElement();\n setView(f.create(elem));\n }", "public void notifyChange()\r\n {\r\n setChanged();\r\n notifyObservers();\r\n }", "public void onUpdate()\n\t{\n\t\tchunk.setModelBound(new BoundingBox());\n\t\tchunk.updateModelBound();\n\n\t}", "@Override\r\n\tpublic void setModel() {\n\t\tnew UpUI(context).execute();\r\n\t}", "@Override\r\n\tpublic void updateView(List<Pays> models) {\n\t}", "public void update(){\r\n\t\tthis.loadRecords();\r\n\t}", "@Override\r\n\tpublic void operations() {\n\t\tSystem.out.println(\"update self!\"); \r\n notifyObservers(); \r\n\r\n\t}" ]
[ "0.7643678", "0.7597604", "0.7522513", "0.74483466", "0.7422965", "0.73688173", "0.7253854", "0.7253854", "0.7253854", "0.7207027", "0.7126667", "0.7005658", "0.7005658", "0.700478", "0.6995922", "0.6989081", "0.6961639", "0.6923883", "0.69226134", "0.69226134", "0.69226134", "0.69226134", "0.69226134", "0.68805635", "0.6876503", "0.6875812", "0.6875812", "0.68658805", "0.6813739", "0.6797266", "0.6797266", "0.6774584", "0.67557347", "0.67540455", "0.6743594", "0.67426366", "0.67426366", "0.67426366", "0.67426366", "0.67426366", "0.67426366", "0.67404747", "0.6729303", "0.6698571", "0.66755134", "0.66755134", "0.66755134", "0.66453284", "0.66453284", "0.66426045", "0.6631534", "0.6631534", "0.66226685", "0.6617782", "0.6559352", "0.6557236", "0.6541341", "0.6540804", "0.65321606", "0.65321606", "0.65321606", "0.65321606", "0.65321606", "0.65321606", "0.65321606", "0.65321606", "0.65321606", "0.65321606", "0.6528929", "0.65239555", "0.65072936", "0.64801127", "0.64801127", "0.64801127", "0.64801127", "0.64684886", "0.6465328", "0.6452143", "0.64126354", "0.6401507", "0.6400081", "0.6395306", "0.63942176", "0.63760334", "0.637112", "0.63601416", "0.6328808", "0.63277465", "0.6326981", "0.6305639", "0.63025945", "0.6280101", "0.6278074", "0.62777436", "0.62733686", "0.6265611", "0.6253955", "0.6240325", "0.6237126", "0.6232897", "0.62170446" ]
0.0
-1
TODO Autogenerated method stub
@Override public void alter(LTimerContext timer) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Coffee machine can produce 1 coffee at a time until the coffee is picked up.
public CoffeeMachineResponse prepareCoffee(CoffeeMachineRequest request) { Integer coffeeMachineId = request.getCoffeeMachineId(); CoffeeMachine coffeeMachine = coffeeMachineRepository.getCoffeeMachine(coffeeMachineId); if (coffeeMachine == null) { throw new CoffeeMachineNotFoundException(coffeeMachineId); } if (coffeeMachine.getCompletionTime() == null) { coffeeMachine.setCompletionTime( LocalDateTime.now().plusSeconds(request.getCoffeeType().getPreparationTime())); return buildResponse("Your " + request.getCoffeeType() + " will be ready in " + request.getCoffeeType().getPreparationTime() + " seconds.", HttpStatus.CREATED); } else { return buildResponse("This coffee machine is in use.", HttpStatus.ACCEPTED); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Coffee next() {\n\t\treturn null;\n\t}", "public void makeCoffee(){\n size();\n temp();\n type();\n }", "public void run() {\n\n\t\tSimulation.logEvent(SimulationEvent.cookStarting(this));\n\t\ttry {\n\t\t\twhile(true) {\n\t\t\t\t//YOUR CODE GOES HERE...\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * Synchronized on listofOrders\n\t\t\t\t * get the customer order\n\t\t\t\t * notifyAll the threads that is waiting for listofOrders.\n\t\t\t\t * \n\t\t\t\t * get all the orders by the customer\n\t\t\t\t * Synchronized on machine (grill,coffee,fries)\n\t\t\t\t * wait if the capacity of the machine is full\n\t\t\t\t * once the capacity is available \n\t\t\t\t * makefood()\n\t\t\t\t * notify all the threads waiting for the machine\n\t\t\t\t * \n\t\t\t\t * Synchornized on finishedfood\n\t\t\t\t * wait till the food is completed\n\t\t\t\t * notify all the cook once the food is complete\n\t\t\t\t */\n\t\t\t\t\n\n\t\t\t\t//get the customer currently up next\n\t\t\t\tsynchronized(Simulation.listOfOrders){\n\n\t\t\t\t\twhile(Simulation.listOfOrders.isEmpty()){\n\t\t\t\t\t\tSimulation.listOfOrders.wait();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcurrCustomer = checkPriorityCustomer(Simulation.listOfOrders);\n\t\t\t\t\t//Simulation.orderList.remove();\n\t\t\t\t\tSimulation.logEvent(SimulationEvent.cookReceivedOrder(this, currCustomer.getOrder(), currCustomer.getOrderNum()));\n\t\t\t\t\tSimulation.listOfOrders.notifyAll();\n\t\t\t\t}\n\t\t\t\t//sends food to specific machine\n\t\t\t\tfor(int index = 0; index < currCustomer.getOrder().size(); index++){\n\t\t\t\t\tFood currFood = currCustomer.getOrder().get(index);\n\t\t\t\t\tif(currFood.equals(FoodType.burger)){\n\t\t\t\t\t\tsynchronized(Simulation.grill.foodList){\n\t\t\t\t\t\t\twhile(!(Simulation.grill.foodList.size() < Simulation.grill.capacity)){\n\t\t\t\t\t\t\t\tSimulation.grill.foodList.wait();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSimulation.logEvent(SimulationEvent.cookStartedFood(this, FoodType.burger , currCustomer.getOrderNum()));\n\t\t\t\t\t\t\tSimulation.grill.makeFood(this, currCustomer.getOrderNum());\n\t\t\t\t\t\t\tSimulation.grill.foodList.notifyAll();\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}else if(currFood.equals(FoodType.fries)){\n\t\t\t\t\t\tsynchronized(Simulation.burner.foodList){\n\t\t\t\t\t\t\twhile(!(Simulation.burner.foodList.size() < Simulation.burner.capacity)){\n\t\t\t\t\t\t\t\tSimulation.burner.foodList.wait();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSimulation.logEvent(SimulationEvent.cookStartedFood(this, FoodType.fries , currCustomer.getOrderNum()));\n\t\t\t\t\t\t\tSimulation.burner.makeFood(this,currCustomer.getOrderNum());\n\t\t\t\t\t\t\tSimulation.burner.foodList.notifyAll();\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}else{\n\t\t\t\t\t\tsynchronized(Simulation.braun.foodList){\n\t\t\t\t\t\t\twhile(!(Simulation.braun.foodList.size() < Simulation.braun.capacity)){\n\t\t\t\t\t\t\t\tSimulation.braun.foodList.wait();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSimulation.logEvent(SimulationEvent.cookStartedFood(this, FoodType.coffee , currCustomer.getOrderNum()));\n\t\t\t\t\t\t\tSimulation.braun.makeFood(this,currCustomer.getOrderNum());\n\t\t\t\t\t\t\tSimulation.braun.foodList.notifyAll();\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\tsynchronized(completedFood){\n\t\t\t\t\twhile(!(completedFood.size() == currCustomer.getOrder().size())){\n\t\t\t\t\t\tcompletedFood.wait();\n\t\t\t\t\t\tcompletedFood.notifyAll();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSimulation.logEvent(SimulationEvent.cookCompletedOrder(this, currCustomer.getOrderNum()));\n\t\t\t\t\n\t\t\t\tsynchronized(Simulation.finishedOrder){\n\t\t\t\t\tSimulation.finishedOrder.put(currCustomer, true);\n\t\t\t\t\tSimulation.finishedOrder.notifyAll();\n\t\t\t\t}\n\t\t\t\tcompletedFood = new LinkedList<Food>();\n\t\t\t\n\t\t\t}\n\t\t}\n\t\tcatch(InterruptedException e) {\n\t\t\t// This code assumes the provided code in the Simulation class\n\t\t\t// that interrupts each cook thread when all customers are done.\n\t\t\t// You might need to change this if you change how things are\n\t\t\t// done in the Simulation class.\n\t\t\tSimulation.logEvent(SimulationEvent.cookEnding(this));\n\t\t}\n\t}", "public void createDeckWorker() {\n\t\tboolean stop = false;\n\t\twhile (this.deckWorker.size() < 5 && stop == false) {\n\t\t\tCard cardWorker = pickOnThePioche(this.worker);\n\t\t\tif (cardWorker.getName().equals(\"Stop\")) {\n\t\t\t\tthis.deckWorker.add(cardWorker);\n\t\t\t\tstop = true;\n\t\t\t} else {\n\t\t\t\tthis.deckWorker.add(cardWorker);\n\t\t\t\tthis.worker.remove(cardWorker);\n\t\t\t}\n\t\t}\n\t}", "public synchronized void produce(){\n\t\tif(num==capacity){\n\t\t\ttry {\n\t\t\t\twait();\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}\t\n\t\t}\n\t\tnum++;\n\t\tSystem.out.println(\"Produce 1, now we have \"+num+\" products\");\n\t\tnotify();\n\t}", "@Override\n public Event[] simulate() {\n // Find the first avaiable conter.\n for (Counter c : this.counter) {\n if (c.isAvailable()) {\n // The customer should go to the first\n // Avaiable counter and get served.\n return new Event[] {\n new ServiceBeginEvent(this.customer, c)\n };\n }\n }\n // If no such counter can be found, the customer should depart.\n return new Event[] {\n new DepartureEvent(this.customer, (this.customer.getArrival()))\n };\n }", "@Override\r\n\tpublic void cookChicken(int noOfChicken) {\n System.out.println(\"please place the chicken in the grill machine\");\r\n grillmachine.setState(grillmachine.getCookingState());\r\n\t}", "public int wait_cycle(){\n\t\tRandom r1=new Random();\n\t\tint r2=r1.nextInt((999)+1)+1;\n\t\treturn r2;\n\t}", "public void nextCostume() { \n costumeNumber++;\n if (costumeNumber > numberOfCostumes-1) costumeNumber=0;\n }", "public void cappuccino(){\n while(infiniteLoop){\n System.out.println(\"Hot milk or no milk\");\n System.out.println(\"Press 1 - hot milk\");\n System.out.println(\"Press 2 - no milk\");\n int x = keyboard.nextInt();\n if(x == 1){\n Coffee = Coffee + \"hot milk, \";\n break;\n }\n else if(x == 2){\n Coffee = Coffee + \"no milk, \";\n break;\n }\n System.out.println(\"Please enter valid response\");\n }\n while(infiniteLoop){\n System.out.println(\"Foam or no foam\");\n System.out.println(\"Press 1 - foam\");\n System.out.println(\"Press 2 - no foam\");\n int y = keyboard.nextInt();\n if(y == 1){\n Coffee = Coffee + \"with foam, \";\n break;\n }\n else if(y == 2){\n Coffee = Coffee + \"no foam, \";\n break;\n }\n System.out.println(\"Please enter valid response\");\n }\n }", "public void produce()\n {\n Future fut=proxy.produce(numerProd*1000+iCounter);\n //System.out.println(\"After getin Fut Prod#\"+numerProd);\n somethingElse();\n int val=fut.getVal();\n if(verbose)\n System.out.println(\"produced: \" + (numerProd*1000+iCounter) + \" and got return of : \" + val);\n iCounter=(iCounter+1)%1000;\n\n }", "private void step ()\n {\n // a car arrives approximately every four minutes\n int chance = randGen.nextInt(CarWashApplication.CHANCE_INT);\n if (chance == 0)\n {\n waitingLine.enqueue(new Car(currentTime));\n numCars++;\n\n /** For printed output of each step */\n //System.out.println(currentTime);\n //waitingLine.toPrint();\n }\n\n // process the waiting cars\n if (bay.isEmpty() && !waitingLine.isEmpty())\n {\n bay.startWash();\n Car car = (Car) waitingLine.dequeue();\n waitTimeArray[arrayIndex] = currentTime - (car.arrivalTime());\n arrayIndex++;\n }\n\n if (!bay.isEmpty())\n bay.keepWashing();\n\n currentTime++;\n }", "private BasicCoffeeMachine createCoffeeMachine() {\n\t\tMap<CoffeeSelection, CoffeeBean> beans = new HashMap<CoffeeSelection, CoffeeBean>();\n\t\tbeans.put(CoffeeSelection.ESPRESSO, new CoffeeBean(\"My favorite espresso bean\", 1000));\n\t\tbeans.put(CoffeeSelection.FILTER_COFFEE, new CoffeeBean(\"My favorite filter coffee bean\", 1000));\n\t\t\n\t\t// instantiate a new CoffeeMachine object\n\t\treturn new PremiumCoffeeMachine(beans);\n\t}", "@Override\n\tpublic void run() {\n\t\twhile(true) {//模拟某人不停取钱\n\t\t\tboolean flag = bC.withdrowMoney(1);\n\t\t\t//停止条件\n\t\t\tif(flag==false) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void play() {\n\t\tthis.initializeTurn();\n\t\twhile(this.getAction() > 0) {\n\t\t\tint choix = RandomInt.randomInt(1,6, this.rand);\n\t\t\tif(choix == 1) {\n\t\t\t\t//add building, preference of Machine\n\t\t\t\tint max = 0;\n\t\t\t\tint maxi = 0;\n\t\t\t\tboolean find = false;\n\t\t\t\tfor(int i = 0; i < this.getBoard().getFiveBuildingCards().size(); i++) {\n\t\t\t\t\tif(this.getBoard().getFiveBuildingCards().get(i) != null) {\n\t\t\t\t\t\tif(this.getBoard().getFiveBuildingCards().get(i) instanceof Machine) {\n\t\t\t\t\t\t\tmaxi = i;\n\t\t\t\t\t\t\tfind = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(this.getBoard().getFiveBuildingCards().get(i).getPoint() > max && !find) {\n\t\t\t\t\t\t\tmax = this.getBoard().getFiveBuildingCards().get(i).getPoint();\n\t\t\t\t\t\t\tmaxi = i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tthis.addBuilding(this.getBoard().getFiveBuildingCards().get(maxi));\n\t\t\t\tDesignString.printBorder(\"Ouverture d'un chantier\");\n\t\t\t}\n\t\t\telse if(choix == 2 || choix == 3) {\n\t\t\t\t//add worker, preference of the lowest one\n\t\t\t\tint min = 999;\n\t\t\t\tint mini = 0;\n\t\t\t\tfor(int i = 0; i < this.getBoard().getFiveWorkerCards().size(); i++) {\n\t\t\t\t\tif(this.getBoard().getFiveWorkerCards().get(i) != null) {\n\t\t\t\t\t\tif(this.getBoard().getFiveWorkerCards().get(i).getCost() < min && this.getBoard().getFiveWorkerCards().get(i).getCost() >= this.getCoin()) {\n\t\t\t\t\t\t\tmin = this.getBoard().getFiveWorkerCards().get(i).getCost();\n\t\t\t\t\t\t\tmini = i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(this.getBoard().getFiveWorkerCards().get(mini).getCost() >= this.getCoin()) {\n\t\t\t\t\tDesignString.printBorder(\"Échange action vers écus\");\n\t\t\t\t\tthis.actionToCoins(RandomInt.randomInt(1,this.getAction(), this.rand));\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tDesignString.printBorder(\"Recrutement d'un ouvrier\");\n\t\t\t\t\tthis.hireWorker(this.getBoard().getFiveWorkerCards().get(mini));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(choix == 4 || choix == 5 || choix == 6) {\n\t\t\t\t//worker to building. Preference to the started building. If it can't play, preference to action to coin\n\t\t\t\tIBuilding building = null;\n\t\t\t\tIWorker worker = null;\n\t\t\t\tif(this.getWorkerCards().size() > 0) {\n\t\t\t\t\tif(this.getStartedBuilding().size() > 0) {\n\t\t\t\t\t\tchoix = RandomInt.randomInt(0,2,this.rand);\n\t\t\t\t\t\tif(choix%2 == 0) {\n\t\t\t\t\t\t\tint max = 0;\n\t\t\t\t\t\t\tint maxi = 0;\n\t\t\t\t\t\t\tfor(int i = 0; i < this.getStartedBuilding().size(); i++) {\n\t\t\t\t\t\t\t\tif(this.getStartedBuilding().get(i) != null) {\n\t\t\t\t\t\t\t\t\tif(this.getStartedBuilding().get(i).getWorkerOn().size() > max) {\n\t\t\t\t\t\t\t\t\t\tmax = this.getStartedBuilding().get(i).getWorkerOn().size();\n\t\t\t\t\t\t\t\t\t\tmaxi = i;\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\tbuilding = this.getStartedBuilding().get(maxi);\n\n\t\t\t\t\t\t\tworker = this.getWorkerCards().get(RandomInt.randomInt(0,this.getWorkerCards().size()-1, this.rand));\n\n\t\t\t\t\t\t\twhile(worker != null && worker.getCost() > this.getCoin() && this.getAction() > 0) {\n\t\t\t\t\t\t\t\tworker = this.getWorkerCards().get(RandomInt.randomInt(0,this.getWorkerCards().size()-1, this.rand));\n\t\t\t\t\t\t\t\tchoix = RandomInt.randomInt(1,5,this.rand);\n\t\t\t\t\t\t\t\tif(choix == 1) {\n\t\t\t\t\t\t\t\t\tDesignString.printBorder(\"Échange action vers écus\");\n\t\t\t\t\t\t\t\t\tthis.actionToCoins(RandomInt.randomInt(1,this.getAction(), this.rand));\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\tif(this.getAction() >= this.getRemoveBuilding(building)) {\n\t\t\t\t\t\t\t\tDesignString.printBorder(\"Envoi d'un ouvrier sur un chantier\");\n\t\t\t\t\t\t\t\tthis.workerToBuilding(worker, building);\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 {\n\t\t\t\t\t\t\tbuilding = this.getBuildingsCards().get(RandomInt.randomInt(0,this.getBuildingsCards().size()-1, this.rand));\n\t\t\t\t\t\t\twhile(building == null) {\n\t\t\t\t\t\t\t\tbuilding = this.getBuildingsCards().get(RandomInt.randomInt(0,this.getBuildingsCards().size()-1, this.rand));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tworker = this.getWorkerCards().get(RandomInt.randomInt(0,this.getWorkerCards().size()-1, this.rand));\n\t\t\t\t\t\t\twhile(worker != null && worker.getCost() > this.getCoin() && this.getAction() > 0) {\n\t\t\t\t\t\t\t\tworker = this.getWorkerCards().get(RandomInt.randomInt(0,this.getWorkerCards().size()-1, this.rand));\n\t\t\t\t\t\t\t\tchoix = RandomInt.randomInt(1,5,this.rand);\n\t\t\t\t\t\t\t\tif(choix == 1) {\n\t\t\t\t\t\t\t\t\tDesignString.printBorder(\"Échange action vers écus\");\n\t\t\t\t\t\t\t\t\tthis.actionToCoins(RandomInt.randomInt(1,this.getAction(), this.rand));\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\tif(this.getAction() >= this.getRemoveBuilding(building)) {\n\t\t\t\t\t\t\t\tDesignString.printBorder(\"Envoi d'un ouvrier sur un chantier\");\n\t\t\t\t\t\t\t\tthis.workerToBuilding(worker, building);\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} else if(this.getBuildingsCards().size() > 0) {\n\t\t\t\t\t\tbuilding = this.getBuildingsCards().get(RandomInt.randomInt(0,this.getBuildingsCards().size()-1, this.rand));\n\t\t\t\t\t\twhile(building == null) {\n\t\t\t\t\t\t\tbuilding = this.getBuildingsCards().get(RandomInt.randomInt(0,this.getBuildingsCards().size()-1, this.rand));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tworker = this.getWorkerCards().get(RandomInt.randomInt(0,this.getWorkerCards().size()-1, this.rand));\n\t\t\t\t\t\twhile(worker != null && worker.getCost() > this.getCoin() && this.getAction() > 0) {\n\t\t\t\t\t\t\tworker = this.getWorkerCards().get(RandomInt.randomInt(0,this.getWorkerCards().size()-1, this.rand));\n\t\t\t\t\t\t\tchoix = RandomInt.randomInt(1,5,this.rand);\n\t\t\t\t\t\t\tif(choix == 1) {\n\t\t\t\t\t\t\t\tDesignString.printBorder(\"Échange action vers écus\");\n\t\t\t\t\t\t\t\tthis.actionToCoins(RandomInt.randomInt(1,this.getAction(), this.rand));\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\tif(this.getAction() >= this.getRemoveBuilding(building)) {\n\t\t\t\t\t\t\tDesignString.printBorder(\"Envoi d'un ouvrier sur un chantier\");\n\t\t\t\t\t\t\tthis.workerToBuilding(worker, building);\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}", "@Test\r\n\tpublic void MakeBeverageTest() throws InsuficientException, InterruptedException\r\n\t{\n\t\tmachine.MakeBeverage(\"Tea\", machine.GetOutlet(1));\r\n\t\tmachine.MakeBeverage(\"Tea\", machine.GetOutlet(0));\r\n\t\tSystem.out.println(\"Servered Successfully !!\");\r\n\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tcounter.accumulate(1);\n\t\t\t\t}", "public void bake() {\n\t\twhile(true) {\n\t\t\tSystem.out.print(\"attempting to bake 1 souffle...\");\n\t\t\tif(Math.random() < 0.5) {\n\t\t\t\tSystem.out.println(\"success!\");\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"but it didn't rise\");\n\t\t\t\tprepare();\n\t\t\t}\n\t\t}\n\t}", "@Override\n public WorkflowStep next() {\n this.boardChangeDetected = 0;\n this.missingFutures = 0;\n this.missingTetromino = 0;\n startCalculator(false);\n return DETECT_ANOMALIES;\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpc.cusumoer();\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpc.cusumoer();\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "public CoffeeMachineResponse getCoffee(int id) {\n CoffeeMachine coffeeMachine = coffeeMachineRepository.getCoffeeMachine(id);\n\n if (coffeeMachine == null) {\n throw new CoffeeMachineNotFoundException(id);\n }\n\n if (coffeeMachine.getCompletionTime() == null) {\n return buildResponse(\"This machine is ready to use.\", HttpStatus.OK);\n } else {\n int ccaReadyTime = coffeeMachine.getCompletionTime().getSecond() - LocalDateTime.now().getSecond();\n if (ccaReadyTime > 0) {\n return buildResponse(\"Your coffee will be ready in \" + ccaReadyTime + \" seconds.\", HttpStatus.OK);\n } else {\n coffeeMachine.setCompletionTime(null);\n return buildResponse(\"Your coffee is ready. You can pick it up.\", HttpStatus.OK);\n }\n }\n }", "Shopper checkoutNext() {\n Shopper shopper = waitingShoppers.poll();\n if (shopper != null) {\n Receipt receipt = new Receipt();\n Cart cart = shopper.getCart();\n if (cart != null) {\n List<Item> validItems = cart.getItems().stream().filter(i -> i.getQuantity() > 0).collect(Collectors.toList());\n // we processed all the cart items, zero it out\n cart.clear();\n receipt.addItems(validItems);\n shopper.setReceipt(receipt);\n }\n }\n return shopper;\n }", "public int actions()\n {\n switch (mState) \n {\n case cProcessInit:\n out();\n if (cSimTimeMicro < cClientCount/cClientTransPerMicro) {\n cSimTimeMicro = cClientCount/cClientTransPerMicro;\n System.out.println(\"\\nSimulation time is too short! It has been reset to \" + cSimTimeMicro + \" micro\\n\");\n }\n cMaxRequestsToSend = (int) (cClientTransPerMicro * cSimTimeMicro);\n System.out.println(\"cMaxRequestsToSend = \" + cMaxRequestsToSend);\n \n if (cTransLogMon)\n {\n System.out.println(cTransMonHeader);\n System.out.println(\"----------------------------------------------------------------------------------------\");\n }\n\n// if (cTick)\n// {\n// activate(new Tick());\n// }\n activate(mTaxJvm);\n return cMeJvm;\n \n case cMeJvm:\n activate(mMeJvm);\n return cMeStandbyJvm;\n\n case cMeStandbyJvm:\n activate(mMeStandbyJvm);\n return cJvmActivated;\n\n case cJvmActivated:\n mClientList = headToArray(mClient.mProcess, new Process[0]);\n \n //double tInterval = 500/tClientList.length; //500 is the minimum response time\n //double tInterval = 1.0/(cClientCount*cClientTransPerMicro); \n \n double tInterval = 1.0D*1000*1000/(cClientCount); //evenly distributed client over 1 second interval\n \n //hold until connect next client to the system \n mHoldTimeBetweenClients = cRandom.normal(tInterval, tInterval*0.3);\n mFor_i = -1;\n // Flow into loop\n\n case cForNext:\n ++mFor_i;\n //for (int i = 0; i < tClientList.length; ++i) //For every client\n if (mFor_i >= mClientList.length)\n {\n return cForEnd;\n }\n\n tClientStartTime = time();\n activate((Process) mClientList[mFor_i]); \n return cNewClient;\n \n case cNewClient:\n hold(mHoldTimeBetweenClients);\n return cForNext;\n\n case cForEnd:\n //hold(cRunTimeMicro);\n //return cHoldRunTimeMicro;\n\n case cHoldRunTimeMicro:\n cActualRunTimeMicro = cSimTimeMicro * 2;\n hold(cActualRunTimeMicro);\n return cHoldRunTime;\n \n case cHoldRunTime:\n if (cTick)\n {\n System.out.println(\"\\nSimulation time = \" + time()/(1000.0*1000.0) + \" sec.\");\n System.out.println(\"Requests = \" + cRequests);\n System.out.println(\"cRequestsToSend = \" + cMaxRequestsToSend);\n System.out.println(\"Av.tax time = \" + cTaxSum/cRequests);\n System.out.println(\"Av.client time = \" + cClientSum/cRequests);\n System.out.println(\"\\nExecution time: \" + ((System.currentTimeMillis() - cStartTime)/1000.0) + \" secs.\"); \n }\n return cProcessDone;\n }\n return cProcessError;\n }", "public void run() {\n while (true) {\n Producto[] ps;\n int n;\n n = random.nextInt(maxProd) + 1;\n ps = Fabrica.producir(n);\n ConcIO.printfnl(\"inicio almacenamiento de \" + n + \" productos...\");\n multiAlmacenCompartido.almacenar(ps);\n ConcIO.printfnl(\"fin almacenamiento de \" + n + \" productos...\");\n }\n }", "public String start() {\r\n\t\tint toss;\r\n\t\tint successes = 0;\r\n\t\tRandom rand = new Random();\r\n\t \t\r\n\t \t/* play game */\r\n\t \tfor (int i = 0; i < 3; i++) {\t//player gets three tries\r\n\t \t\ttoss = rand.nextInt(2);\r\n\t \t\tif (toss == 1) {\r\n\t \t\t\tsuccesses += 1;\t\t\t//a successful toss is equal to 1\r\n\t \t\t}\r\n\t \t}\r\n\t \t\r\n\t \t/* award prize */\r\n\t \tif (successes == 3) {\r\n numPrize1++;\r\n\t \t\treturn(firstPrize);\r\n\t \t} else {\r\n numPrizeC++;\r\n\t \t\treturn(consolationPrize);\r\n\t \t}\r\n\t}", "public void mocha(){\n while(infiniteLoop){\n System.out.println(\"White or dark chocolate\");\n System.out.println(\"Press 1 - white chocolate\");\n System.out.println(\"Press 2 - dark chocolate\");\n int y = keyboard.nextInt();\n if(y == 1){\n Coffee = Coffee + \"white chocolate, \";\n break;\n }\n else if(y == 2){\n Coffee = Coffee + \"dark chocolate, \";\n break;\n }\n System.out.println(\"Please enter valid response\");\n }\n while(infiniteLoop){\n System.out.println(\"Hot milk or no milk\");\n System.out.println(\"Press 1 - hot milk\");\n System.out.println(\"Press 2 - no milk\");\n int x = keyboard.nextInt();\n if(x == 1){\n Coffee = Coffee + \"with hot milk, \";\n break;\n }\n else if(x == 2){\n Coffee = Coffee + \"no milk, \";\n break;\n }\n System.out.println(\"Please enter valid response\");\n }\n }", "public synchronized void consume(){\n\t\tif(num==0){\n\t\t\ttry {\n\t\t\t\twait();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tnum--;\n\t\tSystem.out.println(\"Consume 1, now we left \"+num+\" products\");\n\t\tnotify();\n\t}", "public void temp(){\n while(infiniteLoop){\n System.out.println(\"Choose the temperature of beverage\");\n System.out.println(\"Press 1 - Extra cold (iced)\");\n System.out.println(\"Press 2 - Cool\");\n System.out.println(\"Press 3 - Hot\");\n System.out.println(\"Press 4 - Extra Hot\");\n int x = keyboard.nextInt();\n if(x == 1){\n Coffee = Coffee + \"extra cold (iced), \";\n break;\n }\n else if(x == 2){\n Coffee = Coffee + \"cool, \";\n break;\n }\n else if(x == 3){\n Coffee = Coffee + \"hot, \";\n break;\n }\n else if(x == 4){\n Coffee = Coffee + \"extra hot, \";\n break;\n }\n System.out.println(\"Please choose a proper answer\");\n }\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpc.product();\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpc.product();\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "public void next( long time );", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\twhile(true) {\n\t\t\t\t\t\tProduct p = new Product(id, \"product\"+id++);\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\tc.addProduct(p);\n\t\t\t\t\t\t\tSystem.out.println(\"成产好了一个产品\");\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "public static void main(String[] args) {\n\n PC pc = new PC();\n\n Thread t1 = new Thread(new Runnable() {\n @Override\n public void run() {\n int i = 0;\n\n while (i < 10) {\n try {\n pc.produce(i);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n ++i;\n }\n }\n });\n\n // Create consumer thread\n Thread t2 = new Thread(new Runnable() {\n @Override\n public void run() {\n int j = 0;\n while (j < 10) {\n try {\n pc.consume();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n ++j;\n }\n }\n });\n\n t1.start();\n\n t2.start();\n }", "@Override\n\tpublic void run() {\n\t\twhile(true) {\n\t\tsale();\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n PetriNet inst = new CoffeeMachinePetri();\r\n Scanner scanner = new Scanner(System.in);\r\n int input ;\r\n input = scanner.nextInt();\r\n while(input!=0)\r\n {\r\n System.out.println(\"Introduceti optiunea: \");\r\n input = scanner.nextInt();\r\n inst.exec(input);\r\n \r\n System.out.println(inst.getStareCurenta());\r\n\t\t}\r\n inst.exec(0);\r\n }", "public void generateComputerChoice() {\n\t\tgetRandomNumber();\n\t\tsetComputerChoice();\n\t}", "public void run() {\n\n\t\tSimulation.logEvent(SimulationEvent.customerStarting(this));\n\t\ttry {\n\t\t\t/*\n\t\t\t * Customer attempts to enter the coffee shop here The Semaphore\n\t\t\t * blocks them when it reaches 0.\n\t\t\t */\n\t\t\ttableSpace.acquire();\n\t\t\t/*i do not use reentrantlocks between classes anymore because i need \n\t\t\t * some way for unique synchronization. \n\t\t\t * */\n\t\t\t\n\t\t\t\n\t\t\t/* The simulation logs the event once they have entered in */\n\t\t\tSimulation\n\t\t\t\t\t.logEvent(SimulationEvent.customerEnteredCoffeeShop(this));\n\t\t\t\n\t\t\t\n\t\t\tsynchronized (orders) {\n\t\t\t\torders.add(new FoodOrder(this.orderNum, this.order, this));\n\t\t\t\tSimulation.logEvent(SimulationEvent.customerPlacedOrder(this,\n\t\t\t\t\t\tthis.order, this.orderNum));\n\t\t\t\torders.notifyAll();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t/*This customer is notified that cook has completed the \n\t\t\t * order. It breaks out when the cook has finally placed \n\t\t\t * This notification is unique however.\n\t\t\t * */\n\t\t\twhile(Simulation.custMap.get(this) == false){\n\t\t\t\tThread.sleep(15);\n\t\t\t}\n\t\t\t\t\n\t\t\tSimulation.logEvent(SimulationEvent.customerReceivedOrder(this,\n\t\t\t\t\tthis.order, this.orderNum));\n\t\t\t\n\t\t\tSimulation\n\t\t\t\t\t.logEvent(SimulationEvent.customerLeavingCoffeeShop(this));\n\t\t\ttableSpace.release();\n\n\t\t} catch (InterruptedException e) {\n\n\t\t}\n\t}", "public Order generateNext();", "@Override\n public void next(MessageProcessor choice) {\n \n }", "@Override\n public void run() {\n if (random.nextInt(10) == 0)\n addPowerUp(random.nextInt(256));\n }", "@Override\r\n\tpublic void doTimeStep() {\n\t\tthis.run(Critter.getRandomInt(8));\r\n\t}", "protected boolean pickAndExecuteAnAction() {\n\t//print(\"in waiter scheduler\");\n\t//Starts the break cycle if onBreak == true\n\tif(onBreak && working ) {\n\t initiateBreak();\n\t return true;\n\t}\n\n\t//Once all the customers have been served\n\t//then the waiter can actually go on break\n\tif(!working && customers.isEmpty() && !startedBreak) {\n\t goOnBreak();\n\t return true;\n\t}\n\n\tif(!onBreak && !working){\n\t endBreak();\n\t}\n\n\t\n\t//Runs through the customers for each rule, so \n\t//the waiter doesn't serve only one customer at a time\n\tif(!customers.isEmpty()){\n\t //System.out.println(\"in scheduler, customers not empty:\");\n\t //Gives food to customer if the order is ready\n\t for(MyCustomer c:customers){\n\t\tif(c.state == CustomerState.ORDER_READY) {\n\t\t giveFoodToCustomer(c);\n\t\t return true;\n\t\t}\n\t }\n\t //Clears the table if the customer has left\n\t for(MyCustomer c:customers){\n\t\tif(c.state == CustomerState.IS_DONE) {\n\t\t clearTable(c);\n\t\t return true;\n\t\t}\n\t }\n\n\t //Seats the customer if they need it\n\t for(MyCustomer c:customers){\n\t\tif(c.state == CustomerState.NEED_SEATED){\n\t\t seatCustomer(c);\n\t\t return true;\n\t\t}\n\t }\n\n\t //Gives all pending orders to the cook\n\t for(MyCustomer c:customers){\n\t\tif(c.state == CustomerState.ORDER_PENDING){\n\t\t giveOrderToCook(c);\n\t\t return true;\n\t\t}\n\t }\n\n\t //Takes new orders for customers that are ready\n\t for(MyCustomer c:customers){\n\t\t//print(\"testing for ready to order\"+c.state);\n\t\tif(c.state == CustomerState.READY_TO_ORDER) {\n\t\t takeOrder(c);\n\t\t return true;\n\t\t}\n\t }\t \n\t}\n\tif (!currentPosition.equals(originalPosition)) {\n\t moveToOriginalPosition();\n\t return true;\n\t}\n\n\t//we have tried all our rules and found nothing to do. \n\t// So return false to main loop of abstract agent and wait.\n\t//print(\"in scheduler, no rules matched:\");\n\treturn false;\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ta1.deposit(1000);\n\t\t\t}", "@Override\n\tpublic Integer call() {\n\t\tint count = ThreadLocalRandom.current().nextInt(1, 11);\n\n\t\tfor (int i = 1; i <= count; i++) {\n\t\t\tSystem.out.println(\"Running...\" + i);\n\t\t}\n\n\t\treturn count;\n\t}", "public void fillMachine() throws InvalidValueException{\n TypeConverter converter = new TypeConverter();\n // TODO: 19-Oct-16 make factory\n if (this.coffeeMachine.getIngredientSet().isEmpty()) {\n initIngredientSet();\n }\n int chosenFiller = converter.getInt(\"Input number\");\n switch (chosenFiller){\n case 1:\n fillCoffee();\n break;\n case 2:\n fillSugar();\n break;\n case 3:\n fillMilk();\n break;\n case 4:\n fillCoffee();\n fillSugar();\n fillMilk();\n }\n\n System.out.println(\"CoffeeMachine was refilled.\");\n }", "public void type(){\n while(infiniteLoop){\n System.out.println(\"What type of Coffee do you want?\");\n System.out.println(\"Press 1 - expresso\");\n System.out.println(\"Press 2 - latte\");\n System.out.println(\"Press 3 - cappuccino\");\n System.out.println(\"Press 4 - mocha\");\n int x = keyboard.nextInt();\n /*\n * saves user choice to instant variable Coffee\n * and continues to ask if choice is invalid\n */\n if(x == 1){\n expresso();\n Coffee = Coffee + \"expresso.\";\n break;\n }\n else if(x == 2){\n latte();\n Coffee = Coffee + \"latte.\";\n break;\n }\n else if(x == 3){\n cappuccino();\n Coffee = Coffee + \"cappuccino.\";\n break;\n }\n else if(x == 4){\n mocha();\n Coffee = Coffee + \"mocha.\";\n break;\n }\n System.out.println(\"Please enter valid response\");\n }\n }", "public void createDeckBuilding() {\n\t\tboolean stop = false;\n\t\twhile (this.deckBuilding.size() < 5 && stop == false) {\n\t\t\tCard cardBuilding;\n\t\t\tint number = random.nextInt(this.building.size() + this.machine.size());\n\t\t\tif (number < this.building.size()) {\n\t\t\t\tcardBuilding = pickOnThePioche(this.building);\n\t\t\t\tif (cardBuilding.getName().equals(\"Stop\")) {\n\t\t\t\t\tthis.deckBuilding.add((IBuilding) cardBuilding);\n\t\t\t\t\tstop = true;\n\t\t\t\t} else {\n\t\t\t\t\tthis.building.remove(cardBuilding);\n\t\t\t\t\tthis.deckBuilding.add((IBuilding) cardBuilding);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcardBuilding = pickOnThePioche(this.machine);\n\t\t\t\tif (cardBuilding.getName().equals(\"Stop\")) {\n\t\t\t\t\tthis.deckBuilding.add((IBuilding) cardBuilding);\n\t\t\t\t\tstop = true;\n\t\t\t\t} else {\n\t\t\t\t\tthis.building.remove(cardBuilding);\n\t\t\t\t\tthis.deckBuilding.add((IBuilding) cardBuilding);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "Loop createLoop();", "public E pollFirst();", "public void crunch(){\n cpuBurstTime--;\n rem--;\n }", "private Mono<Employee> takeCall(Employee employee) {\n val seconds = RandomHelper.nextInt(from, to);\n return Mono.fromCallable(() -> sleepAndReturnEmployee(employee, seconds))\n .doOnSubscribe(s -> log.info(\"Employee {} will be attending a call for {} seconds\", employee, seconds))\n .doOnError(e -> log.error(\"There was an error doing blocking activity we will return employee to the queue {}\", employee))\n .onErrorReturn(employee);\n }", "public static void main(String[] args) {\n System.out.println(\"Welcome to kodluyoruz shop\");\n System.out.println(\"What's your name?\");\n\n Scanner scanner = new Scanner(System.in);\n\n String customer = scanner.nextLine();\n System.out.println(\"Hi \" + customer + \". Please choose one of the following options:\");\n System.out.println(\"\");\n\n Cart cart = new Cart();\n\n while(true) {\n\n System.out.println(\"Enter 1 to buy a product\");\n System.out.println(\"Enter 0 to chechout and proceed with the payment\");\n String input=scanner.nextLine();\n if(input.equals(\"1\")) {\n\n askCustomer(cart);\n }else {\n System.out.println(cart.toString());\n return;\n\n }\n }\n\n //Implement the user interface here\n // Ask the user to choose 0 (buy product) or\n // 1 (checkout), depending on what they want to do.\n // Use the method askCustomer\n }", "@Override\n\tprotected boolean until() {\n\t\treturn true;\n\t}", "@Override\n\tpublic void doTimeStep() {\n\t\tif (getEnergy() > Params.MIN_REPRODUCE_ENERGY) {\n\t\t\tCritter1 child = new Critter1();\n\t\t\treproduce(child, Critter.getRandomInt(8));\n\t\t}\n\t\telse{\n\t\t\twalk(Critter.getRandomInt(8));\n\t\t}\n\t}", "public int nextAction() {\n double w = random.nextDouble();\n for (int i = 0; i < nMoves; i++) {\n if (w < probabilities[i]) {\n lastMove = i;\n break;\n }\n w -= probabilities[i];\n }\n nIters++;\n\n if (N_SELECTED_ACTIONS > 1) {\n lastNMoves.add(lastMove);\n if (lastNMoves.size() > N_SELECTED_ACTIONS)\n lastNMoves.poll();\n }\n\n if (LOGGING && nIters % 1000 == 0) {\n for (int i = 0; i < nMoves; i++)\n logWriter.printf(\"%.8f;\", probabilities[i]);\n logWriter.println();\n logWriter.flush();\n }\n\n return lastMove;\n }", "public synchronized void generate () {\n\t\tgenerate( () -> {\n\t\t});\n\t}", "public void doTimeStep() {\r\n\t\twalk(getRandomInt(8));\r\n\t\tif (getEnergy() < 6 * Params.min_reproduce_energy && getEnergy() > Params.min_reproduce_energy) {\r\n\t\t\tCritter1 child = new Critter1();\r\n\t\t\treproduce(child, getRandomInt(8));\r\n\t\t\tnumberSpawned += 1;\r\n\t\t}else if(getEnergy() < Params.min_reproduce_energy) {\r\n\t\t\treturn;\r\n\t\t}else {\r\n\t\t\tCritter1 child1 = new Critter1();\r\n\t\t\treproduce(child1, getRandomInt(8));\r\n\t\t\tCritter1 child2 = new Critter1();\r\n\t\t\treproduce(child2, getRandomInt(8));\r\n\t\t\tnumberSpawned += 2;\r\n\t\t}\t\r\n\t}", "public void nextTurn() {\n do {\n colonySimulator.nextTurn(curTurn);\n curTurn++;\n try {\n Thread.sleep(200);\n } catch (InterruptedException ex) {\n Thread.currentThread().interrupt();\n }\n } while (!stepping && queenAlive);\n }", "public void step()\n\t{\n\t\t// Reservoir sampling by generating ordered list of numbers\n\t\t// randomly pick a number within length and use that as index\n\t\tRandom rand = new Random();\n\t\tArrayList<Integer> numbers = new ArrayList<Integer>();\n\t\tfor(int i = 0; i < listOfCells.size(); i++) { numbers.add(i); }\n\t\t\n\t\t// Randomly sample from reservoir until empty\n\t\twhile(numbers.size() > 0)\n\t\t{\n\t\t\tint picked_index = rand.nextInt(numbers.size());\n\t\t\tint picked_val = numbers.get(picked_index);\n\t\t\t\n\t\t\t//TODO: Maybe call a function on cell of random action that might occur\n\t\t\t//\tConsider only returning object when necessary, (how it is now)\n\t\t\tPlantCell newObject = listOfCells.get(picked_val).doAction();\n\t\t\tif(newObject != null)\n\t\t\t{\n//\t\t\t\tSystem.out.println(\"New cell generated!\");\n\t\t\t\tlistOfCells.add(newObject);\n\t\t\t}\n\t\t\t\n\t\t\t//Kill spawning cell if its health drops <= 0\n\t\t\t//should die right away to make room for other cell\n\t\t\tif(listOfCells.get(picked_val).getHealth() <= 0)\n\t\t\t{\n\t\t\t\tenvironmentPointer.map[listOfCells.get(picked_val).getX()][listOfCells.get(picked_val).getY()] = null;\n\t\t\t\tlistOfCells.set(picked_val, null); //Set to null as to preserve list integrity for reservoir sampling, will be removed later\n\t\t\t}\n\t\t\t\n\t\t\tnumbers.remove(picked_index);\n\t\t}\n\t\t\n\t\t// All recently dead cells are now null in our cell list, so we are removing them from the list now\n\t\tfor(int i = 0; i < listOfCells.size(); i++)\n\t\t{\n\t\t\tif(listOfCells.get(i) == null)\n\t\t\t{\n\t\t\t\tlistOfCells.remove(i);\n\t\t\t\ti--; //Adjust for changing size\n\t\t\t}\n\t\t}\n\t}", "public void action() {\n store.readNextArrival();\n Employee employee = (Employee)this.getActor();\n checkout = store.firstUnmannedCheckout();\n checkout.setCashier(employee);\n checkout.setOpen(true);\n int quittingTime = employee.getQuittingTime();\n Event event = new ShiftCompletedEvent(quittingTime, employee, checkout);\n store.getEventList().addEvent(event);\n \n System.out.printf(\"Time %d: Cashier %d arrives (Speed %d, quitting time %d, checkout %d)\\n\",\n time,\n employee.getId(),\n employee.getSpeed(),\n employee.getQuittingTime(),\n checkout.getIndex());\n }", "public Pokemon start() {\n System.out.println(\"\\n\" + this.pokemonOne.getName() + \" affronte \" + this.pokemonTwo.getName() + \" dans un combat qui s'annonce extraordinaire\\n\");\n\n this.pokemonOne.speakFightShout();\n this.pokemonTwo.speakFightShout();\n\n while (true) {\n if (this.PokemonOneIsAlive()) {\n this.pokemonOne.giveDamage(pokemonTwo);\n } else {\n this.pokemonOne.speakDefeatShout();\n this.pokemonTwo.speakVictoryShout();\n return this.pokemonOne;\n }\n if (this.PokemonTwoIsAlive()) {\n this.pokemonTwo.giveDamage(pokemonOne);\n } else {\n this.pokemonTwo.speakDefeatShout();\n this.pokemonOne.speakVictoryShout();\n return this.pokemonTwo;\n }\n }\n }", "public void run() {\n\t\t//YOUR CODE GOES HERE...\n\t\t//****Before entering coffeeshoop\n Simulation.logEvent(SimulationEvent.customerStarting(this));\n\t\ttry {\n\t\t\tSimulation.customersEntered.put(this);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"Customer thread interrupted while waiting for free table\");\n\t\t}\n\t\t//*****After entering the coffee shop\n Simulation.logEvent(SimulationEvent.customerEnteredCoffeeShop(this));\n //Place the Order\n Simulation.logEvent(SimulationEvent.customerPlacedOrder(this, this.order, this.orderNum));\n\n try {\n\t\t\tSimulation.customerOrderQueue.put(this);\n\t\t} catch (InterruptedException e1) {\n\t\t\tSystem.out.println(\"Customer thread interrupted while placing the order\");\n\t\t}\n //******After placing order\n\n //Check whether order is complete.\n// try{\n// this.orderReadylatch.await();\n// //****After receiving order\n// Simulation.logEvent(SimulationEvent.customerReceivedOrder(this, this.order, this.orderNum));\n// }catch (InterruptedException e) {\n//\t\t\tSystem.out.println(\"Customer thread interrupted while waiting for order completion\");\n//\t\t}\n synchronized(Simulation.completedOrder){\n\t\t\tSimulation.completedOrder.put(this, false);\n\t\t}\n\t\t\n\t\tsynchronized(Simulation.completedOrder){\n\t\t\twhile(!(Simulation.completedOrder.get(this))){\n\t\t\t\ttry {\n\t\t\t\t\tSimulation.completedOrder.wait();\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\tSimulation.logEvent(SimulationEvent.customerReceivedOrder(this, this.order, this.orderNum));\n\t\t Simulation.completedOrder.notifyAll();\n\t\t}\n \n\n\t\t//*****Just before about to leave the coffeshop.\n\t\tSimulation.logEvent(SimulationEvent.customerLeavingCoffeeShop(this));\n Simulation.customersEntered.remove(this);\n\n\t\t\n\t}", "void cook(Food food) {\n //cook in pressure cooker\n }", "public void populate1()\r\n\t{\r\n\t\tRandom gen=new Random();\r\n\t\tint add=(gen.nextInt(8)+5);\r\n\t\twhile (add>0)\r\n\t\t{\r\n\t\t\t/**If the max capacity is reach, will break out to prevent further car instantiation*/\r\n\t\t\tif (carNum==LIMIT)\r\n\t\t\t{\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tboolean straight;\r\n\t\t\tint straightNum=gen.nextInt(2);\r\n\t\t\tif (straightNum==0)\r\n\t\t\t\tstraight=true;\r\n\t\t\telse\r\n\t\t\t\tstraight=false;\r\n\t\t\tint directionNumber=gen.nextInt(4);\r\n\t\t\tDirection direction=null;\r\n\t\t\tStreet street=null;\r\n\t\t\tswitch (directionNumber)\r\n\t\t\t{\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tdirection=Direction.N;\r\n\t\t\t\t\tstreet=Street.CHURCH;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tdirection=Direction.S;\r\n\t\t\t\t\tstreet=Street.CHURCH;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tdirection=Direction.E;\r\n\t\t\t\t\tstreet=Street.MAIN;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tdirection=Direction.W;\r\n\t\t\t\t\tstreet=Street.MAIN;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tSystem.out.println(\"There was an error with your direction. Please look into this problem.\");\r\n\t\t\t}\r\n\t\t\tVehicle car=new Vehicle(carNum, time, direction, street, straight);\r\n\t\t\tcarNum++;\r\n\t\t\tif (car.getStraight())\r\n\t\t\t{\r\n\t\t\t\tswitch (car.getDirection())\r\n\t\t\t\t{\r\n\t\t\t\t\tcase N:\r\n\t\t\t\t\t\t//System.out.println(\"I was put in North straight\");\r\n\t\t\t\t\t\t//System.out.println(car);\r\n\t\t\t\t\t\tChurchNorthStraight.enqueue(car);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase S:\r\n\t\t\t\t\t\t//System.out.println(\"I was put in South straight\");\r\n\t\t\t\t\t\t//System.out.println(car);\r\n\t\t\t\t\t\tChurchSouthStraight.enqueue(car);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase W:\r\n\t\t\t\t\t\t//System.out.println(\"I was put in West straight\");\r\n\t\t\t\t\t\t//System.out.println(car);\r\n\t\t\t\t\t\tMainWestStraight.enqueue(car);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase E:\r\n\t\t\t\t\t\t//System.out.println(\"I was put in East straight\");\r\n\t\t\t\t\t\t//System.out.println(car);\r\n\t\t\t\t\t\tMainEastStraight.enqueue(car);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tSystem.out.println(\"There wan an error enquing cars in the pre propulate method. You should look into this.\");\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\tswitch (car.getDirection())\r\n\t\t\t\t{\r\n\t\t\t\t\tcase N:\r\n\t\t\t\t\t\t//System.out.println(\"I was put in North Right\");\r\n\t\t\t\t\t\t//System.out.println(car);\r\n\t\t\t\t\t\tChurchNorthRight.enqueue(car);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase S:\r\n\t\t\t\t\t\t//System.out.println(\"I was put in South Right\");\r\n\t\t\t\t\t\t//System.out.println(car);\r\n\t\t\t\t\t\tChurchSouthRight.enqueue(car);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase W:\r\n\t\t\t\t\t\t//System.out.println(\"I was put in West Right\");\r\n\t\t\t\t\t\t//System.out.println(car);\r\n\t\t\t\t\t\tMainWestRight.enqueue(car);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase E:\r\n\t\t\t\t\t\t//System.out.println(\"I was put in East Right\");\r\n\t\t\t\t\t\t//System.out.println(car);\r\n\t\t\t\t\t\tMainEastRight.enqueue(car);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tSystem.out.println(\"There wan an error enquing cars in the pre propulate method. You should look into this.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tadd--;\t\r\n\t\t}\t\r\n\t}", "private static int runSimulation(int n, char[] sequence) {\n int[] customerStates = new int[26];\n // Number of customers who won't get a computer\n int customerCount = 0;\n // Track of occupied computers\n int occupiedComputerCount = 0;\n // Loop through the sequence\n for (char c : sequence) {\n // Index of the current character\n int index = c - 'A';\n // If the customer is first time in the cafe\n if (customerStates[index] == 0) {\n // Change its state\n customerStates[index] = 1;\n // If the computer can be occupied\n if (occupiedComputerCount < n) {\n // Give the computer to the customer\n customerStates[index] = 2;\n occupiedComputerCount++;\n } else {\n // Since the computer can't be assigned\n customerCount++;\n }\n }\n // If the customer is already in the cafe\n else {\n if (customerStates[index] == 2) {\n occupiedComputerCount--;\n }\n customerStates[index] = 0;\n }\n }\n return customerCount;\n }", "protected int pickUp(int amt) {\n delayElevator();\n return load.addAndGet(amt);\n }", "public short selector()\n\t{\n\t\tboolean cont = true;\n\t\tshort select = -1;\n\t\t\n\t\twhile(cont)\n\t\t{\n\t\t\tswitch(select)\n\t\t\t{\n\t\t\t\tcase -1:\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"\\nWhich subject would you like to run?\");\n\t\t\t\t\tSystem.out.println(\"1 - Create Some Fish! FISHIES!!!\");\n\t\t\t\t\tSystem.out.println(\"2 - More on Classes\");\n\t\t\t\t\tSystem.out.println(\"0 - Chose Another Chapter\");\n\t\t\t\t\tselect = in.nextShort();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 0:\n\t\t\t\t{\n\t\t\t\t\tcont = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 1:\n\t\t\t\t{\n\t\t\t\t\tmakeFishies();\n\t\t\t\t\tselect = -1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 2:\n\t\t\t\t{\n\t\t\t\t\tclasses();\n\t\t\t\t\tselect = -1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tdefault:\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"\\nIncorrect input!\");\n\t\t\t\t\tselect = -1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn -1;\n\t}", "@Override\r\n\r\n\tpublic E pollFirst() {\n\t\treturn poll();\r\n\t}", "public void next(){\n\t\tif(generated)\n\t\t\tcurr++;\n\t}", "public void run() {\n\n\t\tSystem.out.println(\"Player 1, press 1 to buzz with answer\");\n\t\tif(twoPlayer)\n\t\t\tSystem.out.println(\"Player 2, press 2 to buzz with answer\");\n\t\tSystem.out.println(\"Press 0 to give up!\");\n\n\t\tkeyPress = -1;\n\n\t\twhile (keyPress == -1) {\n\n\t\t\tkeyPress = io.getNumber();\n\n\t\t\tif(keyPress == 1) {\n\t\t\t\tSystem.out.println(\"Player 1 Buzzed First!\");\n\t\t\t\tthis.doNotify();\n\t\t\t} else if(keyPress == 2 && twoPlayer) {\n\t\t\t\tSystem.out.println(\"Player 2 Buzzed First!\");\n\t\t\t\tthis.doNotify();\n\t\t\t} else if(keyPress == 0){\n\t\t\t\tSystem.out.println(\"You have given up!\");\n\t\t\t\tthis.doNotify();\n\t\t\t} else {\n\t\t\t\tkeyPress = -1;\n\t\t\t}\n\t\t}\t\n\n\t}", "@Override\n public void run() {\n while (testing) {\n // Add it.\n Node<T> n = c.offer(me);\n if (n != null) {\n log.log(\"Added \" + me + \": \" + c.toString());\n pause();\n // Remove it.\n c.remove(n, me);\n log.log(\"Removed \" + me + \": \" + c.toString());\n pause();\n } else {\n // Just go around again.\n pause();\n }\n }\n nTesters.decrementAndGet();\n }", "public void step() {\n // method 1 of Temperature randomness\n enPrice = 1.1 * enPrice;\n\n TempChange = Temperature * (0.1 * (1 - 2 * r.nextDouble()));\n // method 2 of Temperature\n// TempChange = temperature_list.get(count);\n// count+=1;\n\n Temperature += TempChange;\n year_num+=1;\n }", "private void computeCoffeeMaker(){\n HashMap<String,String> notAvailableBeverages = coffeeMakerService.getNotAvailableBeverages();\n ArrayList<String> beverageNames = coffeeMakerService.getBeveragesName();\n for (String beverage: beverageNames) {\n if(notAvailableBeverages.containsKey(beverage)){\n System.out.println(notAvailableBeverages.get(beverage));\n }else{\n if(coffeeMakerService.canPrepareBeverage(beverage)){\n coffeeMakerService.prepareBeverage(beverage);\n System.out.println(beverage+\" is prepared\");\n }else{\n System.out.println(coffeeMakerService.getReasonForNotPreparation(beverage));\n }\n }\n }\n }", "private void run() {\n int code = memory[pc];\n while (code != 0) {\n nextCode(code);\n code = memory[++pc];\n }\n }", "public void nextIteration() {t++;}", "public void start(Input input, CashBack cashback) {\n\n System.out.println(new StringBuilder()\n .append(\"WELCOME TO THE COFFEE MACHINE\")\n .append(System.lineSeparator())\n .append(\"Please read list of our products:\")\n .toString()\n );\n boolean exit = false;\n while (!exit) {\n for (int i = 0; i < products.size(); i++) {\n System.out.println(\n new StringBuilder()\n .append(i)\n .append(\".\")\n .append(products.get(i).getName())\n .append(\" - \")\n .append(products.get(i).getPrice())\n .append(\" dollars\")\n );\n }\n\n Product choice = products.get(input.protectedRangeAsk(\"What do you prefer? Please enter number of product: \", products.size()));\n int money = input.protectedMoneyAsk(\"Please, insert money: \", choice.getPrice());\n\n ArrayList<Integer> result = cashback.action(money, choice);\n\n StringBuilder sb = new StringBuilder().append(\"Please, take your cash back: \");\n for (int value : result) {\n if (value != 0) {\n sb.append(value).append(\",\");\n }\n }\n\n System.out.println(sb);\n\n if (input.ask(\"Do you want to exit? [1]= 'yes'\") == 1) {\n exit = true;\n }\n\n }\n }", "public void next()\r\n\t{\r\n\t\tif(state<3)\r\n\t\t\tstate++;\r\n\t\telse\r\n\t\t\tstate=1;\r\n\t}", "@Override\n\tpublic void run() {\n\t\tString key = CounterUtils.getKey(this.name);\n//\t\tif(DemoUtils.isExist(DemoUtils.keyName, key)) {\n//\t\t\tSystem.out.println(\"OK\");\n//\t\t}\n\t\t\n\t\twhile(true) {\n\t\t\tSystem.out.println(name + \" : \" + CounterUtils.get(CounterUtils.getKey(name)));\n\t\t\tCounterUtils.setEntity(key);\n\t\t\tCounterUtils.inc(key);\n\t\t\tcounter ++;\n\t\t\tif(cal.getTimeInMillis() < new Date().getTime()) {\n\t\t\t\tSystem.out.println(name + \" : \" + counter);\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\t//CounterUtils.del(CounterUtils.getKey(name));\n\t\t}\n\t\t\n\t\t\n\t}", "public abstract void goNext();", "@Override\n public void run() {\n while(true){\n if(ticket>0){\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n System.out.println(Thread.currentThread().getName()+\"卖票--->\"+(this.ticket--));\n }else{\n break;\n }\n }\n }", "@Override\n\tpublic void takeNewOrder() {\n\t\tif(customersInLine.size()>0&&wait==0){\n\t\t\tint customerSelectedIndex = 0;\n\t\t\tfor(int i=0; i<customersInLine.size(); i++){\n\t\t\t\tif(customersInLine.get(i).getTimeToPrepare()<customersInLine.get(customerSelectedIndex).getTimeToPrepare()){\n\t\t\t\t\tcustomerSelectedIndex = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\tsetWait(customersInLine.get(customerSelectedIndex).getTimeToPrepare());\n\t\t\taddToProfit(customersInLine.get(customerSelectedIndex).getCostOfOrder());\n\t\t\tcustomersInLine.remove(customerSelectedIndex);\n\t\t\tcustomersInRestaurant--;\n\t\t}\n\t}", "public static void main( String[] args )\n {\n Scanner kbd = new Scanner( System.in );\n boolean done = false;\n\n Ch12Ex1to9 exercise = new Ch12Ex1to9();\n\n do\n {\n System.out.println();\n System.out.println();\n System.out.println( \"Make a selection\" );\n System.out.println();\n System.out.println( \" (1) Discount Prices\" );\n System.out.println( \" (2) Order Checker\" );\n System.out.println( \" (3) Last Chance Gas\" );\n System.out.println( \" (4) Ground Beef Value Calculator\" );\n System.out.println( \" (5) Y2K Problem Detector\" );\n System.out.println( \" (6) Wind Chill Index\" );\n System.out.println( \" (7) Your Age in Seconds\" );\n System.out.println( \" (8) Matinee Movie Tickets\" );\n System.out.println( \" (9) Midnight Madness\" );\n System.out.println( \" (Q) Quit\" );\n System.out.println();\n System.out.print( \"Enter a choice: \" );\n String response = kbd.nextLine();\n\n if ( response.length() > 0 )\n {\n System.out.println();\n\n switch ( response.charAt( 0 ) )\n {\n case '1':\n exercise.discountPrices();\n break;\n case '2':\n exercise.orderChecker();\n break;\n case '3':\n exercise.lastChanceGas();\n break;\n case '4':\n exercise.groundBeefValueCalc();\n break;\n case '5':\n exercise.y2KProblemDetector();\n break;\n case '6':\n exercise.windChillIndex();\n break;\n case '7':\n exercise.yourAgeInSeconds();\n break;\n case '8':\n exercise.matineeMovieTickets();\n break;\n case '9':\n exercise.midnightMadness();\n break;\n default:\n if ( response.toLowerCase().charAt( 0 ) == 'q' )\n {\n done = true;\n }\n else\n {\n System.out.print( \"Invalid Choice\" );\n }\n break;\n }\n }\n } while ( !done );\n System.out.println( \"Goodbye!\" );\n }", "public void run() {\n\t\tSystem.out.println(\"Let's start shopping!\");\n\t\tScanner in = new Scanner(System.in);\n\t\tString input = in.nextLine();\n\t\twhile (!input.equals(\"Q\")) {\n\t\t\tString[] separatedInput = input.split(\" \");\n\t\t\tdoOperation(separatedInput);\n\t\t\tinput = in.nextLine();\n\t\t}\n\n\t\tif (bag.getSize() != 0) {\n\t\t\tcheckoutNotEmptyBag();\n\t\t}\n\n\t\tSystem.out.println(\"Thanks for shopping with us!\");\n\t\tin.close();\n\t}", "public PlayerChoicePick getNextPlayerChoicePick();", "@Override\r\n public void run() {\r\n while(true){\r\n // para cada peça necessária para um agente montar um produto faça\r\n for(Peca peca: pecasNecessarias){\r\n System.out.println(\"\\nRetirar Peça: \"+peca.getNome());\r\n // retira peça do estoque\r\n int pecasEmEstoque = estoque.retirarPecas(peca, peca.getQuantidadeEmEstoque());\r\n // se não há peças em estoque atraza a produção e ela para\r\n if(pecasEmEstoque <= 0) {\r\n System.exit(0);\r\n }\r\n if(ConfigAgents.TEMPO_MONGAGEM > 0) { // desativa simulação se valor 0 ou negativo\r\n try {\r\n // simulação do agente montando o produto com a peça\r\n sleep(ConfigAgents.TEMPO_MONGAGEM);\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(AgenteLinhaDeProducao.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n }\r\n }", "@Override\n public WorkflowStep next() {\n startCalculator(true);\n return DETECT_ANOMALIES;\n }", "public void run() {\n\t\twhile (frontIsClear()) {\n\t\t\tmove();\n\n\t\t\tif (noBeepersPresent()) {\n\t\t\t\tremoveChad();\n\t\t\t}\n\t\t //if (beepersPresent()){\n\t\t\t\t// collectBeeper();\n\t\t\t//}\t\n\t\t \n\t\t\tmove();\n\t\t}}", "@Test\r\n\tpublic void testRevealTicketsSingle() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\trevealTicket(roc, i, 1);\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "Piece getNextPiece();", "private void getOneToteTimer()\r\n\t{\r\n\t\tswitch(autoStep)\r\n\t\t{\r\n\t\t\tcase 0:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 1:\r\n\t\t\t{\r\n\t\t\t\tdriveForwardTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\t\r\n\t}", "public static void main(String[] args) {\n TestAutoTask task = new TestAutoTask();\n while (true){\n System.out.println(task.getRandomAmount().toString());\n }\n\n /*double d = 0.111;\n System.out.println(new BigDecimal(String.valueOf(d)));*/\n\n /*double rmb = 25 * 0.0001 * 6000;\n System.out.print(rmb);\n int i = 2;\n switch (i){\n case 1:\n System.out.println(\"test\");\n break;\n }*/\n }", "@SuppressWarnings(\"empty-statement\")\r\n public static void main(String args[]) \r\n {\r\n \r\n Customer []aCustomer=new Customer[8];\r\n int numCustomer=8;\r\n BarberShop barberShop = new BarberShop(); //Creates a new barbershop\r\n \r\n Barber giovanni = new Barber(customers,barber,barberShop); //Giovanni is the best barber ever \r\n giovanni.start(); //Ready for another day of work\r\n\r\n /* This method will create new customers for a while */\r\n \r\n for (int i=0; i<10; i++) \r\n {\r\n aCustomer[i] = new Customer(i,customers,barber,barberShop);\r\n aCustomer[i].start();\r\n try {\r\n Thread.sleep(2000);\r\n } catch(InterruptedException ex) {};\r\n }\r\n \r\n while(numCustomer>0) \r\n {\r\n numCustomer=0;\r\n \r\n try {\r\n for (int i=0; i<8; i++) \r\n {\r\n if(aCustomer[i].notCut==true) numCustomer++;\r\n Thread.sleep(100);\r\n }\r\n Thread.sleep(1000);\r\n } catch(InterruptedException ex) {};\r\n }\r\n \r\n System.exit(0);\r\n}", "private Addr nextPC() {\n if (inDelaySlotQueue()) {\n // Next address\n return currentAddr.inc();\n }\n\n // If there is a jump scheduled, return it\n if (jump != null) {\n var jumpAddr = jump;\n jump = null;\n return jumpAddr;\n }\n\n // Next address\n return currentAddr.inc();\n }", "@Override\n\t\tpublic CompType next() {\n\t\t\treturn new CompType(random.nextInt(100), random.nextInt(100));\n\t\t}", "public void run() {\n Set<Philosopher> disabledPhils = new HashSet<Philosopher>();\r\n // True if last philosopher who tried to eat succeed\r\n boolean wasAttemptSuccessful = false;\r\n final long startTime = System.currentTimeMillis();\r\n while (System.currentTimeMillis() - startTime < runningTime) {\r\n if (wasAttemptSuccessful || hungryPhils.isEmpty()) {\r\n hungryPhils.addAll(disabledPhils);\r\n disabledPhils.clear();\r\n }\r\n Philosopher philBeingServed = null;\r\n try {\r\n philBeingServed = hungryPhils.take(); // get phil with the highest priority\r\n disabledPhils.add(philBeingServed);\r\n if (forks.get(philBeingServed.id).attempt(1)) { // Could use tryLock instead\r\n if (FireStarter.isDebugEnabled) {\r\n System.out.println(\"[\" + philBeingServed.id + \"] took left fork\");\r\n }\r\n if (forks.get(philBeingServed.id + 1).attempt(Math.round(Math.random() *\r\n (MAX_ATTEMPT_TIME + 1)))) {\r\n if (FireStarter.isDebugEnabled) {\r\n System.out.println(\"[\" + philBeingServed.id + \"] took right fork\");\r\n }\r\n philBeingServed.giveMeal();\r\n disabledPhils.remove(philBeingServed);\r\n wasAttemptSuccessful = true;\r\n } else {\r\n wasAttemptSuccessful = false;\r\n forks.get(philBeingServed.id).release();\r\n if (FireStarter.isDebugEnabled) {\r\n System.out.println(\"[\" + philBeingServed.id + \"] put left fork\");\r\n }\r\n }\r\n } else {\r\n wasAttemptSuccessful = false;\r\n }\r\n } catch (InterruptedException e) {\r\n if (philBeingServed != null) {\r\n forks.get(philBeingServed.id).release();\r\n forks.get(philBeingServed.id + 1).release();\r\n }\r\n e.printStackTrace();\r\n }\r\n if (FireStarter.isDebugEnabled) {\r\n System.out.printf(\"\\n\\n\"); // Kinda delimiter\r\n FireStarter.isDebugEnabled = false; // Stop producing messages from philosophers\r\n }\r\n }\r\n }", "@Override\n public SortedBag<Ticket> chooseInitialTickets() {\n sendInstruction(MessageId.CHOOSE_INITIAL_TICKETS);\n return Serdes.TICKET_BAG_SERDE.deserialize(receiveInstruction());\n }", "@Override\n public void run() {\n\n int orders = random.nextInt(5) + 2;\n hCrowd.setBreakTimeBetweenOrders(time);\n hCrowd.setOrderedAmount(orders);\n hCrowd.setDish(Dish.getRandomDish());\n System.out.println(hCrowd.getBreakTimeBetweenOrders()+\" \"+hCrowd.getOrderedAmount()+\" \"+hCrowd.getDish());;\n ++i;\n if (i == 4) {\n synchronized (Main.start) {\n Main.start.notify();\n }\n }\n }", "@Override\n public void run() {\n list.add(new Random().nextInt(11)+ 6);\n }", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tproduce();\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}" ]
[ "0.5881007", "0.5856275", "0.5746078", "0.5660885", "0.56557846", "0.5616935", "0.5615099", "0.5610997", "0.56072706", "0.5539666", "0.5478556", "0.5474908", "0.5469674", "0.544955", "0.5419273", "0.53981483", "0.53623515", "0.5357921", "0.5328007", "0.5319523", "0.5319523", "0.53061366", "0.5300295", "0.52997786", "0.5299151", "0.52710277", "0.5261989", "0.5261316", "0.52605283", "0.52555406", "0.52555406", "0.5232913", "0.52322096", "0.5231969", "0.5218779", "0.521639", "0.5209875", "0.5209013", "0.5206345", "0.5204878", "0.51860046", "0.51812637", "0.5178089", "0.51767474", "0.5170884", "0.51639676", "0.51625574", "0.5160835", "0.5160312", "0.51575214", "0.5135914", "0.5128506", "0.5106008", "0.5105829", "0.51033306", "0.51031756", "0.5080561", "0.50762254", "0.50736874", "0.5066196", "0.50621617", "0.5060105", "0.505553", "0.5055447", "0.50534326", "0.5050095", "0.5047006", "0.50452524", "0.50375235", "0.5035631", "0.50295204", "0.5018902", "0.5005471", "0.49995264", "0.49970445", "0.4992576", "0.4989819", "0.49895972", "0.49883613", "0.498769", "0.49804613", "0.49772534", "0.49652493", "0.4962077", "0.4956979", "0.49568743", "0.49568632", "0.4956686", "0.49530596", "0.49513352", "0.4948613", "0.4946235", "0.4945442", "0.49389523", "0.49353525", "0.49275565", "0.49268916", "0.49248362", "0.49238774", "0.49203023" ]
0.53263646
19
Checks the status of the coffee machine. If the the coffee is ready, it is expected that it is picked up asap.
public CoffeeMachineResponse getCoffee(int id) { CoffeeMachine coffeeMachine = coffeeMachineRepository.getCoffeeMachine(id); if (coffeeMachine == null) { throw new CoffeeMachineNotFoundException(id); } if (coffeeMachine.getCompletionTime() == null) { return buildResponse("This machine is ready to use.", HttpStatus.OK); } else { int ccaReadyTime = coffeeMachine.getCompletionTime().getSecond() - LocalDateTime.now().getSecond(); if (ccaReadyTime > 0) { return buildResponse("Your coffee will be ready in " + ccaReadyTime + " seconds.", HttpStatus.OK); } else { coffeeMachine.setCompletionTime(null); return buildResponse("Your coffee is ready. You can pick it up.", HttpStatus.OK); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isReady();", "public boolean isReady();", "boolean isReady();", "boolean isReady();", "boolean isReady();", "void isReady();", "void isReady();", "private void check() {\n ShedSolar.instance.haps.post( Events.WEATHER_REPORT_MISSED );\n LOGGER.info( \"Failed to receive weather report\" );\n\n // check again...\n startChecker();\n }", "public boolean ready();", "@Test\n\tpublic void checkStatus() {\n\t\tclient.execute(\"1095C-16-111111\");\n\t}", "private static void checkStatus() {\n\r\n\t\tDate date = new Date();\r\n\t\tSystem.out.println(\"Checking at :\"+date.toString());\r\n\t\tString response = \"\";\r\n\t\ttry {\r\n\t\t\tresponse = sendGET(GET_URL_COVAXIN);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t//System.out.println(response.toString());\r\n\t\tArrayList<Map> res = formatResponse(response);\r\n\r\n\t\tres = checkAvailability(res);\r\n\t\tif(res.size()>0)\r\n\t\t\tnotifyUser(res);\r\n\t\t//System.out.println(emp.toString());\r\n\t}", "@Override\n\tpublic boolean ready() {\n\t\treturn this.ok;\n\t}", "private void statusCheck() {\n\t\tif(status.equals(\"waiting\")) {if(waitingPlayers.size()>1) status = \"ready\";}\n\t\tif(status.equals(\"ready\")) {if(waitingPlayers.size()<2) status = \"waiting\";}\n\t\tif(status.equals(\"start\")) {\n\t\t\tif(players.size()==0) status = \"waiting\";\n\t\t}\n\t\tview.changeStatus(status);\n\t}", "@Override\n public int checkStatus(){\n return InputOutputController.STATUS_READY;\n }", "public boolean ready() {\n diff = eventTime - System.currentTimeMillis(); //Step 4,5\n return System.currentTimeMillis() >= eventTime;\n }", "public boolean ready ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"ready\", true);\n $in = _invoke ($out);\n boolean $result = $in.read_boolean ();\n return $result;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n return ready ( );\n } finally {\n _releaseReply ($in);\n }\n }", "void doCheckHealthy();", "public void checkGameStatus() {\n everyTenthGoalCongrats();\n randomPopUpBecauseICan();\n }", "public boolean isReady(){\n return !result.equals(\"\");\n }", "public void check () {\n // declaring local variables\n WebElement webElement;\n\n if (isStubbed()) {\n log(\"=== This checkbox's locator is currently stubbed out. ===\");\n } else {\n // getting the web element of the check box with the default timeout\n // and then check its status\n\n int MAXRETRIES = 3;\n int tries = 1;\n while (!this.isChecked() && tries <= MAXRETRIES) {\n // need to give a second for the browser to catch up with the web driver\n //sleep(1, TimeUnit.SECONDS);\n\n // Directly get the web element since we know that it exists and is displayed\n webElement = getWebElement ();\n this.clickWebElement (webElement);\n\n\n\n\n tries++;\n if (this.isChecked() == false)\n {\n sleep(1, TimeUnit.SECONDS);\n }\n }\n }\n }", "public boolean isServiceReady();", "private void checkStatusAndHeatCup(final HeatCupInput input,\n final SettableFuture<RpcResult<Void>> futureResult,\n final int tries) {\n\n /* Read the CupStatus and, if currently Cold, try to write the status to Heating.\n * If that succeeds, then we essentially have an exclusive lock and can proceed\n * to make the cup.\n * We create a ReadWriteTransaction by using the databroker.\n * Then, we read the status of the cup with getCupStatus() using the\n * databroker again. Once we have the status, we analyze it and\n * then databroker submit function is called to effectively change \n * the cup status.\n *\n * This all affects the MD-SAL tree, more specifically the part of the\n * tree that contain the cup (the nodes).\n */\n final ReadWriteTransaction transaction = dataBroker.newReadWriteTransaction();\n ListenableFuture<Optional<Cup>> readFuture =\n transaction.read(LogicalDatastoreType.OPERATIONAL, CupMapper.getCupIid());\n\n final ListenableFuture<Void> commitFuture =\n Futures.transform(readFuture, new AsyncFunction<Optional<Cup>,Void>() {\n\n @Override\n public ListenableFuture<Void> apply(\n final Optional<Cup> cupData) throws Exception {\n\n if(cupData.isPresent()) {\n cupState.setCupStatus(cupData.get().getCupStatus().getIntValue());\n cupState.getAmountOfCupsInStock().set(cupData.get().getAmmountOfCupsInStock());\n cupState.getCupsMade().set(cupData.get().getAmmountOfCupsMade());\n } else {\n throw new Exception(\"Error reading Cup data from the store.\");\n }\n LOG.debug(\"Read cup status: {}\", cupState.getCupStatus());\n if(cupState.getCupStatus().getStatus() == CupStatus.Cold.getIntValue()) {\n if(cupState.getAmountOfCupsInStock().get() == 0) {\n LOG.debug(\"No more cups.\");\n return Futures.immediateFailedCheckedFuture(\n new TransactionCommitFailedException(\"\", makeNoMoreCupsError()));\n }\n LOG.info(\"Heating the Cup...\");\n cupState.setCupStatus(CupStatus.Heating.getIntValue());\n transaction.put(LogicalDatastoreType.OPERATIONAL,\n CupMapper.getCupIid(),\n buildOperationalCup());\n return transaction.submit();\n }\n LOG.debug( \"Oops - already making a cup!\" );\n // Return an error since we are already making cup. This will get\n // propagated to the commitFuture below which will interpret the null\n // TransactionStatus in the RpcResult as an error condition.\n return Futures.immediateFailedCheckedFuture(\n new TransactionCommitFailedException(\"\", makeCupInUseError()));\n }\n });\n\n Futures.addCallback(commitFuture, new FutureCallback<Void>() {\n @Override\n public void onSuccess(final Void result) {\n // OK to make cup\n cupState.getCurrentHeatCupTask().set(executor.submit(new HeatCupTask(input,\n futureResult)));\n }\n\n @Override\n public void onFailure( final Throwable ex ) {\n if( ex instanceof OptimisticLockFailedException ) {\n // Another thread is likely trying to heat a cup simultaneously and updated the\n // status before us. Try reading the status again - if another heat cup is\n // now in progress, we should get CupStatus.Cold and fail.\n if( ( tries - 1 ) > 0 ) {\n LOG.debug( \"Got OptimisticLockFailedException - trying again\" );\n checkStatusAndHeatCup(input, futureResult, tries - 1);\n }\n else {\n futureResult.set(RpcResultBuilder.<Void> failed()\n .withError(ErrorType.APPLICATION, ex.getMessage()).build());\n }\n } else {\n LOG.debug( \"Failed to commit Cup status\", ex );\n // Probably already heating a cup.\n futureResult.set(RpcResultBuilder.<Void> failed()\n .withRpcErrors(((TransactionCommitFailedException)ex).getErrorList())\n .build());\n }\n }\n });\n }", "public boolean isATMReadyTOUse() throws java.lang.InterruptedException;", "private boolean isProcessorReady(int aStatus) {\n if (aStatus == Constants.CAS_PROCESSOR_READY || aStatus == Constants.CAS_PROCESSOR_RUNNING) {\n return true;\n }\n\n return false;\n }", "private boolean checkExecution() {\n if (!checkPhoneStatusOK()) {\n return false;\n }\n if (!checkBatteryLevelOK()) {\n return false;\n }\n return true;\n }", "public abstract void ready();", "public boolean ready() {\n pos = new Pos(\"200001\", \"0123456789\", \"75621477\");\n //todo card = read CardData;\n saveStatus = \"1\";\n NetworkServer.getInstance().connect();\n return true;\n }", "public boolean isReady() {\n\t\treturn state == State.READY;\n\t}", "@Override\n public boolean isReady() {\n return isFinished();\n }", "@Override\n\tpublic boolean isReady() {\n\t\treturn (this.baseTime == this.timeRemaining);\n\t}", "@Override\n public boolean isReady() {\n return areValidReadings(mReadings);\n }", "boolean isSetupDone();", "@Override\r\n\tpublic boolean isReady() {\n\t\treturn !finish;\r\n\t}", "private void checkRemotePlayerReady(){\n String data = getJSON(hostUrl + \"retrieve_remote_ready.php?matchId=\" + matchId\n + \"&player=\" + oppositePlayer, 2000);\n\n System.out.println(\"Ready: \" + data);\n\n // Get first character, as, for some reason, it returns one extra character.\n int ready = Integer.parseInt(data.substring(0, 1));\n\n if (ready == 1){\n remotePlayerReady = true;\n }\n\n }", "public void waitUntilReady() throws IOException, InterruptedException {\n while (ready() == 0) {\n Thread.sleep(10);\n }\n }", "public void alertTheWaiter(){\n Chef c = (Chef) Thread.currentThread();\n CommunicationChannel com = new CommunicationChannel(serverHostName, serverPortNumb);\n Object[] params = new Object[0];\n \tObject[] state_fields = new Object[2];\n state_fields[0] = c.getChefID();\n \tstate_fields[1] = c.getChefState();\n\n Message m_toServer = new Message(1, params, 0, state_fields, 2, null); \n Message m_fromServer;\n\n while (!com.open ()){ \n \ttry{ \n \t\tThread.currentThread ();\n \t\tThread.sleep ((long) (10));\n \t}\n \tcatch (InterruptedException e) {}\n \t}\n \n com.writeObject (m_toServer);\n \n m_fromServer = (Message) com.readObject(); \n\n c.setState((int) m_fromServer.getStateFields()[1]);\n \n com.close ();\n }", "public void signalCheck() {\n if(moves.length == 0){\n setiHaveCheck(false);\n pathToKing = null;\n rangeOfCheck = null;\n }\n for(int i = 0; i < moves.length; i++) {\n Space tmp = Board.fetchSpace(moves[i]);\n if(tmp.getPiece() != null) {\n if(this.getType().charAt(0) != tmp.getPiece().getType().charAt(0) && tmp.getPiece().getType().charAt(1) == 'K') {\n setiHaveCheck(true);\n calcPathToKing(tmp);\n break;\n }\n else {\n setiHaveCheck(false);\n pathToKing = null;\n rangeOfCheck = null;\n }\n }\n else {\n setiHaveCheck(false);\n pathToKing = null;\n rangeOfCheck = null;\n }\n }\n }", "@Override\n public boolean isReady() {\n return !isDone;\n }", "public boolean checkComplete(){\n return Status;\n }", "public void checkInside() {\n checkInsideDone = false;\n }", "@Override\n\tpublic void msgReadyForCheck(Customer customerAgent, String choice) {\n\t\t\n\t}", "private boolean checkMachineAvailable ()\n throws Exception\n {\n try {\n log.info(\"Claiming free machine\");\n\n Machine freeMachine = Machine.getFreeMachine(session);\n if (freeMachine == null) {\n Scheduler scheduler = Scheduler.getScheduler();\n log.info(String.format(\n \"No machine available for scheduled sim %s, retry in %s seconds\",\n game.getGameId(), scheduler.getSchedulerInterval() / 1000));\n return false;\n }\n\n game.setMachine(freeMachine);\n freeMachine.setStateRunning();\n session.update(freeMachine);\n log.info(String.format(\"Game: %s running on machine: %s\",\n game.getGameId(), game.getMachine().getMachineName()));\n return true;\n } catch (Exception e) {\n log.warn(\"Error claiming free machine for game \" + game.getGameId());\n throw e;\n }\n }", "private void checkCompletedPieces() {\n\t\tif ((mainloop_loop_count %MAINLOOP_ONE_SECOND_INTERVAL) !=0)\n\t\t\treturn;\n\n\t\t//for every piece\n\t\tfor (int i = 0; i <_nbPieces; i++) {\n\t\t\tfinal DiskManagerPiece dmPiece =dm_pieces[i];\n\t\t\t//if piece is completly written, not already checking, and not Done\n\t\t\tif (dmPiece.isNeedsCheck())\n\t\t\t{\n\t\t\t\t//check the piece from the disk\n\t\t\t\tdmPiece.setChecking();\n\n\t\t\t\tDiskManagerCheckRequest req = \n\t\t\t\t\tdisk_mgr.createCheckRequest(\n\t\t\t\t\t\t\ti, new Integer(CHECK_REASON_DOWNLOADED));\n\n\t\t\t\treq.setAdHoc( false );\n\n\t\t\t\tdisk_mgr.enqueueCheckRequest( req, this );\n\t\t\t}\n\t\t}\n\t}", "public boolean getReadyToRun();", "@Test\n\tpublic void checkReady_test()\n\t{\n\t\tb.set(1,1, 'x');\n\t\tb.set(1,2, 'o');\n\t\tassertFalse(b.checkReady());\n\t}", "public Status waitUntilFinished();", "@Override\n public boolean isReady() {\n return true;\n }", "protected void checkIfReady() throws Exception {\r\n checkComponents();\r\n }", "public boolean verifyAndSetStatus() {\n if (status == FINISHED) {\n // No further checks needed\n return false;\n }\n \n if (Float.compare(estimation, 0f) <= 0) {\n if (status == READY_FOR_ESTIMATION) {\n return false;\n } else {\n status = READY_FOR_ESTIMATION;\n return true;\n }\n } else {\n // If no sprint was yet assigned, we must be in state\n // READY_FOR_SPRINT, otherwise in state IN_SPRINT\n if (sprint == null) {\n if (status == READY_FOR_SPRINT) {\n return false;\n } else {\n status = READY_FOR_SPRINT;\n return true;\n }\n } else {\n if (status == IN_SPRINT) {\n return false;\n } else {\n status = IN_SPRINT;\n return true;\n }\n }\n }\n }", "@Override\r\n protected Result check() throws Exception {\n try {\r\n Response response = webTarget.request().get();\r\n\r\n if (!response.getStatusInfo().getFamily().equals(Response.Status.Family.SUCCESSFUL)) {\r\n\r\n return Result.unhealthy(\"Received status: \" + response.getStatus());\r\n }\r\n\r\n return Result.healthy();\r\n } catch (Exception e) {\r\n\r\n return Result.unhealthy(e.getMessage());\r\n }\r\n }", "private boolean scanPreconditions()\n\t\t{\n\t\t\tboolean statusChanged = false;\n\t\t\t\n\t\t\t//Conditional activity\n\t\t\tif(TravelToCustomer.precondition(this) == true)\n\t\t\t{\n\t\t\t\tTravelToCustomer act = new TravelToCustomer(this);\n\t\t\t\tact.startingEvent();\n\t\t\t\tscheduleActivity(act);\n\t\t\t\tstatusChanged = true;\n\t\t\t\t//System.out.println(\"Started Travel to Customer. \");\n\t\t\t}\n\t\t\t\n\t\t\tif(TakingLunch.precondition(this) == true)\n\t\t\t{\n\t\t\t\tTakingLunch act = new TakingLunch(this);\n\t\t\t\tact.startingEvent();\n\t\t\t\tscheduleActivity(act);\n\t\t\t\tstatusChanged = true;\n\t\t\t\t//System.out.println(\"Started Take Lunch. \");\n\t\t\t}\n\t\t\t\n\t\t\t// Do not change the status if already true\n\t\t\tif(statusChanged) scanInterruptPreconditions();\n\t\t\telse statusChanged = scanInterruptPreconditions();\n\t\t\treturn(statusChanged);\n\t\t}", "@Override\n\t\tpublic boolean isReady() {\n\t\t\treturn false;\n\t\t}", "@Override\n\t\tpublic boolean isReady() {\n\t\t\treturn false;\n\t\t}", "private void checkStatus() {\n if (switchOff) {\n String msg = \"Locker is switched off - no data source accessible.\";\n log.error(msg);\n throw new IllegalStateException(msg);\n }\n }", "public abstract boolean inReady() throws JVMIOException;", "private void waitForServerReady() throws IOException, InterruptedException {\n\t\tfinal var httpget = new HttpGet(getPingUri());\n\t\tvar counter = 0;\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tif (HttpStatus.SC_OK == httpclient.execute(httpget, HttpResponse::getCode)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcheckRetries(counter);\n\t\t\t} catch (final HttpHostConnectException ex) { // NOSONAR - Wait, and check later\n\t\t\t\tlog.info(\"Check failed, retrying...\");\n\t\t\t\tcheckRetries(counter);\n\t\t\t}\n\t\t\tcounter++;\n\t\t}\n\t}", "@Override\n\tpublic boolean isReady() {\n\t\treturn false;\n\t}", "private void checkAndActivateCPU() {\n statusController.checkIfCPU();\n if (modelCheck.isCurrentPlayerCPU()) {\n CPU.actionSequence();\n }\n }", "public boolean isReady() {\n return ready;\n }", "public void IsReady() {\n\t\tSystem.out.println(\"Table now ready for customers.\");\n\t\ttable.setState(table.GetReady());\n\t}", "public boolean isReady() {\n return isReady;\n }", "public boolean checkIn()\r\n\t{\r\n\t\tif(this.status == 'B')\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "@Override\n public boolean isReady() {\n return true;\n }", "@Override\r\n\t\t\tpublic boolean isReady() {\n\t\t\t\treturn false;\r\n\t\t\t}", "private boolean checkBatteryLevelOK() {\n return true;\n }", "@Override\n\t\tpublic void run() {\n\t\t\tcheck();\n\t\t}", "private boolean checkCabReachability(BookingRequest bookingRequest, Cab cabDetail) {\n\t\tboolean cabReachable = false ;\n\t\tInteger distanceFromCabToPickUpPoint = Utils.calculateDistance(cabDetail.getInitialLocation(), bookingRequest.getPickUpArea());\n\t\tInteger timeToReachPickUpPoint = distanceFromCabToPickUpPoint * Constants.MINUTES_PER_KM; // In minutes\n\t\tCalendar calendar = cabDetail.getCurrentLocationTime();\n\t\tcalendar = (Calendar) calendar.clone();\n\t\tcalendar.add(Calendar.MINUTE, timeToReachPickUpPoint + Constants.REACH_EARLY_BY);\n\t\t\n\t\tif (bookingRequest.getPickUpTime().compareTo(calendar) > 0) {\n\t\t\tcabReachable = true;\n\t\t}\n\t\treturn cabReachable;\n\t}", "private final boolean m63946d() {\n this.f42998a = C14778g1.Failed;\n mo45765b();\n return this.f42998a == C14778g1.Ready;\n }", "protected boolean waitForClusterToStart() throws HoneycombTestException {\n\n Log.INFO(\"Waiting for cluster to come Online...\");\n boolean ready = false;\n int i = MAX_ONLINE_ITERATIONS;\n while (i > 0 && !ready) {\n try {\n i--;\n ArrayList lines = readSysstat();\n if (lines.toString().contains(nodesOnlineString)) {\n ready = true;\n } \n if (!ready)\n pause(SLEEP_WAKEUP_TIMEOUT);\n } catch (Throwable e) {\n pause(SLEEP_WAKEUP_TIMEOUT);\n }\n }\n if (i == 0) {\n Log.WARN(\"Cluster is not Online\");\n }\n if (!ready)\n okToProceed = false;\n return ready;\n }", "private boolean checkPhoneStatusOK() {\n return true;\n }", "@Test\n public void testSuccess() throws Exception {\n\n client.makeBooking(\"Paul\", new Date(System.currentTimeMillis()), false);\n\n BookingStatus bookingStatus = client.getLastBookingStatus();\n Assert.assertTrue(\"Expected booking to be confirmed, but it wasn't: \" + bookingStatus, bookingStatus.equals(BookingStatus.CONFIRMED));\n }", "@Test\n public void shouldMakeCoffeeWhenShotsAreNotAvailable(){\n given(supplyService.isCoffeeShotAvailable(EXPRESSO)).willReturn(false);\n //When coffee is order\n Boolean orderStatus=kitchenService.makeCoffee(EXPRESSO);\n //Then Kitchen should make coffee\n assertThat(orderStatus, is(false));\n\n }", "public boolean checkLionStatus() {//opening checkLionStatus method\n return isCatRunning;\n }", "public void waitForDecision(){\n if(gameOver) {\n return;\n }\n if(!decisionActive) {\n try {\n uiWaiting = true;\n synchronized(uiWait) {\n uiWait.wait();\n }\n } catch (Exception e) { logger.log(\"\"+e); }\n }\n }", "public void turnOnCooler() {\n oilPompController.turnPompsOn();\n breakController.turnOff();\n mainPowerController.turnOn();\n supportPowerController.turnOn();\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n System.out.println(\"Waiting to stand up was interrupted.\");\n }\n supportPowerController.turnOff();\n System.out.println(\"System is running.\");\n }", "public void ondemandSetupIsDone();", "private final boolean size_ready ()\n {\n next_step (in_progress.data (), in_progress.size (),\n message_ready, !in_progress.has_more());\n return true;\n }", "public void markReady() {\n\t\tsetState(State.READY);\n\t\tthis.statusCode = StatusCode.Success.code;\n\t}", "@Test\n\tpublic void testIfWSStatusChange() {\n\t\tfinal WorkSpace ws = new WorkSpace(null);\n\t\tWorkPackage wp1 = new WorkPackage(null);\n\t\twp1.setStatus(WPMaturity.State.InProgress);\n\t\tWorkPackage wp2 = new WorkPackage(null);\n\t\twp2.setStatus(WPMaturity.State.InProgress);\n\t\t\t\n\t\tws.addWP(wp1);\n\t\tws.addWP(wp2);\n\t\t\n\t\tAssert.assertTrue(ws.getWSMaturity().equals(WSMaturity.State.InProgress));\n\t\tnew Thread(new Runnable() {\n\t\t\t\n\t\t\tpublic void run() {\n\t\t\t\tWorkPackage wp3 = new WorkPackage(null);\n\t\t\t\twp3.setStatus(WPMaturity.State.Start);\n\t\t\t\tws.addWP(wp3);\n\t\t\t\t\n\t\t\t}\n\t\t}).start();\n\t\tAssert.assertTrue(ws.getWSMaturity().equals(WSMaturity.State.Start));\n\t}", "Boolean isAvailable();", "@Override\n public boolean isReady() {\n return (running && !opening) || packetQueue.size() > 0;\n }", "boolean isAvailable();", "boolean isAvailable();", "boolean isAvailable();", "boolean isAvailable();", "public boolean isReady()\r\n {\r\n return _isReady;\r\n }", "public boolean isReady() {\n return mIsReady;\n }", "public void doIt() {\n status = true;\n }", "@Override\r\n\tpublic void onMachine() {\n System.out.println(\"Please On the machine to cook \");\r\n grillmachine.setState(grillmachine.getOnState());\r\n\t}", "@Override public boolean active() {\n General.sleep(200, 300); // Reduces CPU usage.\n return isAtFish();\n }", "public boolean checkStatus() {\r\n return isTiling;\r\n }", "public boolean isReady() throws java.io.IOException {\n\n return br.ready();\n }", "public boolean checkEngineStatus(){\r\n return isEngineRunning;\r\n }", "boolean isAvailable( long millis );", "private int waitUntilReady()\r\n {\r\n int rc = 0;\r\n // If a stock Item is in the Table, We do not want to start\r\n // The Lookup, if the name of the stock has not been identified.\r\n // here we will wait just a couple a second at a time.\r\n // until, the user has entered the name of the stock.\r\n // MAXWAIT is 20 minutes, since we are 1 second loops.\r\n // 60 loops is 1 minute and 20 of those is 20 minutes\r\n final int MAXWAIT = 60 * 20;\r\n int counter = 0;\r\n do\r\n {\r\n try\r\n {\r\n Thread.currentThread().sleep(ONE_SECOND);\r\n }\r\n catch (InterruptedException exc)\r\n {\r\n // Do Nothing - Try again\r\n }\r\n if (counter++ > MAXWAIT)\r\n { // Abort the Lookup for historic data\r\n this.cancel();\r\n return -1;\r\n }\r\n }\r\n while (\"\".equals(sd.getSymbol().getDataSz().trim()));\r\n\r\n return 0;\r\n }", "@Override\n public boolean waitForNextFlight() {\n this.lock.lock();\n try {\n boolean wait = this.passengersStillMissing != 0;\n\n // update hostess state\n this.repository.updateHostessState(HostessState.WAIT_FOR_NEXT_FLIGHT);\n\n if (wait) {\n // wait for pilot\n while (!this.planeReadyForBoarding) {\n this.hostessWaitPlaneReadyToTakeOff.await();\n }\n this.planeReadyForBoarding = false;\n }\n\n return wait;\n } catch (InterruptedException e) {\n e.printStackTrace();\n } finally {\n this.lock.unlock();\n }\n return false;\n }", "public boolean isOn() throws Exception;", "public void checkOffTask() {\n isDone = true;\n }", "public boolean ready() {\n try {\n return in.available() > 0;\n } catch (IOException x) {\n return false;\n }\n }", "private void waitUntilReady() {\n\t\t\twhile (deque.isEmpty() && loadThread.isAlive()) {\n//\t\t\t\ttry {\n//\t\t\t\t\tThread.sleep(100);\n//\t\t\t\t} catch (InterruptedException e) {\n//\t\t\t\t\tExceptionUtils.throwAsRuntimeException(e);\n//\t\t\t\t}\n\t\t\t}\n\t\t}", "private void \n\tcheckFinished(\n\t\t\tboolean start_of_day )\n\t{\n\t\tfinal boolean all_pieces_done =disk_mgr.getRemainingExcludingDND() ==0;\n\n\t\tif (all_pieces_done)\n\t\t{\n\t\t\tseeding_mode\t= true;\n\t\t\t\n\t\t\tprefer_udp_bloom = null;\n\t\t\t\n\t\t\tpiecePicker.clearEndGameChunks();\n\n\t\t\tif (!start_of_day)\n\t\t\t\tadapter.setStateFinishing();\n\n\t\t\t_timeFinished = SystemTime.getCurrentTime();\n\t\t\tfinal ArrayList peer_transports = peer_transports_cow;\n\n\t\t\t//remove previous snubbing\n\t\t\tfor (int i =0; i <peer_transports.size(); i++ )\n\t\t\t{\n\t\t\t\tfinal PEPeerTransport pc = (PEPeerTransport) peer_transports.get(i);\n\t\t\t\tpc.setSnubbed(false);\n\t\t\t}\n\t\t\tsetNbPeersSnubbed(0);\n\n\t\t\tfinal boolean checkPieces =COConfigurationManager.getBooleanParameter( \"Check Pieces on Completion\" );\n\n\t\t\t//re-check all pieces to make sure they are not corrupt, but only if we weren't already complete\n\t\t\tif (checkPieces &&!start_of_day)\n\t\t\t{\n\t\t\t\tfinal DiskManagerCheckRequest req =disk_mgr.createCheckRequest(-1, new Integer(CHECK_REASON_COMPLETE));\n\t\t\t\tdisk_mgr.enqueueCompleteRecheckRequest(req, this);\n\t\t\t}\n\n\t\t\t_timeStartedSeeding = SystemTime.getCurrentTime();\n\n\t\t\ttry{\n\t\t\t\tdisk_mgr.saveResumeData(false);\n\t\t\t\t\n\t\t\t}catch( Throwable e ){\n\t\t\t\tDebug.out( \"Failed to save resume data\", e );\n\t\t\t}\n\t\t\tadapter.setStateSeeding( start_of_day );\n\t\t\tdisk_mgr.downloadEnded();\n\t\t} else\n\t\t{\n\t\t\tseeding_mode = false;\n\t\t}\n\t}" ]
[ "0.6673565", "0.6673565", "0.6668406", "0.6668406", "0.6668406", "0.6488215", "0.6488215", "0.64688194", "0.64588714", "0.6457555", "0.6371276", "0.632685", "0.6279802", "0.62740844", "0.6263598", "0.62074023", "0.6189832", "0.61757374", "0.6152679", "0.61392176", "0.6110905", "0.6094171", "0.60918844", "0.6059899", "0.6057933", "0.60243887", "0.6007342", "0.59785753", "0.59571785", "0.59489954", "0.59271514", "0.5914957", "0.5902809", "0.5890547", "0.5876654", "0.5870875", "0.5869481", "0.58592993", "0.58565444", "0.5834339", "0.5833025", "0.58321804", "0.5822737", "0.58209133", "0.5820066", "0.5807518", "0.58060783", "0.5796121", "0.57938534", "0.5787851", "0.57874775", "0.5783345", "0.5783345", "0.5779994", "0.57785237", "0.5777947", "0.5775586", "0.57748044", "0.5762714", "0.57612985", "0.5759927", "0.57468766", "0.5742584", "0.57422817", "0.574107", "0.5726546", "0.5714473", "0.57111645", "0.5709669", "0.57051414", "0.56910753", "0.5685942", "0.56810063", "0.5652116", "0.56510246", "0.56235754", "0.56185144", "0.56174624", "0.5611545", "0.5608876", "0.5606219", "0.5593061", "0.5593061", "0.5593061", "0.5593061", "0.5587893", "0.5586531", "0.55826634", "0.5579875", "0.5577925", "0.5572434", "0.557129", "0.5563945", "0.5557237", "0.5536575", "0.552267", "0.5516599", "0.5516256", "0.5514839", "0.5508229", "0.5504788" ]
0.0
-1
Creates buffer strategy with 3 buffers
public void render(){ BufferStrategy bs = getBufferStrategy(); if(bs == null){ createBufferStrategy(3); return; } //Sets graphics in screen and clears them Graphics g = bs.getDrawGraphics(); screen.graphics(g); screen.clear(); Graphics2D graphics2d = (Graphics2D) g; //Adds antialiasing to text graphics2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); manager.render(screen); for(int i = 0; i < WIDTH*HEIGHT; i++){ pixels[i] = screen.getPixels()[i]; } g.drawImage(image, 0, 0, getWidth(), getHeight(), null); //Draw text from string buffer for(StringObject so : screen.stringBuffer){ String s = so.string; g.setColor(so.color); g.setFont(so.font); g.drawString(s, so.xp, so.yp); } screen.stringBuffer.clear(); //Draws pause graphics if(screen.pause && manager.getState() == 2){ g.setColor(new Color((0xcc00aa & 0xff0000) >> 16, (0xcc00aa & 0xff00) >> 8, (0xcc00aa & 0xff), 255)); g.fillRect(0, 290, screen.getWidth(), 170); g.setColor(new Color((0x222222 & 0xff0000) >> 16, (0x222222 & 0xff00) >> 8, (0x222222 & 0xff), 255)); g.fillRect(0, 300, screen.getWidth(), 150); g.setColor(Color.WHITE); g.setFont(new Font("Audiowide", Font.PLAIN, 90)); g.drawString("PAUSED", 330, 380); g.setFont(new Font("Audiowide", Font.PLAIN, 30)); g.drawString("Press Escape to Resume", 340, 420); } g.dispose(); bs.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initBufferStrategy() {\n // Triple-buffering\n createBufferStrategy(3);\n bufferStrategy = getBufferStrategy();\n }", "abstract public Buffer createBuffer();", "private void get_buffer(Vector2 p0, Vector2 p1, Vector2 p2, Vector2 p3,\r\n\t\t\tint bufferCount) {\r\n\r\n\t\tbuffList.clear();\r\n\t\tdouble steps = 0;\r\n\t\tdouble step = 0.0;\r\n\t\tdouble t = 0.0;\r\n\t\tdouble tt = 0.0;\r\n\t\tdouble ttt = 0.0;\r\n\t\tdouble p0x = p0.x;\r\n\t\tdouble p1x = p1.x;\r\n\t\tdouble p2x = p2.x;\r\n\t\tdouble p3x = p3.x;\r\n\t\tdouble p0y = p0.y;\r\n\t\tdouble p1y = p1.y;\r\n\t\tdouble p2y = p2.y;\r\n\t\tdouble p3y = p3.y;\r\n\r\n\t\tint ipps = bufferCount;\r\n\r\n\t\tint i = 0;\r\n\t\tsteps = ipps - 1;\r\n\t\tif (steps > 0) {\r\n\t\t\tstep = 1.0 / steps;\r\n\t\t\tbuffList.add(new Vector2(p1.x, p1.y));\r\n\r\n\t\t\tfor (i = 1; i < steps; ++i) {\r\n\t\t\t\tt += step;\r\n\t\t\t\ttt = t * t;\r\n\t\t\t\tttt = tt * t;\r\n\t\t\t\tbuffList.add(new Vector2(0.5 * ((2 * p1x) + (-p0x + p2x) * t\r\n\t\t\t\t\t\t+ (2 * p0x - 5 * p1x + 4 * p2x - p3x) * tt + (-p0x + 3\r\n\t\t\t\t\t\t* p1x - 3 * p2x + p3x)\r\n\t\t\t\t\t\t* ttt), 0.5 * ((2 * p1y) + (-p0y + p2y) * t\r\n\t\t\t\t\t\t+ (2 * p0y - 5 * p1y + 4 * p2y - p3y) * tt + (-p0y + 3\r\n\t\t\t\t\t\t* p1y - 3 * p2y + p3y)\r\n\t\t\t\t\t\t* ttt)));\r\n\t\t\t}\r\n\t\t\tbuffList.add(new Vector2(p2.x, p2.y));\r\n\t\t}\r\n\t}", "abstract void allocateBuffers();", "private DFEVar[][] createBuffer(DFEVector<DFEVar> reference,\n\t\t\t DFEVar writeEnable,\n\t\t\t DFEVar[] writeAddress,\n\t\t\t DFEVar[] readAddress1,\n\t\t\t DFEVar[] readAddress2,\n\t\t\t DFEVar whichBuffer,\n\t\t\t int cyclesToReadAhead)\n\t{\n\t\tDFEVar[][] bufferOutput = new DFEVar[m_scalars.blockSize][m_scalars.blockSize + m_scalars.numPipes - 1];\n\t\tfor (int i = 0; i < m_scalars.blockSize; i++) {\n\t\t\tRamPortParams<DFEVector<DFEVar>> writePort = mem.makeRamPortParams(RamPortMode.WRITE_ONLY, writeAddress[0], reference.getType())\n\t\t\t .withDataIn(reference)\n .withWriteEnable((writeAddress[1] === i) & writeEnable);\n\n\t\t\tRamPortParams<DFEVector<DFEVar>> readPort1 = mem.makeRamPortParams(RamPortMode.READ_ONLY, readAddress1[i], reference.getType());\n\t\t\tRamPortParams<DFEVector<DFEVar>> readPort2 = mem.makeRamPortParams(RamPortMode.READ_ONLY, readAddress2[i], reference.getType());\n\n\t\t\tDFEVector<DFEVar> ram1 = mem.ramDualPort(m_scalars.bufferDepth, RamWriteMode.READ_FIRST, writePort, readPort1).getOutputB();\n\t\t\tDFEVector<DFEVar> ram2 = mem.ramDualPort(m_scalars.bufferDepth, RamWriteMode.READ_FIRST, writePort, readPort2).getOutputB();\n\n\t\t\tfor (int j = 0; j < cyclesToReadAhead; j++) {\n\t\t\t\tDFEVector<DFEVar> temp = whichBuffer ? stream.offset(ram2, j - cyclesToReadAhead + 1) : stream.offset(ram1, j - cyclesToReadAhead + 1);\n\t\t\t\tfor (int k = 0; k < m_scalars.numPipes; k++) {\n\t\t\t\t\tif (j * m_scalars.numPipes + k < bufferOutput[0].length) {\n\t\t\t\t\t\tbufferOutput[i][j * m_scalars.numPipes + k] = temp[k];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn bufferOutput;\n\t}", "public void initializeIOBuffers(){\n for(int i=0; i<outputBuffer.length; i++){\n outputBuffer[i] = new LinkedBlockingQueue();\n inputBuffer[i] = new LinkedBlockingQueue();\n }\n }", "private void initializeBuffers(){\n if(isDiskBufferEnabled){\n this.persistenceService = PersistenceService.getService();\n this.synonymyBuffer = persistenceService.getMapDatabase(WIKIDATA_SYNONYMY_BUFFER);\n this.hypernymyBuffer = persistenceService.getMapDatabase(WIKIDATA_HYPERNYMY_BUFFER);\n this.askBuffer = persistenceService.getMapDatabase(WIKIDATA_ASK_BUFFER);\n } else {\n this.synonymyBuffer = new ConcurrentHashMap<>();\n this.hypernymyBuffer = new ConcurrentHashMap<>();\n this.askBuffer = new ConcurrentHashMap<>();\n }\n }", "public IBuffer newBuffer();", "public BufferManager(Configuration configuration)\n {\n logger = configuration.getLogger (\"jacorb.orb.buffermanager\");\n\n try\n {\n this.time = configuration.getAttributeAsInteger(\"jacorb.bufferManagerMaxFlush\", 0);\n this.maxManagedBufferSize = configuration.getAttributeAsInteger(\"jacorb.maxManagedBufSize\", 22);\n this.threshold = configuration.getAttributeAsInteger(\"jacorb.bufferManagerThreshold\", 20);\n }\n catch (ConfigurationException ex)\n {\n logger.error (\"Error configuring the BufferManager\", ex);\n throw new INTERNAL (\"Unable to configure the BufferManager\");\n }\n \n try\n {\n expansionPolicy = (BufferManagerExpansionPolicy)\n configuration.getAttributeAsObject (\"jacorb.buffermanager.expansionpolicy\",\n DefaultExpansionPolicy.class.getName ());\n if (expansionPolicy instanceof Configurable)\n {\n ((Configurable)expansionPolicy).configure (configuration);\n }\n }\n catch (ConfigurationException e)\n {\n this.expansionPolicy = null;\n }\n \n bufferPool = initBufferPool(configuration, maxManagedBufferSize);\n \n // Partly prefill the cache with some buffers.\n int sizes [] = new int [] {1023, 2047};\n \n for (int i = 0; i < sizes.length; i++)\n {\n for( int min = 0; min < 10; min++ )\n {\n int position = calcLog(sizes[i]) - MIN_CACHE ;\n storeBuffer(position, new byte[sizes[i]]);\n }\n }\n \n if ( time > 0)\n {\n if (reaper != null)\n {\n // this is the case when\n // the BufferManager is re-configured\n reaper.dispose();\n }\n \n // create new reaper\n reaper = new Reaper(time);\n reaper.setName (\"BufferManager MaxCache Reaper\");\n reaper.setDaemon (true);\n reaper.start();\n }\n }", "private void initializeBuffers()\n\t{\n\t\t// format vertex data so it can be passed to openGL\n\t\tFloatBuffer vertexBuffer = \n\t\t\t\tUtility.floatArrayToBuffer(mesh.vertexData);\n\t\t \n\t // create a buffer object and store the vertex data there\n\t\tvertexBufferObject = glGenBuffers();\n\t\tglBindBuffer(GL_ARRAY_BUFFER, vertexBufferObject);\n\t\tglBufferData(GL_ARRAY_BUFFER, vertexBuffer, GL_STATIC_DRAW);\n\t\tglBindBuffer(GL_ARRAY_BUFFER, 0);\n\t\t\n\t\t// format index data so it can be passed to openGL\n\t\tShortBuffer indexDataBuffer = \n\t\t\t\tUtility.shortArrayToBuffer(mesh.indexData);\n\t\t\n\t\t// create a buffer object and store the index data there\n\t\tindexBufferObject = glGenBuffers();\n\t\tglBindBuffer(GL_ELEMENT_ARRAY_BUFFER, indexBufferObject);\n\t\tglBufferData(GL_ELEMENT_ARRAY_BUFFER, indexDataBuffer, GL_STATIC_DRAW);\n\t\tglBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);\n\t}", "private void assignBuffer(List<TupleReaderBinary> buffers, int bufferID) {\n\t\tif (readerBucketID < prevTotalBuckets && readerBucketID < numInputBuffers * currentGroup) {\n\t\t\tTupleReaderBinary readerBinary = new TupleReaderBinary(DatabaseCatalog.getInstance().getTempDirectory()\n\t\t\t\t\t+ \"/\" + instanceHashcode + \"_\" + (passNumber - 1) + \"_\" + readerBucketID);\n\t\t\treaderBinary.keyNames = ordering;\n\t\t\tbuffers.set(bufferID, readerBinary);\n\t\t\treaderBucketID++;\n\t\t} else {\n\t\t\tbuffers.set(bufferID, null);\n\t\t}\n\t}", "public void createBufferObjects(GL gl) {\n int[] vboIds = new int[2];\r\n GL11 gl11 = (GL11) gl;\r\n gl11.glGenBuffers(2, vboIds, 0);\r\n mVertexBufferObjectId = vboIds[0];\r\n mElementBufferObjectId = vboIds[1];\r\n\r\n // Upload the vertex data\r\n gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mVertexBufferObjectId);\r\n mVertexByteBuffer.position(0);\r\n gl11.glBufferData(GL11.GL_ARRAY_BUFFER, mVertexByteBuffer.capacity(), mVertexByteBuffer, GL11.GL_STATIC_DRAW);\r\n\r\n gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, mElementBufferObjectId);\r\n mIndexBuffer.position(0);\r\n gl11.glBufferData(GL11.GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer.capacity() * CHAR_SIZE, mIndexBuffer, GL11.GL_STATIC_DRAW);\r\n\r\n // We don't need the in-memory data any more\r\n mVertexBuffer = null;\r\n mVertexByteBuffer = null;\r\n mIndexBuffer = null;\r\n }", "private ByteBuffer concatBuffers(List<Object> buffers) throws Exception {\n\t/*\n var length = 0;\n for (var i = 0, l = buffers.length; i < l; ++i) length += buffers[i].length;\n var mergedBuffer = new Buffer(length);\n bufferUtil.merge(mergedBuffer, buffers);\n return mergedBuffer;*/\n\treturn Util.concatByteBuffer(buffers, 0);\n}", "public interface BufferUsageStrategy\n{\n ByteBuffer onTermAdded(final String destination,\n final long sessionId,\n final long channelId,\n final long termId,\n boolean isSender) throws Exception;\n}", "public static void buffer() {\n\n List<String> data = Utils.getData();\n\n int numberOfBuffers = 11;\n\n CountDownLatch latch = new CountDownLatch(numberOfBuffers);\n\n\n Observable.fromIterable(data).buffer(3).subscribe(new MyObserver<>(latch));\n\n Observable.fromIterable(data).buffer(2, 3).subscribe(new MyObserver<>(latch));\n\n Observable.fromIterable(data).buffer(2, 3, ArrayList::new).subscribe(new MyObserver<>(latch));\n\n Observable.fromIterable(data).buffer(2, HashSet::new).subscribe(new MyObserver<>(latch));\n\n /*\n Opening and closing windows defined\n */\n Observable.fromIterable(data).buffer((observer) -> {\n System.out.println(\"opening\");\n // Starts buffer collection window\n // For every onNext a buffer window is created.\n observer.onNext(\"opening-1\");\n observer.onNext(\"opening-2\");\n }, (value) -> {\n System.out.println(\"closing, value = \" + value);\n // Closes buffer collection window\n // Gets invoked for each onNext in opening indicator\n return Observable.just(value).delay(100L, TimeUnit.MICROSECONDS);\n }, HashSet::new).subscribe(new MyObserver<>(latch));\n\n /*\n Buffer with boundary observable\n */\n Observable.fromIterable(data).buffer((Observer<? super Integer> observer) -> {\n System.out.println(\"onNext - 1\");\n observer.onNext(1);\n observer.onNext(2);\n }).subscribe(new MyObserver<>(latch));\n\n /*\n 1. Buffer with boundary observable by providing some other in built observable\n 2. Create a buffer of 100 Microseconds\n */\n Observable.fromIterable(data)\n .buffer(Observable.interval(100L, TimeUnit.MICROSECONDS))\n .subscribe(new MyObserver<>(latch));\n\n Observable.fromIterable(data)\n .buffer(Observable.interval(100L, TimeUnit.MICROSECONDS), 4)\n .subscribe(new MyObserver<>(latch));\n\n Observable.fromIterable(data)\n .buffer(Observable.interval(100L, TimeUnit.MICROSECONDS), () -> new HashSet<>())\n .subscribe(new MyObserver<>(latch));\n\n\n /*\n Boundary supplier is being passed from callable.\n */\n Observable.fromIterable(data)\n .buffer(() -> Observable.interval(100L, TimeUnit.MICROSECONDS))\n .subscribe(new MyObserver<>(latch));\n\n\n Observable.fromIterable(data)\n .buffer(() -> Observable.interval(100L, TimeUnit.MICROSECONDS), HashSet::new)\n .subscribe(new MyObserver<>(latch));\n\n try {\n latch.await();\n } catch (InterruptedException e) {\n System.out.println(e.getMessage());\n }\n }", "protected abstract Buffer doCreateBuffer(byte[] data)\n throws BadParameterException, NoSuccessException;", "public Buffers(double[] data) {\n for (int i = 0; i < (data.length - size); i++) {\n double[] bufferData = new double[size];\n for (int j = 0; j < size; j++) {\n bufferData[j] = data[i + j];\n }\n buffers.add(bufferData);\n }\n }", "abstract public Buffer createBufferFromData(byte[] data, int size);", "interface BufferSupplier<T> {\n ReplayBuffer<T> call();\n }", "public interface ProductionBuffer {\n\t\n\tpublic int getMaxBufferSize();\n\t\n\tpublic int getCurrentBufferSize();\n\t\n\tpublic boolean isFull();\n\t\n\tpublic boolean isEmpty();\n\t\n\t//Add to the back of the buffer\n\tpublic boolean add(BufferSlot bs);\n\t\n\t//Remove from the front of the buffer\n\tpublic BufferSlot remove();\n\t\n\t//empties the buffer\n\tpublic void clear();\n\n}", "@Override\n\t\t\tpublic void setUpData(int index, int[][] data, int dataSetupIndex) {\n\t\t\t\tint[] vboIds = data[dataSetupIndex];\n\t\t\t\tif(vboIds[0]!=0) { // le nombre de point\n\t\t\t\t\t// suppression des buffer inutilisés\n\t\t\t\t\tgl.glDeleteBuffers(vboIds.length-1, vboIds,1);\n\t\t\t\t}\n\t\t\t\t// création de deux nouveaux buffer\n\t\t\t\tvboIds = new int[] {0,0,0,0}; // nbPoints, vertex + texture\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\t\t\t\t\n\t\t\t\tgl.glGenBuffers(3, vboIds, 1);\n\t\t\t\tdata[dataSetupIndex] = vboIds;\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// les points\n\t\t\t\tFloatBuffer vertices = Buffers.newDirectFloatBuffer(nbHeight*4*3); // 4 points de 3 coordonnées\n\t\t\t\tFloatBuffer text = Buffers.newDirectFloatBuffer(nbHeight*4*2);\n\t\t\t\tFloatBuffer normals = Buffers.newDirectFloatBuffer(nbHeight*4*3); // 4 points de 3 coordonnées\n\t\t\t\t\n\t\t\t\tfloat positiony=0;\n\t\t\t\tfor(int j = 0;j<nbHeight; j++) {\n\t\t\t\t\tint val = ms.getTheMap()[j][index]; \n\t\t\t\t\tif(val>0){\n\t\t\t\t\t\t// points BL, BR, UR, RL\n\t\t\t\t\t\tvertices.put(0f); vertices.put(positiony-blockHeight); vertices.put(-distance);\n\t\t\t\t\t\tvertices.put(blockWidth); vertices.put(positiony-blockHeight); vertices.put(-distance);\n\t\t\t\t\t\tvertices.put(blockWidth); vertices.put(positiony); vertices.put(-distance);\n\t\t\t\t\t\tvertices.put(0f); vertices.put(positiony); vertices.put(-distance);\n\t\t\t\t\t\t\n\t\t\t\t\t\tnormals.put(0f);normals.put(0f);normals.put(1f);\n\t\t\t\t\t\tnormals.put(0f);normals.put(0f);normals.put(1f);\n\t\t\t\t\t\tnormals.put(0f);normals.put(0f);normals.put(1f);\n\t\t\t\t\t\tnormals.put(0f);normals.put(0f);normals.put(1f);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// texture\n\t\t\t\t\t\tfloat[] coords = textCoords[val-1];\n\t\t\t\t\t\ttext.put(coords[0]); text.put(coords[3]);\n\t\t\t\t\t\ttext.put(coords[2]); text.put(coords[3]);\n\t\t\t\t\t\ttext.put(coords[2]); text.put(coords[1]);\n\t\t\t\t\t\ttext.put(coords[0]); text.put(coords[1]);\n\t\t\t\t\t}\n\t\t\t\t\tpositiony-=blockHeight;\n\t\t\t\t}\n\t\t\t\tvertices.flip();\n\t\t\t\ttext.flip();\n\t\t\t\tnormals.flip();\n\t\t\t\tvboIds[0] = vertices.limit() / 3; // nb points\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\n\t\t\t\t// les points\n\t\t\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, vboIds[1]);\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\t\t gl.glBufferData(GL.GL_ARRAY_BUFFER, vertices.limit() * Buffers.SIZEOF_FLOAT, vertices, GL.GL_STATIC_DRAW);\n\t\t gl.glBindBuffer(GL.GL_ARRAY_BUFFER, 0);\n\t\t\t\t\n\t\t // les textures\n\t\t gl.glBindBuffer(GL2.GL_ARRAY_BUFFER, vboIds[2]);\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\t\t gl.glBufferData(GL2.GL_ARRAY_BUFFER, text.limit() * Buffers.SIZEOF_FLOAT, text, GL.GL_STATIC_DRAW);\n\t\t gl.glBindBuffer(GL2.GL_ARRAY_BUFFER, 0);\n\t\t \n\t\t // normals\n\t\t\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, vboIds[3]);\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\t\t gl.glBufferData(GL.GL_ARRAY_BUFFER, normals.limit() * Buffers.SIZEOF_FLOAT, normals, GL.GL_STATIC_DRAW);\n\t\t gl.glBindBuffer(GL.GL_ARRAY_BUFFER, 0);\n\t\t \n\t\t\t}", "public BufMgr(int numbufs, String replacerArg) throws Exception {\n\t\t// initialization of the buffer variables\n\t\tpool = new byte[numbufs][GlobalConst.MINIBASE_PAGESIZE];\n\t\treplacer = replacerArg;\n\t\tthis.numbufs = numbufs;\n\t\tpageHashtable = new Hashtable(numbufs);\n\t\tSystemDefs.JavabaseBM = this;\n\t\tframeDescriptor = new Descriptor[numbufs];\n\t\tfor (int j = 0; j < frameDescriptor.length; j++) {\n\t\t\tframeDescriptor[j] = new Descriptor(-1);\n\t\t\tframeDescriptor[j].setDirty(false);\n\t\t}\n\t\t// checking the replacement policy\n\t\tif (replacer == \"Clock\") {\n\t\t\treplace = new Queue();\n\t\t} else\n\t\t\tthrow new UnsupportedOperationException(\n\t\t\t\t\t\"unsupported replacement policy type\");\n\t\t// enqueue all the frames\n\t\tfor (int frameNumber = 0; frameNumber < numbufs; frameNumber++) {\n\t\t\treplace.enqueue(frameNumber);\n\t\t}\n\t}", "protected abstract Buffer doCreateBuffer(int size)\n throws BadParameterException, NoSuccessException;", "public abstract int getBufferMode();", "public static Buffer createBuffer(String sagaFactoryClassname, byte[] data)\n throws BadParameterException, NoSuccessException {\n\tBufferFactory factory = getFactory(sagaFactoryClassname);\n return factory.doCreateBuffer(data);\n }", "public TestBuffer() {\n }", "public abstract void setBufferMode(int mode);", "private FloatBuffer createBuffer(int size)\n {\n // Need to allocate a byte buffer 4 times the size requested because the\n // size is treated as bytes, not number of floats.\n ByteBuffer buf = ByteBuffer.allocateDirect(size * 4);\n buf.order(ByteOrder.nativeOrder());\n FloatBuffer ret_val = buf.asFloatBuffer();\n\n return ret_val;\n }", "public static Buffer createBuffer(byte[] data)\n throws BadParameterException, NoSuccessException {\n\treturn createBuffer(null, data);\n }", "abstract public ByteString getBlocksBuffer();", "public OutputBuffer getBuffer (String name, boolean create) {\n OutputBuffer buffer;\n\n // If the map does not exist then the buffer cannot exist.\n if (buffers == null) {\n // If we have been asked to create the buffer then we need to create\n // the map as well.\n if (create) {\n buffers = new HashMap ();\n }\n buffer = null;\n } else {\n // See whether the buffer exists in the map.\n buffer = (OutputBuffer) buffers.get (name);\n }\n \n // If the buffer could not be found and we have been asked to create the\n // buffer if necessary then do so and add it into the map.\n if (buffer == null && create) {\n buffer = factory.createOutputBuffer ();\n buffers.put (name, buffer);\n }\n \n return buffer;\n }", "public static Buffer createBuffer(String sagaFactoryClassname) throws BadParameterException,\n NoSuccessException {\n BufferFactory factory = getFactory(sagaFactoryClassname);\n return factory.doCreateBuffer(-1);\n }", "FloatBuffer getInterleavedBuffers(float[] posDat, float[] colDat, float[]\n normDat, float[] texDat) {\n if (colDat == null && texDat == null) {\n throw new IllegalArgumentException(\"no color or texture\");\n }\n // interleaving pX,pY,pZ,r,g,b,a,nX,nY,nZ,u,v // 12*4 = 48bytes\n int posIndx = 0;\n int colIndx = 0;\n int norIndx = 0;\n int texIndx = 0;\n int size = posDat.length + normDat.length;\n size += (colDat != null) ? colDat.length : 0;\n size += (texDat != null) ? texDat.length : 0;\n int step = 3 + 3 + ((colDat != null) ? 4 : 0) + ((texDat != null) ? 2 : 0);\n float[] interleavedData = new float[size];\n// Log.e(\"InterleavedBuffers\", \"size=\" + size + \", step=\" + step);\n int i = 0;\n while(i < size){\n interleavedData[i + 0] = posDat[posIndx + 0];\n interleavedData[i + 1] = posDat[posIndx + 1];\n interleavedData[i + 2] = posDat[posIndx + 2];\n posIndx += 3;\n i += 3;\n if (colDat != null) {\n interleavedData[i + 0] = colDat[colIndx + 0];\n interleavedData[i + 1] = colDat[colIndx + 1];\n interleavedData[i + 2] = colDat[colIndx + 2];\n interleavedData[i + 3] = colDat[colIndx + 3];\n colIndx += 4;\n i += 4;\n }\n interleavedData[i + 0] = normDat[norIndx + 0];\n interleavedData[i + 1] = normDat[norIndx + 1];\n interleavedData[i + 2] = normDat[norIndx + 2];\n norIndx += 3;\n i += 3;\n if (texDat != null) {\n interleavedData[i + 0] = texDat[texIndx + 0];\n interleavedData[i + 1] = texDat[texIndx + 1];\n texIndx += 2;\n i += 2;\n }\n }\n final FloatBuffer buffer;\n\n buffer = floatArrayToFloatBuffer(interleavedData);\n\n return buffer;\n }", "private void mkMesh()\n\t{\n\t\t/* this initialises the the two FloatBuffer objects */\n\t\n\t\tfloat vertices[] = {\n\t\t\t-0.5f, -0.5f, 0.0f,\t\t// V1 - bottom left\n\t\t\t-0.5f, 0.5f, 0.0f,\t\t// V2 - top left\n\t\t\t 0.5f, -0.5f, 0.0f,\t\t// V3 - bottom right\n\t\t\t 0.5f, 0.5f, 0.0f\t\t\t// V4 - top right\n\t\t\t};\n\t\tfloat texture[] = { \t\t\n\t\t\t// Mapping coordinates for the vertices\n\t\t\t0.0f, 1.0f,\t\t// top left\t\t(V2)\n\t\t\t0.0f, 0.0f,\t\t// bottom left\t(V1)\n\t\t\t1.0f, 1.0f,\t\t// top right\t(V4)\n\t\t\t1.0f, 0.0f\t\t// bottom right\t(V3)\n\t\t\t};\n\t\t/* cache the number of floats in the vertices data */\n\t\tvertexCount = vertices.length;\n\t\t\n\t\t// a float has 4 bytes so we allocate for each coordinate 4 bytes\n\t\tByteBuffer byteBuffer = ByteBuffer.allocateDirect(vertices.length * 4);\n\t\tbyteBuffer.order(ByteOrder.nativeOrder());\n\t\t\n\t\t// allocates the memory from the byte buffer\n\t\tvertexBuffer = byteBuffer.asFloatBuffer();\n\t\t\n\t\t// fill the vertexBuffer with the vertices\n\t\tvertexBuffer.put(vertices);\n\t\t\n\t\t// set the cursor position to the beginning of the buffer\n\t\tvertexBuffer.position(0);\n\t\t\n\t\tbyteBuffer = ByteBuffer.allocateDirect(texture.length * 4);\n\t\tbyteBuffer.order(ByteOrder.nativeOrder());\n\t\ttextureBuffer = byteBuffer.asFloatBuffer();\n\t\ttextureBuffer.put(texture);\n\t\ttextureBuffer.position(0);\n\t}", "public static Buffer createBuffer(String sagaFactoryClassname, int size) throws BadParameterException, \n NoSuccessException {\n\tBufferFactory factory = getFactory(sagaFactoryClassname);\n return factory.doCreateBuffer(size);\n }", "public BufferPool(String fileName, int numBuffers)\n throws IOException\n {\n BLOCK_SIZE = 4096;\n // create linked list of buffers, open file, create pointer tempArray\n this.pool = new LinkedList<Buffer>();\n this.buffArr = new Buffer[numBuffers];\n this.file = new RandomAccessFile(fileName, \"rw\");\n this.tempArray = new byte[BLOCK_SIZE];\n\n // initialize all the statistics to zero\n cacheHits = cacheMisses = diskReads = diskWrites = 0;\n\n Buffer newBuf;\n // initialize the appropriate number of buffers\n for (int i = 0; i < numBuffers; i++)\n {\n newBuf = new Buffer(tempArray, -1);\n pool.append(newBuf);\n buffArr[i] = newBuf;\n }\n }", "public void toBuffer(ByteBufWrapper paramhd)\r\n/* 23: */ {\r\n/* 24:40 */ paramhd.a(a.toJson(this.b));\r\n/* 25: */ }", "abstract public Buffer createBufferFromString(String data);", "private static void convertToBuffers(ArrayList<DecompressedLine> lines, float _l0, float _b0, PfssDecompressed _frame)\n\t{\n\t\tint stoSize = 0;\n\t\tint stsSize = 0;\n\t\tint otsSize = 0;\n\t\tint totalSize = 0;\n\t\tfor (int i = 0; i < lines.size(); i++)\n\t\t{\n\t\t\tDecompressedLine currentLine = lines.get(i);\n\n\t\t\tDecompressedLine subsampledLine = new DecompressedLine(currentLine.points, currentLine.getType());\n\t\t\tlines.set(i, subsampledLine);\n\t\t\tswitch (subsampledLine.getType())\n\t\t\t{\n\t\t\t\tcase OUTSIDE_TO_SUN:\n\t\t\t\t\totsSize += subsampledLine.getSize() - 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase SUN_TO_OUTSIDE:\n\t\t\t\t\tstoSize += subsampledLine.getSize() - 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase SUN_TO_SUN:\n\t\t\t\t\tstsSize += subsampledLine.getSize() - 1;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\ttotalSize += subsampledLine.getSize();\n\t\t}\n\n\t\t// copy to buffers\n\t\tFloatBuffer vertices = Buffers.newDirectFloatBuffer(totalSize * 3);\n\t\tIntBuffer indicesSunToOutside = Buffers.newDirectIntBuffer(stoSize * 2);\n\t\tIntBuffer indicesSunToSun = Buffers.newDirectIntBuffer(stsSize * 2);\n\t\tIntBuffer indicesOutsideToSun = Buffers.newDirectIntBuffer(otsSize * 2);\n\n\t\tint vertexIndex = 0;\n\t\tfor (DecompressedLine line : lines)\n\t\t{\n\t\t\tIntBuffer indexBuffer = getLineType(line.getType(), indicesSunToOutside, indicesSunToSun, indicesOutsideToSun);\n\n\t\t\tint pointIndex = 0;\n\t\t\twhile (pointIndex + 1 < line.getSize())\n\t\t\t{\n\t\t\t\tDecompressedPoint point = line.getPoint(pointIndex);\n\t\t\t\tvertices.put(point.getX());\n\t\t\t\tvertices.put(point.getY());\n\t\t\t\tvertices.put(point.getZ());\n\t\t\t\tindexBuffer.put(vertexIndex);\n\t\t\t\tindexBuffer.put(vertexIndex + 1);\n\t\t\t\tvertexIndex++;\n\t\t\t\tpointIndex++;\n\t\t\t}\n\t\t\tDecompressedPoint point = line.getPoint(pointIndex);\n\t\t\tvertices.put(point.getX());\n\t\t\tvertices.put(point.getY());\n\t\t\tvertices.put(point.getZ());\n\t\t\tvertexIndex++;\n\t\t}\n\n\t\tvertices.flip();\n\t\tindicesSunToOutside.flip();\n\t\tindicesOutsideToSun.flip();\n\t\tindicesSunToSun.flip();\n\t\t_frame.setLoadedData(vertices, indicesSunToOutside, indicesSunToSun, indicesOutsideToSun, _l0, _b0);\n\t}", "public static FloatBuffer createFloatBuffer(int floats) {\n SimpleLogger.d(BufferUtils.class, \"Creating float buffer with float size: \" + floats);\n return ByteBuffer.allocateDirect(floats * 4).order(ByteOrder.nativeOrder()).asFloatBuffer();\n }", "ChunkCachingProtocol.Factory getChunkCachingProtocolFactory();", "protected CoarseMeBuffer(CoarseMeScalars scalars) {\n\t\tsuper(scalars.getKernel());\n\t\tstream.suppressOffsetVectorWarnings();\n\n\t\tm_scalars = scalars;\n\t\tm_addressType = dfeUInt(MathUtils.bitsToAddress(scalars.bufferDepth));\n\n\t\tCoarseMeBufferControl buffCtrl = new CoarseMeBufferControl(scalars);\n\t\tm_outputEnable = buffCtrl.getOutputEnable();\n\n\t\tDFEVectorType<DFEVar> type = new DFEVectorType<DFEVar>(dfeUInt(16), scalars.numPipes);\n\t\tDFEVector<DFEVar> reference = io.input(\"reference\", type, buffCtrl.getReferenceInputEnable());\n\n\t\tDFEVar[] writeAddress = getWriteAddress(buffCtrl.getReferenceInputEnable());\n\n\t\tDFEVar[] readAddress1 = getReadAddresses(buffCtrl.getReadEnableBuffer1(), 0);\n\t\tDFEVar[] readAddress2 = getReadAddresses(buffCtrl.getReadEnableBuffer2(), 1);\n\n\t\tint cyclesToReadAhead = MathUtils.ceilDivide(scalars.blockSize + scalars.numPipes - 1, scalars.numPipes);\n\n\t\tDFEVar[][] bufferOutput = createBuffer(reference, buffCtrl.getReferenceInputEnable(),\n\t\t\t\t writeAddress, readAddress1, readAddress2,\n\t\t\t\t buffCtrl.getWhichBuffer(), cyclesToReadAhead);\n\n\t\tDFEVar rotate = buffCtrl.getWhichBuffer() ? stream.offset(readAddress2[scalars.blockSize], -cyclesToReadAhead)\n : stream.offset(readAddress1[scalars.blockSize], -cyclesToReadAhead);\n\n\t\tm_bufferOutput = rotateBlock(bufferOutput, rotate);\n\n\n\t}", "public Producer(Buffer buff) {\n buffer = buff;\n }", "private Buffer getBufferByPosition(int pos)\n throws IOException\n {\n return getBuffer(pos / BLOCK_SIZE);\n }", "BOp createBOp();", "public TextBuffer constructTextBuffer()\n/* */ {\n/* 137 */ return new TextBuffer(this._bufferRecycler);\n/* */ }", "public CoalescingBufferQueue(Channel channel)\r\n/* 15: */ {\r\n/* 16:40 */ this(channel, 4);\r\n/* 17: */ }", "public BufferMonitor(Buffer b, int consumersNumber, int producersNumber){\n this.b = b;\n this.numberOfPortionInBuffer = 0;\n isFirstProducer = 0;\n isFirstConsumer = 0;\n firstProducer = lock.newCondition();\n firstConsumer = lock.newCondition();\n consumersQueue = lock.newCondition();\n producersQueue = lock.newCondition();\n }", "public BlitQueue(SDLSurface src, int count) {\n\tthis.src = src;\n\tSystem.out.println(\"count=\" + count);\n\n\tByteBuffer buf = null;\n\n\tbuf = ByteBuffer.allocateDirect(count*4);\n\tbuf.order(ByteOrder.nativeOrder());\n\tthis.srcX = buf.asIntBuffer();\n\n\tbuf = ByteBuffer.allocateDirect(count*4);\n\tbuf.order(ByteOrder.nativeOrder());\n\tthis.srcY = buf.asIntBuffer();\n\n\tbuf = ByteBuffer.allocateDirect(count*4);\n\tbuf.order(ByteOrder.nativeOrder());\n\tthis.srcWidth = buf.asIntBuffer();\n\n\tbuf = ByteBuffer.allocateDirect(count*4);\n\tbuf.order(ByteOrder.nativeOrder());\n\tthis.srcHeight = buf.asIntBuffer();\n\n\tbuf = ByteBuffer.allocateDirect(count*4);\n\tbuf.order(ByteOrder.nativeOrder());\n\tthis.dstX = buf.asIntBuffer();\n\n\tbuf = ByteBuffer.allocateDirect(count*4);\n\tbuf.order(ByteOrder.nativeOrder());\n\tthis.dstY = buf.asIntBuffer();\n\n\tbuf = ByteBuffer.allocateDirect(count*4);\n\tbuf.order(ByteOrder.nativeOrder());\n\tthis.dstWidth = buf.asIntBuffer();\n\n\tbuf = ByteBuffer.allocateDirect(count*4);\n\tbuf.order(ByteOrder.nativeOrder());\n\tthis.dstHeight = buf.asIntBuffer();\n }", "@Override\n public void onBuffering(int percent) {\n }", "public void initBuffers(VrState state);", "@Override\n\tpublic void builder(ByteBuffer buffer) {\n\t\tsetV(buffer);\n\t\tsetO(buffer);\n\t\tsetT(buffer);\n\t\tsetLen(buffer);\n\t\tsetContents(buffer);\n\t\tsetTotalByteLength();\n\t}", "@Override\r\n\tpublic Buffer setBuffer(int pos, Buffer b) {\n\t\treturn null;\r\n\t}", "void createDummyPbufferSurface();", "public void build_buffers(float[] color /*RGBA*/) {\n int i;\n int offset = 0;\n final float[] vertexData = new float[\n mVertices.size() / 3\n * STRIDE_IN_FLOATS];\n\n float vx, vy, vz;\n\n /*\n * loop to generate vertices.\n */\n for (i = 0; i < mVertices.size(); i += 3) {\n\n vertexData[offset++] = mVertices.get(i + 0);\n vertexData[offset++] = mVertices.get(i + 1);\n vertexData[offset++] = mVertices.get(i + 2);\n\n vertexData[offset++] = 0.0f; // set normal to zero for now\n vertexData[offset++] = 0.0f;\n vertexData[offset++] = 0.0f;\n\n if (mHaveMaterialColor) {\n vertexData[offset++] = mColors.get(i + 0);\n vertexData[offset++] = mColors.get(i + 1);\n vertexData[offset++] = mColors.get(i + 2);\n vertexData[offset++] = 1.0f; // TODO: unwire the alpha?\n } else {\n // color value\n vertexData[offset++] = color[0];\n vertexData[offset++] = color[1];\n vertexData[offset++] = color[2];\n vertexData[offset++] = color[3];\n }\n }\n\n // calculate the normal,\n // set it in the packed VBO.\n // If current normal is non-zero, average it with previous value.\n\n int v1i, v2i, v3i;\n for (i = 0; i < mIndices.size(); i += 3) {\n v1i = mIndices.get(i + 0) - 1;\n v2i = mIndices.get(i + 1) - 1;\n v3i = mIndices.get(i + 2) - 1;\n\n v1[0] = mVertices.get(v1i * 3 + 0);\n v1[1] = mVertices.get(v1i * 3 + 1);\n v1[2] = mVertices.get(v1i * 3 + 2);\n\n v2[0] = mVertices.get(v2i * 3 + 0);\n v2[1] = mVertices.get(v2i * 3 + 1);\n v2[2] = mVertices.get(v2i * 3 + 2);\n\n v3[0] = mVertices.get(v3i * 3 + 0);\n v3[1] = mVertices.get(v3i * 3 + 1);\n v3[2] = mVertices.get(v3i * 3 + 2);\n\n n = XYZ.getNormal(v1, v2, v3);\n\n vertexData[v1i * STRIDE_IN_FLOATS + 3 + 0] = n[0] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v1i * STRIDE_IN_FLOATS + 3 + 1] = n[1] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v1i * STRIDE_IN_FLOATS + 3 + 2] = n[2] * NORMAL_BRIGHTNESS_FACTOR;\n\n vertexData[v2i * STRIDE_IN_FLOATS + 3 + 0] = n[0] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v2i * STRIDE_IN_FLOATS + 3 + 1] = n[1] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v2i * STRIDE_IN_FLOATS + 3 + 2] = n[2] * NORMAL_BRIGHTNESS_FACTOR;\n\n vertexData[v3i * STRIDE_IN_FLOATS + 3 + 0] = n[0] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v3i * STRIDE_IN_FLOATS + 3 + 1] = n[1] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v3i * STRIDE_IN_FLOATS + 3 + 2] = n[2] * NORMAL_BRIGHTNESS_FACTOR;\n\n }\n\n /*\n * debug - print out list of formated vertex data\n */\n// for (i = 0; i < vertexData.length; i+= STRIDE_IN_FLOATS) {\n// vx = vertexData[i + 0];\n// vy = vertexData[i + 1];\n// vz = vertexData[i + 2];\n// String svx = String.format(\"%6.2f\", vx);\n// String svy = String.format(\"%6.2f\", vy);\n// String svz = String.format(\"%6.2f\", vz);\n//\n// Log.w(\"data \", i + \" x y z \"\n// + svx + \" \" + svy + \" \" + svz + \" and color = \"\n// + vertexData[i + 6] + \" \" + vertexData[i + 7] + \" \" + vertexData[i + 8]);\n// }\n\n final FloatBuffer vertexDataBuffer = ByteBuffer\n .allocateDirect(vertexData.length * BYTES_PER_FLOAT)\n .order(ByteOrder.nativeOrder())\n .asFloatBuffer();\n vertexDataBuffer.put(vertexData).position(0);\n\n if (vbo[0] > 0) {\n GLES20.glDeleteBuffers(1, vbo, 0);\n }\n GLES20.glGenBuffers(1, vbo, 0);\n\n if (vbo[0] > 0) {\n GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, vbo[0]);\n GLES20.glBufferData(GLES20.GL_ARRAY_BUFFER, vertexDataBuffer.capacity() * BYTES_PER_FLOAT,\n vertexDataBuffer, GLES20.GL_STATIC_DRAW);\n\n // GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, 0);\n } else {\n // errorHandler.handleError(ErrorHandler.ErrorType.BUFFER_CREATION_ERROR, \"glGenBuffers\");\n throw new RuntimeException(\"error on buffer gen\");\n }\n\n /*\n * create the buffer for the indices\n */\n offset = 0;\n int x;\n final short[] indexData = new short[mIndices.size()];\n for (x = 0; x < mIndices.size(); x++) {\n\n short index = mIndices.get(x).shortValue();\n indexData[offset++] = --index;\n }\n mTriangleIndexCount = indexData.length;\n\n /*\n * debug - print out list of formated vertex data\n */\n// short ix, iy, iz;\n// for (i = 0; i < indexData.length; i += 3) {\n// ix = indexData[i + 0];\n// iy = indexData[i + 1];\n// iz = indexData[i + 2];\n//\n// Log.w(\"data \", i + \" i1 i2 i3 \"\n// + ix + \" \" + iy + \" \" + iz );\n// }\n\n final ShortBuffer indexDataBuffer = ByteBuffer\n .allocateDirect(indexData.length * BYTES_PER_SHORT).order(ByteOrder.nativeOrder())\n .asShortBuffer();\n indexDataBuffer.put(indexData).position(0);\n\n if (ibo[0] > 0) {\n GLES20.glDeleteBuffers(1, ibo, 0);\n }\n GLES20.glGenBuffers(1, ibo, 0);\n if (ibo[0] > 0) {\n GLES20.glBindBuffer(GLES20.GL_ELEMENT_ARRAY_BUFFER, ibo[0]);\n GLES20.glBufferData(GLES20.GL_ELEMENT_ARRAY_BUFFER,\n indexDataBuffer.capacity()\n * BYTES_PER_SHORT, indexDataBuffer, GLES20.GL_STATIC_DRAW);\n GLES20.glBindBuffer(GLES20.GL_ELEMENT_ARRAY_BUFFER, 0);\n GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, 0);\n } else {\n // errorHandler.handleError(ErrorHandler.ErrorType.BUFFER_CREATION_ERROR, \"glGenBuffers\");\n throw new RuntimeException(\"error on buffer gen\");\n }\n }", "public DataBuffer createDataBuffer() {\n DataBuffer dataBuffer = null;\n\n int size = getBufferSize();\n switch (dataType) {\n case DataBuffer.TYPE_BYTE:\n dataBuffer = new DataBufferByte(size, numBanks);\n break;\n case DataBuffer.TYPE_USHORT:\n dataBuffer = new DataBufferUShort(size, numBanks);\n break;\n case DataBuffer.TYPE_SHORT:\n dataBuffer = new DataBufferShort(size, numBanks);\n break;\n case DataBuffer.TYPE_INT:\n dataBuffer = new DataBufferInt(size, numBanks);\n break;\n case DataBuffer.TYPE_FLOAT:\n dataBuffer = new DataBufferFloat(size, numBanks);\n break;\n case DataBuffer.TYPE_DOUBLE:\n dataBuffer = new DataBufferDouble(size, numBanks);\n break;\n }\n\n return dataBuffer;\n }", "synchronized public void sendBuffer(int[] buff, int width) throws IOException\n\t{\n\t\t\n\t\tbuffer=ByteBuffer.allocate(buff.length*3);\n\t\t\n\t\tint[][] arr=new int[width][buff.length/width];\n\t\tint x=0;\n\t\tfor(int i=0;i<arr[0].length;i++)\n\t\t{\n\t\t\tfor(int j=0;j<arr.length;j++)\n\t\t\t{\n\t\t\t\tarr[j][i]=buff[x++];\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=1;i<arr[0].length;i+=2)\n\t\t{\n\t\t\tfor(int j=0;j<arr.length/2;j++)\n\t\t\t{\n\t\t\t\tint temp=arr[j][i];\n\t\t\t\tarr[j][i]=arr[arr.length-j-1][i];\n\t\t\t\tarr[arr.length-j-1][i]=temp;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<arr[0].length;i++)\n\t\t{\n\t\t\tfor(int j=0;j<arr.length;j++)\n\t\t\t{\n\t\t\t\tColor color=new Color(arr[j][i]);\n\t\t\t\tbuffer.put((byte) color.getRed());\n\t\t\t\tbuffer.put((byte) color.getGreen());\n\t\t\t\tbuffer.put((byte) color.getBlue());\n\t\t\t}\n\t\t}\n\t\t\n\t\t//System.out.println(\"lights length: \"+buff.length);\n\t\t\n\t\t//this works, I think?\n\t\t/*for (int i = 0; i < buff.length; i++)\n\t\t{\n\t\t\tColor color = new Color(buff[i]);\n\t\t\tbuffer.put((byte) color.getRed());\n\t\t\tbuffer.put((byte) color.getGreen());\n\t\t\tbuffer.put((byte) color.getBlue());\n\t\t}*/\n\t\t\n\t\tout.write(buffer.array());\n\t\t\n\t\t/*for (int i = 0; i < buff.length; i++)\n\t\t{\n\t\t\tColor color = new Color(buff[i]);\n\t\t\tif(i==0)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Color: \"+color);\n\t\t\t\tSystem.out.println(\"B: \"+(byte)(color.getBlue()));\n\t\t\t\tSystem.out.println(\"R: \"+(byte)(color.getRed()));\n\t\t\t\tSystem.out.println(\"G: \"+(byte)(color.getGreen()));\n\t\t\t}\n\t\t\tout.write((byte)(color.getBlue()*0.1));\n\t\t\tout.write((byte)(color.getRed()*0.1));\n\t\t\tout.write((byte)(color.getGreen()*0.1));\n\t\t\tout.flush();\n\t\t}*/\n\t\t/*int[][] arr=new int[width][buff.length/width];\n\t\tint x=0;\n\t\tfor(int i=0;i<arr[0].length;i++)\n\t\t{\n\t\t\tfor(int j=0;j<arr.length;j++)\n\t\t\t{\n\t\t\t\tarr[j][i]=buff[x++];\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=1;i<arr[0].length;i+=2)\n\t\t{\n\t\t\tfor(int j=0;j<arr.length/2;j++)\n\t\t\t{\n\t\t\t\tint temp=arr[j][i];\n\t\t\t\tarr[j][i]=arr[arr.length-j-1][i];\n\t\t\t\tarr[arr.length-j-1][i]=temp;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<arr[0].length;i++)\n\t\t{\n\t\t\tfor(int j=0;j<arr.length;j++)\n\t\t\t{\n\t\t\t\tColor color=new Color(arr[j][i]);\n\t\t\t\tout.write((byte)color.getBlue()); //blue\n\t\t\t\tout.write((byte)color.getRed()); //red\n\t\t\t\tout.write((byte)color.getGreen()); // green\n\t\t\t\tout.flush();\n\t\t\t}\n\t\t}*/\n\t\t\n\t\t/*for(int i=0;i<buff.length;i++)\n\t\t{\n\t\t\tColor color=new Color(buff[i]);\n\t\t\tout.write((byte)color.getBlue()); //blue\n\t\t\tout.write((byte)color.getRed()); //red\n\t\t\tout.write((byte)color.getGreen()); // green\n\t\t\tout.flush();\n\t\t}*/\n\t}", "public ByteBuffer[] nioBuffers(int index, int length)\r\n/* 306: */ {\r\n/* 307:320 */ return new ByteBuffer[] { nioBuffer(index, length) };\r\n/* 308: */ }", "public void createMesh(GL2 gl){\r\n\t\tfor(int x = 0; x < chunkSize; x++){\r\n\t\t\tfor(int y = 0; y < chunkHeight; y++){\r\n\t\t\t\tfor(int z = 0; z < chunkSize; z++){\r\n\t\t\t\t\tif(y + pos[1]*chunkHeight <= ChunkManager.map2D(x + pos[0]*chunkSize, z + pos[2]*chunkSize)){\r\n\t\t\t\t\t\tblocks[x][y][z] = (byte) (2.7*(y+pos[1]*chunkHeight)/13+1); // Initialize each block\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tblocks[x][y][z] = 0;\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\tvertexCount = 0;\r\n\t\t// Allocate the buffers (Change to one buffer, or use short/byte buffer for normals and color)\r\n\t\tvertexData = Buffers.newDirectFloatBuffer(chunkSize*chunkSize*chunkSize*18*3);\r\n\t\tnormalData = Buffers.newDirectFloatBuffer(chunkSize*chunkHeight*chunkSize*18*3);\r\n\t\tcolorsData = Buffers.newDirectFloatBuffer(chunkSize*chunkSize*chunkSize*18*3);\r\n\t\tfor(int x = 0; x < chunkSize; x++){\r\n\t\t\tfor(int y = 0; y < chunkHeight; y++){\r\n\t\t\t\tfor(int z = 0; z < chunkSize; z++){\r\n\t\t\t\t\tif(BlockType.isActive(blocks[x][y][z])){\r\n\t\t\t\t\t\tcreateCube(x, y, z); // If the cube is active, add it to the Buffer\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// correct the buffer size, and rewind\r\n\t\tnormalData.flip();\r\n\t\tvertexData.flip();\r\n\t\tcolorsData.flip();\r\n\t\tgl.glGenBuffers(3, buffer, 0); // allocate the buffers and get IDs\r\n\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, buffer[0]);\r\n\t\tgl.glBufferData(GL.GL_ARRAY_BUFFER, vertexCount*3*4, vertexData, GL.GL_DYNAMIC_DRAW);\r\n\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, buffer[1]);\r\n\t\tgl.glBufferData(GL.GL_ARRAY_BUFFER, vertexCount*3*4, normalData, GL.GL_DYNAMIC_DRAW);\r\n\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, buffer[2]);\r\n\t\tgl.glBufferData(GL.GL_ARRAY_BUFFER, vertexCount*3*4, colorsData, GL.GL_DYNAMIC_DRAW);\r\n\t\t// set buffer as null now that it's done being used, hope it will be garbage collected\r\n\t\tvertexData = null;\r\n\t\tnormalData = null;\r\n\t\tcolorsData = null;\t\t\r\n\t}", "public static FloatBuffer createVector3Buffer(FloatBuffer buf, int vertices) {\n if (buf != null && buf.limit() == 3 * vertices) {\n buf.rewind();\n return buf;\n }\n\n return createFloatBuffer(3 * vertices);\n }", "private RecordBuffer prepareRecordBuffer(ScanStrategy strategy, NetFlow flowInterface) {\n if (strategy == null) {\n throw new IllegalArgumentException(\"Expected ScanStrategy instance, got null\");\n }\n\n if (flowInterface == null) {\n throw new IllegalArgumentException(\"Expected NetFlow instance, got null\");\n }\n\n // Depending on different strategy we either skip file directly, return full buffer or records,\n // or return filtering buffer, if there is a FilterScan.\n boolean isCompressed = header.isCompressed();\n int recordSize = flowInterface.recordSize();\n\n if (strategy.skipScan()) {\n log.info(\"Skip scan based on strategy \" + strategy);\n return new EmptyRecordBuffer();\n } else if (strategy.fullScan()) {\n log.info(\"Full scan based on strategy \" + strategy + \", ignoreCorrupt=\" + ignoreCorrupt);\n // wrap into closeable iterator\n return new ScanRecordBuffer(in, strategy.getRecordMaterializer(), recordSize, byteOrder,\n isCompressed, bufferLength, ignoreCorrupt);\n } else {\n log.info(\"Filter scan based on strategy \" + strategy + \", ignoreCorrupt=\" + ignoreCorrupt);\n return new FilterRecordBuffer(in, strategy.getRecordMaterializer(), recordSize, byteOrder,\n isCompressed, bufferLength, ignoreCorrupt);\n }\n }", "protected void initBuffer() throws IOException {\n if (buf != null) {\r\n Util.disposeDirectByteBuffer(buf);\r\n }\r\n // this check is overestimation:\r\n int size = bufferNumLength << Main.log2DataLength;\r\n assert (size > 0);\r\n if (Main.debug) { System.out.println(\"Allocating direct buffer of \"+bufferNumLength+\" ints.\"); }\r\n buf = ByteBuffer.allocateDirect(size).order(Main.byteOrder);\r\n buf.clear();\r\n }", "public abstract void addBuffer(Array<Array<Boolean>> pattern);", "private BufferUtil() {\n\n }", "List<TrackerPayload> getBuffer();", "public void outputBuffers ()\n\t{\n\t\toutput (\"\\n> (buffers)\\n\");\n\t\tif (model!=null) model.outputBuffers();\n\t}", "byte [] getBuffer ();", "public static Buffer createBuffer() throws BadParameterException,\n NoSuccessException {\n\treturn createBuffer((String)null);\n }", "public ResourceHolder<ByteBuffer> getMergeBuffer()\n {\n final ByteBuffer buffer = mergeBuffers.pop();\n return new ResourceHolder<ByteBuffer>()\n {\n @Override\n public ByteBuffer get()\n {\n return buffer;\n }\n\n @Override\n public void close()\n {\n mergeBuffers.add(buffer);\n }\n };\n }", "PCThreads(int concurrency, Buffer _myBuffer){\n switch(concurrency){\n case 1: // little concurrency initialization\n numOfProducers=_littleP;\n numOfConsumers=_littleC;\n break;\n case 2: // average concurrency initialization\n numOfProducers=_averageP;\n numOfConsumers=_averageC;\n break;\n case 3: // lot concurrency initialization\n numOfProducers=_lotP;\n numOfConsumers=_lotC;\n break;\n }\n threadProducer = new Thread[numOfProducers];\n threadConsumer = new Thread[numOfConsumers];\n // creates the threads and set thread priority\n for (int i = 0; i < numOfProducers; i++) {\n threadProducer[i] = new Thread(new Producer(_myBuffer,\n \"P\" + String.valueOf(i)));\n threadProducer[i].setPriority(_prodPriority);\n }\n for (int i = 0; i < numOfConsumers; i++) {\n threadConsumer[i] = new Thread(new Consumer(_myBuffer,\n \"C\" + String.valueOf(i)));\n threadConsumer[i].setPriority(_consPriority);\n }\n }", "@Override\n\tpublic void init () {\n\t\tframeBuffers = new FrameBuffer[getPassQuantity()];\n\t\tpassShaderProviders = new ShaderProvider[getPassQuantity()];\n\n\t\tfor (int i = 0; i < getPassQuantity(); i++) {\n\t\t\tinit(i);\n\t\t}\n\t}", "public ProdCons(int nbBuffer) {\n\t\tsetSize(nbBuffer);\n\t\tbuffer = new Message[nbBuffer];\n\t\tnotFull = new Semaphore(nbBuffer);\n\t\tnotEmpty = new Semaphore(0);\n\t\tmutex = new Semaphore(1);\n\t}", "public BufferPool(String fileName, int numBuffers, int bufferSize)\n throws IOException\n {\n BLOCK_SIZE = bufferSize;\n FILE_SIZE = 0;\n\n // create linked list of buffers, open file, create pointer tempArray\n this.pool = new LinkedList<Buffer>();\n this.buffArr = new Buffer[numBuffers];\n this.file = new RandomAccessFile(fileName, \"rw\");\n this.tempArray = new byte[BLOCK_SIZE];\n\n expandFile();\n\n // initialize all the statistics to zero\n cacheHits = cacheMisses = diskReads = diskWrites = 0;\n\n Buffer newBuf;\n // initialize the appropriate number of buffers\n for (int i = 0; i < numBuffers; i++)\n {\n newBuf = new Buffer(tempArray, -1);\n pool.append(newBuf);\n buffArr[i] = newBuf;\n }\n }", "@Override\n public void loadBuffer(final Tuple3d origin, final ByteBuffer buffer) {\n this.loadGpuBuffer(origin);\n buffer.put(this.gpuBuffer);\n this.gpuBuffer.rewind();\n }", "public static FloatBuffer createFloatBuffer(float... data) {\n\n FloatBuffer buff = BufferUtils.createFloatBuffer(data.length * 3);\n buff.clear();\n for (int i = 0; i < data.length; i++) {\n buff.put(data[i]);\n System.out.println(\"Buff: \" + buff.get(i));\n }\n buff.flip();\n return buff;\n }", "public EntityBuffer(int bufferCapacity) {\n\t\tbuffer = new DataPostbox<EntityContainer>(bufferCapacity);\n\t}", "static void initializeVertexBuffer(int divideCount)\n {\n ByteBuffer vb = ByteBuffer.allocateDirect(\n // (number of coordinate values * 4 bytes per float)\n vertexData.length * 4);\n // use the device hardware's native byte order\n vb.order(ByteOrder.nativeOrder());\n\n // create a floating point buffer from the ByteBuffer\n vertexBuffer = vb.asFloatBuffer();\n // add the coordinates to the FloatBuffer\n vertexBuffer.put(vertexData);\n // set the buffer to read the first coordinate\n vertexBuffer.position(0);\n\n // initialize index byte buffer for vertex indexes\n ByteBuffer sb = ByteBuffer.allocateDirect(\n // (number of coordinate values * 2 bytes per short)\n indexData.length * 2);\n // use the device hardware's native byte order\n sb.order(ByteOrder.nativeOrder());\n\n // create a floating point buffer from the ByteBuffer\n indexBuffer = sb.asShortBuffer();\n // add the coordinates to the FloatBuffer\n indexBuffer.put(indexData);\n // set the buffer to read the first coordinate\n indexBuffer.position(0);\n\n GLES20.glGenBuffers(1, vertexBufferObject, divideCount);\n GLES20.glGenBuffers(1, indexBufferObject, divideCount);\n\n GLES20.glBindBuffer(GLES20.GL_ELEMENT_ARRAY_BUFFER, indexBufferObject[divideCount]);\n GLES20.glBufferData(GLES20.GL_ELEMENT_ARRAY_BUFFER, indexBuffer.capacity() * BYTES_PER_SHORT,\n indexBuffer, GLES20.GL_STATIC_DRAW);\n GLES20.glBindBuffer(GLES20.GL_ELEMENT_ARRAY_BUFFER, 0);\n\n GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, vertexBufferObject[divideCount]);\n GLES20.glBufferData(GLES20.GL_ARRAY_BUFFER, vertexBuffer.capacity() * BYTES_PER_FLOAT,\n vertexBuffer, GLES20.GL_STATIC_DRAW);\n GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, 0);\n }", "public GlBuffer commit(final Chunk<E>[] chunks, boolean push){\n\t\t//android.util.//Log.d(TAG,\"update(\"+chunks+\", \"+commit+\")\");\n\t\tint startPosition = 0;\n\t\tint offset = this.stride;\n\t\tswitch(this.datatype){\n\t\t\tcase TYPE_FLOAT :\n\t\t\t\tif(this.buffer == null){\n\t\t\t\t\tthis.buffer = ByteBufferPool.getInstance().getDirectFloatBuffer(this.size >> 2);\n\t\t\t\t\tmManagedBuffer = true;\n\t\t\t\t}\n\t\t\t\telse if(mManagedBuffer){\n\t\t\t\t\tthis.buffer.position(0);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tstartPosition = this.buffer.position();\n\t\t\t\t}\n offset = this.stride >> 2;\n for(final Chunk<E> chunk : chunks){\n for(int elementIndex=0, compIndex=0; elementIndex < this.count ; elementIndex++, compIndex+=chunk.components){\n this.buffer.position(startPosition + chunk.position + (elementIndex * offset));\n ((FloatBuffer)this.buffer).put(((float[])chunk.data),compIndex,chunk.components);\n }\n }\n\t\t\t\tbreak;\n case TYPE_INT :\n if(this.buffer == null){\n this.buffer = ByteBufferPool.getInstance().getDirectIntBuffer(this.size >> 2);\n\t\t\t\t\tmManagedBuffer = true;\n\t\t\t\t}\n\t\t\t\telse if(mManagedBuffer){\n\t\t\t\t\tthis.buffer.position(0);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tstartPosition = this.buffer.position();\n\t\t\t\t}\n offset = this.stride >> 2;\n for(final Chunk<E> chunk : chunks){\n for(int elementIndex=0, compIndex=0; elementIndex < this.count ; elementIndex++, compIndex+=chunk.components){\n this.buffer.position(startPosition + chunk.position + (elementIndex * offset));\n ((IntBuffer)this.buffer).put(((int[])chunk.data),compIndex,chunk.components);\n }\n }\n break;\n\t\t\tcase TYPE_SHORT :\n\t\t\t\tif(this.buffer == null){\n\t\t\t\t\tthis.buffer = ByteBufferPool.getInstance().getDirectShortBuffer(this.size >> 1);\n\t\t\t\t\tmManagedBuffer = true;\n\t\t\t\t}\n\t\t\t\telse if(mManagedBuffer){\n\t\t\t\t\tthis.buffer.position(0);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tstartPosition = this.buffer.position();\n\t\t\t\t}\n offset = this.stride >> 1;\n for(final Chunk<E> chunk : chunks){\n for(int elementIndex=0, compIndex=0; elementIndex < this.count ; elementIndex++, compIndex+=chunk.components){\n this.buffer.position(startPosition + chunk.position + (elementIndex * offset));\n ((ShortBuffer)this.buffer).put(((short[])chunk.data),compIndex,chunk.components);\n }\n }\n\t\t\t\tbreak;\n default :\n if(this.buffer == null){\n this.buffer = ByteBufferPool.getInstance().getDirectByteBuffer(this.size);\n\t\t\t\t\tmManagedBuffer = true;\n\t\t\t\t}\n\t\t\t\telse if(mManagedBuffer){\n\t\t\t\t\tthis.buffer.position(0);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tstartPosition = this.buffer.position();\n\t\t\t\t}\n for(final Chunk<E> chunk : chunks){\n for(int elementIndex=0, compIndex=0; elementIndex < this.count ; elementIndex++, compIndex+=chunk.components){\n this.buffer.position(startPosition + chunk.position + (elementIndex * offset));\n ((ByteBuffer)this.buffer).put(((byte[])chunk.data),compIndex,chunk.components);\n }\n }\n break;\n\t\t}\n\n //Update server if needed\n if(push){\n push();\n }\n\n\t\treturn this;\n\t}", "public Productor(BufferContoler buff, Semaphore mutex, Semaphore empty, Semaphore full) {\n\t\tthis.buffer = buff;\n\t\tthis.mutex = mutex;\n\t\tthis.empty = empty;\n\t\tthis.full = full;\n\n\t}", "void use(ByteBuffer buffer, short id);", "private void writeBufferManager(XMLExtendedStreamWriter writer, ModelNode node) throws XMLStreamException {\n USE_DISK_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n INLINE_LOBS.marshallAsAttribute(node, false, writer);\n PROCESSOR_BATCH_SIZE_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n MAX_PROCESSING_KB_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n MAX_FILE_SIZE_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n MAX_BUFFER_SPACE_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n MAX_OPEN_FILES_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n MEMORY_BUFFER_SPACE_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n MEMORY_BUFFER_OFFHEAP_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n ENCRYPT_FILES_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n //values need adjusted\n writeAdjustedValue(writer, node, MAX_RESERVED_KB_ATTRIBUTE);\n writeAdjustedValue(writer, node, MAX_STORAGE_OBJECT_SIZE_ATTRIBUTE);\n\n BUFFER_MANAGER_USE_DISK_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n BUFFER_MANAGER_INLINE_LOBS.marshallAsAttribute(node, false, writer);\n BUFFER_MANAGER_PROCESSOR_BATCH_SIZE_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n BUFFER_MANAGER_MAX_PROCESSING_KB_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n BUFFER_MANAGER_MAX_RESERVED_MB_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n BUFFER_MANAGER_MAX_FILE_SIZE_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n BUFFER_MANAGER_MAX_BUFFER_SPACE_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n BUFFER_MANAGER_MAX_OPEN_FILES_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n BUFFER_MANAGER_MEMORY_BUFFER_SPACE_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n BUFFER_MANAGER_MEMORY_BUFFER_OFFHEAP_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n BUFFER_MANAGER_MAX_STORAGE_OBJECT_SIZE_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n BUFFER_MANAGER_ENCRYPT_FILES_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n }", "public MRUPolicyGroup05(final int numBuffers) {\n this.unpinnedStack = new Stack<Integer>();\n for (int i = 0; i < numBuffers; i++) {\n this.unpinnedStack.push(i);\n }\n }", "@Override\n public void onNext(List<ByteBuffer> buffers) {\n for (ByteBuffer buffer : buffers) {\n if (buffer.limit() != buffer.capacity()) {\n final int limit = buffer.limit();\n final int position = buffer.position();\n buffer.position(buffer.limit());\n buffer.limit(buffer.capacity());\n while (buffer.hasRemaining())\n buffer.put((byte)'X');\n buffer.position(position); // restore original position\n buffer.limit(limit); // restore original limit\n }\n }\n asString.onNext(buffers);\n }", "@Override // com.android.server.wm.HwMagicWinSplitAnimation\n public void applyBufferToSurface(SurfaceControl sc, GraphicBufferEx buffer) {\n Surface surface = new Surface(sc);\n Rect bounds = new Rect(0, 0, this.mWidth, this.mHeigth);\n Canvas canvas = null;\n try {\n canvas = surface.lockCanvas(bounds);\n } catch (Surface.OutOfResourcesException | IllegalArgumentException e) {\n SlogEx.i(HwMagicWinSplitAnimation.TAG, \"lockCanvas exception\");\n }\n if (canvas != null) {\n Bitmap blurBitmap = null;\n Bitmap hwBitmap = null;\n try {\n canvas.drawColor(-1);\n hwBitmap = GraphicBufferEx.wrapHardwareBuffer(buffer, (ColorSpace) null);\n blurBitmap = HwBlur.blur(hwBitmap, 10, 1, false);\n canvas.drawBitmap(blurBitmap, (Rect) null, bounds, new Paint(5));\n canvas.drawColor(HwMagicWinSplitAnimation.COVER_COLOR);\n surface.unlockCanvasAndPost(canvas);\n surface.release();\n } finally {\n if (blurBitmap != null && !blurBitmap.isRecycled()) {\n blurBitmap.recycle();\n }\n if (hwBitmap != null && !hwBitmap.isRecycled()) {\n hwBitmap.recycle();\n }\n if (!buffer.isDestroyed()) {\n buffer.destroy();\n }\n }\n }\n }", "public FramebufferObject(GL2 gl, Texture2D.Format format, Texture2D.Datatype datatype, int width, int height, int colorTextureCount, boolean makeDepthTexture, boolean rectTextures) throws OpenGLException\n\t{\n\t\t/* Sanity check. */\n\t\tif (colorTextureCount == 0 && !makeDepthTexture)\n\t\t{\n\t\t\tthrow new OpenGLException(\"It is not valid to make an FBO with no color buffers and no depth buffer.\");\n\t\t}\n\t\t\n\t\tint maxColorTextures[] = new int[1];\n\t\tgl.glGetIntegerv(GL2.GL_MAX_COLOR_ATTACHMENTS, maxColorTextures, 0);\n\t\tif (colorTextureCount > maxColorTextures[0])\n\t\t{\n\t\t\tthrow new OpenGLException(\"Cannot create an FBO with \" + colorTextureCount + \" render targets. Your graphics card only supports \" + maxColorTextures[0] + \".\");\n\t\t}\n\t\t\n\t\tmWidth = width;\n\t\tmHeight = height;\n\t\t\n\t\t/* Create OpenGL FBO. */\n\t\tint names[] = new int[1];\n\t\tgl.glGenFramebuffers(1, names, 0);\n\t\tmHandle = names[0];\n\t\t\n\t\t/* Remember previous FBO binding, and then bind this one. */\n\t\tint previousBinding[] = new int[1];\n\t\tgl.glGetIntegerv(GL2.GL_FRAMEBUFFER_BINDING, previousBinding, 0);\n\t\tgl.glBindFramebuffer(GL2.GL_FRAMEBUFFER, mHandle);\n\t\t\n\t\t/* Create and attach color textures. */\n\t\tmColorTextures = new Texture2D[colorTextureCount];\n\t\t\n\t\tfor (int i = 0; i < colorTextureCount; ++i)\n\t\t{\n\t\t\tmColorTextures[i] = new Texture2D(gl, format, datatype, width, height, null, rectTextures);\n\t\t\tgl.glFramebufferTexture2D(GL2.GL_FRAMEBUFFER, GL2.GL_COLOR_ATTACHMENT0 + i, mColorTextures[i].getTextureTarget(), mColorTextures[i].getHandle(), 0);\n\t\t}\n\t\t\n\t\t/* Create and attach depth texture, if requested. */\n\t\tif (makeDepthTexture)\n\t\t{\n\t\t\tmDepthTexture = new Texture2D(gl, Format.DEPTH, Datatype.INT32, width, height, null, rectTextures);\n\t\t\tgl.glFramebufferTexture2D(GL2.GL_FRAMEBUFFER, GL2.GL_DEPTH_ATTACHMENT, mDepthTexture.getTextureTarget(), mDepthTexture.getHandle(), 0);\n\t\t}\n\n\t\t/* Make sure everything is set up properly. */\n\t\tint status = gl.glCheckFramebufferStatus(GL2.GL_FRAMEBUFFER);\n\t\tif (status != GL2.GL_FRAMEBUFFER_COMPLETE)\n\t\t{\n\t\t\tthrow new OpenGLException(\"Framebuffer incomplete: \" + status + \".\");\n\t\t}\n\t\t\n\t\t/* Restore whatever FBO was bound before this function was called. */\n\t\tgl.glBindFramebuffer(GL2.GL_FRAMEBUFFER, previousBinding[0]);\n\t}", "public static Buffer createBuffer(int size) throws BadParameterException, \n NoSuccessException {\n\treturn createBuffer(null, size);\n }", "public ConcurrentRingBuffer(){\r\n\tthis(8, \"ConcurrentRingBuffer disabled\");\r\n}", "private void readBuffer(int slice, float buffer[]) throws IOException {\r\n int i = 0;\r\n int b1,b2;\r\n int j;\r\n int nBytes;\r\n long progress, progressLength, mod;\r\n\r\n switch (dataType) {\r\n case ModelStorageBase.UBYTE:\r\n nBytes = xDim*yDim;\r\n if (byteBuffer == null) byteBuffer = new byte[nBytes];\r\n raFile.read(byteBuffer, 0, nBytes);\r\n progress = slice*buffer.length;\r\n progressLength = buffer.length*zDim;\r\n mod = progressLength/10;\r\n progressBar.setVisible(isProgressBarVisible());\r\n for ( j = 0; j < nBytes; j++, i++) {\r\n if ((i+progress)%mod==0) progressBar.updateValue( Math.round((float)(i+progress)/\r\n progressLength * 100), false);\r\n buffer[i] = byteBuffer[j] & 0xff;\r\n }\r\n break;\r\n case ModelStorageBase.SHORT:\r\n nBytes = 2*xDim*yDim;\r\n if (byteBuffer == null) byteBuffer = new byte[nBytes];\r\n raFile.read(byteBuffer, 0, nBytes);\r\n progress = slice*buffer.length;\r\n progressLength = buffer.length*zDim;\r\n mod = progressLength/10;\r\n progressBar.setVisible(isProgressBarVisible());\r\n for (j = 0; j < nBytes; j+=2, i++ ) {\r\n if ((i+progress)%mod==0) progressBar.updateValue( Math.round((float)(i+progress)/\r\n progressLength * 100), false);\r\n b1 = getUnsignedByte(byteBuffer, j);\r\n b2 = getUnsignedByte(byteBuffer, j+1);\r\n buffer[i] = (short)((b2 << 8) + b1); // little endian\r\n }\r\n break;\r\n case ModelStorageBase.ARGB:\r\n // from 2 color merged psuedocolor\r\n nBytes = 2*xDim*yDim;\r\n if (byteBuffer == null) byteBuffer = new byte[nBytes];\r\n raFile.read(byteBuffer, 0, nBytes);\r\n progress = slice*buffer.length;\r\n progressLength = buffer.length*zDim;\r\n mod = progressLength/10;\r\n progressBar.setVisible(isProgressBarVisible());\r\n //For the moment I compress RGB images to unsigned bytes.\r\n for (j = 0; j < nBytes; j+=2, i+=4 ) {\r\n if ((i+progress)%mod==0) progressBar.updateValue( Math.round((float)(i+progress)/\r\n progressLength * 100), true);\r\n buffer[i] = 255;\r\n buffer[i+1] = getUnsignedByte(byteBuffer, j);\r\n buffer[i+2] = getUnsignedByte(byteBuffer, j+1);\r\n buffer[i+3] = 0;\r\n }\r\n break;\r\n } // switch(dataType)\r\n }", "default void bufferLimit(@Nonnull ByteBuffer buffer) {\n }", "public static void bufferTest(){\n // 获取非直接缓冲区\n ByteBuffer byteBuffer = ByteBuffer.allocate(1024);\n System.out.println(\"position = \" + byteBuffer.position());\n System.out.println(\"limit = \" + byteBuffer.limit());\n System.out.println(\"capacity = \" + byteBuffer.capacity());\n /**\n * position = 0\n * limit = 1024\n * capacity = 1024\n * **/\n // 获取直接缓冲区\n// ByteBuffer byteBuffer = ByteBuffer.allocateDirect(1024);\n// byteBuffer.put()\n String s1 = \"helloworld\";\n String s2 = \"你好世界\";\n byte[] b1 = s1.getBytes();\n byte[] b2 = s2.getBytes();\n System.out.println(Arrays.toString(b1));\n System.out.println(Arrays.toString(b2));\n System.out.println(new String());\n byteBuffer.put(b1);\n System.out.println(\"position = \" + byteBuffer.position());\n System.out.println(\"limit = \" + byteBuffer.limit());\n System.out.println(\"capacity = \" + byteBuffer.capacity());\n /**\n * position = 10\n * limit = 1024\n * capacity = 1024\n * 输出结果表示put之后只有positoin位置变了,limit和capacity没有变\n * 表明position到limit之间的数据还是可以继续put\n * **/\n byteBuffer.put(b2);\n System.out.println(\"position = \" + byteBuffer.position());\n System.out.println(\"limit = \" + byteBuffer.limit());\n System.out.println(\"capacity = \" + byteBuffer.capacity());\n /**\n * position = 22\n * limit = 1024\n * capacity = 1024\n * 输出结果表示继续put之后只有positoin位置变了,limit和capacity还是没有变\n * **/\n byteBuffer.put(100,(byte)100);\n System.out.println(\"put之后直接get=\" + byteBuffer.get(100));\n System.out.println(\"position = \" + byteBuffer.position());\n System.out.println(\"limit = \" + byteBuffer.limit());\n System.out.println(\"capacity = \" + byteBuffer.capacity());\n System.out.println(byteBuffer.get(100));\n /**\n * position = 22\n * limit = 1024\n * capacity = 1024\n * put指定下标的位置,赋值一个字节,那么position limit capacity都没有变,只是赋值了\n * **/\n byteBuffer.flip();//改变positon和limit位置\n System.out.println(\"position = \" + byteBuffer.position());\n System.out.println(\"limit = \" + byteBuffer.limit());\n System.out.println(\"capacity = \" + byteBuffer.capacity());\n /**\n * flip之后limit的值变为22,之前put的100位置的字节无法进行有效读取\n * **/\n byte[] b3 = new byte[byteBuffer.limit()];\n byteBuffer.get(b3);\n System.out.println(new String(b3));\n // 表示byteBuffer还有多少可用\n int remaining = byteBuffer.remaining();\n // 为当前limit赋值,但是如果之后调用了flip方法limit还是会赋值为position\n byteBuffer.limit(10);\n // array()获取了当前数组中所有有效字节数组,包括刚才put到下标100的那个位置\n byte[] b4 = byteBuffer.array();\n System.out.println(new String(b4));\n // 为当前position位置做标记配合reset使用\n// byteBuffer.mark();\n// // 将positoin值变为直接做过标记的mark值\n// byteBuffer.reset();\n// // 分割缓冲区\n// byteBuffer.slice();\n // clear方法重新初始化了position limit capacity和mark的值,但是没有清除数组中的数据\n byteBuffer.clear();\n b4 = byteBuffer.array();\n System.out.println(\"clear之后=\" + new String(b4));\n }", "private PolylineDataBuffered getBufferedData(PolylineGeometry geom, ModelDataRetriever<PolylineGeometry> dataRetriever,\n Projection projectionSnapshot, TimeBudget timeBudget, PickManager pickManager, TimeSpan groupTimeSpan)\n {\n PolylineModelData modelData = (PolylineModelData)dataRetriever.getModelData(geom, projectionSnapshot, null, timeBudget);\n myUsedKeys.add(modelData);\n PolylineDataBuffered bufferedData = null;\n if (modelData != null)\n {\n bufferedData = getCache().getCacheAssociation(modelData, PolylineDataBuffered.class);\n if (bufferedData == null)\n {\n bufferedData = new PolylineDataBuffered(modelData, groupTimeSpan);\n\n // If the buffered data is not already in the cache, add it\n // to enable the GPU memory to be cleaned up.\n getCache().putCacheAssociation(modelData, bufferedData, PolylineDataBuffered.class, 0L,\n bufferedData.getSizeGPU());\n }\n }\n return bufferedData;\n }", "void setBufferSize(int bufferSize);", "public static GeglBuffer newBuffer(GeglRectangle extent, BablFormat format)\n\t{\n\t\treturn com.jibee.gegl.priv.Gegl.INSTANCE.gegl_buffer_new(extent, format.getPointer());\n\t}", "public void toBuffer(ByteBufWrapper paramhd)\r\n/* 48: */ {\r\n/* 49:55 */ paramhd.b(this.a);\r\n/* 50:56 */ paramhd.writeInt(this.b);\r\n/* 51:57 */ paramhd.writeInt(this.c);\r\n/* 52:58 */ paramhd.writeInt(this.d);\r\n/* 53:59 */ paramhd.writeByte(this.e);\r\n/* 54:60 */ paramhd.writeByte(this.f);\r\n/* 55:61 */ paramhd.writeBoolean(this.g);\r\n/* 56: */ }", "public static void testBuffer() throws Exception {\n\t\tStopwatch.start();\n\t\t// readWithoutBuffer(new FileInputStream(\"bigdata\"));\n\t\tStopwatch.stop();\n\n\t\t/*\n\t\t * When read a single byte(or small piece of data), BufferedInputStream\n\t\t * improve performance significantly\n\t\t */\n\t\tStopwatch.start();\n\t\treadWithBuffer(new FileInputStream(\"bigdata.data\"));\n\t\tStopwatch.stop();\n\t\t\n\t\t/*\n\t\t * When read a single byte(or small piece of data), BufferedInputStream\n\t\t * improve performance significantly\n\t\t */\n\t\tStopwatch.start();\n\t\treadWithBufferEnhanced(new FileInputStream(\"bigdata.data\"));\n\t\tStopwatch.stop();\n\n\t\t/*\n\t\t * When read a chunk at a time, BufferedInputStream won't help\n\t\t */\n\t\tStopwatch.start();\n\t\treadWithBuffer2(new FileInputStream(\"bigdata.data\"));\n\t\tStopwatch.stop();\n\t\t\n\t\t/*\n\t\t * NIO way, same as chunk read \n\t\t */\n\t\tStopwatch.start();\n\t\treadWithBuffer3(new RandomAccessFile(\"bigdata.data\", \"r\").getChannel());\n\t\tStopwatch.stop();\n\t}", "public void render() {\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null) { //if the buffer strategy doesnt get created, then you create it\n\t\t\tcreateBufferStrategy(3); //the number 3 means it creates triple buffering\n\t\t\treturn;\t\t\t\t\t//, so when you backup frame gets displayed (2) it will also have a backup\t\n\t\t}\n\t\t\n\t\t//apply data to the buffer \"bs\"\n\t\t//this is creating a link to graphics to drawing graphics to the screen.\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t/**\n\t\t * You input all of your graphics inbetween the g object and g.dispose();\n\t\t */\n\t\t//###################\n\t\t\n\t\tg.setColor(Color.BLACK);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\t\n\t\t//###################\n\t\tg.dispose(); //this dispose of all the graphics\n\t\tbs.show(); //this will make the next available buffer visible\n\t}", "public FloatBuffer get (FloatBuffer buf)\n {\n return buf.put(x).put(y);\n }", "public File createBuffer(File file)\n {\n String bufferName = \"#\" + file.getName();\n File buffer = new File(this.getHome() + bufferName);\n\n this.buffer2file.put(buffer, file);\n\n return buffer;\n }", "public interface IBufferInput<T> {\n\n\t/**\n\t * Puts the bufferItem at the end of the bufferStore ArrayList\n\t * @param bufferItem an item to append to bufferStore \n\t */\n\tpublic void put(T bufferItem);\n}", "@Override\r\n\tpublic Buffer setBuffer(int pos, Buffer b, int offset, int len) {\n\t\treturn null;\r\n\t}", "public BufferPool(int numPages) {\n // some code goes here\n this.pageNum = numPages;\n this.bufferedPages = new ConcurrentHashMap<PageId, Node>();\n currentTransactions = new ConcurrentHashMap<TransactionId, Long>();\n lockManager = new LockManager();\n }" ]
[ "0.79171085", "0.6959839", "0.6631683", "0.65218645", "0.6284545", "0.6208493", "0.6203888", "0.6203243", "0.6152008", "0.6141235", "0.6134386", "0.61228114", "0.6043137", "0.59046614", "0.58944595", "0.58880514", "0.58333623", "0.580174", "0.577053", "0.5730268", "0.56997275", "0.56908095", "0.5670377", "0.56663656", "0.56472814", "0.5640126", "0.558749", "0.55782664", "0.555907", "0.5536761", "0.5534273", "0.55189604", "0.54956895", "0.54908836", "0.54779553", "0.5475282", "0.54433346", "0.5416488", "0.540711", "0.5363009", "0.5360147", "0.53229266", "0.5297854", "0.52939636", "0.5293809", "0.52911115", "0.52816683", "0.5276032", "0.5254792", "0.5245689", "0.5245038", "0.5243266", "0.52419263", "0.52408284", "0.52399564", "0.52364075", "0.5234953", "0.52328175", "0.52323014", "0.52320874", "0.5230118", "0.5223668", "0.52168715", "0.5206733", "0.5203283", "0.5202954", "0.5202197", "0.51979953", "0.5196454", "0.51942843", "0.51858693", "0.5175041", "0.5166026", "0.51589894", "0.5158954", "0.5151394", "0.51502097", "0.513531", "0.51343435", "0.5122731", "0.5121629", "0.51162374", "0.5113385", "0.5109412", "0.5102506", "0.51016134", "0.50959516", "0.508209", "0.5078818", "0.50714695", "0.50662565", "0.50660366", "0.5061715", "0.50580275", "0.50512147", "0.5041994", "0.503257", "0.50246924", "0.50217044", "0.5016057", "0.5002967" ]
0.0
-1
Go to search sites page and verify
public void Placement_BySession_PageNav() { Controls.hoverclick(By.linkText("Placements"), By.linkText("By Session")); Controls.dynemicwait(By.xpath("//*[@id=\"mainBody\"]/div[3]/div[2]/div/div[1]/div[2]")); if(Controls.GetText(By.xpath(placementProp.getProperty("title.xpath"))).trim().equalsIgnoreCase("By Session")) { Reports.log(Status.PASS, "Page is redirected on Placement 'By Session' page successfully"); } else { Reports.log(Status.FAIL, "Page is redirected on incorrect page"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void searchWeb()\n {\n searchWeb = true;\n search();\n }", "@Test\n public void stage04_searchAndPage() {\n String keyWord = \"bilgisayar\";\n Integer pageNumber = 2;\n //Searching with parameters\n SearchKey searchKey = new SearchKey(driver);\n HomePage homePage = searchKey.search(keyWord, pageNumber);\n //Getting current url\n String currentUrl = homePage.getCurrentURL();\n //Testing if this is desired page\n assertEquals(currentUrl, \"https://www.gittigidiyor.com/arama/?k=bilgisayar&sf=2\");\n //logging\n if (currentUrl.equals(\"https://www.gittigidiyor.com/arama/?k=bilgisayar&sf=2\")) {\n logger.info(\"( stage02_testOpenLoginPage )Actual location : \" + currentUrl);\n } else {\n logger.error(\"( stage02_testOpenLoginPage )Actual location : \" + currentUrl);\n }\n }", "@Test\n\tpublic void testUrlFromSearchResult() {\n\t\tdriver.get(\"http://automationpractice.com\");\n\n\t\t// Text input for keyword\n\t\tString keyword = \"Blouse\";\n\n\t\t// The expected result\n\t\tString expected = \"http://automationpractice.com/index.php?controller=search&orderby=position&orderway=desc&search_query=Blouse\";\n\n\t\t// Find the Search box element by its name\n\t\telement = driver.findElement(By.name(\"search_query\"));\n\n\t\t// Enter keyword to search for\n\t\telement.sendKeys(keyword);\n\n\t\t// Now submit the form\n\t\telement.submit();\n\n\t\t// Get the Url from Search result\n\t\tString actual = driver.getCurrentUrl();\n\n\t\t// Compare the expected VS actual result\n\t\tAssert.assertEquals(expected, actual);\n\t}", "public void Search()\r\n {\r\n WaitTime(2000);\r\n \r\n //Generating Alert Using Javascript Executor\r\n if (driver instanceof JavascriptExecutor) \r\n ((JavascriptExecutor) driver).executeScript(\"alert('Logged in account!');\");\r\n \r\n WaitTime(2000);\r\n driver.switchTo().alert().accept();\r\n driver.switchTo().defaultContent();\r\n \r\n driver.findElement(By.cssSelector(\"#searchData\")).sendKeys(\"samsung\");\r\n WaitTime(2000);\r\n driver.findElement(By.cssSelector(\"a.searchBtn\")).click(); \r\n \r\n \r\n //Generating Alert Using Javascript Executor\r\n if (driver instanceof JavascriptExecutor) \r\n ((JavascriptExecutor) driver).executeScript(\"alert('Loaded Search Page');\");\r\n \r\n WaitTime(2000);\r\n driver.switchTo().alert().accept();\r\n driver.switchTo().defaultContent();\r\n\r\n }", "@Test\r\n\tpublic void getSearchPage() throws IOException {\r\n\t\topen(\"https://www.google.com\");\r\n\t\tWebElement element = driver.findElement(By.name(\"q\"));\r\n\t\tassertNotNull(\"Testing driver works\", element);\r\n\t\tgenfilesMd();\r\n\t}", "@Given(\"I am on the search results page\")\n\t\tpublic void i_am_on_the_search_results_page() {\n\t\t\t//I am on the results page\n\t\t\tdriver.get(ResultsUrl);\n\n\t\t}", "@Test\r\npublic void testGoogleSearch() throws Exception {\ndriver.get(\"https://igartc01.swg.usma.ibm.com/jazz/web/projects/IGA%20Rational%20Core%20Account%20Team#action=com.ibm.team.dashboard.viewDashboard\");\r\nThread.sleep(5000);\r\nWebElement username = driver.findElement(By.xpath(\"//input[@name='j_username' and @id='jazz_app_internal_LoginWidget_0_userId']\"));\r\nusername.click();\r\nusername.clear();\r\nusername.sendKeys(\"sumukhej@in.ibm.com\");\r\nThread.sleep(2000);\r\n\r\n//enter the password\r\nWebElement pwd = driver.findElement(By.xpath(\"//input[@name='j_password' and @id='jazz_app_internal_LoginWidget_0_password']\"));\r\npwd.click();\r\npwd.sendKeys(\"Pappisong14\");\r\nThread.sleep(2000);\r\n\r\n//button click\r\nWebElement btn = driver.findElement(By.xpath(\"//button[@type='submit']\"));\r\nbtn.click();\r\nThread.sleep(10000);\r\n\r\nif(driver.getPageSource().contains(\"Rational Account A\")){\r\n\tSystem.out.println(\"Verified.. This is the Dashboard Page\");\r\n}\r\nelse{\r\n\tSystem.out.println(\"Wrong page!!!\");\r\n}\r\n\r\n}", "@Test\n\tpublic void searchPage() throws Exception {\n\t\tgetRequest().andExpect(content().string(CoreMatchers.containsString(\"searchForm\")));\n\t}", "@Test\n\tpublic void testSearch() {\n driver.get(\"http://www.google.com\");\n // Alternatively the same thing can be done like this\n // driver.navigate().to(\"http://www.google.com\");\n\n driver.manage().window().maximize();\n // Find the text input element by its name\n WebElement element = driver.findElement(By.name(\"q\"));\n\n // Enter something to search for\n element.sendKeys(\"Cheese!\");\n\n // Now submit the form. WebDriver will find the form for us from the element\n element.submit();\n\n // Check the title of the page\n System.out.println(\"Page title is: \" + driver.getTitle());\n \n // Google's search is rendered dynamically with JavaScript.\n // Wait for the page to load, timeout after 10 seconds\n (new WebDriverWait(driver, 10)).until(new ExpectedCondition<Boolean>() {\n public Boolean apply(WebDriver d) {\n return d.getTitle().toLowerCase().startsWith(\"cheese!\");\n }\n });\n\n // Should see: \"cheese! - Google Search\"\n System.out.println(\"Page title is: \" + driver.getTitle());\n \n\t}", "@Test\n\tpublic void VerifyTheSearchResult() {\n\t\tString searchString = \"The Choice\";\n\t\thomePage.search(searchString);\n\t\tString searchTitle = resultPage.getSearchResultTitle();\n\t\tAssert.assertTrue(searchTitle.contains(searchString));\n\t}", "@Test(enabled = true, timeOut = 100000, groups = {\"search\", \"home\"})\n public void searchPackage() throws IOException {\n logger.debug(\"Page is initialised.\");\n logger.trace(\"Searching City Name.\");\n// assertThat(driver.getCurrentUrl(), containsString(\"cleartrip\"));\n// home.search(typeofSearch, fromPlace, toPlace, date, numberOfAdults);\n }", "@Test(priority = 0)\n public void test_Search_Results_Appear_Correct() {\n\n //Create Google Search Page object\n searchPage = new SearchPage(driver);\n\n //Search for QA string\n searchPage.searchStringGoogle(\"QA\");\n\n // go the next page\n resultsPage = new ResultsPage(driver);\n\n Assert.assertTrue(resultsPage.getSearchedResult().contains(\"Quality assurance - Wikipedia\"));\n\n }", "public void performSearch() {\n final String url = String.format(BING_SEARCH_URL, Words.getRandomWord(), Words.getRandomWord());\n\n //open page with custom data\n openWebPage(url, \"Search url: \" + url);\n }", "@Given(\"^user is on google search page \\\"([^\\\"]*)\\\"$\")\n\tpublic void user_is_on_google_search_page_something(String url) throws Throwable {\n\t\thomepage.get(url);\n\t}", "public void openSpamPage() {\n WebDriverWait wait = new WebDriverWait(driver, 20);\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[text()='COMPOSE']\")));\n inputSearch.clear();\n inputSearch.sendKeys(\"in:spam\");\n buttonSearch.click();\n }", "@Test\r\n\tpublic void test_3and4_Search() {\n\t\tdriver.findElement(By.id(\"twotabsearchtextbox\")).sendKeys(searchKey);\r\n\t\t// click on search button\r\n\t\tdriver.findElement(By.id(\"nav-search-submit-text\")).click();\r\n\t\t// use JavaScriptExecutor to scroll on page\r\n\t\t// cast driver to JavaScriptExecutor\r\n\t\texecutor = (JavascriptExecutor) driver;\r\n\t\texecutor.executeScript(\"window.scrollTo(0, 600)\");\r\n\r\n\t\t// try to get \"results for\" text on web page \r\n\t\t// if it is found then search is successful \r\n\t\tWebElement element = driver.findElement(By.xpath(\"//span[@id='s-result-count']\"));\r\n\t\tString resultFound = element.getText();\r\n\t\tAssert.assertTrue(resultFound.contains(\"results for\"));\r\n\t\tSystem.out.println(\"Search for Samsung is passed\");\r\n\t}", "HtmlPage clickSiteLink();", "@When(\"^User searched for dresses$\")\n\tpublic void user_searched_for_dresses() throws Throwable {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"/java/software/chromedriver3\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\tdriver.get(\"http://automationpractice.com/index.php\");\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"search_query_top\\\"]\")).click();\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"search_query_top\\\"]\")).sendKeys(\"dresses\");\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"search_query_top\\\"]\")).submit();\n\t}", "@Test\n public void testAccessUserSearch() {\n try {\n driver.findElement(By.id(\"nav-users\")).click();\n wait(3);\n assertEquals(\"http://stackoverflow.com/users\", driver.getCurrentUrl());\n }\n catch(NoSuchElementException nsee) {\n fail();\n }\n }", "@Test\n public void testAdvancedSearchResult() throws InterruptedException {\n log.info(\"Go to Homepage \" );\n log.info(\"Click on Advanced Search link in footer \" );\n WebElement advancedSearchButton = driver.findElement(By.partialLinkText(\"Advanced Search\"));\n advancedSearchButton.click();\n WebElement searchCassette = driver.findElement(By.id(\"AdvancedSearchResults\")).findElement(By.tagName(\"input\"));\n WebElement searchButton = driver.findElement(By.id(\"AdvancedSearchResults\")).findElement(By.className(\"btn-standard\"));\n searchCassette.click();\n searchCassette.clear();\n log.info(\"Click in Search Casetter and introduce search term sculpture\" );\n searchCassette.sendKeys(\"sculpture\");\n log.info(\"Click on search Button \" );\n searchButton.click();\n log.info(\"Confirm Adavanced Search Page by keywords=sculpture is displayed in browser\" );\n assertTrue(driver.getCurrentUrl().contains(\"keywords=sculpture\"));\n }", "public void clickOnFindlocations() {\n\t\tsFunName = \"clickOnFindlocations\";\n\t\tLogger.info(\"Inside : clickOnFindlocations\");\n\t\tLogger.info(sFunName + \" : Verify and Click on Find Locations link\");\n\t\tbStatus = util.explicitlyWaitUntilElementIsPresent(findLlocationsLink);\n\t\tAssert.assertTrue(bStatus, \"Service Search Text field not Found\");\n\t\tfindLlocationsLink.click();\n\t}", "public Boolean checkTextPresentInPage(String searchFor){\n waitForPageToLoad();\n return super.checkTextPresentInPage(searchFor);\n }", "public static void main(String[] args)throws Exception \n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tSystem.out.println(\"enter a word to search\");\n\t\tString word=sc.nextLine();\n\t\tsc.close();\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"chromedriver.exe\");\n\t\tChromeDriver driver=new ChromeDriver();\n\t\tdriver.get(\"http://www.google.co.in\");\n\t\tThread.sleep(5000);\n\t\tdriver.findElement(By.name(\"q\")).sendKeys(word,Keys.ENTER);\n\t\t//pagination on results pages\n\t\tint flag=0;\n\t\tint tpc=0;\n\t\twhile(2>1)\n\t\t{\n\t\t\ttpc++;\n\t\t\tString t=driver.getTitle();\n\t\t\tif(!t.contains(word))\n\t\t\t{\n\t\t\t\tflag=1;\n\t\t\t\tbreak;//terminate from loop when does not contains word\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdriver.findElement(By.xpath(\"//span[text()='Next']\")).click();\n\t\t\t\tThread.sleep(2000);\n\t\t\t}\n\t\t\tcatch(Exception ex)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\tif(flag==0)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"title of \"+tpc+\" results pages is correct\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(tpc+\"of the results page is incorrect\");\n\t\t\t}\n\t\t\t//close site\n\t\t\tdriver.close();\n\t\t}", "public void search(String url, String searchWord)\n {\n while(this.pagesVisited.size() < MAX_PAGES_TO_SEARCH)\n {\n String currentUrl;\n SpiderLeg leg = new SpiderLeg();\n if(this.pagesToVisit.isEmpty())\n {\n currentUrl = url;\n this.pagesVisited.add(url);\n }\n else\n {\n currentUrl = this.nextUrl();\n }\n leg.crawl(currentUrl); // Lots of stuff happening here. Look at the crawl method in\n // SpiderLeg\n boolean success = leg.searchForWord(searchWord);\n if(success)\n {\n System.out.println(String.format(\"**Success** Word %s found at %s\", searchWord, currentUrl));\n break;\n }\n this.pagesToVisit.addAll(leg.getLinks());\n }\n System.out.println(\"\\n**Done** Visited \" + this.pagesVisited.size() + \" web page(s)\");\n }", "@Test\r\n\tpublic void searchTestFailure() {\r\n\r\n\t\tString searchKeyword = \"Test Automation\";\r\n\t\tLog.startTestCase(\"Search Test Case\");\r\n\t\tHomePage homePage = new HomePage();\r\n\t\tSearchResultsPage firstPage = homePage.searchText(searchKeyword);\r\n\t\tLog.info(\"Searching for \" + searchKeyword);\r\n\r\n\t\tSearchResultsPage secondPage = firstPage.clickNext();\r\n\t\tAssert.assertEquals(secondPage.countSearchResults(), 5);\r\n\r\n\t}", "@Test\n public void testAdvancedSearchPage() throws InterruptedException {\n log.info(\"Go to Homepage \" );\n log.info(\"Click on Advanced Search link in footer \" );\n WebElement advancedSearchButton = driver.findElement(By.partialLinkText(\"Advanced Search\"));\n advancedSearchButton.click();\n log.info(\"Confirm Adavanced Search Page is displayed in browser\" );\n assertTrue(driver.getCurrentUrl().contains(\"search-advanced\"));\n }", "@Then(\"User should be on product page\")\r\n\tpublic void user_should_be_on_product_page() \r\n\t{\n\t expected = \"Search\";\r\n\t \r\n\t String URL = driver.getCurrentUrl();\r\n\t if(URL.contains(expected))\r\n\t {\r\n\t \tSystem.out.println(\"TEST CASE 3 - PASSED\");\r\n\t }\r\n\t}", "private void should_google_search_and_wait_for(String query) {\n RemoteWebDriver remoteWebDriver = browser.getWebDriver();\n WebDriverRunner.setWebDriver(remoteWebDriver);\n // regular Selenide test:\n Selenide.open(\"https://google.com?q=\" + query);\n $$(\"form\").filterBy(exist).first().shouldBe(visible).submit();\n $(byValue(query)).shouldBe(exist).shouldBe(visible).submit();\n }", "final void searchPage(DataInputStream dis,String url)\r\n {\r\n try\r\n\t{\r\n String input; // Raw line read in.\r\n\t String upperCaseInput; // Upper case version of the above\r\n\t String link; // HTML link found\r\n\t String temp; \r\n\t String title=\"\"; // Page Title;\r\n\r\n\t // Read a line at a time.\r\n\t while((input=dis.readLine())!=null)\r\n\t {\r\n\t // Convert to Upper case (makes comparisions easier)\r\n\t\tupperCaseInput=input.toUpperCase();\r\n\t\t// Check for document title\r\n\t\ttemp=parseForTitle(input,upperCaseInput,dis);\r\n\t\t// If a title has been found then remember it. So, that it can displayed on the list box.\r\n\t\tif(temp!=null && temp.length()>0)\r\n\t\t title=temp;\r\n\t //Check for match after title has been found (Don't bother Searching the title though)\r\n\t\tif(title.length()>0 && temp==null)\r\n\t\t checkMatch(input,url,title);\r\n \r\n\t\t// Check to see if this line contains a link\r\n\t\tlink=parseForLink(upperCaseInput,input);\r\n\t\tif(link!=null)\r\n\t\t{\r\n\t\t // Check if the maximum number of pages to search has been reached.\r\n\t\t if(app.getTotalPages()>=maxPages)\r\n\t\t return;\r\n if(topLevelSearch==FIND_TOP_LEVEL_PAGES)\r\n\t\t topLevelPages.addElement(link);\r\n else if(topLevelSearch==SEARCH_TOP_LEVEL_PAGES)\r\n\t\t nextLevelPages.addElement(link);\r\n\t\t else checkLink(link);\t \r\n\t\t}\r\n\t }\r\n }\r\n\tcatch(IOException e){ }\r\n }", "public void gotoVideoLandingPage(){\r\n\t\twebAppDriver.get(baseUrl+\"/videos.aspx\");\r\n\t\t//need to add verification text\r\n\t}", "private void searchforResults() {\n\n List<String> queryList = new SavePreferences(this).getStringSetPref();\n if(queryList != null && queryList.size() > 0){\n Log.i(TAG, \"Searching for results \" + queryList.get(0));\n Intent searchIntent = new Intent(Intent.ACTION_WEB_SEARCH);\n searchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n searchIntent.putExtra(SearchManager.QUERY, queryList.get(0));\n this.startActivity(searchIntent);\n }\n }", "public void clickSearch() {\n\t\twaitForDocumentReady(5);\n\t\tlog.debug(\"Clicking on search button\");\n\t\tclickOn(search_button, 20);\n\t\tlog.info(\"Clicked on search button\");\n\t\tlogger.log(Status.INFO, \"Search for cruise completed\");\n\t\t\n\t}", "public void searchForPageToChange(String searchPage)\n\t{\n\t\twait.waitElementToBeDisplayed(By.xpath(\"//td/input[@class='z-textbox' and @z.type='zul.vd.Txbox']\"));\n\t\tdriver.findElement(By.xpath(\"//td/input[@class='z-textbox' and @z.type='zul.vd.Txbox']\")).sendKeys(searchPage);\n\t\tList<WebElement> searchBtn=driver.findElements(By.xpath(\"//img[@src='/cmscockpit/cockpit/images/BUTTON_search.png']\"));\n\t\tif(searchBtn!=null&&searchBtn.size()>0)\n\t\t{\n\t\t\tsearchBtn.get(0).click();\n\t\t}\n\t}", "public void ClickSearch() {\r\n\t\tsearch.click();\r\n\t\t\tLog(\"Clicked the \\\"Search\\\" button on the GIS Locator page\");\r\n\t}", "@Test(priority = 1)\n\n public void test_Search_Appear_WikiLink() {\n\n resultsPage.clickWikiResult();\n\n // Go the next page\n// wikiPage = new WikiPage(driver);\n\n //Wait until QA Wikipedia page is loaded\n WebDriverWait wait = new WebDriverWait(driver, 10);\n wait.until(ExpectedConditions.elementToBeClickable(By.className(\"noprint\")));\n\n //Verify the URL is wiki URL\n String URL = driver.getCurrentUrl();\n Assert.assertEquals(URL, \"https://en.wikipedia.org/wiki/Quality_assurance\" );\n\n }", "@Test\n public void test_method(){\n //Navigate to url\n driver.get(\"https://www.google.com\");\n\n //Searching for the search bar and sends string\n driver.findElement(By.name(\"q\")).sendKeys(\"PerfectoCode GitHub\");\n }", "public void search(String url) throws ParseException {\r\n\t\tSpiderLeg leg = new SpiderLeg();\r\n\t\tif (this.pagesToVisit.isEmpty()) {\r\n\t\t\tthis.pagesToVisit.add(url);\r\n\t\t}\r\n\r\n\t\tfor (Iterator iterator = pagesToVisit.iterator(); iterator.hasNext();) {\r\n\t\t\tString page = (String) iterator.next();\r\n\t\t\tleg.crawl(page);\r\n\t\t\tthis.pagesToVisit.addAll(leg.getPageLinks());\r\n\t\t\tthis.reviewPagesToVisit.addAll(leg.getReviewLinks());\r\n\t\t\tthis.pagesVisited.add(page);\r\n\t\t}\r\n\r\n\t\tleg.getReviewContent(this.reviewPagesToVisit);\r\n\t\tSystem.out.println(\"\\n**Done** Visited \" + this.pagesVisited.size()\r\n\t\t\t\t+ \" web page(s)\");\r\n\t}", "@Test\n public void flightSearch() {\n FirefoxDriver browser = openBrowser(\"http://www.hotwire.com/ \");\n\n //Go to Bundles option\n bundlesOption(browser);\n\n //Search for the SFO to LAX flight\n inputCities(browser, \"SFO\", \"LAX\");\n\n //Calculate the flight days\n //Departing next day\n //Returning 20 days after\n flightDays(browser);\n\n //Click the Find Deal button\n findDeal(browser);\n\n //Wait for the page to load until the results are displayed\n results(browser);\n }", "public abstract boolean Verifypage();", "HtmlPage clickSiteName();", "public void testWebsite(String site) {\r\n\t\tdriver.findElement(website).sendKeys(site);\r\n\t\t\t\r\n\t\t}", "@Override\n protected void waitThePageToLoad() {\n WaitUtils.waitUntil(driver, ExpectedConditions.visibilityOf(driver\n .findElement(By.xpath(SEARCH_XPATH))));\n }", "public String getSearchUrl();", "public void verifyPage() {\n\t\twaitForPageToLoad();\n\t\tString title = driver.getTitle();\n\t\tSystem.out.println(title);\n\t\tAssert.assertEquals(title,\"News: India News, Latest Bollywood News, Sports News, Business & Political News, National & International News | Times of India\");\n\t}", "public static void verifyUpgradeYourServicePage(WebDriver driver) {\n String URL = driver.getCurrentUrl();\n Comparison.verifyStringMatch(\".*buy.spectrum.com.*\",URL);\n }", "protected void openWebPage() {\n\t\tEseoTest.driver.get(Configuration.getString(\"website_address\"));\n\t\t//Assert.assertEquals(\"Web page title does not appear correct.\", Configuration.getString(\"login_title\"),\n\t\t\t//\tEseoTest.driver.getTitle());\t\t\n\t\tAssert.assertEquals(\"Browser title bar does not appear correct.\",Configuration.getString(\"homepage_title\"),EseoTest.driver.getTitle());\n\t\tAssert.assertEquals(\"Site title does not appear correct.\",Configuration.getString(\"blog_title\"),EseoTest.driver.findElement(By.tagName(\"h1\")).getText());\n\t\tAssert.assertEquals(\"Site description does not appear correct.\",Configuration.getString(\"blog_description\"),EseoTest.driver.findElement(By.tagName(\"p\")).getText());\n\t\tAssert.assertTrue(\"Log in item does not appear correct.\",EseoTest.driver.findElement(By.linkText(Configuration.getString(\"mainmenu_login_item\"))).isDisplayed());\n\t}", "public void page()\n {\n com.jayway.restassured.response.Response response= given().relaxedHTTPSValidation().when().get(\"http://18.222.188.206:3333/accounts?_page=3\");\n response.then().assertThat().statusCode(200);\n System.out.println(\"The list of accounts in the page 3 is displayed below:\");\n response.prettyPrint();\n }", "@Override\r\n\tprotected String doInBackground(String... searchTerms) {\n\t\ttry {\r\n\t\t\tif (searchTerms[0] == \"login\")\r\n\t\t\t\treturn search(searchTerms);\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\treturn \"Unable to retrieve web page. URL may be invalid.\";\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 (ParserConfigurationException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn \"done\";\r\n\t}", "@Test\n public void searchPageTest (){\n searchPage=new SearchPage();\n\n // loginPage.goToLoginPage();\n // loginPage.login();\n searchPage.searchKeysFromHeader(\"İphone\");\n searchPage.searchResultPage(\"İphone\");\n\n}", "public void gotoHome() // Wait for Home page or Verify Device page \n\t{\t\t\t\t \n\t\tWebDriverWait wait= new WebDriverWait(driver,90);\n\t\t\n\t\ttry\n\t\t{\n\t\t\twait.until(ExpectedConditions.visibilityOf(checker));\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tAssert.fail(\" Page is taking too much time to load , stopping execution\");\n\t\t}\t\t\n\t}", "@BeforeClass\n public void GotoURL() {\n\t\tString URL = Base.GetDataFromPropertiesFile(\"url1\");\n\t\t// set implicit wt at page level\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(300, TimeUnit.SECONDS);\n\t\tdriver.get(URL);\n\t\t\n\n\t \n }", "@When(\"^user clicks on search button$\")\n\tpublic void user_clicks_on_search_button() throws Throwable {\n\t\thomepage.waitForPageToLoad(\"Google\");\n\t\thomepage.waitForElementToBeClickable(homepage.searchButton);\n\t\thomepage.clickOnElementUsingJs(homepage.searchButton);\n\t}", "@Test\n public void enterQueryString_showResults() {\n onView(withId(R.id.page_change_web_search_view)).check(matches(not(isDisplayed())));\n // Check recycler view is not visible at beginning\n onView(withId(R.id.web_search_list)).check(matches(not(isDisplayed())));\n\n // Enter search string and close the keyboard\n onView(allOf(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE),\n isAssignableFrom(EditText.class))).perform(typeText(mSearchQueryString), pressKey(66), closeSoftKeyboard());\n\n // Check if recycler view is visible\n onView(withId(R.id.web_search_list)).check(matches(isDisplayed()));\n // Check if page change view is visible\n onView(withId(R.id.page_change_web_search_view)).check(matches(isDisplayed()));\n }", "public void userIsOnHomePage(){\n\n assertURL(\"\\\"https://demo.nopcommerce.com/\\\" \");\n }", "@When(\"^Navigate to \\\"([^\\\"]*)\\\" Site$\")\r\n\tpublic void navigate_to_Site(String arg1) throws Throwable {\n\t\tdriver = DriverManager.getDriver();\r\n\t\tdriver.get(arg1);\r\n\t\tSystem.out.println(\"Launched Mercury Tours Site\");\r\n\r\n\t}", "@Test(priority = 4)\n\tpublic void homePageRedirection() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"HomepageRedirection\");\n\t\tlog.info(\"Starting Redirection validation\");\n\t\thome.isRedirectionCorrect(validate);\n\t\tlog.info(\"Redirection is on the correct page\");\n\t\tlog.info(\"Starting the Hero Image Product Validation testing\");\n\n\t}", "public static void main(String[] args) {\n WebDriver driver = new ChromeDriver();\r\n driver.get(\"https://www.guru99.com/software-testing-seven-principles.html\");\r\n \r\n if(driver.getPageSource().contains(\"Folder B is on a shared drive and storage capacity is full.\"))\r\n {\r\n \t System.out.println(\"Page contaise is available\");\r\n }else\r\n {\r\n \t System.out.println(\"Page Containse is not available\");\r\n }\r\n\t}", "public static void main(String[] args) {\n WebDriverManager.chromedriver().setup();\n\n // 1.Open Chrome browser\n WebDriver driver = new ChromeDriver();\n\n driver.manage().window().maximize();\n\n // 2.Go to http://practice.cybertekschool.com\n driver.get(\"http://practice.cybertekschool.com\");\n\n // 3.Verify URL contains Expected: cybertekschool\n String currentUrl = driver.getCurrentUrl();\n System.out.println(\"currentUrl = \" + currentUrl);\n String needs = \"cybertekschool\";\n\n // 4.Verify title: Expected: Practice\n String currentTitle = driver.getTitle();\n System.out.println(\"currentTitle = \" + currentTitle);\n String wants = \"Practice\";\n\n if(currentUrl.contains(needs) && currentTitle.contains(wants)){\n System.out.println(\"URL and Title verification test passed\");\n }else{\n System.out.println(\"URL and Title verification test failed\");\n }\n\n\n\n }", "public void searchKeyword() throws Exception {\n\t\t\n\t\tString keyword = dataHelper.getData(DataColumn.Keyword);\n\n\t\twh.sendKeys(CommonElements.searchTxtBox, keyword);\n\t\twh.clickElement(CommonElements.searchBtn);\n\n\t\tif (wh.isElementPresent(PLPUI.VerifyPLPPage, 4)\n\t\t\t\t&& wh.getText(CommonElements.breadCumb).contains(\n\t\t\t\t\t\tkeyword)) {\n\n\t\t\treport.addReportStep(\"Type '\" + keyword\n\t\t\t\t\t+ \"' in search text box and click on search button\",\n\t\t\t\t\t\"User navigated to search plp page.\", StepResult.PASS);\n\t\t} else {\n\n\t\t\treport.addReportStep(\"Type '\" + keyword\n\t\t\t\t\t+ \"' in search text box and click on search button\",\n\t\t\t\t\t\"User is not navigated to search plp page.\",\n\t\t\t\t\tStepResult.FAIL);\n\n\t\t\tterminateTestCase(\"search plp page\");\n\t\t}\n\t\t\n\t}", "private void goSearch() {\n\t\tThread t = new Thread(this);\n\t\tt.start();\n\t}", "@Test\n\tpublic void verifycustomerSupportlink() {\n\t\tKeywords.clickOnElement(PropertiesFile.getLocator(\"Spportlink\")[0],PropertiesFile.getLocator(\"Spportlink\")[1]);\n\t\tSystem.out.println(\"24*7 goCare Support link is Displayed on Header\");\n\t\tConstants.driver.manage().timeouts().implicitlyWait(60,TimeUnit.SECONDS) ;\n\t\tKeywords.terminateBrowser();\n\n\t}", "private boolean checkSiteVisited(String url)\r\n\t{\r\n\t\tfor (int i = 0; i < siteVisited; i++)\r\n\t\t{\r\n\t\t\tif (webVisited[0][i].equals(url))\t\t\t//this url has been visited by user before\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "@Test\n @Then(\"Market URL is opened\")\n public void s05_MarketUrlCheck() {\n String currentMUrl = driver.getCurrentUrl();\n Assert.assertTrue(currentMUrl.contains(\"market.yandex.ru\"));\n System.out.println(\"Step05 PASSED\");\n }", "@Test(priority =3)\n\t public void validatehomepage() throws InterruptedException \n\t {\n\t\t\n\t\tdriver.findElement(By.linkText(\"Unit and Extension test\")).isDisplayed(); \n\t\t\n\t }", "@Test\n\tpublic void HandleAjaxMethod(){\n \tSystem.setProperty(\"webdriver.chrome.driver\", \"c:\\\\chromedriver.exe\");\n \tWebDriver driver = new ChromeDriver(); //launching the browser\n \tdriver.get(\"http://www.google.com\");\n \tdriver.manage().window().maximize(); //maximize\n \tdriver.findElement(By.name(\"q\")).sendKeys(\"kea\");\n \tWebDriverWait wait = new WebDriverWait(driver,30);\n \ttry{\n \t\t//need to wait for list of suggestions to appear after keying in\n \t\twait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//*[@role='listbox']/li[1]\")));\n \t\tList <WebElement> list = driver.findElements(By.xpath(\"//*[@role='listbox']/li\"));\n \t\tfor(WebElement element : list){\n \t\t\tif(element.getText().equals(\"keanu reeves\")){\n \t\t\t\telement.click();\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}catch(NoSuchElementException e){\n \t\tSystem.out.println(\"No Such ELement Found\");\n }\n}", "@Override\n public void verifySurveyPage(String vertical) {\n String currentURL = getWebdriverInstance().getCurrentUrl();\n if (!currentURL.contains(vertical + \"/survey\") || !currentURL.contains(\"isMobileFullSite=true\")) {\n throw new org.openqa.selenium.NotFoundException(\"Was expecting to be on \" + vertical + \" survey page\" +\n \" but was on\" + currentURL);\n }\n\n }", "@Given(\"User is logging on MyStore\")\r\n public void searchingForProduct() {\n LoginPageNew login = new LoginPageNew(driver);\r\n MainPage main = new MainPage(driver);\r\n AccountPage accPage = new AccountPage(driver);\r\n AddingAnAddressForm addressForm = new AddingAnAddressForm(driver);\r\n login.loginAs(\"bodorat996@wedbo.net\", \"123456\");\r\n main.goToAccPage();\r\n accPage.goToAddAddressForm();\r\n addressForm.fillingAddressForm(\"12\",\"Street Fighting Man\",\"02-223\",\"Sandia\",\"112322031\");\r\n accPage.goToMainPage();\r\n }", "@Test\n public void paginationTest() throws InterruptedException {\n SearchNavigation.gotoSearchResultsPage(index, \" \");\n assertTrue(\"Pagination does not Exist\", AssistanceListingSearchPage.resultsPageCount() > 1);\n System.out.println(\"Search results and Pagination exists\");\n }", "@Test\n public void ebayTestSearchResults() throws Exception {\n driver.findElement(By.id(\"gh-ac\")).sendKeys(\"java book\");\n driver.findElement(By.id(\"gh-btn\")).click();\n\n Thread.sleep(4000);\n\n WebElement searchResults = driver.findElement(By.tagName(\"h1\"));\n //21,761 results for java book\n String resultActual = searchResults.getText();\n System.out.println(resultActual);\n }", "@Test\n\tpublic void Login()\n\t{\n\t\n\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\work\\\\chromedriver.exe\");\n\tWebDriver d = new ChromeDriver();\n\t\n\td.get(\"https://mail.rediff.com/cgi-bin/login.cgi\");\n\t\n\tRediffLoginPagePOF rl = new RediffLoginPagePOF(d);\n\trl.User().sendKeys(\"hello\");\n\trl.Password().sendKeys(\"hello\");\n\t//rl.Go().click();\n\trl.Home().click();\n\t\n\tRediffHomePage rh = new RediffHomePage(d);\n\trh.Searchtext().sendKeys(\"books\");\n\trh.Searchbtn().click();\n\tSystem.out.println(\"text1\");\n\tSystem.out.println(\"branch1\");\n\t\n\t\t\n\t\n\t\n\t}", "@Given(\"^user visit homepage$\")\n\tpublic void user_visit_homepage() throws Throwable {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Program Files\\\\chromedriver_win32\\\\chromedriver.exe\");\n\t\t//\"key\",\"value\"\n\t\t//\"driver name\",\"path of driver\"\n\t\tdriver= new ChromeDriver();\n\t\t\n\t\t//driver.manage().timeouts().implicitlyWait(20,TimeUnit.SECONDS);\n\t\t\n\t\t\n\t\t//open URL\n\t\tdriver.get(\"https://demo.oscommerce.com/\");\n\t\t\n\t\t//driver.get(\"https://www.amazon.com/\");\n\t\t}", "public static void main(String[] args) throws InterruptedException {\n\r\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"F:\\\\Selenium\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\t\t\t\r\n\t\t\t\tWebDriver driver = new ChromeDriver();\r\n\t\tdriver.get(\"https://www.google.co.in/\");\r\n\t\tWebElement t = driver.findElement(By.cssSelector(\"#tsf > div:nth-child(2) > div > div.RNNXgb > div > div.a4bIc > input\"));\r\n\t\t\r\n\t\tt.sendKeys(\"yify\");\r\n\t\t\tThread.sleep(3000);\r\n\t\t\t\r\n\t\t\tList<WebElement>r = driver.findElements(By.xpath(\"//ul[@role='listbox']//li/descendant::div[@class='sbtc']\"));\r\n\t\t\t\tint y =r.size();\r\n\t\t\t\tSystem.out.println(\"No of suggestion is \" + y);\r\n\t\t\t\t\r\n\t\t\t\tfor (int i=0; i<y; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tString p = r.get(i).getText();\r\n\t\t\t\t\tSystem.out.println(p);\r\n\t\t\t\t\tif(p.contains(\"yify\"));\r\n\t\t\t\t\t{\r\n\t\t\t\t\t r.get(i).click();\r\n\t\t\t\t\t break;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tList<WebElement> allLinkname = driver.findElements(By.tagName(\"h3\"));\r\n\t\t\r\n\t\r\n\t\t//Print the size of no of linkname present in alllinkname\r\n\t\t\r\n\t\tint size = allLinkname.size();\r\n\t\tSystem.out.println(size);\r\n\t\t\r\n\t\t//Printing there names in console\r\n\t\tfor (WebElement Link : allLinkname) {\r\n\t\t\t\r\n\t\t\tString value = Link.getText();\r\n\t\t\tSystem.out.println(value);\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i =0; i<size; i++)\r\n\t\t{\r\n\t\t\t\r\n\t\t\tString value2 = allLinkname.get(i).getText();\r\n\t\t\tif (value2.equals(\"YTS: The Official Home of YIFY Movies Torrent Download\"))\r\n\t\t\t{\r\n\t\t\t\tallLinkname.get(i).click();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//Printing name of yify window\r\n\t\tString yifywindow = driver.getWindowHandle();\r\n\t\tSystem.out.println(yifywindow);\r\n\t\t\r\n\t\t//Click on browse search box text box\r\n\t\tdriver.findElement(By.cssSelector(\"#quick-search-input\")).click();\r\n\t\t\r\n\t\t\r\n\t\t// Storing all tab or window value in allwindow variable\r\n\t\t\r\n\t\tSet<String> allwindow = driver.getWindowHandles();\r\n\t\t// Printing the no of window\r\n\t\tSystem.out.println(allwindow.size());\r\n\t\t\r\n\t\t//Proof that still first window has power\r\n\t\tSystem.out.println(driver.getCurrentUrl());\r\n\t\t\r\n\t\t//Printing the exact values of each window\r\n\t\tSystem.out.println(allwindow);\r\n\t\t\r\n\t\t//Switch to second window\r\n\t\tfor (String child : allwindow) {\r\n\t\t\tif(!child.equals(yifywindow))\r\n\t\t\t{\r\n\t\t\t\tdriver.switchTo().window(child);\r\n\t\t\t\tSystem.out.println(driver.getCurrentUrl());\r\n\t\t\t\tdriver.close();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Again switch to yify window\r\n\t\tdriver.switchTo().window(yifywindow);\r\n\t\tSystem.out.println(driver.getCurrentUrl());\r\n\t\t\r\n\t\t//closing unwanted popup\r\n\t\t//driver.findElement(By.cssSelector(\"#id5c2a23c1c4close-cross5c2a23c1c4\")).click();\r\n\t\t\r\n\t\t//Click on browse search box text box\r\n\t\tdriver.findElement(By.cssSelector(\"#quick-search-input\")).sendKeys(\"captain marvel\");\r\n\t\t\r\n\t\t\r\n\t\t//driver.findElement(By.cssSelector(\"#quick-search-input\")).click();\r\n\t// driver.findElement(By.cssSelector(\"#quick-search-input\")).sendKeys(Keys.ENTER);\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t\r\n\t\r\n\r\n}", "public void searchProd(){\n\t\t\n\t\t// STEP 4:-\n\t\t// Enter 'mobile' in search bar.\n\t\tWebElement search = driver.findElement(By.name(\"q\"));\n\t\tsearch.sendKeys(\"mobiles\");\n\t\tsearch.sendKeys(Keys.ENTER);\n\t\tSystem.out.println(\"Enter name successfully\");\n\t\t\t\t\t\n\t\t// Click on search icon.\n\t\t//WebElement searchClick = driver.findElement(By.className(\"L0Z3Pu\"));\n\t\t//searchClick.click();\n\t\t//System.out.println(\"clicked search button successfully\");\n\t}", "@Test(priority = 2)\r\n\tpublic void testLoginPage() {\r\n\r\n\t\tdriver.navigate().to(Login.URL);\r\n\t\tdriver.manage().window().maximize();\r\n\t\tLogin.typeEmail(driver, \"email@mail.com\");\r\n\t\tLogin.typePassword(driver, \"lozinka\");\r\n\t\t\r\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\r\n\t\tLogin.clickLoginButton(driver);\r\n\t\t\t\t\r\n\t\tString currentUrl = driver.getCurrentUrl();\r\n\t\tString expectedUrl = \"https://www.humanity.com/app/\";\r\n\t\tSoftAssert sa = new SoftAssert();\r\n\t\tsa.assertEquals(currentUrl, expectedUrl);\r\n\t\tsa.assertAll();\r\n\t}", "public void myConnections(String search) throws Exception\r\n\t{\r\n\t\tCommonMethods.wait(driver,MyConnections);\r\n\t\tCommonMethods.click(MyConnections);\r\n\t\tCommonMethods.wait(driver,searchBox);\r\n\t\tCommonMethods.click(searchBox);\r\n\t\tCommonMethods.wait(driver,input);\r\n\t\tCommonMethods.enter(input, search);\r\n\t\tCommonMethods.wait(driver,searchElement2);\r\n\t\tCommonMethods.click(searchElement2);\r\n//\t\tCommonMethods.clickable(connect);\r\n\t}", "@Test\n public void testUserSearch() {\n try {\n //Navigate to users search page (faster this way)\n driver.get(\"http://stackoverflow.com/users\");\n \n wait(3);\n \n //Get user-search box; auto-polling by javascript; no submit() needed\n driver.findElement(By.id(\"userfilter\")).sendKeys(\"fojallupigi-4562\");\n \n wait(4);\n \n //determine if my username is the only result\n String username = driver.findElement(By.cssSelector(\".user-details > a:nth-child(1)\")).getText();\n assertEquals(\"fojallupigi-4562\", username);\n }\n catch(NoSuchElementException nsee) {\n fail();\n }\n }", "@Test()\n\tpublic static void Homep1() {\n\t\t\n\t\tdriver= CallingChrome();\ndriver.navigate().to(\"https://www.spicejet.com/\");\n\t\t\n\n\t\t\n\t\tSystem.out.println(driver.findElement(By.xpath(\"//a[text()='Book']\")).getText());\t\n\t}", "private void doSearchRedirect(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n String search = request.getParameter(\"search\");\n \n if(search == null || search.trim().isEmpty()) {\n error(\"Recherche invalide\", request, response);\n return;\n }\n \n redirect(String.format(\"./search/%s\", search), \"Recherche en cours ...\",\n request, response);\n }", "@Given(\"^user is already login page$\")\n\tpublic void user_is_already_login_page() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\Jamshed Khan\\\\Downloads\\\\chromedriver_win32 (2)\\\\chromedriver.exe\");\n\t\t driver= new ChromeDriver();\n\t\t driver.get(\"http://demo.guru99.com/v4\");\n\t}", "@Override\n\tpublic void checkPage() {\n\t}", "@Test\n public void searchForCourse(){\n UoMSearchPage page = new UoMSearchPage(driver);\n page.get();\n page.searchForStudies(\"Software Development\");\n assertTrue(page.isSoftwareDevelopmentComponentPresent());\n }", "@Test\n\tpublic void buyTV() throws InterruptedException{\n\t\tbuyNowPage.SearchTV();\n\t\t\n\t\t\n\t}", "@Test\n public void testSearchBoxCategoriesList() throws InterruptedException {\n log.info(\"Go to Homepage \" );\n log.info(\"Go to Search Box in Header \" );\n log.info(\"Write urn \" );\n Actions builder = new Actions(driver);\n WebElement searchBox = driver.findElement(By.id(\"SearchInputs\")).findElement(By.tagName(\"input\"));\n searchBox.click();\n searchBox.sendKeys(\"urn\");\n WebElement categoryResults = driver.findElement(By.partialLinkText(\"category results\"));\n List<WebElement> categoryResultsList = driver.findElement(By.className(\"categories\")).findElements(By.tagName(\"a\"));\n WebDriverWait wait = new WebDriverWait(driver, 1000);\n wait.until(ExpectedConditions.elementToBeClickable(categoryResults));\n log.info(\"Click on first result from category suggestion list\" );\n categoryResultsList.get(0).click();\n log.info(\"Confirm that the link oppened contains searched term (urn in this case ) related results.\");\n assertTrue(driver.getCurrentUrl().contains(\"urn\"));\n }", "public static void main(String[] args) {\n\n\t\tWebDriverManager.chromedriver().setup();\n\t\t\n\t\tWebDriver driver = new ChromeDriver();\n\t\t\n\t\tdriver.get(\"https://www.etsy.com/ca/\");\n\t\n\t\t\n\t\t\n\t\tString searchTerm=\"wooden spoon\";\n\n\t\t//\t\tdriver.findElement(By.id(\"search-query\")).sendKeys(searchTerm);\n\t\t//WebElemnt class represent element from page. find element method returns a webelement object\n\t\t\n\t\tWebElement input =driver.findElement(By.id(\"search-query\"));\n\t input.sendKeys(searchTerm+Keys.ENTER);\n\t\t\n\t input=driver.findElement(By.id(\"search-query\"));\n\t //To hit the enter you have to import Keys class.\n\t String actual = input.getAttribute(\"value\");\n\t System.out.println(actual);\n\t\t\n\t\tif(actual.equals(searchTerm)) {\n\t\t\tSystem.out.println(\"Pass\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Fail\");\n\t\t\tSystem.out.println(\"Expected:\\t\"+ searchTerm);\n\t\t\tSystem.out.println(\"Actual:\\t\"+ actual);\n\t\t}\n\t\tSystem.out.println(input.getAttribute(\"outerHTML\"));\n\t \n\t\tdriver.findElement(By.linkText(\"Sell on Etsy\")).click();\n\t\t\n\t\t input=driver.findElement(By.id(\"search-query\"));\n\t\t //To hit the enter you have to import Keys class.\n\t\t String actual2 = input.getAttribute(\"id\");\n\t\t System.out.println(actual2);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "GetSiteResult getSite(GetSiteRequest getSiteRequest);", "public String search() {\r\n\t\tgetNavigationPanel(3);\r\n\t\treturn SUCCESS;\r\n\t}", "@Test(priority = 1)\n\tpublic void homePageRedirection() {\n\t\tlogger = extent.startTest(\"Flight Booking\");\n\t\tlog.info(\"Starting Redirection validation\");\n\t\thome.isRedirectionCorrect();\n\t\tlog.info(\"Redirection is on the correct page\");\n\t\tlog.info(\"Starting the homepage testing\");\n\t}", "@Given(\"^User is on netbanking landing page$\")\r\n public void user_is_on_netbanking_landing_page() throws Throwable {\n System.out.println(\"Navigated to Login URL\");\r\n }", "public Result clickSearch() {\n\t\tthis.searchButton.click();\r\n\t\treturn new Result(driver);\r\n\t}", "public static void main(String[] args) {\n WebDriver driver = WebDriverFactory.getDriver(\"chrome\");\n driver.get(\"https://www.amazon.com/\");\n\n WebElement searchBox = driver.findElement(By.id(\"twotabsearchtextbox\"));\n searchBox.sendKeys(\"selenium cookbook\" + Keys.ENTER);\n\n WebElement searchedItem = driver.findElement(By.xpath(\"//span[.=\\\"Selenium Testing Tools Cookbook - Second Edition\\\"]\"));\n System.out.println(searchedItem.getText());\n if(searchedItem.isDisplayed()){\n System.out.println(\"pass\");\n }else{\n System.out.println(\"fail\");\n }\n\n\n\n }", "public static void verifyFormPagesAndFill() throws MalformedURLException, InterruptedException, ParseException {\n\t\t// get pages\n\t\tList<MobileElement> pagination = AndroidLocators\n\t\t\t\t.findElements_With_Xpath(\"//*[contains(@content-desc,'Page ')]\");\n\t\t// checkif pagination link exists\n\t\tif (pagination.size() > 0) {\n\t\t\tSystem.out.println(\" ----- pagination exists ----- \");\n\n\t\t\t// click on pagination link\n\t\t\tfor (int i = 0; i < pagination.size(); i++) {\n\t\t\t\tSystem.out.println(\".... Clicking on page .... : \" + pagination.get(i));\n\t\t\t\tpagination.get(i).click();\n\t\t\t\tverifySectionToClickAdd();\n\t\t\t\tfill_Form_With_Pagination(i);\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\" **** pagination not exists **** \");\n\t\t\tverifySectionToClickAdd();\n\t\t\tformfill();\n\t\t}\n//\t\tForms.formSaveButton();\n\t}", "@Test\n\tpublic void GlobalSearch_28766_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\t// Inserting a single char 'A' in the Global Search bar\n\t\tVoodooControl searchBox = sugar().navbar.getControl(\"globalSearch\");\n\t\tsearchBox.set(sugar().accounts.getDefaultData().get(\"name\").substring(0,1));\n\t\tVoodooUtils.waitForReady();\n\n\t\t// Clicking on 'View All Results' in Quick Search bar\n\t\tVoodooControl viewAllResults = sugar().navbar.search.getControl(\"viewAllResults\");\n\t\tviewAllResults.click();\n\n\t\t// Verifying the user is navigated to Global search page \n\t\tFieldSet fs = testData.get(testName).get(0);\n\t\tsugar().globalSearch.getControl(\"headerpaneTitle\").assertContains(fs.get(\"searchResultPage\"), true);\n\n\t\t// Inserting a single char 'r' in the Global Search bar\n\t\tsearchBox.set(sugar().accounts.getDefaultData().get(\"name\").substring(6,7));\n\t\tVoodooUtils.waitForReady();\n\n\t\t// Clicking on 'View All Results' in Quick Search bar\n\t\tviewAllResults.click();\n\n\t\t// Verify the Quick Search pane dismiss after clicking on 'View All Results'\n\t\tsugar().navbar.search.getControl(\"searchResults\").assertVisible(false);\n\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}", "private static void addSeedURL()\r\n\t{\r\n\t\tSystem.out.println(\"Enter a website to search for keywords.\");\r\n\t\tString userInput = input.nextLine();\r\n\t\t\r\n\t\tif(userInput.length() >= 7 && !(userInput.substring(0, 6).equals(\"https://\")))\r\n\t\t{\r\n\t\t\tuserInput = \"http://\" + userInput;\r\n\t\t\t\r\n\t\t\ttry \r\n\t\t\t{\r\n\t\t\t\tSharedLink.addLink(userInput);\r\n\t\t\t} \r\n\t\t\tcatch (InterruptedException e) \r\n\t\t\t{\r\n\t\t\t\t//do nothing\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@org.junit.Ignore\n\t@Test\n\tpublic void simpleGET() {\n\t\tString url = \"http://www.google.com/search?hl=pl\";\n\t\tHttpRequestFactory requestFactory = new HttpRequestFactoryImpl();\n\t\tHttpRequest request = requestFactory.createRequest(url);\n\t\tString response = request.doGet();\n\t\tassertTrue(\"Unexpected HTTP response.\", isGooglePage(response));\n\t}", "public static void main(String[] args) {\n\n WebDriver driver= WebDriverFactory.getDriver(\"chrome\");\n\n driver.get(\"https://amazon.com\");\n driver.get(\"https://ebay.com\");\n\n WebElement searchBox=driver.findElement(By.xpath(\"//input[@type='text']\"));\n searchBox.sendKeys(\"books\");\n\n WebElement search=driver.findElement(By.xpath(\"//input[@type='submit']\"));\n search.click();\n\n String actualWord=driver.getTitle();\n\n System.out.println(\"title is: \"+ actualWord);\n\n String expectedWord=\"books\";\n\n if(actualWord.contains(expectedWord)){\n System.out.println(\"Pass\");\n }else{\n System.out.println(\"Fail\");\n System.out.println(\"actualWord = \" + actualWord);\n System.out.println(\"expectedWord = \" + expectedWord);\n }\n\n }", "public static void main(String[] args) throws InterruptedException {\n System.setProperty(\"webdriver.chrome.driver\",\"src//Resource//chromedriver.exe\");\n //you declare and define web driver\n WebDriver driver = new ChromeDriver();\n\n //set array list for the cars\n ArrayList<String> cars = new ArrayList<>();\n cars.add(\"lexus\");\n cars.add(\"Ford\");\n cars.add(\"Honda\");\n cars.add(\"BMW\");\n cars.add(\"Tesla\");\n\n for (int i = 0; i < cars.size(); i++) {\n\n //opening the browser automatically\n driver.navigate().to(\"http://www.google.com\");\n //maximize your browser\n driver.manage().window().maximize();\n\n //wait\n Thread.sleep(2000);\n\n //using ty catch exception to handle any error\n\n try {\n //locate the search field by inspecting it then enter keyword cars\n WebElement search = driver.findElement(By.xpath(\"//*[@name='q']\"));\n search.sendKeys(cars.get(i));\n } catch (Exception e) {\n System.out.println(\"unable to enter the data on search field\" + e);\n }//end of search field exception\n\n try {\n driver.findElement(By.xpath(\"//*[@name='btnK']\")).submit();\n } catch (Exception e) {\n System.out.println(\"unable to submit on search icon\" + e);\n }//end of search icon exception\n\n //wait\n Thread.sleep(2000);\n\n try {\n //to capture text from website you need to\n String message = driver.findElement(By.xpath(\"//*[@id='result-stats']\")).getText();\n //using array variables to split above message\n String[] arrayResult = message.split(\" \");\n System.out.println(\"My search number is \" + arrayResult[1]);\n } catch (Exception e) {\n System.out.println(\"unable to capture on search Result \" + e);\n }//end of search result exception\n\n\n //quit the session\n //driver.quit();\n\n //close the session\n /*driver.close();*/\n\n }//end of for loop\n }", "public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Users\\\\My\\\\Downloads\\\\chromedriver_win32\\\\chromedriver.exe\");\n\t\tWebDriver driver = new ChromeDriver();\n\t\tdriver.get(\"https://www.amazon.com/\");\n\t\tWebElement search= driver.findElement(By.id(\"twotabsearchtextbox\"));\n\t\tsearch.sendKeys(\"books\");\n\t\tsearch.click();\n\t\tString searchattempt = driver.getTitle();\n\t\tString expectedtite = \"Amazon.com: Online Shopping for Electronics, Apparel, Computers, Books, DVDs & more\";\n\t\tif(expectedtite == searchattempt) {\n\t\t\tSystem.out.println(\"the execution is success\");\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"exection is failed\");\n\t\t\t\n\t\t}\n\t\t\t\t\n\t\tdriver.quit();\n\t\t \n\n\t}", "public boolean isGooglePageLoaded() throws Exception {\n\n\t\tWebElement icoGoogleSearch = driver.findElement(By\n\t\t\t\t.cssSelector(\"#hplogo\"));\n\t\tWebElement txtGoogleSearchField = driver.findElement(By\n\t\t\t\t.cssSelector(\"#lst-ib\"));\n\t\tWebElement btnGoogleSearch = driver.findElement(By\n\t\t\t\t.cssSelector(\"[value~=Google]\"));\n\t\tWebElement btnGoogleImFeelingLucky = driver.findElement(By\n\t\t\t\t.cssSelector(\"[value~=Feeling]\"));\n\t\tint count = 0;\n\n\t\twhile (!icoGoogleSearch.isDisplayed() || count == 5) {\n\t\t\tThread.sleep(1000);\n\t\t\tcount++;\n\t\t}\n\n\t\tif (!icoGoogleSearch.isDisplayed())\n\t\t\tthrow new NoSuchElementException(\n\t\t\t\t\t\"Google Search Logo is not displayed\");\n\t\tif (!txtGoogleSearchField.isDisplayed())\n\t\t\tthrow new NoSuchElementException(\n\t\t\t\t\t\"Google Search Text Field is not displayed\");\n\t\tif (!btnGoogleSearch.isDisplayed())\n\t\t\tthrow new NoSuchElementException(\n\t\t\t\t\t\"Google Search Button is not displayed\");\n\t\tif (!btnGoogleImFeelingLucky.isDisplayed())\n\t\t\tthrow new NoSuchElementException(\n\t\t\t\t\t\"I'm Feeling Lucky button is not displayed\");\n\n\t\treturn true;\n\t}", "@Test\n public void Can_Search_Tests() throws InterruptedException {\n PostCreator.CreatePost();\n\n // Go to list posts - commented this because now the searchForPost() checks and goes if necessary\n // ListPostsPage.goTo(PostType.Posts);\n\n // Search for post\n ListPostsPage.searchForPost(PostCreator.getPreviousTitle());\n\n // Check that post shows up in results\n Assert.assertTrue(ListPostsPage.DoesPostExistWithTitle(PostCreator.getPreviousTitle()));\n }", "@Test\n public void test_site() throws AppException {\n assertEquals(getSite(\"desktop_web\"),\"desktop web\");\n assertEquals(getSite(\"mobile_web\"),\"mobile web\");\n }", "public void performSearch() {\n History.newItem(MyWebApp.SEARCH_RESULTS);\n getMessagePanel().clear();\n if (keywordsTextBox.getValue().isEmpty()) {\n getMessagePanel().displayMessage(\"Search term is required.\");\n return;\n }\n mywebapp.getResultsPanel().resetSearchParameters();\n //keyword search does not restrict to spots\n mywebapp.addCurrentLocation();\n if (markFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(markFilterCheckbox.getValue());\n }\n if (contestFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setContests(contestFilterCheckbox.getValue());\n }\n if (geoFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setGeospatialOff(!geoFilterCheckbox.getValue());\n }\n if (plateFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(plateFilterCheckbox.getValue());\n }\n if (spotFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setSpots(spotFilterCheckbox.getValue());\n }\n String color = getValue(colorsListBox);\n mywebapp.getResultsPanel().getSearchParameters().setColor(color);\n String manufacturer = getValue(manufacturersListBox);\n if (manufacturer != null) {\n Long id = new Long(manufacturer);\n mywebapp.getResultsPanel().getSearchParameters().setManufacturerId(id);\n }\n String vehicleType = getValue(vehicleTypeListBox);\n mywebapp.getResultsPanel().getSearchParameters().setVehicleType(vehicleType);\n// for (TagHolder tagHolder : tagHolders) {\n// mywebapp.getResultsPanel().getSearchParameters().getTags().add(tagHolder);\n// }\n mywebapp.getResultsPanel().getSearchParameters().setKeywords(keywordsTextBox.getValue());\n mywebapp.getMessagePanel().clear();\n mywebapp.getResultsPanel().performSearch();\n mywebapp.getTopMenuPanel().setTitleBar(\"Search\");\n //mywebapp.getResultsPanel().setImageResources(resources.search(), resources.searchMobile());\n }" ]
[ "0.6899114", "0.67914695", "0.65940934", "0.6393511", "0.6390931", "0.6343107", "0.63268334", "0.6287704", "0.6267026", "0.6230476", "0.6209527", "0.61707115", "0.60825074", "0.6056395", "0.6053568", "0.59775895", "0.59523845", "0.59423006", "0.5901689", "0.5898862", "0.5896052", "0.58639014", "0.5848563", "0.582614", "0.5820371", "0.58145845", "0.58080906", "0.580195", "0.5796682", "0.5751366", "0.5738514", "0.5724247", "0.5708806", "0.5702852", "0.56876284", "0.56862676", "0.5661668", "0.56557083", "0.5654523", "0.56377864", "0.56236935", "0.56086123", "0.55952334", "0.5583924", "0.55721706", "0.5560855", "0.5560313", "0.55570567", "0.5508549", "0.5506393", "0.549905", "0.5487924", "0.5483069", "0.5473331", "0.5448185", "0.5446335", "0.5435609", "0.543109", "0.54284096", "0.5423735", "0.54139566", "0.5413636", "0.5397788", "0.539621", "0.5384195", "0.5381627", "0.5372155", "0.53664213", "0.53477097", "0.5345478", "0.5345263", "0.53448516", "0.5340572", "0.5339751", "0.5336848", "0.5330376", "0.53227663", "0.53212357", "0.5319278", "0.5308419", "0.53078973", "0.53004134", "0.5299737", "0.52991074", "0.52951014", "0.5288497", "0.52809596", "0.52796507", "0.5271465", "0.5268087", "0.52617896", "0.52497613", "0.5249269", "0.5244309", "0.5238311", "0.5236643", "0.5234295", "0.5229569", "0.5223625", "0.5220878", "0.521417" ]
0.0
-1
Navigate to Session Setup
public void SessionSetupNav() throws InterruptedException { if (Controls.isElementPresent(By.id(placementProp.getProperty("sitename.id")))==true) { Controls.Type(By.id(placementProp.getProperty("SessionLabel.id")),placementProp.getProperty("Clinicalsitename")); if(Controls.isElementPresent(By.xpath(placementProp.getProperty("Search_Button.Xpath")))==true) { Controls.Click(By.xpath(placementProp.getProperty("Search_Button.Xpath"))); } else { Reports.log(Status.FAIL, "Search button is missing"); } } else { Reports.log(Status.FAIL, "Search field doesn't found"); } Controls.wait(5000); if (Controls.isElementPresent(By.xpath(placementProp.getProperty("Session_SearchResult.Xpath")))==true) { Controls.Click(By.xpath(placementProp.getProperty("SessionSetupArrow.xpath"))); }else { Reports.log(Status.SKIP, "No search result found so can't be redirected to Session Setup page."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void navigateToLoginPage() {\r\n\t\tBrowser.open(PhpTravelsGlobal.PHP_TRAVELS_LOGIN_URL);\r\n\t}", "public void redirectToHomeSameSession() {\r\n\t\t\r\n\t\ttry{\r\n\t\twebAppDriver.get(baseUrl);\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void gotoCoachLogin(){ application.gotoCoachLogin(); }", "public void gotoAdminLogin(){ application.gotoAdminLogin(); }", "private void setupSession() {\n // TODO Retreived the cached Evernote AuthenticationResult if it exists\n// if (hasCachedEvernoteCredentials) {\n// AuthenticationResult result = new AuthenticationResult(authToken, noteStoreUrl, webApiUrlPrefix, userId);\n// session = new EvernoteSession(info, result, getTempDir());\n// }\n ConnectionUtils.connectFirstTime();\n updateUiForLoginState();\n }", "private void GoToLogin() {\n\t\tstartActivity(new Intent(this, LoginActivity.class));\r\n\t\tapp.user.sessionID = \"\";\r\n\t\tMassVigUtil.setPreferenceStringData(this, \"SESSIONID\", \"\");\r\n\t}", "public static void navigateAdminLoginPage() {\n Browser.driver.get(\"http://shop.pragmatic.bg/admin\");\n }", "public void returnToSessionList() {\n Context context = this;\n Class destinationClass = SessionListActivity.class;\n Intent intentToStartDetailActivity = new Intent(context, destinationClass);\n startActivity(intentToStartDetailActivity);\n }", "@Override\n\tpublic void goToLogin() {\n\t\t\n\t}", "public void goToLoginPage()\n\t{\n\t\tclickAccountNameIcon();\n\t\tclickSignInLink();\n\t}", "@Given(\"^Open SignIn site$\")\t\t\t\t\t\n public void Open_SignIn_site() throws Throwable \t\t\t\t\t\t\t\n { \t\t\n \tdriver.navigate().to(\"https://accounts.google.com/ServiceLogin/identifier?flowName=GlifWebSignIn&flowEntry=AddSession\");\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\t\t\t\t\t\n }", "public void Navigate_to_Registration_Page(){\n\n waitForVisibilityOfElement(RegistrationPageLocator.Registration_Tab_Home_Screen_Link_Text);\n Assert.assertTrue(getRegistrationTab_InHomeScreen().getText().equals(StringUtils.Registration_Tab_Text));\n getRegistrationTab_InHomeScreen().click();\n waitForVisibilityOfElement(RegistrationPageLocator.Registration_Form_Submit_Button);\n\n }", "@Given(\"open dev login page\")\n public void openDevLoginPage() {\n open(variables.URL_Login);\n }", "public void Placement_BySession_PageNav() {\n\t\t\t\n\t\t\t\n\t\t\tControls.hoverclick(By.linkText(\"Placements\"), By.linkText(\"By Session\"));\n\t\t\tControls.dynemicwait(By.xpath(\"//*[@id=\\\"mainBody\\\"]/div[3]/div[2]/div/div[1]/div[2]\"));\n\t\t\t\n\t\t\t\n\t\t\tif(Controls.GetText(By.xpath(placementProp.getProperty(\"title.xpath\"))).trim().equalsIgnoreCase(\"By Session\"))\n\t\t\t{\n\t\t\t\tReports.log(Status.PASS, \"Page is redirected on Placement 'By Session' page successfully\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tReports.log(Status.FAIL, \"Page is redirected on incorrect page\");\n\t\t\t\t\n\t\t\t}\t\n\t\t\t\n\t\t\t\n\t\t}", "public void launchSetupScreen() {\n\t\tnew SetUpScreen(this);\n\t}", "public void goTo() { // Navigate to home page\n\t\tBrowser.goTo(url);\n\t}", "@Given(\"User is on the login page\")\n\tpublic void user_is_on_the_login_page() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src\\\\test\\\\resources\\\\chromedriver.exe\");\n\t\tdriver=new ChromeDriver();\n\t\tdriver.get(\"https://10.232.237.143/TestMeApp/fetchcat.htm\");\n\t\tdriver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\t driver.findElement(By.id(\"details-button\")).click();\n\t\tdriver.findElement(By.id(\"proceed-link\")).click();\n\t}", "private void gotoPlay() {\n Intent launchPlay = new Intent(this, GameConfig.class);\n startActivity(launchPlay);\n }", "@Test\r\n public void testInitSession() {\r\n System.out.println(\"initSession\");\r\n assertNotNull(sm);\r\n \r\n boolean result = sm.initSession(\"test1\", programsHome, programsHome + \"files1/\", requester);\r\n assertFalse(result);\r\n \r\n result = sm.initSession(\"test2\", programsHome, programsHome + \"files2/\", requester);\r\n assertFalse(result);\r\n \r\n result = sm.initSession(\"test3\", programsHome, programsHome + \"files3/\", requester);\r\n assertFalse(result);\r\n \r\n result = sm.initSession(\"test4\", programsHome, programsHome + \"files4/\", requester);\r\n assertTrue(result);\r\n \r\n sm.removeSession(\"test4\");\r\n }", "@Test\n public void loginRegistersSessionRoutes_GlobalCanBeAdded() {\n getDriver().get(getTestURL()+\"global\");\n\n WebElement login = findElement(By.id(\"login-field\"));\n WebElement pwd = findElement(By.id(\"password-field\"));\n\n login.sendKeys(\"admin\");\n pwd.sendKeys(\"admin\");\n\n // Login as admin.\n findElement(By.id(\"submit\")).click();\n\n Assert.assertEquals(\"Should have now admin view visible.\", 3,\n findElements(By.tagName(\"vaadin-checkbox\")).size());\n\n // Time and Version views should have been registered to session on login.\n Assert.assertFalse(\"Time link should be available\",\n findElements(By.id(\"time-link\")).isEmpty());\n Assert.assertFalse(\"Version link should be available\",\n findElements(By.id(\"version-link\")).isEmpty());\n\n // Register Global to application scope\n findElement(By.id(\"global-checkbox\")).click();\n\n // Now global should be available\n getDriver().get(getTestURL()+\"global\");\n\n Assert.assertFalse(\"Global view should have been available\",\n findElements(By.id(\"remove-global\")).isEmpty());\n\n // as we are still in the session version and view should be available\n getDriver().get(getTestURL()+\"version\");\n Assert.assertFalse(\"Version view should have been available\",\n findElements(By.id(\"version-return\")).isEmpty());\n\n getDriver().get(getTestURL()+\"time\");\n Assert.assertFalse(\"Time view should have been available\",\n findElements(By.id(\"time-return\")).isEmpty());\n\n open();\n\n findElement(By.id(\"logout\")).click();\n\n // We should be at login view, but have a global view registered\n Assert.assertFalse(\"Global link should be available on login\",\n findElements(By.id(\"global-link\")).isEmpty());\n\n // now that the session was killed we should not get to time or version views\n\n getDriver().get(getTestURL()+\"version\");\n Assert.assertTrue(\"Version view shouldn't be available\",\n findElements(By.id(\"version-return\")).isEmpty());\n Assert.assertFalse(\"Login view should have been displayed\",\n findElements(By.id(\"global-link\")).isEmpty());\n\n getDriver().get(getTestURL()+\"time\");\n Assert.assertTrue(\"Time view shouldn't be available\",\n findElements(By.id(\"time-return\")).isEmpty());\n Assert.assertFalse(\"Login view should have been displayed\",\n findElements(By.id(\"global-link\")).isEmpty());\n }", "private void launchLoginScreen() {\n NavGraphDirections.GotoLoginUrlGlobalAction action = gotoLoginUrlGlobalAction(authenticatorUtils.buildAuthUrl());\n\n navController.navigate(action);\n }", "@Given(\"Login Functionality\")\n public void Login_Functionality() {\n String url = ConfigurationReader.get(\"url\");\n Driver.get().get(url);\n //login with valid credentials\n loginPage.login();\n }", "private void checkSessionAction(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\treq.getRequestDispatcher(\"/jsps/manage/index.jsp\").forward(req, resp);\r\n\t}", "@Given(\"user is on the login page\")\n public void user_is_on_the_login_page() {\n //according to POM, driver cannot be instantiated here\n// WebDriverManager.chromedriver().setup(); //makes the setup of webdriver, it is setting up chromedriver and connects the WebDriver object with the browser\n// driver = new ChromeDriver();\n// driver.get(ConfigurationReader.getProperty(\"url\"));\n\n Driver.getDriver().get(\"http://qa2.vytrack.com\");\n\n }", "private void gotoSettings() {\n \t\tIntent i = new Intent( this, GlobalSettingsActivity.class );\n \t\tthis.startActivity( i );\n \t}", "@And(\"is on login page\")\n\tpublic void is_on_login_page() {\n\t\tSystem.out.println(\"user on 1\");\n\t\tdriver.navigate().to(\"https://example.testproject.io/web/\");\n\n\t}", "void goToLogin() {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.LOGIN));\n }", "public void gotoVideoLandingPage(){\r\n\t\twebAppDriver.get(baseUrl+\"/videos.aspx\");\r\n\t\t//need to add verification text\r\n\t}", "public void tener_acceso_a_la_plataforma() {\n\t\tbaseState.setUrl(\"http://km.choucairtesting.com/login/index.php\");\t\n\t\tbaseState.setBrowserType(BrowserType.GoogleChrome);\n\t\tbaseState.execute(desktop);\t\n\t\tSerenity.takeScreenshot();\n\t\t\n\t}", "public void viewOptions()\r\n {\r\n SetupScreen setupScreen = new SetupScreen();\r\n pushScreen(setupScreen);\r\n }", "public void launchNewSession(){\r\n framework.launchNewMAV(getArrayMappedToData(), this.experiment, \"Multiple Experiment Viewer - Cluster Viewer\", Cluster.GENE_CLUSTER);\r\n }", "@Given(\"^user is already login page$\")\n\tpublic void user_is_already_login_page() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\Jamshed Khan\\\\Downloads\\\\chromedriver_win32 (2)\\\\chromedriver.exe\");\n\t\t driver= new ChromeDriver();\n\t\t driver.get(\"http://demo.guru99.com/v4\");\n\t}", "@When(\"^Navigate to \\\"([^\\\"]*)\\\" Site$\")\r\n\tpublic void navigate_to_Site(String arg1) throws Throwable {\n\t\tdriver = DriverManager.getDriver();\r\n\t\tdriver.get(arg1);\r\n\t\tSystem.out.println(\"Launched Mercury Tours Site\");\r\n\r\n\t}", "@And(\"^I goto Activation Page$\")\r\n\t\r\n\tpublic void I_goto_Activation_Page() throws Exception {\r\n\t\t\r\n\t\tenduser.click_activationTab();\r\n\t\t\r\n\t}", "@Given(\"user is on login page\")\n\tpublic void user_is_on_login_page() {\n\t\tSystem.out.println(\"user is on login page\");\n\t\tWebDriverManager.chromedriver().setup();\n\t\tdriver=new ChromeDriver();\n\t\tdriver.manage().window().maximize();\n\t\tdriver.get(\"https://opensource-demo.orangehrmlive.com/index.php/auth/validateCredentials\");\n\t \n\t}", "@Test\n\tpublic void loginToOpentaps() {\n\t\tinvokeApp(\"chrome\", \"http://demo1.opentaps.org\");\n\n\t\t// Step 2: Enter user name\n\t\tenterById(\"username\", \"DemoSalesManager\");\n\n\t\t// Step 3: Enter Password\n\t\tenterById(\"password\", \"crmsfa\");\n\n\t\t// Step 4: Click Login\n\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\n\t\t// Step 5: Verify Username\n\t\tverifyTextContainsByXpath(\"//div[@id='form']/h2\", \"Welcome\");\n\t\t\n\t\t// Step 6: Click Logout\n\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\n\n\n\n\t}", "@Test\n public void testStartSession() {\n startSession();\n }", "public void gotoLogin() {\n try {\n LoginController login = (LoginController) replaceSceneContent(\"Login.fxml\");\n login.setApp(this);\n } catch (Exception ex) {\n Logger.getLogger(IndieAirwaysClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Given(\"^Open mmt home page$\")\n\tpublic void open_mmt_home_page() throws Throwable {\n\t loginPage = new LoginPage();\n\t}", "public void clickGoToLogin(){\n\t\t\n\t\tgoToLoginBtn.click();\n\t\t\n\t}", "public void sessionStarted() {\n\t\t\r\n\t}", "@Test \n public void executSessionOne(){\n\t System.out.println(\"open the browser: chrome\");\n final String CHROME_DRIVER_DIRECTORY = System.getProperty(\"user.dir\") + \"/src/test/java/BrowserDrivers/chromedriver.exe\";\n System.setProperty(\"webdriver.chrome.driver\", CHROME_DRIVER_DIRECTORY);\n final WebDriver driver = new ChromeDriver();\n //Goto guru99 site\n driver.get(\"http://demo.guru99.com/V4/\");\n //find user name text box and fill it\n driver.quit();\n }", "public void VerifyPlacementBySessionPage_UI() throws InterruptedException {\n\t\t\n\t\t\n\t\tif(!Controls.GetText(By.xpath(placementProp.getProperty(\"title.xpath\"))).trim().equalsIgnoreCase(\"By Session\"))Placement_BySession_PageNav();\n\t\t\n\t\tif(Controls.isElementPresent(By.xpath(placementProp.getProperty(\"Instructions.xpath\")))==true &&\n\t\t\t\tControls.isElementPresent(By.xpath(placementProp.getProperty(\"tools.xpath\")))==true &&\n\t\t\t\tControls.isElementPresent(By.id(placementProp.getProperty(\"AddSessionButton.id\")))==true &&\n\t\t\t\tControls.isElementPresent(By.xpath(placementProp.getProperty(\"quicksearchInput.xpath\")))==true &&\n\t\t\t\tControls.isElementPresent(By.xpath(placementProp.getProperty(\"quicksearchicon.xpath\")))==true &&\n\t\t\t\tControls.isElementPresent(By.xpath(placementProp.getProperty(\"quicksearchArrow.xpath\")))==true &&\n\t\t\t\tControls.isElementPresent(By.xpath(placementProp.getProperty(\"Search_calendaryearddl.xpath\")))==true &&\n\t\t\t\tControls.isElementPresent(By.xpath(placementProp.getProperty(\"Search_calendaryearInput.xpath\")))==true &&\n\t\t\t\tControls.isElementPresent(By.xpath(placementProp.getProperty(\"Search_sessionLabelddl.xpath\")))==true &&\n\t\t\t\tControls.isElementPresent(By.xpath(placementProp.getProperty(\"Search_sessionLabelInput.xpath\")))==true &&\n\t\t\t\tControls.isElementPresent(By.xpath(placementProp.getProperty(\"Search_batchlabelddl.xpath\")))==true &&\n\t\t\t\tControls.isElementPresent(By.xpath(placementProp.getProperty(\"Search_batchlabelddlInput.xpath\")))==true &&\n\t\t\t\tControls.isElementPresent(By.xpath(placementProp.getProperty(\"Search_IsActiveddl.xpath\")))==true &&\n\t\t\t\tControls.isElementPresent(By.xpath(placementProp.getProperty(\"Search_IsActivedRadioY.xpath\")))==true &&\n\t\t\t\tControls.isElementPresent(By.xpath(placementProp.getProperty(\"Search_IsActivedRadioN.xpath\")))==true &&\n\t\t\t\tControls.isElementPresent(By.xpath(placementProp.getProperty(\"Search_IsActivedRadioNA.xpath\")))==true &&\n\t\t\t\tControls.isElementPresent(By.xpath(placementProp.getProperty(\"Search_FavoriteOnly.xpath\")))==true &&\n\t\t\t\tControls.isElementPresent(By.xpath(placementProp.getProperty(\"Search_searchButton.xpath\")))==true &&\n\t\t\t\tControls.isElementPresent(By.xpath(placementProp.getProperty(\"Search_ClearAll.xpath\")))==true &&\n\t\t\t\tControls.isElementPresent(By.xpath(placementProp.getProperty(\"FilterByLabel.xpath\")))==true &&\n\t\t\t\tControls.isElementPresent(By.xpath(placementProp.getProperty(\"Helpicons.xpath=\")))==true &&\n\t\t\t\tControls.isElementPresent(By.xpath(placementProp.getProperty(\"sessiontable.xpath=\")))==true &&\n\t\t\t\tControls.isElementPresent(By.xpath(placementProp.getProperty(\"SessionFav_column1.xpath\")))==true &&\n\t\t\t\tControls.isElementPresent(By.xpath(placementProp.getProperty(\"Sessionlbl_column2.xpath\")))==true &&\n\t\t\t\tControls.isElementPresent(By.xpath(placementProp.getProperty(\"minweeks_column3.xpath\")))==true &&\n\t\t\t\tControls.isElementPresent(By.xpath(placementProp.getProperty(\"startdate_column4.xpath\")))==true &&\n\t\t\t\tControls.isElementPresent(By.xpath(placementProp.getProperty(\"calendaryear_column5.xpath\")))==true &&\n\t\t\t\tControls.isElementPresent(By.xpath(placementProp.getProperty(\"batchlabel_column6.xpath\")))==true &&\n\t\t\t\tControls.isElementPresent(By.xpath(placementProp.getProperty(\"sessionsetup_column7.xpath\")))==true &&\n\t\t\t\tControls.isElementPresent(By.xpath(placementProp.getProperty(\"placement_column8.xpath\")))==true &&\n\t\t\t\tControls.isElementPresent(By.xpath(placementProp.getProperty(\"postplacements_column9.xpath\")))==true)\n\t\t{\n\t\t\t\n\t\t\tReports.log(Status.PASS, \"Verified UI of Placement by Session page\");\n\t\t\n\t\t}else\n\t\t{\n\t\t\n\t\t\tReports.log(Status.FAIL, \"Verified UI of Placement by Session page\");\n\t\t\n\t\t}\n\t\t\n\t}", "public void gotoHome(){ application.gotoHome(); }", "@Given(\"^User is on Home Page$\")\r\n\tpublic void user_is_on_Home_Page() throws Throwable {\n\t\tsetBrowser();\r\n\t\tsetBrowserConfig();\r\n\t\tdriver.get(\"http://demowebshop.tricentis.com/\");\r\n\t}", "@Override\n public void setupURL_ToVisit(String url) {\n String gotoUrl;\n if (!applicationUrl.toString().endsWith(\"/\")) {\n if (url.startsWith(\"/\")) {\n gotoUrl = applicationUrl + url;\n }\n else {\n gotoUrl = applicationUrl + \"/\" + url;\n }\n }\n else {\n if (!url.startsWith(\"/\")) {\n gotoUrl = applicationUrl + url;\n }\n else {\n gotoUrl = applicationUrl + url.substring(1);\n }\n }\n getWebdriverInstance().navigate().to(gotoUrl);\n }", "public void clickLogin() {\n\t\tcontinueButton.click();\n\t}", "@Given(\"^User is already on Login page$\")\n\tpublic void user_already_on_login_page() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"/Users/tanu/Downloads/IMP-Drivers/chromedriver\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(\"http://hrm.seleniumminutes.com\");\n\t\t}", "private void launchNavigation() {\n // get navigation settings object\n SKNavigationSettings navigationSettings = new SKNavigationSettings();\n // set the desired navigation settings\n navigationSettings.setNavigationType(SKNavigationSettings.NAVIGATION_TYPE_SIMULATION);\n navigationSettings.setPositionerVerticalAlignment(-0.25f);\n navigationSettings.setShowRealGPSPositions(false);\n // get the navigation manager object\n SKNavigationManager navigationManager = SKNavigationManager.getInstance();\n navigationManager.setMapView(mapView);\n // set listener for navigation events\n navigationManager.setNavigationListener(this);\n // start navigating using the settings\n navigationManager.startNavigation(navigationSettings);\n navigationInProgress = true;\n }", "public HomeSection enterUrl(){\r\n\t\tGlobal.driver.get(CONSTANT.proUrl);\r\n\t\treturn new HomeSection();\r\n\t}", "public void startSession() {\n\t\tSystem.out.println(\"Creating Board\");\n\t\tthis.board = new Board(schoolClass.getTeams(), schoolClass.getClassDeck());\n\t\tSystem.out.println(\"Setting Team Positions.\");\n\t\tinitializeTeamPositions();\n\t\tSystem.out.println(\"Clearing Up To Date Status.\");\n\t\tupToDateIds = new ArrayList<Integer>();\n\t\tteamChallengeOrder = new ArrayList<Integer>();\n\t\tchallengeChains = new HashMap<Integer, Chain>();\n\t\tchallengeSubmissionStatus = new HashMap<Integer, Boolean>();\n\t\tthis.setSessionState(SessionState.PlayerTurn);\n\t}", "public static void goTo() {\n Browser.driver.get(\"https://www.abv.bg/\");\n Browser.driver.manage().window().maximize();\n }", "@Test\n\t\tpublic void login() {\n\n\t\t\tlaunchApp(\"chrome\", \"http://demo1.opentaps.org/opentaps/control/main\");\n\t\t\t//Enter username\n\t\t\tenterTextById(\"username\", \"DemoSalesManager\");\n\t\t\t//Enter Password\n\t\t\tenterTextById(\"password\", \"crmsfa\");\n\t\t\t//Click Login\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t//Check Browser Title\n\t\t\tverifyBrowserTitle(\"Opentaps Open Source ERP + CRM\");\n\t\t\t//Click Logout\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t\n\n\t\t}", "@Test\r\n public void testAddSimulatorToSession() {\r\n System.out.println(\"addSimulatorToSession\");\r\n assertNotNull(sm);\r\n sm.initSession(\"test4\", programsHome, programsHome + \"files4/\", requester);\r\n \r\n boolean result = sm.addSimulatorToSession(\"test4\", Simulators.NUATMOS, \"v1\", true);\r\n assertTrue(result);\r\n \r\n result = sm.addSimulatorToSession(\"test5\", Simulators.NUATMOS, \"v1\", true);\r\n assertFalse(result);\r\n \r\n sm.removeSession(\"test4\");\r\n \r\n }", "public void proceedToLetsGo() {\n\t\tBrowser.click(\"xpath=.//*[@id='DisplayNavigatorBrokerLandingPage']/div/div/div/div/div/div/div/div/div[5]/a/img\");\n\t}", "public boolean setupStartSession() { \n\t\tthis.showNamedMessage(\"Initiating session with server...\");\n\t\ttry {\n\t\t\twhile (!this.requestSession()) {\n\t\t\t\ttextUI.getBoolean(\"Try again?\");\n\t\t\t}\n\t\t} catch (IOException | PacketException | UtilDatagramException e) {\n\t\t\ttextUI.showError(\"Something went wrong while starting the session: \" \n\t\t\t\t\t+ e.getLocalizedMessage());\n\t\t}\n\t\t\n\t\treturn this.sessionActive;\n\t}", "@BeforeClass\n\tpublic void nav()\n\t{\n\t\tChromeOptions chromeoptions = new ChromeOptions();\n\t\tchromeoptions.addArguments(\"--start-maximized\");\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"c:\\\\Program Files\\\\chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(\"https://www.americanexpress.com/\");\n\t}", "@Test\n\tpublic void homepage()\n\t{\n\t//WebDriver driver = null;\n\t\t//Welcome_MurcuryTours wt=PageFactory.initElements(driver,Welcome_MurcuryTours.class);\n\t\tWelcome_MurcuryTours wt=PageFactory.initElements(driver, Welcome_MurcuryTours.class);\n\twt.signOn();\n\tdriver.navigate().back();\n\twt.register();\n\t\n\t}", "public void startSession(){\n sessionID = client.startSession();\n \n //Get system temporary files path\n String temporaryPath = System.getProperty(\"java.io.tmpdir\").replaceAll(\"\\\\\\\\\",\"/\");\n \n //If temporary file path does not end with /, add it\n if(!temporaryPath.endsWith(\"/\"))\n temporaryPath = temporaryPath + \"/\";\n \n //Create session directory\n sessionDirectory = new File(temporaryPath+sessionID);\n sessionDirectory.mkdir();\n \n }", "@Test\r\n void checkSession() {\n }", "@Test \n public void executeSessionTwo(){\n System.out.println(\"open the browser: FIREFOX \");\n final String GECKO_DRIVER_DIRECTORY = System.getProperty(\"user.dir\") + \"/src/test/java/BrowserDrivers/geckodriver.exe\";\n System.setProperty(\"webdriver.gecko.driver\", GECKO_DRIVER_DIRECTORY);\n final WebDriver driver = new FirefoxDriver();\n //Goto guru99 site\n driver.get(\"http://demo.guru99.com/V4/\");\n //find user name text box and fill it\n driver.quit();\n }", "@Given(\"landing to the loginpage and signin\")\n\tpublic void user_on_login_page_andSignin() {\n\t\t\n\t\t\n\t\tdriver.findElement(By.className(\"login\")).click();\n\t\t\n\t}", "public void clickOnContinueAsGuestUserLink()\n \t{\n \t\tproductRequirementsPageLocators.continueAsGuestUserLIink.click();\n\n \t}", "@BeforeMethod\n\tpublic void testSetUp()\n\t{\n\t\tcommonUtilities.invokeBrowser();\n\t\tloginPage.login(ReadPropertiesFile.getPropertyValue(\"username\"), ReadPropertiesFile.getPropertyValue(\"password\"));\n\t}", "private void doLogin() {\n\t\tSharedPreferences.Editor prefEditor = mSP.edit();\n\t\tSession.FirstLogin = true;\n\t\tmUserPin = et_password.getText().toString();\n\t\t// Time to update the session\n\t\tif (inTruckMode) {\n\t\t\tSession.setVehicle(vehicle);\n\t\t\tSession.setDriver(userDao.getByPin(mUserPin));\n\n\t\t\tprefEditor.putString(Config.VEHICLE_ID_KEY, vehicle.getId());\n\t\t\tprefEditor.putString(Config.LAST_VEHICLE_KEY, vehicle.getId());\n\t\t\tprefEditor.putString(Config.SITE_ID_KEY, null);\n\n\t\t\tSession.setType(SessionType.VEHICLE_SESSION);\n\t\t} else {\n\t\t\tSession.setSite(site);\n\t\t\tSession.setDriver(userDao.getByPin(mUserPin));\n\n\t\t\tprefEditor.putString(Config.VEHICLE_ID_KEY, null);\n\t\t\tprefEditor.putString(Config.LAST_VEHICLE_KEY, null);\n\t\t\tprefEditor.putString(Config.SITE_ID_KEY, site.getId());\n\n\t\t\tSession.setType(SessionType.SITE_SESSION);\n\t\t}\n\n\t\tstartupSync();\n\t\tstartSync();\n\n\t\tprefEditor.putString(Config.USER_PIN_KEY, mUserPin);\n\t\tprefEditor.putString(Config.LAST_USER_PIN_KEY, mUserPin);\n\t\tprefEditor.putString(Config.SYNC_SERVICE_KEY, \"yes\");\n\t\tprefEditor.commit();\n\n\t\t// if no VIMEI associated with truck, starting GPSService on SB device\n\t\tif (!vehiclesDao.xergoEsn(getApplicationContext())) {\n\t\t\tvimei = vehiclesDao.getVimei(this);\n\n\t\t\tIntent intent = new Intent();\n\t\t\tintent.setAction(GPSService.UPDATE_IMEI_EVENT);\n\t\t\tintent.putExtra(\"Value\", vimei);\n\t\t\tsendBroadcast(intent);\n\n\t\t\tintent = new Intent();\n\t\t\tintent.setAction(GPSService.SEND_IGNITION_ON_EVENT);\n\t\t\tsendBroadcast(intent);\n\t\t}\n\n\t\tstartSession(mUserPin);\n\t\tIntent intent = new Intent(this, MapActivity.class);\n\t\tthis.startActivity(intent);\n\t\tfinish();\n\t}", "public void Admin_Configuration()\n\t{\n\t\tAdmin_Configuration.click();\n\t}", "@BeforeMethod\r\n\tpublic void Setup()\r\n\t{\n\t\tString strBrowserName=objConfig.getProperty(\"browser\");\r\n\t\tif(strBrowserName.equalsIgnoreCase(\"CHROME\"))\r\n\t\t{\r\n\t\t\tobjDriver=new ChromeDriver();\r\n\t\t}\r\n\t\telse if(strBrowserName.equalsIgnoreCase(\"FIREFOX\"))\r\n\t\t{\r\n\t\t\tobjDriver=new FirefoxDriver();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tobjDriver=new InternetExplorerDriver();\r\n\t\t}\r\n\t\t\r\n\t\t//To open the URL\r\n\t\t\r\n\t\tobjDriver.get(objConfig.getProperty(\"url\"));\r\n\t\t\r\n\t\t//To maximize the browser window.\r\n\t\tif(objConfig.getBooleanProperty(\"runFullScreen\"))\r\n\t\t\tobjDriver.manage().window().maximize();\r\n\r\n\t\t//To set the implicit wait time\r\n\t\tobjDriver.manage().timeouts().implicitlyWait(objConfig.getLongProperty(\"implicitTimeoutInSeconds\"), TimeUnit.SECONDS);\r\n\t\t\r\n\t\t\r\n\t}", "private void startNewSession() {\n final FragmentTransaction ft = getFragmentManager().beginTransaction();\n Fragment sessionFragment = null;\n if (mCurrentExperiment.hasSAM()) {\n sessionFragment = new SAMSessionFragment();\n }\n // if there's not hte sam, we start directly with the NASA\n else if (mCurrentExperiment.hasNASATLX()) {\n sessionFragment = new NASATLXSessionFragment();\n }\n ft.replace(R.id.main_content_frame, sessionFragment);\n ft.commit();\n }", "public static void goToCheckout() {\n click(CHECKOUT_UPPER_MENU);\n }", "@Test\n\tpublic void checkSessionInfoDisplayedCorrectly()\n\t{\n\t\tonView(withIndex(withText(R.string.timetable_tab), 1)).perform(click());\n\t\t//now click on the session\n\t\tonView(withText(\"Using ARKit with SpriteKit\")).perform(click());\n\n\t\tonView(withId(R.id.nav_host_fragment)).check((view, noViewFoundException) ->\n\t\t{\n\t\t\tTextView speakerName = view.findViewById(R.id.session_view_speaker_name);\n\t\t\tTextView sessionTitle = view.findViewById(R.id.session_view_title);\n\t\t\tTextView sessionType = view.findViewById(R.id.session_view_session_type);\n\t\t\tTextView sessionTime = view.findViewById(R.id.session_view_date_time);\n\t\t\tTextView sessionPlace = view.findViewById(R.id.session_view_location_name);\n\n\t\t\tassertEquals(speakerName.getText(), \"Janie Clayton @redqueencoder\");\n\t\t\tassertEquals(speakerName.getVisibility(), View.VISIBLE);\n\n\t\t\tassertEquals(sessionTitle.getText(), \"Using ARKit with SpriteKit\");\n\t\t\tassertEquals(sessionTitle.getVisibility(), View.VISIBLE);\n\n\t\t\tassertEquals(sessionType.getText(), \"Workshop\");\n\t\t\tassertEquals(sessionType.getVisibility(), View.VISIBLE);\n\n\t\t\tassertEquals(sessionTime.getText(), \"Tuesday 10th December, 16:00 - 18:00\");\n\t\t\tassertEquals(sessionTime.getVisibility(), View.VISIBLE);\n\n\t\t\tassertEquals(sessionPlace.getText(), \"Llandinam B23\");\n\t\t\tassertEquals(sessionPlace.getVisibility(), View.VISIBLE);\n\t\t});\n\t}", "static void beginNewSession() {\n SESSION_ID = null;\n Prefs.INSTANCE.setEventPlatformSessionId(null);\n\n // A session refresh implies a pageview refresh, so clear runtime value of PAGEVIEW_ID.\n PAGEVIEW_ID = null;\n }", "public void testRes_Navigation(){\n\t\tinnerFunction(childrenButton, childrenList.class);\t\t\n\t\tinnerFunction(locationButton, locationList.class);\n\t\t\n\t\tsolo.clickOnView(logOutButton);\n\t\tsolo.sleep(500);\n\t\tsolo.assertCurrentActivity(\"ERR - Could not jump to login screen.\", Login.class);\n\n\t}", "@Given(\"^User is navigating to G-mail Login Page$\")\n\tpublic void navigateURL() throws Throwable {\n\t\tSystem.out.println(\"Entered URL\"); \n\t\t\n\t}", "private void gotoOptions() {\n Intent launchOptions = new Intent(this, Preferences.class);\n startActivity(launchOptions);\n }", "@FXML\r\n\tpublic void goToCheckout() {\r\n\t\tViewNavigator.loadScene(\"Checkout\", ViewNavigator.CHECKOUT_SCENE);\r\n\t}", "@Given(\"^Login to simplilearn$\")\r\n\tpublic void Login_to_simplilearn () throws Throwable\r\n\t{\n\t\t\r\n\t\tSystem.out.println(\" TC002 - Step 1 is passed\");\r\n\t\t\r\n\t}", "public void go_to_setting(){\n Intent i=new Intent(LoginSelection.this, Configuration.class);\n startActivity(i);\n }", "public void setupmethod() throws InterruptedException,AWTException, IOException {\r\n\r\n\t\tChromeOptions chrome_Profile = new ChromeOptions();\r\n\t\tString service = conf.getservicestring();\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", service);\r\n\t\tdriver = new ChromeDriver(chrome_Profile);\r\n\t\tuser_role = PageFactory.initElements(driver,UserRoleElements.class );\r\n\t\tdriver.get(conf.getUrl());\r\n\t\tSystem.out.println(driver.getCurrentUrl());\r\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\tdriver.manage().window().maximize();\r\n\t\t/*\r\n\t\t * Description :- This code snippet checks if the correct url is opened and user is Navigated to Teach Away home page \r\n\t\t */\t\r\n\t\t String ExpectedTitle_Main = \"Teach Abroad - Teach Away - Discover Where Teaching Can Take You\";\r\n\t\t softAssertion.assertTrue(ExpectedTitle_Main.equals(driver.getTitle()), \"Title does not match\");\r\n\t\t softAssertion.assertAll();\r\n\t\t\t\t\t\t\r\n\t\t\t}", "@Test(priority=1)\r\n\tpublic void loginApp()\r\n\t{\r\n\t\t\r\n\t\tlogger=report.createTest(\"Login To Pymidol\");\r\n\t\r\n\t\tLoginPage loginPage=PageFactory.initElements(driver, LoginPage.class); //it will goto login page check all the locators initialise then it will return object of same class\r\n\t\t\r\n\t\tlogger.info(\"Starting Application\"); //it will provide information about test or test step\r\n\t\t\r\n\t\tloginPage.loginToPymidol(excel.getStringData(\"Login\", 0, 0), excel.getStringData(\"Login\", 0, 1));\r\n\t\t\r\n\t\tlogger.pass(\"Login done Success\");\r\n\t\r\n\t}", "public final String gotoManageTestRequirement() throws ParseException, ApplicationException{\r\n\t\tloadScreen();\r\n\t\treturn \"/pages/manageTestRequirement\";\r\n\t}", "@When(\"^the user open Automation Home page$\")\r\n\tpublic void the_user_open_Automation_Home_page() throws Throwable {\n\t w.Homepage1();\r\n\t}", "@Given(\"^Launch the page$\")\r\n\tpublic void launch_the_page() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./driver/chromedrivernew.exe\");\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\tdriver.get(\"http://realestate.upskills.in\");\r\n\t \t}", "Session begin();", "@Given(\"^I am on the Sign in page$\")\n\tpublic void I_am_on_the_Sign_in_page() throws Throwable {\n\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\tdriver.findElement(By.linkText(\"Sign in\")).click();\n\t}", "public void enterSiteAsFirstTimeVisitor(){\n if(!browser.browserDriver().browser().isDesktop()) {\n enterSiteWithCleanBrowser();\n if (browser.browserDriver().browser().isTablet() && ((AppiumDriver) browser.driver()).getOrientation() == ScreenOrientation.PORTRAIT) {\n ((AppiumDriver) browser.driver()).rotate(ScreenOrientation.LANDSCAPE);\n }\n } else {\n navigateToHome();\n }\n }", "@Before\n\tpublic void setup() {\n\t\tDriverFactory.getDriver().navigate().to(\"http://192.168.0.178:8001/tasks/\");\n\t\t// driver.manage().window().maximize();\n\t}", "public static void goToCart() {\n click(SHOPPING_CART_UPPER_MENU);\n }", "public void doLogin() {\n\t\tSystem.out.println(\"loginpage ----dologin\");\n\t\t\n\t}", "Session getCurrentSession();", "Session getCurrentSession();", "public static void goTo() {\n Browser.driver.get(\"https://www.amazon.co.uk/\");\n Browser.driver.manage().window().maximize();\n }", "void goMainScreen(){\n\t\tcheckSavePwd();\n\t\tActionEvent e = new ActionEvent();\n\t\te.sender = this;\n\t\te.action = ActionEventConstant.ACTION_SWITH_TO_CATEGORY_SCREEN;\n\t\tUserController.getInstance().handleSwitchActivity(e);\n\t}", "@BeforeMethod\n\tpublic void setup()\n\t{\n\t\tinitialization();\n\t\tlogin_page=new Loginpage();\n\t\thome_page=login_page.verifylogin(prop.getProperty(\"username\"), prop.getProperty(\"password\"));\t\n\t}", "public MenuSignOnPageClass navigateToSignOn() {\n\t\tthis.clickSignOn();\n\t\treturn new MenuSignOnPageClass(myDriver, myWait);\n\t}", "@BeforeTest\n\tpublic void openBrowser(){\n\t\t//initializing the firefox driver\n\t\tdriver =new FirefoxDriver();\n\t\t// accessing the webpage\n\t\tdriver.get(\"https://platform-stag.systran.net\");\n\t\t//setting the windows size in 1920*1080\n\t\tdriver.manage().window().setSize(new Dimension(1920,1080));\n\n\t\t// the imperative wait \n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n\t\t//accessing the from page of the webpage and clicking in the sign in button\n\t\tLocatorsInFrontPage locatorinfront=PageFactory.initElements(driver, LocatorsInFrontPage.class);\n\t\tlocatorinfront.signIn.click();\n\t\t// accessing the pop up sign in and choosing the log in with systran\t\n\t\tLocatorsInSigninPopUp signinpopup=PageFactory.initElements(driver, LocatorsInSigninPopUp.class);\n\t\tsigninpopup.continueWithSystran.click();\n\n\t\t// locating the username and password filling form\n\t\tLocatorsInSignInaccount locatorinSignIn=PageFactory.initElements(driver, LocatorsInSignInaccount.class);\n\t\tlocatorinSignIn.userName.sendKeys(\"sujit.pandey@systrangroup.com\");\n\t\tlocatorinSignIn.password.sendKeys(\"SESpassword\");\n\t\tlocatorinSignIn.signIn.click();\n\n\n\t}", "@BeforeMethod(description = \"Before method: navigation to the Web application\")\n public void navigateToSite()\n {\n HTMLReport htmlReport = new HTMLReport();\n TodoMVCWorkFlow flow = new TodoMVCWorkFlow();\n htmlReport.log(\"STARTING BeforeMethod\");\n htmlReport.logINFO(\"Navigation to site TodoMVC\");\n flow.navigate();\n }", "public void testSetNav() {\n // browser.maximizeWindow();\n\n // Clear database, create a test user and login as that user. Start at the home page...\n GlobalTest.resetDatabaseForTest(\"PlayWithMagic\");\n GlobalTest.addUserForTest();\n IndexPage indexPage = new IndexPage(browser).loginToTestAccount();\n\n // Click the Browse Sets button\n ListSetsPage listSetsPage = indexPage.clickBrowseSetsButton();\n\n // Click the Create Sets button\n EditSetPage editSetPage = listSetsPage.clickCreateSetButton();\n }", "@Test(priority = 1)\n\tpublic void login() {\n\t\tlp.loginToApp();\n\t}", "public abstract void navigateToLogin();", "public void openHomePage() {\n\t\tlogger.info(\"Opening Home Page\");\n\t\tdriver.get(ReadPropertyFile.getConfigPropertyVal(\"homePageURL\"));\n\t\t\n\t}" ]
[ "0.6577976", "0.6568167", "0.63035953", "0.6279264", "0.62653583", "0.6240247", "0.6166133", "0.60257673", "0.60024375", "0.59803665", "0.5954584", "0.59527314", "0.5943079", "0.59017825", "0.5886766", "0.58754075", "0.586219", "0.5814911", "0.5805703", "0.5760725", "0.5751068", "0.57489926", "0.57406765", "0.5733328", "0.5708821", "0.5699981", "0.5691578", "0.5690315", "0.5665211", "0.5651871", "0.5649522", "0.56434745", "0.5631507", "0.5631036", "0.5626922", "0.5613761", "0.5595512", "0.55952096", "0.55854833", "0.5576359", "0.5573167", "0.55699533", "0.5565041", "0.5563428", "0.5562516", "0.55583566", "0.55161625", "0.551208", "0.5508693", "0.5502054", "0.5495386", "0.54883134", "0.5486034", "0.5474081", "0.54597765", "0.5459674", "0.5453125", "0.5445465", "0.54443", "0.5437161", "0.54307383", "0.5430086", "0.54298407", "0.5428055", "0.5427397", "0.5416516", "0.54148525", "0.5408069", "0.5394631", "0.53911656", "0.5388089", "0.5381023", "0.5377295", "0.53763", "0.53738296", "0.537048", "0.53691065", "0.5353704", "0.5352559", "0.5348832", "0.53476423", "0.53459436", "0.53428453", "0.5340336", "0.53393096", "0.5335488", "0.5334001", "0.53314066", "0.5330269", "0.5330269", "0.5327875", "0.5325505", "0.53184366", "0.5317622", "0.5310652", "0.5299089", "0.52936524", "0.5293313", "0.5289134", "0.5284844" ]
0.71019256
0
Verify Ui of Placement By Session Page
public void VerifyPlacementBySessionPage_UI() throws InterruptedException { if(!Controls.GetText(By.xpath(placementProp.getProperty("title.xpath"))).trim().equalsIgnoreCase("By Session"))Placement_BySession_PageNav(); if(Controls.isElementPresent(By.xpath(placementProp.getProperty("Instructions.xpath")))==true && Controls.isElementPresent(By.xpath(placementProp.getProperty("tools.xpath")))==true && Controls.isElementPresent(By.id(placementProp.getProperty("AddSessionButton.id")))==true && Controls.isElementPresent(By.xpath(placementProp.getProperty("quicksearchInput.xpath")))==true && Controls.isElementPresent(By.xpath(placementProp.getProperty("quicksearchicon.xpath")))==true && Controls.isElementPresent(By.xpath(placementProp.getProperty("quicksearchArrow.xpath")))==true && Controls.isElementPresent(By.xpath(placementProp.getProperty("Search_calendaryearddl.xpath")))==true && Controls.isElementPresent(By.xpath(placementProp.getProperty("Search_calendaryearInput.xpath")))==true && Controls.isElementPresent(By.xpath(placementProp.getProperty("Search_sessionLabelddl.xpath")))==true && Controls.isElementPresent(By.xpath(placementProp.getProperty("Search_sessionLabelInput.xpath")))==true && Controls.isElementPresent(By.xpath(placementProp.getProperty("Search_batchlabelddl.xpath")))==true && Controls.isElementPresent(By.xpath(placementProp.getProperty("Search_batchlabelddlInput.xpath")))==true && Controls.isElementPresent(By.xpath(placementProp.getProperty("Search_IsActiveddl.xpath")))==true && Controls.isElementPresent(By.xpath(placementProp.getProperty("Search_IsActivedRadioY.xpath")))==true && Controls.isElementPresent(By.xpath(placementProp.getProperty("Search_IsActivedRadioN.xpath")))==true && Controls.isElementPresent(By.xpath(placementProp.getProperty("Search_IsActivedRadioNA.xpath")))==true && Controls.isElementPresent(By.xpath(placementProp.getProperty("Search_FavoriteOnly.xpath")))==true && Controls.isElementPresent(By.xpath(placementProp.getProperty("Search_searchButton.xpath")))==true && Controls.isElementPresent(By.xpath(placementProp.getProperty("Search_ClearAll.xpath")))==true && Controls.isElementPresent(By.xpath(placementProp.getProperty("FilterByLabel.xpath")))==true && Controls.isElementPresent(By.xpath(placementProp.getProperty("Helpicons.xpath=")))==true && Controls.isElementPresent(By.xpath(placementProp.getProperty("sessiontable.xpath=")))==true && Controls.isElementPresent(By.xpath(placementProp.getProperty("SessionFav_column1.xpath")))==true && Controls.isElementPresent(By.xpath(placementProp.getProperty("Sessionlbl_column2.xpath")))==true && Controls.isElementPresent(By.xpath(placementProp.getProperty("minweeks_column3.xpath")))==true && Controls.isElementPresent(By.xpath(placementProp.getProperty("startdate_column4.xpath")))==true && Controls.isElementPresent(By.xpath(placementProp.getProperty("calendaryear_column5.xpath")))==true && Controls.isElementPresent(By.xpath(placementProp.getProperty("batchlabel_column6.xpath")))==true && Controls.isElementPresent(By.xpath(placementProp.getProperty("sessionsetup_column7.xpath")))==true && Controls.isElementPresent(By.xpath(placementProp.getProperty("placement_column8.xpath")))==true && Controls.isElementPresent(By.xpath(placementProp.getProperty("postplacements_column9.xpath")))==true) { Reports.log(Status.PASS, "Verified UI of Placement by Session page"); }else { Reports.log(Status.FAIL, "Verified UI of Placement by Session page"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Placement_BySession_PageNav() {\n\t\t\t\n\t\t\t\n\t\t\tControls.hoverclick(By.linkText(\"Placements\"), By.linkText(\"By Session\"));\n\t\t\tControls.dynemicwait(By.xpath(\"//*[@id=\\\"mainBody\\\"]/div[3]/div[2]/div/div[1]/div[2]\"));\n\t\t\t\n\t\t\t\n\t\t\tif(Controls.GetText(By.xpath(placementProp.getProperty(\"title.xpath\"))).trim().equalsIgnoreCase(\"By Session\"))\n\t\t\t{\n\t\t\t\tReports.log(Status.PASS, \"Page is redirected on Placement 'By Session' page successfully\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tReports.log(Status.FAIL, \"Page is redirected on incorrect page\");\n\t\t\t\t\n\t\t\t}\t\n\t\t\t\n\t\t\t\n\t\t}", "public void verifyVINCERegistrationPageInNewWindow() {\n\t\tAssert.assertTrue(notAUserText.isDisplayed());\n\t\t_normalWait(3000);\n\t}", "public boolean VerifyOrderConfirmation_MyStoreSection() {\n\t\t\tboolean flag = false;\n\t\t\t\n\t\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.STOREDETAILS_CONFIRMATIONSECTION).isDisplayed();\n\t\t\tif(flag){extentLogs.pass(\"VerifyMyStoreSection\", \"MyStoreSectionIsDisplayed\");\n\t\t }else{extentLogs.fail(\"VerifyMyStoreSection\", \"MyStoreSectionIsNotDisplayed\");}\n\t\t\t\n\t\t\treturn flag;\n\t\t}", "public boolean verifyPageLoad() {\n\t\tboolean result = lnkLoginButton.isDisplayed();\n\t\tLog.info(\"Home Page Loaded Successfully\");\n\t\treturn result;\n\t}", "public abstract boolean Verifypage();", "@Test\n public void signinvalidation() {\n\t SalesApplicationPage spg = new SalesApplicationPage(driver);\n if(spg.getPopUpSize()>0)\n\t {\n\t\t spg.getPopUp().click();\n\t }\n System.out.println(driver.getTitle());\n Assert.assertTrue(driver.getTitle().equals(\"Home | Salesforrrce\"));\n }", "private void checkPage() {\n Assert.assertTrue(\"Electric cars button not displayed.\",electricCars.isDisplayed());\n }", "@Test\n\tpublic void checkSessionInfoDisplayedCorrectly()\n\t{\n\t\tonView(withIndex(withText(R.string.timetable_tab), 1)).perform(click());\n\t\t//now click on the session\n\t\tonView(withText(\"Using ARKit with SpriteKit\")).perform(click());\n\n\t\tonView(withId(R.id.nav_host_fragment)).check((view, noViewFoundException) ->\n\t\t{\n\t\t\tTextView speakerName = view.findViewById(R.id.session_view_speaker_name);\n\t\t\tTextView sessionTitle = view.findViewById(R.id.session_view_title);\n\t\t\tTextView sessionType = view.findViewById(R.id.session_view_session_type);\n\t\t\tTextView sessionTime = view.findViewById(R.id.session_view_date_time);\n\t\t\tTextView sessionPlace = view.findViewById(R.id.session_view_location_name);\n\n\t\t\tassertEquals(speakerName.getText(), \"Janie Clayton @redqueencoder\");\n\t\t\tassertEquals(speakerName.getVisibility(), View.VISIBLE);\n\n\t\t\tassertEquals(sessionTitle.getText(), \"Using ARKit with SpriteKit\");\n\t\t\tassertEquals(sessionTitle.getVisibility(), View.VISIBLE);\n\n\t\t\tassertEquals(sessionType.getText(), \"Workshop\");\n\t\t\tassertEquals(sessionType.getVisibility(), View.VISIBLE);\n\n\t\t\tassertEquals(sessionTime.getText(), \"Tuesday 10th December, 16:00 - 18:00\");\n\t\t\tassertEquals(sessionTime.getVisibility(), View.VISIBLE);\n\n\t\t\tassertEquals(sessionPlace.getText(), \"Llandinam B23\");\n\t\t\tassertEquals(sessionPlace.getVisibility(), View.VISIBLE);\n\t\t});\n\t}", "private void checkSessionState() {\n // get logged in mUser\n mUser = getStoredUser();\n // check if valid\n mIsLoggedIn = (mUser != null && mUser.getId() != null);\n }", "private void checkManualPlaceDetails() {\n // now in DetailActivity, check the name and address are correct\n onView(withId(R.id.et_name)).check(matches(withText(PLACE_NAME)));\n onView(withId(R.id.et_address)).check(matches(withText(PLACE_ADDRESS)));\n\n checkManualVisit();\n\n // scroll to notes EditText\n onView(withId(R.id.et_notes))\n .perform(scrollTo());\n onView(withId(R.id.et_notes)).check(matches(isDisplayed()));\n // check notes displays correct text\n onView(withId(R.id.et_notes)).check(matches(withText(NOTES)));\n\n // go back\n Espresso.pressBack();\n }", "void checkMyLocationVisibility() {\n if (settings.getReturnToMyLocation() || presenter.isTracking())\n showMyLocation();\n }", "@Test(priority = 1)\n\tprotected void landingpageVerification() {\n\t\tAssert.assertEquals(spincoLandingPage.isLogoDisplayed(),true);\n\t\tspincoLandingPage.clickLoginRegister();\n\t}", "public boolean Verify_NonIpoConfirmation() {\n\t\n\tboolean flag = false;\n\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.THANKYOU_LABEL).isDisplayed();\n\tif(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_ThankYou\", \"DISPLAYED\");\n\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.ORDERRECEIVED_LABEL).isDisplayed();\n\t\tif(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_ORDERRECEIVED_LABEL\", \"DISPLAYED\");\n\t\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.WHATNEXT_SECTION).isDisplayed();\n\t\t\tif(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_WHATNEXT_SECTION\", \"DISPLAYED\");\n\t\t\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.UPONDELIVERY_SECTION).isDisplayed();\n\t\t\t\tif(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_UPONDELIVERY_SECTION\", \"DISPLAYED\");\n\t\t\t\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.STOREDETAILS_CONFIRMATIONSECTION).isDisplayed();\n\t\t\t\t\tif(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_STOREDETAILS_CONFIRMATIONSECTION\", \"DISPLAYED\");\n\t\t\t\t\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.MYSTORE_SECTION).isDisplayed();\n\t\t\t\t\t\tif(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_STOREDETAILS_MYSTORE_SECTION\", \"DISPLAYED\");\n\t\t\t\t\t\t flag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.GOTOHOMEPAGE_BUTTON).isDisplayed();\n\t\t\t\t\t\t if(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_GOTOHOMEPAGE_BUTTON\", \"DISPLAYED\");\n\t\t\t\t\t\t\t}else{extentLogs.pass(\"VerifyNonIPOConfirmationScreen_GOTOHOMEPAGE_BUTTON\", \"DISPLAYED\");}\n\t\t\t\t\t\t}else{extentLogs.fail(\"VerifyNonIPOConfirmationScreen_STOREDETAILS_MYSTORE_SECTION\", \"NOTDISPLAYED\");}\n\t\t\t\t\t\t}else{extentLogs.fail(\"VerifyNonIPOConfirmationScreen_STOREDETAILS_CONFIRMATIONSECTION\", \"NOTDISPLAYED\");}\n\t\t \t\t}else{extentLogs.fail(\"VerifyNonIPOConfirmationScreen_UPONDELIVERY_SECTION\", \"NOTDISPLAYED\");}\n\t\t\t}else{extentLogs.fail(\"VerifyNonIPOConfirmationScreen_WHATNEXT_SECTION\", \"NOTDISPLAYED\");}\n\t\t}else{extentLogs.fail(\"VerifyNonIPOConfirmationScreen_ORDERRECEIVED_LABEL\", \"NOTDISPLAYED\");}\n\t}else{extentLogs.fail(\"VerifyNonIPOConfirmationScreen_ThankYou\", \"NOTDISPLAYED\");}\n\t\nreturn flag;\n\t}", "public boolean isAt(){\n\t\tWaitExtensions.waitForPageToLoad(10);\n\t\treturn loginButton.isDisplayed();\n\t\t\n\t}", "public void verifyMyActivityPageSuccessfullyDisplayedInNewWindow()\n\t{\n\t\tgetDriver().navigate().refresh();\n\t\tAssert.assertTrue(MyActivitiesHeader.isDisplayed());\n\t\t\n\t}", "public void verifyPage() {\n\t\twaitForPageToLoad();\n\t\tString title = driver.getTitle();\n\t\tSystem.out.println(title);\n\t\tAssert.assertEquals(title,\"News: India News, Latest Bollywood News, Sports News, Business & Political News, National & International News | Times of India\");\n\t}", "private void checkIfAtLogin(){\n checkIfIdDisplayed(R.id.login_main_view);\n checkIfIdDisplayed(R.id.username_text_input);\n checkIfIdDisplayed(R.id.password_text_input);\n checkIfIdDisplayed(R.id.login_button);\n }", "@Override\n\tpublic void checkPage() {\n\t}", "public boolean verifyHomePageDisplayed(){\r\n\t\tWebDriver driver = SeleniumDriver.getInstance().getWebDriver();\r\n\t\tWebElement body;\r\n\t\ttry{\r\n\t\t\tbody = driver.findElement(By.tagName(\"body\"));\r\n\t\t\tif(body.getAttribute(\"class\").contains(\"home page\")){\r\n\t\t\t\tmyAssert.setGblPassFailMessage(\"pass\", \"UpTake home page is displayed\");\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tmyAssert.setGblPassFailMessage(\"fail\", \"UpTake home page is not displayed\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t return true;\r\n\t}", "public void verifyCourseInfoPageSuccessfullyDisplayedInNewWindow(){\n\t\tgetDriver().navigate().refresh();\n\t\tAssert.assertTrue(enrollNowButton.isDisplayed());\n\t\t\n\t}", "public void Navigate_to_Registration_Page(){\n\n waitForVisibilityOfElement(RegistrationPageLocator.Registration_Tab_Home_Screen_Link_Text);\n Assert.assertTrue(getRegistrationTab_InHomeScreen().getText().equals(StringUtils.Registration_Tab_Text));\n getRegistrationTab_InHomeScreen().click();\n waitForVisibilityOfElement(RegistrationPageLocator.Registration_Form_Submit_Button);\n\n }", "public void Verify_Page_Header_Visibility()\r\n\t{\r\n\t\t if(Page_header.isDisplayed())\r\n\t\t\t System.out.println(\"header visible at webpage\");\r\n\t\t else\r\n\t\t\t System.out.println(\"header not visible at webpage\");\r\n\t\t\r\n\t}", "public void verifySessionOneHeading(){\r\n String actualSessionHeading = driver.findElement(By.xpath(sessionHeadingXpathLocator)).getText();\r\n Assert.assertTrue(actualSessionHeading.contains(expectedSessionHeading),\"Session Heading is present.\");\r\n }", "public boolean VerifyOrderConfirmation_UponDeliverySection() {\n\t\t\tboolean flag = false;\n\t\t\t\n\t\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.UPONDELIVERY_SECTION).isDisplayed();\n\t\t\tif(flag){extentLogs.pass(\"VerifyUponDeliverySection\", \"UponDeliverySectionIsDisplayed\");\n\t\t }else{extentLogs.fail(\"VerifyUponDeliverySection\", \"UponDeliverySectionIsNotDisplayed\");}\n\t\t\t\n\t\t\treturn flag;\n\t\t}", "private void checkSessionAction(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\treq.getRequestDispatcher(\"/jsps/manage/index.jsp\").forward(req, resp);\r\n\t}", "@Test(priority=0)\n\tpublic void confirmIfSignUpPage(){\n\t\tAssert.assertTrue(signup.isSignUpPageLoaded());\n\t}", "private boolean isPageLoaded(List<By> vps) {\n\t\ttry {\n\t\t\tfor (By point : vps) {\n\t\t\t\tif(!webDriver.findElement(point).isDisplayed()) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// If all verification points are found, we are on the correct page.\n\t\t\treturn true;\n\t\t} catch (NoSuchElementException noSuchElementException) {\n\t\t\tlog.debug(NO_SUCH_ELEMENT, noSuchElementException);\n\t\t\treturn false;\n\t\t} catch (NullPointerException noPointerException) {\n\t\t\tlog.debug(NULL_WEB_ELEMENT, noPointerException);\n\t\t\treturn false;\n\t\t} catch (ElementNotVisibleException notVisibleException) {\n\t\t\tlog.debug(NOT_VISIBLE, notVisibleException);\n\t\t\treturn false;\n\t\t}\n\t}", "@Test\r\n\tpublic void TC_01_verifyRegistrationPage() {\r\n\t\thomePgObj = new Page_Home(driver);\r\n\t\tregPgObj = homePgObj.click_RegistrationLink();\r\n\t\tflag = regPgObj.registrationPgDisplay();\r\n\t\tAssert.assertTrue(flag, \"Registration page is displayed\");\r\n\t}", "@Then(\"I land on the controlgroup page\")\n public void i_land_on_the_controlgroup_page() {\n System.out.println(\"inside then\");\n Assertions.assertEquals(\"https://jqueryui.com/controlgroup/\", driver.getCurrentUrl());\n }", "boolean hasSessionTemplate();", "@Test(priority=1)\n\tpublic void validateContestInHomePage()\n\t{\n\t\tPickRightHomePage p = new PickRightHomePage(driver);\n\t\tp.getJoinAsinvestor();\n\n\t\tLoginOrSignUpPage l = new LoginOrSignUpPage(driver);\n\t\tl.getUseMobileNumber();\n\t\tl.getDropDown();\n\t\tl.setSearchField(\"India\");\n\t\tl.getCountry();\n\t\tl.setMobileNumberField(number);\n\t\tl.getNextButton();\n\t\te = new EnterOtpPage(driver);\n\t\te.setOtp();\n\t\te.getCheckBox();\n\t\te.getNextButton();\n\t\th=new HomePage(driver);\n\t\tJavascriptExecutor j=(JavascriptExecutor)driver;\n\t\tj.executeScript(\"arguments[0].scrollIntoView(true)\",h.contest);\n\t\tAssert.assertTrue(h.contest.isDisplayed());\n\t\tAssert.assertTrue(h.participateButtonInTopStock.getText().equalsIgnoreCase(\"Participate\"));\n\t\tAssert.assertTrue(h.participateButtonPredictNifty.getText().equalsIgnoreCase(\"Participate\"));\n\t\t\n\t}", "public void verifyCEPracticeAreaLoadedInNewWindow(String cedemopagetitle) {\n\t assertByPageTitle(cedemopagetitle);\n }", "public boolean verifyInProductPage() {\n\t\tString ExpMsg = \"PRODUCTS\";\t// confirmation msg\n\t\tString ActMsg = Title.getText();\n\t try {\n\t \twait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//div[@id='inventory_container']\")));\n\t\t\tAssert.assertEquals(ActMsg, ExpMsg);\n\t\t\ttest.log(LogStatus.PASS, \"Successful assert we have landed on PRODUCTS page\");\t\n\t }\n\t catch (TimeoutException e) {\n\t\t\ttest.log(LogStatus.FAIL, \"Error: Login failed? Not leading to PRODUCTS page?\");\n\t\t\tAssert.fail(\"Login failed? Not leading to PRODUCTS page?\");\n\t\t\treturn false;\n\t }\n\t\tcatch (Throwable e) {\n\t\t\ttest.log(LogStatus.FAIL, \"Error: Not on PRODUCTS page?!\");\n\t\t\tAssert.fail(\"Not in PRODUCTS page\");\n\t\t\treturn false; \n\t\t}\n\t\treturn true;\n\t\t\n\t}", "boolean hasLandingPageView();", "public void checkOutFlight() {\n confirmationPage.checkButton();\n }", "public boolean VerifyOrderConfirmation_WhatIsNextSection() {\n\t\tboolean flag = false;\n\t\t\n\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.WHATNEXT_SECTION).isDisplayed();\n\t\tif(flag){extentLogs.pass(\"VerifyWhat'sNextSection\", \"What'sNextSectionIsDisplayed\");\n\t }else{extentLogs.fail(\"VerifyWhat'sNextSection\", \"What'sNextSectionIsNotDisplayed\");}\n\t\t\n\t\treturn flag;\n\t}", "public void Verify_Expected_Header_Visibility()\r\n\t{\r\n\t\tString Runtime_Header_text=Page_header.getText();\r\n\t\tif(Runtime_Header_text.equals(Exp_page_header))\r\n\t\t\tSystem.out.println(\"Expected Header visible at webpage\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Expected Header not visible at webpage\");\r\n\t}", "public void verifyOnDashboardPage() {\n verifyUserLoggedIn.waitForState().enabled(30);\n verifyUserLoggedIn.assertContains().text(\"Dev Links\");\n }", "public void LocationAssesment_Location(){\r\n\t\t//String RFSID = getValue(\"RFSName\");\r\n\t//\tString password = getValue(Password);\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- My Account should be clicked and user should get logged in\");\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tdriver.switchTo().defaultContent();\r\n\t\t\t\t\tsleep(3000);\r\n\t\t\t System.out.println(\"switched frame\"+ switchframe(\"PegaGadget2Ifr\"));\r\n\t\t\t click(locator_split(\"tabLocationAssesment\"));\r\n\t\t\t click(locator_split(\"linkclickLocation\"));\r\n\t\t\t // driver.findElement(By.xpath(\"//*[@tabindex='4']/a/span\")).click();\r\n\t\t\t // driver.findElement(By.xpath(\"//a[@title='Click here to open Location Assessment']\")).click();\r\n\t\t\t driver.switchTo().defaultContent();\r\n\t\t\t System.out.println(\"switched frame\"+ switchframe(\"PegaGadget3Ifr\"));\r\n\t\t\t click(locator_split(\"tabLocation\"));\r\n\t\t\t //driver.findElement(By.xpath(\"//li[@tabindex='0']/a/span\")).click();\r\n\t\t\t System.out.println(\"verification\");\r\n\t\t\t sleep(1000);\r\n\t\t\t\t System.out.println(driver.findElement(By.id(\"GRASP_LOCATION_NM\")).getAttribute(\"value\"));\r\nsleep(2000);\r\n\t\t\t \r\n\t\t\t // verifyTextPresent(locator_split(\"txtLocation\"), getValue(\"Locationname\"),\"Location Name\");\r\n\t\t\t if(getAndVerifyTextvalue(locator_split(\"txtLocation\"), getValue(\"Locationname\")) == false){\r\n\t\t\t \r\n\t\t\t \tclearWebEdit(locator_split(\"txtLocation\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tsendKeys((locator_split(\"txtLocation\")), getValue(\"Locationname\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \t\r\n\t\t\t \r\n\t\t\t \t\r\n\t\t\t // getAndVerifyTextvalue(locator_split(\"txtCity\"), getValue(\"CityName\"),\"city\");\r\n\t\t\t // System.out.println(driver.findElement(By.id(\"GRASP_LOCATION_NM\")).getText());\r\n\t\t\t \r\n\t\t\t if(getAndVerifyTextvalue(locator_split(\"txtCity\"), getValue(\"CityName\"))==false){\r\n\t\t\t\t \r\n\t\t\t \tclearWebEdit(locator_split(\"txtCity\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tsendKeys((locator_split(\"txtCity\")), getValue(\"CityName\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t }\r\n\t\t\t // verifyTextPresent(locator_split(\"ListCountry\"), getValue(\"Country\"),\"Country\");\r\n\t\t\t if(getAndVerifyTextvalue(locator_split(\"ListCountry\"), getValue(\"Country\"))==false){\r\n\t\t\t\t \r\n\t\t\t \t//clearWebEdit(locator_split(\"ListCountry\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tselectListValue((locator_split(\"ListCountry\")), getValue(\"Country\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t }\r\n\t\t\t // verifyTextPresent(locator_split(\"txtBIvalue\"),getValue(\"BIValue\"),\"BI Value\");\r\n\t\t\t if(getAndVerifyTextvalue(locator_split(\"txtBIvalue\"), getValue(\"BIValue\"))==false){\r\n\t\t\t\t \r\n\t\t\t \tclearWebEdit(locator_split(\"txtBIvalue\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tsendKeys((locator_split(\"txtBIvalue\")), getValue(\"BIValue\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t }\r\n\t\t\t // verifyTextPresent(locator_split(\"txtBIindemnityperiod\"), getValue(\"BIIndemnityperiod\"),\"BI Indemnity period\");\r\n\t\t\t if(getAndVerifyTextvalue(locator_split(\"txtBIindemnityperiod\"), getValue(\"BIIndemnityperiod\"))==false){\r\n\t\t\t\t \r\n\t\t\t \tclearWebEdit(locator_split(\"txtBIindemnityperiod\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tsendKeys((locator_split(\"txtBIindemnityperiod\")), getValue(\"BIIndemnityperiod\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t }\r\n\t\t\t // verifyTextPresent(locator_split(\"txtBuildingValue\"), getValue(\"BuildingValue\"),\"Building\");\r\n\t\t\t if(getAndVerifyTextvalue(locator_split(\"txtBuildingValue\"), getValue(\"BuildingValue\"))==false){\r\n\t\t\t\t \r\n\t\t\t \tclearWebEdit(locator_split(\"txtBuildingValue\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tsendKeys((locator_split(\"txtBuildingValue\")), getValue(\"BuildingValue\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t }\r\n\t\t\t // verifyTextPresent(locator_split(\"txtMEvalue\"), getValue(\"MandEvalue\"),\"M+EValue\");\r\n\t\t\t if(getAndVerifyTextvalue(locator_split(\"txtMEvalue\"), getValue(\"MandEvalue\"))==false){\r\n\t\t\t\t \r\n\t\t\t \tclearWebEdit(locator_split(\"txtMEvalue\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tsendKeys((locator_split(\"txtMEvalue\")), getValue(\"MandEvalue\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t }\r\n\t\t\t // verifyTextPresent(locator_split(\"txtcontentvalue\"), getValue(\"Contentvalue\"),\"Content value\");\r\n\t\t\t if(getAndVerifyTextvalue(locator_split(\"txtcontentvalue\"), getValue(\"Contentvalue\"))==false){\r\n\t\t\t\t \r\n\t\t\t \tclearWebEdit(locator_split(\"txtcontentvalue\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tsendKeys((locator_split(\"txtcontentvalue\")), getValue(\"Contentvalue\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t }\r\n\t\t\t //verifyTextPresent(locator_split(\"txtstockinventory\"), getValue(\"Stockvalue\"),\"Stock inventory\");\r\n\t\t\t if(getAndVerifyTextvalue(locator_split(\"txtstockinventory\"), getValue(\"Stockvalue\"))==false){\r\n\t\t\t\t \r\n\t\t\t \tclearWebEdit(locator_split(\"txtstockinventory\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tsendKeys((locator_split(\"txtstockinventory\")), getValue(\"Stockvalue\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t }\r\n\t\t\t // verifyTextPresent(locator_split(\"txtotherPD\"), getValue(\"OtherPD\"),\"Other PD\");\r\n\t\t\t if(getAndVerifyTextvalue(locator_split(\"txtotherPD\"), getValue(\"OtherPD\"))==false){\r\n\t\t\t\t \r\n\t\t\t \tclearWebEdit(locator_split(\"txtotherPD\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tsendKeys((locator_split(\"txtotherPD\")), getValue(\"OtherPD\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t }\r\n\t\t\t //click(locator_split(\"txtLocationnext\"));\r\n\t\t\t\t//clickbylinktext(\"No\");\r\n\t\t\t\r\n\t\t//switchframe(\"PegaGadget2Ifr\");\r\n\t\tsleep(3000);\r\n\t\t//clickbylinktext(\"No\");*/\r\n\t\t\tif(driver.findElement(By.id(\"SectionCompleted\")).isSelected()==true)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Check Box alresy selected\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Check box is not selected\");\r\n\t\t\t\tdriver.findElement(By.id(\"SectionCompleted\")).click();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Report tab is clicked and user is logged in\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Report tab is not clicked in\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"LoginLogout\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "public boolean isPageOpened() {\n\t\ttry {\n\t\t\tTechnicalComponents.waitTill(txtUpgradeAccount, \"visible\");\n\t\t\tif (driver.getCurrentUrl().contains(urlsuffix)) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch (FrameworkException e) {\n\t\t\tthrow new FrameworkException(\n\t\t\t\t\t\"Upgarde page Not Loaded within specified time.---\" + e.getClass() + \"---\" + e.getMessage());\n\t\t}\n\n\t}", "@Test\n public void loginRegistersSessionRoutes_GlobalCanBeAdded() {\n getDriver().get(getTestURL()+\"global\");\n\n WebElement login = findElement(By.id(\"login-field\"));\n WebElement pwd = findElement(By.id(\"password-field\"));\n\n login.sendKeys(\"admin\");\n pwd.sendKeys(\"admin\");\n\n // Login as admin.\n findElement(By.id(\"submit\")).click();\n\n Assert.assertEquals(\"Should have now admin view visible.\", 3,\n findElements(By.tagName(\"vaadin-checkbox\")).size());\n\n // Time and Version views should have been registered to session on login.\n Assert.assertFalse(\"Time link should be available\",\n findElements(By.id(\"time-link\")).isEmpty());\n Assert.assertFalse(\"Version link should be available\",\n findElements(By.id(\"version-link\")).isEmpty());\n\n // Register Global to application scope\n findElement(By.id(\"global-checkbox\")).click();\n\n // Now global should be available\n getDriver().get(getTestURL()+\"global\");\n\n Assert.assertFalse(\"Global view should have been available\",\n findElements(By.id(\"remove-global\")).isEmpty());\n\n // as we are still in the session version and view should be available\n getDriver().get(getTestURL()+\"version\");\n Assert.assertFalse(\"Version view should have been available\",\n findElements(By.id(\"version-return\")).isEmpty());\n\n getDriver().get(getTestURL()+\"time\");\n Assert.assertFalse(\"Time view should have been available\",\n findElements(By.id(\"time-return\")).isEmpty());\n\n open();\n\n findElement(By.id(\"logout\")).click();\n\n // We should be at login view, but have a global view registered\n Assert.assertFalse(\"Global link should be available on login\",\n findElements(By.id(\"global-link\")).isEmpty());\n\n // now that the session was killed we should not get to time or version views\n\n getDriver().get(getTestURL()+\"version\");\n Assert.assertTrue(\"Version view shouldn't be available\",\n findElements(By.id(\"version-return\")).isEmpty());\n Assert.assertFalse(\"Login view should have been displayed\",\n findElements(By.id(\"global-link\")).isEmpty());\n\n getDriver().get(getTestURL()+\"time\");\n Assert.assertTrue(\"Time view shouldn't be available\",\n findElements(By.id(\"time-return\")).isEmpty());\n Assert.assertFalse(\"Login view should have been displayed\",\n findElements(By.id(\"global-link\")).isEmpty());\n }", "@Test\n\t\t public void testLocationThree() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Upper Montclair\");\n\t\t }", "@Test\n\t\t public void testLocationSix() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Upper Montclair\");\n\t\t }", "@After\n \tpublic void confirm() {\n \t\tcheckGlobalStatus();\n \n \t\tIterator<CyNetworkView> viewIt = viewManager.getNetworkViewSet().iterator();\n \n \t\tCyNetworkView view = viewIt.next(); \n \t\tCyNetwork network = view.getModel();\n \t\t\n \t\tcheckNetwork(network);\n \t\tcheckNetworkView(network);\n \t\tcheckAttributes(network);\n \t}", "public void v_Verify_Guest3_Displayed(){\n\t}", "public void verifyLogoutPageDisplayed() {\n\t\twaitForPageLoaded();\n\t\t_normalWait(1000);\n\t\tassertByPageTitle(Constants.pageTitle_LoggedoutPage);\n\t}", "public boolean verifyAccountInquiryPage(){\n\t\tboolean isAccountInquiryPagePresent=false;\n\t\tSeleniumUtil.switchToFrame(driver, \"DialogBox_Frame\");\n\t\tString text = SeleniumUtil.getElementWithFluentWait(accountInquiryTitle).getText();\n\t\tSystem.out.println(text);\n\t\tif(text.equalsIgnoreCase(\" Financial Inquiry\")){\n\t\t\tSystem.out.println(\"Account Inquiry Page is opened\");\n\t\t\tSeleniumUtil.getElementWithFluentWait(accountInquiryTitle).sendKeys(Keys.ESCAPE);\n\t\t\tisAccountInquiryPagePresent=true;\n\t\t}\n\t\treturn isAccountInquiryPagePresent;\n\t}", "public void verifyUIElements(){\r\n\t\t\tisClickable(Txt_HomePage_Search);\r\n\t\t\tisClickable(Btn_HomePage_Search);\r\n\t\t}", "private void checkToLogout() {\n logout();\n checkToHome();\n drawViewSideMenu();\n }", "public void validatePageLoad() {\n\t\tJavascriptExecutor js;\n\t\tjs = (JavascriptExecutor) uiElementAction.driver;\n\t\tboolean assertion =\n\t\t\t\tjs.executeScript(\"return document.readyState\").equals(\"complete\") == true;\n\t\tLog.info(\"The page loaded successfully: \" + assertion);\n\t\tAssert.assertTrue(\"The page loaded successfully: \" + assertion, assertion);\n\t}", "@Override\n public boolean isPageLoaded() {\n\n setLogString(\"Verify the savings Page is loaded\", true, CustomLogLevel.LOW);\n return isDisplayed(getDriver(), By.cssSelector(SAVINGS_CONTAINER), TINY_TIMEOUT)\n && isDisplayed(getDriver(), By.className(SAVINGS_DOLLARS), TINY_TIMEOUT)\n && isDisplayed(getDriver(), By.cssSelector(MENU_SAVINGS), TINY_TIMEOUT);\n\n }", "public void v_Verify_Guest5_Displayed(){\n\t}", "public boolean verifyPreAdmission_StudentCountReportPage() {\r\n\t\ttry {\r\n\t\t\tSystem.out.println(txt_StudentCountReportPage.getText().trim());\r\n\t\t\ttxt_StudentCountReportPage.isDisplayed();\r\n\t\t\tlog(\"PreAdmission Student Count Report page is dispalyed and object is:-\"\r\n\t\t\t\t\t+ txt_StudentCountReportPage.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t\t\treturn true;\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Test\n\t\t public void testLocationTwo() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/preston-pl-valley-rd/\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Preston Pl & Valley Rd\");\n\t\t }", "public boolean validateBrokersAndNavigatorsPageisDisplayed() {\n\t\tboolean result = false;\n\n\t\tif (Browser.isDisplayed(\"xpath=.//*[@id='DisplayNavigatorBrokerLandingPage']/div/div/div/div/div/div/div/div/div[5]/a/img\")) {\n\t\t\tresult = true;\n\t\t}\n\n\t\treturn result;\n\t}", "public void verifyGroupPage()\n\t{\n\t\t_waitForJStoLoad();\n\t\tString groupPageText= groups.getText();\n\t\tAssert.assertEquals(FileNames.Groups.toString(), groupPageText);\n\t}", "@Override\n protected void isLoaded(){\n String url = driver.getCurrentUrl();\n Assert.assertTrue(url.contains(\"users\"), \"Not on Login page: \".concat(url));\n }", "public void verifyCourseSuggestionLoadedInNewWindow() {\n Assert.assertTrue(ContactLabelCourseSuggestionPage.isDisplayed());\n }", "@Given(\"^user is already login page$\")\n\tpublic void user_is_already_login_page() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\Jamshed Khan\\\\Downloads\\\\chromedriver_win32 (2)\\\\chromedriver.exe\");\n\t\t driver= new ChromeDriver();\n\t\t driver.get(\"http://demo.guru99.com/v4\");\n\t}", "public void v_Verify_Guest1_Displayed(){\n\t}", "public void isRedirectionCorrect() {\n\n\t\tString title = WebUtility.getTitle();\n\t\tAssert.assertEquals(title, data.getValidatingData(\"homepage_Title\"));\n\t\tSystem.out.println(\"Redirection is on the correct page\");\n\t}", "public void v_Verify_Guest8_Displayed(){\n\t}", "@Then(\"^homepage is visible$\")\n\tpublic void homepage_is_visible() throws Throwable {\n\t\tString verify = driver.findElement(By.xpath(\"//marquee[@class='heading3']\")).getText();\n\t\tAssert.assertEquals(verify, \"Welcome To Customer's Page of Guru99 Bank\", \"Error in loading!\");\n\t}", "public void userIsOnHomePage(){\n\n assertURL(\"\\\"https://demo.nopcommerce.com/\\\" \");\n }", "public void v_Verify_Guest4_Displayed(){\n\t}", "public void v_Verify_Guest2_Displayed(){\n\t}", "@Flaky\n @Test\n public void checkServicePage() {\n assertEquals(getWebDriver().getTitle(), MAIN_DRIVER_TITLE);\n\n //2. Perform login\n servicePage.login(cfg.login(), cfg.password());\n\n //3. Assert User name in the left-top side of screen that user is loggined\n servicePage.checkUserNameTitle();\n\n\n }", "boolean isPlaced();", "public boolean VerifyProductDisplayed_OrderConfirmation() {\n\t\t\n\t\tboolean flag = false;\n\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.PRODUCTIMAGE).isDisplayed();\n\t\tif(flag){\n\t\t\textentLogs.pass(\"VerifyProductImageDisplayedInConfirmationPage\", \"Displayed\");\n\t\t}else{extentLogs.fail(\"VerifyProductImageDisplayedInConfirmationPage\", \"NotDisplayed\");\t\t}\n\treturn flag;\n\t\t}", "public void v_Verify_Guest12_Displayed(){\n\t}", "public void testLocation() {\n String hash = Window.Location.getHash();\n String host = Window.Location.getHost();\n String hostName = Window.Location.getHostName();\n String href = Window.Location.getHref();\n assertNull(Window.Location.getParameter(\"fuzzy bunny\"));\n String path = Window.Location.getPath();\n String port = Window.Location.getPort();\n String protocol = Window.Location.getProtocol();\n String query = Window.Location.getQueryString();\n \n // Check that the sum is equal to its parts.\n assertEquals(host, hostName + \":\" + port);\n assertEquals(href, protocol + \"//\" + host + path + query + hash);\n }", "public boolean defineSetupPage_state() {\r\n\t\treturn IsElementVisibleStatus(DefineSetupPageName);\r\n\t}", "@Test(groups ={Slingshot,Regression})\n\tpublic void VerifyAddNewUserLandingPage() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify the Add new User Landing page and their Overlay\");\n\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDatas\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.AddUsersWhatisThisverlay()\n\t\t.AddNewUserNavigationVerification(); //have to update navigation link\n\t}", "public boolean validatePageElements() {\n boolean nameCheck = name.isDisplayed() && name.isEnabled();\n boolean emailCheck = email.isDisplayed() && email.isEnabled();\n boolean passwordCheck = password.isDisplayed() && password.isEnabled();\n boolean signupGoogleCheck = signupGoogle.isDisplayed() && signupGoogle.isEnabled();\n boolean signupSlackCheck = signupSlack.isDisplayed() && signupSlack.isEnabled();\n boolean signupOutlookCheck = signupOutlook.isDisplayed() && signupOutlook.isEnabled();\n boolean signupAppleCheck = signupApple.isDisplayed() && signupApple.isEnabled();\n boolean signupFacebookCheck = signupFacebook.isDisplayed() && signupFacebook.isEnabled();\n boolean logoCheck = miroLogo.isDisplayed();\n\n return nameCheck && emailCheck && passwordCheck && signupGoogleCheck && signupSlackCheck && signupOutlookCheck && signupAppleCheck && signupFacebookCheck && logoCheck;\n\n }", "public boolean verifyPageTitle(By by) {\n commonMethods.switchToFrame(driver, \"frameMain\");\n Boolean isDisplayed = $(by).isDisplayed();\n switchTo().defaultContent();\n return isDisplayed;\n }", "public void verifyAgentPageIsDisplayed() throws Exception {\n\n\t\twdriver.findElement(By.xpath(WebData.verifyAgentScreen)).isDisplayed();\n\t}", "public void verifyUserIsOnHomepage()\n {\n asserttextmessage(getTextFromElement(_welcomeTileText),expected,\"user on home page\");\n\n }", "public void testRes_Navigation(){\n\t\tinnerFunction(childrenButton, childrenList.class);\t\t\n\t\tinnerFunction(locationButton, locationList.class);\n\t\t\n\t\tsolo.clickOnView(logOutButton);\n\t\tsolo.sleep(500);\n\t\tsolo.assertCurrentActivity(\"ERR - Could not jump to login screen.\", Login.class);\n\n\t}", "public void v_Verify_Guest7_Displayed(){\n\t}", "public void appearsConfirmationPopup(String operation) {\n\t\tassertTrue(true);\n\t\t//assertTrue(browser.currentPage().div(\"jqi_state_\" + operation).exists());\n\t\t//assertTrue(div(\"jqi_state_\" + operation).exists());\t\n\t}", "public void v_Verify_Guest11_Displayed(){\n\t}", "public void v_Verify_Guest6_Displayed(){\n\t}", "public void assertSavedListingAndSavedSearchesSection() {\r\n\t\tprint(\"Assert Saved Listing Section\");\r\n\t\tlocator = Locator.MyTrader.Saved_Listings_Section.value;\r\n\t\tAssert.assertTrue(isElementPresent(locator));\r\n\t\tprint(\"Assert Saved Searches Section\");\r\n\t\tString SavedSearches_locator = Locator.MyTrader.Saved_Searches_Section.value;\r\n\t\tAssert.assertTrue(isElementPresent(SavedSearches_locator));\r\n\t}", "private boolean isValidLoginResponse(Response response) {\n\t\treturn response.header(\"Location\").toLowerCase().contains(\"testsession\");\r\n\t}", "public void verifyTopLevelNavigationIsDisplayed() {\n\t\tmoveToElement(topLevelNavigator);\n\t\tAssert.assertTrue(isElementPresent(topLevelNavigator));\n\t\treportInfo();\t\t\n\t}", "public void VerifyHomepage(){\r\n\t\t//String username = getValue(Email);\r\n\t//\tString password = getValue(Password);\r\n\r\n\t//\tclass Local {};\r\n\t\t/*Reporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- My Account should be clicked and user should get logged in\");*/\r\n\t\ttry{\r\n\t\t\tsleep(3000);\r\n\t\t\t//driver.findElement(locator_split(\"btn_privacyok\")).click();\r\n\t\tclick(locator_split(\"btn_privacyok\"));\r\n\t\t\t\r\n\t\t\t/*Reporter.log(\"PASS_MESSAGE:- My Account is clicked and user is logged in\");*/\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- User is not logged in\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"LoginLogout\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "@Test(groups ={Slingshot,Regression})\n\tpublic void verifyUsertable() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify AddnewView Button Overlay\"); \t \t \t \n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDatas\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.Verifyuserlistindb(userProfile);\n\t}", "public boolean initUI() {\n\t\t// get the user pin from SharedPreferences manager.\n\t\tString userPin = mSP.getString(Config.USER_PIN_KEY, \"\");\n\n\t\tsetAction();\n\n\t\tbtnTabTruck.setChecked(true);\n\t\t// btnTabSite.setChecked(false);\n\t\tinTruckMode = true;\n\n\t\tpopulateList();\n\n\t\t// To check the user already login or not.\n\t\t// if login it redirect to the Map activity.\n\t\tUser driver = null;\n\t\tif (!userPin.equals(\"\")) {\n\t\t\tdriver = userDao.getByPin(userPin);\n\t\t}\t\t\n\t\t\n\t\tif (driver != null) {\n\t\t\tstartupSync();\n\t\t\t// User already logged in, launch the map\n\t\t\tSession.setDriver(driver);\n\t\t\tIntent intent = new Intent(this, MapActivity.class);\n\t\t\tintent.putExtra(\"vehicle\", vehicle);\n\t\t\tthis.startActivity(intent);\n\t\t\tfinish();\n\t\t\treturn false;\n\t\t} else {\n\n\t\t\t// The user must log in before launching the map\n\t\t\ttruckList.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int pos, long arg3) {\n\t\t\t\t\tParcelable state = truckList.onSaveInstanceState();\n\n\t\t\t\t\tif (inTruckMode) {\n\t\t\t\t\t\tvehicle = vehiclesArray.get(pos);\n\t\t\t\t\t\ttruckList.setAdapter(new TruckListAdapter(Sw_LoginScreenActivity.this, vehiclesNameArray, pos));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsite = sitesArray.get(pos);\n\t\t\t\t\t\ttruckList.setAdapter(new TruckListAdapter(Sw_LoginScreenActivity.this, sitesNameArray, pos));\n\t\t\t\t\t}\n\n\t\t\t\t\ttruckList.onRestoreInstanceState(state);\n\t\t\t\t\tsetLoginMarker();\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tLog.i(TAG, \"page load\");\n\t\t\tif (hasStorage(true)) {\n\t\t\t\tTextView companyName, imeiTV, lastSync, deviceName, configInfo, tabletName, versionName/*, businessType*/;\n\n\t\t\t\tcompanyName = (TextView) findViewById(R.id.comp_name_text);\n\t\t\t\timeiTV = (TextView) findViewById(R.id.imei_text_view);\n\t\t\t\tlastSync = (TextView) findViewById(R.id.textView4);\n\t\t\t\tdeviceName = (TextView) findViewById(R.id.textView3);\n\t\t\t\tconfigInfo = (TextView) findViewById(R.id.textView2);\n\t\t\t\ttabletName = (TextView) findViewById(R.id.tablet_name);\n\t\t\t\tversionName = (TextView) findViewById(R.id.tv_version_name);\n\t\t\t\t//businessType = (TextView) findViewById(R.id.businessType);\n\t\t\t\t//tvWclogin = (TextView) findViewById(R.id.tV_wc_login);\n\t\t\t\t\n\t\t\t\tImageView imLogo = (ImageView) findViewById(R.id.imgView_logo);\n\t\t\t\t\n\t\t\t\tint versionCode = -1;\n\t\t\t\ttry {\n\t\t\t\t\tversionCode = getPackageManager().getPackageInfo(getPackageName(), 0).versionCode;\n\t\t\t\t\tConfig.setVersion(versionCode);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t}\n\n\t\t\t\tconfigInfo.setText(\"Version: \" + versionCode + \"\\nConfig: \" + Config.CURRENT_CONFIG + \"\\nURL: \" + Config.getBaseUrl());\n\n\t\t\t\t// Update the company and tablet name in the title bar\n\t\t\t\tCompany company = Session.getCompany(true);\n\t\t\t\tif (company != null) {\n\t\t\t\t\tif (company.isSimplicity()) {\n\t\t\t\t\t\timLogo.setImageResource(R.drawable.simplicity);\n\t\t\t\t\t}\n\t\t\t\t\tcompanyName.setText(company.getCompanyName());\n\t\t\t\t} else {\n\t\t\t\t\tcompanyName.setText(\"Company Name\");\n\t\t\t\t}\n\n\t\t\t\tImeiCompany imei = Session.getImeiCompany();\n\t\t\t\tif (imei != null) {\n\t\t\t\t\ttabletName.setText(imei.getName());\n\t\t\t\t\timeiTV.setText(imei.getImeiNo());\n\t\t\t\t\tConfig.setIMEI(imei.getImeiNo());\n\t\t\t\t} else {\n\t\t\t\t\ttabletName.setText(\"\");\n\t\t\t\t\tUtils cU = new Utils(getApplicationContext());\n\t\t\t\t\timeiTV.setText(cU.getIMEI());\n\t\t\t\t\tConfig.setIMEI(cU.getIMEI());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\ttry {\n\t\t\t\t\tversionName.setText(this.getPackageManager().getPackageInfo(this.getPackageName(), 0).versionName);\n\t\t\t\t} catch (NameNotFoundException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tDataBaseHelper Db = new DataBaseHelper(Sw_LoginScreenActivity.this);\n\t\t\t\tlastSync.setText(new ContractsDao().getLastModified());\n\n\t\t\t\tdeviceName.setText(Db.selectDeviceName());\n\t\t\t}\n\n\t\t}\n\t\treturn true;\n\t}", "@Test\n public void stage04_searchAndPage() {\n String keyWord = \"bilgisayar\";\n Integer pageNumber = 2;\n //Searching with parameters\n SearchKey searchKey = new SearchKey(driver);\n HomePage homePage = searchKey.search(keyWord, pageNumber);\n //Getting current url\n String currentUrl = homePage.getCurrentURL();\n //Testing if this is desired page\n assertEquals(currentUrl, \"https://www.gittigidiyor.com/arama/?k=bilgisayar&sf=2\");\n //logging\n if (currentUrl.equals(\"https://www.gittigidiyor.com/arama/?k=bilgisayar&sf=2\")) {\n logger.info(\"( stage02_testOpenLoginPage )Actual location : \" + currentUrl);\n } else {\n logger.error(\"( stage02_testOpenLoginPage )Actual location : \" + currentUrl);\n }\n }", "public void verifyPopupShouldNotDisplayAfterPublishingTheAd() throws Exception {\n\t\t\tCreateStockTradusProPage createStockObj= new CreateStockTradusProPage(driver);\n\t\t\tAllStockTradusPROPage AllStockPage= new AllStockTradusPROPage(driver);\n\t\t\tOverviewTradusPROPage overviewObj=new OverviewTradusPROPage(driver);\n\t\t\twaitTill(2000);\n\t\t\tLoginTradusPROPage loginPage = new LoginTradusPROPage(driver);\n\t\t\tloginPage.setAccountEmailAndPassword(\"harish.boyapati+0289@olx.com\", \"sunfra123\");\n\t\t\tjsClick(driver, loginPage.LoginButton);\n\t\t\twaitTill(5000);\n\t\t\tif(!verifyElementPresent(overviewObj.PostYourAdButtonOnWelcomePopup))\n\t\t\t{\n\t\t\t\tdriver.navigate().refresh();\n\t\t\t}\n\t\t\texplicitWaitFortheElementTobeVisible(driver,overviewObj.TradusWelcomeBox);\n\t\t\tjsClick(driver, overviewObj.PostYourAdButtonOnWelcomePopup);\n\t\t\texplicitWaitFortheElementTobeVisible(driver,overviewObj.createStockPageVerificationElement);\n\t\t\tcreateStockObj.uploadImageButtonInPostingForm.sendKeys(System.getProperty(\"user.dir\") + \"\\\\Tire.jpeg\");\n\t\t\texplicitWaitFortheElementTobeVisible(driver, createStockObj.successToastInPostingForm);\n\t\t\twaitTill(1000);\n\t\t\tscrollToElement(driver, createStockObj.priceSectionInPostingForm);\n\t\t\twaitTill(3000);\n\t\t\tclick(createStockObj.priceTypeFieldPostingForm);\n\t\t\twaitTill(1000);\n\t\t\tactionClick(driver, createStockObj.priceTypeasFixed);\n\t\t\twaitTill(1000);\n\t\t\tif (!getText(createStockObj.currencyFieldAutofillValue).equalsIgnoreCase(\"EUR\")) {\n\t\t\t\tclick(createStockObj.currencyTypeFieldPostingForm);\n\t\t\t\twaitTill(1000);\n\t\t\t\tactionClick(driver, createStockObj.currencyTypeasEuro);\n\t\t\t}\n\t\t\tsendKeys(createStockObj.netPriceFieldPostingForm, \"10000\");\n\t\t\twaitTill(1000);\n\t\t\tscrollToElement(driver, createStockObj.yourVehicleSectionInPostingForm);\n\t\t\twaitTill(2000);\n\t\t\tclick(createStockObj.vehicleTypeFieldPostingForm);\n\t\t\tactionClick(driver, createStockObj.vehicleTypeasSpareParts);\n\t\t\twaitTill(3000);\n\t\t\tclick(createStockObj.vehicleCategoryFieldPostingForm);\n\t\t\tactionClick(driver, createStockObj.vehicleCategoryasTires);\n\t\t\twaitTill(2000);\n\t\t\tclick(createStockObj.vehicleMakeFieldPostingForm);\n\t\t\tactionClick(driver, createStockObj.vehicleMakeasVolvo);\n\t\t\twaitTill(3000);\n\t\t\tclick(createStockObj.vehicleModelFieldPostingForm);\n\t\t\tactionClick(driver, createStockObj.vehicleModelas8700);\n\t\t\twaitTill(4000);\n\t\t\tsendKeys(createStockObj.descriptionAreainPostingForm, \"Ad\");\n\t\t\tjsClick(driver, createStockObj.postYourAdButton);\n\t\t\texplicitWaitFortheElementTobeVisible(driver, AllStockPage.MyStockText);\n\t\t\tjsClick(driver, overviewObj.overviewOptioninSiderBar);\n\t\t\texplicitWaitFortheElementTobeVisible(driver,overviewObj.overviewPageVerificationElement);\n\t\t\twaitTill(5000);\n\t\t\tAssert.assertFalse(verifyElementPresent(overviewObj.TradusWelcomeBox),\n\t\t\t\t\t\"Welcome popup displaying even after clicking cross icon\");\n\t\t}", "@Override\n public void verifyDestinationInformationPage(String destination) {\n String currentURL = getWebdriverInstance().getCurrentUrl();\n String normalizedDestination = destination.toLowerCase();\n if (!currentURL.contains(\"hotel-rooms/\" + normalizedDestination + \".jsp?mwr=1&isMobileFullSite=true\")) {\n throw new org.openqa.selenium.NotFoundException(\"Was expecting to be on SEO\" + destination +\n \" information page but was on \" + currentURL);\n }\n }", "private void redirectToLandingPage(){\n\t\tappInjector.getAppService().getLoggedInUser(new SimpleAsyncCallback<UserDo>() {\n\t\t\t@Override\n\t\t\tpublic void onSuccess(UserDo loggedInUser) {\n\t\t\t\tAppClientFactory.setLoggedInUser(loggedInUser);\n\t\t\t\tUcCBundle.INSTANCE.css().ensureInjected();\n\t\t\t\tHomeCBundle.INSTANCE.css().ensureInjected();\n\t\t\t\tAppClientFactory.getInjector().getWrapPresenter().get().setLoginData(loggedInUser);\n\t\t\t\tif (AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken().equalsIgnoreCase(PlaceTokens.STUDENT)){\n\t\t\t\t\t\n\t\t\t\t}else if(AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken().equalsIgnoreCase(PlaceTokens.SHELF)){\n\t\t\t\t\tAppClientFactory.fireEvent(new DisplayNoCollectionEvent());\n\t\t\t\t}else{\n\t\t\t\t\tMap<String, String> params = new HashMap<String,String>();\n\t\t\t\t\tparams.put(\"loginEvent\", \"true\");\n\t\t\t\t\tappInjector.getPlaceManager().revealPlace(PlaceTokens.HOME, params);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public void verifyBeforeLogin() {\n\t\t\n\t\tAssert.assertTrue(driver.getTitle().contains(\"ToolsQA\"));\t\t\n\t}", "public boolean isPageRequested() {\n\n // If we're in add XML MO mode and have at least one future MO, a new page is not desired.\n if (wizard.isInAddXmlMoMode() && wizard.hasFutureManagedObjects()) {\n return false;\n }\n\n return getPageIdx() >= 0;\n }", "@Test\r\n\tpublic void verification(){\n\t\tdriver.findElement(By.className(\"button block\")).click();\r\n\t\t\r\n\t\t//open a new tab\r\n\t\tdriver.findElement(By.cssSelector(\"body\")).sendKeys(Keys.CONTROL +\"t\");\r\n\t\t\r\n\t\t//switch to new tab\r\n\t\tArrayList<String> tabs = new ArrayList<String>(driver.getWindowHandles());\r\n\t\tdriver.switchTo().window(tabs.get(1));\r\n\t driver.get(\"https://www.textnow.com/login\");\r\n\t driver.findElement(By.id(\"loginUsername\")).sendKeys(\"elaineren\");\r\n\t driver.findElement(By.id(\"loginPassword\")).sendKeys(\"5691219-kk\");\r\n\t driver.findElement(By.id(\"submitLogin\")).click();\r\n\t \r\n\t String scode=driver.findElement(By.id(\"new\")).getText();\r\n\t System.out.println(scode);\r\n\t \r\n\t driver.findElement(By.linkText(\"Log Out\"));\r\n\t \r\n\t driver.switchTo().window(tabs.get(0));\r\n\t}", "public void verifyPrintPageOpenedInNewWindow() {\n\t Assert.assertTrue(printPreviewApp.isDisplayed());\n\t}", "public void v_Verify_Guest9_Displayed(){\n\t}", "@Test(priority = 3)\r\n\t//@BeforeMethod\r\n\tpublic void NavigateToPDPPage() throws Exception\r\n\t{\r\n\t\tthis.driver=driver;\r\n Click_Action.Btn_Click(PageObjectModal.WISE_HomePage_Page.WISE_SearchPDPLink, 6, 6,\"Xpath\");\r\n Thread.sleep(1000);\r\n \r\n //**\r\n Set<String> AllWindowHandles = driver.getWindowHandles();\r\n String window1 = (String) AllWindowHandles.toArray()[0];\r\n System.out.print(\"window1 handle code = \"+AllWindowHandles.toArray()[0]);\r\n String window2 = (String) AllWindowHandles.toArray()[1];\r\n System.out.print(\"\\nwindow2 handle code = \"+AllWindowHandles.toArray()[1]);\r\n driver.switchTo().window(window2);\r\n \r\n //**\r\n AssertCls.AssertText(PageObjectModal.WISE_HomePage_Page.WISE_PDPProdName, 6, 6, 6, 5,\"Xpath\");\r\n //AssertCls.AssertText(PageObjectModal.WISE_HomePage_Page.WISE_SearchPDPLink, 1, 2, 5, 5);\r\n //driver.close();\r\n //driver.switchTo().window(window1);\r\n driver.switchTo().window(window1).close();\r\n driver.switchTo().window(window2);\r\n //driver.close();\r\n\t\t\r\n\t\t\t\t\r\n\t}", "public boolean VerifyOrderConfirmation_ProductDetails() {\n\t\tboolean flag = false;\n\t\t\n\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.PRODUCTIMAGE).isDisplayed();\n\t\tif(flag){extentLogs.pass(\"VerifyProductDetails\", \"ProductDetailsareIsDisplayed\");\n\t }else{extentLogs.fail(\"VerifyProductDetails\", \"ProductDetailsareNotDisplayed\");}\n\t\t\n\t\treturn flag;\n\t}", "@Test(groups ={Slingshot,Regression})\n\tpublic void VerifySuperUserallaccountsConfirmationPageNavigation() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify whether view name field is prepopulated as All accounts for super user\"); \t \t \n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDatas\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.SuperUserCreation()\n\t\t.SuperUserOverlayyes()\n\t\t.EnterValid_SuperUserdata(userProfile)\t\n\t\t.AddNewUserNavigationVerification() \n\t\t.UserConfirmationPageNavigations(); \t \n\n\t}" ]
[ "0.70150006", "0.61456245", "0.6039292", "0.6012238", "0.5978062", "0.59156936", "0.5912333", "0.58749604", "0.583151", "0.5773027", "0.571822", "0.57071143", "0.56883585", "0.5683555", "0.56623745", "0.56518537", "0.56302315", "0.561016", "0.5596639", "0.55787826", "0.55780536", "0.5539886", "0.55112064", "0.5494574", "0.5491975", "0.5487482", "0.5485296", "0.54850894", "0.5472252", "0.54645395", "0.5463544", "0.5460825", "0.54369587", "0.5433325", "0.5427686", "0.5426519", "0.54212743", "0.5403033", "0.5401001", "0.5394503", "0.53921026", "0.5388352", "0.5384991", "0.5383834", "0.5378973", "0.53651667", "0.53605795", "0.5344535", "0.5342749", "0.53335774", "0.5331906", "0.5326642", "0.532402", "0.5322813", "0.5318743", "0.53163886", "0.531391", "0.53134465", "0.5312331", "0.5308405", "0.5302213", "0.5300873", "0.52996516", "0.5298961", "0.5289199", "0.52838564", "0.52791774", "0.5270647", "0.52658373", "0.52616817", "0.5252801", "0.5251826", "0.5248571", "0.52431834", "0.5236488", "0.5235627", "0.5229059", "0.52187026", "0.52177244", "0.5211094", "0.5209333", "0.5209293", "0.51939064", "0.519099", "0.5186577", "0.51844966", "0.5170491", "0.51674724", "0.51669586", "0.5166512", "0.51625067", "0.5158762", "0.5157893", "0.51482016", "0.5136578", "0.5131335", "0.51283944", "0.51283705", "0.511207", "0.51106334" ]
0.7259015
0
todo: Agustin.Koll here we can store the laptops in a DB and check if we already have them store
public Observable<List<Laptop>> getLaptops(){ return laptopServices.getLaptops(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveInitialPoolLocation() {\n\n\t\tPOOL_LIST = new ArrayList<poolLocation>();\n\n\t\tfor (int i = 0; i < NumPool; i++) {\n\t\t\taddNewPool(getPoolLocation(i));\n\t\t}\n\n\t\tfor (int i = 0; i < NumCoupon; i++) {\n\t\t\taddNewPool(getCouponLocation(i));\n\t\t}\n\t}", "public void addLaptop(Laptop laptop) {\n\t\tlaptopDao.addLaptop(laptop);\r\n\t}", "private void LoadingDatabasePoolLocation() {\n\n\t\tCursor cursor = helper.getDataAll(PooltableName);\n\n\t\t// id_counter = cursor.getCount();\n\n\t\tPOOL_LIST.clear();\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_POOL_LCOATION_COLUMN);\n\t\t\tString Description = cursor\n\t\t\t\t\t.getString(DESCRIPTION_POOL_LCOATION_COLUMN);\n\t\t\tString isCouponUsed = cursor.getString(COUPON_IS_USED_COLUMN);\n\n\t\t\tPOOL_LIST.add(new poolLocation(ID, Description,\n\t\t\t\t\tisUsed(isCouponUsed), ThumbNailFactory.create()\n\t\t\t\t\t\t\t.getThumbNail(ID)));\n\n\t\t} // travel to database result\n\n\t}", "public synchronized static List<Store> loadStoresNotAffectToLocation(Connection c) throws SQLException {\r\n //list of shop\r\n List<Store> listShop = new ArrayList<>();\r\n Statement myStmt = c.createStatement();\r\n //The query which selects all the shops.\r\n ResultSet myRs = myStmt.executeQuery(\"select * from magasin where idMagasin not in (select Magasin_idMagasin from emplacement_has_magasin)\");\r\n //Loop which add a shop to the list.\r\n while (myRs.next()) {\r\n int id = myRs.getInt(\"idMagasin\");\r\n String designation = myRs.getString(\"designation\");\r\n String description = myRs.getString(\"description\");\r\n int loyer = myRs.getInt(\"loyer\");\r\n int surface = myRs.getInt(\"superficie\");\r\n int niveau = myRs.getInt(\"niveau\");\r\n String localisation = myRs.getString(\"localisation\");\r\n //liste type \r\n Statement myStmt2 = c.createStatement();\r\n //The query which selects all the shops.\r\n ResultSet myRs2 = myStmt2.executeQuery(\"SELECT designation,idType from magasin_has_type,type where magasin_has_type.type_idType=type.idType and magasin_has_type.magasin_idMagasin=\" + id);\r\n List<TypeStore> list = new ArrayList<>();\r\n while (myRs2.next()) {\r\n int idtype = myRs2.getInt(\"idType\");\r\n String designationType = myRs2.getString(\"designation\");\r\n TypeStore T = new TypeStore(idtype, designationType);\r\n list.add(T);\r\n }\r\n Store M = new Store(id, designation, description, loyer, surface, niveau, localisation, list);\r\n\r\n listShop.add(M);\r\n }\r\n myStmt.close();\r\n return listShop;\r\n\r\n }", "@Override\n\tpublic void storeLocations(long fleetId, AreaType areaType) throws DBConnectException, LocationRepositoryException {\n\t\tConnection connection = null;\n\t\ttry {\n\t\t\tconnection = DBConnector.getConnection(url);\n\t\t\t\n\t\t\tdelete(connection, fleetId, areaType);\n\t\t\t\n\t\t\tPreparedStatement ps = null;\n\t\t\tResultSet rs = null;\n\t\t\tString sql = \"SELECT id, LocationName, SpeedLimit, IsSafe, SequenceNo, latitude, longitude \"+\n\t\t\t\t\t\t \"FROM LocationsImport \"+\n\t\t\t\t\t\t \"WHERE AreaType = ? \"+\n\t\t\t\t\t\t \"ORDER BY LocationName, SequenceNo \";\n\t\t\ttry {\n\t\t\t\tps = connection.prepareStatement(sql);\n\t\t\t\tint i = 1;\n\t\t\t\tps.setString(i,areaType.name);\n\t\t\t\trs = ps.executeQuery();\n\t\t\t\tLocation currentLocation = null;\n\t\t\t\t\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\ti = 1;\n\t\t\t\t\tlong id = rs.getLong(i++);\n\t\t\t\t\tString locationName = rs.getString(i++);\n\t\t\t\t\tBigDecimal speedLimit = rs.getBigDecimal(i++);\n\t\t\t\t\tboolean isSafe = rs.getInt(i++)==1;\n\t\t\t\t\tint sequenceNo = rs.getInt(i++);\n\t\t\t\t\tBigDecimal latitude = rs.getBigDecimal(i++);\n\t\t\t\t\tBigDecimal longitude = rs.getBigDecimal(i++);\n\t\t\t\t\tif (currentLocation == null || !currentLocation.isSameAs(locationName)) { // Location has changed\n\t\t\t\t\t\tif (currentLocation != null) {\n\t\t\t\t\t\t\tsave(connection, fleetId, areaType, currentLocation);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcurrentLocation = new Location(id, areaType, locationName, sequenceNo, speedLimit, isSafe, latitude, longitude);\n\t\t\t\t\t\tlogger.log(Level.INFO,\"Started new location \"+locationName);\n\t\t\t\t\t} else {\t// This is another point in the existing currentLocation. Make sure the sequenceNo makes sense, otherwise reject it\n\t\t\t\t\t\tif (currentLocation.isNextInSequence(sequenceNo)) {\n\t\t\t\t\t\t\tcurrentLocation.add(sequenceNo, latitude,longitude);\n\t\t\t\t\t\t\tlogger.log(Level.INFO,\"Added to location \"+locationName+\" sequenceNo \"+sequenceNo+\" number of points \"+currentLocation.getNumberOfPoints());\n\t\t\t\t\t\t} else { \n\t\t\t\t\t\t\tcurrentLocation.markAsBad(\"Incorrect sequence number \"+sequenceNo+\" - it should have been 1 more than \"+currentLocation.getSequenceNo());\n\t\t\t\t\t\t\tlogger.log(Level.INFO,\"Incorrect sequenceNo \"+sequenceNo+\" for location \"+locationName+\" it should have been \"+currentLocation.getSequenceNo()+\"+1\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (currentLocation != null) {\n\t\t\t\t\tsave(connection, fleetId, areaType, currentLocation);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (SQLException ex) {\n\t\t\t\tString msg = \"Unable to select the locations to import for AreaType \"+areaType+\" using sql \"+sql+\" : SQLException \"+ex.getMessage();\n\t\t\t\tlogger.log(Level.SEVERE,msg,ex);\n\t\t\t\tthrow new LocationRepositoryException(msg,ex);\n\t\t\t} finally {\t\t\n\t\t\t\tif (rs != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\trs.close();\n\t\t\t\t\t} catch (Throwable th) {\n\t\t\t\t\t}\n\t\t\t\t\trs = null;\n\t\t\t\t}\n\t\t\t\tif (ps != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tps.close();\n\t\t\t\t\t} catch (Throwable th) {\n\t\t\t\t\t}\n\t\t\t\t\tps = null;\n\t\t\t\t}\n\t\t\t}\n\t\t} finally {\n\t\t\tif (connection != null) {\n\t\t\t\ttry {\n\t\t\t\t\tconnection.close();\n\t\t\t\t} catch (Throwable th) {\n\t\t\t\t}\n\t\t\t\tconnection = null;\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void shoppingListSavesLocally() throws Exception {\n }", "org.landxml.schema.landXML11.LanesDocument.Lanes addNewLanes();", "public static void main(String[] args)\n {\n SuperUser s = new SuperUser();\n\n s.CreateStore(\"Dhruv&bros.\",\"8923\");\n Store a = s.getSlist().getStores().get(0);\n s.CreateStoreAdmin(\"Dhruv\",\"8923\",a);\n s.CreateWarehouse(\"Punjabi&co\", \"240\");\n s.CreateWarehouseAdmin(\"RAwal\",\"Jaybalvin\",s.getWlist().getWarehouses().get(0));\n s.CreateWarehouse(\"daBset\", \"249\");\n s.CreateWarehouseAdmin(\"wa1\",\"qwerty\",s.getWlist().getWarehouses().get(1));\n s.CreateStore(\"daBest\",\"89\");\n a = s.getSlist().getStores().get(1);\n s.CreateStoreAdmin(\"Dhruv\",\"8923\",a);\n\n\n s.getSlist().getStores().get(0).setLinked(s.getWlist().getWarehouses().get(0));\n //Store a = s.getSlist().getStores().get(0);\n try {\n System.out.println(\"here\");\n s.getSlist().getStores().get(0).getDb().insert(\"phone>op\", new Product(\"oneplus\", \"2\", \"34000\", \"5\", \"6\", \"6\"));\n s.getSlist().getStores().get(0).getDb().insert(\"electronics>home>alexa\", new Product(\"alexa\", \"2\", \"34000\", \"5\", \"6\", \"6\"));\n s.SAlist.getStoreAdmins().get(0).setStore(s.getSlist().getStores().get(0));\n s.getSlist().getStores().get(1).getDb().insert(\"phone>op\", new Product(\"huwaie\", \"2\", \"34000\", \"5\", \"6\", \"6\"));\n s.getSlist().getStores().get(1).getDb().insert(\"electronics>home>assistant\", new Product(\"alexa\", \"2\", \"34000\", \"5\", \"6\", \"6\"));\n\n s.WAlist.getWarehouseAdmins().get(0).setWarehouse(s.Wlist.getWarehouses().get(0));\n s.Wlist.getWarehouses().get(0).getDb().insert(\"hello>to>the>other\",new Product(\"side\",\"23\",\"23\",\"23\",\"23\",\"32\"));\n s.Wlist.getWarehouses().get(0).getDb().insert(\"screens\",new Product(\"screen\",\"23\",\"23\",\"23\",\"23\",\"32\"));\n /*Product dk = s.getSlist().getStores().get(0).getDb().search(8932);\n System.out.println(dk.getName());*/\n s.Wlist.getWarehouses().get(1).getDb().insert(\"ca>u>hear>me\",new Product(\"alone\",\"23\",\"23\",\"23\",\"23\",\"32\"));\n s.Wlist.getWarehouses().get(1).getDb().insert(\"football>cosco\",new Product(\"big_football\",\"23\",\"23\",\"23\",\"23\",\"32\"));\n\n s.SerialiseList();\n ObjectOutputStream oStream = null;\n\n try {\n oStream = new ObjectOutputStream(new FileOutputStream(\"SuperUser\"+\".dat\"));\n oStream.writeObject(s);\n System.out.println(\"File saved\");\n }\n catch (Exception e)\n {\n System.out.println(e.getMessage());\n }\n finally {\n System.out.println(\"donr\");\n oStream.close();\n }\n\n }\n catch (Exception e)\n {\n e.printStackTrace();\n System.out.println(e.getMessage());\n }\n }", "public void save() {\n //write lift information to datastore\n LiftDataAccess lda = new LiftDataAccess();\n ArrayList<Long>newKeys = new ArrayList<Long>();\n for (Lift l : lift) {\n newKeys.add(lda.insert(l));\n }\n\n //write resort information to datastore\n liftKeys = newKeys;\n dao.update(this);\n }", "private void saveInitialGameLocation() {\n\n\t\tGAME_LIST = new ArrayList<gameLocation>();\n\n\t\tfor (int i = 0; i < NumGameLocation; i++) {\n\t\t\taddNewGame(getGameLocation(i));\n\t\t}\n\t}", "@GetMapping(\"/api/laptops\")\n public List<Laptop> findAll(){\n\n return laptopRepository.findAll();\n }", "private void LoadingDatabaseGameLocation() {\n\n\t\tCursor cursor = helper.getDataAll(GamelocationTableName);\n\n\t\t// id_counter = cursor.getCount();\n\n\t\tGAME_LIST.clear();\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_GAME_LCOATION_COLUMN);\n\t\t\tString Description = cursor\n\t\t\t\t\t.getString(DESCRIPTION_GAME_LCOATION_COLUMN);\n\t\t\tString isGameVisited = cursor.getString(GAME_IS_VISITED_COLUMN);\n\n\t\t\tGAME_LIST.add(new gameLocation(ID, Description,\n\t\t\t\t\tisUsed(isGameVisited)));\n\t\t\t\n\t\t\tLog.d(TAG, \"game ID : \"+ ID);\n\t\t\t\n\t\t} // travel to database result\n\n\t}", "public int addStorageplace (Storageplace pStorageplace){\r\n\t List<Storageplace> storageplaceList = getAll();\r\n\t boolean storageplaceExists = false;\r\n\t for(Storageplace storageplace: storageplaceList){\r\n\t if(storageplace.getStorageplaceName() == pStorageplace.getStorageplaceName()){\r\n\t \t storageplaceExists = true;\r\n\t break;\r\n\t }\r\n\t }\t\t\r\n\t if(!storageplaceExists){\r\n\t \t storageplaceList.add(pStorageplace);\r\n\t // Setup query\r\n\t String query = \"INSERT INTO storageplace(storageplace_name) VALUE(?);\";\r\n\t Connection conn = Database.connectMariaDb();\r\n\t try {\r\n\t\t\t\t// Setup statement\r\n\t\t\t\t PreparedStatement stmt = conn.prepareStatement(query);\r\n\t\t\t\t // Set values\r\n\t\t\t\tstmt.setString(1, pStorageplace.getStorageplaceName());\t\t\t\t\t\t\r\n\t\t\t\t// Execute statement\r\n\t\t\t\tstmt.executeUpdate();\t\t\t\t\r\n\t\t\t\t// Closing statement and connection\r\n\t\t\t\tstmt.close();\r\n\t\t\t\tDatabase.mariaDbClose();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tSystem.err.println(\"An SQL exception occured when trying to add a record to storageplace \" + e.getMessage());\r\n\t\t\t\treturn 0;\r\n\t\t\t}\t\t \r\n\t return 1;\r\n\t }\r\n\t return 0;\r\n\t }", "void loadStation() {\n\n // only do this if the station does not exist\n if (!stationExists) {\n\n station.setStatusCode(35); // open & unknown\n if (!\"\".equals(passkey)) { // ub02\n station.setPasskey(passkey); // ub02\n } // if (!\"\".equals(passkey)) // ub02\n\n if (dbg3) System.out.println(\"<br>loadStation: put station = \" + station);\n if (dbg4) System.out.println(\"<br>loadStation: put station = \" + station);\n try {\n station.put();\n } catch(Exception e) {\n System.err.println(\"loadStation: put station = \" + station);\n System.err.println(\"loadStation: put sql = \" + station.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"loadStation: sql = \" + station.getInsStr());\n\n //stationCount++;\n\n if (!\"\".equals(sfriGrid.getGridNo(\"\"))) {\n try {\n sfriGrid.put();\n } catch(Exception e) {\n System.err.println(\"loadStation: put sfriGrid = \" + sfriGrid);\n System.err.println(\"loadStation: put sql = \" + sfriGrid.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadStation: put sfriGrid = \" + sfriGrid);\n } // if (!\"\".equals(sfriGrid.getGridNo(\"\")))\n\n weatherIsLoaded = false;\n\n } // if (!stationExists)\n\n }", "public boolean checkTroopToPlanetMove(Troop aTroop){\r\n\t boolean found = false;\r\n\t int i = 0;\r\n\t while ((found == false) & (i < troopToPlanetMoves.size())){\r\n\t\t TroopToPlanetMovement tempMove = troopToPlanetMoves.get(i);\r\n\t\t if (tempMove.isThisTroop(aTroop)){\r\n\t\t\t found = true;\r\n\t\t }else{\r\n\t\t\t i++;\r\n\t\t }\r\n\t }\r\n\t return found;\r\n }", "@Override\n public void storeLiveEvents() {\n try {\n //Get today's date and convert to string\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd\");\n Date todayDate = new Date();\n String today = dateFormat.format(todayDate).replaceAll(\"/\", \"-\");\n\n //Retrieve live games json d1ata from APIFootball and convert to JSON array\n String data = httpTools.httpGetURL(\"https://apifootball.com/api/?action=get_events&from=\" + today + \"&to=\" + today + \"&match_live=1&APIkey=aec4fdc3c841ad7b08ac13242f6a6dfc229446b4408bf4a6cb2b7ebe2baef4cf\");\n JSONArray array = new JSONArray(data);\n\n //For every live match\n List<MatchStore> matchList = new ArrayList<>();\n for (int i = 0; i < array.length(); i++) {\n\n //Get the date from live game\n Date date;\n date = getDate(array, i);\n\n\n //Parse all goalscorers and store in a list\n List<Goalscorer> goalscorerList = new ArrayList<>();\n JSONArray goalscorerArray = array.getJSONObject(i).getJSONArray(\"goalscorer\");\n for (int y = 0; y < goalscorerArray.length(); y++) {\n goalscorerList.add(new Goalscorer(goalscorerArray.getJSONObject(y).getString(\"score\"),\n goalscorerArray.getJSONObject(y).getString(\"time\").substring(0, goalscorerArray.getJSONObject(y).getString(\"time\").length() - 1),\n goalscorerArray.getJSONObject(y).getString(\"away_scorer\"),\n goalscorerArray.getJSONObject(y).getString(\"home_scorer\")\n ));\n }\n\n //Home and Away lineup list declarations\n List<Player> startingHomeLineupList = new ArrayList<>();\n List<Player> substitutesHomeList = new ArrayList<>();\n List<Substitutions> substitutionsHomeList = new ArrayList<>();\n\n List<Player> startingAwayLineupList = new ArrayList<>();\n List<Player> substitutesAwayList = new ArrayList<>();\n List<Substitutions> substitutionsAwayList = new ArrayList<>();\n\n //Parse and store home team lineup\n JSONArray startingHomeLineupArray = array.getJSONObject(i).getJSONObject(\"lineup\").getJSONObject(\"home\").getJSONArray(\"starting_lineups\");\n for (int y = 0; y < startingHomeLineupArray.length(); y++) {\n startingHomeLineupList.add(new Player(startingHomeLineupArray.getJSONObject(y).getString(\"lineup_player\"),\n startingHomeLineupArray.getJSONObject(y).getString(\"lineup_number\"),\n startingHomeLineupArray.getJSONObject(y).getString(\"lineup_position\")));\n }\n\n //Parse and store away team lineup\n JSONArray startingAwayLineupArray = array.getJSONObject(i).getJSONObject(\"lineup\").getJSONObject(\"away\").getJSONArray(\"starting_lineups\");\n for (int y = 0; y < startingAwayLineupArray.length(); y++) {\n startingAwayLineupList.add(new Player(startingAwayLineupArray.getJSONObject(y).getString(\"lineup_player\"),\n startingAwayLineupArray.getJSONObject(y).getString(\"lineup_number\"),\n startingAwayLineupArray.getJSONObject(y).getString(\"lineup_position\")));\n }\n\n //Parse and store home team subs\n JSONArray subHomeLineupArray = array.getJSONObject(i).getJSONObject(\"lineup\").getJSONObject(\"home\").getJSONArray(\"substitutes\");\n for (int y = 0; y < subHomeLineupArray.length(); y++) {\n substitutesHomeList.add(new Player(subHomeLineupArray.getJSONObject(y).getString(\"lineup_player\"),\n subHomeLineupArray.getJSONObject(y).getString(\"lineup_number\"),\n subHomeLineupArray.getJSONObject(y).getString(\"lineup_position\")));\n }\n\n //Parse and store away team subs\n JSONArray subAwayLineupArray = array.getJSONObject(i).getJSONObject(\"lineup\").getJSONObject(\"away\").getJSONArray(\"substitutes\");\n for (int y = 0; y < subAwayLineupArray.length(); y++) {\n substitutesAwayList.add(new Player(subAwayLineupArray.getJSONObject(y).getString(\"lineup_player\"),\n subAwayLineupArray.getJSONObject(y).getString(\"lineup_number\"),\n subAwayLineupArray.getJSONObject(y).getString(\"lineup_position\")));\n }\n\n //Parse and store home team completed subs\n JSONArray subCompletedHomeArray = array.getJSONObject(i).getJSONObject(\"lineup\").getJSONObject(\"home\").getJSONArray(\"substitutions\");\n for (int y = 0; y < subCompletedHomeArray.length(); y++) {\n substitutionsHomeList.add(new Substitutions(subCompletedHomeArray.getJSONObject(y).getString(\"lineup_player\"),\n subCompletedHomeArray.getJSONObject(y).getString(\"lineup_time\")));\n }\n\n //Parse and store away team completed subs\n JSONArray subCompletedAwayArray = array.getJSONObject(i).getJSONObject(\"lineup\").getJSONObject(\"home\").getJSONArray(\"substitutions\");\n for (int y = 0; y < subCompletedAwayArray.length(); y++) {\n substitutionsAwayList.add(new Substitutions(subCompletedAwayArray.getJSONObject(y).getString(\"lineup_player\"),\n subCompletedAwayArray.getJSONObject(y).getString(\"lineup_time\")));\n }\n\n //Complete home and away team lineups\n Lineup homeLineup = new Lineup(startingHomeLineupList, substitutesHomeList, substitutionsHomeList);\n Lineup awayLineup = new Lineup(startingAwayLineupList, substitutesAwayList, substitutionsAwayList);\n\n //Add live match data to match list\n matchList.add(new MatchStore(Integer.parseInt(array.getJSONObject(i).getString(\"match_id\")),\n Integer.parseInt(array.getJSONObject(i).getString(\"country_id\")),\n Integer.parseInt(array.getJSONObject(i).getString(\"league_id\")),\n date,\n array.getJSONObject(i).getString(\"match_status\"),\n array.getJSONObject(i).getString(\"match_hometeam_name\"),\n array.getJSONObject(i).getString(\"match_awayteam_name\"),\n array.getJSONObject(i).getString(\"match_hometeam_score\"),\n array.getJSONObject(i).getString(\"match_awayteam_score\"),\n array.getJSONObject(i).getString(\"match_hometeam_halftime_score\"),\n array.getJSONObject(i).getString(\"match_awayteam_halftime_score\"),\n array.getJSONObject(i).getString(\"match_hometeam_extra_score\"),\n array.getJSONObject(i).getString(\"match_awayteam_extra_score\"),\n array.getJSONObject(i).getString(\"match_hometeam_penalty_score\"),\n array.getJSONObject(i).getString(\"match_awayteam_penalty_score\"),\n array.getJSONObject(i).getString(\"match_live\")\n ));\n }\n //Store live match updated data\n dataService.storeKeyEventsInUpdate(matchList);\n for (MatchStore m:matchList){\n gameDAO.storeLiveEvents(m);\n }\n\n } catch (JSONException j) {\n j.printStackTrace();\n }\n catch (Exception e){\n e.printStackTrace();\n }\n }", "public boolean addToDB() {\n boolean success = false;\n // try to add the leaf to the database\n type = API.getTypes().get(\"geneleaf\");\n try {\n db.connect();\n\n db.insert(\"LSDB for \" + gene.getHGNC() + \":\" + value + \" of type \" + node.getName(), \"INSERT INTO wave#build#_leaf (name, value, refnodeid, timestamp)\"\n + \"VALUES ('\" + name + \"','\" + value + \"','\" + node.getId() + \"', NOW())\");\n\n db.insert(\"Gene Leaf for LSDB \" + value, \"INSERT INTO wave#build#_association (a, b, reftypeid) VALUES(\" + gene.getId() + \",(SELECT @@identity), \" + type.getId() + \")\");\n\n success = true;\n } catch (Exception e) {\n System.out.println(\"[LSDB][DB] LSDB adding failed\\n\\t\" + e.toString());\n success = false;\n } finally {\n // System.out.println(\"[LSDB][DB] Added LSDB with value \" + value);\n db.close();\n return success;\n }\n }", "void addLaptop(ArrayList list){\n System.out.println(\"Enter ID\");\r\n int id = sc.nextInt();\r\n System.out.println(\"Enter ram size\");\r\n int ram = sc.nextInt();\r\n System.out.println(\"Enter HDD size\");\r\n int hdd = sc.nextInt();\r\n sc.nextLine();\r\n System.out.println(\"Enter brand name\");\r\n String brand = sc.nextLine();\r\n \r\n \r\n int idVal = 1;\r\n for (Object obj : list) {\r\n //Checking for valid id\r\n if(((Laptop)obj).getId() == id){\r\n idVal = 0;\r\n break;\r\n }\r\n }\r\n if (idVal == 1) {\r\n //adding a new element/row in the existing list\r\n list.add(new Laptop(id, ram, hdd, brand));\r\n System.out.println(\"Element added successfully!\");\r\n } else {\r\n System.out.println(\"Entered id already exist!\");\r\n }\r\n\r\n }", "private void save(JTour jTour){\n if(jTour.save()>0){\n for(JPlace jPlace : jTour.getPlaces()){\n if(jPlace.save() > 0){\n //u principu bi trebala biti samo jedna lokacija u placu\n jPlace.getLocations().get(0).save();\n }\n }\n }\n\n }", "public void Grasshopper(){\n this.hops = 2;\n this.hopLim = 3;\n }", "private void loadPortals(List<String> list) {\n\t\tList<String> currentPortals = m_PortalList.getItems();\r\n\t\tfor(String portal : list){\r\n\t\t\tif(!currentPortals.contains(portal)){\r\n\t\t\t\t//Load the corresponding datasets from the database into the categorizer and into the tableview\r\n\t\t\t\ttry {\r\n\t\t\t\t\tm_Categorizer.loadPortal(portal);\r\n\t\t\t\t\tm_data.addAll(m_Categorizer.Datasets());\r\n\t\t\t\t} catch (StorageException e) {\r\n\t\t\t\t\tAlert error = new Alert(AlertType.ERROR, \"Cannot connect to database!\");\r\n\t\t\t\t\terror.showAndWait();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t//Add the portal to the listview\r\n\t\t\t\tcurrentPortals.add(portal);\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Reset label for number of datasets\r\n\t\tm_numDatasetsLabel.setText(m_Categorizer.Datasets().size() + \" Datasets loaded.\");\r\n\t\t//Refresh statistics window\r\n\t\tm_StatisticsWindow.refresh();\r\n\t\t//update filter choicebox\r\n\t\tupdateFilterChoiceBox();\r\n\t}", "void checkPermanentStorageData() {\n if (!isAlive()) {\n Log.e(LOG_TAG, \"checkPermanentStorageData : the session is not anymore active\");\n return;\n }\n\n // When the data are extracted from a persistent storage,\n // some fields are not retrieved :\n // They are used to retrieve some data\n // so add the missing links.\n Collection<RoomSummary> summaries = mStore.getSummaries();\n for (RoomSummary summary : summaries) {\n if (null != summary.getLatestRoomState()) {\n summary.getLatestRoomState().setDataHandler(this);\n }\n }\n }", "private static void parseLawsAndSaveToDB() throws Exception {\n Iterable<RadaSessionDay> days = radaSessionDayRepository.findWithUrl();\n for (RadaSessionDay day : days){\n System.out.print(day.getRadaSession().getSklikanya()\n +\"\\t\" + day.getRadaSession().getsName()\n + \"\\t\" + day.getMonth()\n + \"\\t\" + day.getDay()\n + \"\\t\" + day.getUrl()\n );\n List<Law> laws = parser.loadLawsForDay(day);\n System.out.println(\"\\t\" + laws.size());\n if (laws.isEmpty())\n continue;\n try {\n lawRepository.save(laws);\n }catch (Exception ex){\n int f =5;\n }\n //radaSessionDayRepository.save(day);\n }\n }", "private void loadParkingLots() {\n ParkingLot metrotown = new ParkingLot(\"Metrotown\", 4);\n ParkingLot pacificcenter = new ParkingLot(\"PacificCenter\", 5);\n\n for (int i = 0; i < 3; i++) {\n metrotown.addParkingSpot(new ParkingSpot(\"M\" + i, \"medium\", 5));\n pacificcenter.addParkingSpot(new ParkingSpot(\"PC\" + i, \"large\", 4));\n }\n\n parkinglots.add(metrotown);\n parkinglots.add(pacificcenter);\n }", "void propagateStoreToLoads(LoadsInfo loadsInfo, InstructionList instructionList) {\n\t\tloadsInfo.correspondingLoads.forEach(\n\t\t\t\tinstructionHandle -> instructionHandle.setInstruction(loadsInfo.stored.getInstruction().copy()));\n\n// delete store instruction\n\t\ttry {\n\t\t\t//remove store\n\t\t\tinstructionList.delete(loadsInfo.storeInstruction);\n\n\t\t\t//remove push\n\t\t\tinstructionList.delete(loadsInfo.stored);\n\t\t} catch (TargetLostException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void storeSnpLocation(Map<String, Set<Location>> snpToLocations) {\n for (String snpRsId : snpToLocations.keySet()) {\n\n Set<Location> snpLocationsFromMapping = snpToLocations.get(snpRsId);\n\n // Check if the SNP exists\n SingleNucleotidePolymorphism snpInDatabase =\n singleNucleotidePolymorphismRepository.findByRsId(snpRsId);\n if(snpInDatabase == null){\n snpInDatabase =\n singleNucleotidePolymorphismQueryService.findByRsIdIgnoreCase(snpRsId);\n }\n\n if (snpInDatabase != null) {\n\n // Store all new location objects\n Collection<Location> newSnpLocations = new ArrayList<>();\n\n for (Location snpLocationFromMapping : snpLocationsFromMapping) {\n\n String chromosomeNameFromMapping = snpLocationFromMapping.getChromosomeName();\n if (chromosomeNameFromMapping != null) {\n chromosomeNameFromMapping = chromosomeNameFromMapping.trim();\n }\n\n Integer chromosomePositionFromMapping = snpLocationFromMapping.getChromosomePosition();\n// if (chromosomePositionFromMapping != null) {\n// chromosomePositionFromMapping = chromosomePositionFromMapping.trim();\n// }\n\n Region regionFromMapping = snpLocationFromMapping.getRegion();\n String regionNameFromMapping = null;\n if (regionFromMapping != null) {\n if (regionFromMapping.getName() != null) {\n regionNameFromMapping = regionFromMapping.getName().trim();\n }\n }\n\n // Check if location already exists\n Location existingLocation =\n locationRepository.findByChromosomeNameAndChromosomePositionAndRegionName(\n chromosomeNameFromMapping,\n chromosomePositionFromMapping,\n regionNameFromMapping);\n\n\n if (existingLocation != null) {\n newSnpLocations.add(existingLocation);\n }\n // Create new location\n else {\n Location newLocation = locationCreationService.createLocation(chromosomeNameFromMapping,\n chromosomePositionFromMapping,\n regionNameFromMapping);\n\n newSnpLocations.add(newLocation);\n }\n }\n\n // If we have new locations then link to snp and save\n if (newSnpLocations.size() > 0) {\n\n // Set new location details\n snpInDatabase.setLocations(newSnpLocations);\n // Update the last update date\n snpInDatabase.setLastUpdateDate(new Date());\n singleNucleotidePolymorphismRepository.save(snpInDatabase);\n }\n else {getLog().warn(\"No new locations to add to \" + snpRsId);}\n\n }\n\n // SNP doesn't exist, this should be extremely rare as SNP value is a copy\n // of the variant entered by the curator which\n // by the time mapping is started should already have been saved\n else {\n // TODO WHAT WILL HAPPEN FOR MERGED SNPS\n getLog().error(\"Adding location for SNP not found in database, RS_ID:\" + snpRsId);\n throw new RuntimeException(\"Adding location for SNP not found in database, RS_ID: \" + snpRsId);\n\n }\n\n }\n }", "public void addETLHops(ETLHops etlHops) {\r\n\t\tfor (ETLHop etlHop: etlHops) {\r\n\t\t\taddETLHop(new ETLHop(etlHop));\r\n\t\t}\r\n\t}", "org.landxml.schema.landXML11.LanesDocument.Lanes insertNewLanes(int i);", "public synchronized static List<Store> loadStores(Connection c) throws SQLException {\r\n //list of shop\r\n List<Store> listShop = new ArrayList<>();\r\n Statement myStmt = c.createStatement();\r\n //The query which selects all the shops.\r\n ResultSet myRs = myStmt.executeQuery(\"select * from magasin\");\r\n //Loop which add a shop to the list.\r\n while (myRs.next()) {\r\n int id = myRs.getInt(\"idMagasin\");\r\n String designation = myRs.getString(\"designation\");\r\n String description = myRs.getString(\"description\");\r\n int loyer = myRs.getInt(\"loyer\");\r\n int surface = myRs.getInt(\"superficie\");\r\n int niveau = myRs.getInt(\"niveau\");\r\n String localisation = myRs.getString(\"localisation\");\r\n //liste type \r\n Statement myStmt2 = c.createStatement();\r\n //The query which selects all the shops.\r\n ResultSet myRs2 = myStmt2.executeQuery(\"SELECT designation,idType from magasin_has_type,type where magasin_has_type.type_idType=type.idType and magasin_has_type.magasin_idMagasin=\" + id);\r\n List<TypeStore> list = new ArrayList<>();\r\n while (myRs2.next()) {\r\n int idtype = myRs2.getInt(\"idType\");\r\n String designationType = myRs2.getString(\"designation\");\r\n TypeStore T = new TypeStore(idtype, designationType);\r\n list.add(T);\r\n }\r\n Store M = new Store(id, designation, description, loyer, surface, niveau, localisation, list);\r\n\r\n listShop.add(M);\r\n }\r\n myStmt.close();\r\n return listShop;\r\n\r\n }", "public void givePlaceInList() {\r\n\t\tmyPlaceInList = allyTracker.getPlaceInList();\r\n\t}", "public void loadDB(){\n ////////////// Code that builds stores with their items lists and builds carts /////////////////////////////////////////////////////////////\n ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n sampleData = new HashMap<>(); //Make 1 hashmap per store (each has that store's items)\n //storeB_Data = new HashMap<>(); //Hashmap that has items of store B\n\n //Add new item to HashMap of items\n sampleData.put(\"026229211706\", new InventoryItem(1.99, \"Notebook\", \"http://www.ryman.co.uk/media/catalog/product/0/3/0399030007.jpg\", \"Others\",\"026229211706\"));\n sampleData.put(\"096619756803\", new InventoryItem(2.99, \"Water Bottle\", \"http://www.ryman.co.uk/media/catalog/product/0/3/0399030007.jpg\", \"Others\",\"096619756803\"));\n sampleData.put(\"9781491962299\", new InventoryItem(4.99, \"Machine Learning\", \"http://www.ryman.co.uk/media/catalog/product/0/3/0399030007.jpg\", \"Others\",\"9781491962299\"));\n sampleData.put(\"1297432524354\", new InventoryItem(4.99, \"Item\", \"http://www.ryman.co.uk/media/catalog/product/0/3/0399030007.jpg\", \"Others\",\"1297432524354\"));\n sampleData.put(\"857263004111\", new InventoryItem(79.99, \"Trendy Jacket\", \"http://www.ryman.co.uk/media/catalog/product/0/3/0399030007.jpg\", \"Others\",\"857263004111\"));\n\n listOfAllItems.add(new CartItem(3.99,\"Toy\",\"http://www.pngmart.com/files/4/Plush-Toy-PNG-Transparent-Image.png\",\"Others\",\"1\",1));\n listOfAllItems.add(new CartItem(3.99,\"Toy\",\"http://www.pngmart.com/files/4/Plush-Toy-PNG-Transparent-Image.png\",\"Others\",\"1\",1));\n listOfAllItems.add(new CartItem(3.99,\"Toy\",\"http://www.pngmart.com/files/4/Plush-Toy-PNG-Transparent-Image.png\",\"Others\",\"1\",1));\n listOfAllItems.add(new CartItem(3.99,\"Toy\",\"http://www.pngmart.com/files/4/Plush-Toy-PNG-Transparent-Image.png\",\"Others\",\"1\",1));\n listOfAllItems.add(new CartItem(3.99,\"Toy\",\"http://www.pngmart.com/files/4/Plush-Toy-PNG-Transparent-Image.png\",\"Others\",\"1\",1));\n listOfAllItems.add(new CartItem(49.99,\"Hands On Machine Learning\",\"https://m.media-amazon.com/images/S/aplus-media/vc/11714e04-b1a6-439d-9482-87e757822f94.jpg\",\"Others\",\"1\",1));\n\n //This data will be populated into instance objects on each scan and \"add to cart\" /////////////////////////////\n //LAST INPUT (in this case, 1) IS THE QUANTITY. SHOULD BE SET TO WHATEVER IS ASSIGNED FROM THE DIALOGUE BOX\n //CartItem notebook = new CartItem(sampleData.get(\"026229212703\").getPrice(), sampleData.get(\"026229212703\").getName(), sampleData.get(\"026229212703\").getImage(), sampleData.get(\"026229212703\").getSalesTaxGroup(), sampleData.get(\"026229212703\").getItemKey(), 1);\n //CartItem water = new CartItem(sampleData.get(\"096619756803\").getPrice(), sampleData.get(\"096619756803\").getName(), sampleData.get(\"096619756803\").getImage(), sampleData.get(\"096619756803\").getSalesTaxGroup(), sampleData.get(\"096619756803\").getItemKey(), 1);\n //CartItem mints = new CartItem(sampleData.get(\"030242940017\").getPrice(), sampleData.get(\"030242940017\").getName(), sampleData.get(\"030242940017\").getImage(), sampleData.get(\"030242940017\").getSalesTaxGroup(), sampleData.get(\"030242940017\").getItemKey(), 1);\n ////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n //CartListOfItems cart = new CartListOfItems();\n //cart.addToCart(notebook);\n //cart.addToCart(toyCar);\n }", "public synchronized static List<Store> loadStores(Connection c, String profil) throws SQLException {\r\n List<Store> filteredShopList = new ArrayList<>();\r\n //The query which selects all the shops\r\n Statement myStmt = c.createStatement();\r\n //The query which selects all the shops matching the profile\r\n ResultSet myRs = myStmt.executeQuery(\"select magasin.* from magasin, magasin_has_type, type where magasin.idMagasin = magasin_has_type.magasin_idMagasin and magasin_has_type.type_idtype = type.idType and type.designation LIKE \" + profil);\r\n //Loop which adds a shop to the list.\r\n while (myRs.next()) {\r\n int id = myRs.getInt(\"idMagasin\");\r\n String designation = myRs.getString(\"designation\");\r\n String description = myRs.getString(\"description\");\r\n int rent = myRs.getInt(\"loyer\");\r\n int surface = myRs.getInt(\"superficie\");\r\n int floor = myRs.getInt(\"niveau\");\r\n String localization = myRs.getString(\"localisation\");\r\n //liste type \r\n Statement myStmt2 = c.createStatement();\r\n //The query which selects all the shops.\r\n ResultSet myRs2 = myStmt2.executeQuery(\"SELECT designation,idType from magasin_has_type,type where magasin_has_type.type_idType=type.idType and magasin_has_type.magasin_idMagasin=\" + id);\r\n List<TypeStore> list = new ArrayList<>();\r\n while (myRs2.next()) {\r\n int idtype = myRs2.getInt(\"idType\");\r\n String designationType = myRs2.getString(\"designation\");\r\n TypeStore T = new TypeStore(idtype, designationType);\r\n list.add(T);\r\n }\r\n Store s = new Store(id, designation, description, rent, surface, floor, localization, list);\r\n filteredShopList.add(s);\r\n }\r\n myStmt.close();\r\n return filteredShopList;\r\n }", "private void store()\tthrows DAOSysException\t\t{\n\t\tif (_debug) System.out.println(\"AL:store()\");\n\t\tAnnualLeaseDAO dao = null;\n\t\ttry\t{\n\t\t\tdao = getDAO();\n\t\t\tdao.dbStore(getModel());\n\t\t} catch (Exception ex)\t{\n\t\t\tthrow new DAOSysException(ex.getMessage());\n\t\t}\n\t}", "@Override\n public void onClick(View view) {\n String newShopName = etNewname.getText().toString();\n\n\n if (newShopName.isEmpty())\n {\n\n Toast.makeText(getActivity(), \"Please enter a shop name\", Toast.LENGTH_SHORT).show();\n }\n else\n {\n Log.d(TAG, \"Set up the new value for LatestShop in SharedPreferences\");\n Log.d(TAG, \"No need to save or delete anything but need to add to FullShopsList\");\n\n SharedPreferences.Editor myEditor = myPreferences.edit();\n\n currentShop = myPreferences.getString(\"LatestShopList\", \"Default\") ;\n Log.d(TAG, \"Changing currentShop from \" + currentShop + \"to \" + newShopName);\n myEditor.putString(\"LatestShopList\", newShopName);\n\n\n\n\n List<ShopItem> newListOfData = new ArrayList<ShopItem>();\n List<String> shopsHistoryList = new ArrayList<String>();\n shopsHistoryList.add(currentShop);\n Set<String> set = new HashSet<String>();\n Set<String> getset = new HashSet<String>();\n set.addAll(shopsHistoryList);\n\n // add the old shop to the FullShopsList\n\n\n\n if (myPreferences.contains(\"FullShopsList\"))\n {\n Log.d(TAG, \"In newShopFragment get the current set stored for FullShopsList\");\n getset = myPreferences.getStringSet(\"FullShopsList\", set) ;\n Log.d(TAG, \"In newShopFragment saving the old shop to the Shops History = \" + currentShop);\n ArrayList<String> shopList = new ArrayList<>();\n shopList.addAll(getset);\n\n Log.d(TAG, \"In newShopFragment - the current History of shops is :-\");\n for(String s: shopList)\n {\n Log.d(TAG, \"Shop History Item - \" + s);\n\n }\n\n\n shopList.add(currentShop);\n set.clear();\n set.addAll(shopList);\n myEditor.putStringSet(\"FullShopsList\", set);\n myEditor.commit();\n\n\n\n }\n else\n {\n // history does not exist\n myEditor.putStringSet(\"FullShopsList\", set);\n //currentShop = \"Default\";\n Log.d(TAG, \"In saveTheNewShopData - Current shop is not in myPreferences so creating FullShopsList \");\n myEditor.commit();\n }\n\n\n\n\n Intent listActivityIntent = new Intent(getActivity(), ListActivity.class);\n listActivityIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(listActivityIntent);\n\n\n }\n\n\n }", "public Boolean CreateStoreAdmin(String a, String b, Store s) {\n for (int i = 0 ; i <= SAlist.getStoreAdmins().size() -1 ; i++)\n {\n if (SAlist.getStoreAdmins().get(i).getID().equals(a))\n {\n System.out.println(\"ID alreday exists\");\n return false;\n }\n }\n StoreAdmin admin = new StoreAdmin(a, b, s);\n SAlist.getStoreAdmins().add(admin);\n try {\n SerialiseList();\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n return true;\n }", "private void saveVslaInformation() {\n if (!databaseHandler.checkIfGroupExists(vslaName)) { // Group Doesn't exist in the database\n\n VslaInfo vslaInfo = new VslaInfo();\n vslaInfo.setGroupName(vslaName);\n vslaInfo.setMemberName(representativeName);\n vslaInfo.setMemberPost(representativePost);\n vslaInfo.setMemberPhoneNumber(repPhoneNumber);\n vslaInfo.setGroupAccountNumber(grpBankAccount);\n vslaInfo.setPhysicalAddress(physAddress);\n vslaInfo.setRegionName(regionName);\n vslaInfo.setLocationCordinates(locCoordinates);\n vslaInfo.setIssuedPhoneNumber(grpPhoneNumber);\n vslaInfo.setSupportType(grpSupportType);\n vslaInfo.setIsDataSent(\"0\");\n vslaInfo.setNumberOfCycles(numberOfCycles);\n\n // get the Id of the Group just added to the database\n currentDatabaseId = databaseHandler.addGroupData(vslaInfo);\n flashMessage(\"Data Saved Successfully\");\n\n } else {\n flashMessage(\"Group Already Exists\");\n }\n }", "public static void main(String[] args) {\n int numberOfLevels = 5;\n int numberOfRows = 10;\n int spotsPerRow = 20;\n ParkingLot parkingLot = new ParkingLot(numberOfLevels, numberOfRows, spotsPerRow);\n\n System.out.println(\"\\n----------------------< PARKING >----------------------\\n\");\n\n // Park some vehicles\n List<Vehicle> motorcycles = new ArrayList<>();\n List<Vehicle> cars = new ArrayList<>();\n List<Vehicle> buses = new ArrayList<>();\n for (int i = 1; i <= 100; i++) {\n Vehicle bus = new Bus();\n buses.add(bus);\n if (parkingLot.parkVehicle(bus)) {\n System.out.print(\"Bus parking successful \");\n }\n }\n for (int i = 1; i <= 250; i++) {\n Vehicle motorCycle = new MotorCycle();\n motorcycles.add(motorCycle);\n if (parkingLot.parkVehicle(motorCycle)) {\n System.out.print(\"Motorcycle parking successful \");\n }\n Vehicle car = new Car();\n cars.add(car);\n if (parkingLot.parkVehicle(car)) {\n System.out.print(\"Car parking successful \");\n }\n }\n\n System.out.println(\"\\n\");\n\n parkingLot.print();\n // Get data for all the levels\n for (int i = 0; i < numberOfLevels; i++) {\n Level level = parkingLot.getLevel(i);\n System.out.println(\"Available spots for Level - \" + i + \": \" + level.getAvailableSpots());\n }\n\n System.out.println(\"\\n----------------------< UNPARKING >----------------------\\n\");\n\n // Unpark some vehicles\n for (int i = 1; i <= 100; i++) {\n Vehicle motorCycle = motorcycles.get(i - 1);\n parkingLot.unparkVehicle(motorCycle);\n Vehicle car = cars.get(i - 1);\n parkingLot.unparkVehicle(car);\n Vehicle bus = buses.get(i - 1);\n parkingLot.unparkVehicle(bus);\n }\n\n parkingLot.print();\n // Get data for all the levels\n for (int i = 0; i < numberOfLevels; i++) {\n Level level = parkingLot.getLevel(i);\n System.out.println(\"Available spots for Level - \" + i + \": \" + level.getAvailableSpots());\n }\n }", "public boolean addOrUpdateHotel(String name, String ip, String port, String capacity){\n boolean result = false;\n try {\n Hotel hotel = new Hotel();\n hotel.setName(name);\n hotel.setIp(ip);\n hotel.setPort(Integer.parseInt(port));\n hotel.setCapacity(Integer.parseInt(capacity));\n result = databaseManager.addOrUpdateHotel(hotel);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return result;\n }", "public void loadHotels();", "Long addRouteStore(RouteStore route_store);", "private void loadShip() {\n cargo.add(new Water());\n cargo.add(new Water());\n cargo.add(new Water());\n cargo.add(new Furs());\n cargo.add(new Ore());\n cargo.add(new Food());\n numOfGoods = cargo.size();\n }", "private static void randomizedEntry() {\r\n\t\tfor (int i = 0; i < shops.length; i++) {\r\n\t\t\tshops[i] = new Shop();\r\n\t\t}\r\n\t}", "boolean hasCreateStore();", "private boolean putLinkInTopology(Link tapLink) {\n LOG.info(\"Creating tapi node in TAPI topology context\");\n InstanceIdentifier<Topology> topoIID = InstanceIdentifier.builder(Context.class)\n .augmentation(Context1.class).child(TopologyContext.class)\n .child(Topology.class, new TopologyKey(tapiTopoUuid))\n .build();\n\n Topology topology = new TopologyBuilder().setUuid(tapiTopoUuid)\n .setLink(Map.of(tapLink.key(), tapLink)).build();\n\n // merge in datastore\n this.networkTransactionService.merge(LogicalDatastoreType.OPERATIONAL, topoIID,\n topology);\n try {\n this.networkTransactionService.commit().get();\n\n } catch (InterruptedException | ExecutionException e) {\n LOG.error(\"Error populating TAPI topology: \", e);\n return false;\n }\n LOG.info(\"TAPI Link added succesfully.\");\n return true;\n }", "private void assertLCVolLopped(String id) \n\t{\n\t solrFldMapTest.assertSolrFldValue(testFilePath, id, fldName, lcLoppedShelfkey);\n\t}", "private void storeTrip(Player p){\r\n\t\tSystem.out.println(\"Welcome to the store!\");\r\n\t\tSystem.out.println(\"Just a reminder, you have $\" + p.getMoney() + \" to spend!\");\r\n\t\tSystem.out.println(\"Please Select An Option: \");\r\n\t\tSystem.out.println(\"1. Buy Food\");\r\n\t\tSystem.out.println(\"2. Buy Toys\");\r\n\t\tSystem.out.println(\"3. Leave the store\");\r\n\t\tArrayList<Toy> storetoys = store.getToys();\r\n\t\tArrayList<Food> storefood = store.getFoods();\r\n\t\tint[] toyamounts = store.getToyamounts();\r\n\t\tint[] foodamounts = store.getFoodamounts();\r\n\t\tint buyoption; //The buying option\r\n\t\tint c; //Counter\r\n\r\n\t\tint selectedoption = getNumber(1, 3);\r\n\t\tswitch(selectedoption){\r\n\t\t//Buy food\r\n\t\tcase 1:\r\n\t\t\tc = 1;\r\n\t\t\tfor(Food f : storefood){\r\n\t\t\t\tSystem.out.println(c + \". \" + f.getName() + \"\\nPrice: $\" + f.getValue() + \" Stock: \" + foodamounts[c-1]);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tc++;\r\n\t\t\t}\r\n\t\t\tbuyoption = getNumber(1, storefood.size());\r\n\t\t\tFood selectedfood = storefood.get(buyoption -1);\r\n\t\t\tif(p.getMoney() > selectedfood.getValue() && foodamounts[buyoption-1] > 0){\r\n\t\t\t\tp.setMoney(p.getMoney() - selectedfood.getValue());\r\n\t\t\t\tfoodamounts[buyoption -1]--; //Take one away, as it has been sold.\r\n\t\t\t\tp.addFood(selectedfood);\r\n\t\t\t\tstore.setFoodamounts(foodamounts);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\t\t//Buy toys\r\n\t\tcase 2:\r\n\t\t\tc = 1;\r\n\t\t\tfor(Toy t : storetoys){\r\n\t\t\t\tSystem.out.println(c + \". \" + t.getName() + \"\\nPrice: $\" + t.getPrice() + \" Stock: \" + toyamounts[c-1]);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tc++;\r\n\t\t\t}\r\n\t\t\tbuyoption = getNumber(1, storetoys.size());\r\n\t\t\tToy selectedtoy = storetoys.get(buyoption -1);\r\n\t\t\tif(p.getMoney() > selectedtoy.getPrice() && toyamounts[buyoption-1] > 0){\r\n\t\t\t\tp.setMoney(p.getMoney() - selectedtoy.getPrice());\r\n\t\t\t\ttoyamounts[buyoption -1]--; //Take one away, as it has been sold.\r\n\t\t\t\tp.addToy(selectedtoy);\r\n\t\t\t\tstore.setToyamounts(toyamounts);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"\\n\\n\\n\\n\\n\\nError. Either the store was out of stock for the selected product or the player was out of money.\");\r\n\t\t\t}\r\n\t\tcase 3:\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"ERROR\");\r\n\t\t}\r\n\t}", "private void createNewStore(String storeName, Item item) {\n Store storeObj = new Store(storeName, null);\n item.setItemStoreId(storeObj.getStoreId());\n List<Item> itemList = new ArrayList<>();\n itemList.add(item);\n storeObj.setItems(itemList);\n storeList.add(storeObj);\n }", "boolean hasPokeStorage();", "public static boolean checkLaptop(Criteria criteria) {\r\n\t\tif (criteria.containsKey(\"MEMORY_ROM\")) {\r\n\t\t\tif (Integer.parseInt(criteria.getValue(\"MEMORY_ROM\").toString()) <= 0\r\n\t\t\t\t\t|| Integer.parseInt(criteria.getValue(\"MEMORY_ROM\").toString()) >= 50000) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (criteria.containsKey(\"SYSTEM_MEMORY\")) {\r\n\t\t\tif (Integer.parseInt(criteria.getValue(\"SYSTEM_MEMORY\").toString()) <= 0\r\n\t\t\t\t\t|| Integer.parseInt(criteria.getValue(\"SYSTEM_MEMORY\").toString()) >= 10000) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (criteria.containsKey(\"DISPLAY_INCHS\")) {\r\n\t\t\tif (Integer.parseInt(criteria.getValue(\"DISPLAY_INCHS\").toString()) <= 0\r\n\t\t\t\t\t|| Integer.parseInt(criteria.getValue(\"DISPLAY_INCHS\").toString()) >= 100) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (criteria.containsKey(\"CPU\")) {\r\n\t\t\tif (Double.parseDouble(criteria.getValue(\"CPU\").toString()) <= 0\r\n\t\t\t\t\t|| Double.parseDouble(criteria.getValue(\"CPU\").toString()) >= 10) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (criteria.containsKey(\"BATTERY_CAPACITY\")) {\r\n\t\t\tif (Double.parseDouble(criteria.getValue(\"BATTERY_CAPACITY\").toString()) <= 0\r\n\t\t\t\t\t|| Double.parseDouble(criteria.getValue(\"BATTERY_CAPACITY\").toString()) >= 20000) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "public void addDefaultWorkouts() {\n DatabaseHelper databaseHelper = new DatabaseHelper(context);\n for (int i = 0; i < builtIns.length; i++) {\n if (builtIns[i].getDurations().length == builtIns[i].getDurations().length) {\n if (databaseHelper.insertWorkout(builtIns[i].getName())) {\n databaseHelper.fillWorkout(builtIns[i].getName(),\n builtIns[i].getActivities(),\n builtIns[i].getDurations());\n }\n }\n }\n }", "public String addPromotionShop() {\n\t\tList<PromotionShopMap> lstCheckPromotionShopMap = new ArrayList<PromotionShopMap>();\n\t\tList<PromotionShopJoin> lstCheckPromotionShopJoin = new ArrayList<PromotionShopJoin>();\n\t\tactionStartTime = new Date();\n\t\tresetToken(result);\n\t\tresult.put(ERROR, true);\n\t\tif (promotionId == null || promotionId < 1 || lstQtt == null || lstQtt.size() == 0 || lstId == null || lstId.size() == 0 || lstId.size() != lstQtt.size()) {\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_DATA_CORRECT));\n\t\t\treturn JSON;\n\t\t}\n\t\ttry {\n\t\t\tstaff = getStaffByCurrentUser();\n\t\t\tif (staff == null || staff.getShop() == null || staff.getStaffType() == null || currentUser == null || currentUser.getShopRoot() == null) {\n\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_PERMISSION, \"\"));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tif (shopId == null || shopId == 0) {\n\t\t\t\tshopId = currentUser.getShopRoot().getShopId();\n\t\t\t}\n\t\t\t// kiem tra don vi, don vi con da thuoc CTKM\n\t\t\tList<PromotionShopVO> lstTmp = promotionProgramMgr.getListShopInPromotion(promotionId, lstId, true);\n\t\t\tif (lstTmp != null && lstTmp.size() > 0) {\n\t\t\t\tString msg = \"\";\n\t\t\t\tfor (PromotionShopVO vo : lstTmp) {\n\t\t\t\t\tmsg += (\", \" + vo.getShopCode());\n\t\t\t\t}\n\t\t\t\tmsg = msg.replaceFirst(\", \", \"\");\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.program.promotion.shop.map.exists\", msg));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tlstTmp = promotionProgramMgr.getListShopInPromotionShopJoin(promotionId, lstId, true);\n\t\t\tif (lstTmp != null && lstTmp.size() > 0) {\n\t\t\t\tString msg = \"\";\n\t\t\t\tfor (PromotionShopVO vo : lstTmp) {\n\t\t\t\t\tmsg += (\", \" + vo.getShopCode());\n\t\t\t\t}\n\t\t\t\tmsg = msg.replaceFirst(\", \", \"\");\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.program.promotion.shop.map.exists\", msg));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tlstTmp = null;\n\t\t\tPromotionProgram pro = promotionProgramMgr.getPromotionProgramById(promotionId);\n\t\t\tif (pro == null) {\n\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_EXIST_DB, \"CTKM\"));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tif (!ActiveType.WAITING.equals(pro.getStatus()) && !ActiveType.RUNNING.equals(pro.getStatus())) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.incorrect\"));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tList<Long> lstShopId = new ArrayList<Long>();\n\t\t\tList<PromotionShopMap> lstPromotionShopMap = new ArrayList<PromotionShopMap>();\n\t\t\tList<PromotionShopJoin> lstPromotionShopJoin = new ArrayList<PromotionShopJoin>();\n\t\t\tlstCheckPromotionShopMap = promotionProgramMgr.getListPromotionChildShopMapWithShopAndPromotionProgram(shopId, promotionId);\n\t\t\tlstCheckPromotionShopJoin = promotionProgramMgr.getListPromotionChildShopJoinWithShopAndPromotionProgram(shopId, promotionId);\n\t\t\tfor (int m = 0, sizelst = lstCheckPromotionShopMap.size(); m < sizelst; m++) {\n\t\t\t\tPromotionShopMap item = lstCheckPromotionShopMap.get(m);\n\t\t\t\tif (item != null && item.getShop() != null) {\n\t\t\t\t\tlstShopId.add(item.getShop().getId());\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int m = 0, sizelst = lstCheckPromotionShopJoin.size(); m < sizelst; m++) {\n\t\t\t\tPromotionShopJoin item = lstCheckPromotionShopJoin.get(m);\n\t\t\t\tif (item != null && item.getShop() != null) {\n\t\t\t\t\tlstShopId.add(item.getShop().getId());\n\t\t\t\t}\n\t\t\t}\n\t\t\tShop shT = null;\n\t\t\tDate now = DateUtil.now();\n\t\t\tLong idt = null;\n\t\t\tfor (int i = 0, sz = lstId.size(); i < sz; i++) {\n\t\t\t\tidt = lstId.get(i);\n\t\t\t\tshT = shopMgr.getShopById(idt);\n\t\t\t\tif (shT == null) {\n\t\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_EXIST_DB, \"DV\"));\n\t\t\t\t\treturn JSON;\n\t\t\t\t}\n\t\t\t\tif (!ActiveType.RUNNING.equals(shT.getStatus())) {\n\t\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_STATUS_INACTIVE, shT.getShopCode()));\n\t\t\t\t\treturn JSON;\n\t\t\t\t}\n\t\t\t\tif (shT.getType() != null && shT.getType().getSpecificType() != null && ShopSpecificType.NPP.getValue().equals(shT.getType().getSpecificType().getValue())) {\n\t\t\t\t\tPromotionShopMap psm = new PromotionShopMap();\n\t\t\t\t\tpsm.setPromotionProgram(pro);\n\t\t\t\t\tpsm.setShop(shT);\n\t\t\t\t\tpsm.setStatus(ActiveType.RUNNING);\n\t\t\t\t\tpsm.setCreateDate(now);\n\t\t\t\t\tpsm.setCreateUser(staff.getStaffCode());\n\t\t\t\t\tif (DateUtil.compareTwoDate(pro.getFromDate(), commonMgr.getSysDate()) > 0) {\n\t\t\t\t\t\tpsm.setFromDate(pro.getFromDate());\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpsm.setFromDate(commonMgr.getSysDate());\n\t\t\t\t\t}\n\t\t\t\t\t//psm.setFromDate(pro.getFromDate());\n\t\t\t\t\tpsm.setToDate(pro.getToDate());\n\t\t\t\t\tpsm.setIsQuantityMaxEdit((lstEdit.get(i) != null && lstEdit.get(i)) ? 1 : 0);\n\t\t\t\t\tif (lstQtt.get(i) >= ZEZO) {\n\t\t\t\t\t\tpsm.setQuantityMax(lstQtt.get(i));\n\t\t\t\t\t}\n\t\t\t\t\tif (BigDecimal.ZERO.compareTo(lstAmt.get(i)) <= 0) {\n\t\t\t\t\t\tpsm.setAmountMax(lstAmt.get(i));\n\t\t\t\t\t}\n\t\t\t\t\tif (BigDecimal.ZERO.compareTo(lstNum.get(i)) <= 0) {\n\t\t\t\t\t\tpsm.setNumMax(lstNum.get(i));\n\t\t\t\t\t}\n\t\t\t\t\tlstPromotionShopMap.add(psm);\n\t\t\t\t} else {\n\t\t\t\t\tPromotionShopJoin psj = null;\n\t\t\t\t\tObjectVO<Shop> listObjectChildShop = null;\n\t\t\t\t\tfor (int k = 0, size = lstPromotionShopJoin.size(); k < size; k++) {\n\t\t\t\t\t\tPromotionShopJoin promotionShopJoin = lstPromotionShopJoin.get(k);\n\t\t\t\t\t\tif (idt.equals(promotionShopJoin.getShop().getId())) {\n\t\t\t\t\t\t\tpsj = promotionShopJoin;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (psj == null) {\n\t\t\t\t\t\tShopFilter flCheck = new ShopFilter();\n\t\t\t\t\t\tflCheck.setShopId(idt);\n\t\t\t\t\t\tflCheck.setListOrgAccess(lstShopIdNPP);\n\t\t\t\t\t\tflCheck.setStrShopId(super.getStrListShopId());\n\t\t\t\t\t\t// co chon NPP thi moi luu shop chon (shop join)\n\t\t\t\t\t\tif (shopMgr.getListChildrenPromotionProgram(flCheck)) {\n\t\t\t\t\t\t\tpsj = new PromotionShopJoin();\n\t\t\t\t\t\t\tpsj.setShop(shT);\n\t\t\t\t\t\t\tpsj.setPromotionProgram(pro);\n\t\t\t\t\t\t\tpsj.setStatus(ActiveType.RUNNING);\n\t\t\t\t\t\t\tpsj.setCreateDate(now);\n\t\t\t\t\t\t\tpsj.setCreateUser(staff.getStaffCode());\n\t\t\t\t\t\t\tpsj.setFromDate(pro.getFromDate());\n\t\t\t\t\t\t\tpsj.setToDate(pro.getToDate());\n\t\t\t\t\t\t\t// lay ds shop con\n\t\t\t\t\t\t\tlstShopId.add(idt);\n\t\t\t\t\t\t\tShopFilter filter = new ShopFilter();\n\t\t\t\t\t\t\tfilter.setShopId(idt);\n\t\t\t\t\t\t\tfilter.setStatus(ActiveType.RUNNING);\n\t\t\t\t\t\t\tfilter.setLstNotInId(lstShopId); // khong lay shop da co\n\t\t\t\t\t\t\tfilter.setNotSpecType(ShopSpecificType.NPP); // khong lay NPP lam shop join\n\t\t\t\t\t\t\tfilter.setStrShopId(super.getStrListShopId());\n\t\t\t\t\t\t\tlistObjectChildShop = shopMgr.getListChildShop(filter);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//psj.setIsQuantityMaxEdit((lstEdit.get(i) != null && lstEdit.get(i)) ? 1 : 0);\n\t\t\t\t\tif (lstQtt.get(i) >= ZEZO) {\n\t\t\t\t\t\tpsj.setQuantityMax(lstQtt.get(i));\n\t\t\t\t\t}\n\t\t\t\t\tif (BigDecimal.ZERO.compareTo(lstAmt.get(i)) <= 0) {\n\t\t\t\t\t\tpsj.setAmountMax(lstAmt.get(i));\n\t\t\t\t\t}\n\t\t\t\t\tif (BigDecimal.ZERO.compareTo(lstNum.get(i)) <= 0) {\n\t\t\t\t\t\tpsj.setNumMax(lstNum.get(i));\n\t\t\t\t\t}\n\t\t\t\t\tlstPromotionShopJoin.add(psj);\n\t\t\t\t\t// tao theo shop con\n\t\t\t\t\tif (listObjectChildShop != null && listObjectChildShop.getLstObject() != null && listObjectChildShop.getLstObject().size() > 0) {\n\t\t\t\t\t\tList<Shop> listChildShop = listObjectChildShop.getLstObject();\n\t\t\t\t\t\tShopFilter filterCheck = new ShopFilter();\n\t\t\t\t\t\tfor (int k = 0, size = listChildShop.size(); k < size; k++) {\n\t\t\t\t\t\t\tShop childShop = listChildShop.get(k);\n\t\t\t\t\t\t\tif (childShop != null) {\n\t\t\t\t\t\t\t\tfilterCheck.setShopId(childShop.getId());\n\t\t\t\t\t\t\t\tfilterCheck.setListOrgAccess(lstShopIdNPP);\n\t\t\t\t\t\t\t\tfilterCheck.setStrShopId(super.getStrListShopId());\n\t\t\t\t\t\t\t\tif (shopMgr.getListChildrenPromotionProgram(filterCheck)) {\n\t\t\t\t\t\t\t\t\tPromotionShopJoin shopJoin = new PromotionShopJoin();\n\t\t\t\t\t\t\t\t\tshopJoin.setShop(childShop);\n\t\t\t\t\t\t\t\t\tshopJoin.setPromotionProgram(pro);\n\t\t\t\t\t\t\t\t\tshopJoin.setStatus(ActiveType.RUNNING);\n\t\t\t\t\t\t\t\t\tshopJoin.setCreateDate(now);\n\t\t\t\t\t\t\t\t\tshopJoin.setCreateUser(staff.getStaffCode());\n\t\t\t\t\t\t\t\t\tshopJoin.setFromDate(pro.getFromDate());\n\t\t\t\t\t\t\t\t\tshopJoin.setToDate(pro.getToDate());\n\t\t\t\t\t\t\t\t\tlstPromotionShopJoin.add(shopJoin);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tlstCheckPromotionShopMap.addAll(lstPromotionShopMap);\n\t\t\tlstCheckPromotionShopJoin.addAll(lstPromotionShopJoin);\n\t\t\tString error = validatePromotionShop(lstCheckPromotionShopMap, lstCheckPromotionShopJoin);\n\t\t\tif (!StringUtil.isNullOrEmpty(error)) {\n\t\t\t\tresult.put(\"errMsg\", error);\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tpromotionProgramMgr.addPromotionShop(lstPromotionShopMap, lstPromotionShopJoin, getLogInfoVO());\n\t\t\tresult.put(ERROR, false);\n\t\t} catch (Exception ex) {\n\t\t\tLogUtility.logErrorStandard(ex, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.addPromotionShop\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t\treturn JSON;\n\t\t} finally {\n\t\t\tlstCheckPromotionShopMap.clear();\n\t\t\tlstCheckPromotionShopMap = null;\n\t\t\tlstCheckPromotionShopJoin.clear();\n\t\t\tlstCheckPromotionShopJoin = null;\n\t\t}\n\t\treturn JSON;\n\t}", "@Override\n public void doWork(Website site) {\n // TrungDQ: Comment these two lines to parse without crawl\n// CrawlerPipeline crawler = CrawlerPipeline.getInstance();\n// crawler.doWork(site);\n\n List<LinkDetail> linksList = (new LinkDetailDAL()).getLinksByWebsite(site);\n\n // move to Parser pipeline\n ParserPipeline parser = ParserPipeline.getInstance();\n List<ParsedHotel> parsedHotels = parser.doWork(linksList, site);\n\n // convert parsted hotel to normal hotel\n List<Hotel> hotels = new ArrayList<>();\n for (ParsedHotel parstedHotel : parsedHotels) {\n Hotel hotel = null;\n try {\n hotel = CommonObjConverter.toHotel(parstedHotel);\n } catch (Exception ex) {\n Logger.getLogger(Work.class.getName()).log(Level.SEVERE, null, ex);\n }\n hotels.add(hotel);\n }\n\n\n // normalization those hotel\n NormalizationPipeline engine = NormalizationPipeline.getInstance();\n hotels = engine.doWork(hotels);\n\n System.out.println(\"Hotels:::: \" + hotels);\n // save those hotel to database\n for (Hotel hotel : hotels) {\n try {\n if (!hotel.getHotelName().equals(\"0\")) {\n HotelDAL.addHotel(hotel);\n }\n } catch (Exception ex) {\n Logger.getLogger(Work.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "public void load() {\n mapdb_ = DBMaker.newFileDB(new File(\"AllPoems.db\"))\n .closeOnJvmShutdown()\n .encryptionEnable(\"password\")\n .make();\n\n // open existing an collection (or create new)\n poemIndexToPoemMap_ = mapdb_.getTreeMap(\"Poems\");\n \n constructPoems();\n }", "private void testDB(){\n DB=new LinkedList<>(); \n DB.add(new Offer(\"ID1\",\"AGV923\",\"Nico\",\"Leo\",\"Salvo\",\"\"));\n DB.add(new Offer(\"ID2\",\"ADJ325\",\"Tizio\", \"Caio\", \"Sempronio\",\"\"));\n DB.add(new Offer(\"ID3\",\"T56G2G\",\"Antonella\", \"Daniele\",\"\",\"\"));\n }", "public static void setServer()\n\t{\n\t\t\n\t\t// also test the second constructor of business plan\n\t\t\n\t\t// creates 2 admin lists and users lists for the depts\n\t\tArrayList<User> usersList1 = new ArrayList<User>();\n\t\tArrayList<User> usersList2 = new ArrayList<User>();\n\t\t\n\t\tArrayList<User> adminList1 = new ArrayList<User>();\n\t\tArrayList<User> adminList2 = new ArrayList<User>();\n\t\t\n\t\t\n\t\t// creates the users and adds to lists\n\t\tUser user1 = new User(\"user1\", \"a\", \"1\", \"CSC\", false);\n\t\tUser user2 = new User(\"user2\", \"b\", \"2\", \"CSC\", false);\n\t\tUser user3 = new User(\"user3\", \"c\", \"3\", \"CSC\", false);\n\t\tusersList1.add(user1);\n\t\tusersList1.add(user2);\n\t\tusersList1.add(user3);\n\t\tUser user4 = new User(\"user4\", \"d\", \"4\", \"English\", false);\n\t\tUser user5 = new User(\"user5\", \"e\", \"5\", \"English\", false);\n\t\tUser user6 = new User(\"user6\", \"f\", \"6\", \"English\", false);\n\t\tusersList2.add(user4);\n\t\tusersList2.add(user5);\n\t\tusersList2.add(user6);\n\t\t\n\t\t// creats the admins and adds to list\n\t\tUser admin1 = new User(\"admin1\", \"a\", \"1\", \"CSC\", true);\n\t\tUser admin2 = new User(\"admin2\", \"b\", \"2\", \"English\", true);\n\t\tadminList1.add(admin1);\n\t\tadminList2.add(admin2);\n\t\t\n\t\tDepartment CSC = new Department();\n\t\tCSC.setDepartmentName(\"CSC\");\n\t\tCSC.setAdmin(adminList1);\n\t\tCSC.setUsers(usersList1);\n\t\tDepartment English = new Department(\"English\", adminList2, usersList2);\n\t\tEnglish.setDepartmentName(\"English\");\n\t\tEnglish.setAdmin(adminList2);\n\t\tEnglish.setUsers(usersList2);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t\t\n\t\t\n\t\n\t\t\n\t\t\n\n\t\t\n\t\tdeptNames.add(\"CSC\");\n\t\tdeptNames.add(\"English\");\n\t\t\n\t\t\n\t\tserv.save(CSC);\n\t\tserv.save(English);\n\t}", "@Override\n\tpublic void addLecture(Lecture l) {\n\t\tSession session = this.sessionFactory.getCurrentSession();\n\t\tsession.persist(l);\n\t}", "@Override\n\tpublic void saveLocal(ArrayList<Brick> bmBricks, ArrayList<Ball> balls, ArrayList<PowerUp> powUps,\n\t\t\tArrayList<Alien> aliens, Player p, Paddle pad, String username) {\n\t\t\n\t}", "@PreDestroy\n public void saveStates() {\n if(getShopId() != 0) {\n log.info(\"Interrupt matching for shop {} during phase {} at {} \", getShopId(), getPhase(), new Date());\n getRemainingStates().add(new State(getShopId(), getPhase(), getPictureIds()));\n }\n getMatcherStateRepository().saveAllStates(getRemainingStates());\n }", "@Override\n public void migrate(OccupiedLocations ols) {\n for (Population pop:ols.copyList()) {\n setCoordinate(pop.getCoordinate());\n\n Population migrating_pop = pop.collectMigrants(getRate());\n if (migrating_pop.getSize() > 0) {\n migrating_pop.setCoordinate(getPicker().pick());\n migrating_pop.setResource(0.0);\n\n // alter *actual* populations\n ols.addOrMix(migrating_pop);\n }\n }\n }", "@Override\r\n\tpublic int insertNewShop(Shop shop) {\n\t\treturn sm.insert(shop);\r\n\t}", "public void createFullListing(HashMap<String,String> values) throws Exception\n\t {\n\t \tString getIDs = \"SELECT MAX(make_id), MAX(powertrain_id), MAX(engine_id), MAX(listing_id) FROM listing, powertrainhasengine\";\n\t \tStatement statement = connection.createStatement();\n\t \tResultSet ids = statement.executeQuery(getIDs);\n\t \tids.first();\n\t \tint newListing_id = ids.getInt(\"MAX(listing_id)\") + 1;\n\t \tint newMake_id = ids.getInt(\"MAX(make_id)\") + 1;\n\t \tint newPowerTrain_id = ids.getInt(\"MAX(powertrain_id)\") + 1;\n\t\tint newEngine_id = ids.getInt(\"MAX(engine_id)\") + 1;\n\t\tids.close();\n\n\t\t//Quickly add the new ids to the HashTable\n\t\tvalues.put(\"listing_id\", Integer.toString(newListing_id));\n\t\t values.put(\"make_id\", Integer.toString(newMake_id));\n\t\t values.put(\"powertrain_id\", Integer.toString(newPowerTrain_id));\n\t\t values.put(\"engine_id\", Integer.toString(newEngine_id));\n\n\t\t//Now check if the entered data exists.\n\t\tboolean makeExists = true, powertrainExists = true, engineExists = true;\n\t\tint makeID, powertrainID, engineID;\n\n\t\tString makeExistsString = \"SELECT make_id FROM make WHERE make = \" + values.get(\"make\") + \" AND model =\"\n\t\t\t\t+ values.get(\"model\") + \" AND type = \" + values.get(\"type\") + \" AND year = \" + values.get(\"year\");\n\t\tResultSet makeRS = statement.executeQuery(makeExistsString);\n\t\tif(!makeRS.next()) {\n\t\t\tmakeExists = false; //insert if does not exist\n\t\t} else {\n\t\t\tmakeID = makeRS.getInt(\"make_id\");\n\t\t\tvalues.put(\"make_id\", Integer.toString(makeID));\n\t\t}\n\t\tmakeRS.close();\n\n\t\tString powerTrainExistsString = \"SELECT powertrain_id FROM powertrain WHERE drive_type = \"\n\t\t\t\t+ values.get(\"drive_type\") + \" AND transmition = \" + values.get(\"transmition\");\n\t\tResultSet powertrainRS = statement.executeQuery(powerTrainExistsString);\n\t\tif(!powertrainRS.next()){\n\t\t\tpowertrainExists = false;\n\t\t} else {\n\t\t\tpowertrainID = powertrainRS.getInt(\"powertrain_id\");\n\t\t\tvalues.put(\"powertrain_id\", Integer.toString(powertrainID));\n\t\t}\n\t\tpowertrainRS.close();\n\n\t\tString engineExistsString = \"SELECT engine_id FROM engine WHERE size = \" + values.get(\"size\")\n\t\t\t\t+ \" AND fuel_type = \" + values.get(\"fuel_type\") + \" AND cylinders = \" + values.get(\"cylinders\");\n\t\tResultSet engineRS = statement.executeQuery(engineExistsString);\n\t\tif(!engineRS.next()){\n\t\t\tengineExists = false;\n\t\t} else {\n\t\t\tengineID = engineRS.getInt(\"engine_id\");\n\t\t\tvalues.put(\"engine_id\", Integer.toString(engineID));\n\t\t}\n\t\tengineRS.close();\n\n\t\t//in table\n\t\t if(makeExists == true && powertrainExists == true && engineExists == true) {\n\t\t\t addListing(Integer.parseInt(values.get(\"listing_id\")),Integer.parseInt(values.get(\"make_id\")),\n\t\t\t\t\t Integer.parseInt(values.get(\"mileage\")),values.get(\"color\"),\n\t\t\t\t\t Double.parseDouble(values.get(\"price\")),values.get(\"description\"));\n\t\t }\n\n\t\t //not in table\n\t\t if(engineExists == false){\n\t\t \taddEngine(newEngine_id,Integer.parseInt(values.get(\"size\")),values.get(\"fuel_type\"),\n\t\t\t\t\tInteger.parseInt(values.get(\" cylinder\")));\n\t\t }\n\t\t if(powertrainExists == false){\n\t\t \taddPowertrain(newPowerTrain_id,values.get(\"drive_type\"),\n\t\t\t\t\tvalues.get(\"transmition\"));\n\n\t\t\tif(makeExists == true) {\n\t\t\t\t//if Make is true, powertrain is false\n\t\t\t\taddMake(newMake_id, values.get(\"make\"), values.get(\"model\"), values.get(\"type\"),\n\t\t\t\t\t\tnewPowerTrain_id, Integer.parseInt(values.get(\"year\")));\n\n\t\t\t\taddMakeHasPowertrain(newMake_id, newPowerTrain_id);\n\n\t\t\t\taddListing(newListing_id,newMake_id,Integer.parseInt(values.get(\"mileage\")),values.get(\"color\"),\n\t\t\t\t\t\tDouble.parseDouble(values.get(\"price\")),values.get(\"description\"));\n\t\t\t}\n\n\t\t }\n\t\t if(engineExists == false || powertrainExists == false) {\n\t\t \taddPowertrainHasEngine(Integer.parseInt(values.get(\"powertrain_id\")),\n\t\t\t\t\tInteger.parseInt(values.get(\"engine_id\")));\n\t\t }\n\t\t if(makeExists == false) {\n\t\t \t//if make is false but powertrain is true\n\t\t \taddMake(newMake_id,values.get(\"make\"),values.get(\"model\"),values.get(\"type\"),\n\t\t\t\t\tInteger.parseInt(values.get(\"powertrain_id\")), Integer.parseInt(values.get(\"year\")));\n\n\t\t \taddMakeHasPowertrain(newMake_id,Integer.parseInt(values.get(\"powertrain_id\")));\n\n\t\t \taddListing(newListing_id,newMake_id,Integer.parseInt(values.get(\"mileage\")),values.get(\"color\"),\n\t\t\t\t\tDouble.parseDouble(values.get(\"price\")),values.get(\"description\"));\n\t\t }\n\n\t \t//use fns: addListing, addengine, addmake, addpowertrain, addmakehaspowertrain, addpowertrainhasengine\n\n\t }", "@Test\n\tpublic void testQueryShopList() {\n\t\t\n\t\tArea area = new Area();\n\t\tarea.setAreaId(2);\n\t\t\n\t\tShopCategory shopCategory = new ShopCategory();\n//\t\tshopCategory.setShopCategoryId(1L);\n\t\tShopCategory shopCategory2 = new ShopCategory();\n\t\tshopCategory2.setShopCategoryId(3L);\n\t\t\n\t\tshopCategory.setParent(shopCategory2);\n\t\t\n\t\tShop shop = new Shop();\n\t\tshop.setShopCategory(shopCategory);\n//\t\tshop.setArea(area);\n//\t\tshop.setShopName(\"店\");\n//\t\tshop.setShopStatus(1);\n//\t\tshop.setOwner(personInfo);\n\t\tint count = shopMapper.queryShopCount(shop);\n\t\tSystem.out.println(\"总数:\"+count);\n\t\tList<Shop> shopList = shopMapper.queryShopList(shop, 0, 100);\n\t\tSystem.out.println(shopList.size());\n\t}", "private void loadPersistantWatchLists()\r\n {\r\n\r\n debug(\"loadPersistantWatchLists() called - \");\r\n\r\n expungeAllHistoricFiles();\r\n\r\n final int watchListCount =\r\n ParseData.parseNum(appProps.getProperty(getString(\"WatchListTableModule.application_watchlist_count_key_title\")), 0);\r\n\r\n for (int index = 0; index < watchListCount; index++)\r\n {\r\n // Create a NEW header Vector\r\n Vector headers = new Vector();\r\n headers.removeAllElements();\r\n for (int i = 0; i < StockData.columns.length; i++)\r\n {\r\n headers.addElement(StockData.columns[i]);\r\n }\r\n\r\n // Create a new DATA Vector\r\n Vector data = new Vector();\r\n data.removeAllElements();\r\n // Are we in DEMO mode ior in Live Mode\r\n // Populate the Vectors\r\n if (DEMO_MODE)\r\n {\r\n getDemoData(data);\r\n }\r\n else\r\n {\r\n //getDemoData(data);\r\n getLiveData(data, index);\r\n }\r\n\r\n // Create a new Table Model with our headers and data\r\n StockDataTableModel tableModel = new StockDataTableModel(headers, data);\r\n\r\n // Create a new Table with our Tablemodel\r\n JTable table = new HGTable(tableModel);\r\n\r\n // This method will add a timer ( via the index ) the table and tableModel\r\n // the appropriate vector containers.\r\n addDataToVectorContainers(table, tableModel, index);\r\n // This Method will add the Popup menu to the this table\r\n addPopupMenuToTable(table);\r\n // Create a new ScrollPane and add our table to it\r\n JScrollPane scrollPane = new JScrollPane();\r\n scrollPane.getViewport().add(table);\r\n JPanel panel = new JPanel(new BorderLayout());\r\n\r\n // Creae a new Vertical Panel and add our Menu and JScrollPane Table\r\n JPanel lblPanel = createVerticalPanel(true);\r\n\r\n lblPanel.add(createDropDownMenu());\r\n panel.add(lblPanel, BorderLayout.NORTH);\r\n panel.add(scrollPane, BorderLayout.CENTER);\r\n\r\n // Create a default name for that tab and tab name lookup\r\n String tabName = getString(\"WatchListTableModule.edit.watch_list_basic_name\") + index;\r\n // Get the WatchList title via Properties\r\n // Get the Property\r\n tabName = appProps.getProperty(tabName, tabName);\r\n tabPane.addTab(tabName, null, panel, new String(\"Click here to view \" + tabName));\r\n\r\n // Set the selected index to the first in the list\r\n tabPane.setSelectedIndex(0);\r\n // Repaint the tabpane with the current data\r\n tabPane.repaint();\r\n\r\n // Load the Historical Data on the Util Event Thread as \r\n // to get our primary data up and going as fast as possible\r\n // So we can get out of here - This Inner class thread\r\n // invokes class instance method loadHistoricData(index);\r\n // NOTE: Startup Initial delay of 5 seconds, give the application,\r\n // Time to load.\r\n TimerTask historicDataTask = new LoadHistoricListDataTask(index);\r\n Timer timer = new Timer(true);\r\n timer.schedule(historicDataTask, ONE_SECOND ); // ONE_SECOND * 6);\r\n\r\n this.setStatusBar(\"Loading watch list [\" + index + \"] complete.\");\r\n }\r\n\r\n this.MODULE_READY = true;\r\n\r\n this.monitorTask = new WatchListMonitorTask();\r\n Timer timer = new Timer(true); // Non-Deamon\r\n timer.scheduleAtFixedRate(monitorTask, MONITOR_DELAY, MONITOR_DELAY);\r\n\r\n debug(\"loadPersistantWatchLists() complete - \");\r\n\r\n }", "@Test\n\tpublic void testSingleItemRecordsNotLopped() \n\t{\n\t\tString id = \"oneLC999\";\n\t\tassertLCVol1NotLopped(id);\n\t\tassertNoLoppedLC(id);\n\t \n\t id = \"oneDewey999\";\n\t\tsolrFldMapTest.assertSolrFldValue(testFilePath, id, fldName, deweyVol1Shelfkey);\n\n\t id = \"oneAlphanumBox\";\n\t String callnum = \"M1522 BOX 1\";\n\t String shelfkey = CallNumUtils.getShelfKey(callnum, CallNumberType.OTHER, id).toLowerCase();\n\t\tsolrFldMapTest.assertSolrFldValue(testFilePath, id, fldName, shelfkey);\n\t}", "@Test\n\tpublic void hasWorkstationTest(){\n\t\tcmcSystem.logInUser(2);\n\t\tOrder testOrder = makeOrder(new ModelA());\n\t\tcmcSystem.logInUser(2);\n\t\tOrder testOrder2 = makeOrder(new ModelB());\n//\t\tOrder testOrder3 = makeOrder(new ModelC());\n//\t\tOrder testOrder4 = makeOrder(new ModelX());\n//\t\tcmcSystem.logInUser(2);\n//\t\tOrder testOrder5 = makeOrder(new ModelY());\n\t\tcmcSystem.logInUser(1);\n\t\tassemblyLine.setStatus(Status.OPERATIONAL, 1);\n\t\tassertTrue(assemblyLine.supports(testOrder));\n\t\tassertTrue(assemblyLine.supports(testOrder2));\n//\t\tassertFalse(assemblyLine.supports(testOrder3));\n//\t\tassertFalse(assemblyLine.supports(testOrder4));\n//\t\tassertFalse(assemblyLine.supports(testOrder5));\n\t}", "@Test\r\n\tpublic void testSaveOrUpdateCheckList() {\n\t\tthis.checklistDAO.saveOrUpdateCheckList(this.checklist);\r\n\r\n\t\t// Check the saving.\r\n\t\tString id = this.checklist.getId();\r\n\t\tCheckList checklistTmp = (CheckList) this.checklistDAO.getCheckList(id);\r\n\t\tassertNotNull(checklistTmp);\r\n\t}", "public void createLBPolicy2(){\n\n\t\tIterator<ASServer> itm = manager.getASServers().values().iterator();\n\t\t\n\t\twhile(itm.hasNext()){\n\t\t\t\n\t\t\tASServer as = itm.next();\n\t\t\tAppServerPolicy ap = as.currentPolicy;\n\t\t\tIterator<ObjectKey> ik = ap.policyMap.keySet().iterator();\n\t\t\t\n\t\t\twhile(ik.hasNext()){\n\t\t\t\t\n\t\t\t\tObjectKey ot = ik.next();\n\t\t\t\t\n\t\t\t\tif(ot instanceof ListKey){\n\t\t\t\t\tListKey tlk = (ListKey) ot;\n\t\t\t\t\tString t = tlk.key;\n\t\t\t\t\t//System.out.println(\"Checking for mapping of :\" + t);\n\t\t\t\t\t\n\t\t\t\t\tif(((ResourceToRequestMap) as.getStruct((String)RequestResourceMappingLogProcessor.OBJ_REQ_MAP)).map.get(t) == null){\n\t\t\t\t\t\t//System.out.println(\"Mapping Map is NULL\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tArrayList<String> test = new ArrayList<String>(((ResourceToRequestMap) as.getStruct((String)RequestResourceMappingLogProcessor.OBJ_REQ_MAP)).map.get(t));\n\t\t\t\t\t\n\t\t\t\t\tIterator<String> itemp = test.iterator();\n\t\t\t\t\t\n\t\t\t\t\twhile(itemp.hasNext()){\n\t\t\t\t\t\n\t\t\t\t\t\tString url = itemp.next();\n\t\t\t\t\t\t\n\t\t\t\t\t\tint[] sc = LBPCreatorMap.get(url);\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(sc == null){\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tsc = new int[NO_SERVERS];\n\t\t\t\t\t\t\tsc[as.serverNo]++;\n\t\t\t\t\t\t\tLBPCreatorMap.put(url, sc);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tsc[as.serverNo]++;\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\t\n\t\t}\n\t\t\n\t\tIterator<String> iturl = LBPCreatorMap.keySet().iterator();\n\t\t\n\t\twhile(iturl.hasNext()){\n\t\t\t\n\t\t\tString url = iturl.next();\n\t\t\t\n\t\t\tint[] sc = LBPCreatorMap.get(url);\n\t\t\t\n\t\t\tint size = sc.length;\n\t\t\tint maxtemp=0;\n\t\t\tint maxindex=0;\n\t\t\tint val;\n\t\t\t\n\t\t\t\n\t\t\tfor(int i=0; i< size; i++){\n\t\t\t\t\n\t\t\t\tval = sc[i];\n\t\t\t\tif(val > maxtemp)\n\t\t\t\t{\n\t\t\t\t\tmaxtemp = val;\n\t\t\t\t\tmaxindex = i;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tString xyz = manager.getASServer(maxindex).serverId;\n\t\t\tthis.currentLBPolicy.mapUrlToServers(url, Analyser.resolveHost(xyz));\n\t\t\t\n\t\t\t\n//\t\t\tif(mLogger.isInfoEnabled()){\n//\t\t\t\tmLogger.log(Priority.INFO, \":\" + url + \": being assigned to: \" + xyz);\n//\t\t\t}\n\t\t\t\n\t\t\tInteger sId = LBDMap.get(xyz);\n\t\t\t\n\t\t\tif(sId == null){\n\t\t\t\tsId=new Integer(1);\n\t\t\t\tLBDMap.put(xyz, sId);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tsId++;\n\t\t\t\tLBDMap.put(xyz, sId);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n//\t\tSystem.out.println(\"------------URL ServerCounter start---------------\");\n//\t\t\n//\t\tIterator<String> ilbp = LBPCreatorMap.keySet().iterator();\n//\t\t\n//\t\twhile(ilbp.hasNext()){\n//\t\t\t\n//\t\t\tString url = ilbp.next();\n//\t\t\tint[] pi = LBPCreatorMap.get(url);\n//\t\t\tSystem.out.println(\"url is:\" + url);\n//\t\t\tfor(int i=0; i< pi.length; i++){\n//\t\t\t\tSystem.out.print(\"Site:\"+ i + \":\" + pi[i]);\n//\t\t\t}\n//\t\t}\n//\t\t\n////\t\t//System.out.println(\"Number of entries corresponding to LBPolicy for localhost are: \" + currentLBPolicy.policyMap.values().size() );\n//\t\n//\t\tSystem.out.println(\"------------URL ServerCounter end-----------------\");\n\t\t\n\t\tSystem.out.println(\"------------LBPolicy start---------------\");\n//\t\tSystem.out.println(currentLBPolicy);\n//\t\t\n//\t\tSystem.out.println(\"Number of entries in LBPolicy are: \" + currentLBPolicy.policyMap.size() );\n\t\t\n\t\tIterator<String> itlb = LBDMap.keySet().iterator();\n\t\t\n\t\twhile(itlb.hasNext()){\n\t\t\tString serid = itlb.next();\n\t\t\t\n\t\t\tSystem.out.println(\"Server:\" + serid + \" has been allocated: \" + LBDMap.get(serid) + \" objects\");\n\t\t}\n\t\t\n//\t\n\t\tSystem.out.println(\"------------LBPolicy end-----------------\");\n\t\n\n\t\t\n\t}", "public boolean createPalvelupiste(Palvelupiste palvelupiste);", "boolean hasCompleteStore();", "@Override\n protected void set(java.util.Collection<org.tair.db.locusdetail.IPolymorphismSite> list) {\n polymorphismSite = list;\n // Add the primary keys to the serialized key list if there are any.\n if (polymorphismSite != null) {\n for (com.poesys.db.dto.IDbDto object : polymorphismSite) {\n polymorphismSiteKeys.add(object.getPrimaryKey());\n }\n }\n }", "public void addPassengerShip(Scanner sc){\n PassengerShip pShip = new PassengerShip(sc, portMap, shipMap, dockMap);\n if(hashMap.containsKey(pShip.getParent())){\n if(hashMap.get(pShip.getParent()).getIndex()>=10000 && hashMap.get(pShip.getParent()).getIndex() < 20000){\n currentPort = (SeaPort) hashMap.get(pShip.getParent());\n currentPort.setShips(pShip);\n currentPort.setAllShips(pShip);\n \n }\n else{\n currentDock = (Dock) hashMap.get(pShip.getParent());\n currentDock.addShip(pShip);\n currentPort = (SeaPort) hashMap.get(currentDock.getParent());\n currentPort.setAllShips(pShip);\n }\n \n \n }\n hashMap.put(pShip.getIndex(), pShip);\n shipMap.put(pShip.getIndex(), pShip);\n everything.add(pShip);\n }", "@Test\n\tpublic void testAddedWPtoWS() {\n\t\tWorkPackage wp = new WorkPackage(null);\n\t\tWorkSpace ws = new WorkSpace(null);\n\t\tws.addWP(wp);\n\t\tWorkPackage wp2 = ws.getWpList().get(0);\n\t\tAssert.assertTrue(\"wp et wp2 sont différents !\", wp2 == wp);\n\t}", "@Override\n\tpublic List<Lane> getLaneWithSameDirection(String laneDirection, Integer tollPId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t//create a query\n\t\tQuery<Lane> theQuery = \n\t\t\t\tcurrentSession.createQuery(\"from Lane where tollPlazaId='\"+tollPId+\"' and laneDirection='\"+laneDirection+\"' and statusFlag='ACTIVE'\", Lane.class);\t\n\t\n\t\tList<Lane> lanes = theQuery.getResultList();\n\t\t\n\t\treturn lanes;\n\t\t\n\t}", "@Override\n\tpublic void connectMongoAndSaveRunningMode(String playername, ArrayList<Brick> buildingModeBricks,\n\t\t\tArrayList<Ball> balls, ArrayList<PowerUp> powUps, ArrayList<Alien> aliens, Player p, Paddle pad) {\n\t\t\n\t}", "public void addETLHop(ETLHop ETLHop) {\r\n\t\tetlHops.add(new ETLHop(ETLHop));\r\n\t}", "static private void loadGame() {\n ArrayList loadData = data.loadGame();\n\n //inventory\n inventory = new Inventory();\n LinkedTreeMap saveMap = (LinkedTreeMap) loadData.get(0);\n if (!saveMap.isEmpty()) {\n LinkedTreeMap inventoryItemWeight = (LinkedTreeMap) saveMap.get(\"itemWeight\");\n LinkedTreeMap inventoryItemQuantity = (LinkedTreeMap) saveMap.get(\"inventory\");\n String inventoryItemQuantityString = inventoryItemQuantity.toString();\n inventoryItemQuantityString = removeCrapCharsFromString(inventoryItemQuantityString);\n String itemListString = inventoryItemWeight.toString();\n itemListString = removeCrapCharsFromString(itemListString);\n\n for (int i = 0; i < inventoryItemWeight.size(); i++) {\n String itemSet;\n double itemQuantity;\n if (itemListString.contains(\",\")) {\n itemQuantity = Double.parseDouble(inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\"=\") + 1, inventoryItemQuantityString.indexOf(\",\")));\n inventoryItemQuantityString = inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\",\") + 1, inventoryItemQuantityString.length());\n itemSet = itemListString.substring(0, itemListString.indexOf(\",\"));\n itemListString = itemListString.substring(itemListString.indexOf(\",\") + 1, itemListString.length());\n } else {\n itemSet = itemListString;\n itemQuantity = Double.parseDouble(inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\"=\") + 1, inventoryItemQuantityString.length()));\n }\n String itemName = itemSet.substring(0, itemSet.indexOf(\"=\"));\n int itemWeight = Double.valueOf(itemSet.substring(itemSet.indexOf(\"=\") + 1, itemSet.length())).intValue();\n while (itemQuantity > 0) {\n Item item = new Item(itemName, \"\", itemWeight, true);\n inventory.addItemInInventory(item);\n itemQuantity--;\n }\n }\n }\n\n //itemList\n itemLocation = new ItemLocation();\n saveMap = (LinkedTreeMap) loadData.get(1);\n if (!saveMap.isEmpty()) {\n System.out.println(saveMap.keySet());\n LinkedTreeMap itemLocationOnMap = (LinkedTreeMap) saveMap;\n String rooms = saveMap.keySet().toString();\n rooms = removeCrapCharsFromString(rooms);\n for (int j = 0; j <= itemLocationOnMap.size() - 1; j++) {\n String itemToAdd;\n\n if (rooms.contains(\",\")) {\n itemToAdd = rooms.substring(0, rooms.indexOf(\",\"));\n } else {\n itemToAdd = rooms;\n }\n\n rooms = rooms.substring(rooms.indexOf(\",\") + 1, rooms.length());\n ArrayList itemInRoom = (ArrayList) itemLocationOnMap.get(itemToAdd);\n for (int i = 0; i < itemInRoom.size(); i++) {\n Item itemLocationToAdd;\n LinkedTreeMap itemT = (LinkedTreeMap) itemInRoom.get(i);\n String itemName = itemT.get(\"name\").toString();\n String itemDesc = \"\";\n int itemWeight = (int) Double.parseDouble(itemT.get(\"weight\").toString());\n boolean itemUseable = Boolean.getBoolean(itemT.get(\"useable\").toString());\n\n itemLocationToAdd = new PickableItem(itemName, itemDesc, itemWeight, itemUseable);\n itemLocation.addItem(itemToAdd, itemLocationToAdd);\n\n }\n }\n //set room\n String spawnRoom = loadData.get(3).toString();\n currentRoom = getRoomFromName(spawnRoom);\n }\n }", "public List<Pair<String, HLOInformation>> getHLOInformation() {\n if (! wasSuccessful()) {\n return List.of();\n }\n if (getArchitect() == null) {\n return List.of();\n }\n Result<GameLogsRecord> result = jooq.selectFrom(GAME_LOGS)\n .where(GAME_LOGS.GAMEID.equal(gameId))\n .orderBy(GAME_LOGS.ID.asc())\n .fetch();\n\n List<HLOGatherer> hloPlans;\n HashMultiset<Block> presentBlocks = HashMultiset.create();\n String scenario = getScenario();\n if (scenario.equals(\"house\")) {\n hloPlans = readHighlevelPlan(\"/de/saar/minecraft/domains/house-highlevel.plan\")\n .stream()\n .map(HLOGatherer::new)\n .collect(Collectors.toList());\n presentBlocks.addAll(readInitialWorld(\"/de/saar/minecraft/worlds/house.csv\"));\n } else if (scenario.equals(\"bridge\")) {\n hloPlans = readBlockPlan(\"/de/saar/minecraft/domains/bridge-block.plan\").stream()\n .map(HLOGatherer::new)\n .collect(Collectors.toList());\n presentBlocks.addAll(readInitialWorld(\"/de/saar/minecraft/worlds/bridge.csv\"));\n } else {\n throw new NotImplementedException(\"Scenario {} is not implemented\", scenario);\n }\n\n LocalDateTime firstInstructionTime = null;\n int numMistakes = 0;\n\n /* These two booleans implement a work-around for https://github.com/minecraft-saar/infrastructure/issues/19\n Sometimes, a delete message and a create message are in the wrong order. This workaround is for a specific\n game where the player did a put-delete-put sequence for one location. The result should be that there is a\n block, but for some reason the sequence ended up as put-put-delete, meaning the world as we capture it here\n does not have the block even though it was there during the game. If that happens, we disable tracking\n of deletions in that one game.\n */\n boolean dataExtracted = false;\n boolean ignoreDestroyMessages = false;\n while (! dataExtracted) {\n // go through the complete game and keep track of when instructions where given,\n // blocks placed an HLO completed.\n for (GameLogsRecord record : result) {\n switch (record.getMessageType()) {\n case \"BlockPlacedMessage\":\n presentBlocks.add(getBlockFromRecord(record));\n break;\n case \"BlockDestroyedMessage\":\n if (! ignoreDestroyMessages) {\n presentBlocks.remove(getBlockFromRecord(record));\n }\n break;\n case \"TextMessage\":\n if (firstInstructionTime == null) {\n // the first *instruction* has a derivation tree, otherwise it is\n // a welcome message or similar.\n if (record.getMessage().contains(\"\\\\\\\"tree\\\\\\\":\")) {\n firstInstructionTime = record.getTimestamp();\n }\n }\n if (record.getMessage().contains(\"Not there! please remove that block again\")\n || record.getMessage().contains(\"Please add this block again.\"))\n numMistakes += 1;\n break;\n case \"SuccessfullyFinished\": // the game is complete, i.e. the last HLO was completed.\n if (hloPlans.get(hloPlans.size() - 1).timestamp == null) {\n hloPlans.get(hloPlans.size() - 1).timestamp = record.getTimestamp();\n hloPlans.get(hloPlans.size() - 1).mistakes = numMistakes;\n }\n break;\n default:\n break;\n }\n // Check which HLOs are complete\n for (HLOGatherer hlo : hloPlans) {\n if (hlo.timestamp == null) {\n if (presentBlocks.containsAll(hlo.blocks)) {\n hlo.timestamp = record.getTimestamp();\n hlo.mistakes = numMistakes;\n }\n }\n }\n }\n // we are done when we either already had our second try or the data looks good.\n if (ignoreDestroyMessages || hloPlans.stream().noneMatch((x) -> x.timestamp == null)) {\n dataExtracted = true;\n } else {\n ignoreDestroyMessages = true;\n }\n }\n // As this was a successful game, all HLOs should have a time\n assert (hloPlans.stream().noneMatch((x) -> x.timestamp == null));\n\n if (firstInstructionTime == null) {\n logger.error(\"first instruction is null\");\n return List.of();\n }\n if (getScenario().equals(\"bridge\")) {\n return List.of(\n new Pair<>(\"floor\",\n new HLOInformation(\n (int)firstInstructionTime.until(hloPlans.get(0).timestamp, MILLIS),\n hloPlans.get(0).mistakes\n )\n ),\n new Pair<>(\"railing\",\n new HLOInformation(\n (int) hloPlans.get(0).timestamp.until(hloPlans.get(1).timestamp, MILLIS),\n hloPlans.get(1).mistakes - hloPlans.get(0).mistakes\n )\n ),\n new Pair<>(\"railing\",\n new HLOInformation(\n (int) hloPlans.get(1).timestamp.until(hloPlans.get(2).timestamp, MILLIS),\n hloPlans.get(2).mistakes - hloPlans.get(1).mistakes\n )\n )\n );\n } else if (getScenario().equals(\"house\")) {\n return List.of(\n new Pair<>(\"wall\",\n new HLOInformation((int) firstInstructionTime.until(hloPlans.get(0).timestamp, MILLIS),\n hloPlans.get(0).mistakes\n )\n ),\n new Pair<>(\"wall\",\n new HLOInformation((int) hloPlans.get(0).timestamp.until(hloPlans.get(1).timestamp, MILLIS),\n hloPlans.get(1).mistakes - hloPlans.get(0).mistakes\n )\n ),\n new Pair<>(\"wall\",\n new HLOInformation((int) hloPlans.get(1).timestamp.until(hloPlans.get(2).timestamp, MILLIS),\n hloPlans.get(2).mistakes - hloPlans.get(1).mistakes\n )\n ),\n new Pair<>(\"wall\",\n new HLOInformation((int) hloPlans.get(2).timestamp.until(hloPlans.get(3).timestamp, MILLIS),\n hloPlans.get(3).mistakes - hloPlans.get(2).mistakes\n )\n ),\n new Pair<>(\"row\",\n new HLOInformation((int) hloPlans.get(3).timestamp.until(hloPlans.get(4).timestamp, MILLIS),\n hloPlans.get(4).mistakes - hloPlans.get(3).mistakes\n )\n ),\n new Pair<>(\"row\",\n new HLOInformation((int) hloPlans.get(4).timestamp.until(hloPlans.get(5).timestamp, MILLIS),\n hloPlans.get(5).mistakes - hloPlans.get(4).mistakes\n )\n ),\n new Pair<>(\"row\",\n new HLOInformation((int) hloPlans.get(5).timestamp.until(hloPlans.get(6).timestamp, MILLIS),\n hloPlans.get(6).mistakes - hloPlans.get(5).mistakes\n )\n ),\n new Pair<>(\"row\",\n new HLOInformation((int) hloPlans.get(6).timestamp.until(hloPlans.get(7).timestamp, MILLIS),\n hloPlans.get(7).mistakes - hloPlans.get(6).mistakes\n )\n )\n );\n }\n return List.of();\n }", "public static boolean createNewLeague(LeagueBean l) {\r\n\t\t\r\n\t\tboolean status = false;\t\t\t\t\t// Status of createNewUser\r\n\t\tConnection conn = null;\t\t\t\t\t// DB Connection\r\n\t\tPreparedStatement insertNewLeague = null;\r\n\t\tint result = 0;\r\n\r\n\t\t// Connect to Database \r\n\t\ttry {\r\n\t\t\tconn = ConnectionManager.getConnection();\r\n\t\t\tinsertNewLeague = conn.prepareStatement(\"INSERT INTO league (leagueName, leaguePlayoffs, leaguePlayoffTeams, leagueStatus) VALUE (?,?,?,?)\");\r\n\t\t\tinsertNewLeague.setString(1, l.getLeagueName());\r\n\t\t\tinsertNewLeague.setString(2, l.getLeaguePlayoffs());\r\n\t\t\tinsertNewLeague.setString(3, l.getLeaguePlayoffTeams());\r\n\t\t\tinsertNewLeague.setString(4, l.getLeagueStatus());\r\n\t\t\t\r\n\t\t\tresult = insertNewLeague.executeUpdate();\r\n\t\t\tif(result == 1) {\r\n\t\t\t\tstatus = true;\t\t\t\t\r\n\t\t\t}\t\t\t\r\n\r\n\t\t// Catch all possible Exceptions\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t} finally {\r\n\t\t\tif (conn != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconn.close();\r\n\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (insertNewLeague != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tinsertNewLeague.close();\r\n\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t \r\n\t\treturn status;\r\n\t}", "@Override\n public void setLocationOfShop() {\n\n }", "public void addSpaceStation()\n\t{\n\t\t//if a space station is already spawned, one will not be added\n\t\tif (gameObj[5].size() == 0)\n\t\t{\n\t\t\tgameObj[5].add(new SpaceStation());\n\t\t\tSystem.out.println(\"SpaceStation added\");\n\t\t}else{\n\t\t\tSystem.out.println(\"A space station is already spawned\");\n\t\t}\n\t}", "@Override\n\tpublic List<Lane> getAllLanes(Integer tollPlazaId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t//create a query\n\t\tQuery<Lane> theQuery = currentSession.createQuery(\"from Lane where tollPlazaId='\"+tollPlazaId+\"' and statusFlag='ACTIVE'\", Lane.class);\t\n\t\t\n\t\tList<Lane> lanes = theQuery.getResultList();\n\t\t\n\t\treturn lanes;\n\t}", "public void saveWorkout(Wrapper wrapper){\n wrapper = setExercisesFromDB(wrapper);\r\n\r\n // zapisanie danych do tabeli TrainingPlan\r\n TrainingPlan trainingPlan = wrapper.getChooseExercises().get(0).getExerciseTraining().getTrainingPlan();\r\n trainingPlan = saveTrainingPlan(trainingPlan);\r\n\r\n // zapisanie danych do tabeli ExerciseTraining\r\n saveExerciseTraining(wrapper.getChooseExercises(), trainingPlan);\r\n }", "public void placePowerStation() {\n this.powerStation = true;\n\n }", "public boolean isStore() { return _store; }", "public String importPromotionShop() throws Exception {\n\t\tList<PromotionShopMap> lstCheckPromotionShopMap = new ArrayList<PromotionShopMap>();\n\t\tList<PromotionShopJoin> lstCheckPromotionShopJoin = new ArrayList<PromotionShopJoin>();\n\t\tactionStartTime = new Date();\n\t\tresetToken(result);\n\t\tisError = true;\n\t\ttry {\n\t\t\tif (currentUser == null || currentUser.getShopRoot() == null) {\n\t\t\t\tisError = true;\n\t\t\t\terrMsg = ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_PERMISSION);\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\t\t\tPromotionProgram promotionProgram = promotionProgramMgr.getPromotionProgramById(promotionId);\n\t\t\tif (promotionProgram == null) {\n\t\t\t\tisError = true;\n\t\t\t\terrMsg = ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_EXIST_DB, \"CTKM\");\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\t\t\t/*if (!ActiveType.WAITING.equals(promotionProgram.getStatus())) {\n\t\t\t\tisError = true;\n\t\t\t\terrMsg = Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.incorrect\");\n\t\t\t\treturn SUCCESS;\n\t\t\t}*/\n\t\t\ttotalItem = 0;\n\t\t\tString message;\n\t\t\tlstView = new ArrayList<CellBean>();\n\t\t\ttypeView = true;\n\t\t\tList<CellBean> lstFails = new ArrayList<CellBean>();\n\t\t\tList<List<String>> lstData = getExcelDataEx(excelFile, excelFileContentType, errMsg, 4);\n\t\t\tif (StringUtil.isNullOrEmpty(errMsg) && lstData != null && lstData.size() > 0) {\n\t\t\t\tDate currentSysDate = commonMgr.getSysDate();\n\t\t\t\tPromotionShopMap promotionShopMap;\n\t\t\t\t//\t\t\t\tPromotionCustomerMap promotionCustomerMap = null;\n\t\t\t\tList<String> row;\n\t\t\t\tShop shop = null;\n\t\t\t\t//List<String> parentShopCode = null;\n\t\t\t\t//Customer c = null;\n\t\t\t\tboolean isEdit;\n\t\t\t\t//\t\t\t\tboolean isCreateCustomer;\n\t\t\t\tPromotionShopMap psm = null;\n\t\t\t\tLogInfoVO logInfo = getLogInfoVO();\n\t\t\t\tString msg;\n\t\t\t\tString value;\n\t\t\t\tfor (int i = 0, size = lstData.size(); i < size; i++) {\n\t\t\t\t\tif (lstData.get(i) != null && lstData.get(i).size() > 0) {\n\t\t\t\t\t\tboolean flagContinue = true;\n\t\t\t\t\t\t//Bo qua cac dong trong\n\t\t\t\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(lstData.get(i).get(j))) {\n\t\t\t\t\t\t\t\tflagContinue = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (flagContinue) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmessage = \"\";\n\t\t\t\t\t\t//\t\t\t\t\t\tvalue = \"\";\n\t\t\t\t\t\ttotalItem++;\n\t\t\t\t\t\trow = lstData.get(i);\n\t\t\t\t\t\tisEdit = false;\n\t\t\t\t\t\t//\t\t\t\t\t\tisCreateCustomer = false;\n\t\t\t\t\t\tpromotionShopMap = new PromotionShopMap();\n\t\t\t\t\t\tpromotionShopMap.setPromotionProgram(promotionProgram);\n\t\t\t\t\t\tif (DateUtil.compareTwoDate(promotionProgram.getFromDate(), commonMgr.getSysDate()) > 0) {\n\t\t\t\t\t\t\tpromotionShopMap.setFromDate(promotionProgram.getFromDate());\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tpromotionShopMap.setFromDate(commonMgr.getSysDate());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//promotionShopMap.setFromDate(promotionProgram.getFromDate());\n\t\t\t\t\t\tpromotionShopMap.setToDate(promotionProgram.getToDate());\n\t\t\t\t\t\tif (row.size() > 0) {\n\t\t\t\t\t\t\tvalue = row.get(0);\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(value)) {\n\t\t\t\t\t\t\t\tshop = shopMgr.getShopByCode(value);\n\t\t\t\t\t\t\t\tif (shop == null) {\n\t\t\t\t\t\t\t\t\tmessage += ValidateUtil.getErrorMsgQuickly(ConstantManager.ERR_NOT_EXIST_DB, true, \"catalog.focus.program.shop.code\");\n\t\t\t\t\t\t\t\t} else if (!ActiveType.RUNNING.equals(shop.getStatus())) {\n\t\t\t\t\t\t\t\t\tmessage += ValidateUtil.getErrorMsgQuickly(ConstantManager.ERR_STATUS_INACTIVE, true, \"catalog.focus.program.shop.code\");\n\t\t\t\t\t\t\t\t} else if (!checkShopPermission(shop.getShopCode())) {\n\t\t\t\t\t\t\t\t\tmessage += ValidateUtil.getErrorMsg(ConstantManager.ERR_INVALID_SHOP, shop.getShopCode(), currentUser.getUserName()) + \"\\n\";\n\t\t\t\t\t\t\t\t} else if (shop.getType() == null || shop.getType().getSpecificType() == null || !ShopSpecificType.NPP.getValue().equals(shop.getType().getSpecificType().getValue())) {\n\t\t\t\t\t\t\t\t\t//Don vi khong phai la NPP\n\t\t\t\t\t\t\t\t\tmessage += R.getResource(\"common.cms.shop.islevel5.undefined\");\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\tmessage += R.getResource(\"common.missing.not.in.system.p\", R.getResource(\"catalog.focus.program.shop.code\")) + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(message)) {\n\t\t\t\t\t\t\t\tboolean flag1 = promotionProgramMgr.isExistChildJoinProgram(shop != null ? shop.getShopCode() : null, promotionId);\n\t\t\t\t\t\t\t\tif (flag1) {\n\t\t\t\t\t\t\t\t\tmessage += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.program.child.shop.is.exists\") + \"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (shop != null) {\n\t\t\t\t\t\t\t\tpsm = promotionProgramMgr.getPromotionShopMap(shop.getId(), promotionProgram.getId());\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(message)) {\n\t\t\t\t\t\t\t\tpromotionShopMap.setShop(shop);\n\t\t\t\t\t\t\t\tif (psm != null) {\n\t\t\t\t\t\t\t\t\tisEdit = true;\n\t\t\t\t\t\t\t\t\tpromotionShopMap = psm;\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// So suat NPP\n\t\t\t\t\t\tvalue = row.get(1);\n\t\t\t\t\t\tmsg = \"\";\n\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(value)) {\n\t\t\t\t\t\t\tif (value.trim().length() > maxlengthNumber || !StringUtil.isNumberInt(value)) {\n\t\t\t\t\t\t\t\tmsg = R.getResource(\"catalog.promotion.import.khtg.ctkm.value.number.integer\", R.getResource(\"catalog.suatNPP.code\"));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (Integer.valueOf(value) > 0) {\n\t\t\t\t\t\t\t\t\tpromotionShopMap.setQuantityMax(Integer.valueOf(value));\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmsg = Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.negative\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.suatNPP.code\"));\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 (promotionShopMap != null) {\n\t\t\t\t\t\t\tpromotionShopMap.setQuantityMax(null);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(msg)) {\n\t\t\t\t\t\t\tmessage += msg + \"\\n\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//So tien\n\t\t\t\t\t\tvalue = row.get(2);\n\t\t\t\t\t\tmsg = \"\";\n\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(value)) {\n\t\t\t\t\t\t\tif (value.trim().length() > maxlengthNumber || !StringUtil.isNumberInt(value)) {\n\t\t\t\t\t\t\t\tmsg = R.getResource(\"catalog.promotion.import.khtg.ctkm.value.number.integer\", R.getResource(\"catalog.promotion.import.khtg.ctkm.clmn.amount\"));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (Integer.valueOf(value) > 0) {\n\t\t\t\t\t\t\t\t\tpromotionShopMap.setAmountMax(BigDecimal.valueOf(Long.valueOf(value)));\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmsg = Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.negative\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.khtg.ctkm.clmn.amount\"));\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 (promotionShopMap != null) {\n\t\t\t\t\t\t\tpromotionShopMap.setAmountMax(null);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(msg)) {\n\t\t\t\t\t\t\tmessage += msg + \"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//So luong\n\t\t\t\t\t\tvalue = row.get(3);\n\t\t\t\t\t\tmsg = \"\";\n\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(value)) {\n\t\t\t\t\t\t\tif (value.trim().length() > maxlengthNumber || !StringUtil.isNumberInt(value)) {\n\t\t\t\t\t\t\t\tmsg = R.getResource(\"catalog.promotion.import.khtg.ctkm.value.number.integer\", R.getResource(\"catalog.promotion.import.khtg.ctkm.clmn.quantity\"));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (Integer.valueOf(value) > 0) {\n\t\t\t\t\t\t\t\t\tpromotionShopMap.setNumMax(BigDecimal.valueOf(Long.valueOf(value)));\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmsg = Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.negative\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.khtg.ctkm.clmn.quantity\"));\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 (promotionShopMap != null) {\n\t\t\t\t\t\t\tpromotionShopMap.setNumMax(null);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(msg)) {\n\t\t\t\t\t\t\tmessage += msg + \"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(message)) {\n\t\t\t\t\t\t\tif (lstCheckPromotionShopMap.size() == 0) {\n\t\t\t\t\t\t\t\tlstCheckPromotionShopMap = promotionProgramMgr.getListPromotionChildShopMapWithShopAndPromotionProgram(currentUser.getShopRoot().getShopId(), promotionId);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (lstCheckPromotionShopJoin.size() == 0) {\n\t\t\t\t\t\t\t\tlstCheckPromotionShopJoin = promotionProgramMgr.getListPromotionChildShopJoinWithShopAndPromotionProgram(currentUser.getShopRoot().getShopId(), promotionId);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (isEdit) {\n\t\t\t\t\t\t\t\tfor (PromotionShopMap item : lstCheckPromotionShopMap) {\n\t\t\t\t\t\t\t\t\tif (item.getId() != null && item.getId().equals(promotionShopMap.getId())) {\n\t\t\t\t\t\t\t\t\t\tlstCheckPromotionShopMap.remove(item);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tlstCheckPromotionShopMap.add(promotionShopMap);\n\t\t\t\t\t\t\tString error = validatePromotionShop(lstCheckPromotionShopMap, lstCheckPromotionShopJoin);\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(error)) {\n\t\t\t\t\t\t\t\tmessage += error + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(message)) {\n\t\t\t\t\t\t\tif (isEdit) {\n\t\t\t\t\t\t\t\tpromotionShopMap.setUpdateDate(currentSysDate);\n\t\t\t\t\t\t\t\tpromotionShopMap.setCreateUser(currentUser.getUserName());\n\t\t\t\t\t\t\t\tpromotionProgramMgr.updatePromotionShopMap(promotionShopMap, logInfo);\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\tif (promotionCustomerMap != null && promotionCustomerMap.getCustomer() != null) {\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\tpromotionCustomerMap.setShop(promotionShopMap.getShop());\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\tif (isCreateCustomer) {\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\tpromotionCustomerMap.setCreateDate(currentSysDate);\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\tpromotionCustomerMap.setCreateUser(currentUser.getUserName());\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\tpromotionProgramMgr.createPromotionCustomerMap(promotionCustomerMap, logInfo);\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\tpromotionCustomerMap.setUpdateDate(currentSysDate);\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\tpromotionCustomerMap.setUpdateUser(currentUser.getUserName());\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\tpromotionProgramMgr.updatePromotionCustomerMap(promotionCustomerMap, logInfo);\n\t\t\t\t\t\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\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (ActiveType.WAITING.equals(promotionProgram.getStatus()) || ActiveType.RUNNING.equals(promotionProgram.getStatus())) {\n\t\t\t\t\t\t\t\t\tpromotionShopMap.setCreateDate(currentSysDate);\n\t\t\t\t\t\t\t\t\tpromotionShopMap.setCreateUser(currentUser.getUserName());\n\t\t\t\t\t\t\t\t\tpromotionProgramMgr.createPromotionShopMap(promotionShopMap, logInfo);\n\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\tPromotionShopMap s = promotionProgramMgr.createPromotionShopMap(promotionShopMap, logInfo);\n\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\tif (promotionCustomerMap != null && promotionCustomerMap.getCustomer() != null) {\n\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\tpromotionCustomerMap.setPromotionShopMap(s);\n\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\tpromotionCustomerMap.setCreateDate(currentSysDate);\n\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\tpromotionCustomerMap.setCreateUser(currentUser.getUserName());\n\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\tpromotionCustomerMap.setShop(promotionShopMap.getShop());\n\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\tpromotionProgramMgr.createPromotionCustomerMap(promotionCustomerMap, logInfo);\n\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tisError = false;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tlstFails.add(StringUtil.addFailBean(row, message));\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttypeView = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Export error\n\t\t\t\tgetOutputFailExcelFile(lstFails, ConstantManager.TEMPLATE_CATALOG_PP_SHOP_FAIL);\n\t\t\t}\n\t\t\tif (StringUtil.isNullOrEmpty(errMsg)) {\n\t\t\t\tisError = false;\n\t\t\t}\n\t\t} catch (BusinessException ex) {\n\t\t\tLogUtility.logErrorStandard(ex, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.importPromotionShop\"), createLogErrorStandard(actionStartTime));\n\t\t\tisError = true;\n\t\t\terrMsg = ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM);\n\t\t}\n\t\tlstCheckPromotionShopMap.clear();\n\t\t//\t\tlstCheckPromotionShopMap = null;\n\t\tlstCheckPromotionShopJoin.clear();\n\t\t//\t\tlstCheckPromotionShopJoin = null;\n\t\treturn SUCCESS;\n\t}", "@Override\n\tpublic void saveLane(Lane theLane) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\tcurrentSession.saveOrUpdate(theLane);\n\t}", "public static void pushRouteToDatabase() {\n Database database = Database.getInstance();\n long distance = calculateTotalDistance(LocationService.getLocationPoints());\n long time = stopStart.getStopTime() - stopStart.getStartTime();\n database.addToDailyDistance(distance);\n database.addToDailyTime(time);\n }", "private synchronized void doSetWiperTiles()\n {\n // Setup tiling paths\n if((bWiperAvailable) && (bNetworkPvdEnabled != true))\n {\n // create the XPS instance, passing in our Context\n if (Config.LOGV) Log.v(TAG,\"Wiper Setting Tiles\");\n\n if((null==szUsername) ||(null==szRealm))\n {\n Log.e(TAG,\"Username /Realm not set\");\n bWiperAvailable = false;\n }\n }\n else\n {\n if(Config.LOGD) Log.d(TAG,\"Skip Tile Setup\");\n }\n }", "public ArrayList<Store> getAllStores() throws IllegalArgumentException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn this.storeMapper.findAllStore();\r\n\t}", "public void addNewGame(gameLocation game) {\n\n\t\t// add to database here\n\t\tCursor checking_avalability = helper.getGameLocationData(GamelocationTableName,\n\t\t\t\tgame.getTitle());\n\t\tif (checking_avalability == null) {\t\t\t\t\n\n\t\t\tGAME_LIST.add(game);\n\n\t\t\tlong RowIds = helper.insertGameLocation(GamelocationTableName,\n\t\t\t\t\tgame.getTitle(), game.getDescription(),\n\t\t\t\t\tconvertToString(game.getIsCouponUsed()));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t} else if (checking_avalability.getCount() == 0) { \t\t\t\t// checking twice to make sure it will not miss \n\n\t\t\tGAME_LIST.add(game);\n\n\t\t\tlong RowIds = helper.insertGameLocation(GamelocationTableName,\n\t\t\t\t\tgame.getTitle(), game.getDescription(),\n\t\t\t\t\tconvertToString(game.getIsCouponUsed()));\t\t\t// reuse method\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t}\n\n\t}", "public void save() {\n\t\tSiteDB.getSiteDB().sites = mySites;\n\t\t\n\t\t// create a new cloned list of sites (from the ones we just installed!)\n\t\tcreateImmutableSitelist();\n\t\tsitePanel.reloadSitelist();\n\n\t\t// Save the new site list to disk\n\t\t// if we're successful, \n\t\t// notify that we're no longer modified, plus we should redraw.\n\t\tif(SiteDB.getSiteDB().save())\n\t\t\tsitePanel.setDataModified(false);\t\t\n\t}", "@SuppressWarnings({\"unchecked\"})\n private void loadDataFromOSM() {\n try {\n System.out.println(\">> Attempting to load data from OSM database...\");\n // Load JDBC driver and establish connection\n Class.forName(\"org.postgresql.Driver\");\n String url = \"jdbc:postgresql://localhost:5432/osm_austria\";\n mConn = DriverManager.getConnection(url, \"geo\", \"geo\");\n // Add geometry types to the connection\n PGConnection c = (PGConnection) mConn;\n c.addDataType(\"geometry\", (Class<? extends PGobject>) Class.forName(\"org.postgis.PGgeometry\"));\n c.addDataType(\"box2d\", (Class<? extends PGobject>) Class.forName(\"org.postgis.PGbox2d\"));\n\n // Create statement and execute query\n Statement s = mConn.createStatement();\n\n // Get boundary types\n String query = \"SELECT * FROM boundary_area AS a WHERE a.type IN (8001,8002,8003,8004);\";\n executeSQL(query, s);\n\n query = \"SELECT * FROM landuse_area AS a WHERE a.type IN (5001, 5002);\";\n executeSQL(query, s);\n\n /* // Get landuse types\n\n r = s.executeQuery(query);\n\n while (r.next()) {\n String id = r.getString(\"id\");\n int type = r.getInt(\"type\");\n PGgeometry geom = (PGgeometry) r.getObject(\"geom\");\n\n switch (geom.getGeoType()) {\n case Geometry.POLYGON:\n String wkt = geom.toString();\n org.postgis.Polygon p = new org.postgis.Polygon(wkt);\n if (p.numRings() >= 1) {\n Polygon poly = new Polygon();\n LinearRing ring = p.getRing(0);\n for (int i = 0; i < ring.numPoints(); i++) {\n org.postgis.Point pPG = ring.getPoint(i);\n poly.addPoint((int) pPG.x, (int) pPG.y);\n }\n mObjects.add(new GeoObject(id, type, poly));\n }\n break;\n default:\n break;\n }\n }\n\n // Get natural types\n query = \"SELECT * FROM natural_area AS a WHERE a.type IN (6001, 6002, 6005);\";\n\n r = s.executeQuery(query);\n\n while (r.next()) {\n String id = r.getString(\"id\");\n int type = r.getInt(\"type\");\n PGgeometry geom = (PGgeometry) r.getObject(\"geom\");\n\n switch (geom.getGeoType()) {\n case Geometry.POLYGON:\n String wkt = geom.toString();\n org.postgis.Polygon p = new org.postgis.Polygon(wkt);\n if (p.numRings() >= 1) {\n Polygon poly = new Polygon();\n LinearRing ring = p.getRing(0);\n for (int i = 0; i < ring.numPoints(); i++) {\n org.postgis.Point pPG = ring.getPoint(i);\n poly.addPoint((int) pPG.x, (int) pPG.y);\n }\n mObjects.add(new GeoObject(id, type, poly));\n }\n break;\n default:\n break;\n }\n }\n */\n\n s.close();\n mConn.close();\n } catch (Exception _e) {\n System.out.println(\">> Loading data failed!\\n\" + _e.toString());\n }\n\n }", "void setupLocalStore(L1ServerMapLocalCacheStore serverMapLocalStore, PinnedEntryFaultCallback callback);", "public List<Laptop> findAll() {\n\t\treturn laptopDao.findAll();\r\n\t}", "List<RouteStore> getAllRouteStore();", "public void addNewPool(poolLocation pool) {\n\n\t\t// add to database here\n\t\tCursor checking_avalability = helper.getPoolLocationData(PooltableName,\n\t\t\t\tpool.getTitle());\n\t\tif (checking_avalability == null) {\t\t\t\t\n\n\t\t\tPOOL_LIST.add(pool);\n\n\t\t\tlong RowIds = helper.insertPoolLocation(PooltableName,\n\t\t\t\t\tpool.getTitle(), pool.getDescription(),\n\t\t\t\t\tconvertToString(pool.getIsCouponUsed()));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t} else if (checking_avalability.getCount() == 0) { \t\t\t\t// checking twice to make sure it will not miss \n\n\t\t\tPOOL_LIST.add(pool);\n\n\t\t\tlong RowIds = helper.insertPoolLocation(PooltableName,\n\t\t\t\t\tpool.getTitle(), pool.getDescription(),\n\t\t\t\t\tconvertToString(pool.getIsCouponUsed()));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t}\n\n\t}", "public HotelDatabase() {\n\n this.HOTEL = new ArrayList<String>(Arrays.asList(\"HOTEL\", \"HOTEL_NAME\", \"BRANCH_ID\", \"PHONE\"));\n this.ROOM = new ArrayList<String>(Arrays.asList(\"ROOM\", \"HOTEL_NAME\", \"BRANCH_ID\", \"TYPE\", \"CAPACITY\"));\n this.CUSTOMER = new ArrayList<String>(Arrays.asList(\"CUSTOMER\", \"C_ID\", \"FIRST_NAME\", \"LAST_NAME\", \"AGE\", \"GENDER\"));\n this.RESERVATION = new ArrayList<String>(Arrays.asList(\"RESERVATION\", \"C_ID\", \"RES_NUM\", \"PARTY_SIZE\", \"COST\"));\n this.HOTEL_ADDRESS = new ArrayList<String>(Arrays.asList(\"HOTEL_ADDRESS\", \"HOTEL_NAME\", \"BRANCH_ID\", \"CITY\", \"STATE\", \"ZIP\"));\n this.HOTEL_ROOMS = new ArrayList<String>(Arrays.asList(\"HOTEL_ROOMS\", \"HOTEL_NAME\", \"BRANCH_ID\", \"TYPE\", \"QUANTITY\"));\n this.BOOKING = new ArrayList<String>(Arrays.asList(\"BOOKING\", \"C_ID\", \"RES_NUM\", \"CHECK_IN\", \"CHECK_OUT\", \"HOTEL_NAME\", \"BRANCH_ID\", \"TYPE\"));\n this.INFORMATION = new ArrayList<String>(Arrays.asList(\"INFORMATION\", \"HOTEL_NAME\", \"BRANCH_ID\", \"TYPE\", \"DATE_FROM\", \"DATE_TO\", \"NUM_AVAIL\", \"PRICE\"));\n this.NUMBERS = new ArrayList<String>(Arrays.asList(\"BRANCH_ID\", \"CAPACITY\", \"C_ID\", \"AGE\", \"RES_NUM\", \"PARTY_SIZE\", \"COST\", \"ZIP\", \"QUANTITY\", \"NUM_AVAILABLE\", \"PRICE\"));\n this.DATES = new ArrayList<String>(Arrays.asList(\"CHECK_IN\", \"CHECK_OUT\", \"DATE_FROM\", \"DATE_TO\"));\n\n // INDEXING: 0 1 2 3 4 5 6 7\n this.ALL = new ArrayList<ArrayList<String>>(Arrays.asList(HOTEL, ROOM, CUSTOMER, RESERVATION, HOTEL_ADDRESS, HOTEL_ROOMS, BOOKING, INFORMATION));\n }", "@Test\n\tpublic void testLopLCSchemeFlavors() \n\t{\n\t\tString id = \"lcFlavors\";\n\t\tassertLCVolLopped(id);\n\t\tassertNoUnloppedLCVol1(id);\n\t\tassertNoUnloppedLCVol2(id);\n\t}", "private void addPollingPlace() {\n\n\t\t// when the election is not open,\n\t\tif (!election.pollsStatus()) {\n\t\t\tSystem.out.println(\"The election is closed.\");\n\t\t\tSystem.out.println(\"No more polling places may be added.\");\n\t\t}else {\n\n\t\t\tString pollingPlaceName = ValidInputReader.getValidString(\"Name of polling place:\", \"^[a-zA-Z0-9 ]+$\");\n\t\t\ttry {\n\t\t\t\telection.addPollingPlace(pollingPlaceName);\n\t\t\t\tSystem.out.println(\"Added \" + pollingPlaceName + \".\");\n\n\t\t\t}catch(FileNotFoundException fnfError){\n\t\t\t\t// when the polling place is not found,\n\t\t\t\tSystem.out.println(fnfError.getMessage());\n\t\t\t}\n\n\t\t}\n\t}", "private void fetchStopPoints() {\n\t\tif (mode == Mode.ADD_MODE && routeComboBox.getValue() != null) {\n\t\t\tstopPoints = SQLExecutor.fetchStopPointsByRoute(routeComboBox.getValue());\n\t\t} else if (mode == Mode.UPDATE_MODE && tripComboBox.getValue() != null){\n\t\t\tstopPoints = SQLExecutor.fetchStopPointsByTrip(tripComboBox.getValue());\n\t\t}\n\t}" ]
[ "0.5435085", "0.53972596", "0.53065014", "0.5290064", "0.52673984", "0.5214489", "0.5207084", "0.519539", "0.51642036", "0.5082325", "0.502996", "0.50124115", "0.50112945", "0.5002908", "0.4943146", "0.49281013", "0.49248177", "0.48994124", "0.4868537", "0.4833068", "0.4822485", "0.48201358", "0.4814962", "0.48141968", "0.48081532", "0.4793073", "0.47792643", "0.47769907", "0.4733844", "0.4724169", "0.47131452", "0.47115707", "0.47089353", "0.47055507", "0.4704657", "0.4693645", "0.4692976", "0.46865124", "0.46656987", "0.46644625", "0.46598268", "0.46584406", "0.46534625", "0.46503884", "0.46246624", "0.4617658", "0.4609876", "0.46003187", "0.45932007", "0.45915058", "0.45872653", "0.45805678", "0.4570856", "0.45666644", "0.4566488", "0.45621035", "0.4562015", "0.45615196", "0.4558132", "0.45370632", "0.45339966", "0.45319518", "0.4521749", "0.45204532", "0.45149338", "0.45121974", "0.4512015", "0.4510704", "0.45093346", "0.45051378", "0.45041782", "0.4503886", "0.4489791", "0.44841716", "0.4484048", "0.44815972", "0.44756398", "0.4471898", "0.4470417", "0.44667637", "0.44602895", "0.44570845", "0.4456202", "0.44551873", "0.44503844", "0.44501343", "0.44499603", "0.44498375", "0.44488537", "0.4448576", "0.4444367", "0.44420284", "0.4439122", "0.4438165", "0.4431984", "0.44314682", "0.4427395", "0.44271687", "0.44232073", "0.4422268" ]
0.45300728
62
=========================== HANDLE NETWORK CONNECTION ===============================
public void establishConnection() { httpNetworkService = new HTTPNetworkService(handler); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run() {\n\t\t\t\tHttpURLConnection connection = null;\r\n\t\t\t\tStringBuilder response = new StringBuilder();\r\n\t\t\t\ttry{\r\n\t\t\t\t\tURL url = new URL(address);\r\n\t\t\t\t\tconnection = (HttpURLConnection) url.openConnection();\r\n\t\t\t\t\tconnection.setRequestMethod(\"GET\");\r\n\t\t\t\t\tconnection.setConnectTimeout(8000);\r\n\t\t\t\t\tconnection.setReadTimeout(8000);\r\n\t\t\t\t\tconnection.setDoInput(true);\r\n\t\t\t\t\t//connection.setDoOutput(true);\r\n\t\t\t\t\tint responseCode = connection.getResponseCode();\r\n\t\t\t\t\tLog.d(\"HttpUtil\", String.valueOf(responseCode));\r\n\t\t\t\t\tif(responseCode != 200){\r\n\t\t\t\t\t\tLog.d(\"HttpUtil\", \"Get Fail\");\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tInputStream in = connection.getInputStream();\r\n\t\t\t\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in));\r\n\t\t\t\t\t\tString line;\r\n\t\t\t\t\t\twhile((line = reader.readLine()) != null){\r\n\t\t\t\t\t\t\tresponse.append(line);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tLog.d(\"HttpUtil\", \"Get Success\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(listener != null){\r\n\t\t\t\t\t\tlistener.onFinish(response.toString());\r\n\t\t\t\t\t}\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\tif(listener != null){\r\n\t\t\t\t\t\tlistener.onError(e);\r\n\t\t\t\t\t}\r\n\t\t\t\t}finally{\r\n\t\t\t\t\tif(connection != null){\r\n\t\t\t\t\t\tconnection.disconnect();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\r\n\tpublic void run() {\n\t\tresult = InternetConn.pushURL(URL);\r\n\t\tif(result.equals(\"-1\")){\r\n\t\t\t\r\n\t\t\tMessage msg = new Message();\r\n\t\t\tmsg.obj = \"网络连接错误\";\r\n\t\t\tmsg.what = -1;\r\n\t\t\tmHandler.sendMessage(msg);\r\n\t\t}else{\r\n\t\t\t\r\n\t\t\tMessage msg = new Message();\r\n\t\t\tmsg.obj = result;\r\n\t\t\tmsg.what = 1;\r\n\t\t\tmHandler.sendMessage(msg);\r\n\t\t}\r\n\t}", "public abstract void handleConnected() throws Exception;", "@Override\r\n public Object connect() {\n if(status()){\r\n //creates thread that checks messages in the network\r\n System.out.println(\"notifying network that connection is good\");\r\n notifyObservers(this);\r\n }\r\n return socket;\r\n }", "@Override\n\tprotected void onNetworkConnected(NetType type) {\n\n\t}", "void handleConnectionOpened();", "public void openConnection() {\n System.out.println(\"Opening connection...\");\n\n try {\n String HOST = \"192.168.4.1\";\n int PORT = 2323;\n connectionSocket = new Socket(HOST, PORT);\n connectionSocket.setTcpNoDelay(true);\n\n writer = new BufferedWriter(new OutputStreamWriter(new BufferedOutputStream(connectionSocket.getOutputStream())));\n reader = new BufferedReader(new InputStreamReader(connectionSocket.getInputStream()));\n\n System.out.println(\"openConnection(): Success\");\n return;\n } catch (UnknownHostException e) {\n System.out.println(\"UnknownHostException at openConnection()\");\n } catch (IOException e) {\n System.out.println(\"IOException at openConnection()\");\n } catch (Exception e) {\n System.out.println(\"Exception at openConnection()\");\n System.out.println(e.toString());\n }\n\n System.out.println(\"Failed to connect\");\n }", "@Override\n protected Void doInBackground(Void... params) {\n try {\n socket = new Socket(\"medivhus.ddns.net\", 1038);\n try {\n start();\n } catch (IOException e) {\n e.printStackTrace();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n if(socket==null)\n {\n text(\"System\",\"Server nicht erreichbar\");\n }\n return null;\n }", "@Override\n public void run()\n {\n close(false);\n try\n {\n if (!isConnected())\n connectMS(msServer.getIp(), msServer.getPort());\n }\n catch (Exception e)\n {\n Log.e(\"Dudu_SDK\",\n \"getServer ...failed ...user default server... \");\n }\n }", "public void run() {\n // variables to store key HTTP(S) request information\n String sReadLine;\n boolean bNewHTTPHeader = true;\n String sHTTPMethod = \"\";\n String sHTTPRequest = \"\";\n boolean bPersistentConnection = true;\n\n // print the client IP:port\n System.out.println(\"client \" + connectedClient.getInetAddress() + \":\"\n + connectedClient.getPort() + \" is connected\");\n System.out.println();\n\n // create BufferedReader to read in from socket & DataOutputStream to send out to socket\n try {\n inFromClient = new BufferedReader(new InputStreamReader(connectedClient.getInputStream()));\n outToClient = new DataOutputStream(connectedClient.getOutputStream());\n\n } catch (IOException e) {\n System.out.println(\"There was an error setting up the buffered reader, \" +\n \"data stream, or reading from the client:\");\n System.out.println(\" \" + e);\n }\n\n // process the HTTP(S) request\n try {\n // break apart the input to read the http method and request\n while ((sReadLine = inFromClient.readLine()) != null) {\n // create a tokenizer to parse the string\n StringTokenizer tokenizer = new StringTokenizer(sReadLine);\n\n // if new HTTP header, then pull out the Method and Request (first line)\n if (bNewHTTPHeader) {\n sHTTPMethod = tokenizer.nextToken().toUpperCase(); // HTTP method: GET, HEAD\n sHTTPRequest = tokenizer.nextToken().toLowerCase(); // HTTP query: file path\n bNewHTTPHeader = false; // next lines are not part of a new HTTP header\n\n // print to console\n System.out.println(\"New HTTP Header:\");\n System.out.println(\" HTTP Method: \" + sHTTPMethod);\n System.out.println(\" HTTP Request: \" + sHTTPRequest);\n\n // not a new HTTP header: check for key params Connection or empty line\n } else if (sReadLine.length() > 0) {\n // get the next token in the input line\n String sParam = tokenizer.nextToken();\n\n // check to update connection status\n if (sParam.equalsIgnoreCase(\"Connection:\")) {\n String sConnectionRequest = tokenizer.nextToken();\n bPersistentConnection = (sConnectionRequest.equalsIgnoreCase(\"keep-alive\"));\n // print param to console\n System.out.println(\" param: \" + sParam + \" \" + sConnectionRequest);\n } else {\n // otherwise just print param to console\n System.out.println(\" param: \" + sParam);\n }\n\n // no more lines to header: header is over\n } else {\n //print to console\n System.out.println(\"End of Header\");\n System.out.println();\n\n // get the status code & response, then send back to client\n int iStatusCode = getStatusCode(sHTTPMethod, sHTTPRequest);\n String sResponse = getResponse(sHTTPMethod, sHTTPRequest, iStatusCode);\n sendResponse(sHTTPMethod, sHTTPRequest, iStatusCode, sResponse, bPersistentConnection);\n\n // next line is part of a new HTTP header\n bNewHTTPHeader = true;\n }\n }\n\n // loop has ended: client input is null (client must want to disconnect)\n this.connectedClient.close();\n System.out.println(\"input from client \" + connectedClient.getInetAddress() +\n + connectedClient.getPort() + \" is null. This socket closed.\");\n } catch (IOException e) {\n System.out.println(\"There was an error reading the HTTP request:\");\n System.out.println(\" \" + e);\n }\n }", "public abstract void connect() throws UnknownHostException, IOException;", "protected HttpUtils.HttpResult doInBackground() {\n\t\tHttpUtils.HttpResult result = null;\n if (context != null && !HttpUtils.isOnline(context)) {\n result = new HttpUtils.HttpResult();\n result.setEnvelope(context.getString(R.string.error_internet_not_connected));\n result.setCode(HttpUtils.HttpResult.BAD_REQUEST);\n result.setMessage(context.getString(R.string.error_connecting_message));\n return result;\n }\n\t\tif (RequestType.POST == requestType) {\n\t\t\tresult = HttpUtils.post(url, envelope, headers);\n\t\t} else if (RequestType.GET == requestType) {\n\t\t\tresult = HttpUtils.get(url, headers);\n\t\t}\n\t\treturn result;\n\t}", "private void requestServerToGetInformation() {\n Net net = Net.getInstance();\n Log.i(TAG, \"requestServerToGetInformation: Start connect server\");\n net.get(AppConstant.SERVER_COMBO_URL, new Callback() {\n @Override\n public void onFailure(Call call, IOException e) {\n Log.i(TAG, \"onFailure: connect error; \" + e.getMessage());\n }\n @Override\n public void onResponse(Call call, Response response) throws IOException {\n // get the JSON from responses.\n String jsonStr = response.body().string();\n Log.i(TAG, \"onResponse: --------------------------------\" + jsonStr);\n parseJsonAndUpdateView(jsonStr.trim());\n }\n });\n }", "@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tLog.v(TAG,\"connect to server...\");\n\t\t\t\tsocket=new Socket(\"140.116.246.200\",4000+id);\n\t\t\t\tout=socket.getOutputStream();\n\t\t\t\tin=socket.getInputStream();\n\t\t\t\tLog.v(TAG,\"connect!!\");\n\t\t\t\n\t\t\t\tsendData(\"ask#\");\n\t\t\t\tUIHr.post(refreshUI); \t\n\t\t\t\tresult=new Integer(readData());\n\t\t\t\tUIHr.post(refreshUI); \t\t\n\t\t\t\tsendData(\"over#\");\n\t\t\t\tsocket.close();\n\t\t\t} catch (UnknownHostException e) {e.printStackTrace();} \n\t\t\tcatch (IOException e) {e.printStackTrace();}\n\t\t}", "synchronized private final void connectToServer() throws IOException {\n if(this.provider.useSSH()){\n if(this.userinfo == null) this.userinfo = new SSHSocket.SshUserInfo();\n this.sock = MdsIp.newSSHSocket(this.userinfo, this.provider);\n }else this.sock = new Socket(this.provider.host, this.provider.port);\n if(DEBUG.D) System.out.println(this.sock.toString());\n this.sock.setTcpNoDelay(true);\n this.dis = this.sock.getInputStream();\n this.dos = this.sock.getOutputStream();\n /* connect to mdsip */\n final Message message = new Message(this.provider.user, this.getMsgId());\n message.useCompression(this.use_compression);\n this.sock.setSoTimeout(3000);\n long tick = -System.nanoTime();\n message.send(this.dos);\n final Message msg = Message.receive(this.dis, null);\n tick += System.nanoTime();\n if(DEBUG.N) System.out.println(tick);\n this.isLowLatency = tick < 50000000;// if response is faster than 50ms\n this.sock.setSoTimeout(0);\n if(msg.header.get(4) == 0){\n this.close();\n return;\n }\n this.receiveThread = new MRT();\n this.receiveThread.start();\n this.connected = true;\n MdsIp.this.dispatchMdsEvent(new MdsEvent(this, MdsEvent.HAVE_CONTEXT, \"Connected to \" + this.provider.toString()));\n }", "@Override\n protected String doInBackground(Void... params) {\n Connector con = new Connector();\n return con.send(urlAddress, data);\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tSocket s = new Socket(ip,6969);\n\t\t\t\t\t\t\t\ts.close();\n\t\t\t\t\t\t\t\tconnection=true;\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 catch (UnknownHostException e1) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\tLog.d(null, \"Wrong ip\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t\tLog.d(null, \"Wrong ip\");\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}", "private void connection() {\n boolean connect;\n try {\n connect = true;\n this.jTextArea1.setText(\"Server starts...\");\n server = new MultiAgentServer(this);\n String ip = \"\";\n int errorBit = 256;\n for (int i = 0; i < server.getIpAddr().length; i++) {\n int currentIP = server.getIpAddr()[i];\n if (currentIP < 0) {\n currentIP += errorBit;\n }\n ip += currentIP + \".\";\n }\n ip = ip.substring(0, ip.length() - 1);\n System.out.println(ip);\n Naming.rebind(\"//\" + ip + \"/server\", server);\n this.jTextArea1.setText(\"Servername: \" + ip);\n this.jTextArea1.append(\"\\nServer is online\");\n } catch (MalformedURLException | RemoteException e) {\n this.jTextArea1.append(\"\\nServer is offline, something goes wrong!!!\");\n connect = false;\n }\n if (dialog.getMusicBox().isSelected()) {\n sl = new SoundLoopExample();\n }\n reconnectBtn.setEnabled(!connect);\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\t// defaultHttpClient\n\t\t\t\t\tLog.e(\"URL_\", url);\n\t\t\t\t\tDefaultHttpClient httpClient = new DefaultHttpClient();\n\t\t\t\t\tHttpPost httpPost = new HttpPost(url);\n\t\t\t\t\tLog.e(\"URL\", url);\n\t\t\t\t\thttpPost.setEntity(new UrlEncodedFormEntity(params,\n\t\t\t\t\t\t\tHTTP.UTF_8));\n\t\t\t\t\t// httpPost.setEntity(new UrlEncodedFormEntity(params));\n\n\t\t\t\t\t\n\t\t\t\t\tHttpResponse httpResponse = httpClient.execute(httpPost);\n\t\t\t\t\tHttpEntity httpEntity = httpResponse.getEntity();\n\t\t\t\t\tis = httpEntity.getContent();\n\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tlistener.connectError();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\ttry {\n\n\t\t\t\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\t\t\t\tnew InputStreamReader(is, \"iso-8859-1\"), 8);\n\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\tString line = null;\n\t\t\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\t\t\tsb.append(line + \"n\");\n\t\t\t\t\t}\n\t\t\t\t\tis.close();\n\t\t\t\t\tjson = sb.toString();\n\t\t\t\t\t// Logger.e(json);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.e(\"Buffer Error\",\n\t\t\t\t\t\t\t\"Error converting result: \" + e.toString());\n\t\t\t\t\tlistener.connectError();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// try parse the string to a JSON object\n\t\t\t\ttry {\n\t\t\t\t\tLog.e(\"_responce\", json);\n\t\t\t\t\tjObj = new JSONObject(json);\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\n\t\t\t\t\tlistener.connectError();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tlistener.connectSucessfull(jObj);\n\t\t\t\t} catch (JSONException 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}", "@Override\n public void run()\n {\n if (nsServer == null)\n {\n Log.e((nsServer==null)+\"\");\n connectNS(ip, port);\n }\n else\n {\n Log.e(nsServer.toString());\n connectNS(nsServer.getIp(), nsServer.getPort());\n }\n }", "private void openConnection(){}", "@Override\n\t\t\t\t\tpublic void run() {\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tList<String> headers = readRequest(client);\n\t\t\t\t\t\t\tif (headers != null && headers.size() >= 1) {\n\t\t\t\t\t\t\t\tString requestURL = getRequestURL(headers.get(0));\n\t\t\t\t\t\t\t\tLog.d(TAG, requestURL);\n\n\t\t\t\t\t\t\t\tif (requestURL.startsWith(\"http://\")) {\n\n\t\t\t\t\t\t\t\t\t// HttpRequest request = new\n\t\t\t\t\t\t\t\t\t// BasicHttpRequest(\"GET\", requestURL);\n\n\t\t\t\t\t\t\t\t\tprocessHttpRequest(requestURL, client, headers);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tprocessFileRequest(requestURL, client, headers);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (IllegalStateException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "private void start_Connexion()throws UnknownHostException, IOException{\n \tsocket = new Socket(IP,num_Socket);\n \tout = new ObjectOutputStream(socket.getOutputStream());\n \tin = new ObjectInputStream(socket.getInputStream());\n \t\n }", "@Override\r\n public void run() {\n\r\n try {\r\n mSock.connect();\r\n } catch (IOException e) {\r\n try {\r\n mSock.close();\r\n } catch (IOException e1) {\r\n Log.e(TAG, \"close error.\");\r\n e1.printStackTrace();\r\n }\r\n Log.e(TAG, \"connect error.\");\r\n e.printStackTrace();\r\n }\r\n\r\n }", "@Override\n public void run() {\n String inMessage;\n String GET = null;\n String cookie = null;\n try {\n boolean coockieCheck = false;\n boolean validURL = false;\n boolean getRequest = false;\n this.in = new BufferedReader(new InputStreamReader(this.connectionSocket.getInputStream()));\n this.out = new PrintWriter(connectionSocket.getOutputStream());\n protocol = new netProtocol();\n //parses incomming header data, pass that to netProtocol to extract information about headers\n while (true) {\n inMessage = in.readLine();\n //System.out.println(inMessage);\n if(inMessage == null){\n break;\n }\n\n String response = protocol.parseHeaderInfo(inMessage);\n //System.out.println(\"READ...\" + inMessage + \" RESPONSE...\" + response);\n\n if(response.equals(VALID)){ //check if hostname valid\n validURL = true;\n } else if(response.equals(INVALID)){\n postErrorPage();\n break;\n }\n\n if(response.equals(\"GET\")){\n getRequest = true;\n GET = inMessage;\n }\n\n if(response.equals(\"CookieFound\")){\n cookie = inMessage;\n }\n\n if(inMessage.length() == 0){ //when all headers have been parsed, we need to come up with an appropriate response to POST back\n if(validURL && getRequest){\n processRequest(GET, cookie);\n } else{\n postErrorPage();\n }\n out.close();\n in.close();\n connectionSocket.close();\n break;\n }\n }\n\n\n } catch (IOException e) {\n e.printStackTrace();\n System.out.println(\"Client closed.\");\n }\n }", "public void internetConnectionProble()\n\t\t{\n\n\n\t\t}", "ClientConnection connection();", "@Override\n protected TcpClient doInBackground(String... message) {\n tcpClient = new TcpClient(ip, Integer.valueOf(port));\n tcpClient.run();\n\n return null;\n }", "@Override\n\tprotected ConnectionType getConnectionType() {\n\t\treturn ConnectionType.Network;\n\t}", "@Override\n\tprotected void runProtocol() throws AtmException\n\t{\n\t\ttrace(\"runProtocol()\");\n\t\twhileConnected();\n\t}", "private void establishConnection() throws UnknownHostException, \n \t\t\t\t\t\t\t\t\t\t IOException {\n \t socket = new Socket(serverIP, serverPort);\n }", "public void initiateConnection() {\n\t\tif (Settings.getRemoteHostname() != null) {\n\t\t\ttry {\n\t\t\t\toutgoingConnection(new Socket(Settings.getRemoteHostname(), Settings.getRemotePort()));\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.error(\"failed to make connection to \" + Settings.getRemoteHostname() + \":\"\n\t\t\t\t\t\t+ Settings.getRemotePort() + \" :\" + e);\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t}\n\t}", "public abstract void handleClient(Client conn);", "@Override\n \tpublic void connectionOpened(NetHandler netClientHandler, String server, int port, INetworkManager manager)\n \t{\n \t}", "public void run() {\n sendMessageToClient(\"Connexion au serveur réussie\");\n\n while (isActive) {\n try {\n String input = retrieveCommandFromClient();\n handleCommand(input);\n } catch (ServerException e) {\n System.out.println(e.getMessage());\n sendMessageToClient(e.getMessage());\n } catch (ClientOfflineException e) {\n System.out.println(\"Client # \" + clientId + \" deconnecte de facon innattendue\");\n deactivate();\n }\n }\n\n close();\n }", "protected abstract void onConnect();", "private DataConnection() {\n \tperformConnection();\n }", "private void cmdNet() {\n int port = 1777;\n try {\n Log.verbose(\"waiting for connection on port \" + port + \"...\");\n ServerSocket socket = new ServerSocket(port);\n Socket client = socket.accept();\n InetAddress clientAddr = client.getInetAddress();\n Log.verbose(\"connected to \" + clientAddr.getHostName() + \"/\"\n + client.getPort());\n Readline readline = new SocketReadline(client, true, \"net>\");\n fReadlineStack.push(readline);\n } catch (IOException ex) {\n Log.error(\"Can't bind or listen on port \" + port + \".\");\n }\n }", "public void getNetworkConnection() {\n System.out.println(((AndroidDriver) getDriver()).getConnection());\n }", "@Override\n protected Boolean doInBackground(String... args){\n ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = cm.getActiveNetworkInfo();\n if (netInfo != null && netInfo.isConnected()) {\n try {\n URL url = new URL(\"http://www.google.com\");\n HttpURLConnection urlc = (HttpURLConnection) url.openConnection();\n urlc.setConnectTimeout(3000);\n urlc.connect();\n if (urlc.getResponseCode() == 200) {\n return true;\n }\n } catch (MalformedURLException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n return false;\n\n }", "protected void connectionEstablished() {}", "public void run() {\n\t\t\t\tHttpURLConnection connection = null;\r\n\r\n\t\t\t\tPrintWriter printWriter = null;\r\n\t\t\t\tBufferedReader bufferedReader = null;\r\n\r\n\t\t\t\tStringBuffer response = new StringBuffer();\r\n\t\t\t\tStringBuffer request = new StringBuffer();\r\n\r\n\t\t\t\t// 组织请求参数\r\n\t\t\t\tif (null != params && !params.isEmpty()){\r\n\t\t\t\t\tfor (Map.Entry<String, String> entry : params.entrySet()){\r\n\t\t\t\t\t\trequest.append(entry.getKey()).append(\"=\").append(entry.getValue()).append(\"&\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//< 删除多余的&\r\n\t\t\t\t\trequest.deleteCharAt(request.length() - 1);\r\n\t\t\t\t}\r\n\t\t\t\tLog.d(\"HttpUtil\", request.toString());\r\n\r\n\t\t\t\ttry{\r\n\t\t\t\t\tURL url = new URL(address);\r\n\t\t\t\t\tconnection = (HttpURLConnection) url.openConnection();\r\n\t\t\t\t\tconnection.setRequestMethod(\"POST\");\r\n\t\t\t\t\tconnection.setRequestProperty(\"Content-Length\", String.valueOf(request.length()));\r\n\t\t\t\t\tconnection.setDoInput(true);\r\n\t\t\t\t\tconnection.setDoOutput(true);\r\n\t\t\t\t\tprintWriter = new PrintWriter(connection.getOutputStream());\r\n\t\t\t\t\tprintWriter.write(request.toString());\r\n\t\t\t\t\tprintWriter.flush();\r\n\r\n\t\t\t\t\tint responseCode = connection.getResponseCode();\r\n\t\t\t\t\tif(responseCode != 200){\r\n\t\t\t\t\t\tLog.d(\"HttpUtil\", \"Post Fail\");\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tLog.d(\"HttpUtil\", \"Post Success\");\r\n\t\t\t\t\t\tbufferedReader = new BufferedReader(new InputStreamReader(connection.getInputStream()));\r\n\t\t\t\t\t\tString line;\r\n\t\t\t\t\t\twhile ((line = bufferedReader.readLine()) != null) {\r\n\t\t\t\t\t\t\tresponse.append(line);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif(listener != null){\r\n\t\t\t\t\t\tlistener.onFinish(response.toString());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\tif(listener != null){\r\n\t\t\t\t\t\tlistener.onError(e);\r\n\t\t\t\t\t}\r\n\t\t\t\t}finally{\r\n\t\t\t\t\tif(connection != null){\r\n\t\t\t\t\t\tconnection.disconnect();\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tif (printWriter != null) {\r\n\t\t\t\t\t\t\tprintWriter.close();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (bufferedReader != null) {\r\n\t\t\t\t\t\t\tbufferedReader.close();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (IOException ex) {\r\n\t\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "@Override\n protected INetworkObject doInBackground(INetworkObject... params) {\n if(params==null){return null;}\n netObj = params[0];\n try {\n if(netObj.getClass()==NetworkObjectPosition.class){\n communicateWithServer((NetworkObjectPosition) netObj);\n }\n if(netObj.getClass()==NetworkObjectGetID.class){\n communicateWithServer((NetworkObjectGetID) netObj);\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n return netObj;\n }", "@Override\n\tpublic void networkIsOk() {\n\n\t}", "private void connect(){\n // Averiguem quina direccio IP hem d'utilitzar\n InetAddress iAddress;\n try {\n iAddress = InetAddress.getLocalHost();\n String IP = iAddress.getHostAddress();\n\n //Socket sServidor = new Socket(\"172.20.31.90\", 33333);\n sServidor = new Socket (String.valueOf(IP), 33333);\n doStream = new DataOutputStream(sServidor.getOutputStream());\n diStream = new DataInputStream(sServidor.getInputStream());\n } catch (ConnectException c){\n System.err.println(\"Error! El servidor no esta disponible!\");\n System.exit(0);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Test\r\n public void gnsConnectionTest()\r\n {\r\n try\r\n {\r\n MSocket ms = new MSocket(InetAddress.getByName(LOCALHOST), LOCAL_PORT);\r\n InputStream is = ms.getInputStream();\r\n OutputStream os = ms.getOutputStream();\r\n echoTest(is, os, 54);\r\n echoTest(is, os, 45);\r\n System.out.println(\"Closing MSocket\");\r\n ms.close();\r\n }\r\n catch (Exception e)\r\n {\r\n e.printStackTrace();\r\n fail(\"IP Connection test failed\");\r\n }\r\n }", "public static void doConnect() {\r\n\t\tlogger.info(\"Connecting to server......\");\r\n\t\tChannelFuture future = null;\r\n\t\ttry {\r\n\t\t\tfuture = bootstrap.connect(new InetSocketAddress(host, port));\r\n\t\t\tfuture.addListener(channelFutureListener);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t// future.addListener(channelFutureListener);\r\n\t\t\tlogger.warn(\"Closed connection.\");\r\n\t\t}\r\n\r\n\t}", "public void run() {\n\t\t\twhile (true) {// 保持连接直到异常发生或套接字返回\n\t\t\t\ttry {\n\t\t\t\t\tif (serverSocket != null) {\n\t\t\t\t\t\tmTempSocket = serverSocket.accept(); // 如果一个连接同意\n\t\t\t\t\t}\n\t\t\t\t\t// If a connection was accepted\n\t\t\t\t\tif (mTempSocket != null) {\n\t\t\t\t\t\t// Do work to manage the connection (in a separate\n\t\t\t\t\t\t// thread)\n\t\t\t\t\t\tmanageConnectedSocket(); // 管理一个已经连接的RFCOMM通道在单独的线程。\n\t\t\t\t\t\tserverSocket.close();\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\n \tpublic String connectionReceived(NetLoginHandler netHandler, INetworkManager manager)\n \t{\n \t\treturn null;\n \t}", "@Override\n public void run(){\n System.out.println(clientID+\" run\");\n open();\n if(isHost){ //HostClient listening\n try{\n controller.sendHostAddress(ip, port);\n socket = hostSocket.accept();\n System.out.println(clientID+\": run: accept\");\n close(); //closes hostSocket\n connected = true;\n open(); //gets streams\n controller.sendConnect(); \n }catch(IOException e){\n System.out.println(clientID+\": run: accept: failed: IOException: \"+e);\n }\n }\n while(connected){ //interprets requests from other client\n try{\n String request = streamIn.readUTF();\n System.out.println(clientID+\": receive: \"+request);\n String response[] = request.split(\"<&>\");\n controller.interpretRequest(response);\n }catch(IOException ioe){\n System.out.println(clientID+\": receive: failed: IOException:\"+ioe);\n connected = false; \n }\n }\n }", "private void handleClient() {\n\t\t//Socket link = null;\n\t\tRequestRecord reqRec = new RequestRecord();\n\t\tResponder respondR = new Responder();\n\t\t\n\t\ttry {\n\t\t\t// STEP 1 : accepting client request in client socket\n\t\t\t//link = servSock.accept(); //-----> already done in *ThreadExecutor*\n\t\t\t\n\t\t\t// STEP 2 : creating i/o stream for socket\n\t\t\tScanner input = new Scanner(link.getInputStream());\n\t\t\tdo{\n\t\t\t\t//PrintWriter output = new PrintWriter(link.getOutputStream(),true);\n\t\t\t\t//DataOutputStream ds = new DataOutputStream(link.getOutputStream());\n\t\t\t\tint numMsg = 0;\n\t\t\t\tString msg = input.nextLine();\n\t\t\t\t\n\t\t\t\t//to write all requests to a File\n\t\t\t\tFileOutputStream reqFile = new FileOutputStream(\"reqFile.txt\");\n\t\t\t\tDataOutputStream dat = new DataOutputStream(reqFile);\n\t\t\t\t\n\t\t\t\t// STEP 4 : listening iteratively till close string send\n\t\t\t\twhile(msg.length()>0){\n\t\t\t\t\tnumMsg++;\n\t\t\t\t\tdat.writeChars(msg + \"\\n\");\n\t\t\t\t\tSystem.out.println(\"\\nNew Message Received\");\n\t\t\t\t\tif(reqRec.setRecord(msg)==false)\n\t\t\t\t\t\tSystem.out.println(\"\\n-----\\nMsg#\"+numMsg+\": \"+msg+\":Error with Request Header Parsing\\n-----\\n\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.println(\"Msg#\" + numMsg + \": \" + msg);\n\t\t\t\t\tmsg = input.nextLine();\n\t\t\t\t};\n\t\t\t\tdat.writeChars(\"\\n-*-*-*-*-*-*-*-*-*-*-*-*-*-\\n\\n\");\n\t\t\t\tdat.close();\n\t\t\t\treqFile.close();\n\t\t\t\tSystem.out.println(\"---newEST : \" + reqRec.getResource());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"\\n==========Send HTTP Response for Get Request of\\n\"+reqRec.getResource()+\"\\n***********\\n\");\n\t\t\t\tif(respondR.sendHTTPResponseGET(reqRec.getResource(), link)==true)//RES, ds)==true)\n\t\t\t\t\tSystem.out.println(\"-----------Resource Read\");\n\t\t\t\tSystem.out.println(\"Total Messages Transferred: \" + numMsg);\n\t\t\t\t//link.close();\n\t\t\t\tif(reqRec.getConnection().equalsIgnoreCase(\"Keep-Alive\")==true && respondR.isResourceExisting(reqRec.getResource())==true)\n\t\t\t\t\tlink.setKeepAlive(true);\n\t\t\t\telse\n\t\t\t\t\tbreak;\n\t\t\t}while(true);\n\t\t\tSystem.out.print(\"Request Link Over as Connection: \" + reqRec.getConnection());\n\t\t} catch (IOException e) {\n\t\t\tif(link.isClosed())\n\t\t\t\tSystem.out.print(\"\\n\\nCritical(report it to developer):: link closed at exception\\n\\n\");\n\t\t\tSystem.out.println(\"Error in listening.\\n {Error may be here or with RespondR}\\nTraceString: \");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t// STEP 5 : closing the connection\n\t\t\tSystem.out.println(\"\\nClosing Connection\\n\");\n\t\t\ttry {\t\t\t\t\n\t\t\t\tlink.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Unable to disconnect.\\nTraceString: \");\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}/*ends :: try...catch...finally*/\n\t\t\n\t}", "public void getConnection() throws Exception {\n\t\ttry {\n\t\t\tSystem.out.println(\"Waiting for new client!\");\n\n\n\n\t\t\tclient = serverSocket.accept();\n\t\t\tis = client.getInputStream();\n\t\t\tisr = new InputStreamReader(is);\n\t\t\tbr = new BufferedReader(isr);\n\t\t\tos = client.getOutputStream();\n\t\t\tosw = new OutputStreamWriter(os);\n\t\t\tpw = new PrintWriter(osw, true);\n\t\t\tsleep(500);\n\t\t\t//clientkey = getClientKey();\n\t\t\tSystem.out.println(\"Client has connected!\");\n\t\t\t\n\t\t\tGetTimestamp(\"Client Publickey is being stored: \" ) ;\n\t\t\t\n\t\t\tpublicKey = getClientPublicKey();\n\t\t\t\n\t\t\tGetTimestamp(\"Client Publickey is stored: \" ) ;\n\t\t\t\n\t\t\tString tosend = encrypt1(getSharedKey(), getClientPublicKey());\n\t\t\t\n\t\t\tGetTimestamp(\"Client sharedkey is being encrypted: \") ;\n\t\t\t\n\t\t\tGetTimestamp(\"Waiting for Authorization Request from Client: \");\n\t\t\t\n\t\t\t//getclientpublickey();\n\t\t\tgetAUTH_REQUEST();\n\t\t\t//getMessage();\n\n\t\t} catch (IOException | InterruptedException ex) {\n\t\t\tLogger.getLogger(ServerTCP.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\t}", "protected void onConnect() {}", "public void connect() {}", "private void runTcpClient() {\n\t\t\n\t\tint TCP_SERVER_PORT=5050;\n\n\t try {\n\n\t Socket s = new Socket(\"192.168.0.255\", TCP_SERVER_PORT);\n\n\t BufferedReader in = new BufferedReader(new InputStreamReader(s.getInputStream()));\n\n\t BufferedWriter out = new BufferedWriter(new OutputStreamWriter(s.getOutputStream()));\n\n\t //send output msg\n\n\t String outMsg = \"TCP connecting to \" + TCP_SERVER_PORT + System.getProperty(\"line.separator\"); \n\n\t out.write(outMsg);\n\n\t out.flush();\n\n\t Log.i(\"TcpClient\", \"sent: \" + outMsg);\n\n\t //accept server response\n\n\t String inMsg = in.readLine() + System.getProperty(\"line.separator\");\n\t \n\t textView.append(inMsg);\n\n\t Log.i(\"TcpClient\", \"received: \" + inMsg);\n\n\t //close connection\n\n\t s.close();\n\n\t } catch (UnknownHostException e) {\n\n\t e.printStackTrace();\n\n\t } catch (IOException e) {\n\n\t e.printStackTrace();\n\n\t } \n\n\t}", "@Override\n public void run() {\n\n final HttpProxy httpProxy = this.createHttpServerConnection();\n\n //Read the request from the socket and send it to the HTTP server\n final byte[] message = unixSocket.read();\n LOGGER.debug(\"Received message on socket: {}\", new String(message, UTF_8));\n httpProxy.sendRequest(message);\n\n //Return the HTTP response to the socket\n final byte[] response = httpProxy.getResponse();\n LOGGER.debug(\"Received http response: {}\", new String(response, UTF_8));\n unixSocket.write(response);\n\n unixSocket.close();\n httpProxy.disconnect();\n }", "@Override\r\n\t public void run() {\n\t\tsuper.run();\r\n\t\ttry {\r\n\t\t // String newParams=URLEncoder.encode(params, \"utf-8\");\r\n\t\t String newurl = url + \"?\" + params;\r\n\r\n\t\t URL uri = new URL(newurl);\r\n\t\t try {\r\n\t\t\tHttpURLConnection conn = (HttpURLConnection) uri\r\n\t\t\t\t.openConnection();\r\n\t\t\tconn.connect();\r\n\t\t\t// 获取返回结果\r\n\t\t\tif (conn.getResponseCode() == 200) {\r\n\t\t\t InputStream is = conn.getInputStream();\r\n\t\t\t String result = convertInputStreamToString(is);\r\n\t\t\t // 通过handle发送消息\r\n\t\t\t Message msg = new Message();\r\n\t\t\t msg.what = 2;\r\n\t\t\t msg.obj = result;\r\n\t\t\t handle.sendMessage(msg);\r\n\t\t\t}\r\n\t\t } catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t }\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t // TODO Auto-generated catch block\r\n\t\t e.printStackTrace();\r\n\t\t}\r\n\t }", "private synchronized int srvConnect() {\n \n\t\ttry {\n\t\t\t// The address to connect to\n\t\t\tSystem.out.println(TAG + \":Address:\" + getAddress());\n\t\t\tSystem.out.println(TAG + \":Port:\" + String.valueOf(getPort()));\n\t\t\taddr = InetAddress.getByName(getAddress());\n\t\t\t// The address plus the port\n\t\t\tservAddress = new InetSocketAddress(addr, getPort());\n\n\t\t\t// Try to connect\n\t\t\tmysock = new Socket();\n\t\t\t// This socket will block/ try connect for 5s\n\t\t\tmysock.connect(servAddress, 5000);\n\t\t\t// Show me if i was connected successfully\n\t\t\tif (mysock.isConnected()) {\n\t\t\t\tif(out == null){\n\t\t\t\t\tout = new PrintWriter(mysock.getOutputStream(),true);\n\t\t\t\t\tSystem.out.println(TAG + \":New socket and new streamer was created.\");\n\t\t\t\t}\n\t\t\t}\n \n\t\t} catch (NullPointerException e) {\n\t\t\tSystem.out.println(TAG + \":Null Pointer occured.\");\n\t\t\treturn -1;\n\t\t} catch (UnknownHostException e) {\n\t\t\tSystem.out.println(TAG + \":Server does not exist.\");\n\t\t\treturn -1;\n\t\t} catch (IOException e) {\n\t\t\tif (e instanceof SocketException && e.getMessage().contains(\"Permission denied\")) {\n\t\t\t\tSystem.out.println(TAG + \":You don't have internet permission:\" + e);\n\t\t\t} else if(e instanceof ConnectException && e.getMessage().contains(\"Connection refused\")){\n\t\t\t\tSystem.out.println(TAG + \":Connection is refused, the service on the server is probably down:\" + e);\n\t\t\t} else {\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.out.println(TAG + \":Could not connect\");\n\t\t\t}\n\t\t\treturn -1;\n\t\t}\n \n\t\treturn 0;\n\t}", "public TriasConnection() throws IOException {\n URL url = new URL(urlString);\n URLConnection con = url.openConnection();\n http = (HttpURLConnection) con;\n }", "@Test\r\n public void ipConnectionTest()\r\n {\r\n try\r\n {\r\n MSocket ms = new MSocket(InetAddress.getByName(LOCALHOST), LOCAL_PORT);\r\n InputStream is = ms.getInputStream();\r\n OutputStream os = ms.getOutputStream();\r\n echoTest(is, os, 54);\r\n echoTest(is, os, 45);\r\n ms.close();\r\n }\r\n catch (Exception e)\r\n {\r\n e.printStackTrace();\r\n fail(\"IP Connection test failed\");\r\n }\r\n }", "public void connect()\n {\n System.out.println(\"CLIENT partito in esecuzione\");\n try\n {\n //Initialize socket variables and json formatter\n socket = new Socket(serverIP, serverPort);\n outputStream = new DataOutputStream(socket.getOutputStream());\n inputStream = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n gson = new Gson();\n \n receiverThread = new ClientReceiver(this);\n } \n catch (UnknownHostException e)\n {\n System.out.println(e.getMessage());\n System.out.println(\"Host sconosciuto\");\n System.exit(1);\n }\n catch (ConnectException e)\n {\n System.out.println(e.getMessage());\n System.out.println(\"Non c'è posto per te, mi spiace\");\n System.exit(1);\n }\n catch (Exception e)\n {\n System.out.println(e.getMessage());\n System.exit(1);\n }\n }", "@Override\n\t\t\tpublic void onConnectRemoteNode(String url) {\t \t\t\t\n\t\t\t}", "private boolean connectServer() {\n\t\tclNetwork networkInfo = new clNetwork();\n\t\ttry {\n\t\t\tSocket _socket = new Socket(dstAddress, networkInfo.NTP_PORT);\n\t\t\t_socket.setSoTimeout(1000);\n\t\t\t_socket.setTcpNoDelay(true);\n\t\t\topenedSocket = _socket;\n\t\t\tinStream = openedSocket.getInputStream();\n\t\t\toutStream = openedSocket.getOutputStream();\n\t\t\treturn true;\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\treturn false;\n\t\t}\t\t\n\t}", "@Override\n protected Void doInBackground(Void... args) {\n try{\n Socket echoSocket = SplashScreen.PrefetchData.getEchoSocket();\n PrintWriter out = new PrintWriter(echoSocket.getOutputStream(),true);\n //input stream of the socket\n BufferedReader in = new BufferedReader(new InputStreamReader(echoSocket.getInputStream()));\n\n out.println(\"Close Connection\");\n System.out.println(\"Client : Close Connection\");\n if(in.readLine().equals(\"Communication done!! Ciao...\")) {\n finish();\n }\n else\n {\n Context context = getApplicationContext();\n CharSequence text = \"There was an error closing the application!\";\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n System.exit(0);\n }\n\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return null;\n }", "@Override\n public void run() {\n URL url;\n HttpURLConnection ur1Connection = null; //HttpsURLConnection aiso avaitab1e\n try {\n\n //String service = reqUrl; // call rhymebrain\n String service = \"https://rhymebrain.com/talk?\"; // call rhymebrain\n //String parm = \"getRhymes&word=\" + word;\n //String queryString = URLEncoder.encode(parm, \"UTF-8\");\n String queryString = \"getRhymes&word=\" + word + \"&maxResults=\" + String.valueOf(MAX_RESULTS);\n //try to process url and connect to it\n url = new URL( service + \"function=\" + queryString);\n Log.d(\"which URL: \", String.valueOf(url));\n ur1Connection = (HttpURLConnection)url.openConnection();\n ur1Connection.setRequestMethod(\"GET\");\n\n // Set connection timeout and read timeout value.\n ur1Connection.setConnectTimeout(70000);\n ur1Connection.setReadTimeout(70000);\n\n //create an input stream and stream reader from the connection\n InputStream inputStream = ur1Connection.getInputStream();\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream);\n\n //get some data from the stream\n int data = inputStreamReader.read();\n //string for collecting all output\n output = \"\";\n //if the stream is not empty\n while(data != -1) {\n //turn what we read into a char and print it\n char current = (char) data;\n output += current;\n data = inputStreamReader.read();\n\n //Log.d(\"Network\", output);\n }\n Log.d(\"Network\", output);\n parseJSON(output);\n int i =0;\n }catch (Exception e) {\n Log.d( \"Network\", e.toString());\n }finally {\n if (ur1Connection != null) {\n ur1Connection.disconnect();\n ur1Connection = null;\n }\n }\n }", "public void run() {\n // Initial connect request comes in\n Request request = getRequest();\n\n if (request == null) {\n closeConnection();\n return;\n }\n\n if (request.getConnectRequest() == null) {\n closeConnection();\n System.err.println(\"Received invalid initial request from Remote Client.\");\n return;\n }\n\n ObjectFactory objectFactory = new ObjectFactory();\n Response responseWrapper = objectFactory.createResponse();\n responseWrapper.setId(request.getId());\n responseWrapper.setSuccess(true);\n responseWrapper.setConnectResponse(objectFactory.createConnectResponse());\n responseWrapper.getConnectResponse().setId(id);\n\n // Return connect response with our (statistically) unique ID.\n if (!sendMessage(responseWrapper)) {\n closeConnection();\n System.err.println(\"Unable to respond to connect Request from remote Client.\");\n return;\n }\n\n // register our thread with the server\n Server.register(id, this);\n\n // have handler manage the protocol until it decides it is done.\n while ((request = getRequest()) != null) {\n\n Response response = handler.process(this, request);\n\n if (response == null) {\n continue;\n }\n\n if (!sendMessage(response)) {\n break;\n }\n }\n\n // client is done so thread can be de-registered\n if (handler instanceof IShutdownHandler) {\n ((IShutdownHandler) handler).logout(Server.getState(id));\n }\n Server.unregister(id);\n\n // close communication to client.\n closeConnection();\n }", "protected abstract void processConnection(Socket socket);", "public void run() {\n //Request the HTML\n try {\n HttpClient Client = new DefaultHttpClient();\n //String URL = \"http://10.0.2.2:8888/url\";\n String URL = \"http://\" + ipAddress + \":8888/hello\";\n String responseJsonString = \"\";\n\n // Create Request to server and get response\n HttpGet httpget = new HttpGet(URL);\n ResponseHandler<String> responseHandler = new BasicResponseHandler();\n responseJsonString = Client.execute(httpget, responseHandler);\n\n JSONObject responseJSON = new JSONObject(responseJsonString);\n // Show response on activity\n speakOut(responseJSON.getString(\"speechText\"));\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "public void Connect() {\n run = new Thread(\"Connect\") {\n @Override\n public void run() {\n running = true;\n try {\n server = new ServerSocket(9080);\n waitingForConnection();\n } catch (IOException ex) {\n Logger.getLogger(Dashboard.class\n .getName()).log(Level.SEVERE, null, ex);\n }\n }\n };\n run.start();\n }", "private void establishConnection() {\n\n try {\n\n for(Clone clone:this.clones){\n ClearConnection connection = new ClearConnection();\n connection.connect(clone.getIp(), clone.getOffloadingPort(), 5 * 1000);\n this.connections.add(connection);\n }\n\n this.protocol = new ERAMProtocol();\n this.ode = new ERAMode();\n\n } catch (Exception e) {\n Log.e(TAG,\"Connection setup with the Remote Server failed - \" + e);\n }\n }", "public void run() {\n try {\n socketIn = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n socketOut = new ObjectOutputStream(socket.getOutputStream());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n readFromClient();\n pingToClient();\n }", "public void connect() {\n\t\ttry {\n\t\t\tconnection = new Socket(ip, serverPort); // 128.39.83.87 // 127.0.0.1\n\t\t\t\n\t\t\toutput = new BufferedWriter(new OutputStreamWriter(\n connection.getOutputStream()));\n\t\t\tinput = new BufferedReader(new InputStreamReader(\n connection.getInputStream()));\n\t\t\t\n\t\t\tif (hostName.equals(Constants.IDGK + Main.userName))\n\t\t\t\tsendText(\"1\" + Main.userName);\n\t\t\telse\n\t\t\t\tsendText(\"2\" + Main.userName);\n\t\t\t\n\t\t} catch (UnknownHostException e) {\n\t\t\tMain.LOGGER.log(Level.SEVERE, \"Error connecting server\", e);\n\t\t} catch (IOException e) {\n\t\t\tMain.LOGGER.log(Level.WARNING, \"Error making output/input\", e);\n\t\t}\n\t}", "private void connect() {\n\t\ttry {\n\t\t\tsocket = new Socket(Server.ADDRESS, Server.PORT_NUMBER);\n\t\t\tthis.oos = new ObjectOutputStream(socket.getOutputStream());\n\t\t\tthis.ois = new ObjectInputStream(socket.getInputStream());\n\t\t\tServerListener serverlistener = new ServerListener();\n\t\t\tserverlistener.start();\n\t\t\tRequest request = new Request(RequestCode.START_DOCUMENT_STREAM);\n\t\t\trequest.setUsername(user.getUsername());\n\t\t\toos.writeObject(request);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic void run()\n\t{\n\t\ttry\n\t\t{\n\t\t\tif (!establishVpn())\n\t\t\t{\n\t\t\t\taddLog(\"Failed to establish the VPN\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconnectTunnel(getLocalServerAddress(dsp.getString(\"local_port\", \"1080\")), getLocalServerAddress(dsp.getString(\"udp_port\", \"7300\")), true);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\n\t\t}\n\t}", "@Override\r\n\tpublic void run() {\n\t\tsuper.run();\r\n\t\ttry {\r\n\r\n\t\t\tBufferedReader in = null;\r\n\t\t\tPrintWriter out = null;\r\n\t\t\tString result = \"\";\r\n\t\t\twhile (isStart) {\r\n\t\t\t\tsocket = new Socket();\r\n\t\t\t\tsocket.connect(\r\n\t\t\t\t\t\tnew InetSocketAddress(MyApplication.share.getIp(), PORT),\r\n\t\t\t\t\t\t5 * 1000);\r\n\t\t\t\twhile (!socket.isClosed()) {\r\n\t\t\t\t\tin = new BufferedReader(new InputStreamReader(\r\n\t\t\t\t\t\t\tsocket.getInputStream()));\r\n\t\t\t\t\tout = new PrintWriter(socket.getOutputStream());\r\n\r\n\t\t\t\t\tout.println(\"getNotification\");\r\n\t\t\t\t\tout.flush();\r\n\r\n\t\t\t\t\tresult = in.readLine();\r\n\t\t\t\t\tif (!TextUtils.isEmpty(result)) {\r\n\t\t\t\t\t\taccessResult(new String(Base64.decode(\r\n\t\t\t\t\t\t\t\tresult.getBytes(), Base64.DEFAULT)));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tLog.w(TAG, \"Socket ���ؽ��Ϊ null...\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tsleep(3 * 1000);\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}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tsocket.close();\r\n\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}", "private void connectToServer(String uri) {\n Log.i(\"Connection with server\", \"start\");\n try {\n socket = IO.socket(uri);\n } catch (URISyntaxException e) {\n throw new RuntimeException(e);\n }\n\n // Set the created socket in the SocketHandler\n SocketHandler.setSocket(socket);\n\n socket.on(Socket.EVENT_CONNECT,onConnect);\n socket.on(Socket.EVENT_DISCONNECT,onDisconnect);\n socket.on(Socket.EVENT_CONNECT_ERROR, onConnectError);\n socket.on(Socket.EVENT_CONNECT_TIMEOUT, onConnectError);\n socket.on(\"userData\", onUserData);\n socket.on(\"updateUserResponse\", onUpdateUserResponse);\n socket.on(\"loginResponse\", onLoginResponse);\n socket.on(\"highScoreData\", onHighScoreData);\n socket.on(\"lobbyData\", onLobbyData);\n socket.on(\"userLeft\", onUserLeft);\n socket.on(\"newUserInLobby\", onNewUserInLobby);\n socket.on(\"userCreated\", onUserCreated);\n socket.on(\"chatData\", onChatData);\n socket.on(\"newMessage\", onNewMessage);\n socket.on(\"notLoggedIn\", onNotLoggedIn);\n socket.connect();\n\n Log.i(\"Connection with server\", \"done\");\n }", "void onConnectToNetByIPSucces();", "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tRecieveSocketOfClient(SocketForClient);\r\n\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}", "public Socket connect() {\r\n\t\ts = null;\r\n\t\ttry {\r\n\t\t\ts = new Socket(hostName, port);\r\n\t\t\tdos = Utils.deflatedDataOut(s.getOutputStream(), 8);\r\n\t\t} catch (UnknownHostException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn s;\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t}", "@Override\n\tpublic void run()\n\t{\n\t\tif(socket != null && !socket.isClosed() && socket.isConnected())\n\t\t{\n\t\t\tSendMessage(ApplicationManager.Instance().GetName(), MessageType.clientData);\n\t\t\tApplicationManager.textChat.writeGreen(\"Connected to \" + connectionInfo.ServerAdress);\n\t\t\t\n\t\t\ttry \n\t\t\t{\n\t\t\t\twhile (IsConnected) \n\t\t {\n\t\t Message message = (Message) in.readObject();\n\t\t\t\t\t\n\t\t if(!IsConnected)\n\t\t \tbreak;\n\t\t \t\n\t\t if(message == null)\n\t\t {\n\t\t \tIsConnected = false;\n\t\t \tbreak;\n\t\t }\n\t\t \n\t\t HandleMessage(message); \n\t\t }\n\t\t\t \n\t\t\t} \n\t\t\tcatch (SocketException | EOFException e) {\n\t\t\t\tif(IsConnected)\n\t\t\t\tApplicationManager.textChat.writeGreen(\"Server go down!\");\n\t\t\t}\n\t\t\tcatch (IOException | ClassNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tApplicationManager.Instance().Disconnect();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tApplicationManager.textChat.writeGreen(\"Cannot connect!\");\n\t\t\tApplicationManager.Instance().Disconnect();\n\n\t\t}\n\t}", "private void establishConnection() throws IOException {\n\t\tthis.inReader = new BufferedReader(new InputStreamReader(this.conn.getInputStream()));\n\t\tthis.outWriter = new BufferedWriter(new OutputStreamWriter(this.conn.getOutputStream()));\n\t}", "@Override\r\n\t\tpublic void run() {\n\t\t\tMessage msg = new Message();\r\n\t\t\tString result = new String();\r\n\t\t\tGatewayControl control = new GatewayControl(Params.base_uri + Params.bind_gateway);\r\n\t\t\ttry {\r\n\t\t\t\tLog.i(TAG, \"gatewayId \" + gatewayId);\r\n\t\t\t\tLog.i(TAG, \"username \" + Session.getUsername());\r\n\t\t\t\tresult = control.bind(gatewayId, Session.getUsername());\r\n\t\t\t} catch (JSONException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tmsg.obj = result;\r\n\t\t handler.sendMessage(msg);\r\n\r\n\t\t}", "public void run() {\n System.err.println(\"Handling connection...\");\n try {\n InputStream is = socket.getInputStream();\n OutputStream os = socket.getOutputStream();\n readHTTPRequest(is);\n writeHTTPHeader(os,\"text/html\");\n writeContent(os);\n os.flush();\n socket.close();\n } catch (Exception e) {\n System.err.println(\"Output error: \"+e);\n }\n System.err.println(\"Done handling connection.\");\n return;\n}", "public void doConnect() {\n Debug.logInfo(\"Connecting to \" + client.getServerURI() + \" with device name[\" + client.getClientId() + \"]\", MODULE);\n\n IMqttActionListener conListener = new IMqttActionListener() {\n\n public void onSuccess(IMqttToken asyncActionToken) {\n Debug.logInfo(\"Connected.\", MODULE);\n state = CONNECTED;\n carryOn();\n }\n\n public void onFailure(IMqttToken asyncActionToken, Throwable exception) {\n ex = exception;\n state = ERROR;\n Debug.logError(\"connect failed\" + exception.getMessage(), MODULE);\n carryOn();\n }\n\n public void carryOn() {\n synchronized (caller) {\n donext = true;\n caller.notifyAll();\n }\n }\n };\n\n try {\n // Connect using a non-blocking connect\n client.connect(conOpt, \"Connect sample context\", conListener);\n } catch (MqttException e) {\n // If though it is a non-blocking connect an exception can be\n // thrown if validation of parms fails or other checks such\n // as already connected fail.\n state = ERROR;\n donext = true;\n ex = e;\n }\n }", "@Override\r\n\tpublic void handleRequest(){\r\n\r\n\t\ttry {\r\n\t\t\t_inFromClient = new ObjectInputStream(_socket.getInputStream());\r\n\t\t\t_outToClient = new ObjectOutputStream(_socket.getOutputStream());\r\n\t\t _humanQuery = (String) _inFromClient.readObject();\r\n\t\t _outToClient.writeObject(manageCommunication());\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t}", "@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)\n public void run() {\n\n mBluetoothAdapter.cancelDiscovery();\n Log.i(\"Client\", \"trying to connect to server\");\n try {\n mSocket.connect();\n Log.i(\"Client\", \"connected\");\n\n isConnected = mSocket.isConnected();\n\n } catch (IOException connectException) {\n Log.i(\"Client\", \"fail io connect\");\n isConnected = false;\n\n try {\n mSocket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return;\n }\n //manageConnectedSocket(mSocket);\n if (isConnected()) {\n mTransferThread = new TransferThread(mSocket);\n mTransferThread.start();\n }else{\n makeToast(\"Please try connecting again\",Toast.LENGTH_LONG);\n }\n }", "public NegotiationReturn workAsServer() {\n this.isClient = false;\n\n peer_mac_address = null;\n ServerSocket serverSocket = null;\n Socket socket = null;\n int code = 0;\n NegotiationReturn negReturn;\n boolean restartAfterwards = false;\n\n try {\n // use the port to start\n serverSocket = new ServerSocket(PORT);\n serverSocket.setSoTimeout(serverTimeoutMillis);\n Log.d(TAG, \"doInBackground: Server is waiting for connection\");\n\n // accept one connection\n socket = serverSocket.accept();\n socket.setSoTimeout(serverTimeoutMillis);\n\n // wrap the socket\n socketWrapper = new SocketWrapper(socket);\n\n // WAIT FOR CLIENT\n String hello = socketWrapper.getLine();\n\n if (hello == null || hello.contains(\"java.net.SocketException\")) {\n return error(R.string.no_hello_received, true);\n }\n\n // Check: Is the peer in the same role as we are\n // server and server or client and client MAKES NO SENSE\n if (hello.contains(\"SERVER\") && !isClient || hello.contains(\"CLIENT\") && isClient){\n return error(R.string.err_pairing_roles_broken, true);\n }\n\n // Whether we want to provide a hotspot or use one\n if (isConsumer) {\n negReturn = runConsumerProtocol(socketWrapper.getClientAddress().getHostAddress());\n } else {\n negReturn = runHotspotProtocol(socketWrapper.getClientAddress().getHostAddress());\n }\n peer_mac_address = negReturn.mac;\n code = negReturn.code;\n restartAfterwards = negReturn.restartAfterwards;\n\n } catch (SocketTimeoutException ste) {\n Log.d(TAG, \"workAsServer: ### Timed out\");\n code = R.string.err_timeout;\n peer_mac_address = null;\n restartAfterwards = true;\n } catch (IOException e) {\n Log.d(TAG, e.getMessage());\n code = R.string.err_io_exception;\n peer_mac_address = null;\n restartAfterwards = true;\n } finally {\n if (socket != null) {\n try {\n socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if (serverSocket != null) {\n try {\n serverSocket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return new NegotiationReturn(code, peer_mac_address, restartAfterwards);\n }", "public abstract void handleServer(ServerConnection conn);", "public void onConnection();", "private static void setupConnection() {\r\n\t\t\r\n\t\t// Variable used to keep track of if a connection is sucessful\r\n\t\tboolean connectionSuccess;\r\n\t\t\r\n\t\t// Loop until a sucessful connection is made\r\n\t\tdo {\r\n\t\t\tconnectionSuccess = true;\r\n\t\t\t\r\n\t\t\t// Get server info from user\r\n\t\t\tString serverInfo = JOptionPane.showInputDialog(null, \"Please input the server IP and port\"\r\n\t\t\t\t\t+ \" in the form \\\"IP:Port\\\"\", \"Server Connection Details\", JOptionPane.PLAIN_MESSAGE);\r\n\t\t\t\r\n\t\t\t// If the X button or cancel is clicked exit the program\r\n\t\t\tif(serverInfo == null) {\r\n\t\t\t\tSystem.exit(-1);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tString[] serverInfoArray = serverInfo.split(\":\", 2);\r\n\t\t\tint port = 0;\r\n\t\t\t\r\n\t\t\t// Check that both the port and IP have been inputted\r\n\t\t\tif(serverInfoArray.length > 1) {\r\n\t\t\t\t\r\n\t\t\t\t// Check that the port inputted is valid\r\n\t\t\t\ttry{\r\n\t\t\t\t\tport = Integer.parseInt(serverInfoArray[1]);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(port > 65536 || port < 0) {\r\n\t\t\t\t\t\tshowMSG(PORT_ERROR_MSG);\r\n\t\t\t\t\t\tconnectionSuccess = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t} catch(NumberFormatException e) {\r\n\t\t\t\t\tshowMSG(PORT_ERROR_MSG);\r\n\t\t\t\t\tconnectionSuccess = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse {\r\n\t\t\t\tshowMSG(\"Please input a port number and IP address\");\r\n\t\t\t\tconnectionSuccess = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// After port validation try to connect to the server\r\n\t\t\tif(connectionSuccess == true) {\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tsock = new Socket(serverInfoArray[0], port);\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tshowMSG(CONNECTION_ERROR_MSG);\r\n\t\t\t\t\tconnectionSuccess = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Loop until a successful connection to the server is made\r\n\t\t} while(connectionSuccess == false);\r\n\t\t\r\n\t\t\r\n\t\t// Setup buffered reader to read from the server\r\n\t\ttry {\r\n\t\t\tserverReader = new BufferedReader(new InputStreamReader(sock.getInputStream()));\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\tshowMSG(CONNECTION_ERROR_MSG);\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\r\n\t}", "private void openSocket(int port, String request) throws Exception {\n Socket socket = new Socket(InetAddress.getByName(\"localhost\"), port);\n ObjectOutputStream oos = new ObjectOutputStream(socket.getOutputStream());\n oos.writeObject(request);\n ObjectInputStream ois = new ObjectInputStream(socket.getInputStream()); \n String response = (String) ois.readObject(); \n System.out.println(\"Response from DataNode: \" + response);\n socket.close();\n }", "private void doPing()\r\n {\r\n requestQueue.add( new ChargerHTTPConn( weakContext,\r\n CHARGE_NODE_JSON_DATA, \r\n PING_URL,\r\n SN_HOST,\r\n null, \r\n cookieData,\r\n false,\r\n token,\r\n secret ) );\r\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tswitch (msg.what) {\n\t\t\tcase ViewUtils.NET_ERROR:\n\t\t\t\tShow.toast(getApplicationContext(), \"网络错误,请检查网络是否畅通!\");\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsuper.handleMessage(msg);\n\t\t}", "@Override\n public void run() {\n boolean isOk = mBluetoothLeService.connect(getDeviceName());// 根据地址通过后台services去连接BLE蓝牙\n L.d(reTryCount+\" -----connect ok ? >\"+ isOk);\n if(!isOk) {\n reTryConected();\n }\n }", "public abstract void onConnect();", "public InternalConnectionHandler() {\r\n\t\tthis.setPacketProcessor(InternalPacketProcessor.getInstance());\r\n\t}", "@Override\n\tpublic void run()\n\t{\n\t\tif (MyServer.flag)\n\t\t{\n\t\t\tTool.getPrintWriter()\n\t\t\t\t\t.println(\"Accept : 3D is online . \\nServer : \" + MyServer.getU3DSocket().size() + \" Connect . \");\n\t\t\twhile (true)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t} catch (InterruptedException e)\n\t\t\t\t{\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// return;\n\t\t} else\n\t\t{\n\t\t\tTool.getPrintWriter().println(\"Accept : Server : \" + MyServer.getSocketList().size() + \" Connect . \");\n\t\t\tTool.getPrintWriter().println(\"Accept : 用户端非3d连接.\");\n\t\t\tTool.getPrintWriter().println(\"Accept : 测试是否空 : \" + (client == null));\n\t\t\tnew Client(client);\n\t\t}\n\t}", "public void run() {\r\n\t\ttry {\r\n\t\t\toutput = clientSocket.getOutputStream();\r\n\t\t\tinput = clientSocket.getInputStream();\r\n\t\t// send initial message on connect\r\n\t\t\tsendMessage(new common.messages.KVAdminMessage(\"connect\", \"CONNECT_SUCCESS\", \"\", \"\")); \r\n\r\n\t\t\r\n\t\t\twhile(isOpen) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// Receive the KV Message from Client and check if it is valid\r\n\t\t\t\t\tcommon.messages.KVMessage latestMsg = receiveMessage();\r\n\t\t\t\t\tif (latestMsg.validityCheck() == null) {\r\n\t\t\t\t\t\t// If it is valid Handle the message by calling the function in KVServer\r\n\t\t\t\t\t\tcommon.messages.KVMessage returnMsg = m_server.handleClientMessage(latestMsg);\r\n\t\t\t\t\t\tif (returnMsg.validityCheck() == null) {\r\n\t\t\t\t\t\t\t// If returned KVMessage was valid send it back to the client\r\n\t\t\t\t\t\t\tif (returnMsg.getStatus().equals(\"SERVER_STOPPED\") || returnMsg.getStatus().equals(\"SERVER_WRITE_LOCK\") || returnMsg.getStatus().equals(\"SERVER_NOT_RESPONSIBLE\")){\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Last command from client \" + latestMsg.getHeader() + \" was not processed by Server.\");\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\tSystem.out.println(\"Last command from client \" + latestMsg.getHeader() + \" was Successfully Processed by Server!\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tsendMessage(returnMsg);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// If returned KVMessage is not valid it will have all blank fields\r\n\t\t\t\t\t\t\tSystem.out.println(\"Last command from client \" + latestMsg + \" encountered a problem on Server side!\");\r\n\t\t\t\t\t\t\tsendMessage(returnMsg);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} \r\n\t\t\t\t\telse if (latestMsg.getHeader().trim().equals(\"\")) {\r\n\t\t\t\t\t\t//echo empty messages\r\n\t\t\t\t\t\tsendMessage(latestMsg);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\t// If it is a bad message output error and echo it back to the client\r\n\t\t\t\t\t\tlogger.debug(\"Message from Client was not valid, sending errorous message back to client\");\r\n\t\t\t\t\t\tlogger.debug(latestMsg.getError());\r\n\t\t\t\t\t\tsendMessage(new common.messages.KVAdminMessage(latestMsg.getHeader(), \"FAILED\", latestMsg.getKey(), latestMsg.getValue()));\r\n\t\t\t\t\t}\r\n\t\t\t\t/* connection either terminated by the client or lost due to \r\n\t\t\t\t * network problems*/\t\r\n\t\t\t\t} catch (IOException ioe) {\r\n\t\t\t\t\tlogger.error(\"Connection lost!\");\r\n\t\t\t\t\tisOpen = 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} catch (IOException ioe) {\r\n\t\t\tlogger.error(\"Error! Connection could not be established!\", ioe);\r\n\t\t\t\r\n\t\t} finally {\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tif (clientSocket != null) {\r\n\t\t\t\t\tinput.close();\r\n\t\t\t\t\toutput.close();\r\n\t\t\t\t\tclientSocket.close();\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException ioe) {\r\n\t\t\t\tlogger.error(\"Error! Unable to tear down connection!\", ioe);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static boolean isConnectedToInternet() {\n String pingServerURL = pingBackUrl.substring(0, pingBackUrl.indexOf(\"/\", \"http://url\".length()));\n try {\n URL url = new URL(pingServerURL);\n HttpURLConnection urlConn = (HttpURLConnection) url.openConnection();\n urlConn.connect();\n return (HttpURLConnection.HTTP_NOT_FOUND != urlConn.getResponseCode());\n } catch (MalformedURLException e) {\n LOG.error(\"LeadCapture : Error creating HTTP connection to the server : \" + pingServerURL);\n \n } catch (IOException e) {\n LOG.error(\"LeadCapture : Error creating HTTP connection to the server : \" + pingServerURL);\n }\n return false;\n }", "abstract protected Result doNetworkAction(Params... params) throws Exception;" ]
[ "0.6585031", "0.6440788", "0.64191294", "0.64103264", "0.64081806", "0.6343462", "0.6294216", "0.62883097", "0.62629384", "0.6228541", "0.6208839", "0.6174662", "0.61632395", "0.6142755", "0.6126507", "0.61177546", "0.61155236", "0.6115338", "0.610242", "0.6077924", "0.60627115", "0.60502785", "0.60472006", "0.60382813", "0.6022601", "0.60170406", "0.5998219", "0.59892756", "0.59778607", "0.5975201", "0.59743345", "0.5969392", "0.59610486", "0.5956841", "0.5941567", "0.59370565", "0.5934575", "0.5934343", "0.5932912", "0.59213984", "0.59195143", "0.5918235", "0.5911491", "0.5911218", "0.5903825", "0.589832", "0.58839655", "0.5871409", "0.58652896", "0.58436966", "0.5842326", "0.5831974", "0.58293605", "0.58280385", "0.5826069", "0.5821176", "0.5820955", "0.5812264", "0.5803285", "0.5802584", "0.58016807", "0.5797048", "0.57946545", "0.57881296", "0.578629", "0.5785309", "0.5784883", "0.5783689", "0.5780718", "0.5777715", "0.57770544", "0.5767505", "0.57529926", "0.57508725", "0.57504904", "0.57490516", "0.5741963", "0.5736634", "0.5734878", "0.5732364", "0.57281375", "0.57269686", "0.57251424", "0.5724964", "0.57232314", "0.5723213", "0.57188195", "0.5714127", "0.5703817", "0.5699904", "0.5698248", "0.56977296", "0.5697452", "0.56905156", "0.5686084", "0.5684783", "0.5682872", "0.5682681", "0.5677441", "0.56773025" ]
0.74323916
0
Created by ZhangRui on 2018/8/5.
public interface HomeService { ResultDTO<List<DUser>> login(UserLoginDTO userLoginDTO); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "public final void mo51373a() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "private void poetries() {\n\n\t}", "@Override\n void init() {\n }", "public void mo38117a() {\n }", "public void mo4359a() {\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void init() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private void init() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n protected void getExras() {\n }", "public void gored() {\n\t\t\n\t}", "public void mo6081a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void strin() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n public void init() {}", "@Override\n\tpublic void einkaufen() {\n\t}", "Petunia() {\r\n\t\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void initialize() { \n }", "private void kk12() {\n\n\t}", "@Override\n protected void init() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo55254a() {\n }", "private void init() {\n\n\n\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void initialize() {\n \n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "private void m50366E() {\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tpublic void init() {\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}" ]
[ "0.6230492", "0.6084583", "0.5913218", "0.5913218", "0.5894207", "0.5863416", "0.5831686", "0.5796579", "0.57949257", "0.57482976", "0.5735228", "0.5728033", "0.5701251", "0.5697105", "0.5692792", "0.5682223", "0.5679585", "0.567895", "0.56688386", "0.5662408", "0.56618583", "0.5659198", "0.563328", "0.5612187", "0.5611485", "0.5601158", "0.5599072", "0.5594632", "0.5582873", "0.55753046", "0.55753046", "0.5574835", "0.557212", "0.5539027", "0.5515388", "0.5515388", "0.5515388", "0.5515388", "0.5515388", "0.55066234", "0.55066234", "0.55066234", "0.55066234", "0.55066234", "0.55066234", "0.5498949", "0.54895675", "0.54895675", "0.54822105", "0.54822105", "0.54822105", "0.54822105", "0.54822105", "0.54822105", "0.54822105", "0.54797417", "0.54767793", "0.5476366", "0.5473324", "0.5468168", "0.5438898", "0.54359585", "0.54359585", "0.54359585", "0.5432008", "0.54218346", "0.541593", "0.5411987", "0.5409373", "0.5409373", "0.5409373", "0.54057944", "0.54057944", "0.54057944", "0.5402517", "0.5391334", "0.53867686", "0.53859204", "0.53849435", "0.5379337", "0.53779805", "0.53779805", "0.53768426", "0.53670776", "0.53653", "0.53574705", "0.5356532", "0.53563416", "0.5349788", "0.5347984", "0.53460705", "0.5339889", "0.5331013", "0.5329674", "0.5321193", "0.5313291", "0.5313291", "0.53096515", "0.5306208", "0.5294374", "0.5282565" ]
0.0
-1
todo try catch exception
public void convert() throws IOException { URL url = new URL(SERVICE + City + "," + Country + "&" + "units=" + Type + "&" + "APPID=" + ApiID); BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream())); String line = reader.readLine(); // Pobieranie JSON // Wyciąganie informacji z JSON //***************************************************************** //Temp if (!StringUtils.isBlank(line)) { int startIndex = line.indexOf("{\"temp\"") + 8; int endIndex = line.indexOf(",\"feels_like\""); temperature = line.substring(startIndex, endIndex); // System.out.println(temperature); } //Min temp if (!StringUtils.isBlank(line)) { int startIndex = line.indexOf(",\"temp_min\"") + 12; int endIndex = line.indexOf(",\"temp_max\""); temperatureMin = line.substring(startIndex, endIndex); // System.out.println(temperatureMin); } //Max temp if (!StringUtils.isBlank(line)) { int startIndex = line.indexOf("\"temp_max\":") + 11; int endIndex = line.indexOf(",\"pressure\""); temperatureMax = line.substring(startIndex, endIndex); //System.out.println(temperatureMax); }//todo dodaj więcej informacji takich jak cisnienie i takie tam //***************************************************************** }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "@Override\n public void onCancelled(CancelledException arg0) {\n }", "@Override\n public void onCancelled(CancelledException arg0) {\n }", "private void throwsError() throws OBException {\n }", "void mo57276a(Exception exc);", "@Override\n public void onCancelled(CancelledException arg0) {\n\n }", "@Override\r\n\tpublic void doException() {\n\r\n\t}", "@Override\n public void onCancelled(CancelledException arg0) {\n\n }", "void checkExcn() throws Exception\n { This is called from the main thread context to re-throw any saved\n // exception.\n //\n if (ex != null) {\n throw ex;\n }\n }", "@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "public void mo1964g() throws cf {\r\n }", "@Test(timeout = 4000)\n public void test201() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n // Undeclared exception!\n try { \n xmlEntityRef0.head();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public void mo1944a() throws cf {\r\n }", "@Test(timeout = 4000)\n public void test019() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.parseResultSet((ResultSet) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test069() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesStructure((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test104() throws Throwable {\n try { \n DBUtil.getMetaData((Connection) null, \"!f7d,\", (String) null, false, true, false, true, (String) null, true);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Connecting null failed: \n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test033() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.currentLine((ResultSet) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test057() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"wheel.util.WrappedException\");\n // Undeclared exception!\n try { \n xmlEntityRef0.style();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test\n public void test036() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Table table0 = new Table(errorPage0, \"convert\");\n // Undeclared exception!\n try {\n Component component0 = table0.find(\"convert\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Could not find component with id convert on the page.\n //\n }\n }", "@Test(timeout = 4000)\n public void test019() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.renderNumber((StreamTokenizer) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test019() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.renderNumber((StreamTokenizer) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "public void m9741j() throws cf {\r\n }", "@Test(timeout = 4000)\n public void test029() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.format((ResultSet) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }", "@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}", "@Test(timeout = 4000)\n public void test285() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"z=OF5Ty4t\");\n // Undeclared exception!\n try { \n xmlEntityRef0.small((Object) \"cript\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test056() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.renderNumber((StreamTokenizer) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test023() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.parseAndSimplifyResultSet((ResultSet) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }", "public UnmatchedException(){\r\n\r\n\t}", "@Test(timeout = 4000)\n public void test065() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.querySingleRow(\")\", (Connection) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }", "private void _init() throws Exception {\n }", "@Override\r\n\tpublic boolean doCatch(Throwable ex) throws Exception\r\n\t{\n\t\treturn false;\r\n\t}", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.nextLine((ResultSet) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test323() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef((String) null);\n // Undeclared exception!\n try { \n xmlEntityRef0.base((CharSequence) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test\n void testExceptions(){\n weighted_graph g = new WGraph_DS();\n weighted_graph_algorithms ga = new WGraph_Algo();\n assertDoesNotThrow(() -> ga.load(\"fileWhichDoesntExist.obj\"));\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.parseResultRow((ResultSet) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }", "public void mo1976s() throws cf {\r\n }", "private void _init() throws Exception {\n }", "private void _init() throws Exception {\n }", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "public void mo1970m() throws cf {\r\n }", "@Test(timeout = 4000)\n public void test033() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesStructure((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.ownerDotComponent((DBObject) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "public void mo1972o() throws cf {\r\n }", "@Test(timeout = 4000)\n public void test131() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"/\");\n // Undeclared exception!\n try { \n xmlEntityRef0.h3((Object) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, true, true);\n LinkedList<byte[][]> linkedList0 = new LinkedList<byte[][]>();\n FBObjectListener.FetcherListener fBObjectListener_FetcherListener0 = null;\n FileSystemHandling.shouldAllThrowIOExceptions();\n linkedList0.add((byte[][]) null);\n FBCachedFetcher fBCachedFetcher0 = new FBCachedFetcher(linkedList0, (FBObjectListener.FetcherListener) null);\n // Undeclared exception!\n try { \n fBCachedFetcher0.relative(1433);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.firebirdsql.jdbc.FBCachedFetcher\", e);\n }\n }", "@Override\n\tpublic void process() throws Exception {\n\n\t}", "@Test(timeout = 4000)\n public void test035() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesStructure((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test369() throws Throwable {\n FileInput fileInput0 = new FileInput((Component) null, \"J]'z8)\", \"J]'z8)\");\n // Undeclared exception!\n try { \n fileInput0.dfn((Object) \"J]'z8)\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test032() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.ownerDotComponent((DBObject) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test032() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.ownerDotComponent((DBObject) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test362() throws Throwable {\n Form form0 = new Form(\"\\r\");\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"\\r\");\n // Undeclared exception!\n try { \n form0.sup((Object) xmlEntityRef0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public NoDataFoundException()\r\n {\r\n super(\"No Data Found\");\r\n\r\n }", "@Test(timeout = 4000)\n public void test080() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.normalize((String) null, true);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Override\n\tpublic void demoCheckedException() throws IOException {\n\n\t}", "@Test(timeout = 4000)\n public void test368() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef((String) null);\n // Undeclared exception!\n try { \n xmlEntityRef0.map((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "zzafe mo29840Y() throws RemoteException;", "private V e() throws com.amap.api.col.n3.gh {\n /*\n r6 = this;\n r0 = 0\n r1 = 0\n L_0x0002:\n int r2 = r6.b\n if (r1 >= r2) goto L_0x00cd\n com.amap.api.col.n3.ki r2 = com.amap.api.col.n3.ki.c() // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n android.content.Context r3 = r6.d // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.net.Proxy r3 = com.amap.api.col.n3.ik.a(r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n r6.a((java.net.Proxy) r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n byte[] r2 = r2.a((com.amap.api.col.n3.kj) r6) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.lang.Object r2 = r6.a((byte[]) r2) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n int r0 = r6.b // Catch:{ ic -> 0x0025, gh -> 0x0020, Throwable -> 0x002a }\n r1 = r0\n r0 = r2\n goto L_0x0002\n L_0x0020:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0033\n L_0x0025:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0044\n L_0x002a:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"未知错误\"\n r0.<init>(r1)\n throw r0\n L_0x0032:\n r2 = move-exception\n L_0x0033:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 < r3) goto L_0x0002\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0043:\n r2 = move-exception\n L_0x0044:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 >= r3) goto L_0x008a\n int r3 = r6.e // Catch:{ InterruptedException -> 0x0053 }\n int r3 = r3 * 1000\n long r3 = (long) r3 // Catch:{ InterruptedException -> 0x0053 }\n java.lang.Thread.sleep(r3) // Catch:{ InterruptedException -> 0x0053 }\n goto L_0x0002\n L_0x0053:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x0078\n goto L_0x0082\n L_0x0078:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0082:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x008a:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"未知的错误\"\n java.lang.String r1 = r2.a()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x00bb\n goto L_0x00c5\n L_0x00bb:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x00c5:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x00cd:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.api.col.n3.gi.e():java.lang.Object\");\n }", "@Test(timeout = 4000)\n public void test47() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n int int0 = (-31);\n try { \n connectionFactories0.getXATopicConnectionFactory(0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // Index: 0, Size: 0\n //\n verifyException(\"java.util.ArrayList\", e);\n }\n }", "@Test(timeout = 4000)\n public void test337() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"Tfoot component can be added only to a Table.\");\n // Undeclared exception!\n try { \n xmlEntityRef0.img((String) null, \"wheel.components.Submit\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public void Excepti() throws Exception{ \n throw new Exception(\"El dato especificado NO existe en la lista!!!\"); \n }", "@Test(timeout = 4000)\n public void test067() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.queryAndSimplify(\"eBTux<g'kc|{F(x_]e\", (Connection) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }", "@Test\n public void test129() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"convert\");\n Map<String, String> map0 = xmlEntityRef0.getAttributes();\n // Undeclared exception!\n try {\n Component component0 = xmlEntityRef0.dl();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test71() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n TableContainer tableContainer0 = new TableContainer(\"-KwE,kZ\");\n DefaultDBTable defaultDBTable1 = new DefaultDBTable();\n DBDataType.getInstance((-1717986917), \"%~-1t&Ncqx{&'OP~@\");\n tableContainer0.getSchema();\n Integer integer0 = RawTransaction.SAVEPOINT_ROLLBACK;\n Integer integer1 = RawTransaction.LOCK_ESCALATE;\n SQLUtil.removeComments(\"/**/\");\n System.setCurrentTimeMillis(1722L);\n // Undeclared exception!\n try { \n SQLUtil.normalize((String) null, false);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.io.StringReader\", e);\n }\n }", "@Test\n public void testLoad() throws Exception {\n try{\n service.load();\n } catch(Exception e){\n fail(\"Exception should not be thrown on load!!!!!\");\n }\n }", "@Test(timeout = 4000)\n public void test248() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"x0\");\n // Undeclared exception!\n try { \n xmlEntityRef0.body();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "private static void checkError(String result) {\n String err = Neo4jUtils.extractErrorData(result);\n if (err == null) {\n return;\n }\n throw new RuntimeException(err);\n }", "@Override\n\t\t\t\t\t\t\tpublic void onIOException(IOException e, Object state) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "public String uploadFile(String filename, InputStream is)\n {\n String url=null;\n try {\n \n FileMetadata metadata = client.files().uploadBuilder(\"/\"+filename).uploadAndFinish(is);\n SharedLinkMetadata sharedLinkMetadata = client.sharing().createSharedLinkWithSettings(\"/\"+filename);\n url=sharedLinkMetadata.getUrl();\n url=url.substring(0, url.length()-1)+\"1\";\n \n }\n// catch (FileNotFoundException fne)\n// {\n// System.out.println(\"96 : FileNotFoundException Caused By \"+fne.getLocalizedMessage());\n// }\n catch (IOException ioe)\n {\n System.out.println(\"100 : IOException Caused By \"+ioe.getLocalizedMessage());\n }\n// catch (DbxException dbxe)\n// {\n// \n// System.out.println(\"105 : DbxException Caused By \"+dbxe.getLocalizedMessage());\n// }\n catch(DbxException e)\n {\n System.out.println(\"--++--------+++++\");\n session = sfobj.openSession();\n tx = session.beginTransaction();\n\n System.out.println(\"line no= \"+e.getStackTrace()[2].getLineNumber());\n System.out.println(\"mathod name= \"+e.getStackTrace()[2].getMethodName());\n System.out.println(\"type= \"+e.toString());\n String nameofCurrMethod = new Throwable() \n .getStackTrace()[2] \n .getMethodName(); \n System.out.println(\"----method\"+nameofCurrMethod);\n // System.out.println(ea.getStackTrace().toString());\n System.out.println(\"class name= \"+e.getStackTrace()[2].getFileName());\n Errors ee=new Errors();\n ee.setGymid(gymid);\n ee.setError_name(\"line no= \"+e.getStackTrace()[2].getLineNumber()+\"type= \"+e.toString());\n ee.setMethod_name(e.getStackTrace()[2].getMethodName());\n session.save(ee);\n tx.commit();\n session.close();\n }\n return url;\n }", "public void inquiryError() {\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test099() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.logMetaData((Connection) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test254() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"x0\");\n // Undeclared exception!\n try { \n xmlEntityRef0.big((Object) \"x0\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test281() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n // Undeclared exception!\n try { \n xmlEntityRef0.dd((Object) \"4_R]T<#2)Q?]R7Ut\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test092() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n Submit submit0 = new Submit(xmlEntityRef0, \"%\", \"%\");\n // Undeclared exception!\n try { \n submit0.param(\"4_R]T<#2)Q?]R7Ut\", \"4_R]T<#2)Q?]R7Ut\");\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public void mo1962e() throws cf {\r\n }", "@Test(timeout = 4000)\n public void test287() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n // Undeclared exception!\n try { \n xmlEntityRef0.sub((Object) \"4_R]T<#2)Q?]R7Ut\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test055() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n // Undeclared exception!\n try { \n SQLUtil.renderQuery(defaultDBTable0, (String[]) null, (Object[]) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "protected void connectionException(Exception exception) {}", "private void handleExceptions(Exception e,String uri) throws ServiceProxyException {\n \n //Step 1: Is error AdfInvocationRuntimeException, AdfInvocationException or AdfException? \n String exceptionPrimaryMessage = e.getLocalizedMessage();\n String exceptionSecondaryMessage = e.getCause() != null? e.getCause().getLocalizedMessage() : null;\n String combinedExceptionMessage = \"primary message:\"+exceptionPrimaryMessage+(exceptionSecondaryMessage!=null?(\"; secondary message: \"+exceptionSecondaryMessage):(\"\"));\n \n //chances are this is the Oracle MCS erro message. If so then ths message has a JSON format. A simple JSON parsing \n //test will show if our assumption is true. If JSONObject parsing fails then apparently the message is not the MCS\n //error message\n //{\n // \"type\":\".....\",\n // * \"status\": <error_code>,\n // * \"title\": \"<short description of the error>\",\n // * \"detail\": \"<long description of the error>\",\n // * \"o:ecid\": \"...\",\n // * \"o:errorCode\": \"MOBILE-<MCS error number here>\",\n // * \"o:errorPath\": \"<URI of the request>\"\n // }\n if(exceptionSecondaryMessage!=null){\n try {\n JSONObject jsonErrorObject = new JSONObject(exceptionSecondaryMessage);\n //if we get here, then its a Oracle MCS error JSON Object. Get the \n //status code or set it to 0 (means none is found)\n int statusCode = jsonErrorObject.optInt(\"status\", 0);\n throw new ServiceProxyException(statusCode, exceptionSecondaryMessage);\n \n } catch (JSONException jse) {\n //if parsing fails, the this is proof enough that the error message is not \n //an Oracle MCS message and we need to continue our analysis\n \n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Exception message is not a Oracle MCS error JSONObject\", this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n } \n }\n \n //continue message analysis and check for known error codes for the references MCS API\n \n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Rest invocation failed with following message\"+exceptionPrimaryMessage, this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n \n int httpErrorCode = -1; \n String restoredOracleMcsErrorMessage = null;\n \n /*\n * Try to identify an MCS failure from the exception message.\n */\n if(combinedExceptionMessage.contains(\"400\")){\n httpErrorCode = 400; \n restoredOracleMcsErrorMessage =\n OracleMobileErrorHelper.createOracleMobileErrorJson(400, \"Invalid JSON payload\", \"One of the following problems occurred: \" +\n \"the user does not exist, the JSON is invalid, or a property was not found.\", uri);\n }\n else if(combinedExceptionMessage.contains(\"401\")){\n httpErrorCode = 401; \n restoredOracleMcsErrorMessage =\n OracleMobileErrorHelper.createOracleMobileErrorJson(401, \"Authorization failure\", \"The user is not authorized to retrieve the information for another user.\",uri); \n }\n else if(combinedExceptionMessage.contains(\"403\")){\n httpErrorCode = 404; \n restoredOracleMcsErrorMessage =\n OracleMobileErrorHelper.createOracleMobileErrorJson(403, \"Functionality is not supported\", \"Functionality is not supported.\",uri); \n }\n else if(combinedExceptionMessage.contains(\"403\")){\n httpErrorCode = 404; \n restoredOracleMcsErrorMessage =\n OracleMobileErrorHelper.createOracleMobileErrorJson(404, \"User not found\", \"The user with the specified ID does not exist.\",uri);\n }\n \n else{\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Request failed with Exception: \"+e.getClass().getSimpleName()+\"; message: \"+e.getLocalizedMessage(), this.getClass().getSimpleName(), \"handleExcpetion\");\n throw new ServiceProxyException(e.getLocalizedMessage(), ServiceProxyException.ERROR);\n }\n //if we get here then again its an Oracle MCS error, though one we found by inspecting the exception message\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Request succeeded successful but failed with MCS application error. HTTP response: \"+httpErrorCode+\", Error message: \"+restoredOracleMcsErrorMessage, this.getClass().getSimpleName(), \"handleExcpetion\");\n throw new ServiceProxyException(httpErrorCode, restoredOracleMcsErrorMessage);\n }", "public void checkExcn() throws Exception\n { This is called from the main thread context to re-throw any saved\n // exception.\n //\n if (ex != null) {\n throw ex;\n }\n }", "@Test(timeout = 4000)\n public void test367() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"W,eg{\");\n // Undeclared exception!\n try { \n xmlEntityRef0.label();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test307() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"java.lang.String@0000000005\");\n // Undeclared exception!\n try { \n xmlEntityRef0.ins();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.parseColumnTypeAndSize((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.parseColumnTypeAndSize((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test010() throws Throwable {\n Proxy proxy0 = (Proxy)DBUtil.wrapWithPooledConnection((Connection) null, false);\n Class<Parameter> class0 = Parameter.class;\n ErrorHandler errorHandler0 = new ErrorHandler(class0);\n // Undeclared exception!\n try { \n DBUtil.runScript((String) null, \"' found\", 'J', (Connection) proxy0, false, errorHandler0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.commons.IOUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test000() throws Throwable {\n try { \n DBUtil.getMetaData((Connection) null, \" i/1o\", \"l\", true, true, true, true, \" i/1o\", false);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Connecting null failed: \n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test030() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.escape((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n LinkedList<byte[][]> linkedList0 = new LinkedList<byte[][]>();\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n linkedList0.add((byte[][]) null);\n FBCachedFetcher fBCachedFetcher0 = new FBCachedFetcher(linkedList0, (FBObjectListener.FetcherListener) null);\n FileSystemHandling.shouldAllThrowIOExceptions();\n // Undeclared exception!\n try { \n fBCachedFetcher0.relative((-513));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.firebirdsql.jdbc.FBCachedFetcher\", e);\n }\n }", "@Test(timeout = 4000)\n public void test037() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesDataOrStructure((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "private void inizia() throws Exception {\n try { // prova ad eseguire il codice\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "public ViaturaExistenteException(){\n super();\n }", "@Test(timeout = 4000)\n public void test155() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n Submit submit0 = new Submit(xmlEntityRef0, \"\\\"8[P\", \"\\\"8[P\");\n // Undeclared exception!\n try { \n submit0.dfn((Object) null);\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "private void test() throws SQLException {\n\n\t}", "public void testGetException() {\r\n Exception exception = null;\r\n try {\r\n list.get(-1);\r\n } \r\n catch (Exception e) {\r\n exception = e;\r\n }\r\n assertTrue(exception instanceof IndexOutOfBoundsException);\r\n exception = null;\r\n list.add(\"A\");\r\n try {\r\n list.get(1);\r\n } \r\n catch (IndexOutOfBoundsException e) {\r\n exception = e;\r\n }\r\n assertTrue(exception instanceof IndexOutOfBoundsException);\r\n }", "private void throwException() throws ConfigurationFormatException {\n\n String[] arr = data.split(\" \");\n\n int rows = numberOfRows(arr);\n if (rows != size) {\n throw new ConfigurationFormatException(\"Invalid configuration format: \" +\n \"Invalid number of rows in configuration (found \" + rows + \").\");\n }\n\n int columns = numberOfColumns(arr);\n if (columns != size) {\n throw new ConfigurationFormatException(\"Invalid configuration format: \" +\n \"Invalid number of columns in configuration (found \" + columns + \").\");\n }\n\n\n for (int i = 0; i < arr.length; i++) {\n if (!arr[i].equals(\":\")) {\n try {\n int a = Integer.parseInt(arr[i]);\n } catch (NumberFormatException e) {\n throw new ConfigurationFormatException(\"Invalid configuration format: \" +\n \"Malformed configuration '\" + data + \"'.\");\n }\n }\n }\n }", "public void prepare() throws Exception {\n\r\n\t}", "public abstract void mo133131c() throws InvalidDataException;" ]
[ "0.61689717", "0.61046696", "0.61046696", "0.61046696", "0.61046696", "0.61046696", "0.5834223", "0.5834223", "0.58311707", "0.5812396", "0.5755202", "0.5707286", "0.5669201", "0.5659564", "0.56458193", "0.55299467", "0.552499", "0.5510077", "0.54995215", "0.54955655", "0.54835665", "0.54473925", "0.5429139", "0.54147977", "0.54107624", "0.54107624", "0.54106617", "0.5407143", "0.5406443", "0.5400512", "0.53879565", "0.53639483", "0.53581256", "0.5354145", "0.53509074", "0.5346872", "0.53453624", "0.5343096", "0.5341529", "0.5340985", "0.53391856", "0.53321224", "0.53321224", "0.53272665", "0.531555", "0.5314249", "0.53119564", "0.53063565", "0.5305353", "0.53047913", "0.5304513", "0.52989924", "0.5297871", "0.5296686", "0.5296686", "0.5294946", "0.5293856", "0.5292665", "0.5290021", "0.52827895", "0.52801245", "0.5278959", "0.5278209", "0.5277799", "0.5274426", "0.5273124", "0.52714396", "0.52681565", "0.5266457", "0.52639437", "0.52614856", "0.5260074", "0.5258645", "0.52581674", "0.5257373", "0.5256564", "0.5254015", "0.5251875", "0.52503276", "0.5243322", "0.5241523", "0.5240373", "0.5239557", "0.52384704", "0.5238425", "0.52363753", "0.5236188", "0.5236188", "0.5229703", "0.5228843", "0.5228622", "0.52255774", "0.5222637", "0.52218175", "0.52212673", "0.52181095", "0.5217184", "0.52171475", "0.5215426", "0.5213413", "0.52130276" ]
0.0
-1
create an intent to display the article
@Override public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) { Intent i = new Intent(getApplicationContext(), ArticleActivity.class); //get the article to display Article article = articles.get(position); //pass in that article into intent i.putExtra("article", article); //launch the activity startActivity(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View view) {\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(article.getLink())); // intent to show item using url\n Context context = view.getContext();\n context.startActivity(browserIntent);\n }", "@Override\n public void onClick(View view) {\n Intent detail = new Intent(getBaseContext(), DetailArticle.class);\n detail.putExtra(\"webURL\", webHotURL);\n startActivity(detail);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(v.getContext(),ArticleReadActivity.class);\n intent.putExtra(\"articleCover\", list.get(position).getCover())\n .putExtra(\"articleTitle\", list.get(position).getTitle())\n .putExtra(\"articleContent\", list.get(position).getContent());\n v.getContext().startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Intent detail=new Intent(getBaseContext(),DetailArticle.class);\n detail.putExtra(\"webURL\",webHotURL);\n startActivity(detail);\n }", "@Override\n public void onClick(View view) {\n final Intent intent = new Intent(context, ArticleViewActivity.class);\n intent.putExtra(\"link\", model.link);\n context.startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n Uri newsUri = Uri.parse(currentNews.getUrl());\n\n // Create a new intent to view the news URI\n Intent websiteIntent = new Intent(Intent.ACTION_VIEW, newsUri);\n\n // Send the intent to launch a new activity\n mContext.startActivity(websiteIntent);\n }", "@Override\n public void onClick(View view) {\n Intent detailIntent = Post.starter(mContext, mCurrentPost.getComment());\n\n //Start the detail activity\n mContext.startActivity(detailIntent);\n }", "@Override //Con esto se redirige a la DisplayActivity\n public void onClick(View v) {Intent goToDisplay = new Intent(context,DisplayActivity.class);\n\n /*Se añaden además otros dos parámetros: el id (para que sepa a cuál libro buscar)\n y el título (para ponerlo como título\n */\n goToDisplay.putExtra(\"ID\",id);\n goToDisplay.putExtra(\"titulo\", title);\n\n //Se inicia la DisplayActivity\n context.startActivity(goToDisplay);\n String url=null;\n goToDisplay.putExtra(\"http://http://127.0.0.1:5000/archivo/<ID>\", url);\n\n }", "public void showAbout(View view){\n startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n //Convert the String URL into a URI object (to pass into the Intent constructor)\n Uri newsUri = Uri.parse(url);\n\n // Create a new intent to view the earthquake URI\n Intent websiteIntent = new Intent(Intent.ACTION_VIEW, newsUri);\n\n // Send the intent to launch a new activity\n startActivity(websiteIntent);\n }", "@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n Intent share=new Intent(android.content.Intent.ACTION_SEND);\n\n share.setType(\"text/plain\");\n share.putExtra(android.content.Intent.EXTRA_SUBJECT,news.getTitle());\n share.putExtra(android.content.Intent.EXTRA_TEXT,\"Follow the link : \"+MainActivity.base_url+news.getAbsolute_url()+\" to read more\");\n startActivity(Intent.createChooser(share,\"Share via\"));\n\t\t\t\t\t\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.activity_feed_comment);\r\n\t\t\r\n/*\t\tlistView = (ListView)findViewById(R.id.comment_list);\r\n\t\t\r\n\t\tlistView.setAdapter(listAdapter);\r\n\t\tlistView.setOnItemClickListener(new OnItemClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\r\n\t\t\t\tonItemClicked(position);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});*/\r\n\t\t\r\n\t\tedit=(EditText) findViewById(R.id.edit);\r\n\t\t\r\n\t\tarticle=(Article)getIntent().getSerializableExtra(\"data\");\r\n\t\t\r\n\t\tfindViewById(R.id.btn_send).setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tsendContent();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t}", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(v.getContext(), WebViewActivity.class);\n //intent.setData(Uri.parse(listOfArticles.get(position).getLinkToArticle()));\n intent.putExtra(LINK_URL_KEY, listOfArticles.get(position).getLinkToArticle());\n v.getContext().startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n Post info_post = ControladoraPresentacio.getpost_perName(view.getContentDescription().toString());\n ControladoraPosts.settitle(info_post.getTitle());\n ControladoraPosts.setDescripcion(info_post.getDescription());\n ControladoraPosts.setuser(info_post.getUser());\n ControladoraPosts.setid(info_post.getId());\n ControladoraPosts.setdate(info_post.getTime());\n //Nos vamos a la ventana de VisualizeListOUser\n Intent intent = new Intent(PersonalPosts.this, VisualizePosts.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n //finish();\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(CatalogActivity.this, EditorActivity.class);\n startActivity(intent);\n }", "public void funcionAppian(View v){\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(\"https://ustglobalspaindemo.appiancloud.com/suite/tempo/news\"));\n if(intent.resolveActivity(getPackageManager())!= null){\n startActivity(intent);\n }\n }", "@Override\n public void onClick(View v) {\n String Url= currentNews.getWebUrl();\n //sent intent to the website\n Intent intent = new Intent();\n intent.setAction(Intent.ACTION_VIEW);\n intent.addCategory(Intent.CATEGORY_BROWSABLE);\n intent.setData(Uri.parse(Url));\n getContext().startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(context, Detail_Product_Normal.class);\n intent.putExtra(Param_Collection.EXTRA_POST_ID, item.getContent().getPostId().toString());\n intent.putExtra(Param_Collection.EXTRA_POST_PRODUCT_TITLE, item.getActivity());\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(mContext, ItemDetailsActivity.class);\n\n intent.putExtra(\"name\", modellist.get(postition).getTitle());\n intent.putExtra(\"picture\", modellist.get(postition).getType() + postition);\n intent.putExtra(\"cost\", modellist.get(postition).getCost());\n intent.putExtra(\"id\", modellist.get(postition).getId());\n intent.putExtra(\"description\", modellist.get(postition).getDescription());\n intent.putExtra(\"extra\", modellist.get(postition).getExtra());\n\n mContext.startActivity(intent);\n// Toast.makeText(mContext, \"Make the user see the details of the item\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void OnItemClick(View view, int postion) {\n Intent intent = new Intent(MyPubishActivity.this, IndexDetailActivity.class);\n String entryId = String.valueOf(publishList.get(postion).getItem_id());\n intent.putExtra(\"entryId\", entryId);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(c, \"yes\" + article.getWeblink(), Toast.LENGTH_LONG).show();\n }", "@Override\n public void onClick(View view) {\n // Get the clicked post\n int position = getAdapterPosition();\n // Valid Position\n if (position != RecyclerView.NO_POSITION) {\n Post post = posts.get(position);\n Intent intent = new Intent(context, DetailsActivity.class);\n // Doing the post parcelable means converting its attributes to a String\n intent.putExtra(\"postDetails\", Parcels.wrap(post));\n context.startActivity(intent);\n }\n }", "@Override\n public void onClick(View v) {\n Thought chosenThought = thoughts.get((int) v.getTag());\n Intent thoughtContentIntent = new Intent(getActivity(), ThougtContentActivity.class);\n thoughtContentIntent.putExtra(\"id\", chosenThought.thoughtId.toString());\n thoughtContentIntent.putExtra(\"image\", chosenThought.imagePath.getPath());\n thoughtContentIntent.putExtra(\"recording\", chosenThought.recordingPath.getPath());\n thoughtContentIntent.putExtra(\"title\", chosenThought.title);\n thoughtContentIntent.putExtra(\"details\", chosenThought.details);\n startActivity(thoughtContentIntent);\n }", "private void buildIntent() {\n ReportLogic.report(this, \"POST\", mInfo.c_rpt, 0, null);\n Intent intent = new Intent();\n Bundle bundle = new Bundle();\n bundle.putString(PKG_NAME, mInfo.href);\n bundle.putString(APP_NAME, mInfo.name);\n intent.putExtra(DetailActivity.DETAIL, bundle);\n intent.setClass(this, DetailActivity.class);\n startActivity(intent);\n }", "public void run() {\n Intent intent = new Intent(MainActivity.this, Summit.class);\n String description = woeid.getWoeid();\n intent.putExtra(EXTRA_MESSAGE, description);\n // Log.d(\"Long\", description);\n startActivity(intent);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_detail);\n\n Intent intent = getIntent();\n\n // tekst Journal opvragen\n JournalEntry journal = (JournalEntry) intent.getSerializableExtra(\"rightJournal\");\n\n // alles juiste tekst meegeven\n TextView title = findViewById(R.id.title);\n TextView content = findViewById(R.id.content);\n TextView mood = findViewById(R.id.mood);\n TextView time = findViewById(R.id.time);\n\n title.setText(journal.getTitle());\n content.setText(journal.getContent());\n mood.setText(journal.getMood());\n time.setText(journal.getTime());\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(MainActivity.this, CreateNoteActivity.class);\n startActivity(intent);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_story);\n\n // Get the intent that was given from last activity\n Intent intent = getIntent();\n String receivedText = intent.getStringExtra(\"text\");\n\n // Set the given text in the textview\n TextView textView = findViewById(R.id.textView5);\n textView.setText(receivedText);\n }", "public void botaosale(View v) {\n startActivity(new Intent(this, com.example.appstore.newsale.class));\n }", "public void sobreedad(View view){\n Intent sob = new Intent(this, Sobreedad.class);\n startActivity(sob);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(), DetailActivity.class)\n .putExtra(\"title\", model.getMovieName())\n .putExtra(\"vote_average\", model.getVotes() + \"\")\n .putExtra(\"overview\", model.getMovieOverview())\n .putExtra(\"popularity\", model.getMoviePopularity() + \"\")\n .putExtra(\"release_date\", model.getMovieReleaseDate())\n .putExtra(\"vote_count\", model.getMovieVoteCount())\n .putExtra(\"Picture\", model.getMoviePoster());\n\n startActivity(intent);\n\n }", "public void openNewActivity(){\n Intent intent = new Intent(this, InventoryDisplay.class);\n startActivity(intent);\n }", "@Override\r\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Item item = items.get(position);\r\n\r\n //create a bundle object and add data to present in the details activity\r\n Bundle extras = new Bundle();\r\n extras.putInt(\"image\", item.getImageResourceId());\r\n extras.putString(\"title\", item.getTitleResourceId());\r\n extras.putString(\"text\", item.getTextResourceId());\r\n\r\n //create and initialise the intent\r\n Intent detailsIntent = new Intent(getActivity(), DetailsActivity.class);\r\n\r\n //attach the bundle to the intent object\r\n detailsIntent.putExtras(extras);\r\n\r\n //start the activity\r\n startActivity(detailsIntent);\r\n\r\n }", "@Override\r\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Item item = items.get(position);\r\n\r\n //create a bundle object and add data to present in the details activity\r\n Bundle extras = new Bundle();\r\n extras.putInt(\"image\", item.getImageResourceId());\r\n extras.putString(\"title\", item.getTitleResourceId());\r\n extras.putString(\"text\", item.getTextResourceId());\r\n\r\n //create and initialise the intent\r\n Intent detailsIntent = new Intent(getActivity(), DetailsActivity.class);\r\n\r\n //attach the bundle to the intent object\r\n detailsIntent.putExtras(extras);\r\n\r\n //start the activity\r\n startActivity(detailsIntent);\r\n\r\n }", "public void Volgende(Intent intent){\r\n\r\n startActivity(intent);\r\n\r\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id)\n {\n \t Toast.makeText(getApplicationContext(),\n \t\t\t ((TextView) view).getText(), Toast.LENGTH_SHORT).show();\n \t Intent intent = new Intent(getApplicationContext(), RoomActivity.class);\n \t Bundle b = new Bundle();\n \t b.putString(\"title\", ((TextView) view).getText().toString());\n \t intent.putExtras(b);\n \t view.getContext().startActivity(intent);\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\n\t\t\t\t\tint ligaNr = Integer.parseInt(v.getContentDescription().toString().split(\";\")[0]);\n\t\t\t\t\tint spielNr = Integer.parseInt(v.getContentDescription().toString().split(\";\")[1]);\n\t\t\t\t\tIntent intent = new Intent(getActivity().getApplicationContext(), SpielActivity.class);\n\t\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\t\tbundle.putString(\"liganame\", ligaName);\n\t\t\t\t\tbundle.putInt(\"liganummer\", ligaNr);\n\t\t\t\t\tbundle.putInt(\"spielnummer\", spielNr);\n\t\t\t\t\tintent.putExtras(bundle);\n\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t}", "void startNewActivity(Intent intent);", "@Override\n public void onClick(View v) {\n if (postmodel.getSellType() == 1) {\n\n Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(postmodel.getProductLink()));\n context.startActivity(i);\n } else {\n Bundle bundle = new Bundle();\n bundle.putStringArray(\"images\", finalImageArray);\n Intent intent = new Intent(context, ProductPage.class);\n intent.putExtra(\"product_name\", postmodel.getProductName());\n intent.putExtra(\"product_cat\", postmodel.getProductCat());\n intent.putExtra(\"product_desc\", postmodel.getProductDesc());\n intent.putExtra(\"product_link\", postmodel.getProductLink());\n intent.putExtra(\"product_price\", String.valueOf(postmodel.getProductPrice()));\n intent.putExtra(\"id\", String.valueOf(postmodel.getId()));\n intent.putExtras(bundle);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intent);\n }\n\n }", "public void createBrowserIntent(View view){\n Uri uri = Uri.parse(\"https://www.linkedin.com/in/chidi-uwaleke-3769b9a8/\");\n\n //Step 2: Create a browserIntent with action 'Intent.ACTION_VIEW'\n Intent browserIntent = new Intent(Intent.ACTION_VIEW);\n\n //Step 3: Set the data of the intent\n browserIntent.setData(uri);\n\n //Step 4: Start the intent\n startActivity(browserIntent);\n }", "@Override\r\n\t\t\t\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t\t\t\tWindow.open(result.get(\"description\"), \"description\", result.get(\"description\"));\r\n\r\n\t\t\t\t\t\t}", "@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(v.getContext(), DetailViewActivity.class);\n intent.putExtra(\"title\", countries.get(position).getName());\n intent.putExtra(\"link\", countries.get(position).altSpellings.get(0));\n v.getContext().startActivity(intent);\n\n\n\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent irss = new Intent(man_lamar.this,ITCutiesReaderAppActivity.class);\n\t\t\t\tstartActivity(irss);\n\t\t\t\n\t\t\t}", "@Override\n public void onClick(Movie movie) {\n Intent intent = new Intent(this, DetailActivity.class);\n intent.putExtra(Intent.EXTRA_TEXT, movie);\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tItemNewFeed item = (ItemNewFeed) parent\n\t\t\t\t\t\t.getItemAtPosition(position);\n\t\t\t\tIntent intent = new Intent(getActivity(), DetailActivity.class);\n\t\t\t\tintent.putExtra(\"LINK\", item.getLink());\n\t\t\t\tintent.putExtra(\"TITLE\", item.getName());\n\t\t\t\tintent.putExtra(\"IMAGE\", item.getImage());\n\t\t\t\tintent.putExtra(\"DES\", item.getMessage());\n\t\t\t\tintent.putExtra(\"TITME\", item.getTime());\n\t\t\t\tintent.putExtra(\"POST_ID\", item.getPost_id());\n\t\t\t\tintent.putExtra(\"POS\", 2);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n mCatIndex = getIntent().getExtras().getInt(\"catIndex\", 0);\n mArtIndex = getIntent().getExtras().getInt(\"artIndex\", 0);\n\n // If we are in two-pane layout mode, this activity is no longer necessary\n if (getResources().getBoolean(R.bool.has_two_panes)) {\n finish();\n return;\n }\n\n // Place an ArticleFragment as our content pane\n ArticleFragment f = new ArticleFragment();\n getSupportFragmentManager().beginTransaction().add(android.R.id.content, f).commit();\n\n // Display the correct news article on the fragment\n NewsArticle article = NewsSource.getInstance().getCategory(mCatIndex).getArticle(mArtIndex);\n f.displayArticle(article);\n }", "@Override\n public void onClick(View view) {\n Intent teacherQuestions = new Intent(context.getApplicationContext(), TeacherQuestions.class);\n teacherQuestions.putExtra(\"topicsID\", listItem.getID());\n teacherQuestions.putExtra(\"topic\", topic);\n context.getApplicationContext().startActivity(teacherQuestions);\n }", "@Override\n public void onClick(View view) {\n Intent sharingIntent = new Intent(Intent.ACTION_SEND);\n sharingIntent.setType(\"text/plain\");\n sharingIntent.putExtra(Intent.EXTRA_TITLE,title );\n sharingIntent.putExtra(Intent.EXTRA_TEXT,description);\n startActivity(Intent.createChooser(sharingIntent,\"Share using\"));\n\n }", "public void showAbout() {\n\t\t/* track \"About\" */\n\t\ttracker.trackEvent(\"Listings\", \"Click\", \"About\", 0);\n\n\t\tUri uri = Uri.parse(\"http://static.flipzu.com/about-android.html\");\n\t\tIntent intent = new Intent(Intent.ACTION_VIEW, uri);\n\t\tstartActivity(intent);\n\t}", "@Override\n public void onClick(View view) {\n // Create a new intent to open the {@link word_list}\n Intent accomodationIntent = new Intent(Home.this, Accomodation.class);\n\n // Start the new activity\n startActivity(accomodationIntent);\n }", "@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(getActivity(), DetailActivity.class);\n intent.putExtra(\"NAME\", (String) mNameTextView.getText());\n intent.putExtra(\"REALNAME\", (String) mRealNameTextView.getText());\n intent.putExtra(\"URL\", (String) mHero.getUrl());\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n startBrowserActivity(MODE_SONIC, StorageNews.get(1).webUrl);\n\n //startActivity(intent);\n //Log.d(\"NNNNN\",StorageNews.toString());\n }", "@Override\n public void onClick(View view) {\n\n startActivity(getIntent());\n }", "public void onClick(View v) {\n Intent intent = new Intent();\n intent.setClass(memberinfo.this,story.class);\n startActivity(intent);\n\n }", "@Override\r\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n News currentNews = mAdapter.getItem(position);\r\n\r\n // Convert the String URL into a URI object (to pass into the Intent constructor)\r\n Uri newsUri = Uri.parse(currentNews.getUrl());\r\n\r\n // Create a new intent to view the Guardian URI\r\n Intent websiteIntent = new Intent(Intent.ACTION_VIEW, newsUri);\r\n\r\n // Send the intent to launch a new activity\r\n startActivity(websiteIntent);\r\n }", "@Override\n public void onClick(View v) {\n startBrowserActivity(MODE_SONIC, StorageNews.get(2).webUrl);\n\n //startActivity(intent);\n //Log.d(\"NNNNN\",StorageNews.toString());\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tUri webpage = Uri.parse(currentItem.getStoryUrl());\n\n\t\t\t\t// Create web browser intent\n\t\t\t\tIntent storyOnWebIntent = new Intent(Intent.ACTION_VIEW, webpage);\n\n\t\t\t\t// Check web activity can be handled by the device and start activity\n\t\t\t\tif (storyOnWebIntent.resolveActivity(mContext.getPackageManager()) != null) {\n\t\t\t\t\tmContext.startActivity(storyOnWebIntent);\n\t\t\t\t}\n\n\t\t\t}", "private void showAboutActivity(String name){\n Intent i = new Intent(this, WelcomeActivity.class);\n i.putExtra(\"userName\",name);\n //se muestra la segunda actividad\n startActivity(i);\n\n\n }", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(getActivity(),\r\n\t\t\t\t\t\tIntroductionActivity.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}", "@Override\n public void onClick(View v) {\n startBrowserActivity(MODE_SONIC, StorageNews.get(3).webUrl);\n\n //startActivity(intent);\n //Log.d(\"NNNNN\",StorageNews.toString());\n }", "@Override\n\t\t\tpublic void onClick(View v)\n\t\t\t{\n\t\t\t\tIntent intent = new Intent(context, TopicInfoActivity.class);\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\tbundle.putSerializable(\"TOPIC_INFO\", list.get(position));\n\t\t\t\t// bundle.putLong(Constant.DETAIL_ID,\n\t\t\t\t// list.get(position).getBbsTopic());\n\t\t\t\t// bundle.putString(Constant.DETAIL_TITLE,\n\t\t\t\t// list.get(position).getPost().getTitle());\n\t\t\t\tintent.putExtras(bundle);\n\t\t\t\tcontext.startActivity(intent);\n\t\t\t}", "@Override\n public void onClick(View v) {\n startBrowserActivity(MODE_SONIC, StorageNews.get(4).webUrl);\n\n //startActivity(intent);\n //Log.d(\"NNNNN\",StorageNews.toString());\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t Intent intent=new Intent(ActMore.this,ActRecommend.class);\n//\t\t\t\t \n//\t\t\t\t Bundle bundle=new Bundle();\n//\t\t\t\t bundle.putInt(\"id\", 1);\n//\t\t\t\t intent.putExtras(bundle);\n\t\t ActMore.this.startActivity(intent);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\tpublic void onClick(View v) {\n\t\t startActivity(new Intent(PublishActivity.this,ClassifyActivity.class));\t\r\n\t\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n Intent i = new Intent(getActivity(), MediaDetailActivity.class);\n Media media = lectures.get(position);\n i.putExtra(\"url\", media.getUrl());\n i.putExtra(\"type\", media.type);\n i.putExtra(\"author\", media.author);\n i.putExtra(\"author_image_url\", media.getImageUrl());\n i.putExtra(\"name\", media.getName());\n startActivity(i);\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View view, int position,\n\t\t\t\t\tlong id) {\n\t\t\t\tIntent i = new Intent(MainActivity.this,NewsDetailActivity.class);\n\t\t\t\tBundle bundle=new Bundle();\n\t\t\t\t\n\t\t\t\tTextView title=(TextView)view.findViewById(R.id.title);\n\t\t\t\tTextView snapShot=(TextView)view.findViewById(R.id.snap_shot);\n\t\t\t\tTextView newsSource=(TextView)view.findViewById(R.id.news_source);\n\t\t\t\tTextView date=(TextView)view.findViewById(R.id.date);\n\t\t\t\tbundle.putInt(\"news_id\",(Integer) NewsTest.get(position).get(\"news_id\"));\n\t\t\t\tbundle.putString(\"title\", title.getText().toString());\n\t\t\t\tbundle.putString(\"snapShot\", snapShot.getText().toString());\n\t\t\t\tbundle.putString(\"newsSource\", newsSource.getText().toString());\n\t\t\t\tbundle.putString(\"date\", date.getText().toString());\n\t\t\t\tbundle.putString(\"body\",(String)NewsTest.get(position).get(\"body\"));\n\t\t\t\t\n\t\t\t\ti.putExtras(bundle);\n\t\t\t\tstartActivity(i);\n\t\t\t}", "public void goToDisplayActivity(View view)\n {\n Intent intent = new Intent(MainActivity.this, DisplayActivity.class);\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n \tUri uri = Uri.parse(\"http://l-sls0483d.research.ltu.se/userdata/notes/\"+param1+\"/notes.html\");\n \t\t\n \t\n \t\tIntent intent = new Intent(Intent.ACTION_VIEW, uri);\n \t\tstartActivity(intent);\n \n }", "private void launch() {\n Intent intent = new Intent(getActivity(), ForumAddActivity.class);\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tIntent it = new Intent(getActivity(), DetailActivity.class);\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\tbundle.putString(MangaInfoFrag.MANGA_LINK_STRING, getActivity()\n\t\t\t\t\t\t.getResources().getString(R.string.domain)\n\t\t\t\t\t\t+ results.get(position - 1).getLink());\n\t\t\t\tit.putExtras(bundle); \n\t\t\t\tstartActivity(it);\n\t\t\t\tToast.makeText(getActivity(),\n\t\t\t\t\t\tresults.get(position - 1).getLink(), Toast.LENGTH_SHORT)\n\t\t\t\t\t\t.show();\n\t\t\t}", "@Override\n public void onItemClickListener(View view, NewsItem data, int position) {\n Bundle bundle = new Bundle();\n bundle.putString(TITLE, data.title);\n bundle.putString(WebActivity.URL, data.detailurl);\n qStartActivity(WebActivity.class, bundle);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(context, CommentActivity.class);\n intent.putExtra(\"comment_id\", String.valueOf(comments.get(pos).getId()));\n intent.putExtra(\"idc\", comments.get(pos).getId());\n intent.putExtra(\"content \",comments.get(pos).getDescription());\n context.startActivity(intent);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n \tUri uri = Uri.parse(\"http://l-sls0483d.research.ltu.se/userdata/notes/\"+param1+\"/notes.html\");\n \t\n \t\tIntent intent = new Intent(Intent.ACTION_VIEW, uri);\n \t\tstartActivity(intent);\n }", "@Override\n public void onClick(View view) {\n // Create a new intent to open the {@link Electronic}\n Intent electronicIntent = new Intent(getApplicationContext(), Electronic.class);\n\n // Start the new activity\n startActivity(electronicIntent);\n }", "@Override\n public void onClick(View v){\n editor.putString(\"term\", idNum);\n editor.commit();\n\n //switch to Details activity\n Intent intent = new Intent(v.getContext(), TermDetailsActivity.class);\n v.getContext().startActivity(intent);\n }", "@Override\n\t\t\t\t\tpublic void onClick(View v) \n\t\t\t\t\t{\n\t\t\t\t\t\tString url = \"https://www.facebook.com/dialog/feed?app_id=1507764116109075&\" +\n\t\t\t\t\t\t\t\t \t \"link=https://play.google.com/store/apps/details?id=com.achyuthnfn.cnbfinal&\" +\n\t\t\t\t\t\t\t\t \t \"caption=GuessIn&\" +\n\t\t\t\t\t\t\t\t \t \"description=\"+Uri.parse(\"My smartphone just thought of a word and I guessed it in \"+attempts+\" attempts. Check out the new game by @nfnlabs called GuessIn!\")+\n\t\t\t\t\t\t\t\t \t \"&redirect_uri=https://www.facebook.com/connect/login_success.html\"+\n\t\t\t\t\t\t\t\t \t \"&picture=http://nfnlabs.in/wp-content/uploads/2014/06/Share%20Image.png\";\n\t\t\t\t\t\tIntent intent=new Intent(Intent.ACTION_VIEW);\n\t\t\t\t\t\tintent.setData(Uri.parse(url));\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t}", "private void openActivity() {\n }", "private void launchActivity(String title, String url){\n // package intent\n // start activity\n\n NotificationCompat.Builder builder = new NotificationCompat.Builder(mContext, \"default\");\n\n String content = \"The instruction for \" + title + \" can be found here!\";\n\n //set icons\n builder.setSmallIcon(android.R.drawable.btn_star);\n builder.setStyle(new NotificationCompat.BigTextStyle(builder).bigText(content));\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n\n // create a pending intent for the notification with the intent I created\n PendingIntent pendingIntent = PendingIntent.getActivity(mContext,0, intent, 0);\n builder.setContentIntent(pendingIntent);\n\n //set the title and content of the notification\n builder.setContentTitle(\"Cooking Instruction\");\n builder.setContentText(content);\n\n // get the system service to display this notification\n NotificationManager notificationManager = (NotificationManager) mContext.getSystemService(NOTIFICATION_SERVICE);\n\n //notify\n notificationManager.notify(1, builder.build());\n\n\n }", "public void Call_My_Blog(View v) {\n Intent intent = new Intent(MainActivity.this, My_Blog.class);\n startActivity(intent);\n\n }", "@Override\n public void onItemClick(AdapterView<?> aView, View view, int position, long id) {\n TextView pos_Id = (TextView) view.findViewById(R.id.posterID);\n TextView pos_Title = (TextView) view.findViewById(R.id.posterTitle);\n TextView pos_Author = (TextView) view.findViewById(R.id.posterAuthor);\n TextView pos_Email = (TextView) view.findViewById(R.id.posterEmail);\n String idNo = (String) pos_Id.getText();\n String title = pos_Title.getText().toString();\n String author = pos_Author.getText().toString();\n String email = pos_Email.getText().toString();\n\n\n Intent intent = new Intent(MainActivity.this, EvaluateActivity.class);\n intent.putExtra(\"ID\",idNo);\n intent.putExtra(\"Title\",title);\n intent.putExtra(\"Author\",author);\n intent.putExtra(\"Email\",email);\n startActivity(intent);\n }", "@Override\n public void onClick(View view){\n switch(view.getId()) {\n case R.id.artists:\n // Create a new intent to open the {@link ArtistsActivity}\n Intent artistsIntent = new Intent(MainActivity.this, ArtistsActivity.class);\n // Start the new activity\n startActivity(artistsIntent);\n break;\n case R.id.albums:\n // Create a new intent to open the {@link ArtistsActivity}\n Intent albumsIntent = new Intent(MainActivity.this, AlbumsActivity.class);\n // Start the new activity\n startActivity(albumsIntent);\n break;\n case R.id.tracks:\n // Create a new intent to open the {@link ArtistsActivity}\n Intent tracksIntent = new Intent(MainActivity.this, TracksActivity.class);\n // Start the new activity\n startActivity(tracksIntent);\n break;\n }\n }", "@Override\n public void onClick(View view) {\n\n startActivity(new Intent(MainActivity.this,InsertNotesActivity.class));\n }", "@Override\n public void onClick(View v) {\n Uri uri = Uri.parse(url);\n //Se crea un intent implicito para visualizar los links en un navegador\n Intent intent = new Intent(Intent.ACTION_VIEW, uri);\n //Se inicia la actividad del navegador\n activityt.startActivity(intent);\n }", "public void onClick(View v) {\n\n Intent visitSite_intent = new Intent(MainActivity.this, DetailActivity.class);\n visitSite_intent.putExtra(\"url\",\"http://aanm-vvrsrpolytechnic.ac.in/\");\n startActivity(visitSite_intent);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(context ,commentshow.class);\n context.startActivity(intent);\n\n\n }", "private void toViewBudget(){\n // intent for view budget screen\n Intent viewBudgetScreen = new Intent(this, ViewBudget.class);\n startActivity(viewBudgetScreen);\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\tSharebean sharebean = new Sharebean();\n\t\t\t\tsharebean.setTitle(adapter.getList().get(arg2 - 1).getTitle());\n\t\t\t\tsharebean.setContext(adapter.getList().get(arg2 - 1).getContent().substring(0, 50));\n\t\t\t\tsharebean.setAricleUrl(adapter.getList().get(arg2 - 1).getUrl());\n\t\t\t\tsharebean.setImgUrl(adapter.getList().get(arg2 - 1).getCover());\n\t\t\t\tsharebean.setIs_dig(adapter.getList().get(arg2).isIs_dig());\n\t\t\t\tbundle.putSerializable(WebShareAct.class.getName(), sharebean);\n\t\t\t\tsharebean.setAricleId(String.valueOf(adapter.getList().get(arg2 - 1).getArticle_id()));\n\t\t\t\topenActivity(WebShareAct.class, bundle);\n\t\t\t}", "@Override\n public void onClick(View v) {\n String shareBody =item.title.toString()+\"\\n\\n\"+getResources().getString(R.string.item_show)+\"\\n\"+ Config.APP_IMAGES_URL.replace(\"uploads/\",\"share/\")+item.id;\n Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);\n sharingIntent.setType(\"text/plain\");\n sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody);\n sharingIntent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.app_name));\n startActivity(Intent.createChooser(sharingIntent, getResources().getString(R.string.app_name)));\n }", "@Override\n public void onClick(View v) {\n ArticleUtil.launchDetailActivity(mContext, bean.getAid(), bean.getSid(), bean.getAl(), false, bean);\n GoogleAnalyticsTracker.setGoogleAnalyticsEvent(mContext, \"Related Article\", \"Related article: Article Clicked\", \"Article detail page\");\n FlurryAgent.logEvent(\"Related Article: \" + \"Article Clicked\");\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(context, ProdDescActivity.class);\n context.startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n\n String url = \"https://club-omnisports-des-ulis.assoconnect.com/billetterie/offre/146926-a-adhesion-karate-2020-2021\";\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(url));\n startActivity(i);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_new) {\n newArt();\n }\n if (id == R.id.action_moreinfo) {\n new AlertDialog.Builder(this)\n .setMessage(\"Do you want to get the information from the MoMa\")\n .setCancelable(false)\n .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n })\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Uri webpage = Uri.parse(\"http://www.moma.org/collection/artists/4057\");\n Intent intent = new Intent(Intent.ACTION_VIEW, webpage);\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }\n })\n .create()\n .show();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_headline_story);\n\t\tString name=MainActivity.name;\n\t\tString images=MainActivity.images;\n\t\tString title=MainActivity.title;\n\t\theadlineList=new ArrayList<Headlines>();\n\t\tnew JSONAsyncTask().execute(\"http://ec2-50-17-146-176.compute-1.amazonaws.com:8080/ethrweb-v1/ethr/story/getTopStories?topics=\"+name);\n\t\timg=(ImageView)findViewById(R.id.imageView1);\n\t\timageloader=new ImageLoader(HeadlineStory.this);\n\t\timageloader.DisplayImage(images,img);\n\t\timg.setAdjustViewBounds(true);\n\t\timg.setMaxWidth(400);\n\t\timg.setMaxHeight(300);\n\t\t\n\t img.setMinimumWidth(380);\n\t txt=(TextView)findViewById(R.id.name);\n\t txt.setText(title);\n\t txtname=(TextView)findViewById(R.id.nameimage);\n\t txtname.setText(title);\n\t ListView lv=(ListView)findViewById(R.id.list);\n\t\tadapterch=new HeadlineAdapter(getApplicationContext(),R.layout.headlines,headlineList);\n\t\tactionBar=getActionBar();\n\t\tactionBar.setDisplayShowTitleEnabled(true);\n\t\tactionBar.setTitle(\"Headlines\");\n\t\tactionBar.setIcon(R.drawable.headlines);\n\t\tlv.setAdapter(adapterch);\n\t\t\n\t lv.setOnItemClickListener(new OnItemClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int position,\n\t\t\t\t\tlong id) {\n\t\t\t\t\t\t\t\t\n\t\t\t\tID=headlineList.get(position).getid();\n\t\t\t\tImage=headlineList.get(position).getimg();\n\t\t\t\tsource=headlineList.get(position).getsrc();\n\t\t\t\thead=headlineList.get(position).getTitle();\n\t\t\t\tpubdate=headlineList.get(position).getpubdate();\n\t\t\t\tlink=headlineList.get(position).getlink();\n\t\t\t\tIntent nn=new Intent(getApplicationContext(),StoryDetail.class);\n\t\t\t\tstartActivity(nn);\n\t\t\t\t\n\t\t\t }\n\t\t\t\n\t\t});\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public void onCreate(Bundle bundle) {\n super.onCreate(bundle);\n setContentView(R.layout.intercom_activity_article);\n Bundle extras = getIntent().getExtras();\n if (extras != null) {\n String str = \"\";\n this.conversationId = extras.getString(PARCEL_CONVERSATION_ID, str);\n this.partId = extras.getString(PARCEL_PART_ID, str);\n this.linkId = extras.getString(PARCEL_LINK_ID, str);\n }\n this.requestManager = c.a((C0195j) this);\n Injector injector = Injector.get();\n this.appConfigProvider = injector.getAppConfigProvider();\n this.api = injector.getApi();\n this.api.getLink(this.linkId, this.apiCallback);\n this.metricTracker = injector.getMetricTracker();\n int primaryOrDarkColor = ColorUtils.primaryOrDarkColor(this, (AppConfig) this.appConfigProvider.get());\n this.timeFormatter = new TimeFormatter(this, injector.getTimeProvider());\n this.linkView = (FrameLayout) findViewById(R.id.link_view);\n this.titleBar = (FrameLayout) findViewById(R.id.link_title_bar);\n this.titleBarText = (TextView) findViewById(R.id.title_bar_text);\n this.titleBarText.setTextColor(primaryOrDarkColor);\n this.loadingView = (ProgressBar) findViewById(R.id.loading_view);\n this.title = (TextView) findViewById(R.id.title);\n this.title.setTextColor(primaryOrDarkColor);\n this.description = (TextView) findViewById(R.id.description);\n this.reactionComposer = (ReactionInputView) findViewById(R.id.reaction_input_view);\n this.composerLayout = findViewById(R.id.link_composer_container);\n this.author = (TextView) findViewById(R.id.author);\n this.updated = (TextView) findViewById(R.id.updated);\n this.avatarSize = getResources().getDimensionPixelSize(R.dimen.intercom_avatar_size);\n this.avatar = (ImageView) findViewById(R.id.avatar_view);\n UploadingImageCache uploadingImageCache = new UploadingImageCache();\n Api api2 = this.api;\n ViewHolderGenerator viewHolderGenerator = new ViewHolderGenerator(uploadingImageCache, api2, this.appConfigProvider, this.conversationId, new LightboxOpeningImageClickListener(api2), new LinkOpeningButtonClickListener(this.api), this.requestManager, injector.getGson(), injector.getBus(), this.metricTracker, this);\n this.articleHolder = viewHolderGenerator.getArticleHolder();\n this.intercomErrorView = (IntercomErrorView) findViewById(R.id.error_layout_article);\n this.intercomErrorView.setActionButtonTextColor(primaryOrDarkColor);\n this.intercomErrorView.setActionButtonClickListener(new OnClickListener() {\n public void onClick(View view) {\n IntercomArticleActivity.this.loadingView.setVisibility(0);\n IntercomArticleActivity intercomArticleActivity = IntercomArticleActivity.this;\n intercomArticleActivity.api.getLink(intercomArticleActivity.linkId, intercomArticleActivity.apiCallback);\n }\n });\n this.linkContainer = (LinearLayout) findViewById(R.id.link_container);\n this.scrollView = (ContentAwareScrollView) findViewById(R.id.scroll_view);\n findViewById(R.id.dismiss).setOnClickListener(new OnClickListener() {\n public void onClick(View view) {\n IntercomArticleActivity intercomArticleActivity = IntercomArticleActivity.this;\n intercomArticleActivity.metricTracker.closedArticle(intercomArticleActivity.conversationId, intercomArticleActivity.linkId, 0);\n IntercomArticleActivity.this.closeLink();\n }\n });\n if (VERSION.SDK_INT >= 21) {\n getWindow().setSharedElementEnterTransition(enterTransition());\n getWindow().setSharedElementReturnTransition(returnTransition());\n findViewById(R.id.link_view).setTransitionName(\"link_background\");\n }\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String iid = Constants.BLOGS_DETAIL + mBlogList.getList().get(position).getId()+\".xml\";\n\n System.out.println(\"blog----iid= \"+iid);\n Intent intent = new Intent(UIUtils.getContext(), BlogDetailActivity.class);\n intent.putExtra(OschinaIntent.EXTRA_BLOGS_DETAIL, iid);\n startActivity(intent);\n\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.paper);\r\n\t\tIntent intent = this.getIntent();\r\n\t\tPaper paper = (Paper) intent.getSerializableExtra(\"paper\");\r\n if(paper == null){\r\n \tpaper = new Paper();\r\n }\r\n viewPaper(paper);\r\n\r\n\t}", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {\n NewsItem currentNewsItem = newsAdapter.getItem(position);\n\n // Convert the String URL into a URI object (to pass into the Intent constructor)\n Uri earthquakeUri = Uri.parse(currentNewsItem.getUrl());\n\n // Create a new intent to view the earthquake URI\n Intent websiteIntent = new Intent(Intent.ACTION_VIEW, earthquakeUri);\n\n // Send the intent to launch a new activity\n startActivity(websiteIntent);\n }", "@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(getApplicationContext(), DetailActivity.class);\n intent.putExtra(Constant.INTENT_WEB_URL, webHotUrl);\n startActivity(intent);\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n MediaPlayer.create(getActivity(), R.raw.click).start();\n\n RedditEntry redditEntry = (RedditEntry) adapterView.getItemAtPosition(i);\n Intent intent = new Intent(getActivity(), EntryDisplayActivity.class);\n intent.putExtra(\"entry\", redditEntry);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Intent p1page = new Intent(v.getContext(), AshmoleanMusuem.class);\n startActivity(p1page);\n }" ]
[ "0.7035482", "0.6949874", "0.6830637", "0.67901915", "0.66730994", "0.665357", "0.6600075", "0.65626985", "0.6543369", "0.6457991", "0.6367802", "0.63638663", "0.6268847", "0.6223183", "0.6214689", "0.6210726", "0.6199931", "0.61669517", "0.6160871", "0.61452293", "0.6144273", "0.611959", "0.610769", "0.6096315", "0.6087179", "0.6083347", "0.60830194", "0.607638", "0.60644406", "0.6055405", "0.60504454", "0.6046488", "0.60442877", "0.60442877", "0.60336155", "0.60282904", "0.60202247", "0.60164726", "0.60109925", "0.60108906", "0.60077715", "0.5992595", "0.5991944", "0.59846264", "0.59741765", "0.5973905", "0.5973577", "0.597337", "0.59700334", "0.5966714", "0.59660494", "0.59560484", "0.59497595", "0.59411633", "0.5934599", "0.59335166", "0.59198475", "0.5918875", "0.5918624", "0.591229", "0.5912005", "0.5908692", "0.5904942", "0.5899558", "0.5893931", "0.5891306", "0.5883012", "0.58753204", "0.58734816", "0.5871464", "0.5867594", "0.5866978", "0.5865852", "0.5864226", "0.5863596", "0.58633465", "0.58570683", "0.58555937", "0.58517087", "0.58505446", "0.58465385", "0.5840586", "0.58370805", "0.58348215", "0.5831213", "0.5830877", "0.5829686", "0.5811205", "0.57973397", "0.5796356", "0.5795794", "0.57955766", "0.5793029", "0.57921785", "0.57907516", "0.578977", "0.57892394", "0.57803714", "0.5777252", "0.5772197" ]
0.7108957
0
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_search, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.7904975", "0.78056985", "0.77671826", "0.77275974", "0.7632173", "0.7622138", "0.75856143", "0.7531176", "0.7488386", "0.74576557", "0.74576557", "0.74391466", "0.7422802", "0.7403698", "0.7392229", "0.73873955", "0.73796785", "0.737091", "0.73627585", "0.7356357", "0.73460615", "0.73415256", "0.73305213", "0.7329754", "0.7326127", "0.731949", "0.73171073", "0.7314056", "0.7304481", "0.7304481", "0.73022866", "0.72986156", "0.7293808", "0.7287263", "0.72836643", "0.72815806", "0.72789687", "0.72602886", "0.72602886", "0.72602886", "0.7259816", "0.7259814", "0.72502047", "0.7225156", "0.7219905", "0.7217096", "0.72046524", "0.72012514", "0.7201042", "0.71939653", "0.71857035", "0.71786326", "0.7169012", "0.7167622", "0.7154164", "0.71538347", "0.7136608", "0.7135137", "0.7135137", "0.7129952", "0.7129347", "0.71241516", "0.7123588", "0.7123425", "0.71223265", "0.71175927", "0.71175927", "0.71175927", "0.71175927", "0.71171945", "0.71171755", "0.71165764", "0.7114952", "0.71124375", "0.7109778", "0.7109144", "0.7105842", "0.71002746", "0.70984215", "0.7096018", "0.709392", "0.709392", "0.70864546", "0.7083677", "0.708144", "0.70804363", "0.70738995", "0.7068429", "0.7061805", "0.7060801", "0.7060423", "0.7051581", "0.7037953", "0.7037953", "0.70359737", "0.7035605", "0.7035605", "0.7033388", "0.70312315", "0.7029681", "0.70192695" ]
0.0
-1
adds a frame to the game
public void addFrame(Frame frame) throws BowlingException { if(frames.size()==10) throw new BowlingException(); else frames.add(frame); //to be implemented }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addFrame() {\n String name = selectString(\"What is the name of this frame?\");\n ReferenceFrame frame = selectFrame(\"What frame are you defining this frame relative to?\");\n double v = selectDouble(\"How fast is this frame moving (as a fraction of c)?\", -1, 1);\n try {\n frame.boost(name, v);\n System.out.println(\"Frame added!\");\n } catch (NameInUseException e) {\n System.out.println(\"A frame with that name already exists!\");\n } catch (FasterThanLightException e) {\n System.out.println(\"Nothing can move as quickly as light!\");\n }\n }", "public void addFrame(AnimationFrame frame) {\n\t\tthis.frames.add(frame);\n\t}", "public void run() {\n gf = addGameFrame(\"Pacman\", displayW, displayH);\n }", "public void addFrame(Point newFrame)\n {\n frames.add(newFrame);\n }", "public void buildFrame();", "public void addChildFrame(JFrame frame);", "FRAME createFRAME();", "Frame createFrame();", "public void addFrame(final Image image) {\n\t\tframes.add(new AnimFrame(image));\n\t}", "public void createFrame() {\r\n System.out.println(\"Framing: Adding the log walls.\");\r\n }", "public addStFrame() {\n initComponents();\n }", "public void putFrame()\n {\n if (currImage != null)\n {\n super.putFrame(currImage, faceRects, new Scalar(0, 255, 0), 0);\n }\n }", "public void addFrame(GInternalFrame internalFrame) {\r\n\t\tinternalFrame.setDesktopPane(this);\r\n\t\tint spos = (frames.size() + 1) * 12;\r\n\t\tint left = getFrame().getAbsoluteLeft() + spos;\r\n\t\tint top = getFrame().getAbsoluteTop() + spos;\r\n\r\n\t\t// System.out.println(\"HippoDesktopPane.add frame gf.absleft \" +\r\n\t\t// getFrame().getAbsoluteLeft() + \" gf.abstop \"\r\n\t\t// + getFrame().getAbsoluteTop() + \" \" + spos);\r\n\r\n\t\tSelectBoxManagerImpl selectBoxManager = ((DefaultGFrame) internalFrame)\r\n\t\t\t\t.getSelectBoxManager();\r\n\t\tif (selectBoxManager instanceof SelectBoxManagerImplIE6) {\r\n\t\t\tgetFrame().add(selectBoxManager.getBlockerWidget(), left, top);\r\n\t\t}\r\n\t\tgetFrame().add((Widget) internalFrame);\r\n\t\tinternalFrame.setLocation(left, top);\r\n\r\n\t\t// NOTE needed to add this to get the windwos to pop ontop of the ocean\r\n\t\tDOM.setStyleAttribute(((DefaultGInternalFrame) internalFrame).getElement(), \"position\",\r\n\t\t\t\t\"absolute\");\r\n\r\n\t\tframes.add(internalFrame);\r\n\r\n\t\t// internalFrame.setTheme(theme);\r\n\t}", "public void newGame()\n\t{\n\t\tthis.setVisible(false);\n\t\tthis.playingField = null;\n\t\t\n\t\tthis.playingField = new PlayingField(this);\n\t\tthis.setSize(new Dimension((int)playingField.getSize().getWidth()+7, (int)playingField.getSize().getHeight() +51));\n\t\tthis.setLocation(new Point(200,20));\n\t\tthis.setContentPane(playingField);\n\t\t\n\t\tthis.setVisible(true);\n\t}", "public Frame3.Builder addFrame(Frame3 frame) {\n\t\t\treturn addFrame(frame, FramePosition.CENTRE);\n\t\t}", "public Game(JFrame frame) {\n\t\t// uses GridLayout\n\t\tsuper(new GridLayout(2, 1));\n\t\t// add the text\n\t\tthis.add(addText());\n\t\t// add the controls\n\t\tthis.add(addControl());\n\t\t// get the JFrame passed in from GameView so that we can update it later\n\t\tthis.frame = frame;\n\t}", "private void createFrame(){\n System.out.println(\"Assembling \" + name + \" frame.\");\n }", "private void createFrame() {\n System.out.println(\"Assembling \" + name + \" frame\");\n }", "public Screen(Frame frame) { \n frame.addMouseListener(new KeyHandler()); // Adds a mouse listener to the JFrame\n frame.addMouseMotionListener(new KeyHandler()); // Adds a mouse motion listener to the JFrame\n gameLoop.start(); // Starts the thread\n }", "private void addEvent() {\n String name = selectString(\"What is the name of this event?\");\n ReferenceFrame frame = selectFrame(\"Which frame would you like to define the event in?\");\n double time = selectDouble(\"When does the event occur (in seconds)?\");\n double x = selectDouble(\"Where does the event occur (in light-seconds)?\");\n world.addEvent(new Event(name, time, x, frame));\n System.out.println(\"Event added!\");\n }", "private void draw() {\n frames++;\n MainFrame.singleton().draw();\n }", "private void agregarAlPanel(JInternalFrame frame)\n\t{\n\t\tframe.setBounds(10 * (contentPane.getAllFrames().length + 1), 50 + (10 * (contentPane.getAllFrames().length + 1)), (int)frame.getBounds().getWidth(), (int)frame.getBounds().getHeight());\n\t\tcontentPane.add(frame);\n\t\tframe.moveToFront();\n\t}", "public void setFrame(ChessFrame f)\n {\n frame = f;\n }", "private KeyFrame addNewKeyFrame(){\n return new KeyFrame(Duration.millis(1000), e -> {\n\n //Performs a check on the width of the board to see if it should run concurrently or not\n if (board.getWidth() < 600) {\n gOL.nextGeneration();\n } else {\n\n //Does a check to see if threadWorkers executorService has been shut down for any reason.\n //Runs nextGenerationConcurrent if it is still active, or normally if not.\n if (!threadWorker.getShutDownStatus()) {\n gOL.nextGenerationConcurrent();\n } else {\n gOL.nextGeneration();\n }\n }\n\n draw();\n gOL.incrementGenCounter();\n generationLabel.setText(Integer.toString(gOL.getGenCounter()));\n aliveLabel.setText(Integer.toString(board.getCellsAlive()));\n });\n }", "void insertView(ViewFrame view);", "public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}", "public static void newGame() throws IOException {\n\t\tmancalaFrame.setContentPane( new BoardGraphicsLabel() ); // bottom level board\t\r\n\t\tmancalaFrame.add( new PitsGraphicsPanel() ); // add pits jbuttons from custom layered pane\r\n\t\t\t\t\r\n\t\t// create the top layer glass pane for repainting stones and labels\r\n\t\t// glass pane allows buttons to be pushed with components on top\r\n\t\tstonePaintGlassPane = new StonePaintGlassPane( mancalaFrame.getContentPane() );\r\n\t\t\r\n\t\tmancalaFrame.setGlassPane( stonePaintGlassPane );\r\n\t\t\t\t\r\n\t\t\t\t// grid bag layout, will be used to place pit buttons in proper location\r\n\t\t\t\t// in Class PitsGraphicsPanel\r\n\t\tmancalaFrame.setLayout( new GridBagLayout() );\r\n\t\t\t\t// set true to glassPane\r\n\t\tstonePaintGlassPane.setVisible(true);\r\n\t\t\t\t\r\n\t\t\t\t// keep frame one size so we don't have to calculate resizing\r\n\t\t\t\t// sorry for the laziness\r\n\t\tmancalaFrame.setResizable(false);\r\n\t\tmancalaFrame.pack(); // set all proper sizes to prefered size\r\n\t\tmancalaFrame.setVisible(true); // set visible\r\n\t}", "public void actionPerformed(ActionEvent e){\n\t\t\t\tframe.setSize(1105,705);\n\t\t\t\tframe.remove(op);\n\t\t\t\tgp = new GamePanel(numplanes);\n\t\t\t\tframe.add(gp);\n\t\t\t\tframe.setBackground(Color.black);\n\t\t\t\tgp.requestFocus();\n\t\t\t\t\n\t\t\t\tframe.setLocationRelativeTo(null);\n\t\t\t\ttime.start();\n\t\t\t}", "public FrameInsert() {\n initComponents();\n }", "public static void add() {\n\t\trender();\n\t}", "public static void spielstart() {\n\n\t\tThread thread = new Thread() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tgameboard = new GameFrame();\n\n\t\t\t}\n\t\t};\n\n\t\tthread.start();\n\n\t}", "private static void createAndShowGUI() {\n //Create and set up the window.\n JFrame frame = new JFrame(\"WAR OF MINE\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane = new Gameframe();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.setSize(800,1000);\n frame.setVisible(true);\n }", "void update() {\n rectToBeDrawn = new Rect((frameNumber * frameSize.x)-1, 0,(frameNumber * frameSize.x + frameSize.x) - 1, frameSize.x);\n\n //now the next frame\n frameNumber++;\n\n //don't try and draw frames that don't exist\n if(frameNumber == numFrames){\n frameNumber = 0;//back to the first frame\n }\n }", "public SpaceInvaders(String frameTitle) {\r\n super(frameTitle);\r\n\r\n /**\r\n * Exit the program if the window is closed.\r\n */\r\n addWindowListener (new java.awt.event.WindowAdapter() {\r\n @Override public void windowClosing(java.awt.event.WindowEvent windowEvent) { System.exit(0);}});\r\n\r\n backGroundImage = new javax.swing.ImageIcon(\"back3.jpg\").getImage();\r\n\r\n alienImage = new javax.swing.ImageIcon(\"alien.jpg\").getImage();\r\n\r\n //Create the ship to fight off the invading army!\r\n ship = new Ship(this);\r\n\r\n //Create the alien army\r\n army = new AlienArmy(ship, this, alienImage);\r\n\r\n //The ship will be controlled by the mouse\r\n addMouseListener(ship);\r\n //We also want mouse movement not just mouse clicks\r\n addMouseMotionListener(ship);\r\n\r\n offscreen = new BufferedImage(WIDTH, HEIGHT,BufferedImage.TYPE_INT_RGB);\r\n offscreen_high = offscreen.createGraphics();\r\n\r\n setBackground(Color.black);\r\n setSize(WIDTH, HEIGHT);\r\n setVisible(true);\r\n startGame();\r\n }", "public AddFrame(MainFrame parent) {\n this.parent = parent;\n initComponents();\n }", "public AddStationPanel(JFrame frame) {\n\t\tmainFrame = frame;\n\t\tinitialize();\n\t}", "public void nextFrame() {\r\n if (frame < maxFrames - 1) {\r\n frame++;\r\n } else {\r\n frame = 0;\r\n }\r\n }", "public Credits (JFrame frame)\r\n {\r\n super();\r\n this.setLayout (null); \r\n count = 0;\r\n this.frame = frame;\r\n playEnd();\r\n \r\n }", "public void newFrameAt(int offset){\n runStack.newFrameAt(offset);\n }", "private static void draw() {\n\t\tinitField();\n\t\tview = new View(field);\n\t\tview.setSize(viewWidth, viewHeight);\n\t\tframe = new JFrame();\n\t\tframe.setSize(fwidth, fheight);\n\t\tframe.setTitle(\"Land Mine\");\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.add(view);\n\t\tframe.setVisible(true);\n\t}", "public static void changeFrame() {\r\n\t\t\r\n\t}", "private void makeFrame(){\n frame = new JFrame(\"Rebellion\");\n\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n frame.setSize(800,800);\n\n makeContent(frame);\n\n frame.setBackground(Color.getHSBColor(10,99,35));\n frame.pack();\n frame.setVisible(true);\n }", "@Override\n\tpublic void add(Game game) {\n\t\t\n\t}", "private void drawGui() {\n\n this.frame = new JFrame(\"Find and Seek Game\");\n this.frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.frame.setLayout(new BorderLayout());\n frame.addKeyListener(keyListener);\n initializeFrame();\n this.frame.setVisible(true);\n\n }", "public void newFrameAt(int offset) {\n framePointers.push(runStack.size()-offset);\n }", "public static void startGame()\r\n\t{\r\n\t\tnew ModeFrame();\r\n\t}", "public void nextFrame() {\r\n\t\tif (logger.isDebugEnabled())\r\n\t\t\tlogger.debug(\"Next frame\");\r\n\t\t\r\n\t\t// Start game\r\n\t\tif (state == GameState.CREATED) {\r\n\t\t\t// Change state\r\n\t\t\tstate = GameState.WAITING_FRAME;\r\n\t\t\t\r\n\t\t\t// Start scheduling thread\r\n\t\t\tstart();\r\n\t\t}\r\n\t\t// Play one step\r\n\t\telse if (state != GameState.STOPPED) {\r\n\t\t\t// Change state\r\n\t\t\tstate = GameState.WAITING_FRAME;\r\n\t\t\t\r\n\t\t\t// Wake scheduling thread up\r\n\t\t\twakeUp();\r\n\t\t}\r\n\t}", "public void updateGamePanel() {\n\t\tthis.removeAll();\n\t\t\n\t\tButton2 buttonTip = new Button2(\"DICA\", 75, 100, 100, 100);\n\t\tbuttonTip.addActionListener(e -> Controller.game.showTip());\n\t\tthis.add(buttonTip);\n\t\t\n\t\tButton2 menu = new Button2(\"Menu\", 200, 100, 100, 100);\n\t\tmenu.addActionListener(e -> this.frame.setVisible(\"menu\"));\n\t\tthis.add(menu);\n\t\t\n\t\tthis.drawButtons();\n\t\t\n\t\t//Adding labels\n\t\tthis.add(frame.getWordShow());\n\t\tthis.add(frame.getLifeShow());\n\t\t\n\t\tthis.frame.add(this);//Adding the gameJPanel to the frame\n\t}", "protected void createFrames() {\n createStandingRight();\n createStandingLeft();\n createWalkingRight();\n createWalkingLeft();\n createJumpingRight();\n createJumpingLeft();\n createDying();\n }", "void renderFrame(){\n if(getPlayer().isChoosingFile()) return; // don't render while filechooser is active\n \n if(canvasFileWriter.writingMovieEnabled) chipCanvas.grabNextImage();\n chipCanvas.paintFrame(); // actively paint frame now, either with OpenGL or Java2D, depending on switch\n \n if(canvasFileWriter.writingMovieEnabled){\n canvasFileWriter.writeMovieFrame();\n }\n }", "public void paintComponent(Graphics page)//MAIN METHOD FOR ADDING ALL GRAPHICS TO THE FRAME\n\t\t{\n\t\tsuper.paintComponent(page);//passing the graphics object to the constructor of super(mother) class\n\t\t\n\t\t\tpage.drawImage(background, 0, 0, WIDTH, HEIGHT, this); //Places the background image on the background\n\t \n\t \n\t page.drawImage(flappy, bird.x, bird.y, bird.width, bird.height, this); //Places the flappy image on the character\n\t \n\t page.drawImage(foreground, 0, HEIGHT-100, WIDTH, 200, this);\n\t \n\t for(Rectangle box : obstacles)\n\t {\n\t \tpaintbox(page, box);\n\t }\n\t \n\t page.setColor(Color.black); //Sets the font to orange\n\t \n\t page.setFont(new Font(\"Monospaced\", 3, 60));\n\t if(!start)\n\t {\n\t \tpage.drawString(\"ENTER SPACE\", 250, HEIGHT/4);\n\t \tpage.drawString(\"OR\", 450, HEIGHT/2-100);\n\t \tpage.drawString(\"Press to Play\", 200, HEIGHT/2 -50);\n\t }\n\t \n\t page.setFont(new Font(\"Helvitica\", 4, 100));\n\t if(gameOver)\n\t {\n\t \tpage.drawString(\"GAME OVER!\", 100, HEIGHT/2 - 50); //Displays \"GAME OVER!\"\n\t \t\n\t \tpage.setFont(new Font(\"Arial\",1,30));\n\t \tpage.drawString(\"HIT SPACE TO BEGIN AGAIN\", 170, HEIGHT/2+50);\n\t \t\n\t }\n\t page.setFont(new Font(\"Arial\", 1, 30));//SETS FONT AND SIZE FOR CURRENT SCORE\n\t if(!gameOver && start)\n\t {\n\t \tpage.setColor(Color.BLACK); //Font color for score\n\t \tpage.drawString(\"Your Score: \"+score, 100, HEIGHT/15); //Displays the score in the game\n\t }\n\t page.setFont(new Font(\"Arial\", 1, 30));\n\t if(gameOver || (!gameOver && start))\n\t {\n\t \tpage.setColor(Color.orange); //Sets the font to back to orange for the high score \n\t \tpage.drawString(\"HighScore: \", 550, HEIGHT/15); //Displays the \"HighScore: \"\n\t \t \t\t\t\n\t \tpage.drawString(String.valueOf(highScore), 725, HEIGHT/15); //Displays the number for high score\n\t }\n\t \n\t \n\t\t}", "public face(){\r\n // creates a windows to show my game\r\n JFrame frame = new JFrame(title);\r\n\r\n // sets the size of my game\r\n this.setPreferredSize(new Dimension(WIDTH, HEIGHT));\r\n // adds the game to the window\r\n frame.add(this);\r\n\r\n // sets some options and size of the window automatically\r\n frame.setResizable(false);\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.pack();\r\n // shows the window to the user\r\n frame.setVisible(true);\r\n\r\n // add listeners for keyboard and mouse\r\n frame.addKeyListener(new Keyboard());\r\n Mouse m = new Mouse();\r\n this.addMouseMotionListener(m);\r\n this.addMouseWheelListener(m);\r\n this.addMouseListener(m);\r\n \r\n gameTimer = new Timer(desiredTime,this);\r\n gameTimer.setRepeats(true);\r\n gameTimer.start();\r\n }", "public void startGame(){\n\t\t\r\n\t\tframe = new JFrame();\r\n\t\t\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\r\n\t\tframe.setSize(1600, 900);\r\n\t\t\r\n\t\tframe.setVisible(true);\r\n\t\t\r\n\t\tframe.setResizable(false);\r\n\r\n\t\tpanel = new JPanel();\r\n\t\t\r\n\t\tframe.addKeyListener(new KeyListener(){\r\n\t\t\tpublic void keyPressed(KeyEvent ke) {\r\n\t\t\t\t\r\n\t\t\t\tif(ke.getKeyCode() == KeyEvent.VK_UP)\r\n\t\t\t\t\tup = true;\r\n\t\t\t\t\t\r\n\t\t\t\tif(ke.getKeyCode() == KeyEvent.VK_DOWN)\r\n\t\t\t\t\tdown = true;\r\n\t\t\t\t\r\n\t\t\t\tif(ke.getKeyCode() == KeyEvent.VK_LEFT)\r\n\t\t\t\t\tleft = true;\r\n\t\t\t\t\r\n\t\t\t\tif(ke.getKeyCode() == KeyEvent.VK_RIGHT)\r\n\t\t\t\t\tright = true;\r\n\t\t\t\t\r\n\t\t\t\tif(ke.getKeyCode() == KeyEvent.VK_Z)\r\n\t\t\t\t\tshoot = true;\r\n\t\t\t\t\r\n\t\t\t\tif(ke.getKeyCode() == KeyEvent.VK_SPACE)\r\n\t\t\t\t\tburn = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpublic void keyReleased(KeyEvent ke) {\r\n\t\t\t\tif(ke.getKeyCode() == KeyEvent.VK_UP)\r\n\t\t\t\t\tup = false;\r\n\t\t\t\t\t\r\n\t\t\t\tif(ke.getKeyCode() == KeyEvent.VK_DOWN)\r\n\t\t\t\t\tdown = false;\r\n\t\t\t\t\r\n\t\t\t\tif(ke.getKeyCode() == KeyEvent.VK_LEFT)\r\n\t\t\t\t\tleft = false;\r\n\t\t\t\t\r\n\t\t\t\tif(ke.getKeyCode() == KeyEvent.VK_RIGHT)\r\n\t\t\t\t\tright = false;\r\n\t\t\t\t\r\n\t\t\t\tif(ke.getKeyCode() == KeyEvent.VK_Z)\r\n\t\t\t\t\tshoot = false;\r\n\t\t\t\t\r\n\t\t\t\tif(ke.getKeyCode() == KeyEvent.VK_SPACE)\r\n\t\t\t\t\tburn = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpublic void keyTyped(KeyEvent ke) {}\r\n\t\t});\t\r\n\t\t\r\n\t\tframe.setContentPane(panel);\r\n\t\t\r\n\t\tbigBoy = new PlayerTomcat(800,450,100);\r\n\t\t\r\n\t\thud = new HeadUp();\r\n\t\t\r\n\t\tnew EnemyPlane((float) (Math.random() * 1600),(float) (Math.random() * 900),0);\r\n\t\tnew EnemyPlane((float) (Math.random() * 1600),(float) (Math.random() * 900),0);\r\n\t\tnew EnemyPlane((float) (Math.random() * 1600),(float) (Math.random() * 900),0);\r\n\t\tnew move((float) (Math.random() * 1600),(float) (Math.random() * 600),0);\r\n\t\tnew move((float) (Math.random() * 1600),(float) (Math.random() * 600),0);\r\n\t\tboolean swetch = true;\r\n\t\t\r\n\t\tfirst = new BufferedImage(1600,900, BufferedImage.SCALE_FAST);\r\n\t\tsecond = new BufferedImage(1600,900, BufferedImage.SCALE_FAST);\r\n\t\t\r\n\t\tGraphics2D g = (Graphics2D) first.getGraphics();\r\n\t\t\r\n\t\tGradientPaint horizon;\r\n\t\t\r\n\t\t\r\n\t\twhile(true) {\r\n\t\t\tlastTime = System.nanoTime();\r\n\t\t\t\r\n\t\t\tEntity.updateAll();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif(swetch)\r\n\t\t\t\tg = (Graphics2D) first.getGraphics();\r\n\t\t\telse\r\n\t\t\t\tg = (Graphics2D) second.getGraphics();\r\n\t\t\t\r\n\t\t\tg.setColor(new Color(153,204,255));\r\n\t\t\tg.fillRect(0, 0, 1600, 900);\r\n\t\t\t\r\n\t\t\thorizon = new GradientPaint(0, 900 - ((int)bigBoy.getY()), Color.WHITE, 0, 100, new Color(153,204,255));\r\n\t\t\tg.setPaint(horizon);\r\n\t\t\tg.fillRect(0, 000, 1600, 900 -((int)bigBoy.getY()/2));\r\n\t\t\t\r\n\t\t\t//make ground\r\n\t\t\tif(skip == 0){\r\n\t\t\t\tfor(int counter = 700; counter <= 1000; counter += 50){\r\n\t\t\t\t\tif(flop){\r\n\t\t\t\t\t\tg.setColor(new Color(12, 122, 14));\r\n\t\t\t\t\t\tflop = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tg.setColor(new Color(22,132,24));\r\n\t\t\t\t\t\tflop = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tg.fillRect(0, counter-((int)bigBoy.getY()/2), 1600, 900);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tfor(int counter = 700; counter <= 1000; counter += 50){\r\n\t\t\t\t\tif(flop){\r\n\t\t\t\t\t\tg.setColor(new Color(12, 122, 14));\r\n\t\t\t\t\t\tflop = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tg.setColor(new Color(22,132,24));\r\n\t\t\t\t\t\tflop = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tg.fillRect(0, counter-((int)bigBoy.getY()/2), 1600, 900);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tskip ++;\r\n\t\t\tif(skip > 50){\r\n\t\t\t\tskip = 0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tEntity.drawAll(g);\r\n\t\t\t\r\n\t\t\thud.update();\r\n\t\t\tg.drawImage(hud.sprite, 0, 0, null);\r\n\t\t\t\r\n\t\t\tif(swetch)\r\n\t\t\t\tpanel.getGraphics().drawImage(first, 0, 0, null);\r\n\t\t\telse\r\n\t\t\t\tpanel.getGraphics().drawImage(second, 0, 0, null);\r\n\t\t}\r\n\t \r\n\t}", "public void add(GameEvent e);", "public FaceDrawing() {\r\n // creates a windows to show my game\r\n JFrame frame = new JFrame(title);\r\n\r\n // sets the size of my game\r\n this.setPreferredSize(new Dimension(WIDTH, HEIGHT));\r\n // adds the game to the window\r\n frame.add(this);\r\n\r\n // sets some options and size of the window automatically\r\n frame.setResizable(false);\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.pack();\r\n // shows the window to the user\r\n frame.setVisible(true);\r\n\r\n // add listeners for keyboard and mouse\r\n frame.addKeyListener(new Keyboard());\r\n Mouse m = new Mouse();\r\n this.addMouseMotionListener(m);\r\n this.addMouseWheelListener(m);\r\n this.addMouseListener(m);\r\n\r\n gameTimer = new Timer(desiredTime, this);\r\n gameTimer.setRepeats(true);\r\n gameTimer.start();\r\n }", "public void setFrame(int frame)\n\t{\n\t\tisFinished = false;\n\t\tcurrFrame = frame;\n\t\tframeStart = (long) Game.getTimeMilli();\n\t}", "public void addKeyFrame() throws IOException{\n\t\tkeyFrameList.add(captureCurrentFrame());\n\t\n\t\tif(keyFrameList.size() > 1 && timer != null){ \n\t\t\tupdateTimer();\n\t\t}else{\n\t\t\tmakeTimer(); \n\t\t}\n\t}", "void doFrame() throws PlayerDebugException\n\t{\n\t\tint num = 0; // frame 0 by default \n\t\ttry\n\t\t{\n\t\t\tif (hasMoreTokens())\n\t\t\t\tnum = nextIntToken();\n\n\t\t\tpropertyPut(DISPLAY_FRAME_NUMBER, num);\n\n\t\t\tdumpFrame(num);\n\t\t\tsetListingToFrame(num);\n\t\t}\n\t\tcatch(NumberFormatException nfe)\n\t\t{\n\t\t\tMap<String, Object> args = new HashMap<String, Object>();\n\t\t\targs.put(\"token\", m_currentToken); //$NON-NLS-1$\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"notANumber\", args)); //$NON-NLS-1$\n\t\t}\n catch(ArrayIndexOutOfBoundsException aie)\n {\n \tMap<String, Object> args = new HashMap<String, Object>();\n \targs.put(\"frameNumber\", Integer.toString(num)); //$NON-NLS-1$\n err(getLocalizationManager().getLocalizedTextString(\"frameDoesNotExist\", args)); //$NON-NLS-1$\n }\n\t\tcatch(NullPointerException npe)\n\t\t{\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"noActiveSession\")); //$NON-NLS-1$\n\t\t}\n\t}", "public GameFrame(final World world) {\n this.world = world;\n }", "private void createGameGraphics() {\n\t\tgameGraphics=new JPanel();\n\t\tgameGraphics.setPreferredSize(new Dimension(width,height));\n\t\tgameGraphics.setFocusable(false);\n\t\tthis.add(gameGraphics,\"Center\");\n\t\tgameGraphics.setVisible(true);\n\t\tgameGraphics.setDoubleBuffered(true);\n\t\tgameGraphics.setIgnoreRepaint(true);\n\t}", "private void init(){\n\t\tadd(new DrawSurface());\n\t\tsetTitle(\"Animation Exercise\");\n\t\tsetSize(640, 480);\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t}", "public Frame3.Builder addFrame(Frame3 frame, FramePosition position) {\n\t\t\tif (managedInstance.frame3s == null) {\n\t\t\t\tmanagedInstance.frame3s = new ArrayList<Frame3>();\n\t\t\t}\n\t\t\tConsumer<Frame3> f = obj -> {\n\t\t\t\tmanagedInstance.frame3s.add(obj);\n\t\t\t};\n\t\t\treturn new Frame3.Builder(this, f, frame, position);\n\t\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Play\");\n\t\tbtnNewButton.setFont(new Font(\"Bodoni 72\", Font.BOLD, 13));\n\t\tbtnNewButton.setBounds(frame.getWidth() / 2 - 60, 195, 120, 30);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Space Escape\");\n\t\tlblNewLabel.setForeground(Color.WHITE);\n\t\tlblNewLabel.setFont(new Font(\"Bodoni 72\", Font.BOLD, 24));\n\t\tlblNewLabel.setBounds(frame.getWidth() / 2 - 60, 30, 135, 25);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"New label\");\n\t\tlblNewLabel_1.setBounds(0, 0, frame.getWidth(), frame.getHeight());\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t}", "private boolean initBackgroundImage(MinesweeperView frame) {\r\n try {\r\n int width = (int) frame.getDim().getWidth();\r\n int height = (int) frame.getDim().getHeight();\r\n Background image = new Background(new File(\"../Asset/explosion.jpg\"), 0, 0, width, height);\r\n frame.add(image);\r\n } catch (IOException event) {\r\n System.err.println(\"Image Not Found\");\r\n return false;\r\n }\r\n return true;\r\n }", "public void display() {\r\n\t\tJFrame myFrame = new JFrame(\"BlackJack\");\r\n\t\tmyFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tmyFrame.setContentPane(this);\r\n\t\tmyFrame.setPreferredSize(new Dimension(700, 550));\r\n\t\tmyFrame.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\t// Display the window.\r\n\t\tmyFrame.pack();\r\n\t\tmyFrame.setVisible(true);\r\n\t\t//game = new Blackjack();\r\n\t}", "public void setFrame(int newFrame) {\r\n if (newFrame < maxFrames) {\r\n frame = newFrame;\r\n }\r\n }", "public GameFrame() {\n initComponents();\n setTitle(\"Ultra Generic Tower Defence by Jorzi\");\n }", "public void newGame()\n\t{\n\t\tmap = new World(3, viewSize, playerFactions);\n\t\tview = new WorldView(map, viewSize, this);\n\t\tbar = new Sidebar(map, barSize);\n\t}", "public SameGnomeFrame() {\n\t\tsetSize(DEFUALT_WIDTH,DEFUALT_WIDTH);\n\t\tintializeGridBall();\n\t\tgrid = new GridComponent(gridBall);\n\t\tadd(grid);\n\t\t\n\t}", "public Scoreboard() { // constructor to initialize \n\t\tfor (int i = 1; i < 10; i++) { // adds the first 9 frames, hence the start from i = 1.\n\t\t\tframes.add(new Frame(this));\n\t\t}\n\t\tframes.add(new FinalFrame(this)); // 10th frame is added separately with its own properties. \n\t\t\n\t\tcurrent = frames.get(0); // current is the first added frame at 0th index. \n\t}", "public void setFrame(String frame){\r\n\t\taddAttribute(new PointingElement(\"frame\",frame));\r\n\t}", "public void newGame() {\r\n\r\n gameObjects.newGame();\r\n\r\n // Reset the mScore\r\n playState.mScore = 0;\r\n\r\n // Setup mNextFrameTime so an update can triggered\r\n mNextFrameTime = System.currentTimeMillis();\r\n }", "public Frame3.Builder addFrame(String frameCode, GennyToken serviceToken) throws Exception {\n\n\t\t\treturn addFrame(frameCode, FramePosition.CENTRE, serviceToken);\n\t\t}", "public Badminton()\n { \n frame.add(new Board()); \n frame.setSize(900, 900);\n frame.setResizable(false);\n frame.setTitle(\"PE Class\");\n //frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n }", "public void runGame()\r\n\t{\r\n\t\tmainFrame.runGame();\r\n\t}", "void setupFrame()\n {\n int wd = shopFrame.getWidth();\n sellItemF(wd);\n\n requestItemF(wd);\n setAllVisFalse();\n }", "public Game(Checkerboard x, MinesweeperView frame) {\r\n int rowNumber = x.getRowNumber();\r\n int columnNumber = x.getColumnNumber();\r\n int bombNumber = x.getBombInitialNumber();\r\n Checkerboard panGrid = x;\r\n Score panScore = panGrid.getScore();\r\n int[] gridef = {rowNumber, columnNumber, bombNumber};\r\n frame.add(panGrid);\r\n frame.add(panScore);\r\n this.initComponents(frame, gridef, panGrid, panScore);\r\n this.initBackgroundImage(frame);\r\n frame.addWindowListener(new ListenerWindow(panGrid));\r\n\r\n }", "private void addComponents() {\n\t\tadd(newGame);\n\t\tadd(nameLabel);\n\t\tadd(nameField);\n\t\tadd(addPlayer);\n\t\tadd(gameTextPane);\n\t\tadd(playGame);\t\n\t\tadd(takeTurn);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//v0.1.1 change\n\t}", "@Override\n\tpublic void draw(GraphicsContext gc) {\n\t\tif (frameTick > 30) {\n\t\t\tframeTick = 0;\n\t\t\tframeState = (frameState + 1) % 2;\n\t\t}\n\t\tgc.drawImage(imageFrame.get(frameState), position.first - GameCanvas.getCurrentInstance().getStartX(),\n\t\t\t\tposition.second);\n\t\tframeTick++;\n\t}", "public void onAdd2Scene() {\n\t\tAnimation src = getSourceAnimation();\n\t\tif( src != null ) {\n\t\t\tadd2Scene(src, getSourceAnimation().actFrame);\n\t\t\tlog.info(\" adding frame from {}\", vm.cutInfo);\n\t\t}\n\t\t\n\t}", "public void addBomb() \n {\n if (Greenfoot.isKeyDown(\"space\"))\n getWorld().addObject(new Bomb(), getX(), getY()); \n //add a bomb at the place they press space \n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setFont(null);\n\t\tframe.setBackground(new Color(240, 240, 240));\n\t\tframe.setBounds(400, 0, 800, 800);\n\t\t\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tbackground = new ImageIcon(\"image/heroplane.png\");\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJButton btnSp = new JButton(\"single player\");\n\t\tbtnSp.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew ChoseHero();\n\t\t\t\tframe.dispose();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnSp.setBackground(Color.LIGHT_GRAY);\n\t\tbtnSp.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 30));\n\t\tbtnSp.setBounds(280, 507, 240, 60);\n\t\tframe.getContentPane().add(btnSp);\n\t\t\n\t\tJButton btnDp = new JButton(\"Double players\");\n\t\tbtnDp.setBackground(Color.LIGHT_GRAY);\n\t\tbtnDp.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnDp.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 30));\n\t\tbtnDp.setBounds(280, 580, 240, 60);\n\t\tframe.getContentPane().add(btnDp);\n\n\t\tJLabel lblNewLabel = new JLabel(background);\n\t\tlblNewLabel.setBounds(0, 0,786, 763);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t}", "public void newFrame()\n {\n //////////////////////////////////////////////////////////////\n // If vehicle is moving, update its position (by calling its \n // newFrame method. \n // Somehow, need to know if it has reached its goal position. \n // If so, figure out what the next goal should be.\n // \n // If previous goal was emergency site, new goal is hospital\n // If previous goal was a hospital (or if it was at home,\n // or if it was going home), new goal is the next\n // emergency site, if there is one, or home if no more \n // emergencies.\n //////////////////////////////////////////////////////////////\n if( state == 2 )\n {\n line.setVisible( false );\n if( reset == false ) \n { \n car.travelTo( 10, 10, EMTApp.normalSpeed );\n if( car.getLocation().x == 10 )\n {\n if( car.getLocation().y == 10 )\n {\n reset = true;\n }\n }\n }\n car.traveledReset();\n car.newFrame();\n if( _emergency.size() > 0 )\n {\n reset = false;\n state = 0; \n }\n }\n if( state == 3 )\n {\n Hospital h1 = this.getClosestHospital( car.getLocation() );\n line.setPoints( car.getLocation().x + car.getWidth() / 2, \n car.getLocation().y + car.getHeight() / 2, \n h1.getLocation().x, h1.getLocation().y );\n line.setVisible( true );\n car.travelTo( h1.getLocation().x, \n h1.getLocation().y , EMTApp.highSpeed );\n car.newFrame();\n }\n if( car.isTargetReached() == true )\n {\n if( state == 0 )\n { \n _frametimer.restart();\n boolean justGoHome = false;\n if( _emergency.size() > 0 ) \n {\n _emergency.get( 0 ).setColor( Color.BLUE );\n _emergency.get( 0 ).setVisible( false );\n _emergency.remove( 0 ); //removes the first object\n } else if ( _emergency.size() == 0 )\n {\n justGoHome = true;\n state = 1;\n }\n state = 3; \n } \n else if ( state == 1 )\n { \n _frametimer.restart(); \n if( _emergency.size() > 0 )\n { \n state = 0; \n } else \n {\n state = 2;\n }\n } \n else if ( state == 3 )\n {\n if( _emergency.size() > 0 )\n {\n _frametimer.restart();\n state = 0;\n } else \n {\n _frametimer.restart();\n state = 2;\n }\n }\n }\n if ( state == 1 ) \n {\n car.newFrame(); \n } \n else if( state == 0 )\n {\n if( this.nextSite() != null )\n {\n EmergencySite e = this.nextSite();\n currentSite = e;\n }\n currentSite.setNoDrag( true );\n \n int nextX = currentSite.getXLocation();\n int nextY = currentSite.getYLocation();\n line.setPoints( car.getX() + car.getWidth() / 2 , \n car.getY() + car.getHeight() / 2 , \n nextX + currentSite.getWidth() / 2 , \n nextY + currentSite.getHeight() / 2 );\n line.setVisible( true );\n \n int tmpx = currentSite.getXLocation();\n car.travelTo( tmpx, currentSite.getYLocation(), EMTApp.highSpeed );\n car.newFrame();\n } \n }", "public ControlFrame addControlFrame(String theName, int theWidth, int theHeight) {\n Frame f = new Frame(theName);\n ControlFrame p = new ControlFrame(this, theWidth, theHeight);\n f.add(p);\n p.init();\n f.setTitle(theName);\n f.setSize(p.w, p.h);\n f.setLocation(50, 250);\n f.setResizable(false);\n f.setVisible(true);\n return p;\n}", "public void setFrame(BufferedImage frame) {\r\n\t\tplayer = frame;\r\n\t}", "void hi() {\n\t\tframe = new JFrame();\n\t\tpanel = new JPanel();\n\t\tlabel = new JLabel();\n\n\t\tframe.add(panel);\n\t\tframe.setVisible(true);\n\n\t\tpanel.add(label);\n\t\tframe.addKeyListener(this);\n\n\t\tframe.pack();\n\t\tframe.setSize(2000, 50);\n\t\t\n\t}", "private void setupFrame() {\n this.setTitle(TITRE);\n this.setPreferredSize(new Dimension(TAILLE_FRAME[1], TAILLE_FRAME[0]));\n this.setResizable(false);\n \n this.getContentPane().setBackground(new Color(0,153,0));\n this.getContentPane().setLayout(new GridLayout(3,1)); \n \n this.pack();\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2);\n \n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setVisible(true);\n }", "public void addToGame(Game g) {\r\n g.addSprite(this);\r\n }", "public void frame() {\r\n\r\n\r\n\t\t//this will solves a thread issue, to do FX application stuff in a non FX application thread. \r\n\t\tPlatform.runLater(() -> {\r\n\r\n\t\t\tif (Player.isBattle()) {\r\n\r\n\t\t\t\tPlayer.setVelX(0);\r\n\t\t\t\tPlayer.setVelY(0);\r\n\t\t\t\tmainStage.setScene(combatScene);\r\n\r\n\t\t\t} else if (Player.isShop()) {\r\n\t\t\t\tmainStage.setScene(shopScene);\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\tcircle.setFill(getColor());\r\n\t\t\t\tmainStage.setScene(mainScene);\r\n\t\t\t}\r\n\r\n\t\t});\r\n\r\n\t\tgetMainScene().setOnKeyPressed(e -> {\r\n\t\t\tPlayer.move(e);\r\n\t\t});\r\n\r\n\t\tgetMainScene().setOnKeyReleased(e -> {\r\n\t\t\tPlayer.stop(e);\t\r\n\t\t});\r\n\r\n\t\tPlayer.update();\r\n\t\tposition();\r\n\t}", "public launchFrame() {\n \n initComponents();\n \n }", "public BreukFrame() {\n super();\n initialize();\n }", "public void preGameMode(){\n\n ImageIcon icon = new ImageIcon(getClass().getResource(\"/title.jpg\"));\n Image image=icon.getImage();\n background = new PBackground(image);\n this.repaint();\n background.setLayout(null);\n this.add(background);\n\n\n // Prepare the body container\n container = new PanelContainer();\n container.setBounds(230,170, 700, 400);\n background.add(container);\n\n this.setVisible(true);\n }", "private void addLifeDisplay() {\r\n\t\tGImage lifeDisplay = new GImage(\"PlayerEast.png\");\r\n\t\tlifeDisplay.scale(.3);\r\n\t\tadd(lifeDisplay, 0, 0);\r\n\t\tlifeBar = new GRect(lifeDisplay.getWidth(), LIFE_BAR_OFFSET, LIFE_BAR_WIDTH, LIFE_BAR_HEIGHT);\r\n\t\tlifeBar.setFilled(true);\r\n\t\tlifeBar.setColor(Color.GREEN);\r\n\t\tadd(lifeBar);\r\n\t}", "private static Frame makeNextFrame(Player player) {\r\n Frame nextFrame = new Frame();\r\n nextFrame.setPlayer(player);\r\n\r\n return nextFrame;\r\n }", "public void actionPerformed(ActionEvent e){\t\n\t\t\n\t\t\n\t\tif(frameIndex == 0) {\n\t\t\t\n\t\t\t//Add key handler\n\t\t\tpanel.addKeyListener(this);\n\t\t\tpanel.addMouseMotionListener(this);\n\t\t\tpanel.addMouseListener(this);\n\t\t\tpanel.addFocusListener(this);\n\t\t\tpanel.requestFocus();\n\t\t\t\n\t\t\t//create camera\n\t\t\tCamera = new camera(new vector(3,2f,-1.25f), 0, 300);\n\t\t\n\t\t\t//Create look up tables\n\t\t\tgameData.makeData();\n\t\t\t\n\t\t\t//init grid \n\t\t\tgridMap = new grid(128);\n\t\t\t\n\t\t\t//init light source\n\t\t\tsunLight.init();\n\t\t\t\n\t\t\t//init rasterizer\n\t\t\trasterizer.init();\n\t\t\t\n\t\t\t//init 2d to 3d factory\n\t\t\tmy2Dto3DFactory = new Turn2DTo3DFactory();\n\t\t\tmy2Dto3DFactory.init();\n\t \n\t\t\tloadTexture();\n\t\t\t\t\n\t\t\ttheAssetManager = new AssetManager();\n\t\t\ttheAssetManager.init();\n\t\t\t\n\t\t\ttheGameCursor = new gameCursor();\n\t\t\ttheGameCursor.init();\n\t\t\t\n\t\t\tcurrentMouseX = getLocationOnScreen().x + screen_width/2;\n\t\t\tcurrentMouseY = getLocationOnScreen().y + screen_height/2;\n\t\t\t\n\t\t\tcenterScreenX = getLocationOnScreen().x + screen_width/2;\n\t\t\tcenterScreenY = getLocationOnScreen().y + screen_height/2;\n\t\t\t\n\t\t\t\n\t\t\tif(capturedMouse)\n\t\t\t\tmyRobot.mouseMove(centerScreenX, centerScreenY);\n\t\t\t\n\t\t\t//hide mouse cursor\n\t \t// Transparent 16 x 16 pixel cursor image.\n\t \tBufferedImage cursorImg = new BufferedImage(16, 16, BufferedImage.TYPE_INT_ARGB);\n\n\t \t// Create a new blank cursor.\n\t \tCursor blankCursor = Toolkit.getDefaultToolkit().createCustomCursor(\n\t \t cursorImg, new Point(0, 0), \"blank cursor\");\n\n\t \t// Set the blank cursor to the JFrame.\n\t \tthis.getContentPane().setCursor(blankCursor);\n\t \t\n\t\t}\n\t\t\n\t\tframeIndex++;\t\n\n\t\tif(capturedMouse && !mouseLeftScreen && !focusLost) {\n\t\t\tcurrentMouseX = MouseInfo.getPointerInfo().getLocation().x;\n\t\t\tcurrentMouseY = MouseInfo.getPointerInfo().getLocation().y;\n\t\t\t\n\t\t\tcenterScreenX = getLocationOnScreen().x + screen_width/2;\n\t\t\tcenterScreenY = getLocationOnScreen().y + screen_height/2;\n\t\t\t\n\t\t\tint deltaX = currentMouseX - centerScreenX;\n\t\t\tint deltaY = currentMouseY - centerScreenY;\n\t\t\n\t\t\tmouseX+=deltaX;\n\t\t\tmouseY+=deltaY;\n\t\t\t\n\t\t\tmyRobot.mouseMove(centerScreenX, centerScreenY);\n\t\t\t\n\t\t\tif(mouseX < 0)\n\t\t\t\tmouseX = 0;\n\t\t\tif(mouseX >= screen_width)\n\t\t\t\tmouseX = screen_width-1;\n\t\t\tif(mouseY < 0)\n\t\t\t\tmouseY = 0;\n\t\t\tif(mouseY >= screen_height)\n\t\t\t\tmouseY = screen_height-1;\n\t\t\t\n\t\t\tinputHandler.mouse_x = mouseX;\n\t\t\tinputHandler.mouse_y = mouseY;\n\t\t}\n\t\tinputHandler.processInput();\n\t\t\n\t\tif(!gamePaused) {\n\t\t\tif(gameStarted)\n\t\t\t\tgameFrame++;\n\t\t\t\n\t\t\ttimeString = secondsToString((int)(gameFrame*0.025));\n\t\t\t\n\t\t\t//handle user's interaction with game GUI\n\t\t\tif(gameFrame == 1 && gameStarted){\n\t\t\t\ttheAssetManager.prepareAssetForNewGame();\n\t\t\t}\n\t\t\t\n\t\t\tgridMap.update();\n\t\t\t\n\t\t\t//Clears the z-buffer. All depth values are set to 0.\n\t\t\tclearDepthBuffer();\n\t\t\t\n\t\t\t//update camera\n\t\t\tCamera.update();\n\t\t\t\n\t\t\t//update light source\n\t\t\tsunLight.update();\n\t\t\t\t\t\n\t\t\t//update and draw 3D mashes from game objects\n\t\t\ttheAssetManager.updateAndDraw();\n\t\t\t\n\t\t\tif(gameStarted) {\n\t\t\t\tpc.update();\n\t\t\t\tec.update();\n\t\t\t}\n\t\t}else {\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t//show unpassable obstacle \n\t\t//gridMap.draw();\n\t\t\n\t\tif(this.getGraphics() != null && PPT!= null){\n\t\t\t//wait for the Post processing Thread if it is still working\n\t\t\twaitForPostProcessingThread();\n\t\t\t\n\t\t\t//prepare resources for the post processing thread\n\t\t\tpostProcessingThread.prepareResources();\n\t\t\t\n\t\t\t//Signal post processing thread that it can proceed\n\t\t\tsynchronized(PPT) {\n\t\t\t\tPPT.notify();\n\t\t\t}\n\t\t\t\n\t\t\tif(frameIndex %2 == 0 && frameIndex > 3){\n\t\t\t\tbf = doubleBuffer;\n\t\t\t\t//draw mouse cursor \n\t\t\t\ttheGameCursor.updateAndDraw(bufferScreen);\n\t\t\t\t\n\t\t\n\t\t\t}else if(frameIndex != 1 && frameIndex > 3){\n\t\t\t\tbf = doubleBuffer2;\n\t\t\t\t//draw mouse cursor \n\t\t\t\ttheGameCursor.updateAndDraw(buffer2Screen);\n\t\t\t}\n\t\t\t\n\t\t\tif(frameIndex > 3)\n\t\t\t\tpaintComponent(panel.getGraphics());\n\t\t\t\n\t\t\tswapResources();\n\t\t\n\t\t\t//maintain a constant frame rate\n\t\t\tregulateFramerate();\n\t\t}else{\n\t\t\tSystem.exit(-1);\n\t\t}\n\t}", "public FirstNewFrame() {\n\t\tjbInit();\n\t}", "public void run(){\n\t\tframe = new JFrame(\"Dogfight\");\n\t\tframe.setSize(368,385);\n\t\tframe.setLocationRelativeTo(null);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\top = new OptionPanel();\n\t\tgp = new GamePanel(numplanes);\n\t\tip = new InstructionPanel();\n\t\tframe.getContentPane().add(op);\n\t\tframe.addKeyListener(gp);\n\t\tframe.setVisible(true);\n\t\tinitializeQuestionArray();\n\t\t\n\t}", "public void newGameWorld()\r\n {\r\n addObject(new Blackout(\"Fade\"), getWidth() / 2, getHeight() / 2);\r\n removeAllObjects();\r\n\r\n GameWorld gameWorld = new GameWorld();\r\n Greenfoot.setWorld(gameWorld);\r\n }", "public GameWon()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(550, 600, 1); \n addObject(b1,275,250);\n addObject(b2,275,380);\n }", "public void setFrame() {\r\n\t\tif (logger.isDebugEnabled())\r\n\t\t\tlogger.debug(\"setFrame\");\r\n\t\t\r\n\t\tif (state != GameState.STOPPED) {\r\n\t\t\ttry {\r\n\t\t\t\t// Wait for event\r\n\t\t\t\tif (state == GameState.PAUSED\r\n\t\t\t\t\t|| state == GameState.WAITING_FRAME) {\r\n\t\t\t\t\tsynchronized (this) {\r\n\t\t\t\t\t\twait();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// Wait between two frames\r\n\t\t\t\telse if (speed < CowSimulator.UNLIMITED_SPEED) {\r\n\t\t\t\t\tThread.sleep(period);\r\n\t\t\t\t}\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tlogger.error(e.getMessage(), e);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Game stopped during turn\r\n\t\tif (state == GameState.STOPPED) {\r\n\t\t\t// End game\r\n\t\t\tendGame();\r\n\t\t}\r\n\t}" ]
[ "0.76696694", "0.7345999", "0.7310671", "0.71673906", "0.6857101", "0.6847741", "0.67826986", "0.6732475", "0.6641513", "0.65907264", "0.6542648", "0.6535409", "0.6505003", "0.6421064", "0.641834", "0.6407769", "0.6400583", "0.6369341", "0.6333492", "0.6323936", "0.6243547", "0.622707", "0.6170947", "0.61660707", "0.61612624", "0.6151975", "0.6138852", "0.6137569", "0.612264", "0.609373", "0.6053445", "0.6026954", "0.6019618", "0.60129076", "0.60122395", "0.5992144", "0.5977753", "0.59628475", "0.59570354", "0.594495", "0.59445304", "0.5939021", "0.59111714", "0.5909074", "0.5902499", "0.5899172", "0.58936167", "0.58781314", "0.5874689", "0.58656216", "0.5862478", "0.5861935", "0.5858958", "0.5851313", "0.585121", "0.5840607", "0.5834123", "0.5827282", "0.58095515", "0.58048534", "0.5804334", "0.579624", "0.5780036", "0.57659036", "0.5761809", "0.5755929", "0.57291955", "0.5721917", "0.57197875", "0.57171035", "0.5716677", "0.5707894", "0.5704704", "0.5694565", "0.56905663", "0.5685677", "0.5677684", "0.5674317", "0.5670654", "0.56699735", "0.56696963", "0.5667283", "0.5657915", "0.56434053", "0.5637155", "0.5631933", "0.563153", "0.56277114", "0.5621731", "0.5610863", "0.56098753", "0.56043386", "0.5600598", "0.55933726", "0.559257", "0.5590533", "0.55884176", "0.55870223", "0.55784667", "0.5575562" ]
0.7352904
1
Sets the bonus throws at the end of the game
public void setBonus(int firstThrow, int secondThrow) { //to be implemented for(int i=0; i<10; i++) if(frames.get(i).isSpare()) { bonus= frames.get(i+1); bonusGame+=bonus.score(); } else if(frames.get(i).isStrike()) { bonus = frames.get(i+1); bonusGame+=bonus.score(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBonus(double bonus){\r\n this.bonus = bonus;\r\n }", "public void setBonusScore() {\r\n count = count+50;\r\n }", "void bust() {\n\t\t_loses++;\n\t\t//_money -= _bet;\n\t\tclearHand();\n\t\t_bet = 0;\n\t}", "private void obsluga_bonusu()\n {\n if(bonusy_poziomu>0)\n {\n boolean numer= los.nextBoolean();\n if(numer){\n bon.add(new Bonus(w.getPolozenie_x(),w.getPolozenie_y(),getWidth(),getHeight()));\n bonusy_poziomu--;\n }\n }\n }", "public final void setBonus(LeaderKingdomModifier bonus) {\r\n\tremove();\r\n\tthis.bonus = bonus;\r\n\tapply();\r\n }", "@Override\n\tpublic double bonus() {\n\t\treturn 0;\n\t}", "public int giveRaise(int bonus) {\n if (bonus >= 0) {\n this.salary += bonus;\n }\n return this.salary;\n }", "@Override\n\tpublic void bowl(Player player, int throw1, int throw2, int setCount) {\n\t\tif (throw1 == 10) {\n\t\t\tcalculateSetScore(throw1, player, setCount);\n\t\t} else {\n\t\t\tcalculateSetScore(throw1, throw2, player, setCount);\n\t\t}\n\t}", "@Override\n public boolean addThrow(int ballThrown) {\n return false;\n }", "public static void lose()\n\t{\n\t\tGame.setMoney(Game.getMoney()-bet);\n\t\tremainingMoneyN.setText(String.valueOf(Game.getMoney()));\n\t\tbet=0;\n\t\ttfBet.setText(\"0\");\n\t\tlblUpdate.setText(\"The dealer wins\");\n\t\tif(Game.getMoney()<=0)\n\t\t{\n\t\t\tGame.setComplete(true);\n\t\t\tendGameSequence();\n\n\t\t}\n\t}", "protected void end() {\n \tintake.setLeftPower(0.0);\n\t\tintake.setRightPower(0.0);\n }", "@Override\n\tpublic void bowlExtra(Player player, int throw1, int setCount) {\n\t\tcalculateSetScore(throw1, player, setCount);\n\t}", "public void throwBall() {\r\n\t\tthis.move();\r\n\t\tballCount--;\r\n\r\n\t}", "public void takeBetBack() {\n\t\ttotalMoney += bet;\n\t}", "public void defend(){\n\tdefense += (int)(Math.random() * defense * .45 + 5);\n\tstrength -= 3;\n\tif (defense > 70) {\n\t defense = 70;\n\t}\t \n\tcounterDef += 1;\n\tif (counterDef == 2){\n\t counterDef = 0;\n\t recover();\n\t}\n\tSystem.out.println(\"You brace yourself with your bow.\");\n }", "@Override\n\tprotected boolean on_bonus_taken(GfxObject bonus) {\n\t\treturn false;\n\t}", "public void setLastThrow(int lastThrow1, int lastThrow2) {\n this.lastThrow = new int[] {lastThrow1, lastThrow2};\n }", "public void updateArmorBonus(int value){\n\t\t//TODO do we want a negative value???\n\t\tthis.armorBonus = value;\n\t}", "void takeDamage(int points) {\n this.health -= points;\n }", "public void throwBait() {\n\t\tpokemon.eatBait();;\n\t}", "public void setBonusAwarded(double value) {\n this.bonusAwarded = value;\n }", "@Override\n public void endGameAsLoss()\n {\n // UPDATE THE GAME STATE USING THE INHERITED FUNCTIONALITY\n super.endGameAsLoss();\n \n // RECORD IT AS A loss\n ((MahjongSolitaireMiniGame)miniGame).getPlayerRecord().addLoss(currentLevel);\n ((MahjongSolitaireMiniGame)miniGame).savePlayerRecord();\n \n // DISPLAY THE loss DIALOG\n miniGame.getGUIDialogs().get(LOSS_DIALOG_TYPE).setState(VISIBLE_STATE); \n\n // AND PLAY THE LOSS AUDIO\n miniGame.getAudio().stop(MahjongSolitairePropertyType.SPLASH_SCREEN_SONG_CUE.toString()); \n miniGame.getAudio().stop(MahjongSolitairePropertyType.GAMEPLAY_SONG_CUE.toString());\n miniGame.getAudio().play(MahjongSolitairePropertyType.LOSS_AUDIO_CUE.toString(), false);\n }", "public void setBonusAmount(long value) {\r\n this.bonusAmount = value;\r\n }", "@Override\n public void exit() {\n player.steeringBehaviorsManager.removeBehavior(ballPursuit);\n }", "public void applyBonusOnBird(BonusActor.Type bonusType) {\n int listSize = birdList.size() - 1;\n int bonusLevel = -1;\n if (bonusType == BonusActor.Type.BIRD_BOMB_LVL0) {// brown bomb\n bonusLevel = 0;\n } else if (bonusType == BonusActor.Type.BIRD_BOMB_LVL1) {// green bomb\n bonusLevel = 1;\n }\n// if (bonusLevel >= 0) {\n// for (int i = listSize; i >= 0; i--) {\n// if (birdList.get(i).level == bonusLevel) {\n// birdList.get(i).flyAction.restart();\n// }\n// }\n// }\n }", "@Override\r\n\tpublic void setHealth(int strike) {\n\t\t\r\n\t}", "@Override\n\tpublic void landedOn() {\n\t\tMonopolyGameController.getInstance();\n\t\tMonopolyGameController.getCurrentPlayer().increaseMoney(300);\n\t\tLogger.getInstance().notifyAll(MonopolyGameController.getCurrentPlayer().getName()+ \" gained 300 dollars by landing on Bonus Square\");\n\t\tMonopolyGameController.allowCurrentPlayerToEndTurn();\n\n\t}", "public void Team_B_Freethrow(View v) {\n teamBScore = teamBScore + 1;\n displayForTeamB(teamBScore);\n }", "public void buyDecreaseDamage() {\n this.decreaseDamage++;\n }", "public void setBonusBole(Float bonusBole) {\n this.bonusBole = bonusBole;\n }", "public static void endGameSequence()\n\t{\n\t\ttfBet.setEnabled(false);\n\t\tbtnPlay.setEnabled(false);\n\t\tbtnHit.setEnabled(false);\n\t\tbtnStay.setEnabled(false);\n\t\tbtnDouble.setEnabled(false);\n\t\tlblUpdate.setText(\"Game over! You are out of money!\");\n\t}", "protected void end() {\n \tRobotMap.gearIntakeRoller.set(0);\n }", "public void throwItem() {\n this.curItem.setState(Item.THROWING);\n this.curItem.setX((int)(this.x));\n this.curItem.setY((int)(this.y));\n this.curItem.setXVel(Item.X_SPEED*this.dir);\n if (this.curItem instanceof PickupableWeaponHolder) {\n this.weapon = this.fist;\n }\n this.curItem = null;\n }", "private void draw() throws Stalemate {\n if (picked == totalMovesAllowed && !didAnyoneWin) {\n myGame.whatMove.setText(\"Press Reset!\");\n throw (new Stalemate());\n }\n }", "public void youBrokeSon(){\n\t\tcoinList.clear();\n\t}", "public void rollBackTotal( int turnQuit )\n {\n totalScore -= turnScores[turnQuit];\n }", "static void healing_challenge3() { //this is where the player will be able to heal himself/herself in boss challenge\n System.out.println(\" You open up the bag to check your inventory...\");\n enter = next.nextLine();\n if(potions <= zero) {\n System.out.println(username + \" feels something in the bag...\");\n System.out.println(\"\\n\");\n System.out.println(\"There is a large object inside, but turns out to be your spell book\");\n enter = next.nextLine();\n System.out.println(\"UH! OH! You ran out of potions. GUESS YOUR ON YOUR OWN!!!\");\n System.out.println(\"\\n\");\n }else if(potions > zero && playerhealth != 3500) { //this makes sure their aren't any loop holes in the game for cheats\n System.out.println(username + \" found a potion in the bag.\");\n System.out.println(username + \" takes the new blue potion and consumes it entirely...\");\n System.out.println(username + \" gained 300 HP points.\");\n playerhealth = playerhealth + 300; //player's health is healed\n potions--;//put it like this, not potions = potions--; This would break the game...\n if(playerhealth > 3500){ //in case that player heals and adds 300 and health goes higher than maixmum\n playerhealth = 3500;\n }\n //in case if player tries to cheat with the maximum health\n }else if (playerhealth == 3500) {\n System.out.println(\"You are at your maximum health...You can't raise it any higher than that...\");\n System.out.println(\"NICE TRY!\");\n } \n }", "static void bonus() {\n\t\tSystem.out.println(\"Yearly bonus is 20000\");\n\n\t}", "public void setDamageTaken(double damage){\n\t\tlifeForce -= damage;\n\t\tif (! (lifeForce > 0) ) {\n\t\t\tJOptionPane.showMessageDialog(null, \"You Died - GAME OVER\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public void takePoison(int poison) { this.poison += poison; }", "public void endTurn() {\r\n\t\tint num = this.hand.size();\r\n\t\tfor (int i = 0; i < num; i++) {\r\n\t\t\tthis.discard.add(this.hand.remove(0));\r\n\t\t}\r\n\t\tint gemHeight = (int) this.totalGemValue() / 3;\r\n\t\tthis.drawFromBag(5 + gemHeight);\r\n\t}", "@Override\n public void withdraw(double amount) //Overridden method\n {\n elapsedPeriods++;\n \n if(elapsedPeriods<maturityPeriods)\n {\n double fees = getBalance()*(interestPenaltyRate/100)*elapsedPeriods;\n super.withdraw(fees);//withdraw the penalty\n super.withdraw(amount);//withdraw the actual amount\n \n }\n \n }", "public void decreaseHealingNumber() {\n healingNumber--;\n }", "public void act() \n {\n if (scoreCounter > 0){\n scoreCounter--;\n }\n \n if (scoreCounter == 0){\n addScore(1);\n scoreCounter = scoreCooldown;\n }\n }", "public void weaken(float hit) {\n if (!isInvincible()) {\n hp -= hit;\n invincible = true;\n if (hp < 0) {\n hp = 0;\n }\n\n if(isWeak()){ //Play the death animation\n currentAnimation = deathAnimation;\n }\n }\n }", "public void warningCoins(int coins);", "public void resign(){\n\t\tint turn = DBCommunicator.requestInt(\"SELECT id FROM beurt WHERE spel_id = \" + id + \" AND account_naam = '\" + app.getCurrentAccount().getUsername() + \"' ORDER BY id DESC\");\n\t\tturn += 2;\n\t\tint totalScore = DBCommunicator.requestInt(\"SELECT totaalscore FROM score WHERE spel_id = \" + id + \" AND account_naam = '\" + app.getCurrentAccount().getUsername() + \"'\");\n\t\ttotalScore = totalScore * -1;\n\t\tDBCommunicator.writeData(\"INSERT INTO beurt (id, spel_id, account_naam, score, aktie_type) VALUES(\" + turn + \", \" + id + \", '\" + app.getCurrentAccount().getUsername() + \"', \" + totalScore +\", 'Resign')\");\n\t\tfor(int e : gameStones){\n\t\t\tDBCommunicator.writeData(\"INSERT INTO letterbakjeletter (spel_id, letter_id, beurt_id) VALUES (\" + id + \", \" + e + \", \" + turn + \")\");\n\t\t}\n\t\tDBCommunicator.writeData(\"UPDATE spel SET toestand_type = 'Resigned' WHERE id = \" + id );\n\t\t\n\t\tint opTurn = turn + 1;\n\t\tint myTurn = opTurn + 1;\n\t\tDBCommunicator.writeData(\"INSERT INTO beurt (id, spel_id, account_naam, score, aktie_type) VALUES \"\n\t\t\t\t+ \"(\" + opTurn + \", \" + id + \", '\" + opponent + \"', 0, 'End'),\"\n\t\t\t\t+ \"(\" + myTurn + \", \" + id + \", '\" + app.getCurrentAccount().getUsername() + \"', 0, 'End')\");\n\t}", "public void givePlayerLevelBonus() {\n\t\tfor(Player p : playerList) {\n\t\t\tif(p.getType() == PlayerType.Agent) {\n\t\t\t\tp.addScore(5 * (currentLevel-1));\n\t\t\t}\n\t\t}\n\t\tserver.updateHighscoreList();\n\t\tserver.addTextToLoggingWindow(\"Server gives all players level bonus\");\n\t}", "public void endGame()\r\n {\r\n for (Cell c : gameBoard.bombList)\r\n {\r\n if (c.isBomb())\r\n {\r\n if (c.getText() == \"X\")\r\n {\r\n c.setId(\"correctFlag\");\r\n }\r\n else\r\n {\r\n c.setId(\"bombClicked\");\r\n }\r\n }\r\n else if (c.getText() == \"X\")\r\n {\r\n c.setId(\"incorrectFlag\");\r\n }\r\n c.setDisable(true);\r\n }\r\n if (gameBoard.emptyRemaining == 0)\r\n {\r\n win();\r\n }\r\n else\r\n {\r\n lose();\r\n }\r\n System.out.println(\"Game Over...\");\r\n scoreBoard.resetBtn.setDisable(false);\r\n }", "public void heal3()\r\n {\r\n this.health = 1200;\r\n Story.healText3();\r\n }", "public void attack(Person target) {\r\n target.setHealthPoints(target.getHealthPoints() - 1);\r\n }", "private void endTurn(){\r\n String currentPlayer = cantStop.getGameBoard().getCurrentPlayer().getName();\r\n\t\tgameOver = cantStop.getGameBoard().endTurn(didBust);\r\n\t\t\r\n\t\tif(gameOver){\r\n\t\t\tstatusLabel.setText(currentPlayer + \r\n\t\t\t\t\t\" wins! Go again?\");\r\n\t\t\tupdate();\r\n\t\t} else {\r\n\t\t\tcantStop.getGameBoard().startNewTurn();\r\n\t\t\tallowNewRoll();\r\n\t\t}\r\n\t}", "public boolean setBonus(boolean bonus) {\r\n\t\tthis.bonus = bonus;\r\n\t\tif (bonus == true) {\r\n\t\t\tif (!deck.isEmpty()) {\r\n\t\t\t\thand[5] = deck.remove(0);\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tdeck.add(hand[5]);\r\n\t\t\thand[5] = null;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void heal() {\n\t\tSystem.out.println(\"Paladin \" + super.getName() + \" heals for 50 points.\");\r\n\t\tsuper.setHitPoints(super.getHitPoints() + 50);\r\n\t}", "public void endBattle() {\n for (BattleEffect btlEff : effectsToRemove) {\n btlEff.remove();\n }\n playerInCombat.resetHealthAndMana();\n }", "@Override\n\tpublic void lose() {\n\t\t\n\t\tfround[fighter2]++;\n\t fplatz[fighter2]=Math.round((float)fplatz[fighter2]/2); \n\t\tnextRound();\n\t}", "public void onImpact() {\n die();\r\n this.getArrow().remove();\r\n }", "public void endTurn() {\n for (BattleEffect btlEff : effectsToRemove) {\n if (btlEff.getTurnsRemaining() == 0) {\n btlEff.remove();\n effectsToApply.remove(btlEff);\n } else {\n btlEff.decrementTurnsRemaining();\n }\n }\n }", "void endcredits() {\n }", "public void updatePatience(){\n Patience = Patience - 1;\n }", "public void setHandThrowDamage(short handThrowDamage);", "void giveReward(BPlayer bPlayer, int tier, int status);", "private void endTurn() {\n\t\t\n\t\tif (roundChanger == 1) {\n\t\t\tString currentPlayer = textFieldCurrentPlayer.getText();\n\t\t\tif (currentPlayer.equals(\"Player1\")) {\n\t\t\t\ttextAreaInstructions.setText(\"The current roll to beat is \" + player1.getDie1()\n\t\t\t\t+ \" \" + player1.getDie2() + \" \" + player1.getDie3());\n\t\t\t\trollToBeat = \"The current roll to beat is \" + player1.getDie1()\n\t\t\t\t+ \" \" + player1.getDie2() + \" \" + player1.getDie3();\n\t\t\t} else {\n\t\t\t\ttextAreaInstructions.setText(\"The current roll to beat is \" + player2.getDie1()\n\t\t\t\t+ \" \" + player2.getDie2() + \" \" + player2.getDie3());\n\t\t\t\trollToBeat = \"The current roll to beat is \" + player2.getDie1()\n\t\t\t\t+ \" \" + player2.getDie2() + \" \" + player2.getDie3();\n\t\t\t} \n\t\t\tchangeCurrentPlayerText();\n\t\t\tturn = 0;\n\t\t\troundChanger = 2;\n\t\t} else {\n\t\t\tString winningPlayer = calculateScore(player1, player2);\n\t\t\ttextFieldCurrentPlayer.setText(winningPlayer);\n\t\t\troundChanger = 1;\n\t\t\trollsTaken = 0;\n\t\t\tround = round + 1;\n\t\t\ttextFieldPlayerOneScore.setText(Integer.toString(player1.getPoints()));\n\t\t\ttextFieldPlayerTwoScore.setText(Integer.toString(player2.getPoints()));\n\t\t\ttextAreaInstructions.setText(\"Try to get the highest roll possible!\");\n\t\t\tcheckForGameOver();\n\t\t}\n\t\ttogglebtnD1.setSelected(false);\n\t\ttogglebtnD2.setSelected(false);\n\t\ttogglebtnD3.setSelected(false);\n\t\tdisableDice();\n\t\tturn = 0;\n\t}", "protected void end() {\n\t\tPickup.setRollers(0);\n\t}", "@Override\n protected void end() {\n Shooter.spinTurret(0.0);\n //Limelight.setLEDMode(1);\n }", "public void endTurn()\n\t{\n\t\tthis.decrementEffectDurations();\n\t\tdoneWithTurn = true;\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n bonus.add(new Rectangle((int)((Math.random()*500)/10)*10,(int)((Math.random()*400)/10)*10,10,10));\n repaint();\n }", "public void endGame(){\n if(character.getHp() > 0 )effectHandler.endGame();\n character.clearBuffs();\n }", "public void decrement() {\r\n\t\tcurrentSheeps--;\r\n\t}", "public void endGame(){\n updateHighscore();\n reset();\n }", "private void bust() {\n //Dialog box pop-up\n JOptionPane.showMessageDialog(this, this.getPlayerName() + \" busted with a value of: \" + this.getValue(), \"BUSTED!\", JOptionPane.INFORMATION_MESSAGE);\n busted = true; //Hand busted\n }", "public void raise(){\r\n elevatorTalon1.set(basePWM);\r\n elevatorTalon2.set(basePWM * pwmModifier);\r\n }", "private void remindGoal()\n {\n System.out.println(\"you have to Pick up all three items and get back outside!\");\n }", "public void takeDamage(int dmg){\r\n this.currHP -= dmg;\r\n }", "private void ustawienie_bonusu(String bonus)\n {\n switch (bonus)\n {\n case \"+10 naboi\":\n liczba_naboi+=10;\n break;\n case \"+zycie\":\n liczba_zyc+=1;\n break;\n case \"-zycie\":\n liczba_zyc-=1;\n break;\n case \"+wieksze pilki\":\n rozmiar_pilki+=1;\n break;\n case \"+5 naboi\":\n liczba_naboi+=5;\n case \"+40 punktow\":\n liczba_punktow+=40;\n break;\n case \"+duze pilki\":\n break;\n }\n }", "public void setLoses() {\r\n this.losses++;\r\n }", "public void takeDamage(int amount){\r\n\t\tthis.life = this.life - amount;\r\n\t}", "@Override\n\tvoid withdraw(double amount) {\n\t\tsuper.balance -= amount - 20;\n\t}", "private void reactToRoll(){\r\n\t\troll.setEnabled(false);\r\n\t\tsubmit.setEnabled(true);\r\n\t\tagain.setEnabled(false);\r\n\t\tnoMore.setEnabled(false);\r\n\t\tif(!didBust){\r\n\t\t\tstatusLabel.setText(\"Choose your first dice pair!\");\r\n\t\t} else {\r\n\t\t\tstatusLabel.setText(\"Oh no! Better luck next time.\");\r\n\t\t\tsubmit.setText(\"Oops! Busted!\");\r\n\t\t}\r\n\t\tupdate();\r\n\t}", "@Override\n\tpublic void passedBy() {\n\t\tMonopolyGameController.getInstance();\n\t\tMonopolyGameController.getCurrentPlayer().increaseMoney(250);\n\t\tLogger.getInstance().notifyAll(MonopolyGameController.getCurrentPlayer().getName()+ \" gained 250 dollars by landing on Bonus Square\");\n\n\t}", "public void setLosses(int value) {\n this.losses = value;\n }", "@Override\n\tpublic TaskForUserOngoingRecord setCashGained(Integer value) {\n\t\tsetValue(4, value);\n\t\treturn this;\n\t}", "public void specialEffect() {\n if (getDefense() > 0) {\n setDefense(0);\n setCurrentHealth(currentHealth + 50);\n }\n\n }", "public void die(){\n \tif (resetdelay<=0){ //if he didn't just die\r\n \t\tresetdelay = 100; //gives the frog 100 frames of invincibility\r\n \t\tlives-=1;\r\n \t}\r\n }", "public void heal(int healAmount){\r\n health+= healAmount;\r\n }", "@Override\n public void atEndOfTurn(final boolean isPlayer) {\n flash(); // Makes the power icon flash.\n AbstractDungeon.actionManager.addToBottom(\n new ReducePowerAction(owner, owner, TauntPower.POWER_ID, 1));\n\n }", "public void rollStats() {\n\t\tRandom roll = new Random();\n\t\tint rolled;\n\t\tint sign;\n\t\t\n\t\t\n\t\trolled = roll.nextInt(4);\n\t\tsign = roll.nextInt(2);\n\t\tif (sign == 0) {\n\t\t\tsetMaxHealth(getMaxHealth() + rolled*(getDifficulty()+5/5));\n\t\t\tsetHealth(getMaxHealth());\n\t\t} else {\n\t\t\tsetMaxHealth(getMaxHealth() - rolled*(getDifficulty()+5/5));\n\t\t\tsetHealth(getMaxHealth());\n\t\t}\n\t\t\n\t\trolled = roll.nextInt(2);\n\t\tsign = roll.nextInt(2);\n\t\tif (sign == 0) {\n\t\t\tsetAttack(getAttack() + rolled*(getDifficulty()+5/5));\n\t\t} else {\n\t\t\tsetAttack(getAttack() - rolled*(getDifficulty()+5/5));\n\t\t}\n\t\t\n\t\trolled = roll.nextInt(2);\n\t\tsign = roll.nextInt(2);\n\t\tif (sign == 0) {\n\t\t\tsetDefense(getDefense() + rolled*(getDifficulty()+5/5));\n\t\t} else {\n\t\t\tsetDefense(getDefense() - rolled*(getDifficulty()+5/5));\n\t\t}\n\t\t\n\t\trolled = roll.nextInt(2);\n\t\tsign = roll.nextInt(2);\n\t\tif (sign == 0) {\n\t\t\tsetSpeed(getSpeed() + rolled*(getDifficulty()+5/5));\n\t\t} else {\n\t\t\tsetSpeed(getSpeed() - rolled*(getDifficulty()+5/5));\n\t\t}\n\t\t\n\t}", "public boolean checkBonus() {\r\n\t\tif (bonus) {\r\n\t\t\tbonus = false;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Override\n public int craftBonus() {\n\treturn 1;\n }", "public void endTurn() throws ClientException{\n\t\t\thasRolled = false;\n\t\t\tplayedDevCard = false;\n\t\t\toldDevCards.setMonopoly(oldDevCards.getMonopoly()+newDevCards.getMonopoly());\n\t\t\toldDevCards.setSoldier(oldDevCards.getSoldier()+newDevCards.getSoldier());\n\t\t\toldDevCards.setYearOfPlenty(oldDevCards.getYearOfPlenty()+newDevCards.getYearOfPlenty());\n\t\t\toldDevCards.setRoadBuilding(oldDevCards.getRoadBuilding()+newDevCards.getRoadBuilding());\n\t\t\toldDevCards.setMonument(oldDevCards.getMonument()+newDevCards.getMonument());\n\t\t\n\t}", "public void apply() {\r\n\tif (currentEffect != null)\r\n\t currentEffect.removeFrom(kingdom);\r\n\r\n\tif (isVacant())\r\n\t currentEffect = penalty;\r\n\telse\r\n\t currentEffect = bonus;\r\n\r\n\tcurrentEffect.applyTo(kingdom);\r\n }", "public void withdraw(float amount) {}", "public void withdraw(float amount) {}", "public void changeCostumeRight(){\n if(costume == 3){\n costume = 0;\n }\n else{\n costume ++;\n }\n Locker.updateCostume(costume);\n PrefLoader.updateFile();\n\n }", "public void setBonusRepurchase(Float bonusRepurchase) {\n this.bonusRepurchase = bonusRepurchase;\n }", "public void takedmg(int dmg){\n curHp -= dmg;\n }", "@Override\n\tpublic void setClimb(float climb) {\n\t\t\n\t}", "public void withdraw(double amount)\n {\n startingBalance -= amount;\n }", "protected void usePoison(double amount) {\n\t\tassert poison >= 0;\n\t\tthis.poison += amount;\n\t\tpoison = Math.min(1, Math.max(0, poison));\n\t}", "private void takeDamage(int damage){ health -= damage;}" ]
[ "0.6173677", "0.6133668", "0.59916806", "0.59618837", "0.5926145", "0.58837587", "0.5868903", "0.5855544", "0.5769367", "0.5696738", "0.56870717", "0.5681818", "0.56491643", "0.5638793", "0.56344247", "0.5616875", "0.5598541", "0.5591605", "0.5584759", "0.5563449", "0.5557888", "0.55551267", "0.5528979", "0.5528032", "0.5499103", "0.5492097", "0.54723465", "0.5472345", "0.5465043", "0.54457563", "0.5431128", "0.5419927", "0.54185534", "0.5410571", "0.5402268", "0.53986543", "0.5381916", "0.5374204", "0.5373372", "0.53724086", "0.536342", "0.5359653", "0.5350749", "0.53355134", "0.53317034", "0.5328144", "0.5318797", "0.5314648", "0.5310673", "0.53012365", "0.52974963", "0.5295995", "0.5287954", "0.52787846", "0.52783436", "0.5270132", "0.52597445", "0.5248577", "0.5244624", "0.52384573", "0.5233096", "0.5228453", "0.52271277", "0.5224439", "0.5223663", "0.5222199", "0.5221617", "0.5217551", "0.52151096", "0.5213837", "0.5213381", "0.52120453", "0.5211266", "0.52108604", "0.52075416", "0.52063996", "0.5205895", "0.51991963", "0.51972276", "0.5193621", "0.51917636", "0.51889294", "0.5180787", "0.51800156", "0.51768094", "0.517386", "0.51717573", "0.51701194", "0.51690125", "0.5164995", "0.5163007", "0.5158512", "0.5158512", "0.51555175", "0.5151323", "0.51482254", "0.51455814", "0.51443243", "0.51352257", "0.5131955" ]
0.62822473
0
Returns the game score
public int score(){ //to be implemented: should return game score for(int i=0; i<10; i++) { score= frames.get(i).score(); } return score + bonusGame; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getGameScore() {\n return gameScore;\n }", "public int getScore() {\n return getStat(score);\n }", "public static int getScore()\n {\n return score;\n }", "public static int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}", "public static int getScore()\n\t{\n\t\treturn score;\n\t}", "float getScore();", "float getScore();", "public int getPlayerScore();", "long getScore();", "long getScore();", "long getScore();", "long getScore();", "int getScore();", "Float getScore();", "public int score() {\n return score;\n }", "public static int getScore(){\n return score;\n }", "public int getScore() {\n\t\treturn (score);\n\t}", "public int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}", "public int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}", "public java.lang.Integer getScore () {\r\n\t\treturn score;\r\n\t}", "int getScoreValue();", "public int getScore() {\r\n return score;\r\n }", "public int getScore() {\r\n return score;\r\n }", "public int getScore() {\r\n return score;\r\n }", "public int getScore() {\n return score;\n }", "public int getScore() {\n return score;\n }", "public int getScore(){\n\t\treturn playerScore;\n\t}", "public int getScore() {\n return score;\n }", "public int getScore(){\r\n\t\treturn score;\r\n\t}", "public int getScore(){\r\n\t\treturn score;\r\n\t}", "public int getScore() {\r\n \treturn score;\r\n }", "public int getScore() {\n return this.score;\n }", "public final int getScore() {\n\t\treturn score;\n\t}", "int score();", "int score();", "public int getScore ()\r\n {\r\n\treturn score;\r\n }", "public int getScore(){\n\t\treturn score;\n\t}", "public int getScore(){\n\t\treturn score;\n\t}", "public int getScore(){\n\t\treturn this.score;\n\t}", "public int getScore(){\n\t\treturn this.score;\n\t}", "public int getScore() {\r\n\t\treturn score;\r\n\t}", "public int getScore() {\r\n\t\treturn score;\r\n\t}", "public int getScore()\n {\n return score;\n }", "public int getScore()\n\t{\n\t\treturn this.score;\n\t}", "public int score()\n {\n if (this.score != Integer.MIN_VALUE)\n return this.score;\n\n this.score = 0;\n if (!this.safe)\n return 0;\n\n // End game bonus\n int bonus = this.d.size() * Math.max(0, (this.L - 3 * this.b.shots)) * 3;\n this.score = (this.d.size() * 100) + ((this.NE - this.e.size()) * 10) + (this.e.size() == 0 ? bonus : 0);\n\n // value:\n return this.score;\n }", "public Integer getScore() {\n return score;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getScore();", "public Integer getScore() {\r\n return score;\r\n }", "public String getScore() {\n String scoreMessage;\n if (noWinner() && !(isDeuce())) {\n scoreMessage = (isTie()) ? gameTie() : currentScore();\n }else if (isDeuce()){\n scoreMessage = \"Deuce\";\n }else {\n scoreMessage = advanceGame();\n }\n return scoreMessage;\n }", "public double getScore() {\r\n return score;\r\n }", "public int getTotalScore() {\r\n return totalScore;\r\n }", "public double getScore() {\n\t\t\treturn this.score;\n\t\t}", "public int getScore() {\n return currentScore;\n }", "public int getRoundScore() {\n return score;\n }", "public int totalScore() {\n return 0;\n }", "public int getScore()\n {\n return currentScore;\n }", "public int getScore() {\n\t\treturn score;\n\t}", "public int getScore() {\n\t\treturn score;\n\t}", "public int getScore() {\n\t\treturn score;\n\t}", "public int getScore() {\n\t\treturn score;\n\t}", "public int getScore() {\n\t\treturn score;\n\t}", "public int getScore() {\n\t\treturn score;\n\t}", "public long getScore() {\n return score_;\n }", "public long getScore() {\n return score_;\n }", "public static int getPlayerScore()\r\n\t{\r\n\t\treturn playerScore;\r\n\t}", "public int getOpponentScore(){\n return this.oppoScore;\n }", "public int getScore()\n\t{\n\t\tif (containsAce() && score < 11)\n\t\t\treturn score + 10;\n\t\t\t\n\t\treturn score;\n\t}", "public int getScore() {\n\t\treturn this.score;\n\t}", "public long getScore() {\n return score_;\n }", "public long getScore() {\n return score_;\n }", "@Override\n public int getScore() {\n return totalScore;\n }", "public int getPlayerScore(){\n\t\treturn playerScore;\n\t}", "public Double getScore() {\n return this.score;\n }", "public Double getScore() {\n return this.score;\n }", "public float getScore() {\n return score;\n }", "public int getHomeScore();", "public int getTotalScore(){\r\n return totalScore;\r\n }", "public int getScore()\n {\n // put your code here\n return score;\n }", "public abstract float getScore();", "public int getScore() { return score; }", "public int getScore() {\r\n\t\treturn deck.getScore() + extraVictory;\r\n\t}", "int getScore() {\n return score;\n }", "public int getScore()\n {\n int score;\n if (this.isFinal())\n score = 1;\n else\n score = 0;\n return score;\n }", "public float getScore() {\r\n\t\treturn score;\r\n\t}", "public double getScore() {\r\n return mScore;\r\n }", "public int score() {\n return hand.handVal(0);\n }", "public int getScore() {\n\t\treturn this.ScoreValue;\n\t}", "@Override\r\n\tpublic double getScore() \r\n\t{\r\n\t\treturn this._totalScore;\r\n\t}", "@Override\r\n\tpublic double getScore() {\n\t\treturn score;\r\n\t}", "public float getScore() {\n\t\treturn score;\n\t}", "public int getScore () {\n return mScore;\n }", "public int getTotalScore(){\n return totalScore;\n }", "public int getScore() {return score;}", "@Override\n\tprotected int calculateScore() {\n\t\treturn Math.abs(playerScore[0] - playerScore[1]);\n\t}", "public int getCurrentScore() {\n return currentScore;\n }", "@Override\n public int getScore() {\n return score;\n }", "public Float getScore() {\n return score;\n }", "public int getAwayScore();", "public int returnPoints()\n {\n return score ;\n }", "private double getScore() {\n double score = 0;\n score += getRBAnswers(R.id.radiogroup1, R.id.radiobutton_answer12);\n score += getRBAnswers(R.id.radiogroup2, R.id.radiobutton_answer21);\n score += getRBAnswers(R.id.radiogroup3, R.id.radiobutton_answer33);\n score += getRBAnswers(R.id.radiogroup4, R.id.radiobutton_answer41);\n score += getCBAnswers();\n score += getTextAns();\n score = Math.round(score / .0006);\n score = score / 100;\n return score;\n }" ]
[ "0.81984", "0.8101938", "0.8098597", "0.80428493", "0.8018435", "0.7944285", "0.7944285", "0.7940277", "0.79085433", "0.79085433", "0.79085433", "0.79085433", "0.7899145", "0.78864896", "0.7832457", "0.7805114", "0.77433264", "0.77377737", "0.77377737", "0.77110326", "0.77027506", "0.7691022", "0.7691022", "0.7691022", "0.7682774", "0.7682774", "0.7676759", "0.76573586", "0.76481205", "0.76481205", "0.7631642", "0.763104", "0.76281404", "0.7625923", "0.7625923", "0.76224995", "0.7614033", "0.7614033", "0.760179", "0.760179", "0.7594409", "0.7594409", "0.75883985", "0.7578157", "0.75736815", "0.7573664", "0.7569352", "0.7563855", "0.7563649", "0.756216", "0.7556314", "0.7550245", "0.7549564", "0.75392705", "0.75365186", "0.7531248", "0.7528238", "0.7528238", "0.7528238", "0.7528238", "0.7528238", "0.7528238", "0.75226444", "0.75226444", "0.7515016", "0.7505122", "0.748744", "0.74774116", "0.74742424", "0.74742424", "0.7470136", "0.7469488", "0.7463115", "0.7463115", "0.74590504", "0.74548924", "0.7447527", "0.744187", "0.744025", "0.7438766", "0.74282396", "0.7425154", "0.7421824", "0.74205804", "0.7417178", "0.74142843", "0.7408789", "0.7406113", "0.7401927", "0.73970646", "0.73925304", "0.73872036", "0.7358054", "0.735756", "0.7342459", "0.73412716", "0.7320668", "0.7303036", "0.7296801", "0.72966003" ]
0.7966415
5
Creates a new instance of ParallelReceptacle
public ParallelReceptacle() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ForkJoinPoolMgr() {\n }", "Reproducible newInstance();", "Parcelle createParcelle();", "public CreateKonceptWorker() {\n\t\tsuper();\n\t\tthis.koncept = new KoncepteParaula();\n\t}", "public EngineConcurrency() {\n Runtime runtime = Runtime.getRuntime();\n int threads = runtime.availableProcessors();\n if (threads > 1) {\n threads++;\n }\n this.executor = Executors.newFixedThreadPool(threads);\n }", "private CameraExecutors() {\n }", "public AbstractParallelAlgorithm()\n {\n this(null);\n }", "public ParallelApply() {\n super.setParallel(true);\n }", "private ParallelGatewayConstant() {\n }", "Fork createFork();", "public ParallelProcessor(List<Rule> rules) {\n _rules = rules;\n }", "protected TaskChain() {\n\t}", "@Override\r\n\t\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "public AbstractRecombinator() \r\n\t{\r\n\t\tsuper();\r\n\t\tsetPpl();\r\n\t\tsetSpl();\t\t\r\n\t}", "public Reparto(){\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "public SequentialExecutor(Executor executor)\r\n {\r\n myExecutor = Utilities.checkNull(executor, \"executor\");\r\n }", "private TestAcceptFactory() {\n this._pool = new DirectExecutor();\n }", "@Override\n protected DefaultProcessorTask newProcessorTask(boolean initialize){ \n ProcessorBlockingTask task = new ProcessorBlockingTask(initialize);\n configureProcessorTask(task);\n task.setMaxKeepAliveRequests(getMaxKeepAliveRequests());\n if (secure){\n task.setSSLImplementation(sslImplementation);\n }\n return task; \n }", "public TestInvoker()\n {\n super(new TestClient(), new ThreadPoolExecutorImpl(3));\n }", "public IntPar() { }", "protected TaskFlow( ) { }", "public ParallelSection()\n\t\t{\n\t\tsuper();\n\t\t}", "public ForkTask(RepositoryActivity activity) {\n mTarget = new WeakReference<RepositoryActivity>(activity);\n }", "private Thread[] newThreadArray() { \r\n\t int n_cpus = Runtime.getRuntime().availableProcessors(); \r\n\t return new Thread[n_cpus]; \r\n\t }", "private RegressionPrior() { \n /* empty constructor */\n }", "public PipelineImpl() {\n }", "protected LearningAbstractAgent(){}", "public Activator() {\r\n\t}", "public grayTWorkerSweepRec() {\n }", "protected abstract void construct();", "public ProPoolExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "private Processor()\n {\n super(providerName+\"ProxyProcessor\");\n }", "public GridFTPClient2PartyParallelTest(String name) {\n\tsuper(name);\n }", "@Test\r\n public void testCrear() throws Exception {\r\n System.out.println(\"crear\");\r\n String pcodigo = \"bravos\";\r\n String pnombre = \"Arreglar bumper\";\r\n String tipo = \"Enderazado\";\r\n Date pfechaAsignacion = new Date(Calendar.getInstance().getTimeInMillis());\r\n String pplacaVehiculo = \"TX-101\";\r\n MultiReparacion instance = new MultiReparacion();\r\n Reparacion expResult = new Reparacion(pcodigo, pnombre,tipo,pfechaAsignacion,pplacaVehiculo);\r\n Reparacion result = instance.crear(pcodigo, pnombre, tipo, pfechaAsignacion, pplacaVehiculo);\r\n \r\n assertEquals(expResult.getCodigo(), result.getCodigo());\r\n assertEquals(expResult.getNombre(), result.getNombre());\r\n assertEquals(expResult.getTipo(), result.getTipo());\r\n assertEquals(expResult.getPlacaVehiculo(), result.getPlacaVehiculo());\r\n assertEquals(expResult.getFechaAsignacion(), result.getFechaAsignacion());\r\n // TODO review the generated test code and remove the default call to fail.\r\n //fail(\"The test case is a prototype.\");\r\n }", "Multi createMulti();", "ResilientExecutionUtil() {\n // do nothing\n }", "public AbstractConcurrentTestCase() {\n mainThread = Thread.currentThread();\n }", "public ParallelUtilTest(\n String testName)\n {\n super(testName);\n }", "private RequestExecution() {}", "public TManagerImp() {\n transactions = new ConcurrentHashMap<>();\n }", "public void initReloj(){\r\n Thread r1 = new Thread(this,\"Reloj\");\r\n r1.start();\r\n }", "public abstract T create() throws PoolException;", "ComputerProxy(Computer computer) {\n this.computer = computer;\n //this.map = new ConcurrentHashMap<UUID, Task>();\n }", "private ThreadUtil() {\n \n }", "public Requisition() {\n\n }", "public DisruptorMux() {\r\n\r\n\t\t_executor = Executors.newFixedThreadPool(NUM_EVENT_PROCESSORS);\r\n\r\n\t\t_disruptor = new Disruptor<BundleEvent>(BundleEvent.EVENT_FACTORY,\r\n\t\t\t\t_executor, new SingleThreadedClaimStrategy(RING_SIZE),\r\n\t\t\t\tnew BlockingWaitStrategy());\r\n\r\n\t}", "ThreadCounterRunner() {}", "private static void multiThreading(){\n\t\tSystem.out.println(\"\\nCreating new two separate instances of Singleton using Multi threading\");\n\t\tExecutorService service = Executors.newFixedThreadPool(2);\n\t\tservice.submit(TestSingleton::useSingleton);\n\t\tservice.submit(TestSingleton::useSingleton);\n\t\tservice.shutdown();\n\t}", "public ThreadedListenerManager(ExecutorService pool) {\n\t\tmanagerNumber = MANAGER_COUNT.getAndIncrement();\n\t\tthis.pool = pool;\n\t}", "public ConstantPoolReader() {\n }", "private ThreadLocalTransaction() {\n }", "public AbstractParallelAlgorithm(\n final ThreadPoolExecutor threadPool)\n {\n super();\n\n this.setThreadPool(threadPool);\n }", "public PooledConnection newInstance() {\n return new PooledConnection(pool);\n }", "PooledThread()\n {\n setDaemon(true);\n\n start();\n }", "protected Recycler(int maxCapacityPerThread)\r\n/* 93: */ {\r\n/* 94:124 */ this(maxCapacityPerThread, MAX_SHARED_CAPACITY_FACTOR);\r\n/* 95: */ }", "public ObjectPool() {\n }", "protected abstract SelfChainingDataObject getNewIndependentInstance();", "public ClientNaiveAgent() {\n // the default ip is the localhost\n ar = new ClientActionRobotJava(\"127.0.0.1\");\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n }", "public ThreadLocal() {}", "private CollectTaskPool() {\n\t\tsuper();\n\t}", "@Override\n\t\t\tpublic Thread newThread(final Runnable r) {\n\t\t\t\tint id = threadNumber.getAndIncrement();\n\t\t\t\tString threadName = leftPad(String.valueOf(id), 2, \"0\");\n\t\t\t\tThread th = new Thread(r);\n\t\t\t\tth.setName(threadName);\n\t\t\t\tth.setDaemon(false);\n\t\t\t\treturn th;\n\t\t\t}", "public Refrigerator() {\r\n\t\tthis(1, 0, 0);\r\n\t\t\r\n\t}", "private ProcessorUtils() { }", "public Task() { }", "public Task(Task source) {\n if (source.Application != null) {\n this.Application = new Application(source.Application);\n }\n if (source.TaskName != null) {\n this.TaskName = new String(source.TaskName);\n }\n if (source.TaskInstanceNum != null) {\n this.TaskInstanceNum = new Long(source.TaskInstanceNum);\n }\n if (source.ComputeEnv != null) {\n this.ComputeEnv = new AnonymousComputeEnv(source.ComputeEnv);\n }\n if (source.EnvId != null) {\n this.EnvId = new String(source.EnvId);\n }\n if (source.RedirectInfo != null) {\n this.RedirectInfo = new RedirectInfo(source.RedirectInfo);\n }\n if (source.RedirectLocalInfo != null) {\n this.RedirectLocalInfo = new RedirectLocalInfo(source.RedirectLocalInfo);\n }\n if (source.InputMappings != null) {\n this.InputMappings = new InputMapping[source.InputMappings.length];\n for (int i = 0; i < source.InputMappings.length; i++) {\n this.InputMappings[i] = new InputMapping(source.InputMappings[i]);\n }\n }\n if (source.OutputMappings != null) {\n this.OutputMappings = new OutputMapping[source.OutputMappings.length];\n for (int i = 0; i < source.OutputMappings.length; i++) {\n this.OutputMappings[i] = new OutputMapping(source.OutputMappings[i]);\n }\n }\n if (source.OutputMappingConfigs != null) {\n this.OutputMappingConfigs = new OutputMappingConfig[source.OutputMappingConfigs.length];\n for (int i = 0; i < source.OutputMappingConfigs.length; i++) {\n this.OutputMappingConfigs[i] = new OutputMappingConfig(source.OutputMappingConfigs[i]);\n }\n }\n if (source.EnvVars != null) {\n this.EnvVars = new EnvVar[source.EnvVars.length];\n for (int i = 0; i < source.EnvVars.length; i++) {\n this.EnvVars[i] = new EnvVar(source.EnvVars[i]);\n }\n }\n if (source.Authentications != null) {\n this.Authentications = new Authentication[source.Authentications.length];\n for (int i = 0; i < source.Authentications.length; i++) {\n this.Authentications[i] = new Authentication(source.Authentications[i]);\n }\n }\n if (source.FailedAction != null) {\n this.FailedAction = new String(source.FailedAction);\n }\n if (source.MaxRetryCount != null) {\n this.MaxRetryCount = new Long(source.MaxRetryCount);\n }\n if (source.Timeout != null) {\n this.Timeout = new Long(source.Timeout);\n }\n if (source.MaxConcurrentNum != null) {\n this.MaxConcurrentNum = new Long(source.MaxConcurrentNum);\n }\n if (source.RestartComputeNode != null) {\n this.RestartComputeNode = new Boolean(source.RestartComputeNode);\n }\n if (source.ResourceMaxRetryCount != null) {\n this.ResourceMaxRetryCount = new Long(source.ResourceMaxRetryCount);\n }\n }", "public Laboratorio() {}", "Runnable mk();", "AgentPolicyBuilder setParallelCallbackTimeoutMs(long timeoutMs);", "public LeaseTermForTurnoverRentFixedImportManager() {\n }", "protected Recycler(int maxCapacityPerThread, int maxSharedCapacityFactor)\r\n/* 98: */ {\r\n/* 99:128 */ this(maxCapacityPerThread, maxSharedCapacityFactor, RATIO, MAX_DELAYED_QUEUES_PER_THREAD);\r\n/* 100: */ }", "public static void main(String[] args) throws InterruptedException {\n\n Subject realSubject = new RealSubject();\n Subject proxyInstance = (Subject) Proxy.newProxyInstance(realSubject.getClass().getClassLoader(), realSubject.getClass().getInterfaces(), new InvocationHandler() {\n @Override\n public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n if (method.getName().equals(\"request\")) {\n System.out.println(\"执行代理!\");\n }\n return method.invoke(proxy, args);\n }\n });\n }", "public ParalysisEffect() {\n m_lock = SPECIAL_EFFECT_LOCK;\n }", "public Task(){}", "public ParallelMapping(int numberOfThreads, ClassToThreads[] cToT) {\n //alex\n //this.maxNumberOfthreads = maxNumberOfThreads;\n //this.minNumberOfThreads = minNumberOfThreads;\n //this.numberOfthreadsAC = numberOfThreads;\n \n queues = new BlockingQueue[numberOfThreads];\n \n for (int i = 0; i < queues.length; i++) {\n //queues[i] = new LinkedBlockingQueue();\n queues[i] = new FIFOQueue();\n } \n this.classes = cToT;\n \n for(int i = 0; i < this.classes.length;i++){\n BlockingQueue[] q = new BlockingQueue[this.classes[i].tIds.length];\n for(int j = 0; j < q.length; j++){\n q[j] = queues[this.classes[i].tIds[j]];\n }\n this.classes[i].setQueues(q); \n }\n \n\n //this.barriers.put(CONFLICT_ALL, new CyclicBarrier(getNumThreadsAC()));\n\n //this.executorThread.put(CONFLICT_ALL, 0);\n reconfBarrier = new CyclicBarrier(numberOfThreads + 1);\n //reconfThreadBarrier = new CyclicBarrier(maxNumberOfthreads);\n }", "private ThreadUtil() {\n }", "OperationContinuation createOperationContinuation();", "public ServiceTaskExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public T newInstance();", "static Pool newConstantPool() {\n return new ConstantPool();\n }", "private ServiceManage() {\r\n\t\tInitialThreads();\r\n\t}", "public ExecutorService createExecutor() {\n return getCamelContext().getExecutorServiceManager().newThreadPool(this, endpointName,\n 1, 5);\n }", "public AbstractMultipleRegressorTestCase(String name) {\n super(name);\n }", "private Task createTask(StressTest test)\n\t{\n\t\treturn new ClientServerTask(test);\n\t}", "public MultiThreadedTabuSearch() {}", "public Task() {\n\t}", "public MonteCarloVSmp()\r\n\t{\r\n\t}", "private GDMThreadFactory(){}", "private ExecutorService getDroneThreads() {\n\t\treturn droneThreads;\n\t}", "private CloneFactory() {\n }", "public Task() {\r\n }", "private PerksFactory() {\n\n\t}", "public CacheTracabilityFactoryImpl() {\n\t\tsuper();\n\t}" ]
[ "0.5583755", "0.5580329", "0.545744", "0.5393528", "0.53870845", "0.5379442", "0.5363962", "0.5360151", "0.5268811", "0.522092", "0.5170632", "0.50876033", "0.5050741", "0.5050741", "0.5034693", "0.502724", "0.5026381", "0.5026381", "0.5026381", "0.5026381", "0.5026381", "0.5026381", "0.5026381", "0.50049126", "0.49910542", "0.49906906", "0.49752066", "0.4956356", "0.49421328", "0.4937344", "0.49246413", "0.48832035", "0.48746082", "0.4858206", "0.48441657", "0.48308334", "0.48294616", "0.4803809", "0.47769672", "0.47709724", "0.47702378", "0.4767017", "0.4766527", "0.47634903", "0.4760651", "0.4754319", "0.4753857", "0.47498485", "0.4749524", "0.4745731", "0.47260875", "0.47191143", "0.47087905", "0.4703002", "0.46974024", "0.46959653", "0.46884155", "0.46839902", "0.46828377", "0.4674534", "0.46644077", "0.46624163", "0.4657805", "0.46567923", "0.46537584", "0.4653298", "0.46506062", "0.46491703", "0.4648923", "0.46462676", "0.46456712", "0.46435538", "0.4629998", "0.46194613", "0.46185276", "0.46109715", "0.4609895", "0.46081784", "0.46069026", "0.4602053", "0.4599357", "0.459231", "0.4592089", "0.45902085", "0.4584266", "0.45820245", "0.45806253", "0.45804676", "0.45765635", "0.4574914", "0.45709416", "0.45660678", "0.4562248", "0.4552096", "0.45514804", "0.4546101", "0.4541463", "0.45402747", "0.4540012", "0.45369852" ]
0.87178457
0
TODO Autogenerated method stub
public static void main(String[] args) { Constructor obj = new Constructor(1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub super.run();
@Override public void run() { while(true){ if(ticket>0){ try { Thread.sleep(1000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } System.out.println(Thread.currentThread().getName()+"卖票--->"+(this.ticket--)); }else{ break; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tsuper.run();\r\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}", "protected void run() {\r\n\t\t//\r\n\t}", "public void run() {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\n\t\t\t}", "public void run() {\n\t\t\t\t\t\t}", "public void run() {\n\t\t\r\n\t}", "public void run() {\n\t\t\r\n\t}", "@Override\n\tpublic void run() {\n\t\tsuper.run();\n\t}", "@Override\n public void run()\n {\n super.run();\n }", "public void run() {\n\n }", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "public void run() {\n super.run();\n }", "@Override\n\t\tpublic void run() {\n\n\t\t}", "public void run()\n\t\t{\n\t\t}", "public void run() {\n\t\t\n\t}", "public void run() {\n\n\t}", "public void run() {\n\n\t}", "public void run() {\n\t\t}", "public void run() {\n\t\t}", "public void run() {\n\t\t}", "public void run() {\n }", "@Override\n\tpublic void run() {\n\t\t\n\t\t\t\t\t\t\n\t}", "public void run() {\n }", "public void run() {\n }", "public void run() {\n }", "@Override\n public void run(){\n }", "@Override\n public void run() {\n \t\n }", "@Override\r\n public void run() {}", "@Override\r\n\t\t\t\tpublic void run() {\n\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void run() {\n\r\n\t\t\t\t}", "@Override\n public void run() {\n }", "public void run(){\n\t}", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n\n }", "@Override\n public void run() {\n\n }", "@Override\n public void run() {\n\n }", "@Override\n public void run() {\n\n }", "@Override\n public void run() {\n\n }", "@Override\n public void run() {\n\n }", "public void run() {\n }", "public void run() {\n }", "public void run() {\n }", "@Override\r\n\tabstract public void run();", "public void run()\r\n\t{\r\n\t\t\r\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t}", "public void run() {\r\n\t\t// overwrite in a subclass.\r\n\t}", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\r\n public void run() {\n }", "public void run() {\n }", "public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run()\n {\n }", "@Override\n public void run()\n {\n }", "@Override\n public void run() {\n }", "@Override\n\tpublic void run() {\n\n\t}", "@Override\n\tpublic void run() {\n\n\t}", "@Override\n\tpublic void run() {\n\n\t}", "@Override\n\tpublic void run() {\n\n\t}", "@Override\n\tpublic void run() {\n\n\t}", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }" ]
[ "0.8862604", "0.8779649", "0.8779649", "0.8765411", "0.8712561", "0.8712561", "0.8698418", "0.8674107", "0.8636997", "0.8620273", "0.8620273", "0.8595996", "0.85119355", "0.85023195", "0.85023195", "0.84786093", "0.84768283", "0.8472831", "0.8459689", "0.8459689", "0.8459689", "0.8459689", "0.8459689", "0.8459689", "0.8459689", "0.8459689", "0.8459689", "0.8451571", "0.84160167", "0.84145725", "0.8406155", "0.83821815", "0.83821815", "0.837357", "0.837357", "0.837357", "0.83699214", "0.83618015", "0.83548987", "0.83548987", "0.83548987", "0.83542365", "0.8334213", "0.83340263", "0.8325228", "0.8325228", "0.8321686", "0.8321127", "0.8317964", "0.8317964", "0.8317964", "0.8316886", "0.8316886", "0.8316886", "0.8316886", "0.8316886", "0.8316886", "0.83118385", "0.8310476", "0.8305861", "0.83007866", "0.8300167", "0.8299003", "0.8299003", "0.8299003", "0.8299003", "0.8299003", "0.8299003", "0.8299003", "0.8299003", "0.8299003", "0.8299003", "0.8299003", "0.8299003", "0.8299003", "0.8299003", "0.8299003", "0.8299003", "0.82794434", "0.82757074", "0.82757074", "0.8265375", "0.8260235", "0.8260235", "0.82475454", "0.82475454", "0.82475454", "0.82475454", "0.82475454", "0.82475454", "0.82475454", "0.82470316", "0.82470316", "0.82382303", "0.8237134", "0.8237134", "0.8237134", "0.8237134", "0.8237134", "0.820178", "0.820178" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { MyRunnableThreadTest mt = new MyRunnableThreadTest(); Thread t1 = new Thread( mt,"一号窗口"); Thread t2 = new Thread( mt,"二号窗口"); t1.start(); t2.start(); t2.interrupt(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
public WebDriver driver; one is inheritance create object for loginpage and invoke menthods in it
@Test() public void ValidateNavgation() throws IOException { LandingPage lp=new LandingPage(driver); Assert.assertTrue(lp.getNavbar().isDisplayed()); log.info("Navigated bar is displayed"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LoginPage(WebDriver driver){\n super(driver);\n PageFactory.initElements(driver, this);\n }", "public LoginPage(WebDriver driver) {\n\t this.driver = driver;\n\t }", "public Loginpage (WebDriver driver) {\n\t\tthis.driver = driver;\n\t\t\n\t\t elementutil = new ElementUtil(driver);\n\t\tthis.driver = driver;\n\t}", "public loginPage(WebDriver driver) {\n this.driver = driver;\n }", "public LoginPage(WebDriver driver) {\r\n this.driver=driver;\r\n\t\tPageFactory.initElements(driver, this);\r\n\t}", "public LoginPage(WebDriver _driver) {\n driver = _driver;\n }", "public LoginPage(WebDriver driver) {\n\t\t\tthis.driver = driver;\n\t\t}", "public LoginPage(){\n PageFactory.initElements(driver, this); //all vars in this class will be init with this driver\n }", "public MercuryLoginPage(WebDriver driver) {\n\t\tthis.driver = driver;\n\t\tPageFactory.initElements(driver, this);\n\t}", "public ELogin(WebDriver driver)\r\n{\r\n\tthis.driver =driver;\r\n\t//System.out.println(\"Elogin as been instantiated\");\r\n}", "public LoginPage(WebDriver driver) {\n\t\t/*\n\t\t * As I said above, we can let Selenium initialize our WebElements. This is actually done via the PageFactory.\n\t\t */\n\t\t\n\t\tPageFactory.initElements(driver, this);\n\t\t\n\t\t/*\n\t\t * Let's talk about explicit waits now. Explicit waits are different from implicit waits in that\n\t\t * they allow us to specify conditions that must be met before elements are interacted with.\n\t\t * For instance, we can wait for an element to be visible or clickable before we interact with it.\n\t\t * \n\t\t * Explicit waits act on a per element basis. This means that your explicit waits ae applied to specific\n\t\t * elements.\n\t\t */\n\t\t\n\t\tWebDriverWait wait = new WebDriverWait(driver, 5);\n\t\twait.until(ExpectedConditions.elementToBeClickable(usernameBox));\n\t}", "public FaceLoginPage(WebDriver driver){ // ===> Bu bir constructor\n\n this.driver = driver;\n // **** PageFactory.initElements() **** ==> page objelerini(Web element) baslatmak icin kullanilir\n PageFactory.initElements(driver, this);\n\n }", "public RediffLoginPagePF(WebDriver driver) {\n\t\t\n\t\tthis.driver = driver;\n\t\tPageFactory.initElements(driver,this);\n\t}", "public LoginPageObject(WebDriver mappingDriver) {\r\n\t\tdriver = mappingDriver;\r\n\t}", "public LoginPage(){\n\t\tPageFactory.initElements(driver, this);\n\t\t\n\t}", "public LoginPage( WebDriver driver, String url ) {\n\t\t\n\t\tsuper( driver );\n\t\t\n\t\t/* --- Let's go to the login page. --- */\n\t\tdriver.get( /*\"http://gwos01.example.com\"*/ url );\n\t}", "@BeforeMethod\n public void setDriver() throws MalformedURLException {\n\n\n driver = WebDriverFactory.getDriver(WebDriverFactory.CHROME).get();\n\n\n loginPage = new LoginPage(driver);\n loginPageHelper = new LoginPageHelper(driver);\n menuHelper = new MenuHelper(driver);\n }", "public LoginPage(){\n\t\tPageFactory.initElements(driver, this);\n\t}", "public static WebDriver login(WebDriver driver) \n\t{\n\t\tdriver.findElement(By.xpath(pro.getProperty(\"OpenCart.Loginlink.Xpath\"))).click();\n\t\tSystem.out.println(\"Step02: Login Page displayed Successfully\");\n\t\t//logger.log(LogStatus.PASS, \"Step 2 : Entered Login Page of Application..\");\n\t\t//driver.findElement(By.xpath(pro.getProperty(\"Opencart.UserName.Xpath\"))).sendKeys(TC01RegistrationAndOpenToCart.uniqueEmail);\n\t\t//driver.findElement(By.xpath(pro.getProperty(\"Opencart.Password.Xpath\"))).sendKeys(TC01RegistrationAndOpenToCart.getPassword);\n\t\tdriver.findElement(By.xpath(pro.getProperty(\"Opencart.UserName.Xpath\"))).sendKeys(\"opencartdemo1@gmail.com\");\n\t\tdriver.findElement(By.xpath(pro.getProperty(\"Opencart.Password.Xpath\"))).sendKeys(\"demo1@123\");\n\t\tdriver.findElement(By.xpath(pro.getProperty(\"Opencart.LoginButton.Xpath\"))).click();\n\t\t//checkpoint\n\t\tAssert.assertTrue(driver.findElement(By.xpath(pro.getProperty(\"Opencart.UsernameLink.Xpath\"))).getText().contains(\"demo1\"), \"Login Failed\");\n\t\tSystem.out.println(\"Step03: Logged into Opencart Successfully\");\n\t\t//logger.log(LogStatus.PASS, \"Step 3 : Logged into Application..\");\n\t\treturn driver;\n\t}", "public LoginPage()\n{\n\tPageFactory.initElements(driver, this);\n}", "public WebDriver login() {\r\n System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\sa841\\\\Documents\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n //System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\sa841\\\\Documents\\\\chromedriver_win32\\\\phantomjs.exe\");\r\n String URL = \"http://Admin:admin@192.168.1.63:8080/phenotips123/bin/loginsubmit/XWiki/XWikiLogin/\";\r\n ChromeOptions options = new ChromeOptions();\r\n options.addArguments(\"window-size=1024,768\");\r\n DesiredCapabilities capabilities = DesiredCapabilities.chrome();\r\n capabilities.setCapability(ChromeOptions.CAPABILITY, options);\r\n WebDriver driver = new ChromeDriver(capabilities);\r\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\r\n //WebDriver driver = new PhantomJS();\r\n driver.get(URL);\r\n driver.findElement(By.id(\"j_username\")).sendKeys(\"Admin\");\r\n driver.findElement(By.id(\"j_password\")).sendKeys(\"admin\");\r\n driver.findElement(By.className(\"button\")).click();\r\n return driver;\r\n }", "public ProcessAnalyticsPage(WebDriver webDriver) {\n\t\tsuper(webDriver);\n\t\tSystem.out.println(\"Initiated SBLoginPage web elements\");\n\t}", "public LoginPage() {\r\n\t\t\t\r\n\t\t\t//Initialize webElements.\r\n\t\t\tPageFactory.initElements(driver, this);\r\n\t\t}", "private static LoginPage initElements(ChromeDriver driver2, Class<LoginPage> class1) {\n\t\treturn null;\r\n\t}", "public loginPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public RegisterPage(WebDriver driver){ this.driver = driver; }", "public LoginPage()\r\n\t{\r\n\t\tPageFactory.initElements(driver,this);\r\n\t}", "public BasePage(WebDriver driver) {\n this.driver = driver;\n }", "public LoginPOJO() {\n\n\t\tPageFactory.initElements(driver, this);\t\n\t}", "public LoginBackendPage() {\n\t\t PageFactory.initElements(driver, this);\n\t}", "public static WebDriver setUp() {\n\t\n \t\n \tSystem.setProperty(\"webdriver.chrome.driver\", \"drivers\\\\chromedriver.exe\"); //if it doesn't work we can check with user.dir...\n \tdriver = new ChromeDriver(); //launch the Browser it opens empty page\n \tdriver.manage().window().maximize();\n \tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS); //to wait globally\n \tdriver.get(\"http://166.62.36.207/humanresources/symfony/web/index.php/auth/login\");\n \t \n \treturn driver; //return object of the driver \t\n}", "public LoginPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public LoginPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public Loginpage()\n\t{\n\t\tPageFactory.initElements(driver, this);\n\t}", "public BasePage(WebDriver driver) {\r\n\t\tsuper(driver);\r\n\t}", "public MyAccountPageObject(WebDriver driver) {\n this.driver = driver;\n PageFactory.initElements(driver, this);\n wait = new WebDriverWait(driver, 20);\n }", "public static void Login(WebDriver driver){\n WebElement element = driver.findElement(By.xpath(\"//*[@id = 'txtUsername']\"));\n WebElement element2 = driver.findElement(By.xpath(\"//*[@id = 'txtPassword']\"));\n element.clear();\n element2.clear();\n element.sendKeys(\"Admin\");\n element2.sendKeys(\"admin123\");\n element2.submit();\n WebElement element3 = driver.findElement(By.xpath(\"//*[@id = 'menu_time_viewTimeModule']\"));\n element3.click();\n WebElement element4 = driver.findElement(By.xpath(\"//*[@id = 'menu_attendance_Attendance']\"));\n element4.click();\n WebElement element5 = driver.findElement(By.xpath(\"//*[@id = 'menu_attendance_punchIn']\"));\n element5.click();\n }", "public static void CustomLogin (WebDriver driver) throws InterruptedException {\r\n\t \r\n\t driver.findElement(PageGlobal.TopNavAccount).click();\r\n\t Thread.sleep(2000);\r\n//\t driver.findElement(PageGlobal.SignInto).click();\r\n//\t Thread.sleep(2000);\r\n\t\tdriver.switchTo().frame(\"iframe-signin-overlay\");\r\n\t driver.findElement(PageSignInModal.ModalUsername).clear();\r\n\t driver.findElement(PageSignInModal.ModalUsername).sendKeys(\"mhossain@totalwine.com\");\r\n\t driver.findElement(PageSignInModal.ModalPassword).clear();\r\n\t driver.findElement(PageSignInModal.ModalPassword).sendKeys(\"grapes123\");\r\n\t driver.findElement(PageSignInModal.ModalSigninButton).click();\r\n\t Thread.sleep(6000); \t \r\n\t}", "public MainPage(WebDriver driver) {\n super(driver);\n }", "public static void DoLogin(WebDriver driver){\n\t driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t \n\t //Launch application\n\t driver.navigate().to(\"http://socialsofttesthb.com/\");\n\t \n\t //Maximize the browser\n\t driver.manage().window().maximize();\n\t \n\t //driver.findElement(By.xpath(\".//*[@id='email']\")).sendKeys(\"anuj@ravabe.com\");\n\t TestHelper.emailAddress(driver).sendKeys(\"anuj@ravabe.com\");\n\t \n\t //driver.findElement(By.xpath(\".//*[@id='password']\")).sendKeys(\"Anuj123456\");\n\t TestHelper.password(driver).sendKeys(\"Anuj123456\");\n\t \n\t // Click Calculate Button\n\t driver.findElement(By.xpath(\".//*[@id='login-form']/button\")).click();\n\t \n\t \n\t\t\n\t}", "public RediffMailLoginPage(WebDriver driver ) {\n\t\t\n\t\tthis.driver =driver;\n\t}", "public HomePage(WebDriver driver) {\n\t\tthis.driver=driver;\n\t\teleutil=new ElementUtil(this.driver); \n\t}", "@Given(\"user is on the login page\")\n public void user_is_on_the_login_page() {\n //according to POM, driver cannot be instantiated here\n// WebDriverManager.chromedriver().setup(); //makes the setup of webdriver, it is setting up chromedriver and connects the WebDriver object with the browser\n// driver = new ChromeDriver();\n// driver.get(ConfigurationReader.getProperty(\"url\"));\n\n Driver.getDriver().get(\"http://qa2.vytrack.com\");\n\n }", "public Homepage(WebDriver driver) {\n\t\tthis.driver=driver;\n\t}", "protected AbstractBasePage(WebDriver webDriver) {\n\t\tthis.webDriver = webDriver;\n\t\tthis.wait = new WebDriverWait(webDriver, TIMEOUT);\n\t\tthis.windowHandle = webDriver.getWindowHandle();\n\t\twaitForPageToLoad();\n\t}", "@Test(priority = 4)\n\tpublic void loginTest1() throws InterruptedException {\n\t\tHomePage home = new HomePage(this.driver);\n\t\tAssert.assertTrue(home.myAccountElementIsDisplayed());\n\t\thome.navigateToMyAccount();\n\t\tAssert.assertTrue(home.dropBoxMyAccountIsDisplayed());\n\t\t// After step must be openned small window when are few elements with Login btn\n\t\tLoginPage login = new LoginPage(this.driver);\n\t\tlogin = home.navigateToLogin();\n\t\tAssert.assertTrue(login.loginPageIsOpen());\n\t\t// After step by clicking login must be openned new ProfilePage\n\t\t// when user can write email and password and log in\n\t\tThread.sleep(2000);\n\t\tlogin.navigateToEmailField(\"\");\n\t\tThread.sleep(2000);\n\t\tlogin.navigateToPasswordField(\"\");\n\t\tThread.sleep(2000);\n\t\tlogin.navigateToLoginBtn();\n\t\tThread.sleep(2000);\n\t\tAssert.assertTrue(login.errorDisplayed());\n\t\thome.navigateToReturnHomePage();\n\t}", "@BeforeMethod\n public void beforeMethod() {\n loginPage = new LoginPage(driver);\n loginPage.open(); //open poker URL\n }", "public BuscadorPage(WebDriver pDriver) {\r\n\t\tthis.aDriver = pDriver;\r\n\t\t//this.aDriver.manage().window().maximize();\r\n\t\taccessURL();\r\n\t}", "@SuppressWarnings(\"null\")\r\n\t@Test\r\n\tpublic void Login()\r\n\t{\r\n \tWebDriver driver = null;\r\n\t\tLoginTestData LTD = new LoginTestData();\r\n\t\tBrowser br = new Browser();\r\n\t\tBaseClassMethods bcm = new BaseClassMethods();\r\n\t//\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Aniket\\\\Selenium\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\tbr.userLogin(LoginTestData.userName, LoginTestData.password);\r\n//\t\tdriver.manage().timeouts().pageLoadTimeout(10000, TimeUnit.MILLISECONDS);\r\n\t WaitMethods wait = new WaitMethods();\r\n\t\twait.hardWait();\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t\r\n\t//\tdriver.switchTo().equals(driver.findElement(By.xpath(\"//div[@class='container']//div[@id='addModify']//following::div[@id='onTripVehicleStoppageDetails']\")));\r\n\t//\tdriver.switchTo().activeElement();\r\n\t\tif (driver.findElement(By.xpath(\"//div[@id='navbarsExample04']\")).isDisplayed()){\r\n\t\t\r\n\t\tbcm.highLightElement(driver.findElement(By.xpath(\"//a//img[@id='companyImage']\")), driver);\r\n\t\tdriver.findElement(By.xpath(\"//a//img[@id='companyImage']\")).click();\r\n\t\t}\r\n\t\tdriver.switchTo().defaultContent();\r\n\t\t\r\n\t\tbcm.highLightElement(driver.findElement(By.xpath(\"//div[@id='onTripVehicleStoppageDetails']\")), driver);\r\n\t\tbcm.closePopup(); \r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tdriver.findElement(By.xpath(\"//a[text()='Dashboard']\")).click();\r\n\t\tdriver.findElement(By.xpath(\"//a[text()='Dashboard']\")).sendKeys(\"Executive Live View\");\r\n\t\t\r\n\t\tdriver.findElement(By.xpath(\"//div[@class='sweet-alert showSweetAlert visible']\")).click();\r\n\t\tbcm.highLightElement(driver.findElement(By.xpath(\"//div[@class='sweet-alert showSweetAlert visible']\")), driver);\r\n\t\t\r\n\t\t//driver.switchTo().equals(driver.findElement(By.xpath(\"//div[@class='container']//div[@id='addModify']//following::div[@id='onTripVehicleStoppageDetails']\")));\r\n\t\tdriver.findElement(By.xpath(\"//div[@class='container']//div[@id='addModify']//following::div[@id='onTripVehicleStoppageDetails']\")).click();\r\n\t\t\r\n\t\t//bcm.highLightElement(driver.findElement(By.xpath(\"//p[text()='Enroute Placement']\")), driver);\r\n\t\t\r\n\t\tbcm.highLightElement(driver.findElement(By.xpath(\"//div[@id='onTripVehicleStoppageDetails']\")), driver);\r\n\t\tdriver.findElement(By.xpath(\"//div[@id='onTripVehicleStoppageDetails']//button\")).click();\r\n\t/*\tdriver.navigate().equals(driver.findElement(By.xpath(\"//div[@id='onTripVehicleStoppageDetails']\")));\r\n\t\tif (driver.findElement(By.xpath(\"//div[@id='onTripVehicleStoppageDetails']\")).isDisplayed()){\r\n\t\t\t*/\r\n\t\t\tbcm.highLightElement(driver.findElement(By.xpath(\"//div[@id='onTripVehicleStoppageDetails']\")), driver);\r\n\t\t\tbcm.closePopup(); \r\n\t\t\tdriver.manage().timeouts().pageLoadTimeout(5000, TimeUnit.MILLISECONDS);\r\n\t/*\t}\r\n\t\t*/\r\n\t\t\r\n\t\tVerifyHomePage vhp = new VerifyHomePage();\r\n\t\tvhp.verifyHomePageHeaders();\r\n\t}", "public BasePage(WebDriver driver)\n\t{\n\t\tpageDriver= driver;\n\t\tPageFactory.initElements(new AjaxElementLocatorFactory(driver, 25), this);\n\t}", "public Page(WebDriver webDriver) {\n this.webDriver = webDriver;\n\t}", "public static void LogIn(WebDriver driver) throws Exception{\n\t\t//clickOnElement(driver, LoginPageOR.submit);\n\t\thighlight(LoginPageOR.userName, driver);\n\t\tinputText(LoginPageOR.userName, ConfigReader.getValue(\"Username\"));//it will enter username on the Login Page\n\t\thighlight(LoginPageOR.password, driver);\n\t\tinputText(LoginPageOR.password, ConfigReader.getValue(\"Password\"));//it will enter password on the Login Page\n\t\tclickOnElement(driver, LoginPageOR.login);//it will click Submit button on the Login Page\n\t\tint size=mutilpleOccurenceOfElement(driver, LoginPageOR.DontShowButton).size();\n\t\texecutionDelay(3000);\n\t\tif(size!=0)\n\t\t{\n\t\t\thighlight(LoginPageOR.dontShowButton, driver);\n\t\t\tclickOnElement(driver, LoginPageOR.dontShowButton);\n\t\t}\n\t\t//expliciiWaitWithInvisibleElement(driver, LoginPageOR.HomePageLoader);//it will wait for the 'Loading Topologies..' loader to disappear\n\t\n\t}", "public ExcursionPage( WebDriver driver ) {\r\n\t\r\n\t\tsuper( driver );\r\n\t}", "public HomePage (WebDriver driver1)\r\n\t\t\t{\r\n\t\t\t\tPageFactory.initElements(driver1, this);\r\n\t\t\t}", "@BeforeMethod\n public void loadLoginPage(){\n driver.get(\"http://ec2-52-53-181-39.us-west-1.compute.amazonaws.com/\");\n Loginpage page = new Loginpage(driver);\n page.createAccount();\n }", "public BasePage(WebDriver pDriver) {\n PageFactory.initElements(pDriver, this);\n pDriver.manage().window().maximize();\n this.eventDriver = new EventFiringWebDriver(pDriver);\n this.eventHandler = new EventHandler();\n this.eventDriver.register(eventHandler);\n //driver = pDriver;\n }", "static void logIn (WebDriver driver) {\n driver.findElement(By.xpath(\"//a[@id=\\\"sign-in\\\"]\")).click();\n driver.findElement(By.xpath(\"//input[@id=\\\"session_email\\\"]\")).\n sendKeys(\"almost145@yandex.ru\");\n driver.findElement(By.xpath(\"//input[@id=\\\"session_password\\\"]\")).\n sendKeys(\"qwerty\");\n driver.findElement(By.cssSelector(\"input[value=\\\"Sign in\\\"]\")).click();\n }", "public Page(WebDriver driver) {\r\n\t\tthis.driver = driver;\r\n\t}", "protected void construct()\n\t{\n\t\tassert(driver != null);\n\t\t// V�rification que l'on est bien sur la bonne page\n\t String sTitle = driver.getTitle();\n\t\tif(!sTitle.equals(TITLE)) {\n throw new IllegalStateException(\"This is not Login Page, current page is: \" +driver.getCurrentUrl());\n\t\t}\t\t\n\t\ttbUserName = driver.findElement(ByUserName);\n\t\ttbPassword = driver.findElement(ByPassword);\n\t\tbtnConnect = driver.findElement(ByConnect);\n\t}", "public RegistrationRutPage(WebDriver driver) {\n super(driver);\n PageFactory.initElements(driver, this);\n }", "@Test\n public void Login() {\n\t FBHomepageFactory f1 = PageFactory.initElements(driver, FBHomepageFactory.class); //.class is used as it gives the byte code of that class\n\t \n\t f1.Loginmethod();\n }", "public void login(WebDriver driver, Result result, LoginInfo loginInfo) {\n\t\tdriver.get(loginInfo.getUrl());\n\t\tArrayList<PageOperationInfo> poiList = loginInfo.getPoiList();\n\t\tnew PageOperationServiceImpl().process(driver, result, poiList);\n\t}", "@Test\t\t\n\t public void Login() \t\t\t\t\t\n\t {\t\t\n\t \tsetUpDriver(\"chrome\", \"http://demo.guru99.com/V4/\");\t\t\t\n\t \t\t\n\t //Creating the JavascriptExecutor interface object by Type casting\t\t\n\t JavascriptExecutor js = (JavascriptExecutor)driver;\t\t\n\t \t\t\n\t //Launching the Site.\t\t\n\t //driver.get(\"http://demo.guru99.com/V4/\");\t\t\t\n\t \t\t\n\t WebElement button =driver.findElement(By.name(\"btnLogin\"));\t\t\t\n\t \t\t\n\t //Login to Guru99 \t\t\n\t driver.findElement(By.name(\"uid\")).sendKeys(\"mngr34926\");\t\t\t\t\t\n\t driver.findElement(By.name(\"password\")).sendKeys(\"amUpenu\");\t\t\t\t\t\n\t \t\t\n\t //Perform Click on LOGIN button using JavascriptExecutor\t\t\n\t js.executeScript(\"arguments[0].click();\", button);\n\t \n\t //To generate Alert window using JavascriptExecutor. Display the alert message \t\t\t\n\t js.executeScript(\"alert('Welcome to Guru99');\"); \n\t \t\t\n\t }", "public PageObject(WebDriver driver) {\n this.driver = driver;\n PageFactory.initElements(driver, this);\n }", "public LandingPage(WebDriver driver) throws IOException {\n\n\t\tthis.driver = driver;\n\t\tPageFactory.initElements(driver, this);\n\t\tjs = (JavascriptExecutor) driver;\n\t\t\t\n\t}", "public void testRun() throws Exception {\r\n SeleniumTestBase mySeleniumTestBase = new SeleniumTestBase(selenium);\r\n mySeleniumTestBase.loginToUI(\"admin\", \"admin\");\r\n }", "public VerifyPhonePage(WebDriver driver)\n\t{\n\t\tsuper(driver);\n\t\tthis.driver= driver;\n\t\tsoftAssert = new SoftAssert();\n\t\tPageFactory.initElements(new AppiumFieldDecorator(this.driver, Duration.ofSeconds(30)),this); \n\t}", "public Page(WebDriver driver) {\n this.driver = driver;\n }", "public Page(WebDriver webDriver) {\n\t\tthis.webDriver = webDriver;\n wait = new WebDriverWait(webDriver, 10);\n\t}", "protected void login() {\n\t\tdriver.get(getProperty(\"baseUrl\"));\n\n\t\t// 2. Enter valid credentials in the Username and Password fields.\n\t\tLoginPageObjects.usernameTextField(driver).sendKeys(getProperty(\"validUsername\"));\n\t\tLoginPageObjects.passwordTextField(driver).sendKeys(getProperty(\"validPassword\"));\n\n\t\t// 3. Click on the Login button\n\t\tLoginPageObjects.loginButton(driver).click();\n\t\t// waiting.waitForLoad(driver);\n\t}", "@Test\r\n\tpublic void Test1(WebDriver driver)\r\n\t{\n\t\thomemobj.signIn(driver, tobj.UN, tobj.PSWD);\r\n\t\tSystem.out.println(\"First test case is executed\");\r\n\t\t//driver.navigate().back();\r\n\t\t//Thread.sleep(1000);\r\n\t}", "public LandingPage(WebDriver driver) {\r\n\t\tthis.driver = driver;\r\n\t\tPageFactory.initElements(driver, this);\r\n\t}", "@Test(priority=1)\r\n\tpublic void loginApp()\r\n\t{\r\n\t\t\r\n\t\tlogger=report.createTest(\"Login To Pymidol\");\r\n\t\r\n\t\tLoginPage loginPage=PageFactory.initElements(driver, LoginPage.class); //it will goto login page check all the locators initialise then it will return object of same class\r\n\t\t\r\n\t\tlogger.info(\"Starting Application\"); //it will provide information about test or test step\r\n\t\t\r\n\t\tloginPage.loginToPymidol(excel.getStringData(\"Login\", 0, 0), excel.getStringData(\"Login\", 0, 1));\r\n\t\t\r\n\t\tlogger.pass(\"Login done Success\");\r\n\t\r\n\t}", "public Page_Home doDefaultLogin() {\n\t\tLogStatus.info(\"Logging in with username :: \\'\" + TestUtils.getValue(\"username\") + \"\\' and password :: \\'\"\n\t\t\t\t+ TestUtils.getValue(\"password\") + \"\\'\");\n\t\tDriverManager.getDriver().findElement(By.name(\"username\")).sendKeys(TestUtils.getValue(\"username\"));\n\t\tDriverManager.getDriver().findElement(By.name(\"password\")).sendKeys(TestUtils.getValue(\"password\"));\n\t\tDriverManager.getDriver().findElement(By.id(\"Registration Desk\")).click();\n\t\tDriverManager.getDriver().findElement(By.id(\"loginButton\")).click();\n\n\t\treturn new Page_Home();\n\n\t}", "public HomePage(WebDriver driver) {\n\t\tthis.driver = driver;\n\t\tPageFactory.initElements(driver, this); //now all Page Factory elements will have access to the driver, \n\t\t\t\t\t\t\t\t\t\t\t\t//which is need to get a hold of all the elements. w/o it, tests will fail. \n\t\t\t\t\t\t\t\t\t\t\t\t//\"this\" is referring to the Class HomePage\n\t}", "public ProfilePage(WebDriver driver) {\n super(driver);\n PageFactory.initElements(driver, this);\n }", "public static void tryLoginI(){\n\n System.setProperty(\"webdriver.chrome.driver\",\"resources/chromedriver.exe\");\n WebDriver driver = new ChromeDriver();\n\n\n driver.get(\"https://fasttrackit.org/selenium-test/\");\n driver.findElement(By.cssSelector(\".account-cart-wrapper > a\")).click();\n driver.findElement(By.cssSelector(\"a[title=\\\"Log In\\\"]\")).click();\n driver.findElement(By.cssSelector(\"input[title=\\\"Email Address\\\"]\")).sendKeys(\"test@exemple.com\");\n driver.findElement(By.cssSelector(\"#pass\")).sendKeys(\"test\");\n driver.findElement(By.cssSelector(\"#send2\")).click();\n driver.close();\n\n\n\n\n\n }", "@Test(priority = 1, dataProvider =\"inputData\")\r\n\t\tpublic void Login(String url,String Mob,String Pass ) throws InterruptedException \r\n\t\t\t{\r\n\t\t\tobjBaseClass.LocalBrowserInit(url);\r\n\t\t\t\tobjLoginPageView.Login(Mob,Pass);\r\n\t\t\t\tobjLoginPageView.YesPopup();\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t}", "public AmazonHomePage(WebDriver driver) {\n\t\tsuper(driver);\n\t}", "public HomePage(WebDriver driver) {\n\t\tthis.driver= driver;\n\t\t\n\t\t//Initializing the webelements for this class\n\t\tPageFactory.initElements(driver, this);\n\t\t\n\t}", "public SearchPageObject(WebDriver driver) {\n this.driver = driver;\n }", "public FlightConfirmationPage(WebDriver driver) {\n this.driver = driver;\n }", "public void logInSSO(WebDriver driver, String baseUrl){\n\t\t//get ther form\n\t\tWebElement form = driver.findElement(By.name(pblinkProperties.getSso_loginform_name()));\n\t\tList<WebElement> elements = driver.findElements(By.tagName(\"button\"));\n\t\tfor (WebElement element : elements) {\n\t\t if (element.getAttribute(\"type\").equals(\"button\")) {\n\t\t\t \telement.click();\n\t\t\t \tform.findElement(By.linkText(\"Standard\")).click();\n\t\t }\n\t\t}\n\t\tform.findElement(By.name(pblinkProperties.getSso_user_field_name())).sendKeys(pblinkProperties.getSso_user_value());\n\t\tform.findElement(By.name(pblinkProperties.getSso_field_password_name())).sendKeys(pblinkProperties.getSso_pwd_value());\n\t\tform.findElement(By.name(pblinkProperties.getSso_btn_login_name())).click();\n\t\tif(driver instanceof FirefoxDriver){\n\t\t\t//accept security pop up\n\t\t\tAlert alert = driver.switchTo().alert();\n\t\t\talert.accept();\n\t\t}\n\t\t//switch to cat id redirected to neolink by sso\n\t\tdriver.get(baseUrl);\t\n\t}", "public PaymentPage(WebDriver driver) {\n\t\tsuper(driver);\n\t}", "public PageBase click_on_login_submit_form_button () {\r\n HomePageClass homePage = new HomePageClass(driver);\r\n\r\n LGN_Login_submitBTN.click();\r\n\r\n WebDriverWait wait = getWait();\r\n wait.until(ExpectedConditions.visibilityOf(homePage.logout));\r\n\r\n return homePage;\r\n\r\n }", "public HomePage(WebDriver driver) throws SeleniumException {\r\n\t\tsuper(driver);\r\n\t\tAppLogs.info(\"HomePage() starts..\");\r\n\t\tthis.driver = driver;\r\n\t\tPageFactory.initElements(driver, this);\r\n\t\t// Check that we're on the right page.\r\n\t\tif (!driver.getTitle().contains(\"Rediff\")) {\r\n\t\t\tthrow new SeleniumException(\"This is not the Home page\");\r\n\t\t}\r\n\t\tAppLogs.info(\"HomePage() ends..\");\r\n\t}", "public void navigateToLoginPage() {\r\n\t\tBrowser.open(PhpTravelsGlobal.PHP_TRAVELS_LOGIN_URL);\r\n\t}", "@Test (priority = 5)\n\tpublic void loginTest2() throws InterruptedException {\n\t\tHomePage home = new HomePage(this.driver);\n\t\tAssert.assertTrue(home.myAccountElementIsDisplayed());\n\t\thome.navigateToMyAccount();\n\t\tAssert.assertTrue(home.dropBoxMyAccountIsDisplayed());\n\t\tLoginPage login = new LoginPage(this.driver);\n\t\tlogin = home.navigateToLogin();\n\t\tAssert.assertTrue(login.loginPageIsOpen());\n\t\tThread.sleep(2000);\n\t\tlogin.clearField();\n\t\tThread.sleep(2000);\n\t\tlogin.navigateToEmailField(\"asasas\");\n\t\tThread.sleep(2000);\n\t\tlogin.navigateToPasswordField(\"\");\n\t\tThread.sleep(2000);\n\t\tlogin.navigateToLoginBtn();\n\t\tThread.sleep(2000);\n\t\tAssert.assertTrue(login.errorDisplayed());\n\t\thome.navigateToReturnHomePage();\n\t}", "public BrowserActions(WebDriver driver){\r\n\t\tthis.driver=driver;\r\n\t}", "public PageBase login(String user,String pass){\n\t\tEnterBugClass enterBug = new EnterBugClass(driver);\n\t\tusername.sendKeys(user);\n\t\tpassword.sendKeys(pass);\n\t\tloginButotn.click();\n\t\tWebDriverWait wait = getWait();\n\t\twait.until(ExpectedConditions.elementToBeClickable(enterBug.testnglink));\n\t\treturn enterBug;\n\t}", "public LoginPageLiveGuruObject openLoginPageLiveGuru(WebDriver driver) {\r\n\t\tscrollToElement(driver, BasePageLiveGuruUIs.MY_ACCOUNT_FOOTER);\r\n\t\twaitForElementClickable(driver, BasePageLiveGuruUIs.MY_ACCOUNT_FOOTER);\r\n\t\tclick(driver, BasePageLiveGuruUIs.MY_ACCOUNT_FOOTER);\r\n\t\treturn PageObjectLiveGuruGeneratorManager.getLoginPage(driver);\r\n\t}", "public static void navigateAdminLoginPage() {\n Browser.driver.get(\"http://shop.pragmatic.bg/admin\");\n }", "public IntentPizzaAccountPageObject(WebDriver driver){\n\t\t\tPageFactory.initElements(driver, this);\n\t}", "public TeacherPage(WebDriver driver) {\n super(driver);\n }", "public AddUser(WebDriver driver) \n\t{\n\t\t//assigning driver to the driver variable in this class\n\t\tthis.driver=driver;\n\t}", "@Test (description = \"entering incorrect username\")\n public void negative_login_test1() {\n\n Driver.getDriver().get(ConfigurationReader.getProperty(\"smartbearUrl\"));\n\n//Lets start using PageObjectModel\n\n //#1 We need to create the object of class we want to use\n //instantiate here\n loginPage = new LoginPage();\n\n//#2 call the object to use the web elements\n //entering incorrect username\n loginPage.userNameInput.sendKeys(\"aaa\");\n\n //enter correct password\n String smartbear_password = ConfigurationReader.getProperty(\"smartbear_password\");\n loginPage.passwordInput.sendKeys(smartbear_password);\n\n loginPage.loginButton.click();\n loginPage.errorMessage.isDisplayed();\n\n //assert true that error message is displayed on the page\n Assert.assertTrue(loginPage.errorMessage.isDisplayed(), \"Error message is not displayed, Verification is FAILED!!!\");\n BrowserUtil.wait(3);\n\n }", "private static WebDriver launchDriver(WebDriver driver)\n\t{\n\t\tswitch (getBrowserType())\n\t\t{\n\t\t\tcase InternetExplorer:\n\t\t\t{\n\t\t\t\tdriver = launchInternetExplorer();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase Chrome:\n\t\t\t{\n\t\t\t\tdriver = launchChrome();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tdefault:\n\t\t\t{\n\t\t\t\tdriver = launchFirefox();\n\t\t\t\tbreak;\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tdriver.manage().timeouts().implicitlyWait(getImplicitWaitTime(), TimeUnit.SECONDS);\n\t\twaitPageLoad = new WebDriverWait(driver, getPageLoadWaitTime());\n\t\twaitAjaxLoad = new WebDriverWait(driver, getAjaxLoadWaitTime());\n\t\tjavaScriptExecutor = (JavascriptExecutor) driver;\n\t\t\n\t\treturn driver;\n\t}", "protected void init(WebDriver driver) {\n }", "@Test(priority = 2)\n public void login(){\n\n// driver.findElement(By.id(UsernameBox)).sendKeys(ConfigrationReader.getProperty(\"storeManagerUsername\"));\n// driver.findElement(By.id(PasswordBox)).sendKeys(ConfigrationReader.getProperty(\"password\"),Keys.ENTER);\n\n Loginpage log = new Loginpage();\n log.userName.sendKeys(ConfigrationReader.getProperty(\"storeManagerUsername\"));\n log.userPassword.sendKeys(ConfigrationReader.getProperty(\"password\"),Keys.ENTER);\n driver.manage().timeouts().implicitlyWait(Long.valueOf(ConfigrationReader.getProperty(\"implictwait\")),TimeUnit.SECONDS);\n// sleep(2);\n String expectedResult = \"Dashboard\";\n String actualResult = driver.getTitle();\n Assert.assertEquals(expectedResult,actualResult);\n\n }", "@Test\n\tpublic void webpageTesting() throws Exception{\n\t\t\n DemoSitePortal homePage = PageFactory.initElements(driver, DemoSitePortal.class);\n homePage.navUserPage();\n homePage.addUserPage.createUser(\"user\", \"user\");\n homePage.navLoginPage();\n homePage.addLoginPage.loginUser(\"user\", \"user\");\n\t\t\n//\t\ttarget = driver.findElement(By.xpath(\"/html/body/div/center/table/tbody/tr[2]/td/div/center/table/tbody/tr/td[2]/p/small/a[3]\"));\n//\t\ttarget.click();\n\t\t\n//\t\tuser = driver.findElement(By.name(\"username\"));\n//\t\tuser.sendKeys(\"guest\");\n//\t\t\n//\t\tpass = driver.findElement(By.name(\"password\"));\n//\t\tpass.sendKeys(\"guest\");\n//\t\t\n//\t\ttarget = driver.findElement(By.name(\"FormsButton2\"));\n//\t\ttarget.click();\n//\t\t\n//\t\ttarget = driver.findElement(By.xpath(\"/html/body/div/center/table/tbody/tr[2]/td/div/center/table/tbody/tr/td[2]/p/small/a[4]\"));\n//\t\ttarget.click();\n//\t\t\n//\t\tuser = driver.findElement(By.name(\"username\"));\n//\t\tuser.sendKeys(\"guest\");\n//\t\t\n//\t\tpass = driver.findElement(By.name(\"password\"));\n//\t\tpass.sendKeys(\"guest\");\n//\t\t\n//\t\ttarget = driver.findElement(By.name(\"FormsButton2\"));\n//\t\ttarget.click();\n\t\t\n\t\t\n\t\t\n\t\tString result = driver.getTitle();\n\t\tassertEquals(\"Login example page to test the PHP MySQL online system\",result);\n\t\t\n\n\t}", "@Given(\"Login Functionality\")\n public void Login_Functionality() {\n String url = ConfigurationReader.get(\"url\");\n Driver.get().get(url);\n //login with valid credentials\n loginPage.login();\n }" ]
[ "0.8158251", "0.8122732", "0.8087714", "0.80013096", "0.7986625", "0.78919566", "0.7811322", "0.7719459", "0.75834805", "0.7434018", "0.7385264", "0.7340328", "0.73264605", "0.732095", "0.73185414", "0.7311431", "0.7245893", "0.7230845", "0.72015095", "0.719726", "0.7124378", "0.70963997", "0.70850545", "0.7069499", "0.70528847", "0.70329046", "0.7007142", "0.698734", "0.69869107", "0.6969176", "0.6949583", "0.6917763", "0.6917763", "0.69000584", "0.68522334", "0.6846631", "0.6842037", "0.6819272", "0.6809493", "0.680826", "0.6791479", "0.67297506", "0.66750264", "0.6660215", "0.6636195", "0.662553", "0.6604387", "0.66041446", "0.6603295", "0.6598299", "0.65980244", "0.65949845", "0.6589396", "0.6587789", "0.65699536", "0.65690124", "0.6528627", "0.6502338", "0.64973766", "0.6489979", "0.6483953", "0.6483361", "0.6481703", "0.64706725", "0.64671534", "0.64614177", "0.6460881", "0.6456944", "0.64524245", "0.64457643", "0.64387566", "0.64317244", "0.64288473", "0.6428752", "0.6421445", "0.641028", "0.6406172", "0.63992345", "0.639229", "0.6391968", "0.63787055", "0.6355275", "0.63430434", "0.63342524", "0.630962", "0.630258", "0.62943125", "0.6293977", "0.6293689", "0.6291426", "0.62775934", "0.62753403", "0.6255264", "0.6244932", "0.6244925", "0.62415826", "0.62384677", "0.6236644", "0.6232215", "0.622846", "0.62029845" ]
0.0
-1
Processes requests for both HTTP GET and POST methods.
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); try (PrintWriter out = response.getWriter()) { /* TODO output your page here. You may use following sample code. */ out.println("<!DOCTYPE html>"); out.println("<html>"); out.println("<head>"); out.println("<title>Servlet EmployeeSkillsController</title>"); out.println("</head>"); out.println("<body>"); out.println("<h1>Servlet EmployeeSkillsController at " + request.getContextPath() + "</h1>"); out.println("</body>"); out.println("</html>"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_ALLOWED);\n }\n }", "private void processRequest(HttpServletRequest request, HttpServletResponse response) {\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // only POST should be used\n doPost(request, response);\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\nSystem.err.println(\"=====================>>>>>123\");\n\t\tString key=req.getParameter(\"method\");\n\t\tswitch (key) {\n\t\tcase \"1\":\n\t\t\tgetProvinces(req,resp);\n\t\t\tbreak;\n\t\tcase \"2\":\n\t\t\tgetCities(req,resp);\t\t\t\n\t\t\tbreak;\n\t\tcase \"3\":\n\t\t\tgetAreas(req,resp);\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\n\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t\tdoGet(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n processRequest(request, response);\n }", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t\t\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }" ]
[ "0.7004024", "0.66585696", "0.66031146", "0.6510023", "0.6447109", "0.64421695", "0.64405906", "0.64321136", "0.6428049", "0.6424289", "0.6424289", "0.6419742", "0.6419742", "0.6419742", "0.6418235", "0.64143145", "0.64143145", "0.6400266", "0.63939095", "0.63939095", "0.639271", "0.63919044", "0.63919044", "0.63903785", "0.63903785", "0.63903785", "0.63903785", "0.63887113", "0.63887113", "0.6380285", "0.63783026", "0.63781637", "0.637677", "0.63761306", "0.6370491", "0.63626", "0.63626", "0.63614637", "0.6355308", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896" ]
0.0
-1
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doPost(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "@Override\r\n\tprotected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\r\n\t}", "void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metGet(request, response);\n }", "public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"GET log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) return;\r\n\tif (\"get-response\".equals( requestId )) {\r\n\t try {\r\n\t\tonMEVPollsForResponse( req, resp );\r\n\t } catch (Exception e) {\r\n\t\tlogError( req, resp, e, \"MEV polling error\" );\r\n\t\tsendError( resp, \"MEV polling error: \" + e.toString() );\r\n\t }\r\n\t}\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n \r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t\t\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}", "public void doGet() throws IOException {\n\n // search ressource\n byte[] contentByte = null;\n try {\n contentByte = ToolBox.readFileByte(RESOURCE_DIRECTORY, this.url);\n this.statusCode = OK;\n ContentType contentType = new ContentType(this.extension);\n sendHeader(statusCode, contentType.getContentType(), contentByte.length);\n } catch (IOException e) {\n System.out.println(\"Ressource non trouvé\");\n statusCode = NOT_FOUND;\n contentByte = ToolBox.readFileByte(RESPONSE_PAGE_DIRECTORY, \"pageNotFound.html\");\n sendHeader(statusCode, \"text/html\", contentByte.length);\n }\n\n this.sendBodyByte(contentByte);\n }", "public HttpResponseWrapper invokeGET(String path) {\n\t\treturn invokeHttpMethod(HttpMethodType.HTTP_GET, path, \"\");\n\t}", "@Override\n\tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t}", "public Result get(Get get) throws IOException;", "@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response) {\n System.out.println(\"[Servlet] GET request \" + request.getRequestURI());\n\n response.setContentType(FrontEndServiceDriver.APP_TYPE);\n response.setStatus(HttpURLConnection.HTTP_BAD_REQUEST);\n\n try {\n String url = FrontEndServiceDriver.primaryEventService +\n request.getRequestURI().replaceFirst(\"/events\", \"\");\n HttpURLConnection connection = doGetRequest(url);\n\n if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) {\n PrintWriter pw = response.getWriter();\n JsonObject responseBody = (JsonObject) parseResponse(connection);\n\n response.setStatus(HttpURLConnection.HTTP_OK);\n pw.println(responseBody.toString());\n }\n }\n catch (Exception ignored) {}\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tSystem.out.println(\"get\");\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \tSystem.out.println(\"---here--get--\");\n processRequest(request, response);\n }", "@Override\n public final void doGet() {\n try {\n checkPermissions(getRequest());\n // GET one\n if (id != null) {\n output(api.runGet(id, getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER)));\n } else if (countParameters() == 0) {\n throw new APIMissingIdException(getRequestURL());\n }\n // Search\n else {\n\n final ItemSearchResult<?> result = api.runSearch(Integer.parseInt(getParameter(PARAMETER_PAGE, \"0\")),\n Integer.parseInt(getParameter(PARAMETER_LIMIT, \"10\")), getParameter(PARAMETER_SEARCH),\n getParameter(PARAMETER_ORDER), parseFilters(getParameterAsList(PARAMETER_FILTER)),\n getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER));\n\n head(\"Content-Range\", result.getPage() + \"-\" + result.getLength() + \"/\" + result.getTotal());\n\n output(result.getResults());\n }\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n }\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tthis.service(req, resp);\r\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t}", "@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n public void get(@PathVariable(\"id\") String id, HttpServletRequest req){\n throw new NotImplementedException(\"To be implemented\");\n }", "@Override\npublic void get(String url) {\n\t\n}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString action = req.getParameter(\"action\");\r\n\t\t\r\n\t\tif(action == null) {\r\n\t\t\taction = \"List\";\r\n\t\t}\r\n\t\t\r\n\t\tswitch(action) {\r\n\t\t\tcase \"List\":\r\n\t\t\t\tlistUser(req, resp);\r\n\t\t\t\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\tlistUser(req, resp);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest request, \n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tSystem.out.println(\"Routed to doGet\");\n\t}", "@NonNull\n public String getAction() {\n return \"GET\";\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "@Override\r\nprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t process(req,resp);\r\n\t }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\n\tpublic HttpResponse get(final String endpoint) {\n\t\treturn httpRequest(HTTP_GET, endpoint, null);\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste doget\");\r\n }", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/plain\");\n // Actual logic goes here.\n PrintWriter out = response.getWriter();\n out.println(\"Wolken,5534-0848-5100,0299-6830-9164\");\n\ttry \n\t{\n Get g = new Get(Bytes.toBytes(request.getParameter(\"userid\")));\n Result r = table.get(g);\n byte [] value = r.getValue(Bytes.toBytes(\"v\"),\n Bytes.toBytes(\"\"));\n\t\tString valueStr = Bytes.toString(value);\n\t\tout.println(valueStr);\n\t}\n\tcatch (Exception e)\n\t{\n\t\tout.println(e);\n\t}\n }", "@Override\r\n public void doGet(String path, HttpServletRequest request, HttpServletResponse response)\r\n throws Exception {\r\n // throw new UnsupportedOperationException();\r\n System.out.println(\"Inside the get\");\r\n response.setContentType(\"text/xml\");\r\n response.setCharacterEncoding(\"utf-8\");\r\n final Writer w = response.getWriter();\r\n w.write(\"inside the get\");\r\n w.close();\r\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n System.out.println(\"Console: doGET visited\");\n String result = \"\";\n //get the user choice from the client\n String choice = (request.getPathInfo()).substring(1);\n response.setContentType(\"text/plain;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n //methods call appropriate to user calls\n if (Integer.valueOf(choice) == 3) {\n result = theBlockChain.toString();\n if (result != null) {\n out.println(result);\n response.setStatus(200);\n //set status if result output is not generated\n } else {\n response.setStatus(401);\n return;\n }\n }\n //verify chain method\n if (Integer.valueOf(choice) == 2) {\n response.setStatus(200);\n boolean validity = theBlockChain.isChainValid();\n out.print(\"verifying:\\nchain verification: \");\n out.println(validity);\n }\n }", "@Override\n public DataObjectResponse<T> handleGET(DataObjectRequest<T> request)\n {\n if(getRequestValidator() != null) getRequestValidator().validateGET(request);\n\n DefaultDataObjectResponse<T> response = new DefaultDataObjectResponse<>();\n try\n {\n VisibilityFilter<T, DataObjectRequest<T>> visibilityFilter = visibilityFilterMap.get(VisibilityMethod.GET);\n List<Query> queryList = new LinkedList<>();\n if(request.getQueries() != null)\n queryList.addAll(request.getQueries());\n\n if(request.getId() != null)\n {\n // if the id is specified\n queryList.add(new ById(request.getId()));\n }\n\n DataObjectFeed<T> feed = objectPersister.retrieve(queryList);\n if(feed == null)\n feed = new DataObjectFeed<>();\n List<T> filteredObjects = visibilityFilter.filterByVisible(request, feed.getAll());\n response.setCount(feed.getCount());\n response.addAll(filteredObjects);\n }\n catch(PersistenceException e)\n {\n ObjectNotFoundException objectNotFoundException = new ObjectNotFoundException(String.format(OBJECT_NOT_FOUND_EXCEPTION, request.getId()), e);\n response.setErrorResponse(ErrorResponseFactory.objectNotFound(objectNotFoundException, request.getCID()));\n }\n return response;\n }", "public void handleGet( HttpExchange exchange ) throws IOException {\n switch( exchange.getRequestURI().toString().replace(\"%20\", \" \") ) {\n case \"/\":\n print(\"sending /MainPage.html\");\n sendResponse( exchange, FU.readFromFile( getReqDir( exchange )), 200);\n break;\n case \"/lif\":\n // send log in page ( main page )\n sendResponse ( exchange, FU.readFromFile(getReqDir(exchange)), 200);\n //\n break;\n case \"/home.html\":\n\n break;\n case \"/book.html\":\n\n break;\n default:\n //checks if user is logged in\n\n //if not send log in page\n //if user is logged in then\n print(\"Sending\");\n String directory = getReqDir( exchange ); // dont need to do the / replace as no space\n File page = new File( getReqDir( exchange) );\n\n // IMPLEMENT DIFFERENT RESPONSE CODE FOR HERE IF EXISTS IS FALSE OR CAN READ IS FALSE\n sendResponse(exchange, FU.readFromFile(directory), 200);\n break;\n }\n }", "public int handleGET(String requestURL) throws ClientProtocolException, IOException{\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\thttpGet = new HttpGet(requestURL);\t\t\r\n\t\t\t\t\t\t\r\n\t\tinputsource=null;\r\n\t\t\t\r\n\t\toutputString=\"\";\r\n\t\t\r\n\t\t//taking response by executing http GET object\r\n\t\tCloseableHttpResponse response = httpclient.execute(httpGet);\t\t\r\n\t\r\n\t\t/* \r\n\t\t * \tThe underlying HTTP connection is still held by the response object\r\n\t\t\tto allow the response content to be streamed directly from the network socket.\r\n\t\t\tIn order to ensure correct deallocation of system resources\r\n\t\t\tthe user MUST call CloseableHttpResponse.close() from a finally clause.\r\n\t\t\tPlease note that if response content is not fully consumed the underlying\r\n\t\t\tconnection cannot be safely re-used and will be shut down and discarded\r\n\t\t\tby the connection manager.\r\n\t\t */\r\n\t\t\r\n\t\t\tstatusLine= response.getStatusLine().toString();\t\t//status line\r\n\t\t\t\r\n\t\t\tHttpEntity entity1 = response.getEntity();\t\t\t\t//getting response entity from server response \t\r\n\t\t\t\t\t\r\n\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(entity1.getContent()));\r\n\r\n\t\t\tString line;\r\n\t\t\twhile((line=br.readLine())!=null)\r\n\t\t\t{\r\n\t\t\t\toutputString=outputString+line.toString();\r\n\t }\r\n\t\t\t\r\n\t\t\t//removing spaces around server response string.\r\n\t\t\toutputString.trim();\t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t//converting server response string into InputSource.\r\n\t\t\tinputsource = new InputSource(new StringReader(outputString));\t\r\n\t\t\t\r\n\t\t\t// and ensure it is fully consumed\r\n\t\t\tEntityUtils.consume(entity1);\t\t\t//consuming entity.\r\n\t\t\tresponse.close();\t\t\t\t\t\t//closing response.\r\n\t\t\tbr.close();\t\t\t\t\t\t\t\t//closing buffered reader\r\n\t\t\t\r\n\t\t\t//returning response code\r\n\t\t\treturn response.getStatusLine().getStatusCode();\r\n\t\r\n\t}", "@Override\n\tprotected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t logger.error(\"BISHUNNN CALLED\");\n\t\tString category = request.getParameter(\"category\").trim();\n\t\tGetHttpCall getHttpCall = new GetHttpCall();\n\t\turl = APIConstants.baseURL+category.toLowerCase();\n\t\tresponseString = getHttpCall.execute(url);\n\t\tresponse.getWriter().write(responseString);\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n //processRequest(request, response);\r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tPrintWriter out = resp.getWriter();\n\t\tout.print(\"<h1>Hello from your doGet method!</h1>\");\n\t}", "public void doGet(HttpServletRequest request,\n HttpServletResponse response)\n throws IOException, ServletException {\n response.setContentType(TYPE_TEXT_HTML.label);\n response.setCharacterEncoding(UTF8.label);\n request.setCharacterEncoding(UTF8.label);\n String path = request.getRequestURI();\n logger.debug(RECEIVED_REQUEST + path);\n Command command = null;\n try {\n command = commands.get(path);\n command.execute(request, response);\n } catch (NullPointerException e) {\n logger.error(REQUEST_PATH_NOT_FOUND);\n request.setAttribute(JAVAX_SERVLET_ERROR_STATUS_CODE, 404);\n command = commands.get(EXCEPTION.label);\n command.execute(request, response);\n }\n }", "public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString search = req.getParameter(\"searchBook\");\n\t\tString output=search;\n\n\t\t//redirect output to view search.jsp\n\t\treq.setAttribute(\"output\", output);\n\t\tresp.setContentType(\"text/json\");\n\t\tRequestDispatcher view = req.getRequestDispatcher(\"search.jsp\");\n\t\tview.forward(req, resp);\n\t\t\t\n\t}", "public void doGet( HttpServletRequest request, HttpServletResponse response )\n throws ServletException, IOException\n {\n handleRequest( request, response, false );\n }", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response handleGet() {\n Gson gson = GSONFactory.getInstance();\n List allEmployees = getAllEmployees();\n\n if (allEmployees == null) {\n allEmployees = new ArrayList();\n }\n\n Response response = Response.ok().entity(gson.toJson(allEmployees)).build();\n return response;\n }", "@Override\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows IOException, ServletException {\n\t\tsuper.doGet(request, response);\t\t\t\n\t}", "private static String sendGET(String getURL) throws IOException {\n\t\tURL obj = new URL(getURL);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\t\tcon.setRequestMethod(\"GET\");\n\t\tString finalResponse = \"\";\n\n\t\t//This way we know if the request was processed successfully or there was any HTTP error message thrown.\n\t\tint responseCode = con.getResponseCode();\n\t\tSystem.out.println(\"GET Response Code : \" + responseCode);\n\t\tif (responseCode == HttpURLConnection.HTTP_OK) { // success\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\t\t\tString inputLine;\n\t\t\tStringBuffer buffer = new StringBuffer();\n\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tbuffer.append(inputLine);\n\t\t\t}\n\t\t\tin.close();\n\n\t\t\t// print result\n\t\t\tfinalResponse = buffer.toString();\n\t\t} else {\n\t\t\tSystem.out.println(\"GET request not worked\");\n\t\t}\n\t\treturn finalResponse;\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n //processRequest(request, response);\n }", "@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}", "public BufferedReader reqGet(final String route) throws\n ServerStatusException, IOException {\n System.out.println(\"first reqGet\");\n return reqGet(route, USER_AGENT);\n }", "HttpGet getRequest(HttpServletRequest request, String address) throws IOException;", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override \r\nprotected void doGet(HttpServletRequest request, HttpServletResponse response) \r\nthrows ServletException, IOException { \r\nprocessRequest(request, response); \r\n}", "protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\n String action = request.getParameter(\"action\");\r\n\r\n try {\r\n switch (action)\r\n {\r\n case \"/getUser\":\r\n \tgetUser(request, response);\r\n break;\r\n \r\n }\r\n } catch (Exception ex) {\r\n throw new ServletException(ex);\r\n }\r\n }", "@Override\n protected void doGet\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}", "@Test\r\n\tpublic void doGet() throws Exception {\n\t\tCloseableHttpClient httpClient = HttpClients.createDefault();\r\n\t\t// Create a GET object and pass a url to it\r\n\t\tHttpGet get = new HttpGet(\"http://www.google.com\");\r\n\t\t// make a request\r\n\t\tCloseableHttpResponse response = httpClient.execute(get);\r\n\t\t// get response as result\r\n\t\tSystem.out.println(response.getStatusLine().getStatusCode());\r\n\t\tHttpEntity entity = response.getEntity();\r\n\t\tSystem.out.println(EntityUtils.toString(entity));\r\n\t\t// close HttpClient\r\n\t\tresponse.close();\r\n\t\thttpClient.close();\r\n\t}", "private void requestGet(String endpoint, Map<String, String> params, RequestListener listener) throws Exception {\n String requestUri = Constant.API_BASE_URL + ((endpoint.indexOf(\"/\") == 0) ? endpoint : \"/\" + endpoint);\n get(requestUri, params, listener);\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint i = request.getRequestURI().lastIndexOf(\"/\") + 1;\n\t\tString action = request.getRequestURI().substring(i);\n\t\tSystem.out.println(action);\n\t\t\n\t\tString view = \"Error\";\n\t\tObject model = \"service Non disponible\";\n\t\t\n\t\tif (action.equals(\"ProductsList\")) {\n\t\t\tview = productAction.productsList();\n\t\t\tmodel = productAction.getProducts();\n\t\t}\n\t\t\n\t\trequest.setAttribute(\"model\", model);\n\t\trequest.getRequestDispatcher(prefix + view + suffix).forward(request, response); \n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t throws ServletException, IOException {\n\tprocessRequest(request, response);\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tcommandAction(request,response);\r\n\t}" ]
[ "0.7589609", "0.71665615", "0.71148175", "0.705623", "0.7030174", "0.70291144", "0.6995984", "0.697576", "0.68883485", "0.6873811", "0.6853569", "0.6843572", "0.6843572", "0.6835363", "0.6835363", "0.6835363", "0.68195957", "0.6817864", "0.6797789", "0.67810035", "0.6761234", "0.6754993", "0.6754993", "0.67394847", "0.6719924", "0.6716244", "0.67054695", "0.67054695", "0.67012346", "0.6684415", "0.6676695", "0.6675696", "0.6675696", "0.66747975", "0.66747975", "0.6669016", "0.66621476", "0.66621476", "0.66476154", "0.66365504", "0.6615004", "0.66130257", "0.6604073", "0.6570195", "0.6551141", "0.65378064", "0.6536579", "0.65357745", "0.64957607", "0.64672184", "0.6453189", "0.6450501", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.64067316", "0.6395873", "0.6379907", "0.63737476", "0.636021", "0.6356937", "0.63410467", "0.6309468", "0.630619", "0.630263", "0.63014317", "0.6283933", "0.62738425", "0.62680805", "0.62585783", "0.62553537", "0.6249043", "0.62457556", "0.6239428", "0.6239428", "0.62376446", "0.62359244", "0.6215947", "0.62125194", "0.6207376", "0.62067443", "0.6204527", "0.6200444", "0.6199078", "0.61876005", "0.6182614", "0.61762017", "0.61755335", "0.61716276", "0.6170575", "0.6170397", "0.616901" ]
0.0
-1
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { if (request.getParameter("btnChooseEmployee") != null){ saveEverything(request); }else if (request.getParameter("btnRemoveSkill") != null) { removeSkillFromEmployee(request); saveEverything(request); }else if(request.getParameter("btnAddSkill") != null){ addSkillForEmployee(request); saveEverything(request); }else{ buildAndSaveEmployeeList(request); resetSkillLists(request); } getServletContext().getRequestDispatcher("/ManageEmployeeSkills.jsp").forward(request,response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n }", "public String post();", "@Override\n\tpublic void doPost(HttpRequest request, AbstractHttpResponse response)\n\t\t\tthrows IOException {\n\t\t\n\t}", "@Override\n public String getMethod() {\n return \"POST\";\n }", "public ResponseTranslator post() {\n setMethod(\"POST\");\n return doRequest();\n }", "protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n }", "public void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows IOException {\n\n\t}", "public void postData() {\n\n\t}", "@Override\n public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {\n logger.warn(\"doPost Called\");\n handle(req, res);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metPost(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "@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}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tpublic void postHandle(WebRequest request, ModelMap model) throws Exception {\n\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\r\n\t\t\r\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "@Override\n\tprotected HttpMethod requestMethod() {\n\t\treturn HttpMethod.POST;\n\t}", "@Override\n\tprotected void handlePostBody(HashMap<String, HashMap<String, String>> params, DataFormat format) throws Exception {\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n }", "@Override\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\n\n\tpublic void handlePOST(CoapExchange exchange) {\n\t\tFIleStream read = new FIleStream();\n\t\tread.tempWrite(Temp_Path, exchange.getRequestText());\n\t\texchange.respond(ResponseCode.CREATED, \"POST successfully!\");\n\t\t_Logger.info(\"Receive post request:\" + exchange.getRequestText());\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.getWriter().println(\"go to post method in manager\");\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "public abstract boolean handlePost(FORM form, BindException errors) throws Exception;", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n super.doPost(req, resp);\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\n\t\t\t\n\t\t \n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "public void processPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException\n {\n }", "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}", "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\n\t}", "public void doPost(HttpServletRequest request ,HttpServletResponse response){\n\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n}", "@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\r\n\t}", "public void post(){\n\t\tHttpClient client = new HttpClient();\n\n\t\tPostMethod post = new PostMethod(\"http://211.138.245.85:8000/sso/POST\");\n//\t\tPostMethod post = new PostMethod(\"/eshopclient/product/show.do?id=111655\");\n//\t\tpost.addRequestHeader(\"Cookie\", cookieHead);\n\n\n\t\ttry {\n\t\t\tSystem.out.println(\"��������====\");\n\t\t\tint status = client.executeMethod(post);\n\t\t\tSystem.out.println(status);\n\t\t} catch (HttpException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n//\t\ttaskCount++;\n//\t\tcountDown--;\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"POST log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) {\r\n\t try {\r\n\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t } catch (IOException ex) {\r\n\t }\r\n\t logError( req, resp, new Exception(\"Unrecognized POST\"), \"\" );\r\n\t sendError(resp, \"Unrecognized POST\");\r\n\t} else\r\n\t if (\"post-request\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onMEVPostsRequest( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"MEV POST error\" );\r\n\t\t sendError( resp, \"MEV POST error: \" + e.toString() );\r\n\t\t}\r\n\t } else if (\"post-response\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onPVMPostsResponse( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"PVM POST error\" );\r\n\t\t sendError( resp, \"PVM POST error: \" + e.toString() );\r\n\t\t}\r\n\t }\r\n }", "@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}", "@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}", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest req, HttpServletResponse resp, Object handler, ModelAndView m)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}", "@Override\n public final void doPost() {\n try {\n checkPermissions(getRequest());\n final IItem jSonStreamAsItem = getJSonStreamAsItem();\n final IItem outputItem = api.runAdd(jSonStreamAsItem);\n\n output(JSonItemWriter.itemToJSON(outputItem));\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n\n }\n }", "@Override\n\tvoid post() {\n\t\t\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\t\r\n\t}", "@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(\"=========interCpetor Post=========\");\r\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString method = request.getParameter(\"method\");\n\t\tswitch(method){\n\t\tcase \"Crawl\":\n\t\t\tcrawl(request, response);\n\t\t\tbreak;\n\t\tcase \"Extract\":\n\t\t\textract(request, response);\n\t\t\tbreak;\n\t\tcase \"JDBC\":\n\t\t\tjdbc(request, response);\n\t\t\tbreak;\n\t\tcase \"Indexer\":\n\t\t\tindexer(request, response);\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste dopost\");\r\n }", "protected void doPost(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response)\r\n\t/* 43: */throws ServletException, IOException\r\n\t/* 44: */{\r\n\t\t/* 45:48 */doGet(request, response);\r\n\t\t/* 46: */}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\tprocess(req,resp);\r\n\t}", "public void handlePost(SessionSrvc session, IObjectContext context)\n throws Exception\n {\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tdoGet(request, response);\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}", "@Override\n protected void doPost\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n try {\r\n processRequest(request, response);\r\n } catch (JSONException ex) {\r\n Logger.getLogger(PDCBukUpload.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request,\r\n HttpServletResponse response)\r\n throws ServletException,\r\n IOException {\r\n processRequest(request,\r\n response);\r\n\r\n }", "@Override\r\n\tpublic void doPost(CustomHttpRequest request, CustomHttpResponse response) throws Exception {\n\t\tdoGet(request, response);\r\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response,\n\t\t\tObject handler, ModelAndView modelAndView) throws Exception {\n\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoHandle(request, response);\n\t}", "private void postRequest() {\n\t\tSystem.out.println(\"post request, iam playing money\");\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n public void postHandle(HttpServletRequest request,\n HttpServletResponse response, Object handler,\n ModelAndView modelAndView) throws Exception {\n\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (Exception ex) {\n Logger.getLogger(PedidoController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }" ]
[ "0.73289514", "0.71383566", "0.7116213", "0.7105215", "0.7100045", "0.70236707", "0.7016248", "0.6964149", "0.6889435", "0.6784954", "0.67733276", "0.67482096", "0.66677034", "0.6558593", "0.65582114", "0.6525548", "0.652552", "0.652552", "0.652552", "0.65229493", "0.6520197", "0.6515622", "0.6513045", "0.6512626", "0.6492367", "0.64817846", "0.6477479", "0.64725804", "0.6472099", "0.6469389", "0.6456206", "0.6452577", "0.6452577", "0.6452577", "0.6450273", "0.6450273", "0.6438126", "0.6437522", "0.64339423", "0.64253825", "0.6422238", "0.6420897", "0.6420897", "0.6420897", "0.6407662", "0.64041835", "0.64041835", "0.639631", "0.6395677", "0.6354875", "0.63334197", "0.6324263", "0.62959254", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6280875", "0.6272104", "0.6272104", "0.62711537", "0.62616795", "0.62544584", "0.6251865", "0.62274224", "0.6214439", "0.62137586", "0.621211", "0.620854", "0.62023044", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61638993", "0.61603814", "0.6148914", "0.61465937", "0.61465937", "0.614548", "0.6141879", "0.6136717", "0.61313903", "0.61300284", "0.6124381", "0.6118381", "0.6118128", "0.61063534", "0.60992104", "0.6098801", "0.6096766" ]
0.0
-1
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo()\n {\n return \"Short description\";\n }", "@Override\r\n\tpublic String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}", "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }" ]
[ "0.87634975", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8531295", "0.8531295", "0.85282224", "0.85282224", "0.85282224", "0.8527433", "0.8527433", "0.8527433", "0.8527433", "0.8527433", "0.8527433", "0.8516995", "0.8512296", "0.8511239", "0.8510324", "0.84964365" ]
0.0
-1
DesiredCapabilities chromeDesiredcap = DesiredCapabilities.chrome(); WebDriver driver = new RemoteWebDriver(new URL(" chromeDesiredcap);
@Test(groups = {"Activity"},dataProvider = "guanliyuanFilePath",dataProviderClass = DateProvider.class) public void publish_activity(String username,String password,String filePath,String vedioPath) throws Exception { ChromeDriver driver = new ChromeDriver(); Uti.ChromeBrowser_setup(driver, username, password); driver.findElement(By.partialLinkText("公告")).click(); driver.findElement(By.xpath("(//li[contains(text(),'各级公告')])[1]")).click(); driver.findElement(By.id("tab2")).click(); Thread.sleep(1000); driver.findElement(By.linkText("编辑")).click(); driver.findElement(By.id("input_title")).sendKeys("测试标题编辑"); Thread.sleep(1000); Uti.richText(driver,0,"测试文本重新编辑"); driver.findElement(By.linkText("更 新")).click(); driver.findElement(By.xpath("(//li[contains(text(),'各级公告')])[1]")).click(); driver.findElement(By.id("tab2")).click(); Thread.sleep(1000); driver.findElement(By.linkText("删除")).click(); Thread.sleep(2000); driver.findElement(By.linkText("取消")).click(); Thread.sleep(2000); driver.findElement(By.linkText("推荐")).click(); Thread.sleep(2000); driver.findElement(By.linkText("确定")).click(); driver.findElement(By.linkText("取消")).click(); Thread.sleep(2000); driver.findElement(By.linkText("置顶")).click(); Thread.sleep(2000); driver.findElement(By.linkText("确定")).click(); Thread.sleep(2000); driver.findElement(By.linkText("确定")).click(); Thread.sleep(2000); driver.quit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static WebDriver launchChrome()\n\t{\n\t\tif (REMOTE_URL != null && !REMOTE_URL.equals(\"\")) {\n\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\n\t\t\ttry {\n\n\t\t\t\treturn new RemoteWebDriver(new URL(System.getProperty(\"RemoteUrl\")), capabilities);\n\t\t\t}\n\n\n\t\t\tcatch (MalformedURLException e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\telse\n\t\t{\n\t\tURL chromeDriverURL = BrowserDriver.class.getResource(\"/drivers/chromedriver.exe\");\n\t\tFile file = new File(chromeDriverURL.getFile()); \n\t\tSystem.setProperty(ChromeDriverService.CHROME_DRIVER_EXE_PROPERTY, file.getAbsolutePath());\n\t\t\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--start-maximized\");\n\t\toptions.addArguments(\"--ignore-certificate-errors\");\n\t\t\n\t\treturn new ChromeDriver(options);\n\t\t}\n\t}", "public static WebDriver chrome()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",System.getProperty(\"user.dir\")+\"\\\\Chrome\\\\chromedriver.exe\");\r\n\t\tgk = new ChromeDriver();\r\n\t\treturn gk;\r\n\t}", "public void setChromeDriver(){\n System.setProperty(\"webdriver.chrome.driver\", browserDriverPath);\n seleniumDriver = new ChromeDriver();\n }", "public static void main(String[] args) throws MalformedURLException {\n\t\t\n\t\tDesiredCapabilities objRc=new DesiredCapabilities();\n\t\tobjRc.setBrowserName(\"chrome\");\n\t\tobjRc.setPlatform(Platform.WINDOWS);\n\t\tWebDriver driver=new RemoteWebDriver(new URL(\"http://localhost:4546/wd/hub\"),objRc);\n\t}", "@Test\r\n\tpublic void f()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C://Data_Program//Selenium_Dependencies//chromedriver.exe\");\r\n\t\tWebDriver driver=new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.get(\"http://www.google.com\");\r\n\t}", "public WebDriver LaunchChromeBrowserReturnIt() {\n\t\ttry {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\t\t\"/TestSuit/lib/chromedriver.exe\");\n\t\t\tdriver = new ChromeDriver(); // Launch chrome\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn driver;\n\n\t}", "private WebDriver getDriver() {\n return new ChromeDriver();\n }", "@BeforeTest\r\n\tpublic void launch()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Yogini\\\\chromedriver\\\\chromedriver.exe\"); //location of browser in local drive\r\n\t\tWebDriver driver = new ChromeDriver(); \r\n\t\tdriver.get(tobj.url);\r\n\t\tSystem.out.println(\"Before test, browser is launched\");\r\n\t}", "public static WebDriver startChrome() {\n\t\treturn new ChromeDriver();\n\t}", "private void setChromeDriver() throws Exception {\n\t\t// boolean headless = false;\n\t\tHashMap<String, Object> chromePrefs = new HashMap<String, Object>();\n\t\tchromePrefs.put(\"profile.default_content_settings.popups\", 0);\n\t\tchromePrefs.put(\"download.default_directory\", BasePage.myTempDownloadsFolder);\n\t\tchromeOptions.setExperimentalOption(\"prefs\", chromePrefs);\n\t\t// TODO: Using \"C:\" will not work for Linux or OS X\n\t\tFile dir = new File(BasePage.myTempDownloadsFolder);\n\t\tif (!dir.exists()) {\n\t\t\tdir.mkdir();\n\t\t}\n\n\t\tchromeOptions.addArguments(\"disable-popup-blocking\");\n\t\tchromeOptions.addArguments(\"--disable-extensions\");\n\t\tchromeOptions.addArguments(\"start-maximized\");\n\n\t\t/*\n\t\t * To set headless mode for chrome. Would need to make it conditional\n\t\t * from browser parameter Does not currently work for all tests.\n\t\t */\n\t\t// chromeOptions.setHeadless(true);\n\n\t\tif (runLocation.toLowerCase().equals(\"smartbear\")) {\n\t\t\tReporter.log(\"-- SMARTBEAR: standard capabilities. Not ChromeOptions\", true);\n\t\t\tcapabilities = new DesiredCapabilities();\n\t\t} else {\n\t\t\tcapabilities = DesiredCapabilities.chrome();\n\t\t\tcapabilities.setCapability(ChromeOptions.CAPABILITY, chromeOptions);\n\t\t}\n\n\t\tWebDriver myDriver = null;\n\t\tRemoteWebDriver rcDriver;\n\n\t\tswitch (runLocation.toLowerCase()) {\n\t\tcase \"local\":\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", chromeDriverLocation);\n\t\t\tmyDriver = new ChromeDriver(chromeOptions);\n\t\t\tbreak;\n\t\tcase \"grid\":\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), capabilities);\n\t\t\trcDriver.setFileDetector(new LocalFileDetector());\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"testingbot\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultChromeVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\t// capabilities.setCapability(\"name\", testName); // TODO: set a test\n\t\t\t// name (suite name maybe) or combined with env\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), capabilities);\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"smartbear\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultChromeVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\t \n\t\t\t//capabilities.setCapability(\"name\", testMethod.get());\n\t\t\tcapabilities.setCapability(\"build\", testProperties.getString(TEST_ENV)+\" Chrome-\"+platformOS);\n\t\t\tcapabilities.setCapability(\"max_duration\", smartBearDefaultTimeout);\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\tcapabilities.setCapability(\"screenResolution\", smartBearScreenRes);\n\t\t\tcapabilities.setCapability(\"record_video\", \"true\"); Reporter.log(\n\t\t\t\t\t \"BROWSER: \" + browser, true); Reporter.log(\"BROWSER Version: \" +\n\t\t\t\t\t\t\t browserVersion, true); Reporter.log(\"PLATFORM: \" + platformOS, true);\n\t\t\tReporter.log(\"URL '\" + serverURL + \"'\", true); rcDriver = new\n\t\t\tRemoteWebDriver(new URL(serverURL), capabilities); myDriver = new\n\t\t\tAugmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", chromeDriverLocation);\n\t\t\tmyDriver = new ChromeDriver(chromeOptions);\n\t\t\tbreak;\n\t\t}\n\t\tdriver.set(myDriver);\n\t}", "private WebDriver createChromeDriver() {\n\t\tsetDriverPropertyIfRequired(\"webdriver.chrome.driver\", \"chromedriver.exe\");\n\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"disable-plugins\");\n\t\toptions.addArguments(\"disable-extensions\");\n\t\toptions.addArguments(\"test-type\");\n\n\t\t\n\t\t_driver = new ChromeDriver(options);\n\t\treturn _driver;\n\t}", "@Given(\"^Open URL in chrome browser$\")\r\n\tpublic void open_URL_in_chrome_browser() {\n\t nop.Launch(\"chrome\", \"http://automationpractice.com/index.php\");\r\n\t}", "public static void main(String[] args) throws IOException {\n\r\n\r\n\t WebDriver driver;\r\n\t ChromeOptions options=new ChromeOptions();\r\n\t options.addArguments(\"C:\\\\chromedriver.exe\"); \r\n\t\tDesiredCapabilities capabilities=DesiredCapabilities.chrome();\r\n\t\tcapabilities.setCapability(ChromeOptions.CAPABILITY,options);\r\n\t\tdriver=new RemoteWebDriver(new URL(\"http://192.168.71.1:5555/wd/hub\"),capabilities);\r\n driver.get(\"http://www.baidu.com\");\r\n \r\n \r\n \r\n//\t\tWebDriver driver;\r\n//\t\tProfilesIni allProfiles =new ProfilesIni();\r\n// FirefoxProfile profile=allProfiles.getProfile(\"default\");\r\n// DesiredCapabilities capabilities=DesiredCapabilities.firefox();\r\n//\t\tdriver=new RemoteWebDriver(new URL(\"http://192.168.71.1:5555/wd/hub\"),capabilities);\r\n//\t\tdriver.get(\"http://www.baidu.com\");\r\n\t}", "@BeforeTest\r\n public void launchBrowser() {\n System.setProperty(\"webdriver.chrome.driver\", ChromePath);\r\n driver= new ChromeDriver();\r\n driver.manage().window().maximize();\r\n driver.get(titulo);\r\n }", "@ BeforeTest \n\tpublic void Amazon() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",System.getProperty(\"user.dir\")+\"\\\\resources\\\\chromedriver.exe\"); // to make the path portable create folder reources and put the element to it \n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(\"https://www.amazon.com/\");\n\t\tSystem.out.println(driver.getCurrentUrl());\t\n\t\tdriver.manage().window().maximize();\n\n}", "@Test\n public void test() throws MalformedURLException {\n System.setProperty(\"webdriver.chrome.driver\",System.getProperty(\"user.dir\")+\"\\\\drivers\\\\chromedriver.exe\"); \n WebDriver driver=new ChromeDriver();\n // WebDriver driver=new RemoteWebDriver(url,cap);\n driver.manage().window().maximize(); \n driver.get(\"https://curiedoctorapp.firebaseapp.com\");\n System.out.println(\"The title is\"+ driver.getTitle());\n driver.quit();\n \n }", "private void init_remoteWebDriver(String browser) {\n\t\tif(browser.equalsIgnoreCase(\"chrome\")) {\n\t\t\tDesiredCapabilities cap = new DesiredCapabilities().chrome();\n\t\t\tcap.setCapability(ChromeOptions.CAPABILITY, optionsManager.getChromeOptions());\n\t\t\t\n\t\t\t//To connect with hub use RemoteWebDriver\n\t\t\ttry {\n\t\t\t\ttlDriver.set(new RemoteWebDriver(new URL(prop.getProperty(\"huburl\")), cap));\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse if(browser.equalsIgnoreCase(\"firefox\")){\n\t\t\tDesiredCapabilities cap = new DesiredCapabilities().firefox();\n\t\t\tcap.setCapability(FirefoxOptions.FIREFOX_OPTIONS, optionsManager.getFirefoxOptions());\n\t\t\t\n\t\t\ttry {\n\t\t\t\ttlDriver.set(new RemoteWebDriver(new URL(prop.getProperty(\"huburl\")), cap));\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "public void chromeLaunch() {\n\t\tSystem.setProperty(key, value);\n\t\ts=new ChromeDriver();\n\t\ts.manage().window().maximize();\n\t\ts.navigate().to(url);\n\t}", "private void setRemoteWebdriver() {\n\n switch (getBrowserId(browser)) {\n case 0:\n capabilities = DesiredCapabilities.internetExplorer();\n capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n Boolean.valueOf(System.getProperty(\"IGNORE_SECURITY_DOMAINS\", \"false\")));\n break;\n case 1:\n\t\tFirefoxProfile profile = new FirefoxProfile();\n \tprofile.setEnableNativeEvents(true);\n capabilities = DesiredCapabilities.firefox();\n\t\tcapabilities.setCapability(FirefoxDriver.PROFILE, profile);\n \tcapabilities.setJavascriptEnabled(true);\n \tcapabilities.setCapability(\"marionette\", false);\n \tcapabilities.setCapability(\"acceptInsecureCerts\", true);\n break;\n case 2:\n capabilities = DesiredCapabilities.safari();\n break;\n case 3:\n capabilities = DesiredCapabilities.chrome();\n break;\n default:\n throw new WebDriverException(\"Browser not found: \" + browser);\n }\n capabilities.setCapability(\"javascriptEnabled\", true);\n capabilities.setCapability(\"platform\", platform);\n capabilities.setCapability(\"version\", version);\n capabilities.merge(extraCapabilities);\n\n try {\n this.driver.set(new RemoteWebDriver(new URL(\"http://\"\n + System.getProperty(\"GRID_HOST\") + \":\"\n + System.getProperty(\"GRID_PORT\") + \"/wd/hub\"),\n capabilities));\n } catch (MalformedURLException e) {\n LOGGER.log(Level.INFO,\n \"MalformedURLException in setRemoteWebdriver() method\", e);\n }\n }", "private DesiredCapabilities getChromeCapabilities(DesiredCapabilities chromeCapabilities) {\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"G:\\\\workspace\\\\Jarvis\\\\src\\\\test\\\\resources\\\\lib\\\\chromedriver.exe\");\n\t\t\n\t\tchromeCapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\tchromeCapabilities.setCapability(CapabilityType.SUPPORTS_ALERTS, true);\n\t\tchromeCapabilities.setCapability(CapabilityType.UNEXPECTED_ALERT_BEHAVIOUR, UnexpectedAlertBehaviour.ACCEPT);\n\t\treturn chromeCapabilities;\n\t}", "public static WebDriver getLocalChromeDriver() {\n WebDriverManager.chromedriver().setup();\n return new ChromeDriver();\n }", "public static WebDriver startBrowser() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./driver/chromedriver.exe\");\n\t\t\n\t\t// Create ChromeDriver object, launch Chrome browser\n\t\t WebDriver driver = new ChromeDriver();\n\t\t \n\t\t// Create ChromeDriver object, launch Chrome browser\n\t\tdriver.get(\"http://techfios.com/test/107/\");\n\t\treturn driver;\n\t}", "public void getDriver() {\n\t\tWebDriverManager.chromedriver().setup();\n\t\tdriver = new ChromeDriver();\n\t}", "@Before\n public synchronized static WebDriver openBrowser() {\n String browser = System.getProperty(\"BROWSER\");\n\n\n if (driver == null) {\n try {\n //Kiem tra BROWSER = null -> gan = chrome\n if (browser == null) {\n browser = System.getenv(\"BROWSER\");\n if (browser == null) {\n browser = \"chrome\";\n }\n }\n switch (browser) {\n case \"chrome\":\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n break;\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driver = new FirefoxDriver();\n break;\n case \"chrome_headless\":\n WebDriverManager.chromedriver().setup();\n ChromeOptions options = new ChromeOptions();\n options.addArguments(\"headless\");\n options.addArguments(\"window-size=1366x768\");\n driver = new ChromeDriver(options);\n break;\n default:\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n break;\n }\n } catch (UnreachableBrowserException e) {\n driver = new ChromeDriver();\n } catch (WebDriverException e) {\n driver = new ChromeDriver();\n } finally {\n Runtime.getRuntime().addShutdownHook(new Thread(new BrowserCleanup()));\n }\n driver.get(\"http://demo.guru99.com/v4/\");\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n log.info(\"----------- START BRWOSER -----------\");\n\n }\n return driver;\n }", "private static WebDriver launchRemoteDriver()\n\t{\n\t\t\n\n\t\tDesiredCapabilities capabilities = DesiredCapabilities.firefox();\n\t\ttry {\n\t\t\tif (REMOTE_URL != null && !REMOTE_URL.equals(\"\")) {\n\t\t\t\treturn new RemoteWebDriver(new URL(System.getProperty(\"RemoteUrl\")), capabilities);\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn new InternetExplorerDriver();\n\t\t} catch (MalformedURLException e) {\n\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\n public RemoteWebDriver getDriver() {\n\n File chromeFile = new File(Config.getProperty(Config.CHROME_PATH));\n System.setProperty(\"webdriver.chrome.driver\", chromeFile.getAbsolutePath());\n\n ChromeDriverService service = new ChromeDriverService.Builder()\n .usingDriverExecutable(chromeFile)\n .usingAnyFreePort().build();\n Driver.chromeService.set(service);\n try {\n service.start();\n } catch (IOException e) {\n e.printStackTrace();\n }\n ChromeOptions options = new ChromeOptions();\n options.addArguments(\"--no-sandbox\");\n DesiredCapabilities capabilities = DesiredCapabilities.chrome();\n capabilities.setCapability(ChromeOptions.CAPABILITY, options);\n return new ChromeDriver(capabilities);\n }", "public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"./browser/chromedriver.exe\");\r\n\t\t//DesiredCapabilities cap=new DesiredCapabilities();\r\n\t\t\r\n\t\tChromeOptions co=new ChromeOptions();\r\n\t\tco.addArguments(\"--disable-infobars\");\r\n\t\t//co.addArguments(\"--headless\");\r\n\t\tWebDriver driver=new ChromeDriver(co);\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.close();\r\n\r\n\t}", "public static void main(String[] args) {\n WebDriver driver = WebDriverFactory.getDriver(\"chrome\");\n driver.manage().window().maximize();\n\n\n }", "public static void main(String[] args) {\nString browser=\"ff\";\nif (browser.equals(\"chrome\")) {\n\tWebDriverManager.chromedriver().setup();\n\t// System.setProperty(\"webdriver.chrome.driver\", \"/Users/user/Downloads/chromedriver\");\n\tdriver=new ChromeDriver();\n}\nelse if (browser.equals(\"ff\")) {\n\tWebDriverManager.firefoxdriver().setup();\n\tdriver=new FirefoxDriver();\n}\nelse\n\tif (browser.equals(\"IE\")) {\n\t\tWebDriverManager.iedriver().setup();\n\t\tdriver=new InternetExplorerDriver();\n\t}\n\telse\n\t\tif (browser.equals(\"opera\")) {\n\t\t\tWebDriverManager.operadriver().setup();\n\t\t\tdriver=new OperaDriver();\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"no defined driver\");\n\t\t}\n\n\ndriver.get(\"https://google.com\");\n\n\n\n\t\n\n\n\n\n\n\n\n\n\n\n\n\t}", "public static void main(String[] args) {\n String str = getDriver(\"chrome\");\n System.out.println(str);\n\n }", "@Test\r\n\tpublic void launch_browser()\r\n\t{ \r\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C://TESTING TOOLS - SOFTWARES/chromedriver.exe\");\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\tdriver.get(\"https://www.javatpoint.com/\");\r\n\t\t// remove all cookies\r\n\t\t//driver.manage().deleteAllCookies();\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n WebDriverManager.chromedriver().setup();\n\n // create object for using selenium driver;\n WebDriver driver=new ChromeDriver();\n\n //open browser\n driver.get(\"http://amazon.com\");// bumu exlaydu\n //driver.get(\"http://google.com\");\n // open website\n System.out.println(driver.getTitle());\n\n\n\n\n }", "public static void setChromeDriverProperty() {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\automation_new_code\\\\onfs.alip.accounting\\\\BrowserDriver/chromedriver.exe\");\n\t\t}", "private void setLocalWebdriver() {\n\n DesiredCapabilities capabilities = new DesiredCapabilities();\n capabilities.setJavascriptEnabled(true);\n capabilities.setCapability(\"handlesAlerts\", true);\n switch (getBrowserId(browser)) {\n case 0:\n capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n Boolean.valueOf(System.getProperty(\"IGNORE_SECURITY_DOMAINS\", \"false\")));\n driver.set(new InternetExplorerDriver(capabilities));\n break;\n case 1:\n driver.set(new FirefoxDriver(capabilities));\n break;\n case 2:\n driver.set(new SafariDriver(capabilities));\n break;\n case 3:\n driver.set(new ChromeDriver(capabilities));\n break;\n default:\n throw new WebDriverException(\"Browser not found: \" + browser);\n }\n }", "public void Open_Browser() \r\n\t{\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"drivers\\\\chromedriver.exe\");\r\n\t\t//Brower initiation\r\n\t\tdriver=new ChromeDriver();\r\n\t\t//maximize browser window\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\r\n\t}", "@BeforeMethod\n\tpublic void setUp() throws Exception{\n\n\t\tDesiredCapabilities chromecap= DesiredCapabilities.chrome();\n\t\tchromecap.setBrowserName(\"chrome\");\n\t\tchromecap.setPlatform(Platform.WINDOWS);\n\t\tdriver= new RemoteWebDriver(new URL(\"http://localhost:4444/wd/hub\"), chromecap);\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\t\n\t}", "@BeforeMethod\n\tpublic static void launchDriver() throws MalformedURLException\n\t{\n\t \t\t \n\t\tDesiredCapabilities caps = new DesiredCapabilities();\n\t/* caps.setCapability(\"browser\", \"Chrome\");\n\t caps.setCapability(\"browser_version\", \"60.0\");\n\t caps.setCapability(\"os\", \"Windows\");\n\t caps.setCapability(\"os_version\", \"7\");\n\t caps.setCapability(\"resolution\", \"1024x768\");\n\t caps.setCapability(\"name\", \"Bstack-[Java] Sample Test\");*/\n\t //set from capability generator \n\t caps.setCapability(\"os\", \"Windows\");\n\t caps.setCapability(\"os_version\", \"10\");\n\t caps.setCapability(\"browser\", \"Chrome\");\n\t caps.setCapability(\"browser_version\", \"62.0\");\n\t caps.setCapability(\"project\", \"TestingOnBrowserStack\");\n\t caps.setCapability(\"build\", \"1.0\");\n\t caps.setCapability(\"name\", \"TestBroserStackSel\");\n\t caps.setCapability(\"browserstack.local\", \"false\");\n\t caps.setCapability(\"browserstack.selenium_version\", \"3.5.2\");\n\t \n\t driver = new RemoteWebDriver(new URL(URL), caps);\n\t\tdriver.manage().deleteAllCookies();\n\t\twait = new WebDriverWait(driver, 220);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\n\t\t\n\t\t\n\t}", "@Test\n public void test1(){\n\n WebDriverManager.chromedriver().setup();\n WebDriver driver2 = new ChromeDriver();\n\n\n\n driver2.get(url);\n bekle(2000);\n driver2.quit();\n\n\n\n }", "public static void main(String[] args) {\n\n\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Users\\\\COMPAQ\\\\Downloads\\\\chromedriver_win32\\\\chromedriver.exe\");\n\nWebDriver driver =new ChromeDriver();\n\n//WebDriverWait wait = new WebDriverWait(driver, 40);\n\n driver.get(\"http://qatestingtips.com/\");\n\t\n\n}", "@Before\n public void start(){\n DesiredCapabilities caps = new DesiredCapabilities();\n driver = new FirefoxDriver(new FirefoxBinary(new File(\"C:\\\\Program Files (x86)\\\\Nightly\\\\firefox.exe\")), new FirefoxProfile(), caps);\n wait = new WebDriverWait(driver, 10);\n\n //IE\n// DesiredCapabilities caps = new DesiredCapabilities();\n// caps.setCapability(InternetExplorerDriver.REQUIRE_WINDOW_FOCUS, true);\n// WebDriver driver = new InternetExplorerDriver(caps);\n\n\n }", "public WebDriver getDriver(DesiredCapabilities capability) throws MalformedURLException {\r\n\t\tif (gridMode) {\r\n\t\t\treturn new RemoteWebDriver(new URL(\"http://192.168.106.36:5555/wd/hub\"), getBrowserCapabilities(browser,capability));\r\n\t\t} else {\r\n\t\t\tswitch (browser.toLowerCase()) {\r\n\t\t\tcase \"firefox\":\r\n\t\t\t\tstartGeckoDriver();\r\n\t\t\t\tFirefoxOptions firefoxOptions = new FirefoxOptions();\r\n\t\t\t\tfirefoxOptions.merge(capability);\r\n\t\t\t\treturn new FirefoxDriver(firefoxOptions);\r\n\r\n\t\t\tcase \"chrome\":\r\n\t\t\t\tstartChromeDriver();\r\n\t\t\t\tChromeOptions chromeOptions = new ChromeOptions();\r\n\t\t\t\tchromeOptions.merge(capability);\r\n\t\t\t\treturn new ChromeDriver(chromeOptions);\r\n\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"Selecting firefox as default browser.\");\r\n\t\t\t\tstartGeckoDriver();\r\n\t\t\t\tFirefoxOptions defaultOptions = new FirefoxOptions();\r\n\t\t\t\tdefaultOptions.merge(capability);\r\n\t\t\t\treturn new FirefoxDriver(defaultOptions);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void openBrowser() {\n ResourceBundle config = ResourceBundle.getBundle(\"config\");\n\n config.getString(\"browser\").equalsIgnoreCase(\"Chrome\");\n System.setProperty(\"webdriver.chrome.driver\", \"src/Drivers/chromedriver_76.0.exe\");\n driver = new ChromeDriver();\n\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n// driver.get(config.getString(\"URL\"));\n driver.manage().window().maximize();\n }", "public static void main(String[] args) throws MalformedURLException {\n\t\t\r\n\t\tChromeOptions chromeoptions=new ChromeOptions();\r\n\t\tWebDriver driver=new RemoteWebDriver(new URL(\"http://192.168.225.206:6878/wd/hub\"),chromeoptions);\r\n\t\t\r\n\t\tdriver.get(\"http://opensource.demo.orangehrmlive.com\");\r\n\t\tSystem.out.println(\"URL opened\");\r\n\r\n\t}", "public void setup(){\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"//Users//bpat12//Downloads//chromedriver\");\n\t\tdriver = new ChromeDriver();\n\t\tSystem.out.println(\"launch browser\");\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\tdriver.get(url);\n\t}", "@Test \n public void executSessionThree(){\n System.out.println(\"open the browser: chrome III\");\n final String CHROME_DRIVER_DIRECTORY = System.getProperty(\"user.dir\") + \"/src/test/java/BrowserDrivers/chromedriver.exe\";\n System.setProperty(\"webdriver.chrome.driver\", CHROME_DRIVER_DIRECTORY);\n final WebDriver driver = new ChromeDriver();\n //Goto guru99 site\n driver.get(\"http://demo.guru99.com/V4/\");\n //find user name text box and fill it\n driver.quit();\n }", "@BeforeMethod(alwaysRun = true)\n public void browserSetup(){\n driver = new ChromeDriver();\n }", "@BeforeTest // which will be executed first before all the test methods\n@Parameters(\"browser\") //@Parameter is used to pass the values(during run time) to the test methods as arguments using .xml file\npublic void setup(String browser) throws Exception{\n \n//Check if parameter passed as 'chrome'\nif (browser.equalsIgnoreCase(\"chrome\")){\n//set path to chromedriver.exe\nSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\\\\\\\\\\\\\Users\\\\\\\\\\\\\\\\mouleeswaranb\\\\\\\\\\\\\\\\eclipse-workspace_Selenium learning_6127\\\\\\\\\\\\\\\\SeleniumProject\\\\\\\\\\\\\\\\drivers\\\\\\\\\\\\\\\\chromedriver.exe\");\ndriver = new ChromeDriver(); \n}\n\nelse{\n//If no browser passed throw exception\nthrow new Exception(\"Browser is not correct\");\n}\ndriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n}", "public static void main(String[] args) throws Exception{\n\n WebDriverManager.chromedriver().setup();\n\n WebDriver driver = new ChromeDriver();\n\n driver.get(\"http://practice.cybertekschool.com/open_new_tab\");\n\n Thread.sleep(4000);\n\n //driver.close(); //expected to close the original one\n driver.quit(); //all window will be closed\n\n\n\n\n }", "public static ChromeDriver intiChrome() throws Exception {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"D:/ChromeServer/chromedriver.exe\");\n\t\t// WebDriver driver = new ChromeDriver();\n\t\tChromeOptions chromeOptions = new ChromeOptions();\n\t\t// 设置为 headless 模式 (必须)\n\t\t// chromeOptions.addArguments(\"--headless\");\n\t\t// 设置浏览器窗口打开大小 (非必须)\n\t\t// chromeOptions.addArguments(\"--window-size=1980,1068\");\n\t\tChromeDriver driver = new ChromeDriver(chromeOptions);\n\t\treturn driver;\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tWebDriverManager.chromedriver().setup();\r\n\t\t\r\n\t\tWebDriver driver =new ChromeDriver();\r\n\t\t\r\n\t\t\r\n\r\n\t}", "@Before\r\n\tpublic void OpenChrome() {\n\t\tconfig = new ConfigReader();\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",config.getChromePath());\r\n\t\tdriver = new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().deleteAllCookies();\r\n\t\texPages = new ExpediaPages(driver);\r\n\t}", "public interface DriverCapabilities {\r\n\r\n\t/**\r\n\t * Allows custom capabilities to be set.\r\n\t * \r\n\t * @param browser\r\n\t * The browser to set capabilities specific to browser being\r\n\t * used.\r\n\t * @param caps\r\n\t * The capabilities object to add additional capabilities to.\r\n\t */\r\n\tvoid getCapabilties(Browser browser, DesiredCapabilities caps);\r\n}", "@BeforeMethod\n\tpublic void setUp() {\n\t\tString driverByOS = \"\";\n\t\tif (System.getProperty(\"os.name\").equals(\"Windows 10\")) {\n\t\t\tdriverByOS = \"Drivers/chromedriver.exe\";\n\t\t} \n\t\telse {\n\t\t\tdriverByOS = \"Drivers/chromedriver\";\n\t\t}\n\t\t//para saber en qué sistema Operativo estamos corriendo el proyecto.\n\t\tSystem.out.println(System.getProperty(\"os.name\"));\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", driverByOS);\n\t\t//Utilizando headless browser HB\n\t\t/*-HB\n\t\tChromeOptions chromeOptions = new ChromeOptions();\n\t\tchromeOptions.addArguments(\"--headless\");\n\t\tdriver = new ChromeDriver(chromeOptions);\n\t\tHB-*/\n\t\tdriver = new ChromeDriver();\n\t\t//driver.manage().window().maximize(); //esto es para maximizar la ventana del navegador\n\t\t//driver.manage().window().fullscreen(); //esto es para poner en fullscreen la ventana del navegador\n\t\t/*driver.manage().window().setSize(new Dimension(200,200));\n\t\tfor (int i = 0; i <= 800; i++) {\n\t\t\tdriver.manage().window().setPosition(new Point(i,i));\n\t\t}*/\n\t\t//driver.manage().window().setPosition(new Point(800,200)); //posicionando la ventana del navegador\n\t\tdriver.navigate().to(\"http://newtours.demoaut.com/\");\n\t\t//Este codigo de abajo permite abrir otra ventana en el navegador\n\t\t//JavascriptExecutor javaScriptExecutor = (JavascriptExecutor)driver;\n\t\t//String googleWindow = \"window.open('http://www.google.com')\";\n\t\t//javaScriptExecutor.executeScript(googleWindow);\n\t\t//tabs = new ArrayList<String> (driver.getWindowHandles());\n\t\t/*try {\n\t\t\tThread.sleep(5000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}*/\n\t\t//Helpers helper = new Helpers();\n\t\t//helper.sleepSeconds(4);\n\t}", "public static void main(String[] args) {\n\t\r\n\t PropertyFetcher prop = new PropertyFetcher();\r\n\t \r\n\t \r\n\t \r\n\t \r\nWebDriver driver=new ChromeDriver(); \r\nSystem.setProperty(\"webdriver.chrome.driver\", \"C:/Users/Kumarshobhitsoni/workspace/SeleniumPractice/chromedriver.exe\");\r\n//System.out.println(prop.getProperty(\"URL\"));\r\ndriver.get(prop.fetchProp(\"URL\"));\r\n\r\n//System.out.println(\"Hiii\");\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t System.setProperty(\"webdriver.chrome.driver\", \"D:/workspace/chromedriver\");\r\n\t\t //System.setProperty(\"webdriver.chrome.driver\", ...);\r\n\t\t \r\n\t\t System.setProperty(\"selenide.browser\", \"Chrome\");\r\n\t\t Configuration.browser=\"chrome\";\r\n\t\t open(\"http://google.com\");\r\n\t\t //$(By.id(\"registerLink\")).pressEnter();\r\n\t\t }", "public GoogleAutomation() {\n\t\t\n\t\t//The setProperty() method of Java system class sets the property of the system which is indicated by a key.\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"driver//chromedriver.exe\");\n\t\t\n\t\t//initilize webDriver \n\t\twebDriver = new ChromeDriver();\n\t}", "@Given(\"^the user launch the chrome application$\")\r\n\tpublic void the_user_launch_the_chrome_application() throws Throwable {\n\t\tlaunchBrowser(\"chrome\");\r\n\t\t register= new Para_Registartion_page(driver);\r\n\t}", "@BeforeTest\n public void setup() {\n\n String browser = Environment.getProperties().browser().toString().toLowerCase();\n\n switch (browser) {\n \n case \"firefox\":\n FirefoxOptions options = new FirefoxOptions(); \n if(Environment.getProperties().headless()){\n options.addArguments(\"--headless\");\n }\n driver = new FirefoxDriver();\n break;\n \n default:\n ChromeOptions optionsChrome = new ChromeOptions();\n if(Environment.getProperties().headless()){\n optionsChrome.addArguments(\"--headless\");\n } \n driver = new ChromeDriver(optionsChrome);\n break;\n } \n\n driver.manage().window().maximize();\n }", "@Test \n public void executSessionOne(){\n\t System.out.println(\"open the browser: chrome\");\n final String CHROME_DRIVER_DIRECTORY = System.getProperty(\"user.dir\") + \"/src/test/java/BrowserDrivers/chromedriver.exe\";\n System.setProperty(\"webdriver.chrome.driver\", CHROME_DRIVER_DIRECTORY);\n final WebDriver driver = new ChromeDriver();\n //Goto guru99 site\n driver.get(\"http://demo.guru99.com/V4/\");\n //find user name text box and fill it\n driver.quit();\n }", "public static WebDriver getDriver(String testName) {\n WebDriver driver = getLocalChromeDriver();\n /* * * * * * * * * * * * * * * * * * * * * * * * */\n\n driver.manage().window().maximize();\n return driver;\n }", "@BeforeTest\r\n\tpublic void operBrowser(){\n\t\td1=Driver.getBrowser();\r\n\t\tWebDriverCommonLib wlib=new WebDriverCommonLib();\r\n\t\td1.get(Constant.url);\r\n\t\twlib.maximizeBrowse();\r\n\t\twlib.WaitPageToLoad();\r\n\t}", "@BeforeTest\n public void setup() {\n System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\User\\\\IdeaProjects\\\\LoginToJira\\\\chromedriver.exe\");\n // Create a new instance of the Chrome driver\n this.driver = new ChromeDriver();\n }", "public WebDriver initializeDriver() {\n System.setProperty(\"webdriver.chrome.driver\", projectPath + \"//src//main//resources//chromedriver\");\n driver = new ChromeDriver();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n return driver;\n }", "private static WebDriver launchInternetExplorer()\n\t{\n\t\tif (REMOTE_URL != null && !REMOTE_URL.equals(\"\")) {\n\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();\n\t\t\ttry {\n\n\t\t\t\treturn new RemoteWebDriver(new URL(System.getProperty(\"RemoteUrl\")), capabilities);\n\t\t\t}\n\n\n\t\t\tcatch (MalformedURLException e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\telse\n\t\t{\n\t\tURL IEDriverURL = BrowserDriver.class.getResource(\"/drivers/IEDriverServer.exe\");\n\t\tFile file = new File(IEDriverURL.getFile()); \n\t\tSystem.setProperty(InternetExplorerDriverService.IE_DRIVER_EXE_PROPERTY, file.getAbsolutePath());\n\t\t\n\t\tDesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();\n\t\tcapabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);\n\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\n\t\treturn new InternetExplorerDriver(capabilities);\n\t\t}\n\t\n\t\t\n\t}", "@Parameters(\"browser\")\n\t@BeforeClass\n\tpublic void setupDriver(String browser) throws MalformedURLException {\n\t\tDesiredCapabilities dc = null;\n\t\t\n\t\tif (browser.equalsIgnoreCase(\"chrome\")) {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"/phptravels/src/main/resources/chromedriver.exe\");\n\t\t\tdc = DesiredCapabilities.chrome();\n\t\t\tdc.setBrowserName(\"chrome\");\n\t\t\t\n\t\t} else if (browser.equalsIgnoreCase(\"firefox\")) {\n\t\t\tdc = DesiredCapabilities.firefox();\n\t\t\tdc.setBrowserName(\"firefox\");\n\t\t}\n\t\t\n\t\tdc.setPlatform(Platform.WIN8_1);\n\t\tdriver = new RemoteWebDriver(new URL(\"http://localhost:4444/wd/hub\"), dc);\n\t}", "@Given(\"^Initialize the browser with Chrome$\")\r\n\tpublic void initialize_the_browser_with_Chrome() throws Throwable {\n\t\tdriver = DriverManager.getDriverInstance(\"chrome\", 20);\r\n\t\tSystem.out.println(\"Launched Chrome\");\r\n\t}", "public Selenium(String chromePath) {\n this.browserDriverPath = chromePath; \n }", "@BeforeTest\r\n\tpublic void beforeTest() throws MalformedURLException {\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\PDC2B-Training.pdc2b\\\\Downloads\\\\Selenium Drivers\\\\BrowserDriver\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\tdriver = new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().timeouts().implicitlyWait(5000, TimeUnit.SECONDS);\r\n\t}", "@Test(priority=1)\r\n\tpublic void OpenURLA() {\r\n\t WebDriverManager.chromedriver().setup();\r\n\t\t\r\n\t driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n \r\n\t\t driver = new ChromeDriver();\r\n\t\t driver.get(\"https://www.amazon.in/\"); // Open the url in chrome browser page\r\n\t }", "public void initiateBrowser(String browser) {\n\t\tString os = System.getProperty(\"os.name\").toLowerCase();\n\t\tString current_dir = System.getProperty(\"user.dir\");\n\t\tSystem.out.println(os);\n\t\tSystem.out.println(current_dir);\n\t\tswitch (browser) {\n\t\tcase \"ie\":\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", current_dir + \"/drivers/IEDriverServer.exe\");\n\t\t\tdriver = new InternetExplorerDriver();\n\t\t\tbreak;\n\t\tcase \"chrome\":\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\tif (os.contains(\"linux\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", current_dir + \"/drivers/linuxdrivers/chromedriver\");\n\t\t\t\tDesiredCapabilities caps = DesiredCapabilities.chrome();\n\t\t\t\tLoggingPreferences logPrefs = new LoggingPreferences();\n\t\t\t\tlogPrefs.enable(LogType.BROWSER, Level.ALL);\n\t\t\t\tcaps.setCapability(CapabilityType.LOGGING_PREFS, logPrefs);\n\n\t\t\t\toptions.setBinary(\"/usr/bin/google-chrome\");\n\t\t\t\toptions.addArguments(\"--headless\");\n\t\t\t} else if (os.contains(\"windows\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", current_dir + \"/drivers/chromedriver.exe\");\n\t\t\t\tDesiredCapabilities caps = DesiredCapabilities.chrome();\n\t\t\t\tLoggingPreferences logPrefs = new LoggingPreferences();\n\t\t\t\tlogPrefs.enable(LogType.BROWSER, Level.ALL);\n\t\t\t\tcaps.setCapability(CapabilityType.LOGGING_PREFS, logPrefs);\n\t\t\t}\n\t\t\toptions.addArguments(\"test-type\");\n\t\t\toptions.addArguments(\"disable-popup-blocking\");\n\t\t\tdriver = new ChromeDriver(options);\n\n\t\t\tdriver.manage().window().maximize();\n\t\t\tbreak;\n\t\tcase \"firefox\":\n\t\t\tdriver = new FirefoxDriver();\n\t\t\tbreak;\n\t\t}\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n\t}", "@BeforeClass\n\tpublic void initializebrowser() throws InterruptedException {\n\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", Chrome);\n\t\t// driver = new ChromeDriver(); \n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--disable-extensions\");\n\t\toptions.addArguments(\"test-type\");\n\t\toptions.addArguments(\"--disable-popup-blocking\");\n\t\tdriver = new ChromeDriver(options);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.get(common.URL);\n\t\tThread.sleep(3000);\n\n\t\t\n\t\t/*DesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();\n\t\t \n\t\t //Method and Description - void setCapability(java.lang.String capabilityName, boolean value)\n\t\t capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);\n\t\t \n\t\t //Among the facilities provided by the System class are standard input, standard output, and error output streams; access to externally defined \"properties\"; a means of loading files and libraries; and a utility method for quickly copying a portion of an array.\n\t\t System.setProperty(\"webdriver.ie.driver\", common.IE);\n\t\t \n\t\t //InternetExplorerDriver(Capabilities capabilities)\n\t\t WebDriver driver = new InternetExplorerDriver(capabilities);\n\t\t \n\t\t driver.manage().window().maximize();\n\t\t driver.get(common.URL);\n\t\t Thread.sleep(3000);*/\n\t\t\n\t}", "public static WebDriver setUp() {\n\t\n \t\n \tSystem.setProperty(\"webdriver.chrome.driver\", \"drivers\\\\chromedriver.exe\"); //if it doesn't work we can check with user.dir...\n \tdriver = new ChromeDriver(); //launch the Browser it opens empty page\n \tdriver.manage().window().maximize();\n \tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS); //to wait globally\n \tdriver.get(\"http://166.62.36.207/humanresources/symfony/web/index.php/auth/login\");\n \t \n \treturn driver; //return object of the driver \t\n}", "public static void startChromeDriver() {\r\n\t\tswitch (operatingSystem.toLowerCase().split(\" \")[0]) {\r\n\t\tcase \"windows\":\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src//main//resources//drivers//chromedriver.exe\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"linux\":\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src//main//resources//drivers//chromedriverLinux\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"mac\":\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src//main//resources//drivers//chromedriverMac\");\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"Operating system not supported.\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "WebDriver modify(WebDriver webDriver);", "@Given(\"^launch an chrome browser$\")\r\n\tpublic void launch_an_chrome_browser() throws Throwable {\n\t sign.url();\r\n\t\t\r\n\t}", "@BeforeClass\npublic void beforeClass() throws MalformedURLException {\n\tDesiredCapabilities caps = new DesiredCapabilities();\n\tcaps.setCapability(\"deviceName\", \"Xiaomi Redmi Note 5 Pro\");\n caps.setCapability(\"platformName\", \"android\");\n caps.setCapability(\"automationName\", \"UiAutomator2\");\n caps.setCapability(\"appPackage\", \"com.android.chrome\");\n caps.setCapability(\"appActivity\", \"com.google.android.apps.chrome.Main\");\n caps.setCapability(\"noReset\", true);\n\n // Instantiate Appium Driver\n URL appServer = new URL(\"http://0.0.0.0:4723/wd/hub\");\n driver = new AndroidDriver<MobileElement>(appServer, caps);\n \n}", "@Before\n public void setWebDriver() throws IOException {\n System.setProperty(\"webdriver.chrome.driver\", DRIVER_PATH);\n ChromeOptions chromeOptions = new ChromeOptions();\n chromeOptions.addArguments(\"start-maximized\");\n driver = new ChromeDriver(chromeOptions);\n }", "@Given(\"^Open the Chrome and open google site$\")\t\t\t\t\n public void Open_the_Chrome_and_open_google_site() throws Throwable\t\t\t\t\t\t\t\n {\t\t\n \tdriver = new ChromeDriver();\n \tdriver.get(\"https://accounts.google.com/SignUp\");\n }", "public GAfterSearch(WebDriver chromeDriver) {\n super.chromeDriver = chromeDriver;\n }", "@Test\n @Given(\"I launch browser\")\n public void s01_BrowserMaximizeLaunch() {\n System.setProperty(\"webdriver.chrome.driver\", \"src/ChromeDriver.exe\");\n// Init new instance of ChromeDriver.\n driver = new ChromeDriver();\n// Maximise browser window\n driver.manage().window().maximize();\n System.out.println(\"Step01 PASSED\");\n }", "@Before\n public void start() {\n\n driver = new ChromeDriver();\n driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);\n //driver.manage().window().maximize();\n wait = new WebDriverWait(driver, 10);\n }", "@Test\r\n\tpublic void testcase() throws InterruptedException {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\chromedriver.exe\");\r\n\t\t\r\n\t\t//Step2: Launch the browser\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\t\r\n\t\t//Setp3: Launch URL\r\n\t\tdriver.get(\"http://www.google.com\");\r\n\t\t\r\n\t\tThread.sleep(2000);\r\n\t\t\r\n\t\tdriver.close();\t\r\n\r\n\t}", "@BeforeClass\n public void BeforeTest(){\n Configuration.browser = \"Chrome\";\n\n }", "public void browser() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src/test/resources/Driver/chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.manage().window().maximize();// maximize the window\n\t\tdriver.manage().timeouts().implicitlyWait(50, TimeUnit.SECONDS);\n\n\t}", "@Test\n public void myTest() throws Exception {\n\n WebDriver driver = new ChromeDriver();\n\n driver.get(\"http://www.google.com\");\n\n // RemoteWebDriver does not implement the TakesScreenshot class\n // if the driver does have the Capabilities to take a screenshot\n // then Augmenter will add the TakesScreenshot methods to the instance\n WebDriver augmentedDriver = new Augmenter().augment(driver);\n File screenshot = ((TakesScreenshot) augmentedDriver).getScreenshotAs(OutputType.FILE);\n\n\n //File screenshot = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n // Now you can do whatever you need to do with it, for example copy somewhere\n FileUtils.copyFile(screenshot, new File(\"C:\\\\Dev\\\\screenshot.png\"));\n\n driver.quit();\n }", "private void setSauceWebdriver() {\n\n switch (getBrowserId(browser)) {\n case 0:\n capabilities = DesiredCapabilities.internetExplorer();\n capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n Boolean.valueOf(System.getProperty(\"IGNORE_SECURITY_DOMAINS\", \"false\")));\n break;\n case 1:\n capabilities = DesiredCapabilities.firefox();\n break;\n case 2:\n capabilities = DesiredCapabilities.safari();\n break;\n case 3:\n capabilities = DesiredCapabilities.chrome();\n break;\n case 4:\n capabilities = DesiredCapabilities.iphone();\n capabilities.setCapability(\"deviceName\",\"iPhone Simulator\");\n capabilities.setCapability(\"device-orientation\", \"portrait\");\n break;\n case 5:\n capabilities = DesiredCapabilities.iphone();\n capabilities.setCapability(\"deviceName\",\"iPad Simulator\");\n capabilities.setCapability(\"device-orientation\", \"portrait\");\n break;\n case 6:\n capabilities = DesiredCapabilities.android();\n capabilities.setCapability(\"deviceName\",\"Android Emulator\");\n capabilities.setCapability(\"device-orientation\", \"portrait\");\n break;\n default:\n throw new WebDriverException(\"Browser not found: \" + browser);\n }\n capabilities.merge(extraCapabilities);\n capabilities.setCapability(\"javascriptEnabled\", true);\n capabilities.setCapability(\"platform\", platform);\n capabilities.setCapability(\"version\", version);\n\n try {\n this.driver.set(new RemoteWebDriver(new URL(System\n .getProperty(\"SAUCE_KEY\")), capabilities));\n } catch (MalformedURLException e) {\n LOGGER.log(Level.INFO,\n \"MalformedURLException in setSauceWebdriver() method\", e);\n }\n }", "public WebDriver browserSetup() throws IOException\r\n\t{ \r\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\r\n\t\tSystem.out.println(\"1.Chrome\\n2.Firefox \\nEnter your choice:\");\r\n\t\tString choice=br.readLine();\r\n\t\t\r\n\t\tswitch(choice)\r\n\t\t{\r\n\t\t//To start Chrome Driver\r\n\t\tcase \"1\":\r\n\t\t System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Test Automation\\\\Software\\\\chrome\\\\New Version\\\\chromedriver.exe\");\r\n\t\t ChromeOptions options=new ChromeOptions();\r\n\t\t options.addArguments(\"--disable-notifications\");\r\n\t\t driver=new ChromeDriver(options);\r\n\t\t break;\r\n\t\t\r\n\t\t//To start Firefox Driver\r\n\t\tcase \"2\":\r\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"C:\\\\***\\\\drivers\\\\geckodriver.exe\");\r\n\t\t\tdriver=new FirefoxDriver();\r\n\t\t\tbreak;\r\n\t\t} \r\n\t\t\r\n\t\tdriver.get(url);\r\n\t\t\r\n\t\t//To maximize the window\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\tdriver.manage().timeouts().pageLoadTimeout(8, TimeUnit.SECONDS);\r\n\t\t\r\n\t\treturn driver;\r\n\t}", "public void setUpMethod(){\n driver = WebDriverFactory.getDriver(\"Chrome\");\n //maximize the page\n driver.manage().window().maximize();\n //implicit wait\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n }", "@Given(\"I set up my Chrome Driver\")\n\tpublic void i_am_on_Magalu_HomePage() {\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--start-maximized\");\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:/Users/gocruz/eclipse-workspace/portal.compras/chromedriver.exe\");\n\t\tdriver = new ChromeDriver(options);\n\n\t}", "public static void InvokeBrowser() {\n\t\tString currentDir = System.getProperty(\"user.dir\");\n\t\tSystem.out.println(\"Current Directory \"+currentDir);\n\t\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--incognito\");\n\t\tcapabilities.setCapability(ChromeOptions.CAPABILITY, options);\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\tcurrentDir+\"/lib/chromedriver/36/chromedriver.exe\");\n\t\tdriver = new ChromeDriver(capabilities);\n\t\tdriver.manage().window().maximize();\n\t\t//driver.navigate().to(URL);\n\t\t//logger.info(\"URL to proceed with transaction --> \"+URL);\n\t\t/*BestBuyAddCart.addToCart();\n\t\tdriver.close();\n\t\tdriver.quit();*/\n\t}", "private void setWebdriver() throws Exception {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\tcurrentDir + fileSeparator + \"lib\" + fileSeparator + \"chromedriver.exe\");\n\t\tcapability = DesiredCapabilities.chrome();\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--disable-extensions\");\n\t\toptions.addArguments(\"disable-infobars\");\n\t\tcapability.setCapability(ChromeOptions.CAPABILITY, options);\n\t\tdriver = new ChromeDriver(capability);\n\t\tdriver.manage().deleteAllCookies();\n\t\t_eventFiringDriver = new EventFiringWebDriver(driver);\n\t\t_eventFiringDriver.get(getUrl());\n\t\t_eventFiringDriver.manage().window().maximize();\n\n\t}", "@BeforeClass\n public static void instanceDriver() {\n ChromeOptions options = ConfigUtil.chromeOptions();\n driver = new ChromeDriver(options);\n wait = new WebDriverWait(driver, WEB_DRIVER_TIMEOUT);\n }", "@Before\n public void Setup() { //this is done before every test, chrome driver is saved in a specific location\n\n System.setProperty(\"webdriver.chrome.driver\",\n Constant.CROMEDRIVER);\n\n driver = new ChromeDriver();\n }", "private void initChromeDriver(String appUrl) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"Drivers\\\\chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(appUrl);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t}", "public static WebDriver getRemoteWebDriver(String userName) {\n String browser = PropertyLoader.getProperty(\"browser\");\n System.setProperty(\"webdriver.firefox.marionette\", \".\\\\geckodriver.exe\");\n WebDriver driver = null;\n if (browser.equals(\"chrome\")) {\n return new ChromeDriver();\n } else {\n driver = new FirefoxDriver();\n }\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n driver.get(PropertyLoader.getSiteURL());\n login(driver, userName);\n return driver;\n }", "@BeforeTest\n\tpublic void OpenBrowser() throws InterruptedException {\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\PSQA\\\\Desktop\\\\driver\\\\chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(\"https://www.booking.com/\");\n\t\n\t\t\n\t\tdriver.manage().window().maximize();\n\t\tThread.sleep(100);\n\t\t\n}", "@BeforeMethod\n\tpublic void registerChromeDriver() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\t\"/Users/shwetasharma/Documents/softwares/chromedriver\");\n\t\tdriver = new ChromeDriver();\n\t\tutil = new Utils(driver);\n\t\t// Put a Implicit wait, this means that any search for elements on the\n\t\t// page\n\t\t// could take the time the implicit wait is set for before throwing\n\t\t// exception\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n\t\t// Launch the Applitools hackathon Website\n\t\tdriver.get(\"https://demo.applitools.com/hackathon.html\");\n\t\tdriver.manage().window().maximize();\n\n\t}", "public static WebDriver init_driver_crome(String browser) {\n\t\t\tif(browser.equals(\"chrome\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"G:\\\\software\\\\chromedriver_win32\\\\chromedriver.exe\");\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Browser is initialised\" +browser);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Browser is not initialised\" +browser);\n\t\t\t}\n\t\t\treturn getDriverChrome();\n\t\t}", "public static void setup(String browser) throws Exception{\n if(browser.equalsIgnoreCase(\"firefox\")){\n \tFile pathToBinary = new File(\"C:\\\\Program Files (x86)\\\\Mozilla Firefox 41\\\\firefox.exe\");\n \tFirefoxBinary binary = new FirefoxBinary(pathToBinary);\n \tFirefoxDriver driver = new FirefoxDriver(binary, new FirefoxProfile());\n \t\n \t//System.setProperty(\"webdriver.firefox.driver\",\"C:\\\\Program Files (x86)\\\\Mozilla Firefox\\\\firefox.exe\");\n \t/*DesiredCapabilities capabilies = DesiredCapabilities.firefox();\t\t\t\n capabilies.getBrowserName();\n capabilies.getVersion();*/\n \t\t\t\n \t//create Firefox instance\t \n //driver = new FirefoxDriver(); \n System.out.println(\"Browser Used: \"+browser);\n }\t \n //Check if parameter passed is 'Chrome'\n // https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/chrome/ChromeOptions.html\n // http://www.programcreek.com/java-api-examples/index.php?api=org.openqa.selenium.remote.DesiredCapabilities (Singleton)\n else if(browser.equalsIgnoreCase(\"chrome\")){\t \t \n System.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Selenium\\\\Assets\\\\chromedriver.exe\");\n ChromeOptions opt = new ChromeOptions();\n opt.setBinary(\"C:\\\\Selenium\\\\Assets\\\\chromedriver.exe\");\n opt.setExperimentalOption(\"Browser\", \"Chrome\");\n opt.getExperimentalOption(\"version\");\n \n// DesiredCapabilities capabilies = DesiredCapabilities.chrome();\n// capabilies.setBrowserName(\"chrome\");\n// capabilies.setPlatform(Platform.WINDOWS);\n// capabilies.setVersion(\"38\");\n// DesiredCapabilities capabilities = new DesiredCapabilities();\n \n //Create Chrome instance\n driver = new ChromeDriver(opt);\t \n }\n \n //Check if parameter passed is 'Safari'\t\n else if(browser.equalsIgnoreCase(\"safari\")){\t \t \n \tSystem.setProperty(\"webdriver.safari.driver\",\"C:/safaridriver.exe\");\n \t\n \t//System.setProperty(\"webdriver.safari.noinstall\", \"true\");\n \tdriver = new SafariDriver();\n \t\n /*\tSafariOptions options = new SafariOptions();\n \tSafariDriver driver = new SafariDriver(options);\n \tDesiredCapabilities capabilities = DesiredCapabilities.safari();\n \tcapabilities.setCapability(SafariOptions.CAPABILITY, options);*/\n }\n \n //Check if parameter passed is 'IE'\t \n else if(browser.equalsIgnoreCase(\"ie\")){\n \t//String IE32 = \"C:\\\\Selenium\\\\Assets\\\\IEDriverServer_32.exe\"; //IE 32 bit\n\t\t\tString IE64 = \"C:\\\\Selenium\\\\Assets\\\\IEDriverServer_64.exe\"; //IE 64 bit\n \tSystem.setProperty(\"webdriver.ie.driver\",IE64);\n \t\n /* \tDesiredCapabilities capabilies = DesiredCapabilities.internetExplorer();\n \tcapabilies.setBrowserName(\"ie\");\n capabilies.getBrowserName();\n capabilies.getPlatform();\n capabilies.getVersion();*/\n \n \t//Create IE instance\n \tdriver = new InternetExplorerDriver();\n }\t \n else{\t \n //If no browser passed throw exception\t \n throw new Exception(\"Browser is not correct\");\t \n }\t \n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\t\t\n\t}", "@BeforeTest //special type of testng method which alway run before.\r\n\t\t\tpublic void openBrowser() {\r\n\t\t\t\tWebDriverManager.chromedriver().setup();\r\n\t\t\t\tdriver = new ChromeDriver();\r\n\t\t\t\tdriver.get(\"https://locator.chase.com/\");\r\n\t\t\t}", "public Capabilities getCapabilities(WebDriver driver) {\n return ((RemoteWebDriver) driver).getCapabilities();\n }" ]
[ "0.80990136", "0.7694703", "0.74720854", "0.74507314", "0.72594744", "0.72567165", "0.7230472", "0.71889", "0.71884495", "0.71646863", "0.71358836", "0.711776", "0.71108484", "0.7107543", "0.71067727", "0.70857215", "0.7069713", "0.703702", "0.7028886", "0.70217144", "0.6983631", "0.69816077", "0.6930064", "0.6890258", "0.6872563", "0.6837072", "0.68332714", "0.68019974", "0.6796889", "0.67825496", "0.67742276", "0.67608166", "0.6755165", "0.6747056", "0.6731968", "0.6723526", "0.67135143", "0.66974247", "0.66875213", "0.66851664", "0.667645", "0.66651016", "0.6661153", "0.66566205", "0.66488403", "0.6642297", "0.66147447", "0.6609127", "0.6607844", "0.66014105", "0.65955335", "0.65945375", "0.65801007", "0.6578948", "0.6569196", "0.65409464", "0.653984", "0.65397525", "0.6539142", "0.6535598", "0.6518832", "0.65117264", "0.6510379", "0.650752", "0.650175", "0.6494079", "0.6470496", "0.646199", "0.645479", "0.6454493", "0.64532137", "0.6448634", "0.64442736", "0.6436487", "0.6433002", "0.64235216", "0.6422657", "0.6421907", "0.6418717", "0.6409677", "0.6400896", "0.6398176", "0.63833594", "0.6381685", "0.63801444", "0.63603795", "0.63553566", "0.6346136", "0.63433725", "0.6332536", "0.6332055", "0.63242996", "0.6324149", "0.63221204", "0.6319175", "0.63167626", "0.6304462", "0.6303149", "0.62994266", "0.6288225", "0.6286224" ]
0.0
-1
Get the image from image registry given the key
public Image getImage(String key) { return imageRegistry.get(key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Image getImageFromRegistry(String key){\r\n\t\treturn getDefault().getImageRegistry().get(key);\r\n\t}", "public static ImageDescriptor getImageDescriptorFromRegistry(String key){\r\n\t\treturn getDefault().getImageRegistry().getDescriptor(key);\r\n\t}", "public static Image getImage(Images img)\n {\n return plugin.getImageRegistry().get(img.getKey());\n }", "public ImageIcon getImage(String key) throws IOException\n\t{\n\t\tif(map == null)\n\t\t{\n\t\t\tcreateHash();\n\t\t}\n\t\t\n\t\treturn(map.get(key));\n\t}", "public static Bitmap get(String key) {\n Bitmap bitmap = getFromMemory(key);\n if (bitmap == null) {\n bitmap = getFromDisk(key);\n }\n return bitmap;\n }", "abstract public String getImageKey();", "public static Image getImageFromRegistry(String path) {\r\n\t\treturn getImageFromRegistry(getDefault(), ICON_PATH, path);\r\n\t}", "public native String getImageAttribute(String key) throws MagickException;", "public Bitmap getBitmap(@NonNull final String key) {\n return getBitmap(key, null);\n }", "public Bitmap getFromCache(final String key) {\n\n\t\ttry {\n\t\t\tif (Constants.CACHE_DIR_PATH.endsWith(\"/\"))\n\t\t\t\treturn BitmapFactory.decodeFile(Constants.CACHE_DIR_PATH + key);\n\t\t\telse\n\t\t\t\treturn BitmapFactory.decodeFile(Constants.CACHE_DIR_PATH + \"/\"\n\t\t\t\t\t\t+ key);\n\t\t} catch (Error e) {\n\n\t\t\t//Logs.show(e);\n\n\t\t}\n\t\treturn null;\n\t}", "private Bitmap getBitmapFromLruCache(String key) {\r\n return mLruCache.get(key);\r\n }", "public void setImage(String key, Image image)\n {\n imageRegistry.put(key, image);\n }", "@Override\n\tpublic Bitmap fetch(String key) {\n\t\treturn (Bitmap) mMemoryCache.get(key);\n\t}", "public BufferedImage GetImage(String name) { return ImageList.get(name); }", "public String getImgKey() {\n return imgKey;\n }", "private Image getImage(boolean isSelected) {\n\t\tString key = isSelected ? CHECKED_IMAGE : UNCHECKED_IMAGE;\n\t\treturn imageRegistry.get(key);\n\t}", "public void getImagePath(String imagePath);", "public Image getImage(String token) {\n\t\tImage image = spriteMap.get(token);\n\t\tif (image == null) {\n\t\t\tSystem.out.println(\"null image on input \" + token);\n\t\t}\n\t\treturn image;\n\t}", "private Bitmap getBitmapFromMemCache(String key) {\n return mLruCache.get(key);\n }", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/images/{name}\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Image> readImage(\n @Path(\"name\") String name);", "public com.google.common.util.concurrent.ListenableFuture<yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image> get(\n yandex.cloud.api.containerregistry.v1.ImageServiceOuterClass.GetImageRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getGetMethod(), getCallOptions()), request);\n }", "java.lang.String getPackageImageURL();", "@Override\n public common.FileLocation lookup(int key) throws RemoteException {\n common.FileLocation fl = map.get(key);\n if (fl == null) {\n printAct(\">requested of key: \" + key + \", returned null\");\n } else {\n printAct(\">requested of key: \" + key + \", returned: \" + fl);\n }\n return fl;\n }", "java.lang.String getImage();", "String getImage();", "public static BufferedImage loadImage(String imageName) {\n try {\n InputStream inputStream = TextureRegistry.class.getClassLoader().getResourceAsStream(\"images/\" + imageName);\n if (inputStream == null) {\n System.err.println(\"Image file '\" + imageName + \"' could not be found.\");\n System.exit(1);\n }\n\n return ImageIO.read(inputStream);\n } catch (IOException ex) {\n System.err.println(\"Failed to load image '\" + imageName + \"'.\");\n ex.printStackTrace();\n System.exit(1);\n return null;\n }\n }", "public Bitmap getImageCache(Integer cacheKey)\n {\n synchronized (mLinkedHashMap)\n {\n Bitmap bitmap;\n // Get file from cache\n String file = mLinkedHashMap.get(cacheKey);\n if (file != null)\n {\n bitmap = BitmapFactory.decodeFile(file);\n Log.i(\"DiskLruCache\", \"DiskCacheHit for Image with CacheKey: \"+cacheKey.toString());\n return bitmap;\n }\n else\n {\n // Construct existing file path\n String cacheKeyStr = String.valueOf(cacheKey);\n String existingFile = createFilePath(cacheDirectory, cacheKeyStr);\n // Get the file using the constructed file path\n assert existingFile != null;\n File existFile = new File(existingFile);\n if (existFile.exists())\n {\n // If the file exists, we will store the the key in reference list\n referenceAdd(cacheKey, existingFile);\n return BitmapFactory.decodeFile(existingFile);\n }\n }\n return null;\n }//synchronized (mLinkedHashMap)\n }", "private Image loadImage (String path) {\n\t\tImageIcon imageicon = new ImageIcon (path);\r\n\t\tImage newImage = imageicon.getImage();\r\n\t\treturn newImage;\r\n\t}", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByHandler();", "private BufferedImage getImage(String f) {\n BufferedImage image = null;\n File file = new File(f);\n\n try {\n image = ImageIO.read(file);\n }\n catch (Exception ex) {\n JOptionPane.showMessageDialog(\n null,\n \"Image could not be read!\",\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n }\n return image;\n }", "public static ImageIcon get(String name) {\n return get(\"\", name);\n }", "public ImagePull registry(String registry) {\n getParameters().put(\"registry\", registry);\n return this;\n }", "protected abstract Image loadImage();", "private Image getImage(String name) {\n InputStream in =\n getClass().getResourceAsStream(\"/canfield/resources/\" + name);\n try {\n return ImageIO.read(in);\n } catch (IOException excp) {\n return null;\n }\n }", "public static ImageDescriptor getImageDescriptor(Images img)\n {\n return plugin.getImageRegistry().getDescriptor(img.getKey());\n }", "String getItemImage();", "public Image getIconImage(){\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"Reportes/logoAlk.jpg\"));\n return retValue;\n }", "public static ImageIcon get(String subdir, String name) {\n ImageIcon icon = getIfAvailable(subdir, name);\n if (icon == null) {\n String ext = name.indexOf('.') != -1 ? \"\" : \".png\";\n throw new NullPointerException(\"/images/\" + subdir + \"/\" + name + ext + \" not found\");\n }\n return icon;\n }", "public yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image get(yandex.cloud.api.containerregistry.v1.ImageServiceOuterClass.GetImageRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getGetMethod(), getCallOptions(), request);\n }", "private BufferedImage getImage(String filename) {\n\t\ttry {\n\t\t\t// Grab the InputStream for the image.\n\t\t\tInputStream in = getClass().getResourceAsStream(filename);\n\t\t\t\n\t\t\t// Then read it in.\n\t\t\treturn ImageIO.read(in);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"The image was not loaded.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\treturn null;\n\t}", "public static String readString(KeyRegWindows h, String key, String value) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException {\n key = key.replace(\"/\", \"\\\\\");\n int[] handles = (int[]) regOpenKey.invoke(h.root, new Object[]{h.key, toCstr(key), KeyStatusWindows.KEY_READ.key});\n\n if (handles[1] != RegStatusWindows.REG_SUCCESS.key) {\n return null;\n }\n\n byte[] valb = (byte[]) regQueryValueEx.invoke(h.root, new Object[]{handles[0], toCstr(value)});\n\n regCloseKey.invoke(h.root, new Object[]{handles[0]});\n\n return (valb != null ? new String(valb).trim() : null);\n }", "public static Image getSearchInfoImage() {\n return ImageUtil.getImage(ApplicationPropertiesUtil\n .getProperty(ApplicationPropertiesUtil.PATH_SEARCH_ICON));\n }", "private void addImage(ImageRegistry reg, String imagePath) {\n \n final Bundle bundle = Platform.getBundle(ID);\n \n final Path attachImgPath = new Path(imagePath);\n final ImageDescriptor attachImg = ImageDescriptor.createFromURL(\n FileLocator.find(bundle, attachImgPath, null));\n reg.put(imagePath, attachImg);\n \n }", "private String RegQuery(String key) {\n\n\t\tfinal String REGQUERY_UTIL = \"reg query \";\n\t\tfinal String REGSTR_TOKEN = \"REG_SZ\";\n\t\tString QUERY = REGQUERY_UTIL + key;\n\t\tString result;\n\n\t\tfinal class StreamReader extends Thread {\n\t\t\tprivate InputStream is;\n\t\t\tprivate StringWriter sw;\n\n\t\t\tStreamReader(InputStream is) {\n\t\t\t\tthis.is = is;\n\t\t\t\tsw = new StringWriter();\n\t\t\t}\n\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tint c;\n\t\t\t\t\twhile ((c = is.read()) != -1)\n\t\t\t\t\t\tsw.write(c);\n\t\t\t\t}\n\t\t\t\tcatch (IOException e) { ; }\n\t\t\t}\n\n\t\t\tString getResult() {\n\t\t\t\treturn sw.toString();\n\t\t\t}\n\t\t}\n\n\t\ttry {\n\t\t\tProcess process = Runtime.getRuntime().exec(QUERY);\n\t\t\tStreamReader reader = new StreamReader(process.getInputStream());\n\t\t\treader.start();\n\t\t\tprocess.waitFor();\n\t\t\treader.join();\n\t\t\tresult = reader.getResult();\n\t\t\tint p = result.indexOf(REGSTR_TOKEN);\n\t\t\tif (p == -1)\n\t\t\t\tresult = null;\n\t\t\tresult = result.substring(p + REGSTR_TOKEN.length()).trim();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tlogger.debug(e.getMessage());\n\t\t\tresult = null;\n\t\t}\n\n\t\tlogger.debug(result);\n\t\treturn result;\n\t}", "public Image getHotImage () {\r\n\tcheckWidget();\r\n\treturn hotImage;\r\n}", "public WritableImage getImage(){\n\t\tWritableImage image = SwingFXUtils.toFXImage(BfImage, null);\r\n\t\treturn image;\r\n\t}", "com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByHandlerOrBuilder();", "public static Image getImage(String string) {\n\t Bundle bundle = FrameworkUtil.getBundle(Activator.class);\n\t URL url = FileLocator.find(bundle, new Path(\"icons/\" + string), null);\n\t ImageDescriptor image = ImageDescriptor.createFromURL(url);\n\t return image.createImage();\n\t}", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/images/{name}\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Image> readImage(\n @Path(\"name\") String name, \n @QueryMap ReadImage queryParameters);", "public static BufferedImage readImage(String imageName) {\n\t\tBufferedImage image = null;\n\t\ttry {\n\t\t\tURL url = Main.class.getResource(\"/\"+imageName);\n\t\t\tString file = (url.getPath());\n\t\t\tSystem.out.println(url);\n\t\t\timage = ImageIO.read(new File(file));\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"[Error in DisplayObject.java:readImage] Could not read image \" + imageName);\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn image;\n\t}", "@Override\n\tprotected Object handleGetObject(String key) {\n\t\treturn _resourceBundle.getObject(key);\n\t}", "public ImageDescriptor getImageDescriptor(String imagePath) {\n\t\tImageDescriptor descriptor = getImageRegistry().getDescriptor(imagePath);\n\t\tif (descriptor == null) {\n\t\t\tdescriptor = ResourceLocator.imageDescriptorFromBundle(SARLEclipsePlugin.PLUGIN_ID, imagePath).orElse(null);\n\t\t\tif (descriptor != null) {\n\t\t\t\tgetImageRegistry().put(imagePath, descriptor);\n\t\t\t}\n\t\t}\n\t\treturn descriptor;\n\t}", "static BufferedImage getImage(String directory) {\n\t\tClassLoader loader = DrawingUtility.class.getClassLoader();\n\t\tBufferedImage image;\n\t\ttry {\n\n\t\t\timage = ImageIO.read(loader.getResource(directory));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"Fail load image from \" + directory);\n\t\t\timage = null;\n\t\t}\n\t\treturn image;\n\n\t}", "public Image getOne();", "int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}", "public static BufferedImage loadImage(String ref) {\n BufferedImage b1 = null;\n try {\n b1 = ImageIO.read(new File(ref));\n } catch (IOException e) {\n System.out.println(\"error loading the image: \" + ref + \" : \" + e);\n }\n return b1;\n }", "static BufferedImage loadImage(String filename){\r\n\t\t\r\n\t\tBufferedImage image = null;\r\n\t\ttry{\r\n\t\t\timage = ImageIO.read(View.class.getResource(filename));\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace(System.err);\r\n\t\t}\r\n\t\t\r\n\t\treturn image;\r\n\t}", "private BufferedImage loadPic(String name) {\n\t\tBufferedImage pic=null;\n\t\ttry {\n\t\t\tpic = ImageIO.read(new File(\"store/\"+name));\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\tSystem.out.println(ex);\n\t\t}\n\t\treturn pic;\n\t}", "public Image getImageById(final String imageId)\n {\n GetImageByIdQuery getImageByIdQuery = new GetImageByIdQuery(imageId);\n List<Image> ImageList = super.queryResult(getImageByIdQuery);\n if (CollectionUtils.isEmpty(ImageList) || ImageList.size() > 1)\n {\n LOG.error(\"The Image cannot be found by this id:\" + imageId);\n return null;\n }\n return ImageList.get(0);\n }", "private BufferedImage loadImage(String path) {\n try {\n return ImageIO.read(getClass().getClassLoader().getResource(path));\n } catch (IOException e) {\n e.printStackTrace();\n System.exit(1);\n }\n\n return null;\n }", "Registry getRegistry( );", "static public AppImage browseForImage() {\n // If there is no image ask the user to choose image from file:\n JFileChooser file_chooser = new JFileChooser();\n file_chooser.setAcceptAllFileFilterUsed(false);\n file_chooser.addChoosableFileFilter(new FileFilter() {\n public boolean accept(File file) {\n if (file.isDirectory()) return true;\n String extension = FileUtils.getFileExtension(file);\n return extension.equals(\"png\");\n }\n\n public String getDescription() {\n return \"Portable Network Graphics (PNG)\";\n }\n });\n int ret_value = file_chooser.showOpenDialog(App.instance);\n AppImage app_image = null;\n if (ret_value == JFileChooser.APPROVE_OPTION) {\n // Read the selected file and do scaling on it:\n File file = file_chooser.getSelectedFile();\n String path = file.getAbsolutePath();\n\n // Create the image and add it to cache:\n app_image = Resources.loadAppImage(path);\n addImage(app_image);\n writeRepository();\n }\n\n return app_image;\n }", "public IconResolver resolve(ComponentKey key) {\n String packPackage = IconDatabase.getByComponent(mContext, key);\n if (mProviders.containsKey(packPackage)) {\n // The icon provider package is available.\n try {\n IconPack pack = mProviders.get(packPackage);\n IconPack.Data data = pack.getData(mContext.getPackageManager());\n if (data.drawables.containsKey(key.componentName)) {\n int drawableId = pack.getDrawableId(mContext.getPackageManager(), key.componentName);\n if (drawableId != 0) {\n return new IconResolverExternal(mContext.getPackageManager(), pack.getAi(),\n drawableId,\n data.calendarPrefix.get(key.componentName),\n data.clockMetadata.get(drawableId));\n }\n }\n if (data.hasMasking()) {\n return new IconResolverMasked(mContext, data, pack.getAi(), key.hashCode());\n }\n } catch (PackageManager.NameNotFoundException | XmlPullParserException | IOException ignored) {\n }\n } else if (!packPackage.isEmpty()) {\n // The provider is not available, save for next time.\n IconDatabase.resetForComponent(mContext, key);\n }\n return null;\n }", "public Image getImage(String imagePath) {\n\t\tfinal ImageDescriptor descriptor = getImageDescriptor(imagePath);\n\t\tif (descriptor == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn descriptor.createImage();\n\t}", "public Image getImage(int imageID) {\n\t if(imageID >= 0 && imageID < images.size()) {\n\t return images.get(imageID).getImage();\n\t }\n\t \n\t return null;\n\t}", "private ImageIcon openImageIcon(String name){\n return new ImageIcon(\n getClass().getResource(name)\n );\n }", "private byte[] getGroupImage(Group group) {\n trGetGroupImage.setUser(user);\n trGetGroupImage.setGroup(group);\n trGetGroupImage.execute();\n\n return trGetGroupImage.getResult();\n }", "public Img getImage(long id){\n\n Img imageObj = null;\n\n List<Img> imgList = null;\n imgList = Img.getImageList(id);\n if(imgList!=null && imgList.size()>0) {\n\n imageObj = imgList.get(0);\n }\n return imageObj;\n }", "public BufferedImage getImage(String fileName){\r\n\t\tClassLoader classLoader = Thread.currentThread().getContextClassLoader();\r\n\t\tInputStream input = classLoader.getResourceAsStream(fileName);\r\n\t\tBufferedImage image = null;\r\n\t\ttry {\r\n\t\t\timage = ImageIO.read(input);\r\n\t\t} catch (IOException e1) {\r\n\t\t\tSystem.out.println(\"invalid image file name\");\r\n\t\t}\r\n\t\t//System.out.println(image);\r\n\t\treturn image;\r\n\t}", "public Object getObject(String key);", "public BufferedImage loadImage(String path){\n\t\ttry {\n\t\t\timage = ImageIO.read(getClass().getResource(path));\n\t\t\tSystem.out.println(\"Sprite Sheet Loaded\");\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Image file not found\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn image;\n\t}", "public abstract Image getImage();", "public abstract Image getImage();", "public ImageContainer getImage(String username, String imageName) {\r\n\t\tImageContainer ic;\r\n\t\tPoint p = StaticFunctions.hashToPoint(username, imageName);\r\n\t\t//If the image is saved on the bootstrap, loadImageContainer, otherwise start routing to the destinationPeer \r\n\t\tif(lookup(p)) {\r\n\t\t\ttry {\r\n\t\t\t\tic = loadImageContainer(username, imageName);\r\n\t\t\t\treturn ic;\r\n\t\t\t} catch (ClassNotFoundException | IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tString destinationPeerIP = routing(p).getIp_adresse();\r\n\t\t\tImage img = new PeerClient().getImage(destinationPeerIP, username, imageName);\r\n\t\t if(img != null) {\r\n\t\t \t ic = RestUtils.convertImgToIc(img);\r\n\t\t \t return ic;\r\n\t\t }\r\n\t\t}\r\n\t\treturn null;\r\n\t\t\r\n\t}", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Imagenes/Sisapre001.png\"));\n return retValue;\n }", "protected Object handleGetObject(String key) {\n/* 117 */ return getBundle().getObject(key);\n/* */ }", "public Object lookupConfigurationEntry(String key);", "public static Image getImage(String filename) {\n Image img = Toolkit.getDefaultToolkit().getImage(filename);\n MediaTracker mediaTracker = new MediaTracker(new Container());\n mediaTracker.addImage(img, 0);\n try {\n mediaTracker.waitForID(0);\n } catch (InterruptedException e) {\n return null;\n }\n return img;\n }", "public ImageDescriptor getImageDescriptor();", "public void get(yandex.cloud.api.containerregistry.v1.ImageServiceOuterClass.GetImageRequest request,\n io.grpc.stub.StreamObserver<yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image> responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getGetMethod(), getCallOptions()), request, responseObserver);\n }", "public Image getSeven();", "public int getImage();", "public URI getURI(final String key) {\n return get(URI.class, key);\n }", "protected BufferedImage loadImage(String nameOfFile)\n {\n BufferedImage img;\n try{\n img= ImageIO.read(new File(\"\"+nameOfFile));\n return img;\n }\n catch(IOException e)\n {\n System.out.println(e);\n }\n return null;\n }", "String getImagePath();", "String getImagePath();", "public void get(yandex.cloud.api.containerregistry.v1.ImageServiceOuterClass.GetImageRequest request,\n io.grpc.stub.StreamObserver<yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMethod(), responseObserver);\n }", "Registry getRegistry();", "Registry getRegistry();", "protected ImageDescriptor getImageDescriptorFromPath( String imageName) {\r\n\t\tURL url = FileLocator.find(getBundle(), new Path(imageName), null);\r\n\t\treturn ImageDescriptor.createFromURL(url);\r\n\t}", "public Image getInstanceImage() {\r\n return this.image;\r\n }", "public static BufferedImage getImage(String name) {\r\n\t\treturn (BufferedImage) getInstance().addResource(name);\r\n\t}", "@Override\r\n\tpublic String searchimage(int cbid) throws Exception {\n\t\treturn dao.searchimage(cbid);\r\n\t}", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Imagenes/Icono.png\"));\n return retValue;\n}", "@Nonnull\n Image getImageFor(@Nonnull LocationRepresentation representation);", "protected Image retrieveImage(String imageLocationPath) {\t\n\t\tImage image = null;\n\t\ttry {\n\t\t\timage = new Image(imageLocationPath);\n\t\t}\n\t\tcatch (NullPointerException | IllegalArgumentException e) {\n\t\t\tnew ErrorHandler(\"Fatal error displaying media\");\n\t\t}\n\t\t\n\t\treturn image;\n }", "public Image loadImage(String name) {\n String filename = \"images/\" + name;\n return new ImageIcon(filename).getImage();\n }", "@Override\n\tpublic Object getObject(String key) {\n\t\tif (mInternalCache.contains(key)) {\n\t\t\ttry {\n\t\t\t\treturn Base64.fromString(mInternalCache.getString(key, null));\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.e(TAG, \"Failed to get the object from cache !\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"imagenes/Icon.jpg\"));\n return retValue;\n }", "@Nonnull\n static ImageKey of(@Nonnull String groupId, @Nonnull String imageId, int width, int height) {\n return UIInternal.get()._ImageKey_of(groupId, imageId, width, height);\n }" ]
[ "0.8656896", "0.76830435", "0.7078479", "0.6830863", "0.6632634", "0.64013183", "0.63642013", "0.61829156", "0.6177488", "0.61594576", "0.6057065", "0.5915559", "0.58988315", "0.5883915", "0.5822265", "0.5680956", "0.5631115", "0.5610847", "0.5567473", "0.5545871", "0.5540562", "0.55251527", "0.5500984", "0.54989094", "0.5469039", "0.5449902", "0.5419629", "0.54066634", "0.53864884", "0.5381186", "0.537489", "0.5371994", "0.53400147", "0.53263795", "0.532478", "0.5318644", "0.5315188", "0.5314145", "0.53005147", "0.5296511", "0.52659017", "0.52469295", "0.5243214", "0.5232563", "0.5227861", "0.5226704", "0.5223722", "0.52188", "0.5216307", "0.52038425", "0.5203589", "0.52022845", "0.52006423", "0.5199383", "0.5193695", "0.5179728", "0.5175837", "0.5170249", "0.51607853", "0.51570684", "0.5151444", "0.513542", "0.5131921", "0.5127494", "0.51257473", "0.51231325", "0.51209694", "0.5116452", "0.5102056", "0.51003474", "0.5095085", "0.5089284", "0.5089284", "0.50834584", "0.50813967", "0.50624466", "0.50568813", "0.5054572", "0.5042783", "0.5041975", "0.5030966", "0.5027009", "0.50208634", "0.50145864", "0.5013292", "0.5013292", "0.5010538", "0.50048393", "0.50048393", "0.50038564", "0.50001186", "0.49958906", "0.49932793", "0.4992837", "0.49897274", "0.49885428", "0.49806118", "0.49783832", "0.49770236", "0.49752235" ]
0.8362295
1
Assosiate the image with image key
public void setImage(String key, Image image) { imageRegistry.put(key, image); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public String getImageKey();", "public String getImgKey() {\n return imgKey;\n }", "public native String getImageAttribute(String key) throws MagickException;", "public Image getImage(String key)\n {\n return imageRegistry.get(key);\n }", "Builder addImage(ImageObject value);", "void setImage(String image);", "void lSetImage(Image img);", "void setImage(TokenEntry entry, @NonNull String newImage);", "public void setImage(int imageId) {\n this.imageId=imageId;\n\t}", "Builder addImage(String value);", "public void setImageName(String name) {\n imageToInsert = name;\n}", "public AbstractImageAdapter(final Image image, final String key) {\n this.image = image;\n this.key = key;\n if (log.isDebugEnabled()) {\n log.debug(\"New ImageAdapter created for key: \" + key);\n }\n }", "public ImageIcon getImage(String key) throws IOException\n\t{\n\t\tif(map == null)\n\t\t{\n\t\t\tcreateHash();\n\t\t}\n\t\t\n\t\treturn(map.get(key));\n\t}", "public void setAmusementObjectImageA(int imageId){\r\n amusementObjectImageA = imageId;\r\n }", "public native boolean setImageAttribute(String key, String value)\n\t\t\tthrows MagickException;", "public void setImage(String _image)\n {\n this.image = _image;\n }", "public void setImage(Image img) {\r\n this.img = img;\r\n }", "public void setImage(String image){\n this.image = image;\n }", "Builder addImage(ImageObject.Builder value);", "public void setImage(Image itemImg) \n {\n img = itemImg;\n }", "Person addImage(String name, String imagePath);", "public void keyPressed()\n{\n // If the image counter is smaller than the no of images availabe.\n if(imageCounter < noOfImages)\n {\n // If left arrow key is pressed and image counter is greater than 1\n if (keyCode == LEFT && imageCounter > 1) \n // decrease counter to show previous image.\n imageCounter--;\n else\n // increase counter to show previous image.\n imageCounter++;\n \n // Load both normal and COSFIRE image\n if (imageCounter<10)\n {\n normal_img = loadImage(originals+\"symbol00\"+imageCounter+\".jpg\");\n }\n else\n {\n normal_img = loadImage(originals+\"symbol0\"+imageCounter+\".jpg\");\n }\n\n \n \n cosfire_img = loadImage(path+\"symbol\"+imageCounter+\"_COSFIRE.jpg\"); \n cosfire_img2 = loadImage(path2+\"symbol\"+imageCounter+\"_COSFIRE.jpg\"); \n }\n else\n {\n // Reset image counter to 1 when it reaches the maximum number of symbols.\n imageCounter=1;\n }\n}", "private void setUpImage() {\n Bitmap icon = BitmapFactory.decodeResource( this.getResources(), R.drawable.hotel_icon );\n map.addImage( MARKER_IMAGE_ID, icon );\n }", "void setImageFromFile(File imageFile);", "public void setImage(String image) {\n\t\t this.image = image;\n\t}", "public void setImage(String image) {\n this.image = image;\n }", "public void setImage(String image) {\n this.image = image;\n }", "public void setImage(byte[] image) {\n this.image = image;\n }", "public void setImage(byte[] image) {\n this.image = image;\n }", "private void setImage(Bitmap image) {\n }", "public void getImagePath(String imagePath);", "public void setImage(Image image) {\n this.image = image;\n }", "Builder addImage(URL value);", "public void store_image(Images image) {\n\t\tir.save(image);\n\t}", "protected abstract Image loadImage();", "public void setImg(String img) {\n this.img = img;\n }", "private void fillImageData(TopicResource topicResource) {\n EntityImageManagement globalIdImageMangement = ServiceLocator\n .findService(EntityImageManagement.class);\n String bannerImageId = \"topic.\" + topicResource.getTopicId();\n if (!globalIdImageMangement.hasCustomImage(bannerImageId, ImageType.BANNER)) {\n bannerImageId = EntityImageManagement.DEFAULT_IMAGE_ENTITY_ID;\n }\n topicResource.setBannerImageId(bannerImageId);\n String profileImageId = \"topic.\" + topicResource.getTopicId();\n if (!globalIdImageMangement.hasCustomImage(profileImageId, ImageType.PROFILE)) {\n profileImageId = EntityImageManagement.DEFAULT_IMAGE_ENTITY_ID;\n }\n topicResource.setProfileImageId(profileImageId);\n // TODO date attribute is deprecated and should be removed in next version\n Date imageDate;\n try {\n // TODO should be using the imageManagement.getVersionString\n imageDate = globalIdImageMangement\n .getImageLastModified(bannerImageId, ImageType.BANNER);\n if (imageDate == null) {\n // TODO better set build timestamp?\n imageDate = new Date(0);\n }\n } catch (AuthorizationException e) {\n imageDate = new Date(0);\n }\n topicResource.setLastBannerImageModificationDate(imageDate);\n try {\n imageDate = globalIdImageMangement.getImageLastModified(profileImageId,\n ImageType.PROFILE);\n if (imageDate == null) {\n // TODO better set build timestamp?\n imageDate = new Date(0);\n }\n } catch (AuthorizationException e) {\n imageDate = new Date(0);\n }\n topicResource.setLastProfileImageModificationDate(imageDate);\n ImageManager imgManagement = getImageManagement();\n try {\n topicResource.setBannerImageVersion(imgManagement.getImageVersionString(\n EntityBannerImageDescriptor.IMAGE_TYPE_NAME, bannerImageId));\n } catch (ImageNotFoundException | AuthorizationException e) {\n // should not occur since we have access and there is always a default image\n LOGGER.error(\"Unexpected exception while getting profile image version\", e);\n topicResource.setBannerImageVersion(\"0\");\n }\n try {\n topicResource.setProfileImageVersion(imgManagement.getImageVersionString(\n EntityProfileImageDescriptor.IMAGE_TYPE_NAME, profileImageId));\n } catch (ImageNotFoundException | AuthorizationException e) {\n // should not occur since we have access and there is always a default image\n LOGGER.error(\"Unexpected exception while getting profile image version\", e);\n topicResource.setProfileImageVersion(\"0\");\n }\n }", "public void setImage(String Image) {\n this.Image = Image;\n }", "public int getImageId(){\n \t\treturn imageId;\n \t}", "private void createImageMap(final ValueMap properties) {\n if (!(properties.containsKey(\"imageMap\"))) {\n return;\n }\n try {\n final String mapDefinition = properties.get(\"imageMap\", \"\");\n if (StringUtils.isNotEmpty(mapDefinition)) {\n this.imageMap = ImageMap.fromString(mapDefinition);\n this.imageMapId = \"map_\" + Math.round(Math.random() * 2147483647.0D) + \"_\" + System.currentTimeMillis();\n }\n\n } catch (final IllegalArgumentException iae) {\n this.imageMap = null;\n this.imageMapId = null;\n }\n }", "java.lang.String getImage();", "@Override\n public String getPicPhoto() {\n return pic_filekey;\n }", "public void setImg_1(String img_1) {\n this.img_1 = img_1;\n }", "private void makeImgToTag() {\n\t\timgToTag = new HashMap<String, HashSet<String>>();\n\t\t// Goes through the tagtoimg map to create this map\n\t\tfor (String tag : tagToImg.keySet()) {\n\t\t\tfor (String pathName : tagToImg.get(tag)) {\n\t\t\t\tif (imgToTag.containsKey(pathName))\n\t\t\t\t\timgToTag.get(pathName).add(tag);\n\t\t\t\telse {\n\t\t\t\t\tHashSet<String> tags = new HashSet<String>();\n\t\t\t\t\ttags.add(tag);\n\t\t\t\t\timgToTag.put(pathName, tags);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void setAmusementObjectImageB(int imageId){\r\n amusementObjectImageB = imageId;\r\n }", "public void changeImage(){\n if(getImage()==storeItemImg) setImage(selected);\n else setImage(storeItemImg);\n }", "private void setImage() throws FileNotFoundException {\n\t\timage = new Image(new FileInputStream(path));\n\t}", "public Image getOne();", "void setImage(PImage img) {\n _img = img;\n }", "private void createUpdateImage(Item item) throws Exception {\r\n //cria a imagem\r\n new Image().saveImage(item.getImagem(), item.getNome());\r\n \t}", "private void createNewImage(final String token, final GMImage image) throws JSONException {\n httpRequest.createImage(token, image.getJson().toString()).enqueue(new Callback<ResponseBody>() {\n @Override\n public void onResponse(Call<ResponseBody> call, Response<ResponseBody> res) {\n if (res.code() == 200) /* OK */ {\n // change sync state to modified\n image.setSyncState(GMTable.GMSyncState.SYNC);\n dbHelper.update(image);\n\n // notify\n notifyUploadSuccess();\n\n } else {\n notifyUploadFail();\n }\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n t.printStackTrace();\n\n // notify fail after retry reach limit\n if (((Integer) image.getTag(TAG_RETRY)) >= GMGlobal.RETRY_LIMIT) {\n notifyUploadFail();\n }\n\n // retry upload image information\n new Retry() {\n @Override\n protected void handle(Object... params) {\n try {\n createNewImage((String) params[0], (GMImage) params[1]);\n } catch (JSONException e) {\n e.printStackTrace();\n notifyUploadFail();\n }\n }\n }.execute(token, image);\n }\n });\n }", "void setImage(Layer layer, Image image);", "public static void write(WImage img, String fname, Context context,\n\t\t\tLongWritable key) {\n\t\tBufferedImage bi = new BufferedImage(img.getWidth(), img.getHeight(),\n\t\t\t\tBufferedImage.TYPE_BYTE_GRAY);\n\n\t\tWritableRaster r = bi.getRaster();\n\n\t\tr.setSamples(0, 0, img.getWidth(), img.getHeight(), 0, img.getData());\n\t\ttry {\n\t\t\tFileSystem dfs = FileSystem.get(context.getConfiguration());\n\t\t\tPath newimgpath = new Path(context.getWorkingDirectory(), context\n\t\t\t\t\t.getJobID().toString()\n\t\t\t\t\t+ \"/\" + key.get());\n\t\t\tdfs.createNewFile(newimgpath);\n\t\t\tFSDataOutputStream ofs = dfs.create(newimgpath);\n\n\t\t\t//ImageIO.write(bi, \"jpg\", ofs);\n\t\t\tImageIO.write(bi, fname.substring(fname.lastIndexOf('.') + 1), ofs);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void setImageDynamic(){\n questionsClass.setQuestions(currentQuestionIndex);\n String movieName = questionsClass.getPhotoName();\n ImageView ReferenceToMovieImage = findViewById(R.id.Movie);\n int imageResource = getResources().getIdentifier(movieName, null, getPackageName());\n Drawable img = getResources().getDrawable(imageResource);\n ReferenceToMovieImage.setImageDrawable(img);\n }", "void setImage(IViewModel image);", "Image createImage();", "public int getImageId() {\n return imageId_;\n }", "private void createImage (String image_name, int filename){\n\n\t\tString image_folder = getLevelImagePatternFolder();\n\t\t\n\t\tString resource = filename+\".png\";\n\t\tImageIcon ii = new ImageIcon(this.getClass().getResource(image_folder + resource));\n images.put(image_name, ii.getImage());\n\t}", "static public void addImage(AppImage image) {\n boolean already_exists = false;\n for (AppImage cached_image : images) {\n String reposited_path = cached_image.file.getAbsolutePath();\n String image_path = image.file.getAbsolutePath();\n if (reposited_path.equals(image_path)) {\n already_exists = true;\n }\n }\n if (!already_exists) images.add(0, image);\n }", "public void setImageId(String imageId) {\n this.imageId = imageId;\n }", "public String getImage() { return image; }", "private void enhanceImage(){\n }", "public void setImage(byte[] value) {\n this.image = ((byte[]) value);\n }", "public void setImage(Context ctx, String image)\n {\n }", "public void loadBitmap(Activity mainActivity, long id, String imageKey,\r\n ImageView imageView) {\r\n\r\n\r\n final Bitmap bitmap = getBitmapFromCache(imageKey);\r\n mImageViews.put(imageView, imageKey);\r\n\r\n if (bitmap != null) {\r\n imageView.setImageBitmap(bitmap);\r\n } else {\r\n imageView.setImageResource(R.drawable.img_def);\r\n\r\n// String tag = mImageViews.get(imageView);\r\n// if (tag != null && tag.equals(imageKey)) {\r\n// mExecutorService.\r\n// }\r\n if (!mCurrentTasks.contains(imageKey)) {\r\n if (mExecutorService != null && !mExecutorService.isShutdown()) {\r\n mExecutorService.submit(new LoadingImage(id, imageKey, new WeakReference<>(mainActivity), new WeakReference<>(imageView)));\r\n mCurrentTasks.add(imageKey);\r\n }\r\n } else {\r\n Log.e(\"samuel\", \"任务已经存在>>>imageKey:\" + imageKey);\r\n }\r\n }\r\n }", "String getImage();", "public ImageSection() { // required by the SessionLoader (should not be used elsewhere)\n hasImage = new HasImage();\n }", "public void setImgId(Long imgId) {\r\n this.imgId = imgId;\r\n }", "public void setImage(String tmp) {\n this.image = tmp;\n }", "public void setImageId(long imageId) {\n this.imageId = imageId;\n }", "public void put(@NonNull final String key, final Bitmap value) {\n put(key, value, -1);\n }", "private Image createImage(String image_file) {\n\t\tImage img = new Image(image_file);\n\t\treturn img;\n\t}", "public void changeImage() {\r\n this.image = ColourDoor.image2;\r\n }", "@Override\n\tpublic Serializable getId() {\n\t\treturn imageId;\n\t}", "void seTubeUpImage(String image);", "public String getImgId() {\n return imgId;\n }", "public void updateImage(GameObject.Direction direction) {\n switch (direction) {\n case NORTH:\n currentImage = north;\n break;\n\n case SOUTH:\n currentImage = south;\n break;\n\n case WEST:\n currentImage = west;\n break;\n\n case EAST:\n currentImage = east;\n break;\n }\n }", "void setImage(BufferedImage valueImage, BufferedImage BackImage);", "public void testGetSetImageImage() {\n\t\tassertEquals(testNormal.getImage(), new ImageIcon(\"PACMAN/smallpill.png\").getImage());\n\t\t\n\t\t//SET NEW IMAGE\n\t\ttestNormal.setImage(testImage);\n\t\tassertEquals(testNormal.getImage(), testImage);\n\t}", "public void setImg_0(String img_0) {\n this.img_0 = img_0;\n }", "public void setImageGenResults(HashMap<String, View> viewMap, HashMap<String, Bitmap> imageMap) {\n if (map != null) {\n// calling addImages is faster as separate addImage calls for each bitmap.\n map.addImages(imageMap);\n }\n// need to store reference to views to be able to use them as hitboxes for click events.\n this.viewMap = viewMap;\n\n }", "private void setImage() {\r\n\t\ttry{\r\n\r\n\t\t\twinMessage = ImageIO.read(new File(\"obstacles/win.gif\"));\r\n\t\t\tcoin = ImageIO.read(new File(\"obstacles/Coin.gif\"));\r\n\t\t\toverMessage = ImageIO.read(new File(\"obstacles/over.gif\"));\r\n\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tSystem.err.println(\"Image file not found\");\r\n\t\t}\r\n\r\n\t}", "public void setImageIdentifier(String imageIdentifier) {\n this.imageIdentifier = imageIdentifier;\n }", "public void setImage_id(int image_id) {\n\t\tthis.image_id = image_id;\n\t}", "public void setSrcKey(String value) {\n\t\tsrcKey = value;\r\n }", "void setImageFromSpec(ImageProvider spec);", "void privateSetAgregateKey(com.hps.july.persistence.StorageCardKey inKey) throws java.rmi.RemoteException;", "void setImage(BufferedImage i);", "public int getImageId() {\n return imageId_;\n }", "void setImage(Bitmap bitmap);", "IMG createIMG();", "public static Image getImageFromRegistry(String key){\r\n\t\treturn getDefault().getImageRegistry().get(key);\r\n\t}", "private Images() {}", "String getItemImage();", "public void setImg(){\n if(PicSingleton.getInstance().getPicToShape() != null){\n\n mResultImg.setImageDrawable(PicSingleton.getInstance().getPicShaped());\n }\n }", "private RoundImage img(String imgAddress) {\n return new RoundImage(\"frontend/src/images/books.png\",\"64px\",\"64px\");\n }", "public void addImage(Image img, int x, int y) {\n\n\t}", "@Override\r\n public void initializeUserImage() {\n userImageView = (ImageView)findViewById(R.id.user_profile_edit_imageView);\r\n userImageView.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n setImageSelection(\"USER\");\r\n }\r\n });\r\n if(userImageNewBitmap != null)\r\n {\r\n userImageView.setImageBitmap(userImageNewBitmap);\r\n return;\r\n }\r\n try\r\n {\r\n ImageCache.getInstance().setSessionUserImage(ImageCache.MSIZE, userImageView);\r\n }\r\n catch (Exception e)\r\n {\r\n Log.e(LOG_TAG,\"initializeUserImage failed\",e);\r\n Toast.makeText(WRProfileEditActivity.this, \"Unable to retrieve your image\", Toast.LENGTH_SHORT).show();\r\n }\r\n }", "public Object attachment(Object key);", "private void addImage(ImageRegistry reg, String imagePath) {\n \n final Bundle bundle = Platform.getBundle(ID);\n \n final Path attachImgPath = new Path(imagePath);\n final ImageDescriptor attachImg = ImageDescriptor.createFromURL(\n FileLocator.find(bundle, attachImgPath, null));\n reg.put(imagePath, attachImg);\n \n }" ]
[ "0.73743916", "0.69769233", "0.6598396", "0.6580987", "0.65701854", "0.64302814", "0.6409466", "0.64012116", "0.6307853", "0.6269159", "0.6251016", "0.62044156", "0.61761045", "0.61530364", "0.6144063", "0.6126562", "0.61118156", "0.6099656", "0.60956454", "0.6077729", "0.6067665", "0.60457695", "0.6003344", "0.5964897", "0.5939338", "0.59279966", "0.59279966", "0.58915496", "0.58915496", "0.58643675", "0.5855212", "0.5825829", "0.5821216", "0.5814888", "0.58119035", "0.58055156", "0.57898885", "0.5773499", "0.5766147", "0.57633", "0.5753997", "0.574424", "0.5744017", "0.5743219", "0.5741803", "0.57411337", "0.5741064", "0.5740604", "0.574013", "0.5736646", "0.57195854", "0.5718156", "0.57100624", "0.5709716", "0.57068604", "0.56958044", "0.56772816", "0.5665956", "0.5660206", "0.5650525", "0.565001", "0.5649985", "0.56417274", "0.563718", "0.56349826", "0.56309146", "0.5630672", "0.5629475", "0.56277126", "0.562004", "0.5616086", "0.56082916", "0.5607629", "0.560631", "0.5602232", "0.55887747", "0.5588448", "0.55832505", "0.5581918", "0.5576858", "0.55718684", "0.55691457", "0.5559573", "0.5556314", "0.5555225", "0.55513775", "0.5549373", "0.55468154", "0.55443764", "0.55383235", "0.5537857", "0.5537576", "0.55367446", "0.55349225", "0.5530527", "0.5529533", "0.5528395", "0.5527338", "0.5526035", "0.5522792" ]
0.70059943
1
Inflate the layout for this fragment
@Nullable @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.fragment_perfil, container, false); listaMascotas = (RecyclerView) v.findViewById(R.id.rvMascotas_perfil); //LinearLayoutManager llm = new LinearLayoutManager(getActivity()); //llm.setOrientation(LinearLayoutManager.VERTICAL); //listaMascotas.setLayoutManager(llm); GridLayoutManager glm = new GridLayoutManager(getActivity(),3); glm.setOrientation(GridLayoutManager.VERTICAL); listaMascotas.setLayoutManager(glm); inicializarListaMascotas(); inicializarAdaptador(); return v; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@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 }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@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.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@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__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@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_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
Creates the metamodel objects for the package. This method is guarded to have no affect on any invocation but its first.
public void createPackageContents() { if (isCreated) return; isCreated = true; // Create classes and their features tableEClass = createEClass(TABLE); createEReference(tableEClass, TABLE__DATABASE); createEReference(tableEClass, TABLE__COLUMNS); createEReference(tableEClass, TABLE__CONSTRAINTS); tableConstraintEClass = createEClass(TABLE_CONSTRAINT); createEAttribute(tableConstraintEClass, TABLE_CONSTRAINT__NAME); createEReference(tableConstraintEClass, TABLE_CONSTRAINT__TABLE); primaryKeyTableConstraintEClass = createEClass(PRIMARY_KEY_TABLE_CONSTRAINT); createEReference(primaryKeyTableConstraintEClass, PRIMARY_KEY_TABLE_CONSTRAINT__COLUMNS); uniqueTableConstraintEClass = createEClass(UNIQUE_TABLE_CONSTRAINT); createEReference(uniqueTableConstraintEClass, UNIQUE_TABLE_CONSTRAINT__COLUMNS); checkTableConstraintEClass = createEClass(CHECK_TABLE_CONSTRAINT); createEReference(checkTableConstraintEClass, CHECK_TABLE_CONSTRAINT__EXPRESSION); foreignKeyTableConstraintEClass = createEClass(FOREIGN_KEY_TABLE_CONSTRAINT); createEReference(foreignKeyTableConstraintEClass, FOREIGN_KEY_TABLE_CONSTRAINT__COLUMNS); createEReference(foreignKeyTableConstraintEClass, FOREIGN_KEY_TABLE_CONSTRAINT__FOREIGN_TABLE); createEReference(foreignKeyTableConstraintEClass, FOREIGN_KEY_TABLE_CONSTRAINT__FOREIGN_COLUMNS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tmetadataEClass = createEClass(METADATA);\n\t\tcreateEAttribute(metadataEClass, METADATA__GAMENAME);\n\t\tcreateEAttribute(metadataEClass, METADATA__SHORTNAME);\n\t\tcreateEAttribute(metadataEClass, METADATA__TIMING);\n\t\tcreateEAttribute(metadataEClass, METADATA__ADRESSING);\n\t\tcreateEAttribute(metadataEClass, METADATA__CARTRIDGE_TYPE);\n\t\tcreateEAttribute(metadataEClass, METADATA__ROM_SIZE);\n\t\tcreateEAttribute(metadataEClass, METADATA__RAM_SIZE);\n\t\tcreateEAttribute(metadataEClass, METADATA__LICENSEE);\n\t\tcreateEAttribute(metadataEClass, METADATA__COUNTRY);\n\t\tcreateEAttribute(metadataEClass, METADATA__VIDEOFORMAT);\n\t\tcreateEAttribute(metadataEClass, METADATA__VERSION);\n\t\tcreateEAttribute(metadataEClass, METADATA__IDE_VERSION);\n\t}", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n modelEClass = createEClass(MODEL);\n createEReference(modelEClass, MODEL__AGENT);\n\n agentEClass = createEClass(AGENT);\n createEAttribute(agentEClass, AGENT__NAME);\n\n intentEClass = createEClass(INTENT);\n createEReference(intentEClass, INTENT__SUPER_TYPE);\n createEReference(intentEClass, INTENT__IS_FOLLOW_UP);\n createEReference(intentEClass, INTENT__QUESTION);\n createEReference(intentEClass, INTENT__TRAINING);\n\n isFollowUpEClass = createEClass(IS_FOLLOW_UP);\n createEReference(isFollowUpEClass, IS_FOLLOW_UP__INTENT);\n\n entityEClass = createEClass(ENTITY);\n createEReference(entityEClass, ENTITY__EXAMPLE);\n\n questionEClass = createEClass(QUESTION);\n createEReference(questionEClass, QUESTION__QUESTION_ENTITY);\n createEAttribute(questionEClass, QUESTION__PROMPT);\n\n questionEntityEClass = createEClass(QUESTION_ENTITY);\n createEReference(questionEntityEClass, QUESTION_ENTITY__WITH_ENTITY);\n\n trainingEClass = createEClass(TRAINING);\n createEReference(trainingEClass, TRAINING__TRAININGREF);\n\n trainingRefEClass = createEClass(TRAINING_REF);\n createEAttribute(trainingRefEClass, TRAINING_REF__PHRASE);\n createEReference(trainingRefEClass, TRAINING_REF__DECLARATION);\n\n declarationEClass = createEClass(DECLARATION);\n createEAttribute(declarationEClass, DECLARATION__TRAININGSTRING);\n createEReference(declarationEClass, DECLARATION__REFERENCE);\n\n entityExampleEClass = createEClass(ENTITY_EXAMPLE);\n createEAttribute(entityExampleEClass, ENTITY_EXAMPLE__NAME);\n\n sysvariableEClass = createEClass(SYSVARIABLE);\n createEAttribute(sysvariableEClass, SYSVARIABLE__VALUE);\n\n referenceEClass = createEClass(REFERENCE);\n createEReference(referenceEClass, REFERENCE__ENTITY);\n createEReference(referenceEClass, REFERENCE__SYSVAR);\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tmealyMachineEClass = createEClass(MEALY_MACHINE);\n\t\tcreateEReference(mealyMachineEClass, MEALY_MACHINE__INITIAL_STATE);\n\t\tcreateEReference(mealyMachineEClass, MEALY_MACHINE__STATES);\n\t\tcreateEReference(mealyMachineEClass, MEALY_MACHINE__INPUT_ALPHABET);\n\t\tcreateEReference(mealyMachineEClass, MEALY_MACHINE__OUTPUT_ALPHABET);\n\t\tcreateEReference(mealyMachineEClass, MEALY_MACHINE__TRANSITIONS);\n\n\t\tstateEClass = createEClass(STATE);\n\t\tcreateEAttribute(stateEClass, STATE__NAME);\n\n\t\talphabetEClass = createEClass(ALPHABET);\n\t\tcreateEAttribute(alphabetEClass, ALPHABET__CHARACTERS);\n\n\t\ttransitionEClass = createEClass(TRANSITION);\n\t\tcreateEReference(transitionEClass, TRANSITION__SOURCE_STATE);\n\t\tcreateEReference(transitionEClass, TRANSITION__TARGET_STATE);\n\t\tcreateEAttribute(transitionEClass, TRANSITION__INPUT);\n\t\tcreateEAttribute(transitionEClass, TRANSITION__OUTPUT);\n\t}", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n modelEClass = createEClass(MODEL);\n createEReference(modelEClass, MODEL__SPEC);\n\n statementEClass = createEClass(STATEMENT);\n createEReference(statementEClass, STATEMENT__DEF);\n createEReference(statementEClass, STATEMENT__OUT);\n createEReference(statementEClass, STATEMENT__IN);\n createEAttribute(statementEClass, STATEMENT__COMMENT);\n\n definitionEClass = createEClass(DEFINITION);\n createEAttribute(definitionEClass, DEFINITION__NAME);\n createEReference(definitionEClass, DEFINITION__PARAM_LIST);\n createEAttribute(definitionEClass, DEFINITION__TYPE);\n createEReference(definitionEClass, DEFINITION__EXPRESSION);\n\n paramListEClass = createEClass(PARAM_LIST);\n createEAttribute(paramListEClass, PARAM_LIST__PARAMS);\n createEAttribute(paramListEClass, PARAM_LIST__TYPES);\n\n outEClass = createEClass(OUT);\n createEReference(outEClass, OUT__EXP);\n createEAttribute(outEClass, OUT__NAME);\n\n inEClass = createEClass(IN);\n createEAttribute(inEClass, IN__NAME);\n createEAttribute(inEClass, IN__TYPE);\n\n typedExpressionEClass = createEClass(TYPED_EXPRESSION);\n createEReference(typedExpressionEClass, TYPED_EXPRESSION__EXP);\n createEAttribute(typedExpressionEClass, TYPED_EXPRESSION__TYPE);\n\n expressionEClass = createEClass(EXPRESSION);\n\n valueEClass = createEClass(VALUE);\n createEAttribute(valueEClass, VALUE__OP);\n createEReference(valueEClass, VALUE__EXP);\n createEReference(valueEClass, VALUE__STATEMENTS);\n createEAttribute(valueEClass, VALUE__NAME);\n createEReference(valueEClass, VALUE__ARGS);\n\n argEClass = createEClass(ARG);\n createEAttribute(argEClass, ARG__ARG);\n createEReference(argEClass, ARG__EXP);\n\n ifStatementEClass = createEClass(IF_STATEMENT);\n createEReference(ifStatementEClass, IF_STATEMENT__IF);\n createEReference(ifStatementEClass, IF_STATEMENT__THEN);\n createEReference(ifStatementEClass, IF_STATEMENT__ELSE);\n\n operationEClass = createEClass(OPERATION);\n createEReference(operationEClass, OPERATION__LEFT);\n createEAttribute(operationEClass, OPERATION__OP);\n createEReference(operationEClass, OPERATION__RIGHT);\n }", "public void createPackageContents() {\r\n\t\tif (isCreated)\r\n\t\t\treturn;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tspringProjectEClass = createEClass(SPRING_PROJECT);\r\n\t\tcreateEAttribute(springProjectEClass, SPRING_PROJECT__BASE_PACKAGE);\r\n\t\tcreateEAttribute(springProjectEClass, SPRING_PROJECT__NAME);\r\n\t\tcreateEReference(springProjectEClass, SPRING_PROJECT__DB_SOURCE);\r\n\t\tcreateEReference(springProjectEClass, SPRING_PROJECT__ENTITIES);\r\n\t\tcreateEReference(springProjectEClass, SPRING_PROJECT__CONTROLLERS);\r\n\r\n\t\trestControllerEClass = createEClass(REST_CONTROLLER);\r\n\t\tcreateEAttribute(restControllerEClass, REST_CONTROLLER__NAME);\r\n\t\tcreateEAttribute(restControllerEClass, REST_CONTROLLER__PATH);\r\n\t\tcreateEReference(restControllerEClass, REST_CONTROLLER__USED_ENTITIES);\r\n\t\tcreateEReference(restControllerEClass, REST_CONTROLLER__MAPPINGS);\r\n\r\n\t\trestMappingEClass = createEClass(REST_MAPPING);\r\n\t\tcreateEAttribute(restMappingEClass, REST_MAPPING__PATH);\r\n\t\tcreateEAttribute(restMappingEClass, REST_MAPPING__NAME);\r\n\t\tcreateEReference(restMappingEClass, REST_MAPPING__USED_ENTITY);\r\n\t\tcreateEAttribute(restMappingEClass, REST_MAPPING__BODY);\r\n\r\n\t\tgetMappingEClass = createEClass(GET_MAPPING);\r\n\r\n\t\tpostMappingEClass = createEClass(POST_MAPPING);\r\n\t\tcreateEReference(postMappingEClass, POST_MAPPING__PARAMETERS);\r\n\r\n\t\tentityEClass = createEClass(ENTITY);\r\n\t\tcreateEReference(entityEClass, ENTITY__SUPER_CLASS);\r\n\t\tcreateEAttribute(entityEClass, ENTITY__NAME);\r\n\t\tcreateEAttribute(entityEClass, ENTITY__GENERATE_REPOSITORY);\r\n\t\tcreateEReference(entityEClass, ENTITY__FIELDS);\r\n\t\tcreateEReference(entityEClass, ENTITY__MAPPING);\r\n\r\n\t\tmappingEClass = createEClass(MAPPING);\r\n\t\tcreateEAttribute(mappingEClass, MAPPING__NAME);\r\n\t\tcreateEReference(mappingEClass, MAPPING__ENTITY);\r\n\t\tcreateEAttribute(mappingEClass, MAPPING__IS_LIST);\r\n\t\tcreateEReference(mappingEClass, MAPPING__MAPPING_TYPE);\r\n\r\n\t\tmappingTypeEClass = createEClass(MAPPING_TYPE);\r\n\t\tcreateEAttribute(mappingTypeEClass, MAPPING_TYPE__CASCADE);\r\n\t\tcreateEReference(mappingTypeEClass, MAPPING_TYPE__MAPPED_BY);\r\n\r\n\t\toneToManyEClass = createEClass(ONE_TO_MANY);\r\n\r\n\t\tmanyToOneEClass = createEClass(MANY_TO_ONE);\r\n\r\n\t\tmanyToManyEClass = createEClass(MANY_TO_MANY);\r\n\t\tcreateEAttribute(manyToManyEClass, MANY_TO_MANY__JOIN_TABLE_NAME);\r\n\t\tcreateEAttribute(manyToManyEClass, MANY_TO_MANY__JOIN_COLUMNS);\r\n\t\tcreateEAttribute(manyToManyEClass, MANY_TO_MANY__INVERSE_JOIN_COLUMNS);\r\n\r\n\t\toneToOneEClass = createEClass(ONE_TO_ONE);\r\n\r\n\t\tfieldEClass = createEClass(FIELD);\r\n\t\tcreateEAttribute(fieldEClass, FIELD__IS_ID);\r\n\t\tcreateEAttribute(fieldEClass, FIELD__NAME);\r\n\t\tcreateEAttribute(fieldEClass, FIELD__DATATYPE);\r\n\r\n\t\tdbSourceEClass = createEClass(DB_SOURCE);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__ENABLE_CONSOLE);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__WEB_ALLOW_OOTHERS);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__CONSOLE_PATH);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__URL);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__USER);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__PASSWORD);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__DRIVE_CLASS_NAME);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__SERVER_PORT);\r\n\r\n\t\t// Create enums\r\n\t\tcascadeEEnum = createEEnum(CASCADE);\r\n\t}", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n modelEClass = createEClass(MODEL);\n createEReference(modelEClass, MODEL__ELEMENTS);\n\n elementEClass = createEClass(ELEMENT);\n createEReference(elementEClass, ELEMENT__STATE);\n createEReference(elementEClass, ELEMENT__TRANSITION);\n\n stateEClass = createEClass(STATE);\n createEAttribute(stateEClass, STATE__NAME);\n createEReference(stateEClass, STATE__STATES_PROPERTIES);\n\n statesPropertiesEClass = createEClass(STATES_PROPERTIES);\n createEAttribute(statesPropertiesEClass, STATES_PROPERTIES__COLOR);\n createEAttribute(statesPropertiesEClass, STATES_PROPERTIES__THICKNESS);\n createEAttribute(statesPropertiesEClass, STATES_PROPERTIES__POSITION);\n\n transitionEClass = createEClass(TRANSITION);\n createEReference(transitionEClass, TRANSITION__START);\n createEReference(transitionEClass, TRANSITION__END);\n createEReference(transitionEClass, TRANSITION__TRANSITION_PROPERTIES);\n createEReference(transitionEClass, TRANSITION__LABEL);\n createEAttribute(transitionEClass, TRANSITION__INIT);\n\n labelEClass = createEClass(LABEL);\n createEAttribute(labelEClass, LABEL__TEXT);\n createEAttribute(labelEClass, LABEL__POSITION);\n\n coordinatesStatesTransitionEClass = createEClass(COORDINATES_STATES_TRANSITION);\n createEAttribute(coordinatesStatesTransitionEClass, COORDINATES_STATES_TRANSITION__STATE_TRANSITION);\n\n transitionPropertiesEClass = createEClass(TRANSITION_PROPERTIES);\n createEAttribute(transitionPropertiesEClass, TRANSITION_PROPERTIES__COLOR);\n createEAttribute(transitionPropertiesEClass, TRANSITION_PROPERTIES__THICKNESS);\n createEAttribute(transitionPropertiesEClass, TRANSITION_PROPERTIES__CURVE);\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tsutEClass = createEClass(SUT);\n\t\tcreateEAttribute(sutEClass, SUT__HOSTNAME);\n\t\tcreateEAttribute(sutEClass, SUT__IP);\n\t\tcreateEAttribute(sutEClass, SUT__HARDWARE);\n\t\tcreateEReference(sutEClass, SUT__SUT);\n\t\tcreateEReference(sutEClass, SUT__METRICMODEL);\n\t\tcreateEAttribute(sutEClass, SUT__TYPE);\n\n\t\tloadGeneratorEClass = createEClass(LOAD_GENERATOR);\n\t\tcreateEAttribute(loadGeneratorEClass, LOAD_GENERATOR__HOSTNAME);\n\t\tcreateEAttribute(loadGeneratorEClass, LOAD_GENERATOR__IP);\n\t\tcreateEAttribute(loadGeneratorEClass, LOAD_GENERATOR__IS_MONITOR);\n\t\tcreateEReference(loadGeneratorEClass, LOAD_GENERATOR__SUT);\n\t\tcreateEReference(loadGeneratorEClass, LOAD_GENERATOR__METRICMODEL);\n\t\tcreateEAttribute(loadGeneratorEClass, LOAD_GENERATOR__HARDWARE);\n\t\tcreateEReference(loadGeneratorEClass, LOAD_GENERATOR__MONITOR);\n\n\t\tmonitorEClass = createEClass(MONITOR);\n\t\tcreateEAttribute(monitorEClass, MONITOR__HOSTNAME);\n\t\tcreateEAttribute(monitorEClass, MONITOR__IP);\n\t\tcreateEReference(monitorEClass, MONITOR__SUT);\n\t\tcreateEAttribute(monitorEClass, MONITOR__HARDWARE);\n\t\tcreateEAttribute(monitorEClass, MONITOR__DESCRIPTION);\n\n\t\tmetricModelEClass = createEClass(METRIC_MODEL);\n\t\tcreateEAttribute(metricModelEClass, METRIC_MODEL__NAME);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__MEMORY);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__TRANSACTION);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__DISK);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__CRITERIA);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__THRESHOLD);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__ASSOCIATIONCOUNTERCRITERIATHRESHOLD);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__DISK_COUNTER);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__TRANSACTION_COUNTER);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__MEMORY_COUNTER);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__COUNTER);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__METRIC);\n\n\t\t// Create enums\n\t\tsuT_TYPEEEnum = createEEnum(SUT_TYPE);\n\t\thardwareEEnum = createEEnum(HARDWARE);\n\t}", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n modelEClass = createEClass(MODEL);\n createEReference(modelEClass, MODEL__STMTS);\n\n simpleStatementEClass = createEClass(SIMPLE_STATEMENT);\n\n assignmentEClass = createEClass(ASSIGNMENT);\n createEReference(assignmentEClass, ASSIGNMENT__LEFT_HAND_SIDE);\n createEReference(assignmentEClass, ASSIGNMENT__RIGHT_HAND_SIDE);\n\n expressionEClass = createEClass(EXPRESSION);\n\n unaryMinusExpressionEClass = createEClass(UNARY_MINUS_EXPRESSION);\n createEReference(unaryMinusExpressionEClass, UNARY_MINUS_EXPRESSION__SUB);\n\n unaryPlusExpressionEClass = createEClass(UNARY_PLUS_EXPRESSION);\n createEReference(unaryPlusExpressionEClass, UNARY_PLUS_EXPRESSION__SUB);\n\n logicalNegationExpressionEClass = createEClass(LOGICAL_NEGATION_EXPRESSION);\n createEReference(logicalNegationExpressionEClass, LOGICAL_NEGATION_EXPRESSION__SUB);\n\n bracketExpressionEClass = createEClass(BRACKET_EXPRESSION);\n createEReference(bracketExpressionEClass, BRACKET_EXPRESSION__SUB);\n\n pointerCallEClass = createEClass(POINTER_CALL);\n\n variableCallEClass = createEClass(VARIABLE_CALL);\n createEAttribute(variableCallEClass, VARIABLE_CALL__NAME);\n\n arraySpecifierEClass = createEClass(ARRAY_SPECIFIER);\n\n unarySpecifierEClass = createEClass(UNARY_SPECIFIER);\n createEAttribute(unarySpecifierEClass, UNARY_SPECIFIER__INDEX);\n\n rangeSpecifierEClass = createEClass(RANGE_SPECIFIER);\n createEAttribute(rangeSpecifierEClass, RANGE_SPECIFIER__FROM);\n createEAttribute(rangeSpecifierEClass, RANGE_SPECIFIER__TO);\n\n ioFunctionsEClass = createEClass(IO_FUNCTIONS);\n createEAttribute(ioFunctionsEClass, IO_FUNCTIONS__FILE_NAME);\n\n infoFunctionsEClass = createEClass(INFO_FUNCTIONS);\n\n manipFunctionsEClass = createEClass(MANIP_FUNCTIONS);\n\n arithFunctionsEClass = createEClass(ARITH_FUNCTIONS);\n createEReference(arithFunctionsEClass, ARITH_FUNCTIONS__EXPRESSION);\n createEReference(arithFunctionsEClass, ARITH_FUNCTIONS__FIELD);\n createEReference(arithFunctionsEClass, ARITH_FUNCTIONS__WHERE_EXPRESSION);\n\n loadEClass = createEClass(LOAD);\n\n storeEClass = createEClass(STORE);\n createEReference(storeEClass, STORE__EXPRESSION);\n\n exportEClass = createEClass(EXPORT);\n createEReference(exportEClass, EXPORT__EXPRESSION);\n\n printEClass = createEClass(PRINT);\n createEReference(printEClass, PRINT__EXPRESSION);\n\n depthEClass = createEClass(DEPTH);\n createEReference(depthEClass, DEPTH__EXPRESSION);\n\n fieldInfoEClass = createEClass(FIELD_INFO);\n createEReference(fieldInfoEClass, FIELD_INFO__EXPRESSION);\n\n containsEClass = createEClass(CONTAINS);\n createEReference(containsEClass, CONTAINS__KEYS);\n createEReference(containsEClass, CONTAINS__RIGHT);\n\n selectEClass = createEClass(SELECT);\n createEReference(selectEClass, SELECT__FIELDS);\n createEReference(selectEClass, SELECT__FROM_EXPRESSION);\n createEReference(selectEClass, SELECT__WHERE_EXPRESSION);\n\n lengthEClass = createEClass(LENGTH);\n createEReference(lengthEClass, LENGTH__EXPRESSION);\n\n sumEClass = createEClass(SUM);\n\n productEClass = createEClass(PRODUCT);\n\n constantEClass = createEClass(CONSTANT);\n\n primitiveEClass = createEClass(PRIMITIVE);\n createEAttribute(primitiveEClass, PRIMITIVE__STR);\n createEAttribute(primitiveEClass, PRIMITIVE__INT_NUM);\n createEAttribute(primitiveEClass, PRIMITIVE__FLOAT_NUM);\n createEAttribute(primitiveEClass, PRIMITIVE__BOOL);\n createEAttribute(primitiveEClass, PRIMITIVE__NIL);\n\n arrayEClass = createEClass(ARRAY);\n createEReference(arrayEClass, ARRAY__VALUES);\n\n jSonObjectEClass = createEClass(JSON_OBJECT);\n createEReference(jSonObjectEClass, JSON_OBJECT__FIELDS);\n\n fieldEClass = createEClass(FIELD);\n createEReference(fieldEClass, FIELD__KEY);\n createEReference(fieldEClass, FIELD__VALUE);\n\n disjunctionExpressionEClass = createEClass(DISJUNCTION_EXPRESSION);\n createEReference(disjunctionExpressionEClass, DISJUNCTION_EXPRESSION__LEFT);\n createEReference(disjunctionExpressionEClass, DISJUNCTION_EXPRESSION__RIGHT);\n\n conjunctionExpressionEClass = createEClass(CONJUNCTION_EXPRESSION);\n createEReference(conjunctionExpressionEClass, CONJUNCTION_EXPRESSION__LEFT);\n createEReference(conjunctionExpressionEClass, CONJUNCTION_EXPRESSION__RIGHT);\n\n equalityExpressionEClass = createEClass(EQUALITY_EXPRESSION);\n createEReference(equalityExpressionEClass, EQUALITY_EXPRESSION__LEFT);\n createEReference(equalityExpressionEClass, EQUALITY_EXPRESSION__RIGHT);\n\n inequalityExpressionEClass = createEClass(INEQUALITY_EXPRESSION);\n createEReference(inequalityExpressionEClass, INEQUALITY_EXPRESSION__LEFT);\n createEReference(inequalityExpressionEClass, INEQUALITY_EXPRESSION__RIGHT);\n\n superiorExpressionEClass = createEClass(SUPERIOR_EXPRESSION);\n createEReference(superiorExpressionEClass, SUPERIOR_EXPRESSION__LEFT);\n createEReference(superiorExpressionEClass, SUPERIOR_EXPRESSION__RIGHT);\n\n superiorOrEqualExpressionEClass = createEClass(SUPERIOR_OR_EQUAL_EXPRESSION);\n createEReference(superiorOrEqualExpressionEClass, SUPERIOR_OR_EQUAL_EXPRESSION__LEFT);\n createEReference(superiorOrEqualExpressionEClass, SUPERIOR_OR_EQUAL_EXPRESSION__RIGHT);\n\n inferiorExpressionEClass = createEClass(INFERIOR_EXPRESSION);\n createEReference(inferiorExpressionEClass, INFERIOR_EXPRESSION__LEFT);\n createEReference(inferiorExpressionEClass, INFERIOR_EXPRESSION__RIGHT);\n\n inferiorOrEqualExpressionEClass = createEClass(INFERIOR_OR_EQUAL_EXPRESSION);\n createEReference(inferiorOrEqualExpressionEClass, INFERIOR_OR_EQUAL_EXPRESSION__LEFT);\n createEReference(inferiorOrEqualExpressionEClass, INFERIOR_OR_EQUAL_EXPRESSION__RIGHT);\n\n additionExpressionEClass = createEClass(ADDITION_EXPRESSION);\n createEReference(additionExpressionEClass, ADDITION_EXPRESSION__LEFT);\n createEReference(additionExpressionEClass, ADDITION_EXPRESSION__RIGHT);\n\n substractionExpressionEClass = createEClass(SUBSTRACTION_EXPRESSION);\n createEReference(substractionExpressionEClass, SUBSTRACTION_EXPRESSION__LEFT);\n createEReference(substractionExpressionEClass, SUBSTRACTION_EXPRESSION__RIGHT);\n\n multiplicationExpressionEClass = createEClass(MULTIPLICATION_EXPRESSION);\n createEReference(multiplicationExpressionEClass, MULTIPLICATION_EXPRESSION__LEFT);\n createEReference(multiplicationExpressionEClass, MULTIPLICATION_EXPRESSION__RIGHT);\n\n divisionExpressionEClass = createEClass(DIVISION_EXPRESSION);\n createEReference(divisionExpressionEClass, DIVISION_EXPRESSION__LEFT);\n createEReference(divisionExpressionEClass, DIVISION_EXPRESSION__RIGHT);\n\n moduloExpressionEClass = createEClass(MODULO_EXPRESSION);\n createEReference(moduloExpressionEClass, MODULO_EXPRESSION__LEFT);\n createEReference(moduloExpressionEClass, MODULO_EXPRESSION__RIGHT);\n\n arrayCallEClass = createEClass(ARRAY_CALL);\n createEReference(arrayCallEClass, ARRAY_CALL__CALLEE);\n createEReference(arrayCallEClass, ARRAY_CALL__SPECIFIER);\n\n fieldCallEClass = createEClass(FIELD_CALL);\n createEReference(fieldCallEClass, FIELD_CALL__CALLEE);\n createEAttribute(fieldCallEClass, FIELD_CALL__FIELD);\n }", "public void createPackageContents()\n {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tclarityAbstractObjectEClass = createEClass(CLARITY_ABSTRACT_OBJECT);\n\t\tcreateEAttribute(clarityAbstractObjectEClass, CLARITY_ABSTRACT_OBJECT__CLARITY_CONNECTION);\n\n\t\tclarityAddFilesEClass = createEClass(CLARITY_ADD_FILES);\n\n\t\tclarityGetBatchResultEClass = createEClass(CLARITY_GET_BATCH_RESULT);\n\n\t\tclarityGetKeyEClass = createEClass(CLARITY_GET_KEY);\n\n\t\tclarityQueryBatchEClass = createEClass(CLARITY_QUERY_BATCH);\n\n\t\tclarityReloadFileEClass = createEClass(CLARITY_RELOAD_FILE);\n\n\t\tclarityRemoveFilesEClass = createEClass(CLARITY_REMOVE_FILES);\n\n\t\tstartBatchEClass = createEClass(START_BATCH);\n\t}", "public void createPackageContents() {\n if(isCreated) {\n return;\n }\n isCreated = true;\n\n // Create classes and their features\n namedElementEClass = createEClass(NAMED_ELEMENT);\n createEAttribute(namedElementEClass, NAMED_ELEMENT__NAME);\n\n modularizationModelEClass = createEClass(MODULARIZATION_MODEL);\n createEReference(modularizationModelEClass, MODULARIZATION_MODEL__MODULES);\n createEReference(modularizationModelEClass, MODULARIZATION_MODEL__CLASSES);\n\n moduleEClass = createEClass(MODULE);\n createEReference(moduleEClass, MODULE__CLASSES);\n\n classEClass = createEClass(CLASS);\n createEReference(classEClass, CLASS__MODULE);\n createEReference(classEClass, CLASS__DEPENDS_ON);\n createEReference(classEClass, CLASS__DEPENDED_ON_BY);\n }", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n modelEClass = createEClass(MODEL);\n createEReference(modelEClass, MODEL__PARAMS);\n createEReference(modelEClass, MODEL__STATES);\n createEReference(modelEClass, MODEL__POPULATION);\n\n paramEClass = createEClass(PARAM);\n createEAttribute(paramEClass, PARAM__NAME);\n createEAttribute(paramEClass, PARAM__VALUE);\n\n agentStateEClass = createEClass(AGENT_STATE);\n createEAttribute(agentStateEClass, AGENT_STATE__NAME);\n createEReference(agentStateEClass, AGENT_STATE__PREFIXS);\n\n prefixEClass = createEClass(PREFIX);\n createEReference(prefixEClass, PREFIX__ACTION);\n createEAttribute(prefixEClass, PREFIX__CONTINUE);\n\n actionEClass = createEClass(ACTION);\n createEAttribute(actionEClass, ACTION__NAME);\n createEReference(actionEClass, ACTION__RATE);\n\n acT_SpNoMsgEClass = createEClass(ACT_SP_NO_MSG);\n\n acT_SpBrEClass = createEClass(ACT_SP_BR);\n createEReference(acT_SpBrEClass, ACT_SP_BR__RANGE);\n\n acT_SpUniEClass = createEClass(ACT_SP_UNI);\n createEReference(acT_SpUniEClass, ACT_SP_UNI__RANGE);\n\n acT_InBrEClass = createEClass(ACT_IN_BR);\n createEReference(acT_InBrEClass, ACT_IN_BR__VALUE);\n\n acT_InUniEClass = createEClass(ACT_IN_UNI);\n createEReference(acT_InUniEClass, ACT_IN_UNI__VALUE);\n\n iRangeEClass = createEClass(IRANGE);\n\n pR_ExprEClass = createEClass(PR_EXPR);\n createEReference(pR_ExprEClass, PR_EXPR__PR_E);\n\n terminal_PR_ExprEClass = createEClass(TERMINAL_PR_EXPR);\n createEAttribute(terminal_PR_ExprEClass, TERMINAL_PR_EXPR__LINKED_PARAM);\n\n ratE_ExprEClass = createEClass(RATE_EXPR);\n createEReference(ratE_ExprEClass, RATE_EXPR__RT);\n\n terminal_RATE_ExprEClass = createEClass(TERMINAL_RATE_EXPR);\n createEAttribute(terminal_RATE_ExprEClass, TERMINAL_RATE_EXPR__LINKED_PARAM);\n\n agenT_NUMEClass = createEClass(AGENT_NUM);\n createEAttribute(agenT_NUMEClass, AGENT_NUM__TYPE);\n\n populationEClass = createEClass(POPULATION);\n createEReference(populationEClass, POPULATION__POPU);\n\n agentsEClass = createEClass(AGENTS);\n createEAttribute(agentsEClass, AGENTS__TYPE);\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttaskModelEClass = createEClass(TASK_MODEL);\n\t\tcreateEReference(taskModelEClass, TASK_MODEL__ROOT);\n\t\tcreateEReference(taskModelEClass, TASK_MODEL__TASKS);\n\t\tcreateEAttribute(taskModelEClass, TASK_MODEL__NAME);\n\n\t\ttaskEClass = createEClass(TASK);\n\t\tcreateEAttribute(taskEClass, TASK__ID);\n\t\tcreateEAttribute(taskEClass, TASK__NAME);\n\t\tcreateEReference(taskEClass, TASK__OPERATOR);\n\t\tcreateEReference(taskEClass, TASK__SUBTASKS);\n\t\tcreateEReference(taskEClass, TASK__PARENT);\n\t\tcreateEAttribute(taskEClass, TASK__MIN);\n\t\tcreateEAttribute(taskEClass, TASK__MAX);\n\t\tcreateEAttribute(taskEClass, TASK__ITERATIVE);\n\n\t\tuserTaskEClass = createEClass(USER_TASK);\n\n\t\tapplicationTaskEClass = createEClass(APPLICATION_TASK);\n\n\t\tinteractionTaskEClass = createEClass(INTERACTION_TASK);\n\n\t\tabstractionTaskEClass = createEClass(ABSTRACTION_TASK);\n\n\t\tnullTaskEClass = createEClass(NULL_TASK);\n\n\t\ttemporalOperatorEClass = createEClass(TEMPORAL_OPERATOR);\n\n\t\tchoiceOperatorEClass = createEClass(CHOICE_OPERATOR);\n\n\t\torderIndependenceOperatorEClass = createEClass(ORDER_INDEPENDENCE_OPERATOR);\n\n\t\tinterleavingOperatorEClass = createEClass(INTERLEAVING_OPERATOR);\n\n\t\tsynchronizationOperatorEClass = createEClass(SYNCHRONIZATION_OPERATOR);\n\n\t\tparallelOperatorEClass = createEClass(PARALLEL_OPERATOR);\n\n\t\tdisablingOperatorEClass = createEClass(DISABLING_OPERATOR);\n\n\t\tsequentialEnablingInfoOperatorEClass = createEClass(SEQUENTIAL_ENABLING_INFO_OPERATOR);\n\n\t\tsequentialEnablingOperatorEClass = createEClass(SEQUENTIAL_ENABLING_OPERATOR);\n\n\t\tsuspendResumeOperatorEClass = createEClass(SUSPEND_RESUME_OPERATOR);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\trepositoryEClass = createEClass(REPOSITORY);\n\t\tcreateEAttribute(repositoryEClass, REPOSITORY__NAME);\n\t\tcreateEAttribute(repositoryEClass, REPOSITORY__LOCATION);\n\n\t\trepositoryManagerEClass = createEClass(REPOSITORY_MANAGER);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\teDomainSchemaEClass = createEClass(EDOMAIN_SCHEMA);\n\t\tcreateEReference(eDomainSchemaEClass, EDOMAIN_SCHEMA__CS);\n\t\tcreateEReference(eDomainSchemaEClass, EDOMAIN_SCHEMA__DS);\n\n\t\teControlSchemaEClass = createEClass(ECONTROL_SCHEMA);\n\t\tcreateEReference(eControlSchemaEClass, ECONTROL_SCHEMA__ACTOR);\n\n\t\teDataSchemaEClass = createEClass(EDATA_SCHEMA);\n\t\tcreateEReference(eDataSchemaEClass, EDATA_SCHEMA__CS);\n\t\tcreateEReference(eDataSchemaEClass, EDATA_SCHEMA__ITEM);\n\n\t\teDomainSpecificEntityEClass = createEClass(EDOMAIN_SPECIFIC_ENTITY);\n\t\tcreateEAttribute(eDomainSpecificEntityEClass, EDOMAIN_SPECIFIC_ENTITY__COMMAND_PRIORITY);\n\t\tcreateEReference(eDomainSpecificEntityEClass, EDOMAIN_SPECIFIC_ENTITY__CMD);\n\n\t\teDomainSpecificCommandEClass = createEClass(EDOMAIN_SPECIFIC_COMMAND);\n\t\tcreateEAttribute(eDomainSpecificCommandEClass, EDOMAIN_SPECIFIC_COMMAND__CMD_ID);\n\n\t\teActorEClass = createEClass(EACTOR);\n\t\tcreateEAttribute(eActorEClass, EACTOR__KIND_INTERACTION);\n\t\tcreateEReference(eActorEClass, EACTOR__TYPES_CONTROLLED);\n\n\t\teItemEClass = createEClass(EITEM);\n\t\tcreateEAttribute(eItemEClass, EITEM__ARISING_BEHAVIOR);\n\t\tcreateEReference(eItemEClass, EITEM__TYPE);\n\n\t\teDomainSpecificTypeEClass = createEClass(EDOMAIN_SPECIFIC_TYPE);\n\t\tcreateEAttribute(eDomainSpecificTypeEClass, EDOMAIN_SPECIFIC_TYPE__INTERACTION_BEHAVIOR);\n\t\tcreateEAttribute(eDomainSpecificTypeEClass, EDOMAIN_SPECIFIC_TYPE__CARDINALITY);\n\n\t\t// Create enums\n\t\teArisingEEnum = createEEnum(EARISING);\n\t\teCardinalityEEnum = createEEnum(ECARDINALITY);\n\t\teInteractionBehaviorEEnum = createEEnum(EINTERACTION_BEHAVIOR);\n\t\teCoordinationBehaviorEEnum = createEEnum(ECOORDINATION_BEHAVIOR);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tqueryExpressionEClass = createEClass(QUERY_EXPRESSION);\n\n\t\tvalueExpressionEClass = createEClass(VALUE_EXPRESSION);\n\n\t\tsearchConditionEClass = createEClass(SEARCH_CONDITION);\n\n\t\tqueryExpressionDefaultEClass = createEClass(QUERY_EXPRESSION_DEFAULT);\n\t\tcreateEAttribute(queryExpressionDefaultEClass, QUERY_EXPRESSION_DEFAULT__SQL);\n\n\t\tsearchConditionDefaultEClass = createEClass(SEARCH_CONDITION_DEFAULT);\n\t\tcreateEAttribute(searchConditionDefaultEClass, SEARCH_CONDITION_DEFAULT__SQL);\n\n\t\tvalueExpressionDefaultEClass = createEClass(VALUE_EXPRESSION_DEFAULT);\n\t\tcreateEAttribute(valueExpressionDefaultEClass, VALUE_EXPRESSION_DEFAULT__SQL);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tliveScoreEClass = createEClass(LIVE_SCORE);\n\t\tcreateEReference(liveScoreEClass, LIVE_SCORE__PREFEREDPLAYER);\n\t\tcreateEAttribute(liveScoreEClass, LIVE_SCORE__SALONNAME);\n\n\t\tpreferedPlayerEClass = createEClass(PREFERED_PLAYER);\n\t\tcreateEAttribute(preferedPlayerEClass, PREFERED_PLAYER__NAME);\n\t\tcreateEAttribute(preferedPlayerEClass, PREFERED_PLAYER__WON);\n\t\tcreateEAttribute(preferedPlayerEClass, PREFERED_PLAYER__PLAYINGS);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tannotationEClass = createEClass(ANNOTATION);\n\t\tcreateEReference(annotationEClass, ANNOTATION__IMPLEMENTATIONS);\n\n\t\timplementationEClass = createEClass(IMPLEMENTATION);\n\t\tcreateEAttribute(implementationEClass, IMPLEMENTATION__CODE);\n\t\tcreateEReference(implementationEClass, IMPLEMENTATION__TECHNOLOGY);\n\t\tcreateEReference(implementationEClass, IMPLEMENTATION__LANGUAGE);\n\n\t\tsemanticsEClass = createEClass(SEMANTICS);\n\t\tcreateEReference(semanticsEClass, SEMANTICS__ANNOTATIONS);\n\t\tcreateEReference(semanticsEClass, SEMANTICS__LANGUAGES);\n\t\tcreateEReference(semanticsEClass, SEMANTICS__TECHNOLOGIES);\n\n\t\ttargetLanguageEClass = createEClass(TARGET_LANGUAGE);\n\n\t\ttechnologyEClass = createEClass(TECHNOLOGY);\n\n\t\tnamedElementEClass = createEClass(NAMED_ELEMENT);\n\t\tcreateEAttribute(namedElementEClass, NAMED_ELEMENT__NAME);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tpartyQualEClass = createEClass(PARTY_QUAL);\n\t\tcreateEReference(partyQualEClass, PARTY_QUAL__PARTY);\n\t\tcreateEReference(partyQualEClass, PARTY_QUAL__PARTY_QUAL_TYPE);\n\t\tcreateEAttribute(partyQualEClass, PARTY_QUAL__FROM_DATE);\n\t\tcreateEAttribute(partyQualEClass, PARTY_QUAL__QUALIFICATION_DESC);\n\t\tcreateEReference(partyQualEClass, PARTY_QUAL__STATUS);\n\t\tcreateEAttribute(partyQualEClass, PARTY_QUAL__THRU_DATE);\n\t\tcreateEAttribute(partyQualEClass, PARTY_QUAL__TITLE);\n\t\tcreateEReference(partyQualEClass, PARTY_QUAL__VERIF_STATUS);\n\n\t\tpartyQualTypeEClass = createEClass(PARTY_QUAL_TYPE);\n\t\tcreateEAttribute(partyQualTypeEClass, PARTY_QUAL_TYPE__PARTY_QUAL_TYPE_ID);\n\t\tcreateEAttribute(partyQualTypeEClass, PARTY_QUAL_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(partyQualTypeEClass, PARTY_QUAL_TYPE__HAS_TABLE);\n\t\tcreateEReference(partyQualTypeEClass, PARTY_QUAL_TYPE__PARENT_TYPE);\n\n\t\tpartyResumeEClass = createEClass(PARTY_RESUME);\n\t\tcreateEAttribute(partyResumeEClass, PARTY_RESUME__RESUME_ID);\n\t\tcreateEReference(partyResumeEClass, PARTY_RESUME__CONTENT);\n\t\tcreateEReference(partyResumeEClass, PARTY_RESUME__PARTY);\n\t\tcreateEAttribute(partyResumeEClass, PARTY_RESUME__RESUME_DATE);\n\t\tcreateEAttribute(partyResumeEClass, PARTY_RESUME__RESUME_TEXT);\n\n\t\tpartySkillEClass = createEClass(PARTY_SKILL);\n\t\tcreateEReference(partySkillEClass, PARTY_SKILL__PARTY);\n\t\tcreateEReference(partySkillEClass, PARTY_SKILL__SKILL_TYPE);\n\t\tcreateEAttribute(partySkillEClass, PARTY_SKILL__RATING);\n\t\tcreateEAttribute(partySkillEClass, PARTY_SKILL__SKILL_LEVEL);\n\t\tcreateEAttribute(partySkillEClass, PARTY_SKILL__STARTED_USING_DATE);\n\t\tcreateEAttribute(partySkillEClass, PARTY_SKILL__YEARS_EXPERIENCE);\n\n\t\tperfRatingTypeEClass = createEClass(PERF_RATING_TYPE);\n\t\tcreateEAttribute(perfRatingTypeEClass, PERF_RATING_TYPE__PERF_RATING_TYPE_ID);\n\t\tcreateEAttribute(perfRatingTypeEClass, PERF_RATING_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(perfRatingTypeEClass, PERF_RATING_TYPE__HAS_TABLE);\n\t\tcreateEReference(perfRatingTypeEClass, PERF_RATING_TYPE__PARENT_TYPE);\n\n\t\tperfReviewEClass = createEClass(PERF_REVIEW);\n\t\tcreateEReference(perfReviewEClass, PERF_REVIEW__EMPLOYEE_PARTY);\n\t\tcreateEAttribute(perfReviewEClass, PERF_REVIEW__EMPLOYEE_ROLE_TYPE_ID);\n\t\tcreateEAttribute(perfReviewEClass, PERF_REVIEW__PERF_REVIEW_ID);\n\t\tcreateEAttribute(perfReviewEClass, PERF_REVIEW__COMMENTS);\n\t\tcreateEReference(perfReviewEClass, PERF_REVIEW__EMPL_POSITION);\n\t\tcreateEAttribute(perfReviewEClass, PERF_REVIEW__FROM_DATE);\n\t\tcreateEReference(perfReviewEClass, PERF_REVIEW__MANAGER_PARTY);\n\t\tcreateEAttribute(perfReviewEClass, PERF_REVIEW__MANAGER_ROLE_TYPE_ID);\n\t\tcreateEReference(perfReviewEClass, PERF_REVIEW__PAYMENT);\n\t\tcreateEAttribute(perfReviewEClass, PERF_REVIEW__THRU_DATE);\n\n\t\tperfReviewItemEClass = createEClass(PERF_REVIEW_ITEM);\n\t\tcreateEReference(perfReviewItemEClass, PERF_REVIEW_ITEM__EMPLOYEE_PARTY);\n\t\tcreateEAttribute(perfReviewItemEClass, PERF_REVIEW_ITEM__EMPLOYEE_ROLE_TYPE_ID);\n\t\tcreateEAttribute(perfReviewItemEClass, PERF_REVIEW_ITEM__PERF_REVIEW_ID);\n\t\tcreateEAttribute(perfReviewItemEClass, PERF_REVIEW_ITEM__PERF_REVIEW_ITEM_SEQ_ID);\n\t\tcreateEAttribute(perfReviewItemEClass, PERF_REVIEW_ITEM__COMMENTS);\n\t\tcreateEReference(perfReviewItemEClass, PERF_REVIEW_ITEM__PERF_RATING_TYPE);\n\t\tcreateEReference(perfReviewItemEClass, PERF_REVIEW_ITEM__PERF_REVIEW_ITEM_TYPE);\n\n\t\tperfReviewItemTypeEClass = createEClass(PERF_REVIEW_ITEM_TYPE);\n\t\tcreateEAttribute(perfReviewItemTypeEClass, PERF_REVIEW_ITEM_TYPE__PERF_REVIEW_ITEM_TYPE_ID);\n\t\tcreateEAttribute(perfReviewItemTypeEClass, PERF_REVIEW_ITEM_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(perfReviewItemTypeEClass, PERF_REVIEW_ITEM_TYPE__HAS_TABLE);\n\t\tcreateEReference(perfReviewItemTypeEClass, PERF_REVIEW_ITEM_TYPE__PARENT_TYPE);\n\n\t\tperformanceNoteEClass = createEClass(PERFORMANCE_NOTE);\n\t\tcreateEReference(performanceNoteEClass, PERFORMANCE_NOTE__PARTY);\n\t\tcreateEAttribute(performanceNoteEClass, PERFORMANCE_NOTE__FROM_DATE);\n\t\tcreateEAttribute(performanceNoteEClass, PERFORMANCE_NOTE__ROLE_TYPE_ID);\n\t\tcreateEAttribute(performanceNoteEClass, PERFORMANCE_NOTE__COMMENTS);\n\t\tcreateEAttribute(performanceNoteEClass, PERFORMANCE_NOTE__COMMUNICATION_DATE);\n\t\tcreateEAttribute(performanceNoteEClass, PERFORMANCE_NOTE__THRU_DATE);\n\n\t\tpersonTrainingEClass = createEClass(PERSON_TRAINING);\n\t\tcreateEReference(personTrainingEClass, PERSON_TRAINING__PARTY);\n\t\tcreateEReference(personTrainingEClass, PERSON_TRAINING__TRAINING_CLASS_TYPE);\n\t\tcreateEAttribute(personTrainingEClass, PERSON_TRAINING__FROM_DATE);\n\t\tcreateEAttribute(personTrainingEClass, PERSON_TRAINING__APPROVAL_STATUS);\n\t\tcreateEReference(personTrainingEClass, PERSON_TRAINING__APPROVER);\n\t\tcreateEAttribute(personTrainingEClass, PERSON_TRAINING__REASON);\n\t\tcreateEAttribute(personTrainingEClass, PERSON_TRAINING__THRU_DATE);\n\t\tcreateEReference(personTrainingEClass, PERSON_TRAINING__TRAINING_REQUEST);\n\t\tcreateEReference(personTrainingEClass, PERSON_TRAINING__WORK_EFFORT);\n\n\t\tresponsibilityTypeEClass = createEClass(RESPONSIBILITY_TYPE);\n\t\tcreateEAttribute(responsibilityTypeEClass, RESPONSIBILITY_TYPE__RESPONSIBILITY_TYPE_ID);\n\t\tcreateEAttribute(responsibilityTypeEClass, RESPONSIBILITY_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(responsibilityTypeEClass, RESPONSIBILITY_TYPE__HAS_TABLE);\n\t\tcreateEReference(responsibilityTypeEClass, RESPONSIBILITY_TYPE__PARENT_TYPE);\n\n\t\tskillTypeEClass = createEClass(SKILL_TYPE);\n\t\tcreateEAttribute(skillTypeEClass, SKILL_TYPE__SKILL_TYPE_ID);\n\t\tcreateEAttribute(skillTypeEClass, SKILL_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(skillTypeEClass, SKILL_TYPE__HAS_TABLE);\n\t\tcreateEReference(skillTypeEClass, SKILL_TYPE__PARENT_TYPE);\n\n\t\ttrainingClassTypeEClass = createEClass(TRAINING_CLASS_TYPE);\n\t\tcreateEAttribute(trainingClassTypeEClass, TRAINING_CLASS_TYPE__TRAINING_CLASS_TYPE_ID);\n\t\tcreateEAttribute(trainingClassTypeEClass, TRAINING_CLASS_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(trainingClassTypeEClass, TRAINING_CLASS_TYPE__HAS_TABLE);\n\t\tcreateEReference(trainingClassTypeEClass, TRAINING_CLASS_TYPE__PARENT_TYPE);\n\t}", "public void createPackageContents() {\r\n\t\tif (isCreated) return;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tgemmaEClass = createEClass(GEMMA);\r\n\t\tcreateEReference(gemmaEClass, GEMMA__MACRO_OMS);\r\n\t\tcreateEReference(gemmaEClass, GEMMA__TRANSICIONES);\r\n\t\tcreateEReference(gemmaEClass, GEMMA__VARIABLES_GEMMA);\r\n\r\n\t\tmacroOmEClass = createEClass(MACRO_OM);\r\n\t\tcreateEAttribute(macroOmEClass, MACRO_OM__NAME);\r\n\t\tcreateEAttribute(macroOmEClass, MACRO_OM__TIPO);\r\n\t\tcreateEReference(macroOmEClass, MACRO_OM__OMS);\r\n\r\n\t\tomEClass = createEClass(OM);\r\n\t\tcreateEAttribute(omEClass, OM__NAME);\r\n\t\tcreateEAttribute(omEClass, OM__TIPO);\r\n\t\tcreateEAttribute(omEClass, OM__ES_OM_RAIZ);\r\n\t\tcreateEReference(omEClass, OM__VARIABLES_OM);\r\n\t\tcreateEAttribute(omEClass, OM__ES_VISIBLE);\r\n\r\n\t\ttrasicionEntreOmOmEClass = createEClass(TRASICION_ENTRE_OM_OM);\r\n\t\tcreateEReference(trasicionEntreOmOmEClass, TRASICION_ENTRE_OM_OM__ORIGEN);\r\n\t\tcreateEReference(trasicionEntreOmOmEClass, TRASICION_ENTRE_OM_OM__DESTINO);\r\n\r\n\t\ttransicionEntreMacroOmOmEClass = createEClass(TRANSICION_ENTRE_MACRO_OM_OM);\r\n\t\tcreateEReference(transicionEntreMacroOmOmEClass, TRANSICION_ENTRE_MACRO_OM_OM__ORIGEN);\r\n\t\tcreateEReference(transicionEntreMacroOmOmEClass, TRANSICION_ENTRE_MACRO_OM_OM__DESTINO);\r\n\r\n\t\texpresionBinariaEClass = createEClass(EXPRESION_BINARIA);\r\n\t\tcreateEReference(expresionBinariaEClass, EXPRESION_BINARIA__EXPRESION_IZQUIERDA);\r\n\t\tcreateEReference(expresionBinariaEClass, EXPRESION_BINARIA__EXPRESION_DERECHA);\r\n\t\tcreateEAttribute(expresionBinariaEClass, EXPRESION_BINARIA__OPERADOR);\r\n\r\n\t\telementoExpresionEClass = createEClass(ELEMENTO_EXPRESION);\r\n\r\n\t\tvariableOmEClass = createEClass(VARIABLE_OM);\r\n\t\tcreateEAttribute(variableOmEClass, VARIABLE_OM__NAME);\r\n\r\n\t\ttransicionEClass = createEClass(TRANSICION);\r\n\t\tcreateEAttribute(transicionEClass, TRANSICION__NAME);\r\n\t\tcreateEReference(transicionEClass, TRANSICION__ELEMENTO_EXPRESION);\r\n\r\n\t\tvariableGemmaEClass = createEClass(VARIABLE_GEMMA);\r\n\t\tcreateEAttribute(variableGemmaEClass, VARIABLE_GEMMA__NAME);\r\n\r\n\t\trefVariableGemmaEClass = createEClass(REF_VARIABLE_GEMMA);\r\n\t\tcreateEReference(refVariableGemmaEClass, REF_VARIABLE_GEMMA__VARIABLE_GEMMA);\r\n\t\tcreateEAttribute(refVariableGemmaEClass, REF_VARIABLE_GEMMA__NIVEL_DE_ESCRITURA);\r\n\r\n\t\texpresionNotEClass = createEClass(EXPRESION_NOT);\r\n\t\tcreateEReference(expresionNotEClass, EXPRESION_NOT__ELEMENTO_EXPRESION);\r\n\r\n\t\trefVariableOmEClass = createEClass(REF_VARIABLE_OM);\r\n\t\tcreateEReference(refVariableOmEClass, REF_VARIABLE_OM__VARIABLE_OM);\r\n\r\n\t\texpresionConjuntaEClass = createEClass(EXPRESION_CONJUNTA);\r\n\t\tcreateEReference(expresionConjuntaEClass, EXPRESION_CONJUNTA__ELEMENTO_EXPRESION);\r\n\r\n\t\t// Create enums\r\n\t\ttipoOmEEnum = createEEnum(TIPO_OM);\r\n\t\ttipoMacroOmEEnum = createEEnum(TIPO_MACRO_OM);\r\n\t\ttipoOperadorEEnum = createEEnum(TIPO_OPERADOR);\r\n\t\tnivelDeEscrituraEEnum = createEEnum(NIVEL_DE_ESCRITURA);\r\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tldprojectEClass = createEClass(LDPROJECT);\n\t\tcreateEAttribute(ldprojectEClass, LDPROJECT__NAME);\n\t\tcreateEAttribute(ldprojectEClass, LDPROJECT__LIFECYCLE);\n\t\tcreateEAttribute(ldprojectEClass, LDPROJECT__ROBUSTNESS);\n\t\tcreateEOperation(ldprojectEClass, LDPROJECT___PUBLISH);\n\t\tcreateEOperation(ldprojectEClass, LDPROJECT___UNPUBLISH);\n\t\tcreateEOperation(ldprojectEClass, LDPROJECT___UPDATE);\n\n\t\tlddatabaselinkEClass = createEClass(LDDATABASELINK);\n\t\tcreateEAttribute(lddatabaselinkEClass, LDDATABASELINK__DATABASE);\n\t\tcreateEAttribute(lddatabaselinkEClass, LDDATABASELINK__PORT);\n\n\t\tldprojectlinkEClass = createEClass(LDPROJECTLINK);\n\n\t\tldnodeEClass = createEClass(LDNODE);\n\t\tcreateEAttribute(ldnodeEClass, LDNODE__NAME);\n\t\tcreateEAttribute(ldnodeEClass, LDNODE__MONGO_HOSTS);\n\t\tcreateEAttribute(ldnodeEClass, LDNODE__MAIN_PROJECT);\n\t\tcreateEAttribute(ldnodeEClass, LDNODE__ANALYTICS_READ_PREFERENCE);\n\n\t\t// Create enums\n\t\tlifecycleEEnum = createEEnum(LIFECYCLE);\n\t\trobustnessEEnum = createEEnum(ROBUSTNESS);\n\t}", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n persistEClass = createEClass(PERSIST);\n createEAttribute(persistEClass, PERSIST__MODEL);\n createEReference(persistEClass, PERSIST__STATEMENTS);\n\n ruleStatementEClass = createEClass(RULE_STATEMENT);\n createEAttribute(ruleStatementEClass, RULE_STATEMENT__ID);\n createEReference(ruleStatementEClass, RULE_STATEMENT__RULES);\n\n forEachStatementEClass = createEClass(FOR_EACH_STATEMENT);\n createEReference(forEachStatementEClass, FOR_EACH_STATEMENT__CLASS);\n createEReference(forEachStatementEClass, FOR_EACH_STATEMENT__CONTENTS);\n createEReference(forEachStatementEClass, FOR_EACH_STATEMENT__CALLS);\n\n createStatementEClass = createEClass(CREATE_STATEMENT);\n createEReference(createStatementEClass, CREATE_STATEMENT__NAME);\n\n createFolderStatementEClass = createEClass(CREATE_FOLDER_STATEMENT);\n createEReference(createFolderStatementEClass, CREATE_FOLDER_STATEMENT__CONTENTS);\n createEReference(createFolderStatementEClass, CREATE_FOLDER_STATEMENT__CALLS);\n\n createFileStatementEClass = createEClass(CREATE_FILE_STATEMENT);\n createEReference(createFileStatementEClass, CREATE_FILE_STATEMENT__INCLUDED_REFERENCING);\n createEReference(createFileStatementEClass, CREATE_FILE_STATEMENT__INCLUDED_ATTRIBUTES);\n\n fileNameEClass = createEClass(FILE_NAME);\n createEAttribute(fileNameEClass, FILE_NAME__PREFIX);\n createEReference(fileNameEClass, FILE_NAME__ATTR);\n createEReference(fileNameEClass, FILE_NAME__RIGHT);\n\n includeStatementEClass = createEClass(INCLUDE_STATEMENT);\n createEReference(includeStatementEClass, INCLUDE_STATEMENT__INCLUDED);\n\n withStatementEClass = createEClass(WITH_STATEMENT);\n createEReference(withStatementEClass, WITH_STATEMENT__INCLUDED);\n\n callStatementEClass = createEClass(CALL_STATEMENT);\n createEAttribute(callStatementEClass, CALL_STATEMENT__RULES);\n\n eClassNameEClass = createEClass(ECLASS_NAME);\n createEAttribute(eClassNameEClass, ECLASS_NAME__BASE);\n createEAttribute(eClassNameEClass, ECLASS_NAME__FIELDS);\n\n eAttributeNameEClass = createEClass(EATTRIBUTE_NAME);\n createEAttribute(eAttributeNameEClass, EATTRIBUTE_NAME__BASE);\n createEAttribute(eAttributeNameEClass, EATTRIBUTE_NAME__FIELDS);\n\n eReferenceNameEClass = createEClass(EREFERENCE_NAME);\n createEAttribute(eReferenceNameEClass, EREFERENCE_NAME__BASE);\n createEAttribute(eReferenceNameEClass, EREFERENCE_NAME__FIELDS);\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\taudioEClass = createEClass(AUDIO);\n\t\tcreateEAttribute(audioEClass, AUDIO__CONTENT);\n\t\tcreateEAttribute(audioEClass, AUDIO__NAME);\n\t\tcreateEAttribute(audioEClass, AUDIO__TEXT);\n\n\t\taudioManagerEClass = createEClass(AUDIO_MANAGER);\n\n\t\taudioRecorderEClass = createEClass(AUDIO_RECORDER);\n\n\t\taudioPlayerEClass = createEClass(AUDIO_PLAYER);\n\n\t\t// Create enums\n\t\taudioStyleEEnum = createEEnum(AUDIO_STYLE);\n\t}", "public void createPackageContents()\r\n {\r\n if (isCreated) return;\r\n isCreated = true;\r\n\r\n // Create classes and their features\r\n productEClass = createEClass(PRODUCT);\r\n createEAttribute(productEClass, PRODUCT__PRICE);\r\n createEAttribute(productEClass, PRODUCT__NAME);\r\n createEAttribute(productEClass, PRODUCT__ID);\r\n createEReference(productEClass, PRODUCT__PRODUCER);\r\n createEReference(productEClass, PRODUCT__WISHLISTS);\r\n createEReference(productEClass, PRODUCT__OFFERED_BY);\r\n\r\n customerEClass = createEClass(CUSTOMER);\r\n createEReference(customerEClass, CUSTOMER__ALL_BOUGHT_PRODUCTS);\r\n createEAttribute(customerEClass, CUSTOMER__NAME);\r\n createEAttribute(customerEClass, CUSTOMER__AGE);\r\n createEAttribute(customerEClass, CUSTOMER__ID);\r\n createEReference(customerEClass, CUSTOMER__WISHLISTS);\r\n createEAttribute(customerEClass, CUSTOMER__USERNAME);\r\n\r\n producerEClass = createEClass(PRODUCER);\r\n createEAttribute(producerEClass, PRODUCER__ID);\r\n createEAttribute(producerEClass, PRODUCER__NAME);\r\n createEReference(producerEClass, PRODUCER__PRODUCTS);\r\n\r\n storeEClass = createEClass(STORE);\r\n createEReference(storeEClass, STORE__CUSTOMERS);\r\n createEReference(storeEClass, STORE__PRODUCTS);\r\n createEReference(storeEClass, STORE__PRODUCERS);\r\n createEReference(storeEClass, STORE__SELLERS);\r\n\r\n bookEClass = createEClass(BOOK);\r\n createEAttribute(bookEClass, BOOK__AUTHOR);\r\n\r\n dvdEClass = createEClass(DVD);\r\n createEAttribute(dvdEClass, DVD__INTERPRET);\r\n\r\n wishlistEClass = createEClass(WISHLIST);\r\n createEReference(wishlistEClass, WISHLIST__PRODUCTS);\r\n\r\n sellerEClass = createEClass(SELLER);\r\n createEAttribute(sellerEClass, SELLER__NAME);\r\n createEAttribute(sellerEClass, SELLER__ID);\r\n createEAttribute(sellerEClass, SELLER__USERNAME);\r\n createEReference(sellerEClass, SELLER__ALL_PRODUCTS_TO_SELL);\r\n createEReference(sellerEClass, SELLER__EREFERENCE0);\r\n createEReference(sellerEClass, SELLER__SOLD_PRODUCTS);\r\n }", "public void createPackageContents() {\n\t\tif (isCreated)\n\t\t\treturn;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tuserEClass = createEClass(USER);\n\t\tcreateEAttribute(userEClass, USER__NAME);\n\t\tcreateEReference(userEClass, USER__UR);\n\n\t\troleEClass = createEClass(ROLE);\n\t\tcreateEAttribute(roleEClass, ROLE__NAME);\n\t\tcreateEReference(roleEClass, ROLE__RD);\n\t\tcreateEReference(roleEClass, ROLE__SENIORS);\n\t\tcreateEReference(roleEClass, ROLE__JUNIORS);\n\t\tcreateEReference(roleEClass, ROLE__RU);\n\n\t\tpermissionEClass = createEClass(PERMISSION);\n\t\tcreateEAttribute(permissionEClass, PERMISSION__NAME);\n\t\tcreateEReference(permissionEClass, PERMISSION__PD);\n\n\t\tpolicyEClass = createEClass(POLICY);\n\t\tcreateEReference(policyEClass, POLICY__USERS);\n\t\tcreateEReference(policyEClass, POLICY__ROLES);\n\t\tcreateEReference(policyEClass, POLICY__PERMISSIONS);\n\t\tcreateEAttribute(policyEClass, POLICY__NAME);\n\t\tcreateEReference(policyEClass, POLICY__DEMARCATIONS);\n\n\t\tdemarcationEClass = createEClass(DEMARCATION);\n\t\tcreateEAttribute(demarcationEClass, DEMARCATION__NAME);\n\t\tcreateEReference(demarcationEClass, DEMARCATION__DP);\n\t\tcreateEReference(demarcationEClass, DEMARCATION__SUBS);\n\t\tcreateEReference(demarcationEClass, DEMARCATION__SUPS);\n\t\tcreateEReference(demarcationEClass, DEMARCATION__DR);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttreeEClass = createEClass(TREE);\n\t\tcreateEReference(treeEClass, TREE__CHILDREN);\n\n\t\tnodeEClass = createEClass(NODE);\n\t\tcreateEReference(nodeEClass, NODE__CHILDREN);\n\t\tcreateEAttribute(nodeEClass, NODE__NAME);\n\t}", "public void createPackageContents() {\r\n\t\tif (isCreated) return;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tbankEClass = createEClass(BANK);\r\n\t\tcreateEReference(bankEClass, BANK__MANAGERS);\r\n\t\tcreateEReference(bankEClass, BANK__ACCOUNTS);\r\n\t\tcreateEReference(bankEClass, BANK__CLIENTS);\r\n\r\n\t\tclientEClass = createEClass(CLIENT);\r\n\t\tcreateEReference(clientEClass, CLIENT__MANAGER);\r\n\t\tcreateEReference(clientEClass, CLIENT__ACCOUNTS);\r\n\t\tcreateEAttribute(clientEClass, CLIENT__NAME);\r\n\t\tcreateEReference(clientEClass, CLIENT__SPONSORSHIPS);\r\n\t\tcreateEAttribute(clientEClass, CLIENT__CAPACITY);\r\n\r\n\t\tmanagerEClass = createEClass(MANAGER);\r\n\t\tcreateEReference(managerEClass, MANAGER__CLIENTS);\r\n\t\tcreateEAttribute(managerEClass, MANAGER__NAME);\r\n\r\n\t\taccountEClass = createEClass(ACCOUNT);\r\n\t\tcreateEReference(accountEClass, ACCOUNT__OWNERS);\r\n\t\tcreateEAttribute(accountEClass, ACCOUNT__CREDIT);\r\n\t\tcreateEAttribute(accountEClass, ACCOUNT__OVERDRAFT);\r\n\t\tcreateEReference(accountEClass, ACCOUNT__CARDS);\r\n\r\n\t\tcardEClass = createEClass(CARD);\r\n\t\tcreateEAttribute(cardEClass, CARD__NUMBER);\r\n\t\tcreateEAttribute(cardEClass, CARD__TYPE);\r\n\r\n\t\t// Create enums\r\n\t\tcardTypeEEnum = createEEnum(CARD_TYPE);\r\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tontologicalStructureEClass = createEClass(ONTOLOGICAL_STRUCTURE);\n\t\tcreateEReference(ontologicalStructureEClass, ONTOLOGICAL_STRUCTURE__ONTOLOGICAL_CONCEPTS);\n\t\tcreateEReference(ontologicalStructureEClass, ONTOLOGICAL_STRUCTURE__CONDITIONS);\n\t\tcreateEReference(ontologicalStructureEClass, ONTOLOGICAL_STRUCTURE__PROPERTIES);\n\n\t\tontologicalConceptEClass = createEClass(ONTOLOGICAL_CONCEPT);\n\t\tcreateEAttribute(ontologicalConceptEClass, ONTOLOGICAL_CONCEPT__LABEL);\n\t\tcreateEAttribute(ontologicalConceptEClass, ONTOLOGICAL_CONCEPT__URI);\n\n\t\tconditionEClass = createEClass(CONDITION);\n\t\tcreateEAttribute(conditionEClass, CONDITION__LABEL);\n\n\t\tlogicalConditionEClass = createEClass(LOGICAL_CONDITION);\n\n\t\tnaturalLangConditionEClass = createEClass(NATURAL_LANG_CONDITION);\n\t\tcreateEAttribute(naturalLangConditionEClass, NATURAL_LANG_CONDITION__STATEMENT);\n\n\t\tmathConditionEClass = createEClass(MATH_CONDITION);\n\n\t\tnegformulaEClass = createEClass(NEGFORMULA);\n\t\tcreateEReference(negformulaEClass, NEGFORMULA__CONDITION_STATEMENT);\n\n\t\toRformulaEClass = createEClass(ORFORMULA);\n\t\tcreateEReference(oRformulaEClass, ORFORMULA__LEFT_CONDITION_STATEMENT);\n\t\tcreateEReference(oRformulaEClass, ORFORMULA__RIGHT_CONDITION_STATEMENT);\n\n\t\tanDformulaEClass = createEClass(AN_DFORMULA);\n\t\tcreateEReference(anDformulaEClass, AN_DFORMULA__LEFT_CONDITION_STATEMENT);\n\t\tcreateEReference(anDformulaEClass, AN_DFORMULA__RIGHT_CONDITION_STATEMENT);\n\n\t\tequalFormulaEClass = createEClass(EQUAL_FORMULA);\n\t\tcreateEReference(equalFormulaEClass, EQUAL_FORMULA__LEFT_CONDITION_STATEMENT);\n\t\tcreateEReference(equalFormulaEClass, EQUAL_FORMULA__RIGHT_CONDITION_STATEMENT);\n\n\t\tmoreEqformulaEClass = createEClass(MORE_EQFORMULA);\n\t\tcreateEReference(moreEqformulaEClass, MORE_EQFORMULA__LEFT_CONDITION_STATEMENT);\n\t\tcreateEReference(moreEqformulaEClass, MORE_EQFORMULA__RIGHT_CONDITION_STATEMENT);\n\n\t\tlessformulaEClass = createEClass(LESSFORMULA);\n\t\tcreateEReference(lessformulaEClass, LESSFORMULA__LEFT_CONDITION_STATEMENT);\n\t\tcreateEReference(lessformulaEClass, LESSFORMULA__RIGHT_CONDITION_STATEMENT);\n\n\t\tpropertyEClass = createEClass(PROPERTY);\n\t\tcreateEAttribute(propertyEClass, PROPERTY__LABEL);\n\n\t\tnumberPropertyEClass = createEClass(NUMBER_PROPERTY);\n\t\tcreateEAttribute(numberPropertyEClass, NUMBER_PROPERTY__VALUE);\n\n\t\tbooleanPropertyEClass = createEClass(BOOLEAN_PROPERTY);\n\t\tcreateEAttribute(booleanPropertyEClass, BOOLEAN_PROPERTY__VALUE);\n\n\t\tstringPropertyEClass = createEClass(STRING_PROPERTY);\n\t\tcreateEAttribute(stringPropertyEClass, STRING_PROPERTY__VALUE);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tbaseElementEClass = createEClass(BASE_ELEMENT);\n\t\tcreateEReference(baseElementEClass, BASE_ELEMENT__KEY_VALUE_MAPS);\n\t\tcreateEAttribute(baseElementEClass, BASE_ELEMENT__ID);\n\t\tcreateEAttribute(baseElementEClass, BASE_ELEMENT__NAME);\n\t\tcreateEAttribute(baseElementEClass, BASE_ELEMENT__DESCRIPTION);\n\n\t\tkeyValueMapEClass = createEClass(KEY_VALUE_MAP);\n\t\tcreateEAttribute(keyValueMapEClass, KEY_VALUE_MAP__KEY);\n\t\tcreateEReference(keyValueMapEClass, KEY_VALUE_MAP__VALUES);\n\n\t\tvalueEClass = createEClass(VALUE);\n\t\tcreateEAttribute(valueEClass, VALUE__TAG);\n\t\tcreateEAttribute(valueEClass, VALUE__VALUE);\n\n\t\t// Create enums\n\t\ttimeUnitEEnum = createEEnum(TIME_UNIT);\n\t}", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n mathExpEClass = createEClass(MATH_EXP);\n createEReference(mathExpEClass, MATH_EXP__DECLARATIONS);\n\n declarationEClass = createEClass(DECLARATION);\n\n externalDefEClass = createEClass(EXTERNAL_DEF);\n createEAttribute(externalDefEClass, EXTERNAL_DEF__NAME);\n createEReference(externalDefEClass, EXTERNAL_DEF__PARAMETERS);\n\n parameterEClass = createEClass(PARAMETER);\n createEReference(parameterEClass, PARAMETER__TYPE);\n createEAttribute(parameterEClass, PARAMETER__PARAMETER_NAME);\n\n typeEClass = createEClass(TYPE);\n createEAttribute(typeEClass, TYPE__NAME);\n\n resultStatementEClass = createEClass(RESULT_STATEMENT);\n createEAttribute(resultStatementEClass, RESULT_STATEMENT__LABEL);\n createEReference(resultStatementEClass, RESULT_STATEMENT__EXP);\n\n expressionEClass = createEClass(EXPRESSION);\n\n plusEClass = createEClass(PLUS);\n createEReference(plusEClass, PLUS__LEFT);\n createEReference(plusEClass, PLUS__RIGHT);\n\n minusEClass = createEClass(MINUS);\n createEReference(minusEClass, MINUS__LEFT);\n createEReference(minusEClass, MINUS__RIGHT);\n\n multEClass = createEClass(MULT);\n createEReference(multEClass, MULT__LEFT);\n createEReference(multEClass, MULT__RIGHT);\n\n divEClass = createEClass(DIV);\n createEReference(divEClass, DIV__LEFT);\n createEReference(divEClass, DIV__RIGHT);\n\n varEClass = createEClass(VAR);\n createEAttribute(varEClass, VAR__ID);\n\n letEClass = createEClass(LET);\n createEAttribute(letEClass, LET__ID);\n createEReference(letEClass, LET__BINDING);\n createEReference(letEClass, LET__BODY);\n\n externalUseEClass = createEClass(EXTERNAL_USE);\n createEReference(externalUseEClass, EXTERNAL_USE__EXTERNAL);\n createEReference(externalUseEClass, EXTERNAL_USE__ARGUMENTS);\n\n numEClass = createEClass(NUM);\n createEAttribute(numEClass, NUM__VALUE);\n }", "public void createPackageContents() {\n\t\tif (isCreated)\n\t\t\treturn;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tbagTypeEClass = createEClass(BAG_TYPE);\n\n\t\ttupleTypeEClass = createEClass(TUPLE_TYPE);\n\t\tcreateEReference(tupleTypeEClass, TUPLE_TYPE__OCL_LIBRARY);\n\n\t\tcollectionTypeEClass = createEClass(COLLECTION_TYPE);\n\t\tcreateEReference(collectionTypeEClass, COLLECTION_TYPE__ELEMENT_TYPE);\n\t\tcreateEReference(collectionTypeEClass, COLLECTION_TYPE__OCL_LIBRARY);\n\t\tcreateEAttribute(collectionTypeEClass, COLLECTION_TYPE__KIND);\n\n\t\tinvalidTypeEClass = createEClass(INVALID_TYPE);\n\t\tcreateEReference(invalidTypeEClass, INVALID_TYPE__OCL_LIBRARY);\n\n\t\torderedSetTypeEClass = createEClass(ORDERED_SET_TYPE);\n\n\t\tsequenceTypeEClass = createEClass(SEQUENCE_TYPE);\n\n\t\tsetTypeEClass = createEClass(SET_TYPE);\n\n\t\tvoidTypeEClass = createEClass(VOID_TYPE);\n\t\tcreateEReference(voidTypeEClass, VOID_TYPE__OCL_LIBRARY);\n\n\t\ttypeTypeEClass = createEClass(TYPE_TYPE);\n\t\tcreateEReference(typeTypeEClass, TYPE_TYPE__REPRESENTED_TYPE);\n\n\t\toclLibraryEClass = createEClass(OCL_LIBRARY);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_BOOLEAN);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_STRING);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_INTEGER);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_REAL);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_ANY);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_VOID);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_INVALID);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_TYPE);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_COLLECTION);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_SEQUENCE);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_BAG);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_SET);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_ORDERED_SET);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_TUPLE);\n\n\t\tanyTypeEClass = createEClass(ANY_TYPE);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\troleEClass = createEClass(ROLE);\n\t\tcreateEReference(roleEClass, ROLE__SOCIETY);\n\t\tcreateEReference(roleEClass, ROLE__IS_REALIZED_BY_INDIVIDUAL);\n\t\tcreateEReference(roleEClass, ROLE__PARENT);\n\t\tcreateEReference(roleEClass, ROLE__CHILDREN);\n\t\tcreateEAttribute(roleEClass, ROLE__ID);\n\t\tcreateEAttribute(roleEClass, ROLE__NAME);\n\n\t\tindividualRealizationEClass = createEClass(INDIVIDUAL_REALIZATION);\n\t\tcreateEReference(individualRealizationEClass, INDIVIDUAL_REALIZATION__TARGET);\n\t\tcreateEReference(individualRealizationEClass, INDIVIDUAL_REALIZATION__SOURCE);\n\t\tcreateEReference(individualRealizationEClass, INDIVIDUAL_REALIZATION__SOCIETY);\n\t\tcreateEAttribute(individualRealizationEClass, INDIVIDUAL_REALIZATION__ID);\n\n\t\tsocietyEClass = createEClass(SOCIETY);\n\t\tcreateEReference(societyEClass, SOCIETY__GENERALIZATIONS);\n\t\tcreateEReference(societyEClass, SOCIETY__RELAIZATIONS);\n\t\tcreateEReference(societyEClass, SOCIETY__INDIVIDUALS);\n\t\tcreateEAttribute(societyEClass, SOCIETY__NAME);\n\t\tcreateEReference(societyEClass, SOCIETY__ROLES);\n\n\t\tspecializationEClass = createEClass(SPECIALIZATION);\n\t\tcreateEReference(specializationEClass, SPECIALIZATION__TARGET);\n\t\tcreateEReference(specializationEClass, SPECIALIZATION__SOURCE);\n\t\tcreateEReference(specializationEClass, SPECIALIZATION__SOCIETY);\n\t\tcreateEAttribute(specializationEClass, SPECIALIZATION__ID);\n\n\t\tindividualInstanceEClass = createEClass(INDIVIDUAL_INSTANCE);\n\t\tcreateEReference(individualInstanceEClass, INDIVIDUAL_INSTANCE__REALIZES);\n\t\tcreateEAttribute(individualInstanceEClass, INDIVIDUAL_INSTANCE__ID);\n\t\tcreateEAttribute(individualInstanceEClass, INDIVIDUAL_INSTANCE__NAME);\n\t\tcreateEReference(individualInstanceEClass, INDIVIDUAL_INSTANCE__SOCIETY);\n\n\t\tsocialInstanceEClass = createEClass(SOCIAL_INSTANCE);\n\t\tcreateEOperation(socialInstanceEClass, SOCIAL_INSTANCE___GET_ID);\n\t\tcreateEOperation(socialInstanceEClass, SOCIAL_INSTANCE___GET_NAME);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated)\n\t\t\treturn;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tprojectEClass = createEClass(PROJECT);\n\t\tcreateEReference(projectEClass, PROJECT__PLUGINS);\n\t\tcreateEAttribute(projectEClass, PROJECT__NAME);\n\t\tcreateEReference(projectEClass, PROJECT__REPOSITORIES);\n\t\tcreateEReference(projectEClass, PROJECT__DEPENDENCIES);\n\t\tcreateEReference(projectEClass, PROJECT__VIEWS);\n\t\tcreateEReference(projectEClass, PROJECT__PROPERTIES);\n\n\t\tpluginEClass = createEClass(PLUGIN);\n\t\tcreateEReference(pluginEClass, PLUGIN__REPOSITORIES);\n\t\tcreateEReference(pluginEClass, PLUGIN__OUTPUT_PORTS);\n\t\tcreateEReference(pluginEClass, PLUGIN__DISPLAYS);\n\n\t\tportEClass = createEClass(PORT);\n\t\tcreateEAttribute(portEClass, PORT__NAME);\n\t\tcreateEAttribute(portEClass, PORT__EVENT_TYPES);\n\t\tcreateEAttribute(portEClass, PORT__ID);\n\n\t\tinputPortEClass = createEClass(INPUT_PORT);\n\t\tcreateEReference(inputPortEClass, INPUT_PORT__PARENT);\n\n\t\toutputPortEClass = createEClass(OUTPUT_PORT);\n\t\tcreateEReference(outputPortEClass, OUTPUT_PORT__SUBSCRIBERS);\n\t\tcreateEReference(outputPortEClass, OUTPUT_PORT__PARENT);\n\n\t\tpropertyEClass = createEClass(PROPERTY);\n\t\tcreateEAttribute(propertyEClass, PROPERTY__NAME);\n\t\tcreateEAttribute(propertyEClass, PROPERTY__VALUE);\n\n\t\tfilterEClass = createEClass(FILTER);\n\t\tcreateEReference(filterEClass, FILTER__INPUT_PORTS);\n\n\t\treaderEClass = createEClass(READER);\n\n\t\trepositoryEClass = createEClass(REPOSITORY);\n\n\t\tdependencyEClass = createEClass(DEPENDENCY);\n\t\tcreateEAttribute(dependencyEClass, DEPENDENCY__FILE_PATH);\n\n\t\trepositoryConnectorEClass = createEClass(REPOSITORY_CONNECTOR);\n\t\tcreateEAttribute(repositoryConnectorEClass, REPOSITORY_CONNECTOR__NAME);\n\t\tcreateEReference(repositoryConnectorEClass, REPOSITORY_CONNECTOR__REPOSITORY);\n\t\tcreateEAttribute(repositoryConnectorEClass, REPOSITORY_CONNECTOR__ID);\n\n\t\tdisplayEClass = createEClass(DISPLAY);\n\t\tcreateEAttribute(displayEClass, DISPLAY__NAME);\n\t\tcreateEReference(displayEClass, DISPLAY__PARENT);\n\t\tcreateEAttribute(displayEClass, DISPLAY__ID);\n\n\t\tviewEClass = createEClass(VIEW);\n\t\tcreateEAttribute(viewEClass, VIEW__NAME);\n\t\tcreateEAttribute(viewEClass, VIEW__DESCRIPTION);\n\t\tcreateEReference(viewEClass, VIEW__DISPLAY_CONNECTORS);\n\t\tcreateEAttribute(viewEClass, VIEW__ID);\n\n\t\tdisplayConnectorEClass = createEClass(DISPLAY_CONNECTOR);\n\t\tcreateEAttribute(displayConnectorEClass, DISPLAY_CONNECTOR__NAME);\n\t\tcreateEReference(displayConnectorEClass, DISPLAY_CONNECTOR__DISPLAY);\n\t\tcreateEAttribute(displayConnectorEClass, DISPLAY_CONNECTOR__ID);\n\n\t\tanalysisComponentEClass = createEClass(ANALYSIS_COMPONENT);\n\t\tcreateEAttribute(analysisComponentEClass, ANALYSIS_COMPONENT__NAME);\n\t\tcreateEAttribute(analysisComponentEClass, ANALYSIS_COMPONENT__CLASSNAME);\n\t\tcreateEReference(analysisComponentEClass, ANALYSIS_COMPONENT__PROPERTIES);\n\t\tcreateEAttribute(analysisComponentEClass, ANALYSIS_COMPONENT__ID);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tstateEClass = createEClass(STATE);\n\t\tcreateEAttribute(stateEClass, STATE__NAME);\n\t\tcreateEAttribute(stateEClass, STATE__INVARIANT);\n\t\tcreateEAttribute(stateEClass, STATE__INITIAL);\n\t\tcreateEAttribute(stateEClass, STATE__URGENT);\n\t\tcreateEAttribute(stateEClass, STATE__COMMITTED);\n\n\t\tconnectorEClass = createEClass(CONNECTOR);\n\t\tcreateEAttribute(connectorEClass, CONNECTOR__NAME);\n\t\tcreateEReference(connectorEClass, CONNECTOR__DIAGRAM);\n\n\t\tdiagramEClass = createEClass(DIAGRAM);\n\t\tcreateEAttribute(diagramEClass, DIAGRAM__NAME);\n\t\tcreateEReference(diagramEClass, DIAGRAM__CONNECTORS);\n\t\tcreateEReference(diagramEClass, DIAGRAM__STATES);\n\t\tcreateEReference(diagramEClass, DIAGRAM__SUBDIAGRAMS);\n\t\tcreateEReference(diagramEClass, DIAGRAM__EDGES);\n\t\tcreateEAttribute(diagramEClass, DIAGRAM__IS_PARALLEL);\n\n\t\tedgeEClass = createEClass(EDGE);\n\t\tcreateEReference(edgeEClass, EDGE__START);\n\t\tcreateEReference(edgeEClass, EDGE__END);\n\t\tcreateEReference(edgeEClass, EDGE__EREFERENCE0);\n\t\tcreateEAttribute(edgeEClass, EDGE__SELECT);\n\t\tcreateEAttribute(edgeEClass, EDGE__GUARD);\n\t\tcreateEAttribute(edgeEClass, EDGE__SYNC);\n\t\tcreateEAttribute(edgeEClass, EDGE__UPDATE);\n\t\tcreateEAttribute(edgeEClass, EDGE__COMMENTS);\n\n\t\tendPointEClass = createEClass(END_POINT);\n\t\tcreateEReference(endPointEClass, END_POINT__OUTGOING_EDGES);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\telementEClass = createEClass(ELEMENT);\n\t\tcreateEOperation(elementEClass, ELEMENT___GET_ONTOLOGY);\n\t\tcreateEOperation(elementEClass, ELEMENT___EXTRA_VALIDATE__DIAGNOSTICCHAIN_MAP);\n\n\t\tannotationEClass = createEClass(ANNOTATION);\n\t\tcreateEReference(annotationEClass, ANNOTATION__PROPERTY);\n\t\tcreateEReference(annotationEClass, ANNOTATION__LITERAL_VALUE);\n\t\tcreateEReference(annotationEClass, ANNOTATION__REFERENCE_VALUE);\n\t\tcreateEReference(annotationEClass, ANNOTATION__OWNING_ELEMENT);\n\t\tcreateEOperation(annotationEClass, ANNOTATION___GET_VALUE);\n\t\tcreateEOperation(annotationEClass, ANNOTATION___GET_ANNOTATED_ELEMENT);\n\n\t\tidentifiedElementEClass = createEClass(IDENTIFIED_ELEMENT);\n\t\tcreateEReference(identifiedElementEClass, IDENTIFIED_ELEMENT__OWNED_ANNOTATIONS);\n\t\tcreateEOperation(identifiedElementEClass, IDENTIFIED_ELEMENT___GET_IRI);\n\n\t\timportEClass = createEClass(IMPORT);\n\t\tcreateEAttribute(importEClass, IMPORT__KIND);\n\t\tcreateEAttribute(importEClass, IMPORT__NAMESPACE);\n\t\tcreateEAttribute(importEClass, IMPORT__PREFIX);\n\t\tcreateEReference(importEClass, IMPORT__OWNING_ONTOLOGY);\n\t\tcreateEOperation(importEClass, IMPORT___GET_IRI);\n\t\tcreateEOperation(importEClass, IMPORT___GET_SEPARATOR);\n\n\t\tinstanceEClass = createEClass(INSTANCE);\n\t\tcreateEReference(instanceEClass, INSTANCE__OWNED_PROPERTY_VALUES);\n\n\t\taxiomEClass = createEClass(AXIOM);\n\t\tcreateEOperation(axiomEClass, AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tassertionEClass = createEClass(ASSERTION);\n\t\tcreateEOperation(assertionEClass, ASSERTION___GET_SUBJECT);\n\t\tcreateEOperation(assertionEClass, ASSERTION___GET_OBJECT);\n\n\t\tpredicateEClass = createEClass(PREDICATE);\n\t\tcreateEReference(predicateEClass, PREDICATE__ANTECEDENT_RULE);\n\t\tcreateEReference(predicateEClass, PREDICATE__CONSEQUENT_RULE);\n\n\t\targumentEClass = createEClass(ARGUMENT);\n\t\tcreateEAttribute(argumentEClass, ARGUMENT__VARIABLE);\n\t\tcreateEReference(argumentEClass, ARGUMENT__LITERAL);\n\t\tcreateEReference(argumentEClass, ARGUMENT__INSTANCE);\n\n\t\tliteralEClass = createEClass(LITERAL);\n\t\tcreateEOperation(literalEClass, LITERAL___GET_VALUE);\n\t\tcreateEOperation(literalEClass, LITERAL___GET_STRING_VALUE);\n\t\tcreateEOperation(literalEClass, LITERAL___GET_LEXICAL_VALUE);\n\t\tcreateEOperation(literalEClass, LITERAL___GET_TYPE_IRI);\n\n\t\tontologyEClass = createEClass(ONTOLOGY);\n\t\tcreateEAttribute(ontologyEClass, ONTOLOGY__NAMESPACE);\n\t\tcreateEAttribute(ontologyEClass, ONTOLOGY__PREFIX);\n\t\tcreateEReference(ontologyEClass, ONTOLOGY__OWNED_IMPORTS);\n\t\tcreateEOperation(ontologyEClass, ONTOLOGY___GET_IRI);\n\t\tcreateEOperation(ontologyEClass, ONTOLOGY___GET_SEPARATOR);\n\n\t\tmemberEClass = createEClass(MEMBER);\n\t\tcreateEAttribute(memberEClass, MEMBER__NAME);\n\t\tcreateEOperation(memberEClass, MEMBER___GET_REF);\n\t\tcreateEOperation(memberEClass, MEMBER___IS_REF);\n\t\tcreateEOperation(memberEClass, MEMBER___RESOLVE);\n\t\tcreateEOperation(memberEClass, MEMBER___GET_IRI);\n\t\tcreateEOperation(memberEClass, MEMBER___GET_ABBREVIATED_IRI);\n\n\t\tvocabularyBoxEClass = createEClass(VOCABULARY_BOX);\n\n\t\tdescriptionBoxEClass = createEClass(DESCRIPTION_BOX);\n\n\t\tvocabularyEClass = createEClass(VOCABULARY);\n\t\tcreateEReference(vocabularyEClass, VOCABULARY__OWNED_STATEMENTS);\n\n\t\tvocabularyBundleEClass = createEClass(VOCABULARY_BUNDLE);\n\n\t\tdescriptionEClass = createEClass(DESCRIPTION);\n\t\tcreateEReference(descriptionEClass, DESCRIPTION__OWNED_STATEMENTS);\n\n\t\tdescriptionBundleEClass = createEClass(DESCRIPTION_BUNDLE);\n\n\t\tstatementEClass = createEClass(STATEMENT);\n\n\t\tvocabularyMemberEClass = createEClass(VOCABULARY_MEMBER);\n\n\t\tdescriptionMemberEClass = createEClass(DESCRIPTION_MEMBER);\n\n\t\tvocabularyStatementEClass = createEClass(VOCABULARY_STATEMENT);\n\t\tcreateEReference(vocabularyStatementEClass, VOCABULARY_STATEMENT__OWNING_VOCABULARY);\n\n\t\tdescriptionStatementEClass = createEClass(DESCRIPTION_STATEMENT);\n\t\tcreateEReference(descriptionStatementEClass, DESCRIPTION_STATEMENT__OWNING_DESCRIPTION);\n\n\t\ttermEClass = createEClass(TERM);\n\n\t\truleEClass = createEClass(RULE);\n\t\tcreateEReference(ruleEClass, RULE__REF);\n\t\tcreateEReference(ruleEClass, RULE__ANTECEDENT);\n\t\tcreateEReference(ruleEClass, RULE__CONSEQUENT);\n\n\t\tbuiltInEClass = createEClass(BUILT_IN);\n\t\tcreateEReference(builtInEClass, BUILT_IN__REF);\n\n\t\tspecializableTermEClass = createEClass(SPECIALIZABLE_TERM);\n\t\tcreateEReference(specializableTermEClass, SPECIALIZABLE_TERM__OWNED_SPECIALIZATIONS);\n\n\t\tpropertyEClass = createEClass(PROPERTY);\n\n\t\ttypeEClass = createEClass(TYPE);\n\n\t\trelationBaseEClass = createEClass(RELATION_BASE);\n\t\tcreateEReference(relationBaseEClass, RELATION_BASE__SOURCES);\n\t\tcreateEReference(relationBaseEClass, RELATION_BASE__TARGETS);\n\t\tcreateEReference(relationBaseEClass, RELATION_BASE__REVERSE_RELATION);\n\t\tcreateEAttribute(relationBaseEClass, RELATION_BASE__FUNCTIONAL);\n\t\tcreateEAttribute(relationBaseEClass, RELATION_BASE__INVERSE_FUNCTIONAL);\n\t\tcreateEAttribute(relationBaseEClass, RELATION_BASE__SYMMETRIC);\n\t\tcreateEAttribute(relationBaseEClass, RELATION_BASE__ASYMMETRIC);\n\t\tcreateEAttribute(relationBaseEClass, RELATION_BASE__REFLEXIVE);\n\t\tcreateEAttribute(relationBaseEClass, RELATION_BASE__IRREFLEXIVE);\n\t\tcreateEAttribute(relationBaseEClass, RELATION_BASE__TRANSITIVE);\n\n\t\tspecializablePropertyEClass = createEClass(SPECIALIZABLE_PROPERTY);\n\t\tcreateEReference(specializablePropertyEClass, SPECIALIZABLE_PROPERTY__OWNED_EQUIVALENCES);\n\n\t\tclassifierEClass = createEClass(CLASSIFIER);\n\t\tcreateEReference(classifierEClass, CLASSIFIER__OWNED_EQUIVALENCES);\n\t\tcreateEReference(classifierEClass, CLASSIFIER__OWNED_PROPERTY_RESTRICTIONS);\n\n\t\tscalarEClass = createEClass(SCALAR);\n\t\tcreateEReference(scalarEClass, SCALAR__REF);\n\t\tcreateEReference(scalarEClass, SCALAR__OWNED_ENUMERATION);\n\t\tcreateEReference(scalarEClass, SCALAR__OWNED_EQUIVALENCES);\n\n\t\tentityEClass = createEClass(ENTITY);\n\t\tcreateEReference(entityEClass, ENTITY__OWNED_KEYS);\n\n\t\tstructureEClass = createEClass(STRUCTURE);\n\t\tcreateEReference(structureEClass, STRUCTURE__REF);\n\n\t\taspectEClass = createEClass(ASPECT);\n\t\tcreateEReference(aspectEClass, ASPECT__REF);\n\n\t\tconceptEClass = createEClass(CONCEPT);\n\t\tcreateEReference(conceptEClass, CONCEPT__REF);\n\t\tcreateEReference(conceptEClass, CONCEPT__OWNED_ENUMERATION);\n\n\t\trelationEntityEClass = createEClass(RELATION_ENTITY);\n\t\tcreateEReference(relationEntityEClass, RELATION_ENTITY__REF);\n\t\tcreateEReference(relationEntityEClass, RELATION_ENTITY__FORWARD_RELATION);\n\n\t\tannotationPropertyEClass = createEClass(ANNOTATION_PROPERTY);\n\t\tcreateEReference(annotationPropertyEClass, ANNOTATION_PROPERTY__REF);\n\n\t\tsemanticPropertyEClass = createEClass(SEMANTIC_PROPERTY);\n\t\tcreateEOperation(semanticPropertyEClass, SEMANTIC_PROPERTY___IS_FUNCTIONAL);\n\t\tcreateEOperation(semanticPropertyEClass, SEMANTIC_PROPERTY___GET_DOMAIN_LIST);\n\t\tcreateEOperation(semanticPropertyEClass, SEMANTIC_PROPERTY___GET_RANGE_LIST);\n\n\t\tscalarPropertyEClass = createEClass(SCALAR_PROPERTY);\n\t\tcreateEReference(scalarPropertyEClass, SCALAR_PROPERTY__REF);\n\t\tcreateEAttribute(scalarPropertyEClass, SCALAR_PROPERTY__FUNCTIONAL);\n\t\tcreateEReference(scalarPropertyEClass, SCALAR_PROPERTY__DOMAINS);\n\t\tcreateEReference(scalarPropertyEClass, SCALAR_PROPERTY__RANGES);\n\t\tcreateEOperation(scalarPropertyEClass, SCALAR_PROPERTY___GET_DOMAIN_LIST);\n\t\tcreateEOperation(scalarPropertyEClass, SCALAR_PROPERTY___GET_RANGE_LIST);\n\n\t\tstructuredPropertyEClass = createEClass(STRUCTURED_PROPERTY);\n\t\tcreateEReference(structuredPropertyEClass, STRUCTURED_PROPERTY__REF);\n\t\tcreateEAttribute(structuredPropertyEClass, STRUCTURED_PROPERTY__FUNCTIONAL);\n\t\tcreateEReference(structuredPropertyEClass, STRUCTURED_PROPERTY__DOMAINS);\n\t\tcreateEReference(structuredPropertyEClass, STRUCTURED_PROPERTY__RANGES);\n\t\tcreateEOperation(structuredPropertyEClass, STRUCTURED_PROPERTY___GET_DOMAIN_LIST);\n\t\tcreateEOperation(structuredPropertyEClass, STRUCTURED_PROPERTY___GET_RANGE_LIST);\n\n\t\trelationEClass = createEClass(RELATION);\n\t\tcreateEOperation(relationEClass, RELATION___IS_INVERSE_FUNCTIONAL);\n\t\tcreateEOperation(relationEClass, RELATION___IS_SYMMETRIC);\n\t\tcreateEOperation(relationEClass, RELATION___IS_ASYMMETRIC);\n\t\tcreateEOperation(relationEClass, RELATION___IS_REFLEXIVE);\n\t\tcreateEOperation(relationEClass, RELATION___IS_IRREFLEXIVE);\n\t\tcreateEOperation(relationEClass, RELATION___IS_TRANSITIVE);\n\t\tcreateEOperation(relationEClass, RELATION___GET_DOMAINS);\n\t\tcreateEOperation(relationEClass, RELATION___GET_RANGES);\n\t\tcreateEOperation(relationEClass, RELATION___GET_INVERSE);\n\t\tcreateEOperation(relationEClass, RELATION___GET_DOMAIN_LIST);\n\t\tcreateEOperation(relationEClass, RELATION___GET_RANGE_LIST);\n\n\t\tforwardRelationEClass = createEClass(FORWARD_RELATION);\n\t\tcreateEReference(forwardRelationEClass, FORWARD_RELATION__RELATION_ENTITY);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___GET_REF);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___IS_FUNCTIONAL);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___IS_INVERSE_FUNCTIONAL);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___IS_SYMMETRIC);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___IS_ASYMMETRIC);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___IS_REFLEXIVE);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___IS_IRREFLEXIVE);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___IS_TRANSITIVE);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___GET_DOMAINS);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___GET_RANGES);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___GET_INVERSE);\n\n\t\treverseRelationEClass = createEClass(REVERSE_RELATION);\n\t\tcreateEReference(reverseRelationEClass, REVERSE_RELATION__RELATION_BASE);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___GET_REF);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___IS_FUNCTIONAL);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___IS_INVERSE_FUNCTIONAL);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___IS_SYMMETRIC);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___IS_ASYMMETRIC);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___IS_REFLEXIVE);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___IS_IRREFLEXIVE);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___IS_TRANSITIVE);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___GET_DOMAINS);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___GET_RANGES);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___GET_INVERSE);\n\n\t\tunreifiedRelationEClass = createEClass(UNREIFIED_RELATION);\n\t\tcreateEReference(unreifiedRelationEClass, UNREIFIED_RELATION__REF);\n\t\tcreateEOperation(unreifiedRelationEClass, UNREIFIED_RELATION___GET_DOMAINS);\n\t\tcreateEOperation(unreifiedRelationEClass, UNREIFIED_RELATION___GET_RANGES);\n\t\tcreateEOperation(unreifiedRelationEClass, UNREIFIED_RELATION___GET_INVERSE);\n\n\t\tnamedInstanceEClass = createEClass(NAMED_INSTANCE);\n\t\tcreateEReference(namedInstanceEClass, NAMED_INSTANCE__OWNED_TYPES);\n\n\t\tconceptInstanceEClass = createEClass(CONCEPT_INSTANCE);\n\t\tcreateEReference(conceptInstanceEClass, CONCEPT_INSTANCE__REF);\n\n\t\trelationInstanceEClass = createEClass(RELATION_INSTANCE);\n\t\tcreateEReference(relationInstanceEClass, RELATION_INSTANCE__REF);\n\t\tcreateEReference(relationInstanceEClass, RELATION_INSTANCE__SOURCES);\n\t\tcreateEReference(relationInstanceEClass, RELATION_INSTANCE__TARGETS);\n\n\t\tstructureInstanceEClass = createEClass(STRUCTURE_INSTANCE);\n\t\tcreateEReference(structureInstanceEClass, STRUCTURE_INSTANCE__TYPE);\n\t\tcreateEReference(structureInstanceEClass, STRUCTURE_INSTANCE__OWNING_AXIOM);\n\t\tcreateEReference(structureInstanceEClass, STRUCTURE_INSTANCE__OWNING_ASSERTION);\n\n\t\tkeyAxiomEClass = createEClass(KEY_AXIOM);\n\t\tcreateEReference(keyAxiomEClass, KEY_AXIOM__PROPERTIES);\n\t\tcreateEReference(keyAxiomEClass, KEY_AXIOM__OWNING_ENTITY);\n\t\tcreateEOperation(keyAxiomEClass, KEY_AXIOM___GET_KEYED_ENTITY);\n\t\tcreateEOperation(keyAxiomEClass, KEY_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tspecializationAxiomEClass = createEClass(SPECIALIZATION_AXIOM);\n\t\tcreateEReference(specializationAxiomEClass, SPECIALIZATION_AXIOM__SUPER_TERM);\n\t\tcreateEReference(specializationAxiomEClass, SPECIALIZATION_AXIOM__OWNING_TERM);\n\t\tcreateEOperation(specializationAxiomEClass, SPECIALIZATION_AXIOM___GET_SUB_TERM);\n\t\tcreateEOperation(specializationAxiomEClass, SPECIALIZATION_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tinstanceEnumerationAxiomEClass = createEClass(INSTANCE_ENUMERATION_AXIOM);\n\t\tcreateEReference(instanceEnumerationAxiomEClass, INSTANCE_ENUMERATION_AXIOM__INSTANCES);\n\t\tcreateEReference(instanceEnumerationAxiomEClass, INSTANCE_ENUMERATION_AXIOM__OWNING_CONCEPT);\n\t\tcreateEOperation(instanceEnumerationAxiomEClass, INSTANCE_ENUMERATION_AXIOM___GET_ENUMERATED_CONCEPT);\n\t\tcreateEOperation(instanceEnumerationAxiomEClass, INSTANCE_ENUMERATION_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tpropertyRestrictionAxiomEClass = createEClass(PROPERTY_RESTRICTION_AXIOM);\n\t\tcreateEReference(propertyRestrictionAxiomEClass, PROPERTY_RESTRICTION_AXIOM__PROPERTY);\n\t\tcreateEReference(propertyRestrictionAxiomEClass, PROPERTY_RESTRICTION_AXIOM__OWNING_CLASSIFIER);\n\t\tcreateEReference(propertyRestrictionAxiomEClass, PROPERTY_RESTRICTION_AXIOM__OWNING_AXIOM);\n\t\tcreateEOperation(propertyRestrictionAxiomEClass, PROPERTY_RESTRICTION_AXIOM___GET_RESTRICTING_DOMAIN);\n\t\tcreateEOperation(propertyRestrictionAxiomEClass, PROPERTY_RESTRICTION_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tliteralEnumerationAxiomEClass = createEClass(LITERAL_ENUMERATION_AXIOM);\n\t\tcreateEReference(literalEnumerationAxiomEClass, LITERAL_ENUMERATION_AXIOM__LITERALS);\n\t\tcreateEReference(literalEnumerationAxiomEClass, LITERAL_ENUMERATION_AXIOM__OWNING_SCALAR);\n\t\tcreateEOperation(literalEnumerationAxiomEClass, LITERAL_ENUMERATION_AXIOM___GET_ENUMERATED_SCALAR);\n\t\tcreateEOperation(literalEnumerationAxiomEClass, LITERAL_ENUMERATION_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tclassifierEquivalenceAxiomEClass = createEClass(CLASSIFIER_EQUIVALENCE_AXIOM);\n\t\tcreateEReference(classifierEquivalenceAxiomEClass, CLASSIFIER_EQUIVALENCE_AXIOM__SUPER_CLASSIFIERS);\n\t\tcreateEReference(classifierEquivalenceAxiomEClass, CLASSIFIER_EQUIVALENCE_AXIOM__OWNED_PROPERTY_RESTRICTIONS);\n\t\tcreateEReference(classifierEquivalenceAxiomEClass, CLASSIFIER_EQUIVALENCE_AXIOM__OWNING_CLASSIFIER);\n\t\tcreateEOperation(classifierEquivalenceAxiomEClass, CLASSIFIER_EQUIVALENCE_AXIOM___GET_SUB_CLASSIFIER);\n\t\tcreateEOperation(classifierEquivalenceAxiomEClass, CLASSIFIER_EQUIVALENCE_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tscalarEquivalenceAxiomEClass = createEClass(SCALAR_EQUIVALENCE_AXIOM);\n\t\tcreateEReference(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__SUPER_SCALAR);\n\t\tcreateEReference(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__OWNING_SCALAR);\n\t\tcreateEAttribute(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__LENGTH);\n\t\tcreateEAttribute(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__MIN_LENGTH);\n\t\tcreateEAttribute(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__MAX_LENGTH);\n\t\tcreateEAttribute(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__PATTERN);\n\t\tcreateEAttribute(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__LANGUAGE);\n\t\tcreateEReference(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__MIN_INCLUSIVE);\n\t\tcreateEReference(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__MIN_EXCLUSIVE);\n\t\tcreateEReference(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__MAX_INCLUSIVE);\n\t\tcreateEReference(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__MAX_EXCLUSIVE);\n\t\tcreateEOperation(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM___GET_SUB_SCALAR);\n\t\tcreateEOperation(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tpropertyEquivalenceAxiomEClass = createEClass(PROPERTY_EQUIVALENCE_AXIOM);\n\t\tcreateEReference(propertyEquivalenceAxiomEClass, PROPERTY_EQUIVALENCE_AXIOM__SUPER_PROPERTY);\n\t\tcreateEReference(propertyEquivalenceAxiomEClass, PROPERTY_EQUIVALENCE_AXIOM__OWNING_PROPERTY);\n\t\tcreateEOperation(propertyEquivalenceAxiomEClass, PROPERTY_EQUIVALENCE_AXIOM___GET_SUB_PROPERTY);\n\t\tcreateEOperation(propertyEquivalenceAxiomEClass, PROPERTY_EQUIVALENCE_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tpropertyRangeRestrictionAxiomEClass = createEClass(PROPERTY_RANGE_RESTRICTION_AXIOM);\n\t\tcreateEAttribute(propertyRangeRestrictionAxiomEClass, PROPERTY_RANGE_RESTRICTION_AXIOM__KIND);\n\t\tcreateEReference(propertyRangeRestrictionAxiomEClass, PROPERTY_RANGE_RESTRICTION_AXIOM__RANGE);\n\n\t\tpropertyCardinalityRestrictionAxiomEClass = createEClass(PROPERTY_CARDINALITY_RESTRICTION_AXIOM);\n\t\tcreateEAttribute(propertyCardinalityRestrictionAxiomEClass, PROPERTY_CARDINALITY_RESTRICTION_AXIOM__KIND);\n\t\tcreateEAttribute(propertyCardinalityRestrictionAxiomEClass, PROPERTY_CARDINALITY_RESTRICTION_AXIOM__CARDINALITY);\n\t\tcreateEReference(propertyCardinalityRestrictionAxiomEClass, PROPERTY_CARDINALITY_RESTRICTION_AXIOM__RANGE);\n\n\t\tpropertyValueRestrictionAxiomEClass = createEClass(PROPERTY_VALUE_RESTRICTION_AXIOM);\n\t\tcreateEReference(propertyValueRestrictionAxiomEClass, PROPERTY_VALUE_RESTRICTION_AXIOM__LITERAL_VALUE);\n\t\tcreateEReference(propertyValueRestrictionAxiomEClass, PROPERTY_VALUE_RESTRICTION_AXIOM__STRUCTURE_INSTANCE_VALUE);\n\t\tcreateEReference(propertyValueRestrictionAxiomEClass, PROPERTY_VALUE_RESTRICTION_AXIOM__NAMED_INSTANCE_VALUE);\n\t\tcreateEOperation(propertyValueRestrictionAxiomEClass, PROPERTY_VALUE_RESTRICTION_AXIOM___GET_VALUE);\n\n\t\tpropertySelfRestrictionAxiomEClass = createEClass(PROPERTY_SELF_RESTRICTION_AXIOM);\n\n\t\ttypeAssertionEClass = createEClass(TYPE_ASSERTION);\n\t\tcreateEReference(typeAssertionEClass, TYPE_ASSERTION__TYPE);\n\t\tcreateEReference(typeAssertionEClass, TYPE_ASSERTION__OWNING_INSTANCE);\n\t\tcreateEOperation(typeAssertionEClass, TYPE_ASSERTION___GET_SUBJECT);\n\t\tcreateEOperation(typeAssertionEClass, TYPE_ASSERTION___GET_OBJECT);\n\n\t\tpropertyValueAssertionEClass = createEClass(PROPERTY_VALUE_ASSERTION);\n\t\tcreateEReference(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION__PROPERTY);\n\t\tcreateEReference(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION__LITERAL_VALUE);\n\t\tcreateEReference(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION__STRUCTURE_INSTANCE_VALUE);\n\t\tcreateEReference(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION__NAMED_INSTANCE_VALUE);\n\t\tcreateEReference(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION__OWNING_INSTANCE);\n\t\tcreateEOperation(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION___GET_VALUE);\n\t\tcreateEOperation(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION___GET_SUBJECT);\n\t\tcreateEOperation(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION___GET_OBJECT);\n\n\t\tunaryPredicateEClass = createEClass(UNARY_PREDICATE);\n\t\tcreateEReference(unaryPredicateEClass, UNARY_PREDICATE__ARGUMENT);\n\n\t\tbinaryPredicateEClass = createEClass(BINARY_PREDICATE);\n\t\tcreateEReference(binaryPredicateEClass, BINARY_PREDICATE__ARGUMENT1);\n\t\tcreateEReference(binaryPredicateEClass, BINARY_PREDICATE__ARGUMENT2);\n\n\t\tbuiltInPredicateEClass = createEClass(BUILT_IN_PREDICATE);\n\t\tcreateEReference(builtInPredicateEClass, BUILT_IN_PREDICATE__BUILT_IN);\n\t\tcreateEReference(builtInPredicateEClass, BUILT_IN_PREDICATE__ARGUMENTS);\n\n\t\ttypePredicateEClass = createEClass(TYPE_PREDICATE);\n\t\tcreateEReference(typePredicateEClass, TYPE_PREDICATE__TYPE);\n\n\t\trelationEntityPredicateEClass = createEClass(RELATION_ENTITY_PREDICATE);\n\t\tcreateEReference(relationEntityPredicateEClass, RELATION_ENTITY_PREDICATE__TYPE);\n\n\t\tpropertyPredicateEClass = createEClass(PROPERTY_PREDICATE);\n\t\tcreateEReference(propertyPredicateEClass, PROPERTY_PREDICATE__PROPERTY);\n\n\t\tsameAsPredicateEClass = createEClass(SAME_AS_PREDICATE);\n\n\t\tdifferentFromPredicateEClass = createEClass(DIFFERENT_FROM_PREDICATE);\n\n\t\tquotedLiteralEClass = createEClass(QUOTED_LITERAL);\n\t\tcreateEAttribute(quotedLiteralEClass, QUOTED_LITERAL__VALUE);\n\t\tcreateEAttribute(quotedLiteralEClass, QUOTED_LITERAL__LANG_TAG);\n\t\tcreateEReference(quotedLiteralEClass, QUOTED_LITERAL__TYPE);\n\t\tcreateEOperation(quotedLiteralEClass, QUOTED_LITERAL___GET_LEXICAL_VALUE);\n\t\tcreateEOperation(quotedLiteralEClass, QUOTED_LITERAL___GET_TYPE_IRI);\n\n\t\tintegerLiteralEClass = createEClass(INTEGER_LITERAL);\n\t\tcreateEAttribute(integerLiteralEClass, INTEGER_LITERAL__VALUE);\n\t\tcreateEOperation(integerLiteralEClass, INTEGER_LITERAL___GET_TYPE_IRI);\n\n\t\tdecimalLiteralEClass = createEClass(DECIMAL_LITERAL);\n\t\tcreateEAttribute(decimalLiteralEClass, DECIMAL_LITERAL__VALUE);\n\t\tcreateEOperation(decimalLiteralEClass, DECIMAL_LITERAL___GET_TYPE_IRI);\n\n\t\tdoubleLiteralEClass = createEClass(DOUBLE_LITERAL);\n\t\tcreateEAttribute(doubleLiteralEClass, DOUBLE_LITERAL__VALUE);\n\t\tcreateEOperation(doubleLiteralEClass, DOUBLE_LITERAL___GET_TYPE_IRI);\n\n\t\tbooleanLiteralEClass = createEClass(BOOLEAN_LITERAL);\n\t\tcreateEAttribute(booleanLiteralEClass, BOOLEAN_LITERAL__VALUE);\n\t\tcreateEOperation(booleanLiteralEClass, BOOLEAN_LITERAL___IS_VALUE);\n\t\tcreateEOperation(booleanLiteralEClass, BOOLEAN_LITERAL___GET_TYPE_IRI);\n\n\t\t// Create enums\n\t\tseparatorKindEEnum = createEEnum(SEPARATOR_KIND);\n\t\trangeRestrictionKindEEnum = createEEnum(RANGE_RESTRICTION_KIND);\n\t\tcardinalityRestrictionKindEEnum = createEEnum(CARDINALITY_RESTRICTION_KIND);\n\t\timportKindEEnum = createEEnum(IMPORT_KIND);\n\n\t\t// Create data types\n\t\tunsignedIntEDataType = createEDataType(UNSIGNED_INT);\n\t\tunsignedIntegerEDataType = createEDataType(UNSIGNED_INTEGER);\n\t\tdecimalEDataType = createEDataType(DECIMAL);\n\t\tidEDataType = createEDataType(ID);\n\t\tnamespaceEDataType = createEDataType(NAMESPACE);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tblockArchitecturePkgEClass = createEClass(BLOCK_ARCHITECTURE_PKG);\n\n\t\tblockArchitectureEClass = createEClass(BLOCK_ARCHITECTURE);\n\t\tcreateEReference(blockArchitectureEClass, BLOCK_ARCHITECTURE__OWNED_REQUIREMENT_PKGS);\n\t\tcreateEReference(blockArchitectureEClass, BLOCK_ARCHITECTURE__OWNED_ABSTRACT_CAPABILITY_PKG);\n\t\tcreateEReference(blockArchitectureEClass, BLOCK_ARCHITECTURE__OWNED_INTERFACE_PKG);\n\t\tcreateEReference(blockArchitectureEClass, BLOCK_ARCHITECTURE__OWNED_DATA_PKG);\n\t\tcreateEReference(blockArchitectureEClass, BLOCK_ARCHITECTURE__PROVISIONED_ARCHITECTURE_ALLOCATIONS);\n\t\tcreateEReference(blockArchitectureEClass, BLOCK_ARCHITECTURE__PROVISIONING_ARCHITECTURE_ALLOCATIONS);\n\t\tcreateEReference(blockArchitectureEClass, BLOCK_ARCHITECTURE__ALLOCATED_ARCHITECTURES);\n\t\tcreateEReference(blockArchitectureEClass, BLOCK_ARCHITECTURE__ALLOCATING_ARCHITECTURES);\n\n\t\tblockEClass = createEClass(BLOCK);\n\t\tcreateEReference(blockEClass, BLOCK__OWNED_ABSTRACT_CAPABILITY_PKG);\n\t\tcreateEReference(blockEClass, BLOCK__OWNED_INTERFACE_PKG);\n\t\tcreateEReference(blockEClass, BLOCK__OWNED_DATA_PKG);\n\t\tcreateEReference(blockEClass, BLOCK__OWNED_STATE_MACHINES);\n\n\t\tcomponentArchitectureEClass = createEClass(COMPONENT_ARCHITECTURE);\n\n\t\tcomponentEClass = createEClass(COMPONENT);\n\t\tcreateEReference(componentEClass, COMPONENT__OWNED_INTERFACE_USES);\n\t\tcreateEReference(componentEClass, COMPONENT__USED_INTERFACE_LINKS);\n\t\tcreateEReference(componentEClass, COMPONENT__USED_INTERFACES);\n\t\tcreateEReference(componentEClass, COMPONENT__OWNED_INTERFACE_IMPLEMENTATIONS);\n\t\tcreateEReference(componentEClass, COMPONENT__IMPLEMENTED_INTERFACE_LINKS);\n\t\tcreateEReference(componentEClass, COMPONENT__IMPLEMENTED_INTERFACES);\n\t\tcreateEReference(componentEClass, COMPONENT__PROVISIONED_COMPONENT_ALLOCATIONS);\n\t\tcreateEReference(componentEClass, COMPONENT__PROVISIONING_COMPONENT_ALLOCATIONS);\n\t\tcreateEReference(componentEClass, COMPONENT__ALLOCATED_COMPONENTS);\n\t\tcreateEReference(componentEClass, COMPONENT__ALLOCATING_COMPONENTS);\n\t\tcreateEReference(componentEClass, COMPONENT__PROVIDED_INTERFACES);\n\t\tcreateEReference(componentEClass, COMPONENT__REQUIRED_INTERFACES);\n\t\tcreateEReference(componentEClass, COMPONENT__CONTAINED_COMPONENT_PORTS);\n\t\tcreateEReference(componentEClass, COMPONENT__CONTAINED_PARTS);\n\t\tcreateEReference(componentEClass, COMPONENT__CONTAINED_PHYSICAL_PORTS);\n\t\tcreateEReference(componentEClass, COMPONENT__OWNED_PHYSICAL_PATH);\n\t\tcreateEReference(componentEClass, COMPONENT__OWNED_PHYSICAL_LINKS);\n\t\tcreateEReference(componentEClass, COMPONENT__OWNED_PHYSICAL_LINK_CATEGORIES);\n\n\t\tabstractActorEClass = createEClass(ABSTRACT_ACTOR);\n\n\t\tpartEClass = createEClass(PART);\n\t\tcreateEReference(partEClass, PART__PROVIDED_INTERFACES);\n\t\tcreateEReference(partEClass, PART__REQUIRED_INTERFACES);\n\t\tcreateEReference(partEClass, PART__OWNED_DEPLOYMENT_LINKS);\n\t\tcreateEReference(partEClass, PART__DEPLOYED_PARTS);\n\t\tcreateEReference(partEClass, PART__DEPLOYING_PARTS);\n\t\tcreateEReference(partEClass, PART__OWNED_ABSTRACT_TYPE);\n\t\tcreateEAttribute(partEClass, PART__VALUE);\n\t\tcreateEAttribute(partEClass, PART__MAX_VALUE);\n\t\tcreateEAttribute(partEClass, PART__MIN_VALUE);\n\t\tcreateEAttribute(partEClass, PART__CURRENT_MASS);\n\n\t\tarchitectureAllocationEClass = createEClass(ARCHITECTURE_ALLOCATION);\n\t\tcreateEReference(architectureAllocationEClass, ARCHITECTURE_ALLOCATION__ALLOCATED_ARCHITECTURE);\n\t\tcreateEReference(architectureAllocationEClass, ARCHITECTURE_ALLOCATION__ALLOCATING_ARCHITECTURE);\n\n\t\tcomponentAllocationEClass = createEClass(COMPONENT_ALLOCATION);\n\t\tcreateEReference(componentAllocationEClass, COMPONENT_ALLOCATION__ALLOCATED_COMPONENT);\n\t\tcreateEReference(componentAllocationEClass, COMPONENT_ALLOCATION__ALLOCATING_COMPONENT);\n\n\t\tsystemComponentEClass = createEClass(SYSTEM_COMPONENT);\n\t\tcreateEAttribute(systemComponentEClass, SYSTEM_COMPONENT__DATA_COMPONENT);\n\t\tcreateEReference(systemComponentEClass, SYSTEM_COMPONENT__DATA_TYPE);\n\t\tcreateEReference(systemComponentEClass, SYSTEM_COMPONENT__PARTICIPATIONS_IN_CAPABILITY_REALIZATIONS);\n\n\t\tinterfacePkgEClass = createEClass(INTERFACE_PKG);\n\t\tcreateEReference(interfacePkgEClass, INTERFACE_PKG__OWNED_INTERFACES);\n\t\tcreateEReference(interfacePkgEClass, INTERFACE_PKG__OWNED_INTERFACE_PKGS);\n\n\t\tinterfaceEClass = createEClass(INTERFACE);\n\t\tcreateEAttribute(interfaceEClass, INTERFACE__MECHANISM);\n\t\tcreateEAttribute(interfaceEClass, INTERFACE__STRUCTURAL);\n\t\tcreateEReference(interfaceEClass, INTERFACE__IMPLEMENTOR_COMPONENTS);\n\t\tcreateEReference(interfaceEClass, INTERFACE__USER_COMPONENTS);\n\t\tcreateEReference(interfaceEClass, INTERFACE__INTERFACE_IMPLEMENTATIONS);\n\t\tcreateEReference(interfaceEClass, INTERFACE__INTERFACE_USES);\n\t\tcreateEReference(interfaceEClass, INTERFACE__PROVISIONING_INTERFACE_ALLOCATIONS);\n\t\tcreateEReference(interfaceEClass, INTERFACE__ALLOCATING_INTERFACES);\n\t\tcreateEReference(interfaceEClass, INTERFACE__ALLOCATING_COMPONENTS);\n\t\tcreateEReference(interfaceEClass, INTERFACE__EXCHANGE_ITEMS);\n\t\tcreateEReference(interfaceEClass, INTERFACE__OWNED_EXCHANGE_ITEM_ALLOCATIONS);\n\t\tcreateEReference(interfaceEClass, INTERFACE__REQUIRING_COMPONENTS);\n\t\tcreateEReference(interfaceEClass, INTERFACE__REQUIRING_COMPONENT_PORTS);\n\t\tcreateEReference(interfaceEClass, INTERFACE__PROVIDING_COMPONENTS);\n\t\tcreateEReference(interfaceEClass, INTERFACE__PROVIDING_COMPONENT_PORTS);\n\t\tcreateEReference(interfaceEClass, INTERFACE__REALIZING_LOGICAL_INTERFACES);\n\t\tcreateEReference(interfaceEClass, INTERFACE__REALIZED_CONTEXT_INTERFACES);\n\t\tcreateEReference(interfaceEClass, INTERFACE__REALIZING_PHYSICAL_INTERFACES);\n\t\tcreateEReference(interfaceEClass, INTERFACE__REALIZED_LOGICAL_INTERFACES);\n\n\t\tinterfaceImplementationEClass = createEClass(INTERFACE_IMPLEMENTATION);\n\t\tcreateEReference(interfaceImplementationEClass, INTERFACE_IMPLEMENTATION__INTERFACE_IMPLEMENTOR);\n\t\tcreateEReference(interfaceImplementationEClass, INTERFACE_IMPLEMENTATION__IMPLEMENTED_INTERFACE);\n\n\t\tinterfaceUseEClass = createEClass(INTERFACE_USE);\n\t\tcreateEReference(interfaceUseEClass, INTERFACE_USE__INTERFACE_USER);\n\t\tcreateEReference(interfaceUseEClass, INTERFACE_USE__USED_INTERFACE);\n\n\t\tprovidedInterfaceLinkEClass = createEClass(PROVIDED_INTERFACE_LINK);\n\t\tcreateEReference(providedInterfaceLinkEClass, PROVIDED_INTERFACE_LINK__INTERFACE);\n\n\t\trequiredInterfaceLinkEClass = createEClass(REQUIRED_INTERFACE_LINK);\n\t\tcreateEReference(requiredInterfaceLinkEClass, REQUIRED_INTERFACE_LINK__INTERFACE);\n\n\t\tinterfaceAllocationEClass = createEClass(INTERFACE_ALLOCATION);\n\t\tcreateEReference(interfaceAllocationEClass, INTERFACE_ALLOCATION__ALLOCATED_INTERFACE);\n\t\tcreateEReference(interfaceAllocationEClass, INTERFACE_ALLOCATION__ALLOCATING_INTERFACE_ALLOCATOR);\n\n\t\tinterfaceAllocatorEClass = createEClass(INTERFACE_ALLOCATOR);\n\t\tcreateEReference(interfaceAllocatorEClass, INTERFACE_ALLOCATOR__OWNED_INTERFACE_ALLOCATIONS);\n\t\tcreateEReference(interfaceAllocatorEClass, INTERFACE_ALLOCATOR__PROVISIONED_INTERFACE_ALLOCATIONS);\n\t\tcreateEReference(interfaceAllocatorEClass, INTERFACE_ALLOCATOR__ALLOCATED_INTERFACES);\n\n\t\tactorCapabilityRealizationInvolvementEClass = createEClass(ACTOR_CAPABILITY_REALIZATION_INVOLVEMENT);\n\n\t\tsystemComponentCapabilityRealizationInvolvementEClass = createEClass(SYSTEM_COMPONENT_CAPABILITY_REALIZATION_INVOLVEMENT);\n\n\t\tcomponentContextEClass = createEClass(COMPONENT_CONTEXT);\n\n\t\texchangeItemAllocationEClass = createEClass(EXCHANGE_ITEM_ALLOCATION);\n\t\tcreateEAttribute(exchangeItemAllocationEClass, EXCHANGE_ITEM_ALLOCATION__SEND_PROTOCOL);\n\t\tcreateEAttribute(exchangeItemAllocationEClass, EXCHANGE_ITEM_ALLOCATION__RECEIVE_PROTOCOL);\n\t\tcreateEReference(exchangeItemAllocationEClass, EXCHANGE_ITEM_ALLOCATION__ALLOCATED_ITEM);\n\t\tcreateEReference(exchangeItemAllocationEClass, EXCHANGE_ITEM_ALLOCATION__ALLOCATING_INTERFACE);\n\n\t\tdeployableElementEClass = createEClass(DEPLOYABLE_ELEMENT);\n\t\tcreateEReference(deployableElementEClass, DEPLOYABLE_ELEMENT__DEPLOYING_LINKS);\n\n\t\tdeploymentTargetEClass = createEClass(DEPLOYMENT_TARGET);\n\t\tcreateEReference(deploymentTargetEClass, DEPLOYMENT_TARGET__DEPLOYMENT_LINKS);\n\n\t\tabstractDeploymentLinkEClass = createEClass(ABSTRACT_DEPLOYMENT_LINK);\n\t\tcreateEReference(abstractDeploymentLinkEClass, ABSTRACT_DEPLOYMENT_LINK__DEPLOYED_ELEMENT);\n\t\tcreateEReference(abstractDeploymentLinkEClass, ABSTRACT_DEPLOYMENT_LINK__LOCATION);\n\n\t\tabstractPathInvolvedElementEClass = createEClass(ABSTRACT_PATH_INVOLVED_ELEMENT);\n\n\t\tabstractPhysicalArtifactEClass = createEClass(ABSTRACT_PHYSICAL_ARTIFACT);\n\t\tcreateEReference(abstractPhysicalArtifactEClass, ABSTRACT_PHYSICAL_ARTIFACT__ALLOCATOR_CONFIGURATION_ITEMS);\n\n\t\tabstractPhysicalLinkEndEClass = createEClass(ABSTRACT_PHYSICAL_LINK_END);\n\t\tcreateEReference(abstractPhysicalLinkEndEClass, ABSTRACT_PHYSICAL_LINK_END__INVOLVED_LINKS);\n\n\t\tabstractPhysicalPathLinkEClass = createEClass(ABSTRACT_PHYSICAL_PATH_LINK);\n\n\t\tphysicalLinkEClass = createEClass(PHYSICAL_LINK);\n\t\tcreateEReference(physicalLinkEClass, PHYSICAL_LINK__LINK_ENDS);\n\t\tcreateEReference(physicalLinkEClass, PHYSICAL_LINK__OWNED_COMPONENT_EXCHANGE_FUNCTIONAL_EXCHANGE_ALLOCATIONS);\n\t\tcreateEReference(physicalLinkEClass, PHYSICAL_LINK__OWNED_PHYSICAL_LINK_ENDS);\n\t\tcreateEReference(physicalLinkEClass, PHYSICAL_LINK__OWNED_PHYSICAL_LINK_REALIZATIONS);\n\t\tcreateEReference(physicalLinkEClass, PHYSICAL_LINK__CATEGORIES);\n\t\tcreateEReference(physicalLinkEClass, PHYSICAL_LINK__SOURCE_PHYSICAL_PORT);\n\t\tcreateEReference(physicalLinkEClass, PHYSICAL_LINK__TARGET_PHYSICAL_PORT);\n\t\tcreateEReference(physicalLinkEClass, PHYSICAL_LINK__REALIZED_PHYSICAL_LINKS);\n\t\tcreateEReference(physicalLinkEClass, PHYSICAL_LINK__REALIZING_PHYSICAL_LINKS);\n\n\t\tphysicalLinkCategoryEClass = createEClass(PHYSICAL_LINK_CATEGORY);\n\t\tcreateEReference(physicalLinkCategoryEClass, PHYSICAL_LINK_CATEGORY__LINKS);\n\n\t\tphysicalLinkEndEClass = createEClass(PHYSICAL_LINK_END);\n\t\tcreateEReference(physicalLinkEndEClass, PHYSICAL_LINK_END__PORT);\n\t\tcreateEReference(physicalLinkEndEClass, PHYSICAL_LINK_END__PART);\n\n\t\tphysicalLinkRealizationEClass = createEClass(PHYSICAL_LINK_REALIZATION);\n\n\t\tphysicalPathEClass = createEClass(PHYSICAL_PATH);\n\t\tcreateEReference(physicalPathEClass, PHYSICAL_PATH__INVOLVED_LINKS);\n\t\tcreateEReference(physicalPathEClass, PHYSICAL_PATH__OWNED_PHYSICAL_PATH_INVOLVEMENTS);\n\t\tcreateEReference(physicalPathEClass, PHYSICAL_PATH__FIRST_PHYSICAL_PATH_INVOLVEMENTS);\n\t\tcreateEReference(physicalPathEClass, PHYSICAL_PATH__OWNED_PHYSICAL_PATH_REALIZATIONS);\n\t\tcreateEReference(physicalPathEClass, PHYSICAL_PATH__REALIZED_PHYSICAL_PATHS);\n\t\tcreateEReference(physicalPathEClass, PHYSICAL_PATH__REALIZING_PHYSICAL_PATHS);\n\n\t\tphysicalPathInvolvementEClass = createEClass(PHYSICAL_PATH_INVOLVEMENT);\n\t\tcreateEReference(physicalPathInvolvementEClass, PHYSICAL_PATH_INVOLVEMENT__NEXT_INVOLVEMENTS);\n\t\tcreateEReference(physicalPathInvolvementEClass, PHYSICAL_PATH_INVOLVEMENT__PREVIOUS_INVOLVEMENTS);\n\t\tcreateEReference(physicalPathInvolvementEClass, PHYSICAL_PATH_INVOLVEMENT__INVOLVED_ELEMENT);\n\t\tcreateEReference(physicalPathInvolvementEClass, PHYSICAL_PATH_INVOLVEMENT__INVOLVED_COMPONENT);\n\n\t\tphysicalPathReferenceEClass = createEClass(PHYSICAL_PATH_REFERENCE);\n\t\tcreateEReference(physicalPathReferenceEClass, PHYSICAL_PATH_REFERENCE__REFERENCED_PHYSICAL_PATH);\n\n\t\tphysicalPathRealizationEClass = createEClass(PHYSICAL_PATH_REALIZATION);\n\n\t\tphysicalPortEClass = createEClass(PHYSICAL_PORT);\n\t\tcreateEReference(physicalPortEClass, PHYSICAL_PORT__OWNED_COMPONENT_PORT_ALLOCATIONS);\n\t\tcreateEReference(physicalPortEClass, PHYSICAL_PORT__OWNED_PHYSICAL_PORT_REALIZATIONS);\n\t\tcreateEReference(physicalPortEClass, PHYSICAL_PORT__ALLOCATED_COMPONENT_PORTS);\n\t\tcreateEReference(physicalPortEClass, PHYSICAL_PORT__REALIZED_PHYSICAL_PORTS);\n\t\tcreateEReference(physicalPortEClass, PHYSICAL_PORT__REALIZING_PHYSICAL_PORTS);\n\n\t\tphysicalPortRealizationEClass = createEClass(PHYSICAL_PORT_REALIZATION);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttextualRepresentationEClass = createEClass(TEXTUAL_REPRESENTATION);\n\t\tcreateEReference(textualRepresentationEClass, TEXTUAL_REPRESENTATION__BASE_COMMENT);\n\t\tcreateEAttribute(textualRepresentationEClass, TEXTUAL_REPRESENTATION__LANGUAGE);\n\t}", "public void createPackageContents() {\r\n if (isCreated) return;\r\n isCreated = true;\r\n\r\n // Create classes and their features\r\n kShapeLayoutEClass = createEClass(KSHAPE_LAYOUT);\r\n createEAttribute(kShapeLayoutEClass, KSHAPE_LAYOUT__XPOS);\r\n createEAttribute(kShapeLayoutEClass, KSHAPE_LAYOUT__YPOS);\r\n createEAttribute(kShapeLayoutEClass, KSHAPE_LAYOUT__WIDTH);\r\n createEAttribute(kShapeLayoutEClass, KSHAPE_LAYOUT__HEIGHT);\r\n createEReference(kShapeLayoutEClass, KSHAPE_LAYOUT__INSETS);\r\n\r\n kEdgeLayoutEClass = createEClass(KEDGE_LAYOUT);\r\n createEReference(kEdgeLayoutEClass, KEDGE_LAYOUT__BEND_POINTS);\r\n createEReference(kEdgeLayoutEClass, KEDGE_LAYOUT__SOURCE_POINT);\r\n createEReference(kEdgeLayoutEClass, KEDGE_LAYOUT__TARGET_POINT);\r\n\r\n kLayoutDataEClass = createEClass(KLAYOUT_DATA);\r\n\r\n kPointEClass = createEClass(KPOINT);\r\n createEAttribute(kPointEClass, KPOINT__X);\r\n createEAttribute(kPointEClass, KPOINT__Y);\r\n\r\n kInsetsEClass = createEClass(KINSETS);\r\n createEAttribute(kInsetsEClass, KINSETS__TOP);\r\n createEAttribute(kInsetsEClass, KINSETS__BOTTOM);\r\n createEAttribute(kInsetsEClass, KINSETS__LEFT);\r\n createEAttribute(kInsetsEClass, KINSETS__RIGHT);\r\n\r\n kIdentifierEClass = createEClass(KIDENTIFIER);\r\n createEAttribute(kIdentifierEClass, KIDENTIFIER__ID);\r\n\r\n kVectorEClass = createEClass(KVECTOR);\r\n createEAttribute(kVectorEClass, KVECTOR__X);\r\n createEAttribute(kVectorEClass, KVECTOR__Y);\r\n\r\n kVectorChainEClass = createEClass(KVECTOR_CHAIN);\r\n }", "public void createPackageContents() {\r\n\t\tif (isCreated) return;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tannotationModelEClass = createEClass(ANNOTATION_MODEL);\r\n\t\tcreateEAttribute(annotationModelEClass, ANNOTATION_MODEL__NAME);\r\n\t\tcreateEReference(annotationModelEClass, ANNOTATION_MODEL__HAS_ANNOTATED_ELEMENT);\r\n\t\tcreateEReference(annotationModelEClass, ANNOTATION_MODEL__HAS_ANNOTATION);\r\n\r\n\t\tannotationEClass = createEClass(ANNOTATION);\r\n\r\n\t\tauthorizableResourceEClass = createEClass(AUTHORIZABLE_RESOURCE);\r\n\t\tcreateEReference(authorizableResourceEClass, AUTHORIZABLE_RESOURCE__HAS_RESOURCE_ACCESS_POLICY_SET);\r\n\t\tcreateEReference(authorizableResourceEClass, AUTHORIZABLE_RESOURCE__IS_AUTHORIZABLE_RESOURCE);\r\n\t\tcreateEAttribute(authorizableResourceEClass, AUTHORIZABLE_RESOURCE__BTRACK_OWNERSHIP);\r\n\r\n\t\tresourceAccessPolicySetEClass = createEClass(RESOURCE_ACCESS_POLICY_SET);\r\n\t\tcreateEAttribute(resourceAccessPolicySetEClass, RESOURCE_ACCESS_POLICY_SET__NAME);\r\n\t\tcreateEAttribute(resourceAccessPolicySetEClass, RESOURCE_ACCESS_POLICY_SET__POLICY_COMBINING_ALGORITHM);\r\n\t\tcreateEReference(resourceAccessPolicySetEClass, RESOURCE_ACCESS_POLICY_SET__HAS_RESOURCE_ACCESS_POLICY);\r\n\t\tcreateEReference(resourceAccessPolicySetEClass, RESOURCE_ACCESS_POLICY_SET__HAS_RESOURCE_ACCESS_POLICY_SET);\r\n\r\n\t\tannotatedElementEClass = createEClass(ANNOTATED_ELEMENT);\r\n\r\n\t\tannResourceEClass = createEClass(ANN_RESOURCE);\r\n\t\tcreateEReference(annResourceEClass, ANN_RESOURCE__ANNOTATES_RESOURCE);\r\n\r\n\t\tresourceAccessPolicyEClass = createEClass(RESOURCE_ACCESS_POLICY);\r\n\t\tcreateEAttribute(resourceAccessPolicyEClass, RESOURCE_ACCESS_POLICY__NAME);\r\n\t\tcreateEAttribute(resourceAccessPolicyEClass, RESOURCE_ACCESS_POLICY__RULE_COMBINING_ALGORITHM);\r\n\t\tcreateEReference(resourceAccessPolicyEClass, RESOURCE_ACCESS_POLICY__HAS_APPLY_CONDITION);\r\n\t\tcreateEReference(resourceAccessPolicyEClass, RESOURCE_ACCESS_POLICY__HAS_RESOURCE_ACCESS_RULE);\r\n\r\n\t\tconditionEClass = createEClass(CONDITION);\r\n\t\tcreateEAttribute(conditionEClass, CONDITION__OPERATOR);\r\n\t\tcreateEReference(conditionEClass, CONDITION__HAS_LEFT_SIDE_OPERAND);\r\n\t\tcreateEReference(conditionEClass, CONDITION__HAS_RIGHT_SIDE_OPERAND);\r\n\r\n\t\tattributeEClass = createEClass(ATTRIBUTE);\r\n\t\tcreateEAttribute(attributeEClass, ATTRIBUTE__ATTRIBUTE_CATEGORY);\r\n\t\tcreateEReference(attributeEClass, ATTRIBUTE__IS_ATTRIBUTE_EXISTING_PROPERTY);\r\n\t\tcreateEAttribute(attributeEClass, ATTRIBUTE__VALUE);\r\n\t\tcreateEReference(attributeEClass, ATTRIBUTE__IS_ATTRIBUTE_NEW_PROPERTY);\r\n\t\tcreateEReference(attributeEClass, ATTRIBUTE__IS_ATTRIBUTE_RESOURCE);\r\n\r\n\t\tannPropertyEClass = createEClass(ANN_PROPERTY);\r\n\t\tcreateEReference(annPropertyEClass, ANN_PROPERTY__ANNOTATES_PROPERTY);\r\n\r\n\t\tresourceAccessRuleEClass = createEClass(RESOURCE_ACCESS_RULE);\r\n\t\tcreateEReference(resourceAccessRuleEClass, RESOURCE_ACCESS_RULE__HAS_MATCH_CONDITION);\r\n\t\tcreateEAttribute(resourceAccessRuleEClass, RESOURCE_ACCESS_RULE__NAME);\r\n\t\tcreateEAttribute(resourceAccessRuleEClass, RESOURCE_ACCESS_RULE__RULE_TYPE);\r\n\t\tcreateEReference(resourceAccessRuleEClass, RESOURCE_ACCESS_RULE__HAS_ALLOWED_ACTION);\r\n\r\n\t\tauthorizationSubjectEClass = createEClass(AUTHORIZATION_SUBJECT);\r\n\t\tcreateEReference(authorizationSubjectEClass, AUTHORIZATION_SUBJECT__IS_AUTHORIZATION_SUBJECT);\r\n\r\n\t\tannCRUDActivityEClass = createEClass(ANN_CRUD_ACTIVITY);\r\n\t\tcreateEReference(annCRUDActivityEClass, ANN_CRUD_ACTIVITY__ANNOTATES_CRUD_ACTIVITY);\r\n\r\n\t\tallowedActionEClass = createEClass(ALLOWED_ACTION);\r\n\t\tcreateEReference(allowedActionEClass, ALLOWED_ACTION__IS_ALLOWED_ACTION);\r\n\r\n\t\tnewPropertyEClass = createEClass(NEW_PROPERTY);\r\n\t\tcreateEReference(newPropertyEClass, NEW_PROPERTY__BELONGS_TO_RESOURCE);\r\n\t\tcreateEAttribute(newPropertyEClass, NEW_PROPERTY__NAME);\r\n\t\tcreateEAttribute(newPropertyEClass, NEW_PROPERTY__TYPE);\r\n\t\tcreateEAttribute(newPropertyEClass, NEW_PROPERTY__BIS_UNIQUE);\r\n\r\n\t\t// Create enums\r\n\t\tcombiningAlgorithmEEnum = createEEnum(COMBINING_ALGORITHM);\r\n\t\toperatorEEnum = createEEnum(OPERATOR);\r\n\t\tattributeCategoryEEnum = createEEnum(ATTRIBUTE_CATEGORY);\r\n\t\truleTypeEEnum = createEEnum(RULE_TYPE);\r\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttaskEClass = createEClass(TASK);\n\t\tcreateEAttribute(taskEClass, TASK__TASK_ID);\n\t\tcreateEAttribute(taskEClass, TASK__NAME);\n\t\tcreateEReference(taskEClass, TASK__SUBTASKS);\n\t\tcreateEAttribute(taskEClass, TASK__DEADLINE);\n\n\t\tperiodicTaskEClass = createEClass(PERIODIC_TASK);\n\t\tcreateEAttribute(periodicTaskEClass, PERIODIC_TASK__PERIOD);\n\t\tcreateEAttribute(periodicTaskEClass, PERIODIC_TASK__OFFSET);\n\n\t\taperiodicTaskEClass = createEClass(APERIODIC_TASK);\n\t\tcreateEReference(aperiodicTaskEClass, APERIODIC_TASK__INTERARRIVAL_DISTRIBUTION);\n\n\t\tsubtaskEClass = createEClass(SUBTASK);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__NAME);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__PRIORITY);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__RET_ANCHOR_USED);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__ACTIVATION_SYNCHRONOUS);\n\t\tcreateEReference(subtaskEClass, SUBTASK__EXEC_TIME_DISTRIBUTION);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__BYPASS);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__DOWNSAMPLING_FACTOR);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__CALLING_THREAD_PRIORITY);\n\t\tcreateEReference(subtaskEClass, SUBTASK__MUTEXES);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__PIN_ID);\n\n\t\tdistributionEClass = createEClass(DISTRIBUTION);\n\n\t\tconstantEClass = createEClass(CONSTANT);\n\t\tcreateEAttribute(constantEClass, CONSTANT__VALUE);\n\n\t\texponentialEClass = createEClass(EXPONENTIAL);\n\t\tcreateEAttribute(exponentialEClass, EXPONENTIAL__MEAN);\n\n\t\tuniformEClass = createEClass(UNIFORM);\n\t\tcreateEAttribute(uniformEClass, UNIFORM__MAX);\n\t\tcreateEAttribute(uniformEClass, UNIFORM__MIN);\n\n\t\tunknownEClass = createEClass(UNKNOWN);\n\t\tcreateEAttribute(unknownEClass, UNKNOWN__MEAN);\n\t\tcreateEAttribute(unknownEClass, UNKNOWN__MIN);\n\t\tcreateEAttribute(unknownEClass, UNKNOWN__MAX);\n\n\t\tnormalEClass = createEClass(NORMAL);\n\t\tcreateEAttribute(normalEClass, NORMAL__MEAN);\n\t\tcreateEAttribute(normalEClass, NORMAL__STD_DEV);\n\n\t\tperformanceModelEClass = createEClass(PERFORMANCE_MODEL);\n\t\tcreateEReference(performanceModelEClass, PERFORMANCE_MODEL__TASKS);\n\t\tcreateEAttribute(performanceModelEClass, PERFORMANCE_MODEL__NAME);\n\t\tcreateEReference(performanceModelEClass, PERFORMANCE_MODEL__MUTEXES);\n\t\tcreateEAttribute(performanceModelEClass, PERFORMANCE_MODEL__SOURCE_FILE);\n\n\t\tssTaskEClass = createEClass(SS_TASK);\n\t\tcreateEAttribute(ssTaskEClass, SS_TASK__BUDGET);\n\t\tcreateEAttribute(ssTaskEClass, SS_TASK__REPLENISHMENT_PERIOD);\n\t\tcreateEAttribute(ssTaskEClass, SS_TASK__BACKGROUND_PRIORITY);\n\n\t\tmutexEClass = createEClass(MUTEX);\n\t\tcreateEAttribute(mutexEClass, MUTEX__NAME);\n\t}", "public void createPackageContents() {\r\n\t\tif (isCreated)\r\n\t\t\treturn;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tissueEClass = createEClass(ISSUE);\r\n\t\tcreateEReference(issueEClass, ISSUE__PROPOSALS);\r\n\t\tcreateEReference(issueEClass, ISSUE__SOLUTION);\r\n\t\tcreateEReference(issueEClass, ISSUE__CRITERIA);\r\n\t\tcreateEAttribute(issueEClass, ISSUE__ACTIVITY);\r\n\t\tcreateEReference(issueEClass, ISSUE__ASSESSMENTS);\r\n\r\n\t\tproposalEClass = createEClass(PROPOSAL);\r\n\t\tcreateEReference(proposalEClass, PROPOSAL__ASSESSMENTS);\r\n\t\tcreateEReference(proposalEClass, PROPOSAL__ISSUE);\r\n\r\n\t\tsolutionEClass = createEClass(SOLUTION);\r\n\t\tcreateEReference(solutionEClass, SOLUTION__UNDERLYING_PROPOSALS);\r\n\t\tcreateEReference(solutionEClass, SOLUTION__ISSUE);\r\n\r\n\t\tcriterionEClass = createEClass(CRITERION);\r\n\t\tcreateEReference(criterionEClass, CRITERION__ASSESSMENTS);\r\n\r\n\t\tassessmentEClass = createEClass(ASSESSMENT);\r\n\t\tcreateEReference(assessmentEClass, ASSESSMENT__PROPOSAL);\r\n\t\tcreateEReference(assessmentEClass, ASSESSMENT__CRITERION);\r\n\t\tcreateEAttribute(assessmentEClass, ASSESSMENT__VALUE);\r\n\r\n\t\tcommentEClass = createEClass(COMMENT);\r\n\t\tcreateEReference(commentEClass, COMMENT__SENDER);\r\n\t\tcreateEReference(commentEClass, COMMENT__RECIPIENTS);\r\n\t\tcreateEReference(commentEClass, COMMENT__COMMENTED_ELEMENT);\r\n\r\n\t\taudioCommentEClass = createEClass(AUDIO_COMMENT);\r\n\t\tcreateEReference(audioCommentEClass, AUDIO_COMMENT__AUDIO_FILE);\r\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttoUseSolverCpFolderEClass = createEClass(TO_USE_SOLVER_CP_FOLDER);\n\t\tcreateEReference(toUseSolverCpFolderEClass, TO_USE_SOLVER_CP_FOLDER__SUB_FOLDERS);\n\t\tcreateEAttribute(toUseSolverCpFolderEClass, TO_USE_SOLVER_CP_FOLDER__NAME);\n\t\tcreateEReference(toUseSolverCpFolderEClass, TO_USE_SOLVER_CP_FOLDER__TO_USE_GENERATORS);\n\n\t\ttoUseSolverCpGeneratorEClass = createEClass(TO_USE_SOLVER_CP_GENERATOR);\n\t\tcreateEReference(toUseSolverCpGeneratorEClass, TO_USE_SOLVER_CP_GENERATOR__SOLVER);\n\t\tcreateEReference(toUseSolverCpGeneratorEClass, TO_USE_SOLVER_CP_GENERATOR__TO_USE_TUPLES);\n\n\t\ttoUseSolverCpTupleEClass = createEClass(TO_USE_SOLVER_CP_TUPLE);\n\t\tcreateEReference(toUseSolverCpTupleEClass, TO_USE_SOLVER_CP_TUPLE__TO_USE_LINEARS);\n\t\tcreateEReference(toUseSolverCpTupleEClass, TO_USE_SOLVER_CP_TUPLE__TO_USE_VARS);\n\t\tcreateEReference(toUseSolverCpTupleEClass, TO_USE_SOLVER_CP_TUPLE__TO_USE_LOGICALS);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tcharacteristicComponentEClass = createEClass(CHARACTERISTIC_COMPONENT);\n\t\tcreateEAttribute(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__NAME);\n\t\tcreateEAttribute(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__MODULE);\n\t\tcreateEAttribute(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__PREFIX);\n\t\tcreateEAttribute(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__CONTAINER);\n\t\tcreateEReference(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__ACTIONS);\n\t\tcreateEReference(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__ATTRIBUTES);\n\t\tcreateEReference(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__PROPERTIES);\n\t\tcreateEReference(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__USED_BACI_TYPES);\n\t\tcreateEReference(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__USED_DEV_IOS);\n\t\tcreateEReference(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__COMPONENT_INSTANCES);\n\n\t\tactionEClass = createEClass(ACTION);\n\t\tcreateEAttribute(actionEClass, ACTION__NAME);\n\t\tcreateEAttribute(actionEClass, ACTION__TYPE);\n\t\tcreateEReference(actionEClass, ACTION__PARAMETERS);\n\n\t\tparameterEClass = createEClass(PARAMETER);\n\t\tcreateEAttribute(parameterEClass, PARAMETER__NAME);\n\t\tcreateEAttribute(parameterEClass, PARAMETER__TYPE);\n\n\t\tattributeEClass = createEClass(ATTRIBUTE);\n\t\tcreateEAttribute(attributeEClass, ATTRIBUTE__NAME);\n\t\tcreateEAttribute(attributeEClass, ATTRIBUTE__TYPE);\n\t\tcreateEAttribute(attributeEClass, ATTRIBUTE__REQUIRED);\n\t\tcreateEAttribute(attributeEClass, ATTRIBUTE__DEFAULT_VALUE);\n\n\t\tpropertyEClass = createEClass(PROPERTY);\n\t\tcreateEAttribute(propertyEClass, PROPERTY__NAME);\n\t\tcreateEReference(propertyEClass, PROPERTY__BACI_TYPE);\n\t\tcreateEReference(propertyEClass, PROPERTY__DEV_IO);\n\n\t\tusedDevIOsEClass = createEClass(USED_DEV_IOS);\n\t\tcreateEReference(usedDevIOsEClass, USED_DEV_IOS__DEV_IOS);\n\n\t\tdevIOEClass = createEClass(DEV_IO);\n\t\tcreateEAttribute(devIOEClass, DEV_IO__NAME);\n\t\tcreateEAttribute(devIOEClass, DEV_IO__REQUIRED_LIBRARIES);\n\t\tcreateEReference(devIOEClass, DEV_IO__DEV_IO_VARIABLES);\n\n\t\tdevIOVariableEClass = createEClass(DEV_IO_VARIABLE);\n\t\tcreateEAttribute(devIOVariableEClass, DEV_IO_VARIABLE__NAME);\n\t\tcreateEAttribute(devIOVariableEClass, DEV_IO_VARIABLE__TYPE);\n\t\tcreateEAttribute(devIOVariableEClass, DEV_IO_VARIABLE__IS_READ);\n\t\tcreateEAttribute(devIOVariableEClass, DEV_IO_VARIABLE__IS_WRITE);\n\t\tcreateEAttribute(devIOVariableEClass, DEV_IO_VARIABLE__IS_PROPERTY_SPECIFIC);\n\n\t\tusedBaciTypesEClass = createEClass(USED_BACI_TYPES);\n\t\tcreateEReference(usedBaciTypesEClass, USED_BACI_TYPES__BACI_TYPES);\n\n\t\tbaciTypeEClass = createEClass(BACI_TYPE);\n\t\tcreateEAttribute(baciTypeEClass, BACI_TYPE__NAME);\n\t\tcreateEAttribute(baciTypeEClass, BACI_TYPE__ACCESS_TYPE);\n\t\tcreateEAttribute(baciTypeEClass, BACI_TYPE__BASIC_TYPE);\n\t\tcreateEAttribute(baciTypeEClass, BACI_TYPE__SEQ_TYPE);\n\n\t\tcomponentInstancesEClass = createEClass(COMPONENT_INSTANCES);\n\t\tcreateEReference(componentInstancesEClass, COMPONENT_INSTANCES__INSTANCES);\n\t\tcreateEReference(componentInstancesEClass, COMPONENT_INSTANCES__CONTAINING_CARACTERISTIC_COMPONENT);\n\n\t\tinstanceEClass = createEClass(INSTANCE);\n\t\tcreateEAttribute(instanceEClass, INSTANCE__NAME);\n\t\tcreateEReference(instanceEClass, INSTANCE__CONTAINING_COMPONENT_INSTANCES);\n\t\tcreateEReference(instanceEClass, INSTANCE__ATTRIBUTE_VALUES_CONTAINER);\n\t\tcreateEReference(instanceEClass, INSTANCE__CHARACTERISTIC_VALUES_CONTAINER);\n\t\tcreateEAttribute(instanceEClass, INSTANCE__AUTO_START);\n\t\tcreateEAttribute(instanceEClass, INSTANCE__DEFAULT);\n\n\t\tattributeValuesEClass = createEClass(ATTRIBUTE_VALUES);\n\t\tcreateEReference(attributeValuesEClass, ATTRIBUTE_VALUES__INSTANCE_ATTRIBUTES);\n\t\tcreateEReference(attributeValuesEClass, ATTRIBUTE_VALUES__CONTAINING_INSTANCE);\n\n\t\tattributeValueEClass = createEClass(ATTRIBUTE_VALUE);\n\t\tcreateEAttribute(attributeValueEClass, ATTRIBUTE_VALUE__NAME);\n\t\tcreateEAttribute(attributeValueEClass, ATTRIBUTE_VALUE__VALUE);\n\n\t\tcharacteristicValuesEClass = createEClass(CHARACTERISTIC_VALUES);\n\t\tcreateEAttribute(characteristicValuesEClass, CHARACTERISTIC_VALUES__PROPERTY_NAME);\n\t\tcreateEReference(characteristicValuesEClass, CHARACTERISTIC_VALUES__INSTANCE_CHARACTERISTICS);\n\t\tcreateEReference(characteristicValuesEClass, CHARACTERISTIC_VALUES__CONTAINING_INSTANCE);\n\n\t\tcharacteristicValueEClass = createEClass(CHARACTERISTIC_VALUE);\n\t\tcreateEAttribute(characteristicValueEClass, CHARACTERISTIC_VALUE__NAME);\n\t\tcreateEAttribute(characteristicValueEClass, CHARACTERISTIC_VALUE__VALUE);\n\n\t\tpropertyDefinitionEClass = createEClass(PROPERTY_DEFINITION);\n\n\t\t// Create enums\n\t\taccessTypeEEnum = createEEnum(ACCESS_TYPE);\n\t\tbasicTypeEEnum = createEEnum(BASIC_TYPE);\n\t\tseqTypeEEnum = createEEnum(SEQ_TYPE);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tcmdEClass = createEClass(CMD);\n\t\tcreateEAttribute(cmdEClass, CMD__PRIORITY);\n\t\tcreateEAttribute(cmdEClass, CMD__STAMP);\n\n\t\tcompoundCmdEClass = createEClass(COMPOUND_CMD);\n\t\tcreateEReference(compoundCmdEClass, COMPOUND_CMD__CHILDREN);\n\n\t\txCmdEClass = createEClass(XCMD);\n\t\tcreateEAttribute(xCmdEClass, XCMD__OBJ);\n\n\t\tbyteCmdEClass = createEClass(BYTE_CMD);\n\t\tcreateEAttribute(byteCmdEClass, BYTE_CMD__MESSAGE);\n\n\t\t// Create enums\n\t\tpriorityEEnum = createEEnum(PRIORITY);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tnamedElementEClass = createEClass(NAMED_ELEMENT);\n\t\tcreateEAttribute(namedElementEClass, NAMED_ELEMENT__NAME);\n\n\t\tpackageDeclarationEClass = createEClass(PACKAGE_DECLARATION);\n\t\tcreateEAttribute(packageDeclarationEClass, PACKAGE_DECLARATION__NAME);\n\t\tcreateEReference(packageDeclarationEClass, PACKAGE_DECLARATION__CONTENT);\n\n\t\treferenceableEClass = createEClass(REFERENCEABLE);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\txActivityDiagramArbiterEClass = createEClass(XACTIVITY_DIAGRAM_ARBITER);\n\n\t\txActivityDiagramArbiterStateEClass = createEClass(XACTIVITY_DIAGRAM_ARBITER_STATE);\n\n\t\txActivityDiagramArbiterTransitionEClass = createEClass(XACTIVITY_DIAGRAM_ARBITER_TRANSITION);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tanalyzerJobEClass = createEClass(ANALYZER_JOB);\n\t\tcreateEReference(analyzerJobEClass, ANALYZER_JOB__RFS_SERVICE);\n\n\t\tcomponentFailureEClass = createEClass(COMPONENT_FAILURE);\n\t\tcreateEReference(componentFailureEClass, COMPONENT_FAILURE__COMPONENT_REF);\n\n\t\tcomponentWorkFlowRunEClass = createEClass(COMPONENT_WORK_FLOW_RUN);\n\t\tcreateEReference(componentWorkFlowRunEClass, COMPONENT_WORK_FLOW_RUN__FAILURE_REFS);\n\n\t\texpressionFailureEClass = createEClass(EXPRESSION_FAILURE);\n\t\tcreateEReference(expressionFailureEClass, EXPRESSION_FAILURE__EXPRESSION_REF);\n\n\t\tfailureEClass = createEClass(FAILURE);\n\t\tcreateEAttribute(failureEClass, FAILURE__MESSAGE);\n\n\t\tjobEClass = createEClass(JOB);\n\t\tcreateEAttribute(jobEClass, JOB__END_TIME);\n\t\tcreateEAttribute(jobEClass, JOB__INTERVAL);\n\t\tcreateEAttribute(jobEClass, JOB__JOB_STATE);\n\t\tcreateEAttribute(jobEClass, JOB__NAME);\n\t\tcreateEAttribute(jobEClass, JOB__REPEAT);\n\t\tcreateEAttribute(jobEClass, JOB__START_TIME);\n\n\t\tjobRunContainerEClass = createEClass(JOB_RUN_CONTAINER);\n\t\tcreateEReference(jobRunContainerEClass, JOB_RUN_CONTAINER__JOB);\n\t\tcreateEReference(jobRunContainerEClass, JOB_RUN_CONTAINER__WORK_FLOW_RUNS);\n\n\t\tmetricSourceJobEClass = createEClass(METRIC_SOURCE_JOB);\n\t\tcreateEReference(metricSourceJobEClass, METRIC_SOURCE_JOB__METRIC_SOURCES);\n\n\t\tnodeReporterJobEClass = createEClass(NODE_REPORTER_JOB);\n\t\tcreateEReference(nodeReporterJobEClass, NODE_REPORTER_JOB__NODE);\n\n\t\tnodeTypeReporterJobEClass = createEClass(NODE_TYPE_REPORTER_JOB);\n\t\tcreateEReference(nodeTypeReporterJobEClass, NODE_TYPE_REPORTER_JOB__NODE_TYPE);\n\t\tcreateEReference(nodeTypeReporterJobEClass, NODE_TYPE_REPORTER_JOB__SCOPE_OBJECT);\n\n\t\toperatorReporterJobEClass = createEClass(OPERATOR_REPORTER_JOB);\n\t\tcreateEReference(operatorReporterJobEClass, OPERATOR_REPORTER_JOB__OPERATOR);\n\n\t\tretentionJobEClass = createEClass(RETENTION_JOB);\n\n\t\trfsServiceMonitoringJobEClass = createEClass(RFS_SERVICE_MONITORING_JOB);\n\t\tcreateEReference(rfsServiceMonitoringJobEClass, RFS_SERVICE_MONITORING_JOB__RFS_SERVICE);\n\n\t\trfsServiceReporterJobEClass = createEClass(RFS_SERVICE_REPORTER_JOB);\n\t\tcreateEReference(rfsServiceReporterJobEClass, RFS_SERVICE_REPORTER_JOB__RFS_SERVICE);\n\n\t\tserviceUserFailureEClass = createEClass(SERVICE_USER_FAILURE);\n\t\tcreateEReference(serviceUserFailureEClass, SERVICE_USER_FAILURE__SERVICE_USER_REF);\n\n\t\tworkFlowRunEClass = createEClass(WORK_FLOW_RUN);\n\t\tcreateEAttribute(workFlowRunEClass, WORK_FLOW_RUN__ENDED);\n\t\tcreateEAttribute(workFlowRunEClass, WORK_FLOW_RUN__LOG);\n\t\tcreateEAttribute(workFlowRunEClass, WORK_FLOW_RUN__PROGRESS);\n\t\tcreateEAttribute(workFlowRunEClass, WORK_FLOW_RUN__PROGRESS_MESSAGE);\n\t\tcreateEAttribute(workFlowRunEClass, WORK_FLOW_RUN__PROGRESS_TASK);\n\t\tcreateEAttribute(workFlowRunEClass, WORK_FLOW_RUN__STARTED);\n\t\tcreateEAttribute(workFlowRunEClass, WORK_FLOW_RUN__STATE);\n\n\t\t// Create enums\n\t\tjobRunStateEEnum = createEEnum(JOB_RUN_STATE);\n\t\tjobStateEEnum = createEEnum(JOB_STATE);\n\n\t\t// Create data types\n\t\tjobRunStateObjectEDataType = createEDataType(JOB_RUN_STATE_OBJECT);\n\t\tjobStateObjectEDataType = createEDataType(JOB_STATE_OBJECT);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tjElementEClass = createEClass(JELEMENT);\n\t\tcreateEAttribute(jElementEClass, JELEMENT__UUID);\n\t\tcreateEAttribute(jElementEClass, JELEMENT__NAME);\n\t\tcreateEAttribute(jElementEClass, JELEMENT__SHORT_NAME);\n\t\tcreateEAttribute(jElementEClass, JELEMENT__FULL_NAME);\n\t\tcreateEAttribute(jElementEClass, JELEMENT__DESCRIPTION);\n\t\tcreateEAttribute(jElementEClass, JELEMENT__FRAMEWORK);\n\t\tcreateEAttribute(jElementEClass, JELEMENT__PARTICIPATES);\n\t\tcreateEAttribute(jElementEClass, JELEMENT__VISIBILITY);\n\n\t\tjTypeEClass = createEClass(JTYPE);\n\n\t\tjTypedElementEClass = createEClass(JTYPED_ELEMENT);\n\t\tcreateEReference(jTypedElementEClass, JTYPED_ELEMENT__TYPE);\n\t\tcreateEAttribute(jTypedElementEClass, JTYPED_ELEMENT__VALUE);\n\t\tcreateEAttribute(jTypedElementEClass, JTYPED_ELEMENT__DERIVED);\n\t\tcreateEAttribute(jTypedElementEClass, JTYPED_ELEMENT__CALCULATED);\n\t\tcreateEAttribute(jTypedElementEClass, JTYPED_ELEMENT__LOWER);\n\t\tcreateEAttribute(jTypedElementEClass, JTYPED_ELEMENT__UPPER);\n\t\tcreateEAttribute(jTypedElementEClass, JTYPED_ELEMENT__ORDERED);\n\t\tcreateEAttribute(jTypedElementEClass, JTYPED_ELEMENT__UNIQUE);\n\n\t\tjPrimitiveEClass = createEClass(JPRIMITIVE);\n\t\tcreateEReference(jPrimitiveEClass, JPRIMITIVE__PACKAGE);\n\t\tcreateEAttribute(jPrimitiveEClass, JPRIMITIVE__USE_FOR_ID_TYPE);\n\n\t\tjEnumerationEClass = createEClass(JENUMERATION);\n\t\tcreateEReference(jEnumerationEClass, JENUMERATION__PACKAGE);\n\t\tcreateEReference(jEnumerationEClass, JENUMERATION__LITERALS);\n\t\tcreateEReference(jEnumerationEClass, JENUMERATION__CLASS_REPRESENTATION);\n\n\t\tjClassEClass = createEClass(JCLASS);\n\t\tcreateEAttribute(jClassEClass, JCLASS__ABSTRACT);\n\t\tcreateEReference(jClassEClass, JCLASS__STATE_MACHINES);\n\t\tcreateEReference(jClassEClass, JCLASS__OPERATIONS);\n\t\tcreateEReference(jClassEClass, JCLASS__ATTRIBUTE_ORDER);\n\t\tcreateEReference(jClassEClass, JCLASS__ATTRIBUTES_FOR_LISTING);\n\t\tcreateEReference(jClassEClass, JCLASS__FIXED_ENUM);\n\t\tcreateEAttribute(jClassEClass, JCLASS__REPRESENTS_TENANT);\n\t\tcreateEAttribute(jClassEClass, JCLASS__TENANT_MEMBER);\n\t\tcreateEReference(jClassEClass, JCLASS__REPRESENTATION);\n\t\tcreateEAttribute(jClassEClass, JCLASS__REPRESENTS_ENUM);\n\t\tcreateEAttribute(jClassEClass, JCLASS__REPRESENTS_TENANT_USER);\n\t\tcreateEAttribute(jClassEClass, JCLASS__REPRESENTS_USER);\n\t\tcreateEReference(jClassEClass, JCLASS__SUPERTYPE);\n\t\tcreateEReference(jClassEClass, JCLASS__PACKAGE);\n\t\tcreateEReference(jClassEClass, JCLASS__ROLES);\n\t\tcreateEReference(jClassEClass, JCLASS__ATTRIBUTES);\n\t\tcreateEAttribute(jClassEClass, JCLASS__BUSINESS_SINGLETON);\n\t\tcreateEReference(jClassEClass, JCLASS__ALIASES);\n\t\tcreateEAttribute(jClassEClass, JCLASS__WATCHED);\n\t\tcreateEAttribute(jClassEClass, JCLASS__REPRESENTS_ENUM_VALUE);\n\n\t\tjAttributeEClass = createEClass(JATTRIBUTE);\n\t\tcreateEAttribute(jAttributeEClass, JATTRIBUTE__PLACEHOLDER);\n\t\tcreateEAttribute(jAttributeEClass, JATTRIBUTE__REGEXP);\n\t\tcreateEAttribute(jAttributeEClass, JATTRIBUTE__MANDATORY);\n\t\tcreateEAttribute(jAttributeEClass, JATTRIBUTE__DECIMALS);\n\t\tcreateEAttribute(jAttributeEClass, JATTRIBUTE__INTERVAL);\n\t\tcreateEAttribute(jAttributeEClass, JATTRIBUTE__TECHNICAL);\n\t\tcreateEReference(jAttributeEClass, JATTRIBUTE__OWNER_CLASS);\n\t\tcreateEAttribute(jAttributeEClass, JATTRIBUTE__UI_NO_SEARCH);\n\t\tcreateEAttribute(jAttributeEClass, JATTRIBUTE__WATCHED);\n\t\tcreateEAttribute(jAttributeEClass, JATTRIBUTE__REPRESENTS_ID);\n\n\t\tjOperationEClass = createEClass(JOPERATION);\n\t\tcreateEAttribute(jOperationEClass, JOPERATION__CLASS_BASED);\n\t\tcreateEReference(jOperationEClass, JOPERATION__OWNER_CLASS);\n\t\tcreateEReference(jOperationEClass, JOPERATION__PARAMETERS);\n\t\tcreateEReference(jOperationEClass, JOPERATION__TRANSITION);\n\t\tcreateEAttribute(jOperationEClass, JOPERATION__BULK);\n\t\tcreateEAttribute(jOperationEClass, JOPERATION__KIND);\n\t\tcreateEAttribute(jOperationEClass, JOPERATION__UI_MUST_CONFIRM);\n\n\t\tjParameterEClass = createEClass(JPARAMETER);\n\t\tcreateEReference(jParameterEClass, JPARAMETER__OWNER_OPERATION);\n\t\tcreateEAttribute(jParameterEClass, JPARAMETER__INPUT);\n\t\tcreateEAttribute(jParameterEClass, JPARAMETER__INTERVAL);\n\n\t\tjRelationshipEClass = createEClass(JRELATIONSHIP);\n\t\tcreateEReference(jRelationshipEClass, JRELATIONSHIP__PACKAGE);\n\t\tcreateEReference(jRelationshipEClass, JRELATIONSHIP__ROLES);\n\t\tcreateEAttribute(jRelationshipEClass, JRELATIONSHIP__DERIVED);\n\n\t\tjRoleEClass = createEClass(JROLE);\n\t\tcreateEAttribute(jRoleEClass, JROLE__LOWER);\n\t\tcreateEAttribute(jRoleEClass, JROLE__UPPER);\n\t\tcreateEAttribute(jRoleEClass, JROLE__NAVIGABLE);\n\t\tcreateEAttribute(jRoleEClass, JROLE__UNIQUE);\n\t\tcreateEAttribute(jRoleEClass, JROLE__ORDERED);\n\t\tcreateEReference(jRoleEClass, JROLE__OWNER_RELATIONSHIP);\n\t\tcreateEAttribute(jRoleEClass, JROLE__DERIVED_EXPRESSION);\n\t\tcreateEAttribute(jRoleEClass, JROLE__DERIVED_DESCRIPTION);\n\t\tcreateEAttribute(jRoleEClass, JROLE__KIND);\n\t\tcreateEAttribute(jRoleEClass, JROLE__OPTION_SCRIPT);\n\t\tcreateEReference(jRoleEClass, JROLE__OWNER_CLASS);\n\t\tcreateEAttribute(jRoleEClass, JROLE__VALUE);\n\t\tcreateEAttribute(jRoleEClass, JROLE__CALCULATED);\n\t\tcreateEAttribute(jRoleEClass, JROLE__INTERVAL);\n\n\t\tjLiteralEClass = createEClass(JLITERAL);\n\t\tcreateEReference(jLiteralEClass, JLITERAL__ENUMERATION);\n\n\t\tjPackageEClass = createEClass(JPACKAGE);\n\t\tcreateEReference(jPackageEClass, JPACKAGE__ENUMERATIONS);\n\t\tcreateEReference(jPackageEClass, JPACKAGE__PRIMITIVES);\n\t\tcreateEReference(jPackageEClass, JPACKAGE__RELATIONSHIPS);\n\t\tcreateEReference(jPackageEClass, JPACKAGE__CHILDREN);\n\t\tcreateEReference(jPackageEClass, JPACKAGE__PARENT);\n\t\tcreateEReference(jPackageEClass, JPACKAGE__OWNER_MODEL);\n\t\tcreateEReference(jPackageEClass, JPACKAGE__CLASSES);\n\n\t\tjStateMachineEClass = createEClass(JSTATE_MACHINE);\n\t\tcreateEReference(jStateMachineEClass, JSTATE_MACHINE__OWNER_CLASS);\n\t\tcreateEReference(jStateMachineEClass, JSTATE_MACHINE__STATES);\n\t\tcreateEReference(jStateMachineEClass, JSTATE_MACHINE__TRANSITIONS);\n\t\tcreateEReference(jStateMachineEClass, JSTATE_MACHINE__CORRESPONDING_ENUM);\n\n\t\tjTransitionEClass = createEClass(JTRANSITION);\n\t\tcreateEReference(jTransitionEClass, JTRANSITION__STATE_MACHINE);\n\t\tcreateEReference(jTransitionEClass, JTRANSITION__GUARD);\n\t\tcreateEReference(jTransitionEClass, JTRANSITION__TO_STATE);\n\t\tcreateEReference(jTransitionEClass, JTRANSITION__FROM_STATE);\n\t\tcreateEReference(jTransitionEClass, JTRANSITION__EXECUTING_OPERATION);\n\n\t\tjStateEClass = createEClass(JSTATE);\n\t\tcreateEReference(jStateEClass, JSTATE__OWNER_STATE_MACHINE);\n\t\tcreateEReference(jStateEClass, JSTATE__INCOMING_TRANSITIONS);\n\t\tcreateEReference(jStateEClass, JSTATE__OUTGOING_TRANSITIONS);\n\t\tcreateEAttribute(jStateEClass, JSTATE__INITIAL_STATE);\n\t\tcreateEAttribute(jStateEClass, JSTATE__FINAL_STATE);\n\n\t\tjGuardEClass = createEClass(JGUARD);\n\t\tcreateEReference(jGuardEClass, JGUARD__TRANSITION);\n\t\tcreateEAttribute(jGuardEClass, JGUARD__TEXT);\n\t\tcreateEAttribute(jGuardEClass, JGUARD__EXPRESSION);\n\n\t\tjModelEClass = createEClass(JMODEL);\n\t\tcreateEReference(jModelEClass, JMODEL__PACKAGES);\n\t\tcreateEAttribute(jModelEClass, JMODEL__PACKAGE_PREFIX);\n\t\tcreateEReference(jModelEClass, JMODEL__APPLICATION_TOP);\n\t\tcreateEReference(jModelEClass, JMODEL__ROOT_MENU_ITEMS);\n\t\tcreateEReference(jModelEClass, JMODEL__INFO);\n\n\t\tjuiMenuItemEClass = createEClass(JUI_MENU_ITEM);\n\t\tcreateEReference(juiMenuItemEClass, JUI_MENU_ITEM__CHILDREN);\n\t\tcreateEReference(juiMenuItemEClass, JUI_MENU_ITEM__PARENT);\n\t\tcreateEReference(juiMenuItemEClass, JUI_MENU_ITEM__REPRESENT);\n\t\tcreateEReference(juiMenuItemEClass, JUI_MENU_ITEM__UIFILTERS);\n\t\tcreateEAttribute(juiMenuItemEClass, JUI_MENU_ITEM__TYPE);\n\t\tcreateEReference(juiMenuItemEClass, JUI_MENU_ITEM__ALIAS);\n\n\t\tjuiAttributeGroupEClass = createEClass(JUI_ATTRIBUTE_GROUP);\n\t\tcreateEReference(juiAttributeGroupEClass, JUI_ATTRIBUTE_GROUP__ATTRIBUTES);\n\t\tcreateEAttribute(juiAttributeGroupEClass, JUI_ATTRIBUTE_GROUP__POSITION);\n\n\t\tjuiFilterEClass = createEClass(JUI_FILTER);\n\t\tcreateEReference(juiFilterEClass, JUI_FILTER__ATTRIBUTE);\n\t\tcreateEAttribute(juiFilterEClass, JUI_FILTER__OPERATOR);\n\t\tcreateEAttribute(juiFilterEClass, JUI_FILTER__VALUE);\n\n\t\tjuiAliasEClass = createEClass(JUI_ALIAS);\n\t\tcreateEReference(juiAliasEClass, JUI_ALIAS__OWNER_CLASS);\n\n\t\tjInfoEClass = createEClass(JINFO);\n\t\tcreateEReference(jInfoEClass, JINFO__SUBMODELS);\n\n\t\tjSubmodelEClass = createEClass(JSUBMODEL);\n\t\tcreateEAttribute(jSubmodelEClass, JSUBMODEL__VERSION);\n\n\t\t// Create enums\n\t\tjVisibilityEEnum = createEEnum(JVISIBILITY);\n\t\tjAssociationKindEEnum = createEEnum(JASSOCIATION_KIND);\n\t\tjOperationKindEEnum = createEEnum(JOPERATION_KIND);\n\t\tjLayerEEnum = createEEnum(JLAYER);\n\t\tjMenuItemTypeEEnum = createEEnum(JMENU_ITEM_TYPE);\n\t\tjOperatorEEnum = createEEnum(JOPERATOR);\n\t}", "private void init() {\n\t\tthis.model = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM);\n\t\tthis.model.setNsPrefixes(INamespace.NAMSESPACE_MAP);\n\n\t\t// create classes and properties\n\t\tcreateClasses();\n\t\tcreateDatatypeProperties();\n\t\tcreateObjectProperties();\n\t\t// createFraktionResources();\n\t}", "public void createPackageContents() {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n calcEClass = createEClass(CALC);\n createEReference(calcEClass, CALC__EXPR);\n\n exprEClass = createEClass(EXPR);\n\n bitShiftExprEClass = createEClass(BIT_SHIFT_EXPR);\n createEReference(bitShiftExprEClass, BIT_SHIFT_EXPR__CHILDREN);\n createEAttribute(bitShiftExprEClass, BIT_SHIFT_EXPR__OPERATORS);\n\n bitShiftExprChildEClass = createEClass(BIT_SHIFT_EXPR_CHILD);\n\n additiveExprEClass = createEClass(ADDITIVE_EXPR);\n createEReference(additiveExprEClass, ADDITIVE_EXPR__CHILDREN);\n createEAttribute(additiveExprEClass, ADDITIVE_EXPR__OPERATORS);\n\n additiveExprChildEClass = createEClass(ADDITIVE_EXPR_CHILD);\n\n multiplicativeExprEClass = createEClass(MULTIPLICATIVE_EXPR);\n createEReference(multiplicativeExprEClass, MULTIPLICATIVE_EXPR__CHILDREN);\n createEAttribute(multiplicativeExprEClass, MULTIPLICATIVE_EXPR__OPERATORS);\n\n multiplicativeExprChildEClass = createEClass(MULTIPLICATIVE_EXPR_CHILD);\n\n numberEClass = createEClass(NUMBER);\n createEAttribute(numberEClass, NUMBER__VALUE);\n\n // Create enums\n bitShiftOpEEnum = createEEnum(BIT_SHIFT_OP);\n additiveOpEEnum = createEEnum(ADDITIVE_OP);\n multiplicativeOpEEnum = createEEnum(MULTIPLICATIVE_OP);\n }", "public void createPackageContents() {\r\n\t\tif (isCreated) return;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\temcLogicalConnectorEClass = createEClass(EMC_LOGICAL_CONNECTOR);\r\n\r\n\t\temcAndEClass = createEClass(EMC_AND);\r\n\t\tcreateEReference(emcAndEClass, EMC_AND__COL_AND_DIAGRAM);\r\n\r\n\t\temcorEClass = createEClass(EMCOR);\r\n\t\tcreateEReference(emcorEClass, EMCOR__COL_OR_DIAGRAM);\r\n\r\n\t\temcCollaborationGroupEClass = createEClass(EMC_COLLABORATION_GROUP);\r\n\t\tcreateEReference(emcCollaborationGroupEClass, EMC_COLLABORATION_GROUP__COL_COL_GROUP_DIAGRAM);\r\n\r\n\t\temcDiagramEClass = createEClass(EMC_DIAGRAM);\r\n\t\tcreateEReference(emcDiagramEClass, EMC_DIAGRAM__EMP_DIAGRAM);\r\n\t\tcreateEAttribute(emcDiagramEClass, EMC_DIAGRAM__ASSOCIATE_PR_MODEL);\r\n\t\tcreateEReference(emcDiagramEClass, EMC_DIAGRAM__COL_AND);\r\n\t\tcreateEReference(emcDiagramEClass, EMC_DIAGRAM__COL_OR);\r\n\t\tcreateEReference(emcDiagramEClass, EMC_DIAGRAM__COL_ROLE);\r\n\t\tcreateEReference(emcDiagramEClass, EMC_DIAGRAM__COL_LOCATION);\r\n\t\tcreateEReference(emcDiagramEClass, EMC_DIAGRAM__COL_MACHINE);\r\n\t\tcreateEReference(emcDiagramEClass, EMC_DIAGRAM__COL_EMO_GROUP);\r\n\t\tcreateEReference(emcDiagramEClass, EMC_DIAGRAM__COL_COL_GROUP);\r\n\t\tcreateEReference(emcDiagramEClass, EMC_DIAGRAM__COL_COL_RELATION);\r\n\t\tcreateEReference(emcDiagramEClass, EMC_DIAGRAM__COL_SEQ_RELATION);\r\n\r\n\t\temcRelationEClass = createEClass(EMC_RELATION);\r\n\t\tcreateEReference(emcRelationEClass, EMC_RELATION__SOURCE_RELATION_SOURCE_OBJ);\r\n\t\tcreateEReference(emcRelationEClass, EMC_RELATION__TARGET_RELATION_TARGET_OBJ);\r\n\r\n\t\temcCollaborationRelationEClass = createEClass(EMC_COLLABORATION_RELATION);\r\n\t\tcreateEReference(emcCollaborationRelationEClass, EMC_COLLABORATION_RELATION__COL_COL_RELATION_DIAGRAM);\r\n\r\n\t\temcSequenceRelationEClass = createEClass(EMC_SEQUENCE_RELATION);\r\n\t\tcreateEReference(emcSequenceRelationEClass, EMC_SEQUENCE_RELATION__COL_SEQ_RELATION_DIAGRAM);\r\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tfticBaseEClass = createEClass(FTIC_BASE);\n\n\t\titemEClass = createEClass(ITEM);\n\n\t\thypertextEClass = createEClass(HYPERTEXT);\n\t\tcreateEReference(hypertextEClass, HYPERTEXT__CONTENT);\n\n\t\ttextElementEClass = createEClass(TEXT_ELEMENT);\n\t\tcreateEAttribute(textElementEClass, TEXT_ELEMENT__VISIBLE_CONTENT);\n\n\t\tlinkEClass = createEClass(LINK);\n\t\tcreateEReference(linkEClass, LINK__TARGET);\n\n\t\ttermEClass = createEClass(TERM);\n\n\t\tfactorTableEClass = createEClass(FACTOR_TABLE);\n\t\tcreateEAttribute(factorTableEClass, FACTOR_TABLE__TYPE);\n\t\tcreateEReference(factorTableEClass, FACTOR_TABLE__ENTRIES);\n\n\t\tftEntryEClass = createEClass(FT_ENTRY);\n\t\tcreateEAttribute(ftEntryEClass, FT_ENTRY__NUMBERING);\n\t\tcreateEAttribute(ftEntryEClass, FT_ENTRY__NAME);\n\t\tcreateEReference(ftEntryEClass, FT_ENTRY__CHILDREN);\n\n\t\tfactorCategoryEClass = createEClass(FACTOR_CATEGORY);\n\n\t\tfactorEClass = createEClass(FACTOR);\n\t\tcreateEReference(factorEClass, FACTOR__DESCRIPTION);\n\t\tcreateEReference(factorEClass, FACTOR__FLEXIBILITY);\n\t\tcreateEReference(factorEClass, FACTOR__CHANGEABILITY);\n\t\tcreateEReference(factorEClass, FACTOR__INFLUENCE);\n\t\tcreateEAttribute(factorEClass, FACTOR__PRIORITY);\n\n\t\tissueCardEClass = createEClass(ISSUE_CARD);\n\t\tcreateEAttribute(issueCardEClass, ISSUE_CARD__NAME);\n\t\tcreateEReference(issueCardEClass, ISSUE_CARD__DESCRIPTION);\n\t\tcreateEReference(issueCardEClass, ISSUE_CARD__SOLUTION);\n\t\tcreateEReference(issueCardEClass, ISSUE_CARD__STRATEGIES);\n\t\tcreateEReference(issueCardEClass, ISSUE_CARD__INFLUENCING_FACTORS);\n\t\tcreateEReference(issueCardEClass, ISSUE_CARD__RELATED_ISSUES);\n\n\t\tstrategyEClass = createEClass(STRATEGY);\n\t\tcreateEAttribute(strategyEClass, STRATEGY__NAME);\n\t\tcreateEReference(strategyEClass, STRATEGY__DESCRIPTION);\n\n\t\tinfluencingFactorEClass = createEClass(INFLUENCING_FACTOR);\n\t\tcreateEReference(influencingFactorEClass, INFLUENCING_FACTOR__DESCRIPTION);\n\t\tcreateEReference(influencingFactorEClass, INFLUENCING_FACTOR__FACTOR);\n\n\t\trelatedIssueEClass = createEClass(RELATED_ISSUE);\n\t\tcreateEReference(relatedIssueEClass, RELATED_ISSUE__ISSUE);\n\t\tcreateEReference(relatedIssueEClass, RELATED_ISSUE__DESCRIPTION);\n\n\t\tfticPackageEClass = createEClass(FTIC_PACKAGE);\n\t\tcreateEReference(fticPackageEClass, FTIC_PACKAGE__TABLES);\n\t\tcreateEReference(fticPackageEClass, FTIC_PACKAGE__ISSUE_CARDS);\n\t\tcreateEAttribute(fticPackageEClass, FTIC_PACKAGE__NAME);\n\n\t\t// Create enums\n\t\tcategoryTypeEEnum = createEEnum(CATEGORY_TYPE);\n\t}", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n programmeEClass = createEClass(PROGRAMME);\n createEReference(programmeEClass, PROGRAMME__PROCEDURES);\n\n procedureEClass = createEClass(PROCEDURE);\n createEAttribute(procedureEClass, PROCEDURE__NAME);\n createEAttribute(procedureEClass, PROCEDURE__PARAM);\n createEAttribute(procedureEClass, PROCEDURE__PARAMS);\n createEReference(procedureEClass, PROCEDURE__INST);\n\n instructionEClass = createEClass(INSTRUCTION);\n\n openEClass = createEClass(OPEN);\n createEAttribute(openEClass, OPEN__NAME);\n createEAttribute(openEClass, OPEN__VALUE);\n\n gotoEClass = createEClass(GOTO);\n createEAttribute(gotoEClass, GOTO__NAME);\n createEAttribute(gotoEClass, GOTO__VALUE);\n\n clickEClass = createEClass(CLICK);\n createEAttribute(clickEClass, CLICK__NAME);\n createEAttribute(clickEClass, CLICK__TYPE);\n createEReference(clickEClass, CLICK__IDENTIFIER);\n\n fillEClass = createEClass(FILL);\n createEAttribute(fillEClass, FILL__NAME);\n createEAttribute(fillEClass, FILL__FIELD_TYPE);\n createEReference(fillEClass, FILL__IDENTIFIER);\n createEAttribute(fillEClass, FILL__VAR);\n createEAttribute(fillEClass, FILL__VALUE);\n\n checkEClass = createEClass(CHECK);\n createEAttribute(checkEClass, CHECK__NAME);\n createEAttribute(checkEClass, CHECK__ALL);\n createEReference(checkEClass, CHECK__IDENTIFIER);\n\n uncheckEClass = createEClass(UNCHECK);\n createEAttribute(uncheckEClass, UNCHECK__NAME);\n createEAttribute(uncheckEClass, UNCHECK__ALL);\n createEReference(uncheckEClass, UNCHECK__IDENTIFIER);\n\n selectEClass = createEClass(SELECT);\n createEAttribute(selectEClass, SELECT__NAME);\n createEAttribute(selectEClass, SELECT__ELEM);\n createEReference(selectEClass, SELECT__IDENTIFIER);\n\n readEClass = createEClass(READ);\n createEAttribute(readEClass, READ__NAME);\n createEReference(readEClass, READ__IDENTIFIER);\n createEReference(readEClass, READ__SAVE_PATH);\n\n elementidentifierEClass = createEClass(ELEMENTIDENTIFIER);\n createEAttribute(elementidentifierEClass, ELEMENTIDENTIFIER__NAME);\n createEAttribute(elementidentifierEClass, ELEMENTIDENTIFIER__TYPE);\n createEAttribute(elementidentifierEClass, ELEMENTIDENTIFIER__VALUE);\n createEAttribute(elementidentifierEClass, ELEMENTIDENTIFIER__INFO);\n createEAttribute(elementidentifierEClass, ELEMENTIDENTIFIER__VAR);\n\n verifyEClass = createEClass(VERIFY);\n createEAttribute(verifyEClass, VERIFY__VALUE);\n\n verifY_CONTAINSEClass = createEClass(VERIFY_CONTAINS);\n createEAttribute(verifY_CONTAINSEClass, VERIFY_CONTAINS__TYPE);\n createEReference(verifY_CONTAINSEClass, VERIFY_CONTAINS__IDENTIFIER);\n createEReference(verifY_CONTAINSEClass, VERIFY_CONTAINS__CONTAINED_IDENTIFIER);\n createEReference(verifY_CONTAINSEClass, VERIFY_CONTAINS__VARIABLE);\n\n verifY_EQUALSEClass = createEClass(VERIFY_EQUALS);\n createEReference(verifY_EQUALSEClass, VERIFY_EQUALS__OPERATION);\n createEReference(verifY_EQUALSEClass, VERIFY_EQUALS__REGISTERED_VALUE);\n\n registereD_VALUEEClass = createEClass(REGISTERED_VALUE);\n createEAttribute(registereD_VALUEEClass, REGISTERED_VALUE__VAR);\n\n countEClass = createEClass(COUNT);\n createEAttribute(countEClass, COUNT__NAME);\n createEReference(countEClass, COUNT__IDENTIFIER);\n createEReference(countEClass, COUNT__SAVE_VARIABLE);\n\n savevarEClass = createEClass(SAVEVAR);\n createEAttribute(savevarEClass, SAVEVAR__VAR);\n\n playEClass = createEClass(PLAY);\n createEAttribute(playEClass, PLAY__NAME);\n createEAttribute(playEClass, PLAY__PREOCEDURE);\n createEAttribute(playEClass, PLAY__PARAMS);\n }", "public void createPackageContents() {\r\n\t\tif (isCreated) return;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\trunnableEClass = createEClass(RUNNABLE);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__COMPONENT_INSTANCE);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__PORT_INSTANCE);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__PERIOD);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__LABEL_ACCESSES);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__DEADLINE);\r\n\r\n\t\tlabelEClass = createEClass(LABEL);\r\n\t\tcreateEReference(labelEClass, LABEL__COMPONENT_INSTANCE);\r\n\t\tcreateEReference(labelEClass, LABEL__COMPONENT_STATECHART);\r\n\t\tcreateEAttribute(labelEClass, LABEL__IS_CONSTANT);\r\n\r\n\t\tlabelAccessEClass = createEClass(LABEL_ACCESS);\r\n\t\tcreateEAttribute(labelAccessEClass, LABEL_ACCESS__ACCESS_KIND);\r\n\t\tcreateEReference(labelAccessEClass, LABEL_ACCESS__ACCESS_LABEL);\r\n\t\tcreateEReference(labelAccessEClass, LABEL_ACCESS__ACCESSING_RUNNABLE);\r\n\r\n\t\t// Create enums\r\n\t\tlabelAccessKindEEnum = createEEnum(LABEL_ACCESS_KIND);\r\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\toml2OTIProvenanceEClass = createEClass(OML2OTI_PROVENANCE);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OML_UUID);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OML_IRI);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OTI_ID);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OTI_URL);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OTI_UUID);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__EXPLANATION);\n\n\t\t// Create data types\n\t\tuuidEDataType = createEDataType(UUID);\n\t\tomL_IRIEDataType = createEDataType(OML_IRI);\n\t\totI_TOOL_SPECIFIC_IDEDataType = createEDataType(OTI_TOOL_SPECIFIC_ID);\n\t\totI_TOOL_SPECIFIC_UUIDEDataType = createEDataType(OTI_TOOL_SPECIFIC_UUID);\n\t\totI_TOOL_SPECIFIC_URLEDataType = createEDataType(OTI_TOOL_SPECIFIC_URL);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tinstructionEClass = createEClass(INSTRUCTION);\n\n\t\tnamedElementEClass = createEClass(NAMED_ELEMENT);\n\t\tcreateEAttribute(namedElementEClass, NAMED_ELEMENT__NAME);\n\n\t\tgoForwardEClass = createEClass(GO_FORWARD);\n\t\tcreateEAttribute(goForwardEClass, GO_FORWARD__CM);\n\t\tcreateEAttribute(goForwardEClass, GO_FORWARD__INFINITE);\n\n\t\tgoBackwardEClass = createEClass(GO_BACKWARD);\n\t\tcreateEAttribute(goBackwardEClass, GO_BACKWARD__CM);\n\t\tcreateEAttribute(goBackwardEClass, GO_BACKWARD__INFINITE);\n\n\t\tbeginEClass = createEClass(BEGIN);\n\n\t\trotateEClass = createEClass(ROTATE);\n\t\tcreateEAttribute(rotateEClass, ROTATE__DEGREES);\n\t\tcreateEAttribute(rotateEClass, ROTATE__RANDOM);\n\n\t\treleaseEClass = createEClass(RELEASE);\n\n\t\tactionEClass = createEClass(ACTION);\n\n\t\tblockEClass = createEClass(BLOCK);\n\n\t\tendEClass = createEClass(END);\n\n\t\tchoreographyEClass = createEClass(CHOREOGRAPHY);\n\t\tcreateEReference(choreographyEClass, CHOREOGRAPHY__INSTRUCTIONS);\n\t\tcreateEReference(choreographyEClass, CHOREOGRAPHY__EDGE_INSTRUCTIONS);\n\n\t\tedgeInstructionEClass = createEClass(EDGE_INSTRUCTION);\n\t\tcreateEReference(edgeInstructionEClass, EDGE_INSTRUCTION__SOURCE);\n\t\tcreateEReference(edgeInstructionEClass, EDGE_INSTRUCTION__TARGET);\n\n\t\tgrabEClass = createEClass(GRAB);\n\t}", "public void createPackageContents() {\r\n\t\tif (isCreated)\r\n\t\t\treturn;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tnamedElementEClass = createEClass(NAMED_ELEMENT);\r\n\t\tcreateEAttribute(namedElementEClass, NAMED_ELEMENT__NAME);\r\n\r\n\t\tcomDiagEClass = createEClass(COM_DIAG);\r\n\t\tcreateEReference(comDiagEClass, COM_DIAG__ELEMENTS);\r\n\t\tcreateEAttribute(comDiagEClass, COM_DIAG__LEVEL);\r\n\r\n\t\tcomDiagElementEClass = createEClass(COM_DIAG_ELEMENT);\r\n\t\tcreateEReference(comDiagElementEClass, COM_DIAG_ELEMENT__GRAPH);\r\n\r\n\t\tlifelineEClass = createEClass(LIFELINE);\r\n\t\tcreateEAttribute(lifelineEClass, LIFELINE__NUMBER);\r\n\r\n\t\tmessageEClass = createEClass(MESSAGE);\r\n\t\tcreateEAttribute(messageEClass, MESSAGE__OCCURENCE);\r\n\t\tcreateEReference(messageEClass, MESSAGE__SOURCE);\r\n\t\tcreateEReference(messageEClass, MESSAGE__TARGET);\r\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tarrayOfStringEClass = createEClass(ARRAY_OF_STRING);\n\t\tcreateEAttribute(arrayOfStringEClass, ARRAY_OF_STRING__VALUES);\n\n\t\tcontainerEClass = createEClass(CONTAINER);\n\t\tcreateEAttribute(containerEClass, CONTAINER__NAME);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CONTAINERID);\n\t\tcreateEAttribute(containerEClass, CONTAINER__IMAGE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__BUILD);\n\t\tcreateEAttribute(containerEClass, CONTAINER__COMMAND);\n\t\tcreateEAttribute(containerEClass, CONTAINER__PORTS);\n\t\tcreateEAttribute(containerEClass, CONTAINER__EXPOSE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__VOLUMES);\n\t\tcreateEAttribute(containerEClass, CONTAINER__ENVIRONMENT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__ENV_FILE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__NET);\n\t\tcreateEAttribute(containerEClass, CONTAINER__DNS);\n\t\tcreateEAttribute(containerEClass, CONTAINER__DNS_SEARCH);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CAP_ADD);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CAP_DROP);\n\t\tcreateEAttribute(containerEClass, CONTAINER__WORKING_DIR);\n\t\tcreateEAttribute(containerEClass, CONTAINER__ENTRYPOINT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__USER);\n\t\tcreateEAttribute(containerEClass, CONTAINER__DOMAIN_NAME);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MEM_LIMIT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MEMORY_SWAP);\n\t\tcreateEAttribute(containerEClass, CONTAINER__PRIVILEGED);\n\t\tcreateEAttribute(containerEClass, CONTAINER__RESTART);\n\t\tcreateEAttribute(containerEClass, CONTAINER__STDIN_OPEN);\n\t\tcreateEAttribute(containerEClass, CONTAINER__INTERACTIVE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CPU_SHARES);\n\t\tcreateEAttribute(containerEClass, CONTAINER__PID);\n\t\tcreateEAttribute(containerEClass, CONTAINER__IPC);\n\t\tcreateEAttribute(containerEClass, CONTAINER__ADD_HOST);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MAC_ADDRESS);\n\t\tcreateEAttribute(containerEClass, CONTAINER__RM);\n\t\tcreateEAttribute(containerEClass, CONTAINER__SECURITY_OPT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__DEVICE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__LXC_CONF);\n\t\tcreateEAttribute(containerEClass, CONTAINER__PUBLISH_ALL);\n\t\tcreateEAttribute(containerEClass, CONTAINER__READ_ONLY);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MONITORED);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CPU_USED);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MEMORY_USED);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CPU_PERCENT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MEMORY_PERCENT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__DISK_USED);\n\t\tcreateEAttribute(containerEClass, CONTAINER__DISK_PERCENT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__BANDWIDTH_USED);\n\t\tcreateEAttribute(containerEClass, CONTAINER__BANDWIDTH_PERCENT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MONITORING_INTERVAL);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CPU_MAX_VALUE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MEMORY_MAX_VALUE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CORE_MAX);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CPU_SET_CPUS);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CPU_SET_MEMS);\n\t\tcreateEAttribute(containerEClass, CONTAINER__TTY);\n\t\tcreateEOperation(containerEClass, CONTAINER___CREATE);\n\t\tcreateEOperation(containerEClass, CONTAINER___STOP);\n\t\tcreateEOperation(containerEClass, CONTAINER___RUN);\n\t\tcreateEOperation(containerEClass, CONTAINER___PAUSE);\n\t\tcreateEOperation(containerEClass, CONTAINER___UNPAUSE);\n\t\tcreateEOperation(containerEClass, CONTAINER___KILL__STRING);\n\n\t\tlinkEClass = createEClass(LINK);\n\t\tcreateEAttribute(linkEClass, LINK__ALIAS);\n\n\t\tnetworklinkEClass = createEClass(NETWORKLINK);\n\n\t\tvolumesfromEClass = createEClass(VOLUMESFROM);\n\t\tcreateEAttribute(volumesfromEClass, VOLUMESFROM__MODE);\n\n\t\tcontainsEClass = createEClass(CONTAINS);\n\n\t\tmachineEClass = createEClass(MACHINE);\n\t\tcreateEAttribute(machineEClass, MACHINE__NAME);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_INSTALL_URL);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_OPT);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_INSECURE_REGISTRY);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_REGISTRY_MIRROR);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_LABEL);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_STORAGE_DRIVER);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_ENV);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_IMAGE);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_MASTER);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_DISCOVERY);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_STRATEGY);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_OPT);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_HOST);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_ADDR);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_EXPERIMENTAL);\n\t\tcreateEAttribute(machineEClass, MACHINE__TLS_SAN);\n\t\tcreateEOperation(machineEClass, MACHINE___STARTALL);\n\n\t\tvolumeEClass = createEClass(VOLUME);\n\t\tcreateEAttribute(volumeEClass, VOLUME__DRIVER);\n\t\tcreateEAttribute(volumeEClass, VOLUME__LABELS);\n\t\tcreateEAttribute(volumeEClass, VOLUME__OPTIONS);\n\t\tcreateEAttribute(volumeEClass, VOLUME__SOURCE);\n\t\tcreateEAttribute(volumeEClass, VOLUME__DESTINATION);\n\t\tcreateEAttribute(volumeEClass, VOLUME__MODE);\n\t\tcreateEAttribute(volumeEClass, VOLUME__RW);\n\t\tcreateEAttribute(volumeEClass, VOLUME__PROPAGATION);\n\t\tcreateEAttribute(volumeEClass, VOLUME__NAME);\n\n\t\tnetworkEClass = createEClass(NETWORK);\n\t\tcreateEAttribute(networkEClass, NETWORK__NETWORK_ID);\n\t\tcreateEAttribute(networkEClass, NETWORK__NAME);\n\t\tcreateEAttribute(networkEClass, NETWORK__AUX_ADDRESS);\n\t\tcreateEAttribute(networkEClass, NETWORK__DRIVER);\n\t\tcreateEAttribute(networkEClass, NETWORK__GATEWAY);\n\t\tcreateEAttribute(networkEClass, NETWORK__INTERNAL);\n\t\tcreateEAttribute(networkEClass, NETWORK__IP_RANGE);\n\t\tcreateEAttribute(networkEClass, NETWORK__IPAM_DRIVER);\n\t\tcreateEAttribute(networkEClass, NETWORK__IPAM_OPT);\n\t\tcreateEAttribute(networkEClass, NETWORK__IPV6);\n\t\tcreateEAttribute(networkEClass, NETWORK__OPT);\n\t\tcreateEAttribute(networkEClass, NETWORK__SUBNET);\n\n\t\tmachinegenericEClass = createEClass(MACHINEGENERIC);\n\t\tcreateEAttribute(machinegenericEClass, MACHINEGENERIC__ENGINE_PORT);\n\t\tcreateEAttribute(machinegenericEClass, MACHINEGENERIC__IP_ADDRESS);\n\t\tcreateEAttribute(machinegenericEClass, MACHINEGENERIC__SSH_KEY);\n\t\tcreateEAttribute(machinegenericEClass, MACHINEGENERIC__SSH_USER);\n\t\tcreateEAttribute(machinegenericEClass, MACHINEGENERIC__SSH_PORT);\n\n\t\tmachineamazonec2EClass = createEClass(MACHINEAMAZONEC2);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__ACCESS_KEY);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__AMI);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__INSTANCE_TYPE);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__REGION);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__ROOT_SIZE);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__SECRET_KEY);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__SECURITY_GROUP);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__SESSION_TOKEN);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__SUBNET_ID);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__VPC_ID);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__ZONE);\n\n\t\tmachinedigitaloceanEClass = createEClass(MACHINEDIGITALOCEAN);\n\t\tcreateEAttribute(machinedigitaloceanEClass, MACHINEDIGITALOCEAN__ACCESS_TOKEN);\n\t\tcreateEAttribute(machinedigitaloceanEClass, MACHINEDIGITALOCEAN__IMAGE);\n\t\tcreateEAttribute(machinedigitaloceanEClass, MACHINEDIGITALOCEAN__REGION);\n\t\tcreateEAttribute(machinedigitaloceanEClass, MACHINEDIGITALOCEAN__SIZE);\n\n\t\tmachinegooglecomputeengineEClass = createEClass(MACHINEGOOGLECOMPUTEENGINE);\n\t\tcreateEAttribute(machinegooglecomputeengineEClass, MACHINEGOOGLECOMPUTEENGINE__ZONE);\n\t\tcreateEAttribute(machinegooglecomputeengineEClass, MACHINEGOOGLECOMPUTEENGINE__MACHINE_TYPE);\n\t\tcreateEAttribute(machinegooglecomputeengineEClass, MACHINEGOOGLECOMPUTEENGINE__USERNAME);\n\t\tcreateEAttribute(machinegooglecomputeengineEClass, MACHINEGOOGLECOMPUTEENGINE__INSTANCE_NAME);\n\t\tcreateEAttribute(machinegooglecomputeengineEClass, MACHINEGOOGLECOMPUTEENGINE__PROJECT);\n\n\t\tmachineibmsoftlayerEClass = createEClass(MACHINEIBMSOFTLAYER);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__API_ENDPOINT);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__USER);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__API_KEY);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__CPU);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__DISK_SIZE);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__DOMAIN);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__HOURLY_BILLING);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__IMAGE);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__LOCAL_DISK);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__PRIVATE_NET_ONLY);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__REGION);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__PUBLIC_VLAN_ID);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__PRIVATE_VLAN_ID);\n\n\t\tmachinemicrosoftazureEClass = createEClass(MACHINEMICROSOFTAZURE);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__SUBSCRIPTION_ID);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__SUBSCRIPTION_CERT);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__ENVIRONMENT);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__MACHINE_LOCATION);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__RESOURCE_GROUP);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__SIZE);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__SSH_USER);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__VNET);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__SUBNET);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__SUBNET_PREFIX);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__AVAILABILITY_SET);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__OPEN_PORT);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__PRIVATE_IP_ADDRESS);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__NO_PUBLIC_IP);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__STATIC_PUBLIC_IP);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__DOCKER_PORT);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__USE_PRIVATE_IP);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__IMAGE);\n\n\t\tmachinemicrosofthypervEClass = createEClass(MACHINEMICROSOFTHYPERV);\n\t\tcreateEAttribute(machinemicrosofthypervEClass, MACHINEMICROSOFTHYPERV__VIRTUAL_SWITCH);\n\t\tcreateEAttribute(machinemicrosofthypervEClass, MACHINEMICROSOFTHYPERV__BOOT2DOCKER_URL);\n\t\tcreateEAttribute(machinemicrosofthypervEClass, MACHINEMICROSOFTHYPERV__DISK_SIZE);\n\t\tcreateEAttribute(machinemicrosofthypervEClass, MACHINEMICROSOFTHYPERV__STATIC_MAC_ADDRESS);\n\t\tcreateEAttribute(machinemicrosofthypervEClass, MACHINEMICROSOFTHYPERV__VLAN_ID);\n\n\t\tmachineopenstackEClass = createEClass(MACHINEOPENSTACK);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__FLAVOR_ID);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__FLAVOR_NAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__IMAGE_ID);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__IMAGE_NAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__AUTH_URL);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__USERNAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__PASSWORD);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__TENANT_NAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__TENANT_ID);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__REGION);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__ENDPOINT_TYPE);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__NET_ID);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__NET_NAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__SEC_GROUPS);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__FLOATING_IP_POOL);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__ACTIVE_TIME_OUT);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__AVAILABILITY_ZONE);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__DOMAIN_ID);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__DOMAIN_NAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__INSECURE);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__IP_VERSION);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__KEYPAIR_NAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__PRIVATE_KEY_FILE);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__SSH_PORT);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__SSH_USER);\n\n\t\tmachinerackspaceEClass = createEClass(MACHINERACKSPACE);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__USERNAME);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__API_KEY);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__REGION);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__END_POINT_TYPE);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__IMAGE_ID);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__FLAVOR_ID);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__SSH_USER);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__SSH_PORT);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__DOCKER_INSTALL);\n\n\t\tmachinevirtualboxEClass = createEClass(MACHINEVIRTUALBOX);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__BOOT2DOCKER_URL);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__DISK_SIZE);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__HOST_DNS_RESOLVER);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__IMPORT_BOOT2_DOCKER_VM);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__HOST_ONLY_CIDR);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__HOST_ONLY_NIC_TYPE);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__HOST_ONLY_NIC_PROMISC);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__NO_SHARE);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__NO_DNS_PROXY);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__NO_VTX_CHECK);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__SHARE_FOLDER);\n\n\t\tmachinevmwarefusionEClass = createEClass(MACHINEVMWAREFUSION);\n\t\tcreateEAttribute(machinevmwarefusionEClass, MACHINEVMWAREFUSION__BOOT2DOCKER_URL);\n\t\tcreateEAttribute(machinevmwarefusionEClass, MACHINEVMWAREFUSION__DISK_SIZE);\n\t\tcreateEAttribute(machinevmwarefusionEClass, MACHINEVMWAREFUSION__MEMORY_SIZE);\n\t\tcreateEAttribute(machinevmwarefusionEClass, MACHINEVMWAREFUSION__NO_SHARE);\n\n\t\tmachinevmwarevcloudairEClass = createEClass(MACHINEVMWAREVCLOUDAIR);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__USERNAME);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__PASSWORD);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__CATALOG);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__CATALOG_ITEM);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__COMPUTE_ID);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__CPU_COUNT);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__DOCKER_PORT);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__EDGEGATEWAY);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__MEMORY_SIZE);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__VAPP_NAME);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__ORGVDCNETWORK);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__PROVISION);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__PUBLIC_IP);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__SSH_PORT);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__VDC_ID);\n\n\t\tmachinevmwarevsphereEClass = createEClass(MACHINEVMWAREVSPHERE);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__USERNAME);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__PASSWORD);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__BOOT2DOCKER_URL);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__COMPUTE_IP);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__CPU_COUNT);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__DATACENTER);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__DATASTORE);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__DISK_SIZE);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__MEMORY_SIZE);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__NETWORK);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__POOL);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__VCENTER);\n\n\t\tmachineexoscaleEClass = createEClass(MACHINEEXOSCALE);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__URL);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__API_KEY);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__API_SECRET_KEY);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__INSTANCE_PROFILE);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__IMAGE);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__SECURITY_GROUP);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__AVAILABILITY_ZONE);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__SSH_USER);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__USER_DATA);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__AFFINITY_GROUP);\n\n\t\tmachinegrid5000EClass = createEClass(MACHINEGRID5000);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__USERNAME);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__PASSWORD);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__SITE);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__WALLTIME);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__SSH_PRIVATE_KEY);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__SSH_PUBLIC_KEY);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__IMAGE);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__RESOURCE_PROPERTIES);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__USE_JOB_RESERVATION);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__HOST_TO_PROVISION);\n\n\t\tclusterEClass = createEClass(CLUSTER);\n\t\tcreateEAttribute(clusterEClass, CLUSTER__NAME);\n\n\t\t// Create enums\n\t\tmodeEEnum = createEEnum(MODE);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\treadCsvFileEClass = createEClass(READ_CSV_FILE);\n\t\tcreateEAttribute(readCsvFileEClass, READ_CSV_FILE__URI);\n\n\t\tprintEClass = createEClass(PRINT);\n\t\tcreateEReference(printEClass, PRINT__INPUT);\n\n\t\twriteCsvFileEClass = createEClass(WRITE_CSV_FILE);\n\t\tcreateEReference(writeCsvFileEClass, WRITE_CSV_FILE__TABLE);\n\t\tcreateEAttribute(writeCsvFileEClass, WRITE_CSV_FILE__URI);\n\n\t\texcludeColumnsEClass = createEClass(EXCLUDE_COLUMNS);\n\t\tcreateEReference(excludeColumnsEClass, EXCLUDE_COLUMNS__TABLE);\n\t\tcreateEAttribute(excludeColumnsEClass, EXCLUDE_COLUMNS__COLUMNS);\n\n\t\tselectColumnsEClass = createEClass(SELECT_COLUMNS);\n\t\tcreateEReference(selectColumnsEClass, SELECT_COLUMNS__TABLE);\n\t\tcreateEAttribute(selectColumnsEClass, SELECT_COLUMNS__COLUMNS);\n\n\t\tassertTablesMatchEClass = createEClass(ASSERT_TABLES_MATCH);\n\t\tcreateEReference(assertTablesMatchEClass, ASSERT_TABLES_MATCH__LEFT);\n\t\tcreateEReference(assertTablesMatchEClass, ASSERT_TABLES_MATCH__RIGHT);\n\t\tcreateEAttribute(assertTablesMatchEClass, ASSERT_TABLES_MATCH__IGNORE_COLUMN_ORDER);\n\t\tcreateEAttribute(assertTablesMatchEClass, ASSERT_TABLES_MATCH__IGNORE_MISSING_COLUMNS);\n\n\t\twriteLinesEClass = createEClass(WRITE_LINES);\n\t\tcreateEAttribute(writeLinesEClass, WRITE_LINES__URI);\n\t\tcreateEAttribute(writeLinesEClass, WRITE_LINES__APPEND);\n\n\t\treadLinesEClass = createEClass(READ_LINES);\n\t\tcreateEAttribute(readLinesEClass, READ_LINES__URI);\n\n\t\tselectRowsEClass = createEClass(SELECT_ROWS);\n\t\tcreateEReference(selectRowsEClass, SELECT_ROWS__TABLE);\n\t\tcreateEAttribute(selectRowsEClass, SELECT_ROWS__COLUMN);\n\t\tcreateEAttribute(selectRowsEClass, SELECT_ROWS__VALUE);\n\t\tcreateEAttribute(selectRowsEClass, SELECT_ROWS__MATCH);\n\n\t\texcludeRowsEClass = createEClass(EXCLUDE_ROWS);\n\t\tcreateEReference(excludeRowsEClass, EXCLUDE_ROWS__TABLE);\n\t\tcreateEAttribute(excludeRowsEClass, EXCLUDE_ROWS__COLUMN);\n\t\tcreateEAttribute(excludeRowsEClass, EXCLUDE_ROWS__VALUE);\n\t\tcreateEAttribute(excludeRowsEClass, EXCLUDE_ROWS__MATCH);\n\n\t\tasTableDataEClass = createEClass(AS_TABLE_DATA);\n\t\tcreateEReference(asTableDataEClass, AS_TABLE_DATA__INPUT);\n\n\t\treadPropertiesEClass = createEClass(READ_PROPERTIES);\n\t\tcreateEAttribute(readPropertiesEClass, READ_PROPERTIES__URI);\n\n\t\t// Create enums\n\t\tignoreColumnsModeEEnum = createEEnum(IGNORE_COLUMNS_MODE);\n\t\trowMatchModeEEnum = createEEnum(ROW_MATCH_MODE);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tmaturityModelEClass = createEClass(MATURITY_MODEL);\n\t\tcreateEAttribute(maturityModelEClass, MATURITY_MODEL__NAME);\n\t\tcreateEAttribute(maturityModelEClass, MATURITY_MODEL__VERSION);\n\t\tcreateEAttribute(maturityModelEClass, MATURITY_MODEL__RELEASE_DATE);\n\t\tcreateEAttribute(maturityModelEClass, MATURITY_MODEL__AUTHOR);\n\t\tcreateEAttribute(maturityModelEClass, MATURITY_MODEL__DESCRIPTION);\n\t\tcreateEAttribute(maturityModelEClass, MATURITY_MODEL__ACRONYM);\n\t\tcreateEAttribute(maturityModelEClass, MATURITY_MODEL__URL);\n\t\tcreateEReference(maturityModelEClass, MATURITY_MODEL__ORGANIZES);\n\t\tcreateEReference(maturityModelEClass, MATURITY_MODEL__EVOLVES_INTO);\n\n\t\tprocessAreaEClass = createEClass(PROCESS_AREA);\n\t\tcreateEAttribute(processAreaEClass, PROCESS_AREA__NAME);\n\t\tcreateEAttribute(processAreaEClass, PROCESS_AREA__SHORT_DESCRIPTION);\n\t\tcreateEAttribute(processAreaEClass, PROCESS_AREA__MAIN_DESCRIPTION);\n\t\tcreateEAttribute(processAreaEClass, PROCESS_AREA__ACRONYM);\n\t\tcreateEReference(processAreaEClass, PROCESS_AREA__DEFINES);\n\t\tcreateEReference(processAreaEClass, PROCESS_AREA__IMPLEMENTS);\n\n\t\tspecificPracticeEClass = createEClass(SPECIFIC_PRACTICE);\n\t\tcreateEAttribute(specificPracticeEClass, SPECIFIC_PRACTICE__NAME);\n\t\tcreateEAttribute(specificPracticeEClass, SPECIFIC_PRACTICE__DESCRIPTION);\n\t\tcreateEAttribute(specificPracticeEClass, SPECIFIC_PRACTICE__ACRONYM);\n\t\tcreateEAttribute(specificPracticeEClass, SPECIFIC_PRACTICE__COMPLEMENTARY_DESCRIPTION);\n\n\t\tmaturityLevelEClass = createEClass(MATURITY_LEVEL);\n\t\tcreateEAttribute(maturityLevelEClass, MATURITY_LEVEL__NAME);\n\t\tcreateEAttribute(maturityLevelEClass, MATURITY_LEVEL__DESCRIPTION);\n\t\tcreateEAttribute(maturityLevelEClass, MATURITY_LEVEL__ACRONYM);\n\t\tcreateEReference(maturityLevelEClass, MATURITY_LEVEL__EVOLVES_INTO);\n\n\t\tgenericPracticeEClass = createEClass(GENERIC_PRACTICE);\n\t\tcreateEAttribute(genericPracticeEClass, GENERIC_PRACTICE__NAME);\n\t\tcreateEAttribute(genericPracticeEClass, GENERIC_PRACTICE__DESCRIPTION);\n\t\tcreateEAttribute(genericPracticeEClass, GENERIC_PRACTICE__ACRONYM);\n\t\tcreateEAttribute(genericPracticeEClass, GENERIC_PRACTICE__COMPLEMENTARY_DESCRIPTION);\n\t\tcreateEReference(genericPracticeEClass, GENERIC_PRACTICE__DIVIDED);\n\n\t\tgpSubPracticeEClass = createEClass(GP_SUB_PRACTICE);\n\t\tcreateEAttribute(gpSubPracticeEClass, GP_SUB_PRACTICE__NAME);\n\t\tcreateEAttribute(gpSubPracticeEClass, GP_SUB_PRACTICE__DESCRIPTION);\n\t\tcreateEAttribute(gpSubPracticeEClass, GP_SUB_PRACTICE__ACRONYM);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\theuristicStrategyEClass = createEClass(HEURISTIC_STRATEGY);\n\t\tcreateEReference(heuristicStrategyEClass, HEURISTIC_STRATEGY__GRAPHIC_REPRESENTATION);\n\t\tcreateEReference(heuristicStrategyEClass, HEURISTIC_STRATEGY__NEMF);\n\t\tcreateEReference(heuristicStrategyEClass, HEURISTIC_STRATEGY__ECORE_CONTAINMENT);\n\t\tcreateEAttribute(heuristicStrategyEClass, HEURISTIC_STRATEGY__CURRENT_REPRESENTATION);\n\t\tcreateEAttribute(heuristicStrategyEClass, HEURISTIC_STRATEGY__CURRENT_MMGR);\n\t\tcreateEReference(heuristicStrategyEClass, HEURISTIC_STRATEGY__LIST_REPRESENTATION);\n\t\tcreateEOperation(heuristicStrategyEClass, HEURISTIC_STRATEGY___EXECUTE_HEURISTICS);\n\t\tcreateEOperation(heuristicStrategyEClass, HEURISTIC_STRATEGY___EXECUTE_ROOT_ELEMENT);\n\t\tcreateEOperation(heuristicStrategyEClass, HEURISTIC_STRATEGY___EXECUTE_GRAPHICAL_ELEMENTS);\n\t\tcreateEOperation(heuristicStrategyEClass, HEURISTIC_STRATEGY___GET_FEATURE_NAME__ECLASS_ECLASS);\n\t\tcreateEOperation(heuristicStrategyEClass, HEURISTIC_STRATEGY___GET_ELIST_ECLASSFROM_EREFERENCE__EREFERENCE);\n\t\tcreateEOperation(heuristicStrategyEClass, HEURISTIC_STRATEGY___EXECUTE_DIRECT_PATH_MATRIX);\n\n\t\tconcreteStrategyLinkEClass = createEClass(CONCRETE_STRATEGY_LINK);\n\n\t\tstrategyLabelEClass = createEClass(STRATEGY_LABEL);\n\t\tcreateEOperation(strategyLabelEClass, STRATEGY_LABEL___GET_LABEL__ECLASS);\n\n\t\tconcreteStrategyLabelFirstStringEClass = createEClass(CONCRETE_STRATEGY_LABEL_FIRST_STRING);\n\n\t\tconcreteStrategyLabelIdentifierEClass = createEClass(CONCRETE_STRATEGY_LABEL_IDENTIFIER);\n\n\t\tconcreteStrategyLabelParameterEClass = createEClass(CONCRETE_STRATEGY_LABEL_PARAMETER);\n\t\tcreateEReference(concreteStrategyLabelParameterEClass, CONCRETE_STRATEGY_LABEL_PARAMETER__LABEL_PARAMETER);\n\n\t\tlabelParameterEClass = createEClass(LABEL_PARAMETER);\n\t\tcreateEAttribute(labelParameterEClass, LABEL_PARAMETER__LIST_LABEL);\n\t\tcreateEOperation(labelParameterEClass, LABEL_PARAMETER___TO_COMMA_SEPARATED_STRING_LABEL);\n\t\tcreateEOperation(labelParameterEClass, LABEL_PARAMETER___DEFAULT_PARAMETERS);\n\n\t\tstrategyRootSelectionEClass = createEClass(STRATEGY_ROOT_SELECTION);\n\t\tcreateEOperation(strategyRootSelectionEClass, STRATEGY_ROOT_SELECTION___GET_ROOT__ELIST_ELIST);\n\t\tcreateEOperation(strategyRootSelectionEClass, STRATEGY_ROOT_SELECTION___LIST_ROOT__ELIST_ELIST);\n\n\t\tconcreteStrategyMaxContainmentEClass = createEClass(CONCRETE_STRATEGY_MAX_CONTAINMENT);\n\n\t\tconcreteStrategyNoParentEClass = createEClass(CONCRETE_STRATEGY_NO_PARENT);\n\n\t\tstrategyPaletteEClass = createEClass(STRATEGY_PALETTE);\n\t\tcreateEOperation(strategyPaletteEClass, STRATEGY_PALETTE___GET_PALETTE__EOBJECT);\n\n\t\tconcreteStrategyPaletteEClass = createEClass(CONCRETE_STRATEGY_PALETTE);\n\n\t\tstrategyArcSelectionEClass = createEClass(STRATEGY_ARC_SELECTION);\n\t\tcreateEReference(strategyArcSelectionEClass, STRATEGY_ARC_SELECTION__ARC_DIRECTION);\n\t\tcreateEOperation(strategyArcSelectionEClass, STRATEGY_ARC_SELECTION___IS_ARC__ECLASS);\n\n\t\tconcreteStrategyArcSelectionEClass = createEClass(CONCRETE_STRATEGY_ARC_SELECTION);\n\n\t\tstrategyArcDirectionEClass = createEClass(STRATEGY_ARC_DIRECTION);\n\t\tcreateEOperation(strategyArcDirectionEClass, STRATEGY_ARC_DIRECTION___GET_DIRECTION__ECLASS);\n\n\t\tarcParameterEClass = createEClass(ARC_PARAMETER);\n\t\tcreateEAttribute(arcParameterEClass, ARC_PARAMETER__SOURCE);\n\t\tcreateEAttribute(arcParameterEClass, ARC_PARAMETER__TARGET);\n\t\tcreateEOperation(arcParameterEClass, ARC_PARAMETER___DEFAULT_PARAM);\n\n\t\tdefaultArcParameterEClass = createEClass(DEFAULT_ARC_PARAMETER);\n\t\tcreateEOperation(defaultArcParameterEClass, DEFAULT_ARC_PARAMETER___TO_COMMA_SEPARATED_STRING_SOURCE);\n\t\tcreateEOperation(defaultArcParameterEClass, DEFAULT_ARC_PARAMETER___TO_COMMA_SEPARATED_STRING_TARGET);\n\n\t\tconcreteStrategyArcDirectionEClass = createEClass(CONCRETE_STRATEGY_ARC_DIRECTION);\n\t\tcreateEReference(concreteStrategyArcDirectionEClass, CONCRETE_STRATEGY_ARC_DIRECTION__PARAM);\n\t\tcreateEOperation(concreteStrategyArcDirectionEClass, CONCRETE_STRATEGY_ARC_DIRECTION___CONTAINS_STRING_EREFERENCE_NAME__ELIST_STRING);\n\n\t\tconcreteStrategyDefaultDirectionEClass = createEClass(CONCRETE_STRATEGY_DEFAULT_DIRECTION);\n\n\t\tstrategyNodeSelectionEClass = createEClass(STRATEGY_NODE_SELECTION);\n\t\tcreateEOperation(strategyNodeSelectionEClass, STRATEGY_NODE_SELECTION___IS_NODE__ECLASS);\n\n\t\tconcreteStrategyDefaultNodeSelectionEClass = createEClass(CONCRETE_STRATEGY_DEFAULT_NODE_SELECTION);\n\n\t\tstrategyPossibleElementsEClass = createEClass(STRATEGY_POSSIBLE_ELEMENTS);\n\t\tcreateEReference(strategyPossibleElementsEClass, STRATEGY_POSSIBLE_ELEMENTS__ECLASS_NO_ELEMENTS);\n\t\tcreateEOperation(strategyPossibleElementsEClass, STRATEGY_POSSIBLE_ELEMENTS___POSSIBLE_ELEMENTS__ECLASS_ELIST_ELIST);\n\n\t\tconcreteStrategyContainmentDiagramElementEClass = createEClass(CONCRETE_STRATEGY_CONTAINMENT_DIAGRAM_ELEMENT);\n\n\t\tecoreMatrixContainmentEClass = createEClass(ECORE_MATRIX_CONTAINMENT);\n\t\tcreateEAttribute(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT__DIRECT_MATRIX_CONTAINMENT);\n\t\tcreateEAttribute(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT__PATH_MATRIX);\n\t\tcreateEOperation(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT___GET_PARENT__INTEGER);\n\t\tcreateEOperation(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT___GET_DIRECT_MATRIX_CONTAINMENT__ELIST);\n\t\tcreateEOperation(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT___GET_PATH_MATRIX);\n\t\tcreateEOperation(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT___COPY_MATRIX);\n\t\tcreateEOperation(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT___PRINT_DIRECT_MATRIX_CONTAINMENT__ELIST);\n\t\tcreateEOperation(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT___GET_EALL_CHILDS__ECLASS_ELIST);\n\t\tcreateEOperation(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT___GET_ALL_PARENTS__INTEGER);\n\n\t\theuristicStrategySettingsEClass = createEClass(HEURISTIC_STRATEGY_SETTINGS);\n\t\tcreateEReference(heuristicStrategySettingsEClass, HEURISTIC_STRATEGY_SETTINGS__STRATEGY_LABEL);\n\t\tcreateEReference(heuristicStrategySettingsEClass, HEURISTIC_STRATEGY_SETTINGS__STRATEGY_ROOT);\n\t\tcreateEReference(heuristicStrategySettingsEClass, HEURISTIC_STRATEGY_SETTINGS__STRATEGY_PALETTE);\n\t\tcreateEReference(heuristicStrategySettingsEClass, HEURISTIC_STRATEGY_SETTINGS__STRATEGY_ARC_SELECTION);\n\t\tcreateEReference(heuristicStrategySettingsEClass, HEURISTIC_STRATEGY_SETTINGS__STRATEGY_NODE_SELECTION);\n\t\tcreateEReference(heuristicStrategySettingsEClass, HEURISTIC_STRATEGY_SETTINGS__STRATEGY_POSSIBLE_ELEMENTS);\n\t\tcreateEReference(heuristicStrategySettingsEClass, HEURISTIC_STRATEGY_SETTINGS__STRATEGY_LINKCOMPARTMENT);\n\n\t\tstrategyLinkCompartmentEClass = createEClass(STRATEGY_LINK_COMPARTMENT);\n\t\tcreateEReference(strategyLinkCompartmentEClass, STRATEGY_LINK_COMPARTMENT__LIST_LINKS);\n\t\tcreateEReference(strategyLinkCompartmentEClass, STRATEGY_LINK_COMPARTMENT__LIST_COMPARTMENT);\n\t\tcreateEReference(strategyLinkCompartmentEClass, STRATEGY_LINK_COMPARTMENT__LIST_AFFIXED);\n\t\tcreateEOperation(strategyLinkCompartmentEClass, STRATEGY_LINK_COMPARTMENT___EXECUTE_LINK_COMPARTMENTS_HEURISTICS__ECLASS);\n\n\t\tconcreteContainmentasAffixedEClass = createEClass(CONCRETE_CONTAINMENTAS_AFFIXED);\n\n\t\tconcreteContainmentasLinksEClass = createEClass(CONCRETE_CONTAINMENTAS_LINKS);\n\n\t\tconcreteContainmentasCompartmentsEClass = createEClass(CONCRETE_CONTAINMENTAS_COMPARTMENTS);\n\n\t\trepreHeurSSEClass = createEClass(REPRE_HEUR_SS);\n\t\tcreateEReference(repreHeurSSEClass, REPRE_HEUR_SS__HEURISTIC_STRATEGY_SETTINGS);\n\t}", "public void createPackageContents() {\n if (this.isCreated) {\n return;\n }\n this.isCreated = true;\n\n // Create classes and their features\n this.systemSpecifiedExecutionTimeEClass = this.createEClass(SYSTEM_SPECIFIED_EXECUTION_TIME);\n\n this.specifiedExecutionTimeEClass = this.createEClass(SPECIFIED_EXECUTION_TIME);\n this.createEReference(this.specifiedExecutionTimeEClass,\n SPECIFIED_EXECUTION_TIME__SPECIFICATION_SPECIFIED_EXECUTION_TIME);\n\n this.componentSpecifiedExecutionTimeEClass = this.createEClass(COMPONENT_SPECIFIED_EXECUTION_TIME);\n this.createEReference(this.componentSpecifiedExecutionTimeEClass,\n COMPONENT_SPECIFIED_EXECUTION_TIME__ASSEMBLY_CONTEXT_COMPONENT_SPECIFIED_EXECUTION_TIME);\n }", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n ledsCodeDSLEClass = createEClass(LEDS_CODE_DSL);\n createEReference(ledsCodeDSLEClass, LEDS_CODE_DSL__PROJECT);\n\n projectEClass = createEClass(PROJECT);\n createEAttribute(projectEClass, PROJECT__NAME);\n createEReference(projectEClass, PROJECT__INFRASTRUCTURE_BLOCK);\n createEReference(projectEClass, PROJECT__INTERFACE_BLOCK);\n createEReference(projectEClass, PROJECT__APPLICATION_BLOCK);\n createEReference(projectEClass, PROJECT__DOMAIN_BLOCK);\n\n interfaceBlockEClass = createEClass(INTERFACE_BLOCK);\n createEAttribute(interfaceBlockEClass, INTERFACE_BLOCK__NAME);\n createEReference(interfaceBlockEClass, INTERFACE_BLOCK__INTERFACE_APPLICATION);\n\n interfaceApplicationEClass = createEClass(INTERFACE_APPLICATION);\n createEAttribute(interfaceApplicationEClass, INTERFACE_APPLICATION__TYPE);\n createEAttribute(interfaceApplicationEClass, INTERFACE_APPLICATION__NAME);\n createEAttribute(interfaceApplicationEClass, INTERFACE_APPLICATION__NAME_APP);\n\n infrastructureBlockEClass = createEClass(INFRASTRUCTURE_BLOCK);\n createEAttribute(infrastructureBlockEClass, INFRASTRUCTURE_BLOCK__BASE_PACKAGE);\n createEAttribute(infrastructureBlockEClass, INFRASTRUCTURE_BLOCK__PROJECT_VERSION);\n createEReference(infrastructureBlockEClass, INFRASTRUCTURE_BLOCK__LANGUAGE);\n createEReference(infrastructureBlockEClass, INFRASTRUCTURE_BLOCK__FRAMEWORK);\n createEReference(infrastructureBlockEClass, INFRASTRUCTURE_BLOCK__ORM);\n createEReference(infrastructureBlockEClass, INFRASTRUCTURE_BLOCK__DATABASE);\n\n databaseEClass = createEClass(DATABASE);\n createEAttribute(databaseEClass, DATABASE__VERSION_VALUE);\n createEAttribute(databaseEClass, DATABASE__NAME_VALUE);\n createEAttribute(databaseEClass, DATABASE__USER_VALUE);\n createEAttribute(databaseEClass, DATABASE__PASS_VALUE);\n createEAttribute(databaseEClass, DATABASE__HOST_VALUE);\n createEAttribute(databaseEClass, DATABASE__ENV_VALUE);\n\n nameVersionEClass = createEClass(NAME_VERSION);\n createEAttribute(nameVersionEClass, NAME_VERSION__NAME_VALUE);\n createEAttribute(nameVersionEClass, NAME_VERSION__VERSION_VALUE);\n\n applicationBlockEClass = createEClass(APPLICATION_BLOCK);\n createEAttribute(applicationBlockEClass, APPLICATION_BLOCK__NAME);\n createEAttribute(applicationBlockEClass, APPLICATION_BLOCK__APPLICATION_DOMAIN);\n\n domainBlockEClass = createEClass(DOMAIN_BLOCK);\n createEAttribute(domainBlockEClass, DOMAIN_BLOCK__NAME);\n createEReference(domainBlockEClass, DOMAIN_BLOCK__MODULE);\n\n moduleBlockEClass = createEClass(MODULE_BLOCK);\n createEAttribute(moduleBlockEClass, MODULE_BLOCK__NAME);\n createEReference(moduleBlockEClass, MODULE_BLOCK__ENUM_BLOCK);\n createEReference(moduleBlockEClass, MODULE_BLOCK__ENTITY_BLOCK);\n createEReference(moduleBlockEClass, MODULE_BLOCK__SERVICE_BLOCK);\n\n serviceBlockEClass = createEClass(SERVICE_BLOCK);\n createEAttribute(serviceBlockEClass, SERVICE_BLOCK__NAME);\n createEReference(serviceBlockEClass, SERVICE_BLOCK__SERVICE_FIELDS);\n\n serviceMethodEClass = createEClass(SERVICE_METHOD);\n createEAttribute(serviceMethodEClass, SERVICE_METHOD__NAME);\n createEReference(serviceMethodEClass, SERVICE_METHOD__METHOD_ACESS);\n\n entityBlockEClass = createEClass(ENTITY_BLOCK);\n createEAttribute(entityBlockEClass, ENTITY_BLOCK__ACESS_MODIFIER);\n createEAttribute(entityBlockEClass, ENTITY_BLOCK__IS_ABSTRACT);\n createEAttribute(entityBlockEClass, ENTITY_BLOCK__NAME);\n createEReference(entityBlockEClass, ENTITY_BLOCK__CLASS_EXTENDS);\n createEReference(entityBlockEClass, ENTITY_BLOCK__ATTRIBUTES);\n createEReference(entityBlockEClass, ENTITY_BLOCK__REPOSITORY);\n\n attributeEClass = createEClass(ATTRIBUTE);\n createEAttribute(attributeEClass, ATTRIBUTE__ACESS_MODIFIER);\n createEAttribute(attributeEClass, ATTRIBUTE__TYPE);\n createEAttribute(attributeEClass, ATTRIBUTE__NAME);\n createEAttribute(attributeEClass, ATTRIBUTE__PK);\n createEAttribute(attributeEClass, ATTRIBUTE__UNIQUE);\n createEAttribute(attributeEClass, ATTRIBUTE__NULLABLE);\n createEAttribute(attributeEClass, ATTRIBUTE__MIN);\n createEAttribute(attributeEClass, ATTRIBUTE__MAX);\n\n repositoryEClass = createEClass(REPOSITORY);\n createEAttribute(repositoryEClass, REPOSITORY__NAME);\n createEReference(repositoryEClass, REPOSITORY__METHODS);\n\n repositoryFieldsEClass = createEClass(REPOSITORY_FIELDS);\n createEAttribute(repositoryFieldsEClass, REPOSITORY_FIELDS__NAME);\n createEReference(repositoryFieldsEClass, REPOSITORY_FIELDS__METHODS_PARAMETERS);\n createEAttribute(repositoryFieldsEClass, REPOSITORY_FIELDS__RETURN_TYPE);\n\n enumBlockEClass = createEClass(ENUM_BLOCK);\n createEAttribute(enumBlockEClass, ENUM_BLOCK__NAME);\n createEAttribute(enumBlockEClass, ENUM_BLOCK__VALUES);\n\n methodParameterEClass = createEClass(METHOD_PARAMETER);\n createEReference(methodParameterEClass, METHOD_PARAMETER__TYPE_AND_ATTR);\n\n typeAndAttributeEClass = createEClass(TYPE_AND_ATTRIBUTE);\n createEAttribute(typeAndAttributeEClass, TYPE_AND_ATTRIBUTE__TYPE);\n createEAttribute(typeAndAttributeEClass, TYPE_AND_ATTRIBUTE__NAME);\n\n extendBlockEClass = createEClass(EXTEND_BLOCK);\n createEReference(extendBlockEClass, EXTEND_BLOCK__VALUES);\n }", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n stylesheetEClass = createEClass(STYLESHEET);\n createEAttribute(stylesheetEClass, STYLESHEET__CHAR_SET);\n createEReference(stylesheetEClass, STYLESHEET__IMPORTS);\n createEReference(stylesheetEClass, STYLESHEET__STATEMENTS);\n\n cssTopLevelStatementEClass = createEClass(CSS_TOP_LEVEL_STATEMENT);\n\n cssOtherTopLevelDeclarationEClass = createEClass(CSS_OTHER_TOP_LEVEL_DECLARATION);\n\n importDeclarationEClass = createEClass(IMPORT_DECLARATION);\n createEAttribute(importDeclarationEClass, IMPORT_DECLARATION__IMPORT_URI);\n createEAttribute(importDeclarationEClass, IMPORT_DECLARATION__URL);\n createEAttribute(importDeclarationEClass, IMPORT_DECLARATION__MEDIA);\n\n mediaDeclarationEClass = createEClass(MEDIA_DECLARATION);\n createEReference(mediaDeclarationEClass, MEDIA_DECLARATION__MEDIA_QUERIES);\n createEReference(mediaDeclarationEClass, MEDIA_DECLARATION__MEDIA);\n createEReference(mediaDeclarationEClass, MEDIA_DECLARATION__MEMBERS);\n\n mediaDeclarationMembersEClass = createEClass(MEDIA_DECLARATION_MEMBERS);\n\n mediaQueryEClass = createEClass(MEDIA_QUERY);\n createEAttribute(mediaQueryEClass, MEDIA_QUERY__ONLY);\n createEAttribute(mediaQueryEClass, MEDIA_QUERY__NOT);\n createEAttribute(mediaQueryEClass, MEDIA_QUERY__MEDIA_TYPE);\n createEReference(mediaQueryEClass, MEDIA_QUERY__EXPRESSIONS);\n\n mediaQueryExpressionEClass = createEClass(MEDIA_QUERY_EXPRESSION);\n createEAttribute(mediaQueryExpressionEClass, MEDIA_QUERY_EXPRESSION__FEATURE);\n createEReference(mediaQueryExpressionEClass, MEDIA_QUERY_EXPRESSION__EXPRESSION);\n\n pageDeclarationEClass = createEClass(PAGE_DECLARATION);\n createEAttribute(pageDeclarationEClass, PAGE_DECLARATION__PSEUDO_PAGE);\n createEReference(pageDeclarationEClass, PAGE_DECLARATION__BODY);\n\n namespaceDeclarationEClass = createEClass(NAMESPACE_DECLARATION);\n createEAttribute(namespaceDeclarationEClass, NAMESPACE_DECLARATION__NAME);\n createEAttribute(namespaceDeclarationEClass, NAMESPACE_DECLARATION__URL);\n\n fontFaceDeclarationEClass = createEClass(FONT_FACE_DECLARATION);\n createEReference(fontFaceDeclarationEClass, FONT_FACE_DECLARATION__BODY);\n\n ruleSetEClass = createEClass(RULE_SET);\n createEReference(ruleSetEClass, RULE_SET__SELECTORS);\n createEReference(ruleSetEClass, RULE_SET__BODY);\n\n ruleSetBodyEClass = createEClass(RULE_SET_BODY);\n createEReference(ruleSetBodyEClass, RULE_SET_BODY__DECLARATIONS);\n\n propertyDeclarationEClass = createEClass(PROPERTY_DECLARATION);\n createEReference(propertyDeclarationEClass, PROPERTY_DECLARATION__VALUES_LISTS);\n\n knownPropertyDeclarationEClass = createEClass(KNOWN_PROPERTY_DECLARATION);\n createEAttribute(knownPropertyDeclarationEClass, KNOWN_PROPERTY_DECLARATION__NAME);\n\n unrecognizedPropertyDeclarationEClass = createEClass(UNRECOGNIZED_PROPERTY_DECLARATION);\n createEAttribute(unrecognizedPropertyDeclarationEClass, UNRECOGNIZED_PROPERTY_DECLARATION__NAME);\n\n propertyValuesListsEClass = createEClass(PROPERTY_VALUES_LISTS);\n createEReference(propertyValuesListsEClass, PROPERTY_VALUES_LISTS__LISTS);\n\n propertyValuesListEClass = createEClass(PROPERTY_VALUES_LIST);\n createEReference(propertyValuesListEClass, PROPERTY_VALUES_LIST__VALUES);\n\n propertyValueEClass = createEClass(PROPERTY_VALUE);\n createEReference(propertyValueEClass, PROPERTY_VALUE__VALUE);\n createEAttribute(propertyValueEClass, PROPERTY_VALUE__IMPORTANT);\n\n selectorEClass = createEClass(SELECTOR);\n\n simpleSelectorEClass = createEClass(SIMPLE_SELECTOR);\n\n typeSelectorEClass = createEClass(TYPE_SELECTOR);\n createEReference(typeSelectorEClass, TYPE_SELECTOR__NAMESPACE_PREFIX);\n createEAttribute(typeSelectorEClass, TYPE_SELECTOR__TYPE);\n\n namespacePrefixEClass = createEClass(NAMESPACE_PREFIX);\n createEReference(namespacePrefixEClass, NAMESPACE_PREFIX__NAMESPACE);\n\n universalSelectorEClass = createEClass(UNIVERSAL_SELECTOR);\n createEReference(universalSelectorEClass, UNIVERSAL_SELECTOR__NAMESPACE_PREFIX);\n\n attributeSelectorEClass = createEClass(ATTRIBUTE_SELECTOR);\n createEReference(attributeSelectorEClass, ATTRIBUTE_SELECTOR__ATTRIBUTE);\n createEAttribute(attributeSelectorEClass, ATTRIBUTE_SELECTOR__MATCHER);\n createEReference(attributeSelectorEClass, ATTRIBUTE_SELECTOR__VALUE);\n\n attributeEClass = createEClass(ATTRIBUTE);\n createEReference(attributeEClass, ATTRIBUTE__NAMESPACE_PREFIX);\n createEAttribute(attributeEClass, ATTRIBUTE__NAME);\n\n attributeValueLiteralEClass = createEClass(ATTRIBUTE_VALUE_LITERAL);\n\n idSelectorEClass = createEClass(ID_SELECTOR);\n createEAttribute(idSelectorEClass, ID_SELECTOR__NAME);\n\n classSelectorEClass = createEClass(CLASS_SELECTOR);\n createEAttribute(classSelectorEClass, CLASS_SELECTOR__NAME);\n\n pseudoSelectorEClass = createEClass(PSEUDO_SELECTOR);\n\n noArgsPseudoClassSelectorEClass = createEClass(NO_ARGS_PSEUDO_CLASS_SELECTOR);\n createEAttribute(noArgsPseudoClassSelectorEClass, NO_ARGS_PSEUDO_CLASS_SELECTOR__PSEUDO);\n\n pseudoElementSelectorEClass = createEClass(PSEUDO_ELEMENT_SELECTOR);\n createEAttribute(pseudoElementSelectorEClass, PSEUDO_ELEMENT_SELECTOR__DOUBLE_SEMI_COLON);\n createEAttribute(pseudoElementSelectorEClass, PSEUDO_ELEMENT_SELECTOR__PSEUDO);\n\n languagePseudoClassSelectorEClass = createEClass(LANGUAGE_PSEUDO_CLASS_SELECTOR);\n createEAttribute(languagePseudoClassSelectorEClass, LANGUAGE_PSEUDO_CLASS_SELECTOR__LANGUGAGE_ID);\n\n functionalPseudoClassSelectorEClass = createEClass(FUNCTIONAL_PSEUDO_CLASS_SELECTOR);\n createEAttribute(functionalPseudoClassSelectorEClass, FUNCTIONAL_PSEUDO_CLASS_SELECTOR__PSEUDO);\n createEReference(functionalPseudoClassSelectorEClass, FUNCTIONAL_PSEUDO_CLASS_SELECTOR__ARGUMENT);\n\n typeArgumentEClass = createEClass(TYPE_ARGUMENT);\n\n linearArgumentEClass = createEClass(LINEAR_ARGUMENT);\n createEReference(linearArgumentEClass, LINEAR_ARGUMENT__COEFFICIENT);\n createEAttribute(linearArgumentEClass, LINEAR_ARGUMENT__CONSTANT_SIGN);\n createEAttribute(linearArgumentEClass, LINEAR_ARGUMENT__CONSTANT);\n\n coefficientEClass = createEClass(COEFFICIENT);\n createEAttribute(coefficientEClass, COEFFICIENT__IDENT);\n createEAttribute(coefficientEClass, COEFFICIENT__INT);\n\n constantArgumentEClass = createEClass(CONSTANT_ARGUMENT);\n createEAttribute(constantArgumentEClass, CONSTANT_ARGUMENT__SIGN);\n createEAttribute(constantArgumentEClass, CONSTANT_ARGUMENT__INT);\n\n parityArgumentEClass = createEClass(PARITY_ARGUMENT);\n createEAttribute(parityArgumentEClass, PARITY_ARGUMENT__PARITY);\n\n negationSelectorEClass = createEClass(NEGATION_SELECTOR);\n createEReference(negationSelectorEClass, NEGATION_SELECTOR__SIMPLE_SELECTOR);\n\n valueLiteralEClass = createEClass(VALUE_LITERAL);\n\n numberLiteralEClass = createEClass(NUMBER_LITERAL);\n\n sizeLiteralEClass = createEClass(SIZE_LITERAL);\n\n stringLiteralEClass = createEClass(STRING_LITERAL);\n createEAttribute(stringLiteralEClass, STRING_LITERAL__VALUE);\n\n colorLiteralEClass = createEClass(COLOR_LITERAL);\n\n componentColorLiteralEClass = createEClass(COMPONENT_COLOR_LITERAL);\n\n colorComponentLiteralEClass = createEClass(COLOR_COMPONENT_LITERAL);\n createEReference(colorComponentLiteralEClass, COLOR_COMPONENT_LITERAL__NUMBER);\n createEAttribute(colorComponentLiteralEClass, COLOR_COMPONENT_LITERAL__PERCENTAGE);\n\n urlLiteralEClass = createEClass(URL_LITERAL);\n createEAttribute(urlLiteralEClass, URL_LITERAL__VALUE);\n\n bareWordLiteralEClass = createEClass(BARE_WORD_LITERAL);\n createEAttribute(bareWordLiteralEClass, BARE_WORD_LITERAL__BARE_WORD);\n\n functionCallLiteralEClass = createEClass(FUNCTION_CALL_LITERAL);\n createEAttribute(functionCallLiteralEClass, FUNCTION_CALL_LITERAL__FUNCTION);\n createEReference(functionCallLiteralEClass, FUNCTION_CALL_LITERAL__ARGUMENTS);\n\n descendantCombinatorEClass = createEClass(DESCENDANT_COMBINATOR);\n createEReference(descendantCombinatorEClass, DESCENDANT_COMBINATOR__LEFT);\n createEAttribute(descendantCombinatorEClass, DESCENDANT_COMBINATOR__WS_I);\n createEReference(descendantCombinatorEClass, DESCENDANT_COMBINATOR__RIGHT);\n\n childCombinatorEClass = createEClass(CHILD_COMBINATOR);\n createEReference(childCombinatorEClass, CHILD_COMBINATOR__LEFT);\n createEAttribute(childCombinatorEClass, CHILD_COMBINATOR__WS_L);\n createEAttribute(childCombinatorEClass, CHILD_COMBINATOR__WS_R);\n createEReference(childCombinatorEClass, CHILD_COMBINATOR__RIGHT);\n\n adjacentSiblingCombinatorEClass = createEClass(ADJACENT_SIBLING_COMBINATOR);\n createEReference(adjacentSiblingCombinatorEClass, ADJACENT_SIBLING_COMBINATOR__LEFT);\n createEAttribute(adjacentSiblingCombinatorEClass, ADJACENT_SIBLING_COMBINATOR__WS_L);\n createEAttribute(adjacentSiblingCombinatorEClass, ADJACENT_SIBLING_COMBINATOR__WS_R);\n createEReference(adjacentSiblingCombinatorEClass, ADJACENT_SIBLING_COMBINATOR__RIGHT);\n\n generalSiblingCombinatorEClass = createEClass(GENERAL_SIBLING_COMBINATOR);\n createEReference(generalSiblingCombinatorEClass, GENERAL_SIBLING_COMBINATOR__LEFT);\n createEAttribute(generalSiblingCombinatorEClass, GENERAL_SIBLING_COMBINATOR__WS_L);\n createEAttribute(generalSiblingCombinatorEClass, GENERAL_SIBLING_COMBINATOR__WS_R);\n createEReference(generalSiblingCombinatorEClass, GENERAL_SIBLING_COMBINATOR__RIGHT);\n\n simpleSelectorSequenceEClass = createEClass(SIMPLE_SELECTOR_SEQUENCE);\n createEReference(simpleSelectorSequenceEClass, SIMPLE_SELECTOR_SEQUENCE__HEAD);\n createEReference(simpleSelectorSequenceEClass, SIMPLE_SELECTOR_SEQUENCE__SIMPLE_SELECTORS);\n\n universalNamespacePrefixEClass = createEClass(UNIVERSAL_NAMESPACE_PREFIX);\n\n withoutNamespacePrefixEClass = createEClass(WITHOUT_NAMESPACE_PREFIX);\n\n stringAttributeValueLiteralEClass = createEClass(STRING_ATTRIBUTE_VALUE_LITERAL);\n createEAttribute(stringAttributeValueLiteralEClass, STRING_ATTRIBUTE_VALUE_LITERAL__VALUE);\n\n integerAttributeValueLiteralEClass = createEClass(INTEGER_ATTRIBUTE_VALUE_LITERAL);\n createEAttribute(integerAttributeValueLiteralEClass, INTEGER_ATTRIBUTE_VALUE_LITERAL__VALUE);\n\n decimalAttributeValueLiteralEClass = createEClass(DECIMAL_ATTRIBUTE_VALUE_LITERAL);\n createEAttribute(decimalAttributeValueLiteralEClass, DECIMAL_ATTRIBUTE_VALUE_LITERAL__VALUE);\n\n integerLiteralEClass = createEClass(INTEGER_LITERAL);\n createEAttribute(integerLiteralEClass, INTEGER_LITERAL__INT);\n\n decimalLiteralEClass = createEClass(DECIMAL_LITERAL);\n createEAttribute(decimalLiteralEClass, DECIMAL_LITERAL__DECIMAL);\n\n quantifiedSizeLiteralEClass = createEClass(QUANTIFIED_SIZE_LITERAL);\n createEReference(quantifiedSizeLiteralEClass, QUANTIFIED_SIZE_LITERAL__NUMBER);\n createEAttribute(quantifiedSizeLiteralEClass, QUANTIFIED_SIZE_LITERAL__DIMENSION);\n\n qualifiedSizeLiteralEClass = createEClass(QUALIFIED_SIZE_LITERAL);\n createEAttribute(qualifiedSizeLiteralEClass, QUALIFIED_SIZE_LITERAL__BAREWORD);\n\n fontHeightLiteralEClass = createEClass(FONT_HEIGHT_LITERAL);\n createEReference(fontHeightLiteralEClass, FONT_HEIGHT_LITERAL__FONT_HEIGHT);\n createEReference(fontHeightLiteralEClass, FONT_HEIGHT_LITERAL__LINE_HEIGHT);\n createEAttribute(fontHeightLiteralEClass, FONT_HEIGHT_LITERAL__LINE_HEIGHT_DIMENSION);\n\n rgbColorEClass = createEClass(RGB_COLOR);\n createEAttribute(rgbColorEClass, RGB_COLOR__RGB);\n\n namedColorEClass = createEClass(NAMED_COLOR);\n createEAttribute(namedColorEClass, NAMED_COLOR__COLOR);\n\n componentRGBColorEClass = createEClass(COMPONENT_RGB_COLOR);\n createEReference(componentRGBColorEClass, COMPONENT_RGB_COLOR__RED);\n createEReference(componentRGBColorEClass, COMPONENT_RGB_COLOR__GREEN);\n createEReference(componentRGBColorEClass, COMPONENT_RGB_COLOR__BLUE);\n\n componentRGBAlphaColorEClass = createEClass(COMPONENT_RGB_ALPHA_COLOR);\n createEReference(componentRGBAlphaColorEClass, COMPONENT_RGB_ALPHA_COLOR__RED);\n createEReference(componentRGBAlphaColorEClass, COMPONENT_RGB_ALPHA_COLOR__GREEN);\n createEReference(componentRGBAlphaColorEClass, COMPONENT_RGB_ALPHA_COLOR__BLUE);\n createEReference(componentRGBAlphaColorEClass, COMPONENT_RGB_ALPHA_COLOR__OPACITY);\n\n componentHSLColorEClass = createEClass(COMPONENT_HSL_COLOR);\n createEReference(componentHSLColorEClass, COMPONENT_HSL_COLOR__HUE);\n createEReference(componentHSLColorEClass, COMPONENT_HSL_COLOR__SATURATION);\n createEReference(componentHSLColorEClass, COMPONENT_HSL_COLOR__LIGHTNESS);\n\n componentHSLAlphaColorEClass = createEClass(COMPONENT_HSL_ALPHA_COLOR);\n createEReference(componentHSLAlphaColorEClass, COMPONENT_HSL_ALPHA_COLOR__HUE);\n createEReference(componentHSLAlphaColorEClass, COMPONENT_HSL_ALPHA_COLOR__SATURATION);\n createEReference(componentHSLAlphaColorEClass, COMPONENT_HSL_ALPHA_COLOR__LIGHTNESS);\n createEReference(componentHSLAlphaColorEClass, COMPONENT_HSL_ALPHA_COLOR__OPACITY);\n\n alphaLiteralEClass = createEClass(ALPHA_LITERAL);\n createEReference(alphaLiteralEClass, ALPHA_LITERAL__OPACITY);\n\n // Create enums\n knownPropertiesEEnum = createEEnum(KNOWN_PROPERTIES);\n attributeSelectorMatchersEEnum = createEEnum(ATTRIBUTE_SELECTOR_MATCHERS);\n noArgsPseudosEEnum = createEEnum(NO_ARGS_PSEUDOS);\n pseudoElementsEEnum = createEEnum(PSEUDO_ELEMENTS);\n functionalPseudoClassesEEnum = createEEnum(FUNCTIONAL_PSEUDO_CLASSES);\n paritiesEEnum = createEEnum(PARITIES);\n dimensionsEEnum = createEEnum(DIMENSIONS);\n colorNamesEEnum = createEEnum(COLOR_NAMES);\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tinvoiceEClass = createEClass(INVOICE);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__INVOICE_ID);\n\t\tcreateEReference(invoiceEClass, INVOICE__BILLING_ACCOUNT);\n\t\tcreateEReference(invoiceEClass, INVOICE__CONTACT_MECH);\n\t\tcreateEReference(invoiceEClass, INVOICE__CURRENCY_UOM);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__DESCRIPTION);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__DUE_DATE);\n\t\tcreateEReference(invoiceEClass, INVOICE__INVOICE_ATTRIBUTES);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__INVOICE_DATE);\n\t\tcreateEReference(invoiceEClass, INVOICE__INVOICE_ITEMS);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__INVOICE_MESSAGE);\n\t\tcreateEReference(invoiceEClass, INVOICE__INVOICE_NOTES);\n\t\tcreateEReference(invoiceEClass, INVOICE__INVOICE_STATUSES);\n\t\tcreateEReference(invoiceEClass, INVOICE__INVOICE_TYPE);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__PAID_DATE);\n\t\tcreateEReference(invoiceEClass, INVOICE__PARTY);\n\t\tcreateEReference(invoiceEClass, INVOICE__PARTY_ID_FROM);\n\t\tcreateEReference(invoiceEClass, INVOICE__RECURRENCE_INFO);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__REFERENCE_NUMBER);\n\t\tcreateEReference(invoiceEClass, INVOICE__ROLE_TYPE);\n\t\tcreateEReference(invoiceEClass, INVOICE__STATUS);\n\n\t\tinvoiceAttributeEClass = createEClass(INVOICE_ATTRIBUTE);\n\t\tcreateEReference(invoiceAttributeEClass, INVOICE_ATTRIBUTE__INVOICE);\n\t\tcreateEAttribute(invoiceAttributeEClass, INVOICE_ATTRIBUTE__ATTR_NAME);\n\t\tcreateEAttribute(invoiceAttributeEClass, INVOICE_ATTRIBUTE__ATTR_DESCRIPTION);\n\t\tcreateEAttribute(invoiceAttributeEClass, INVOICE_ATTRIBUTE__ATTR_VALUE);\n\n\t\tinvoiceContactMechEClass = createEClass(INVOICE_CONTACT_MECH);\n\t\tcreateEReference(invoiceContactMechEClass, INVOICE_CONTACT_MECH__INVOICE);\n\t\tcreateEReference(invoiceContactMechEClass, INVOICE_CONTACT_MECH__CONTACT_MECH);\n\t\tcreateEReference(invoiceContactMechEClass, INVOICE_CONTACT_MECH__CONTACT_MECH_PURPOSE_TYPE);\n\n\t\tinvoiceContentEClass = createEClass(INVOICE_CONTENT);\n\t\tcreateEReference(invoiceContentEClass, INVOICE_CONTENT__INVOICE);\n\t\tcreateEReference(invoiceContentEClass, INVOICE_CONTENT__CONTENT);\n\t\tcreateEReference(invoiceContentEClass, INVOICE_CONTENT__INVOICE_CONTENT_TYPE);\n\t\tcreateEAttribute(invoiceContentEClass, INVOICE_CONTENT__FROM_DATE);\n\t\tcreateEAttribute(invoiceContentEClass, INVOICE_CONTENT__THRU_DATE);\n\n\t\tinvoiceContentTypeEClass = createEClass(INVOICE_CONTENT_TYPE);\n\t\tcreateEAttribute(invoiceContentTypeEClass, INVOICE_CONTENT_TYPE__INVOICE_CONTENT_TYPE_ID);\n\t\tcreateEAttribute(invoiceContentTypeEClass, INVOICE_CONTENT_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(invoiceContentTypeEClass, INVOICE_CONTENT_TYPE__HAS_TABLE);\n\t\tcreateEReference(invoiceContentTypeEClass, INVOICE_CONTENT_TYPE__PARENT_TYPE);\n\n\t\tinvoiceItemEClass = createEClass(INVOICE_ITEM);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__INVOICE);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__INVOICE_ITEM_SEQ_ID);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__AMOUNT);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__DESCRIPTION);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__INVENTORY_ITEM);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__INVOICE_ITEM_TYPE);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__OVERRIDE_GL_ACCOUNT);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__OVERRIDE_ORG_PARTY);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__PARENT_INVOICE_ID);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__PARENT_INVOICE_ITEM_SEQ_ID);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__PRODUCT);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__PRODUCT_FEATURE);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__QUANTITY);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__SALES_OPPORTUNITY);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__TAX_AUTH_GEO);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__TAX_AUTH_PARTY);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__TAX_AUTHORITY_RATE_SEQ);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__TAXABLE_FLAG);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__UOM);\n\n\t\tinvoiceItemAssocEClass = createEClass(INVOICE_ITEM_ASSOC);\n\t\tcreateEReference(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__INVOICE_ITEM_ASSOC_TYPE);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__FROM_DATE);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__INVOICE_ID_FROM);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__INVOICE_ID_TO);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__INVOICE_ITEM_SEQ_ID_FROM);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__INVOICE_ITEM_SEQ_ID_TO);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__AMOUNT);\n\t\tcreateEReference(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__PARTY_ID_FROM);\n\t\tcreateEReference(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__PARTY_ID_TO);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__QUANTITY);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__THRU_DATE);\n\n\t\tinvoiceItemAssocTypeEClass = createEClass(INVOICE_ITEM_ASSOC_TYPE);\n\t\tcreateEAttribute(invoiceItemAssocTypeEClass, INVOICE_ITEM_ASSOC_TYPE__INVOICE_ITEM_ASSOC_TYPE_ID);\n\t\tcreateEAttribute(invoiceItemAssocTypeEClass, INVOICE_ITEM_ASSOC_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(invoiceItemAssocTypeEClass, INVOICE_ITEM_ASSOC_TYPE__HAS_TABLE);\n\t\tcreateEReference(invoiceItemAssocTypeEClass, INVOICE_ITEM_ASSOC_TYPE__PARENT_TYPE);\n\n\t\tinvoiceItemAttributeEClass = createEClass(INVOICE_ITEM_ATTRIBUTE);\n\t\tcreateEAttribute(invoiceItemAttributeEClass, INVOICE_ITEM_ATTRIBUTE__ATTR_NAME);\n\t\tcreateEAttribute(invoiceItemAttributeEClass, INVOICE_ITEM_ATTRIBUTE__INVOICE_ID);\n\t\tcreateEAttribute(invoiceItemAttributeEClass, INVOICE_ITEM_ATTRIBUTE__INVOICE_ITEM_SEQ_ID);\n\t\tcreateEAttribute(invoiceItemAttributeEClass, INVOICE_ITEM_ATTRIBUTE__ATTR_DESCRIPTION);\n\t\tcreateEAttribute(invoiceItemAttributeEClass, INVOICE_ITEM_ATTRIBUTE__ATTR_VALUE);\n\n\t\tinvoiceItemTypeEClass = createEClass(INVOICE_ITEM_TYPE);\n\t\tcreateEAttribute(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__INVOICE_ITEM_TYPE_ID);\n\t\tcreateEReference(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__DEFAULT_GL_ACCOUNT);\n\t\tcreateEAttribute(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__HAS_TABLE);\n\t\tcreateEReference(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__INVOICE_ITEM_TYPE_ATTRS);\n\t\tcreateEReference(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__INVOICE_ITEM_TYPE_GL_ACCOUNTS);\n\t\tcreateEReference(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__PARENT_TYPE);\n\n\t\tinvoiceItemTypeAttrEClass = createEClass(INVOICE_ITEM_TYPE_ATTR);\n\t\tcreateEReference(invoiceItemTypeAttrEClass, INVOICE_ITEM_TYPE_ATTR__INVOICE_ITEM_TYPE);\n\t\tcreateEAttribute(invoiceItemTypeAttrEClass, INVOICE_ITEM_TYPE_ATTR__ATTR_NAME);\n\t\tcreateEAttribute(invoiceItemTypeAttrEClass, INVOICE_ITEM_TYPE_ATTR__DESCRIPTION);\n\n\t\tinvoiceItemTypeGlAccountEClass = createEClass(INVOICE_ITEM_TYPE_GL_ACCOUNT);\n\t\tcreateEReference(invoiceItemTypeGlAccountEClass, INVOICE_ITEM_TYPE_GL_ACCOUNT__INVOICE_ITEM_TYPE);\n\t\tcreateEReference(invoiceItemTypeGlAccountEClass, INVOICE_ITEM_TYPE_GL_ACCOUNT__ORGANIZATION_PARTY);\n\t\tcreateEReference(invoiceItemTypeGlAccountEClass, INVOICE_ITEM_TYPE_GL_ACCOUNT__GL_ACCOUNT);\n\n\t\tinvoiceItemTypeMapEClass = createEClass(INVOICE_ITEM_TYPE_MAP);\n\t\tcreateEReference(invoiceItemTypeMapEClass, INVOICE_ITEM_TYPE_MAP__INVOICE_TYPE);\n\t\tcreateEAttribute(invoiceItemTypeMapEClass, INVOICE_ITEM_TYPE_MAP__INVOICE_ITEM_MAP_KEY);\n\t\tcreateEReference(invoiceItemTypeMapEClass, INVOICE_ITEM_TYPE_MAP__INVOICE_ITEM_TYPE);\n\n\t\tinvoiceNoteEClass = createEClass(INVOICE_NOTE);\n\t\tcreateEReference(invoiceNoteEClass, INVOICE_NOTE__INVOICE);\n\n\t\tinvoiceRoleEClass = createEClass(INVOICE_ROLE);\n\t\tcreateEReference(invoiceRoleEClass, INVOICE_ROLE__INVOICE);\n\t\tcreateEReference(invoiceRoleEClass, INVOICE_ROLE__PARTY);\n\t\tcreateEReference(invoiceRoleEClass, INVOICE_ROLE__ROLE_TYPE);\n\t\tcreateEAttribute(invoiceRoleEClass, INVOICE_ROLE__DATETIME_PERFORMED);\n\t\tcreateEAttribute(invoiceRoleEClass, INVOICE_ROLE__PERCENTAGE);\n\n\t\tinvoiceStatusEClass = createEClass(INVOICE_STATUS);\n\t\tcreateEReference(invoiceStatusEClass, INVOICE_STATUS__STATUS);\n\t\tcreateEReference(invoiceStatusEClass, INVOICE_STATUS__INVOICE);\n\t\tcreateEAttribute(invoiceStatusEClass, INVOICE_STATUS__STATUS_DATE);\n\t\tcreateEReference(invoiceStatusEClass, INVOICE_STATUS__CHANGE_BY_USER_LOGIN);\n\n\t\tinvoiceTermEClass = createEClass(INVOICE_TERM);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__INVOICE_TERM_ID);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__DESCRIPTION);\n\t\tcreateEReference(invoiceTermEClass, INVOICE_TERM__INVOICE);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__INVOICE_ITEM_SEQ_ID);\n\t\tcreateEReference(invoiceTermEClass, INVOICE_TERM__INVOICE_TERM_ATTRIBUTES);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__TERM_DAYS);\n\t\tcreateEReference(invoiceTermEClass, INVOICE_TERM__TERM_TYPE);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__TERM_VALUE);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__TEXT_VALUE);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__UOM_ID);\n\n\t\tinvoiceTermAttributeEClass = createEClass(INVOICE_TERM_ATTRIBUTE);\n\t\tcreateEReference(invoiceTermAttributeEClass, INVOICE_TERM_ATTRIBUTE__INVOICE_TERM);\n\t\tcreateEAttribute(invoiceTermAttributeEClass, INVOICE_TERM_ATTRIBUTE__ATTR_NAME);\n\t\tcreateEAttribute(invoiceTermAttributeEClass, INVOICE_TERM_ATTRIBUTE__ATTR_DESCRIPTION);\n\t\tcreateEAttribute(invoiceTermAttributeEClass, INVOICE_TERM_ATTRIBUTE__ATTR_VALUE);\n\n\t\tinvoiceTypeEClass = createEClass(INVOICE_TYPE);\n\t\tcreateEAttribute(invoiceTypeEClass, INVOICE_TYPE__INVOICE_TYPE_ID);\n\t\tcreateEAttribute(invoiceTypeEClass, INVOICE_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(invoiceTypeEClass, INVOICE_TYPE__HAS_TABLE);\n\t\tcreateEReference(invoiceTypeEClass, INVOICE_TYPE__INVOICE_TYPE_ATTRS);\n\t\tcreateEReference(invoiceTypeEClass, INVOICE_TYPE__PARENT_TYPE);\n\n\t\tinvoiceTypeAttrEClass = createEClass(INVOICE_TYPE_ATTR);\n\t\tcreateEReference(invoiceTypeAttrEClass, INVOICE_TYPE_ATTR__INVOICE_TYPE);\n\t\tcreateEAttribute(invoiceTypeAttrEClass, INVOICE_TYPE_ATTR__ATTR_NAME);\n\t\tcreateEAttribute(invoiceTypeAttrEClass, INVOICE_TYPE_ATTR__DESCRIPTION);\n\t}", "public void createModelFromAlloy(){\n\t\t// Get signatures list\n\t\tSafeList<Sig> sigs = module.getAllSigs();\n\t\t// Check if the list is empty\n\t\tif(sigs.isEmpty()) assertMessage(\"Error in create Model FromAlloy: no sig found!\");\n\t\t// Generate java class source file for one top-level sig at a time\n\t\tfor(int i = 0; i<sigs.size(); i++) {\n\t\t\tSig aSig = sigs.get(i);\n\t\t\tif (!aSig.isTopLevel()) continue;\n\t\t\tif(!aSig.builtin){ // User-defined sig\n\t\t\t\tif(aSig.isSubsig != null){\n\t\t\t\t\tPrimSig pSig = (PrimSig) aSig;\n\t\t\t\t\trecursiveGenerate(null, pSig);\t\n\t\t\t\t} else assertMessage(\"TODO: Dealt with subset sig\");\n\t\t\t}\n\t\t\telse assertMessage(\"TODO: Dealt with built-in sig\");\n\t\t}\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tcontrolEClass = createEClass(CONTROL);\n\t\tcreateEReference(controlEClass, CONTROL__MIDI);\n\t\tcreateEAttribute(controlEClass, CONTROL__BACKGROUND);\n\t\tcreateEAttribute(controlEClass, CONTROL__CENTERED);\n\t\tcreateEAttribute(controlEClass, CONTROL__COLOR);\n\t\tcreateEAttribute(controlEClass, CONTROL__H);\n\t\tcreateEAttribute(controlEClass, CONTROL__INVERTED);\n\t\tcreateEAttribute(controlEClass, CONTROL__INVERTED_X);\n\t\tcreateEAttribute(controlEClass, CONTROL__INVERTED_Y);\n\t\tcreateEAttribute(controlEClass, CONTROL__LOCAL_OFF);\n\t\tcreateEAttribute(controlEClass, CONTROL__NAME);\n\t\tcreateEAttribute(controlEClass, CONTROL__NUMBER);\n\t\tcreateEAttribute(controlEClass, CONTROL__NUMBER_X);\n\t\tcreateEAttribute(controlEClass, CONTROL__NUMBER_Y);\n\t\tcreateEAttribute(controlEClass, CONTROL__OSC_CS);\n\t\tcreateEAttribute(controlEClass, CONTROL__OUTLINE);\n\t\tcreateEAttribute(controlEClass, CONTROL__RESPONSE);\n\t\tcreateEAttribute(controlEClass, CONTROL__SCALEF);\n\t\tcreateEAttribute(controlEClass, CONTROL__SCALET);\n\t\tcreateEAttribute(controlEClass, CONTROL__SECONDS);\n\t\tcreateEAttribute(controlEClass, CONTROL__SIZE);\n\t\tcreateEAttribute(controlEClass, CONTROL__TEXT);\n\t\tcreateEAttribute(controlEClass, CONTROL__TYPE);\n\t\tcreateEAttribute(controlEClass, CONTROL__W);\n\t\tcreateEAttribute(controlEClass, CONTROL__X);\n\t\tcreateEAttribute(controlEClass, CONTROL__Y);\n\n\t\tlayoutEClass = createEClass(LAYOUT);\n\t\tcreateEReference(layoutEClass, LAYOUT__TABPAGE);\n\t\tcreateEAttribute(layoutEClass, LAYOUT__MODE);\n\t\tcreateEAttribute(layoutEClass, LAYOUT__ORIENTATION);\n\t\tcreateEAttribute(layoutEClass, LAYOUT__VERSION);\n\n\t\tmidiEClass = createEClass(MIDI);\n\t\tcreateEAttribute(midiEClass, MIDI__CHANNEL);\n\t\tcreateEAttribute(midiEClass, MIDI__DATA1);\n\t\tcreateEAttribute(midiEClass, MIDI__DATA2F);\n\t\tcreateEAttribute(midiEClass, MIDI__DATA2T);\n\t\tcreateEAttribute(midiEClass, MIDI__TYPE);\n\t\tcreateEAttribute(midiEClass, MIDI__VAR);\n\n\t\ttabpageEClass = createEClass(TABPAGE);\n\t\tcreateEReference(tabpageEClass, TABPAGE__CONTROL);\n\t\tcreateEAttribute(tabpageEClass, TABPAGE__NAME);\n\n\t\ttopEClass = createEClass(TOP);\n\t\tcreateEReference(topEClass, TOP__LAYOUT);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tblockEClass = createEClass(BLOCK);\n\t\tcreateEReference(blockEClass, BLOCK__STMTS);\n\n\t\tstmtEClass = createEClass(STMT);\n\n\t\tarithEClass = createEClass(ARITH);\n\n\t\talVarRefEClass = createEClass(AL_VAR_REF);\n\t\tcreateEAttribute(alVarRefEClass, AL_VAR_REF__NAME);\n\n\t\tarithLitEClass = createEClass(ARITH_LIT);\n\t\tcreateEAttribute(arithLitEClass, ARITH_LIT__VAL);\n\n\t\tarithOpEClass = createEClass(ARITH_OP);\n\t\tcreateEReference(arithOpEClass, ARITH_OP__LHS);\n\t\tcreateEReference(arithOpEClass, ARITH_OP__RHS);\n\n\t\tarithPlusEClass = createEClass(ARITH_PLUS);\n\n\t\tarithMinusEClass = createEClass(ARITH_MINUS);\n\n\t\tprintEClass = createEClass(PRINT);\n\t\tcreateEAttribute(printEClass, PRINT__NAME);\n\n\t\tassignEClass = createEClass(ASSIGN);\n\t\tcreateEAttribute(assignEClass, ASSIGN__NAME);\n\t\tcreateEReference(assignEClass, ASSIGN__VAL);\n\n\t\tifStmtEClass = createEClass(IF_STMT);\n\t\tcreateEReference(ifStmtEClass, IF_STMT__IF_BRANCH);\n\t\tcreateEReference(ifStmtEClass, IF_STMT__ELSE_BRANCH);\n\t\tcreateEReference(ifStmtEClass, IF_STMT__TEST);\n\n\t\trandRangeEClass = createEClass(RAND_RANGE);\n\t\tcreateEAttribute(randRangeEClass, RAND_RANGE__MIN);\n\t\tcreateEAttribute(randRangeEClass, RAND_RANGE__MAX);\n\n\t\tequalityTestEClass = createEClass(EQUALITY_TEST);\n\t\tcreateEReference(equalityTestEClass, EQUALITY_TEST__LHS);\n\t\tcreateEReference(equalityTestEClass, EQUALITY_TEST__RHS);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\topenStackRequestEClass = createEClass(OPEN_STACK_REQUEST);\n\t\tcreateEAttribute(openStackRequestEClass, OPEN_STACK_REQUEST__PROJECT_NAME);\n\n\t\topenstackRequestDeleteEClass = createEClass(OPENSTACK_REQUEST_DELETE);\n\t\tcreateEAttribute(openstackRequestDeleteEClass, OPENSTACK_REQUEST_DELETE__OBJECT_TYPE);\n\t\tcreateEAttribute(openstackRequestDeleteEClass, OPENSTACK_REQUEST_DELETE__OBJECT_NAME);\n\n\t\topenstackRequestPollEClass = createEClass(OPENSTACK_REQUEST_POLL);\n\n\t\tvirtualMachineTypeEClass = createEClass(VIRTUAL_MACHINE_TYPE);\n\t\tcreateEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__NUMBER_OF_CORES);\n\t\tcreateEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__MEMORY_SIZE_MB);\n\t\tcreateEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__ROOT_DISK_SIZE_GB);\n\t\tcreateEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__DISK_SIZE_GB);\n\t\tcreateEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__VOLUME_SIZE_GB);\n\t\tcreateEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__IMAGE_NAME);\n\t\tcreateEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__FLAVOR_NAME);\n\t\tcreateEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__NEED_PUBLIC_IP);\n\t\tcreateEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__DEPLOYMENT_STATUS);\n\t\tcreateEReference(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__INCOMING_SECURITY_RULES);\n\t\tcreateEReference(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__OUTBOUND_SECURITY_RULES);\n\n\t\tsecurityRuleEClass = createEClass(SECURITY_RULE);\n\t\tcreateEAttribute(securityRuleEClass, SECURITY_RULE__PORT_RANGE_START);\n\t\tcreateEAttribute(securityRuleEClass, SECURITY_RULE__PORT_RANGE_END);\n\t\tcreateEAttribute(securityRuleEClass, SECURITY_RULE__PREFIX);\n\t\tcreateEAttribute(securityRuleEClass, SECURITY_RULE__IP_PROTOCOL);\n\n\t\t// Create enums\n\t\tsecurityRuleProtocolEEnum = createEEnum(SECURITY_RULE_PROTOCOL);\n\t}", "public void createPackageContents() {\r\n\t\tif (isCreated)\r\n\t\t\treturn;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tdataChannelEClass = createEClass(DATA_CHANNEL);\r\n\t\tcreateEAttribute(dataChannelEClass, DATA_CHANNEL__CAPACITY);\r\n\t\tcreateEReference(dataChannelEClass, DATA_CHANNEL__SOURCE_EVENT_GROUP);\r\n\t\tcreateEReference(dataChannelEClass, DATA_CHANNEL__SINK_EVENT_GROUP);\r\n\t\tcreateEReference(dataChannelEClass, DATA_CHANNEL__DATA_CHANNEL_SOURCE_CONNECTOR);\r\n\t\tcreateEReference(dataChannelEClass, DATA_CHANNEL__DATA_CHANNEL_SINK_CONNECTOR);\r\n\t\tcreateEReference(dataChannelEClass, DATA_CHANNEL__PARTITIONING);\r\n\t\tcreateEReference(dataChannelEClass, DATA_CHANNEL__TIME_GROUPING);\r\n\t\tcreateEReference(dataChannelEClass, DATA_CHANNEL__JOINS);\r\n\t\tcreateEAttribute(dataChannelEClass, DATA_CHANNEL__OUTGOING_DISTRIBUTION);\r\n\t\tcreateEAttribute(dataChannelEClass, DATA_CHANNEL__SCHEDULING);\r\n\t\tcreateEAttribute(dataChannelEClass, DATA_CHANNEL__PUT_POLICY);\r\n\t}", "public void createPackageContents()\n\t{\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create data types\n\t\tfeatureNotFoundExceptionEDataType = createEDataType(FEATURE_NOT_FOUND_EXCEPTION);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tbluetoothPortEClass = createEClass(BLUETOOTH_PORT);\n\n\t\tl2CAPInJobEClass = createEClass(L2CAP_IN_JOB);\n\n\t\tl2CAPoutJobEClass = createEClass(L2CA_POUT_JOB);\n\t}", "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 createFolderStatementEClass.getESuperTypes().add(this.getCreateStatement());\n createFileStatementEClass.getESuperTypes().add(this.getCreateStatement());\n\n // Initialize classes and features; add operations and parameters\n initEClass(persistEClass, Persist.class, \"Persist\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getPersist_Model(), ecorePackage.getEString(), \"model\", null, 0, 1, Persist.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getPersist_Statements(), this.getRuleStatement(), null, \"statements\", null, 0, -1, Persist.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(ruleStatementEClass, RuleStatement.class, \"RuleStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getRuleStatement_Id(), ecorePackage.getEString(), \"id\", null, 0, 1, RuleStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getRuleStatement_Rules(), this.getForEachStatement(), null, \"rules\", null, 0, -1, RuleStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(forEachStatementEClass, ForEachStatement.class, \"ForEachStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getForEachStatement_Class(), this.getEClassName(), null, \"class\", null, 0, 1, ForEachStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getForEachStatement_Contents(), this.getCreateStatement(), null, \"contents\", null, 0, -1, ForEachStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getForEachStatement_Calls(), this.getCallStatement(), null, \"calls\", null, 0, -1, ForEachStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(createStatementEClass, CreateStatement.class, \"CreateStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getCreateStatement_Name(), this.getFileName(), null, \"name\", null, 0, 1, CreateStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(createFolderStatementEClass, CreateFolderStatement.class, \"CreateFolderStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getCreateFolderStatement_Contents(), this.getCreateStatement(), null, \"contents\", null, 0, -1, CreateFolderStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getCreateFolderStatement_Calls(), this.getCallStatement(), null, \"calls\", null, 0, -1, CreateFolderStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(createFileStatementEClass, CreateFileStatement.class, \"CreateFileStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getCreateFileStatement_IncludedReferencing(), this.getWithStatement(), null, \"includedReferencing\", null, 0, 1, CreateFileStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getCreateFileStatement_IncludedAttributes(), this.getIncludeStatement(), null, \"includedAttributes\", null, 0, 1, CreateFileStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(fileNameEClass, FileName.class, \"FileName\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getFileName_Prefix(), ecorePackage.getEString(), \"prefix\", null, 0, 1, FileName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getFileName_Attr(), this.getEAttributeName(), null, \"attr\", null, 0, 1, FileName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getFileName_Right(), this.getFileName(), null, \"right\", null, 0, 1, FileName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(includeStatementEClass, IncludeStatement.class, \"IncludeStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getIncludeStatement_Included(), this.getEReferenceName(), null, \"included\", null, 0, -1, IncludeStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(withStatementEClass, WithStatement.class, \"WithStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getWithStatement_Included(), this.getEClassName(), null, \"included\", null, 0, -1, WithStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(callStatementEClass, CallStatement.class, \"CallStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getCallStatement_Rules(), ecorePackage.getEString(), \"rules\", null, 0, -1, CallStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(eClassNameEClass, EClassName.class, \"EClassName\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getEClassName_Base(), ecorePackage.getEString(), \"base\", null, 0, 1, EClassName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getEClassName_Fields(), ecorePackage.getEString(), \"fields\", null, 0, -1, EClassName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(eAttributeNameEClass, EAttributeName.class, \"EAttributeName\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getEAttributeName_Base(), ecorePackage.getEString(), \"base\", null, 0, 1, EAttributeName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getEAttributeName_Fields(), ecorePackage.getEString(), \"fields\", null, 0, -1, EAttributeName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(eReferenceNameEClass, EReferenceName.class, \"EReferenceName\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getEReferenceName_Base(), ecorePackage.getEString(), \"base\", null, 0, 1, EReferenceName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getEReferenceName_Fields(), ecorePackage.getEString(), \"fields\", null, 0, -1, EReferenceName.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 }", "public void registerMetamodels(ResourceSet rs, IbexExecutable executable) throws IOException {\r\n\t\t\r\n\t\t// Set correct workspace root\r\n\t\tsetWorkspaceRootDirectory(rs);\r\n\t\t\r\n\t\t// Load and register source and target metamodels\r\n\t\tEPackage familiesPack = null;\r\n\t\tEPackage personsPack = null;\r\n\t\tEPackage benchmarxfamiliestopersonsPack = null;\r\n\t\t\r\n\t\tif(executable instanceof FWD_OPT) {\r\n\t\t\tResource res = executable.getResourceHandler().loadResource(\"platform:/resource/Persons/model/Persons.ecore\");\r\n\t\t\tpersonsPack = (EPackage) res.getContents().get(0);\r\n\t\t\trs.getResources().remove(res);\r\n\t\t\t\r\n\t\t\tres = executable.getResourceHandler().loadResource(\"platform:/resource/BenchmarxFamiliesToPersons/model/BenchmarxFamiliesToPersons.ecore\");\r\n\t\t\tbenchmarxfamiliestopersonsPack = (EPackage) res.getContents().get(0);\r\n\t\t\trs.getResources().remove(res);\r\n\t\t}\r\n\t\t\t\t\r\n\t\tif(executable instanceof BWD_OPT) {\r\n\t\t\tResource res = executable.getResourceHandler().loadResource(\"platform:/resource/Families/model/Families.ecore\");\r\n\t\t\tfamiliesPack = (EPackage) res.getContents().get(0);\r\n\t\t\trs.getResources().remove(res);\r\n\t\t\t\r\n\t\t\tres = executable.getResourceHandler().loadResource(\"platform:/resource/BenchmarxFamiliesToPersons/model/BenchmarxFamiliesToPersons.ecore\");\r\n\t\t\tbenchmarxfamiliestopersonsPack = (EPackage) res.getContents().get(0);\r\n\t\t\trs.getResources().remove(res);\r\n\t\t}\r\n\r\n\t\tif(familiesPack == null)\r\n\t\t\tfamiliesPack = FamiliesPackageImpl.init();\r\n\t\t\t\t\r\n\t\tif(personsPack == null)\r\n\t\t\tpersonsPack = PersonsPackageImpl.init();\r\n\t\t\r\n\t\tif(benchmarxfamiliestopersonsPack == null) {\r\n\t\t\tbenchmarxfamiliestopersonsPack = BenchmarxFamiliesToPersonsPackageImpl.init();\r\n\t\t\trs.getPackageRegistry().put(\"platform:/resource/BenchmarxFamiliesToPersons/model/BenchmarxFamiliesToPersons.ecore\", BenchmarxFamiliesToPersonsPackage.eINSTANCE);\r\n\t\t\trs.getPackageRegistry().put(\"platform:/plugin/BenchmarxFamiliesToPersons/model/BenchmarxFamiliesToPersons.ecore\", BenchmarxFamiliesToPersonsPackage.eINSTANCE);\r\n\t\t}\r\n\t\t\t\r\n\t\trs.getPackageRegistry().put(\"platform:/resource/Families/model/Families.ecore\", familiesPack);\r\n\t rs.getPackageRegistry().put(\"platform:/plugin/Families/model/Families.ecore\", familiesPack);\t\r\n\t\t\t\r\n\t\trs.getPackageRegistry().put(\"platform:/resource/Persons/model/Persons.ecore\", personsPack);\r\n\t\trs.getPackageRegistry().put(\"platform:/plugin/Persons/model/Persons.ecore\", personsPack);\r\n\t}", "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\tPivotModelPackage thePivotModelPackage = (PivotModelPackage) EPackage.Registry.INSTANCE\n\t\t\t\t.getEPackage(PivotModelPackage.eNS_URI);\n\t\tExpressionsPackageImpl theExpressionsPackage = (ExpressionsPackageImpl) EPackage.Registry.INSTANCE\n\t\t\t\t.getEPackage(ExpressionsPackageImpl.eNS_URI);\n\t\tDatatypesPackage theDatatypesPackage = (DatatypesPackage) EPackage.Registry.INSTANCE\n\t\t\t\t.getEPackage(DatatypesPackage.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\tbagTypeEClass.getESuperTypes().add(this.getCollectionType());\n\t\ttupleTypeEClass.getESuperTypes().add(thePivotModelPackage.getType());\n\t\tcollectionTypeEClass.getESuperTypes().add(\n\t\t\t\tthePivotModelPackage.getType());\n\t\tinvalidTypeEClass.getESuperTypes().add(thePivotModelPackage.getType());\n\t\torderedSetTypeEClass.getESuperTypes().add(this.getCollectionType());\n\t\tsequenceTypeEClass.getESuperTypes().add(this.getCollectionType());\n\t\tsetTypeEClass.getESuperTypes().add(this.getCollectionType());\n\t\tvoidTypeEClass.getESuperTypes().add(thePivotModelPackage.getType());\n\t\ttypeTypeEClass.getESuperTypes().add(thePivotModelPackage.getType());\n\t\tanyTypeEClass.getESuperTypes().add(thePivotModelPackage.getType());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(\n\t\t\t\tbagTypeEClass,\n\t\t\t\tBagType.class,\n\t\t\t\t\"BagType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\ttupleTypeEClass,\n\t\t\t\tTupleType.class,\n\t\t\t\t\"TupleType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetTupleType_OclLibrary(),\n\t\t\t\tthis.getOclLibrary(),\n\t\t\t\tnull,\n\t\t\t\t\"oclLibrary\", null, 1, 1, TupleType.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(\n\t\t\t\tcollectionTypeEClass,\n\t\t\t\tCollectionType.class,\n\t\t\t\t\"CollectionType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetCollectionType_ElementType(),\n\t\t\t\tthePivotModelPackage.getType(),\n\t\t\t\tnull,\n\t\t\t\t\"elementType\", null, 0, 1, CollectionType.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\tgetCollectionType_OclLibrary(),\n\t\t\t\tthis.getOclLibrary(),\n\t\t\t\tnull,\n\t\t\t\t\"oclLibrary\", null, 1, 1, CollectionType.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\tgetCollectionType_Kind(),\n\t\t\t\ttheExpressionsPackage.getCollectionKind(),\n\t\t\t\t\"kind\", null, 1, 1, CollectionType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\tinvalidTypeEClass,\n\t\t\t\tInvalidType.class,\n\t\t\t\t\"InvalidType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetInvalidType_OclLibrary(),\n\t\t\t\tthis.getOclLibrary(),\n\t\t\t\tthis.getOclLibrary_OclInvalid(),\n\t\t\t\t\"oclLibrary\", null, 1, 1, InvalidType.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(\n\t\t\t\torderedSetTypeEClass,\n\t\t\t\tOrderedSetType.class,\n\t\t\t\t\"OrderedSetType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\tsequenceTypeEClass,\n\t\t\t\tSequenceType.class,\n\t\t\t\t\"SequenceType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\tsetTypeEClass,\n\t\t\t\tSetType.class,\n\t\t\t\t\"SetType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\tvoidTypeEClass,\n\t\t\t\tVoidType.class,\n\t\t\t\t\"VoidType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetVoidType_OclLibrary(),\n\t\t\t\tthis.getOclLibrary(),\n\t\t\t\tthis.getOclLibrary_OclVoid(),\n\t\t\t\t\"oclLibrary\", null, 1, 1, VoidType.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(\n\t\t\t\ttypeTypeEClass,\n\t\t\t\tTypeType.class,\n\t\t\t\t\"TypeType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetTypeType_RepresentedType(),\n\t\t\t\tthePivotModelPackage.getType(),\n\t\t\t\tnull,\n\t\t\t\t\"representedType\", null, 0, 1, TypeType.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(\n\t\t\t\toclLibraryEClass,\n\t\t\t\tOclLibrary.class,\n\t\t\t\t\"OclLibrary\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetOclLibrary_OclBoolean(),\n\t\t\t\tthePivotModelPackage.getPrimitiveType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclBoolean\", null, 1, 1, OclLibrary.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\tgetOclLibrary_OclString(),\n\t\t\t\tthePivotModelPackage.getPrimitiveType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclString\", null, 1, 1, OclLibrary.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\tgetOclLibrary_OclInteger(),\n\t\t\t\tthePivotModelPackage.getPrimitiveType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclInteger\", null, 1, 1, OclLibrary.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\tgetOclLibrary_OclReal(),\n\t\t\t\tthePivotModelPackage.getPrimitiveType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclReal\", null, 1, 1, OclLibrary.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\tgetOclLibrary_OclAny(),\n\t\t\t\tthis.getAnyType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclAny\", null, 1, 1, OclLibrary.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\tgetOclLibrary_OclVoid(),\n\t\t\t\tthis.getVoidType(),\n\t\t\t\tthis.getVoidType_OclLibrary(),\n\t\t\t\t\"oclVoid\", null, 1, 1, OclLibrary.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\tgetOclLibrary_OclInvalid(),\n\t\t\t\tthis.getInvalidType(),\n\t\t\t\tthis.getInvalidType_OclLibrary(),\n\t\t\t\t\"oclInvalid\", null, 1, 1, OclLibrary.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\tgetOclLibrary_OclType(),\n\t\t\t\tthis.getTypeType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclType\", null, 1, 1, OclLibrary.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\tgetOclLibrary_OclCollection(),\n\t\t\t\tthis.getCollectionType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclCollection\", null, 1, 1, OclLibrary.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\tgetOclLibrary_OclSequence(),\n\t\t\t\tthis.getSequenceType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclSequence\", null, 1, 1, OclLibrary.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\tgetOclLibrary_OclBag(),\n\t\t\t\tthis.getBagType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclBag\", null, 1, 1, OclLibrary.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\tgetOclLibrary_OclSet(),\n\t\t\t\tthis.getSetType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclSet\", null, 1, 1, OclLibrary.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\tgetOclLibrary_OclOrderedSet(),\n\t\t\t\tthis.getOrderedSetType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclOrderedSet\", null, 1, 1, OclLibrary.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\tgetOclLibrary_OclTuple(),\n\t\t\t\tthis.getTupleType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclTuple\", null, 1, -1, OclLibrary.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(oclLibraryEClass, this.getTupleType(),\n\t\t\t\t\"makeTupleType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\tEGenericType g1 = createEGenericType(theDatatypesPackage.getSequence());\n\t\tEGenericType g2 = createEGenericType(thePivotModelPackage.getProperty());\n\t\tg1.getETypeArguments().add(g2);\n\t\taddEParameter(op, g1, \"atts\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\n\t\top = addEOperation(oclLibraryEClass, this.getCollectionType(),\n\t\t\t\t\"getCollectionType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEParameter(op, thePivotModelPackage.getType(),\n\t\t\t\t\"elementType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\n\t\top = addEOperation(oclLibraryEClass, this.getSequenceType(),\n\t\t\t\t\"getSequenceType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEParameter(op, thePivotModelPackage.getType(),\n\t\t\t\t\"elementType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\n\t\top = addEOperation(oclLibraryEClass, this.getBagType(),\n\t\t\t\t\"getBagType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEParameter(op, thePivotModelPackage.getType(),\n\t\t\t\t\"elementType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\n\t\top = addEOperation(oclLibraryEClass, this.getSetType(),\n\t\t\t\t\"getSetType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEParameter(op, thePivotModelPackage.getType(),\n\t\t\t\t\"elementType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\n\t\top = addEOperation(oclLibraryEClass, this.getOrderedSetType(),\n\t\t\t\t\"getOrderedSetType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEParameter(op, thePivotModelPackage.getType(),\n\t\t\t\t\"elementType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\n\t\top = addEOperation(oclLibraryEClass, this.getTypeType(),\n\t\t\t\t\"getTypeType\", 1, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEParameter(op, thePivotModelPackage.getType(),\n\t\t\t\t\"representedType\", 1, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\tanyTypeEClass,\n\t\t\t\tAnyType.class,\n\t\t\t\t\"AnyType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "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\tCommonPackage theCommonPackage = (CommonPackage)EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI);\n\t\tModelPackage theModelPackage = (ModelPackage)EPackage.Registry.INSTANCE.getEPackage(ModelPackage.eNS_URI);\n\t\tColumnPackage theColumnPackage = (ColumnPackage)EPackage.Registry.INSTANCE.getEPackage(ColumnPackage.eNS_URI);\n\t\tExpressionPackage theExpressionPackage = (ExpressionPackage)EPackage.Registry.INSTANCE.getEPackage(ExpressionPackage.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\ttableEClass.getESuperTypes().add(theCommonPackage.getNameProvider());\n\t\tprimaryKeyTableConstraintEClass.getESuperTypes().add(this.getTableConstraint());\n\t\tuniqueTableConstraintEClass.getESuperTypes().add(this.getTableConstraint());\n\t\tcheckTableConstraintEClass.getESuperTypes().add(this.getTableConstraint());\n\t\tforeignKeyTableConstraintEClass.getESuperTypes().add(this.getTableConstraint());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(tableEClass, Table.class, \"Table\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTable_Database(), theModelPackage.getDatabase(), theModelPackage.getDatabase_Tables(), \"database\", null, 1, 1, Table.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTable_Columns(), theColumnPackage.getColumn(), theColumnPackage.getColumn_Table(), \"columns\", 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\tinitEReference(getTable_Constraints(), this.getTableConstraint(), this.getTableConstraint_Table(), \"constraints\", 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\n\t\tinitEClass(tableConstraintEClass, TableConstraint.class, \"TableConstraint\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getTableConstraint_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, TableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTableConstraint_Table(), this.getTable(), this.getTable_Constraints(), \"table\", null, 1, 1, TableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(primaryKeyTableConstraintEClass, PrimaryKeyTableConstraint.class, \"PrimaryKeyTableConstraint\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPrimaryKeyTableConstraint_Columns(), theColumnPackage.getIndexedColumn(), null, \"columns\", null, 1, -1, PrimaryKeyTableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(uniqueTableConstraintEClass, UniqueTableConstraint.class, \"UniqueTableConstraint\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getUniqueTableConstraint_Columns(), theColumnPackage.getIndexedColumn(), null, \"columns\", null, 1, -1, UniqueTableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(checkTableConstraintEClass, CheckTableConstraint.class, \"CheckTableConstraint\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getCheckTableConstraint_Expression(), theExpressionPackage.getExpression(), null, \"expression\", null, 1, 1, CheckTableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(foreignKeyTableConstraintEClass, ForeignKeyTableConstraint.class, \"ForeignKeyTableConstraint\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getForeignKeyTableConstraint_Columns(), theColumnPackage.getColumn(), null, \"columns\", null, 1, -1, ForeignKeyTableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getForeignKeyTableConstraint_ForeignTable(), this.getTable(), null, \"foreignTable\", null, 1, 1, ForeignKeyTableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getForeignKeyTableConstraint_ForeignColumns(), theColumnPackage.getColumn(), null, \"foreignColumns\", null, 1, -1, ForeignKeyTableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t}", "IoT_metamodelPackage getIoT_metamodelPackage();", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tdeferedFlatReferenceTableEditorSampleEClass = createEClass(DEFERED_FLAT_REFERENCE_TABLE_EDITOR_SAMPLE);\n\t\tcreateEReference(deferedFlatReferenceTableEditorSampleEClass, DEFERED_FLAT_REFERENCE_TABLE_EDITOR_SAMPLE__REFERENCES);\n\n\t\tdeferedReferenceEClass = createEClass(DEFERED_REFERENCE);\n\t\tcreateEReference(deferedReferenceEClass, DEFERED_REFERENCE__FLATREFERENCE_EDITOR);\n\n\t\tdeferedReferenceTableEditorSampleEClass = createEClass(DEFERED_REFERENCE_TABLE_EDITOR_SAMPLE);\n\t\tcreateEReference(deferedReferenceTableEditorSampleEClass, DEFERED_REFERENCE_TABLE_EDITOR_SAMPLE__REFERENCES);\n\n\t\townerEClass = createEClass(OWNER);\n\t\tcreateEReference(ownerEClass, OWNER__MULTIPLE_REFERENCERS);\n\t\tcreateEReference(ownerEClass, OWNER__SINGLE_REFERENCERS);\n\n\t\tmultipleReferencerEClass = createEClass(MULTIPLE_REFERENCER);\n\t\tcreateEReference(multipleReferencerEClass, MULTIPLE_REFERENCER__MULTIPLE_SAMPLE_FOR_TABLE_COMPOSITION);\n\t\tcreateEReference(multipleReferencerEClass, MULTIPLE_REFERENCER__MULTIPLE_SAMPLE_FOR_ADVANCED_TABLE_COMPOSITION);\n\t\tcreateEReference(multipleReferencerEClass, MULTIPLE_REFERENCER__MULTIPLE_SAMPLE_FOR_REFERENCES_TABLE);\n\t\tcreateEReference(multipleReferencerEClass, MULTIPLE_REFERENCER__MULTIPLE_SAMPLE_ADVANCED_REFERENCES_TABLE);\n\t\tcreateEReference(multipleReferencerEClass, MULTIPLE_REFERENCER__MULTIPLE_SAMPLE_FOR_FLAT_REFERENCES_TABLE);\n\n\t\tsubtypeEClass = createEClass(SUBTYPE);\n\t\tcreateEAttribute(subtypeEClass, SUBTYPE__SPECIALISED_ELEMENT);\n\n\t\tsingleReferencerEClass = createEClass(SINGLE_REFERENCER);\n\t\tcreateEReference(singleReferencerEClass, SINGLE_REFERENCER__SINGLE_SAMPLE_FOR_TABLE_COMPOSITION);\n\t\tcreateEReference(singleReferencerEClass, SINGLE_REFERENCER__SINGLE_SAMPLE_FOR_ADVANCED_TABLE_COMPOSITION);\n\t\tcreateEReference(singleReferencerEClass, SINGLE_REFERENCER__SINGLE_SAMPLE_FOR_REFERENCES_TABLE);\n\t\tcreateEReference(singleReferencerEClass, SINGLE_REFERENCER__SINGLE_SAMPLE_ADVANCED_REFERENCES_TABLE);\n\t\tcreateEReference(singleReferencerEClass, SINGLE_REFERENCER__SINGLE_SAMPLE_FOR_FLAT_REFERENCES_TABLE);\n\t\tcreateEReference(singleReferencerEClass, SINGLE_REFERENCER__SINGLE_CONTAINMENT_FOR_EOBJECT_FLAT_COMBO_VIEWER);\n\t\tcreateEReference(singleReferencerEClass, SINGLE_REFERENCER__SINGLE_REFERENCE_FOR_EOBJECT_FLAT_COMBO_VIEWER);\n\t\tcreateEReference(singleReferencerEClass, SINGLE_REFERENCER__SINGLE_CONTAINMENT_FOR_ADVANCED_EOBJECT_FLAT_COMBO_VIEWER);\n\t\tcreateEReference(singleReferencerEClass, SINGLE_REFERENCER__SINGLE_REFERENCE_FOR_ADVANCED_EOBJECT_FLAT_COMBO_VIEWER);\n\t\tcreateEAttribute(singleReferencerEClass, SINGLE_REFERENCER__BOOLEAN_ATTRIBUTE);\n\t\tcreateEAttribute(singleReferencerEClass, SINGLE_REFERENCER__EENUM_ATTRIBUTE);\n\t\tcreateEAttribute(singleReferencerEClass, SINGLE_REFERENCER__STRING_ATTRIBUTE);\n\t\tcreateEAttribute(singleReferencerEClass, SINGLE_REFERENCER__LIST_ATTRIBUTE);\n\n\t\tanotherSubTypeEClass = createEClass(ANOTHER_SUB_TYPE);\n\t\tcreateEAttribute(anotherSubTypeEClass, ANOTHER_SUB_TYPE__ANOTHER_SPECIALISATION);\n\n\t\telementEClass = createEClass(ELEMENT);\n\t\tcreateEAttribute(elementEClass, ELEMENT__VISIBLE);\n\n\t\tattributeNavigationSampleEClass = createEClass(ATTRIBUTE_NAVIGATION_SAMPLE);\n\t\tcreateEReference(attributeNavigationSampleEClass, ATTRIBUTE_NAVIGATION_SAMPLE__SINGLE_VALUED_ATTRIBUTE_DELEGATE);\n\t\tcreateEReference(attributeNavigationSampleEClass, ATTRIBUTE_NAVIGATION_SAMPLE__MULTI_VALUED_ATTRIBUTE_DELEGATE);\n\n\t\tattributeDelegateEClass = createEClass(ATTRIBUTE_DELEGATE);\n\t\tcreateEAttribute(attributeDelegateEClass, ATTRIBUTE_DELEGATE__DELEGATE1);\n\t\tcreateEAttribute(attributeDelegateEClass, ATTRIBUTE_DELEGATE__DELEGATE2);\n\t}", "public static ModelPackage init() {\n\t\tif (isInited) return (ModelPackage)EPackage.Registry.INSTANCE.getEPackage(ModelPackage.eNS_URI);\n\n\t\t// Obtain or create and register package\n\t\tModelPackageImpl theModelPackage = (ModelPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof ModelPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new ModelPackageImpl());\n\n\t\tisInited = true;\n\n\t\t// Create package meta-data objects\n\t\ttheModelPackage.createPackageContents();\n\n\t\t// Initialize created meta-data\n\t\ttheModelPackage.initializePackageContents();\n\n\t\t// Mark meta-data to indicate it can't be changed\n\t\ttheModelPackage.freeze();\n\n\t\treturn theModelPackage;\n\t}", "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\teActorEClass.getESuperTypes().add(this.getEDomainSpecificEntity());\n\t\teItemEClass.getESuperTypes().add(this.getEDomainSpecificEntity());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(eDomainSchemaEClass, EDomainSchema.class, \"EDomainSchema\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getEDomainSchema_Cs(), this.getEControlSchema(), null, \"cs\", null, 0, 1, EDomainSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEDomainSchema_Ds(), this.getEDataSchema(), null, \"ds\", null, 0, 1, EDomainSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eControlSchemaEClass, EControlSchema.class, \"EControlSchema\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getEControlSchema_Actor(), this.getEActor(), null, \"actor\", null, 1, -1, EControlSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eDataSchemaEClass, EDataSchema.class, \"EDataSchema\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getEDataSchema_Cs(), this.getEControlSchema(), null, \"cs\", null, 1, 1, EDataSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEDataSchema_Item(), this.getEItem(), null, \"item\", null, 1, -1, EDataSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eDomainSpecificEntityEClass, EDomainSpecificEntity.class, \"EDomainSpecificEntity\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getEDomainSpecificEntity_CommandPriority(), ecorePackage.getEInt(), \"commandPriority\", null, 0, 1, EDomainSpecificEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEDomainSpecificEntity_Cmd(), this.getEDomainSpecificCommand(), null, \"cmd\", null, 0, -1, EDomainSpecificEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eDomainSpecificCommandEClass, EDomainSpecificCommand.class, \"EDomainSpecificCommand\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getEDomainSpecificCommand_CmdId(), ecorePackage.getEInt(), \"cmdId\", null, 0, 1, EDomainSpecificCommand.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eActorEClass, EActor.class, \"EActor\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getEActor_KindInteraction(), this.getECoordinationBehavior(), \"kindInteraction\", null, 0, 1, EActor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEActor_TypesControlled(), this.getEDomainSpecificType(), null, \"typesControlled\", null, 0, -1, EActor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eItemEClass, EItem.class, \"EItem\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getEItem_ArisingBehavior(), this.getEArising(), \"arisingBehavior\", null, 0, 1, EItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEItem_Type(), this.getEDomainSpecificType(), null, \"type\", null, 1, 1, EItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eDomainSpecificTypeEClass, EDomainSpecificType.class, \"EDomainSpecificType\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getEDomainSpecificType_InteractionBehavior(), this.getEInteractionBehavior(), \"interactionBehavior\", null, 0, 1, EDomainSpecificType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getEDomainSpecificType_Cardinality(), this.getECardinality(), \"cardinality\", null, 0, 1, EDomainSpecificType.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(eArisingEEnum, EArising.class, \"EArising\");\n\t\taddEEnumLiteral(eArisingEEnum, EArising.STATIC);\n\t\taddEEnumLiteral(eArisingEEnum, EArising.DYNAMIC);\n\n\t\tinitEEnum(eCardinalityEEnum, ECardinality.class, \"ECardinality\");\n\t\taddEEnumLiteral(eCardinalityEEnum, ECardinality.ONE);\n\t\taddEEnumLiteral(eCardinalityEEnum, ECardinality.MANY);\n\n\t\tinitEEnum(eInteractionBehaviorEEnum, EInteractionBehavior.class, \"EInteractionBehavior\");\n\t\taddEEnumLiteral(eInteractionBehaviorEEnum, EInteractionBehavior.SYNC);\n\t\taddEEnumLiteral(eInteractionBehaviorEEnum, EInteractionBehavior.ASYNC);\n\n\t\tinitEEnum(eCoordinationBehaviorEEnum, ECoordinationBehavior.class, \"ECoordinationBehavior\");\n\t\taddEEnumLiteral(eCoordinationBehaviorEEnum, ECoordinationBehavior.LOCAL);\n\t\taddEEnumLiteral(eCoordinationBehaviorEEnum, ECoordinationBehavior.DISTRIBUTED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "private void setupModel() {\n\n //Chooses which model gets prepared\n switch (id) {\n case 2:\n singlePackage = new Node();\n activeNode = singlePackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_solo)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n case 3:\n multiPackage = new Node();\n activeNode = multiPackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_multi_new)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n case 4:\n wagonPackage = new Node();\n activeNode = wagonPackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_car_new)\n .build().thenAccept(a -> activeRenderable = a)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n default:\n mailbox = new Node();\n activeNode = mailbox;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.mailbox)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n }\n }", "public void createPackageContents() {\r\n\t\tif (isCreated) return;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tpuzzleTaskEClass = createEClass(PUZZLE_TASK);\r\n\t\tcreateEReference(puzzleTaskEClass, PUZZLE_TASK__PUZZLES);\r\n\t\tcreateEReference(puzzleTaskEClass, PUZZLE_TASK__PLAYER_LEVELS);\r\n\t\tcreateEReference(puzzleTaskEClass, PUZZLE_TASK__PLAYER_TASK_SCORES);\r\n\t\tcreateEOperation(puzzleTaskEClass, PUZZLE_TASK___ACCEPT_PUZZLE_PROPOSAL__STRING_PLAYER);\r\n\t\tcreateEOperation(puzzleTaskEClass, PUZZLE_TASK___CALCULATE_SCORE__INT_PLAYER_BOOLEAN);\r\n\t\tcreateEOperation(puzzleTaskEClass, PUZZLE_TASK___ACCEPT_PLAYER__PLAYER);\r\n\r\n\t\tpuzzlePieceEClass = createEClass(PUZZLE_PIECE);\r\n\t\tcreateEAttribute(puzzlePieceEClass, PUZZLE_PIECE__IMAGE);\r\n\t\tcreateEAttribute(puzzlePieceEClass, PUZZLE_PIECE__PLAYER_COUNT);\r\n\r\n\t\tpuzzleTaskViewEClass = createEClass(PUZZLE_TASK_VIEW);\r\n\t\tcreateEAttribute(puzzleTaskViewEClass, PUZZLE_TASK_VIEW__IMAGE);\r\n\t\tcreateEAttribute(puzzleTaskViewEClass, PUZZLE_TASK_VIEW__SCORE);\r\n\t\tcreateEAttribute(puzzleTaskViewEClass, PUZZLE_TASK_VIEW__LEVEL);\r\n\t\tcreateEOperation(puzzleTaskViewEClass, PUZZLE_TASK_VIEW___PROPOSE_ANSWER__STRING);\r\n\t\tcreateEOperation(puzzleTaskViewEClass, PUZZLE_TASK_VIEW___FINISH);\r\n\t\tcreateEOperation(puzzleTaskViewEClass, PUZZLE_TASK_VIEW___START_PUZZLE);\r\n\t\tcreateEOperation(puzzleTaskViewEClass, PUZZLE_TASK_VIEW___ACCEPT_PLAYER);\r\n\r\n\t\tplayerToIntEClass = createEClass(PLAYER_TO_INT);\r\n\t\tcreateEReference(playerToIntEClass, PLAYER_TO_INT__KEY);\r\n\t\tcreateEAttribute(playerToIntEClass, PLAYER_TO_INT__VALUE);\r\n\r\n\t\tpuzzleEClass = createEClass(PUZZLE);\r\n\t\tcreateEAttribute(puzzleEClass, PUZZLE__LEVEL);\r\n\t\tcreateEOperation(puzzleEClass, PUZZLE___ACCEPT_PROPOSAL__STRING);\r\n\t\tcreateEOperation(puzzleEClass, PUZZLE___FINISH_PUZZLE__PLAYER);\r\n\t\tcreateEOperation(puzzleEClass, PUZZLE___START_PUZZLE__PLAYER);\r\n\t\tcreateEOperation(puzzleEClass, PUZZLE___GET_IMAGE__PLAYER);\r\n\r\n\t\tsimplePuzzleEClass = createEClass(SIMPLE_PUZZLE);\r\n\t\tcreateEReference(simplePuzzleEClass, SIMPLE_PUZZLE__INSTRUCTIONS);\r\n\t\tcreateEAttribute(simplePuzzleEClass, SIMPLE_PUZZLE__SOLUTION);\r\n\t\tcreateEReference(simplePuzzleEClass, SIMPLE_PUZZLE__PUZZLE_PIECES);\r\n\t\tcreateEReference(simplePuzzleEClass, SIMPLE_PUZZLE__PLAYER_PIECES);\r\n\t\tcreateEOperation(simplePuzzleEClass, SIMPLE_PUZZLE___ACCEPT_PROPOSAL__STRING);\r\n\t\tcreateEOperation(simplePuzzleEClass, SIMPLE_PUZZLE___FINISH_PUZZLE__PLAYER);\r\n\t\tcreateEOperation(simplePuzzleEClass, SIMPLE_PUZZLE___START_PUZZLE__PLAYER);\r\n\t\tcreateEOperation(simplePuzzleEClass, SIMPLE_PUZZLE___GET_IMAGE__PLAYER);\r\n\r\n\t\tplayerTaskScoreEClass = createEClass(PLAYER_TASK_SCORE);\r\n\t\tcreateEReference(playerTaskScoreEClass, PLAYER_TASK_SCORE__PLAYER);\r\n\t\tcreateEAttribute(playerTaskScoreEClass, PLAYER_TASK_SCORE__SCORE);\r\n\t\tcreateEAttribute(playerTaskScoreEClass, PLAYER_TASK_SCORE__LEVEL);\r\n\r\n\t\tplayerTaskScoresEClass = createEClass(PLAYER_TASK_SCORES);\r\n\t\tcreateEReference(playerTaskScoresEClass, PLAYER_TASK_SCORES__SCORES);\r\n\r\n\t\tplayerToPuzzlePieceEClass = createEClass(PLAYER_TO_PUZZLE_PIECE);\r\n\t\tcreateEReference(playerToPuzzlePieceEClass, PLAYER_TO_PUZZLE_PIECE__KEY);\r\n\t\tcreateEReference(playerToPuzzlePieceEClass, PLAYER_TO_PUZZLE_PIECE__VALUE);\r\n\t}", "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(treeEClass, Tree.class, \"Tree\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTree_Children(), this.getNode(), null, \"children\", null, 0, -1, Tree.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_Children(), this.getNode(), null, \"children\", 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\t\tinitEAttribute(getNode_Name(), ecorePackage.getEString(), \"name\", \"Node\", 0, 1, Node.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\t// gmf.compartment\n\t\tcreateGmf_2Annotations();\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tsecurityEClass = createEClass(SECURITY);\n\t\tcreateEReference(securityEClass, SECURITY__AUTHENTICATION);\n\n\t\tauthenticationEClass = createEClass(AUTHENTICATION);\n\t\tcreateEReference(authenticationEClass, AUTHENTICATION__SECURITY);\n\t\tcreateEReference(authenticationEClass, AUTHENTICATION__USER_MODEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_REGISTRATION_NAME);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_REGISTRATION_UNIT_LABEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_REGISTRATION_ACTION_LABEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_REGISTRATION_CONFIRM_LABEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_REGISTRATION_URI);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_LOGIN_NAME);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_LOGIN_UNIT_LABEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_LOGIN_ACTION_LABEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_LOGIN_CONFIRM_LABEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_LOGIN_URI);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_LOGOUT_NAME);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_LOGOUT_UNIT_LABEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_LOGOUT_ACTION_LABEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_LOGOUT_CONFIRM_LABEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_LOGOUT_URI);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_FORGOTTEN_PASSWORD_NAME);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_FORGOTTEN_PASSWORD_UNIT_LABEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_FORGOTTEN_PASSWORD_ACTION_LABEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_FORGOTTEN_PASSWORD_CONFIRM_LABEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_FORGOTTEN_PASSWORD_URI_REQUEST);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_FORGOTTEN_PASSWORD_URI_EMAIL_SENT);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_FORGOTTEN_PASSWORD_EMAIL_SUBJECT);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_FORGOTTEN_PASSWORD_EMAIL_MESSAGE);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_FORGOTTEN_PASSWORD_EMAIL_SENT_CAPTION);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_FORGOTTEN_PASSWORD_EMAIL_SENT_MESSAGE);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_RESET_PASSWORD_NAME);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_RESET_PASSWORD_UNIT_LABEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_RESET_PASSWORD_ACTION_LABEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_RESET_PASSWORD_CONFIRM_LABEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_RESET_PASSWORD_URI);\n\n\t\tlocalAuthenticationSystemEClass = createEClass(LOCAL_AUTHENTICATION_SYSTEM);\n\t\tcreateEReference(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__AUTHENTICATION_MODEL);\n\t\tcreateEAttribute(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__AUTHENTICATION_NAME);\n\t\tcreateEReference(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__USER_KEY);\n\t\tcreateEReference(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__AUTHENTICATION_KEY);\n\t\tcreateEReference(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__IDENTIFIER_FEATURE);\n\t\tcreateEReference(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__PASSWORD_FEATURE);\n\t\tcreateEReference(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__RESET_PASSWORD_REQUEST_MODEL);\n\t\tcreateEAttribute(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__RESET_PASSWORD_REQUEST_NAME);\n\t\tcreateEReference(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__REGISTRATION_UNIT);\n\t\tcreateEReference(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__LOGIN_UNIT);\n\t\tcreateEReference(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__LOGOUT_UNIT);\n\t\tcreateEReference(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__FORGOTTEN_PASSWORD_UNIT);\n\t\tcreateEReference(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__RESET_PASSWORD_UNIT);\n\t\tcreateEAttribute(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__VIEW_ROLE);\n\t\tcreateEAttribute(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__EDIT_ROLE);\n\t\tcreateEAttribute(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__USE_CAPTCHA);\n\t\tcreateEAttribute(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__ALLOW_REMEMBER_ME);\n\t\tcreateEAttribute(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__ALLOW_SELF_REGISTRATION);\n\t\tcreateEAttribute(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__TRACK_LOGIN_ATTEMPTS);\n\t\tcreateEAttribute(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__USE_EMAIL_ACTIVATION);\n\t\tcreateEAttribute(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__SEND_WELCOME_EMAIL);\n\n\t\tcasAuthenticationEClass = createEClass(CAS_AUTHENTICATION);\n\t\tcreateEAttribute(casAuthenticationEClass, CAS_AUTHENTICATION__LOGIN_LABEL);\n\t\tcreateEAttribute(casAuthenticationEClass, CAS_AUTHENTICATION__LOGOUT_LABEL);\n\n\t\tsecurityUnitEClass = createEClass(SECURITY_UNIT);\n\t}", "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(metadataEClass, Metadata.class, \"Metadata\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMetadata_Gamename(), ecorePackage.getEString(), \"Gamename\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Shortname(), ecorePackage.getEString(), \"Shortname\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Timing(), ecorePackage.getEString(), \"Timing\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Adressing(), ecorePackage.getEString(), \"Adressing\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_CartridgeType(), ecorePackage.getEString(), \"CartridgeType\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_RomSize(), ecorePackage.getEString(), \"RomSize\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_RamSize(), ecorePackage.getEString(), \"RamSize\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Licensee(), ecorePackage.getEString(), \"Licensee\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Country(), ecorePackage.getEString(), \"Country\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Videoformat(), ecorePackage.getEString(), \"Videoformat\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Version(), ecorePackage.getEInt(), \"Version\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_IdeVersion(), ecorePackage.getEString(), \"IdeVersion\", null, 0, 1, Metadata.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}", "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\tuserTaskEClass.getESuperTypes().add(this.getTask());\n\t\tapplicationTaskEClass.getESuperTypes().add(this.getTask());\n\t\tinteractionTaskEClass.getESuperTypes().add(this.getTask());\n\t\tabstractionTaskEClass.getESuperTypes().add(this.getTask());\n\t\tnullTaskEClass.getESuperTypes().add(this.getTask());\n\t\tchoiceOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\torderIndependenceOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\tinterleavingOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\tsynchronizationOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\tparallelOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\tdisablingOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\tsequentialEnablingInfoOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\tsequentialEnablingOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\tsuspendResumeOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(taskModelEClass, TaskModel.class, \"TaskModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTaskModel_Root(), this.getTask(), null, \"root\", null, 1, 1, TaskModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTaskModel_Tasks(), this.getTask(), null, \"tasks\", null, 1, -1, TaskModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTaskModel_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, TaskModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, 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_Id(), ecorePackage.getEString(), \"id\", 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_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\t\tinitEReference(getTask_Operator(), this.getTemporalOperator(), null, \"operator\", 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\t\tinitEReference(getTask_Subtasks(), this.getTask(), this.getTask_Parent(), \"subtasks\", 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\t\tinitEReference(getTask_Parent(), this.getTask(), this.getTask_Subtasks(), \"parent\", 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\t\tinitEAttribute(getTask_Min(), ecorePackage.getEIntegerObject(), \"min\", 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_Max(), ecorePackage.getEIntegerObject(), \"max\", 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_Iterative(), ecorePackage.getEBooleanObject(), \"iterative\", null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(userTaskEClass, UserTask.class, \"UserTask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(applicationTaskEClass, ApplicationTask.class, \"ApplicationTask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(interactionTaskEClass, InteractionTask.class, \"InteractionTask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(abstractionTaskEClass, AbstractionTask.class, \"AbstractionTask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(nullTaskEClass, NullTask.class, \"NullTask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(temporalOperatorEClass, TemporalOperator.class, \"TemporalOperator\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(choiceOperatorEClass, ChoiceOperator.class, \"ChoiceOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(orderIndependenceOperatorEClass, OrderIndependenceOperator.class, \"OrderIndependenceOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(interleavingOperatorEClass, InterleavingOperator.class, \"InterleavingOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(synchronizationOperatorEClass, SynchronizationOperator.class, \"SynchronizationOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(parallelOperatorEClass, ParallelOperator.class, \"ParallelOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(disablingOperatorEClass, DisablingOperator.class, \"DisablingOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(sequentialEnablingInfoOperatorEClass, SequentialEnablingInfoOperator.class, \"SequentialEnablingInfoOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(sequentialEnablingOperatorEClass, SequentialEnablingOperator.class, \"SequentialEnablingOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(suspendResumeOperatorEClass, SuspendResumeOperator.class, \"SuspendResumeOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void registerMetamodels(ResourceSet rs, IbexExecutable executable) throws IOException {\n\t\t\n\t\t// Set correct workspace root\n\t\tsetWorkspaceRootDirectory(rs);\n\t\t\n\t\t// Load and register source and target metamodels\n\t\tEPackage languagePack = null;\n\t\tEPackage henshinPack = null;\n\t\tEPackage ecorePack = null;\n\t\tEPackage emoflontohenshinPack = null;\n\t\t\n\t\tif(executable instanceof FWD_OPT) {\n\t\t\tResource res = executable.getResourceHandler().loadResource(\"platform:/resource/org.eclipse.emf.henshin.model/model/henshin.ecore\");\n\t\t\thenshinPack = (EPackage) res.getContents().get(0);\n\t\t\trs.getResources().remove(res);\n\t\t\t\n\t\t\tres = executable.getResourceHandler().loadResource(\"http://www.eclipse.org/emf/2002/Ecore\");\n\t\t\tecorePack = (EPackage) res.getContents().get(0);\n\t\t\trs.getResources().remove(res);\n\t\t\t\n\t\t\tres = executable.getResourceHandler().loadResource(\"platform:/resource/EMoflonToHenshin/model/EMoflonToHenshin.ecore\");\n\t\t\temoflontohenshinPack = (EPackage) res.getContents().get(0);\n\t\t\trs.getResources().remove(res);\n\t\t}\n\t\t\t\t\n\t\tif(executable instanceof BWD_OPT) {\n\t\t\tResource res = executable.getResourceHandler().loadResource(\"platform:/plugin/org.emoflon.ibex.tgg.language/model/Language.ecore\");\n\t\t\tlanguagePack = (EPackage) res.getContents().get(0);\n\t\t\trs.getResources().remove(res);\n\t\t\t\n\t\t\tres = executable.getResourceHandler().loadResource(\"http://www.eclipse.org/emf/2002/Ecore\");\n\t\t\tecorePack = (EPackage) res.getContents().get(0);\n\t\t\trs.getResources().remove(res);\n\t\t\t\n\t\t\tres = executable.getResourceHandler().loadResource(\"platform:/resource/EMoflonToHenshin/model/EMoflonToHenshin.ecore\");\n\t\t\temoflontohenshinPack = (EPackage) res.getContents().get(0);\n\t\t\trs.getResources().remove(res);\n\t\t}\n\n\t\tif(languagePack == null)\n\t\t\tlanguagePack = LanguagePackageImpl.init();\n\t\t\t\t\n\t\tif(henshinPack == null)\n\t\t\thenshinPack = HenshinPackageImpl.init();\n\t\t\n\t\tif(ecorePack == null)\n\t\t\tecorePack = EcorePackageImpl.init();\n\t\t\n\t\tif(emoflontohenshinPack == null) {\n\t\t\temoflontohenshinPack = EMoflonToHenshinPackageImpl.init();\n\t\t\trs.getPackageRegistry().put(\"platform:/resource/EMoflonToHenshin/model/EMoflonToHenshin.ecore\", EMoflonToHenshinPackage.eINSTANCE);\n\t\t\trs.getPackageRegistry().put(\"platform:/plugin/EMoflonToHenshin/model/EMoflonToHenshin.ecore\", EMoflonToHenshinPackage.eINSTANCE);\n\t\t}\n\t\t\t\n\t\trs.getPackageRegistry().put(\"platform:/resource/org.emoflon.ibex.tgg.language/model/Language.ecore\", languagePack);\n\t rs.getPackageRegistry().put(\"platform:/plugin/org.emoflon.ibex.tgg.language/model/Language.ecore\", languagePack);\t\n\t\t\t\n\t\trs.getPackageRegistry().put(\"platform:/resource/org.eclipse.emf.henshin.model/model/henshin.ecore\", henshinPack);\n\t\trs.getPackageRegistry().put(\"platform:/plugin/org.eclipse.emf.henshin.model/model/henshin.ecore\", henshinPack);\n\t\t\n\t\trs.getPackageRegistry().put(\"http://www.eclipse.org/emf/2002/Ecore\", henshinPack);\n\t}", "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 intentEClass.getESuperTypes().add(this.getAgent());\n entityEClass.getESuperTypes().add(this.getAgent());\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_Agent(), this.getAgent(), null, \"agent\", 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(agentEClass, Agent.class, \"Agent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getAgent_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Agent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(intentEClass, Intent.class, \"Intent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getIntent_SuperType(), this.getIntent(), null, \"superType\", null, 0, 1, Intent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getIntent_IsFollowUp(), this.getIsFollowUp(), null, \"isFollowUp\", null, 0, 1, Intent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getIntent_Question(), this.getQuestion(), null, \"question\", null, 0, -1, Intent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getIntent_Training(), this.getTraining(), null, \"training\", null, 0, 1, Intent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(isFollowUpEClass, IsFollowUp.class, \"IsFollowUp\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getIsFollowUp_Intent(), this.getIntent(), null, \"intent\", null, 0, 1, IsFollowUp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(entityEClass, Entity.class, \"Entity\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getEntity_Example(), this.getEntityExample(), null, \"example\", 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 initEClass(questionEClass, Question.class, \"Question\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getQuestion_QuestionEntity(), this.getQuestionEntity(), null, \"questionEntity\", null, 0, 1, Question.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getQuestion_Prompt(), ecorePackage.getEString(), \"prompt\", null, 0, 1, Question.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(questionEntityEClass, QuestionEntity.class, \"QuestionEntity\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getQuestionEntity_WithEntity(), this.getReference(), null, \"withEntity\", null, 0, 1, QuestionEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(trainingEClass, Training.class, \"Training\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getTraining_Trainingref(), this.getTrainingRef(), null, \"trainingref\", null, 0, -1, Training.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(trainingRefEClass, TrainingRef.class, \"TrainingRef\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getTrainingRef_Phrase(), ecorePackage.getEString(), \"phrase\", null, 0, 1, TrainingRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getTrainingRef_Declaration(), this.getDeclaration(), null, \"declaration\", null, 0, 1, TrainingRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(declarationEClass, Declaration.class, \"Declaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getDeclaration_Trainingstring(), ecorePackage.getEString(), \"trainingstring\", null, 0, 1, Declaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getDeclaration_Reference(), this.getReference(), null, \"reference\", 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(entityExampleEClass, EntityExample.class, \"EntityExample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getEntityExample_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, EntityExample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(sysvariableEClass, Sysvariable.class, \"Sysvariable\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getSysvariable_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, Sysvariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(referenceEClass, Reference.class, \"Reference\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getReference_Entity(), this.getEntity(), null, \"entity\", null, 0, 1, Reference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getReference_Sysvar(), this.getSysvariable(), null, \"sysvar\", null, 0, 1, Reference.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 }", "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\torg.unicase.model.ModelPackage theModelPackage_1 = (org.unicase.model.ModelPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(org.unicase.model.ModelPackage.eNS_URI);\r\n\t\tTaskPackage theTaskPackage = (TaskPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(TaskPackage.eNS_URI);\r\n\t\torg.eclipse.emf.emfstore.internal.common.model.ModelPackage theModelPackage_2 = (org.eclipse.emf.emfstore.internal.common.model.ModelPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(org.eclipse.emf.emfstore.internal.common.model.ModelPackage.eNS_URI);\r\n\t\tOrganizationPackage theOrganizationPackage = (OrganizationPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(OrganizationPackage.eNS_URI);\r\n\t\tAttachmentPackage theAttachmentPackage = (AttachmentPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(AttachmentPackage.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\tissueEClass.getESuperTypes().add(theModelPackage_1.getAnnotation());\r\n\t\tissueEClass.getESuperTypes().add(theTaskPackage.getCheckable());\r\n\t\tissueEClass.getESuperTypes().add(theTaskPackage.getWorkItem());\r\n\t\tproposalEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_1.getUnicaseModelElement());\r\n\t\tproposalEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_2.getNonDomainElement());\r\n\t\tsolutionEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_1.getUnicaseModelElement());\r\n\t\tsolutionEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_2.getNonDomainElement());\r\n\t\tcriterionEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_1.getUnicaseModelElement());\r\n\t\tassessmentEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_1.getUnicaseModelElement());\r\n\t\tassessmentEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_2.getNonDomainElement());\r\n\t\tcommentEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_1.getUnicaseModelElement());\r\n\t\tcommentEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_2.getNonDomainElement());\r\n\r\n\t\t// Initialize classes and features; add operations and parameters\r\n\t\tinitEClass(issueEClass, Issue.class, \"Issue\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getIssue_Proposals(), this.getProposal(),\r\n\t\t\t\tthis.getProposal_Issue(), \"proposals\", null, 0, -1,\r\n\t\t\t\tIssue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\tIS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getIssue_Solution(), this.getSolution(),\r\n\t\t\t\tthis.getSolution_Issue(), \"solution\", null, 0, 1, Issue.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(getIssue_Criteria(), this.getCriterion(), null,\r\n\t\t\t\t\"criteria\", null, 0, -1, Issue.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\tinitEAttribute(getIssue_Activity(), theTaskPackage.getActivityType(),\r\n\t\t\t\t\"activity\", null, 0, 1, Issue.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\tinitEReference(getIssue_Assessments(), this.getAssessment(), null,\r\n\t\t\t\t\"assessments\", null, 0, -1, Issue.class, IS_TRANSIENT,\r\n\t\t\t\tIS_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(proposalEClass, Proposal.class, \"Proposal\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getProposal_Assessments(), this.getAssessment(),\r\n\t\t\t\tthis.getAssessment_Proposal(), \"assessments\", null, 0, -1,\r\n\t\t\t\tProposal.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\tIS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getProposal_Issue(), this.getIssue(),\r\n\t\t\t\tthis.getIssue_Proposals(), \"issue\", null, 0, 1, Proposal.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\tinitEClass(solutionEClass, Solution.class, \"Solution\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getSolution_UnderlyingProposals(), this.getProposal(),\r\n\t\t\t\tnull, \"underlyingProposals\", null, 0, -1, Solution.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(getSolution_Issue(), this.getIssue(),\r\n\t\t\t\tthis.getIssue_Solution(), \"issue\", null, 0, 1, Solution.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\tinitEClass(criterionEClass, Criterion.class, \"Criterion\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getCriterion_Assessments(), this.getAssessment(),\r\n\t\t\t\tthis.getAssessment_Criterion(), \"assessments\", null, 0, -1,\r\n\t\t\t\tCriterion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\t!IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(assessmentEClass, Assessment.class, \"Assessment\",\r\n\t\t\t\t!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAssessment_Proposal(), this.getProposal(),\r\n\t\t\t\tthis.getProposal_Assessments(), \"proposal\", null, 0, 1,\r\n\t\t\t\tAssessment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\t!IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAssessment_Criterion(), this.getCriterion(),\r\n\t\t\t\tthis.getCriterion_Assessments(), \"criterion\", null, 0, 1,\r\n\t\t\t\tAssessment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\t!IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getAssessment_Value(), ecorePackage.getEInt(), \"value\",\r\n\t\t\t\tnull, 0, 1, Assessment.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(commentEClass, Comment.class, \"Comment\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getComment_Sender(),\r\n\t\t\t\ttheOrganizationPackage.getOrgUnit(), null, \"sender\", null, 0,\r\n\t\t\t\t1, Comment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\t!IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getComment_Recipients(),\r\n\t\t\t\ttheOrganizationPackage.getOrgUnit(), null, \"recipients\", null,\r\n\t\t\t\t0, -1, Comment.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\tinitEReference(getComment_CommentedElement(),\r\n\t\t\t\ttheModelPackage_1.getUnicaseModelElement(),\r\n\t\t\t\ttheModelPackage_1.getUnicaseModelElement_Comments(),\r\n\t\t\t\t\"commentedElement\", null, 0, 1, Comment.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(audioCommentEClass, AudioComment.class, \"AudioComment\",\r\n\t\t\t\t!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAudioComment_AudioFile(),\r\n\t\t\t\ttheAttachmentPackage.getFileAttachment(), null, \"audioFile\",\r\n\t\t\t\tnull, 0, 1, AudioComment.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\t// Create annotations\r\n\t\t// org.eclipse.emf.ecp.editor\r\n\t\tcreateOrgAnnotations();\r\n\t}", "public ViewMetamodel getMetamodel();", "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(maturityModelEClass, MaturityModel.class, \"MaturityModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMaturityModel_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityModel_Version(), ecorePackage.getEString(), \"version\", null, 0, 1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityModel_ReleaseDate(), ecorePackage.getEDate(), \"releaseDate\", null, 0, 1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityModel_Author(), ecorePackage.getEString(), \"author\", null, 0, 1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityModel_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityModel_Acronym(), ecorePackage.getEString(), \"acronym\", null, 0, 1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityModel_Url(), ecorePackage.getEString(), \"url\", null, 0, 1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMaturityModel_Organizes(), this.getProcessArea(), null, \"organizes\", null, 0, -1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMaturityModel_EvolvesInto(), this.getMaturityLevel(), null, \"evolvesInto\", null, 0, -1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(processAreaEClass, ProcessArea.class, \"ProcessArea\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getProcessArea_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, ProcessArea.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getProcessArea_ShortDescription(), ecorePackage.getEString(), \"shortDescription\", null, 0, 1, ProcessArea.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getProcessArea_MainDescription(), ecorePackage.getEString(), \"mainDescription\", null, 0, 1, ProcessArea.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getProcessArea_Acronym(), ecorePackage.getEString(), \"acronym\", null, 0, 1, ProcessArea.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProcessArea_Defines(), this.getSpecificPractice(), null, \"defines\", null, 0, -1, ProcessArea.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProcessArea_Implements(), this.getMaturityLevel(), null, \"implements\", null, 0, 1, ProcessArea.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(specificPracticeEClass, SpecificPractice.class, \"SpecificPractice\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getSpecificPractice_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, SpecificPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSpecificPractice_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, SpecificPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSpecificPractice_Acronym(), ecorePackage.getEString(), \"acronym\", null, 0, 1, SpecificPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSpecificPractice_ComplementaryDescription(), ecorePackage.getEString(), \"complementaryDescription\", null, 0, 1, SpecificPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(maturityLevelEClass, MaturityLevel.class, \"MaturityLevel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMaturityLevel_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, MaturityLevel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityLevel_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, MaturityLevel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityLevel_Acronym(), ecorePackage.getEString(), \"acronym\", null, 0, 1, MaturityLevel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMaturityLevel_EvolvesInto(), this.getGenericPractice(), null, \"evolvesInto\", null, 0, -1, MaturityLevel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(genericPracticeEClass, GenericPractice.class, \"GenericPractice\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getGenericPractice_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, GenericPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getGenericPractice_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, GenericPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getGenericPractice_Acronym(), ecorePackage.getEString(), \"acronym\", null, 0, 1, GenericPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getGenericPractice_ComplementaryDescription(), ecorePackage.getEString(), \"complementaryDescription\", null, 0, 1, GenericPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getGenericPractice_Divided(), this.getGPSubPractice(), null, \"divided\", null, 0, -1, GenericPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(gpSubPracticeEClass, GPSubPractice.class, \"GPSubPractice\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getGPSubPractice_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, GPSubPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getGPSubPractice_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, GPSubPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getGPSubPractice_Acronym(), ecorePackage.getEString(), \"acronym\", null, 0, 1, GPSubPractice.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}", "@Override\n\tpublic Metamodel getMetamodel() {\n\t\treturn null;\n\t}", "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_Elements(), this.getElement(), null, \"elements\", 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(elementEClass, Element.class, \"Element\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getElement_State(), this.getState(), null, \"state\", 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_Transition(), this.getTransition(), null, \"transition\", 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(stateEClass, State.class, \"State\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getState_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, State.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getState_StatesProperties(), this.getStatesProperties(), null, \"statesProperties\", null, 0, -1, State.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(statesPropertiesEClass, StatesProperties.class, \"StatesProperties\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getStatesProperties_Color(), ecorePackage.getEString(), \"color\", null, 0, 1, StatesProperties.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getStatesProperties_Thickness(), ecorePackage.getEString(), \"thickness\", null, 0, 1, StatesProperties.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getStatesProperties_Position(), ecorePackage.getEString(), \"position\", null, 0, 1, StatesProperties.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(transitionEClass, Transition.class, \"Transition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getTransition_Start(), this.getCoordinatesStatesTransition(), null, \"start\", 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 initEReference(getTransition_End(), this.getCoordinatesStatesTransition(), null, \"end\", 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 initEReference(getTransition_TransitionProperties(), this.getTransitionProperties(), null, \"transitionProperties\", 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 initEReference(getTransition_Label(), this.getLabel(), null, \"label\", 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 initEAttribute(getTransition_Init(), ecorePackage.getEString(), \"init\", null, 0, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(labelEClass, Label.class, \"Label\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getLabel_Text(), ecorePackage.getEString(), \"text\", null, 0, 1, Label.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getLabel_Position(), ecorePackage.getEString(), \"position\", null, 0, 1, Label.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(coordinatesStatesTransitionEClass, CoordinatesStatesTransition.class, \"CoordinatesStatesTransition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getCoordinatesStatesTransition_StateTransition(), ecorePackage.getEString(), \"stateTransition\", null, 0, 1, CoordinatesStatesTransition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(transitionPropertiesEClass, TransitionProperties.class, \"TransitionProperties\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getTransitionProperties_Color(), ecorePackage.getEString(), \"color\", null, 0, 1, TransitionProperties.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getTransitionProperties_Thickness(), ecorePackage.getEString(), \"thickness\", null, 0, 1, TransitionProperties.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getTransitionProperties_Curve(), ecorePackage.getEString(), \"curve\", null, 0, 1, TransitionProperties.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 }", "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\tEntityPackage theEntityPackage = (EntityPackage)EPackage.Registry.INSTANCE.getEPackage(EntityPackage.eNS_URI);\n\t\tContextPackage theContextPackage = (ContextPackage)EPackage.Registry.INSTANCE.getEPackage(ContextPackage.eNS_URI);\n\t\tJavaPackage theJavaPackage = (JavaPackage)EPackage.Registry.INSTANCE.getEPackage(JavaPackage.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\taudioEClass.getESuperTypes().add(theEntityPackage.getEntityIdentifiable());\n\t\taudioRecorderEClass.getESuperTypes().add(theJavaPackage.getJavaCloseable());\n\t\taudioPlayerEClass.getESuperTypes().add(theJavaPackage.getJavaCloseable());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(audioEClass, Audio.class, \"Audio\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getAudio_Content(), ecorePackage.getEByteArray(), \"content\", null, 0, 1, Audio.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAudio_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, Audio.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAudio_Text(), ecorePackage.getEString(), \"text\", null, 1, 1, Audio.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(audioManagerEClass, AudioManager.class, \"AudioManager\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tEOperation op = addEOperation(audioManagerEClass, this.getAudioRecorder(), \"record\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, theContextPackage.getContext(), \"context\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = addEOperation(audioManagerEClass, this.getAudioPlayer(), \"play\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, theContextPackage.getContext(), \"context\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, this.getAudio(), \"audio\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEBoolean(), \"start\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEBoolean(), \"waitEnd\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = addEOperation(audioManagerEClass, this.getAudioPlayer(), \"play\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, theContextPackage.getContext(), \"context\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, this.getAudioStyle(), \"style\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEString(), \"text\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEBoolean(), \"start\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEBoolean(), \"waitEnd\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(audioRecorderEClass, AudioRecorder.class, \"AudioRecorder\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\taddEOperation(audioRecorderEClass, null, \"close\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioRecorderEClass, theJavaPackage.getJavaOutputStream(), \"getOutputStream\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioRecorderEClass, ecorePackage.getEBoolean(), \"isStopped\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioRecorderEClass, null, \"start\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioRecorderEClass, null, \"stop\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(audioPlayerEClass, AudioPlayer.class, \"AudioPlayer\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\taddEOperation(audioPlayerEClass, null, \"close\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioPlayerEClass, this.getAudio(), \"getAudio\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioPlayerEClass, ecorePackage.getEBoolean(), \"isStopped\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioPlayerEClass, null, \"start\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioPlayerEClass, null, \"stop\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(audioStyleEEnum, AudioStyle.class, \"AudioStyle\");\n\t\taddEEnumLiteral(audioStyleEEnum, AudioStyle.A);\n\t\taddEEnumLiteral(audioStyleEEnum, AudioStyle.B);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "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\tServiceCIMPackage theServiceCIMPackage = (ServiceCIMPackage)EPackage.Registry.INSTANCE.getEPackage(ServiceCIMPackage.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\tauthorizableResourceEClass.getESuperTypes().add(this.getAnnotation());\r\n\t\tannResourceEClass.getESuperTypes().add(this.getAnnotatedElement());\r\n\t\tannPropertyEClass.getESuperTypes().add(this.getAnnotatedElement());\r\n\t\tauthorizationSubjectEClass.getESuperTypes().add(this.getAnnotation());\r\n\t\tannCRUDActivityEClass.getESuperTypes().add(this.getAnnotatedElement());\r\n\t\tnewPropertyEClass.getESuperTypes().add(this.getAnnotation());\r\n\r\n\t\t// Initialize classes, features, and operations; add parameters\r\n\t\tinitEClass(annotationModelEClass, AnnotationModel.class, \"AnnotationModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getAnnotationModel_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, AnnotationModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\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);\r\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);\r\n\r\n\t\tinitEClass(annotationEClass, Annotation.class, \"Annotation\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(authorizableResourceEClass, AuthorizableResource.class, \"AuthorizableResource\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\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);\r\n\t\tinitEReference(getAuthorizableResource_IsAuthorizableResource(), this.getAnnResource(), null, \"isAuthorizableResource\", null, 1, 1, AuthorizableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\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);\r\n\r\n\t\tinitEClass(resourceAccessPolicySetEClass, ResourceAccessPolicySet.class, \"ResourceAccessPolicySet\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getResourceAccessPolicySet_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, ResourceAccessPolicySet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\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);\r\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);\r\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);\r\n\r\n\t\tinitEClass(annotatedElementEClass, AnnotatedElement.class, \"AnnotatedElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(annResourceEClass, AnnResource.class, \"AnnResource\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAnnResource_AnnotatesResource(), theServiceCIMPackage.getResource(), null, \"annotatesResource\", null, 1, 1, AnnResource.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(resourceAccessPolicyEClass, ResourceAccessPolicy.class, \"ResourceAccessPolicy\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getResourceAccessPolicy_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, ResourceAccessPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\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);\r\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);\r\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);\r\n\r\n\t\tinitEClass(conditionEClass, Condition.class, \"Condition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\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);\r\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);\r\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);\r\n\r\n\t\tinitEClass(attributeEClass, Attribute.class, \"Attribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\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);\r\n\t\tinitEReference(getAttribute_IsAttributeExistingProperty(), this.getAnnProperty(), 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);\r\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);\r\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);\r\n\t\tinitEReference(getAttribute_IsAttributeResource(), this.getAnnResource(), null, \"isAttributeResource\", 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(annPropertyEClass, AnnProperty.class, \"AnnProperty\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAnnProperty_AnnotatesProperty(), theServiceCIMPackage.getProperty(), null, \"annotatesProperty\", null, 1, 1, AnnProperty.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(resourceAccessRuleEClass, ResourceAccessRule.class, \"ResourceAccessRule\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\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);\r\n\t\tinitEAttribute(getResourceAccessRule_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, ResourceAccessRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\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);\r\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);\r\n\r\n\t\tinitEClass(authorizationSubjectEClass, AuthorizationSubject.class, \"AuthorizationSubject\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAuthorizationSubject_IsAuthorizationSubject(), this.getAnnResource(), 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);\r\n\r\n\t\tinitEClass(annCRUDActivityEClass, AnnCRUDActivity.class, \"AnnCRUDActivity\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAnnCRUDActivity_AnnotatesCRUDActivity(), theServiceCIMPackage.getCRUDActivity(), null, \"annotatesCRUDActivity\", null, 1, 1, AnnCRUDActivity.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(allowedActionEClass, AllowedAction.class, \"AllowedAction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAllowedAction_IsAllowedAction(), this.getAnnCRUDActivity(), 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);\r\n\r\n\t\tinitEClass(newPropertyEClass, NewProperty.class, \"NewProperty\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getNewProperty_BelongsToResource(), this.getAnnResource(), 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);\r\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);\r\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);\r\n\t\tinitEAttribute(getNewProperty_BIsUnique(), ecorePackage.getEBoolean(), \"bIsUnique\", null, 1, 1, NewProperty.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(combiningAlgorithmEEnum, CombiningAlgorithm.class, \"CombiningAlgorithm\");\r\n\t\taddEEnumLiteral(combiningAlgorithmEEnum, CombiningAlgorithm.DENY_OVERRIDES);\r\n\t\taddEEnumLiteral(combiningAlgorithmEEnum, CombiningAlgorithm.PERMIT_OVERRIDES);\r\n\t\taddEEnumLiteral(combiningAlgorithmEEnum, CombiningAlgorithm.DENY_UNLESS_PERMIT);\r\n\t\taddEEnumLiteral(combiningAlgorithmEEnum, CombiningAlgorithm.PERMIT_UNLESS_DENY);\r\n\r\n\t\tinitEEnum(operatorEEnum, Operator.class, \"Operator\");\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.EQUAL);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.GREATER_THAN);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.LESS_THAN);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.GREATER_THAN_OR_EQUAL);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.LESS_THAN_OR_EQUAL);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.NOT_EQUAL);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.SUBSET);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.NOT_SUBSET);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.SET_CONTAINS);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.SET_NOT_CONTAINS);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.REGEX);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.UNDEFINED);\r\n\r\n\t\tinitEEnum(attributeCategoryEEnum, AttributeCategory.class, \"AttributeCategory\");\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.ACCESS_SUBJECT);\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.ACCESSED_RESOURCE);\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.PARENT_RESOURCE);\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.CHILD_RESOURCE);\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.INCLUDED_RESOURCE);\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.CONSTANT);\r\n\r\n\t\tinitEEnum(ruleTypeEEnum, RuleType.class, \"RuleType\");\r\n\t\taddEEnumLiteral(ruleTypeEEnum, RuleType.PERMIT);\r\n\t\taddEEnumLiteral(ruleTypeEEnum, RuleType.DENY);\r\n\r\n\t\t// Create resource\r\n\t\tcreateResource(eNS_URI);\r\n\t}", "DataPackage createDataPackage();", "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\tSQLSchemaPackage theSQLSchemaPackage = (SQLSchemaPackage)EPackage.Registry.INSTANCE.getEPackage(SQLSchemaPackage.eNS_URI);\n\n\t\t// Add supertypes to classes\n\t\tqueryExpressionDefaultEClass.getESuperTypes().add(theSQLSchemaPackage.getSQLObject());\n\t\tqueryExpressionDefaultEClass.getESuperTypes().add(this.getQueryExpression());\n\t\tsearchConditionDefaultEClass.getESuperTypes().add(theSQLSchemaPackage.getSQLObject());\n\t\tsearchConditionDefaultEClass.getESuperTypes().add(this.getSearchCondition());\n\t\tvalueExpressionDefaultEClass.getESuperTypes().add(theSQLSchemaPackage.getSQLObject());\n\t\tvalueExpressionDefaultEClass.getESuperTypes().add(this.getValueExpression());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(queryExpressionEClass, QueryExpression.class, \"QueryExpression\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\taddEOperation(queryExpressionEClass, ecorePackage.getEString(), \"getSQL\", 0, 1); //$NON-NLS-1$\n\n\t\tEOperation op = addEOperation(queryExpressionEClass, null, \"setSQL\"); //$NON-NLS-1$\n\t\taddEParameter(op, ecorePackage.getEString(), \"sqlText\", 0, 1); //$NON-NLS-1$\n\n\t\tinitEClass(valueExpressionEClass, ValueExpression.class, \"ValueExpression\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\taddEOperation(valueExpressionEClass, ecorePackage.getEString(), \"getSQL\", 0, 1); //$NON-NLS-1$\n\n\t\top = addEOperation(valueExpressionEClass, null, \"setSQL\"); //$NON-NLS-1$\n\t\taddEParameter(op, ecorePackage.getEString(), \"sqlText\", 0, 1); //$NON-NLS-1$\n\n\t\tinitEClass(searchConditionEClass, SearchCondition.class, \"SearchCondition\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\taddEOperation(searchConditionEClass, ecorePackage.getEString(), \"getSQL\", 0, 1); //$NON-NLS-1$\n\n\t\top = addEOperation(searchConditionEClass, null, \"setSQL\"); //$NON-NLS-1$\n\t\taddEParameter(op, ecorePackage.getEString(), \"sqlText\", 0, 1); //$NON-NLS-1$\n\n\t\tinitEClass(queryExpressionDefaultEClass, QueryExpressionDefault.class, \"QueryExpressionDefault\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEAttribute(getQueryExpressionDefault_SQL(), ecorePackage.getEString(), \"SQL\", null, 0, 1, QueryExpressionDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\tinitEClass(searchConditionDefaultEClass, SearchConditionDefault.class, \"SearchConditionDefault\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEAttribute(getSearchConditionDefault_SQL(), ecorePackage.getEString(), \"SQL\", null, 0, 1, SearchConditionDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\tinitEClass(valueExpressionDefaultEClass, ValueExpressionDefault.class, \"ValueExpressionDefault\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEAttribute(getValueExpressionDefault_SQL(), ecorePackage.getEString(), \"SQL\", null, 0, 1, ValueExpressionDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "private void initializeShapesModel() {\n\t\t// Initialize the model\n\t\tShapesPackage.eINSTANCE.eClass();\n\t\tShapesPackage.eINSTANCE.setNsURI(METAMODEL_PATH_SHAPES);\n\n\t\t// Retrieve the default factory singleton\n\t\tfactory = ShapesFactory.eINSTANCE;\n\n\t\t// Create the content of the model via this program\n\t\ttargetRootBlock = factory.createRootBlock();\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tinternalFailureOccurrenceDescriptionEClass = createEClass(INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION);\n\t\tcreateEReference(internalFailureOccurrenceDescriptionEClass, INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__INTERNAL_ACTION_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION);\n\t\tcreateEReference(internalFailureOccurrenceDescriptionEClass, INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__SOFTWARE_INDUCED_FAILURE_TYPE_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION);\n\n\t\trecoveryActionEClass = createEClass(RECOVERY_ACTION);\n\t\tcreateEReference(recoveryActionEClass, RECOVERY_ACTION__PRIMARY_BEHAVIOUR_RECOVERY_ACTION);\n\t\tcreateEReference(recoveryActionEClass, RECOVERY_ACTION__RECOVERY_ACTION_BEHAVIOURS_RECOVERY_ACTION);\n\n\t\trecoveryActionBehaviourEClass = createEClass(RECOVERY_ACTION_BEHAVIOUR);\n\t\tcreateEReference(recoveryActionBehaviourEClass, RECOVERY_ACTION_BEHAVIOUR__FAILURE_HANDLING_ALTERNATIVES_RECOVERY_ACTION_BEHAVIOUR);\n\t\tcreateEReference(recoveryActionBehaviourEClass, RECOVERY_ACTION_BEHAVIOUR__RECOVERY_ACTION_RECOVERY_ACTION_BEHAVIOUR);\n\n\t\tfailureHandlingEntityEClass = createEClass(FAILURE_HANDLING_ENTITY);\n\t\tcreateEReference(failureHandlingEntityEClass, FAILURE_HANDLING_ENTITY__FAILURE_TYPES_FAILURE_HANDLING_ENTITY);\n\n\t\tfailureHandlingExternalCallActionEClass = createEClass(FAILURE_HANDLING_EXTERNAL_CALL_ACTION);\n\t\tcreateEReference(failureHandlingExternalCallActionEClass, FAILURE_HANDLING_EXTERNAL_CALL_ACTION__OWNER);\n\n\t\tacquireActionTimeoutEClass = createEClass(ACQUIRE_ACTION_TIMEOUT);\n\t\tcreateEReference(acquireActionTimeoutEClass, ACQUIRE_ACTION_TIMEOUT__OWNER);\n\t\tcreateEAttribute(acquireActionTimeoutEClass, ACQUIRE_ACTION_TIMEOUT__TIMEOUT_VALUE);\n\t}", "public void initializePackageContents() {\n if (this.isInitialized) {\n return;\n }\n this.isInitialized = true;\n\n // Initialize package\n this.setName(eNAME);\n this.setNsPrefix(eNS_PREFIX);\n this.setNsURI(eNS_URI);\n\n // Obtain other dependent packages\n final QosannotationsPackage theQosannotationsPackage = (QosannotationsPackage) EPackage.Registry.INSTANCE\n .getEPackage(QosannotationsPackage.eNS_URI);\n final CorePackage theCorePackage = (CorePackage) EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI);\n final CompositionPackage theCompositionPackage = (CompositionPackage) EPackage.Registry.INSTANCE\n .getEPackage(CompositionPackage.eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n this.systemSpecifiedExecutionTimeEClass.getESuperTypes().add(this.getSpecifiedExecutionTime());\n this.specifiedExecutionTimeEClass.getESuperTypes().add(theQosannotationsPackage.getSpecifiedQoSAnnotation());\n this.componentSpecifiedExecutionTimeEClass.getESuperTypes().add(this.getSpecifiedExecutionTime());\n\n // Initialize classes and features; add operations and parameters\n this.initEClass(this.systemSpecifiedExecutionTimeEClass, SystemSpecifiedExecutionTime.class,\n \"SystemSpecifiedExecutionTime\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n final EOperation op = this.addEOperation(this.systemSpecifiedExecutionTimeEClass,\n this.ecorePackage.getEBoolean(), \"SystemSpecifiedExecutionTimeMustReferenceRequiredRoleOfASystem\", 0, 1,\n IS_UNIQUE, IS_ORDERED);\n this.addEParameter(op, this.ecorePackage.getEDiagnosticChain(), \"diagnostics\", 0, 1, IS_UNIQUE, IS_ORDERED);\n final EGenericType g1 = this.createEGenericType(this.ecorePackage.getEMap());\n EGenericType g2 = this.createEGenericType(this.ecorePackage.getEJavaObject());\n g1.getETypeArguments().add(g2);\n g2 = this.createEGenericType(this.ecorePackage.getEJavaObject());\n g1.getETypeArguments().add(g2);\n this.addEParameter(op, g1, \"context\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n this.initEClass(this.specifiedExecutionTimeEClass, SpecifiedExecutionTime.class, \"SpecifiedExecutionTime\",\n IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n this.initEReference(this.getSpecifiedExecutionTime_Specification_SpecifiedExecutionTime(),\n theCorePackage.getPCMRandomVariable(),\n theCorePackage.getPCMRandomVariable_SpecifiedExecutionTime_PCMRandomVariable(),\n \"specification_SpecifiedExecutionTime\", null, 1, 1, SpecifiedExecutionTime.class, !IS_TRANSIENT,\n !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\n !IS_ORDERED);\n\n this.initEClass(this.componentSpecifiedExecutionTimeEClass, ComponentSpecifiedExecutionTime.class,\n \"ComponentSpecifiedExecutionTime\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n this.initEReference(this.getComponentSpecifiedExecutionTime_AssemblyContext_ComponentSpecifiedExecutionTime(),\n theCompositionPackage.getAssemblyContext(), null, \"assemblyContext_ComponentSpecifiedExecutionTime\",\n null, 1, 1, ComponentSpecifiedExecutionTime.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n }", "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\tpluginEClass.getESuperTypes().add(this.getAnalysisComponent());\n\t\tinputPortEClass.getESuperTypes().add(this.getPort());\n\t\toutputPortEClass.getESuperTypes().add(this.getPort());\n\t\tfilterEClass.getESuperTypes().add(this.getPlugin());\n\t\treaderEClass.getESuperTypes().add(this.getPlugin());\n\t\trepositoryEClass.getESuperTypes().add(this.getAnalysisComponent());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(projectEClass, MIProject.class, \"Project\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getProject_Plugins(), this.getPlugin(), null, \"plugins\", null, 0, -1, MIProject.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\tinitEAttribute(getProject_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,\n\t\t\t\t!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProject_Repositories(), this.getRepository(), null, \"repositories\", null, 0, -1, MIProject.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProject_Dependencies(), this.getDependency(), null, \"dependencies\", null, 0, -1, MIProject.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProject_Views(), this.getView(), null, \"views\", null, 0, -1, MIProject.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\t\tinitEReference(getProject_Properties(), this.getProperty(), null, \"properties\", null, 0, -1, MIProject.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\n\t\tinitEClass(pluginEClass, MIPlugin.class, \"Plugin\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPlugin_Repositories(), this.getRepositoryConnector(), null, \"repositories\", null, 0, -1, MIPlugin.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPlugin_OutputPorts(), this.getOutputPort(), this.getOutputPort_Parent(), \"outputPorts\", null, 0, -1, MIPlugin.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPlugin_Displays(), this.getDisplay(), this.getDisplay_Parent(), \"displays\", null, 0, -1, MIPlugin.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(portEClass, MIPort.class, \"Port\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPort_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,\n\t\t\t\t!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPort_EventTypes(), ecorePackage.getEString(), \"eventTypes\", null, 1, -1, MIPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n\t\t\t\t!IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPort_Id(), ecorePackage.getEString(), \"id\", null, 1, 1, MIPort.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(inputPortEClass, MIInputPort.class, \"InputPort\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInputPort_Parent(), this.getFilter(), this.getFilter_InputPorts(), \"parent\", null, 1, 1, MIInputPort.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(outputPortEClass, MIOutputPort.class, \"OutputPort\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getOutputPort_Subscribers(), this.getInputPort(), null, \"subscribers\", null, 0, -1, MIOutputPort.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getOutputPort_Parent(), this.getPlugin(), this.getPlugin_OutputPorts(), \"parent\", null, 1, 1, MIOutputPort.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(propertyEClass, MIProperty.class, \"Property\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getProperty_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n\t\t\t\t!IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getProperty_Value(), ecorePackage.getEString(), \"value\", null, 1, 1, MIProperty.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(filterEClass, MIFilter.class, \"Filter\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getFilter_InputPorts(), this.getInputPort(), this.getInputPort_Parent(), \"inputPorts\", null, 0, -1, MIFilter.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(readerEClass, MIReader.class, \"Reader\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(repositoryEClass, MIRepository.class, \"Repository\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(dependencyEClass, MIDependency.class, \"Dependency\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDependency_FilePath(), ecorePackage.getEString(), \"filePath\", null, 1, 1, MIDependency.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(repositoryConnectorEClass, MIRepositoryConnector.class, \"RepositoryConnector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getRepositoryConnector_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIRepositoryConnector.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRepositoryConnector_Repository(), this.getRepository(), null, \"repository\", null, 1, 1, MIRepositoryConnector.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRepositoryConnector_Id(), ecorePackage.getEString(), \"id\", null, 1, 1, MIRepositoryConnector.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(displayEClass, MIDisplay.class, \"Display\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDisplay_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIDisplay.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,\n\t\t\t\t!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDisplay_Parent(), this.getPlugin(), this.getPlugin_Displays(), \"parent\", null, 1, 1, MIDisplay.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getDisplay_Id(), ecorePackage.getEString(), \"id\", null, 1, 1, MIDisplay.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,\n\t\t\t\tIS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(viewEClass, MIView.class, \"View\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getView_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIView.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,\n\t\t\t\t!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getView_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, MIView.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n\t\t\t\t!IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getView_DisplayConnectors(), this.getDisplayConnector(), null, \"displayConnectors\", null, 0, -1, MIView.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getView_Id(), ecorePackage.getEString(), \"id\", null, 1, 1, MIView.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(displayConnectorEClass, MIDisplayConnector.class, \"DisplayConnector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDisplayConnector_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIDisplayConnector.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDisplayConnector_Display(), this.getDisplay(), null, \"display\", null, 1, 1, MIDisplayConnector.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getDisplayConnector_Id(), ecorePackage.getEString(), \"id\", null, 1, 1, MIDisplayConnector.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(analysisComponentEClass, MIAnalysisComponent.class, \"AnalysisComponent\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getAnalysisComponent_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIAnalysisComponent.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAnalysisComponent_Classname(), ecorePackage.getEString(), \"classname\", null, 1, 1, MIAnalysisComponent.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAnalysisComponent_Properties(), this.getProperty(), null, \"properties\", null, 0, -1, MIAnalysisComponent.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAnalysisComponent_Id(), ecorePackage.getEString(), \"id\", null, 1, 1, MIAnalysisComponent.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\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}" ]
[ "0.68750894", "0.67999244", "0.6684232", "0.66584134", "0.664421", "0.6615679", "0.6605199", "0.66026926", "0.65654874", "0.65492815", "0.65469867", "0.6538529", "0.6532274", "0.6531228", "0.65272456", "0.65124243", "0.6509707", "0.6498398", "0.64864975", "0.64794", "0.6451825", "0.6445425", "0.6436634", "0.64306825", "0.6411927", "0.63925976", "0.63921076", "0.6390919", "0.63818413", "0.6369797", "0.6367851", "0.6364498", "0.6359444", "0.635707", "0.63424855", "0.6338184", "0.6334781", "0.63165545", "0.6314154", "0.6309123", "0.63058317", "0.628752", "0.6285744", "0.6268927", "0.6268093", "0.62601405", "0.625422", "0.62480783", "0.6242542", "0.6233178", "0.6230536", "0.6228455", "0.6221058", "0.621914", "0.6215316", "0.6178071", "0.6166687", "0.6165176", "0.61609775", "0.61561465", "0.6154305", "0.61284864", "0.61281186", "0.61158276", "0.6111841", "0.60950905", "0.6090049", "0.6088207", "0.608158", "0.6073028", "0.6026258", "0.59982014", "0.59774613", "0.59764224", "0.5921827", "0.5903376", "0.58833224", "0.58323807", "0.5819664", "0.58022475", "0.57811695", "0.5758482", "0.5754798", "0.57392156", "0.5719427", "0.57119703", "0.5702398", "0.5693283", "0.5666532", "0.5632482", "0.5631493", "0.559802", "0.5597001", "0.55843085", "0.5580118", "0.5578702", "0.5576369", "0.5568089", "0.55562866", "0.55527145" ]
0.6575267
8
Complete the initialization of the package and its metamodel. This method is guarded to have no affect on any invocation but its first.
public void initializePackageContents() { if (isInitialized) return; isInitialized = true; // Initialize package setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); // Obtain other dependent packages CommonPackage theCommonPackage = (CommonPackage)EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI); ModelPackage theModelPackage = (ModelPackage)EPackage.Registry.INSTANCE.getEPackage(ModelPackage.eNS_URI); ColumnPackage theColumnPackage = (ColumnPackage)EPackage.Registry.INSTANCE.getEPackage(ColumnPackage.eNS_URI); ExpressionPackage theExpressionPackage = (ExpressionPackage)EPackage.Registry.INSTANCE.getEPackage(ExpressionPackage.eNS_URI); // Create type parameters // Set bounds for type parameters // Add supertypes to classes tableEClass.getESuperTypes().add(theCommonPackage.getNameProvider()); primaryKeyTableConstraintEClass.getESuperTypes().add(this.getTableConstraint()); uniqueTableConstraintEClass.getESuperTypes().add(this.getTableConstraint()); checkTableConstraintEClass.getESuperTypes().add(this.getTableConstraint()); foreignKeyTableConstraintEClass.getESuperTypes().add(this.getTableConstraint()); // Initialize classes, features, and operations; add parameters initEClass(tableEClass, Table.class, "Table", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getTable_Database(), theModelPackage.getDatabase(), theModelPackage.getDatabase_Tables(), "database", null, 1, 1, Table.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getTable_Columns(), theColumnPackage.getColumn(), theColumnPackage.getColumn_Table(), "columns", null, 0, -1, Table.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getTable_Constraints(), this.getTableConstraint(), this.getTableConstraint_Table(), "constraints", null, 0, -1, Table.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(tableConstraintEClass, TableConstraint.class, "TableConstraint", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getTableConstraint_Name(), ecorePackage.getEString(), "name", null, 0, 1, TableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getTableConstraint_Table(), this.getTable(), this.getTable_Constraints(), "table", null, 1, 1, TableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(primaryKeyTableConstraintEClass, PrimaryKeyTableConstraint.class, "PrimaryKeyTableConstraint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getPrimaryKeyTableConstraint_Columns(), theColumnPackage.getIndexedColumn(), null, "columns", null, 1, -1, PrimaryKeyTableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(uniqueTableConstraintEClass, UniqueTableConstraint.class, "UniqueTableConstraint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getUniqueTableConstraint_Columns(), theColumnPackage.getIndexedColumn(), null, "columns", null, 1, -1, UniqueTableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(checkTableConstraintEClass, CheckTableConstraint.class, "CheckTableConstraint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getCheckTableConstraint_Expression(), theExpressionPackage.getExpression(), null, "expression", null, 1, 1, CheckTableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(foreignKeyTableConstraintEClass, ForeignKeyTableConstraint.class, "ForeignKeyTableConstraint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getForeignKeyTableConstraint_Columns(), theColumnPackage.getColumn(), null, "columns", null, 1, -1, ForeignKeyTableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getForeignKeyTableConstraint_ForeignTable(), this.getTable(), null, "foreignTable", null, 1, 1, ForeignKeyTableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getForeignKeyTableConstraint_ForeignColumns(), theColumnPackage.getColumn(), null, "foreignColumns", null, 1, -1, ForeignKeyTableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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\tEnginePackage theEnginePackage = (EnginePackage)EPackage.Registry.INSTANCE.getEPackage(EnginePackage.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\tbluetoothPortEClass.getESuperTypes().add(theEnginePackage.getPort());\n\t\tl2CAPInJobEClass.getESuperTypes().add(theEnginePackage.getInputJob());\n\t\tl2CAPoutJobEClass.getESuperTypes().add(theEnginePackage.getOutputJob());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(bluetoothPortEClass, BluetoothPort.class, \"BluetoothPort\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(l2CAPInJobEClass, L2CAPInJob.class, \"L2CAPInJob\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(l2CAPoutJobEClass, L2CAPoutJob.class, \"L2CAPoutJob\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "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_Elements(), this.getElement(), null, \"elements\", 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(elementEClass, Element.class, \"Element\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getElement_State(), this.getState(), null, \"state\", 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_Transition(), this.getTransition(), null, \"transition\", 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(stateEClass, State.class, \"State\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getState_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, State.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getState_StatesProperties(), this.getStatesProperties(), null, \"statesProperties\", null, 0, -1, State.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(statesPropertiesEClass, StatesProperties.class, \"StatesProperties\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getStatesProperties_Color(), ecorePackage.getEString(), \"color\", null, 0, 1, StatesProperties.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getStatesProperties_Thickness(), ecorePackage.getEString(), \"thickness\", null, 0, 1, StatesProperties.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getStatesProperties_Position(), ecorePackage.getEString(), \"position\", null, 0, 1, StatesProperties.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(transitionEClass, Transition.class, \"Transition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getTransition_Start(), this.getCoordinatesStatesTransition(), null, \"start\", 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 initEReference(getTransition_End(), this.getCoordinatesStatesTransition(), null, \"end\", 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 initEReference(getTransition_TransitionProperties(), this.getTransitionProperties(), null, \"transitionProperties\", 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 initEReference(getTransition_Label(), this.getLabel(), null, \"label\", 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 initEAttribute(getTransition_Init(), ecorePackage.getEString(), \"init\", null, 0, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(labelEClass, Label.class, \"Label\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getLabel_Text(), ecorePackage.getEString(), \"text\", null, 0, 1, Label.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getLabel_Position(), ecorePackage.getEString(), \"position\", null, 0, 1, Label.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(coordinatesStatesTransitionEClass, CoordinatesStatesTransition.class, \"CoordinatesStatesTransition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getCoordinatesStatesTransition_StateTransition(), ecorePackage.getEString(), \"stateTransition\", null, 0, 1, CoordinatesStatesTransition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(transitionPropertiesEClass, TransitionProperties.class, \"TransitionProperties\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getTransitionProperties_Color(), ecorePackage.getEString(), \"color\", null, 0, 1, TransitionProperties.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getTransitionProperties_Thickness(), ecorePackage.getEString(), \"thickness\", null, 0, 1, TransitionProperties.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getTransitionProperties_Curve(), ecorePackage.getEString(), \"curve\", null, 0, 1, TransitionProperties.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 }", "public void initializePackageContents() {\n if (this.isInitialized) {\n return;\n }\n this.isInitialized = true;\n\n // Initialize package\n this.setName(eNAME);\n this.setNsPrefix(eNS_PREFIX);\n this.setNsURI(eNS_URI);\n\n // Obtain other dependent packages\n final QosannotationsPackage theQosannotationsPackage = (QosannotationsPackage) EPackage.Registry.INSTANCE\n .getEPackage(QosannotationsPackage.eNS_URI);\n final CorePackage theCorePackage = (CorePackage) EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI);\n final CompositionPackage theCompositionPackage = (CompositionPackage) EPackage.Registry.INSTANCE\n .getEPackage(CompositionPackage.eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n this.systemSpecifiedExecutionTimeEClass.getESuperTypes().add(this.getSpecifiedExecutionTime());\n this.specifiedExecutionTimeEClass.getESuperTypes().add(theQosannotationsPackage.getSpecifiedQoSAnnotation());\n this.componentSpecifiedExecutionTimeEClass.getESuperTypes().add(this.getSpecifiedExecutionTime());\n\n // Initialize classes and features; add operations and parameters\n this.initEClass(this.systemSpecifiedExecutionTimeEClass, SystemSpecifiedExecutionTime.class,\n \"SystemSpecifiedExecutionTime\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n final EOperation op = this.addEOperation(this.systemSpecifiedExecutionTimeEClass,\n this.ecorePackage.getEBoolean(), \"SystemSpecifiedExecutionTimeMustReferenceRequiredRoleOfASystem\", 0, 1,\n IS_UNIQUE, IS_ORDERED);\n this.addEParameter(op, this.ecorePackage.getEDiagnosticChain(), \"diagnostics\", 0, 1, IS_UNIQUE, IS_ORDERED);\n final EGenericType g1 = this.createEGenericType(this.ecorePackage.getEMap());\n EGenericType g2 = this.createEGenericType(this.ecorePackage.getEJavaObject());\n g1.getETypeArguments().add(g2);\n g2 = this.createEGenericType(this.ecorePackage.getEJavaObject());\n g1.getETypeArguments().add(g2);\n this.addEParameter(op, g1, \"context\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n this.initEClass(this.specifiedExecutionTimeEClass, SpecifiedExecutionTime.class, \"SpecifiedExecutionTime\",\n IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n this.initEReference(this.getSpecifiedExecutionTime_Specification_SpecifiedExecutionTime(),\n theCorePackage.getPCMRandomVariable(),\n theCorePackage.getPCMRandomVariable_SpecifiedExecutionTime_PCMRandomVariable(),\n \"specification_SpecifiedExecutionTime\", null, 1, 1, SpecifiedExecutionTime.class, !IS_TRANSIENT,\n !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\n !IS_ORDERED);\n\n this.initEClass(this.componentSpecifiedExecutionTimeEClass, ComponentSpecifiedExecutionTime.class,\n \"ComponentSpecifiedExecutionTime\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n this.initEReference(this.getComponentSpecifiedExecutionTime_AssemblyContext_ComponentSpecifiedExecutionTime(),\n theCompositionPackage.getAssemblyContext(), null, \"assemblyContext_ComponentSpecifiedExecutionTime\",\n null, 1, 1, ComponentSpecifiedExecutionTime.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n }", "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\tPivotModelPackage thePivotModelPackage = (PivotModelPackage) EPackage.Registry.INSTANCE\n\t\t\t\t.getEPackage(PivotModelPackage.eNS_URI);\n\t\tExpressionsPackageImpl theExpressionsPackage = (ExpressionsPackageImpl) EPackage.Registry.INSTANCE\n\t\t\t\t.getEPackage(ExpressionsPackageImpl.eNS_URI);\n\t\tDatatypesPackage theDatatypesPackage = (DatatypesPackage) EPackage.Registry.INSTANCE\n\t\t\t\t.getEPackage(DatatypesPackage.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\tbagTypeEClass.getESuperTypes().add(this.getCollectionType());\n\t\ttupleTypeEClass.getESuperTypes().add(thePivotModelPackage.getType());\n\t\tcollectionTypeEClass.getESuperTypes().add(\n\t\t\t\tthePivotModelPackage.getType());\n\t\tinvalidTypeEClass.getESuperTypes().add(thePivotModelPackage.getType());\n\t\torderedSetTypeEClass.getESuperTypes().add(this.getCollectionType());\n\t\tsequenceTypeEClass.getESuperTypes().add(this.getCollectionType());\n\t\tsetTypeEClass.getESuperTypes().add(this.getCollectionType());\n\t\tvoidTypeEClass.getESuperTypes().add(thePivotModelPackage.getType());\n\t\ttypeTypeEClass.getESuperTypes().add(thePivotModelPackage.getType());\n\t\tanyTypeEClass.getESuperTypes().add(thePivotModelPackage.getType());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(\n\t\t\t\tbagTypeEClass,\n\t\t\t\tBagType.class,\n\t\t\t\t\"BagType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\ttupleTypeEClass,\n\t\t\t\tTupleType.class,\n\t\t\t\t\"TupleType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetTupleType_OclLibrary(),\n\t\t\t\tthis.getOclLibrary(),\n\t\t\t\tnull,\n\t\t\t\t\"oclLibrary\", null, 1, 1, TupleType.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(\n\t\t\t\tcollectionTypeEClass,\n\t\t\t\tCollectionType.class,\n\t\t\t\t\"CollectionType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetCollectionType_ElementType(),\n\t\t\t\tthePivotModelPackage.getType(),\n\t\t\t\tnull,\n\t\t\t\t\"elementType\", null, 0, 1, CollectionType.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\tgetCollectionType_OclLibrary(),\n\t\t\t\tthis.getOclLibrary(),\n\t\t\t\tnull,\n\t\t\t\t\"oclLibrary\", null, 1, 1, CollectionType.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\tgetCollectionType_Kind(),\n\t\t\t\ttheExpressionsPackage.getCollectionKind(),\n\t\t\t\t\"kind\", null, 1, 1, CollectionType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\tinvalidTypeEClass,\n\t\t\t\tInvalidType.class,\n\t\t\t\t\"InvalidType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetInvalidType_OclLibrary(),\n\t\t\t\tthis.getOclLibrary(),\n\t\t\t\tthis.getOclLibrary_OclInvalid(),\n\t\t\t\t\"oclLibrary\", null, 1, 1, InvalidType.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(\n\t\t\t\torderedSetTypeEClass,\n\t\t\t\tOrderedSetType.class,\n\t\t\t\t\"OrderedSetType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\tsequenceTypeEClass,\n\t\t\t\tSequenceType.class,\n\t\t\t\t\"SequenceType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\tsetTypeEClass,\n\t\t\t\tSetType.class,\n\t\t\t\t\"SetType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\tvoidTypeEClass,\n\t\t\t\tVoidType.class,\n\t\t\t\t\"VoidType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetVoidType_OclLibrary(),\n\t\t\t\tthis.getOclLibrary(),\n\t\t\t\tthis.getOclLibrary_OclVoid(),\n\t\t\t\t\"oclLibrary\", null, 1, 1, VoidType.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(\n\t\t\t\ttypeTypeEClass,\n\t\t\t\tTypeType.class,\n\t\t\t\t\"TypeType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetTypeType_RepresentedType(),\n\t\t\t\tthePivotModelPackage.getType(),\n\t\t\t\tnull,\n\t\t\t\t\"representedType\", null, 0, 1, TypeType.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(\n\t\t\t\toclLibraryEClass,\n\t\t\t\tOclLibrary.class,\n\t\t\t\t\"OclLibrary\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetOclLibrary_OclBoolean(),\n\t\t\t\tthePivotModelPackage.getPrimitiveType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclBoolean\", null, 1, 1, OclLibrary.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\tgetOclLibrary_OclString(),\n\t\t\t\tthePivotModelPackage.getPrimitiveType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclString\", null, 1, 1, OclLibrary.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\tgetOclLibrary_OclInteger(),\n\t\t\t\tthePivotModelPackage.getPrimitiveType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclInteger\", null, 1, 1, OclLibrary.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\tgetOclLibrary_OclReal(),\n\t\t\t\tthePivotModelPackage.getPrimitiveType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclReal\", null, 1, 1, OclLibrary.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\tgetOclLibrary_OclAny(),\n\t\t\t\tthis.getAnyType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclAny\", null, 1, 1, OclLibrary.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\tgetOclLibrary_OclVoid(),\n\t\t\t\tthis.getVoidType(),\n\t\t\t\tthis.getVoidType_OclLibrary(),\n\t\t\t\t\"oclVoid\", null, 1, 1, OclLibrary.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\tgetOclLibrary_OclInvalid(),\n\t\t\t\tthis.getInvalidType(),\n\t\t\t\tthis.getInvalidType_OclLibrary(),\n\t\t\t\t\"oclInvalid\", null, 1, 1, OclLibrary.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\tgetOclLibrary_OclType(),\n\t\t\t\tthis.getTypeType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclType\", null, 1, 1, OclLibrary.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\tgetOclLibrary_OclCollection(),\n\t\t\t\tthis.getCollectionType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclCollection\", null, 1, 1, OclLibrary.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\tgetOclLibrary_OclSequence(),\n\t\t\t\tthis.getSequenceType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclSequence\", null, 1, 1, OclLibrary.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\tgetOclLibrary_OclBag(),\n\t\t\t\tthis.getBagType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclBag\", null, 1, 1, OclLibrary.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\tgetOclLibrary_OclSet(),\n\t\t\t\tthis.getSetType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclSet\", null, 1, 1, OclLibrary.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\tgetOclLibrary_OclOrderedSet(),\n\t\t\t\tthis.getOrderedSetType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclOrderedSet\", null, 1, 1, OclLibrary.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\tgetOclLibrary_OclTuple(),\n\t\t\t\tthis.getTupleType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclTuple\", null, 1, -1, OclLibrary.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(oclLibraryEClass, this.getTupleType(),\n\t\t\t\t\"makeTupleType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\tEGenericType g1 = createEGenericType(theDatatypesPackage.getSequence());\n\t\tEGenericType g2 = createEGenericType(thePivotModelPackage.getProperty());\n\t\tg1.getETypeArguments().add(g2);\n\t\taddEParameter(op, g1, \"atts\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\n\t\top = addEOperation(oclLibraryEClass, this.getCollectionType(),\n\t\t\t\t\"getCollectionType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEParameter(op, thePivotModelPackage.getType(),\n\t\t\t\t\"elementType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\n\t\top = addEOperation(oclLibraryEClass, this.getSequenceType(),\n\t\t\t\t\"getSequenceType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEParameter(op, thePivotModelPackage.getType(),\n\t\t\t\t\"elementType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\n\t\top = addEOperation(oclLibraryEClass, this.getBagType(),\n\t\t\t\t\"getBagType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEParameter(op, thePivotModelPackage.getType(),\n\t\t\t\t\"elementType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\n\t\top = addEOperation(oclLibraryEClass, this.getSetType(),\n\t\t\t\t\"getSetType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEParameter(op, thePivotModelPackage.getType(),\n\t\t\t\t\"elementType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\n\t\top = addEOperation(oclLibraryEClass, this.getOrderedSetType(),\n\t\t\t\t\"getOrderedSetType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEParameter(op, thePivotModelPackage.getType(),\n\t\t\t\t\"elementType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\n\t\top = addEOperation(oclLibraryEClass, this.getTypeType(),\n\t\t\t\t\"getTypeType\", 1, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEParameter(op, thePivotModelPackage.getType(),\n\t\t\t\t\"representedType\", 1, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\tanyTypeEClass,\n\t\t\t\tAnyType.class,\n\t\t\t\t\"AnyType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "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\t\tInstancePackage theInstancePackage = (InstancePackage)EPackage.Registry.INSTANCE.getEPackage(InstancePackage.eNS_URI);\r\n\t\tValuetypePackage theValuetypePackage = (ValuetypePackage)EPackage.Registry.INSTANCE.getEPackage(ValuetypePackage.eNS_URI);\r\n\t\tRealtimestatechartPackage theRealtimestatechartPackage = (RealtimestatechartPackage)EPackage.Registry.INSTANCE.getEPackage(RealtimestatechartPackage.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\trunnableEClass.getESuperTypes().add(theCorePackage.getNamedElement());\r\n\t\tlabelEClass.getESuperTypes().add(theCorePackage.getNamedElement());\r\n\t\tlabelAccessEClass.getESuperTypes().add(theCorePackage.getNamedElement());\r\n\r\n\t\t// Initialize classes, features, and operations; add parameters\r\n\t\tinitEClass(runnableEClass, org.muml.pim.runnable.Runnable.class, \"Runnable\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getRunnable_ComponentInstance(), theInstancePackage.getComponentInstance(), theInstancePackage.getComponentInstance_Runnables(), \"componentInstance\", null, 1, 1, org.muml.pim.runnable.Runnable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getRunnable_PortInstance(), theInstancePackage.getPortInstance(), theInstancePackage.getPortInstance_Runnable(), \"portInstance\", null, 0, -1, org.muml.pim.runnable.Runnable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getRunnable_Period(), theValuetypePackage.getTimeValue(), null, \"period\", null, 1, 1, org.muml.pim.runnable.Runnable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getRunnable_LabelAccesses(), this.getLabelAccess(), this.getLabelAccess_AccessingRunnable(), \"labelAccesses\", null, 0, -1, org.muml.pim.runnable.Runnable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getRunnable_Deadline(), theValuetypePackage.getTimeValue(), null, \"deadline\", null, 0, 1, org.muml.pim.runnable.Runnable.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(labelEClass, Label.class, \"Label\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getLabel_ComponentInstance(), theInstancePackage.getComponentInstance(), theInstancePackage.getComponentInstance_Labels(), \"componentInstance\", null, 1, 1, Label.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getLabel_ComponentStatechart(), theRealtimestatechartPackage.getRealtimeStatechart(), null, \"componentStatechart\", null, 0, 1, Label.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getLabel_IsConstant(), ecorePackage.getEBoolean(), \"isConstant\", \"false\", 1, 1, Label.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(labelAccessEClass, LabelAccess.class, \"LabelAccess\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getLabelAccess_AccessKind(), this.getLabelAccessKind(), \"accessKind\", null, 1, 1, LabelAccess.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getLabelAccess_AccessLabel(), this.getLabel(), null, \"accessLabel\", null, 1, 1, LabelAccess.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getLabelAccess_AccessingRunnable(), this.getRunnable(), this.getRunnable_LabelAccesses(), \"accessingRunnable\", null, 1, 1, LabelAccess.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(labelAccessKindEEnum, LabelAccessKind.class, \"LabelAccessKind\");\r\n\t\taddEEnumLiteral(labelAccessKindEEnum, LabelAccessKind.READACCESS);\r\n\t\taddEEnumLiteral(labelAccessKindEEnum, LabelAccessKind.WRITEACCESS);\r\n\t}", "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 intentEClass.getESuperTypes().add(this.getAgent());\n entityEClass.getESuperTypes().add(this.getAgent());\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_Agent(), this.getAgent(), null, \"agent\", 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(agentEClass, Agent.class, \"Agent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getAgent_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Agent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(intentEClass, Intent.class, \"Intent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getIntent_SuperType(), this.getIntent(), null, \"superType\", null, 0, 1, Intent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getIntent_IsFollowUp(), this.getIsFollowUp(), null, \"isFollowUp\", null, 0, 1, Intent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getIntent_Question(), this.getQuestion(), null, \"question\", null, 0, -1, Intent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getIntent_Training(), this.getTraining(), null, \"training\", null, 0, 1, Intent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(isFollowUpEClass, IsFollowUp.class, \"IsFollowUp\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getIsFollowUp_Intent(), this.getIntent(), null, \"intent\", null, 0, 1, IsFollowUp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(entityEClass, Entity.class, \"Entity\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getEntity_Example(), this.getEntityExample(), null, \"example\", 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 initEClass(questionEClass, Question.class, \"Question\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getQuestion_QuestionEntity(), this.getQuestionEntity(), null, \"questionEntity\", null, 0, 1, Question.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getQuestion_Prompt(), ecorePackage.getEString(), \"prompt\", null, 0, 1, Question.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(questionEntityEClass, QuestionEntity.class, \"QuestionEntity\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getQuestionEntity_WithEntity(), this.getReference(), null, \"withEntity\", null, 0, 1, QuestionEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(trainingEClass, Training.class, \"Training\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getTraining_Trainingref(), this.getTrainingRef(), null, \"trainingref\", null, 0, -1, Training.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(trainingRefEClass, TrainingRef.class, \"TrainingRef\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getTrainingRef_Phrase(), ecorePackage.getEString(), \"phrase\", null, 0, 1, TrainingRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getTrainingRef_Declaration(), this.getDeclaration(), null, \"declaration\", null, 0, 1, TrainingRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(declarationEClass, Declaration.class, \"Declaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getDeclaration_Trainingstring(), ecorePackage.getEString(), \"trainingstring\", null, 0, 1, Declaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getDeclaration_Reference(), this.getReference(), null, \"reference\", 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(entityExampleEClass, EntityExample.class, \"EntityExample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getEntityExample_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, EntityExample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(sysvariableEClass, Sysvariable.class, \"Sysvariable\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getSysvariable_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, Sysvariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(referenceEClass, Reference.class, \"Reference\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getReference_Entity(), this.getEntity(), null, \"entity\", null, 0, 1, Reference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getReference_Sysvar(), this.getSysvariable(), null, \"sysvar\", null, 0, 1, Reference.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 }", "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(metadataEClass, Metadata.class, \"Metadata\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMetadata_Gamename(), ecorePackage.getEString(), \"Gamename\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Shortname(), ecorePackage.getEString(), \"Shortname\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Timing(), ecorePackage.getEString(), \"Timing\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Adressing(), ecorePackage.getEString(), \"Adressing\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_CartridgeType(), ecorePackage.getEString(), \"CartridgeType\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_RomSize(), ecorePackage.getEString(), \"RomSize\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_RamSize(), ecorePackage.getEString(), \"RamSize\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Licensee(), ecorePackage.getEString(), \"Licensee\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Country(), ecorePackage.getEString(), \"Country\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Videoformat(), ecorePackage.getEString(), \"Videoformat\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Version(), ecorePackage.getEInt(), \"Version\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_IdeVersion(), ecorePackage.getEString(), \"IdeVersion\", null, 0, 1, Metadata.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}", "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\torg.abchip.mimo.entity.EntityPackage theEntityPackage_1 = (org.abchip.mimo.entity.EntityPackage)EPackage.Registry.INSTANCE.getEPackage(org.abchip.mimo.entity.EntityPackage.eNS_URI);\n\t\tPartyPackage thePartyPackage_1 = (PartyPackage)EPackage.Registry.INSTANCE.getEPackage(PartyPackage.eNS_URI);\n\t\tStatusPackage theStatusPackage = (StatusPackage)EPackage.Registry.INSTANCE.getEPackage(StatusPackage.eNS_URI);\n\t\tContentPackage theContentPackage = (ContentPackage)EPackage.Registry.INSTANCE.getEPackage(ContentPackage.eNS_URI);\n\t\tPositionPackage thePositionPackage = (PositionPackage)EPackage.Registry.INSTANCE.getEPackage(PositionPackage.eNS_URI);\n\t\tPaymentPackage thePaymentPackage = (PaymentPackage)EPackage.Registry.INSTANCE.getEPackage(PaymentPackage.eNS_URI);\n\t\tTrainingsPackage theTrainingsPackage = (TrainingsPackage)EPackage.Registry.INSTANCE.getEPackage(TrainingsPackage.eNS_URI);\n\t\tWorkeffortPackage theWorkeffortPackage = (WorkeffortPackage)EPackage.Registry.INSTANCE.getEPackage(WorkeffortPackage.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(theEntityPackage_1.getEntityTyped());\n\t\tEGenericType g2 = createEGenericType(this.getPartyQualType());\n\t\tg1.getETypeArguments().add(g2);\n\t\tpartyQualEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tpartyQualEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityType());\n\t\tg2 = createEGenericType(this.getPartyQual());\n\t\tg1.getETypeArguments().add(g2);\n\t\tpartyQualTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tpartyQualTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tpartyResumeEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tpartyResumeEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tpartySkillEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tpartySkillEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tperfRatingTypeEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tperfRatingTypeEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tperfReviewEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tperfReviewEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityTyped());\n\t\tg2 = createEGenericType(this.getPerfReviewItemType());\n\t\tg1.getETypeArguments().add(g2);\n\t\tperfReviewItemEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tperfReviewItemEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityType());\n\t\tg2 = createEGenericType(this.getPerfReviewItem());\n\t\tg1.getETypeArguments().add(g2);\n\t\tperfReviewItemTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tperfReviewItemTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tperformanceNoteEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tperformanceNoteEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tpersonTrainingEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tpersonTrainingEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tresponsibilityTypeEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tresponsibilityTypeEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tskillTypeEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tskillTypeEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\ttrainingClassTypeEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\ttrainingClassTypeEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(partyQualEClass, PartyQual.class, \"PartyQual\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPartyQual_Party(), thePartyPackage_1.getParty(), null, \"party\", null, 1, 1, PartyQual.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPartyQual_PartyQualType(), this.getPartyQualType(), null, \"partyQualType\", null, 1, 1, PartyQual.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPartyQual_FromDate(), ecorePackage.getEDate(), \"fromDate\", null, 1, 1, PartyQual.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPartyQual_QualificationDesc(), ecorePackage.getEString(), \"qualificationDesc\", null, 0, 1, PartyQual.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPartyQual_Status(), theStatusPackage.getStatusItem(), null, \"status\", null, 0, 1, PartyQual.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPartyQual_ThruDate(), ecorePackage.getEDate(), \"thruDate\", null, 0, 1, PartyQual.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPartyQual_Title(), ecorePackage.getEString(), \"title\", null, 0, 1, PartyQual.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPartyQual_VerifStatus(), theStatusPackage.getStatusItem(), null, \"verifStatus\", null, 0, 1, PartyQual.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(partyQualTypeEClass, PartyQualType.class, \"PartyQualType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPartyQualType_PartyQualTypeId(), ecorePackage.getEString(), \"partyQualTypeId\", null, 1, 1, PartyQualType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPartyQualType_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, PartyQualType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPartyQualType_HasTable(), ecorePackage.getEBooleanObject(), \"hasTable\", null, 0, 1, PartyQualType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPartyQualType_ParentType(), this.getPartyQualType(), null, \"parentType\", null, 0, 1, PartyQualType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(partyResumeEClass, PartyResume.class, \"PartyResume\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPartyResume_ResumeId(), ecorePackage.getEString(), \"resumeId\", null, 1, 1, PartyResume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPartyResume_Content(), theContentPackage.getContent(), null, \"content\", null, 0, 1, PartyResume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPartyResume_Party(), thePartyPackage_1.getParty(), null, \"party\", null, 0, 1, PartyResume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPartyResume_ResumeDate(), ecorePackage.getEDate(), \"resumeDate\", null, 0, 1, PartyResume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPartyResume_ResumeText(), ecorePackage.getEString(), \"resumeText\", null, 0, 1, PartyResume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(partySkillEClass, PartySkill.class, \"PartySkill\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPartySkill_Party(), thePartyPackage_1.getParty(), null, \"party\", null, 1, 1, PartySkill.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPartySkill_SkillType(), this.getSkillType(), null, \"skillType\", null, 1, 1, PartySkill.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPartySkill_Rating(), ecorePackage.getELong(), \"rating\", null, 0, 1, PartySkill.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPartySkill_SkillLevel(), ecorePackage.getELong(), \"skillLevel\", null, 0, 1, PartySkill.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPartySkill_StartedUsingDate(), ecorePackage.getEDate(), \"startedUsingDate\", null, 0, 1, PartySkill.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPartySkill_YearsExperience(), ecorePackage.getELong(), \"yearsExperience\", null, 0, 1, PartySkill.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(perfRatingTypeEClass, PerfRatingType.class, \"PerfRatingType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPerfRatingType_PerfRatingTypeId(), ecorePackage.getEString(), \"perfRatingTypeId\", null, 1, 1, PerfRatingType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerfRatingType_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, PerfRatingType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerfRatingType_HasTable(), ecorePackage.getEBooleanObject(), \"hasTable\", null, 0, 1, PerfRatingType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPerfRatingType_ParentType(), this.getPerfRatingType(), null, \"parentType\", null, 0, 1, PerfRatingType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(perfReviewEClass, PerfReview.class, \"PerfReview\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPerfReview_EmployeeParty(), thePartyPackage_1.getParty(), null, \"employeeParty\", null, 1, 1, PerfReview.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerfReview_EmployeeRoleTypeId(), ecorePackage.getEString(), \"employeeRoleTypeId\", null, 1, 1, PerfReview.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerfReview_PerfReviewId(), ecorePackage.getEString(), \"perfReviewId\", null, 1, 1, PerfReview.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerfReview_Comments(), ecorePackage.getEString(), \"comments\", null, 0, 1, PerfReview.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPerfReview_EmplPosition(), thePositionPackage.getEmplPosition(), null, \"emplPosition\", null, 0, 1, PerfReview.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerfReview_FromDate(), ecorePackage.getEDate(), \"fromDate\", null, 0, 1, PerfReview.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPerfReview_ManagerParty(), thePartyPackage_1.getParty(), null, \"managerParty\", null, 0, 1, PerfReview.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerfReview_ManagerRoleTypeId(), ecorePackage.getEString(), \"managerRoleTypeId\", null, 0, 1, PerfReview.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPerfReview_Payment(), thePaymentPackage.getPayment(), null, \"payment\", null, 0, 1, PerfReview.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerfReview_ThruDate(), ecorePackage.getEDate(), \"thruDate\", null, 0, 1, PerfReview.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(perfReviewItemEClass, PerfReviewItem.class, \"PerfReviewItem\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPerfReviewItem_EmployeeParty(), thePartyPackage_1.getParty(), null, \"employeeParty\", null, 1, 1, PerfReviewItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerfReviewItem_EmployeeRoleTypeId(), ecorePackage.getEString(), \"employeeRoleTypeId\", null, 1, 1, PerfReviewItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerfReviewItem_PerfReviewId(), ecorePackage.getEString(), \"perfReviewId\", null, 1, 1, PerfReviewItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerfReviewItem_PerfReviewItemSeqId(), ecorePackage.getEString(), \"perfReviewItemSeqId\", null, 1, 1, PerfReviewItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerfReviewItem_Comments(), ecorePackage.getEString(), \"comments\", null, 0, 1, PerfReviewItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPerfReviewItem_PerfRatingType(), this.getPerfRatingType(), null, \"perfRatingType\", null, 0, 1, PerfReviewItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPerfReviewItem_PerfReviewItemType(), this.getPerfReviewItemType(), null, \"perfReviewItemType\", null, 0, 1, PerfReviewItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(perfReviewItemTypeEClass, PerfReviewItemType.class, \"PerfReviewItemType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPerfReviewItemType_PerfReviewItemTypeId(), ecorePackage.getEString(), \"perfReviewItemTypeId\", null, 1, 1, PerfReviewItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerfReviewItemType_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, PerfReviewItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerfReviewItemType_HasTable(), ecorePackage.getEBooleanObject(), \"hasTable\", null, 0, 1, PerfReviewItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPerfReviewItemType_ParentType(), this.getPerfReviewItemType(), null, \"parentType\", null, 0, 1, PerfReviewItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(performanceNoteEClass, PerformanceNote.class, \"PerformanceNote\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPerformanceNote_Party(), thePartyPackage_1.getParty(), null, \"party\", null, 1, 1, PerformanceNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerformanceNote_FromDate(), ecorePackage.getEDate(), \"fromDate\", null, 1, 1, PerformanceNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerformanceNote_RoleTypeId(), ecorePackage.getEString(), \"roleTypeId\", null, 1, 1, PerformanceNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerformanceNote_Comments(), ecorePackage.getEString(), \"comments\", null, 0, 1, PerformanceNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerformanceNote_CommunicationDate(), ecorePackage.getEDate(), \"communicationDate\", null, 0, 1, PerformanceNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerformanceNote_ThruDate(), ecorePackage.getEDate(), \"thruDate\", null, 0, 1, PerformanceNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(personTrainingEClass, PersonTraining.class, \"PersonTraining\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPersonTraining_Party(), thePartyPackage_1.getPerson(), null, \"party\", null, 1, 1, PersonTraining.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPersonTraining_TrainingClassType(), this.getTrainingClassType(), null, \"trainingClassType\", null, 1, 1, PersonTraining.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPersonTraining_FromDate(), ecorePackage.getEDate(), \"fromDate\", null, 1, 1, PersonTraining.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPersonTraining_ApprovalStatus(), ecorePackage.getEString(), \"approvalStatus\", null, 0, 1, PersonTraining.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPersonTraining_Approver(), thePartyPackage_1.getPerson(), null, \"approver\", null, 0, 1, PersonTraining.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPersonTraining_Reason(), ecorePackage.getEString(), \"reason\", null, 0, 1, PersonTraining.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPersonTraining_ThruDate(), ecorePackage.getEDate(), \"thruDate\", null, 0, 1, PersonTraining.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPersonTraining_TrainingRequest(), theTrainingsPackage.getTrainingRequest(), null, \"trainingRequest\", null, 0, 1, PersonTraining.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPersonTraining_WorkEffort(), theWorkeffortPackage.getWorkEffort(), null, \"workEffort\", null, 0, 1, PersonTraining.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(responsibilityTypeEClass, ResponsibilityType.class, \"ResponsibilityType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getResponsibilityType_ResponsibilityTypeId(), ecorePackage.getEString(), \"responsibilityTypeId\", null, 1, 1, ResponsibilityType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getResponsibilityType_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, ResponsibilityType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getResponsibilityType_HasTable(), ecorePackage.getEBooleanObject(), \"hasTable\", null, 0, 1, ResponsibilityType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getResponsibilityType_ParentType(), this.getResponsibilityType(), null, \"parentType\", null, 0, 1, ResponsibilityType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(skillTypeEClass, SkillType.class, \"SkillType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getSkillType_SkillTypeId(), ecorePackage.getEString(), \"skillTypeId\", null, 1, 1, SkillType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSkillType_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, SkillType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSkillType_HasTable(), ecorePackage.getEBooleanObject(), \"hasTable\", null, 0, 1, SkillType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSkillType_ParentType(), this.getSkillType(), null, \"parentType\", null, 0, 1, SkillType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(trainingClassTypeEClass, TrainingClassType.class, \"TrainingClassType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getTrainingClassType_TrainingClassTypeId(), ecorePackage.getEString(), \"trainingClassTypeId\", null, 1, 1, TrainingClassType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTrainingClassType_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, TrainingClassType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTrainingClassType_HasTable(), ecorePackage.getEBooleanObject(), \"hasTable\", null, 0, 1, TrainingClassType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTrainingClassType_ParentType(), this.getTrainingClassType(), null, \"parentType\", null, 0, 1, TrainingClassType.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\n\t\t// Create annotations\n\t\t// mimo-ent-frame\n\t\tcreateMimoentframeAnnotations();\n\t\t// mimo-ent-slot\n\t\tcreateMimoentslotAnnotations();\n\t\t// mimo-ent-format\n\t\tcreateMimoentformatAnnotations();\n\t}", "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\tEntityPackage theEntityPackage = (EntityPackage)EPackage.Registry.INSTANCE.getEPackage(EntityPackage.eNS_URI);\n\t\tContextPackage theContextPackage = (ContextPackage)EPackage.Registry.INSTANCE.getEPackage(ContextPackage.eNS_URI);\n\t\tJavaPackage theJavaPackage = (JavaPackage)EPackage.Registry.INSTANCE.getEPackage(JavaPackage.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\taudioEClass.getESuperTypes().add(theEntityPackage.getEntityIdentifiable());\n\t\taudioRecorderEClass.getESuperTypes().add(theJavaPackage.getJavaCloseable());\n\t\taudioPlayerEClass.getESuperTypes().add(theJavaPackage.getJavaCloseable());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(audioEClass, Audio.class, \"Audio\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getAudio_Content(), ecorePackage.getEByteArray(), \"content\", null, 0, 1, Audio.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAudio_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, Audio.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAudio_Text(), ecorePackage.getEString(), \"text\", null, 1, 1, Audio.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(audioManagerEClass, AudioManager.class, \"AudioManager\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tEOperation op = addEOperation(audioManagerEClass, this.getAudioRecorder(), \"record\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, theContextPackage.getContext(), \"context\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = addEOperation(audioManagerEClass, this.getAudioPlayer(), \"play\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, theContextPackage.getContext(), \"context\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, this.getAudio(), \"audio\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEBoolean(), \"start\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEBoolean(), \"waitEnd\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = addEOperation(audioManagerEClass, this.getAudioPlayer(), \"play\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, theContextPackage.getContext(), \"context\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, this.getAudioStyle(), \"style\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEString(), \"text\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEBoolean(), \"start\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEBoolean(), \"waitEnd\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(audioRecorderEClass, AudioRecorder.class, \"AudioRecorder\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\taddEOperation(audioRecorderEClass, null, \"close\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioRecorderEClass, theJavaPackage.getJavaOutputStream(), \"getOutputStream\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioRecorderEClass, ecorePackage.getEBoolean(), \"isStopped\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioRecorderEClass, null, \"start\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioRecorderEClass, null, \"stop\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(audioPlayerEClass, AudioPlayer.class, \"AudioPlayer\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\taddEOperation(audioPlayerEClass, null, \"close\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioPlayerEClass, this.getAudio(), \"getAudio\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioPlayerEClass, ecorePackage.getEBoolean(), \"isStopped\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioPlayerEClass, null, \"start\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioPlayerEClass, null, \"stop\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(audioStyleEEnum, AudioStyle.class, \"AudioStyle\");\n\t\taddEEnumLiteral(audioStyleEEnum, AudioStyle.A);\n\t\taddEEnumLiteral(audioStyleEEnum, AudioStyle.B);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "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// Initialize data types\n\t\tinitEDataType(featureNotFoundExceptionEDataType, FeatureNotFoundException.class, \"FeatureNotFoundException\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n\t}", "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\tUMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI);\n\t\tTypesPackage theTypesPackage = (TypesPackage)EPackage.Registry.INSTANCE.getEPackage(TypesPackage.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(textualRepresentationEClass, TextualRepresentation.class, \"TextualRepresentation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTextualRepresentation_Base_Comment(), theUMLPackage.getComment(), null, \"base_Comment\", null, 1, 1, TextualRepresentation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getTextualRepresentation_Language(), theTypesPackage.getString(), \"language\", null, 1, 1, TextualRepresentation.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}", "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\torg.unicase.model.ModelPackage theModelPackage_1 = (org.unicase.model.ModelPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(org.unicase.model.ModelPackage.eNS_URI);\r\n\t\tTaskPackage theTaskPackage = (TaskPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(TaskPackage.eNS_URI);\r\n\t\torg.eclipse.emf.emfstore.internal.common.model.ModelPackage theModelPackage_2 = (org.eclipse.emf.emfstore.internal.common.model.ModelPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(org.eclipse.emf.emfstore.internal.common.model.ModelPackage.eNS_URI);\r\n\t\tOrganizationPackage theOrganizationPackage = (OrganizationPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(OrganizationPackage.eNS_URI);\r\n\t\tAttachmentPackage theAttachmentPackage = (AttachmentPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(AttachmentPackage.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\tissueEClass.getESuperTypes().add(theModelPackage_1.getAnnotation());\r\n\t\tissueEClass.getESuperTypes().add(theTaskPackage.getCheckable());\r\n\t\tissueEClass.getESuperTypes().add(theTaskPackage.getWorkItem());\r\n\t\tproposalEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_1.getUnicaseModelElement());\r\n\t\tproposalEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_2.getNonDomainElement());\r\n\t\tsolutionEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_1.getUnicaseModelElement());\r\n\t\tsolutionEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_2.getNonDomainElement());\r\n\t\tcriterionEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_1.getUnicaseModelElement());\r\n\t\tassessmentEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_1.getUnicaseModelElement());\r\n\t\tassessmentEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_2.getNonDomainElement());\r\n\t\tcommentEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_1.getUnicaseModelElement());\r\n\t\tcommentEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_2.getNonDomainElement());\r\n\r\n\t\t// Initialize classes and features; add operations and parameters\r\n\t\tinitEClass(issueEClass, Issue.class, \"Issue\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getIssue_Proposals(), this.getProposal(),\r\n\t\t\t\tthis.getProposal_Issue(), \"proposals\", null, 0, -1,\r\n\t\t\t\tIssue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\tIS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getIssue_Solution(), this.getSolution(),\r\n\t\t\t\tthis.getSolution_Issue(), \"solution\", null, 0, 1, Issue.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(getIssue_Criteria(), this.getCriterion(), null,\r\n\t\t\t\t\"criteria\", null, 0, -1, Issue.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\tinitEAttribute(getIssue_Activity(), theTaskPackage.getActivityType(),\r\n\t\t\t\t\"activity\", null, 0, 1, Issue.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\tinitEReference(getIssue_Assessments(), this.getAssessment(), null,\r\n\t\t\t\t\"assessments\", null, 0, -1, Issue.class, IS_TRANSIENT,\r\n\t\t\t\tIS_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(proposalEClass, Proposal.class, \"Proposal\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getProposal_Assessments(), this.getAssessment(),\r\n\t\t\t\tthis.getAssessment_Proposal(), \"assessments\", null, 0, -1,\r\n\t\t\t\tProposal.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\tIS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getProposal_Issue(), this.getIssue(),\r\n\t\t\t\tthis.getIssue_Proposals(), \"issue\", null, 0, 1, Proposal.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\tinitEClass(solutionEClass, Solution.class, \"Solution\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getSolution_UnderlyingProposals(), this.getProposal(),\r\n\t\t\t\tnull, \"underlyingProposals\", null, 0, -1, Solution.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(getSolution_Issue(), this.getIssue(),\r\n\t\t\t\tthis.getIssue_Solution(), \"issue\", null, 0, 1, Solution.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\tinitEClass(criterionEClass, Criterion.class, \"Criterion\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getCriterion_Assessments(), this.getAssessment(),\r\n\t\t\t\tthis.getAssessment_Criterion(), \"assessments\", null, 0, -1,\r\n\t\t\t\tCriterion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\t!IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(assessmentEClass, Assessment.class, \"Assessment\",\r\n\t\t\t\t!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAssessment_Proposal(), this.getProposal(),\r\n\t\t\t\tthis.getProposal_Assessments(), \"proposal\", null, 0, 1,\r\n\t\t\t\tAssessment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\t!IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAssessment_Criterion(), this.getCriterion(),\r\n\t\t\t\tthis.getCriterion_Assessments(), \"criterion\", null, 0, 1,\r\n\t\t\t\tAssessment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\t!IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getAssessment_Value(), ecorePackage.getEInt(), \"value\",\r\n\t\t\t\tnull, 0, 1, Assessment.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(commentEClass, Comment.class, \"Comment\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getComment_Sender(),\r\n\t\t\t\ttheOrganizationPackage.getOrgUnit(), null, \"sender\", null, 0,\r\n\t\t\t\t1, Comment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\t!IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getComment_Recipients(),\r\n\t\t\t\ttheOrganizationPackage.getOrgUnit(), null, \"recipients\", null,\r\n\t\t\t\t0, -1, Comment.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\tinitEReference(getComment_CommentedElement(),\r\n\t\t\t\ttheModelPackage_1.getUnicaseModelElement(),\r\n\t\t\t\ttheModelPackage_1.getUnicaseModelElement_Comments(),\r\n\t\t\t\t\"commentedElement\", null, 0, 1, Comment.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(audioCommentEClass, AudioComment.class, \"AudioComment\",\r\n\t\t\t\t!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAudioComment_AudioFile(),\r\n\t\t\t\ttheAttachmentPackage.getFileAttachment(), null, \"audioFile\",\r\n\t\t\t\tnull, 0, 1, AudioComment.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\t// Create annotations\r\n\t\t// org.eclipse.emf.ecp.editor\r\n\t\tcreateOrgAnnotations();\r\n\t}", "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\torg.palladiosimulator.pcm.core.composition.CompositionPackage theCompositionPackage_1 = (org.palladiosimulator.pcm.core.composition.CompositionPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(org.palladiosimulator.pcm.core.composition.CompositionPackage.eNS_URI);\r\n\t\torg.palladiosimulator.pcm.repository.RepositoryPackage theRepositoryPackage_1 = (org.palladiosimulator.pcm.repository.RepositoryPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(org.palladiosimulator.pcm.repository.RepositoryPackage.eNS_URI);\r\n\t\tCompositionPackage theCompositionPackage = (CompositionPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(CompositionPackage.eNS_URI);\r\n\t\tPartitioningPackage thePartitioningPackage = (PartitioningPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(PartitioningPackage.eNS_URI);\r\n\t\tDatatypesPackage theDatatypesPackage = (DatatypesPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(DatatypesPackage.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\tdataChannelEClass.getESuperTypes().add(theCompositionPackage_1.getEventChannel());\r\n\r\n\t\t// Initialize classes and features; add operations and parameters\r\n\t\tinitEClass(dataChannelEClass, DataChannel.class, \"DataChannel\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getDataChannel_Capacity(), ecorePackage.getEInt(), \"capacity\", \"-1\", 1, 1, DataChannel.class,\r\n\t\t\t\tIS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getDataChannel_SourceEventGroup(), theRepositoryPackage_1.getEventGroup(), null,\r\n\t\t\t\t\"sourceEventGroup\", null, 1, 1, DataChannel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\t!IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getDataChannel_SinkEventGroup(), theRepositoryPackage_1.getEventGroup(), null, \"sinkEventGroup\",\r\n\t\t\t\tnull, 1, 1, DataChannel.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(getDataChannel_DataChannelSourceConnector(),\r\n\t\t\t\ttheCompositionPackage.getDataChannelSourceConnector(),\r\n\t\t\t\ttheCompositionPackage.getDataChannelSourceConnector_DataChannel(), \"dataChannelSourceConnector\", null,\r\n\t\t\t\t0, -1, DataChannel.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(getDataChannel_DataChannelSinkConnector(), theCompositionPackage.getDataChannelSinkConnector(),\r\n\t\t\t\ttheCompositionPackage.getDataChannelSinkConnector_DataChannel(), \"dataChannelSinkConnector\", null, 0,\r\n\t\t\t\t-1, DataChannel.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(getDataChannel_Partitioning(), thePartitioningPackage.getPartitioning(), null, \"partitioning\",\r\n\t\t\t\tnull, 0, 1, DataChannel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,\r\n\t\t\t\t!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getDataChannel_TimeGrouping(), thePartitioningPackage.getTimeGrouping(), null, \"timeGrouping\",\r\n\t\t\t\tnull, 0, 1, DataChannel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,\r\n\t\t\t\t!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getDataChannel_Joins(), thePartitioningPackage.getJoining(), null, \"joins\", null, 0, -1,\r\n\t\t\t\tDataChannel.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\tinitEAttribute(getDataChannel_OutgoingDistribution(), theDatatypesPackage.getOutgoingDistribution(),\r\n\t\t\t\t\"outgoingDistribution\", null, 0, 1, DataChannel.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\t\tinitEAttribute(getDataChannel_Scheduling(), theDatatypesPackage.getScheduling(), \"scheduling\", null, 0, 1,\r\n\t\t\t\tDataChannel.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(getDataChannel_PutPolicy(), theDatatypesPackage.getPutPolicy(), \"putPolicy\", null, 0, 1,\r\n\t\t\t\tDataChannel.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\t// Create resource\r\n\t\tcreateResource(eNS_URI);\r\n\t}", "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 openEClass.getESuperTypes().add(this.getINSTRUCTION());\n gotoEClass.getESuperTypes().add(this.getINSTRUCTION());\n clickEClass.getESuperTypes().add(this.getINSTRUCTION());\n fillEClass.getESuperTypes().add(this.getINSTRUCTION());\n checkEClass.getESuperTypes().add(this.getINSTRUCTION());\n uncheckEClass.getESuperTypes().add(this.getINSTRUCTION());\n selectEClass.getESuperTypes().add(this.getINSTRUCTION());\n readEClass.getESuperTypes().add(this.getINSTRUCTION());\n verifyEClass.getESuperTypes().add(this.getINSTRUCTION());\n verifY_CONTAINSEClass.getESuperTypes().add(this.getVERIFY());\n verifY_EQUALSEClass.getESuperTypes().add(this.getVERIFY());\n countEClass.getESuperTypes().add(this.getINSTRUCTION());\n playEClass.getESuperTypes().add(this.getINSTRUCTION());\n\n // Initialize classes and features; add operations and parameters\n initEClass(programmeEClass, org.xtext.project.browserautomationdsl.domainmodel.PROGRAMME.class, \"PROGRAMME\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getPROGRAMME_Procedures(), this.getPROCEDURE(), null, \"procedures\", null, 0, -1, org.xtext.project.browserautomationdsl.domainmodel.PROGRAMME.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(procedureEClass, org.xtext.project.browserautomationdsl.domainmodel.PROCEDURE.class, \"PROCEDURE\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getPROCEDURE_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.PROCEDURE.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getPROCEDURE_Param(), ecorePackage.getEString(), \"param\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.PROCEDURE.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getPROCEDURE_Params(), ecorePackage.getEString(), \"params\", null, 0, -1, org.xtext.project.browserautomationdsl.domainmodel.PROCEDURE.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getPROCEDURE_Inst(), this.getINSTRUCTION(), null, \"inst\", null, 0, -1, org.xtext.project.browserautomationdsl.domainmodel.PROCEDURE.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(instructionEClass, org.xtext.project.browserautomationdsl.domainmodel.INSTRUCTION.class, \"INSTRUCTION\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(openEClass, org.xtext.project.browserautomationdsl.domainmodel.OPEN.class, \"OPEN\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getOPEN_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.OPEN.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getOPEN_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.OPEN.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(gotoEClass, org.xtext.project.browserautomationdsl.domainmodel.GOTO.class, \"GOTO\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getGOTO_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.GOTO.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getGOTO_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.GOTO.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(clickEClass, org.xtext.project.browserautomationdsl.domainmodel.CLICK.class, \"CLICK\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getCLICK_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.CLICK.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getCLICK_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.CLICK.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getCLICK_Identifier(), this.getELEMENTIDENTIFIER(), null, \"identifier\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.CLICK.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(fillEClass, org.xtext.project.browserautomationdsl.domainmodel.FILL.class, \"FILL\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getFILL_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.FILL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getFILL_FieldType(), ecorePackage.getEString(), \"fieldType\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.FILL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getFILL_Identifier(), this.getELEMENTIDENTIFIER(), null, \"identifier\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.FILL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getFILL_Var(), ecorePackage.getEString(), \"var\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.FILL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getFILL_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.FILL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(checkEClass, org.xtext.project.browserautomationdsl.domainmodel.CHECK.class, \"CHECK\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getCHECK_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.CHECK.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getCHECK_All(), ecorePackage.getEString(), \"all\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.CHECK.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getCHECK_Identifier(), this.getELEMENTIDENTIFIER(), null, \"identifier\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.CHECK.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(uncheckEClass, org.xtext.project.browserautomationdsl.domainmodel.UNCHECK.class, \"UNCHECK\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getUNCHECK_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.UNCHECK.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getUNCHECK_All(), ecorePackage.getEString(), \"all\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.UNCHECK.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getUNCHECK_Identifier(), this.getELEMENTIDENTIFIER(), null, \"identifier\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.UNCHECK.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(selectEClass, org.xtext.project.browserautomationdsl.domainmodel.SELECT.class, \"SELECT\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getSELECT_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.SELECT.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getSELECT_Elem(), ecorePackage.getEString(), \"elem\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.SELECT.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getSELECT_Identifier(), this.getELEMENTIDENTIFIER(), null, \"identifier\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.SELECT.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(readEClass, org.xtext.project.browserautomationdsl.domainmodel.READ.class, \"READ\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getREAD_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.READ.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getREAD_Identifier(), this.getELEMENTIDENTIFIER(), null, \"identifier\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.READ.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getREAD_SavePath(), this.getSAVEVAR(), null, \"savePath\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.READ.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(elementidentifierEClass, org.xtext.project.browserautomationdsl.domainmodel.ELEMENTIDENTIFIER.class, \"ELEMENTIDENTIFIER\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getELEMENTIDENTIFIER_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.ELEMENTIDENTIFIER.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getELEMENTIDENTIFIER_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.ELEMENTIDENTIFIER.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getELEMENTIDENTIFIER_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.ELEMENTIDENTIFIER.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getELEMENTIDENTIFIER_Info(), ecorePackage.getEString(), \"info\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.ELEMENTIDENTIFIER.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getELEMENTIDENTIFIER_Var(), ecorePackage.getEString(), \"var\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.ELEMENTIDENTIFIER.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(verifyEClass, org.xtext.project.browserautomationdsl.domainmodel.VERIFY.class, \"VERIFY\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getVERIFY_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.VERIFY.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(verifY_CONTAINSEClass, org.xtext.project.browserautomationdsl.domainmodel.VERIFY_CONTAINS.class, \"VERIFY_CONTAINS\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getVERIFY_CONTAINS_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.VERIFY_CONTAINS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getVERIFY_CONTAINS_Identifier(), this.getELEMENTIDENTIFIER(), null, \"identifier\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.VERIFY_CONTAINS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getVERIFY_CONTAINS_ContainedIdentifier(), this.getELEMENTIDENTIFIER(), null, \"containedIdentifier\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.VERIFY_CONTAINS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getVERIFY_CONTAINS_Variable(), this.getREGISTERED_VALUE(), null, \"variable\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.VERIFY_CONTAINS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(verifY_EQUALSEClass, org.xtext.project.browserautomationdsl.domainmodel.VERIFY_EQUALS.class, \"VERIFY_EQUALS\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getVERIFY_EQUALS_Operation(), this.getCOUNT(), null, \"operation\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.VERIFY_EQUALS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getVERIFY_EQUALS_RegisteredValue(), this.getREGISTERED_VALUE(), null, \"registeredValue\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.VERIFY_EQUALS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(registereD_VALUEEClass, org.xtext.project.browserautomationdsl.domainmodel.REGISTERED_VALUE.class, \"REGISTERED_VALUE\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getREGISTERED_VALUE_Var(), ecorePackage.getEString(), \"var\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.REGISTERED_VALUE.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(countEClass, org.xtext.project.browserautomationdsl.domainmodel.COUNT.class, \"COUNT\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getCOUNT_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.COUNT.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getCOUNT_Identifier(), this.getELEMENTIDENTIFIER(), null, \"identifier\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.COUNT.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getCOUNT_SaveVariable(), this.getSAVEVAR(), null, \"saveVariable\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.COUNT.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(savevarEClass, org.xtext.project.browserautomationdsl.domainmodel.SAVEVAR.class, \"SAVEVAR\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getSAVEVAR_Var(), ecorePackage.getEString(), \"var\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.SAVEVAR.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(playEClass, org.xtext.project.browserautomationdsl.domainmodel.PLAY.class, \"PLAY\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getPLAY_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.PLAY.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getPLAY_Preocedure(), ecorePackage.getEString(), \"preocedure\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.PLAY.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getPLAY_Params(), ecorePackage.getEString(), \"params\", null, 0, -1, org.xtext.project.browserautomationdsl.domainmodel.PLAY.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 }", "void finishInitialization() throws SetupException;", "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\tFaPackage theFaPackage = (FaPackage)EPackage.Registry.INSTANCE.getEPackage(FaPackage.eNS_URI);\n\t\tRequirementPackage theRequirementPackage = (RequirementPackage)EPackage.Registry.INSTANCE.getEPackage(RequirementPackage.eNS_URI);\n\t\tCapellacommonPackage theCapellacommonPackage = (CapellacommonPackage)EPackage.Registry.INSTANCE.getEPackage(CapellacommonPackage.eNS_URI);\n\t\tInformationPackage theInformationPackage = (InformationPackage)EPackage.Registry.INSTANCE.getEPackage(InformationPackage.eNS_URI);\n\t\tCommunicationPackage theCommunicationPackage = (CommunicationPackage)EPackage.Registry.INSTANCE.getEPackage(CommunicationPackage.eNS_URI);\n\t\tModellingcorePackage theModellingcorePackage = (ModellingcorePackage)EPackage.Registry.INSTANCE.getEPackage(ModellingcorePackage.eNS_URI);\n\t\tEpbsPackage theEpbsPackage = (EpbsPackage)EPackage.Registry.INSTANCE.getEPackage(EpbsPackage.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\tblockArchitecturePkgEClass.getESuperTypes().add(theCapellacorePackage.getModellingArchitecturePkg());\n\t\tblockArchitectureEClass.getESuperTypes().add(theFaPackage.getAbstractFunctionalArchitecture());\n\t\tblockEClass.getESuperTypes().add(theCapellacorePackage.getModellingBlock());\n\t\tblockEClass.getESuperTypes().add(theFaPackage.getAbstractFunctionalBlock());\n\t\tcomponentArchitectureEClass.getESuperTypes().add(this.getBlockArchitecture());\n\t\tcomponentEClass.getESuperTypes().add(this.getBlock());\n\t\tcomponentEClass.getESuperTypes().add(theInformationPackage.getPartitionableElement());\n\t\tcomponentEClass.getESuperTypes().add(this.getInterfaceAllocator());\n\t\tcomponentEClass.getESuperTypes().add(theCommunicationPackage.getCommunicationLinkExchanger());\n\t\tabstractActorEClass.getESuperTypes().add(this.getComponent());\n\t\tabstractActorEClass.getESuperTypes().add(theCapellacommonPackage.getCapabilityRealizationInvolvedElement());\n\t\tpartEClass.getESuperTypes().add(theInformationPackage.getPartition());\n\t\tpartEClass.getESuperTypes().add(theModellingcorePackage.getInformationsExchanger());\n\t\tpartEClass.getESuperTypes().add(this.getDeployableElement());\n\t\tpartEClass.getESuperTypes().add(this.getDeploymentTarget());\n\t\tpartEClass.getESuperTypes().add(this.getAbstractPathInvolvedElement());\n\t\tarchitectureAllocationEClass.getESuperTypes().add(theCapellacorePackage.getAllocation());\n\t\tcomponentAllocationEClass.getESuperTypes().add(theCapellacorePackage.getAllocation());\n\t\tsystemComponentEClass.getESuperTypes().add(this.getComponent());\n\t\tsystemComponentEClass.getESuperTypes().add(theCapellacommonPackage.getCapabilityRealizationInvolvedElement());\n\t\tinterfacePkgEClass.getESuperTypes().add(theCommunicationPackage.getMessageReferencePkg());\n\t\tinterfacePkgEClass.getESuperTypes().add(theCapellacorePackage.getAbstractDependenciesPkg());\n\t\tinterfacePkgEClass.getESuperTypes().add(theCapellacorePackage.getAbstractExchangeItemPkg());\n\t\tinterfaceEClass.getESuperTypes().add(theCapellacorePackage.getGeneralClass());\n\t\tinterfaceEClass.getESuperTypes().add(this.getInterfaceAllocator());\n\t\tinterfaceImplementationEClass.getESuperTypes().add(theCapellacorePackage.getRelationship());\n\t\tinterfaceUseEClass.getESuperTypes().add(theCapellacorePackage.getRelationship());\n\t\tprovidedInterfaceLinkEClass.getESuperTypes().add(theCapellacorePackage.getRelationship());\n\t\trequiredInterfaceLinkEClass.getESuperTypes().add(theCapellacorePackage.getRelationship());\n\t\tinterfaceAllocationEClass.getESuperTypes().add(theCapellacorePackage.getAllocation());\n\t\tinterfaceAllocatorEClass.getESuperTypes().add(theCapellacorePackage.getCapellaElement());\n\t\tactorCapabilityRealizationInvolvementEClass.getESuperTypes().add(theCapellacommonPackage.getCapabilityRealizationInvolvement());\n\t\tsystemComponentCapabilityRealizationInvolvementEClass.getESuperTypes().add(theCapellacommonPackage.getCapabilityRealizationInvolvement());\n\t\tcomponentContextEClass.getESuperTypes().add(this.getComponent());\n\t\texchangeItemAllocationEClass.getESuperTypes().add(theCapellacorePackage.getRelationship());\n\t\texchangeItemAllocationEClass.getESuperTypes().add(theInformationPackage.getAbstractEventOperation());\n\t\texchangeItemAllocationEClass.getESuperTypes().add(theModellingcorePackage.getFinalizableElement());\n\t\tdeployableElementEClass.getESuperTypes().add(theCapellacorePackage.getNamedElement());\n\t\tdeploymentTargetEClass.getESuperTypes().add(theCapellacorePackage.getNamedElement());\n\t\tabstractDeploymentLinkEClass.getESuperTypes().add(theCapellacorePackage.getRelationship());\n\t\tabstractPathInvolvedElementEClass.getESuperTypes().add(theCapellacorePackage.getInvolvedElement());\n\t\tabstractPhysicalArtifactEClass.getESuperTypes().add(theCapellacorePackage.getCapellaElement());\n\t\tabstractPhysicalLinkEndEClass.getESuperTypes().add(theCapellacorePackage.getCapellaElement());\n\t\tabstractPhysicalPathLinkEClass.getESuperTypes().add(theFaPackage.getComponentExchangeAllocator());\n\t\tphysicalLinkEClass.getESuperTypes().add(this.getAbstractPhysicalPathLink());\n\t\tphysicalLinkEClass.getESuperTypes().add(this.getAbstractPhysicalArtifact());\n\t\tphysicalLinkEClass.getESuperTypes().add(this.getAbstractPathInvolvedElement());\n\t\tphysicalLinkCategoryEClass.getESuperTypes().add(theCapellacorePackage.getNamedElement());\n\t\tphysicalLinkEndEClass.getESuperTypes().add(this.getAbstractPhysicalLinkEnd());\n\t\tphysicalLinkRealizationEClass.getESuperTypes().add(theCapellacorePackage.getAllocation());\n\t\tphysicalPathEClass.getESuperTypes().add(theCapellacorePackage.getNamedElement());\n\t\tphysicalPathEClass.getESuperTypes().add(theFaPackage.getComponentExchangeAllocator());\n\t\tphysicalPathEClass.getESuperTypes().add(this.getAbstractPathInvolvedElement());\n\t\tphysicalPathEClass.getESuperTypes().add(theCapellacorePackage.getInvolverElement());\n\t\tphysicalPathInvolvementEClass.getESuperTypes().add(theCapellacorePackage.getInvolvement());\n\t\tphysicalPathReferenceEClass.getESuperTypes().add(this.getPhysicalPathInvolvement());\n\t\tphysicalPathRealizationEClass.getESuperTypes().add(theCapellacorePackage.getAllocation());\n\t\tphysicalPortEClass.getESuperTypes().add(theInformationPackage.getPartition());\n\t\tphysicalPortEClass.getESuperTypes().add(theInformationPackage.getPort());\n\t\tphysicalPortEClass.getESuperTypes().add(this.getAbstractPhysicalArtifact());\n\t\tphysicalPortEClass.getESuperTypes().add(theModellingcorePackage.getInformationsExchanger());\n\t\tphysicalPortEClass.getESuperTypes().add(this.getAbstractPhysicalLinkEnd());\n\t\tphysicalPortRealizationEClass.getESuperTypes().add(theCapellacorePackage.getAllocation());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(blockArchitecturePkgEClass, BlockArchitecturePkg.class, \"BlockArchitecturePkg\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(blockArchitectureEClass, BlockArchitecture.class, \"BlockArchitecture\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getBlockArchitecture_OwnedRequirementPkgs(), theRequirementPackage.getRequirementsPkg(), null, \"ownedRequirementPkgs\", null, 0, -1, BlockArchitecture.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlockArchitecture_OwnedAbstractCapabilityPkg(), theCapellacommonPackage.getAbstractCapabilityPkg(), null, \"ownedAbstractCapabilityPkg\", null, 0, 1, BlockArchitecture.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlockArchitecture_OwnedInterfacePkg(), this.getInterfacePkg(), null, \"ownedInterfacePkg\", null, 0, 1, BlockArchitecture.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlockArchitecture_OwnedDataPkg(), theInformationPackage.getDataPkg(), null, \"ownedDataPkg\", null, 0, 1, BlockArchitecture.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlockArchitecture_ProvisionedArchitectureAllocations(), this.getArchitectureAllocation(), this.getArchitectureAllocation_AllocatingArchitecture(), \"provisionedArchitectureAllocations\", null, 0, -1, BlockArchitecture.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlockArchitecture_ProvisioningArchitectureAllocations(), this.getArchitectureAllocation(), this.getArchitectureAllocation_AllocatedArchitecture(), \"provisioningArchitectureAllocations\", null, 0, -1, BlockArchitecture.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlockArchitecture_AllocatedArchitectures(), this.getBlockArchitecture(), null, \"allocatedArchitectures\", null, 0, -1, BlockArchitecture.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlockArchitecture_AllocatingArchitectures(), this.getBlockArchitecture(), null, \"allocatingArchitectures\", null, 0, -1, BlockArchitecture.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(blockEClass, Block.class, \"Block\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getBlock_OwnedAbstractCapabilityPkg(), theCapellacommonPackage.getAbstractCapabilityPkg(), null, \"ownedAbstractCapabilityPkg\", null, 0, 1, Block.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlock_OwnedInterfacePkg(), this.getInterfacePkg(), null, \"ownedInterfacePkg\", null, 0, 1, Block.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlock_OwnedDataPkg(), theInformationPackage.getDataPkg(), null, \"ownedDataPkg\", null, 0, 1, Block.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlock_OwnedStateMachines(), theCapellacommonPackage.getStateMachine(), null, \"ownedStateMachines\", null, 0, -1, Block.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(componentArchitectureEClass, ComponentArchitecture.class, \"ComponentArchitecture\", 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_OwnedInterfaceUses(), this.getInterfaceUse(), null, \"ownedInterfaceUses\", 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_UsedInterfaceLinks(), this.getInterfaceUse(), this.getInterfaceUse_InterfaceUser(), \"usedInterfaceLinks\", 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_UsedInterfaces(), this.getInterface(), this.getInterface_UserComponents(), \"usedInterfaces\", 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_OwnedInterfaceImplementations(), this.getInterfaceImplementation(), null, \"ownedInterfaceImplementations\", 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_ImplementedInterfaceLinks(), this.getInterfaceImplementation(), this.getInterfaceImplementation_InterfaceImplementor(), \"implementedInterfaceLinks\", 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_ImplementedInterfaces(), this.getInterface(), this.getInterface_ImplementorComponents(), \"implementedInterfaces\", 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_ProvisionedComponentAllocations(), this.getComponentAllocation(), this.getComponentAllocation_AllocatingComponent(), \"provisionedComponentAllocations\", 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_ProvisioningComponentAllocations(), this.getComponentAllocation(), this.getComponentAllocation_AllocatedComponent(), \"provisioningComponentAllocations\", 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_AllocatedComponents(), this.getComponent(), null, \"allocatedComponents\", 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_AllocatingComponents(), this.getComponent(), null, \"allocatingComponents\", 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_ProvidedInterfaces(), this.getInterface(), null, \"providedInterfaces\", 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_RequiredInterfaces(), this.getInterface(), null, \"requiredInterfaces\", 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_ContainedComponentPorts(), theFaPackage.getComponentPort(), null, \"containedComponentPorts\", 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_ContainedParts(), this.getPart(), null, \"containedParts\", 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_ContainedPhysicalPorts(), this.getPhysicalPort(), null, \"containedPhysicalPorts\", 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_OwnedPhysicalPath(), this.getPhysicalPath(), null, \"ownedPhysicalPath\", 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_OwnedPhysicalLinks(), this.getPhysicalLink(), null, \"ownedPhysicalLinks\", 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_OwnedPhysicalLinkCategories(), this.getPhysicalLinkCategory(), null, \"ownedPhysicalLinkCategories\", 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\n\t\tinitEClass(abstractActorEClass, AbstractActor.class, \"AbstractActor\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(partEClass, Part.class, \"Part\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPart_ProvidedInterfaces(), this.getInterface(), null, \"providedInterfaces\", null, 0, -1, Part.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPart_RequiredInterfaces(), this.getInterface(), null, \"requiredInterfaces\", null, 0, -1, Part.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPart_OwnedDeploymentLinks(), this.getAbstractDeploymentLink(), null, \"ownedDeploymentLinks\", null, 0, -1, Part.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPart_DeployedParts(), this.getPart(), null, \"deployedParts\", null, 0, -1, Part.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPart_DeployingParts(), this.getPart(), null, \"deployingParts\", null, 0, -1, Part.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPart_OwnedAbstractType(), theModellingcorePackage.getAbstractType(), null, \"ownedAbstractType\", null, 0, 1, Part.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPart_Value(), ecorePackage.getEInt(), \"value\", null, 0, 1, Part.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPart_MaxValue(), ecorePackage.getEInt(), \"maxValue\", null, 0, 1, Part.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPart_MinValue(), ecorePackage.getEInt(), \"minValue\", null, 0, 1, Part.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPart_CurrentMass(), ecorePackage.getEInt(), \"currentMass\", null, 0, 1, Part.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\taddEOperation(partEClass, ecorePackage.getEBoolean(), \"isOverhead\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(partEClass, ecorePackage.getEBoolean(), \"isSatured\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(partEClass, ecorePackage.getEInt(), \"computeMass\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(partEClass, null, \"print\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(architectureAllocationEClass, ArchitectureAllocation.class, \"ArchitectureAllocation\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getArchitectureAllocation_AllocatedArchitecture(), this.getBlockArchitecture(), this.getBlockArchitecture_ProvisioningArchitectureAllocations(), \"allocatedArchitecture\", null, 1, 1, ArchitectureAllocation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getArchitectureAllocation_AllocatingArchitecture(), this.getBlockArchitecture(), this.getBlockArchitecture_ProvisionedArchitectureAllocations(), \"allocatingArchitecture\", null, 1, 1, ArchitectureAllocation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(componentAllocationEClass, ComponentAllocation.class, \"ComponentAllocation\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getComponentAllocation_AllocatedComponent(), this.getComponent(), this.getComponent_ProvisioningComponentAllocations(), \"allocatedComponent\", null, 0, 1, ComponentAllocation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponentAllocation_AllocatingComponent(), this.getComponent(), this.getComponent_ProvisionedComponentAllocations(), \"allocatingComponent\", null, 0, 1, ComponentAllocation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(systemComponentEClass, SystemComponent.class, \"SystemComponent\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getSystemComponent_DataComponent(), ecorePackage.getEBoolean(), \"dataComponent\", null, 0, 1, SystemComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSystemComponent_DataType(), theCapellacorePackage.getClassifier(), null, \"dataType\", null, 0, -1, SystemComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSystemComponent_ParticipationsInCapabilityRealizations(), this.getSystemComponentCapabilityRealizationInvolvement(), null, \"participationsInCapabilityRealizations\", null, 0, -1, SystemComponent.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(interfacePkgEClass, InterfacePkg.class, \"InterfacePkg\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInterfacePkg_OwnedInterfaces(), this.getInterface(), null, \"ownedInterfaces\", null, 0, -1, InterfacePkg.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterfacePkg_OwnedInterfacePkgs(), this.getInterfacePkg(), null, \"ownedInterfacePkgs\", null, 0, -1, InterfacePkg.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\tinitEAttribute(getInterface_Mechanism(), ecorePackage.getEString(), \"mechanism\", null, 0, 1, Interface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInterface_Structural(), ecorePackage.getEBoolean(), \"structural\", \"true\", 0, 1, Interface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_ImplementorComponents(), this.getComponent(), this.getComponent_ImplementedInterfaces(), \"implementorComponents\", 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\t\tinitEReference(getInterface_UserComponents(), this.getComponent(), this.getComponent_UsedInterfaces(), \"userComponents\", 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\t\tinitEReference(getInterface_InterfaceImplementations(), this.getInterfaceImplementation(), null, \"interfaceImplementations\", 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\t\tinitEReference(getInterface_InterfaceUses(), this.getInterfaceUse(), null, \"interfaceUses\", 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\t\tinitEReference(getInterface_ProvisioningInterfaceAllocations(), this.getInterfaceAllocation(), this.getInterfaceAllocation_AllocatedInterface(), \"provisioningInterfaceAllocations\", 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\t\tinitEReference(getInterface_AllocatingInterfaces(), this.getInterface(), null, \"allocatingInterfaces\", 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\t\tinitEReference(getInterface_AllocatingComponents(), this.getComponent(), null, \"allocatingComponents\", 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\t\tinitEReference(getInterface_ExchangeItems(), theInformationPackage.getExchangeItem(), null, \"exchangeItems\", 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\t\tinitEReference(getInterface_OwnedExchangeItemAllocations(), this.getExchangeItemAllocation(), null, \"ownedExchangeItemAllocations\", 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\t\tinitEReference(getInterface_RequiringComponents(), this.getComponent(), null, \"requiringComponents\", 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\t\tinitEReference(getInterface_RequiringComponentPorts(), theFaPackage.getComponentPort(), null, \"requiringComponentPorts\", 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\t\tinitEReference(getInterface_ProvidingComponents(), this.getComponent(), null, \"providingComponents\", 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\t\tinitEReference(getInterface_ProvidingComponentPorts(), theFaPackage.getComponentPort(), null, \"providingComponentPorts\", 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\t\tinitEReference(getInterface_RealizingLogicalInterfaces(), this.getInterface(), null, \"realizingLogicalInterfaces\", 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\t\tinitEReference(getInterface_RealizedContextInterfaces(), this.getInterface(), null, \"realizedContextInterfaces\", 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\t\tinitEReference(getInterface_RealizingPhysicalInterfaces(), this.getInterface(), null, \"realizingPhysicalInterfaces\", 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\t\tinitEReference(getInterface_RealizedLogicalInterfaces(), this.getInterface(), null, \"realizedLogicalInterfaces\", 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(interfaceImplementationEClass, InterfaceImplementation.class, \"InterfaceImplementation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInterfaceImplementation_InterfaceImplementor(), this.getComponent(), this.getComponent_ImplementedInterfaceLinks(), \"interfaceImplementor\", null, 1, 1, InterfaceImplementation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterfaceImplementation_ImplementedInterface(), this.getInterface(), null, \"implementedInterface\", null, 1, 1, InterfaceImplementation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(interfaceUseEClass, InterfaceUse.class, \"InterfaceUse\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInterfaceUse_InterfaceUser(), this.getComponent(), this.getComponent_UsedInterfaceLinks(), \"interfaceUser\", null, 1, 1, InterfaceUse.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterfaceUse_UsedInterface(), this.getInterface(), null, \"usedInterface\", null, 1, 1, InterfaceUse.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(providedInterfaceLinkEClass, ProvidedInterfaceLink.class, \"ProvidedInterfaceLink\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getProvidedInterfaceLink_Interface(), this.getInterface(), null, \"interface\", null, 1, 1, ProvidedInterfaceLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(requiredInterfaceLinkEClass, RequiredInterfaceLink.class, \"RequiredInterfaceLink\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRequiredInterfaceLink_Interface(), this.getInterface(), null, \"interface\", null, 1, 1, RequiredInterfaceLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(interfaceAllocationEClass, InterfaceAllocation.class, \"InterfaceAllocation\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInterfaceAllocation_AllocatedInterface(), this.getInterface(), this.getInterface_ProvisioningInterfaceAllocations(), \"allocatedInterface\", null, 1, 1, InterfaceAllocation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterfaceAllocation_AllocatingInterfaceAllocator(), this.getInterfaceAllocator(), this.getInterfaceAllocator_ProvisionedInterfaceAllocations(), \"allocatingInterfaceAllocator\", null, 1, 1, InterfaceAllocation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(interfaceAllocatorEClass, InterfaceAllocator.class, \"InterfaceAllocator\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInterfaceAllocator_OwnedInterfaceAllocations(), this.getInterfaceAllocation(), null, \"ownedInterfaceAllocations\", null, 0, -1, InterfaceAllocator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterfaceAllocator_ProvisionedInterfaceAllocations(), this.getInterfaceAllocation(), this.getInterfaceAllocation_AllocatingInterfaceAllocator(), \"provisionedInterfaceAllocations\", null, 0, -1, InterfaceAllocator.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterfaceAllocator_AllocatedInterfaces(), this.getInterface(), null, \"allocatedInterfaces\", null, 0, -1, InterfaceAllocator.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(actorCapabilityRealizationInvolvementEClass, ActorCapabilityRealizationInvolvement.class, \"ActorCapabilityRealizationInvolvement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(systemComponentCapabilityRealizationInvolvementEClass, SystemComponentCapabilityRealizationInvolvement.class, \"SystemComponentCapabilityRealizationInvolvement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(componentContextEClass, ComponentContext.class, \"ComponentContext\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(exchangeItemAllocationEClass, ExchangeItemAllocation.class, \"ExchangeItemAllocation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getExchangeItemAllocation_SendProtocol(), theCommunicationPackage.getCommunicationLinkProtocol(), \"sendProtocol\", null, 0, 1, ExchangeItemAllocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getExchangeItemAllocation_ReceiveProtocol(), theCommunicationPackage.getCommunicationLinkProtocol(), \"receiveProtocol\", null, 0, 1, ExchangeItemAllocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getExchangeItemAllocation_AllocatedItem(), theInformationPackage.getExchangeItem(), null, \"allocatedItem\", null, 0, 1, ExchangeItemAllocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getExchangeItemAllocation_AllocatingInterface(), this.getInterface(), null, \"allocatingInterface\", null, 0, 1, ExchangeItemAllocation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(deployableElementEClass, DeployableElement.class, \"DeployableElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getDeployableElement_DeployingLinks(), this.getAbstractDeploymentLink(), null, \"deployingLinks\", null, 0, -1, DeployableElement.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(deploymentTargetEClass, DeploymentTarget.class, \"DeploymentTarget\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getDeploymentTarget_DeploymentLinks(), this.getAbstractDeploymentLink(), null, \"deploymentLinks\", null, 0, -1, DeploymentTarget.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(abstractDeploymentLinkEClass, AbstractDeploymentLink.class, \"AbstractDeploymentLink\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAbstractDeploymentLink_DeployedElement(), this.getDeployableElement(), null, \"deployedElement\", null, 1, 1, AbstractDeploymentLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAbstractDeploymentLink_Location(), this.getDeploymentTarget(), null, \"location\", null, 1, 1, AbstractDeploymentLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(abstractPathInvolvedElementEClass, AbstractPathInvolvedElement.class, \"AbstractPathInvolvedElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(abstractPhysicalArtifactEClass, AbstractPhysicalArtifact.class, \"AbstractPhysicalArtifact\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAbstractPhysicalArtifact_AllocatorConfigurationItems(), theEpbsPackage.getConfigurationItem(), theEpbsPackage.getConfigurationItem_AllocatedPhysicalArtifacts(), \"allocatorConfigurationItems\", null, 0, -1, AbstractPhysicalArtifact.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(abstractPhysicalLinkEndEClass, AbstractPhysicalLinkEnd.class, \"AbstractPhysicalLinkEnd\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAbstractPhysicalLinkEnd_InvolvedLinks(), this.getPhysicalLink(), null, \"involvedLinks\", null, 0, -1, AbstractPhysicalLinkEnd.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(abstractPhysicalPathLinkEClass, AbstractPhysicalPathLink.class, \"AbstractPhysicalPathLink\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(physicalLinkEClass, PhysicalLink.class, \"PhysicalLink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPhysicalLink_LinkEnds(), this.getAbstractPhysicalLinkEnd(), null, \"linkEnds\", null, 2, 2, PhysicalLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), theFaPackage.getComponentExchangeFunctionalExchangeAllocation(), null, \"ownedComponentExchangeFunctionalExchangeAllocations\", null, 0, -1, PhysicalLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_OwnedPhysicalLinkEnds(), this.getPhysicalLinkEnd(), null, \"ownedPhysicalLinkEnds\", null, 0, -1, PhysicalLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_OwnedPhysicalLinkRealizations(), this.getPhysicalLinkRealization(), null, \"ownedPhysicalLinkRealizations\", null, 0, -1, PhysicalLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_Categories(), this.getPhysicalLinkCategory(), this.getPhysicalLinkCategory_Links(), \"categories\", null, 0, -1, PhysicalLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_SourcePhysicalPort(), this.getPhysicalPort(), null, \"sourcePhysicalPort\", null, 0, 1, PhysicalLink.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_TargetPhysicalPort(), this.getPhysicalPort(), null, \"targetPhysicalPort\", null, 0, 1, PhysicalLink.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_RealizedPhysicalLinks(), this.getPhysicalLink(), null, \"realizedPhysicalLinks\", null, 0, -1, PhysicalLink.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_RealizingPhysicalLinks(), this.getPhysicalLink(), null, \"realizingPhysicalLinks\", null, 0, -1, PhysicalLink.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(physicalLinkCategoryEClass, PhysicalLinkCategory.class, \"PhysicalLinkCategory\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPhysicalLinkCategory_Links(), this.getPhysicalLink(), this.getPhysicalLink_Categories(), \"links\", null, 0, -1, PhysicalLinkCategory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(physicalLinkEndEClass, PhysicalLinkEnd.class, \"PhysicalLinkEnd\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPhysicalLinkEnd_Port(), this.getPhysicalPort(), null, \"port\", null, 0, 1, PhysicalLinkEnd.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLinkEnd_Part(), this.getPart(), null, \"part\", null, 0, 1, PhysicalLinkEnd.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(physicalLinkRealizationEClass, PhysicalLinkRealization.class, \"PhysicalLinkRealization\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(physicalPathEClass, PhysicalPath.class, \"PhysicalPath\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPhysicalPath_InvolvedLinks(), this.getAbstractPhysicalPathLink(), null, \"involvedLinks\", null, 0, -1, PhysicalPath.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPath_OwnedPhysicalPathInvolvements(), this.getPhysicalPathInvolvement(), null, \"ownedPhysicalPathInvolvements\", null, 0, -1, PhysicalPath.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPath_FirstPhysicalPathInvolvements(), this.getPhysicalPathInvolvement(), null, \"firstPhysicalPathInvolvements\", null, 0, -1, PhysicalPath.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPath_OwnedPhysicalPathRealizations(), this.getPhysicalPathRealization(), null, \"ownedPhysicalPathRealizations\", null, 0, -1, PhysicalPath.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPath_RealizedPhysicalPaths(), this.getPhysicalPath(), null, \"realizedPhysicalPaths\", null, 0, -1, PhysicalPath.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPath_RealizingPhysicalPaths(), this.getPhysicalPath(), null, \"realizingPhysicalPaths\", null, 0, -1, PhysicalPath.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(physicalPathInvolvementEClass, PhysicalPathInvolvement.class, \"PhysicalPathInvolvement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPhysicalPathInvolvement_NextInvolvements(), this.getPhysicalPathInvolvement(), null, \"nextInvolvements\", null, 0, -1, PhysicalPathInvolvement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPathInvolvement_PreviousInvolvements(), this.getPhysicalPathInvolvement(), null, \"previousInvolvements\", null, 0, -1, PhysicalPathInvolvement.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPathInvolvement_InvolvedElement(), this.getAbstractPathInvolvedElement(), null, \"involvedElement\", null, 0, 1, PhysicalPathInvolvement.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPathInvolvement_InvolvedComponent(), this.getComponent(), null, \"involvedComponent\", null, 0, 1, PhysicalPathInvolvement.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(physicalPathReferenceEClass, PhysicalPathReference.class, \"PhysicalPathReference\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPhysicalPathReference_ReferencedPhysicalPath(), this.getPhysicalPath(), null, \"referencedPhysicalPath\", null, 0, 1, PhysicalPathReference.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(physicalPathRealizationEClass, PhysicalPathRealization.class, \"PhysicalPathRealization\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(physicalPortEClass, PhysicalPort.class, \"PhysicalPort\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPhysicalPort_OwnedComponentPortAllocations(), theFaPackage.getComponentPortAllocation(), null, \"ownedComponentPortAllocations\", null, 0, -1, PhysicalPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPort_OwnedPhysicalPortRealizations(), this.getPhysicalPortRealization(), null, \"ownedPhysicalPortRealizations\", null, 0, -1, PhysicalPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPort_AllocatedComponentPorts(), theFaPackage.getComponentPort(), theFaPackage.getComponentPort_AllocatingPhysicalPorts(), \"allocatedComponentPorts\", null, 0, -1, PhysicalPort.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPort_RealizedPhysicalPorts(), this.getPhysicalPort(), null, \"realizedPhysicalPorts\", null, 0, -1, PhysicalPort.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPort_RealizingPhysicalPorts(), this.getPhysicalPort(), null, \"realizingPhysicalPorts\", null, 0, -1, PhysicalPort.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(physicalPortRealizationEClass, PhysicalPortRealization.class, \"PhysicalPortRealization\", !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/MNoE/CapellaLike/Mapping\n\t\tcreateMappingAnnotations();\n\t\t// http://www.polarsys.org/capella/2007/BusinessInformation\n\t\tcreateBusinessInformationAnnotations();\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/derived\n\t\tcreateDerivedAnnotations();\n\t\t// aspect\n\t\tcreateAspectAnnotations();\n\t\t// http://www.polarsys.org/capella/2007/ImpactAnalysis/Ignore\n\t\tcreateIgnoreAnnotations();\n\t}", "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(treeEClass, Tree.class, \"Tree\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTree_Children(), this.getNode(), null, \"children\", null, 0, -1, Tree.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_Children(), this.getNode(), null, \"children\", 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\t\tinitEAttribute(getNode_Name(), ecorePackage.getEString(), \"name\", \"Node\", 0, 1, Node.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\t// gmf.compartment\n\t\tcreateGmf_2Annotations();\n\t}", "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\tQIntegratedLanguageCorePackage theIntegratedLanguageCorePackage = (QIntegratedLanguageCorePackage)EPackage.Registry.INSTANCE.getEPackage(QIntegratedLanguageCorePackage.eNS_URI);\n\t\tQIntegratedLanguageCoreCtxPackage theIntegratedLanguageCoreCtxPackage = (QIntegratedLanguageCoreCtxPackage)EPackage.Registry.INSTANCE.getEPackage(QIntegratedLanguageCoreCtxPackage.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\trepositoryEClass.getESuperTypes().add(theIntegratedLanguageCorePackage.getObjectNameable());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(repositoryEClass, QRepository.class, \"Repository\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getRepository_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, QRepository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRepository_Location(), ecorePackage.getEString(), \"location\", null, 1, 1, QRepository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(repositoryManagerEClass, QRepositoryManager.class, \"RepositoryManager\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tEOperation op = addEOperation(repositoryManagerEClass, ecorePackage.getEBoolean(), \"checkUpdates\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEString(), \"repositoryLocation\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = addEOperation(repositoryManagerEClass, ecorePackage.getEBoolean(), \"update\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEString(), \"repositoryLocation\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = addEOperation(repositoryManagerEClass, null, \"updateAll\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, theIntegratedLanguageCoreCtxPackage.getContextProvider(), \"contextProvider\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "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\torg.abchip.mimo.entity.EntityPackage theEntityPackage_1 = (org.abchip.mimo.entity.EntityPackage)EPackage.Registry.INSTANCE.getEPackage(org.abchip.mimo.entity.EntityPackage.eNS_URI);\n\t\tPaymentPackage thePaymentPackage = (PaymentPackage)EPackage.Registry.INSTANCE.getEPackage(PaymentPackage.eNS_URI);\n\t\torg.abchip.mimo.biz.model.party.contact.ContactPackage theContactPackage_1 = (org.abchip.mimo.biz.model.party.contact.ContactPackage)EPackage.Registry.INSTANCE.getEPackage(org.abchip.mimo.biz.model.party.contact.ContactPackage.eNS_URI);\n\t\tUomPackage theUomPackage = (UomPackage)EPackage.Registry.INSTANCE.getEPackage(UomPackage.eNS_URI);\n\t\tPartyPackage thePartyPackage_1 = (PartyPackage)EPackage.Registry.INSTANCE.getEPackage(PartyPackage.eNS_URI);\n\t\tSchedulePackage theSchedulePackage = (SchedulePackage)EPackage.Registry.INSTANCE.getEPackage(SchedulePackage.eNS_URI);\n\t\tStatusPackage theStatusPackage = (StatusPackage)EPackage.Registry.INSTANCE.getEPackage(StatusPackage.eNS_URI);\n\t\tContentPackage theContentPackage = (ContentPackage)EPackage.Registry.INSTANCE.getEPackage(ContentPackage.eNS_URI);\n\t\tInventoryPackage theInventoryPackage = (InventoryPackage)EPackage.Registry.INSTANCE.getEPackage(InventoryPackage.eNS_URI);\n\t\tLedgerPackage theLedgerPackage = (LedgerPackage)EPackage.Registry.INSTANCE.getEPackage(LedgerPackage.eNS_URI);\n\t\tProductPackage theProductPackage = (ProductPackage)EPackage.Registry.INSTANCE.getEPackage(ProductPackage.eNS_URI);\n\t\tFeaturePackage theFeaturePackage = (FeaturePackage)EPackage.Registry.INSTANCE.getEPackage(FeaturePackage.eNS_URI);\n\t\tOpportunityPackage theOpportunityPackage = (OpportunityPackage)EPackage.Registry.INSTANCE.getEPackage(OpportunityPackage.eNS_URI);\n\t\tGeoPackage theGeoPackage = (GeoPackage)EPackage.Registry.INSTANCE.getEPackage(GeoPackage.eNS_URI);\n\t\tTaxPackage theTaxPackage = (TaxPackage)EPackage.Registry.INSTANCE.getEPackage(TaxPackage.eNS_URI);\n\t\tBizPackage theBizPackage = (BizPackage)EPackage.Registry.INSTANCE.getEPackage(BizPackage.eNS_URI);\n\t\tLoginPackage theLoginPackage = (LoginPackage)EPackage.Registry.INSTANCE.getEPackage(LoginPackage.eNS_URI);\n\t\tAgreementPackage theAgreementPackage = (AgreementPackage)EPackage.Registry.INSTANCE.getEPackage(AgreementPackage.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(theEntityPackage_1.getEntityTyped());\n\t\tEGenericType g2 = createEGenericType(this.getInvoiceType());\n\t\tg1.getETypeArguments().add(g2);\n\t\tinvoiceEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceEClass.getEGenericSuperTypes().add(g1);\n\t\tinvoiceAttributeEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceAttributeEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceContactMechEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceContactMechEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityTyped());\n\t\tg2 = createEGenericType(this.getInvoiceContentType());\n\t\tg1.getETypeArguments().add(g2);\n\t\tinvoiceContentEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceContentEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityType());\n\t\tg2 = createEGenericType(this.getInvoiceContent());\n\t\tg1.getETypeArguments().add(g2);\n\t\tinvoiceContentTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceContentTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityTyped());\n\t\tg2 = createEGenericType(this.getInvoiceItemType());\n\t\tg1.getETypeArguments().add(g2);\n\t\tinvoiceItemEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceItemEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityTyped());\n\t\tg2 = createEGenericType(this.getInvoiceItemAssocType());\n\t\tg1.getETypeArguments().add(g2);\n\t\tinvoiceItemAssocEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceItemAssocEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityType());\n\t\tg2 = createEGenericType(this.getInvoiceItemAssoc());\n\t\tg1.getETypeArguments().add(g2);\n\t\tinvoiceItemAssocTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceItemAssocTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tinvoiceItemAttributeEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceItemAttributeEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityType());\n\t\tg2 = createEGenericType(this.getInvoiceItem());\n\t\tg1.getETypeArguments().add(g2);\n\t\tinvoiceItemTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceItemTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tinvoiceItemTypeAttrEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceItemTypeAttrEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceItemTypeGlAccountEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceItemTypeGlAccountEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceItemTypeMapEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceItemTypeMapEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceNoteEClass.getESuperTypes().add(theBizPackage.getBizEntityNote());\n\t\tinvoiceRoleEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceRoleEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceStatusEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceStatusEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceTermEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceTermEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceTermAttributeEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceTermAttributeEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityType());\n\t\tg2 = createEGenericType(this.getInvoice());\n\t\tg1.getETypeArguments().add(g2);\n\t\tinvoiceTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tinvoiceTypeAttrEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceTypeAttrEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(invoiceEClass, Invoice.class, \"Invoice\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getInvoice_InvoiceId(), ecorePackage.getEString(), \"invoiceId\", null, 1, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_BillingAccount(), thePaymentPackage.getBillingAccount(), null, \"billingAccount\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_ContactMech(), theContactPackage_1.getContactMech(), null, \"contactMech\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_CurrencyUom(), theUomPackage.getUom(), null, \"currencyUom\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoice_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoice_DueDate(), ecorePackage.getEDate(), \"dueDate\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_InvoiceAttributes(), this.getInvoiceAttribute(), null, \"invoiceAttributes\", null, 0, -1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoice_InvoiceDate(), ecorePackage.getEDate(), \"invoiceDate\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_InvoiceItems(), this.getInvoiceItem(), null, \"invoiceItems\", null, 0, -1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoice_InvoiceMessage(), ecorePackage.getEString(), \"invoiceMessage\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_InvoiceNotes(), this.getInvoiceNote(), null, \"invoiceNotes\", null, 0, -1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_InvoiceStatuses(), this.getInvoiceStatus(), null, \"invoiceStatuses\", null, 0, -1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_InvoiceType(), this.getInvoiceType(), null, \"invoiceType\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoice_PaidDate(), ecorePackage.getEDate(), \"paidDate\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_Party(), thePartyPackage_1.getParty(), null, \"party\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_PartyIdFrom(), thePartyPackage_1.getParty(), null, \"partyIdFrom\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_RecurrenceInfo(), theSchedulePackage.getRecurrenceInfo(), null, \"recurrenceInfo\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoice_ReferenceNumber(), ecorePackage.getEString(), \"referenceNumber\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_RoleType(), thePartyPackage_1.getRoleType(), null, \"roleType\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_Status(), theStatusPackage.getStatusItem(), null, \"status\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\taddEOperation(invoiceEClass, ecorePackage.getEBigDecimal(), \"getTotal\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(invoiceAttributeEClass, InvoiceAttribute.class, \"InvoiceAttribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceAttribute_Invoice(), this.getInvoice(), null, \"invoice\", null, 1, 1, InvoiceAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceAttribute_AttrName(), ecorePackage.getEString(), \"attrName\", null, 1, 1, InvoiceAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceAttribute_AttrDescription(), ecorePackage.getEString(), \"attrDescription\", null, 0, 1, InvoiceAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceAttribute_AttrValue(), ecorePackage.getEString(), \"attrValue\", null, 0, 1, InvoiceAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceContactMechEClass, InvoiceContactMech.class, \"InvoiceContactMech\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceContactMech_Invoice(), this.getInvoice(), null, \"invoice\", null, 1, 1, InvoiceContactMech.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceContactMech_ContactMech(), theContactPackage_1.getContactMech(), null, \"contactMech\", null, 1, 1, InvoiceContactMech.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceContactMech_ContactMechPurposeType(), theContactPackage_1.getContactMechPurposeType(), null, \"contactMechPurposeType\", null, 1, 1, InvoiceContactMech.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceContentEClass, InvoiceContent.class, \"InvoiceContent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceContent_Invoice(), this.getInvoice(), null, \"invoice\", null, 1, 1, InvoiceContent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceContent_Content(), theContentPackage.getContent(), null, \"content\", null, 1, 1, InvoiceContent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceContent_InvoiceContentType(), this.getInvoiceContentType(), null, \"invoiceContentType\", null, 1, 1, InvoiceContent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceContent_FromDate(), ecorePackage.getEDate(), \"fromDate\", null, 1, 1, InvoiceContent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceContent_ThruDate(), ecorePackage.getEDate(), \"thruDate\", null, 0, 1, InvoiceContent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceContentTypeEClass, InvoiceContentType.class, \"InvoiceContentType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getInvoiceContentType_InvoiceContentTypeId(), ecorePackage.getEString(), \"invoiceContentTypeId\", null, 1, 1, InvoiceContentType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceContentType_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, InvoiceContentType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceContentType_HasTable(), ecorePackage.getEBooleanObject(), \"hasTable\", null, 0, 1, InvoiceContentType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceContentType_ParentType(), this.getInvoiceContentType(), null, \"parentType\", null, 0, 1, InvoiceContentType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceItemEClass, InvoiceItem.class, \"InvoiceItem\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceItem_Invoice(), this.getInvoice(), null, \"invoice\", null, 1, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItem_InvoiceItemSeqId(), ecorePackage.getEString(), \"invoiceItemSeqId\", null, 1, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItem_Amount(), ecorePackage.getEBigDecimal(), \"amount\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItem_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_InventoryItem(), theInventoryPackage.getInventoryItem(), null, \"inventoryItem\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_InvoiceItemType(), this.getInvoiceItemType(), null, \"invoiceItemType\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_OverrideGlAccount(), theLedgerPackage.getGlAccount(), null, \"overrideGlAccount\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_OverrideOrgParty(), thePartyPackage_1.getParty(), null, \"overrideOrgParty\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItem_ParentInvoiceId(), ecorePackage.getEString(), \"parentInvoiceId\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItem_ParentInvoiceItemSeqId(), ecorePackage.getEString(), \"parentInvoiceItemSeqId\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_Product(), theProductPackage.getProduct(), null, \"product\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_ProductFeature(), theFeaturePackage.getProductFeature(), null, \"productFeature\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItem_Quantity(), ecorePackage.getEBigDecimal(), \"quantity\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_SalesOpportunity(), theOpportunityPackage.getSalesOpportunity(), null, \"salesOpportunity\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_TaxAuthGeo(), theGeoPackage.getGeo(), null, \"taxAuthGeo\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_TaxAuthParty(), thePartyPackage_1.getParty(), null, \"taxAuthParty\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_TaxAuthorityRateSeq(), theTaxPackage.getTaxAuthorityRateProduct(), null, \"taxAuthorityRateSeq\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItem_TaxableFlag(), ecorePackage.getEBoolean(), \"taxableFlag\", null, 1, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_Uom(), theUomPackage.getUom(), null, \"uom\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceItemAssocEClass, InvoiceItemAssoc.class, \"InvoiceItemAssoc\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceItemAssoc_InvoiceItemAssocType(), this.getInvoiceItemAssocType(), null, \"invoiceItemAssocType\", null, 1, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAssoc_FromDate(), ecorePackage.getEDate(), \"fromDate\", null, 1, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAssoc_InvoiceIdFrom(), ecorePackage.getEString(), \"invoiceIdFrom\", null, 1, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAssoc_InvoiceIdTo(), ecorePackage.getEString(), \"invoiceIdTo\", null, 1, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAssoc_InvoiceItemSeqIdFrom(), ecorePackage.getEString(), \"invoiceItemSeqIdFrom\", null, 1, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAssoc_InvoiceItemSeqIdTo(), ecorePackage.getEString(), \"invoiceItemSeqIdTo\", null, 1, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAssoc_Amount(), ecorePackage.getEBigDecimal(), \"amount\", null, 0, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItemAssoc_PartyIdFrom(), thePartyPackage_1.getParty(), null, \"partyIdFrom\", null, 0, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItemAssoc_PartyIdTo(), thePartyPackage_1.getParty(), null, \"partyIdTo\", null, 0, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAssoc_Quantity(), ecorePackage.getEBigDecimal(), \"quantity\", null, 0, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAssoc_ThruDate(), ecorePackage.getEDate(), \"thruDate\", null, 0, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceItemAssocTypeEClass, InvoiceItemAssocType.class, \"InvoiceItemAssocType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getInvoiceItemAssocType_InvoiceItemAssocTypeId(), ecorePackage.getEString(), \"invoiceItemAssocTypeId\", null, 1, 1, InvoiceItemAssocType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAssocType_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, InvoiceItemAssocType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAssocType_HasTable(), ecorePackage.getEBooleanObject(), \"hasTable\", null, 0, 1, InvoiceItemAssocType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItemAssocType_ParentType(), this.getInvoiceItemAssocType(), null, \"parentType\", null, 0, 1, InvoiceItemAssocType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceItemAttributeEClass, InvoiceItemAttribute.class, \"InvoiceItemAttribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getInvoiceItemAttribute_AttrName(), ecorePackage.getEString(), \"attrName\", null, 1, 1, InvoiceItemAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAttribute_InvoiceId(), ecorePackage.getEString(), \"invoiceId\", null, 1, 1, InvoiceItemAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAttribute_InvoiceItemSeqId(), ecorePackage.getEString(), \"invoiceItemSeqId\", null, 1, 1, InvoiceItemAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAttribute_AttrDescription(), ecorePackage.getEString(), \"attrDescription\", null, 0, 1, InvoiceItemAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAttribute_AttrValue(), ecorePackage.getEString(), \"attrValue\", null, 0, 1, InvoiceItemAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceItemTypeEClass, InvoiceItemType.class, \"InvoiceItemType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getInvoiceItemType_InvoiceItemTypeId(), ecorePackage.getEString(), \"invoiceItemTypeId\", null, 1, 1, InvoiceItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItemType_DefaultGlAccount(), theLedgerPackage.getGlAccount(), null, \"defaultGlAccount\", null, 0, 1, InvoiceItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemType_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, InvoiceItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemType_HasTable(), ecorePackage.getEBooleanObject(), \"hasTable\", null, 0, 1, InvoiceItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItemType_InvoiceItemTypeAttrs(), this.getInvoiceItemTypeAttr(), null, \"invoiceItemTypeAttrs\", null, 0, -1, InvoiceItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItemType_InvoiceItemTypeGlAccounts(), this.getInvoiceItemTypeGlAccount(), null, \"invoiceItemTypeGlAccounts\", null, 0, -1, InvoiceItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItemType_ParentType(), this.getInvoiceItemType(), null, \"parentType\", null, 0, 1, InvoiceItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceItemTypeAttrEClass, InvoiceItemTypeAttr.class, \"InvoiceItemTypeAttr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceItemTypeAttr_InvoiceItemType(), this.getInvoiceItemType(), null, \"invoiceItemType\", null, 1, 1, InvoiceItemTypeAttr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemTypeAttr_AttrName(), ecorePackage.getEString(), \"attrName\", null, 1, 1, InvoiceItemTypeAttr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemTypeAttr_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, InvoiceItemTypeAttr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceItemTypeGlAccountEClass, InvoiceItemTypeGlAccount.class, \"InvoiceItemTypeGlAccount\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceItemTypeGlAccount_InvoiceItemType(), this.getInvoiceItemType(), null, \"invoiceItemType\", null, 1, 1, InvoiceItemTypeGlAccount.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItemTypeGlAccount_OrganizationParty(), thePartyPackage_1.getParty(), null, \"organizationParty\", null, 1, 1, InvoiceItemTypeGlAccount.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItemTypeGlAccount_GlAccount(), theLedgerPackage.getGlAccount(), null, \"glAccount\", null, 0, 1, InvoiceItemTypeGlAccount.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceItemTypeMapEClass, InvoiceItemTypeMap.class, \"InvoiceItemTypeMap\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceItemTypeMap_InvoiceType(), this.getInvoiceType(), null, \"invoiceType\", null, 1, 1, InvoiceItemTypeMap.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemTypeMap_InvoiceItemMapKey(), ecorePackage.getEString(), \"invoiceItemMapKey\", null, 1, 1, InvoiceItemTypeMap.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItemTypeMap_InvoiceItemType(), this.getInvoiceItemType(), null, \"invoiceItemType\", null, 0, 1, InvoiceItemTypeMap.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceNoteEClass, InvoiceNote.class, \"InvoiceNote\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceNote_Invoice(), this.getInvoice(), null, \"invoice\", null, 1, 1, InvoiceNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceRoleEClass, InvoiceRole.class, \"InvoiceRole\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceRole_Invoice(), this.getInvoice(), null, \"invoice\", null, 1, 1, InvoiceRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceRole_Party(), thePartyPackage_1.getParty(), null, \"party\", null, 1, 1, InvoiceRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceRole_RoleType(), thePartyPackage_1.getRoleType(), null, \"roleType\", null, 1, 1, InvoiceRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceRole_DatetimePerformed(), ecorePackage.getEDate(), \"datetimePerformed\", null, 0, 1, InvoiceRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceRole_Percentage(), ecorePackage.getEBigDecimal(), \"percentage\", null, 0, 1, InvoiceRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceStatusEClass, InvoiceStatus.class, \"InvoiceStatus\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceStatus_Status(), theStatusPackage.getStatusItem(), null, \"status\", null, 1, 1, InvoiceStatus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceStatus_Invoice(), this.getInvoice(), null, \"invoice\", null, 1, 1, InvoiceStatus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceStatus_StatusDate(), ecorePackage.getEDate(), \"statusDate\", null, 1, 1, InvoiceStatus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceStatus_ChangeByUserLogin(), theLoginPackage.getUserLogin(), null, \"changeByUserLogin\", null, 0, 1, InvoiceStatus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceTermEClass, InvoiceTerm.class, \"InvoiceTerm\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getInvoiceTerm_InvoiceTermId(), ecorePackage.getEString(), \"invoiceTermId\", null, 1, 1, InvoiceTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTerm_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, InvoiceTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceTerm_Invoice(), this.getInvoice(), null, \"invoice\", null, 0, 1, InvoiceTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTerm_InvoiceItemSeqId(), ecorePackage.getEString(), \"invoiceItemSeqId\", null, 0, 1, InvoiceTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceTerm_InvoiceTermAttributes(), this.getInvoiceTermAttribute(), null, \"invoiceTermAttributes\", null, 0, -1, InvoiceTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTerm_TermDays(), ecorePackage.getELong(), \"termDays\", null, 0, 1, InvoiceTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceTerm_TermType(), theAgreementPackage.getTermType(), null, \"termType\", null, 0, 1, InvoiceTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTerm_TermValue(), ecorePackage.getEBigDecimal(), \"termValue\", null, 0, 1, InvoiceTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTerm_TextValue(), ecorePackage.getEString(), \"textValue\", null, 0, 1, InvoiceTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTerm_UomId(), ecorePackage.getEString(), \"uomId\", null, 0, 1, InvoiceTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceTermAttributeEClass, InvoiceTermAttribute.class, \"InvoiceTermAttribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceTermAttribute_InvoiceTerm(), this.getInvoiceTerm(), null, \"invoiceTerm\", null, 1, 1, InvoiceTermAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTermAttribute_AttrName(), ecorePackage.getEString(), \"attrName\", null, 1, 1, InvoiceTermAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTermAttribute_AttrDescription(), ecorePackage.getEString(), \"attrDescription\", null, 0, 1, InvoiceTermAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTermAttribute_AttrValue(), ecorePackage.getEString(), \"attrValue\", null, 0, 1, InvoiceTermAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceTypeEClass, InvoiceType.class, \"InvoiceType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getInvoiceType_InvoiceTypeId(), ecorePackage.getEString(), \"invoiceTypeId\", null, 1, 1, InvoiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceType_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, InvoiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceType_HasTable(), ecorePackage.getEBooleanObject(), \"hasTable\", null, 0, 1, InvoiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceType_InvoiceTypeAttrs(), this.getInvoiceTypeAttr(), null, \"invoiceTypeAttrs\", null, 0, -1, InvoiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceType_ParentType(), this.getInvoiceType(), null, \"parentType\", null, 0, 1, InvoiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceTypeAttrEClass, InvoiceTypeAttr.class, \"InvoiceTypeAttr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceTypeAttr_InvoiceType(), this.getInvoiceType(), null, \"invoiceType\", null, 1, 1, InvoiceTypeAttr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTypeAttr_AttrName(), ecorePackage.getEString(), \"attrName\", null, 1, 1, InvoiceTypeAttr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTypeAttr_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, InvoiceTypeAttr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create annotations\n\t\t// http://www.eclipse.org/emf/2002/Ecore\n\t\tcreateEcoreAnnotations();\n\t\t// mimo-ent-frame\n\t\tcreateMimoentframeAnnotations();\n\t\t// org.abchip.mimo.core.base.invocation\n\t\tcreateOrgAnnotations();\n\t\t// mimo-ent-format\n\t\tcreateMimoentformatAnnotations();\n\t\t// mimo-ent-slot-constraints\n\t\tcreateMimoentslotconstraintsAnnotations();\n\t\t// mimo-ent-slot\n\t\tcreateMimoentslotAnnotations();\n\t}", "public void initializePackageContents()\n {\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\tclarityAddFilesEClass.getESuperTypes().add(this.getClarityAbstractObject());\n\t\tclarityGetBatchResultEClass.getESuperTypes().add(this.getClarityAbstractObject());\n\t\tclarityGetKeyEClass.getESuperTypes().add(this.getClarityAbstractObject());\n\t\tclarityQueryBatchEClass.getESuperTypes().add(this.getClarityAbstractObject());\n\t\tclarityReloadFileEClass.getESuperTypes().add(this.getClarityAbstractObject());\n\t\tclarityRemoveFilesEClass.getESuperTypes().add(this.getClarityAbstractObject());\n\t\tstartBatchEClass.getESuperTypes().add(this.getClarityAbstractObject());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(clarityAbstractObjectEClass, ClarityAbstractObject.class, \"ClarityAbstractObject\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getClarityAbstractObject_ClarityConnection(), ecorePackage.getEString(), \"clarityConnection\", null, 0, 1, ClarityAbstractObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(clarityAddFilesEClass, ClarityAddFiles.class, \"ClarityAddFiles\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(clarityGetBatchResultEClass, ClarityGetBatchResult.class, \"ClarityGetBatchResult\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(clarityGetKeyEClass, ClarityGetKey.class, \"ClarityGetKey\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(clarityQueryBatchEClass, ClarityQueryBatch.class, \"ClarityQueryBatch\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(clarityReloadFileEClass, ClarityReloadFile.class, \"ClarityReloadFile\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(clarityRemoveFilesEClass, ClarityRemoveFiles.class, \"ClarityRemoveFiles\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(startBatchEClass, StartBatch.class, \"StartBatch\", !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// cbgeneralcontrol\n\t\tcreateCbgeneralcontrolAnnotations();\n\t}", "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\teActorEClass.getESuperTypes().add(this.getEDomainSpecificEntity());\n\t\teItemEClass.getESuperTypes().add(this.getEDomainSpecificEntity());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(eDomainSchemaEClass, EDomainSchema.class, \"EDomainSchema\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getEDomainSchema_Cs(), this.getEControlSchema(), null, \"cs\", null, 0, 1, EDomainSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEDomainSchema_Ds(), this.getEDataSchema(), null, \"ds\", null, 0, 1, EDomainSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eControlSchemaEClass, EControlSchema.class, \"EControlSchema\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getEControlSchema_Actor(), this.getEActor(), null, \"actor\", null, 1, -1, EControlSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eDataSchemaEClass, EDataSchema.class, \"EDataSchema\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getEDataSchema_Cs(), this.getEControlSchema(), null, \"cs\", null, 1, 1, EDataSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEDataSchema_Item(), this.getEItem(), null, \"item\", null, 1, -1, EDataSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eDomainSpecificEntityEClass, EDomainSpecificEntity.class, \"EDomainSpecificEntity\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getEDomainSpecificEntity_CommandPriority(), ecorePackage.getEInt(), \"commandPriority\", null, 0, 1, EDomainSpecificEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEDomainSpecificEntity_Cmd(), this.getEDomainSpecificCommand(), null, \"cmd\", null, 0, -1, EDomainSpecificEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eDomainSpecificCommandEClass, EDomainSpecificCommand.class, \"EDomainSpecificCommand\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getEDomainSpecificCommand_CmdId(), ecorePackage.getEInt(), \"cmdId\", null, 0, 1, EDomainSpecificCommand.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eActorEClass, EActor.class, \"EActor\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getEActor_KindInteraction(), this.getECoordinationBehavior(), \"kindInteraction\", null, 0, 1, EActor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEActor_TypesControlled(), this.getEDomainSpecificType(), null, \"typesControlled\", null, 0, -1, EActor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eItemEClass, EItem.class, \"EItem\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getEItem_ArisingBehavior(), this.getEArising(), \"arisingBehavior\", null, 0, 1, EItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEItem_Type(), this.getEDomainSpecificType(), null, \"type\", null, 1, 1, EItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eDomainSpecificTypeEClass, EDomainSpecificType.class, \"EDomainSpecificType\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getEDomainSpecificType_InteractionBehavior(), this.getEInteractionBehavior(), \"interactionBehavior\", null, 0, 1, EDomainSpecificType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getEDomainSpecificType_Cardinality(), this.getECardinality(), \"cardinality\", null, 0, 1, EDomainSpecificType.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(eArisingEEnum, EArising.class, \"EArising\");\n\t\taddEEnumLiteral(eArisingEEnum, EArising.STATIC);\n\t\taddEEnumLiteral(eArisingEEnum, EArising.DYNAMIC);\n\n\t\tinitEEnum(eCardinalityEEnum, ECardinality.class, \"ECardinality\");\n\t\taddEEnumLiteral(eCardinalityEEnum, ECardinality.ONE);\n\t\taddEEnumLiteral(eCardinalityEEnum, ECardinality.MANY);\n\n\t\tinitEEnum(eInteractionBehaviorEEnum, EInteractionBehavior.class, \"EInteractionBehavior\");\n\t\taddEEnumLiteral(eInteractionBehaviorEEnum, EInteractionBehavior.SYNC);\n\t\taddEEnumLiteral(eInteractionBehaviorEEnum, EInteractionBehavior.ASYNC);\n\n\t\tinitEEnum(eCoordinationBehaviorEEnum, ECoordinationBehavior.class, \"ECoordinationBehavior\");\n\t\taddEEnumLiteral(eCoordinationBehaviorEEnum, ECoordinationBehavior.LOCAL);\n\t\taddEEnumLiteral(eCoordinationBehaviorEEnum, ECoordinationBehavior.DISTRIBUTED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "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\tServiceCIMPackage theServiceCIMPackage = (ServiceCIMPackage)EPackage.Registry.INSTANCE.getEPackage(ServiceCIMPackage.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\tauthorizableResourceEClass.getESuperTypes().add(this.getAnnotation());\r\n\t\tannResourceEClass.getESuperTypes().add(this.getAnnotatedElement());\r\n\t\tannPropertyEClass.getESuperTypes().add(this.getAnnotatedElement());\r\n\t\tauthorizationSubjectEClass.getESuperTypes().add(this.getAnnotation());\r\n\t\tannCRUDActivityEClass.getESuperTypes().add(this.getAnnotatedElement());\r\n\t\tnewPropertyEClass.getESuperTypes().add(this.getAnnotation());\r\n\r\n\t\t// Initialize classes, features, and operations; add parameters\r\n\t\tinitEClass(annotationModelEClass, AnnotationModel.class, \"AnnotationModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getAnnotationModel_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, AnnotationModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\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);\r\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);\r\n\r\n\t\tinitEClass(annotationEClass, Annotation.class, \"Annotation\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(authorizableResourceEClass, AuthorizableResource.class, \"AuthorizableResource\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\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);\r\n\t\tinitEReference(getAuthorizableResource_IsAuthorizableResource(), this.getAnnResource(), null, \"isAuthorizableResource\", null, 1, 1, AuthorizableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\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);\r\n\r\n\t\tinitEClass(resourceAccessPolicySetEClass, ResourceAccessPolicySet.class, \"ResourceAccessPolicySet\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getResourceAccessPolicySet_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, ResourceAccessPolicySet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\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);\r\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);\r\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);\r\n\r\n\t\tinitEClass(annotatedElementEClass, AnnotatedElement.class, \"AnnotatedElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(annResourceEClass, AnnResource.class, \"AnnResource\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAnnResource_AnnotatesResource(), theServiceCIMPackage.getResource(), null, \"annotatesResource\", null, 1, 1, AnnResource.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(resourceAccessPolicyEClass, ResourceAccessPolicy.class, \"ResourceAccessPolicy\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getResourceAccessPolicy_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, ResourceAccessPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\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);\r\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);\r\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);\r\n\r\n\t\tinitEClass(conditionEClass, Condition.class, \"Condition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\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);\r\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);\r\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);\r\n\r\n\t\tinitEClass(attributeEClass, Attribute.class, \"Attribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\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);\r\n\t\tinitEReference(getAttribute_IsAttributeExistingProperty(), this.getAnnProperty(), 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);\r\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);\r\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);\r\n\t\tinitEReference(getAttribute_IsAttributeResource(), this.getAnnResource(), null, \"isAttributeResource\", 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(annPropertyEClass, AnnProperty.class, \"AnnProperty\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAnnProperty_AnnotatesProperty(), theServiceCIMPackage.getProperty(), null, \"annotatesProperty\", null, 1, 1, AnnProperty.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(resourceAccessRuleEClass, ResourceAccessRule.class, \"ResourceAccessRule\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\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);\r\n\t\tinitEAttribute(getResourceAccessRule_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, ResourceAccessRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\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);\r\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);\r\n\r\n\t\tinitEClass(authorizationSubjectEClass, AuthorizationSubject.class, \"AuthorizationSubject\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAuthorizationSubject_IsAuthorizationSubject(), this.getAnnResource(), 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);\r\n\r\n\t\tinitEClass(annCRUDActivityEClass, AnnCRUDActivity.class, \"AnnCRUDActivity\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAnnCRUDActivity_AnnotatesCRUDActivity(), theServiceCIMPackage.getCRUDActivity(), null, \"annotatesCRUDActivity\", null, 1, 1, AnnCRUDActivity.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(allowedActionEClass, AllowedAction.class, \"AllowedAction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAllowedAction_IsAllowedAction(), this.getAnnCRUDActivity(), 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);\r\n\r\n\t\tinitEClass(newPropertyEClass, NewProperty.class, \"NewProperty\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getNewProperty_BelongsToResource(), this.getAnnResource(), 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);\r\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);\r\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);\r\n\t\tinitEAttribute(getNewProperty_BIsUnique(), ecorePackage.getEBoolean(), \"bIsUnique\", null, 1, 1, NewProperty.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(combiningAlgorithmEEnum, CombiningAlgorithm.class, \"CombiningAlgorithm\");\r\n\t\taddEEnumLiteral(combiningAlgorithmEEnum, CombiningAlgorithm.DENY_OVERRIDES);\r\n\t\taddEEnumLiteral(combiningAlgorithmEEnum, CombiningAlgorithm.PERMIT_OVERRIDES);\r\n\t\taddEEnumLiteral(combiningAlgorithmEEnum, CombiningAlgorithm.DENY_UNLESS_PERMIT);\r\n\t\taddEEnumLiteral(combiningAlgorithmEEnum, CombiningAlgorithm.PERMIT_UNLESS_DENY);\r\n\r\n\t\tinitEEnum(operatorEEnum, Operator.class, \"Operator\");\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.EQUAL);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.GREATER_THAN);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.LESS_THAN);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.GREATER_THAN_OR_EQUAL);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.LESS_THAN_OR_EQUAL);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.NOT_EQUAL);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.SUBSET);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.NOT_SUBSET);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.SET_CONTAINS);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.SET_NOT_CONTAINS);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.REGEX);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.UNDEFINED);\r\n\r\n\t\tinitEEnum(attributeCategoryEEnum, AttributeCategory.class, \"AttributeCategory\");\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.ACCESS_SUBJECT);\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.ACCESSED_RESOURCE);\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.PARENT_RESOURCE);\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.CHILD_RESOURCE);\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.INCLUDED_RESOURCE);\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.CONSTANT);\r\n\r\n\t\tinitEEnum(ruleTypeEEnum, RuleType.class, \"RuleType\");\r\n\t\taddEEnumLiteral(ruleTypeEEnum, RuleType.PERMIT);\r\n\t\taddEEnumLiteral(ruleTypeEEnum, RuleType.DENY);\r\n\r\n\t\t// Create resource\r\n\t\tcreateResource(eNS_URI);\r\n\t}", "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\tServicesPackage theServicesPackage = (ServicesPackage)EPackage.Registry.INSTANCE.getEPackage(ServicesPackage.eNS_URI);\n\t\tLibraryPackage theLibraryPackage = (LibraryPackage)EPackage.Registry.INSTANCE.getEPackage(LibraryPackage.eNS_URI);\n\t\tXMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);\n\t\tGenericsPackage theGenericsPackage = (GenericsPackage)EPackage.Registry.INSTANCE.getEPackage(GenericsPackage.eNS_URI);\n\t\tMetricsPackage theMetricsPackage = (MetricsPackage)EPackage.Registry.INSTANCE.getEPackage(MetricsPackage.eNS_URI);\n\t\tOperatorsPackage theOperatorsPackage = (OperatorsPackage)EPackage.Registry.INSTANCE.getEPackage(OperatorsPackage.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\tanalyzerJobEClass.getESuperTypes().add(this.getJob());\n\t\tcomponentFailureEClass.getESuperTypes().add(this.getExpressionFailure());\n\t\tcomponentWorkFlowRunEClass.getESuperTypes().add(this.getWorkFlowRun());\n\t\texpressionFailureEClass.getESuperTypes().add(this.getFailure());\n\t\tjobEClass.getESuperTypes().add(theGenericsPackage.getBase());\n\t\tmetricSourceJobEClass.getESuperTypes().add(this.getJob());\n\t\tnodeReporterJobEClass.getESuperTypes().add(this.getJob());\n\t\tnodeTypeReporterJobEClass.getESuperTypes().add(this.getJob());\n\t\toperatorReporterJobEClass.getESuperTypes().add(this.getJob());\n\t\tretentionJobEClass.getESuperTypes().add(this.getJob());\n\t\trfsServiceMonitoringJobEClass.getESuperTypes().add(this.getJob());\n\t\trfsServiceReporterJobEClass.getESuperTypes().add(this.getJob());\n\t\tserviceUserFailureEClass.getESuperTypes().add(this.getExpressionFailure());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(analyzerJobEClass, AnalyzerJob.class, \"AnalyzerJob\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAnalyzerJob_RFSService(), theServicesPackage.getRFSService(), null, \"rFSService\", null, 1, 1, AnalyzerJob.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(componentFailureEClass, ComponentFailure.class, \"ComponentFailure\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getComponentFailure_ComponentRef(), theLibraryPackage.getComponent(), null, \"componentRef\", null, 0, 1, ComponentFailure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(componentWorkFlowRunEClass, ComponentWorkFlowRun.class, \"ComponentWorkFlowRun\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getComponentWorkFlowRun_FailureRefs(), this.getFailure(), null, \"failureRefs\", null, 0, -1, ComponentWorkFlowRun.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(expressionFailureEClass, ExpressionFailure.class, \"ExpressionFailure\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getExpressionFailure_ExpressionRef(), theLibraryPackage.getExpression(), null, \"expressionRef\", null, 0, 1, ExpressionFailure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(failureEClass, Failure.class, \"Failure\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getFailure_Message(), theXMLTypePackage.getString(), \"message\", null, 0, 1, Failure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jobEClass, Job.class, \"Job\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getJob_EndTime(), theXMLTypePackage.getDateTime(), \"endTime\", null, 0, 1, Job.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJob_Interval(), theXMLTypePackage.getInt(), \"interval\", null, 0, 1, Job.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJob_JobState(), this.getJobState(), \"jobState\", null, 0, 1, Job.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJob_Name(), theXMLTypePackage.getString(), \"name\", null, 0, 1, Job.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJob_Repeat(), theXMLTypePackage.getInt(), \"repeat\", null, 0, 1, Job.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJob_StartTime(), theXMLTypePackage.getDateTime(), \"startTime\", null, 0, 1, Job.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jobRunContainerEClass, JobRunContainer.class, \"JobRunContainer\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJobRunContainer_Job(), this.getJob(), null, \"job\", null, 1, 1, JobRunContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJobRunContainer_WorkFlowRuns(), this.getWorkFlowRun(), null, \"workFlowRuns\", null, 0, -1, JobRunContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(metricSourceJobEClass, MetricSourceJob.class, \"MetricSourceJob\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getMetricSourceJob_MetricSources(), theMetricsPackage.getMetricSource(), null, \"metricSources\", null, 1, -1, MetricSourceJob.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(nodeReporterJobEClass, NodeReporterJob.class, \"NodeReporterJob\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getNodeReporterJob_Node(), theOperatorsPackage.getNode(), null, \"node\", null, 1, 1, NodeReporterJob.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(nodeTypeReporterJobEClass, NodeTypeReporterJob.class, \"NodeTypeReporterJob\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getNodeTypeReporterJob_NodeType(), theLibraryPackage.getNodeType(), null, \"nodeType\", null, 1, 1, NodeTypeReporterJob.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getNodeTypeReporterJob_ScopeObject(), ecorePackage.getEObject(), null, \"scopeObject\", null, 1, 1, NodeTypeReporterJob.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(operatorReporterJobEClass, OperatorReporterJob.class, \"OperatorReporterJob\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getOperatorReporterJob_Operator(), theOperatorsPackage.getOperator(), null, \"operator\", null, 1, 1, OperatorReporterJob.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(retentionJobEClass, RetentionJob.class, \"RetentionJob\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(rfsServiceMonitoringJobEClass, RFSServiceMonitoringJob.class, \"RFSServiceMonitoringJob\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRFSServiceMonitoringJob_RFSService(), theServicesPackage.getRFSService(), null, \"rFSService\", null, 1, 1, RFSServiceMonitoringJob.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(rfsServiceReporterJobEClass, RFSServiceReporterJob.class, \"RFSServiceReporterJob\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRFSServiceReporterJob_RFSService(), theServicesPackage.getRFSService(), null, \"rFSService\", null, 1, 1, RFSServiceReporterJob.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(serviceUserFailureEClass, ServiceUserFailure.class, \"ServiceUserFailure\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getServiceUserFailure_ServiceUserRef(), theServicesPackage.getServiceUser(), null, \"serviceUserRef\", null, 0, 1, ServiceUserFailure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(workFlowRunEClass, WorkFlowRun.class, \"WorkFlowRun\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getWorkFlowRun_Ended(), theXMLTypePackage.getDateTime(), \"ended\", null, 0, 1, WorkFlowRun.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getWorkFlowRun_Log(), theGenericsPackage.getLongText(), \"log\", null, 0, 1, WorkFlowRun.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getWorkFlowRun_Progress(), theXMLTypePackage.getInt(), \"progress\", null, 0, 1, WorkFlowRun.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getWorkFlowRun_ProgressMessage(), theXMLTypePackage.getString(), \"progressMessage\", null, 0, 1, WorkFlowRun.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getWorkFlowRun_ProgressTask(), theXMLTypePackage.getString(), \"progressTask\", null, 0, 1, WorkFlowRun.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getWorkFlowRun_Started(), theXMLTypePackage.getDateTime(), \"started\", null, 0, 1, WorkFlowRun.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getWorkFlowRun_State(), this.getJobRunState(), \"state\", null, 0, 1, WorkFlowRun.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(jobRunStateEEnum, JobRunState.class, \"JobRunState\");\n\t\taddEEnumLiteral(jobRunStateEEnum, JobRunState.RUNNING);\n\t\taddEEnumLiteral(jobRunStateEEnum, JobRunState.FINISHED_SUCCESSFULLY);\n\t\taddEEnumLiteral(jobRunStateEEnum, JobRunState.FINISHED_WITH_ERROR);\n\n\t\tinitEEnum(jobStateEEnum, JobState.class, \"JobState\");\n\t\taddEEnumLiteral(jobStateEEnum, JobState.ACTIVE);\n\t\taddEEnumLiteral(jobStateEEnum, JobState.IN_ACTIVE);\n\n\t\t// Initialize data types\n\t\tinitEDataType(jobRunStateObjectEDataType, JobRunState.class, \"JobRunStateObject\", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEDataType(jobStateObjectEDataType, JobState.class, \"JobStateObject\", 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// http://www.eclipse.org/emf/2002/Ecore\n\t\tcreateEcoreAnnotations();\n\t\t// http:///org/eclipse/emf/ecore/util/ExtendedMetaData\n\t\tcreateExtendedMetaDataAnnotations();\n\t}", "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 acT_SpNoMsgEClass.getESuperTypes().add(this.getACTION());\n acT_SpBrEClass.getESuperTypes().add(this.getACTION());\n acT_SpUniEClass.getESuperTypes().add(this.getACTION());\n acT_InBrEClass.getESuperTypes().add(this.getACTION());\n acT_InUniEClass.getESuperTypes().add(this.getACTION());\n pR_ExprEClass.getESuperTypes().add(this.getTerminal_PR_Expr());\n ratE_ExprEClass.getESuperTypes().add(this.getIRange());\n ratE_ExprEClass.getESuperTypes().add(this.getTerminal_RATE_Expr());\n agenT_NUMEClass.getESuperTypes().add(this.getTerminal_PR_Expr());\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_Params(), this.getParam(), null, \"params\", 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_States(), this.getAgentState(), null, \"states\", 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_Population(), this.getPOPULATION(), null, \"population\", 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(paramEClass, Param.class, \"Param\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getParam_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Param.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getParam_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, Param.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(agentStateEClass, AgentState.class, \"AgentState\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getAgentState_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, AgentState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getAgentState_Prefixs(), this.getPrefix(), null, \"prefixs\", null, 0, -1, AgentState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(prefixEClass, Prefix.class, \"Prefix\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getPrefix_Action(), this.getACTION(), null, \"action\", null, 0, 1, Prefix.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getPrefix_Continue(), ecorePackage.getEString(), \"continue\", null, 0, 1, Prefix.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(actionEClass, org.xtext.edinburgh.paloma.ACTION.class, \"ACTION\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getACTION_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, org.xtext.edinburgh.paloma.ACTION.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getACTION_Rate(), this.getRATE_Expr(), null, \"rate\", null, 0, 1, org.xtext.edinburgh.paloma.ACTION.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(acT_SpNoMsgEClass, ACT_SpNoMsg.class, \"ACT_SpNoMsg\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(acT_SpBrEClass, ACT_SpBr.class, \"ACT_SpBr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getACT_SpBr_Range(), this.getIRange(), null, \"range\", null, 0, 1, ACT_SpBr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(acT_SpUniEClass, ACT_SpUni.class, \"ACT_SpUni\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getACT_SpUni_Range(), this.getIRange(), null, \"range\", null, 0, 1, ACT_SpUni.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(acT_InBrEClass, ACT_InBr.class, \"ACT_InBr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getACT_InBr_Value(), this.getPR_Expr(), null, \"value\", null, 0, 1, ACT_InBr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(acT_InUniEClass, ACT_InUni.class, \"ACT_InUni\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getACT_InUni_Value(), this.getPR_Expr(), null, \"value\", null, 0, 1, ACT_InUni.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(iRangeEClass, IRange.class, \"IRange\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(pR_ExprEClass, PR_Expr.class, \"PR_Expr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getPR_Expr_PrE(), this.getTerminal_PR_Expr(), null, \"prE\", null, 0, -1, PR_Expr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(terminal_PR_ExprEClass, Terminal_PR_Expr.class, \"Terminal_PR_Expr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getTerminal_PR_Expr_LinkedParam(), ecorePackage.getEString(), \"linkedParam\", null, 0, 1, Terminal_PR_Expr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(ratE_ExprEClass, RATE_Expr.class, \"RATE_Expr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getRATE_Expr_Rt(), this.getTerminal_RATE_Expr(), null, \"rt\", null, 0, -1, RATE_Expr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(terminal_RATE_ExprEClass, Terminal_RATE_Expr.class, \"Terminal_RATE_Expr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getTerminal_RATE_Expr_LinkedParam(), ecorePackage.getEString(), \"linkedParam\", null, 0, 1, Terminal_RATE_Expr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(agenT_NUMEClass, org.xtext.edinburgh.paloma.AGENT_NUM.class, \"AGENT_NUM\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getAGENT_NUM_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, org.xtext.edinburgh.paloma.AGENT_NUM.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(populationEClass, org.xtext.edinburgh.paloma.POPULATION.class, \"POPULATION\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getPOPULATION_Popu(), this.getAGENTS(), null, \"popu\", null, 0, -1, org.xtext.edinburgh.paloma.POPULATION.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(agentsEClass, org.xtext.edinburgh.paloma.AGENTS.class, \"AGENTS\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getAGENTS_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, org.xtext.edinburgh.paloma.AGENTS.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 }", "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\tCorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI);\n\t\tEcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);\n\t\tObjectsPackage theObjectsPackage = (ObjectsPackage)EPackage.Registry.INSTANCE.getEPackage(ObjectsPackage.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\treadCsvFileEClass.getESuperTypes().add(theCorePackage.getCommand());\n\t\tprintEClass.getESuperTypes().add(theCorePackage.getCommand());\n\t\twriteCsvFileEClass.getESuperTypes().add(theCorePackage.getCommand());\n\t\texcludeColumnsEClass.getESuperTypes().add(theCorePackage.getCommand());\n\t\tselectColumnsEClass.getESuperTypes().add(theCorePackage.getCommand());\n\t\tassertTablesMatchEClass.getESuperTypes().add(theCorePackage.getCommand());\n\t\twriteLinesEClass.getESuperTypes().add(theCorePackage.getCommand());\n\t\treadLinesEClass.getESuperTypes().add(theCorePackage.getCommand());\n\t\tselectRowsEClass.getESuperTypes().add(theCorePackage.getCommand());\n\t\texcludeRowsEClass.getESuperTypes().add(theCorePackage.getCommand());\n\t\tasTableDataEClass.getESuperTypes().add(theCorePackage.getCommand());\n\t\treadPropertiesEClass.getESuperTypes().add(theCorePackage.getCommand());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(readCsvFileEClass, ReadCsvFile.class, \"ReadCsvFile\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getReadCsvFile_Uri(), ecorePackage.getEString(), \"uri\", null, 0, 1, ReadCsvFile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(printEClass, Print.class, \"Print\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPrint_Input(), theEcorePackage.getEObject(), null, \"input\", null, 0, -1, Print.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(writeCsvFileEClass, WriteCsvFile.class, \"WriteCsvFile\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getWriteCsvFile_Table(), theObjectsPackage.getTable(), null, \"table\", null, 0, 1, WriteCsvFile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getWriteCsvFile_Uri(), theEcorePackage.getEString(), \"uri\", null, 0, 1, WriteCsvFile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(excludeColumnsEClass, ExcludeColumns.class, \"ExcludeColumns\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getExcludeColumns_Table(), theObjectsPackage.getTable(), null, \"table\", null, 0, 1, ExcludeColumns.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getExcludeColumns_Columns(), theEcorePackage.getEString(), \"columns\", null, 0, -1, ExcludeColumns.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(selectColumnsEClass, SelectColumns.class, \"SelectColumns\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSelectColumns_Table(), theObjectsPackage.getTable(), null, \"table\", null, 0, 1, SelectColumns.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSelectColumns_Columns(), theEcorePackage.getEString(), \"columns\", null, 0, -1, SelectColumns.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(assertTablesMatchEClass, AssertTablesMatch.class, \"AssertTablesMatch\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAssertTablesMatch_Left(), theObjectsPackage.getTable(), null, \"left\", null, 0, 1, AssertTablesMatch.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAssertTablesMatch_Right(), theObjectsPackage.getTable(), null, \"right\", null, 0, 1, AssertTablesMatch.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAssertTablesMatch_IgnoreColumnOrder(), theEcorePackage.getEBoolean(), \"ignoreColumnOrder\", \"false\", 0, 1, AssertTablesMatch.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAssertTablesMatch_IgnoreMissingColumns(), this.getIgnoreColumnsMode(), \"ignoreMissingColumns\", \"NONE\", 0, 1, AssertTablesMatch.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(writeLinesEClass, WriteLines.class, \"WriteLines\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getWriteLines_Uri(), theEcorePackage.getEString(), \"uri\", null, 0, 1, WriteLines.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getWriteLines_Append(), theEcorePackage.getEBoolean(), \"append\", \"false\", 0, 1, WriteLines.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(readLinesEClass, ReadLines.class, \"ReadLines\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getReadLines_Uri(), theEcorePackage.getEString(), \"uri\", null, 1, 1, ReadLines.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(selectRowsEClass, SelectRows.class, \"SelectRows\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSelectRows_Table(), theObjectsPackage.getTable(), null, \"table\", null, 0, 1, SelectRows.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSelectRows_Column(), theEcorePackage.getEString(), \"column\", null, 0, 1, SelectRows.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSelectRows_Value(), theEcorePackage.getEString(), \"value\", null, 0, 1, SelectRows.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSelectRows_Match(), this.getRowMatchMode(), \"match\", null, 0, 1, SelectRows.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(excludeRowsEClass, ExcludeRows.class, \"ExcludeRows\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getExcludeRows_Table(), theObjectsPackage.getTable(), null, \"table\", null, 0, 1, ExcludeRows.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getExcludeRows_Column(), theEcorePackage.getEString(), \"column\", null, 0, 1, ExcludeRows.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getExcludeRows_Value(), theEcorePackage.getEString(), \"value\", null, 0, 1, ExcludeRows.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getExcludeRows_Match(), this.getRowMatchMode(), \"match\", null, 0, 1, ExcludeRows.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(asTableDataEClass, AsTableData.class, \"AsTableData\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAsTableData_Input(), theEcorePackage.getEObject(), null, \"input\", null, 0, -1, AsTableData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(readPropertiesEClass, ReadProperties.class, \"ReadProperties\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getReadProperties_Uri(), ecorePackage.getEString(), \"uri\", null, 0, 1, ReadProperties.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(ignoreColumnsModeEEnum, IgnoreColumnsMode.class, \"IgnoreColumnsMode\");\n\t\taddEEnumLiteral(ignoreColumnsModeEEnum, IgnoreColumnsMode.NONE);\n\t\taddEEnumLiteral(ignoreColumnsModeEEnum, IgnoreColumnsMode.LEFT);\n\t\taddEEnumLiteral(ignoreColumnsModeEEnum, IgnoreColumnsMode.RIGHT);\n\t\taddEEnumLiteral(ignoreColumnsModeEEnum, IgnoreColumnsMode.BOTH);\n\n\t\tinitEEnum(rowMatchModeEEnum, RowMatchMode.class, \"RowMatchMode\");\n\t\taddEEnumLiteral(rowMatchModeEEnum, RowMatchMode.EXACT);\n\t\taddEEnumLiteral(rowMatchModeEEnum, RowMatchMode.GLOB);\n\t\taddEEnumLiteral(rowMatchModeEEnum, RowMatchMode.REGEXP);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\n\t\t// Create annotations\n\t\t// http://www.eclipse.org/ecl/docs\n\t\tcreateDocsAnnotations();\n\t\t// http://www.eclipse.org/ecl/internal\n\t\tcreateInternalAnnotations();\n\t\t// http://www.eclipse.org/ecl/input\n\t\tcreateInputAnnotations();\n\t}", "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 createFolderStatementEClass.getESuperTypes().add(this.getCreateStatement());\n createFileStatementEClass.getESuperTypes().add(this.getCreateStatement());\n\n // Initialize classes and features; add operations and parameters\n initEClass(persistEClass, Persist.class, \"Persist\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getPersist_Model(), ecorePackage.getEString(), \"model\", null, 0, 1, Persist.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getPersist_Statements(), this.getRuleStatement(), null, \"statements\", null, 0, -1, Persist.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(ruleStatementEClass, RuleStatement.class, \"RuleStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getRuleStatement_Id(), ecorePackage.getEString(), \"id\", null, 0, 1, RuleStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getRuleStatement_Rules(), this.getForEachStatement(), null, \"rules\", null, 0, -1, RuleStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(forEachStatementEClass, ForEachStatement.class, \"ForEachStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getForEachStatement_Class(), this.getEClassName(), null, \"class\", null, 0, 1, ForEachStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getForEachStatement_Contents(), this.getCreateStatement(), null, \"contents\", null, 0, -1, ForEachStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getForEachStatement_Calls(), this.getCallStatement(), null, \"calls\", null, 0, -1, ForEachStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(createStatementEClass, CreateStatement.class, \"CreateStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getCreateStatement_Name(), this.getFileName(), null, \"name\", null, 0, 1, CreateStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(createFolderStatementEClass, CreateFolderStatement.class, \"CreateFolderStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getCreateFolderStatement_Contents(), this.getCreateStatement(), null, \"contents\", null, 0, -1, CreateFolderStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getCreateFolderStatement_Calls(), this.getCallStatement(), null, \"calls\", null, 0, -1, CreateFolderStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(createFileStatementEClass, CreateFileStatement.class, \"CreateFileStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getCreateFileStatement_IncludedReferencing(), this.getWithStatement(), null, \"includedReferencing\", null, 0, 1, CreateFileStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getCreateFileStatement_IncludedAttributes(), this.getIncludeStatement(), null, \"includedAttributes\", null, 0, 1, CreateFileStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(fileNameEClass, FileName.class, \"FileName\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getFileName_Prefix(), ecorePackage.getEString(), \"prefix\", null, 0, 1, FileName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getFileName_Attr(), this.getEAttributeName(), null, \"attr\", null, 0, 1, FileName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getFileName_Right(), this.getFileName(), null, \"right\", null, 0, 1, FileName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(includeStatementEClass, IncludeStatement.class, \"IncludeStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getIncludeStatement_Included(), this.getEReferenceName(), null, \"included\", null, 0, -1, IncludeStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(withStatementEClass, WithStatement.class, \"WithStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getWithStatement_Included(), this.getEClassName(), null, \"included\", null, 0, -1, WithStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(callStatementEClass, CallStatement.class, \"CallStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getCallStatement_Rules(), ecorePackage.getEString(), \"rules\", null, 0, -1, CallStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(eClassNameEClass, EClassName.class, \"EClassName\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getEClassName_Base(), ecorePackage.getEString(), \"base\", null, 0, 1, EClassName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getEClassName_Fields(), ecorePackage.getEString(), \"fields\", null, 0, -1, EClassName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(eAttributeNameEClass, EAttributeName.class, \"EAttributeName\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getEAttributeName_Base(), ecorePackage.getEString(), \"base\", null, 0, 1, EAttributeName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getEAttributeName_Fields(), ecorePackage.getEString(), \"fields\", null, 0, -1, EAttributeName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(eReferenceNameEClass, EReferenceName.class, \"EReferenceName\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getEReferenceName_Base(), ecorePackage.getEString(), \"base\", null, 0, 1, EReferenceName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getEReferenceName_Fields(), ecorePackage.getEString(), \"fields\", null, 0, -1, EReferenceName.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 }", "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\tuserTaskEClass.getESuperTypes().add(this.getTask());\n\t\tapplicationTaskEClass.getESuperTypes().add(this.getTask());\n\t\tinteractionTaskEClass.getESuperTypes().add(this.getTask());\n\t\tabstractionTaskEClass.getESuperTypes().add(this.getTask());\n\t\tnullTaskEClass.getESuperTypes().add(this.getTask());\n\t\tchoiceOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\torderIndependenceOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\tinterleavingOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\tsynchronizationOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\tparallelOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\tdisablingOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\tsequentialEnablingInfoOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\tsequentialEnablingOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\tsuspendResumeOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(taskModelEClass, TaskModel.class, \"TaskModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTaskModel_Root(), this.getTask(), null, \"root\", null, 1, 1, TaskModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTaskModel_Tasks(), this.getTask(), null, \"tasks\", null, 1, -1, TaskModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTaskModel_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, TaskModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, 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_Id(), ecorePackage.getEString(), \"id\", 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_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\t\tinitEReference(getTask_Operator(), this.getTemporalOperator(), null, \"operator\", 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\t\tinitEReference(getTask_Subtasks(), this.getTask(), this.getTask_Parent(), \"subtasks\", 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\t\tinitEReference(getTask_Parent(), this.getTask(), this.getTask_Subtasks(), \"parent\", 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\t\tinitEAttribute(getTask_Min(), ecorePackage.getEIntegerObject(), \"min\", 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_Max(), ecorePackage.getEIntegerObject(), \"max\", 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_Iterative(), ecorePackage.getEBooleanObject(), \"iterative\", null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(userTaskEClass, UserTask.class, \"UserTask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(applicationTaskEClass, ApplicationTask.class, \"ApplicationTask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(interactionTaskEClass, InteractionTask.class, \"InteractionTask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(abstractionTaskEClass, AbstractionTask.class, \"AbstractionTask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(nullTaskEClass, NullTask.class, \"NullTask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(temporalOperatorEClass, TemporalOperator.class, \"TemporalOperator\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(choiceOperatorEClass, ChoiceOperator.class, \"ChoiceOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(orderIndependenceOperatorEClass, OrderIndependenceOperator.class, \"OrderIndependenceOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(interleavingOperatorEClass, InterleavingOperator.class, \"InterleavingOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(synchronizationOperatorEClass, SynchronizationOperator.class, \"SynchronizationOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(parallelOperatorEClass, ParallelOperator.class, \"ParallelOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(disablingOperatorEClass, DisablingOperator.class, \"DisablingOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(sequentialEnablingInfoOperatorEClass, SequentialEnablingInfoOperator.class, \"SequentialEnablingInfoOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(sequentialEnablingOperatorEClass, SequentialEnablingOperator.class, \"SequentialEnablingOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(suspendResumeOperatorEClass, SuspendResumeOperator.class, \"SuspendResumeOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "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\tstateEClass.getESuperTypes().add(this.getEndPoint());\n\t\tconnectorEClass.getESuperTypes().add(this.getEndPoint());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(stateEClass, State.class, \"State\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getState_Name(), ecorePackage.getEString(), \"Name\", 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_Invariant(), ecorePackage.getEString(), \"Invariant\", 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_Initial(), ecorePackage.getEBoolean(), \"Initial\", 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_Urgent(), ecorePackage.getEBoolean(), \"Urgent\", 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_Committed(), ecorePackage.getEBoolean(), \"Committed\", 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(connectorEClass, Connector.class, \"Connector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getConnector_Name(), ecorePackage.getEString(), \"Name\", null, 0, 1, Connector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getConnector_Diagram(), this.getDiagram(), this.getDiagram_Connectors(), \"diagram\", null, 1, 1, Connector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(diagramEClass, Diagram.class, \"Diagram\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDiagram_Name(), ecorePackage.getEString(), \"Name\", null, 0, 1, Diagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDiagram_Connectors(), this.getConnector(), this.getConnector_Diagram(), \"connectors\", null, 0, -1, Diagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDiagram_States(), this.getState(), null, \"states\", null, 0, -1, Diagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDiagram_Subdiagrams(), this.getDiagram(), null, \"subdiagrams\", null, 0, -1, Diagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDiagram_Edges(), this.getEdge(), null, \"edges\", null, 0, -1, Diagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getDiagram_IsParallel(), ecorePackage.getEBoolean(), \"IsParallel\", null, 0, 1, Diagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, 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_Start(), this.getEndPoint(), this.getEndPoint_OutgoingEdges(), \"start\", 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_End(), this.getEndPoint(), null, \"end\", 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_EReference0(), this.getDiagram(), null, \"EReference0\", null, 0, 1, Edge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getEdge_Select(), ecorePackage.getEString(), \"Select\", null, 0, 1, Edge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getEdge_Guard(), ecorePackage.getEString(), \"Guard\", null, 0, 1, Edge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getEdge_Sync(), ecorePackage.getEString(), \"Sync\", null, 0, 1, Edge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getEdge_Update(), ecorePackage.getEString(), \"Update\", null, 0, 1, Edge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getEdge_Comments(), ecorePackage.getEString(), \"Comments\", null, 0, 1, Edge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(endPointEClass, EndPoint.class, \"EndPoint\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getEndPoint_OutgoingEdges(), this.getEdge(), this.getEdge_Start(), \"outgoingEdges\", null, 0, -1, EndPoint.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}", "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\tannotationEClass.getESuperTypes().add(this.getNamedElement());\n\t\ttargetLanguageEClass.getESuperTypes().add(this.getNamedElement());\n\t\ttechnologyEClass.getESuperTypes().add(this.getNamedElement());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(annotationEClass, Annotation.class, \"Annotation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAnnotation_Implementations(), this.getImplementation(), null, \"implementations\", null, 0, -1, Annotation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(implementationEClass, Implementation.class, \"Implementation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getImplementation_Code(), ecorePackage.getEString(), \"code\", null, 1, 1, Implementation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getImplementation_Technology(), this.getTechnology(), null, \"technology\", null, 1, 1, Implementation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getImplementation_Language(), this.getTargetLanguage(), null, \"language\", null, 1, 1, Implementation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(semanticsEClass, Semantics.class, \"Semantics\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSemantics_Annotations(), this.getAnnotation(), null, \"annotations\", null, 0, -1, Semantics.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSemantics_Languages(), this.getTargetLanguage(), null, \"languages\", null, 0, -1, Semantics.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSemantics_Technologies(), this.getTechnology(), null, \"technologies\", null, 0, -1, Semantics.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(targetLanguageEClass, TargetLanguage.class, \"TargetLanguage\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(technologyEClass, Technology.class, \"Technology\", !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\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\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "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(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(packageDeclarationEClass, PackageDeclaration.class, \"PackageDeclaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPackageDeclaration_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, PackageDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPackageDeclaration_Content(), this.getNamedElement(), null, \"content\", null, 0, -1, PackageDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(referenceableEClass, Referenceable.class, \"Referenceable\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "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(ledsCodeDSLEClass, LedsCodeDSL.class, \"LedsCodeDSL\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getLedsCodeDSL_Project(), this.getProject(), null, \"project\", null, 0, -1, LedsCodeDSL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(projectEClass, Project.class, \"Project\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getProject_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Project.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getProject_InfrastructureBlock(), this.getInfrastructureBlock(), null, \"infrastructureBlock\", null, 0, 1, Project.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getProject_InterfaceBlock(), this.getInterfaceBlock(), null, \"interfaceBlock\", null, 0, 1, Project.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getProject_ApplicationBlock(), this.getApplicationBlock(), null, \"applicationBlock\", null, 0, -1, Project.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getProject_DomainBlock(), this.getDomainBlock(), null, \"domainBlock\", null, 0, -1, Project.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(interfaceBlockEClass, InterfaceBlock.class, \"InterfaceBlock\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getInterfaceBlock_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, InterfaceBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getInterfaceBlock_InterfaceApplication(), this.getInterfaceApplication(), null, \"interfaceApplication\", null, 0, -1, InterfaceBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(interfaceApplicationEClass, InterfaceApplication.class, \"InterfaceApplication\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getInterfaceApplication_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, InterfaceApplication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getInterfaceApplication_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, InterfaceApplication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getInterfaceApplication_NameApp(), ecorePackage.getEString(), \"nameApp\", null, 0, 1, InterfaceApplication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(infrastructureBlockEClass, InfrastructureBlock.class, \"InfrastructureBlock\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getInfrastructureBlock_BasePackage(), ecorePackage.getEString(), \"basePackage\", null, 0, 1, InfrastructureBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getInfrastructureBlock_ProjectVersion(), ecorePackage.getEString(), \"projectVersion\", null, 0, 1, InfrastructureBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getInfrastructureBlock_Language(), this.getNameVersion(), null, \"language\", null, 0, 1, InfrastructureBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getInfrastructureBlock_Framework(), this.getNameVersion(), null, \"framework\", null, 0, 1, InfrastructureBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getInfrastructureBlock_Orm(), this.getNameVersion(), null, \"orm\", null, 0, 1, InfrastructureBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getInfrastructureBlock_Database(), this.getDatabase(), null, \"database\", null, 0, 1, InfrastructureBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(databaseEClass, Database.class, \"Database\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getDatabase_VersionValue(), ecorePackage.getEString(), \"versionValue\", null, 0, 1, Database.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getDatabase_NameValue(), ecorePackage.getEString(), \"nameValue\", null, 0, 1, Database.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getDatabase_UserValue(), ecorePackage.getEString(), \"userValue\", null, 0, 1, Database.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getDatabase_PassValue(), ecorePackage.getEString(), \"passValue\", null, 0, 1, Database.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getDatabase_HostValue(), ecorePackage.getEString(), \"hostValue\", null, 0, 1, Database.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getDatabase_EnvValue(), ecorePackage.getEString(), \"envValue\", null, 0, 1, Database.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(nameVersionEClass, NameVersion.class, \"NameVersion\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getNameVersion_NameValue(), ecorePackage.getEString(), \"nameValue\", null, 0, 1, NameVersion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getNameVersion_VersionValue(), ecorePackage.getEString(), \"versionValue\", null, 0, 1, NameVersion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(applicationBlockEClass, ApplicationBlock.class, \"ApplicationBlock\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getApplicationBlock_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, ApplicationBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getApplicationBlock_ApplicationDomain(), ecorePackage.getEString(), \"applicationDomain\", null, 0, -1, ApplicationBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(domainBlockEClass, DomainBlock.class, \"DomainBlock\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getDomainBlock_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, DomainBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getDomainBlock_Module(), this.getModuleBlock(), null, \"module\", null, 0, -1, DomainBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(moduleBlockEClass, ModuleBlock.class, \"ModuleBlock\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getModuleBlock_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, ModuleBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getModuleBlock_EnumBlock(), this.getEnumBlock(), null, \"enumBlock\", null, 0, -1, ModuleBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getModuleBlock_EntityBlock(), this.getEntityBlock(), null, \"entityBlock\", null, 0, -1, ModuleBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getModuleBlock_ServiceBlock(), this.getServiceBlock(), null, \"serviceBlock\", null, 0, -1, ModuleBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(serviceBlockEClass, ServiceBlock.class, \"ServiceBlock\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getServiceBlock_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, ServiceBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getServiceBlock_ServiceFields(), this.getServiceMethod(), null, \"serviceFields\", null, 0, -1, ServiceBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(serviceMethodEClass, ServiceMethod.class, \"ServiceMethod\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getServiceMethod_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, ServiceMethod.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getServiceMethod_MethodAcess(), this.getRepositoryFields(), null, \"methodAcess\", null, 0, 1, ServiceMethod.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(entityBlockEClass, EntityBlock.class, \"EntityBlock\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getEntityBlock_AcessModifier(), ecorePackage.getEString(), \"acessModifier\", null, 0, 1, EntityBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getEntityBlock_IsAbstract(), ecorePackage.getEBoolean(), \"isAbstract\", null, 0, 1, EntityBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getEntityBlock_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, EntityBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getEntityBlock_ClassExtends(), this.getExtendBlock(), null, \"classExtends\", null, 0, 1, EntityBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getEntityBlock_Attributes(), this.getAttribute(), null, \"attributes\", null, 0, -1, EntityBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getEntityBlock_Repository(), this.getRepository(), null, \"repository\", null, 0, 1, EntityBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(attributeEClass, Attribute.class, \"Attribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getAttribute_AcessModifier(), ecorePackage.getEString(), \"acessModifier\", 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(), ecorePackage.getEString(), \"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_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_Pk(), ecorePackage.getEBoolean(), \"pk\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getAttribute_Unique(), ecorePackage.getEString(), \"unique\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getAttribute_Nullable(), ecorePackage.getEString(), \"nullable\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getAttribute_Min(), ecorePackage.getEIntegerObject(), \"min\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getAttribute_Max(), ecorePackage.getEIntegerObject(), \"max\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(repositoryEClass, Repository.class, \"Repository\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getRepository_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Repository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getRepository_Methods(), this.getRepositoryFields(), null, \"methods\", null, 0, -1, Repository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(repositoryFieldsEClass, RepositoryFields.class, \"RepositoryFields\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getRepositoryFields_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, RepositoryFields.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getRepositoryFields_MethodsParameters(), this.getMethodParameter(), null, \"methodsParameters\", null, 0, 1, RepositoryFields.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getRepositoryFields_ReturnType(), ecorePackage.getEString(), \"returnType\", null, 0, 1, RepositoryFields.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(enumBlockEClass, EnumBlock.class, \"EnumBlock\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getEnumBlock_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, EnumBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getEnumBlock_Values(), ecorePackage.getEString(), \"values\", null, 0, -1, EnumBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(methodParameterEClass, MethodParameter.class, \"MethodParameter\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getMethodParameter_TypeAndAttr(), this.getTypeAndAttribute(), null, \"typeAndAttr\", null, 0, -1, MethodParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(typeAndAttributeEClass, TypeAndAttribute.class, \"TypeAndAttribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getTypeAndAttribute_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, TypeAndAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getTypeAndAttribute_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, TypeAndAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(extendBlockEClass, ExtendBlock.class, \"ExtendBlock\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getExtendBlock_Values(), this.getEntityBlock(), null, \"values\", null, 0, -1, ExtendBlock.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 }", "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\tinstructionEClass.getESuperTypes().add(this.getNamedElement());\n\t\tgoForwardEClass.getESuperTypes().add(this.getAction());\n\t\tgoBackwardEClass.getESuperTypes().add(this.getAction());\n\t\tbeginEClass.getESuperTypes().add(this.getAction());\n\t\trotateEClass.getESuperTypes().add(this.getAction());\n\t\treleaseEClass.getESuperTypes().add(this.getAction());\n\t\tactionEClass.getESuperTypes().add(this.getBlock());\n\t\tblockEClass.getESuperTypes().add(this.getInstruction());\n\t\tendEClass.getESuperTypes().add(this.getAction());\n\t\tchoreographyEClass.getESuperTypes().add(this.getInstruction());\n\t\tgrabEClass.getESuperTypes().add(this.getAction());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(instructionEClass, Instruction.class, \"Instruction\", 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\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(goForwardEClass, GoForward.class, \"GoForward\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getGoForward_Cm(), ecorePackage.getEInt(), \"cm\", null, 0, 1, GoForward.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getGoForward_Infinite(), ecorePackage.getEBoolean(), \"infinite\", null, 0, 1, GoForward.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(goBackwardEClass, GoBackward.class, \"GoBackward\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getGoBackward_Cm(), ecorePackage.getEInt(), \"cm\", null, 0, 1, GoBackward.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getGoBackward_Infinite(), ecorePackage.getEBoolean(), \"infinite\", null, 0, 1, GoBackward.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(beginEClass, Begin.class, \"Begin\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(rotateEClass, Rotate.class, \"Rotate\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getRotate_Degrees(), ecorePackage.getEInt(), \"degrees\", null, 0, 1, Rotate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRotate_Random(), ecorePackage.getEBoolean(), \"random\", null, 0, 1, Rotate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(releaseEClass, Release.class, \"Release\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(actionEClass, Action.class, \"Action\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(blockEClass, Block.class, \"Block\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(endEClass, End.class, \"End\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(choreographyEClass, Choreography.class, \"Choreography\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getChoreography_Instructions(), this.getInstruction(), null, \"instructions\", null, 0, -1, Choreography.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getChoreography_EdgeInstructions(), this.getEdgeInstruction(), null, \"edgeInstructions\", null, 0, -1, Choreography.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(edgeInstructionEClass, EdgeInstruction.class, \"EdgeInstruction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getEdgeInstruction_Source(), this.getInstruction(), null, \"source\", null, 0, 1, EdgeInstruction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEdgeInstruction_Target(), this.getInstruction(), null, \"target\", null, 0, 1, EdgeInstruction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(grabEClass, Grab.class, \"Grab\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "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\tpluginEClass.getESuperTypes().add(this.getAnalysisComponent());\n\t\tinputPortEClass.getESuperTypes().add(this.getPort());\n\t\toutputPortEClass.getESuperTypes().add(this.getPort());\n\t\tfilterEClass.getESuperTypes().add(this.getPlugin());\n\t\treaderEClass.getESuperTypes().add(this.getPlugin());\n\t\trepositoryEClass.getESuperTypes().add(this.getAnalysisComponent());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(projectEClass, MIProject.class, \"Project\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getProject_Plugins(), this.getPlugin(), null, \"plugins\", null, 0, -1, MIProject.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\tinitEAttribute(getProject_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,\n\t\t\t\t!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProject_Repositories(), this.getRepository(), null, \"repositories\", null, 0, -1, MIProject.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProject_Dependencies(), this.getDependency(), null, \"dependencies\", null, 0, -1, MIProject.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProject_Views(), this.getView(), null, \"views\", null, 0, -1, MIProject.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\t\tinitEReference(getProject_Properties(), this.getProperty(), null, \"properties\", null, 0, -1, MIProject.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\n\t\tinitEClass(pluginEClass, MIPlugin.class, \"Plugin\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPlugin_Repositories(), this.getRepositoryConnector(), null, \"repositories\", null, 0, -1, MIPlugin.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPlugin_OutputPorts(), this.getOutputPort(), this.getOutputPort_Parent(), \"outputPorts\", null, 0, -1, MIPlugin.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPlugin_Displays(), this.getDisplay(), this.getDisplay_Parent(), \"displays\", null, 0, -1, MIPlugin.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(portEClass, MIPort.class, \"Port\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPort_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,\n\t\t\t\t!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPort_EventTypes(), ecorePackage.getEString(), \"eventTypes\", null, 1, -1, MIPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n\t\t\t\t!IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPort_Id(), ecorePackage.getEString(), \"id\", null, 1, 1, MIPort.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(inputPortEClass, MIInputPort.class, \"InputPort\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInputPort_Parent(), this.getFilter(), this.getFilter_InputPorts(), \"parent\", null, 1, 1, MIInputPort.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(outputPortEClass, MIOutputPort.class, \"OutputPort\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getOutputPort_Subscribers(), this.getInputPort(), null, \"subscribers\", null, 0, -1, MIOutputPort.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getOutputPort_Parent(), this.getPlugin(), this.getPlugin_OutputPorts(), \"parent\", null, 1, 1, MIOutputPort.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(propertyEClass, MIProperty.class, \"Property\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getProperty_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n\t\t\t\t!IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getProperty_Value(), ecorePackage.getEString(), \"value\", null, 1, 1, MIProperty.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(filterEClass, MIFilter.class, \"Filter\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getFilter_InputPorts(), this.getInputPort(), this.getInputPort_Parent(), \"inputPorts\", null, 0, -1, MIFilter.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(readerEClass, MIReader.class, \"Reader\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(repositoryEClass, MIRepository.class, \"Repository\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(dependencyEClass, MIDependency.class, \"Dependency\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDependency_FilePath(), ecorePackage.getEString(), \"filePath\", null, 1, 1, MIDependency.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(repositoryConnectorEClass, MIRepositoryConnector.class, \"RepositoryConnector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getRepositoryConnector_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIRepositoryConnector.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRepositoryConnector_Repository(), this.getRepository(), null, \"repository\", null, 1, 1, MIRepositoryConnector.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRepositoryConnector_Id(), ecorePackage.getEString(), \"id\", null, 1, 1, MIRepositoryConnector.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(displayEClass, MIDisplay.class, \"Display\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDisplay_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIDisplay.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,\n\t\t\t\t!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDisplay_Parent(), this.getPlugin(), this.getPlugin_Displays(), \"parent\", null, 1, 1, MIDisplay.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getDisplay_Id(), ecorePackage.getEString(), \"id\", null, 1, 1, MIDisplay.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,\n\t\t\t\tIS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(viewEClass, MIView.class, \"View\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getView_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIView.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,\n\t\t\t\t!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getView_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, MIView.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n\t\t\t\t!IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getView_DisplayConnectors(), this.getDisplayConnector(), null, \"displayConnectors\", null, 0, -1, MIView.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getView_Id(), ecorePackage.getEString(), \"id\", null, 1, 1, MIView.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(displayConnectorEClass, MIDisplayConnector.class, \"DisplayConnector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDisplayConnector_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIDisplayConnector.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDisplayConnector_Display(), this.getDisplay(), null, \"display\", null, 1, 1, MIDisplayConnector.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getDisplayConnector_Id(), ecorePackage.getEString(), \"id\", null, 1, 1, MIDisplayConnector.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(analysisComponentEClass, MIAnalysisComponent.class, \"AnalysisComponent\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getAnalysisComponent_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIAnalysisComponent.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAnalysisComponent_Classname(), ecorePackage.getEString(), \"classname\", null, 1, 1, MIAnalysisComponent.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAnalysisComponent_Properties(), this.getProperty(), null, \"properties\", null, 0, -1, MIAnalysisComponent.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAnalysisComponent_Id(), ecorePackage.getEString(), \"id\", null, 1, 1, MIAnalysisComponent.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\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "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\talVarRefEClass.getESuperTypes().add(this.getArith());\n\t\tarithLitEClass.getESuperTypes().add(this.getArith());\n\t\tarithOpEClass.getESuperTypes().add(this.getArith());\n\t\tarithPlusEClass.getESuperTypes().add(this.getArithOp());\n\t\tarithMinusEClass.getESuperTypes().add(this.getArithOp());\n\t\tprintEClass.getESuperTypes().add(this.getStmt());\n\t\tassignEClass.getESuperTypes().add(this.getStmt());\n\t\tifStmtEClass.getESuperTypes().add(this.getStmt());\n\t\trandRangeEClass.getESuperTypes().add(this.getArith());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(blockEClass, Block.class, \"Block\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getBlock_Stmts(), this.getStmt(), null, \"stmts\", null, 0, -1, Block.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(stmtEClass, Stmt.class, \"Stmt\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(arithEClass, Arith.class, \"Arith\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(alVarRefEClass, ALVarRef.class, \"ALVarRef\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getALVarRef_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, ALVarRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(arithLitEClass, ArithLit.class, \"ArithLit\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getArithLit_Val(), ecorePackage.getEInt(), \"val\", null, 0, 1, ArithLit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(arithOpEClass, ArithOp.class, \"ArithOp\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getArithOp_Lhs(), this.getArith(), null, \"lhs\", null, 0, 1, ArithOp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getArithOp_Rhs(), this.getArith(), null, \"rhs\", null, 0, 1, ArithOp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(arithPlusEClass, ArithPlus.class, \"ArithPlus\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(arithMinusEClass, ArithMinus.class, \"ArithMinus\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(printEClass, Print.class, \"Print\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPrint_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Print.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(assignEClass, Assign.class, \"Assign\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getAssign_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Assign.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAssign_Val(), this.getArith(), null, \"val\", null, 1, 1, Assign.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(ifStmtEClass, IfStmt.class, \"IfStmt\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getIfStmt_IfBranch(), this.getAssign(), null, \"ifBranch\", null, 1, 1, IfStmt.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getIfStmt_ElseBranch(), this.getAssign(), null, \"elseBranch\", null, 0, 1, IfStmt.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getIfStmt_Test(), this.getEqualityTest(), null, \"test\", null, 1, 1, IfStmt.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(randRangeEClass, RandRange.class, \"RandRange\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getRandRange_Min(), ecorePackage.getEInt(), \"min\", null, 0, 1, RandRange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRandRange_Max(), ecorePackage.getEInt(), \"max\", null, 0, 1, RandRange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(equalityTestEClass, EqualityTest.class, \"EqualityTest\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getEqualityTest_Lhs(), this.getArith(), null, \"lhs\", null, 1, 1, EqualityTest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEqualityTest_Rhs(), this.getArith(), null, \"rhs\", null, 1, 1, EqualityTest.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}", "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\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_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, User.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(getUser_UR(), this.getRole(), this.getRole_RU(), \"UR\", null, 0, -1, User.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(roleEClass, Role.class, \"Role\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getRole_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Role.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(getRole_RD(), this.getDemarcation(), this.getDemarcation_DR(), \"RD\", null, 0, -1, Role.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\t\tinitEReference(getRole_Seniors(), this.getRole(), this.getRole_Juniors(), \"seniors\", null, 0, -1, Role.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\t\tinitEReference(getRole_Juniors(), this.getRole(), this.getRole_Seniors(), \"juniors\", null, 0, -1, Role.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\t\tinitEReference(getRole_RU(), this.getUser(), this.getUser_UR(), \"RU\", null, 0, -1, Role.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(permissionEClass, Permission.class, \"Permission\", !IS_ABSTRACT, !IS_INTERFACE,\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPermission_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Permission.class,\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPermission_PD(), this.getDemarcation(), this.getDemarcation_DP(), \"PD\", null, 0, -1,\n\t\t\t\tPermission.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\n\t\tinitEClass(policyEClass, Policy.class, \"Policy\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPolicy_Users(), this.getUser(), null, \"users\", null, 0, -1, Policy.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\t\tinitEReference(getPolicy_Roles(), this.getRole(), null, \"roles\", null, 0, -1, Policy.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\t\tinitEReference(getPolicy_Permissions(), this.getPermission(), null, \"permissions\", null, 0, -1, Policy.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\t\tinitEAttribute(getPolicy_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Policy.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(getPolicy_Demarcations(), this.getDemarcation(), null, \"demarcations\", null, 0, -1, Policy.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(demarcationEClass, Demarcation.class, \"Demarcation\", !IS_ABSTRACT, !IS_INTERFACE,\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDemarcation_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Demarcation.class,\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDemarcation_DP(), this.getPermission(), this.getPermission_PD(), \"DP\", null, 0, -1,\n\t\t\t\tDemarcation.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(getDemarcation_Subs(), this.getDemarcation(), this.getDemarcation_Sups(), \"subs\", null, 0, -1,\n\t\t\t\tDemarcation.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(getDemarcation_Sups(), this.getDemarcation(), this.getDemarcation_Subs(), \"sups\", null, 0, -1,\n\t\t\t\tDemarcation.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(getDemarcation_DR(), this.getRole(), this.getRole_RD(), \"DR\", null, 0, -1, Demarcation.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\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "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\tno.hal.pg.runtime.RuntimePackage theRuntimePackage_1 = (no.hal.pg.runtime.RuntimePackage)EPackage.Registry.INSTANCE.getEPackage(no.hal.pg.runtime.RuntimePackage.eNS_URI);\r\n\t\tOsmPackage theOsmPackage = (OsmPackage)EPackage.Registry.INSTANCE.getEPackage(OsmPackage.eNS_URI);\r\n\t\tEcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);\r\n\t\tAppPackage theAppPackage = (AppPackage)EPackage.Registry.INSTANCE.getEPackage(AppPackage.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(theRuntimePackage_1.getTask());\r\n\t\tEGenericType g2 = createEGenericType(this.getPlayerTaskScores());\r\n\t\tg1.getETypeArguments().add(g2);\r\n\t\tpuzzleTaskEClass.getEGenericSuperTypes().add(g1);\r\n\t\tg1 = createEGenericType(theOsmPackage.getGeoLocation());\r\n\t\tpuzzleTaskEClass.getEGenericSuperTypes().add(g1);\r\n\t\tg1 = createEGenericType(theAppPackage.getTaskView());\r\n\t\tg2 = createEGenericType(this.getPuzzleTask());\r\n\t\tg1.getETypeArguments().add(g2);\r\n\t\tpuzzleTaskViewEClass.getEGenericSuperTypes().add(g1);\r\n\t\tsimplePuzzleEClass.getESuperTypes().add(this.getPuzzle());\r\n\r\n\t\t// Initialize classes, features, and operations; add parameters\r\n\t\tinitEClass(puzzleTaskEClass, PuzzleTask.class, \"PuzzleTask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getPuzzleTask_Puzzles(), this.getPuzzle(), null, \"puzzles\", null, 0, -1, PuzzleTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getPuzzleTask_PlayerLevels(), this.getPlayerToInt(), null, \"playerLevels\", null, 0, -1, PuzzleTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getPuzzleTask_PlayerTaskScores(), this.getPlayerTaskScores(), null, \"playerTaskScores\", null, 0, 1, PuzzleTask.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(getPuzzleTask__AcceptPuzzleProposal__String_Player(), theEcorePackage.getEBoolean(), \"acceptPuzzleProposal\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, theEcorePackage.getEString(), \"proposal\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, theRuntimePackage_1.getPlayer(), \"player\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getPuzzleTask__CalculateScore__int_Player_boolean(), theEcorePackage.getEInt(), \"calculateScore\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, theEcorePackage.getEInt(), \"puzzleLevel\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, theRuntimePackage_1.getPlayer(), \"player\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, theEcorePackage.getEBoolean(), \"isProposalCorrect\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getPuzzleTask__AcceptPlayer__Player(), theEcorePackage.getEBoolean(), \"acceptPlayer\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, theRuntimePackage_1.getPlayer(), \"player\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEClass(puzzlePieceEClass, PuzzlePiece.class, \"PuzzlePiece\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getPuzzlePiece_Image(), theEcorePackage.getEString(), \"image\", null, 0, 1, PuzzlePiece.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getPuzzlePiece_PlayerCount(), theEcorePackage.getEInt(), \"playerCount\", null, 0, 1, PuzzlePiece.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(puzzleTaskViewEClass, PuzzleTaskView.class, \"PuzzleTaskView\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getPuzzleTaskView_Image(), theEcorePackage.getEString(), \"image\", null, 0, 1, PuzzleTaskView.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getPuzzleTaskView_Score(), theEcorePackage.getEInt(), \"score\", null, 0, 1, PuzzleTaskView.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getPuzzleTaskView_Level(), theEcorePackage.getEInt(), \"level\", null, 0, 1, PuzzleTaskView.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getPuzzleTaskView__ProposeAnswer__String(), this.getPuzzleTaskView(), \"proposeAnswer\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, theEcorePackage.getEString(), \"proposal\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEOperation(getPuzzleTaskView__Finish(), null, \"finish\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEOperation(getPuzzleTaskView__StartPuzzle(), null, \"startPuzzle\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEOperation(getPuzzleTaskView__AcceptPlayer(), theEcorePackage.getEBoolean(), \"acceptPlayer\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEClass(playerToIntEClass, Map.Entry.class, \"PlayerToInt\", !IS_ABSTRACT, !IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getPlayerToInt_Key(), theRuntimePackage_1.getPlayer(), null, \"key\", null, 0, 1, Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getPlayerToInt_Value(), theEcorePackage.getEIntegerObject(), \"value\", null, 0, 1, Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(puzzleEClass, Puzzle.class, \"Puzzle\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getPuzzle_Level(), theEcorePackage.getEInt(), \"level\", null, 0, 1, Puzzle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getPuzzle__AcceptProposal__String(), theEcorePackage.getEBoolean(), \"acceptProposal\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, theEcorePackage.getEString(), \"proposal\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getPuzzle__FinishPuzzle__Player(), theEcorePackage.getEBoolean(), \"finishPuzzle\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, theRuntimePackage_1.getPlayer(), \"player\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getPuzzle__StartPuzzle__Player(), theEcorePackage.getEBoolean(), \"startPuzzle\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, theRuntimePackage_1.getPlayer(), \"player\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getPuzzle__GetImage__Player(), theEcorePackage.getEString(), \"getImage\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, theRuntimePackage_1.getPlayer(), \"player\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEClass(simplePuzzleEClass, SimplePuzzle.class, \"SimplePuzzle\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getSimplePuzzle_Instructions(), theRuntimePackage_1.getInfoItem(), null, \"instructions\", null, 0, 1, SimplePuzzle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getSimplePuzzle_Solution(), theEcorePackage.getEString(), \"solution\", null, 0, 1, SimplePuzzle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getSimplePuzzle_PuzzlePieces(), this.getPuzzlePiece(), null, \"puzzlePieces\", null, 0, -1, SimplePuzzle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getSimplePuzzle_PlayerPieces(), this.getPlayerToPuzzlePiece(), null, \"playerPieces\", null, 0, -1, SimplePuzzle.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(getSimplePuzzle__AcceptProposal__String(), theEcorePackage.getEBoolean(), \"acceptProposal\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, theEcorePackage.getEString(), \"proposal\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getSimplePuzzle__FinishPuzzle__Player(), theEcorePackage.getEBoolean(), \"finishPuzzle\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, theRuntimePackage_1.getPlayer(), \"player\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getSimplePuzzle__StartPuzzle__Player(), theEcorePackage.getEBoolean(), \"startPuzzle\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, theRuntimePackage_1.getPlayer(), \"player\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getSimplePuzzle__GetImage__Player(), theEcorePackage.getEString(), \"getImage\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, theRuntimePackage_1.getPlayer(), \"player\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEClass(playerTaskScoreEClass, PlayerTaskScore.class, \"PlayerTaskScore\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getPlayerTaskScore_Player(), theRuntimePackage_1.getPlayer(), null, \"player\", null, 0, 1, PlayerTaskScore.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getPlayerTaskScore_Score(), theEcorePackage.getEInt(), \"score\", null, 0, 1, PlayerTaskScore.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getPlayerTaskScore_Level(), theEcorePackage.getEInt(), \"level\", null, 0, 1, PlayerTaskScore.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(playerTaskScoresEClass, PlayerTaskScores.class, \"PlayerTaskScores\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getPlayerTaskScores_Scores(), this.getPlayerTaskScore(), null, \"scores\", null, 0, -1, PlayerTaskScores.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(playerToPuzzlePieceEClass, Map.Entry.class, \"PlayerToPuzzlePiece\", !IS_ABSTRACT, !IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getPlayerToPuzzlePiece_Key(), theRuntimePackage_1.getPlayer(), null, \"key\", null, 0, 1, Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getPlayerToPuzzlePiece_Value(), this.getPuzzlePiece(), null, \"value\", null, 0, 1, Map.Entry.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}", "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\troleEClass.getESuperTypes().add(this.getSocialInstance());\n\t\tindividualInstanceEClass.getESuperTypes().add(this.getSocialInstance());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(roleEClass, Role.class, \"Role\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRole_Society(), this.getSociety(), this.getSociety_Roles(), \"society\", null, 1, 1, Role.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRole_IsRealizedByIndividual(), this.getIndividualRealization(), this.getIndividualRealization_Target(), \"isRealizedByIndividual\", null, 0, -1, Role.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRole_Parent(), this.getSpecialization(), this.getSpecialization_Target(), \"parent\", null, 0, -1, Role.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRole_Children(), this.getSpecialization(), this.getSpecialization_Source(), \"children\", null, 0, -1, Role.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRole_Id(), ecorePackage.getEInt(), \"id\", null, 1, 1, Role.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRole_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, Role.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(individualRealizationEClass, IndividualRealization.class, \"IndividualRealization\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getIndividualRealization_Target(), this.getRole(), this.getRole_IsRealizedByIndividual(), \"target\", null, 1, 1, IndividualRealization.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getIndividualRealization_Source(), this.getIndividualInstance(), this.getIndividualInstance_Realizes(), \"source\", null, 1, 1, IndividualRealization.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getIndividualRealization_Society(), this.getSociety(), this.getSociety_Relaizations(), \"society\", null, 1, 1, IndividualRealization.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getIndividualRealization_Id(), ecorePackage.getEInt(), \"id\", null, 1, 1, IndividualRealization.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(societyEClass, Society.class, \"Society\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSociety_Generalizations(), this.getSpecialization(), this.getSpecialization_Society(), \"generalizations\", null, 0, -1, Society.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSociety_Relaizations(), this.getIndividualRealization(), this.getIndividualRealization_Society(), \"relaizations\", null, 0, -1, Society.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSociety_Individuals(), this.getIndividualInstance(), this.getIndividualInstance_Society(), \"individuals\", null, 0, -1, Society.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSociety_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, Society.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSociety_Roles(), this.getRole(), this.getRole_Society(), \"roles\", null, 1, -1, Society.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(specializationEClass, Specialization.class, \"Specialization\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSpecialization_Target(), this.getRole(), this.getRole_Parent(), \"target\", null, 1, 1, Specialization.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSpecialization_Source(), this.getRole(), this.getRole_Children(), \"source\", null, 1, 1, Specialization.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSpecialization_Society(), this.getSociety(), this.getSociety_Generalizations(), \"society\", null, 1, 1, Specialization.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSpecialization_Id(), ecorePackage.getEInt(), \"id\", null, 1, 1, Specialization.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(individualInstanceEClass, IndividualInstance.class, \"IndividualInstance\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getIndividualInstance_Realizes(), this.getIndividualRealization(), this.getIndividualRealization_Source(), \"realizes\", null, 1, -1, IndividualInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getIndividualInstance_Id(), ecorePackage.getEInt(), \"id\", null, 1, 1, IndividualInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getIndividualInstance_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, IndividualInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getIndividualInstance_Society(), this.getSociety(), this.getSociety_Individuals(), \"society\", null, 1, 1, IndividualInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(socialInstanceEClass, SocialInstance.class, \"SocialInstance\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEOperation(getSocialInstance__GetID(), ecorePackage.getEInt(), \"getID\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getSocialInstance__GetName(), ecorePackage.getEString(), \"getName\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "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\tldprojectEClass.getESuperTypes().add(theOCCIPackage.getResource());\n\t\tlddatabaselinkEClass.getESuperTypes().add(theOCCIPackage.getLink());\n\t\tldprojectlinkEClass.getESuperTypes().add(theOCCIPackage.getLink());\n\t\tldnodeEClass.getESuperTypes().add(theOCCIPackage.getResource());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(ldprojectEClass, Ldproject.class, \"Ldproject\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getLdproject_Name(), theOCCIPackage.getString(), \"name\", null, 1, 1, Ldproject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLdproject_Lifecycle(), this.getLifecycle(), \"lifecycle\", null, 0, 1, Ldproject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLdproject_Robustness(), this.getRobustness(), \"robustness\", null, 0, 1, Ldproject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getLdproject__Publish(), null, \"publish\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getLdproject__Unpublish(), null, \"unpublish\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getLdproject__Update(), null, \"update\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(lddatabaselinkEClass, Lddatabaselink.class, \"Lddatabaselink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getLddatabaselink_Database(), theOCCIPackage.getString(), \"database\", \"datacore\", 1, 1, Lddatabaselink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLddatabaselink_Port(), theOCCIPackage.getNumber(), \"port\", \"27017\", 0, 1, Lddatabaselink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(ldprojectlinkEClass, Ldprojectlink.class, \"Ldprojectlink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(ldnodeEClass, Ldnode.class, \"Ldnode\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getLdnode_Name(), theOCCIPackage.getString(), \"name\", null, 1, 1, Ldnode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLdnode_MongoHosts(), theOCCIPackage.getString(), \"mongoHosts\", null, 1, 1, Ldnode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLdnode_MainProject(), theOCCIPackage.getString(), \"mainProject\", null, 1, 1, Ldnode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLdnode_AnalyticsReadPreference(), theOCCIPackage.getString(), \"analyticsReadPreference\", null, 1, 1, Ldnode.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(lifecycleEEnum, Lifecycle.class, \"Lifecycle\");\n\t\taddEEnumLiteral(lifecycleEEnum, Lifecycle.DRAFT);\n\t\taddEEnumLiteral(lifecycleEEnum, Lifecycle.PUBLISHED);\n\n\t\tinitEEnum(robustnessEEnum, Robustness.class, \"Robustness\");\n\t\taddEEnumLiteral(robustnessEEnum, Robustness.CLUSTER);\n\t\taddEEnumLiteral(robustnessEEnum, Robustness.NODE);\n\t\taddEEnumLiteral(robustnessEEnum, Robustness.NONE);\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}", "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\tVpmlPackage theVpmlPackage = (VpmlPackage)EPackage.Registry.INSTANCE.getEPackage(VpmlPackage.eNS_URI);\r\n\t\tProcesspackagePackage theProcesspackagePackage = (ProcesspackagePackage)EPackage.Registry.INSTANCE.getEPackage(ProcesspackagePackage.eNS_URI);\r\n\t\tResourcepackagePackage theResourcepackagePackage = (ResourcepackagePackage)EPackage.Registry.INSTANCE.getEPackage(ResourcepackagePackage.eNS_URI);\r\n\t\tOrganizationpackagePackage theOrganizationpackagePackage = (OrganizationpackagePackage)EPackage.Registry.INSTANCE.getEPackage(OrganizationpackagePackage.eNS_URI);\r\n\r\n\t\t// Add supertypes to classes\r\n\t\temcLogicalConnectorEClass.getESuperTypes().add(theVpmlPackage.getEMObject());\r\n\t\temcAndEClass.getESuperTypes().add(this.getEMCLogicalConnector());\r\n\t\temcorEClass.getESuperTypes().add(this.getEMCLogicalConnector());\r\n\t\temcCollaborationGroupEClass.getESuperTypes().add(theVpmlPackage.getEMObject());\r\n\t\temcDiagramEClass.getESuperTypes().add(theVpmlPackage.getEMDiagram());\r\n\t\temcCollaborationRelationEClass.getESuperTypes().add(this.getEMCRelation());\r\n\t\temcSequenceRelationEClass.getESuperTypes().add(this.getEMCRelation());\r\n\r\n\t\t// Initialize classes and features; add operations and parameters\r\n\t\tinitEClass(emcLogicalConnectorEClass, EMCLogicalConnector.class, \"EMCLogicalConnector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(emcAndEClass, EMCAnd.class, \"EMCAnd\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEMCAnd_ColAndDiagram(), this.getEMCDiagram(), this.getEMCDiagram_ColAnd(), \"colAndDiagram\", null, 0, 1, EMCAnd.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(emcorEClass, vpml.collaborationpackage.EMCOR.class, \"EMCOR\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEMCOR_ColORDiagram(), this.getEMCDiagram(), this.getEMCDiagram_ColOR(), \"colORDiagram\", null, 0, 1, vpml.collaborationpackage.EMCOR.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(emcCollaborationGroupEClass, EMCCollaborationGroup.class, \"EMCCollaborationGroup\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEMCCollaborationGroup_ColColGroupDiagram(), this.getEMCDiagram(), this.getEMCDiagram_ColColGroup(), \"colColGroupDiagram\", null, 0, 1, EMCCollaborationGroup.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(emcDiagramEClass, EMCDiagram.class, \"EMCDiagram\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEMCDiagram_EmpDiagram(), theProcesspackagePackage.getEMPDiagram(), theProcesspackagePackage.getEMPDiagram_EmcDiagram(), \"empDiagram\", null, 1, 1, EMCDiagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEMCDiagram_AssociatePrModel(), ecorePackage.getEString(), \"associatePrModel\", null, 0, 1, EMCDiagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEMCDiagram_ColAnd(), this.getEMCAnd(), this.getEMCAnd_ColAndDiagram(), \"colAnd\", null, 0, -1, EMCDiagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEMCDiagram_ColOR(), this.getEMCOR(), this.getEMCOR_ColORDiagram(), \"colOR\", null, 0, -1, EMCDiagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEMCDiagram_ColRole(), theResourcepackagePackage.getEMRRole(), theResourcepackagePackage.getEMRRole_ColRoleDiagram(), \"colRole\", null, 0, -1, EMCDiagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEMCDiagram_ColLocation(), theResourcepackagePackage.getEMRLocationType(), theResourcepackagePackage.getEMRLocationType_ColLocationDiagram(), \"colLocation\", null, 0, -1, EMCDiagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEMCDiagram_ColMachine(), theResourcepackagePackage.getEMRMachineType(), theResourcepackagePackage.getEMRMachineType_ColMachineDiagram(), \"colMachine\", null, 0, -1, EMCDiagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEMCDiagram_ColEMOGroup(), theOrganizationpackagePackage.getEMOResourceGroupType(), theOrganizationpackagePackage.getEMOResourceGroupType_ColEMOGroupDiagram(), \"colEMOGroup\", null, 0, -1, EMCDiagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEMCDiagram_ColColGroup(), this.getEMCCollaborationGroup(), this.getEMCCollaborationGroup_ColColGroupDiagram(), \"colColGroup\", null, 0, -1, EMCDiagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEMCDiagram_ColColRelation(), this.getEMCCollaborationRelation(), this.getEMCCollaborationRelation_ColColRelationDiagram(), \"colColRelation\", null, 0, -1, EMCDiagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEMCDiagram_ColSeqRelation(), this.getEMCSequenceRelation(), this.getEMCSequenceRelation_ColSeqRelationDiagram(), \"colSeqRelation\", null, 0, -1, EMCDiagram.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(emcRelationEClass, EMCRelation.class, \"EMCRelation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEMCRelation_SourceRelationSourceObj(), theVpmlPackage.getEMObject(), theVpmlPackage.getEMObject_SourceObjSourceRelation(), \"sourceRelationSourceObj\", null, 0, 1, EMCRelation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEMCRelation_TargetRelationTargetObj(), theVpmlPackage.getEMObject(), theVpmlPackage.getEMObject_TargetObjTargetRelation(), \"targetRelationTargetObj\", null, 0, 1, EMCRelation.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(emcCollaborationRelationEClass, EMCCollaborationRelation.class, \"EMCCollaborationRelation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEMCCollaborationRelation_ColColRelationDiagram(), this.getEMCDiagram(), this.getEMCDiagram_ColColRelation(), \"colColRelationDiagram\", null, 0, 1, EMCCollaborationRelation.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(emcSequenceRelationEClass, EMCSequenceRelation.class, \"EMCSequenceRelation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEMCSequenceRelation_ColSeqRelationDiagram(), this.getEMCDiagram(), this.getEMCDiagram_ColSeqRelation(), \"colSeqRelationDiagram\", null, 0, 1, EMCSequenceRelation.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t}", "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\tPersistencePackage thePersistencePackage = (PersistencePackage)EPackage.Registry.INSTANCE.getEPackage(PersistencePackage.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\tlocalAuthenticationSystemEClass.getESuperTypes().add(this.getAuthentication());\n\t\tcasAuthenticationEClass.getESuperTypes().add(this.getAuthentication());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(securityEClass, Security.class, \"Security\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSecurity_Authentication(), this.getAuthentication(), this.getAuthentication_Security(), \"authentication\", null, 0, 1, Security.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(authenticationEClass, Authentication.class, \"Authentication\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAuthentication_Security(), this.getSecurity(), this.getSecurity_Authentication(), \"security\", null, 1, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAuthentication_UserModel(), thePersistencePackage.getEntity(), null, \"userModel\", null, 1, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitRegistrationName(), ecorePackage.getEString(), \"implicitRegistrationName\", \"registration\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitRegistrationUnitLabel(), ecorePackage.getEString(), \"implicitRegistrationUnitLabel\", \"Create Account\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitRegistrationActionLabel(), ecorePackage.getEString(), \"implicitRegistrationActionLabel\", \"Create Account\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitRegistrationConfirmLabel(), ecorePackage.getEString(), \"implicitRegistrationConfirmLabel\", \"Create Account\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitRegistrationUri(), ecorePackage.getEString(), \"implicitRegistrationUri\", \"register\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitLoginName(), ecorePackage.getEString(), \"implicitLoginName\", \"login\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitLoginUnitLabel(), ecorePackage.getEString(), \"implicitLoginUnitLabel\", \"Login\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitLoginActionLabel(), ecorePackage.getEString(), \"implicitLoginActionLabel\", \"Login\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitLoginConfirmLabel(), ecorePackage.getEString(), \"implicitLoginConfirmLabel\", \"Login\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitLoginUri(), ecorePackage.getEString(), \"implicitLoginUri\", \"login\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitLogoutName(), ecorePackage.getEString(), \"implicitLogoutName\", \"logout\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitLogoutUnitLabel(), ecorePackage.getEString(), \"implicitLogoutUnitLabel\", \"Logout\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitLogoutActionLabel(), ecorePackage.getEString(), \"implicitLogoutActionLabel\", \"Logout\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitLogoutConfirmLabel(), ecorePackage.getEString(), \"implicitLogoutConfirmLabel\", \"Logout\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitLogoutUri(), ecorePackage.getEString(), \"implicitLogoutUri\", \"logout\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitForgottenPasswordName(), ecorePackage.getEString(), \"implicitForgottenPasswordName\", \"forgotten\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitForgottenPasswordUnitLabel(), ecorePackage.getEString(), \"implicitForgottenPasswordUnitLabel\", \"Reset Password Request\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitForgottenPasswordActionLabel(), ecorePackage.getEString(), \"implicitForgottenPasswordActionLabel\", \"Forgotten Password\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitForgottenPasswordConfirmLabel(), ecorePackage.getEString(), \"implicitForgottenPasswordConfirmLabel\", \"Reset Password\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitForgottenPasswordUriRequest(), ecorePackage.getEString(), \"implicitForgottenPasswordUriRequest\", \"reset-password\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitForgottenPasswordUriEmailSent(), ecorePackage.getEString(), \"implicitForgottenPasswordUriEmailSent\", \"check-email\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitForgottenPasswordEmailSubject(), ecorePackage.getEString(), \"implicitForgottenPasswordEmailSubject\", \"Your password reset request\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitForgottenPasswordEmailMessage(), ecorePackage.getEString(), \"implicitForgottenPasswordEmailMessage\", \"Your password reset request\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitForgottenPasswordEmailSentCaption(), ecorePackage.getEString(), \"implicitForgottenPasswordEmailSentCaption\", \"Your password reset request\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitForgottenPasswordEmailSentMessage(), ecorePackage.getEString(), \"implicitForgottenPasswordEmailSentMessage\", \"Your password reset request\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitResetPasswordName(), ecorePackage.getEString(), \"implicitResetPasswordName\", \"reset\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitResetPasswordUnitLabel(), ecorePackage.getEString(), \"implicitResetPasswordUnitLabel\", \"Reset Password\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitResetPasswordActionLabel(), ecorePackage.getEString(), \"implicitResetPasswordActionLabel\", \"Reset Password\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitResetPasswordConfirmLabel(), ecorePackage.getEString(), \"implicitResetPasswordConfirmLabel\", \"Set Password\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitResetPasswordUri(), ecorePackage.getEString(), \"implicitResetPasswordUri\", \"reset\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(localAuthenticationSystemEClass, LocalAuthenticationSystem.class, \"LocalAuthenticationSystem\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getLocalAuthenticationSystem_AuthenticationModel(), thePersistencePackage.getEntity(), null, \"authenticationModel\", null, 0, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getLocalAuthenticationSystem_AuthenticationName(), ecorePackage.getEString(), \"authenticationName\", \"Authentication\", 0, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLocalAuthenticationSystem_UserKey(), thePersistencePackage.getAttribute(), null, \"userKey\", null, 0, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLocalAuthenticationSystem_AuthenticationKey(), thePersistencePackage.getAttribute(), null, \"authenticationKey\", null, 1, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getLocalAuthenticationSystem_IdentifierFeature(), thePersistencePackage.getAttribute(), null, \"identifierFeature\", null, 0, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLocalAuthenticationSystem_PasswordFeature(), thePersistencePackage.getAttribute(), null, \"passwordFeature\", null, 0, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLocalAuthenticationSystem_ResetPasswordRequestModel(), thePersistencePackage.getEntity(), null, \"resetPasswordRequestModel\", null, 0, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLocalAuthenticationSystem_ResetPasswordRequestName(), ecorePackage.getEString(), \"resetPasswordRequestName\", \"ResetPasswordRequest\", 0, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLocalAuthenticationSystem_RegistrationUnit(), this.getSecurityUnit(), null, \"registrationUnit\", null, 0, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLocalAuthenticationSystem_LoginUnit(), this.getSecurityUnit(), null, \"loginUnit\", null, 0, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLocalAuthenticationSystem_LogoutUnit(), this.getSecurityUnit(), null, \"logoutUnit\", null, 0, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLocalAuthenticationSystem_ForgottenPasswordUnit(), this.getSecurityUnit(), null, \"forgottenPasswordUnit\", null, 0, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLocalAuthenticationSystem_ResetPasswordUnit(), this.getSecurityUnit(), null, \"resetPasswordUnit\", null, 0, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLocalAuthenticationSystem_ViewRole(), ecorePackage.getEString(), \"viewRole\", \"ROLE_SECURITY\", 0, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLocalAuthenticationSystem_EditRole(), ecorePackage.getEString(), \"editRole\", \"ROLE_SECURITY\", 0, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLocalAuthenticationSystem_UseCaptcha(), ecorePackage.getEBoolean(), \"useCaptcha\", \"true\", 1, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getLocalAuthenticationSystem_AllowRememberMe(), ecorePackage.getEBoolean(), \"allowRememberMe\", \"false\", 1, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getLocalAuthenticationSystem_AllowSelfRegistration(), ecorePackage.getEBoolean(), \"allowSelfRegistration\", \"false\", 1, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getLocalAuthenticationSystem_TrackLoginAttempts(), ecorePackage.getEBoolean(), \"trackLoginAttempts\", \"true\", 1, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getLocalAuthenticationSystem_UseEmailActivation(), ecorePackage.getEBoolean(), \"useEmailActivation\", \"true\", 1, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getLocalAuthenticationSystem_SendWelcomeEmail(), ecorePackage.getEBoolean(), \"sendWelcomeEmail\", \"true\", 1, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(casAuthenticationEClass, CasAuthentication.class, \"CasAuthentication\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getCasAuthentication_LoginLabel(), ecorePackage.getEString(), \"loginLabel\", \"login\", 0, 1, CasAuthentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getCasAuthentication_LogoutLabel(), ecorePackage.getEString(), \"logoutLabel\", \"logout\", 0, 1, CasAuthentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(securityUnitEClass, SecurityUnit.class, \"SecurityUnit\", 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.eclipse.org/emf/2002/Ecore\n\t\tcreateEcoreAnnotations();\n\t\t// http://www.eclipse.org/emf/2002/Ecore/OCL\n\t\tcreateOCLAnnotations();\n\t}", "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\tSQLSchemaPackage theSQLSchemaPackage = (SQLSchemaPackage)EPackage.Registry.INSTANCE.getEPackage(SQLSchemaPackage.eNS_URI);\n\n\t\t// Add supertypes to classes\n\t\tqueryExpressionDefaultEClass.getESuperTypes().add(theSQLSchemaPackage.getSQLObject());\n\t\tqueryExpressionDefaultEClass.getESuperTypes().add(this.getQueryExpression());\n\t\tsearchConditionDefaultEClass.getESuperTypes().add(theSQLSchemaPackage.getSQLObject());\n\t\tsearchConditionDefaultEClass.getESuperTypes().add(this.getSearchCondition());\n\t\tvalueExpressionDefaultEClass.getESuperTypes().add(theSQLSchemaPackage.getSQLObject());\n\t\tvalueExpressionDefaultEClass.getESuperTypes().add(this.getValueExpression());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(queryExpressionEClass, QueryExpression.class, \"QueryExpression\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\taddEOperation(queryExpressionEClass, ecorePackage.getEString(), \"getSQL\", 0, 1); //$NON-NLS-1$\n\n\t\tEOperation op = addEOperation(queryExpressionEClass, null, \"setSQL\"); //$NON-NLS-1$\n\t\taddEParameter(op, ecorePackage.getEString(), \"sqlText\", 0, 1); //$NON-NLS-1$\n\n\t\tinitEClass(valueExpressionEClass, ValueExpression.class, \"ValueExpression\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\taddEOperation(valueExpressionEClass, ecorePackage.getEString(), \"getSQL\", 0, 1); //$NON-NLS-1$\n\n\t\top = addEOperation(valueExpressionEClass, null, \"setSQL\"); //$NON-NLS-1$\n\t\taddEParameter(op, ecorePackage.getEString(), \"sqlText\", 0, 1); //$NON-NLS-1$\n\n\t\tinitEClass(searchConditionEClass, SearchCondition.class, \"SearchCondition\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\taddEOperation(searchConditionEClass, ecorePackage.getEString(), \"getSQL\", 0, 1); //$NON-NLS-1$\n\n\t\top = addEOperation(searchConditionEClass, null, \"setSQL\"); //$NON-NLS-1$\n\t\taddEParameter(op, ecorePackage.getEString(), \"sqlText\", 0, 1); //$NON-NLS-1$\n\n\t\tinitEClass(queryExpressionDefaultEClass, QueryExpressionDefault.class, \"QueryExpressionDefault\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEAttribute(getQueryExpressionDefault_SQL(), ecorePackage.getEString(), \"SQL\", null, 0, 1, QueryExpressionDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\tinitEClass(searchConditionDefaultEClass, SearchConditionDefault.class, \"SearchConditionDefault\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEAttribute(getSearchConditionDefault_SQL(), ecorePackage.getEString(), \"SQL\", null, 0, 1, SearchConditionDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\tinitEClass(valueExpressionDefaultEClass, ValueExpressionDefault.class, \"ValueExpressionDefault\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEAttribute(getValueExpressionDefault_SQL(), ecorePackage.getEString(), \"SQL\", null, 0, 1, ValueExpressionDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents() {\n if(isInitialized) {\n return;\n }\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 modularizationModelEClass.getESuperTypes().add(this.getNamedElement());\n moduleEClass.getESuperTypes().add(this.getNamedElement());\n classEClass.getESuperTypes().add(this.getNamedElement());\n\n // Initialize classes, features, and operations; add parameters\n initEClass(namedElementEClass, NamedElement.class, \"NamedElement\", !IS_ABSTRACT, !IS_INTERFACE,\n IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getNamedElement_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, NamedElement.class,\n !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(modularizationModelEClass, ModularizationModel.class, \"ModularizationModel\", !IS_ABSTRACT,\n !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getModularizationModel_Modules(), this.getModule(), null, \"modules\", null, 0, -1,\n ModularizationModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,\n !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n initEReference(getModularizationModel_Classes(), this.getClass_(), null, \"classes\", null, 0, -1,\n ModularizationModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,\n !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n initEClass(moduleEClass, Module.class, \"Module\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getModule_Classes(), this.getClass_(), this.getClass_Module(), \"classes\", null, 0, -1,\n Module.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE,\n IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(classEClass, at.ac.tuwien.big.momot.examples.modularization.jsme.modularization.Class.class, \"Class\",\n !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getClass_Module(), this.getModule(), this.getModule_Classes(), \"module\", null, 0, 1,\n at.ac.tuwien.big.momot.examples.modularization.jsme.modularization.Class.class, !IS_TRANSIENT, !IS_VOLATILE,\n IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getClass_DependsOn(), this.getClass_(), this.getClass_DependedOnBy(), \"dependsOn\", null, 0, -1,\n at.ac.tuwien.big.momot.examples.modularization.jsme.modularization.Class.class, !IS_TRANSIENT, !IS_VOLATILE,\n IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getClass_DependedOnBy(), this.getClass_(), this.getClass_DependsOn(), \"dependedOnBy\", null, 0, -1,\n at.ac.tuwien.big.momot.examples.modularization.jsme.modularization.Class.class, !IS_TRANSIENT, !IS_VOLATILE,\n IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Create resource\n createResource(eNS_URI);\n }", "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(baseElementEClass, BaseElement.class, \"BaseElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getBaseElement_KeyValueMaps(), this.getKeyValueMap(), null, \"keyValueMaps\", null, 0, -1, BaseElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getBaseElement_Id(), ecorePackage.getELong(), \"Id\", null, 0, 1, BaseElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getBaseElement_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, BaseElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getBaseElement_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, BaseElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(keyValueMapEClass, KeyValueMap.class, \"KeyValueMap\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getKeyValueMap_Key(), ecorePackage.getEString(), \"key\", null, 0, 1, KeyValueMap.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getKeyValueMap_Values(), this.getValue(), null, \"values\", null, 0, -1, KeyValueMap.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\tinitEAttribute(getValue_Tag(), ecorePackage.getEString(), \"tag\", null, 0, 1, Value.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\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\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(timeUnitEEnum, TimeUnit.class, \"TimeUnit\");\n\t\taddEEnumLiteral(timeUnitEEnum, TimeUnit.MILLISECOND);\n\t\taddEEnumLiteral(timeUnitEEnum, TimeUnit.SECOND);\n\t\taddEEnumLiteral(timeUnitEEnum, TimeUnit.MINUTE);\n\t\taddEEnumLiteral(timeUnitEEnum, TimeUnit.HOUR);\n\t\taddEEnumLiteral(timeUnitEEnum, TimeUnit.DAY);\n\t\taddEEnumLiteral(timeUnitEEnum, TimeUnit.WEEK);\n\t\taddEEnumLiteral(timeUnitEEnum, TimeUnit.MONTH);\n\t\taddEEnumLiteral(timeUnitEEnum, TimeUnit.YEAR);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "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\tperiodicTaskEClass.getESuperTypes().add(this.getTask());\n\t\taperiodicTaskEClass.getESuperTypes().add(this.getTask());\n\t\tconstantEClass.getESuperTypes().add(this.getDistribution());\n\t\texponentialEClass.getESuperTypes().add(this.getDistribution());\n\t\tuniformEClass.getESuperTypes().add(this.getDistribution());\n\t\tunknownEClass.getESuperTypes().add(this.getDistribution());\n\t\tnormalEClass.getESuperTypes().add(this.getDistribution());\n\t\tssTaskEClass.getESuperTypes().add(this.getAperiodicTask());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(taskEClass, Task.class, \"Task\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getTask_TaskId(), ecorePackage.getEInt(), \"taskId\", 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_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\t\tinitEReference(getTask_Subtasks(), this.getSubtask(), null, \"subtasks\", 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\t\tinitEAttribute(getTask_Deadline(), ecorePackage.getEDouble(), \"deadline\", null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\taddEOperation(taskEClass, ecorePackage.getEDouble(), \"getComputedExecutionMean\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(taskEClass, ecorePackage.getEDoubleObject(), \"getEffectiveDeadline\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(periodicTaskEClass, PeriodicTask.class, \"PeriodicTask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPeriodicTask_Period(), ecorePackage.getEDouble(), \"period\", null, 0, 1, PeriodicTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPeriodicTask_Offset(), ecorePackage.getEDouble(), \"offset\", null, 0, 1, PeriodicTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(aperiodicTaskEClass, AperiodicTask.class, \"AperiodicTask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAperiodicTask_InterarrivalDistribution(), this.getDistribution(), null, \"interarrivalDistribution\", null, 1, 1, AperiodicTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(subtaskEClass, Subtask.class, \"Subtask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getSubtask_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Subtask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSubtask_Priority(), ecorePackage.getEInt(), \"priority\", null, 0, 1, Subtask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSubtask_RetAnchorUsed(), ecorePackage.getEBoolean(), \"retAnchorUsed\", null, 0, 1, Subtask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSubtask_ActivationSynchronous(), ecorePackage.getEBoolean(), \"activationSynchronous\", null, 0, 1, Subtask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSubtask_ExecTimeDistribution(), this.getDistribution(), null, \"execTimeDistribution\", null, 1, 1, Subtask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSubtask_Bypass(), ecorePackage.getEInt(), \"bypass\", null, 0, 1, Subtask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSubtask_DownsamplingFactor(), ecorePackage.getEInt(), \"downsamplingFactor\", null, 0, 1, Subtask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSubtask_CallingThreadPriority(), ecorePackage.getEInt(), \"callingThreadPriority\", null, 0, 1, Subtask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSubtask_Mutexes(), this.getMutex(), null, \"mutexes\", null, 0, -1, Subtask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSubtask_PinId(), ecorePackage.getEInt(), \"pinId\", null, 0, 1, Subtask.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\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEDouble(), \"value\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(distributionEClass, ecorePackage.getEDouble(), \"getComputedMean\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(distributionEClass, ecorePackage.getEString(), \"toString\", 0, 1, IS_UNIQUE, IS_ORDERED);\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\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(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(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(performanceModelEClass, PerformanceModel.class, \"PerformanceModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPerformanceModel_Tasks(), this.getTask(), null, \"tasks\", null, 0, -1, PerformanceModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerformanceModel_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, PerformanceModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPerformanceModel_Mutexes(), this.getMutex(), null, \"mutexes\", null, 0, -1, PerformanceModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerformanceModel_SourceFile(), ecorePackage.getEString(), \"sourceFile\", null, 0, 1, PerformanceModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(ssTaskEClass, SSTask.class, \"SSTask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getSSTask_Budget(), ecorePackage.getEDouble(), \"budget\", null, 0, 1, SSTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSSTask_ReplenishmentPeriod(), ecorePackage.getEInt(), \"replenishmentPeriod\", null, 0, 1, SSTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSSTask_BackgroundPriority(), ecorePackage.getEInt(), \"backgroundPriority\", null, 0, 1, SSTask.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// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "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 externalDefEClass.getESuperTypes().add(this.getDeclaration());\n typeEClass.getESuperTypes().add(this.getDeclaration());\n resultStatementEClass.getESuperTypes().add(this.getDeclaration());\n plusEClass.getESuperTypes().add(this.getExpression());\n minusEClass.getESuperTypes().add(this.getExpression());\n multEClass.getESuperTypes().add(this.getExpression());\n divEClass.getESuperTypes().add(this.getExpression());\n varEClass.getESuperTypes().add(this.getExpression());\n letEClass.getESuperTypes().add(this.getExpression());\n externalUseEClass.getESuperTypes().add(this.getExpression());\n numEClass.getESuperTypes().add(this.getExpression());\n\n // Initialize classes and features; add operations and parameters\n initEClass(mathExpEClass, MathExp.class, \"MathExp\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getMathExp_Declarations(), this.getDeclaration(), null, \"declarations\", null, 0, -1, MathExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(declarationEClass, Declaration.class, \"Declaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(externalDefEClass, ExternalDef.class, \"ExternalDef\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getExternalDef_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, ExternalDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getExternalDef_Parameters(), this.getParameter(), null, \"parameters\", null, 0, -1, ExternalDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(parameterEClass, Parameter.class, \"Parameter\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getParameter_Type(), this.getType(), null, \"type\", null, 0, 1, Parameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getParameter_ParameterName(), ecorePackage.getEString(), \"parameterName\", null, 0, 1, Parameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(typeEClass, Type.class, \"Type\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getType_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Type.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(resultStatementEClass, ResultStatement.class, \"ResultStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getResultStatement_Label(), ecorePackage.getEString(), \"label\", null, 0, 1, ResultStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getResultStatement_Exp(), this.getExpression(), null, \"exp\", null, 0, 1, ResultStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(expressionEClass, Expression.class, \"Expression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\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(multEClass, Mult.class, \"Mult\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getMult_Left(), this.getExpression(), null, \"left\", null, 0, 1, Mult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getMult_Right(), this.getExpression(), null, \"right\", null, 0, 1, Mult.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(varEClass, Var.class, \"Var\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getVar_Id(), ecorePackage.getEString(), \"id\", null, 0, 1, Var.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(letEClass, Let.class, \"Let\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getLet_Id(), ecorePackage.getEString(), \"id\", null, 0, 1, Let.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getLet_Binding(), this.getExpression(), null, \"binding\", null, 0, 1, Let.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getLet_Body(), this.getExpression(), null, \"body\", null, 0, 1, Let.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(externalUseEClass, ExternalUse.class, \"ExternalUse\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getExternalUse_External(), this.getExternalDef(), null, \"external\", null, 0, 1, ExternalUse.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getExternalUse_Arguments(), this.getExpression(), null, \"arguments\", null, 0, -1, ExternalUse.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(numEClass, Num.class, \"Num\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getNum_Value(), ecorePackage.getEInt(), \"value\", null, 0, 1, Num.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 }", "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\tfticBaseEClass.getESuperTypes().add(ecorePackage.getEObject());\n\t\titemEClass.getESuperTypes().add(this.getFTICBase());\n\t\thypertextEClass.getESuperTypes().add(this.getFTICBase());\n\t\ttextElementEClass.getESuperTypes().add(this.getFTICBase());\n\t\tlinkEClass.getESuperTypes().add(this.getTextElement());\n\t\ttermEClass.getESuperTypes().add(this.getTextElement());\n\t\tfactorTableEClass.getESuperTypes().add(this.getFTICBase());\n\t\tftEntryEClass.getESuperTypes().add(this.getItem());\n\t\tfactorCategoryEClass.getESuperTypes().add(this.getFTEntry());\n\t\tfactorEClass.getESuperTypes().add(this.getFTEntry());\n\t\tissueCardEClass.getESuperTypes().add(this.getItem());\n\t\tstrategyEClass.getESuperTypes().add(this.getItem());\n\t\tinfluencingFactorEClass.getESuperTypes().add(this.getFTICBase());\n\t\trelatedIssueEClass.getESuperTypes().add(this.getFTICBase());\n\t\tfticPackageEClass.getESuperTypes().add(this.getFTICBase());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(fticBaseEClass, FTICBase.class, \"FTICBase\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(itemEClass, Item.class, \"Item\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(hypertextEClass, Hypertext.class, \"Hypertext\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getHypertext_Content(), this.getTextElement(), null, \"content\", null, 0, -1, Hypertext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(textElementEClass, TextElement.class, \"TextElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getTextElement_VisibleContent(), ecorePackage.getEString(), \"visibleContent\", null, 0, 1, TextElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(linkEClass, Link.class, \"Link\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getLink_Target(), ecorePackage.getEObject(), 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);\n\n\t\tinitEClass(termEClass, Term.class, \"Term\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(factorTableEClass, FactorTable.class, \"FactorTable\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getFactorTable_Type(), this.getCategoryType(), \"type\", null, 0, 1, FactorTable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getFactorTable_Entries(), this.getFTEntry(), null, \"entries\", null, 0, -1, FactorTable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(ftEntryEClass, FTEntry.class, \"FTEntry\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getFTEntry_Numbering(), ecorePackage.getEString(), \"numbering\", null, 1, 1, FTEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getFTEntry_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, FTEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getFTEntry_Children(), this.getFTEntry(), null, \"children\", null, 0, -1, FTEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(factorCategoryEClass, FactorCategory.class, \"FactorCategory\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(factorEClass, Factor.class, \"Factor\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getFactor_Description(), this.getHypertext(), null, \"description\", null, 1, 1, Factor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getFactor_Flexibility(), this.getHypertext(), null, \"flexibility\", null, 1, 1, Factor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getFactor_Changeability(), this.getHypertext(), null, \"changeability\", null, 1, 1, Factor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getFactor_Influence(), this.getHypertext(), null, \"influence\", null, 1, 1, Factor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getFactor_Priority(), ecorePackage.getEString(), \"priority\", null, 1, 1, Factor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(issueCardEClass, IssueCard.class, \"IssueCard\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getIssueCard_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, IssueCard.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getIssueCard_Description(), this.getHypertext(), null, \"description\", null, 1, 1, IssueCard.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getIssueCard_Solution(), this.getHypertext(), null, \"solution\", null, 1, 1, IssueCard.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getIssueCard_Strategies(), this.getStrategy(), null, \"strategies\", null, 1, -1, IssueCard.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getIssueCard_InfluencingFactors(), this.getInfluencingFactor(), null, \"influencingFactors\", null, 1, -1, IssueCard.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getIssueCard_RelatedIssues(), this.getRelatedIssue(), null, \"relatedIssues\", null, 0, -1, IssueCard.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_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, Strategy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getStrategy_Description(), this.getHypertext(), null, \"description\", null, 1, 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(influencingFactorEClass, InfluencingFactor.class, \"InfluencingFactor\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInfluencingFactor_Description(), this.getHypertext(), null, \"description\", null, 1, 1, InfluencingFactor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInfluencingFactor_Factor(), this.getFactor(), null, \"factor\", null, 1, 1, InfluencingFactor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(relatedIssueEClass, RelatedIssue.class, \"RelatedIssue\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRelatedIssue_Issue(), this.getItem(), null, \"Issue\", null, 0, 1, RelatedIssue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRelatedIssue_Description(), this.getHypertext(), null, \"description\", null, 0, 1, RelatedIssue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(fticPackageEClass, FTICPackage.class, \"FTICPackage\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getFTICPackage_Tables(), this.getFactorTable(), null, \"tables\", null, 0, -1, FTICPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getFTICPackage_IssueCards(), this.getIssueCard(), null, \"issueCards\", null, 0, -1, FTICPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getFTICPackage_Name(), ecorePackage.getEString(), \"Name\", null, 1, 1, FTICPackage.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(categoryTypeEEnum, CategoryType.class, \"CategoryType\");\n\t\taddEEnumLiteral(categoryTypeEEnum, CategoryType.ORGANIZATIONAL);\n\t\taddEEnumLiteral(categoryTypeEEnum, CategoryType.TECHNOLOGICAL);\n\t\taddEEnumLiteral(categoryTypeEEnum, CategoryType.PRODUCT);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "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\ttrasicionEntreOmOmEClass.getESuperTypes().add(this.getTransicion());\r\n\t\ttransicionEntreMacroOmOmEClass.getESuperTypes().add(this.getTransicion());\r\n\t\texpresionBinariaEClass.getESuperTypes().add(this.getElementoExpresion());\r\n\t\trefVariableGemmaEClass.getESuperTypes().add(this.getElementoExpresion());\r\n\t\texpresionNotEClass.getESuperTypes().add(this.getElementoExpresion());\r\n\t\trefVariableOmEClass.getESuperTypes().add(this.getElementoExpresion());\r\n\t\texpresionConjuntaEClass.getESuperTypes().add(this.getElementoExpresion());\r\n\r\n\t\t// Initialize classes, features, and operations; add parameters\r\n\t\tinitEClass(gemmaEClass, Gemma.class, \"Gemma\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getGemma_MacroOms(), this.getMacroOm(), null, \"macroOms\", null, 1, -1, Gemma.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getGemma_Transiciones(), this.getTransicion(), null, \"transiciones\", null, 1, -1, Gemma.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getGemma_VariablesGemma(), this.getVariableGemma(), null, \"variablesGemma\", null, 0, -1, Gemma.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(macroOmEClass, MacroOm.class, \"MacroOm\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getMacroOm_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, MacroOm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getMacroOm_Tipo(), this.getTipoMacroOm(), \"tipo\", null, 0, 1, MacroOm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getMacroOm_Oms(), this.getOm(), null, \"oms\", null, 1, -1, MacroOm.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(omEClass, Om.class, \"Om\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getOm_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Om.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getOm_Tipo(), this.getTipoOm(), \"tipo\", null, 0, 1, Om.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getOm_EsOmRaiz(), ecorePackage.getEBoolean(), \"esOmRaiz\", null, 0, 1, Om.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getOm_VariablesOm(), this.getVariableOm(), null, \"variablesOm\", null, 0, -1, Om.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getOm_EsVisible(), ecorePackage.getEBoolean(), \"esVisible\", null, 0, 1, Om.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(trasicionEntreOmOmEClass, TrasicionEntreOmOm.class, \"TrasicionEntreOmOm\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getTrasicionEntreOmOm_Origen(), this.getOm(), null, \"origen\", null, 1, 1, TrasicionEntreOmOm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getTrasicionEntreOmOm_Destino(), this.getOm(), null, \"destino\", null, 1, 1, TrasicionEntreOmOm.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(transicionEntreMacroOmOmEClass, TransicionEntreMacroOmOm.class, \"TransicionEntreMacroOmOm\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getTransicionEntreMacroOmOm_Origen(), this.getMacroOm(), null, \"origen\", null, 1, 1, TransicionEntreMacroOmOm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getTransicionEntreMacroOmOm_Destino(), this.getOm(), null, \"destino\", null, 1, 1, TransicionEntreMacroOmOm.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(expresionBinariaEClass, ExpresionBinaria.class, \"ExpresionBinaria\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getExpresionBinaria_ExpresionIzquierda(), this.getElementoExpresion(), null, \"expresionIzquierda\", null, 0, 1, ExpresionBinaria.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getExpresionBinaria_ExpresionDerecha(), this.getElementoExpresion(), null, \"expresionDerecha\", null, 0, 1, ExpresionBinaria.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getExpresionBinaria_Operador(), this.getTipoOperador(), \"operador\", null, 0, 1, ExpresionBinaria.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(elementoExpresionEClass, ElementoExpresion.class, \"ElementoExpresion\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(variableOmEClass, VariableOm.class, \"VariableOm\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getVariableOm_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, VariableOm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(transicionEClass, Transicion.class, \"Transicion\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getTransicion_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Transicion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getTransicion_ElementoExpresion(), this.getElementoExpresion(), null, \"elementoExpresion\", null, 1, 1, Transicion.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(variableGemmaEClass, VariableGemma.class, \"VariableGemma\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getVariableGemma_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, VariableGemma.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(refVariableGemmaEClass, RefVariableGemma.class, \"RefVariableGemma\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getRefVariableGemma_VariableGemma(), this.getVariableGemma(), null, \"variableGemma\", null, 1, 1, RefVariableGemma.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getRefVariableGemma_NivelDeEscritura(), this.getNivelDeEscritura(), \"nivelDeEscritura\", null, 0, 1, RefVariableGemma.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(expresionNotEClass, ExpresionNot.class, \"ExpresionNot\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getExpresionNot_ElementoExpresion(), this.getElementoExpresion(), null, \"elementoExpresion\", null, 1, 1, ExpresionNot.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(refVariableOmEClass, RefVariableOm.class, \"RefVariableOm\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getRefVariableOm_VariableOm(), this.getVariableOm(), null, \"variableOm\", null, 1, 1, RefVariableOm.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(expresionConjuntaEClass, ExpresionConjunta.class, \"ExpresionConjunta\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getExpresionConjunta_ElementoExpresion(), this.getElementoExpresion(), null, \"elementoExpresion\", null, 1, 1, ExpresionConjunta.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(tipoOmEEnum, TipoOm.class, \"TipoOm\");\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.A1);\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.A2);\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.A3);\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.A4);\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.A5);\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.A6);\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.A7);\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.F1);\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.F2);\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.F3);\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.F4);\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.F5);\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.F6);\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.D1);\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.D2);\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.D3);\r\n\r\n\t\tinitEEnum(tipoMacroOmEEnum, TipoMacroOm.class, \"TipoMacroOm\");\r\n\t\taddEEnumLiteral(tipoMacroOmEEnum, TipoMacroOm.A);\r\n\t\taddEEnumLiteral(tipoMacroOmEEnum, TipoMacroOm.F);\r\n\t\taddEEnumLiteral(tipoMacroOmEEnum, TipoMacroOm.D);\r\n\r\n\t\tinitEEnum(tipoOperadorEEnum, TipoOperador.class, \"TipoOperador\");\r\n\t\taddEEnumLiteral(tipoOperadorEEnum, TipoOperador.AND);\r\n\t\taddEEnumLiteral(tipoOperadorEEnum, TipoOperador.OR);\r\n\r\n\t\tinitEEnum(nivelDeEscrituraEEnum, NivelDeEscritura.class, \"NivelDeEscritura\");\r\n\t\taddEEnumLiteral(nivelDeEscrituraEEnum, NivelDeEscritura.GEMMA);\r\n\t\taddEEnumLiteral(nivelDeEscrituraEEnum, NivelDeEscritura.OM);\r\n\r\n\t\t// Create resource\r\n\t\tcreateResource(eNS_URI);\r\n\t}", "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(mealyMachineEClass, MealyMachine.class, \"MealyMachine\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getMealyMachine_InitialState(), this.getState(), null, \"initialState\", null, 1, 1, MealyMachine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMealyMachine_States(), this.getState(), null, \"states\", null, 1, -1, MealyMachine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMealyMachine_InputAlphabet(), this.getAlphabet(), null, \"inputAlphabet\", null, 1, 1, MealyMachine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMealyMachine_OutputAlphabet(), this.getAlphabet(), null, \"outputAlphabet\", null, 1, 1, MealyMachine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMealyMachine_Transitions(), this.getTransition(), null, \"transitions\", null, 1, -1, MealyMachine.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_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, State.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(alphabetEClass, Alphabet.class, \"Alphabet\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getAlphabet_Characters(), ecorePackage.getEString(), \"characters\", null, 1, -1, Alphabet.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\tinitEReference(getTransition_SourceState(), this.getState(), null, \"sourceState\", null, 1, 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_TargetState(), this.getState(), null, \"targetState\", null, 1, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTransition_Input(), ecorePackage.getEString(), \"input\", null, 1, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTransition_Output(), ecorePackage.getEString(), \"output\", null, 1, 1, Transition.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}", "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\tjTypeEClass.getESuperTypes().add(this.getJElement());\n\t\tjTypedElementEClass.getESuperTypes().add(this.getJElement());\n\t\tjPrimitiveEClass.getESuperTypes().add(this.getJType());\n\t\tjEnumerationEClass.getESuperTypes().add(this.getJType());\n\t\tjClassEClass.getESuperTypes().add(this.getJType());\n\t\tjAttributeEClass.getESuperTypes().add(this.getJTypedElement());\n\t\tjOperationEClass.getESuperTypes().add(this.getJElement());\n\t\tjParameterEClass.getESuperTypes().add(this.getJTypedElement());\n\t\tjRelationshipEClass.getESuperTypes().add(this.getJElement());\n\t\tjRoleEClass.getESuperTypes().add(this.getJElement());\n\t\tjLiteralEClass.getESuperTypes().add(this.getJElement());\n\t\tjPackageEClass.getESuperTypes().add(this.getJElement());\n\t\tjStateMachineEClass.getESuperTypes().add(this.getJElement());\n\t\tjTransitionEClass.getESuperTypes().add(this.getJElement());\n\t\tjStateEClass.getESuperTypes().add(this.getJElement());\n\t\tjGuardEClass.getESuperTypes().add(this.getJElement());\n\t\tjModelEClass.getESuperTypes().add(this.getJElement());\n\t\tjuiMenuItemEClass.getESuperTypes().add(this.getJElement());\n\t\tjuiAttributeGroupEClass.getESuperTypes().add(this.getJElement());\n\t\tjuiFilterEClass.getESuperTypes().add(this.getJElement());\n\t\tjuiAliasEClass.getESuperTypes().add(this.getJElement());\n\t\tjInfoEClass.getESuperTypes().add(this.getJElement());\n\t\tjSubmodelEClass.getESuperTypes().add(this.getJElement());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(jElementEClass, JElement.class, \"JElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getJElement_Uuid(), ecorePackage.getEString(), \"uuid\", null, 1, 1, JElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJElement_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, JElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJElement_ShortName(), ecorePackage.getEString(), \"shortName\", null, 0, 1, JElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJElement_FullName(), ecorePackage.getEString(), \"fullName\", null, 0, 1, JElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJElement_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, JElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJElement_Framework(), ecorePackage.getEBoolean(), \"framework\", null, 0, 1, JElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJElement_Participates(), this.getJLayer(), \"participates\", null, 0, -1, JElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJElement_Visibility(), this.getJVisibility(), \"visibility\", null, 0, 1, JElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jTypeEClass, JType.class, \"JType\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(jTypedElementEClass, JTypedElement.class, \"JTypedElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJTypedElement_Type(), this.getJType(), null, \"type\", null, 1, 1, JTypedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJTypedElement_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, JTypedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJTypedElement_Derived(), ecorePackage.getEBoolean(), \"derived\", null, 0, 1, JTypedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJTypedElement_Calculated(), ecorePackage.getEBoolean(), \"calculated\", null, 0, 1, JTypedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJTypedElement_Lower(), ecorePackage.getEInt(), \"lower\", \"0\", 0, 1, JTypedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJTypedElement_Upper(), ecorePackage.getEInt(), \"upper\", \"1\", 0, 1, JTypedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJTypedElement_Ordered(), ecorePackage.getEBoolean(), \"ordered\", null, 0, 1, JTypedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJTypedElement_Unique(), ecorePackage.getEBoolean(), \"unique\", null, 0, 1, JTypedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jPrimitiveEClass, JPrimitive.class, \"JPrimitive\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJPrimitive_Package(), this.getJPackage(), this.getJPackage_Primitives(), \"package\", null, 0, 1, JPrimitive.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJPrimitive_UseForIdType(), ecorePackage.getEBoolean(), \"useForIdType\", null, 0, 1, JPrimitive.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jEnumerationEClass, JEnumeration.class, \"JEnumeration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJEnumeration_Package(), this.getJPackage(), this.getJPackage_Enumerations(), \"package\", null, 0, 1, JEnumeration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJEnumeration_Literals(), this.getJLiteral(), this.getJLiteral_Enumeration(), \"literals\", null, 0, -1, JEnumeration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJEnumeration_ClassRepresentation(), this.getJClass(), this.getJClass_FixedEnum(), \"classRepresentation\", null, 0, 1, JEnumeration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jClassEClass, JClass.class, \"JClass\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getJClass_Abstract(), ecorePackage.getEBoolean(), \"abstract\", null, 0, 1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJClass_StateMachines(), this.getJStateMachine(), this.getJStateMachine_OwnerClass(), \"stateMachines\", null, 0, -1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJClass_Operations(), this.getJOperation(), this.getJOperation_OwnerClass(), \"operations\", null, 0, -1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJClass_AttributeOrder(), this.getJUIAttributeGroup(), null, \"attributeOrder\", null, 0, -1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJClass_AttributesForListing(), this.getJAttribute(), null, \"attributesForListing\", null, 0, -1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJClass_FixedEnum(), this.getJEnumeration(), this.getJEnumeration_ClassRepresentation(), \"fixedEnum\", null, 0, 1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJClass_RepresentsTenant(), ecorePackage.getEBoolean(), \"representsTenant\", null, 0, 1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJClass_TenantMember(), ecorePackage.getEBoolean(), \"tenantMember\", null, 0, 1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJClass_Representation(), this.getJAttribute(), null, \"representation\", null, 0, 1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJClass_RepresentsEnum(), ecorePackage.getEBoolean(), \"representsEnum\", null, 0, 1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJClass_RepresentsTenantUser(), ecorePackage.getEBoolean(), \"representsTenantUser\", null, 0, 1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJClass_RepresentsUser(), ecorePackage.getEBoolean(), \"representsUser\", null, 0, 1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJClass_Supertype(), this.getJClass(), null, \"supertype\", null, 0, 1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJClass_Package(), this.getJPackage(), this.getJPackage_Classes(), \"package\", null, 0, 1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJClass_Roles(), this.getJRole(), this.getJRole_OwnerClass(), \"roles\", null, 0, -1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJClass_Attributes(), this.getJAttribute(), this.getJAttribute_OwnerClass(), \"attributes\", null, 0, -1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJClass_BusinessSingleton(), ecorePackage.getEBoolean(), \"businessSingleton\", null, 0, 1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJClass_Aliases(), this.getJUIAlias(), this.getJUIAlias_OwnerClass(), \"aliases\", null, 0, -1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJClass_Watched(), ecorePackage.getEBoolean(), \"watched\", \"false\", 0, 1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJClass_RepresentsEnumValue(), ecorePackage.getEBoolean(), \"representsEnumValue\", null, 0, 1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jAttributeEClass, JAttribute.class, \"JAttribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getJAttribute_Placeholder(), ecorePackage.getEString(), \"placeholder\", null, 0, 1, JAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJAttribute_Regexp(), ecorePackage.getEString(), \"regexp\", null, 0, 1, JAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJAttribute_Mandatory(), ecorePackage.getEBoolean(), \"mandatory\", null, 0, 1, JAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJAttribute_Decimals(), ecorePackage.getEInt(), \"decimals\", null, 0, 1, JAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJAttribute_Interval(), ecorePackage.getEString(), \"interval\", null, 0, 1, JAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJAttribute_Technical(), ecorePackage.getEBoolean(), \"technical\", null, 0, 1, JAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJAttribute_OwnerClass(), this.getJClass(), this.getJClass_Attributes(), \"ownerClass\", null, 0, 1, JAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJAttribute_UiNoSearch(), ecorePackage.getEBoolean(), \"uiNoSearch\", \"false\", 0, 1, JAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJAttribute_Watched(), ecorePackage.getEBoolean(), \"watched\", \"false\", 0, 1, JAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJAttribute_RepresentsId(), ecorePackage.getEBoolean(), \"representsId\", \"false\", 0, 1, JAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jOperationEClass, JOperation.class, \"JOperation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getJOperation_ClassBased(), ecorePackage.getEBoolean(), \"classBased\", null, 0, 1, JOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJOperation_OwnerClass(), this.getJClass(), this.getJClass_Operations(), \"ownerClass\", null, 0, 1, JOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJOperation_Parameters(), this.getJParameter(), this.getJParameter_OwnerOperation(), \"parameters\", null, 0, -1, JOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJOperation_Transition(), this.getJTransition(), this.getJTransition_ExecutingOperation(), \"transition\", null, 0, -1, JOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJOperation_Bulk(), ecorePackage.getEBoolean(), \"bulk\", null, 0, 1, JOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJOperation_Kind(), this.getJOperationKind(), \"kind\", null, 0, 1, JOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJOperation_UiMustConfirm(), ecorePackage.getEBoolean(), \"uiMustConfirm\", \"false\", 0, 1, JOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jParameterEClass, JParameter.class, \"JParameter\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJParameter_OwnerOperation(), this.getJOperation(), this.getJOperation_Parameters(), \"ownerOperation\", null, 0, 1, JParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJParameter_Input(), ecorePackage.getEBoolean(), \"input\", \"true\", 0, 1, JParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJParameter_Interval(), ecorePackage.getEString(), \"interval\", null, 0, 1, JParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jRelationshipEClass, JRelationship.class, \"JRelationship\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJRelationship_Package(), this.getJPackage(), this.getJPackage_Relationships(), \"package\", null, 0, 1, JRelationship.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJRelationship_Roles(), this.getJRole(), this.getJRole_OwnerRelationship(), \"roles\", null, 2, 2, JRelationship.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJRelationship_Derived(), ecorePackage.getEBoolean(), \"derived\", null, 0, 1, JRelationship.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jRoleEClass, JRole.class, \"JRole\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getJRole_Lower(), ecorePackage.getEInt(), \"lower\", \"0\", 0, 1, JRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJRole_Upper(), ecorePackage.getEInt(), \"upper\", \"1\", 0, 1, JRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJRole_Navigable(), ecorePackage.getEBoolean(), \"navigable\", null, 0, 1, JRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJRole_Unique(), ecorePackage.getEBoolean(), \"unique\", null, 0, 1, JRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJRole_Ordered(), ecorePackage.getEBoolean(), \"ordered\", \"true\", 0, 1, JRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJRole_OwnerRelationship(), this.getJRelationship(), this.getJRelationship_Roles(), \"ownerRelationship\", null, 1, 1, JRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJRole_DerivedExpression(), ecorePackage.getEString(), \"derivedExpression\", null, 0, 1, JRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJRole_DerivedDescription(), ecorePackage.getEString(), \"derivedDescription\", null, 0, 1, JRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJRole_Kind(), this.getJAssociationKind(), \"kind\", \"ASSOCIATION\", 0, 1, JRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJRole_OptionScript(), ecorePackage.getEString(), \"optionScript\", null, 0, 1, JRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJRole_OwnerClass(), this.getJClass(), this.getJClass_Roles(), \"ownerClass\", null, 1, 1, JRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJRole_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, JRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJRole_Calculated(), ecorePackage.getEBoolean(), \"calculated\", null, 0, 1, JRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJRole_Interval(), ecorePackage.getEString(), \"interval\", null, 0, 1, JRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jLiteralEClass, JLiteral.class, \"JLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJLiteral_Enumeration(), this.getJEnumeration(), this.getJEnumeration_Literals(), \"enumeration\", null, 0, 1, JLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jPackageEClass, JPackage.class, \"JPackage\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJPackage_Enumerations(), this.getJEnumeration(), this.getJEnumeration_Package(), \"enumerations\", null, 0, -1, JPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJPackage_Primitives(), this.getJPrimitive(), this.getJPrimitive_Package(), \"primitives\", null, 0, -1, JPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJPackage_Relationships(), this.getJRelationship(), this.getJRelationship_Package(), \"relationships\", null, 0, -1, JPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJPackage_Children(), this.getJPackage(), this.getJPackage_Parent(), \"children\", null, 0, -1, JPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJPackage_Parent(), this.getJPackage(), this.getJPackage_Children(), \"parent\", null, 0, 1, JPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJPackage_OwnerModel(), this.getJModel(), this.getJModel_Packages(), \"ownerModel\", null, 0, 1, JPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJPackage_Classes(), this.getJClass(), this.getJClass_Package(), \"classes\", null, 0, -1, JPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jStateMachineEClass, JStateMachine.class, \"JStateMachine\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJStateMachine_OwnerClass(), this.getJClass(), this.getJClass_StateMachines(), \"ownerClass\", null, 0, 1, JStateMachine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJStateMachine_States(), this.getJState(), this.getJState_OwnerStateMachine(), \"states\", null, 0, -1, JStateMachine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJStateMachine_Transitions(), this.getJTransition(), this.getJTransition_StateMachine(), \"transitions\", null, 0, -1, JStateMachine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJStateMachine_CorrespondingEnum(), this.getJEnumeration(), null, \"correspondingEnum\", null, 1, 1, JStateMachine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jTransitionEClass, JTransition.class, \"JTransition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJTransition_StateMachine(), this.getJStateMachine(), this.getJStateMachine_Transitions(), \"stateMachine\", null, 0, 1, JTransition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJTransition_Guard(), this.getJGuard(), this.getJGuard_Transition(), \"guard\", null, 0, 1, JTransition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJTransition_ToState(), this.getJState(), this.getJState_IncomingTransitions(), \"toState\", null, 1, 1, JTransition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJTransition_FromState(), this.getJState(), this.getJState_OutgoingTransitions(), \"fromState\", null, 1, 1, JTransition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJTransition_ExecutingOperation(), this.getJOperation(), this.getJOperation_Transition(), \"executingOperation\", null, 0, 1, JTransition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jStateEClass, JState.class, \"JState\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJState_OwnerStateMachine(), this.getJStateMachine(), this.getJStateMachine_States(), \"ownerStateMachine\", null, 0, 1, JState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJState_IncomingTransitions(), this.getJTransition(), this.getJTransition_ToState(), \"incomingTransitions\", null, 0, -1, JState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJState_OutgoingTransitions(), this.getJTransition(), this.getJTransition_FromState(), \"outgoingTransitions\", null, 0, -1, JState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJState_InitialState(), ecorePackage.getEBoolean(), \"initialState\", null, 0, 1, JState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJState_FinalState(), ecorePackage.getEBoolean(), \"finalState\", null, 0, 1, JState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jGuardEClass, JGuard.class, \"JGuard\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJGuard_Transition(), this.getJTransition(), this.getJTransition_Guard(), \"transition\", null, 0, 1, JGuard.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJGuard_Text(), ecorePackage.getEString(), \"text\", null, 0, 1, JGuard.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJGuard_Expression(), ecorePackage.getEString(), \"expression\", null, 0, 1, JGuard.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jModelEClass, JModel.class, \"JModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJModel_Packages(), this.getJPackage(), this.getJPackage_OwnerModel(), \"packages\", null, 0, -1, JModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJModel_PackagePrefix(), ecorePackage.getEString(), \"packagePrefix\", null, 0, 1, JModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJModel_ApplicationTop(), this.getJPackage(), null, \"applicationTop\", null, 1, 1, JModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJModel_RootMenuItems(), this.getJUIMenuItem(), null, \"rootMenuItems\", null, 0, -1, JModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJModel_Info(), this.getJInfo(), null, \"info\", null, 0, 1, JModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(juiMenuItemEClass, JUIMenuItem.class, \"JUIMenuItem\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJUIMenuItem_Children(), this.getJUIMenuItem(), this.getJUIMenuItem_Parent(), \"children\", null, 0, -1, JUIMenuItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJUIMenuItem_Parent(), this.getJUIMenuItem(), this.getJUIMenuItem_Children(), \"parent\", null, 0, 1, JUIMenuItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJUIMenuItem_Represent(), this.getJClass(), null, \"represent\", null, 0, 1, JUIMenuItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJUIMenuItem_Uifilters(), this.getJUIFilter(), null, \"uifilters\", null, 0, -1, JUIMenuItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJUIMenuItem_Type(), this.getJMenuItemType(), \"type\", null, 0, 1, JUIMenuItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJUIMenuItem_Alias(), this.getJUIAlias(), null, \"alias\", null, 0, 1, JUIMenuItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(juiAttributeGroupEClass, JUIAttributeGroup.class, \"JUIAttributeGroup\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJUIAttributeGroup_Attributes(), this.getJAttribute(), null, \"attributes\", null, 0, -1, JUIAttributeGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJUIAttributeGroup_Position(), ecorePackage.getEInt(), \"position\", null, 0, 1, JUIAttributeGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(juiFilterEClass, JUIFilter.class, \"JUIFilter\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJUIFilter_Attribute(), this.getJAttribute(), null, \"attribute\", null, 1, 1, JUIFilter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJUIFilter_Operator(), this.getJOperator(), \"operator\", null, 1, 1, JUIFilter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJUIFilter_Value(), ecorePackage.getEString(), \"value\", null, 1, 1, JUIFilter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(juiAliasEClass, JUIAlias.class, \"JUIAlias\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJUIAlias_OwnerClass(), this.getJClass(), this.getJClass_Aliases(), \"ownerClass\", null, 1, 1, JUIAlias.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jInfoEClass, JInfo.class, \"JInfo\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJInfo_Submodels(), this.getJSubmodel(), null, \"submodels\", null, 0, -1, JInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jSubmodelEClass, JSubmodel.class, \"JSubmodel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getJSubmodel_Version(), ecorePackage.getEString(), \"version\", null, 0, 1, JSubmodel.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(jVisibilityEEnum, JVisibility.class, \"JVisibility\");\n\t\taddEEnumLiteral(jVisibilityEEnum, JVisibility.PUBLIC);\n\t\taddEEnumLiteral(jVisibilityEEnum, JVisibility.PROTECTED);\n\t\taddEEnumLiteral(jVisibilityEEnum, JVisibility.PACKAGE);\n\t\taddEEnumLiteral(jVisibilityEEnum, JVisibility.PRIVATE);\n\n\t\tinitEEnum(jAssociationKindEEnum, JAssociationKind.class, \"JAssociationKind\");\n\t\taddEEnumLiteral(jAssociationKindEEnum, JAssociationKind.ASSOCIATION);\n\t\taddEEnumLiteral(jAssociationKindEEnum, JAssociationKind.AGGREGATION);\n\t\taddEEnumLiteral(jAssociationKindEEnum, JAssociationKind.COMPOSITION);\n\n\t\tinitEEnum(jOperationKindEEnum, JOperationKind.class, \"JOperationKind\");\n\t\taddEEnumLiteral(jOperationKindEEnum, JOperationKind.CUSTOM);\n\t\taddEEnumLiteral(jOperationKindEEnum, JOperationKind.QUERY);\n\n\t\tinitEEnum(jLayerEEnum, JLayer.class, \"JLayer\");\n\t\taddEEnumLiteral(jLayerEEnum, JLayer.ALL);\n\t\taddEEnumLiteral(jLayerEEnum, JLayer.PERSISTENCE);\n\t\taddEEnumLiteral(jLayerEEnum, JLayer.SERVICE);\n\t\taddEEnumLiteral(jLayerEEnum, JLayer.OPERATION);\n\t\taddEEnumLiteral(jLayerEEnum, JLayer.REST);\n\t\taddEEnumLiteral(jLayerEEnum, JLayer.UI);\n\t\taddEEnumLiteral(jLayerEEnum, JLayer.DOCUMENT);\n\t\taddEEnumLiteral(jLayerEEnum, JLayer.PERMISSION);\n\t\taddEEnumLiteral(jLayerEEnum, JLayer.SCREEN);\n\n\t\tinitEEnum(jMenuItemTypeEEnum, JMenuItemType.class, \"JMenuItemType\");\n\t\taddEEnumLiteral(jMenuItemTypeEEnum, JMenuItemType.OBJECT);\n\t\taddEEnumLiteral(jMenuItemTypeEEnum, JMenuItemType.LIST);\n\t\taddEEnumLiteral(jMenuItemTypeEEnum, JMenuItemType.NONE);\n\n\t\tinitEEnum(jOperatorEEnum, JOperator.class, \"JOperator\");\n\t\taddEEnumLiteral(jOperatorEEnum, JOperator.EQ);\n\t\taddEEnumLiteral(jOperatorEEnum, JOperator.NE);\n\t\taddEEnumLiteral(jOperatorEEnum, JOperator.LT);\n\t\taddEEnumLiteral(jOperatorEEnum, JOperator.LTE);\n\t\taddEEnumLiteral(jOperatorEEnum, JOperator.GT);\n\t\taddEEnumLiteral(jOperatorEEnum, JOperator.GTE);\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}", "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\tlogicalConditionEClass.getESuperTypes().add(this.getCondition());\n\t\tnaturalLangConditionEClass.getESuperTypes().add(this.getCondition());\n\t\tmathConditionEClass.getESuperTypes().add(this.getCondition());\n\t\tnegformulaEClass.getESuperTypes().add(this.getLogicalCondition());\n\t\toRformulaEClass.getESuperTypes().add(this.getLogicalCondition());\n\t\tanDformulaEClass.getESuperTypes().add(this.getLogicalCondition());\n\t\tequalFormulaEClass.getESuperTypes().add(this.getMathCondition());\n\t\tmoreEqformulaEClass.getESuperTypes().add(this.getMathCondition());\n\t\tlessformulaEClass.getESuperTypes().add(this.getMathCondition());\n\t\tnumberPropertyEClass.getESuperTypes().add(this.getProperty());\n\t\tbooleanPropertyEClass.getESuperTypes().add(this.getProperty());\n\t\tstringPropertyEClass.getESuperTypes().add(this.getProperty());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(ontologicalStructureEClass, OntologicalStructure.class, \"OntologicalStructure\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getOntologicalStructure_OntologicalConcepts(), this.getOntologicalConcept(), null, \"ontologicalConcepts\", null, 0, -1, OntologicalStructure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getOntologicalStructure_Conditions(), this.getCondition(), null, \"conditions\", null, 0, -1, OntologicalStructure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getOntologicalStructure_Properties(), this.getProperty(), null, \"properties\", null, 0, -1, OntologicalStructure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(ontologicalConceptEClass, OntologicalConcept.class, \"OntologicalConcept\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getOntologicalConcept_Label(), ecorePackage.getEString(), \"label\", null, 1, 1, OntologicalConcept.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getOntologicalConcept_URI(), ecorePackage.getEString(), \"URI\", null, 1, 1, OntologicalConcept.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, 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_Label(), ecorePackage.getEString(), \"label\", null, 0, 1, Condition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(logicalConditionEClass, LogicalCondition.class, \"LogicalCondition\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(naturalLangConditionEClass, NaturalLangCondition.class, \"NaturalLangCondition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getNaturalLangCondition_Statement(), ecorePackage.getEString(), \"statement\", null, 1, 1, NaturalLangCondition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(mathConditionEClass, MathCondition.class, \"MathCondition\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(negformulaEClass, Negformula.class, \"Negformula\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getNegformula_ConditionStatement(), this.getCondition(), null, \"conditionStatement\", null, 0, 1, Negformula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(oRformulaEClass, ORformula.class, \"ORformula\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getORformula_LeftConditionStatement(), this.getCondition(), null, \"leftConditionStatement\", null, 1, 1, ORformula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getORformula_RightConditionStatement(), this.getCondition(), null, \"rightConditionStatement\", null, 1, 1, ORformula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(anDformulaEClass, ANDformula.class, \"ANDformula\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getANDformula_LeftConditionStatement(), this.getCondition(), null, \"leftConditionStatement\", null, 1, 1, ANDformula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getANDformula_RightConditionStatement(), this.getCondition(), null, \"rightConditionStatement\", null, 1, 1, ANDformula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(equalFormulaEClass, equalFormula.class, \"equalFormula\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getequalFormula_LeftConditionStatement(), this.getCondition(), null, \"leftConditionStatement\", null, 1, 1, equalFormula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getequalFormula_RightConditionStatement(), this.getCondition(), null, \"rightConditionStatement\", null, 1, 1, equalFormula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(moreEqformulaEClass, moreEqformula.class, \"moreEqformula\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getmoreEqformula_LeftConditionStatement(), this.getCondition(), null, \"leftConditionStatement\", null, 1, 1, moreEqformula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getmoreEqformula_RightConditionStatement(), this.getCondition(), null, \"rightConditionStatement\", null, 1, 1, moreEqformula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(lessformulaEClass, lessformula.class, \"lessformula\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getlessformula_LeftConditionStatement(), this.getCondition(), null, \"leftConditionStatement\", null, 1, 1, lessformula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getlessformula_RightConditionStatement(), this.getCondition(), null, \"rightConditionStatement\", null, 1, 1, lessformula.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_Label(), ecorePackage.getEString(), \"label\", null, 1, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(numberPropertyEClass, NumberProperty.class, \"NumberProperty\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getNumberProperty_Value(), ecorePackage.getEDouble(), \"value\", null, 0, 1, NumberProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(booleanPropertyEClass, BooleanProperty.class, \"BooleanProperty\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getBooleanProperty_Value(), ecorePackage.getEBoolean(), \"value\", null, 0, 1, BooleanProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(stringPropertyEClass, StringProperty.class, \"StringProperty\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getStringProperty_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, StringProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t}", "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(oml2OTIProvenanceEClass, OML2OTIProvenance.class, \"OML2OTIProvenance\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getOML2OTIProvenance_OmlUUID(), this.getUUID(), \"omlUUID\", null, 1, 1, OML2OTIProvenance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getOML2OTIProvenance_OmlIRI(), this.getOML_IRI(), \"omlIRI\", null, 0, 1, OML2OTIProvenance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getOML2OTIProvenance_OtiID(), this.getOTI_TOOL_SPECIFIC_ID(), \"otiID\", null, 1, 1, OML2OTIProvenance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getOML2OTIProvenance_OtiURL(), this.getOTI_TOOL_SPECIFIC_URL(), \"otiURL\", null, 1, 1, OML2OTIProvenance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getOML2OTIProvenance_OtiUUID(), this.getOTI_TOOL_SPECIFIC_UUID(), \"otiUUID\", null, 0, 1, OML2OTIProvenance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getOML2OTIProvenance_Explanation(), theEcorePackage.getEString(), \"explanation\", null, 1, 1, OML2OTIProvenance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Initialize data types\n\t\tinitEDataType(uuidEDataType, String.class, \"UUID\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEDataType(omL_IRIEDataType, String.class, \"OML_IRI\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEDataType(otI_TOOL_SPECIFIC_IDEDataType, String.class, \"OTI_TOOL_SPECIFIC_ID\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEDataType(otI_TOOL_SPECIFIC_UUIDEDataType, String.class, \"OTI_TOOL_SPECIFIC_UUID\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEDataType(otI_TOOL_SPECIFIC_URLEDataType, String.class, \"OTI_TOOL_SPECIFIC_URL\", 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// http://www.eclipse.org/emf/2002/Ecore\n\t\tcreateEcoreAnnotations();\n\t}", "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(bankEClass, Bank.class, \"Bank\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getBank_Managers(), this.getManager(), null, \"managers\", null, 0, -1, Bank.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getBank_Accounts(), this.getAccount(), null, \"accounts\", null, 0, -1, Bank.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getBank_Clients(), this.getClient(), null, \"clients\", null, 0, -1, Bank.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(clientEClass, Client.class, \"Client\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getClient_Manager(), this.getManager(), this.getManager_Clients(), \"manager\", null, 0, -1, Client.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getClient_Accounts(), this.getAccount(), this.getAccount_Owners(), \"accounts\", null, 0, -1, Client.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getClient_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Client.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getClient_Sponsorships(), this.getClient(), null, \"sponsorships\", null, 0, -1, Client.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getClient_Capacity(), ecorePackage.getEInt(), \"capacity\", null, 0, 1, Client.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(managerEClass, Manager.class, \"Manager\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getManager_Clients(), this.getClient(), this.getClient_Manager(), \"clients\", null, 0, -1, Manager.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getManager_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Manager.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(accountEClass, Account.class, \"Account\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAccount_Owners(), this.getClient(), this.getClient_Accounts(), \"owners\", null, 0, -1, Account.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getAccount_Credit(), ecorePackage.getEDouble(), \"credit\", null, 0, 1, Account.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getAccount_Overdraft(), ecorePackage.getEDouble(), \"overdraft\", null, 0, 1, Account.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAccount_Cards(), this.getCard(), null, \"cards\", null, 0, -1, Account.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(cardEClass, Card.class, \"Card\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getCard_Number(), ecorePackage.getEBigInteger(), \"number\", null, 0, 1, Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getCard_Type(), this.getCardType(), \"type\", null, 0, 1, Card.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(cardTypeEEnum, CardType.class, \"CardType\");\r\n\r\n\t\t// Create resource\r\n\t\tcreateResource(eNS_URI);\r\n\t}", "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\tScenarioPackage theScenarioPackage = (ScenarioPackage)EPackage.Registry.INSTANCE.getEPackage(ScenarioPackage.eNS_URI);\n\t\tXActivityDiagramPropertyPackage theXActivityDiagramPropertyPackage = (XActivityDiagramPropertyPackage)EPackage.Registry.INSTANCE.getEPackage(XActivityDiagramPropertyPackage.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(theScenarioPackage.getArbiter());\n\t\tEGenericType g2 = createEGenericType(theXActivityDiagramPropertyPackage.getXActivityDiagramProperty());\n\t\tg1.getETypeArguments().add(g2);\n\t\tg2 = createEGenericType(this.getXActivityDiagramArbiterState());\n\t\tg1.getETypeArguments().add(g2);\n\t\tg2 = createEGenericType(this.getXActivityDiagramArbiterTransition());\n\t\tg1.getETypeArguments().add(g2);\n\t\txActivityDiagramArbiterEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theScenarioPackage.getArbiterState());\n\t\tg2 = createEGenericType(theXActivityDiagramPropertyPackage.getXActivityDiagramProperty());\n\t\tg1.getETypeArguments().add(g2);\n\t\tg2 = createEGenericType(this.getXActivityDiagramArbiterTransition());\n\t\tg1.getETypeArguments().add(g2);\n\t\txActivityDiagramArbiterStateEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theScenarioPackage.getArbiterTransition());\n\t\tg2 = createEGenericType(theXActivityDiagramPropertyPackage.getXActivityDiagramProperty());\n\t\tg1.getETypeArguments().add(g2);\n\t\tg2 = createEGenericType(this.getXActivityDiagramArbiterState());\n\t\tg1.getETypeArguments().add(g2);\n\t\txActivityDiagramArbiterTransitionEClass.getEGenericSuperTypes().add(g1);\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(xActivityDiagramArbiterEClass, XActivityDiagramArbiter.class, \"XActivityDiagramArbiter\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(xActivityDiagramArbiterStateEClass, XActivityDiagramArbiterState.class, \"XActivityDiagramArbiterState\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(xActivityDiagramArbiterTransitionEClass, XActivityDiagramArbiterTransition.class, \"XActivityDiagramArbiterTransition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents() {\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 KGraphPackage theKGraphPackage = (KGraphPackage)EPackage.Registry.INSTANCE.getEPackage(KGraphPackage.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 kShapeLayoutEClass.getESuperTypes().add(this.getKLayoutData());\r\n kEdgeLayoutEClass.getESuperTypes().add(this.getKLayoutData());\r\n kLayoutDataEClass.getESuperTypes().add(theKGraphPackage.getKGraphData());\r\n kIdentifierEClass.getESuperTypes().add(theKGraphPackage.getKGraphData());\r\n\r\n // Initialize classes and features; add operations and parameters\r\n initEClass(kShapeLayoutEClass, KShapeLayout.class, \"KShapeLayout\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getKShapeLayout_Xpos(), ecorePackage.getEFloat(), \"xpos\", \"0.0f\", 0, 1, KShapeLayout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getKShapeLayout_Ypos(), ecorePackage.getEFloat(), \"ypos\", \"0.0f\", 0, 1, KShapeLayout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getKShapeLayout_Width(), ecorePackage.getEFloat(), \"width\", \"0.0f\", 0, 1, KShapeLayout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getKShapeLayout_Height(), ecorePackage.getEFloat(), \"height\", \"0.0f\", 0, 1, KShapeLayout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getKShapeLayout_Insets(), this.getKInsets(), null, \"insets\", null, 0, 1, KShapeLayout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n EOperation op = addEOperation(kShapeLayoutEClass, null, \"setPos\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, ecorePackage.getEFloat(), \"x\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, ecorePackage.getEFloat(), \"y\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n op = addEOperation(kShapeLayoutEClass, null, \"applyVector\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, this.getKVector(), \"pos\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n addEOperation(kShapeLayoutEClass, this.getKVector(), \"createVector\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n op = addEOperation(kShapeLayoutEClass, null, \"setSize\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, ecorePackage.getEFloat(), \"width\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, ecorePackage.getEFloat(), \"height\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n initEClass(kEdgeLayoutEClass, KEdgeLayout.class, \"KEdgeLayout\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEReference(getKEdgeLayout_BendPoints(), this.getKPoint(), null, \"bendPoints\", null, 0, -1, KEdgeLayout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getKEdgeLayout_SourcePoint(), this.getKPoint(), null, \"sourcePoint\", null, 1, 1, KEdgeLayout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getKEdgeLayout_TargetPoint(), this.getKPoint(), null, \"targetPoint\", null, 1, 1, KEdgeLayout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n op = addEOperation(kEdgeLayoutEClass, null, \"applyVectorChain\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, this.getKVectorChain(), \"points\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n addEOperation(kEdgeLayoutEClass, this.getKVectorChain(), \"createVectorChain\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n initEClass(kLayoutDataEClass, KLayoutData.class, \"KLayoutData\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n addEOperation(kLayoutDataEClass, ecorePackage.getEBoolean(), \"isModified\", 1, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n addEOperation(kLayoutDataEClass, null, \"resetModificationFlag\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n initEClass(kPointEClass, KPoint.class, \"KPoint\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getKPoint_X(), ecorePackage.getEFloat(), \"x\", \"0.0f\", 0, 1, KPoint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getKPoint_Y(), ecorePackage.getEFloat(), \"y\", \"0.0f\", 0, 1, KPoint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n op = addEOperation(kPointEClass, null, \"setPos\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, ecorePackage.getEFloat(), \"x\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, ecorePackage.getEFloat(), \"y\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n op = addEOperation(kPointEClass, null, \"applyVector\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, this.getKVector(), \"pos\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n addEOperation(kPointEClass, this.getKVector(), \"createVector\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n initEClass(kInsetsEClass, KInsets.class, \"KInsets\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getKInsets_Top(), ecorePackage.getEFloat(), \"top\", null, 0, 1, KInsets.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getKInsets_Bottom(), ecorePackage.getEFloat(), \"bottom\", null, 0, 1, KInsets.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getKInsets_Left(), ecorePackage.getEFloat(), \"left\", null, 0, 1, KInsets.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getKInsets_Right(), ecorePackage.getEFloat(), \"right\", null, 0, 1, KInsets.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(kIdentifierEClass, KIdentifier.class, \"KIdentifier\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getKIdentifier_Id(), ecorePackage.getEString(), \"id\", null, 1, 1, KIdentifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(kVectorEClass, KVector.class, \"KVector\", IS_ABSTRACT, IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getKVector_X(), ecorePackage.getEDouble(), \"x\", null, 0, 1, KVector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getKVector_Y(), ecorePackage.getEDouble(), \"y\", null, 0, 1, KVector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(kVectorChainEClass, KVectorChain.class, \"KVectorChain\", IS_ABSTRACT, IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS);\r\n\r\n // Create resource\r\n createResource(eNS_URI);\r\n }", "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(maturityModelEClass, MaturityModel.class, \"MaturityModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMaturityModel_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityModel_Version(), ecorePackage.getEString(), \"version\", null, 0, 1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityModel_ReleaseDate(), ecorePackage.getEDate(), \"releaseDate\", null, 0, 1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityModel_Author(), ecorePackage.getEString(), \"author\", null, 0, 1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityModel_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityModel_Acronym(), ecorePackage.getEString(), \"acronym\", null, 0, 1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityModel_Url(), ecorePackage.getEString(), \"url\", null, 0, 1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMaturityModel_Organizes(), this.getProcessArea(), null, \"organizes\", null, 0, -1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMaturityModel_EvolvesInto(), this.getMaturityLevel(), null, \"evolvesInto\", null, 0, -1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(processAreaEClass, ProcessArea.class, \"ProcessArea\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getProcessArea_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, ProcessArea.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getProcessArea_ShortDescription(), ecorePackage.getEString(), \"shortDescription\", null, 0, 1, ProcessArea.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getProcessArea_MainDescription(), ecorePackage.getEString(), \"mainDescription\", null, 0, 1, ProcessArea.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getProcessArea_Acronym(), ecorePackage.getEString(), \"acronym\", null, 0, 1, ProcessArea.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProcessArea_Defines(), this.getSpecificPractice(), null, \"defines\", null, 0, -1, ProcessArea.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProcessArea_Implements(), this.getMaturityLevel(), null, \"implements\", null, 0, 1, ProcessArea.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(specificPracticeEClass, SpecificPractice.class, \"SpecificPractice\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getSpecificPractice_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, SpecificPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSpecificPractice_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, SpecificPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSpecificPractice_Acronym(), ecorePackage.getEString(), \"acronym\", null, 0, 1, SpecificPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSpecificPractice_ComplementaryDescription(), ecorePackage.getEString(), \"complementaryDescription\", null, 0, 1, SpecificPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(maturityLevelEClass, MaturityLevel.class, \"MaturityLevel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMaturityLevel_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, MaturityLevel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityLevel_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, MaturityLevel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityLevel_Acronym(), ecorePackage.getEString(), \"acronym\", null, 0, 1, MaturityLevel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMaturityLevel_EvolvesInto(), this.getGenericPractice(), null, \"evolvesInto\", null, 0, -1, MaturityLevel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(genericPracticeEClass, GenericPractice.class, \"GenericPractice\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getGenericPractice_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, GenericPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getGenericPractice_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, GenericPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getGenericPractice_Acronym(), ecorePackage.getEString(), \"acronym\", null, 0, 1, GenericPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getGenericPractice_ComplementaryDescription(), ecorePackage.getEString(), \"complementaryDescription\", null, 0, 1, GenericPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getGenericPractice_Divided(), this.getGPSubPractice(), null, \"divided\", null, 0, -1, GenericPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(gpSubPracticeEClass, GPSubPractice.class, \"GPSubPractice\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getGPSubPractice_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, GPSubPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getGPSubPractice_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, GPSubPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getGPSubPractice_Acronym(), ecorePackage.getEString(), \"acronym\", null, 0, 1, GPSubPractice.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}", "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\tSolverPackage theSolverPackage = (SolverPackage)EPackage.Registry.INSTANCE.getEPackage(SolverPackage.eNS_URI);\n\t\tSolverjacopPackage theSolverjacopPackage = (SolverjacopPackage)EPackage.Registry.INSTANCE.getEPackage(SolverjacopPackage.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\ttoUseSolverCpGeneratorEClass.getESuperTypes().add(theSolverPackage.getGenerator());\n\t\ttoUseSolverCpTupleEClass.getESuperTypes().add(theSolverPackage.getGeneratorTuple());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(toUseSolverCpFolderEClass, ToUseSolverCpFolder.class, \"ToUseSolverCpFolder\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getToUseSolverCpFolder_SubFolders(), this.getToUseSolverCpFolder(), null, \"SubFolders\", null, 0, -1, ToUseSolverCpFolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getToUseSolverCpFolder_Name(), ecorePackage.getEString(), \"Name\", null, 0, 1, ToUseSolverCpFolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getToUseSolverCpFolder_ToUseGenerators(), this.getToUseSolverCpGenerator(), null, \"ToUseGenerators\", null, 0, -1, ToUseSolverCpFolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(toUseSolverCpGeneratorEClass, ToUseSolverCpGenerator.class, \"ToUseSolverCpGenerator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getToUseSolverCpGenerator_Solver(), theSolverjacopPackage.getSolverJacop(), null, \"Solver\", null, 0, -1, ToUseSolverCpGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getToUseSolverCpGenerator_ToUseTuples(), this.getToUseSolverCpTuple(), null, \"ToUseTuples\", null, 0, -1, ToUseSolverCpGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(toUseSolverCpTupleEClass, ToUseSolverCpTuple.class, \"ToUseSolverCpTuple\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getToUseSolverCpTuple_ToUseLinears(), theSolverPackage.getGeneratorCpLinear(), null, \"ToUseLinears\", null, 0, -1, ToUseSolverCpTuple.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getToUseSolverCpTuple_ToUseVars(), theSolverPackage.getGeneratorCpVarAtomic(), null, \"ToUseVars\", null, 0, -1, ToUseSolverCpTuple.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getToUseSolverCpTuple_ToUseLogicals(), theSolverPackage.getGeneratorCpLogical(), null, \"ToUseLogicals\", null, 0, -1, ToUseSolverCpTuple.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}", "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\tReliabilityPackage theReliabilityPackage = (ReliabilityPackage)EPackage.Registry.INSTANCE.getEPackage(ReliabilityPackage.eNS_URI);\n\t\tseff.SeffPackage theSeffPackage_1 = (seff.SeffPackage)EPackage.Registry.INSTANCE.getEPackage(seff.SeffPackage.eNS_URI);\n\t\tFailuretypesPackage theFailuretypesPackage = (FailuretypesPackage)EPackage.Registry.INSTANCE.getEPackage(FailuretypesPackage.eNS_URI);\n\t\tBasePackage theBasePackage = (BasePackage)EPackage.Registry.INSTANCE.getEPackage(BasePackage.eNS_URI);\n\t\tBehaviourseffPackage theBehaviourseffPackage = (BehaviourseffPackage)EPackage.Registry.INSTANCE.getEPackage(BehaviourseffPackage.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\tinternalFailureOccurrenceDescriptionEClass.getESuperTypes().add(theReliabilityPackage.getFailureOccurrenceDescription());\n\t\trecoveryActionEClass.getESuperTypes().add(theSeffPackage_1.getAbstractInternalControlFlowAction());\n\t\trecoveryActionBehaviourEClass.getESuperTypes().add(this.getFailureHandlingEntity());\n\t\trecoveryActionBehaviourEClass.getESuperTypes().add(theSeffPackage_1.getBehaviour());\n\t\tfailureHandlingEntityEClass.getESuperTypes().add(theBasePackage.getEntity());\n\t\tfailureHandlingExternalCallActionEClass.getESuperTypes().add(this.getFailureHandlingEntity());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(internalFailureOccurrenceDescriptionEClass, InternalFailureOccurrenceDescription.class, \"InternalFailureOccurrenceDescription\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInternalFailureOccurrenceDescription_InternalAction__InternalFailureOccurrenceDescription(), theSeffPackage_1.getInternalAction(), null, \"internalAction__InternalFailureOccurrenceDescription\", null, 1, 1, InternalFailureOccurrenceDescription.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getInternalFailureOccurrenceDescription_SoftwareInducedFailureType__InternalFailureOccurrenceDescription(), theFailuretypesPackage.getSoftwareInducedFailureType(), theFailuretypesPackage.getSoftwareInducedFailureType_InternalFailureOccurrenceDescriptions__SoftwareInducedFailureType(), \"softwareInducedFailureType__InternalFailureOccurrenceDescription\", null, 1, 1, InternalFailureOccurrenceDescription.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(internalFailureOccurrenceDescriptionEClass, ecorePackage.getEBoolean(), \"NoResourceTimeoutFailureAllowedForInternalFailureOccurrenceDescription\", 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\n\t\tinitEClass(recoveryActionEClass, RecoveryAction.class, \"RecoveryAction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRecoveryAction_PrimaryBehaviour__RecoveryAction(), this.getRecoveryActionBehaviour(), null, \"primaryBehaviour__RecoveryAction\", null, 1, 1, RecoveryAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getRecoveryAction_RecoveryActionBehaviours__RecoveryAction(), this.getRecoveryActionBehaviour(), this.getRecoveryActionBehaviour_RecoveryAction__RecoveryActionBehaviour(), \"recoveryActionBehaviours__RecoveryAction\", null, 2, -1, RecoveryAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\top = addEOperation(recoveryActionEClass, ecorePackage.getEBoolean(), \"PrimaryBehaviourOfRecoveryActionMustBeSet\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEDiagnosticChain(), \"diagnostics\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\tg1 = createEGenericType(ecorePackage.getEMap());\n\t\tg2 = 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\n\t\tinitEClass(recoveryActionBehaviourEClass, RecoveryActionBehaviour.class, \"RecoveryActionBehaviour\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRecoveryActionBehaviour_FailureHandlingAlternatives__RecoveryActionBehaviour(), this.getRecoveryActionBehaviour(), null, \"failureHandlingAlternatives__RecoveryActionBehaviour\", null, 0, -1, RecoveryActionBehaviour.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getRecoveryActionBehaviour_RecoveryAction__RecoveryActionBehaviour(), this.getRecoveryAction(), this.getRecoveryAction_RecoveryActionBehaviours__RecoveryAction(), \"recoveryAction__RecoveryActionBehaviour\", null, 1, 1, RecoveryActionBehaviour.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\top = addEOperation(recoveryActionBehaviourEClass, ecorePackage.getEBoolean(), \"RecoveryActionBehaviourHasOnlyOnePredecessor\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEDiagnosticChain(), \"diagnostics\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\tg1 = createEGenericType(ecorePackage.getEMap());\n\t\tg2 = 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\n\t\top = addEOperation(recoveryActionBehaviourEClass, ecorePackage.getEBoolean(), \"RecoveryActionBehaviourIsNotSuccessorOfItself\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEDiagnosticChain(), \"diagnostics\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\tg1 = createEGenericType(ecorePackage.getEMap());\n\t\tg2 = 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\n\t\top = addEOperation(recoveryActionBehaviourEClass, ecorePackage.getEBoolean(), \"SuccessorsOfRecoveryActionBehaviourHandleDisjointFailureTypes\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEDiagnosticChain(), \"diagnostics\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\tg1 = createEGenericType(ecorePackage.getEMap());\n\t\tg2 = 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\n\t\tinitEClass(failureHandlingEntityEClass, FailureHandlingEntity.class, \"FailureHandlingEntity\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getFailureHandlingEntity_FailureTypes_FailureHandlingEntity(), theFailuretypesPackage.getFailureType(), null, \"failureTypes_FailureHandlingEntity\", null, 0, -1, FailureHandlingEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(failureHandlingExternalCallActionEClass, FailureHandlingExternalCallAction.class, \"FailureHandlingExternalCallAction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getFailureHandlingExternalCallAction_Owner(), theBehaviourseffPackage.getExternalCallAction(), null, \"owner\", null, 1, 1, FailureHandlingExternalCallAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(acquireActionTimeoutEClass, AcquireActionTimeout.class, \"AcquireActionTimeout\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAcquireActionTimeout_Owner(), theBehaviourseffPackage.getAcquireAction(), null, \"owner\", null, 1, 1, AcquireActionTimeout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAcquireActionTimeout_TimeoutValue(), ecorePackage.getEDouble(), \"timeoutValue\", null, 1, 1, AcquireActionTimeout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\t// Create annotations\n\t\t// http://www.eclipse.org/uml2/1.1.0/GenModel\n\t\tcreateGenModel_1Annotations();\n\t}", "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\t\tannotationEClass.getESuperTypes().add(this.getElement());\n\t\tidentifiedElementEClass.getESuperTypes().add(this.getElement());\n\t\timportEClass.getESuperTypes().add(this.getElement());\n\t\tinstanceEClass.getESuperTypes().add(this.getElement());\n\t\taxiomEClass.getESuperTypes().add(this.getElement());\n\t\tassertionEClass.getESuperTypes().add(this.getElement());\n\t\tpredicateEClass.getESuperTypes().add(this.getElement());\n\t\targumentEClass.getESuperTypes().add(this.getElement());\n\t\tliteralEClass.getESuperTypes().add(this.getElement());\n\t\tontologyEClass.getESuperTypes().add(this.getIdentifiedElement());\n\t\tmemberEClass.getESuperTypes().add(this.getIdentifiedElement());\n\t\tvocabularyBoxEClass.getESuperTypes().add(this.getOntology());\n\t\tdescriptionBoxEClass.getESuperTypes().add(this.getOntology());\n\t\tvocabularyEClass.getESuperTypes().add(this.getVocabularyBox());\n\t\tvocabularyBundleEClass.getESuperTypes().add(this.getVocabularyBox());\n\t\tdescriptionEClass.getESuperTypes().add(this.getDescriptionBox());\n\t\tdescriptionBundleEClass.getESuperTypes().add(this.getDescriptionBox());\n\t\tstatementEClass.getESuperTypes().add(this.getMember());\n\t\tvocabularyMemberEClass.getESuperTypes().add(this.getMember());\n\t\tdescriptionMemberEClass.getESuperTypes().add(this.getMember());\n\t\tvocabularyStatementEClass.getESuperTypes().add(this.getStatement());\n\t\tvocabularyStatementEClass.getESuperTypes().add(this.getVocabularyMember());\n\t\tdescriptionStatementEClass.getESuperTypes().add(this.getStatement());\n\t\tdescriptionStatementEClass.getESuperTypes().add(this.getDescriptionMember());\n\t\ttermEClass.getESuperTypes().add(this.getVocabularyMember());\n\t\truleEClass.getESuperTypes().add(this.getVocabularyStatement());\n\t\tbuiltInEClass.getESuperTypes().add(this.getVocabularyStatement());\n\t\tspecializableTermEClass.getESuperTypes().add(this.getTerm());\n\t\tspecializableTermEClass.getESuperTypes().add(this.getVocabularyStatement());\n\t\tpropertyEClass.getESuperTypes().add(this.getTerm());\n\t\ttypeEClass.getESuperTypes().add(this.getSpecializableTerm());\n\t\trelationBaseEClass.getESuperTypes().add(this.getSpecializableTerm());\n\t\tspecializablePropertyEClass.getESuperTypes().add(this.getSpecializableTerm());\n\t\tspecializablePropertyEClass.getESuperTypes().add(this.getProperty());\n\t\tclassifierEClass.getESuperTypes().add(this.getType());\n\t\tscalarEClass.getESuperTypes().add(this.getType());\n\t\tentityEClass.getESuperTypes().add(this.getClassifier());\n\t\tstructureEClass.getESuperTypes().add(this.getClassifier());\n\t\taspectEClass.getESuperTypes().add(this.getEntity());\n\t\tconceptEClass.getESuperTypes().add(this.getEntity());\n\t\trelationEntityEClass.getESuperTypes().add(this.getEntity());\n\t\trelationEntityEClass.getESuperTypes().add(this.getRelationBase());\n\t\tannotationPropertyEClass.getESuperTypes().add(this.getSpecializableProperty());\n\t\tsemanticPropertyEClass.getESuperTypes().add(this.getProperty());\n\t\tscalarPropertyEClass.getESuperTypes().add(this.getSemanticProperty());\n\t\tscalarPropertyEClass.getESuperTypes().add(this.getSpecializableProperty());\n\t\tstructuredPropertyEClass.getESuperTypes().add(this.getSemanticProperty());\n\t\tstructuredPropertyEClass.getESuperTypes().add(this.getSpecializableProperty());\n\t\trelationEClass.getESuperTypes().add(this.getSemanticProperty());\n\t\tforwardRelationEClass.getESuperTypes().add(this.getRelation());\n\t\treverseRelationEClass.getESuperTypes().add(this.getRelation());\n\t\tunreifiedRelationEClass.getESuperTypes().add(this.getRelation());\n\t\tunreifiedRelationEClass.getESuperTypes().add(this.getRelationBase());\n\t\tunreifiedRelationEClass.getESuperTypes().add(this.getSpecializableProperty());\n\t\tnamedInstanceEClass.getESuperTypes().add(this.getDescriptionStatement());\n\t\tnamedInstanceEClass.getESuperTypes().add(this.getInstance());\n\t\tconceptInstanceEClass.getESuperTypes().add(this.getNamedInstance());\n\t\trelationInstanceEClass.getESuperTypes().add(this.getNamedInstance());\n\t\tstructureInstanceEClass.getESuperTypes().add(this.getInstance());\n\t\tkeyAxiomEClass.getESuperTypes().add(this.getAxiom());\n\t\tspecializationAxiomEClass.getESuperTypes().add(this.getAxiom());\n\t\tinstanceEnumerationAxiomEClass.getESuperTypes().add(this.getAxiom());\n\t\tpropertyRestrictionAxiomEClass.getESuperTypes().add(this.getAxiom());\n\t\tliteralEnumerationAxiomEClass.getESuperTypes().add(this.getAxiom());\n\t\tclassifierEquivalenceAxiomEClass.getESuperTypes().add(this.getAxiom());\n\t\tscalarEquivalenceAxiomEClass.getESuperTypes().add(this.getAxiom());\n\t\tpropertyEquivalenceAxiomEClass.getESuperTypes().add(this.getAxiom());\n\t\tpropertyRangeRestrictionAxiomEClass.getESuperTypes().add(this.getPropertyRestrictionAxiom());\n\t\tpropertyCardinalityRestrictionAxiomEClass.getESuperTypes().add(this.getPropertyRestrictionAxiom());\n\t\tpropertyValueRestrictionAxiomEClass.getESuperTypes().add(this.getPropertyRestrictionAxiom());\n\t\tpropertySelfRestrictionAxiomEClass.getESuperTypes().add(this.getPropertyRestrictionAxiom());\n\t\ttypeAssertionEClass.getESuperTypes().add(this.getAssertion());\n\t\tpropertyValueAssertionEClass.getESuperTypes().add(this.getAssertion());\n\t\tunaryPredicateEClass.getESuperTypes().add(this.getPredicate());\n\t\tbinaryPredicateEClass.getESuperTypes().add(this.getPredicate());\n\t\tbuiltInPredicateEClass.getESuperTypes().add(this.getPredicate());\n\t\ttypePredicateEClass.getESuperTypes().add(this.getUnaryPredicate());\n\t\trelationEntityPredicateEClass.getESuperTypes().add(this.getUnaryPredicate());\n\t\trelationEntityPredicateEClass.getESuperTypes().add(this.getBinaryPredicate());\n\t\tpropertyPredicateEClass.getESuperTypes().add(this.getBinaryPredicate());\n\t\tsameAsPredicateEClass.getESuperTypes().add(this.getBinaryPredicate());\n\t\tdifferentFromPredicateEClass.getESuperTypes().add(this.getBinaryPredicate());\n\t\tquotedLiteralEClass.getESuperTypes().add(this.getLiteral());\n\t\tintegerLiteralEClass.getESuperTypes().add(this.getLiteral());\n\t\tdecimalLiteralEClass.getESuperTypes().add(this.getLiteral());\n\t\tdoubleLiteralEClass.getESuperTypes().add(this.getLiteral());\n\t\tbooleanLiteralEClass.getESuperTypes().add(this.getLiteral());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(elementEClass, Element.class, \"Element\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEOperation(getElement__GetOntology(), this.getOntology(), \"getOntology\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tEOperation op = initEOperation(getElement__ExtraValidate__DiagnosticChain_Map(), theEcorePackage.getEBoolean(), \"extraValidate\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, theEcorePackage.getEDiagnosticChain(), \"diagnostics\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\t\tEGenericType g1 = createEGenericType(theEcorePackage.getEMap());\n\t\tEGenericType g2 = createEGenericType(theEcorePackage.getEJavaObject());\n\t\tg1.getETypeArguments().add(g2);\n\t\tg2 = createEGenericType(theEcorePackage.getEJavaObject());\n\t\tg1.getETypeArguments().add(g2);\n\t\taddEParameter(op, g1, \"context\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(annotationEClass, Annotation.class, \"Annotation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAnnotation_Property(), this.getAnnotationProperty(), null, \"property\", null, 1, 1, Annotation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAnnotation_LiteralValue(), this.getLiteral(), null, \"literalValue\", null, 0, 1, Annotation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAnnotation_ReferenceValue(), this.getMember(), null, \"referenceValue\", null, 0, 1, Annotation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAnnotation_OwningElement(), this.getIdentifiedElement(), this.getIdentifiedElement_OwnedAnnotations(), \"owningElement\", null, 0, 1, Annotation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getAnnotation__GetValue(), this.getElement(), \"getValue\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getAnnotation__GetAnnotatedElement(), this.getIdentifiedElement(), \"getAnnotatedElement\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(identifiedElementEClass, IdentifiedElement.class, \"IdentifiedElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getIdentifiedElement_OwnedAnnotations(), this.getAnnotation(), this.getAnnotation_OwningElement(), \"ownedAnnotations\", null, 0, -1, IdentifiedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getIdentifiedElement__GetIri(), theEcorePackage.getEString(), \"getIri\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(importEClass, Import.class, \"Import\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getImport_Kind(), this.getImportKind(), \"kind\", null, 1, 1, Import.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getImport_Namespace(), this.getNamespace(), \"namespace\", null, 1, 1, Import.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getImport_Prefix(), this.getID(), \"prefix\", null, 0, 1, Import.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getImport_OwningOntology(), this.getOntology(), this.getOntology_OwnedImports(), \"owningOntology\", null, 1, 1, Import.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getImport__GetIri(), theEcorePackage.getEString(), \"getIri\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getImport__GetSeparator(), this.getSeparatorKind(), \"getSeparator\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(instanceEClass, Instance.class, \"Instance\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInstance_OwnedPropertyValues(), this.getPropertyValueAssertion(), this.getPropertyValueAssertion_OwningInstance(), \"ownedPropertyValues\", null, 0, -1, Instance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(axiomEClass, Axiom.class, \"Axiom\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEOperation(getAxiom__GetCharacterizedTerm(), this.getTerm(), \"getCharacterizedTerm\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(assertionEClass, Assertion.class, \"Assertion\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEOperation(getAssertion__GetSubject(), this.getInstance(), \"getSubject\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getAssertion__GetObject(), this.getElement(), \"getObject\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(predicateEClass, Predicate.class, \"Predicate\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPredicate_AntecedentRule(), this.getRule(), this.getRule_Antecedent(), \"antecedentRule\", 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\t\tinitEReference(getPredicate_ConsequentRule(), this.getRule(), this.getRule_Consequent(), \"consequentRule\", 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\t\tinitEClass(argumentEClass, Argument.class, \"Argument\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getArgument_Variable(), this.getID(), \"variable\", null, 0, 1, Argument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getArgument_Literal(), this.getLiteral(), null, \"literal\", null, 0, 1, Argument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getArgument_Instance(), this.getNamedInstance(), null, \"instance\", null, 0, 1, Argument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(literalEClass, Literal.class, \"Literal\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEOperation(getLiteral__GetValue(), theEcorePackage.getEJavaObject(), \"getValue\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getLiteral__GetStringValue(), theEcorePackage.getEString(), \"getStringValue\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getLiteral__GetLexicalValue(), theEcorePackage.getEString(), \"getLexicalValue\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getLiteral__GetTypeIri(), theEcorePackage.getEString(), \"getTypeIri\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(ontologyEClass, Ontology.class, \"Ontology\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getOntology_Namespace(), this.getNamespace(), \"namespace\", null, 1, 1, Ontology.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getOntology_Prefix(), this.getID(), \"prefix\", null, 1, 1, Ontology.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getOntology_OwnedImports(), this.getImport(), this.getImport_OwningOntology(), \"ownedImports\", null, 0, -1, Ontology.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getOntology__GetIri(), theEcorePackage.getEString(), \"getIri\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getOntology__GetSeparator(), this.getSeparatorKind(), \"getSeparator\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(memberEClass, Member.class, \"Member\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMember_Name(), this.getID(), \"name\", null, 0, 1, Member.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getMember__GetRef(), this.getMember(), \"getRef\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getMember__IsRef(), theEcorePackage.getEBoolean(), \"isRef\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getMember__Resolve(), this.getMember(), \"resolve\", 1, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getMember__GetIri(), theEcorePackage.getEString(), \"getIri\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getMember__GetAbbreviatedIri(), theEcorePackage.getEString(), \"getAbbreviatedIri\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(vocabularyBoxEClass, VocabularyBox.class, \"VocabularyBox\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(descriptionBoxEClass, DescriptionBox.class, \"DescriptionBox\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(vocabularyEClass, Vocabulary.class, \"Vocabulary\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getVocabulary_OwnedStatements(), this.getVocabularyStatement(), this.getVocabularyStatement_OwningVocabulary(), \"ownedStatements\", null, 0, -1, Vocabulary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(vocabularyBundleEClass, VocabularyBundle.class, \"VocabularyBundle\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(descriptionEClass, Description.class, \"Description\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getDescription_OwnedStatements(), this.getDescriptionStatement(), this.getDescriptionStatement_OwningDescription(), \"ownedStatements\", null, 0, -1, Description.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(descriptionBundleEClass, DescriptionBundle.class, \"DescriptionBundle\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(statementEClass, Statement.class, \"Statement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(vocabularyMemberEClass, VocabularyMember.class, \"VocabularyMember\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(descriptionMemberEClass, DescriptionMember.class, \"DescriptionMember\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(vocabularyStatementEClass, VocabularyStatement.class, \"VocabularyStatement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getVocabularyStatement_OwningVocabulary(), this.getVocabulary(), this.getVocabulary_OwnedStatements(), \"owningVocabulary\", null, 1, 1, VocabularyStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(descriptionStatementEClass, DescriptionStatement.class, \"DescriptionStatement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getDescriptionStatement_OwningDescription(), this.getDescription(), this.getDescription_OwnedStatements(), \"owningDescription\", null, 1, 1, DescriptionStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(termEClass, Term.class, \"Term\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(ruleEClass, Rule.class, \"Rule\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRule_Ref(), this.getRule(), null, \"ref\", 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\t\tinitEReference(getRule_Antecedent(), this.getPredicate(), this.getPredicate_AntecedentRule(), \"antecedent\", 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\t\tinitEReference(getRule_Consequent(), this.getPredicate(), this.getPredicate_ConsequentRule(), \"consequent\", 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\t\tinitEClass(builtInEClass, BuiltIn.class, \"BuiltIn\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getBuiltIn_Ref(), this.getBuiltIn(), null, \"ref\", null, 0, 1, BuiltIn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(specializableTermEClass, SpecializableTerm.class, \"SpecializableTerm\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSpecializableTerm_OwnedSpecializations(), this.getSpecializationAxiom(), this.getSpecializationAxiom_OwningTerm(), \"ownedSpecializations\", null, 0, -1, SpecializableTerm.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\n\t\tinitEClass(typeEClass, Type.class, \"Type\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(relationBaseEClass, RelationBase.class, \"RelationBase\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRelationBase_Sources(), this.getEntity(), null, \"sources\", null, 0, -1, RelationBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRelationBase_Targets(), this.getEntity(), null, \"targets\", null, 0, -1, RelationBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRelationBase_ReverseRelation(), this.getReverseRelation(), this.getReverseRelation_RelationBase(), \"reverseRelation\", null, 0, 1, RelationBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRelationBase_Functional(), theEcorePackage.getEBoolean(), \"functional\", null, 0, 1, RelationBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRelationBase_InverseFunctional(), theEcorePackage.getEBoolean(), \"inverseFunctional\", null, 0, 1, RelationBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRelationBase_Symmetric(), theEcorePackage.getEBoolean(), \"symmetric\", null, 0, 1, RelationBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRelationBase_Asymmetric(), theEcorePackage.getEBoolean(), \"asymmetric\", null, 0, 1, RelationBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRelationBase_Reflexive(), theEcorePackage.getEBoolean(), \"reflexive\", null, 0, 1, RelationBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRelationBase_Irreflexive(), theEcorePackage.getEBoolean(), \"irreflexive\", null, 0, 1, RelationBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRelationBase_Transitive(), theEcorePackage.getEBoolean(), \"transitive\", null, 0, 1, RelationBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(specializablePropertyEClass, SpecializableProperty.class, \"SpecializableProperty\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSpecializableProperty_OwnedEquivalences(), this.getPropertyEquivalenceAxiom(), this.getPropertyEquivalenceAxiom_OwningProperty(), \"ownedEquivalences\", null, 0, -1, SpecializableProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(classifierEClass, Classifier.class, \"Classifier\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getClassifier_OwnedEquivalences(), this.getClassifierEquivalenceAxiom(), this.getClassifierEquivalenceAxiom_OwningClassifier(), \"ownedEquivalences\", null, 0, -1, Classifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getClassifier_OwnedPropertyRestrictions(), this.getPropertyRestrictionAxiom(), this.getPropertyRestrictionAxiom_OwningClassifier(), \"ownedPropertyRestrictions\", null, 0, -1, Classifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(scalarEClass, Scalar.class, \"Scalar\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getScalar_Ref(), this.getScalar(), null, \"ref\", null, 0, 1, Scalar.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getScalar_OwnedEnumeration(), this.getLiteralEnumerationAxiom(), this.getLiteralEnumerationAxiom_OwningScalar(), \"ownedEnumeration\", null, 0, 1, Scalar.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getScalar_OwnedEquivalences(), this.getScalarEquivalenceAxiom(), this.getScalarEquivalenceAxiom_OwningScalar(), \"ownedEquivalences\", null, 0, -1, Scalar.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_OwnedKeys(), this.getKeyAxiom(), this.getKeyAxiom_OwningEntity(), \"ownedKeys\", 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(structureEClass, Structure.class, \"Structure\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getStructure_Ref(), this.getStructure(), null, \"ref\", null, 0, 1, Structure.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\tinitEReference(getAspect_Ref(), this.getAspect(), null, \"ref\", 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(conceptEClass, Concept.class, \"Concept\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getConcept_Ref(), this.getConcept(), null, \"ref\", null, 0, 1, Concept.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getConcept_OwnedEnumeration(), this.getInstanceEnumerationAxiom(), this.getInstanceEnumerationAxiom_OwningConcept(), \"ownedEnumeration\", null, 0, 1, Concept.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(relationEntityEClass, RelationEntity.class, \"RelationEntity\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRelationEntity_Ref(), this.getRelationEntity(), null, \"ref\", null, 0, 1, RelationEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRelationEntity_ForwardRelation(), this.getForwardRelation(), this.getForwardRelation_RelationEntity(), \"forwardRelation\", null, 0, 1, RelationEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(annotationPropertyEClass, AnnotationProperty.class, \"AnnotationProperty\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAnnotationProperty_Ref(), this.getAnnotationProperty(), null, \"ref\", null, 0, 1, AnnotationProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(semanticPropertyEClass, SemanticProperty.class, \"SemanticProperty\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEOperation(getSemanticProperty__IsFunctional(), theEcorePackage.getEBoolean(), \"isFunctional\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getSemanticProperty__GetDomainList(), this.getClassifier(), \"getDomainList\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getSemanticProperty__GetRangeList(), this.getType(), \"getRangeList\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(scalarPropertyEClass, ScalarProperty.class, \"ScalarProperty\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getScalarProperty_Ref(), this.getScalarProperty(), null, \"ref\", null, 0, 1, ScalarProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getScalarProperty_Functional(), theEcorePackage.getEBoolean(), \"functional\", null, 0, 1, ScalarProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getScalarProperty_Domains(), this.getClassifier(), null, \"domains\", null, 0, -1, ScalarProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getScalarProperty_Ranges(), this.getScalar(), null, \"ranges\", null, 0, -1, ScalarProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getScalarProperty__GetDomainList(), this.getClassifier(), \"getDomainList\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getScalarProperty__GetRangeList(), this.getType(), \"getRangeList\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(structuredPropertyEClass, StructuredProperty.class, \"StructuredProperty\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getStructuredProperty_Ref(), this.getStructuredProperty(), null, \"ref\", null, 0, 1, StructuredProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getStructuredProperty_Functional(), theEcorePackage.getEBoolean(), \"functional\", null, 0, 1, StructuredProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getStructuredProperty_Domains(), this.getClassifier(), null, \"domains\", null, 0, -1, StructuredProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getStructuredProperty_Ranges(), this.getStructure(), null, \"ranges\", null, 0, -1, StructuredProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getStructuredProperty__GetDomainList(), this.getClassifier(), \"getDomainList\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getStructuredProperty__GetRangeList(), this.getType(), \"getRangeList\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(relationEClass, Relation.class, \"Relation\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEOperation(getRelation__IsInverseFunctional(), theEcorePackage.getEBoolean(), \"isInverseFunctional\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getRelation__IsSymmetric(), theEcorePackage.getEBoolean(), \"isSymmetric\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getRelation__IsAsymmetric(), theEcorePackage.getEBoolean(), \"isAsymmetric\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getRelation__IsReflexive(), theEcorePackage.getEBoolean(), \"isReflexive\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getRelation__IsIrreflexive(), theEcorePackage.getEBoolean(), \"isIrreflexive\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getRelation__IsTransitive(), theEcorePackage.getEBoolean(), \"isTransitive\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getRelation__GetDomains(), this.getEntity(), \"getDomains\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getRelation__GetRanges(), this.getEntity(), \"getRanges\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getRelation__GetInverse(), this.getRelation(), \"getInverse\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getRelation__GetDomainList(), this.getClassifier(), \"getDomainList\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getRelation__GetRangeList(), this.getType(), \"getRangeList\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(forwardRelationEClass, ForwardRelation.class, \"ForwardRelation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getForwardRelation_RelationEntity(), this.getRelationEntity(), this.getRelationEntity_ForwardRelation(), \"relationEntity\", null, 1, 1, ForwardRelation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getForwardRelation__GetRef(), this.getMember(), \"getRef\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getForwardRelation__IsFunctional(), theEcorePackage.getEBoolean(), \"isFunctional\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getForwardRelation__IsInverseFunctional(), theEcorePackage.getEBoolean(), \"isInverseFunctional\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getForwardRelation__IsSymmetric(), theEcorePackage.getEBoolean(), \"isSymmetric\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getForwardRelation__IsAsymmetric(), theEcorePackage.getEBoolean(), \"isAsymmetric\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getForwardRelation__IsReflexive(), theEcorePackage.getEBoolean(), \"isReflexive\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getForwardRelation__IsIrreflexive(), theEcorePackage.getEBoolean(), \"isIrreflexive\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getForwardRelation__IsTransitive(), theEcorePackage.getEBoolean(), \"isTransitive\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getForwardRelation__GetDomains(), this.getEntity(), \"getDomains\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getForwardRelation__GetRanges(), this.getEntity(), \"getRanges\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getForwardRelation__GetInverse(), this.getRelation(), \"getInverse\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(reverseRelationEClass, ReverseRelation.class, \"ReverseRelation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getReverseRelation_RelationBase(), this.getRelationBase(), this.getRelationBase_ReverseRelation(), \"relationBase\", null, 1, 1, ReverseRelation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getReverseRelation__GetRef(), this.getMember(), \"getRef\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getReverseRelation__IsFunctional(), theEcorePackage.getEBoolean(), \"isFunctional\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getReverseRelation__IsInverseFunctional(), theEcorePackage.getEBoolean(), \"isInverseFunctional\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getReverseRelation__IsSymmetric(), theEcorePackage.getEBoolean(), \"isSymmetric\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getReverseRelation__IsAsymmetric(), theEcorePackage.getEBoolean(), \"isAsymmetric\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getReverseRelation__IsReflexive(), theEcorePackage.getEBoolean(), \"isReflexive\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getReverseRelation__IsIrreflexive(), theEcorePackage.getEBoolean(), \"isIrreflexive\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getReverseRelation__IsTransitive(), theEcorePackage.getEBoolean(), \"isTransitive\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getReverseRelation__GetDomains(), this.getEntity(), \"getDomains\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getReverseRelation__GetRanges(), this.getEntity(), \"getRanges\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getReverseRelation__GetInverse(), this.getRelation(), \"getInverse\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(unreifiedRelationEClass, UnreifiedRelation.class, \"UnreifiedRelation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getUnreifiedRelation_Ref(), this.getRelation(), null, \"ref\", null, 0, 1, UnreifiedRelation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getUnreifiedRelation__GetDomains(), this.getEntity(), \"getDomains\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getUnreifiedRelation__GetRanges(), this.getEntity(), \"getRanges\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getUnreifiedRelation__GetInverse(), this.getRelation(), \"getInverse\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(namedInstanceEClass, NamedInstance.class, \"NamedInstance\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getNamedInstance_OwnedTypes(), this.getTypeAssertion(), this.getTypeAssertion_OwningInstance(), \"ownedTypes\", null, 0, -1, NamedInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(conceptInstanceEClass, ConceptInstance.class, \"ConceptInstance\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getConceptInstance_Ref(), this.getConceptInstance(), null, \"ref\", null, 0, 1, ConceptInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(relationInstanceEClass, RelationInstance.class, \"RelationInstance\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRelationInstance_Ref(), this.getRelationInstance(), null, \"ref\", null, 0, 1, RelationInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRelationInstance_Sources(), this.getNamedInstance(), null, \"sources\", null, 0, -1, RelationInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRelationInstance_Targets(), this.getNamedInstance(), null, \"targets\", null, 0, -1, RelationInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(structureInstanceEClass, StructureInstance.class, \"StructureInstance\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getStructureInstance_Type(), this.getStructure(), null, \"type\", null, 1, 1, StructureInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getStructureInstance_OwningAxiom(), this.getPropertyValueRestrictionAxiom(), this.getPropertyValueRestrictionAxiom_StructureInstanceValue(), \"owningAxiom\", null, 0, 1, StructureInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getStructureInstance_OwningAssertion(), this.getPropertyValueAssertion(), this.getPropertyValueAssertion_StructureInstanceValue(), \"owningAssertion\", null, 0, 1, StructureInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(keyAxiomEClass, KeyAxiom.class, \"KeyAxiom\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getKeyAxiom_Properties(), this.getProperty(), null, \"properties\", null, 1, -1, KeyAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getKeyAxiom_OwningEntity(), this.getEntity(), this.getEntity_OwnedKeys(), \"owningEntity\", null, 0, 1, KeyAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getKeyAxiom__GetKeyedEntity(), this.getEntity(), \"getKeyedEntity\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getKeyAxiom__GetCharacterizedTerm(), this.getEntity(), \"getCharacterizedTerm\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(specializationAxiomEClass, SpecializationAxiom.class, \"SpecializationAxiom\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSpecializationAxiom_SuperTerm(), this.getTerm(), null, \"superTerm\", null, 1, 1, SpecializationAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSpecializationAxiom_OwningTerm(), this.getSpecializableTerm(), this.getSpecializableTerm_OwnedSpecializations(), \"owningTerm\", null, 0, 1, SpecializationAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getSpecializationAxiom__GetSubTerm(), this.getTerm(), \"getSubTerm\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getSpecializationAxiom__GetCharacterizedTerm(), this.getTerm(), \"getCharacterizedTerm\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(instanceEnumerationAxiomEClass, InstanceEnumerationAxiom.class, \"InstanceEnumerationAxiom\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInstanceEnumerationAxiom_Instances(), this.getConceptInstance(), null, \"instances\", null, 1, -1, InstanceEnumerationAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInstanceEnumerationAxiom_OwningConcept(), this.getConcept(), this.getConcept_OwnedEnumeration(), \"owningConcept\", null, 0, 1, InstanceEnumerationAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getInstanceEnumerationAxiom__GetEnumeratedConcept(), this.getConcept(), \"getEnumeratedConcept\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getInstanceEnumerationAxiom__GetCharacterizedTerm(), this.getConcept(), \"getCharacterizedTerm\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(propertyRestrictionAxiomEClass, PropertyRestrictionAxiom.class, \"PropertyRestrictionAxiom\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPropertyRestrictionAxiom_Property(), this.getSemanticProperty(), null, \"property\", null, 1, 1, PropertyRestrictionAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPropertyRestrictionAxiom_OwningClassifier(), this.getClassifier(), this.getClassifier_OwnedPropertyRestrictions(), \"owningClassifier\", null, 0, 1, PropertyRestrictionAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPropertyRestrictionAxiom_OwningAxiom(), this.getClassifierEquivalenceAxiom(), this.getClassifierEquivalenceAxiom_OwnedPropertyRestrictions(), \"owningAxiom\", null, 0, 1, PropertyRestrictionAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getPropertyRestrictionAxiom__GetRestrictingDomain(), this.getClassifier(), \"getRestrictingDomain\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getPropertyRestrictionAxiom__GetCharacterizedTerm(), this.getClassifier(), \"getCharacterizedTerm\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(literalEnumerationAxiomEClass, LiteralEnumerationAxiom.class, \"LiteralEnumerationAxiom\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getLiteralEnumerationAxiom_Literals(), this.getLiteral(), null, \"literals\", null, 1, -1, LiteralEnumerationAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLiteralEnumerationAxiom_OwningScalar(), this.getScalar(), this.getScalar_OwnedEnumeration(), \"owningScalar\", null, 0, 1, LiteralEnumerationAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getLiteralEnumerationAxiom__GetEnumeratedScalar(), this.getScalar(), \"getEnumeratedScalar\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getLiteralEnumerationAxiom__GetCharacterizedTerm(), this.getScalar(), \"getCharacterizedTerm\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(classifierEquivalenceAxiomEClass, ClassifierEquivalenceAxiom.class, \"ClassifierEquivalenceAxiom\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getClassifierEquivalenceAxiom_SuperClassifiers(), this.getClassifier(), null, \"superClassifiers\", null, 0, -1, ClassifierEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getClassifierEquivalenceAxiom_OwnedPropertyRestrictions(), this.getPropertyRestrictionAxiom(), this.getPropertyRestrictionAxiom_OwningAxiom(), \"ownedPropertyRestrictions\", null, 0, -1, ClassifierEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getClassifierEquivalenceAxiom_OwningClassifier(), this.getClassifier(), this.getClassifier_OwnedEquivalences(), \"owningClassifier\", null, 0, 1, ClassifierEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getClassifierEquivalenceAxiom__GetSubClassifier(), this.getClassifier(), \"getSubClassifier\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getClassifierEquivalenceAxiom__GetCharacterizedTerm(), this.getClassifier(), \"getCharacterizedTerm\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(scalarEquivalenceAxiomEClass, ScalarEquivalenceAxiom.class, \"ScalarEquivalenceAxiom\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getScalarEquivalenceAxiom_SuperScalar(), this.getScalar(), null, \"superScalar\", null, 1, 1, ScalarEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getScalarEquivalenceAxiom_OwningScalar(), this.getScalar(), this.getScalar_OwnedEquivalences(), \"owningScalar\", null, 1, 1, ScalarEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getScalarEquivalenceAxiom_Length(), this.getUnsignedInteger(), \"length\", null, 0, 1, ScalarEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getScalarEquivalenceAxiom_MinLength(), this.getUnsignedInteger(), \"minLength\", null, 0, 1, ScalarEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getScalarEquivalenceAxiom_MaxLength(), this.getUnsignedInteger(), \"maxLength\", null, 0, 1, ScalarEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getScalarEquivalenceAxiom_Pattern(), theEcorePackage.getEString(), \"pattern\", null, 0, 1, ScalarEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getScalarEquivalenceAxiom_Language(), theEcorePackage.getEString(), \"language\", null, 0, 1, ScalarEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getScalarEquivalenceAxiom_MinInclusive(), this.getLiteral(), null, \"minInclusive\", null, 0, 1, ScalarEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getScalarEquivalenceAxiom_MinExclusive(), this.getLiteral(), null, \"minExclusive\", null, 0, 1, ScalarEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getScalarEquivalenceAxiom_MaxInclusive(), this.getLiteral(), null, \"maxInclusive\", null, 0, 1, ScalarEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getScalarEquivalenceAxiom_MaxExclusive(), this.getLiteral(), null, \"maxExclusive\", null, 0, 1, ScalarEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getScalarEquivalenceAxiom__GetSubScalar(), this.getScalar(), \"getSubScalar\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getScalarEquivalenceAxiom__GetCharacterizedTerm(), this.getScalar(), \"getCharacterizedTerm\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(propertyEquivalenceAxiomEClass, PropertyEquivalenceAxiom.class, \"PropertyEquivalenceAxiom\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPropertyEquivalenceAxiom_SuperProperty(), this.getProperty(), null, \"superProperty\", null, 1, 1, PropertyEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPropertyEquivalenceAxiom_OwningProperty(), this.getSpecializableProperty(), this.getSpecializableProperty_OwnedEquivalences(), \"owningProperty\", null, 0, 1, PropertyEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getPropertyEquivalenceAxiom__GetSubProperty(), this.getProperty(), \"getSubProperty\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getPropertyEquivalenceAxiom__GetCharacterizedTerm(), this.getProperty(), \"getCharacterizedTerm\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(propertyRangeRestrictionAxiomEClass, PropertyRangeRestrictionAxiom.class, \"PropertyRangeRestrictionAxiom\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPropertyRangeRestrictionAxiom_Kind(), this.getRangeRestrictionKind(), \"kind\", \"all\", 1, 1, PropertyRangeRestrictionAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPropertyRangeRestrictionAxiom_Range(), this.getType(), null, \"range\", null, 1, 1, PropertyRangeRestrictionAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(propertyCardinalityRestrictionAxiomEClass, PropertyCardinalityRestrictionAxiom.class, \"PropertyCardinalityRestrictionAxiom\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPropertyCardinalityRestrictionAxiom_Kind(), this.getCardinalityRestrictionKind(), \"kind\", \"exactly\", 1, 1, PropertyCardinalityRestrictionAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPropertyCardinalityRestrictionAxiom_Cardinality(), this.getUnsignedInt(), \"cardinality\", \"1\", 1, 1, PropertyCardinalityRestrictionAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPropertyCardinalityRestrictionAxiom_Range(), this.getType(), null, \"range\", null, 0, 1, PropertyCardinalityRestrictionAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(propertyValueRestrictionAxiomEClass, PropertyValueRestrictionAxiom.class, \"PropertyValueRestrictionAxiom\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPropertyValueRestrictionAxiom_LiteralValue(), this.getLiteral(), null, \"literalValue\", null, 0, 1, PropertyValueRestrictionAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPropertyValueRestrictionAxiom_StructureInstanceValue(), this.getStructureInstance(), this.getStructureInstance_OwningAxiom(), \"structureInstanceValue\", null, 0, 1, PropertyValueRestrictionAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPropertyValueRestrictionAxiom_NamedInstanceValue(), this.getNamedInstance(), null, \"namedInstanceValue\", null, 0, 1, PropertyValueRestrictionAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getPropertyValueRestrictionAxiom__GetValue(), this.getElement(), \"getValue\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(propertySelfRestrictionAxiomEClass, PropertySelfRestrictionAxiom.class, \"PropertySelfRestrictionAxiom\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(typeAssertionEClass, TypeAssertion.class, \"TypeAssertion\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTypeAssertion_Type(), this.getEntity(), null, \"type\", null, 1, 1, TypeAssertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTypeAssertion_OwningInstance(), this.getNamedInstance(), this.getNamedInstance_OwnedTypes(), \"owningInstance\", null, 0, 1, TypeAssertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getTypeAssertion__GetSubject(), this.getNamedInstance(), \"getSubject\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getTypeAssertion__GetObject(), this.getElement(), \"getObject\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(propertyValueAssertionEClass, PropertyValueAssertion.class, \"PropertyValueAssertion\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPropertyValueAssertion_Property(), this.getSemanticProperty(), null, \"property\", null, 1, 1, PropertyValueAssertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPropertyValueAssertion_LiteralValue(), this.getLiteral(), null, \"literalValue\", null, 0, 1, PropertyValueAssertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPropertyValueAssertion_StructureInstanceValue(), this.getStructureInstance(), this.getStructureInstance_OwningAssertion(), \"structureInstanceValue\", null, 0, 1, PropertyValueAssertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPropertyValueAssertion_NamedInstanceValue(), this.getNamedInstance(), null, \"namedInstanceValue\", null, 0, 1, PropertyValueAssertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPropertyValueAssertion_OwningInstance(), this.getInstance(), this.getInstance_OwnedPropertyValues(), \"owningInstance\", null, 0, 1, PropertyValueAssertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getPropertyValueAssertion__GetValue(), this.getElement(), \"getValue\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getPropertyValueAssertion__GetSubject(), this.getInstance(), \"getSubject\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getPropertyValueAssertion__GetObject(), this.getElement(), \"getObject\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(unaryPredicateEClass, UnaryPredicate.class, \"UnaryPredicate\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getUnaryPredicate_Argument(), this.getArgument(), null, \"argument\", null, 1, 1, UnaryPredicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(binaryPredicateEClass, BinaryPredicate.class, \"BinaryPredicate\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getBinaryPredicate_Argument1(), this.getArgument(), null, \"argument1\", null, 1, 1, BinaryPredicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBinaryPredicate_Argument2(), this.getArgument(), null, \"argument2\", null, 1, 1, BinaryPredicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(builtInPredicateEClass, BuiltInPredicate.class, \"BuiltInPredicate\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getBuiltInPredicate_BuiltIn(), this.getBuiltIn(), null, \"builtIn\", null, 1, 1, BuiltInPredicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBuiltInPredicate_Arguments(), this.getArgument(), null, \"arguments\", null, 1, -1, BuiltInPredicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(typePredicateEClass, TypePredicate.class, \"TypePredicate\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTypePredicate_Type(), this.getType(), null, \"type\", null, 1, 1, TypePredicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(relationEntityPredicateEClass, RelationEntityPredicate.class, \"RelationEntityPredicate\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRelationEntityPredicate_Type(), this.getRelationEntity(), null, \"type\", null, 1, 1, RelationEntityPredicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(propertyPredicateEClass, PropertyPredicate.class, \"PropertyPredicate\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPropertyPredicate_Property(), this.getProperty(), null, \"property\", null, 1, 1, PropertyPredicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(sameAsPredicateEClass, SameAsPredicate.class, \"SameAsPredicate\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(differentFromPredicateEClass, DifferentFromPredicate.class, \"DifferentFromPredicate\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(quotedLiteralEClass, QuotedLiteral.class, \"QuotedLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getQuotedLiteral_Value(), theEcorePackage.getEString(), \"value\", null, 1, 1, QuotedLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getQuotedLiteral_LangTag(), theEcorePackage.getEString(), \"langTag\", null, 0, 1, QuotedLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getQuotedLiteral_Type(), this.getScalar(), null, \"type\", null, 0, 1, QuotedLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getQuotedLiteral__GetLexicalValue(), theEcorePackage.getEString(), \"getLexicalValue\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getQuotedLiteral__GetTypeIri(), theEcorePackage.getEString(), \"getTypeIri\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(integerLiteralEClass, IntegerLiteral.class, \"IntegerLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getIntegerLiteral_Value(), theEcorePackage.getEIntegerObject(), \"value\", \"0\", 0, 1, IntegerLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getIntegerLiteral__GetTypeIri(), theEcorePackage.getEString(), \"getTypeIri\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(decimalLiteralEClass, DecimalLiteral.class, \"DecimalLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDecimalLiteral_Value(), this.getDecimal(), \"value\", \"0.0\", 1, 1, DecimalLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getDecimalLiteral__GetTypeIri(), theEcorePackage.getEString(), \"getTypeIri\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(doubleLiteralEClass, DoubleLiteral.class, \"DoubleLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDoubleLiteral_Value(), theEcorePackage.getEDoubleObject(), \"value\", \"0.0\", 0, 1, DoubleLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getDoubleLiteral__GetTypeIri(), theEcorePackage.getEString(), \"getTypeIri\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(booleanLiteralEClass, BooleanLiteral.class, \"BooleanLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getBooleanLiteral_Value(), theEcorePackage.getEBooleanObject(), \"value\", \"false\", 0, 1, BooleanLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getBooleanLiteral__IsValue(), theEcorePackage.getEBoolean(), \"isValue\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getBooleanLiteral__GetTypeIri(), theEcorePackage.getEString(), \"getTypeIri\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(separatorKindEEnum, SeparatorKind.class, \"SeparatorKind\");\n\t\taddEEnumLiteral(separatorKindEEnum, SeparatorKind.HASH);\n\t\taddEEnumLiteral(separatorKindEEnum, SeparatorKind.SLASH);\n\n\t\tinitEEnum(rangeRestrictionKindEEnum, RangeRestrictionKind.class, \"RangeRestrictionKind\");\n\t\taddEEnumLiteral(rangeRestrictionKindEEnum, RangeRestrictionKind.ALL);\n\t\taddEEnumLiteral(rangeRestrictionKindEEnum, RangeRestrictionKind.SOME);\n\n\t\tinitEEnum(cardinalityRestrictionKindEEnum, CardinalityRestrictionKind.class, \"CardinalityRestrictionKind\");\n\t\taddEEnumLiteral(cardinalityRestrictionKindEEnum, CardinalityRestrictionKind.EXACTLY);\n\t\taddEEnumLiteral(cardinalityRestrictionKindEEnum, CardinalityRestrictionKind.MIN);\n\t\taddEEnumLiteral(cardinalityRestrictionKindEEnum, CardinalityRestrictionKind.MAX);\n\n\t\tinitEEnum(importKindEEnum, ImportKind.class, \"ImportKind\");\n\t\taddEEnumLiteral(importKindEEnum, ImportKind.EXTENSION);\n\t\taddEEnumLiteral(importKindEEnum, ImportKind.USAGE);\n\t\taddEEnumLiteral(importKindEEnum, ImportKind.INCLUSION);\n\n\t\t// Initialize data types\n\t\tinitEDataType(unsignedIntEDataType, long.class, \"UnsignedInt\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEDataType(unsignedIntegerEDataType, Long.class, \"UnsignedInteger\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEDataType(decimalEDataType, BigDecimal.class, \"Decimal\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEDataType(idEDataType, String.class, \"ID\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEDataType(namespaceEDataType, String.class, \"Namespace\", 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// https://tabatkins.github.io/bikeshed/headings\n\t\tcreateHeadingsAnnotations();\n\t\t// https://tabatkins.github.io/bikeshed\n\t\tcreateBikeshedAnnotations();\n\t\t// http://www.eclipse.org/emf/2011/Xcore\n\t\tcreateXcoreAnnotations();\n\t\t// http:///org/eclipse/emf/ecore/util/ExtendedMetaData\n\t\tcreateExtendedMetaDataAnnotations();\n\t}", "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 assignmentEClass.getESuperTypes().add(this.getSimpleStatement());\n expressionEClass.getESuperTypes().add(this.getSimpleStatement());\n unaryMinusExpressionEClass.getESuperTypes().add(this.getExpression());\n unaryPlusExpressionEClass.getESuperTypes().add(this.getExpression());\n logicalNegationExpressionEClass.getESuperTypes().add(this.getExpression());\n bracketExpressionEClass.getESuperTypes().add(this.getExpression());\n pointerCallEClass.getESuperTypes().add(this.getExpression());\n variableCallEClass.getESuperTypes().add(this.getExpression());\n unarySpecifierEClass.getESuperTypes().add(this.getArraySpecifier());\n rangeSpecifierEClass.getESuperTypes().add(this.getArraySpecifier());\n ioFunctionsEClass.getESuperTypes().add(this.getExpression());\n infoFunctionsEClass.getESuperTypes().add(this.getExpression());\n manipFunctionsEClass.getESuperTypes().add(this.getExpression());\n arithFunctionsEClass.getESuperTypes().add(this.getExpression());\n loadEClass.getESuperTypes().add(this.getIOFunctions());\n storeEClass.getESuperTypes().add(this.getIOFunctions());\n exportEClass.getESuperTypes().add(this.getIOFunctions());\n printEClass.getESuperTypes().add(this.getSimpleStatement());\n depthEClass.getESuperTypes().add(this.getInfoFunctions());\n fieldInfoEClass.getESuperTypes().add(this.getInfoFunctions());\n containsEClass.getESuperTypes().add(this.getInfoFunctions());\n selectEClass.getESuperTypes().add(this.getManipFunctions());\n lengthEClass.getESuperTypes().add(this.getInfoFunctions());\n sumEClass.getESuperTypes().add(this.getArithFunctions());\n productEClass.getESuperTypes().add(this.getArithFunctions());\n constantEClass.getESuperTypes().add(this.getExpression());\n primitiveEClass.getESuperTypes().add(this.getConstant());\n arrayEClass.getESuperTypes().add(this.getConstant());\n jSonObjectEClass.getESuperTypes().add(this.getConstant());\n disjunctionExpressionEClass.getESuperTypes().add(this.getExpression());\n conjunctionExpressionEClass.getESuperTypes().add(this.getExpression());\n equalityExpressionEClass.getESuperTypes().add(this.getExpression());\n inequalityExpressionEClass.getESuperTypes().add(this.getExpression());\n superiorExpressionEClass.getESuperTypes().add(this.getExpression());\n superiorOrEqualExpressionEClass.getESuperTypes().add(this.getExpression());\n inferiorExpressionEClass.getESuperTypes().add(this.getExpression());\n inferiorOrEqualExpressionEClass.getESuperTypes().add(this.getExpression());\n additionExpressionEClass.getESuperTypes().add(this.getExpression());\n substractionExpressionEClass.getESuperTypes().add(this.getExpression());\n multiplicationExpressionEClass.getESuperTypes().add(this.getExpression());\n divisionExpressionEClass.getESuperTypes().add(this.getExpression());\n moduloExpressionEClass.getESuperTypes().add(this.getExpression());\n arrayCallEClass.getESuperTypes().add(this.getExpression());\n fieldCallEClass.getESuperTypes().add(this.getExpression());\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_Stmts(), this.getSimpleStatement(), null, \"stmts\", 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(simpleStatementEClass, SimpleStatement.class, \"SimpleStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(assignmentEClass, Assignment.class, \"Assignment\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getAssignment_LeftHandSide(), this.getVariableCall(), null, \"leftHandSide\", null, 0, 1, Assignment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getAssignment_RightHandSide(), this.getExpression(), null, \"rightHandSide\", null, 0, 1, Assignment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(expressionEClass, Expression.class, \"Expression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(unaryMinusExpressionEClass, UnaryMinusExpression.class, \"UnaryMinusExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getUnaryMinusExpression_Sub(), this.getExpression(), null, \"sub\", null, 0, 1, UnaryMinusExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(unaryPlusExpressionEClass, UnaryPlusExpression.class, \"UnaryPlusExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getUnaryPlusExpression_Sub(), this.getExpression(), null, \"sub\", null, 0, 1, UnaryPlusExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(logicalNegationExpressionEClass, LogicalNegationExpression.class, \"LogicalNegationExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getLogicalNegationExpression_Sub(), this.getExpression(), null, \"sub\", null, 0, 1, LogicalNegationExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(bracketExpressionEClass, BracketExpression.class, \"BracketExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getBracketExpression_Sub(), this.getExpression(), null, \"sub\", null, 0, 1, BracketExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(pointerCallEClass, PointerCall.class, \"PointerCall\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(variableCallEClass, VariableCall.class, \"VariableCall\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getVariableCall_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, VariableCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(arraySpecifierEClass, ArraySpecifier.class, \"ArraySpecifier\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(unarySpecifierEClass, UnarySpecifier.class, \"UnarySpecifier\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getUnarySpecifier_Index(), ecorePackage.getEInt(), \"index\", null, 0, 1, UnarySpecifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(rangeSpecifierEClass, RangeSpecifier.class, \"RangeSpecifier\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getRangeSpecifier_From(), ecorePackage.getEInt(), \"from\", null, 0, 1, RangeSpecifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getRangeSpecifier_To(), ecorePackage.getEInt(), \"to\", null, 0, 1, RangeSpecifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(ioFunctionsEClass, IOFunctions.class, \"IOFunctions\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getIOFunctions_FileName(), ecorePackage.getEString(), \"fileName\", null, 0, 1, IOFunctions.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(infoFunctionsEClass, InfoFunctions.class, \"InfoFunctions\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(manipFunctionsEClass, ManipFunctions.class, \"ManipFunctions\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(arithFunctionsEClass, ArithFunctions.class, \"ArithFunctions\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getArithFunctions_Expression(), this.getExpression(), null, \"expression\", null, 0, 1, ArithFunctions.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getArithFunctions_Field(), this.getExpression(), null, \"field\", null, 0, 1, ArithFunctions.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getArithFunctions_WhereExpression(), this.getExpression(), null, \"whereExpression\", null, 0, 1, ArithFunctions.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(loadEClass, Load.class, \"Load\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(storeEClass, Store.class, \"Store\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getStore_Expression(), this.getExpression(), null, \"expression\", null, 0, 1, Store.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(exportEClass, Export.class, \"Export\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getExport_Expression(), this.getExpression(), null, \"expression\", null, 0, 1, Export.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(printEClass, Print.class, \"Print\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getPrint_Expression(), this.getExpression(), null, \"expression\", null, 0, 1, Print.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(depthEClass, Depth.class, \"Depth\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getDepth_Expression(), this.getExpression(), null, \"expression\", null, 0, 1, Depth.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(fieldInfoEClass, FieldInfo.class, \"FieldInfo\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getFieldInfo_Expression(), this.getExpression(), null, \"expression\", null, 0, 1, FieldInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(containsEClass, Contains.class, \"Contains\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getContains_Keys(), this.getExpression(), null, \"keys\", 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 initEReference(getContains_Right(), this.getExpression(), null, \"right\", 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\n initEClass(selectEClass, Select.class, \"Select\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getSelect_Fields(), this.getExpression(), null, \"fields\", null, 0, -1, Select.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getSelect_FromExpression(), this.getExpression(), null, \"fromExpression\", null, 0, 1, Select.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getSelect_WhereExpression(), this.getExpression(), null, \"whereExpression\", null, 0, 1, Select.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(lengthEClass, Length.class, \"Length\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getLength_Expression(), this.getExpression(), null, \"expression\", null, 0, 1, Length.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(sumEClass, Sum.class, \"Sum\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(productEClass, Product.class, \"Product\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(constantEClass, Constant.class, \"Constant\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(primitiveEClass, Primitive.class, \"Primitive\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getPrimitive_Str(), ecorePackage.getEString(), \"str\", null, 0, 1, Primitive.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getPrimitive_IntNum(), ecorePackage.getEInt(), \"intNum\", null, 0, 1, Primitive.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getPrimitive_FloatNum(), ecorePackage.getEString(), \"floatNum\", null, 0, 1, Primitive.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getPrimitive_Bool(), ecorePackage.getEString(), \"bool\", null, 0, 1, Primitive.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getPrimitive_Nil(), ecorePackage.getEString(), \"nil\", null, 0, 1, Primitive.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(arrayEClass, Array.class, \"Array\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getArray_Values(), this.getExpression(), null, \"values\", null, 0, -1, Array.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(jSonObjectEClass, JSonObject.class, \"JSonObject\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getJSonObject_Fields(), this.getField(), null, \"fields\", null, 0, -1, JSonObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(fieldEClass, Field.class, \"Field\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getField_Key(), this.getExpression(), null, \"key\", null, 0, 1, Field.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getField_Value(), this.getExpression(), null, \"value\", null, 0, 1, Field.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(disjunctionExpressionEClass, DisjunctionExpression.class, \"DisjunctionExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getDisjunctionExpression_Left(), this.getExpression(), null, \"left\", null, 0, 1, DisjunctionExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getDisjunctionExpression_Right(), this.getExpression(), null, \"right\", null, 0, 1, DisjunctionExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(conjunctionExpressionEClass, ConjunctionExpression.class, \"ConjunctionExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getConjunctionExpression_Left(), this.getExpression(), null, \"left\", null, 0, 1, ConjunctionExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getConjunctionExpression_Right(), this.getExpression(), null, \"right\", null, 0, 1, ConjunctionExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(equalityExpressionEClass, EqualityExpression.class, \"EqualityExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getEqualityExpression_Left(), this.getExpression(), null, \"left\", null, 0, 1, EqualityExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getEqualityExpression_Right(), this.getExpression(), null, \"right\", null, 0, 1, EqualityExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(inequalityExpressionEClass, InequalityExpression.class, \"InequalityExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getInequalityExpression_Left(), this.getExpression(), null, \"left\", null, 0, 1, InequalityExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getInequalityExpression_Right(), this.getExpression(), null, \"right\", null, 0, 1, InequalityExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(superiorExpressionEClass, SuperiorExpression.class, \"SuperiorExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getSuperiorExpression_Left(), this.getExpression(), null, \"left\", null, 0, 1, SuperiorExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getSuperiorExpression_Right(), this.getExpression(), null, \"right\", null, 0, 1, SuperiorExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(superiorOrEqualExpressionEClass, SuperiorOrEqualExpression.class, \"SuperiorOrEqualExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getSuperiorOrEqualExpression_Left(), this.getExpression(), null, \"left\", null, 0, 1, SuperiorOrEqualExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getSuperiorOrEqualExpression_Right(), this.getExpression(), null, \"right\", null, 0, 1, SuperiorOrEqualExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(inferiorExpressionEClass, InferiorExpression.class, \"InferiorExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getInferiorExpression_Left(), this.getExpression(), null, \"left\", null, 0, 1, InferiorExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getInferiorExpression_Right(), this.getExpression(), null, \"right\", null, 0, 1, InferiorExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(inferiorOrEqualExpressionEClass, InferiorOrEqualExpression.class, \"InferiorOrEqualExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getInferiorOrEqualExpression_Left(), this.getExpression(), null, \"left\", null, 0, 1, InferiorOrEqualExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getInferiorOrEqualExpression_Right(), this.getExpression(), null, \"right\", null, 0, 1, InferiorOrEqualExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(additionExpressionEClass, AdditionExpression.class, \"AdditionExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getAdditionExpression_Left(), this.getExpression(), null, \"left\", null, 0, 1, AdditionExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getAdditionExpression_Right(), this.getExpression(), null, \"right\", null, 0, 1, AdditionExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(substractionExpressionEClass, SubstractionExpression.class, \"SubstractionExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getSubstractionExpression_Left(), this.getExpression(), null, \"left\", null, 0, 1, SubstractionExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getSubstractionExpression_Right(), this.getExpression(), null, \"right\", null, 0, 1, SubstractionExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(multiplicationExpressionEClass, MultiplicationExpression.class, \"MultiplicationExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getMultiplicationExpression_Left(), this.getExpression(), null, \"left\", null, 0, 1, MultiplicationExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getMultiplicationExpression_Right(), this.getExpression(), null, \"right\", null, 0, 1, MultiplicationExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(divisionExpressionEClass, DivisionExpression.class, \"DivisionExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getDivisionExpression_Left(), this.getExpression(), null, \"left\", null, 0, 1, DivisionExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getDivisionExpression_Right(), this.getExpression(), null, \"right\", null, 0, 1, DivisionExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(moduloExpressionEClass, ModuloExpression.class, \"ModuloExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getModuloExpression_Left(), this.getExpression(), null, \"left\", null, 0, 1, ModuloExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getModuloExpression_Right(), this.getExpression(), null, \"right\", null, 0, 1, ModuloExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(arrayCallEClass, ArrayCall.class, \"ArrayCall\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getArrayCall_Callee(), this.getExpression(), null, \"callee\", null, 0, 1, ArrayCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getArrayCall_Specifier(), this.getArraySpecifier(), null, \"specifier\", null, 0, 1, ArrayCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(fieldCallEClass, FieldCall.class, \"FieldCall\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getFieldCall_Callee(), this.getExpression(), null, \"callee\", null, 0, 1, FieldCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getFieldCall_Field(), ecorePackage.getEString(), \"field\", null, 0, 1, FieldCall.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 }", "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\tgetMappingEClass.getESuperTypes().add(this.getRestMapping());\r\n\t\tpostMappingEClass.getESuperTypes().add(this.getRestMapping());\r\n\t\toneToManyEClass.getESuperTypes().add(this.getMappingType());\r\n\t\tmanyToOneEClass.getESuperTypes().add(this.getMappingType());\r\n\t\tmanyToManyEClass.getESuperTypes().add(this.getMappingType());\r\n\t\toneToOneEClass.getESuperTypes().add(this.getMappingType());\r\n\r\n\t\t// Initialize classes, features, and operations; add parameters\r\n\t\tinitEClass(springProjectEClass, SpringProject.class, \"SpringProject\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getSpringProject_BasePackage(), theEcorePackage.getEString(), \"basePackage\", null, 0, 1,\r\n\t\t\t\tSpringProject.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(getSpringProject_Name(), theEcorePackage.getEString(), \"name\", null, 0, 1, SpringProject.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(getSpringProject_DbSource(), this.getDBSource(), null, \"dbSource\", null, 0, 1,\r\n\t\t\t\tSpringProject.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(getSpringProject_Entities(), this.getEntity(), null, \"entities\", null, 0, -1,\r\n\t\t\t\tSpringProject.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(getSpringProject_Controllers(), this.getRestController(), null, \"controllers\", null, 0, -1,\r\n\t\t\t\tSpringProject.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(restControllerEClass, RestController.class, \"RestController\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getRestController_Name(), theEcorePackage.getEString(), \"name\", null, 0, 1, RestController.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(getRestController_Path(), theEcorePackage.getEString(), \"path\", null, 0, 1, RestController.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(getRestController_UsedEntities(), this.getEntity(), null, \"usedEntities\", null, 0, -1,\r\n\t\t\t\tRestController.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(getRestController_Mappings(), this.getRestMapping(), null, \"mappings\", null, 0, -1,\r\n\t\t\t\tRestController.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(restMappingEClass, RestMapping.class, \"RestMapping\", IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getRestMapping_Path(), theEcorePackage.getEString(), \"path\", null, 0, 1, RestMapping.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(getRestMapping_Name(), theEcorePackage.getEString(), \"name\", null, 0, 1, RestMapping.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(getRestMapping_UsedEntity(), this.getEntity(), null, \"usedEntity\", null, 0, 1, RestMapping.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(getRestMapping_Body(), theEcorePackage.getEString(), \"body\", null, 0, 1, RestMapping.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(getMappingEClass, GetMapping.class, \"GetMapping\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(postMappingEClass, PostMapping.class, \"PostMapping\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getPostMapping_Parameters(), this.getField(), null, \"parameters\", null, 0, -1, PostMapping.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(entityEClass, Entity.class, \"Entity\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEntity_SuperClass(), this.getEntity(), null, \"superClass\", null, 0, 1, Entity.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(getEntity_Name(), theEcorePackage.getEString(), \"name\", null, 0, 1, Entity.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(getEntity_GenerateRepository(), theEcorePackage.getEBoolean(), \"generateRepository\", \"true\", 0,\r\n\t\t\t\t1, Entity.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\tinitEReference(getEntity_Fields(), this.getField(), null, \"fields\", null, 0, -1, Entity.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(getEntity_Mapping(), this.getMapping(), null, \"mapping\", null, 0, -1, Entity.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(mappingEClass, Mapping.class, \"Mapping\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getMapping_Name(), theEcorePackage.getEString(), \"name\", null, 0, 1, Mapping.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(getMapping_Entity(), this.getEntity(), null, \"entity\", null, 0, 1, Mapping.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(getMapping_IsList(), theEcorePackage.getEBoolean(), \"isList\", \"true\", 0, 1, Mapping.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(getMapping_MappingType(), this.getMappingType(), null, \"mappingType\", null, 0, 1, Mapping.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(mappingTypeEClass, MappingType.class, \"MappingType\", IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getMappingType_Cascade(), this.getCascade(), \"cascade\", \"ALL\", 0, 1, MappingType.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(getMappingType_MappedBy(), this.getEntity(), null, \"mappedBy\", null, 0, 1, MappingType.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(oneToManyEClass, OneToMany.class, \"OneToMany\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(manyToOneEClass, ManyToOne.class, \"ManyToOne\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(manyToManyEClass, ManyToMany.class, \"ManyToMany\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getManyToMany_JoinTableName(), theEcorePackage.getEString(), \"joinTableName\", null, 0, 1,\r\n\t\t\t\tManyToMany.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(getManyToMany_JoinColumns(), theEcorePackage.getEString(), \"joinColumns\", null, 0, 1,\r\n\t\t\t\tManyToMany.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(getManyToMany_InverseJoinColumns(), theEcorePackage.getEString(), \"inverseJoinColumns\", null, 0,\r\n\t\t\t\t1, ManyToMany.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(oneToOneEClass, OneToOne.class, \"OneToOne\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(fieldEClass, Field.class, \"Field\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getField_IsId(), theEcorePackage.getEBoolean(), \"isId\", \"false\", 0, 1, Field.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(getField_Name(), theEcorePackage.getEString(), \"name\", null, 0, 1, Field.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(getField_Datatype(), theEcorePackage.getEString(), \"datatype\", \"String\", 0, 1, Field.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(dbSourceEClass, DBSource.class, \"DBSource\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getDBSource_EnableConsole(), theEcorePackage.getEBoolean(), \"enableConsole\", \"true\", 0, 1,\r\n\t\t\t\tDBSource.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(getDBSource_WebAllowOothers(), theEcorePackage.getEBoolean(), \"webAllowOothers\", \"true\", 0, 1,\r\n\t\t\t\tDBSource.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(getDBSource_ConsolePath(), theEcorePackage.getEString(), \"consolePath\", \"/h2-console\", 0, 1,\r\n\t\t\t\tDBSource.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(getDBSource_Url(), theEcorePackage.getEString(), \"url\",\r\n\t\t\t\t\"jdbc:h2:file:./data/Repository;DB_CLOSE_ON_EXIT=true;\", 0, 1, DBSource.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(getDBSource_User(), theEcorePackage.getEString(), \"user\", \"SA\", 0, 1, DBSource.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(getDBSource_Password(), theEcorePackage.getEString(), \"password\", \"SA\", 0, 1, DBSource.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(getDBSource_DriveClassName(), theEcorePackage.getEString(), \"driveClassName\", \"org.h2.Driver\", 0,\r\n\t\t\t\t1, DBSource.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(getDBSource_ServerPort(), theEcorePackage.getEString(), \"serverPort\", \"2001\", 0, 1,\r\n\t\t\t\tDBSource.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\t// Initialize enums and add enum literals\r\n\t\tinitEEnum(cascadeEEnum, Cascade.class, \"Cascade\");\r\n\t\taddEEnumLiteral(cascadeEEnum, Cascade.ALL);\r\n\r\n\t\t// Create resource\r\n\t\tcreateResource(eNS_URI);\r\n\t}", "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(liveScoreEClass, LiveScore.class, \"LiveScore\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getLiveScore_Preferedplayer(), this.getPreferedPlayer(), null, \"preferedplayer\", null, 0, -1, LiveScore.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLiveScore_Salonname(), ecorePackage.getEString(), \"salonname\", null, 0, 1, LiveScore.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(preferedPlayerEClass, PreferedPlayer.class, \"PreferedPlayer\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPreferedPlayer_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, PreferedPlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPreferedPlayer_Won(), ecorePackage.getEInt(), \"won\", null, 0, 1, PreferedPlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPreferedPlayer_Playings(), ecorePackage.getEInt(), \"playings\", null, 0, 1, PreferedPlayer.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}", "@Override\n public void initialize() {\n emissary.core.MetadataDictionary.initialize();\n }", "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\tdeferedFlatReferenceTableEditorSampleEClass.getESuperTypes().add(theEefnrPackage.getAbstractSample());\n\t\tdeferedReferenceTableEditorSampleEClass.getESuperTypes().add(theEefnrPackage.getAbstractSample());\n\t\townerEClass.getESuperTypes().add(theEefnrPackage.getAbstractSample());\n\t\tsubtypeEClass.getESuperTypes().add(this.getOwner());\n\t\tanotherSubTypeEClass.getESuperTypes().add(this.getSubtype());\n\t\telementEClass.getESuperTypes().add(theEefnrPackage.getNamedElement());\n\t\tattributeNavigationSampleEClass.getESuperTypes().add(theEefnrPackage.getAbstractSample());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(deferedFlatReferenceTableEditorSampleEClass, DeferedFlatReferenceTableEditorSample.class, \"DeferedFlatReferenceTableEditorSample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getDeferedFlatReferenceTableEditorSample_References(), this.getDeferedReference(), null, \"references\", null, 0, -1, DeferedFlatReferenceTableEditorSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(deferedReferenceEClass, DeferedReference.class, \"DeferedReference\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getDeferedReference_FlatreferenceEditor(), theEefnrPackage.getTotalSample(), null, \"flatreferenceEditor\", null, 1, 1, DeferedReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(deferedReferenceTableEditorSampleEClass, DeferedReferenceTableEditorSample.class, \"DeferedReferenceTableEditorSample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getDeferedReferenceTableEditorSample_References(), this.getDeferedReference(), null, \"references\", null, 0, -1, DeferedReferenceTableEditorSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(ownerEClass, Owner.class, \"Owner\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getOwner_MultipleReferencers(), this.getMultipleReferencer(), null, \"multipleReferencers\", null, 0, -1, Owner.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getOwner_SingleReferencers(), this.getSingleReferencer(), null, \"singleReferencers\", null, 0, 1, Owner.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(multipleReferencerEClass, MultipleReferencer.class, \"MultipleReferencer\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getMultipleReferencer_MultipleSampleForTableComposition(), this.getOwner(), null, \"multipleSampleForTableComposition\", null, 0, 1, MultipleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMultipleReferencer_MultipleSampleForAdvancedTableComposition(), this.getOwner(), null, \"multipleSampleForAdvancedTableComposition\", null, 0, 1, MultipleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMultipleReferencer_MultipleSampleForReferencesTable(), this.getOwner(), null, \"multipleSampleForReferencesTable\", null, 0, 1, MultipleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMultipleReferencer_MultipleSampleAdvancedReferencesTable(), this.getOwner(), null, \"multipleSampleAdvancedReferencesTable\", null, 0, 1, MultipleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMultipleReferencer_MultipleSampleForFlatReferencesTable(), this.getOwner(), null, \"multipleSampleForFlatReferencesTable\", null, 0, 1, MultipleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(subtypeEClass, Subtype.class, \"Subtype\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getSubtype_SpecialisedElement(), ecorePackage.getEBoolean(), \"specialisedElement\", null, 0, 1, Subtype.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(singleReferencerEClass, SingleReferencer.class, \"SingleReferencer\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSingleReferencer_SingleSampleForTableComposition(), this.getOwner(), null, \"singleSampleForTableComposition\", null, 0, -1, SingleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSingleReferencer_SingleSampleForAdvancedTableComposition(), this.getOwner(), null, \"singleSampleForAdvancedTableComposition\", null, 0, -1, SingleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSingleReferencer_SingleSampleForReferencesTable(), this.getOwner(), null, \"singleSampleForReferencesTable\", null, 0, -1, SingleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSingleReferencer_SingleSampleAdvancedReferencesTable(), this.getOwner(), null, \"singleSampleAdvancedReferencesTable\", null, 0, -1, SingleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSingleReferencer_SingleSampleForFlatReferencesTable(), this.getOwner(), null, \"singleSampleForFlatReferencesTable\", null, 0, -1, SingleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSingleReferencer_SingleContainmentForEObjectFlatComboViewer(), this.getOwner(), null, \"singleContainmentForEObjectFlatComboViewer\", null, 0, 1, SingleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSingleReferencer_SingleReferenceForEObjectFlatComboViewer(), this.getOwner(), null, \"singleReferenceForEObjectFlatComboViewer\", null, 0, 1, SingleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSingleReferencer_SingleContainmentForAdvancedEObjectFlatComboViewer(), this.getOwner(), null, \"singleContainmentForAdvancedEObjectFlatComboViewer\", null, 0, 1, SingleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSingleReferencer_SingleReferenceForAdvancedEObjectFlatComboViewer(), this.getOwner(), null, \"singleReferenceForAdvancedEObjectFlatComboViewer\", null, 0, 1, SingleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSingleReferencer_BooleanAttribute(), ecorePackage.getEBoolean(), \"booleanAttribute\", null, 0, 1, SingleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSingleReferencer_EenumAttribute(), ecorePackage.getEEnumerator(), \"eenumAttribute\", null, 0, 1, SingleReferencer.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSingleReferencer_StringAttribute(), ecorePackage.getEString(), \"stringAttribute\", null, 0, 1, SingleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tEGenericType g1 = createEGenericType(ecorePackage.getEEList());\n\t\tEGenericType g2 = createEGenericType();\n\t\tg1.getETypeArguments().add(g2);\n\t\tinitEAttribute(getSingleReferencer_ListAttribute(), g1, \"listAttribute\", null, 0, 1, SingleReferencer.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(anotherSubTypeEClass, AnotherSubType.class, \"AnotherSubType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getAnotherSubType_AnotherSpecialisation(), ecorePackage.getEBoolean(), \"anotherSpecialisation\", null, 0, 1, AnotherSubType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(elementEClass, Element.class, \"Element\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getElement_Visible(), ecorePackage.getEBoolean(), \"visible\", null, 0, 1, Element.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(attributeNavigationSampleEClass, AttributeNavigationSample.class, \"AttributeNavigationSample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAttributeNavigationSample_SingleValuedAttributeDelegate(), this.getAttributeDelegate(), null, \"singleValuedAttributeDelegate\", null, 0, 1, AttributeNavigationSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAttributeNavigationSample_MultiValuedAttributeDelegate(), this.getAttributeDelegate(), null, \"multiValuedAttributeDelegate\", null, 0, -1, AttributeNavigationSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(attributeDelegateEClass, AttributeDelegate.class, \"AttributeDelegate\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getAttributeDelegate_Delegate1(), ecorePackage.getEString(), \"delegate1\", null, 1, 1, AttributeDelegate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAttributeDelegate_Delegate2(), ecorePackage.getEInt(), \"delegate2\", null, 0, 1, AttributeDelegate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t}", "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\tGraphic_representationPackage theGraphic_representationPackage = (Graphic_representationPackage)EPackage.Registry.INSTANCE.getEPackage(Graphic_representationPackage.eNS_URI);\n\t\tSplitterLibraryPackage theSplitterLibraryPackage = (SplitterLibraryPackage)EPackage.Registry.INSTANCE.getEPackage(SplitterLibraryPackage.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\tconcreteStrategyLabelFirstStringEClass.getESuperTypes().add(this.getStrategyLabel());\n\t\tconcreteStrategyLabelIdentifierEClass.getESuperTypes().add(this.getStrategyLabel());\n\t\tconcreteStrategyLabelParameterEClass.getESuperTypes().add(this.getStrategyLabel());\n\t\tconcreteStrategyMaxContainmentEClass.getESuperTypes().add(this.getStrategyRootSelection());\n\t\tconcreteStrategyNoParentEClass.getESuperTypes().add(this.getStrategyRootSelection());\n\t\tconcreteStrategyPaletteEClass.getESuperTypes().add(this.getStrategyPalette());\n\t\tconcreteStrategyArcSelectionEClass.getESuperTypes().add(this.getStrategyArcSelection());\n\t\tdefaultArcParameterEClass.getESuperTypes().add(this.getArcParameter());\n\t\tconcreteStrategyArcDirectionEClass.getESuperTypes().add(this.getStrategyArcDirection());\n\t\tconcreteStrategyDefaultDirectionEClass.getESuperTypes().add(this.getStrategyArcDirection());\n\t\tconcreteStrategyDefaultNodeSelectionEClass.getESuperTypes().add(this.getStrategyNodeSelection());\n\t\tconcreteStrategyContainmentDiagramElementEClass.getESuperTypes().add(this.getStrategyPossibleElements());\n\t\tconcreteContainmentasAffixedEClass.getESuperTypes().add(this.getStrategyLinkCompartment());\n\t\tconcreteContainmentasLinksEClass.getESuperTypes().add(this.getStrategyLinkCompartment());\n\t\tconcreteContainmentasCompartmentsEClass.getESuperTypes().add(this.getStrategyLinkCompartment());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(heuristicStrategyEClass, HeuristicStrategy.class, \"HeuristicStrategy\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getHeuristicStrategy_Graphic_representation(), theGraphic_representationPackage.getGraphicRepresentation(), null, \"graphic_representation\", null, 0, 1, HeuristicStrategy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getHeuristicStrategy_Nemf(), theSplitterLibraryPackage.getEcoreEMF(), null, \"nemf\", null, 0, 1, HeuristicStrategy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getHeuristicStrategy_EcoreContainment(), this.getEcoreMatrixContainment(), null, \"ecoreContainment\", null, 0, 1, HeuristicStrategy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getHeuristicStrategy_CurrentRepresentation(), ecorePackage.getEIntegerObject(), \"currentRepresentation\", null, 0, 1, HeuristicStrategy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getHeuristicStrategy_CurrentMMGR(), theEcorePackage.getEIntegerObject(), \"currentMMGR\", null, 0, 1, HeuristicStrategy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getHeuristicStrategy_ListRepresentation(), this.getRepreHeurSS(), null, \"listRepresentation\", null, 0, -1, HeuristicStrategy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getHeuristicStrategy__ExecuteHeuristics(), null, \"ExecuteHeuristics\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getHeuristicStrategy__Execute_Root_Element(), null, \"Execute_Root_Element\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getHeuristicStrategy__Execute_Graphical_Elements(), null, \"Execute_Graphical_Elements\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tEOperation op = initEOperation(getHeuristicStrategy__GetFeatureName__EClass_EClass(), ecorePackage.getEReference(), \"GetFeatureName\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEClass(), \"parentEClass\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEClass(), \"childEClass\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = initEOperation(getHeuristicStrategy__GetEListEClassfromEReference__EReference(), theGraphic_representationPackage.getNode(), \"GetEListEClassfromEReference\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEReference(), \"anEReference\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getHeuristicStrategy__ExecuteDirectPathMatrix(), null, \"ExecuteDirectPathMatrix\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(concreteStrategyLinkEClass, ConcreteStrategyLink.class, \"ConcreteStrategyLink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(strategyLabelEClass, StrategyLabel.class, \"StrategyLabel\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\top = initEOperation(getStrategyLabel__GetLabel__EClass(), ecorePackage.getEAttribute(), \"GetLabel\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEClass(), \"anEClass\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(concreteStrategyLabelFirstStringEClass, ConcreteStrategyLabelFirstString.class, \"ConcreteStrategyLabelFirstString\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(concreteStrategyLabelIdentifierEClass, ConcreteStrategyLabelIdentifier.class, \"ConcreteStrategyLabelIdentifier\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(concreteStrategyLabelParameterEClass, ConcreteStrategyLabelParameter.class, \"ConcreteStrategyLabelParameter\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getConcreteStrategyLabelParameter_Label_parameter(), this.getLabelParameter(), null, \"label_parameter\", null, 0, 1, ConcreteStrategyLabelParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(labelParameterEClass, LabelParameter.class, \"LabelParameter\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getLabelParameter_List_label(), ecorePackage.getEString(), \"list_label\", null, 0, -1, LabelParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getLabelParameter__ToCommaSeparatedStringLabel(), ecorePackage.getEString(), \"toCommaSeparatedStringLabel\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getLabelParameter__DefaultParameters(), null, \"DefaultParameters\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(strategyRootSelectionEClass, StrategyRootSelection.class, \"StrategyRootSelection\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\top = initEOperation(getStrategyRootSelection__Get_Root__EList_EList(), ecorePackage.getEClass(), \"Get_Root\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\tEGenericType g1 = createEGenericType(ecorePackage.getEEList());\n\t\tEGenericType g2 = createEGenericType(ecorePackage.getEBooleanObject());\n\t\tg1.getETypeArguments().add(g2);\n\t\taddEParameter(op, g1, \"ContainmentMatrix\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEClass(), \"listEClass\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = initEOperation(getStrategyRootSelection__List_Root__EList_EList(), ecorePackage.getEClass(), \"List_Root\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\t\tg1 = createEGenericType(ecorePackage.getEEList());\n\t\tg2 = createEGenericType(ecorePackage.getEBooleanObject());\n\t\tg1.getETypeArguments().add(g2);\n\t\taddEParameter(op, g1, \"ContainmentMatrix\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEClass(), \"listEClass\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(concreteStrategyMaxContainmentEClass, ConcreteStrategyMaxContainment.class, \"ConcreteStrategyMaxContainment\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(concreteStrategyNoParentEClass, ConcreteStrategyNoParent.class, \"ConcreteStrategyNoParent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(strategyPaletteEClass, StrategyPalette.class, \"StrategyPalette\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\top = initEOperation(getStrategyPalette__Get_Palette__EObject(), ecorePackage.getEString(), \"Get_Palette\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEObject(), \"anEObject\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(concreteStrategyPaletteEClass, ConcreteStrategyPalette.class, \"ConcreteStrategyPalette\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(strategyArcSelectionEClass, StrategyArcSelection.class, \"StrategyArcSelection\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getStrategyArcSelection_Arc_direction(), this.getStrategyArcDirection(), null, \"arc_direction\", null, 0, 1, StrategyArcSelection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\top = initEOperation(getStrategyArcSelection__IsArc__EClass(), ecorePackage.getEBooleanObject(), \"IsArc\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEClass(), \"anEClass\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(concreteStrategyArcSelectionEClass, ConcreteStrategyArcSelection.class, \"ConcreteStrategyArcSelection\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(strategyArcDirectionEClass, StrategyArcDirection.class, \"StrategyArcDirection\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\top = initEOperation(getStrategyArcDirection__Get_Direction__EClass(), theGraphic_representationPackage.getEdge_Direction(), \"Get_Direction\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEClass(), \"anEClass\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(arcParameterEClass, ArcParameter.class, \"ArcParameter\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getArcParameter_Source(), ecorePackage.getEString(), \"source\", null, 0, -1, ArcParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getArcParameter_Target(), ecorePackage.getEString(), \"target\", null, 0, -1, ArcParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getArcParameter__DefaultParam(), null, \"DefaultParam\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(defaultArcParameterEClass, DefaultArcParameter.class, \"DefaultArcParameter\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEOperation(getDefaultArcParameter__ToCommaSeparatedStringSource(), ecorePackage.getEString(), \"toCommaSeparatedStringSource\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getDefaultArcParameter__ToCommaSeparatedStringTarget(), ecorePackage.getEString(), \"toCommaSeparatedStringTarget\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(concreteStrategyArcDirectionEClass, ConcreteStrategyArcDirection.class, \"ConcreteStrategyArcDirection\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getConcreteStrategyArcDirection_Param(), this.getArcParameter(), null, \"param\", null, 0, 1, ConcreteStrategyArcDirection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\top = initEOperation(getConcreteStrategyArcDirection__ContainsStringEReferenceName__EList_String(), ecorePackage.getEBoolean(), \"ContainsStringEReferenceName\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEString(), \"ListStrings\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEString(), \"anString\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(concreteStrategyDefaultDirectionEClass, ConcreteStrategyDefaultDirection.class, \"ConcreteStrategyDefaultDirection\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(strategyNodeSelectionEClass, StrategyNodeSelection.class, \"StrategyNodeSelection\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\top = initEOperation(getStrategyNodeSelection__IsNode__EClass(), ecorePackage.getEBooleanObject(), \"IsNode\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEClass(), \"anEClass\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(concreteStrategyDefaultNodeSelectionEClass, ConcreteStrategyDefaultNodeSelection.class, \"ConcreteStrategyDefaultNodeSelection\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(strategyPossibleElementsEClass, StrategyPossibleElements.class, \"StrategyPossibleElements\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getStrategyPossibleElements_EClassNoElements(), ecorePackage.getEClass(), null, \"EClassNoElements\", null, 0, -1, StrategyPossibleElements.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\top = initEOperation(getStrategyPossibleElements__PossibleElements__EClass_EList_EList(), ecorePackage.getEClass(), \"PossibleElements\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEClass(), \"rootEClass\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\tg1 = createEGenericType(ecorePackage.getEEList());\n\t\tg2 = createEGenericType(ecorePackage.getEEList());\n\t\tg1.getETypeArguments().add(g2);\n\t\tEGenericType g3 = createEGenericType(ecorePackage.getEBooleanObject());\n\t\tg2.getETypeArguments().add(g3);\n\t\taddEParameter(op, g1, \"pathMatrix\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEClass(), \"listEClass\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(concreteStrategyContainmentDiagramElementEClass, ConcreteStrategyContainmentDiagramElement.class, \"ConcreteStrategyContainmentDiagramElement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(ecoreMatrixContainmentEClass, EcoreMatrixContainment.class, \"EcoreMatrixContainment\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tg1 = createEGenericType(ecorePackage.getEEList());\n\t\tg2 = createEGenericType(ecorePackage.getEEList());\n\t\tg1.getETypeArguments().add(g2);\n\t\tg3 = createEGenericType(ecorePackage.getEBooleanObject());\n\t\tg2.getETypeArguments().add(g3);\n\t\tinitEAttribute(getEcoreMatrixContainment_Direct_MatrixContainment(), g1, \"direct_MatrixContainment\", null, 0, 1, EcoreMatrixContainment.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tg1 = createEGenericType(ecorePackage.getEEList());\n\t\tg2 = createEGenericType(ecorePackage.getEEList());\n\t\tg1.getETypeArguments().add(g2);\n\t\tg3 = createEGenericType(ecorePackage.getEBooleanObject());\n\t\tg2.getETypeArguments().add(g3);\n\t\tinitEAttribute(getEcoreMatrixContainment_PathMatrix(), g1, \"pathMatrix\", null, 0, 1, EcoreMatrixContainment.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\top = initEOperation(getEcoreMatrixContainment__GetParent__Integer(), ecorePackage.getEIntegerObject(), \"GetParent\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEIntegerObject(), \"index\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = initEOperation(getEcoreMatrixContainment__GetDirectMatrixContainment__EList(), ecorePackage.getEBooleanObject(), \"GetDirectMatrixContainment\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEClass(), \"listEClass\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getEcoreMatrixContainment__GetPathMatrix(), ecorePackage.getEBooleanObject(), \"GetPathMatrix\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getEcoreMatrixContainment__CopyMatrix(), null, \"CopyMatrix\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = initEOperation(getEcoreMatrixContainment__PrintDirectMatrixContainment__EList(), null, \"PrintDirectMatrixContainment\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, theEcorePackage.getEClass(), \"listEClass\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = initEOperation(getEcoreMatrixContainment__GetEAllChilds__EClass_EList(), theEcorePackage.getEClass(), \"getEAllChilds\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, theEcorePackage.getEClass(), \"eClass\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, theEcorePackage.getEClass(), \"listEClass\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = initEOperation(getEcoreMatrixContainment__GetAllParents__Integer(), ecorePackage.getEIntegerObject(), \"getAllParents\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEIntegerObject(), \"index\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(heuristicStrategySettingsEClass, HeuristicStrategySettings.class, \"HeuristicStrategySettings\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getHeuristicStrategySettings_Strategy_label(), this.getStrategyLabel(), null, \"strategy_label\", null, 0, 1, HeuristicStrategySettings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getHeuristicStrategySettings_Strategy_root(), this.getStrategyRootSelection(), null, \"strategy_root\", null, 0, 1, HeuristicStrategySettings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getHeuristicStrategySettings_Strategy_palette(), this.getStrategyPalette(), null, \"strategy_palette\", null, 0, 1, HeuristicStrategySettings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getHeuristicStrategySettings_Strategy_arcSelection(), this.getStrategyArcSelection(), null, \"strategy_arcSelection\", null, 0, 1, HeuristicStrategySettings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getHeuristicStrategySettings_Strategy_node_selection(), this.getStrategyNodeSelection(), null, \"strategy_node_selection\", null, 0, 1, HeuristicStrategySettings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getHeuristicStrategySettings_Strategy_possibleElements(), this.getStrategyPossibleElements(), null, \"strategy_possibleElements\", null, 0, 1, HeuristicStrategySettings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getHeuristicStrategySettings_Strategy_linkcompartment(), this.getStrategyLinkCompartment(), null, \"strategy_linkcompartment\", null, 0, 1, HeuristicStrategySettings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(strategyLinkCompartmentEClass, StrategyLinkCompartment.class, \"StrategyLinkCompartment\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getStrategyLinkCompartment_ListLinks(), ecorePackage.getEReference(), null, \"listLinks\", null, 0, -1, StrategyLinkCompartment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getStrategyLinkCompartment_ListCompartment(), ecorePackage.getEReference(), null, \"listCompartment\", null, 0, -1, StrategyLinkCompartment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getStrategyLinkCompartment_ListAffixed(), ecorePackage.getEReference(), null, \"listAffixed\", null, 0, -1, StrategyLinkCompartment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\top = initEOperation(getStrategyLinkCompartment__ExecuteLinkCompartmentsHeuristics__EClass(), null, \"ExecuteLinkCompartmentsHeuristics\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEClass(), \"anEClass\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(concreteContainmentasAffixedEClass, ConcreteContainmentasAffixed.class, \"ConcreteContainmentasAffixed\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(concreteContainmentasLinksEClass, ConcreteContainmentasLinks.class, \"ConcreteContainmentasLinks\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(concreteContainmentasCompartmentsEClass, ConcreteContainmentasCompartments.class, \"ConcreteContainmentasCompartments\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(repreHeurSSEClass, RepreHeurSS.class, \"RepreHeurSS\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRepreHeurSS_HeuristicStrategySettings(), this.getHeuristicStrategySettings(), null, \"heuristicStrategySettings\", null, 0, -1, RepreHeurSS.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}", "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\tInfrastructurePackage theInfrastructurePackage = (InfrastructurePackage)EPackage.Registry.INSTANCE.getEPackage(InfrastructurePackage.eNS_URI);\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\tcontainerEClass.getESuperTypes().add(theInfrastructurePackage.getCompute());\n\t\tlinkEClass.getESuperTypes().add(theOCCIPackage.getLink());\n\t\tnetworklinkEClass.getESuperTypes().add(this.getLink());\n\t\tvolumesfromEClass.getESuperTypes().add(theOCCIPackage.getLink());\n\t\tcontainsEClass.getESuperTypes().add(theOCCIPackage.getLink());\n\t\tmachineEClass.getESuperTypes().add(theInfrastructurePackage.getCompute());\n\t\tvolumeEClass.getESuperTypes().add(theInfrastructurePackage.getStorage());\n\t\tnetworkEClass.getESuperTypes().add(theInfrastructurePackage.getNetwork());\n\t\tmachinegenericEClass.getESuperTypes().add(this.getMachine());\n\t\tmachineamazonec2EClass.getESuperTypes().add(this.getMachine());\n\t\tmachinedigitaloceanEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinegooglecomputeengineEClass.getESuperTypes().add(this.getMachine());\n\t\tmachineibmsoftlayerEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinemicrosoftazureEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinemicrosofthypervEClass.getESuperTypes().add(this.getMachine());\n\t\tmachineopenstackEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinerackspaceEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinevirtualboxEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinevmwarefusionEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinevmwarevcloudairEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinevmwarevsphereEClass.getESuperTypes().add(this.getMachine());\n\t\tmachineexoscaleEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinegrid5000EClass.getESuperTypes().add(this.getMachine());\n\t\tclusterEClass.getESuperTypes().add(theInfrastructurePackage.getCompute());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(arrayOfStringEClass, ArrayOfString.class, \"ArrayOfString\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getArrayOfString_Values(), ecorePackage.getEString(), \"values\", null, 0, -1, ArrayOfString.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(containerEClass, org.eclipse.cmf.occi.docker.Container.class, \"Container\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getContainer_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Containerid(), ecorePackage.getEString(), \"containerid\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Image(), ecorePackage.getEString(), \"image\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Build(), ecorePackage.getEString(), \"build\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Command(), ecorePackage.getEString(), \"command\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Ports(), ecorePackage.getEString(), \"ports\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Expose(), ecorePackage.getEString(), \"expose\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Volumes(), ecorePackage.getEString(), \"volumes\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Environment(), ecorePackage.getEString(), \"environment\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_EnvFile(), ecorePackage.getEString(), \"envFile\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Net(), ecorePackage.getEString(), \"net\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Dns(), ecorePackage.getEString(), \"dns\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_DnsSearch(), ecorePackage.getEString(), \"dnsSearch\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CapAdd(), ecorePackage.getEString(), \"capAdd\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CapDrop(), ecorePackage.getEString(), \"capDrop\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_WorkingDir(), ecorePackage.getEString(), \"workingDir\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Entrypoint(), ecorePackage.getEString(), \"entrypoint\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_User(), ecorePackage.getEString(), \"user\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_DomainName(), ecorePackage.getEString(), \"domainName\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_MemLimit(), ecorePackage.getEBigInteger(), \"memLimit\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_MemorySwap(), ecorePackage.getEBigInteger(), \"memorySwap\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Privileged(), ecorePackage.getEBoolean(), \"privileged\", \"false\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Restart(), ecorePackage.getEString(), \"restart\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_StdinOpen(), ecorePackage.getEBoolean(), \"stdinOpen\", \"false\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Interactive(), ecorePackage.getEBoolean(), \"interactive\", \"false\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CpuShares(), ecorePackage.getEBigInteger(), \"cpuShares\", \"0\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Pid(), ecorePackage.getEString(), \"pid\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Ipc(), ecorePackage.getEString(), \"ipc\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_AddHost(), ecorePackage.getEString(), \"addHost\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_MacAddress(), theInfrastructurePackage.getMac(), \"macAddress\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Rm(), ecorePackage.getEBoolean(), \"rm\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_SecurityOpt(), ecorePackage.getEString(), \"securityOpt\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Device(), ecorePackage.getEString(), \"device\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_LxcConf(), ecorePackage.getEString(), \"lxcConf\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_PublishAll(), ecorePackage.getEBoolean(), \"publishAll\", \"false\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_ReadOnly(), ecorePackage.getEBoolean(), \"readOnly\", \"false\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Monitored(), ecorePackage.getEBoolean(), \"monitored\", \"false\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CpuUsed(), ecorePackage.getEBigInteger(), \"cpuUsed\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_MemoryUsed(), ecorePackage.getEBigInteger(), \"memoryUsed\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CpuPercent(), ecorePackage.getEString(), \"cpuPercent\", \"0\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_MemoryPercent(), ecorePackage.getEString(), \"memoryPercent\", \"0\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_DiskUsed(), ecorePackage.getEBigInteger(), \"diskUsed\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_DiskPercent(), ecorePackage.getEString(), \"diskPercent\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_BandwidthUsed(), ecorePackage.getEBigInteger(), \"bandwidthUsed\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_BandwidthPercent(), ecorePackage.getEString(), \"bandwidthPercent\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_MonitoringInterval(), ecorePackage.getEBigInteger(), \"monitoringInterval\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CpuMaxValue(), ecorePackage.getEBigInteger(), \"cpuMaxValue\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_MemoryMaxValue(), ecorePackage.getEBigInteger(), \"memoryMaxValue\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CoreMax(), ecorePackage.getEBigInteger(), \"coreMax\", \"1\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CpuSetCpus(), ecorePackage.getEString(), \"cpuSetCpus\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CpuSetMems(), ecorePackage.getEString(), \"cpuSetMems\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Tty(), ecorePackage.getEBoolean(), \"tty\", \"false\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getContainer__Create(), null, \"create\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getContainer__Stop(), null, \"stop\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getContainer__Run(), null, \"run\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getContainer__Pause(), null, \"pause\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getContainer__Unpause(), null, \"unpause\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tEOperation op = initEOperation(getContainer__Kill__String(), null, \"kill\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEString(), \"signal\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(linkEClass, Link.class, \"Link\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getLink_Alias(), ecorePackage.getEString(), \"alias\", null, 0, 1, Link.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(networklinkEClass, Networklink.class, \"Networklink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(volumesfromEClass, Volumesfrom.class, \"Volumesfrom\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getVolumesfrom_Mode(), this.getMode(), \"mode\", \"readWrite\", 0, 1, Volumesfrom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(containsEClass, Contains.class, \"Contains\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(machineEClass, Machine.class, \"Machine\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachine_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_EngineInstallURL(), ecorePackage.getEString(), \"engineInstallURL\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_EngineOpt(), ecorePackage.getEString(), \"engineOpt\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_EngineInsecureRegistry(), ecorePackage.getEString(), \"engineInsecureRegistry\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_EngineRegistryMirror(), ecorePackage.getEString(), \"engineRegistryMirror\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_EngineLabel(), ecorePackage.getEString(), \"engineLabel\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_EngineStorageDriver(), ecorePackage.getEString(), \"engineStorageDriver\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_EngineEnv(), ecorePackage.getEString(), \"engineEnv\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_Swarm(), ecorePackage.getEBoolean(), \"swarm\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmImage(), ecorePackage.getEString(), \"swarmImage\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmMaster(), ecorePackage.getEBoolean(), \"swarmMaster\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmDiscovery(), ecorePackage.getEString(), \"swarmDiscovery\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmStrategy(), ecorePackage.getEString(), \"swarmStrategy\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmOpt(), ecorePackage.getEString(), \"swarmOpt\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmHost(), ecorePackage.getEString(), \"swarmHost\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmAddr(), ecorePackage.getEString(), \"swarmAddr\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmExperimental(), ecorePackage.getEString(), \"swarmExperimental\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_TlsSan(), ecorePackage.getEString(), \"tlsSan\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getMachine__Startall(), null, \"startall\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(volumeEClass, Volume.class, \"Volume\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getVolume_Driver(), ecorePackage.getEString(), \"driver\", \"local\", 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Labels(), ecorePackage.getEString(), \"labels\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Options(), ecorePackage.getEString(), \"options\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Source(), ecorePackage.getEString(), \"source\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Destination(), ecorePackage.getEString(), \"destination\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Mode(), ecorePackage.getEString(), \"mode\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Rw(), ecorePackage.getEString(), \"rw\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Propagation(), ecorePackage.getEString(), \"propagation\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(networkEClass, Network.class, \"Network\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getNetwork_NetworkId(), ecorePackage.getEString(), \"networkId\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_AuxAddress(), ecorePackage.getEString(), \"auxAddress\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_Driver(), ecorePackage.getEString(), \"driver\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_Gateway(), ecorePackage.getEString(), \"gateway\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_Internal(), ecorePackage.getEBoolean(), \"internal\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_IpRange(), ecorePackage.getEString(), \"ipRange\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_IpamDriver(), ecorePackage.getEString(), \"ipamDriver\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_IpamOpt(), ecorePackage.getEString(), \"ipamOpt\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_Ipv6(), ecorePackage.getEBoolean(), \"ipv6\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_Opt(), ecorePackage.getEString(), \"opt\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_Subnet(), ecorePackage.getEString(), \"subnet\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinegenericEClass, Machinegeneric.class, \"Machinegeneric\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinegeneric_EnginePort(), ecorePackage.getEBigInteger(), \"enginePort\", null, 0, 1, Machinegeneric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegeneric_IpAddress(), ecorePackage.getEString(), \"ipAddress\", null, 0, 1, Machinegeneric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegeneric_SshKey(), ecorePackage.getEString(), \"sshKey\", null, 0, 1, Machinegeneric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegeneric_SshUser(), ecorePackage.getEString(), \"sshUser\", null, 0, 1, Machinegeneric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegeneric_SshPort(), ecorePackage.getEBigInteger(), \"sshPort\", \"22\", 0, 1, Machinegeneric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machineamazonec2EClass, Machineamazonec2.class, \"Machineamazonec2\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachineamazonec2_AccessKey(), ecorePackage.getEString(), \"accessKey\", null, 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_Ami(), ecorePackage.getEString(), \"ami\", \"ami-4ae27e22\", 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_InstanceType(), ecorePackage.getEString(), \"instanceType\", \"t2.micro\", 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_Region(), ecorePackage.getEString(), \"region\", \"us-east-1\", 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_RootSize(), ecorePackage.getEBigInteger(), \"rootSize\", \"16\", 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_SecretKey(), ecorePackage.getEString(), \"secretKey\", null, 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_SecurityGroup(), ecorePackage.getEString(), \"securityGroup\", \"docker-machine\", 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_SessionToken(), ecorePackage.getEString(), \"sessionToken\", null, 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_SubnetId(), ecorePackage.getEString(), \"subnetId\", null, 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_VpcId(), ecorePackage.getEString(), \"vpcId\", null, 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_Zone(), ecorePackage.getEString(), \"zone\", \"a\", 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinedigitaloceanEClass, Machinedigitalocean.class, \"Machinedigitalocean\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinedigitalocean_AccessToken(), ecorePackage.getEString(), \"accessToken\", null, 0, 1, Machinedigitalocean.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinedigitalocean_Image(), ecorePackage.getEString(), \"image\", \"docker\", 0, 1, Machinedigitalocean.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinedigitalocean_Region(), ecorePackage.getEString(), \"region\", \"nyc3\", 0, 1, Machinedigitalocean.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinedigitalocean_Size(), ecorePackage.getEString(), \"size\", \"512mb\", 0, 1, Machinedigitalocean.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinegooglecomputeengineEClass, Machinegooglecomputeengine.class, \"Machinegooglecomputeengine\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinegooglecomputeengine_Zone(), ecorePackage.getEString(), \"zone\", \"us-central1-a\", 0, 1, Machinegooglecomputeengine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegooglecomputeengine_MachineType(), ecorePackage.getEString(), \"machineType\", \"f1-micro\", 0, 1, Machinegooglecomputeengine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegooglecomputeengine_Username(), ecorePackage.getEString(), \"username\", \"docker-user\", 0, 1, Machinegooglecomputeengine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegooglecomputeengine_InstanceName(), ecorePackage.getEString(), \"instanceName\", \"docker-machine\", 0, 1, Machinegooglecomputeengine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegooglecomputeengine_Project(), ecorePackage.getEString(), \"project\", null, 0, 1, Machinegooglecomputeengine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machineibmsoftlayerEClass, Machineibmsoftlayer.class, \"Machineibmsoftlayer\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachineibmsoftlayer_ApiEndpoint(), ecorePackage.getEString(), \"apiEndpoint\", \"api.softlayer.com/rest/v3\", 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_User(), ecorePackage.getEString(), \"user\", null, 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_ApiKey(), ecorePackage.getEString(), \"apiKey\", null, 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_Cpu(), ecorePackage.getEBigInteger(), \"cpu\", null, 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_DiskSize(), ecorePackage.getEBigInteger(), \"diskSize\", null, 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_Domain(), ecorePackage.getEString(), \"domain\", null, 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_HourlyBilling(), ecorePackage.getEBoolean(), \"hourlyBilling\", \"false\", 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_Image(), ecorePackage.getEString(), \"image\", \"UBUNTU_LATEST\", 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_LocalDisk(), ecorePackage.getEBoolean(), \"localDisk\", \"false\", 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_PrivateNetOnly(), ecorePackage.getEBoolean(), \"privateNetOnly\", null, 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_Region(), ecorePackage.getEString(), \"region\", null, 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_PublicVlanId(), ecorePackage.getEString(), \"publicVlanId\", \"0\", 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_PrivateVlanId(), ecorePackage.getEString(), \"privateVlanId\", \"0\", 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinemicrosoftazureEClass, Machinemicrosoftazure.class, \"Machinemicrosoftazure\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinemicrosoftazure_SubscriptionId(), ecorePackage.getEString(), \"subscriptionId\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_SubscriptionCert(), ecorePackage.getEString(), \"subscriptionCert\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_Environment(), ecorePackage.getEString(), \"environment\", \"AzurePublicCloud\", 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_MachineLocation(), ecorePackage.getEString(), \"machineLocation\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_ResourceGroup(), ecorePackage.getEString(), \"resourceGroup\", \"docker-machine\", 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_Size(), ecorePackage.getEString(), \"size\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_SshUser(), ecorePackage.getEString(), \"sshUser\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_Vnet(), ecorePackage.getEString(), \"vnet\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_Subnet(), ecorePackage.getEString(), \"subnet\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_SubnetPrefix(), ecorePackage.getEString(), \"subnetPrefix\", \"192.168.0.0/16\", 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_AvailabilitySet(), ecorePackage.getEString(), \"availabilitySet\", \"docker-machine\", 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_OpenPort(), ecorePackage.getEBigInteger(), \"openPort\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_PrivateIpAddress(), ecorePackage.getEString(), \"privateIpAddress\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_NoPublicIp(), ecorePackage.getEString(), \"noPublicIp\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_StaticPublicIp(), ecorePackage.getEString(), \"staticPublicIp\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_DockerPort(), ecorePackage.getEString(), \"dockerPort\", \"2376\", 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_UsePrivateIp(), ecorePackage.getEString(), \"usePrivateIp\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_Image(), ecorePackage.getEString(), \"image\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinemicrosofthypervEClass, Machinemicrosofthyperv.class, \"Machinemicrosofthyperv\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinemicrosofthyperv_VirtualSwitch(), ecorePackage.getEString(), \"virtualSwitch\", null, 0, 1, Machinemicrosofthyperv.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosofthyperv_Boot2dockerURL(), ecorePackage.getEString(), \"boot2dockerURL\", null, 0, 1, Machinemicrosofthyperv.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosofthyperv_DiskSize(), ecorePackage.getEBigInteger(), \"diskSize\", \"20000\", 0, 1, Machinemicrosofthyperv.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosofthyperv_StaticMacAddress(), theInfrastructurePackage.getMac(), \"staticMacAddress\", null, 0, 1, Machinemicrosofthyperv.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosofthyperv_VlanId(), ecorePackage.getEString(), \"vlanId\", null, 0, 1, Machinemicrosofthyperv.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machineopenstackEClass, Machineopenstack.class, \"Machineopenstack\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachineopenstack_FlavorId(), ecorePackage.getEString(), \"flavorId\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_FlavorName(), ecorePackage.getEString(), \"flavorName\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_ImageId(), ecorePackage.getEString(), \"imageId\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_ImageName(), ecorePackage.getEString(), \"imageName\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_AuthUrl(), ecorePackage.getEString(), \"authUrl\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_Username(), ecorePackage.getEString(), \"username\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_Password(), ecorePackage.getEString(), \"password\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_TenantName(), ecorePackage.getEString(), \"tenantName\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_TenantId(), ecorePackage.getEString(), \"tenantId\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_Region(), ecorePackage.getEString(), \"region\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_EndpointType(), ecorePackage.getEString(), \"endpointType\", \"publicURL\", 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_NetId(), ecorePackage.getEString(), \"netId\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_NetName(), ecorePackage.getEString(), \"netName\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_SecGroups(), ecorePackage.getEString(), \"secGroups\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_FloatingIpPool(), ecorePackage.getEString(), \"floatingIpPool\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_ActiveTimeOut(), ecorePackage.getEBigInteger(), \"activeTimeOut\", \"200\", 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_AvailabilityZone(), ecorePackage.getEString(), \"availabilityZone\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_DomainId(), ecorePackage.getEString(), \"domainId\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_DomainName(), ecorePackage.getEString(), \"domainName\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_Insecure(), ecorePackage.getEBoolean(), \"insecure\", \"false\", 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_IpVersion(), ecorePackage.getEBigInteger(), \"ipVersion\", \"4\", 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_KeypairName(), ecorePackage.getEString(), \"keypairName\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_PrivateKeyFile(), ecorePackage.getEString(), \"privateKeyFile\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_SshPort(), ecorePackage.getEBigInteger(), \"sshPort\", \"22\", 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_SshUser(), ecorePackage.getEString(), \"sshUser\", \"root\", 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinerackspaceEClass, Machinerackspace.class, \"Machinerackspace\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinerackspace_Username(), ecorePackage.getEString(), \"username\", null, 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_ApiKey(), ecorePackage.getEString(), \"apiKey\", null, 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_Region(), ecorePackage.getEString(), \"region\", null, 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_EndPointType(), ecorePackage.getEString(), \"endPointType\", \"publicURL\", 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_ImageId(), ecorePackage.getEString(), \"imageId\", \"59a3fadd-93e7-4674-886a-64883e17115f\", 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_FlavorId(), ecorePackage.getEString(), \"flavorId\", \"general1-1\", 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_SshUser(), ecorePackage.getEString(), \"sshUser\", \"root\", 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_SshPort(), ecorePackage.getEBigInteger(), \"sshPort\", \"22\", 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_DockerInstall(), ecorePackage.getEBoolean(), \"dockerInstall\", \"true\", 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinevirtualboxEClass, Machinevirtualbox.class, \"Machinevirtualbox\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinevirtualbox_Boot2dockerURL(), ecorePackage.getEString(), \"boot2dockerURL\", null, 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_DiskSize(), ecorePackage.getEBigInteger(), \"diskSize\", \"20000\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_HostDNSResolver(), ecorePackage.getEBoolean(), \"hostDNSResolver\", \"false\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_ImportBoot2DockerVM(), ecorePackage.getEString(), \"importBoot2DockerVM\", null, 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_HostOnlyCIDR(), ecorePackage.getEString(), \"hostOnlyCIDR\", \"192.168.99.1/24\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_HostOnlyNICType(), ecorePackage.getEString(), \"hostOnlyNICType\", \"82540EM\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_HostOnlyNICPromisc(), ecorePackage.getEString(), \"hostOnlyNICPromisc\", \"deny\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_NoShare(), ecorePackage.getEBoolean(), \"noShare\", \"false\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_NoDNSProxy(), ecorePackage.getEBoolean(), \"noDNSProxy\", \"false\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_NoVTXCheck(), ecorePackage.getEBoolean(), \"noVTXCheck\", \"false\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_ShareFolder(), ecorePackage.getEString(), \"shareFolder\", null, 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinevmwarefusionEClass, Machinevmwarefusion.class, \"Machinevmwarefusion\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinevmwarefusion_Boot2dockerURL(), ecorePackage.getEString(), \"boot2dockerURL\", null, 0, 1, Machinevmwarefusion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarefusion_DiskSize(), ecorePackage.getEBigInteger(), \"diskSize\", \"20000\", 0, 1, Machinevmwarefusion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarefusion_MemorySize(), ecorePackage.getEBigInteger(), \"memorySize\", \"1024\", 0, 1, Machinevmwarefusion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarefusion_NoShare(), ecorePackage.getEBoolean(), \"noShare\", \"false\", 0, 1, Machinevmwarefusion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinevmwarevcloudairEClass, Machinevmwarevcloudair.class, \"Machinevmwarevcloudair\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinevmwarevcloudair_Username(), ecorePackage.getEString(), \"username\", null, 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_Password(), ecorePackage.getEString(), \"password\", null, 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_Catalog(), ecorePackage.getEString(), \"catalog\", \"Public Catalog\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_CatalogItem(), ecorePackage.getEString(), \"catalogItem\", \"Ubuntu Server 12.04 LTS (amd64 20140927)\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_ComputeId(), ecorePackage.getEString(), \"computeId\", null, 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_CpuCount(), ecorePackage.getEBigInteger(), \"cpuCount\", \"1\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_DockerPort(), ecorePackage.getEBigInteger(), \"dockerPort\", \"2376\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_Edgegateway(), ecorePackage.getEString(), \"edgegateway\", \"&lt;vdcid>\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_MemorySize(), ecorePackage.getEBigInteger(), \"memorySize\", \"2048\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_VappName(), ecorePackage.getEString(), \"vappName\", \"&lt;autogenerated>\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_Orgvdcnetwork(), ecorePackage.getEString(), \"orgvdcnetwork\", \"&lt;vdcid>-default-routed\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_Provision(), ecorePackage.getEBoolean(), \"provision\", \"true\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_PublicIp(), ecorePackage.getEString(), \"publicIp\", null, 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_SshPort(), ecorePackage.getEBigInteger(), \"sshPort\", \"22\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_VdcId(), ecorePackage.getEString(), \"vdcId\", null, 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinevmwarevsphereEClass, Machinevmwarevsphere.class, \"Machinevmwarevsphere\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinevmwarevsphere_Username(), ecorePackage.getEString(), \"username\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_Password(), ecorePackage.getEString(), \"password\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_Boot2dockerURL(), ecorePackage.getEString(), \"boot2dockerURL\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_ComputeIp(), ecorePackage.getEString(), \"computeIp\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_CpuCount(), ecorePackage.getEBigInteger(), \"cpuCount\", \"2\", 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_Datacenter(), ecorePackage.getEString(), \"datacenter\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_Datastore(), ecorePackage.getEString(), \"datastore\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_DiskSize(), ecorePackage.getEBigInteger(), \"diskSize\", \"20000\", 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_MemorySize(), ecorePackage.getEBigInteger(), \"memorySize\", \"2048\", 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_Network(), ecorePackage.getEString(), \"network\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_Pool(), ecorePackage.getEString(), \"pool\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_Vcenter(), ecorePackage.getEString(), \"vcenter\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machineexoscaleEClass, Machineexoscale.class, \"Machineexoscale\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachineexoscale_Url(), ecorePackage.getEString(), \"url\", \"https://api.exoscale.ch/compute\", 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_ApiKey(), ecorePackage.getEString(), \"apiKey\", null, 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_ApiSecretKey(), ecorePackage.getEString(), \"apiSecretKey\", null, 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_InstanceProfile(), ecorePackage.getEString(), \"instanceProfile\", \"small\", 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_Image(), ecorePackage.getEString(), \"image\", \"ubuntu-16.04\", 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_SecurityGroup(), ecorePackage.getEString(), \"securityGroup\", null, 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_AvailabilityZone(), ecorePackage.getEString(), \"availabilityZone\", null, 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_SshUser(), ecorePackage.getEString(), \"sshUser\", \"ubuntu\", 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_UserData(), ecorePackage.getEString(), \"userData\", null, 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_AffinityGroup(), ecorePackage.getEString(), \"affinityGroup\", \"docker-machine\", 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinegrid5000EClass, Machinegrid5000.class, \"Machinegrid5000\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinegrid5000_Username(), ecorePackage.getEString(), \"username\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_Password(), ecorePackage.getEString(), \"password\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_Site(), ecorePackage.getEString(), \"site\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_Walltime(), ecorePackage.getEString(), \"walltime\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_SshPrivateKey(), ecorePackage.getEString(), \"sshPrivateKey\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_SshPublicKey(), ecorePackage.getEString(), \"sshPublicKey\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_Image(), ecorePackage.getEString(), \"image\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_ResourceProperties(), ecorePackage.getEString(), \"resourceProperties\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_UseJobReservation(), ecorePackage.getEString(), \"useJobReservation\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_HostToProvision(), ecorePackage.getEString(), \"hostToProvision\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(clusterEClass, Cluster.class, \"Cluster\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getCluster_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Cluster.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(modeEEnum, Mode.class, \"Mode\");\n\t\taddEEnumLiteral(modeEEnum, Mode.READ_WRITE);\n\t\taddEEnumLiteral(modeEEnum, Mode.READ);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\n\t\t// Create annotations\n\t\t// http://www.eclipse.org/emf/2002/Ecore\n\t\tcreateEcoreAnnotations();\n\t}", "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\tcompoundCmdEClass.getESuperTypes().add(this.getCmd());\n\t\txCmdEClass.getESuperTypes().add(this.getCmd());\n\t\tbyteCmdEClass.getESuperTypes().add(this.getCmd());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(cmdEClass, Cmd.class, \"Cmd\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getCmd_Priority(), this.getPRIORITY(), \"priority\", null, 0, 1, Cmd.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getCmd_Stamp(), ecorePackage.getELong(), \"stamp\", null, 0, 1, Cmd.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(compoundCmdEClass, CompoundCmd.class, \"CompoundCmd\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getCompoundCmd_Children(), this.getCmd(), null, \"children\", null, 0, -1, CompoundCmd.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(compoundCmdEClass, null, \"add\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, this.getCmd(), \"cmd\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = addEOperation(compoundCmdEClass, null, \"add\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEInt(), \"index\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, this.getCmd(), \"cmd\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = addEOperation(compoundCmdEClass, null, \"queue\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, this.getCmd(), \"cmd\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(compoundCmdEClass, null, \"pop\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = addEOperation(compoundCmdEClass, null, \"remove\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEInt(), \"index\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = addEOperation(compoundCmdEClass, null, \"remove\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, this.getCmd(), \"cmd\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(compoundCmdEClass, null, \"drop\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(xCmdEClass, XCmd.class, \"XCmd\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getXCmd_Obj(), ecorePackage.getEJavaObject(), \"obj\", null, 0, 1, XCmd.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(byteCmdEClass, ByteCmd.class, \"ByteCmd\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getByteCmd_Message(), ecorePackage.getEByteArray(), \"message\", null, 0, 1, ByteCmd.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(priorityEEnum, net.sf.xqz.model.cmd.PRIORITY.class, \"PRIORITY\");\n\t\taddEEnumLiteral(priorityEEnum, net.sf.xqz.model.cmd.PRIORITY.LOWEST);\n\t\taddEEnumLiteral(priorityEEnum, net.sf.xqz.model.cmd.PRIORITY.LOW);\n\t\taddEEnumLiteral(priorityEEnum, net.sf.xqz.model.cmd.PRIORITY.MEDIUM);\n\t\taddEEnumLiteral(priorityEEnum, net.sf.xqz.model.cmd.PRIORITY.HIGH);\n\t\taddEEnumLiteral(priorityEEnum, net.sf.xqz.model.cmd.PRIORITY.HIGHEST);\n\t\taddEEnumLiteral(priorityEEnum, net.sf.xqz.model.cmd.PRIORITY.NONE);\n\t\taddEEnumLiteral(priorityEEnum, net.sf.xqz.model.cmd.PRIORITY.VITAL);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "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 bookEClass.getESuperTypes().add(this.getProduct());\r\n dvdEClass.getESuperTypes().add(this.getProduct());\r\n\r\n // Initialize classes and features; add operations and parameters\r\n initEClass(productEClass, Product.class, \"Product\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getProduct_Price(), ecorePackage.getEDouble(), \"price\", null, 0, 1, Product.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getProduct_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Product.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getProduct_Id(), ecorePackage.getEString(), \"id\", null, 0, 1, Product.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getProduct_Producer(), this.getProducer(), this.getProducer_Products(), \"producer\", null, 1, 1, Product.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getProduct_Wishlists(), this.getWishlist(), this.getWishlist_Products(), \"wishlists\", null, 0, -1, Product.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getProduct_OfferedBy(), this.getSeller(), this.getSeller_AllProductsToSell(), \"offeredBy\", null, 0, -1, Product.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(customerEClass, Customer.class, \"Customer\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEReference(getCustomer_AllBoughtProducts(), this.getProduct(), null, \"allBoughtProducts\", null, 0, -1, Customer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getCustomer_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Customer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getCustomer_Age(), ecorePackage.getEInt(), \"age\", null, 0, 1, Customer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getCustomer_Id(), ecorePackage.getEString(), \"id\", null, 0, 1, Customer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getCustomer_Wishlists(), this.getWishlist(), null, \"wishlists\", null, 0, -1, Customer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getCustomer_Username(), ecorePackage.getEString(), \"username\", null, 0, 1, Customer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(producerEClass, Producer.class, \"Producer\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getProducer_Id(), ecorePackage.getEString(), \"id\", null, 0, 1, Producer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getProducer_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Producer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getProducer_Products(), this.getProduct(), this.getProduct_Producer(), \"products\", null, 0, -1, Producer.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(storeEClass, Store.class, \"Store\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEReference(getStore_Customers(), this.getCustomer(), null, \"customers\", null, 0, -1, Store.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getStore_Products(), this.getProduct(), null, \"products\", null, 0, -1, Store.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getStore_Producers(), this.getProducer(), null, \"producers\", null, 0, -1, Store.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getStore_Sellers(), this.getSeller(), null, \"sellers\", null, 0, 1, Store.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(bookEClass, Book.class, \"Book\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getBook_Author(), ecorePackage.getEString(), \"author\", null, 0, 1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(dvdEClass, de.upb.examples.reengineering.store.model.DVD.class, \"DVD\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getDVD_Interpret(), ecorePackage.getEString(), \"interpret\", null, 0, 1, de.upb.examples.reengineering.store.model.DVD.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(wishlistEClass, Wishlist.class, \"Wishlist\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEReference(getWishlist_Products(), this.getProduct(), this.getProduct_Wishlists(), \"products\", null, 0, -1, Wishlist.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(sellerEClass, Seller.class, \"Seller\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getSeller_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Seller.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getSeller_Id(), ecorePackage.getEString(), \"id\", null, 0, 1, Seller.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getSeller_Username(), ecorePackage.getEString(), \"username\", null, 0, 1, Seller.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getSeller_AllProductsToSell(), this.getProduct(), this.getProduct_OfferedBy(), \"allProductsToSell\", null, 0, -1, Seller.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getSeller_EReference0(), this.getSeller(), null, \"EReference0\", null, 0, 1, Seller.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getSeller_SoldProducts(), this.getProduct(), null, \"soldProducts\", null, 0, -1, Seller.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n // Create resource\r\n createResource(eNS_URI);\r\n }", "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\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\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(controlEClass, Control.class, \"Control\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getControl_Midi(), this.getMidi(), null, \"midi\", null, 1, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_Background(), theXMLTypePackage.getString(), \"background\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_Centered(), theXMLTypePackage.getString(), \"centered\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_Color(), theXMLTypePackage.getString(), \"color\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_H(), theXMLTypePackage.getString(), \"h\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_Inverted(), theXMLTypePackage.getString(), \"inverted\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_InvertedX(), theXMLTypePackage.getString(), \"invertedX\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_InvertedY(), theXMLTypePackage.getString(), \"invertedY\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_LocalOff(), theXMLTypePackage.getString(), \"localOff\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_Name(), theXMLTypePackage.getString(), \"name\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_Number(), theXMLTypePackage.getString(), \"number\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_NumberX(), theXMLTypePackage.getString(), \"numberX\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_NumberY(), theXMLTypePackage.getString(), \"numberY\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_OscCs(), theXMLTypePackage.getString(), \"oscCs\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_Outline(), theXMLTypePackage.getString(), \"outline\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_Response(), theXMLTypePackage.getString(), \"response\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_Scalef(), theXMLTypePackage.getString(), \"scalef\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_Scalet(), theXMLTypePackage.getString(), \"scalet\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_Seconds(), theXMLTypePackage.getString(), \"seconds\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_Size(), theXMLTypePackage.getString(), \"size\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_Text(), theXMLTypePackage.getString(), \"text\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_Type(), theXMLTypePackage.getString(), \"type\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_W(), theXMLTypePackage.getString(), \"w\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_X(), theXMLTypePackage.getString(), \"x\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_Y(), theXMLTypePackage.getString(), \"y\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(layoutEClass, Layout.class, \"Layout\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getLayout_Tabpage(), this.getTabpage(), null, \"tabpage\", null, 1, -1, Layout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLayout_Mode(), theXMLTypePackage.getString(), \"mode\", null, 0, 1, Layout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLayout_Orientation(), theXMLTypePackage.getString(), \"orientation\", null, 0, 1, Layout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLayout_Version(), theXMLTypePackage.getString(), \"version\", null, 0, 1, Layout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(midiEClass, Midi.class, \"Midi\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMidi_Channel(), theXMLTypePackage.getString(), \"channel\", null, 0, 1, Midi.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMidi_Data1(), theXMLTypePackage.getString(), \"data1\", null, 0, 1, Midi.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMidi_Data2f(), theXMLTypePackage.getString(), \"data2f\", null, 0, 1, Midi.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMidi_Data2t(), theXMLTypePackage.getString(), \"data2t\", null, 0, 1, Midi.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMidi_Type(), theXMLTypePackage.getString(), \"type\", null, 0, 1, Midi.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMidi_Var(), theXMLTypePackage.getString(), \"var\", null, 0, 1, Midi.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(tabpageEClass, Tabpage.class, \"Tabpage\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTabpage_Control(), this.getControl(), null, \"control\", null, 1, -1, Tabpage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTabpage_Name(), theXMLTypePackage.getString(), \"name\", null, 0, 1, Tabpage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(topEClass, net.sf.smbt.touchosc.touchosc.TOP.class, \"TOP\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTOP_Layout(), this.getLayout(), null, \"layout\", null, 1, 1, net.sf.smbt.touchosc.touchosc.TOP.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\n\t\t// Create annotations\n\t\t// http:///org/eclipse/emf/ecore/util/ExtendedMetaData\n\t\tcreateExtendedMetaDataAnnotations();\n\t}", "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\tBACIPropertiesPackage theBACIPropertiesPackage = (BACIPropertiesPackage)EPackage.Registry.INSTANCE.getEPackage(BACIPropertiesPackage.eNS_URI);\n\n\t\t// Add subpackages\n\t\tgetESubpackages().add(theBACIPropertiesPackage);\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(characteristicComponentEClass, CharacteristicComponent.class, \"CharacteristicComponent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getCharacteristicComponent_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, CharacteristicComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getCharacteristicComponent_Module(), ecorePackage.getEString(), \"module\", null, 1, 1, CharacteristicComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getCharacteristicComponent_Prefix(), ecorePackage.getEString(), \"prefix\", null, 0, 1, CharacteristicComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getCharacteristicComponent_Container(), ecorePackage.getEString(), \"container\", null, 1, 1, CharacteristicComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCharacteristicComponent_Actions(), this.getAction(), null, \"actions\", null, 0, -1, CharacteristicComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCharacteristicComponent_Attributes(), this.getAttribute(), null, \"attributes\", null, 0, -1, CharacteristicComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCharacteristicComponent_Properties(), this.getProperty(), null, \"properties\", null, 0, -1, CharacteristicComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCharacteristicComponent_UsedBaciTypes(), this.getUsedBaciTypes(), null, \"usedBaciTypes\", null, 1, 1, CharacteristicComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCharacteristicComponent_UsedDevIOs(), this.getUsedDevIOs(), null, \"usedDevIOs\", null, 1, 1, CharacteristicComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCharacteristicComponent_ComponentInstances(), this.getComponentInstances(), this.getComponentInstances_ContainingCaracteristicComponent(), \"componentInstances\", null, 1, 1, CharacteristicComponent.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\t\tinitEAttribute(getAction_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, Action.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAction_Type(), ecorePackage.getEString(), \"type\", \"void\", 0, 1, Action.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAction_Parameters(), this.getParameter(), null, \"parameters\", 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(parameterEClass, Parameter.class, \"Parameter\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getParameter_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, Parameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getParameter_Type(), ecorePackage.getEString(), \"type\", null, 1, 1, Parameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, 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_Name(), ecorePackage.getEString(), \"name\", 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_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAttribute_Required(), ecorePackage.getEBoolean(), \"required\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAttribute_DefaultValue(), ecorePackage.getEString(), \"defaultValue\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, 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_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProperty_BaciType(), this.getBaciType(), null, \"baciType\", null, 1, 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_DevIO(), this.getDevIO(), null, \"devIO\", null, 1, 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(usedDevIOsEClass, UsedDevIOs.class, \"UsedDevIOs\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getUsedDevIOs_DevIOs(), this.getDevIO(), null, \"devIOs\", null, 0, -1, UsedDevIOs.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(devIOEClass, DevIO.class, \"DevIO\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDevIO_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, DevIO.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getDevIO_RequiredLibraries(), ecorePackage.getEString(), \"requiredLibraries\", null, 0, 1, DevIO.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDevIO_DevIOVariables(), this.getDevIOVariable(), null, \"devIOVariables\", null, 0, -1, DevIO.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(devIOVariableEClass, DevIOVariable.class, \"DevIOVariable\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDevIOVariable_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, DevIOVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getDevIOVariable_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, DevIOVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getDevIOVariable_IsRead(), ecorePackage.getEBoolean(), \"isRead\", null, 0, 1, DevIOVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getDevIOVariable_IsWrite(), ecorePackage.getEBoolean(), \"isWrite\", null, 0, 1, DevIOVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getDevIOVariable_IsPropertySpecific(), ecorePackage.getEBoolean(), \"isPropertySpecific\", null, 0, 1, DevIOVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(usedBaciTypesEClass, UsedBaciTypes.class, \"UsedBaciTypes\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getUsedBaciTypes_BaciTypes(), this.getBaciType(), null, \"baciTypes\", null, 0, -1, UsedBaciTypes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(baciTypeEClass, BaciType.class, \"BaciType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getBaciType_Name(), ecorePackage.getEString(), \"name\", \"\", 1, 1, BaciType.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getBaciType_AccessType(), this.getAccessType(), \"accessType\", null, 0, 1, BaciType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getBaciType_BasicType(), this.getBasicType(), \"basicType\", null, 0, 1, BaciType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getBaciType_SeqType(), this.getSeqType(), \"seqType\", null, 0, 1, BaciType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(componentInstancesEClass, ComponentInstances.class, \"ComponentInstances\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getComponentInstances_Instances(), this.getInstance(), this.getInstance_ContainingComponentInstances(), \"instances\", null, 1, -1, ComponentInstances.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponentInstances_ContainingCaracteristicComponent(), this.getCharacteristicComponent(), this.getCharacteristicComponent_ComponentInstances(), \"containingCaracteristicComponent\", null, 1, 1, ComponentInstances.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(instanceEClass, Instance.class, \"Instance\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getInstance_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, Instance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInstance_ContainingComponentInstances(), this.getComponentInstances(), this.getComponentInstances_Instances(), \"containingComponentInstances\", null, 1, 1, Instance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInstance_AttributeValuesContainer(), this.getAttributeValues(), this.getAttributeValues_ContainingInstance(), \"attributeValuesContainer\", null, 1, 1, Instance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInstance_CharacteristicValuesContainer(), this.getCharacteristicValues(), this.getCharacteristicValues_ContainingInstance(), \"characteristicValuesContainer\", null, 0, -1, Instance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInstance_AutoStart(), ecorePackage.getEBoolean(), \"autoStart\", null, 0, 1, Instance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInstance_Default(), ecorePackage.getEBoolean(), \"default\", null, 0, 1, Instance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(attributeValuesEClass, AttributeValues.class, \"AttributeValues\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAttributeValues_InstanceAttributes(), this.getAttributeValue(), null, \"instanceAttributes\", null, 0, -1, AttributeValues.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAttributeValues_ContainingInstance(), this.getInstance(), this.getInstance_AttributeValuesContainer(), \"containingInstance\", null, 0, 1, AttributeValues.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(attributeValueEClass, AttributeValue.class, \"AttributeValue\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getAttributeValue_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, AttributeValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAttributeValue_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, AttributeValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(characteristicValuesEClass, CharacteristicValues.class, \"CharacteristicValues\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getCharacteristicValues_PropertyName(), ecorePackage.getEString(), \"propertyName\", null, 0, 1, CharacteristicValues.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCharacteristicValues_InstanceCharacteristics(), this.getCharacteristicValue(), null, \"instanceCharacteristics\", null, 0, -1, CharacteristicValues.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCharacteristicValues_ContainingInstance(), this.getInstance(), this.getInstance_CharacteristicValuesContainer(), \"containingInstance\", null, 0, 1, CharacteristicValues.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(characteristicValueEClass, CharacteristicValue.class, \"CharacteristicValue\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getCharacteristicValue_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, CharacteristicValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getCharacteristicValue_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, CharacteristicValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(propertyDefinitionEClass, PropertyDefinition.class, \"PropertyDefinition\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(accessTypeEEnum, AccessType.class, \"AccessType\");\n\t\taddEEnumLiteral(accessTypeEEnum, AccessType.RO);\n\t\taddEEnumLiteral(accessTypeEEnum, AccessType.RW);\n\n\t\tinitEEnum(basicTypeEEnum, BasicType.class, \"BasicType\");\n\t\taddEEnumLiteral(basicTypeEEnum, BasicType.BOOLEAN);\n\t\taddEEnumLiteral(basicTypeEEnum, BasicType.DOUBLE);\n\t\taddEEnumLiteral(basicTypeEEnum, BasicType.FLOAT);\n\t\taddEEnumLiteral(basicTypeEEnum, BasicType.LONG);\n\t\taddEEnumLiteral(basicTypeEEnum, BasicType.LONG_LONG);\n\t\taddEEnumLiteral(basicTypeEEnum, BasicType.ULONG);\n\t\taddEEnumLiteral(basicTypeEEnum, BasicType.ULONG_LONG);\n\t\taddEEnumLiteral(basicTypeEEnum, BasicType.PATTERN);\n\t\taddEEnumLiteral(basicTypeEEnum, BasicType.STRING);\n\n\t\tinitEEnum(seqTypeEEnum, SeqType.class, \"SeqType\");\n\t\taddEEnumLiteral(seqTypeEEnum, SeqType.NOT_SEQ);\n\t\taddEEnumLiteral(seqTypeEEnum, SeqType.SEQ);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "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 valueEClass.getESuperTypes().add(this.getexpression());\n ifStatementEClass.getESuperTypes().add(this.getexpression());\n operationEClass.getESuperTypes().add(this.getexpression());\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_Spec(), this.getStatement(), null, \"spec\", 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(statementEClass, Statement.class, \"Statement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getStatement_Def(), this.getdefinition(), null, \"def\", 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_Out(), this.getout(), null, \"out\", 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_In(), this.getin(), null, \"in\", 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 initEAttribute(getStatement_Comment(), ecorePackage.getEString(), \"comment\", null, 0, 1, Statement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(definitionEClass, definition.class, \"definition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getdefinition_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, definition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getdefinition_ParamList(), this.getparamList(), null, \"paramList\", 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_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, definition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getdefinition_Expression(), this.gettypedExpression(), null, \"expression\", 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\n initEClass(paramListEClass, paramList.class, \"paramList\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getparamList_Params(), ecorePackage.getEString(), \"params\", null, 0, -1, paramList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getparamList_Types(), ecorePackage.getEString(), \"types\", null, 0, -1, paramList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(outEClass, out.class, \"out\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getout_Exp(), this.gettypedExpression(), null, \"exp\", null, 0, 1, out.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getout_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, out.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(inEClass, in.class, \"in\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getin_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, in.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getin_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, in.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(typedExpressionEClass, typedExpression.class, \"typedExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(gettypedExpression_Exp(), this.getexpression(), null, \"exp\", null, 0, 1, typedExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(gettypedExpression_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, typedExpression.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(valueEClass, value.class, \"value\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getvalue_Op(), ecorePackage.getEString(), \"op\", null, 0, 1, value.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getvalue_Exp(), this.gettypedExpression(), null, \"exp\", 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 initEReference(getvalue_Statements(), this.getStatement(), null, \"statements\", 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 initEAttribute(getvalue_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, value.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getvalue_Args(), this.getarg(), null, \"args\", 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 initEClass(argEClass, arg.class, \"arg\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getarg_Arg(), ecorePackage.getEString(), \"arg\", null, 0, 1, arg.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getarg_Exp(), this.gettypedExpression(), null, \"exp\", null, 0, 1, arg.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(ifStatementEClass, IfStatement.class, \"IfStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getIfStatement_If(), this.gettypedExpression(), null, \"if\", null, 0, 1, IfStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getIfStatement_Then(), this.gettypedExpression(), null, \"then\", null, 0, 1, IfStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getIfStatement_Else(), this.gettypedExpression(), null, \"else\", null, 0, 1, IfStatement.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_Left(), this.getexpression(), null, \"left\", 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_Op(), ecorePackage.getEString(), \"op\", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getOperation_Right(), this.getvalue(), null, \"right\", 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 // Create resource\n createResource(eNS_URI);\n }", "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 cssOtherTopLevelDeclarationEClass.getESuperTypes().add(this.getCSSTopLevelStatement());\n mediaDeclarationEClass.getESuperTypes().add(this.getCSSOtherTopLevelDeclaration());\n pageDeclarationEClass.getESuperTypes().add(this.getCSSOtherTopLevelDeclaration());\n namespaceDeclarationEClass.getESuperTypes().add(this.getCSSOtherTopLevelDeclaration());\n fontFaceDeclarationEClass.getESuperTypes().add(this.getCSSOtherTopLevelDeclaration());\n ruleSetEClass.getESuperTypes().add(this.getCSSTopLevelStatement());\n ruleSetEClass.getESuperTypes().add(this.getMediaDeclarationMembers());\n propertyDeclarationEClass.getESuperTypes().add(this.getMediaDeclarationMembers());\n knownPropertyDeclarationEClass.getESuperTypes().add(this.getPropertyDeclaration());\n unrecognizedPropertyDeclarationEClass.getESuperTypes().add(this.getPropertyDeclaration());\n typeSelectorEClass.getESuperTypes().add(this.getSimpleSelector());\n universalSelectorEClass.getESuperTypes().add(this.getSimpleSelector());\n attributeSelectorEClass.getESuperTypes().add(this.getSimpleSelector());\n idSelectorEClass.getESuperTypes().add(this.getSimpleSelector());\n classSelectorEClass.getESuperTypes().add(this.getSimpleSelector());\n pseudoSelectorEClass.getESuperTypes().add(this.getSimpleSelector());\n noArgsPseudoClassSelectorEClass.getESuperTypes().add(this.getPseudoSelector());\n pseudoElementSelectorEClass.getESuperTypes().add(this.getPseudoSelector());\n languagePseudoClassSelectorEClass.getESuperTypes().add(this.getPseudoSelector());\n functionalPseudoClassSelectorEClass.getESuperTypes().add(this.getPseudoSelector());\n linearArgumentEClass.getESuperTypes().add(this.getTypeArgument());\n constantArgumentEClass.getESuperTypes().add(this.getTypeArgument());\n parityArgumentEClass.getESuperTypes().add(this.getTypeArgument());\n negationSelectorEClass.getESuperTypes().add(this.getSimpleSelector());\n sizeLiteralEClass.getESuperTypes().add(this.getValueLiteral());\n stringLiteralEClass.getESuperTypes().add(this.getValueLiteral());\n colorLiteralEClass.getESuperTypes().add(this.getValueLiteral());\n componentColorLiteralEClass.getESuperTypes().add(this.getColorLiteral());\n urlLiteralEClass.getESuperTypes().add(this.getValueLiteral());\n functionCallLiteralEClass.getESuperTypes().add(this.getValueLiteral());\n descendantCombinatorEClass.getESuperTypes().add(this.getSelector());\n childCombinatorEClass.getESuperTypes().add(this.getSelector());\n adjacentSiblingCombinatorEClass.getESuperTypes().add(this.getSelector());\n generalSiblingCombinatorEClass.getESuperTypes().add(this.getSelector());\n simpleSelectorSequenceEClass.getESuperTypes().add(this.getSelector());\n universalNamespacePrefixEClass.getESuperTypes().add(this.getNamespacePrefix());\n withoutNamespacePrefixEClass.getESuperTypes().add(this.getNamespacePrefix());\n stringAttributeValueLiteralEClass.getESuperTypes().add(this.getAttributeValueLiteral());\n integerAttributeValueLiteralEClass.getESuperTypes().add(this.getAttributeValueLiteral());\n decimalAttributeValueLiteralEClass.getESuperTypes().add(this.getAttributeValueLiteral());\n integerLiteralEClass.getESuperTypes().add(this.getNumberLiteral());\n decimalLiteralEClass.getESuperTypes().add(this.getNumberLiteral());\n quantifiedSizeLiteralEClass.getESuperTypes().add(this.getSizeLiteral());\n qualifiedSizeLiteralEClass.getESuperTypes().add(this.getSizeLiteral());\n fontHeightLiteralEClass.getESuperTypes().add(this.getSizeLiteral());\n rgbColorEClass.getESuperTypes().add(this.getColorLiteral());\n namedColorEClass.getESuperTypes().add(this.getColorLiteral());\n componentRGBColorEClass.getESuperTypes().add(this.getComponentColorLiteral());\n componentRGBAlphaColorEClass.getESuperTypes().add(this.getComponentColorLiteral());\n componentHSLColorEClass.getESuperTypes().add(this.getComponentColorLiteral());\n componentHSLAlphaColorEClass.getESuperTypes().add(this.getComponentColorLiteral());\n alphaLiteralEClass.getESuperTypes().add(this.getFunctionCallLiteral());\n\n // Initialize classes and features; add operations and parameters\n initEClass(stylesheetEClass, Stylesheet.class, \"Stylesheet\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getStylesheet_CharSet(), ecorePackage.getEString(), \"charSet\", null, 0, 1, Stylesheet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getStylesheet_Imports(), this.getImportDeclaration(), null, \"imports\", null, 0, -1, Stylesheet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getStylesheet_Statements(), this.getCSSTopLevelStatement(), null, \"statements\", null, 0, -1, Stylesheet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(cssTopLevelStatementEClass, CSSTopLevelStatement.class, \"CSSTopLevelStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(cssOtherTopLevelDeclarationEClass, CSSOtherTopLevelDeclaration.class, \"CSSOtherTopLevelDeclaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(importDeclarationEClass, ImportDeclaration.class, \"ImportDeclaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getImportDeclaration_ImportURI(), ecorePackage.getEString(), \"importURI\", null, 0, 1, ImportDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getImportDeclaration_Url(), ecorePackage.getEString(), \"url\", null, 0, 1, ImportDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getImportDeclaration_Media(), ecorePackage.getEString(), \"media\", null, 0, -1, ImportDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(mediaDeclarationEClass, MediaDeclaration.class, \"MediaDeclaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getMediaDeclaration_MediaQueries(), this.getMediaQuery(), null, \"mediaQueries\", null, 0, -1, MediaDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getMediaDeclaration_Media(), this.getMediaQuery(), null, \"media\", null, 0, -1, MediaDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getMediaDeclaration_Members(), this.getMediaDeclarationMembers(), null, \"members\", null, 0, -1, MediaDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(mediaDeclarationMembersEClass, MediaDeclarationMembers.class, \"MediaDeclarationMembers\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(mediaQueryEClass, MediaQuery.class, \"MediaQuery\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getMediaQuery_Only(), ecorePackage.getEBoolean(), \"only\", null, 0, 1, MediaQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getMediaQuery_Not(), ecorePackage.getEBoolean(), \"not\", null, 0, 1, MediaQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getMediaQuery_MediaType(), ecorePackage.getEString(), \"mediaType\", null, 0, 1, MediaQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getMediaQuery_Expressions(), this.getMediaQueryExpression(), null, \"expressions\", null, 0, -1, MediaQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(mediaQueryExpressionEClass, MediaQueryExpression.class, \"MediaQueryExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getMediaQueryExpression_Feature(), ecorePackage.getEString(), \"feature\", null, 0, 1, MediaQueryExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getMediaQueryExpression_Expression(), this.getValueLiteral(), null, \"expression\", null, 0, 1, MediaQueryExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(pageDeclarationEClass, PageDeclaration.class, \"PageDeclaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getPageDeclaration_PseudoPage(), ecorePackage.getEString(), \"pseudoPage\", null, 0, 1, PageDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getPageDeclaration_Body(), this.getRuleSetBody(), null, \"body\", null, 0, 1, PageDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(namespaceDeclarationEClass, NamespaceDeclaration.class, \"NamespaceDeclaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getNamespaceDeclaration_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, NamespaceDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getNamespaceDeclaration_Url(), ecorePackage.getEString(), \"url\", null, 0, 1, NamespaceDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(fontFaceDeclarationEClass, FontFaceDeclaration.class, \"FontFaceDeclaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getFontFaceDeclaration_Body(), this.getRuleSetBody(), null, \"body\", null, 0, 1, FontFaceDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(ruleSetEClass, RuleSet.class, \"RuleSet\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getRuleSet_Selectors(), this.getSelector(), null, \"selectors\", null, 0, -1, RuleSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getRuleSet_Body(), this.getRuleSetBody(), null, \"body\", null, 0, 1, RuleSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(ruleSetBodyEClass, RuleSetBody.class, \"RuleSetBody\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getRuleSetBody_Declarations(), this.getPropertyDeclaration(), null, \"declarations\", null, 0, -1, RuleSetBody.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(propertyDeclarationEClass, PropertyDeclaration.class, \"PropertyDeclaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getPropertyDeclaration_ValuesLists(), this.getPropertyValuesLists(), null, \"valuesLists\", null, 0, 1, PropertyDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(knownPropertyDeclarationEClass, KnownPropertyDeclaration.class, \"KnownPropertyDeclaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getKnownPropertyDeclaration_Name(), this.getKnownProperties(), \"name\", null, 0, 1, KnownPropertyDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(unrecognizedPropertyDeclarationEClass, UnrecognizedPropertyDeclaration.class, \"UnrecognizedPropertyDeclaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getUnrecognizedPropertyDeclaration_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, UnrecognizedPropertyDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(propertyValuesListsEClass, PropertyValuesLists.class, \"PropertyValuesLists\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getPropertyValuesLists_Lists(), this.getPropertyValuesList(), null, \"lists\", null, 0, -1, PropertyValuesLists.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(propertyValuesListEClass, PropertyValuesList.class, \"PropertyValuesList\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getPropertyValuesList_Values(), this.getPropertyValue(), null, \"values\", null, 0, -1, PropertyValuesList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(propertyValueEClass, PropertyValue.class, \"PropertyValue\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getPropertyValue_Value(), this.getValueLiteral(), null, \"value\", null, 0, 1, PropertyValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getPropertyValue_Important(), ecorePackage.getEBoolean(), \"important\", null, 0, 1, PropertyValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(selectorEClass, Selector.class, \"Selector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(simpleSelectorEClass, SimpleSelector.class, \"SimpleSelector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(typeSelectorEClass, TypeSelector.class, \"TypeSelector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getTypeSelector_NamespacePrefix(), this.getNamespacePrefix(), null, \"namespacePrefix\", null, 0, 1, TypeSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getTypeSelector_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, TypeSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(namespacePrefixEClass, NamespacePrefix.class, \"NamespacePrefix\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getNamespacePrefix_Namespace(), this.getNamespaceDeclaration(), null, \"namespace\", null, 0, 1, NamespacePrefix.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(universalSelectorEClass, UniversalSelector.class, \"UniversalSelector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getUniversalSelector_NamespacePrefix(), this.getNamespacePrefix(), null, \"namespacePrefix\", null, 0, 1, UniversalSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(attributeSelectorEClass, AttributeSelector.class, \"AttributeSelector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getAttributeSelector_Attribute(), this.getAttribute(), null, \"attribute\", null, 0, 1, AttributeSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getAttributeSelector_Matcher(), this.getAttributeSelectorMatchers(), \"matcher\", null, 0, 1, AttributeSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getAttributeSelector_Value(), this.getAttributeValueLiteral(), null, \"value\", null, 0, 1, AttributeSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(attributeEClass, Attribute.class, \"Attribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getAttribute_NamespacePrefix(), this.getNamespacePrefix(), null, \"namespacePrefix\", 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 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\n initEClass(attributeValueLiteralEClass, AttributeValueLiteral.class, \"AttributeValueLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(idSelectorEClass, IDSelector.class, \"IDSelector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getIDSelector_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, IDSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(classSelectorEClass, ClassSelector.class, \"ClassSelector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getClassSelector_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, ClassSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(pseudoSelectorEClass, PseudoSelector.class, \"PseudoSelector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(noArgsPseudoClassSelectorEClass, NoArgsPseudoClassSelector.class, \"NoArgsPseudoClassSelector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getNoArgsPseudoClassSelector_Pseudo(), this.getNoArgsPseudos(), \"pseudo\", null, 0, 1, NoArgsPseudoClassSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(pseudoElementSelectorEClass, PseudoElementSelector.class, \"PseudoElementSelector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getPseudoElementSelector_DoubleSemiColon(), ecorePackage.getEBoolean(), \"doubleSemiColon\", null, 0, 1, PseudoElementSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getPseudoElementSelector_Pseudo(), this.getPseudoElements(), \"pseudo\", null, 0, 1, PseudoElementSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(languagePseudoClassSelectorEClass, LanguagePseudoClassSelector.class, \"LanguagePseudoClassSelector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getLanguagePseudoClassSelector_LangugageId(), ecorePackage.getEString(), \"langugageId\", null, 0, 1, LanguagePseudoClassSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(functionalPseudoClassSelectorEClass, FunctionalPseudoClassSelector.class, \"FunctionalPseudoClassSelector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getFunctionalPseudoClassSelector_Pseudo(), this.getFunctionalPseudoClasses(), \"pseudo\", null, 0, 1, FunctionalPseudoClassSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getFunctionalPseudoClassSelector_Argument(), this.getTypeArgument(), null, \"argument\", null, 0, 1, FunctionalPseudoClassSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(typeArgumentEClass, TypeArgument.class, \"TypeArgument\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(linearArgumentEClass, LinearArgument.class, \"LinearArgument\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getLinearArgument_Coefficient(), this.getCoefficient(), null, \"coefficient\", null, 0, 1, LinearArgument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getLinearArgument_ConstantSign(), ecorePackage.getEString(), \"constantSign\", null, 0, 1, LinearArgument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getLinearArgument_Constant(), ecorePackage.getEInt(), \"constant\", null, 0, 1, LinearArgument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(coefficientEClass, Coefficient.class, \"Coefficient\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getCoefficient_Ident(), ecorePackage.getEString(), \"ident\", null, 0, 1, Coefficient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getCoefficient_Int(), ecorePackage.getEInt(), \"int\", null, 0, 1, Coefficient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(constantArgumentEClass, ConstantArgument.class, \"ConstantArgument\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getConstantArgument_Sign(), ecorePackage.getEString(), \"sign\", null, 0, 1, ConstantArgument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getConstantArgument_Int(), ecorePackage.getEInt(), \"int\", null, 0, 1, ConstantArgument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(parityArgumentEClass, ParityArgument.class, \"ParityArgument\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getParityArgument_Parity(), this.getParities(), \"parity\", null, 0, 1, ParityArgument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(negationSelectorEClass, NegationSelector.class, \"NegationSelector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getNegationSelector_SimpleSelector(), this.getSimpleSelector(), null, \"simpleSelector\", null, 0, 1, NegationSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(valueLiteralEClass, ValueLiteral.class, \"ValueLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(numberLiteralEClass, NumberLiteral.class, \"NumberLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(sizeLiteralEClass, SizeLiteral.class, \"SizeLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(stringLiteralEClass, StringLiteral.class, \"StringLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getStringLiteral_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, StringLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(colorLiteralEClass, ColorLiteral.class, \"ColorLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(componentColorLiteralEClass, ComponentColorLiteral.class, \"ComponentColorLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(colorComponentLiteralEClass, ColorComponentLiteral.class, \"ColorComponentLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getColorComponentLiteral_Number(), this.getNumberLiteral(), null, \"number\", null, 0, 1, ColorComponentLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getColorComponentLiteral_Percentage(), ecorePackage.getEBoolean(), \"percentage\", null, 0, 1, ColorComponentLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(urlLiteralEClass, URLLiteral.class, \"URLLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getURLLiteral_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, URLLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(bareWordLiteralEClass, BareWordLiteral.class, \"BareWordLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getBareWordLiteral_BareWord(), ecorePackage.getEString(), \"bareWord\", null, 0, 1, BareWordLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(functionCallLiteralEClass, FunctionCallLiteral.class, \"FunctionCallLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getFunctionCallLiteral_Function(), ecorePackage.getEString(), \"function\", null, 0, 1, FunctionCallLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getFunctionCallLiteral_Arguments(), this.getValueLiteral(), null, \"arguments\", null, 0, -1, FunctionCallLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(descendantCombinatorEClass, DescendantCombinator.class, \"DescendantCombinator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getDescendantCombinator_Left(), this.getSelector(), null, \"left\", null, 0, 1, DescendantCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getDescendantCombinator_WsI(), ecorePackage.getEString(), \"wsI\", null, 0, 1, DescendantCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getDescendantCombinator_Right(), this.getSelector(), null, \"right\", null, 0, 1, DescendantCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(childCombinatorEClass, ChildCombinator.class, \"ChildCombinator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getChildCombinator_Left(), this.getSelector(), null, \"left\", null, 0, 1, ChildCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getChildCombinator_WsL(), ecorePackage.getEString(), \"wsL\", null, 0, 1, ChildCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getChildCombinator_WsR(), ecorePackage.getEString(), \"wsR\", null, 0, 1, ChildCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getChildCombinator_Right(), this.getSelector(), null, \"right\", null, 0, 1, ChildCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(adjacentSiblingCombinatorEClass, AdjacentSiblingCombinator.class, \"AdjacentSiblingCombinator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getAdjacentSiblingCombinator_Left(), this.getSelector(), null, \"left\", null, 0, 1, AdjacentSiblingCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getAdjacentSiblingCombinator_WsL(), ecorePackage.getEString(), \"wsL\", null, 0, 1, AdjacentSiblingCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getAdjacentSiblingCombinator_WsR(), ecorePackage.getEString(), \"wsR\", null, 0, 1, AdjacentSiblingCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getAdjacentSiblingCombinator_Right(), this.getSelector(), null, \"right\", null, 0, 1, AdjacentSiblingCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(generalSiblingCombinatorEClass, GeneralSiblingCombinator.class, \"GeneralSiblingCombinator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getGeneralSiblingCombinator_Left(), this.getSelector(), null, \"left\", null, 0, 1, GeneralSiblingCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getGeneralSiblingCombinator_WsL(), ecorePackage.getEString(), \"wsL\", null, 0, 1, GeneralSiblingCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getGeneralSiblingCombinator_WsR(), ecorePackage.getEString(), \"wsR\", null, 0, 1, GeneralSiblingCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getGeneralSiblingCombinator_Right(), this.getSelector(), null, \"right\", null, 0, 1, GeneralSiblingCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(simpleSelectorSequenceEClass, SimpleSelectorSequence.class, \"SimpleSelectorSequence\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getSimpleSelectorSequence_Head(), this.getSimpleSelector(), null, \"head\", null, 0, 1, SimpleSelectorSequence.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getSimpleSelectorSequence_SimpleSelectors(), this.getSimpleSelector(), null, \"simpleSelectors\", null, 0, -1, SimpleSelectorSequence.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(universalNamespacePrefixEClass, UniversalNamespacePrefix.class, \"UniversalNamespacePrefix\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(withoutNamespacePrefixEClass, WithoutNamespacePrefix.class, \"WithoutNamespacePrefix\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(stringAttributeValueLiteralEClass, StringAttributeValueLiteral.class, \"StringAttributeValueLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getStringAttributeValueLiteral_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, StringAttributeValueLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(integerAttributeValueLiteralEClass, IntegerAttributeValueLiteral.class, \"IntegerAttributeValueLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getIntegerAttributeValueLiteral_Value(), ecorePackage.getEInt(), \"value\", null, 0, 1, IntegerAttributeValueLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(decimalAttributeValueLiteralEClass, DecimalAttributeValueLiteral.class, \"DecimalAttributeValueLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getDecimalAttributeValueLiteral_Value(), ecorePackage.getEDouble(), \"value\", null, 0, 1, DecimalAttributeValueLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(integerLiteralEClass, IntegerLiteral.class, \"IntegerLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getIntegerLiteral_Int(), ecorePackage.getEInt(), \"int\", null, 0, 1, IntegerLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(decimalLiteralEClass, DecimalLiteral.class, \"DecimalLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getDecimalLiteral_Decimal(), ecorePackage.getEDouble(), \"decimal\", null, 0, 1, DecimalLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(quantifiedSizeLiteralEClass, QuantifiedSizeLiteral.class, \"QuantifiedSizeLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getQuantifiedSizeLiteral_Number(), this.getNumberLiteral(), null, \"number\", null, 0, 1, QuantifiedSizeLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getQuantifiedSizeLiteral_Dimension(), this.getDimensions(), \"dimension\", null, 0, 1, QuantifiedSizeLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(qualifiedSizeLiteralEClass, QualifiedSizeLiteral.class, \"QualifiedSizeLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getQualifiedSizeLiteral_Bareword(), ecorePackage.getEString(), \"bareword\", null, 0, 1, QualifiedSizeLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(fontHeightLiteralEClass, FontHeightLiteral.class, \"FontHeightLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getFontHeightLiteral_FontHeight(), this.getSizeLiteral(), null, \"fontHeight\", null, 0, 1, FontHeightLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getFontHeightLiteral_LineHeight(), this.getNumberLiteral(), null, \"lineHeight\", null, 0, 1, FontHeightLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getFontHeightLiteral_LineHeightDimension(), this.getDimensions(), \"lineHeightDimension\", null, 0, 1, FontHeightLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(rgbColorEClass, RGBColor.class, \"RGBColor\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getRGBColor_Rgb(), ecorePackage.getEString(), \"rgb\", null, 0, 1, RGBColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(namedColorEClass, NamedColor.class, \"NamedColor\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getNamedColor_Color(), this.getColorNames(), \"color\", null, 0, 1, NamedColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(componentRGBColorEClass, ComponentRGBColor.class, \"ComponentRGBColor\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getComponentRGBColor_Red(), this.getColorComponentLiteral(), null, \"red\", null, 0, 1, ComponentRGBColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getComponentRGBColor_Green(), this.getColorComponentLiteral(), null, \"green\", null, 0, 1, ComponentRGBColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getComponentRGBColor_Blue(), this.getColorComponentLiteral(), null, \"blue\", null, 0, 1, ComponentRGBColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(componentRGBAlphaColorEClass, ComponentRGBAlphaColor.class, \"ComponentRGBAlphaColor\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getComponentRGBAlphaColor_Red(), this.getColorComponentLiteral(), null, \"red\", null, 0, 1, ComponentRGBAlphaColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getComponentRGBAlphaColor_Green(), this.getColorComponentLiteral(), null, \"green\", null, 0, 1, ComponentRGBAlphaColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getComponentRGBAlphaColor_Blue(), this.getColorComponentLiteral(), null, \"blue\", null, 0, 1, ComponentRGBAlphaColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getComponentRGBAlphaColor_Opacity(), this.getColorComponentLiteral(), null, \"opacity\", null, 0, 1, ComponentRGBAlphaColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(componentHSLColorEClass, ComponentHSLColor.class, \"ComponentHSLColor\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getComponentHSLColor_Hue(), this.getColorComponentLiteral(), null, \"hue\", null, 0, 1, ComponentHSLColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getComponentHSLColor_Saturation(), this.getColorComponentLiteral(), null, \"saturation\", null, 0, 1, ComponentHSLColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getComponentHSLColor_Lightness(), this.getColorComponentLiteral(), null, \"lightness\", null, 0, 1, ComponentHSLColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(componentHSLAlphaColorEClass, ComponentHSLAlphaColor.class, \"ComponentHSLAlphaColor\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getComponentHSLAlphaColor_Hue(), this.getColorComponentLiteral(), null, \"hue\", null, 0, 1, ComponentHSLAlphaColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getComponentHSLAlphaColor_Saturation(), this.getColorComponentLiteral(), null, \"saturation\", null, 0, 1, ComponentHSLAlphaColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getComponentHSLAlphaColor_Lightness(), this.getColorComponentLiteral(), null, \"lightness\", null, 0, 1, ComponentHSLAlphaColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getComponentHSLAlphaColor_Opacity(), this.getColorComponentLiteral(), null, \"opacity\", null, 0, 1, ComponentHSLAlphaColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(alphaLiteralEClass, AlphaLiteral.class, \"AlphaLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getAlphaLiteral_Opacity(), this.getNumberLiteral(), null, \"opacity\", null, 0, 1, AlphaLiteral.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(knownPropertiesEEnum, KnownProperties.class, \"KnownProperties\");\n addEEnumLiteral(knownPropertiesEEnum, KnownProperties.COLOR);\n addEEnumLiteral(knownPropertiesEEnum, KnownProperties.BORDER_TOP);\n\n initEEnum(attributeSelectorMatchersEEnum, AttributeSelectorMatchers.class, \"AttributeSelectorMatchers\");\n addEEnumLiteral(attributeSelectorMatchersEEnum, AttributeSelectorMatchers.PREFIX);\n addEEnumLiteral(attributeSelectorMatchersEEnum, AttributeSelectorMatchers.SUFFIX);\n addEEnumLiteral(attributeSelectorMatchersEEnum, AttributeSelectorMatchers.SUBSTRING);\n addEEnumLiteral(attributeSelectorMatchersEEnum, AttributeSelectorMatchers.EXACT);\n addEEnumLiteral(attributeSelectorMatchersEEnum, AttributeSelectorMatchers.INCLUDES);\n addEEnumLiteral(attributeSelectorMatchersEEnum, AttributeSelectorMatchers.LANGUAGE);\n\n initEEnum(noArgsPseudosEEnum, NoArgsPseudos.class, \"NoArgsPseudos\");\n addEEnumLiteral(noArgsPseudosEEnum, NoArgsPseudos.LINK);\n addEEnumLiteral(noArgsPseudosEEnum, NoArgsPseudos.VISITED);\n addEEnumLiteral(noArgsPseudosEEnum, NoArgsPseudos.HOVER);\n addEEnumLiteral(noArgsPseudosEEnum, NoArgsPseudos.ACTIVE);\n addEEnumLiteral(noArgsPseudosEEnum, NoArgsPseudos.FOCUS);\n addEEnumLiteral(noArgsPseudosEEnum, NoArgsPseudos.TARGET);\n addEEnumLiteral(noArgsPseudosEEnum, NoArgsPseudos.ENABLED);\n addEEnumLiteral(noArgsPseudosEEnum, NoArgsPseudos.DISABLED);\n addEEnumLiteral(noArgsPseudosEEnum, NoArgsPseudos.CHECKED);\n addEEnumLiteral(noArgsPseudosEEnum, NoArgsPseudos.INDETERMINATE);\n addEEnumLiteral(noArgsPseudosEEnum, NoArgsPseudos.ROOT);\n addEEnumLiteral(noArgsPseudosEEnum, NoArgsPseudos.FIRST_CHILD);\n addEEnumLiteral(noArgsPseudosEEnum, NoArgsPseudos.LAST_CHILD);\n addEEnumLiteral(noArgsPseudosEEnum, NoArgsPseudos.ONLY_CHILD);\n addEEnumLiteral(noArgsPseudosEEnum, NoArgsPseudos.EMPTY);\n\n initEEnum(pseudoElementsEEnum, PseudoElements.class, \"PseudoElements\");\n addEEnumLiteral(pseudoElementsEEnum, PseudoElements.FIRST_LETTER);\n addEEnumLiteral(pseudoElementsEEnum, PseudoElements.FIRST_LINE);\n addEEnumLiteral(pseudoElementsEEnum, PseudoElements.BEFORE);\n addEEnumLiteral(pseudoElementsEEnum, PseudoElements.AFTER);\n\n initEEnum(functionalPseudoClassesEEnum, FunctionalPseudoClasses.class, \"FunctionalPseudoClasses\");\n addEEnumLiteral(functionalPseudoClassesEEnum, FunctionalPseudoClasses.NTH_CHILD);\n addEEnumLiteral(functionalPseudoClassesEEnum, FunctionalPseudoClasses.NTH_LAST_CHILD);\n addEEnumLiteral(functionalPseudoClassesEEnum, FunctionalPseudoClasses.NTH_OF_TYPE);\n addEEnumLiteral(functionalPseudoClassesEEnum, FunctionalPseudoClasses.NTH_LAST_OF_TYPE);\n addEEnumLiteral(functionalPseudoClassesEEnum, FunctionalPseudoClasses.FIRST_OF_TYPE);\n addEEnumLiteral(functionalPseudoClassesEEnum, FunctionalPseudoClasses.LAST_OF_TYPE);\n addEEnumLiteral(functionalPseudoClassesEEnum, FunctionalPseudoClasses.ONLY_OF_TYPE);\n\n initEEnum(paritiesEEnum, Parities.class, \"Parities\");\n addEEnumLiteral(paritiesEEnum, Parities.ODD);\n addEEnumLiteral(paritiesEEnum, Parities.EVEN);\n\n initEEnum(dimensionsEEnum, Dimensions.class, \"Dimensions\");\n addEEnumLiteral(dimensionsEEnum, Dimensions.IN);\n addEEnumLiteral(dimensionsEEnum, Dimensions.CM);\n addEEnumLiteral(dimensionsEEnum, Dimensions.MM);\n addEEnumLiteral(dimensionsEEnum, Dimensions.PT);\n addEEnumLiteral(dimensionsEEnum, Dimensions.PC);\n addEEnumLiteral(dimensionsEEnum, Dimensions.EM);\n addEEnumLiteral(dimensionsEEnum, Dimensions.EX);\n addEEnumLiteral(dimensionsEEnum, Dimensions.PX);\n addEEnumLiteral(dimensionsEEnum, Dimensions.PERC);\n\n initEEnum(colorNamesEEnum, ColorNames.class, \"ColorNames\");\n addEEnumLiteral(colorNamesEEnum, ColorNames.BLACK);\n addEEnumLiteral(colorNamesEEnum, ColorNames.WHITE);\n\n // Create resource\n createResource(eNS_URI);\n }", "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\t\torg.openecomp.ncomp.core.CorePackage theCorePackage_1 = (org.openecomp.ncomp.core.CorePackage)EPackage.Registry.INSTANCE.getEPackage(org.openecomp.ncomp.core.CorePackage.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\topenstackRequestDeleteEClass.getESuperTypes().add(this.getOpenStackRequest());\n\t\topenstackRequestPollEClass.getESuperTypes().add(this.getOpenStackRequest());\n\t\tvirtualMachineTypeEClass.getESuperTypes().add(theCorePackage_1.getNamedEntity());\n\t\tsecurityRuleEClass.getESuperTypes().add(theCorePackage_1.getNamedEntity());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(openStackRequestEClass, OpenStackRequest.class, \"OpenStackRequest\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getOpenStackRequest_ProjectName(), theEcorePackage.getEString(), \"projectName\", null, 0, 1, OpenStackRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(openstackRequestDeleteEClass, OpenstackRequestDelete.class, \"OpenstackRequestDelete\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getOpenstackRequestDelete_ObjectType(), theEcorePackage.getEString(), \"objectType\", null, 0, 1, OpenstackRequestDelete.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getOpenstackRequestDelete_ObjectName(), theEcorePackage.getEString(), \"objectName\", null, 0, 1, OpenstackRequestDelete.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(openstackRequestPollEClass, OpenstackRequestPoll.class, \"OpenstackRequestPoll\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(virtualMachineTypeEClass, VirtualMachineType.class, \"VirtualMachineType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getVirtualMachineType_Description(), theEcorePackage.getEString(), \"description\", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVirtualMachineType_NumberOfCores(), theEcorePackage.getEInt(), \"numberOfCores\", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVirtualMachineType_MemorySizeMB(), theEcorePackage.getEInt(), \"memorySizeMB\", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVirtualMachineType_RootDiskSizeGB(), theEcorePackage.getEInt(), \"rootDiskSizeGB\", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVirtualMachineType_DiskSizeGB(), theEcorePackage.getEInt(), \"diskSizeGB\", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVirtualMachineType_VolumeSizeGB(), theEcorePackage.getEInt(), \"volumeSizeGB\", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVirtualMachineType_ImageName(), theEcorePackage.getEString(), \"imageName\", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVirtualMachineType_FlavorName(), theEcorePackage.getEString(), \"flavorName\", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVirtualMachineType_NeedPublicIp(), theEcorePackage.getEBoolean(), \"needPublicIp\", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVirtualMachineType_DeploymentStatus(), theCorePackage_1.getDeploymentStatus(), \"deploymentStatus\", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getVirtualMachineType_IncomingSecurityRules(), this.getSecurityRule(), null, \"incomingSecurityRules\", null, 0, -1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getVirtualMachineType_OutboundSecurityRules(), this.getSecurityRule(), null, \"outboundSecurityRules\", null, 0, -1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(securityRuleEClass, SecurityRule.class, \"SecurityRule\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getSecurityRule_PortRangeStart(), theEcorePackage.getEIntegerObject(), \"portRangeStart\", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSecurityRule_PortRangeEnd(), theEcorePackage.getEIntegerObject(), \"portRangeEnd\", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSecurityRule_Prefix(), theEcorePackage.getEString(), \"prefix\", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSecurityRule_IpProtocol(), this.getSecurityRuleProtocol(), \"ipProtocol\", null, 0, 1, SecurityRule.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(securityRuleProtocolEEnum, SecurityRuleProtocol.class, \"SecurityRuleProtocol\");\n\t\taddEEnumLiteral(securityRuleProtocolEEnum, SecurityRuleProtocol.NONE);\n\t\taddEEnumLiteral(securityRuleProtocolEEnum, SecurityRuleProtocol.TCP);\n\t\taddEEnumLiteral(securityRuleProtocolEEnum, SecurityRuleProtocol.UDP);\n\t\taddEEnumLiteral(securityRuleProtocolEEnum, SecurityRuleProtocol.IMCP);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void loadPackage() {\r\n\t\tif (isLoaded)\r\n\t\t\treturn;\r\n\t\tisLoaded = true;\r\n\r\n\t\tURL url = getClass().getResource(packageFilename);\r\n\t\tif (url == null) {\r\n\t\t\tthrow new RuntimeException(\"Missing serialized package: \"\r\n\t\t\t\t\t+ packageFilename);\r\n\t\t}\r\n\t\tURI uri = URI.createURI(url.toString());\r\n\t\tResource resource = new EcoreResourceFactoryImpl().createResource(uri);\r\n\t\ttry {\r\n\t\t\tresource.load(null);\r\n\t\t} catch (IOException exception) {\r\n\t\t\tthrow new WrappedException(exception);\r\n\t\t}\r\n\t\tinitializeFromLoadedEPackage(this, (EPackage) resource.getContents()\r\n\t\t\t\t.get(0));\r\n\t\tcreateResource(eNS_URI);\r\n\t}", "public void setPackage()\n {\n ensureLoaded();\n m_flags.setPackage();\n setModified(true);\n }", "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); //$NON-NLS-1$\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}", "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\tcomDiagEClass.getESuperTypes().add(this.getNamedElement());\r\n\t\tcomDiagElementEClass.getESuperTypes().add(this.getNamedElement());\r\n\t\tlifelineEClass.getESuperTypes().add(this.getComDiagElement());\r\n\t\tmessageEClass.getESuperTypes().add(this.getComDiagElement());\r\n\r\n\t\t// Initialize classes and features; add operations and parameters\r\n\t\tinitEClass(namedElementEClass, NamedElement.class, \"NamedElement\",\r\n\t\t\t\t!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getNamedElement_Name(), ecorePackage.getEString(),\r\n\t\t\t\t\"name\", null, 0, 1, NamedElement.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(comDiagEClass, ComDiag.class, \"ComDiag\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getComDiag_Elements(), this.getComDiagElement(),\r\n\t\t\t\tthis.getComDiagElement_Graph(), \"elements\", null, 0, -1,\r\n\t\t\t\tComDiag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\tIS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getComDiag_Level(), ecorePackage.getEString(), \"level\",\r\n\t\t\t\tnull, 0, 1, ComDiag.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(comDiagElementEClass, ComDiagElement.class,\r\n\t\t\t\t\"ComDiagElement\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getComDiagElement_Graph(), this.getComDiag(),\r\n\t\t\t\tthis.getComDiag_Elements(), \"graph\", null, 0, 1,\r\n\t\t\t\tComDiagElement.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(lifelineEClass, Lifeline.class, \"Lifeline\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getLifeline_Number(), ecorePackage.getEInt(), \"number\",\r\n\t\t\t\tnull, 0, 1, Lifeline.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(messageEClass, Message.class, \"Message\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getMessage_Occurence(), ecorePackage.getEInt(),\r\n\t\t\t\t\"occurence\", null, 0, 1, Message.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\tinitEReference(getMessage_Source(), this.getLifeline(), null, \"source\",\r\n\t\t\t\tnull, 0, 1, Message.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\tinitEReference(getMessage_Target(), this.getLifeline(), null, \"target\",\r\n\t\t\t\tnull, 0, 1, Message.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\t// Create resource\r\n\t\tcreateResource(eNS_URI);\r\n\t}", "private void init() {\n\t\tthis.model = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM);\n\t\tthis.model.setNsPrefixes(INamespace.NAMSESPACE_MAP);\n\n\t\t// create classes and properties\n\t\tcreateClasses();\n\t\tcreateDatatypeProperties();\n\t\tcreateObjectProperties();\n\t\t// createFraktionResources();\n\t}", "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 bitShiftExprEClass.getESuperTypes().add(this.getExpr());\n bitShiftExprChildEClass.getESuperTypes().add(this.getExpr());\n additiveExprEClass.getESuperTypes().add(this.getBitShiftExprChild());\n additiveExprChildEClass.getESuperTypes().add(this.getBitShiftExprChild());\n multiplicativeExprEClass.getESuperTypes().add(this.getAdditiveExprChild());\n multiplicativeExprChildEClass.getESuperTypes().add(this.getAdditiveExprChild());\n numberEClass.getESuperTypes().add(this.getMultiplicativeExprChild());\n\n // Initialize classes and features; add operations and parameters\n initEClass(calcEClass, Calc.class, \"Calc\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getCalc_Expr(), this.getExpr(), null, \"expr\", null, 1, -1, Calc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(exprEClass, Expr.class, \"Expr\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(bitShiftExprEClass, BitShiftExpr.class, \"BitShiftExpr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getBitShiftExpr_Children(), this.getBitShiftExprChild(), null, \"children\", null, 2, -1, BitShiftExpr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getBitShiftExpr_Operators(), this.getBitShiftOp(), \"operators\", null, 1, -1, BitShiftExpr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(bitShiftExprChildEClass, BitShiftExprChild.class, \"BitShiftExprChild\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(additiveExprEClass, AdditiveExpr.class, \"AdditiveExpr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getAdditiveExpr_Children(), this.getAdditiveExprChild(), null, \"children\", null, 2, -1, AdditiveExpr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getAdditiveExpr_Operators(), this.getAdditiveOp(), \"operators\", null, 1, -1, AdditiveExpr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(additiveExprChildEClass, AdditiveExprChild.class, \"AdditiveExprChild\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(multiplicativeExprEClass, MultiplicativeExpr.class, \"MultiplicativeExpr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getMultiplicativeExpr_Children(), this.getMultiplicativeExprChild(), null, \"children\", null, 2, -1, MultiplicativeExpr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getMultiplicativeExpr_Operators(), this.getMultiplicativeOp(), \"operators\", null, 1, -1, MultiplicativeExpr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(multiplicativeExprChildEClass, MultiplicativeExprChild.class, \"MultiplicativeExprChild\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(numberEClass, org.emftext.language.arithm.Number.class, \"Number\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getNumber_Value(), ecorePackage.getEInt(), \"value\", null, 1, 1, org.emftext.language.arithm.Number.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(bitShiftOpEEnum, BitShiftOp.class, \"BitShiftOp\");\n addEEnumLiteral(bitShiftOpEEnum, BitShiftOp.LEFT);\n addEEnumLiteral(bitShiftOpEEnum, BitShiftOp.RIGHT);\n\n initEEnum(additiveOpEEnum, AdditiveOp.class, \"AdditiveOp\");\n addEEnumLiteral(additiveOpEEnum, AdditiveOp.ADD);\n addEEnumLiteral(additiveOpEEnum, AdditiveOp.SUB);\n\n initEEnum(multiplicativeOpEEnum, MultiplicativeOp.class, \"MultiplicativeOp\");\n addEEnumLiteral(multiplicativeOpEEnum, MultiplicativeOp.MUL);\n addEEnumLiteral(multiplicativeOpEEnum, MultiplicativeOp.DIV);\n\n // Create resource\n createResource(eNS_URI);\n }", "public void performInitialisation() {\n \t\t// subclasses can override the behaviour for this method\n \t}", "public void initialize() {\n //TODO: Initialization steps\n\n initialized = true;\n }", "public void initialize() {\n // TODO\n }", "protected void install()\n {\n _parent = null;\n _label = new ScLocalString();\n _model = new ScLocalObject();\n }", "public void reInit() {\n super.reInit();\n m_strPackage = null;\n if (m_subPackages != null) {\n m_subPackages.clear();\n }\n }", "public static ModelPackage init() {\n\t\tif (isInited) return (ModelPackage)EPackage.Registry.INSTANCE.getEPackage(ModelPackage.eNS_URI);\n\n\t\t// Obtain or create and register package\n\t\tModelPackageImpl theModelPackage = (ModelPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof ModelPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new ModelPackageImpl());\n\n\t\tisInited = true;\n\n\t\t// Create package meta-data objects\n\t\ttheModelPackage.createPackageContents();\n\n\t\t// Initialize created meta-data\n\t\ttheModelPackage.initializePackageContents();\n\n\t\t// Mark meta-data to indicate it can't be changed\n\t\ttheModelPackage.freeze();\n\n\t\treturn theModelPackage;\n\t}", "public void initializationComplete() {\n System.out.println(\"CPM Initialization Complete\");\n mInitCompleteTime = System.currentTimeMillis();\n }", "public void initialize() {\n // empty for now\n }", "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\tOpenmlperfPerformanceMetricPackage theOpenmlperfPerformanceMetricPackage = (OpenmlperfPerformanceMetricPackage)EPackage.Registry.INSTANCE.getEPackage(OpenmlperfPerformanceMetricPackage.eNS_URI);\n\n\t\t// Add subpackages\n\t\tgetESubpackages().add(theOpenmlperfPerformanceMetricPackage);\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(sutEClass, openmlperf.openmlperfPerformanceMonitoring.SUT.class, \"SUT\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getSUT_Hostname(), ecorePackage.getEString(), \"hostname\", null, 0, 1, openmlperf.openmlperfPerformanceMonitoring.SUT.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSUT_Ip(), ecorePackage.getEString(), \"ip\", null, 0, 1, openmlperf.openmlperfPerformanceMonitoring.SUT.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSUT_Hardware(), this.getHARDWARE(), \"hardware\", null, 0, 1, openmlperf.openmlperfPerformanceMonitoring.SUT.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSUT_Sut(), this.getSUT(), null, \"sut\", null, 0, -1, openmlperf.openmlperfPerformanceMonitoring.SUT.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSUT_Metricmodel(), this.getMetricModel(), null, \"metricmodel\", null, 0, 1, openmlperf.openmlperfPerformanceMonitoring.SUT.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSUT_Type(), this.getSUT_TYPE(), \"type\", null, 0, 1, openmlperf.openmlperfPerformanceMonitoring.SUT.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(loadGeneratorEClass, LoadGenerator.class, \"LoadGenerator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getLoadGenerator_Hostname(), ecorePackage.getEString(), \"hostname\", null, 0, 1, LoadGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLoadGenerator_Ip(), ecorePackage.getEString(), \"ip\", null, 0, 1, LoadGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLoadGenerator_IsMonitor(), ecorePackage.getEBoolean(), \"isMonitor\", null, 0, 1, LoadGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLoadGenerator_Sut(), this.getSUT(), null, \"sut\", null, 0, -1, LoadGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLoadGenerator_Metricmodel(), this.getMetricModel(), null, \"metricmodel\", null, 0, 1, LoadGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLoadGenerator_Hardware(), this.getHARDWARE(), \"hardware\", null, 0, 1, LoadGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLoadGenerator_Monitor(), this.getMonitor(), null, \"monitor\", null, 0, 1, LoadGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(monitorEClass, Monitor.class, \"Monitor\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMonitor_Hostname(), ecorePackage.getEString(), \"hostname\", null, 0, 1, Monitor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMonitor_Ip(), ecorePackage.getEString(), \"ip\", null, 0, 1, Monitor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMonitor_Sut(), this.getSUT(), null, \"sut\", null, 0, -1, Monitor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMonitor_Hardware(), this.getHARDWARE(), \"hardware\", null, 0, 1, Monitor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMonitor_Description(), ecorePackage.getEString(), \"description\", \"Machine responsible for monitoring the performance metrics of the SUT. This object is optional, since the Load Generator object, besides generating workload for virtual users, can also play the role of monitoring.\", 0, 1, Monitor.class, !IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(metricModelEClass, MetricModel.class, \"MetricModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMetricModel_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, MetricModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMetricModel_Memory(), theOpenmlperfPerformanceMetricPackage.getMemory(), null, \"memory\", null, 0, 1, MetricModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMetricModel_Transaction(), theOpenmlperfPerformanceMetricPackage.getTransaction(), null, \"transaction\", null, 0, 1, MetricModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMetricModel_Disk(), theOpenmlperfPerformanceMetricPackage.getDisk(), null, \"disk\", null, 0, 1, MetricModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMetricModel_Criteria(), theOpenmlperfPerformanceMetricPackage.getCriteria(), null, \"criteria\", null, 0, -1, MetricModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMetricModel_Threshold(), theOpenmlperfPerformanceMetricPackage.getThreshold(), null, \"threshold\", null, 0, -1, MetricModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMetricModel_Associationcountercriteriathreshold(), theOpenmlperfPerformanceMetricPackage.getAssociationCounterCriteriaThreshold(), null, \"associationcountercriteriathreshold\", null, 0, -1, MetricModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMetricModel_DiskCounter(), theOpenmlperfPerformanceMetricPackage.getDisk_IO_Counter(), null, \"diskCounter\", null, 0, -1, MetricModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMetricModel_TransactionCounter(), theOpenmlperfPerformanceMetricPackage.getTransactionCounter(), null, \"transactionCounter\", null, 0, -1, MetricModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMetricModel_MemoryCounter(), theOpenmlperfPerformanceMetricPackage.getMemoryCounter(), null, \"memoryCounter\", null, 0, -1, MetricModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMetricModel_Counter(), theOpenmlperfPerformanceMetricPackage.getCounter(), null, \"counter\", null, 0, -1, MetricModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMetricModel_Metric(), theOpenmlperfPerformanceMetricPackage.getMetric(), null, \"metric\", null, 0, -1, MetricModel.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(suT_TYPEEEnum, openmlperf.openmlperfPerformanceMonitoring.SUT_TYPE.class, \"SUT_TYPE\");\n\t\taddEEnumLiteral(suT_TYPEEEnum, openmlperf.openmlperfPerformanceMonitoring.SUT_TYPE.DESKTOPAPP);\n\t\taddEEnumLiteral(suT_TYPEEEnum, openmlperf.openmlperfPerformanceMonitoring.SUT_TYPE.DATABASE);\n\t\taddEEnumLiteral(suT_TYPEEEnum, openmlperf.openmlperfPerformanceMonitoring.SUT_TYPE.WEBAPP);\n\t\taddEEnumLiteral(suT_TYPEEEnum, openmlperf.openmlperfPerformanceMonitoring.SUT_TYPE.WEBSERVICE);\n\n\t\tinitEEnum(hardwareEEnum, openmlperf.openmlperfPerformanceMonitoring.HARDWARE.class, \"HARDWARE\");\n\t\taddEEnumLiteral(hardwareEEnum, openmlperf.openmlperfPerformanceMonitoring.HARDWARE.PHYSICAL_MACHINE);\n\t\taddEEnumLiteral(hardwareEEnum, openmlperf.openmlperfPerformanceMonitoring.HARDWARE.VIRTUAL_MACHINE);\n\t\taddEEnumLiteral(hardwareEEnum, openmlperf.openmlperfPerformanceMonitoring.HARDWARE.CLOUD_SERVICE);\n\t}", "public void initialize() {\r\n }", "public void finish() {\n if (Interpreter.getExtension() != null) {\n Interpreter.getExtension().setHierarchy(null);\n }\n }", "@Override\n\tpublic void afterClassSetup() {\n\t\t\n\t}", "public void initialize() {\n }", "public void initialize()\r\n\t{\r\n\t\tdatabaseHandler = DatabaseHandler.getInstance();\r\n\t\tfillPatientsTable();\r\n\t}", "public void onInitializeComplete() {\n }", "@Override\n public void prepare() {\n applicationDeployer.initialize();\n this.initialize();\n }", "public static void initialization() {\n System.out.println(\"initialization\");\n try {\n HibernateUtil.updateSchema();\n } catch (Exception e) {\n throw new RuntimeException(e.getMessage());\n }\n }", "public void initialize() {\n }", "private void initialize() {\n }", "@Override\n public void autonomousInit() {\n }", "@Override\n public void autonomousInit() {\n }", "public void autonomousInit() {\n \n }" ]
[ "0.6563573", "0.6461481", "0.6435888", "0.64176077", "0.6406619", "0.640171", "0.639678", "0.6380065", "0.63626564", "0.63521", "0.6340519", "0.6339332", "0.6320037", "0.63173765", "0.63113564", "0.6310654", "0.63026124", "0.62920785", "0.6283156", "0.6268637", "0.62572575", "0.6230113", "0.62258226", "0.6224007", "0.62218493", "0.62186384", "0.6214447", "0.61984026", "0.61969936", "0.6194887", "0.6185239", "0.6180309", "0.61724335", "0.61701614", "0.6158424", "0.6143881", "0.61226547", "0.6112329", "0.61081743", "0.60945046", "0.60936135", "0.6083511", "0.60610634", "0.60455936", "0.6044972", "0.6044955", "0.6043951", "0.6037404", "0.6028705", "0.6028052", "0.6027965", "0.60239935", "0.60185355", "0.6014213", "0.5999743", "0.5996149", "0.59933215", "0.5984552", "0.59840715", "0.59632325", "0.59615725", "0.59522456", "0.594183", "0.5906826", "0.58881146", "0.5874775", "0.5863939", "0.58256036", "0.58205986", "0.5802468", "0.58018345", "0.57643443", "0.57507175", "0.5732192", "0.5710216", "0.5660936", "0.5650193", "0.5638396", "0.56333095", "0.5622426", "0.5602274", "0.55990607", "0.5561713", "0.5558668", "0.55479795", "0.55378693", "0.55287826", "0.5522117", "0.5521816", "0.5507534", "0.5483404", "0.5483248", "0.54478097", "0.5439845", "0.54361284", "0.54353297", "0.5395743", "0.538709", "0.538709", "0.5381345" ]
0.6408097
4
Creates a new moveable entity setting the new position.
public MoveableEntity(double posX, double posY, Map map) { super(posX , posY, map); this.newPosX = posX; this.newPosY = posY; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Position createPosition();", "public void setPosition(Point newPosition);", "Position getNewPosition();", "public void move() {\n this.pposX = this.posX;\n this.pposY = this.posY;\n this.posX = newPosX;\n this.posY = newPosY;\n }", "public void setMoveTo(Coordinate coordinate);", "public void setPosition(Position pos);", "void setPosition(Position position);", "void setPosition(Position position);", "Entity(Vector3f position) {\n this.position = position;\n }", "Position_Position createPosition_Position();", "public void place(Position position) { this.position = position; }", "public abstract void setPosition(Position position);", "void setPosition(Position p);", "void spawnEntityAt(String typeName, int x, int y);", "final protected void setSpawnPosition(int newX, int newY)\n {\n spawnPoint = new Point(newX, newY);\n boundingBox.setLocation(spawnPoint);\n }", "public abstract void move(int newXPosition, int newYPosition, PiecePosition position) throws BoardException;", "void makeMove(Location loc);", "public abstract void move(Position position);", "@Override\n public Move makeMove() {\n Random random = new Random();\n int max = this.board.getBoardDimension()*4 - 1;\n int row = random.nextInt(max);\n int col = random.nextInt(max);\n Point point = new Point(row, col);\n\n while (!this.board.validPoint(point)) {\n row = random.nextInt(max);\n col = random.nextInt(max);\n point.setPoint(row, col);\n }\n\n Move m = new Move();\n m.P = this.player;\n m.Row = row;\n m.Col = col;\n\n this.board.update(m);\n return m;\n }", "public void setPosition(Position p);", "PositionedObject(){\n float x = DrawingHelper.getGameViewWidth()/2;\n float y = DrawingHelper.getGameViewHeight()/2;\n _position.set(x,y);\n }", "public void moveTo(Position newPosition)\n\t{\n\t\tcurrentPosition = newPosition;\n\t}", "Position_ordonnee createPosition_ordonnee();", "public void setMovement(){\n\t\tfloat distance = GameManager.getInstance().getGameCamera().getWidth();\n\t\tfloat durationTime = distance/this.speed;\n\t\t\n\t\tmoveX = new MoveByModifier(durationTime, -(this.xInicial-this.xFinal), 0);\n\t\t\n\t\tthis.registerEntityModifier(moveX);\n\t}", "public void moveTo(Vector position) {\n }", "public void setPosition(Point position);", "void setPosition(){\n Random random =new Random();\n position = new Position(random.nextInt(maxrows),random.nextInt(maxcols));\n\n }", "public void setPosition(Position pos) {\n position = new Position(pos);\n }", "public Entity() {\n this.position = new Point(0,0);\n realX=0;\n realY=0;\n }", "public Move createMove(Move lastMove) {\n // unused for now\n return null;\n }", "@Override\n public Position setPosition(double x, double y) {\n this.x = x;\n this.y = y;\n\n return new Position(x, y);\n }", "void setPosition(Tile t);", "public void setPosition(Point newPosition)throws IllegalArgumentException {\n\t\tif (newPosition.x < 0 || newPosition.y < 0 || newPosition.x > 30 || newPosition.y > 30){\n\t\t\tthrow new IllegalArgumentException();\n\t\t} else {\n\t\t\tthis.position = newPosition;\n\t\t}\n\t}", "@PropertySetter(role = POSITION)\n\t<E extends CtElement> E setPosition(SourcePosition position);", "public abstract Object makeMove(Clue clue, Bipartite bipartite);", "public void setPosition(Vector2 position);", "public void setPosition(com.hps.july.persistence.Position arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().setPosition(arg0);\n }", "void makeMove(Move move) {\r\n makeMove(move.from(), move.to());\r\n }", "@Test\n\tpublic final void testMoveTo() {\n\t\tRoom testRoom = new Room(\"247\", 2, \"Computer Lab\");\n\t\t\n\t\tanimal.moveTo(testForest);\n\t\tassertEquals(\"Move To Forest\", animal.location(), testForest);\n\t\t\n\t\tanimal.moveTo(testRoom);\n\t\tassertEquals(\"Move To Room\", animal.location(), testForest);\t\n\t\t\n\t}", "public void spawnEntity(AEntityB_Existing entity){\r\n\t\tBuilderEntityExisting builder = new BuilderEntityExisting(entity.world.world);\r\n\t\tbuilder.loadedFromSavedNBT = true;\r\n\t\tbuilder.setPositionAndRotation(entity.position.x, entity.position.y, entity.position.z, (float) -entity.angles.y, (float) entity.angles.x);\r\n\t\tbuilder.entity = entity;\r\n\t\tworld.spawnEntity(builder);\r\n }", "public static void new_position( Body body, double t ){\r\n body.lastState.copyStateVectors( body.currentState );\r\n body.currentState.x = body.currentState.x + body.currentState.vx * t; // new x\r\n body.currentState.y = body.currentState.y + body.currentState.vy * t; // new y\r\n body.currentState.z = body.currentState.z + body.currentState.vz * t; // new z\r\n }", "public void move() {\n super.move(DIRECTION.getRandom());\n }", "public void setPosition(int position);", "private void move(double newXPos){\n this.setX(newXPos);\n }", "void setPosition(double xPos, double yPos);", "void setPosition(Vector3f position);", "public Position create() {\n\t\tfinal Actor actorLogged = this.actorService.findActorLogged();\n\t\tAssert.notNull(actorLogged);\n\t\tthis.actorService.checkUserLoginCompany(actorLogged);\n\n\t\tPosition result;\n\n\t\tresult = new Position();\n\t\tfinal Collection<Problem> problems = new HashSet<>();\n\t\tfinal Collection<Application> applications = new HashSet<>();\n\n\t\t// R4\n\t\tfinal String ticker = \"\"; //Será generado en el reconstruct\n\n\t\tresult.setTicker(ticker);\n\t\tresult.setProblems(problems);\n\t\tresult.setApplications(applications);\n\t\tresult.setIsFinalMode(false);\n\t\tresult.setIsCancelled(false);\n\n\t\treturn result;\n\t}", "@Override\n\tpublic void move(int xPos, int yPos) {\n\t}", "public Item createNew(int xpos, int ypos) {\r\n Item i = new Item(name, id);\r\n i.setPosition(xpos, ypos);\r\n return i;\r\n }", "static public NewMovement create(PosRotScale originLoc,Vector3 destination_loc, int duration) {\n\t\tPosRotScale destinationState = originLoc.copy(); //make a new PosRotScale from the original location\n\t\t\n\t\t//but we change its position\n\t\tdestinationState.setToPosition(destination_loc);\n\n\t\tGdx.app.log(logstag, \"_______________requested pos :\"+destination_loc);\n\t\t\n\t\t\t\t\n\t\tNewMovement newmovement= new NewMovement(destinationState,duration);\n\t\tnewmovement.currenttype = MovementTypes.Absolute;\n\n\t\tGdx.app.log(logstag, \"_______________destination pos after creation:\"+newmovement.destination.position);\n\t\t\t\n\t\treturn newmovement;\n\t}", "public void setPosition(float x, float y);", "@Test\r\n\tpublic void testSetPosition(){\n\t\tWinnerTitle title = new WinnerTitle(1, 0, 0);\r\n\t\ttitle.setPosition(10, 40);\r\n\t\t\r\n\t\tassertEquals(10, title.getPositionX());\r\n\t\tassertEquals(40, title.getPositionY());\r\n\t}", "@Override\n\tpublic void setPosition(Vector3 pos) {\n\t\t\n\t}", "public abstract Point move(Point position);", "private Vector2d generateNewPositionForChild()\n {\n\n Random generator = new Random();\n List<Vector2d> freePositions = new LinkedList<>(); //tutaj przechowywane sa wolne pozycje wokol\n Vector2d position;\n Directions directionToAdd;\n\n for(int i = 0; i<8; i++)\n {\n directionToAdd = new Directions(i); //wykorzystujemy klase directions do generowania pozycji wokol\n position = this.position.add(directionToAdd.move());\n if(map.animalsAt(position).isEmpty())\n {\n freePositions.add(position);\n }\n }\n\n if(freePositions.isEmpty()) //jezeli nie ma wolnych pozycji\n {\n //jesli nie ma wolnych pozycji\n int x = generator.nextInt(8);\n directionToAdd = new Directions(x);\n return this.position.add(directionToAdd.move());\n }\n\n //jezeli mamy wolne pozycje to generujemy dowolna z listy\n int x = generator.nextInt(freePositions.size());\n Vector2d newPosition = freePositions.get(x);\n\n return newPosition;\n }", "public DirectedPosition withPosition(SubCell newPosition) {\r\n return new DirectedPosition(newPosition, this.direction);\r\n }", "Entity createEntity();", "static public NewMovement create(AnimatableModelInstance originObject, AnimatableModelInstance targetObject, int duration) {\n\t\t\n\t\tVector3 posT = targetObject.transState.position.cpy();\t\n\t\t\t\n\t\treturn create(originObject.transState, posT.x, posT.y,posT.z, duration);\n\t}", "public void PositionSet(int position);", "public void setPos(int pos);", "public void setPos(int pos);", "public void move();", "public void move();", "public PersistentMoveToCommand newMoveToCommand(long idCreateIfLessZero) throws PersistenceException {\n if(idCreateIfLessZero > 0) return (PersistentMoveToCommand)PersistentProxi.createProxi(idCreateIfLessZero, 269);\n long id = ConnectionHandler.getTheConnectionHandler().theMoveToCommandFacade.getNextId();\n MoveToCommand result = new MoveToCommand(null,null,null,null,null,id);\n Cache.getTheCache().put(result);\n return (PersistentMoveToCommand)PersistentProxi.createProxi(id, 269);\n }", "public Entity(Point position, int gridSize) {\n this.position = new Point(position);\n this.gridSize = gridSize;\n direction = UP;\n\n // without this dummy node, rotation does not work properly\n getChildren().add(new Rectangle(gridSize, gridSize, Color.TRANSPARENT));\n\n update();\n }", "public void setPostion(int newXPosition, int newYPosition) {\n xPosition = newXPosition;\n yPosition = newYPosition;\n }", "void setPosition(Point point);", "@Override\n\tpublic void move() {\n\t\theading = Heading.randHeading();\n\t\tif (heading == Heading.NORTH) {\n\t\t\tthis.location.y -= Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.EAST) {\n\t\t\tthis.location.x += Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.SOUTH) {\n\t\t\tthis.location.y += Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.WEST) {\n\t\t\tthis.location.x -= Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t}\n\t\tadjustPos();\n\t\tinfect();\n\t}", "public void moveTo(double newX, double newY, double newZ){\n pos[0] = newX;\n pos[1] = newY;\n pos[2] = newZ;\n }", "private void setPosition(int startPosition) {\n switch (direction) {\n case UP:\n case DOWN:\n this.posX = componentToMove.getX();\n this.posY = componentToMove.getY() + (direction == Direction.UP ? startPosition : -startPosition);\n break;\n default:\n this.posX = componentToMove.getX() + (direction == Direction.LEFT ? startPosition : -startPosition);\n this.posY = componentToMove.getY();\n }\n }", "@SuppressWarnings(\"unused\")\n void spawn(Entity entity);", "public ModifiedLocation position(Integer position) {\n this.position = position;\n return this;\n }", "public final void move(Coordinates coordinates) throws Exception {\n if (!canMove(coordinates))\n throw new Exception(\"Entity cannot move there! \" + this + \", \"\n + coordinates);\n this.coordinates = coordinates;\n EventManager.onEntityMove(this);\n }", "public void moveTo(int newX, int newY) {\n xPosition = newX-radius;\n yPosition = newY-radius;\n }", "private Position getTestPos1() {\r\n Grid grid = GridBuilder.builder()\r\n .withMaxX(10)\r\n .withMaxY(10)\r\n .withMinY(-20)\r\n .withMinY(-20)\r\n .build();\r\n Moveable moveable = MoveableBuilder.builder()\r\n .withGrid(grid)\r\n .withShape(PositionShapeBuilder.builder()\r\n .withPosition(Positions.of(Directions.S, 0, 0, 0))\r\n .build())\r\n .withVelocity(100)\r\n .build();\r\n moveable.moveForward();\r\n moveable.turnRight();\r\n moveable = MoveableBuilder.builder()\r\n .withGrid(grid)\r\n .withShape(PositionShapeBuilder.builder()\r\n .withPosition(moveable.getPosition())\r\n .build())\r\n .withVelocity(50)\r\n .build();\r\n moveable.moveForward();\r\n PositionImpl position = (PositionImpl) moveable.getPosition();\r\n moveable.makeTurn(position.calcAbsoluteAngle() - position.getDirection().getAngle());\r\n return moveable.getPosition();\r\n }", "public void SetPosition(Vector2 position)\n\t{\n\t\tTransform transform = parent.transform;\n\t\ttransform.position = position;\n\t\t// Dont loose your dP!\n\t\tpreviousPosition = Vector2.Add(position,velocity.negate());\n\t}", "public void case4_Position() {\r\n Position testPosition = new Position(0,0);\r\n\r\n }", "void setPos(float x, float y);", "public Move(Player player, int moveX, int moveY) {\n super();\n this.player = player;\n this.moveX = moveX;\n this.moveY = moveY;\n }", "void setPos(Vec3 pos);", "public static NewMovement create(PosRotScale originLoc, float ex, float ey,float ez, int duration) {\n\n/*\n\t\tVector3 posO = new Vector3();\n\t\toriginObject.transform.getTranslation(posO);\n\t\t\n\t\tQuaternion orotation = new Quaternion();\n\t\toriginObject.transform.getRotation(orotation,true); //existing rotation\n\t\t\n\t\t//first we create a matrix for the destination location reusing the same rotation\n\t\t Vector3 destination_loc = new Vector3(ex,ey,ez);\n\t\t Vector3 destination_scale = new Vector3(1,1,1);\n\t\t// Matrix4 destination = new Matrix4(destination_loc,orotation,destination_scale);\n\t\t \n\t\t //the difference is the new movement\n\t\tMatrix4 oldloc = originObject.transform.cpy();\n\t\t\n\t\t Gdx.app.log(logstag, \"_____________________________________________destination_loc:\"+destination_loc.x+\",\"+destination_loc.y+\",\"+destination_loc.z);\n\t\t\t\n\t\t Vector3 destination_loc2 = destination_loc.mul(oldloc);\n\t\t \n\t\t Gdx.app.log(logstag, \"________________________=______destination_loc:\"+destination_loc2.x+\",\"+destination_loc2.y+\",\"+destination_loc2.z);\n\t\t\t\n\t\t\t\n\t\tMatrix4 destinationmatrix = new Matrix4().setTranslation(destination_loc2);\n\t\t\n\t\t*/\n\t\t Vector3 destination_loc = new Vector3(ex,ey,ez);\n\t\t \n\t\treturn create( originLoc, destination_loc, duration);\n\t\t\n\t}", "public void move(){\n\t\t\n\t}", "@Override\n\tpublic void move() {\n\n\t}", "public void moveEntity(Entity entity, Direction direction, float delta) {\r\n float newX = entity.getX();\r\n float newY = entity.getY();\r\n\r\n float velocity = entity.getVelocity();\r\n float distanceCovered = velocity * delta;\r\n\r\n switch (direction) {\r\n case NORTH:\r\n newY = newY + distanceCovered;\r\n if(isColliding(newX, newY))\r\n return;\r\n\r\n if(entity instanceof Player)\r\n gameCamera.moveCameraVertically(newY);\r\n break;\r\n case EAST:\r\n newX = newX + distanceCovered;\r\n if(isColliding(newX, newY))\r\n return;\r\n\r\n if(entity instanceof Player)\r\n gameCamera.moveCameraHorizontally(newX);\r\n break;\r\n case WEST:\r\n newX = newX - distanceCovered;\r\n if(isColliding(newX, newY))\r\n return;\r\n\r\n if(entity instanceof Player)\r\n gameCamera.moveCameraHorizontally(newX);\r\n break;\r\n case SOUTH:\r\n newY = newY - distanceCovered;\r\n if(isColliding(newX, newY))\r\n return;\r\n\r\n if(entity instanceof Player)\r\n gameCamera.moveCameraVertically(newY);\r\n break;\r\n }\r\n\r\n //TODO: Increase performance (e.g. only check for items when actually changing layer position)\r\n Position tilePosition = Utils.toTilePosition(newX + 20, newY + 20);\r\n Optional<Map.Entry<Position, Item>> optMapItem = getMapItem(tilePosition.x, tilePosition.y);\r\n if(optMapItem.isPresent()) {\r\n Map.Entry<Position, Item> itemEntry = optMapItem.get();\r\n entity.getItems().add(itemEntry.getValue());\r\n gameItems.remove(itemEntry.getKey());\r\n }\r\n\r\n entity.setMoving(true);\r\n entity.setX(newX);\r\n entity.setY(newY);\r\n }", "public void placePiece(Piece newPiece){pieceAtVertex = newPiece;}", "Position_changerOrdonnee createPosition_changerOrdonnee();", "protected abstract void moveTo(final float x, final float y);", "Spawn(LatLng position) {\n this.position = position;\n return;\n }", "@Override\r\n\tpublic void move() {\n\r\n\t}", "public void moveTo(Vector3d pos) {\r\n currentPosition = pos;\r\n transform3D.setTranslation(currentPosition);\r\n transformGroup.setTransform(transform3D);\r\n }", "public Move() {\r\n\t}", "public BackgroundEntity(Game g, String r, int newX, int newY) {\r\n super(r, newX, newY); // calls the constructor in Entity\r\n game = g; // sets game\r\n dx = -moveSpeed; // start off moving left\r\n }", "<E extends CtElement> E setPositions(SourcePosition position);", "@Override\n\tpublic void move() {\n\t\t\n\t}", "private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }", "@Override\n\tpublic void move() {\n\t}", "public void move() {\n\r\n\t}", "public abstract void move();", "public abstract void move();", "public abstract void move();" ]
[ "0.6693897", "0.64017045", "0.6310413", "0.6260884", "0.61599296", "0.6136949", "0.61283493", "0.61283493", "0.61228514", "0.6090415", "0.6053216", "0.6021864", "0.59691775", "0.59669274", "0.59629244", "0.5953178", "0.5948569", "0.5946906", "0.5938371", "0.5933618", "0.59173286", "0.5902", "0.584283", "0.5836212", "0.5822231", "0.58085686", "0.57985324", "0.57940257", "0.5783647", "0.5775908", "0.574543", "0.573222", "0.5715551", "0.5698759", "0.56964815", "0.5693303", "0.56932586", "0.56914556", "0.56791115", "0.5677658", "0.5653024", "0.5641106", "0.5631554", "0.5630976", "0.5630049", "0.5613694", "0.560978", "0.5609389", "0.5598421", "0.5596021", "0.55876976", "0.5582909", "0.55823404", "0.55801743", "0.55716455", "0.5568024", "0.55594695", "0.5549524", "0.5529712", "0.55232525", "0.55232525", "0.55205303", "0.55205303", "0.5517865", "0.55093646", "0.55086625", "0.55082464", "0.5502248", "0.55006087", "0.5499999", "0.5498325", "0.54960984", "0.54866284", "0.54848975", "0.5479663", "0.5478045", "0.5478008", "0.54704255", "0.54695296", "0.5456089", "0.54507095", "0.5443313", "0.54374284", "0.5433165", "0.54325485", "0.5431418", "0.54257274", "0.54183066", "0.5417281", "0.5416032", "0.5412925", "0.54106164", "0.5410604", "0.5410349", "0.54056245", "0.54041433", "0.5402207", "0.540218", "0.540218", "0.540218" ]
0.6634947
1
Method that is run if this Entity has collided when moving
public abstract void collided(Collision c);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onCollision(Entity collidedEntity)\n\t{\n\t\t\n\t}", "public void collided() {\n this.collided = true;\n }", "public abstract boolean isCollided();", "@Override\r\n\tpublic void Collision(Entity e)\r\n\t{\r\n\t\tthis.isAlive = false;\r\n\t}", "public void tick() {\n if (!isActive || !entities[0].canCollide || !entities[1].canCollide) {\n return;\n }\n\n rectangles[0].x = boundaries[0].x - 1;\n rectangles[1].x = boundaries[1].x - 1;\n rectangles[0].y = boundaries[0].y - 1;\n rectangles[1].y = boundaries[1].y - 1;\n\n isCollided = rectangles[0].intersects(rectangles[1]);\n\n if (isCollided && !firedEvent) {\n lastEvent = new EntityEntityCollisionEvent(this);\n onCollide();\n start(lastEvent);\n firedEvent = true;\n }\n if (!isCollided && firedEvent) {\n onCollisionEnd();\n end(lastEvent);\n firedEvent = false;\n }\n if (previouslyCollided != isCollided) {\n setBoundaryColors();\n }\n\n previouslyCollided = isCollided;\n }", "public void collisionDetection(){\r\n\t\tif( this.isActiv() ){\r\n\t\t\tif( this.isCollided() ){\r\n\t\t\t\tthis.onCollision();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public boolean collided() {\n return false;\n }", "boolean collidedWith(Entity e);", "void collisionHappened(int position);", "@Override\r\n public boolean canBeCollidedWith()\r\n {\r\n return !this.isDead;\r\n }", "public void collidedWith(Entity other){\n\t}", "@Override\r\n\tpublic void onEntityCollidedWithBlock(World world, int x, int y, int z, Entity entity) {\r\n\t\tif (!world.isRemote) {\r\n\t\t\tint state = getStateFromMeta(world.getBlockMetadata(x, y, z));\r\n\t\t\tif (state != 1) {\r\n\t\t\t\tthis.setStateIfMobInteractsWithMTPlate(world, x, y, z);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public boolean isCollided(gameObject obj){\n return Rect.intersects(obj.getastRect(), getRectplayer1())||\n Rect.intersects(obj.getastRect(), getRectplayer2()) ||\n Rect.intersects(obj.getastRect(), getRectplayer3()) ||\n Rect.intersects(obj.getastRect(), getRectplayer4());\n }", "@Override\n void onCollide(Actor other, Contact contact) {\n }", "public boolean doesCollide()\n {\n return doesCollide;\n }", "protected void collidesCallback(){\n\t\tphxService.collidingCallback(this);\n\t}", "@Override\r\n public void onEntityCollidedWithBlock(World worldIn, BlockPos pos, IBlockState state, Entity entityIn)\r\n {\r\n TileEntity tile = worldIn.getTileEntity(pos);\r\n if (tile instanceof TileEntityTransformer && entityIn instanceof EntityPlayer)\r\n {\r\n ((TileEntityTransformer) tile).onStepped((EntityPlayer) entityIn);\r\n }\r\n super.onEntityCollidedWithBlock(worldIn, pos, state, entityIn);\r\n }", "@Override\n\tpublic boolean hasCollide(Entity e) {\n\t\treturn rect.intersects(e.getRectangle());\n\t}", "void collide() {\n for (Target t : this.helicopterpieces) {\n if (!t.isHelicopter && ((t.x == this.player.x && t.y == this.player.y)\n || (t.x == this.player2.x && t.y == this.player2.y))) {\n this.collected--;\n t.isCollected = true;\n }\n if (t.isHelicopter && this.collected == 1\n && ((t.x == this.player.x && t.y == this.player.y) || (t.isHelicopter\n && this.collected == 1 && t.x == this.player2.x && t.y == this.player2.y))) {\n this.collected = 0;\n this.helicopter.isCollected = true;\n }\n }\n }", "public boolean canBeCollidedWith()\n {\n return !this.isDead;\n }", "public boolean canBeCollidedWith()\n {\n return !this.isDead;\n }", "public void collide(DynamicCollEvent dce, int collRole) {\n if (collRole == DynamicCollEvent.COLL_AFFECTED) {\n BasicGameObject invoker = dce.getInvoker();\n if (invoker instanceof Monster) { /* Do nothing */ }\n if (invoker instanceof Player) {\n Player player = (Player) invoker;\n boolean harmedPlayer = (\n dce.getInvokerCollType() == DynamicCollEvent.COLL_LEFT ||\n dce.getInvokerCollType() == DynamicCollEvent.COLL_RIGHT ||\n dce.getInvokerCollType() == DynamicCollEvent.COLL_TOP ||\n dce.getInvokerCollType() == DynamicCollEvent.COLL_TOPLEFT ||\n dce.getInvokerCollType() == DynamicCollEvent.COLL_TOPRIGHT\n );\n boolean harmedByPlayer = (\n dce.getInvokerCollType() == DynamicCollEvent.COLL_BOTTOM ||\n dce.getInvokerCollType() == DynamicCollEvent.COLL_BOTTOMLEFT ||\n dce.getInvokerCollType() == DynamicCollEvent.COLL_BOTTOMRIGHT\n );\n\n if (harmedPlayer) {\n player.decreaseHealth(10); // This monster scores 10 hitpoints. ;)\n collLeftRight = true; // This way, we will turn around in advanceCycle.\n } else if (harmedByPlayer) {\n player.setVelocity(player.getVelX(), -20);\n this.getReferrer().getSndFX().play(SoundFX.SND_MONSTERSQUISH);\n this.decreaseHealth(100);\n referrer.getPlayer().increasePoints(5);\n } else {\n System.out.println(\"Undefined collision between Monster and Player. ERROR 30\");\n }\n }\n this.newX = dce.getAffectedNewX();\n this.newY = dce.getAffectedNewY();\n } else {\n this.newX = dce.getInvokerNewX();\n this.newY = dce.getInvokerNewY();\n }\n\n if (DEBUG) {\n if (this == this.getReferrer().getObjects()[9]) {\n System.out.println(\"DET F�RSTE MONSTERET HAR CRASHET MED PLAYER!!!\");\n }\n }\n }", "public boolean hasCollidedWith(InteractiveObject obj){\n\t\tif (obj == null) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn (leftCollision(obj) || rightCollision(obj));\n\t\t}\n\t}", "@Override\n public void onEntityCollidedWithBlock(World par1World, int par2, int par3, int par4, Entity par5Entity)\n {\n int meta = par1World.getBlockMetadata(par2, par3, par4);\n double motion = 1D;\n switch(meta)\n {\n case 0: motion = 1.0D; break;\n case 1: motion = 1.5D; break;\n case 2: motion = 1.5D; break;\n }\n par5Entity.motionX *= motion; par5Entity.motionZ *= motion;\n }", "protected void onPlayerCollide(long time) {\n\t\tspecialMovement(player1, GameMap.WALL);\n\t\tspecialMovement(player2, GameMap.WALL);\n\t}", "private void collisionsCheck() {\n\t\tif(this.fence.collisionTest(\n\t\t\t\tthis.spider.getMovementVector())) \n\t\t{\n\t\t\t// we actually hit something!\n\t\t\t// call collision handlers\n\t\t\tthis.spider.collisionHandler();\n\t\t\tthis.fence.collisionHandler();\n\t\t\t// vibrate!\n\t\t\tvibrator.vibrate(Customization.VIBRATION_PERIOD);\n\t\t\t// lose one life\n\t\t\tthis.data.lostLife();\n\t\t}\n\t}", "@Override\n\tpublic void collide(Entity e) {\n\n\t}", "@Override\n\tpublic boolean checkCollision() {\n\t\treturn true;\n\t}", "protected void onCollision(Actor other) {\r\n\r\n\t}", "@Override\n\tpublic boolean canBeCollidedWith() {\n\t\treturn !this.isDead;\n\t}", "public void collide(Entity wall) {\n\t\tthis.setCurrentAnimation(\"running collided_\" + orientation, FRAME_DURATION);\n\t\tthis.enableBoundingBox();\n\t}", "public void onCollision(GameObject go){\n\t\t// to be completed later\n\t}", "@Override\r\n public boolean collision(org.dyn4j.dynamics.Body body1, BodyFixture fixture1, org.dyn4j.dynamics.Body body2, BodyFixture fixture2) {\r\n //Default, keep processing this event\r\n\r\n return true;\r\n }", "@Override\r\n public void tick() {\n playerNextTo();\r\n if (playerContact() && isCollisioned()) {\r\n if (!((GameState) game.getGameState()).getWorld().getTile((int) (x + xMove), (int) (y + yMove)).isSolid()\r\n && isValidMove(xMove, yMove)) {\r\n x += xMove;\r\n y += yMove;\r\n }\r\n }\r\n }", "@Override\n\tpublic void move() {\n\t\tx += ((direction) * xSpeed);\n\t\t//If any sprite has collided with the left or right edge of the screen set collided to true\n\t\tif (x >= 800 - spriteImage.getWidth(null) || x <= 0) collided = true;\n\t}", "public boolean continueExecuting()\n\t{\n\t\treturn this.entity.posX != this.xPosition && this.yPosition != this.entity.posY && this.entity.posZ != this.zPosition;\n\t}", "protected boolean isColliding() {\n\t\treturn phxService.isColliding(this);\n\t}", "public void onEntityCollidedWithBlock(World world, int x, int y, int z, Entity entity)\n {\n \tentity.setInWeb();\n entity.motionY *= this.m_SinkRate;\n }", "public void noCollision(){\r\n this.collidingEntity2=null;\r\n this.collidingEntity=null;\r\n collidedTop=false;\r\n collide=false;\r\n }", "private boolean handleCollision(CollisionResult result, Node movingNode, Node anotherNode,\n double oldX, double oldY){\n if(result.containFlag(CollisionResult.REJECT)){\n // set translate co-ord back to before\n movingNode.setTranslateX(oldX);\n movingNode.setTranslateY(oldY);\n }\n if(result.containFlag(CollisionResult.LOSE)){\n System.out.println(\"You've LOST the game!\");\n Platform.runLater(this::handleLose);\n mainAnimation.stop();\n return true;\n }\n if(result.containFlag(CollisionResult.WIN)){\n System.out.println(\"You've WON the game!\");\n handleWin();\n mainAnimation.stop();\n return true;\n }\n if(result.containFlag(CollisionResult.DELETE_FIRST)){\n dungeonPane.getChildren().remove(movingNode);\n }\n if(result.containFlag(CollisionResult.DELETE_SECOND)){\n dungeonPane.getChildren().remove(anotherNode);\n }\n if(result.containFlag(CollisionResult.REFRESH_INVENTORY)){\n updateInventory();\n }\n if(result.containFlag(CollisionResult.REFRESH_EFFECT_TIMER)){\n // second one is the one being collided\n Potion potion = (Potion) result.getCollidingObjects()[1];\n Timer timer = new Timer(potion, arg -> player.removePotionEffect(engine, potion));\n\n timers.add(timer);\n }\n return false;\n }", "@Override\r\n\tpublic boolean collides (Entity other)\r\n\t{\r\n\t\tif (other == owner || other instanceof Missile)\r\n\t\t\treturn false;\r\n\t\telse\r\n\t\t\treturn super.collides(other);\r\n\t}", "public boolean snakeHasCollided() {\n if (isOutOfBounds(snake.getHead())) {\n return true;\n }\n //If head has hit body\n for (Cell snakeBody: snake.getBody()) {\n if (snake.getHead().equals(snakeBody)) {\n return true;\n }\n }\n return false;\n }", "@Override\n public boolean getCollidedStatus() {\n return collided;\n }", "private void checkPlayerCollisions() {\r\n\t\tGObject left = getElementAt(player.getX() - 1, player.getY() + player.getHeight() / 2.0);\r\n\t\tGObject right = getElementAt(player.getX() + player.getWidth() + 1, player.getY() + player.getHeight() / 2.0);\r\n\t\tif(dragon1 != null && (left == dragon1 || right == dragon1)) {\r\n\t\t\tremove(lifeBar);\r\n\t\t\tlifeBar = null;\r\n\t\t}\r\n\t\tif(dragon2 != null && (left == dragon2 || right == dragon2)) {\r\n\t\t\tremove(lifeBar);\r\n\t\t\tlifeBar = null;\r\n\t\t}\r\n\t}", "@Override\n public void collidedWith (Participant p)\n {\n \n }", "@Override\n public void onCollide (GameElement element) {\n\n }", "public void collisionEvent(Keeper keeper) {\r\n if (getPossessionStatus() &&\r\n (keeper.getTeam().getColor() != this.getTeam().getColor()))\r\n {\r\n if(!keeper.isStunned() && //They do not tackle you if they are stunned!\r\n random.nextInt(MAX_CHANCE) <= KEEPER_CHANCE) // and a 40% chance.\r\n {\r\n dropQuaffle(); // Simulating the chaser of the opposing team tackling you.\r\n }\r\n }\r\n super.collisionEvent(keeper);\r\n }", "public boolean willBoxesCollide(Unit player, float deltaX, float deltaY) {\n\tScene currentScene = WorldMap.getInstance().getCurrentScene();\n\tfor (Obstacle obstacle : currentScene.getObstacleList()) {\n\t if (player.collisionBetweenBoxes(deltaX, deltaY, obstacle) && player.getPosZ() < obstacle.getProtrusionHeight())\n\t\treturn true;\n\t}\n\t \n\treturn false;\n }", "public int checkCollisions() {\r\n\t\tArrayList<Comet> comets = Comet.getCometList();\r\n\r\n\t\tfor (int i = 0; i < comets.size(); i++) {\r\n\t\t\tComet tempComet = comets.get(i);\r\n\r\n\t\t\tif (getBounds().intersects(tempComet.getBounds())) {\r\n\t\t\t\tComet.removeComet(tempComet);\r\n\t\t\t\tcol++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn col;\r\n\t}", "public boolean collided(Rectangle r){\n\t\t\tif (this.intersects(r)) { return true;} \n\t\t\telse return false;\n\t\t}", "@Override\n public void gameObjectCollisionOccurred(List<GameObject> collidedGameObjects)\n {\n for (GameObject go : collidedGameObjects)\n {\n if (this instanceof Speler && go instanceof AI)\n {\n if (this.getGrootte() > ((AI) go).getGrootte())\n {\n ((Speler) this).speelHapGeluid();\n g.deleteGameObject(go);\n ((Speler) this).maakGroter(((AI) go).getGrootte() / marge);\n } else if (this.getGrootte() < ((AI) go).getGrootte())\n {\n opgegeten = true;\n }\n oceaan.verhoogScore();\n }\n }\n }", "private void laserCollisions() {\r\n\t\tGObject topLeft = getElementAt(laser.getX() - 1, laser.getY());\r\n\t\tGObject topRight = getElementAt(laser.getX() + laser.getWidth() + 1, laser.getY());\r\n\t\tGObject bottomLeft = getElementAt(laser.getX() - 1, laser.getY() + laser.getHeight());\r\n\t\tGObject bottomRight = getElementAt(laser.getX() + laser.getWidth() + 1, laser.getY() + laser.getHeight());\r\n\t\tif(topLeft == player || topRight == player || bottomLeft == player || bottomRight == player) {\r\n\t\t\tremove(laser);\r\n\t\t\tlaser = null;\r\n\t\t\thits++;\r\n\t\t\tloseLife();\r\n\t\t}\r\n\t}", "@Override\n\tpublic boolean isCollided(SpaceShip invader, Rocket rocket) {\n\t\t//(posX + width) /2 , (posY + height) /2\n\t\tint spaceshipCenterX = (int)(invader.getPosition().getX() + invader.getSize().getWidth()) / 2;\n\t\tint spaceshipCenterY = (int)(invader.getPosition().getY() + invader.getSize().getHeight()) / 2;\n\t\tPoint spaceshipCenter = new Point(spaceshipCenterX, spaceshipCenterY);\n\t\tif (spaceshipCenter == rocket.getPosition())\n\t\t\treturn true;\n\t\treturn false;\n\t}", "@Override\n\tprotected void collideEnd(Node node) {\n\n\t}", "public void collide(){\n hp -= 10;\n resetPos();\n //canMove = false;\n }", "private void fireball2Collisions() {\r\n\t\tGObject topLeft = getElementAt(fireball2.getX() - 1, fireball2.getY());\r\n\t\tGObject topRight = getElementAt(fireball2.getX() + fireball2.getWidth() + 1, fireball2.getY());\r\n\t\tGObject bottomLeft = getElementAt(fireball2.getX() - 1, fireball2.getY() + fireball2.getHeight());\r\n\t\tGObject bottomRight = getElementAt(fireball2.getX() + fireball2.getWidth() + 1, fireball2.getY() + fireball2.getHeight());\r\n\t\tif(topLeft == player || topRight == player || bottomLeft == player || bottomRight == player) {\r\n\t\t\tremove(fireball2);\r\n\t\t\tfireball2 = null;\r\n\t\t\thits++;\r\n\t\t\tloseLife();\r\n\t\t}\r\n\t}", "public abstract void collided(CircleCollider col);", "private void fireball1Collisions() {\r\n\t\tGObject topLeft = getElementAt(fireball1.getX() - 1, fireball1.getY());\r\n\t\tGObject bottomLeft = getElementAt(fireball1.getX() - 1, fireball1.getY() + fireball1.getHeight());\r\n\t\tGObject topRight = getElementAt(fireball1.getX() + fireball1.getWidth() + 1, fireball1.getY());\r\n\t\tGObject bottomRight = getElementAt(fireball1.getX() + fireball1.getWidth() + 1, fireball1.getY() + fireball1.getHeight());\r\n\t\tif(topLeft == player || bottomLeft == player || topRight == player || bottomRight == player) {\r\n\t\t\tremove(fireball1);\r\n\t\t\tfireball1 = null;\r\n\t\t\thits++;\r\n\t\t\tloseLife();\r\n\t\t}\r\n\t}", "public void onEntityMove(Entity entity) {\n\n }", "public void collide(CollisionEvent evt) {\n\t\tthis.colliding = true;\n\t\tif(evt.getEntity().getType().equals(\"PlayerCharacter\") && evt.getDirection().equals(Direction.TOP)){\n\t\t\tthis.addVector2D(new Vector2D(0,2));\n\t\t}\n\t\tif (this.getCollideTypes().contains(evt.getEntity().getType())\n\t\t\t\t&& (evt.getDirection().equals(Direction.BOTTOM))) {\n\t\t}\n\t}", "@Override\n\tpublic void handleCollision(GameObject otherObject) {\n\t\tif(otherObject instanceof Drone) {\n\t\t\tSystem.out.println(\"PlayerCyborg collided with a Drone cause 1 damage\\n\");\n\t\t\tthis.setDamageLevel(this.getDamageLevel()+1);\n\t\t}\n\t\telse if(otherObject instanceof NonPlayerCyborg) {\n\t\t\tSystem.out.println(\"PlayerCyborg collided with another cyborg cause 2 damage\\n\");\n\t\t\tthis.setDamageLevel(this.getDamageLevel()+2);\n\t\t}\n\t\telse if(otherObject instanceof Base) {\n\t\t\tint BaseID = ((Base) otherObject).getBaseID();\n\t\t\tif(this.getLastBaseReached()+1 == BaseID){\n\t\t\t\tint newBaseID = this.getLastBaseReached()+1;\n\t\t\t\tthis.setLastBaseReached(newBaseID);\n\t\t\t\tif(this.getLastBaseReached()+1 < 4){\n\t\t\t\t\tSystem.out.println(\"PlayerCyborg reach to base \" + newBaseID + \"\\n\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"Please collide base in sequential!\\n\" + \n\t\t\t\t\t\t \"The next sequential is \" + (this.getLastBaseReached()+1) + \"\\n\");\n\t\t\t}\n\t\t}\n\t\telse if(otherObject instanceof EnergyStation) {\n\t\t\tif(((EnergyStation) otherObject).getCapacity()!=0) {\n\t\t\t\tint beforeRuel = this.getEnergyLevel();\n\t\t\t\tif(this.getEnergyLevel()+((EnergyStation) otherObject).getCapacity()<this.getMaxEnergyLevel()) {\n\t\t\t\t\tthis.setEnergyLevel(this.getEnergyLevel()+((EnergyStation) otherObject).getCapacity());\n\t\t\t\t}else {\n\t\t\t\t\tthis.setEnergyLevel(this.getMaxEnergyLevel()); //over fuel the Energy\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"PlayerCyborg collided with a EnergyStation refuel \" + Math.abs(this.getEnergyLevel()-beforeRuel) + \" Energy\\n\");\n\t\t\t}\n\t\t}\n\t}", "private void collideWithBall() {\n die();\n }", "public void onUpdate()\n {\n super.onUpdate();\n this.jumpMovementFactor = 0.0F;\n this.renderYawOffset = this.rotationPitch = this.rotationYaw = 0.0F;\n\n if (this.target != null && this.target instanceof EntityLiving)\n {\n EntityLiving var1 = (EntityLiving) this.target;\n\n if (var1.getHealth() <= 0 || !this.canEntityBeSeen(var1))\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n return;\n }\n } else\n {\n if (this.target != null && this.target.isDead)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n return;\n }\n\n if (this.target == null)\n {\n this.target = this.worldObj.getClosestPlayerToEntity(this, -1.0D);\n\n if (this.target == null)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n\n if (!this.worldObj.isRemote)\n {\n this.setDead();\n }\n\n return;\n }\n }\n }\n\n if (this.posX == (double) this.getOrgX() && this.posY == (double) this.getOrgY() && this.posZ == (double) this.getOrgZ())\n {\n if (!this.isReformed())\n {\n this.setReformed(true);\n }\n\n this.stop();\n this.moveTimer = 0;\n }\n\n if (this.slider == null)\n {\n Vec3 var16 = Vec3.createVectorHelper(this.posX, this.posY, this.posZ);\n Vec3 var2 = Vec3.createVectorHelper(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);\n MovingObjectPosition var18 = this.worldObj.rayTraceBlocks(var16, var2);\n var16 = Vec3.createVectorHelper(this.posX, this.posY, this.posZ);\n var2 = Vec3.createVectorHelper(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);\n\n if (var18 != null)\n {\n var2 = Vec3.createVectorHelper(var18.hitVec.xCoord, var18.hitVec.yCoord, var18.hitVec.zCoord);\n }\n\n if (!this.worldObj.isRemote)\n {\n Object var4 = null;\n List var15 = this.worldObj.getEntitiesWithinAABBExcludingEntity(this, this.boundingBox.addCoord(this.motionX, this.motionY, this.motionZ).expand(4.0D, 4.0D, 4.0D));\n double var6 = 0.0D;\n\n for (int var8 = 0; var8 < var15.size(); ++var8)\n {\n Entity var9 = (Entity) var15.get(var8);\n\n if (var9.canBeCollidedWith() && var9 != this)\n {\n float var10 = 0.3F;\n\n if (var9 instanceof EntitySlider)\n {\n this.slider = (EntitySlider) var9;\n var18 = null;\n }\n\n AxisAlignedBB var11 = var9.boundingBox.expand((double) var10, (double) var10, (double) var10);\n MovingObjectPosition var12 = var11.calculateIntercept(var16, var2);\n\n if (var12 != null)\n {\n double var13 = var16.distanceTo(var12.hitVec);\n\n if (var13 < var6 || var6 == 0.0D)\n {\n var6 = var13;\n }\n }\n }\n }\n }\n\n if (this.slider == null || this.slider.isDead)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n\n if (!this.worldObj.isRemote)\n {\n this.setDead();\n }\n }\n } else if (this.slider.target != this.target)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n\n if (!this.worldObj.isRemote)\n {\n this.setDead();\n }\n } else\n {\n this.fallDistance = 0.0F;\n double var17;\n double var5;\n double var3;\n\n if (this.gotMovement)\n {\n if (this.isCollided)\n {\n var17 = this.posX - 0.5D;\n var3 = this.boundingBox.minY + 0.75D;\n var5 = this.posZ - 0.5D;\n\n if (this.crushed)\n {\n this.worldObj.playSoundEffect(this.posX, this.posY, this.posZ, \"random.explode\", 3.0F, (0.625F + (this.worldObj.rand.nextFloat() - this.worldObj.rand.nextFloat()) * 0.2F) * 0.7F);\n this.worldObj.playSoundAtEntity(this, \"aeboss.slider.collide\", 2.5F, 1.0F / (this.rand.nextFloat() * 0.2F + 0.9F));\n }\n\n this.stop();\n } else\n {\n if (this.speedy < 2.0F)\n {\n this.speedy += 0.035F;\n }\n\n this.motionX = 0.0D;\n this.motionY = 0.0D;\n this.motionZ = 0.0D;\n\n if (this.direction == 0)\n {\n this.motionY = (double) this.speedy;\n\n if (this.boundingBox.minY > (this.reform ? (double) this.getOrgY() : this.target.boundingBox.minY + 0.35D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 1)\n {\n this.motionY = (double) (-this.speedy);\n\n if (this.boundingBox.minY < (this.reform ? (double) this.getOrgY() : this.target.boundingBox.minY - 0.25D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 2)\n {\n this.motionX = (double) this.speedy;\n\n if (this.posX > (this.reform ? (double) this.getOrgX() - 1.0D : this.target.posX + 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 3)\n {\n this.motionX = (double) (-this.speedy);\n\n if (this.posX < (this.reform ? (double) this.getOrgX() - 1.0D : this.target.posX - 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 4)\n {\n this.motionZ = (double) this.speedy;\n\n if (this.posZ > (this.reform ? (double) this.getOrgZ() - 1.0D : this.target.posZ + 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 5)\n {\n this.motionZ = (double) (-this.speedy);\n\n if (this.posZ < (this.reform ? (double) this.getOrgZ() - 1.0D : this.target.posZ - 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n }\n }\n } else\n {\n this.motionY = 0.0D;\n\n if (this.moveTimer > 0)\n {\n --this.moveTimer;\n this.motionX = 0.0D;\n this.motionY = 0.0D;\n this.motionZ = 0.0D;\n } else\n {\n var17 = Math.abs(this.posX - (this.reform ? (double) this.getOrgX() : this.target.posX));\n var3 = Math.abs(this.boundingBox.minY - (this.reform ? (double) this.getOrgY() : this.target.boundingBox.minY));\n var5 = Math.abs(this.posZ - (this.reform ? (double) this.getOrgZ() : this.target.posZ));\n\n if (var17 > var5)\n {\n this.direction = 2;\n\n if (this.posX > (this.reform ? (double) this.getOrgX() - 1.0D : this.target.posX))\n {\n this.direction = 3;\n }\n } else\n {\n this.direction = 4;\n\n if (this.posZ > (this.reform ? (double) this.getOrgZ() - 1.0D : this.target.posZ))\n {\n this.direction = 5;\n }\n }\n\n if (var3 > var17 && var3 > var5 || var3 > 0.25D && this.rand.nextInt(5) == 0)\n {\n this.direction = 0;\n\n if (this.posY > (this.reform ? (double) this.getOrgY() : this.target.posY))\n {\n this.direction = 1;\n }\n }\n\n this.gotMovement = true;\n }\n }\n\n if (this.harvey > 0.01F)\n {\n this.harvey *= 0.8F;\n }\n }\n }", "public boolean hasCollided() {\r\n\t\treturn hasCollided;\r\n\t}", "@Override\n\tpublic void onUpdate() {\n\t\tif(!world.isRemote && !firstTick) {\n\t\t\tLCNetwork.net.sendToAllAround(new MessageSyncTNT(this), \n\t\t\t\t\tnew TargetPoint(this.dimension, this.posX, this.posY, this.posZ, 1024));\n\t\t\tfirstTick = true;\n\t\t}\n\t\t\n\t\tthis.prevPosX = this.posX;\n\t\tthis.prevPosY = this.posY;\n\t\tthis.prevPosZ = this.posZ;\n\t\tthis.motionY -= 0.03999999910593033D;\n\t\tthis.move(MoverType.SELF, this.motionX, this.motionY, this.motionZ);\n\t\tthis.motionX *= 0.9800000190734863D;\n\t\tthis.motionY *= 0.9800000190734863D;\n\t\tthis.motionZ *= 0.9800000190734863D;\n\n\t\tif (this.onGround)\n\t\t{\n\t\t\tthis.motionX *= 0.699999988079071D;\n\t\t\tthis.motionZ *= 0.699999988079071D;\n\t\t\tthis.motionY *= -0.5D;\n\t\t}\n\n\t\tif (this.fuse-- <= 0)\n\t\t{\n\t\t\tthis.setDead();\n\n\t\t\tif (!this.world.isRemote)\n\t\t\t{\n\t\t\t\tthis.explode();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.world.spawnParticle(EnumParticleTypes.SMOKE_LARGE, this.posX, this.posY + 0.5D, this.posZ, 0.0D, 0.0D, 0.0D);\n\t\t}\n\t}", "@Override\n \tpublic void collided(Entity x) {\n \t\t\n \t\tx.destroy();\n \t\t\n \t}", "private void checkForBulletCollisions() {\r\n\t\tbulletMoveOffScreen();\r\n\t\tbulletCollisionWithObject();\r\n\t}", "public boolean hasCollided(GameObject object1, GameObject object2){\n Position pos1 = object1.getPos();\n Position pos2 = object2.getPos();\n int object1Width = object1.getWidth();\n int object2Width = object2.getWidth();\n if(object1Width < 0){\n pos1.setX(pos1.getX()+object1Width);\n object1Width = Math.abs(object1Width);\n }\n if(object2Width < 0){\n pos2.setX(pos2.getX()+object2Width);\n object2Width = Math.abs(object2Width);\n }\n\n return(!(pos1.getX()+object1Width<pos2.getX()\n //Checks if the object is on either side of the other. If it is not, it is inside.\n || pos1.getY()>pos2.getY()+object2.getHeight()\n || pos1.getY() + object1.getHeight()<pos2.getY()\n || pos1.getX()>pos2.getX()+object2Width));\n }", "private void handleCollisions() {\n\t\t\n\t\tfor (ArrayList<Invader> row : enemyArray) {\n\t\t\tfor (Invader a : row) {\n\t\t\t\tcheckInvaderDeath(a);\n\t\t\t\tcheckPlayerDeath(a);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (Shot s : enemyShotList) {\n\t\t\t\n\t\t\tif (s.detectDownwardCollision(player.getX(), player.getY())) {\n\t\t\t\trunning = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tcollectPowerUp(armorPiercing);\n\t\tcollectPowerUp(explosive);\n\t}", "public void guardUpdate(){\r\n\t\t//check if a enemy has been spotted\r\n\t\tif (checkSight()){\r\n\t\t\tseen = true;\r\n\t\t} if (seen) {\r\n\t\t\tcreature.setSpeed(1.5);\r\n\t\t\tchaseEnemy(seenEnemy, 5);\r\n\t\t\treturn; //if player has been spotted end method here\r\n\t\t}\r\n\t\t//if no enemy has been spotted\r\n\t\tcreature.setSpeed(1);\r\n\t\tif (creature.getCreature().equals(CreatureType.PGuard) || creature.getCreature().equals(CreatureType.SGuard)){ //Patrol Guards and Stationary Guards\r\n\t\t\tif (index > checkpoints.size()-1){\r\n\t\t\t\tindex = 0;\r\n\t\t\t}\r\n\t\t\tgoToLocation (checkpoints.get(index));\r\n\t\t} else if(creature.getCreature().equals(CreatureType.RGuard)){ //Roaming Guards\r\n\t\t\troamArea();\r\n\t\t} if (!checkCollision(x, y)) {\r\n\t\t\tgoToLocation(x, y);\r\n\t\t}\r\n\t}", "void onNoCollision();", "public void collision() {\n\t\tcapacity = 0;\n\t\tcolor = ColorUtil.YELLOW;\n\t}", "private boolean stop() {\n\t\tboolean collide = false;\n\n\t\tdist = (int) MathMachine.distance((xOrigin - this.x), (yOrigin - this.y)); // distance traveled\n\t\tif (dist >= move_range) collide = true;\n\n\t\tif (Math.abs(x - xD) <= 2 && Math.abs(y - yD) <= 2) { // adding 8 shifts the collision box from the top left corner to the bottom right.\n\t\t\tcollide = true; // this is the important statement for collision detection. It works by looking at the tile you want to go to and seeing if it is solid.\n\t\t}\n\n\t\treturn collide;\n\t}", "@Override\n protected void onCollide(AbstractCollidableSprite target) {\n super.onCollide(target);\n this.getController().onCollide(target);\n\n // Hard code, not good!\n if(target instanceof Bomb){\n Vector2D oldCenterPos = getOldCenterPos();\n Vector2D curCenterPos = getCurCenterPos();\n// if(oldCenterPos.getX() <= 0 || oldCenterPos.getY() <= 0 || oldCenterPos.equals(curCenterPos)){\n// Vector2D newPos = this.getSpritePos().applyDir(this.getCurDirection(), -1);\n// this.setSpritePos(newPos);\n// CollideDetector.setDirtyFlag(true);\n// } else {\n// // Center better be stable before & after collision.\n// // Vector2D newCenterPos = oldCenterPos.advance(curCenterPos, 1);\n//\n// DIRECTIONS moveDir = Utilities.calculateDir(oldCenterPos, curCenterPos);\n// this.setSpritePos(this.getSpritePos().applyDir(moveDir, -1));\n//\n// CollideDetector.setDirtyFlag(true);\n// }\n\n double half_dist = oldCenterPos.dist(curCenterPos)/2;\n\n Vector2D targetCenterPos = target.getCurCenterPos();\n // Move the sprite away\n DIRECTIONS moveDir = Utilities.calculateDir(targetCenterPos, curCenterPos);\n Vector2D newPos = this.getSpritePos().applyDir(moveDir, half_dist > 1? half_dist:1);\n this.setSpritePos(newPos);\n CollideDetector.setDirtyFlag(true);\n }\n }", "public abstract void collideWith(Entity entity);", "public boolean gameEnd(){\r\n return !hasMovements(model.getCurrentPlayer().getColor());\r\n }", "public void collide(StaticCollEvent sce) {\n int cType = sce.getInvCollType();\n\n if (cType == StaticCollEvent.COLL_BOTTOM) {\n collBottom = true;\n this.newY = sce.getInvokerNewY();\n }\n if (cType == StaticCollEvent.COLL_BOTTOMLEFT || cType == StaticCollEvent.COLL_BOTTOMRIGHT) {\n collLeftRight = true;\n this.newX = sce.getInvokerNewX();\n this.newY = sce.getInvokerNewY();\n }\n if (cType == StaticCollEvent.COLL_LEFT || cType == StaticCollEvent.COLL_RIGHT) {\n this.velX = -this.velX; // Turn around.\n }\n if (collBottom || collLeftRight) {\n if (action == FALLING) {\n this.action = WALKING;\n this.velX = monsterSpeed;\n }\n } else {\n this.action = FALLING;\n this.newX = sce.getInvokerNewX();\n this.newY = sce.getInvokerNewY();\n }\n }", "@Override\r\n public boolean collision(org.dyn4j.dynamics.Body body1, BodyFixture fixture1, org.dyn4j.dynamics.Body body2, BodyFixture fixture2, Manifold manifold) {\r\n\r\n EntityId one = (EntityId) body1.getUserData();\r\n EntityId two = (EntityId) body2.getUserData();\r\n\r\n if (gravityState.isWormholeFixture(fixture1) || gravityState.isWormholeFixture(fixture2)) {\r\n return gravityState.collide(body1, fixture1, body2, fixture2, manifold, time.getTpf());\r\n }\r\n\r\n if (flagState.isFlag(one) || flagState.isFlag(two)) {\r\n return flagState.collide(body1, fixture1, body2, fixture2, manifold, time.getTpf());\r\n }\r\n\r\n return true; //Default, keep processing this event\r\n }", "public void unitCollision() {\n\t}", "@Override\n\tpublic void doCollidePlayer(Player player) {\n\t\t\n\t}", "public void checkCollision()\r\n\t{\r\n\t\t//for Bullets against Avatar and Enemy\r\n\t\tfor(int bulletIndex = 0; bulletIndex < bullets.size(); bulletIndex++)\r\n\t\t{\r\n\t\t\tBullet b = bullets.get(bulletIndex);\r\n\t\t\tif (b instanceof AvatarBullet)\r\n\t\t\t{\r\n\t\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\t\tboolean collided = false;\r\n\t\t\t\tfor (int enemyIndex = 0; enemyIndex < enemy.size(); enemyIndex++)\r\n\t\t\t\t{\r\n\t\t\t\t\tEnemy e = enemy.get(enemyIndex);\r\n\t\t\t\t\tif(((AvatarBullet) b).collidedWith(e))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tbullets.remove(bulletIndex);\r\n\t\t\t\t\t\tbulletIndex--;\r\n\t\t\t\t\t\tenemy.remove(enemyIndex);\r\n\t\t\t\t\t\tenemyIndex --;\r\n\t\t\t\t\t\tcollided = true;\r\n\t\t\t\t\t\tint score = getScore()+1;\r\n\t\t\t\t\t\tsetScore(score);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if (b instanceof EnemyBullet)\r\n\t\t\t{\r\n\t\t\t\tif (((EnemyBullet) b).collidedWith(avatar))\r\n\t\t\t\t{\r\n\t\t\t\t\tbullets.remove(bulletIndex);\r\n\t\t\t\t\tbulletIndex--;\r\n\t\t\t\t\tint health = Avatar.getLives()-1;\r\n\t\t\t\t\tavatar.setLives(health);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int platformIndex = 0; platformIndex < platforms.size(); platformIndex++)\r\n\t\t{\r\n\t\t\tPlatforms p = platforms.get(platformIndex);\r\n\t\t\tif (p instanceof Platforms)\r\n\t\t\t{\r\n\t\t\t\t//boolean collided = false;\r\n\t\t\t\t//Avatar a = avatar.get(enemyIndex);\r\n\t\t\t\tif(((Platforms) p).collidedWith(avatar))\r\n\t\t\t\t{\r\n\t\t\t\t\tsetAlive(true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tsetAlive(false);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tprotected void onDeathUpdate() {\n\t\thelpers.values().forEach(DragonHelper::onDeathUpdate);\n\n\t\t// unmount any riding entities\n\t\tremovePassengers();\n\n\t\t// freeze at place\n\t\tmotionX = motionY = motionZ = 0;\n\t\trotationYaw = prevRotationYaw;\n\t\trotationYawHead = prevRotationYawHead;\n\n\t\tif (isEgg()) {\n\t\t\tsetDead();\n\t\t} else {\n\t\t\t// actually delete entity after the time is up\n\t\t\tif (deathTime >= getMaxDeathTime()) {\n\t\t\t\tsetDead();\n\t\t\t}\n\t\t}\n\n\t\tdeathTime++;\n\t}", "private boolean hasCollided() {\r\n //Has the snake collided with itself?\r\n for (int i = 1; i < snake.getLength(); i++) {\r\n if (snake.getHead().equals(snake.getBody(i))) {\r\n return true;\r\n }\r\n }\r\n //Has the snake colided with the edge of the game grid?\r\n return snake.getHead().getX() < 0 || snake.getHead().getX() >= gridWidth || snake.getHead().getY() < 0 || snake.getHead().getY() >= gridHeight;\r\n }", "public abstract void onCollision();", "@Override\n synchronized public void run() {\n if (gameBoard.wasCollisionDetected()) {\n Point collisionPoint = gameBoard.getLastCollision();\n if (collisionPoint.x >= 0) {\n dummyText.setText(\"Last Collision XY (\" + Integer.toString(collisionPoint.x) + \",\" + Integer.toString(collisionPoint.y) + \")\");\n score++;\n }\n //turn off the animation until reset gets pressed\n //return;\n }\n frame.removeCallbacks(frameUpdate);\n\n Point playerNewPosition = new Point(gameBoard.getPlayerX(), gameBoard.getPlayerY());\n Point targetNewPosition = new Point(gameBoard.getTargetX(), gameBoard.getTargetY());\n Point obstacle1NewPosition = new Point(gameBoard.getObstacle1X(), gameBoard.getObstacle1Y());\n Point obstacle2NewPosition = new Point(gameBoard.getObstacle2X(), gameBoard.getObstacle2Y());\n\n updatePlayerVelocity();\n playerNewPosition.y = playerNewPosition.y + playerVelocity.y;\n if (playerNewPosition.y > playerMaxY) {\n // return doge to original position if it overshoots\n playerNewPosition.y = playerMaxY;\n performJump = false;\n button.setEnabled(true);\n }\n\n targetNewPosition.x = targetNewPosition.x + targetVelocity.x;\n if (targetNewPosition.x > memeMaxX || targetNewPosition.x < 5) {\n targetVelocity.x *= -1;\n }\n targetNewPosition.y = targetNewPosition.y + targetVelocity.y;\n if (targetNewPosition.y > memeMaxY || targetNewPosition.y < 5) {\n targetVelocity.y *= -1;\n }\n\n obstacle1NewPosition.x = obstacle1NewPosition.x + obstacle1Velocity.x;\n if (obstacle1NewPosition.x > memeMaxX || obstacle1NewPosition.x < 5) {\n obstacle1Velocity.x *= -1;\n }\n obstacle1NewPosition.y = obstacle1NewPosition.y + obstacle1Velocity.y;\n if (obstacle1NewPosition.y > memeMaxY || obstacle1NewPosition.y < 5) {\n obstacle1Velocity.y *= -1;\n }\n\n obstacle2NewPosition.x = obstacle2NewPosition.x + obstacle2Velocity.x;\n if (obstacle2NewPosition.x > memeMaxX || obstacle2NewPosition.x < 5) {\n obstacle2Velocity.x *= -1;\n }\n obstacle2NewPosition.y = obstacle2NewPosition.y + obstacle2Velocity.y;\n if (obstacle2NewPosition.y > memeMaxY || obstacle2NewPosition.y < 5) {\n obstacle2Velocity.y *= -1;\n }\n\n gameBoard.setPlayerPosition(playerNewPosition.x, playerNewPosition.y);\n gameBoard.setTargetPosition(targetNewPosition.x, targetNewPosition.y);\n gameBoard.setObstacle1Position(obstacle1NewPosition.x, obstacle1NewPosition.y);\n gameBoard.setObstacle2Position(obstacle2NewPosition.x, obstacle2NewPosition.y);\n gameBoard.invalidate();\n frame.postDelayed(frameUpdate, getFrameRate());\n }", "private boolean leftUpCollision(InteractiveObject obj){\n\t\treturn (((this.getX() - obj.getX()) < obj.getWidth()) && (this.getX() > obj.getX()) &&\n\t\t\t\t((this.getY() - obj.getY()) < obj.getHeight()) && (this.getY() > obj.getY()));\n\t}", "public void collision(){\r\n\t\tif(currX < 0 || currX > 1000-width || currY < 0 || currY > 700-height){\r\n\t\t\tinGame=false;\r\n\t\t}\r\n\t\t/*\r\n\t\tI start at 1 because tail[0] will constantly be taking the position\r\n\t\tof the snake's head, so if i start at 0, the game would end immediately.\r\n\t\t*/\r\n\t\tfor(int i=1; i < numOranges; i++){\r\n\t\t\tRectangle currOrangeRect = new Rectangle(tail[i].getXcoords(), tail[i].getYcoords(), OrangeModel.getWidth(), OrangeModel.getHeight());\r\n\t\t\tif(new Rectangle(currX, currY, width, height).intersects(currOrangeRect)){\r\n\t\t\t\tinGame=false;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override protected boolean drag_collide(float newX, float newY, Entity e){\n\n\n boolean collides=\n e.collideLine(x, y, newX, newY) ||\n e.collideLine(x + thirdWidth, y, newX+thirdWidth, newY) ||\n e.collideLine(x, y+height, newX, newY+height) ||\n e.collideLine(x + thirdWidth, y+height, newX+thirdWidth, newY+height) ||\n\n e.collideLine(2*thirdWidth + x, y, 2*thirdWidth + newX, newY) ||\n e.collideLine(2*thirdWidth + x + thirdWidth, y, 2*thirdWidth + newX+thirdWidth, newY) ||\n e.collideLine(2*thirdWidth + x, y+height, 2*thirdWidth + newX, newY+height) ||\n e.collideLine(2*thirdWidth + x + thirdWidth, y+height, 2*thirdWidth + newX+thirdWidth, newY+height)\n ;\n return collides;\n }", "@Override\n\tpublic void live(long _dt) {\n\t\tList<IPerceivable> surroundingEntities = getPerceptions();\n\n\t\tVector2f newDirection = decide(surroundingEntities);\n\n\t\tmove(newDirection);\n\n\t}", "@Override\n\tpublic void doCollision(CollisionResult c) {\n\t\t\n\t}", "@Override\r\n\tpublic void collisionEffect(AbstractCollidable other, Vector mtv) {\r\n\t\t\r\n\t\tClass<? extends AbstractCollidable> otherClass = other.getClass();\r\n\r\n\t\tif (\t\totherClass.equals(TerrainSection.class)\r\n\t\t\t\t|| otherClass.equals(Obstacle.class)\r\n\t\t\t\t|| (otherClass.equals(Player.class) && owner != other)\r\n\t\t\t\t|| (otherClass.equals(Enemy.class) && owner != other)) {\r\n\t\t\thasCollided = true;\r\n\t\t}\r\n\t\t\r\n\t}", "private void checkCollision()\n {\n if (gameOverBool==false)\n { \n Actor a = getOneIntersectingObject(Wall.class);\n if (a != null||isAtEdge())\n {\n setImage(\"gone.png\");//laat de helicopter verdwijnen\n //greenfoot.GreenfootSound.stop(\"helisound.wav\");\n World world = getWorld();\n world.addObject(new Explosion(), getX(), getY());\n Greenfoot.playSound(\"heliExplosion.wav\");\n world.addObject( new Gameover(), 600, 300 );\n gameOverBool = true; \n }\n } \n }", "void checkHandleContactWithPlayer() {\n Player curPlayer = this.mainSketch.getCurrentActivePlayer();\n\n if (this.doesAffectPlayer) {\n // boundary collision for player\n if (contactWithCharacter(curPlayer)) { // this has contact with non-player\n if (!this.charactersTouchingThis.contains(curPlayer)) { // new collision detected\n curPlayer.changeNumberOfVerticalBoundaryContacts(1);\n this.charactersTouchingThis.add(curPlayer);\n }\n curPlayer.handleContactWithVerticalBoundary(this.startPoint.x);\n\n } else { // this DOES NOT have contact with player\n if (this.charactersTouchingThis.contains(curPlayer)) {\n curPlayer.setAbleToMoveRight(true);\n curPlayer.setAbleToMoveLeft(true);\n curPlayer.changeNumberOfVerticalBoundaryContacts(-1);\n this.charactersTouchingThis.remove(curPlayer);\n }\n }\n }\n }", "protected void checkEntityCollisions(long time) {\n\t\tRectangle2D.Float pla1 = player1.getLocationAsRect();\n\t\tRectangle2D.Float pla2 = player2.getLocationAsRect();\n\t\tfor(int i = 0; i < ghosts.length; i++)\n\t\t{\n\t\t\tGhost g = ghosts[i];\n\t\t\t\n\t\t\tif(g.isDead())\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tRectangle2D.Float ghRect = g.getLocationAsRect();\n\t\t\t\n\t\t\tif(ghRect.intersects(pla1))\n\t\t\t\tonPlayerCollideWithGhost(time, player1, i);\n\t\t\t\n\t\t\tif(ghRect.intersects(pla2))\n\t\t\t\tonPlayerCollideWithGhost(time, player2, i);\n\t\t}\n\t}", "@Override\r\n public void update() {\r\n super.update();\r\n hero.checkForTileCollision(getXOverlap(hero.oldx,hero.oldx+width,hero.x,hero.x+width), getYOverlap(hero.oldy,hero.oldy+hero.height,hero.y, hero.y+hero.height));\r\n int i = 0;\r\n\r\n while (turningPoints[i]!= null)\r\n {\r\n if (intersects(turningPoints[i].x,turningPoints[i].y, turningPoints[i].width,turningPoints[i].height))\r\n {\r\n vx = -vx;\r\n vy = -vy;\r\n }\r\n i++;\r\n }\r\n }", "@Override\n\tpublic void move(List<TileCollision> collidedTiles) \n\t{\t\t\t \n\t\tfor (TileCollision tc : collidedTiles)\n\t\t{\n\n\t\t\tint tileType = tc.theTile.getTileType();\n\n\t\t\tisWall = false;\n\t\t\t// 11 and 12 are the only tiles that are not walls.\n\t\t\tfor (int i = 0; i < 11; i++)\n\t\t\t{\n\t\t\t\tif (tileType == i) isWall = true;\n\t\t\t}\n\n\t\t\tif (tileType == 13 && tc.collisionSide == 0)\n\t\t\t{\n\t\t\t\tmoveUpToTileSide(tc);\n\t\t\t\tsetDirection(Direction.RIGHT.getValue());\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (isWall)\n\t\t {\n\t\t\t\tmoveUpToTileSide(tc);\n\t\t\t\tsetDirection(randomDirection());\n\t\t\t\treturn;\n\t\t }\n\n\t\t\t// Only gets executed when pacman is in it normal state, and not in\n\t\t\t// hunter mode.\n\t\t\tif(!pacman.isHunter())\n\t\t\t{\n\t\t\t if(isPacmanToClose() && !inToCloseZone)\n\t\t\t {\n\t\t\t \tinToCloseZone = true;\n\n\t\t\t \tif (pacman.movesUp() || pacman.movesDown())\n\t\t\t \t{\n\t\t\t \t\treverseVerticalDirection();\n\t\t\t \t}\n\t\t\t \tif (pacman.movesLeft() || pacman.movesRight())\n\t\t\t \t{\n\t\t\t \t\treverseHorizontalDirection();\t\t\t \n\t\t\t \t}\n\t\t\t\t}\n\t\t\t else \n\t\t\t\t{\n\t\t\t\t\tinToCloseZone = false;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t// Only gets executed when pacman eat a power up and is the hunter.\n\t\t\telse if(pacman.isHunter())\n\t\t {\n\t\t\t if (isWall)\n\t\t\t { \n\t\t\t\t\tmoveUpToTileSide(tc);\n\t\t\t\t\tif (getDirection() == Direction.UP.getValue())\n\t\t\t\t\t{\n\t\t\t\t\t\tif(collided)\n\t\t\t\t\t\t{\t\t\t\t\t\t\t \n\t\t\t\t\t\t\tsetDirection(Direction.DOWN.getValue());\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{\n\t\t\t\t\t\t\tsetDirection(Direction.RIGHT.getValue());\n\t\t\t\t\t\t\tcollided = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t else if (getDirection() == Direction.RIGHT.getValue())\n\t\t\t\t\t {\n\t\t\t if(collided)\n\t\t\t {\n\t\t\t \t setDirection(Direction.DOWN.getValue());\t\t\t \t \n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t\t\t\t\t setDirection(Direction.UP.getValue()); \n\t\t\t\t\t\t\t collided = true;\n\t\t\t }\n\t\t\t\t\t }\n\n\t\t\t\t\t else if (getDirection() == Direction.LEFT.getValue())\n\t\t\t\t\t {\n\t\t\t\t\t\t if(collided)\n\t\t\t\t\t\t {\n\t\t\t \t setDirection(Direction.RIGHT.getValue());\n\t\t\t\t\t\t }\n\t\t\t\t\t\t else\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t setDirection(Direction.UP.getValue()); \n\t\t\t\t\t\t\t collided = true;\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\n\t\t\t\t\t else if (getDirection() == Direction.DOWN.getValue())\n\t\t\t\t\t {\n\t\t\t\t\t\t if(collided)\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t setDirection(Direction.LEFT.getValue()); \t \n\t\t\t\t\t\t }\n\t\t\t\t\t else\n\t\t\t\t\t {\n\t\t\t\t\t\t\t setDirection(Direction.RIGHT.getValue()); \n\t\t\t\t\t\t\t collided = true;\n\t\t\t\t\t } \n\t\t\t\t\t }\t\t\t\t\t\t \n\t\t\t } \n\t\t\t else\n\t\t\t {\n\t\t\t collided = false;\t\t\t\t\t \n\t\t\t }\n\t\t }\n\t }\n\t}", "@Override\r\n\tpublic void handleCollision(Contact contact) {\n\t}", "public void onUpdate()\n {\n this.prevPosX = this.posX;\n this.prevPosY = this.posY;\n this.prevPosZ = this.posZ;\n this.motionX = 0.0D;\n this.motionY = 0.0D;\n this.motionZ = 0.0D;\n this.onGround = false;\n\n if (this.wallPos != null)\n {\n this.xPosition = this.wallPos[0];\n this.yPosition = this.wallPos[1];\n this.zPosition = this.wallPos[2];\n\n if (!this.onValidSurface() && !this.isDead)\n {\n this.entityDropItem(this.mapStack, 0.0F);\n this.setDead();\n }\n }\n\n ++this.updateCount;\n\n if (this.updateCount > 400)\n {\n this.updateCount = 0;\n mod_HangableMaps.instance.sendMapIDPacket(this);\n }\n }", "private void circleCollison() {\n\t\t\n\t}", "@Override\n\tpublic void act(float delta) {\n\t\tsuper.act(delta);\n\t\t\n\t\tif(PWM.instance().pointIsInObstacle(this.getX(), this.getY())){\n\t\t\tif(!PWM.instance().pointIsInObstacle(this.getX(), lastPos.y)){\n\t\t\t\tthis.setPosition(this.getX(), lastPos.y);\n\t\t\t}else if(!PWM.instance().pointIsInObstacle(lastPos.x, this.getY())){\n\t\t\t\tthis.setPosition(lastPos.x, this.getY());\n\t\t\t}else{\n\t\t\t\tthis.setPosition(lastPos.x, lastPos.y);\n\t\t\t}\n\t\t\t\n\t\t\tthis.lastPos.x = this.getX();\n\t\t\tthis.lastPos.y = this.getY();\n\t\t\t\n\t\t}\t\t\t\t\n\t\t\n\t\tmainCameraFollowHero();\n\t\t\n\t\t\n\t}" ]
[ "0.74024737", "0.7133287", "0.6791486", "0.6780047", "0.67460114", "0.6704252", "0.66905886", "0.66563714", "0.6627604", "0.6592925", "0.65752375", "0.65706384", "0.6554483", "0.64472085", "0.64370024", "0.64038944", "0.63902366", "0.63805234", "0.63678336", "0.6338243", "0.6338243", "0.6312388", "0.6305546", "0.6297323", "0.62942755", "0.6281632", "0.62800103", "0.6276888", "0.62397456", "0.6231784", "0.6200281", "0.6199805", "0.6186441", "0.6181287", "0.6173847", "0.6173431", "0.61516625", "0.6145619", "0.61382586", "0.6099118", "0.6084735", "0.6082902", "0.6077854", "0.6077408", "0.60402316", "0.60378903", "0.6021533", "0.60143894", "0.6014222", "0.6006389", "0.599877", "0.59853894", "0.59791017", "0.5965035", "0.5948818", "0.5948763", "0.59478015", "0.59475607", "0.5945773", "0.59422934", "0.59376466", "0.5937185", "0.5934182", "0.59228283", "0.5920134", "0.5918749", "0.591754", "0.5914351", "0.58942235", "0.58941925", "0.5891062", "0.58833545", "0.5881314", "0.5862962", "0.5860647", "0.5856903", "0.58542234", "0.583397", "0.5833969", "0.58322215", "0.58117867", "0.58113307", "0.58082724", "0.58062", "0.5805315", "0.5802778", "0.57992107", "0.57982653", "0.57958305", "0.57946765", "0.5792005", "0.5789144", "0.5785327", "0.5781434", "0.5777347", "0.57770854", "0.57755065", "0.57746255", "0.5771137", "0.5770004" ]
0.69423604
2
Abstract method to move the entity This method should only change the newPosX and newPosY variables, and try to avoid changing the posX and posY variables. Should be run before the Collision detection, and the move() method should be run after all calculations are finished.
public abstract void calculateMovement();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void move() {\n this.pposX = this.posX;\n this.pposY = this.posY;\n this.posX = newPosX;\n this.posY = newPosY;\n }", "public abstract void move(int deltaX, int deltaY);", "public void move() {\n spriteBase.move();\n\n Double newX = spriteBase.getXCoordinate() + spriteBase.getDxCoordinate();\n Double newY = spriteBase.getYCoordinate() + spriteBase.getDyCoordinate();\n\n if (!newX.equals(spriteBase.getXCoordinate())\n || !newY.equals(spriteBase.getYCoordinate())) {\n Logger.log(String.format(\"Monster moved from (%f, %f) to (%f, %f)\",\n spriteBase.getXCoordinate(), spriteBase.getYCoordinate(), newX, newY));\n }\n }", "@Override\n\tpublic void move(int xPos, int yPos) {\n\t}", "public abstract void move(int newXPosition, int newYPosition, PiecePosition position) throws BoardException;", "public void move() {\n if (!isCollision(xMove, 0))\n moveX();\n //else\n // adjustX(xMove);\n\n if (!isCollision(0, yMove))\n moveY();\n //else\n // adjustY(yMove);\n //check isCollision(gameObject) with calculating the position for next move\n\n }", "public abstract void move(Position position);", "public void move()\r\n\t{\r\n\t\tmoveHor(xVel);\r\n\t\tmoveVert(yVel);\r\n\t}", "private void move() {\n\n if(currentPosition.getX() == -1 && currentPosition.getY() == -1) {\n System.out.println(\"Robot is not placed, yet.\");\n return;\n }\n\n Position.Direction direction = currentPosition.getDirection();\n int newX = -1;\n int newY = -1;\n switch (direction) {\n case EAST:\n newX = currentPosition.getX() + 1;\n newY = currentPosition.getY();\n break;\n case WEST:\n newX = currentPosition.getX() - 1;\n newY = currentPosition.getY();\n break;\n case NORTH:\n newX = currentPosition.getX();\n newY = currentPosition.getY() + 1;\n break;\n case SOUTH:\n newX = currentPosition.getX();\n newY = currentPosition.getY() - 1;\n break;\n }\n\n if(newX < lowerBound.getX() || newY < lowerBound.getY()\n || newX > upperBound.getX() || newY > upperBound.getY()) {\n System.out.println(\"Cannot move to \" + direction);\n return;\n }\n\n currentPosition.setX(newX);\n currentPosition.setY(newY);\n }", "public void move() {\n\t\tdouble xv = 0;\r\n\t\tdouble yv = 0;\r\n\t\t//this method allows the entity to hold both up and down (or left and right) and not move. gives for smooth direction change and movement\r\n\t\tif (moveRight) {\r\n\t\t\txv+=getSpeed();\r\n\t\t\torientation = Orientation.EAST;\r\n\t\t}\r\n\t\tif (moveLeft) {\r\n\t\t\txv-=getSpeed();\r\n\t\t\torientation = Orientation.WEST;\r\n\t\t}\r\n\t\tif (moveUp)\r\n\t\t\tyv-=getSpeed();\r\n\t\tif (moveDown)\r\n\t\t\tyv+=getSpeed();\r\n\t\tif (!doubleEquals(xv,0) || !doubleEquals(yv,0)) {\r\n\t\t\t((Player)this).useMana(0.1);\r\n\t\t\tImageIcon img = new ImageIcon(\"lib/assets/images/fireball.png\");\r\n\t\t\tBufferedImage image = new BufferedImage(32,32,BufferedImage.TYPE_INT_ARGB);\r\n\t\t\tGraphics g = image.getGraphics();\r\n\t\t\tg.drawImage(img.getImage(), 0, 0, image.getWidth(), image.getHeight(), null);\r\n\t\t\tColor n = loop[ind%loop.length];\r\n\t\t\tind++;\r\n\t\t\timage = ImageProcessor.scaleToColor(image, n);\r\n\t\t\t//PopMessage.addPopMessage(new PopMessage(image,getX(),getY()));\r\n\t\t}\r\n\t\telse\r\n\t\t\t((Player)this).useMana(-0.1);\r\n\t\tmove(xv,yv);\r\n\t}", "private void move()\n\t{\n\t\tif(moveRight)\n\t\t{\n\t\t\tif(position.getX() + speedMovement <= width)\n\t\t\t{\n\t\t\t\tposition.setX(position.getX() +speedMovement+speedBoost);\n\t\t\t\tmoveRight = false;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\n\t\tif(moveLeft)\n\t\t{\n\t\t\tif(position.getX() - speedMovement > 0)\n\t\t\t{\n\t\t\t\tposition.setX(position.getX() -speedMovement - speedBoost + gravitationalMovement);\n\t\t\t\tmoveLeft = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*\n\t\t * If a gravitational field is pushing the ship, set the movement accordingly\n\t\t */\n\t\tif(gravitationalMovement>0)\n\t\t{\n\t\t\tif(position.getX()+gravitationalMovement <= width)\n\t\t\t\tposition.setX(position.getX() + gravitationalMovement);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(position.getX() + gravitationalMovement > 0)\n\t\t\t\tposition.setX(position.getX() + gravitationalMovement);\n\t\t}\n\t}", "public void move() {\r\n posX += movementX;\r\n posY += movementY;\r\n anchorX += movementX;\r\n anchorY += movementY;\r\n }", "public void move() {\n\t\tmoveX();\n\t\tmoveY();\n\t}", "public void move(){\n super.move();\n load.updateCoordinates(this.x,this.y);\n }", "public void move(int x_pos1, int y_pos1)throws Exception{\n //check if its a legal move.\n if(isLegal(x_pos1, y_pos1)) {\n x_pos = x_pos1;\n y_pos = y_pos1;\n }\n else throw new Exception(\"Illegal move.\");\n }", "public void move(){\r\n double newXCoord = super.xCoord + super.xVelocity;\r\n double newYCoord = super.yCoord + super.yVelocity;\r\n\r\n if( (newXCoord - super.radius) <= -MAX_X_COORD || (newXCoord + super.radius) >= MAX_X_COORD){\r\n super.xVelocity = -super.xVelocity;\r\n }\r\n if( (newYCoord - super.radius) <= MIN_Y_COORD || (newYCoord + super.radius) >= MAX_Y_COORD){\r\n super.yVelocity = -super.yVelocity;\r\n }\r\n\r\n super.xCoord = super.xCoord + super.xVelocity;\r\n super.yCoord = super.yCoord + super.yVelocity;\r\n }", "public void move() { \n\t\tSystem.out.println(\"MOVING\");\n\t\tswitch(direction) {\n\t\t\tcase NORTH: {\n\t\t\t\tyloc -= ySpeed;\n\t\t\t}\n\t\t\tcase SOUTH: {\n\t\t\t\tyloc+= xSpeed;\n\t\t\t}\n\t\t\tcase EAST: {\n\t\t\t\txloc+= xSpeed;\n\t\t\t}\n\t\t\tcase WEST: {\n\t\t\t\txloc-= xSpeed;\n\t\t\t}\n\t\t\tcase NORTHEAST: {\n\t\t\t\txloc+=xSpeed;\n\t\t\t\tyloc-=ySpeed;\n\t\t\t}\n\t\t\tcase NORTHWEST: {\n\t\t\t\txloc-=xSpeed;\n\t\t\t\tyloc-=ySpeed;\n\t\t\t}\n\t\t\tcase SOUTHEAST: {\n\t\t\t\txloc+=xSpeed;\n\t\t\t\tyloc+=ySpeed;\n\t\t\t}\n\t\t\tcase SOUTHWEST: {\n\t\t\t\txloc-=xSpeed;\n\t\t\t\tyloc+= ySpeed;\n\t\t\t}\n\t\t}\n\t}", "void move() {\n\t\tif (reachedEdge()) {\n\t\t\tvelocityX = velocityX * -1;\n\t\t\ty = y + 50;\n\t\t}\n\t\tif (reachedLeft()) {\n\t\t\tvelocityX = velocityX * -1;\n\t\t\ty = y + 50;\n\t\t}\n\n\t\tx = x + velocityX;\n\t}", "public boolean move() {\r\n\t\tif (direction == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tint newPosX = this.posX;\r\n\t\tint newPosY = this.posY;\r\n\r\n\t\tswitch (this.direction) {\r\n\t\tcase NORTH:\r\n\t\t\tnewPosY++;\r\n\t\t\tbreak;\r\n\t\tcase WEST:\r\n\t\t\tnewPosX--;\r\n\t\t\tbreak;\r\n\t\tcase SOUTH:\r\n\t\t\tnewPosY--;\r\n\t\t\tbreak;\r\n\t\tcase EAST:\r\n\t\t\tnewPosX++;\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tboolean canMoveToNewPosition = tabletop.canMove(newPosX, newPosY);\r\n\t\tif (!canMoveToNewPosition) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.posX = newPosX;\r\n\t\tthis.posY = newPosY;\r\n\r\n\t\treturn true;\r\n\t}", "public void move() {\n\tupdateSwapTime();\n\tupdateAttackTime();\n\n\tif (enemyNear) {\n\t if (moved) {\n\t\tstopMove();\n\t\tmoved = false;\n\t }\n\t} else {\n\t if (!moved) {\n\t\tcontinueMove();\n\t\tmoved = true;\n\t }\n\n\t x += dx;\n\t y += dy;\n\n\t if (x < speed) {\n\t\tx = speed;\n\t\tdx = (-1) * dx;\n\t }\n\n\t if (y < speed) {\n\t\ty = speed;\n\t\tdy = (-1) * dy;\n\t }\n\n\t if (x > MapSize.getSIZE().getWidth() - 40) {\n\t\tx = MapSize.getSIZE().getWidth() - 40;\n\t\tdx = (-1) * dx;\n\t }\n\n\t if (y > MapSize.getSIZE().getHeight() - 40) {\n\t\ty = MapSize.getSIZE().getHeight() - 40;\n\t\tdy = (-1) * dy;\n\t }\n\t}\n }", "public MoveableEntity(double posX, double posY, Map map) {\n super(posX , posY, map);\n this.newPosX = posX;\n this.newPosY = posY;\n }", "public void move()\n {\n x = x + unitVector.getValue(1)*speed;\n y = y + unitVector.getValue(2)*speed;\n }", "private void move(double newXPos){\n this.setX(newXPos);\n }", "public void move() {\n\t\tthis.move(velocity.x, velocity.y);\n\t}", "public void move()\n {\n universe.erase(this);\n \n // compute new position\n \n yPosition += ySpeed;\n xPosition += xSpeed;\n\n // check if it has hit the ground\n if(yPosition >= (groundPosition - diameter) && ySpeed > 0) {\n yPosition = groundPosition - diameter;\n ySpeed = -ySpeed; \n }\n // check if top\n if(yPosition <= 0 && ySpeed < 0){\n ySpeed = -ySpeed; \n }\n //check right\n if(xPosition >= (universe.getLength() - diameter) && xSpeed >0){\n xSpeed = -xSpeed;\n }\n //check left\n if(xPosition <= 0 && xSpeed < 0){\n xSpeed = -xSpeed;\n }\n \n // draw again at new position\n universe.draw(this);\n }", "public abstract Point move(Point position);", "public void move() {\n // Check for collisions and reverse deltas accordingly\n if (collisionWithHorizontalWall()) {\n isFacingRight = !isFacingRight;\n dx *= -1;\n }\n if (collisionWithVerticalWall()) {\n dy *= -1;\n }\n \n // Handle actual movement by updating positional values\n if (dx == 0 || dy == 0) {\n xPos += dx;\n yPos += dy;\n } else {\n // Turn diagonal delta movement into 1 instead of sqrt(2)\n xPos += DIAGONAL_DIVISOR * dx;\n yPos += DIAGONAL_DIVISOR * dy;\n }\n }", "public void moveEntity(Entity entity, Direction direction, float delta) {\r\n float newX = entity.getX();\r\n float newY = entity.getY();\r\n\r\n float velocity = entity.getVelocity();\r\n float distanceCovered = velocity * delta;\r\n\r\n switch (direction) {\r\n case NORTH:\r\n newY = newY + distanceCovered;\r\n if(isColliding(newX, newY))\r\n return;\r\n\r\n if(entity instanceof Player)\r\n gameCamera.moveCameraVertically(newY);\r\n break;\r\n case EAST:\r\n newX = newX + distanceCovered;\r\n if(isColliding(newX, newY))\r\n return;\r\n\r\n if(entity instanceof Player)\r\n gameCamera.moveCameraHorizontally(newX);\r\n break;\r\n case WEST:\r\n newX = newX - distanceCovered;\r\n if(isColliding(newX, newY))\r\n return;\r\n\r\n if(entity instanceof Player)\r\n gameCamera.moveCameraHorizontally(newX);\r\n break;\r\n case SOUTH:\r\n newY = newY - distanceCovered;\r\n if(isColliding(newX, newY))\r\n return;\r\n\r\n if(entity instanceof Player)\r\n gameCamera.moveCameraVertically(newY);\r\n break;\r\n }\r\n\r\n //TODO: Increase performance (e.g. only check for items when actually changing layer position)\r\n Position tilePosition = Utils.toTilePosition(newX + 20, newY + 20);\r\n Optional<Map.Entry<Position, Item>> optMapItem = getMapItem(tilePosition.x, tilePosition.y);\r\n if(optMapItem.isPresent()) {\r\n Map.Entry<Position, Item> itemEntry = optMapItem.get();\r\n entity.getItems().add(itemEntry.getValue());\r\n gameItems.remove(itemEntry.getKey());\r\n }\r\n\r\n entity.setMoving(true);\r\n entity.setX(newX);\r\n entity.setY(newY);\r\n }", "protected void move(int newX, int newY) {\n if (grid.inBounds(newX, newY)) {\n grid.exit(this, newX, newY);\n }\n if (grid.valid(newX, newY) && System.currentTimeMillis() - lastMovement > 100) {\n grid.addTokenAt(null, positionX, positionY);\n grid.addTokenAt(this, newX, newY);\n positionX = newX;\n positionY = newY;\n lastMovement = System.currentTimeMillis();\n grid.repaint();\n }\n }", "public void move() {\n if (!canMove) {\n return;\n }\n int moveX = currDirection == EAST ? PACE : currDirection == WEST ? -PACE : 0;\n int moveY = currDirection == NORTH ? PACE : currDirection == SOUTH ? -PACE : 0;\n if (grid == null || grid.isOutside(currX + moveX, currY + moveY)) {\n return;\n }\n currX += moveX;\n currY += moveY;\n }", "public void move(World world, double new_x, double new_y){\n double x_sign = Math.signum(new_x - getX());\n if(!world.terrainBlocks(new_x + x_sign * getWidth() / 2, getY() + getHeight() / 2) \n && !world.terrainBlocks(new_x + x_sign * getWidth() / 2, getY() - getHeight() / 2)) {\n setX(new_x);\n }\n \n // Then move in y\n double y_sign = Math.signum(new_y - this.getY());\n if(!world.terrainBlocks(getX() + getWidth() / 2, new_y + y_sign * getHeight() / 2) \n && !world.terrainBlocks(getX() - getWidth() / 2, new_y + y_sign * getHeight() / 2)){\n setY(new_y);\n }\n\t\t\n\t}", "public void move() {\n if(Objects.nonNull(this.position)) {\n Position position = this.getPosition();\n Function<Position, Position> move = moveRobotInDirectionMap.get(position.getDirection());\n this.position = move.apply(position);\n }\n }", "public void move(long delta) {\n // update the location of the gameObject based on move speeds\n x += (delta * dx) / 1000;\n y += (delta * dy) / 1000;\n }", "@Override\n\tvoid move(int x, int y) {\n\n\t}", "private void move() {\n acceleration.accelerate(velocity, position);\r\n }", "@Override\n public void move() {\n switch (direction){\n case SOUTH:\n position.setY(position.getY() + currentSpeed);\n break;\n case NORTH:\n position.setY(position.getY() - currentSpeed);\n break;\n case WEST:\n position.setX(position.getX() - currentSpeed);\n break;\n case EAST:\n position.setX(position.getX() + currentSpeed);\n }\n }", "@Override\r\n\tpublic void move()\r\n\t{\r\n\t\t//Updates the X and Y position by using dx and dy\r\n float x = location.getX() + dx;\r\n float y = location.getY() + dy;\r\n \r\n //Updates the particle emitter's position to the missiles current position\r\n emitter.setPosition(this.getPositionX(), this.getPositionY(),false);\r\n \r\n //Updates the location of the missile\n setLocation(x, y);\n\t}", "public void updatemove() {\n\t\tmove = new Movement(getX(), getY(),dungeon,this);\n\t\t//System.out.println(\"Updated\");\n\t\tnotifys();\n\t\tif(this.getInvincible()) {\n\t\t\tsteptracer++;\n\t\t}\n\t\tdungeon.checkGoal();\n\t}", "protected void updateMove(float delta) {\n\n if (freeX && dx != 0) {\n setX(getX() + getDx());\n }\n if (freeY && dy != 0) {\n setY(getY() + getDy());\n }\n }", "public abstract void move(Point point);", "public abstract void move();", "public abstract void move();", "public abstract void move();", "public abstract void move();", "public abstract void move();", "public abstract void move();", "public abstract void move();", "public boolean move() {\n\t double[] movePre = movePreProcessing();\n\n double dxbak=movePre[0], dybak=movePre[1], dthetabak=movePre[2];\n boolean collision = false;\n\t\t\n\t\tif (hasGrown!=0 || dx!=0 || dy!=0 || dtheta!=0) {\n\t\t\thasMoved = true;\n\t\t\t// Check it is inside the world\n\t\t\tcollision = !isInsideWorld();\n\t\t\t// Collision detection with biological corridors\n\t\t\tif (alive) {\n\t\t\t\tOutCorridor c = _world.checkHitCorridor(this);\n\t\t\t\tif (c != null && c.canSendOrganism()) {\n\t\t\t\t\tif (c.sendOrganism(this))\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Collision detection with other organisms.\n Organism otherOrganism = _world.checkHit(this);\n\t\t\tif (otherOrganism != null) {\n\t\t\t if (this.contact(otherOrganism)) {\n collision = true;\n }\n }\n\n\n\t\t\t// If there is a collision, undo movement.\n\t\t\tif (collision) {\n\t\t\t\thasMoved = false;\n\t\t\t\toffset(-dxbak,-dybak,-dthetabak);\n\t\t\t\tif (hasGrown!=0) {\n\t\t\t\t\t_growthRatio+=hasGrown;\n\t\t\t\t\tsymmetric();\n\t\t\t\t}\n\t\t\t\tcalculateBounds(hasGrown!=0);\n\t\t\t}\n\t\t}\n\t\t// Substract one to the time needed to reproduce\n\t\tif (_timeToReproduce > 0)\n\t\t\t_timeToReproduce--;\n\t\t// Check if it can reproduce: it needs enough energy and to be adult\n\t\tif (_energy > _geneticCode.getReproduceEnergy() + Utils.YELLOW_ENERGY_CONSUMPTION*(_nChildren-1)\n\t\t\t\t&& _growthRatio==1 && _timeToReproduce==0 && alive)\n\t\t\treproduce();\n\t\t// Check that it don't exceed the maximum chemical energy\n\t\tif (_energy > _geneticCode.getReproduceEnergy()) {\n\t\t\tif (_energy > 2*_geneticCode.getReproduceEnergy()) {\n\t\t\t\tuseEnergy(_energy - 2*_geneticCode.getReproduceEnergy());\n\t\t\t} else {\n\t\t\t useEnergy((_energy - _geneticCode.getReproduceEnergy()) / 300);\n\t\t\t}\n\t\t}\n\t\t// Maintenance\n\t\tbreath();\n\t\t// Check that the organism has energy after this frame\n\t\treturn _energy > Utils.tol;\n\t}", "public void move()\n {\n xPosition = xPosition + xSpeed;\n yPosition = yPosition + ySpeed;\n draw();\n if (xPosition >= rightBound - diameter)\n {\n xSpeed = -(xSpeed);\n\n }\n else\n {\n }\n if (xPosition <= leftBound)\n {\n xSpeed = -(xSpeed);\n\n }\n else\n {\n }\n if (yPosition <= upBound)\n {\n ySpeed = -(ySpeed);\n\n }\n else\n {\n }\n if (yPosition >= lowBound - diameter)\n {\n ySpeed = -(ySpeed);\n\n }\n else \n {\n }\n\n }", "@Override\n public void move(Entity e) {\n\n if (Collsiontick > 0) {\n Collsiontick--;\n }\n tick++;\n float deltax = x - player.x;\n float deltay = y - player.y;\n float speed = getSpeed();\n if(Math.abs(speed) < 0.1 && Collsiontick/50<=1){\n float theta = (float) (Math.atan(deltay / deltax) + Math.PI);\n xv = (float) ((TOP_SPEED * Math.cos(theta)));\n yv = (float) ((TOP_SPEED * Math.sin(theta)));\n if (deltax < 0) {\n xv = -xv;\n yv = -yv;\n }\n }\n \n xv = Util.doFrictionX(xv, yv, FRICTION);\n yv = Util.doFrictionY(xv, yv, FRICTION);\n \n \n x += xv;\n y += yv;\n\n shape = (Polygon) shape.transform(Transform.createTranslateTransform(xv, yv));\n }", "@Override\n\tpublic void update() {\n\t\tmove();\n\t\tplace();\n\t}", "@Override\n\tpublic void move() {\n\t\theading = Heading.randHeading();\n\t\tif (heading == Heading.NORTH) {\n\t\t\tthis.location.y -= Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.EAST) {\n\t\t\tthis.location.x += Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.SOUTH) {\n\t\t\tthis.location.y += Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.WEST) {\n\t\t\tthis.location.x -= Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t}\n\t\tadjustPos();\n\t\tinfect();\n\t}", "@Override\n public void move() {\n this.point.x += vector.x * getCurrentSpeed();\n this.point.y += vector.y * getCurrentSpeed();\n }", "@Override\r\n\tpublic void move() {\n\t\tPoint target = strategy.search(this.getLocation(), new Point(0,0));\r\n\r\n\t\tint tries = 0;\r\n\t\t\r\n\t\twhile(!state.equals(\"Inactive\") && !game.movement(this, target.x, target.y)){\r\n\t\t\ttarget = strategy.search(new Point(x,y),playerLocation);\r\n\t\t\ttries++;\r\n\t\t\tif(tries > 4) return; // the search strategy has 4 tries to pick a valid location to move to\r\n\t\t}\r\n\t\t\r\n\t\tx = target.x;\r\n\t\ty = target.y;\r\n\r\n\t\tmoveSprite();\r\n\t}", "public void move() {\n float diffX = cDestination.getX() - getCenterX();\n float diffY = cDestination.getY() - getCenterY();\n\n float newX = cPosition.getX() + cSpeed * Math.signum(diffX);\n float newY = cPosition.getY() + cSpeed * Math.signum(diffY);\n\n cPosition.setX(newX);\n cPosition.setY(newY);\n }", "public void move (int deltaX, int deltaY)\r\n {\r\n\tx = x + deltaX;\r\n\ty = y + deltaY;\r\n }", "abstract void move();", "@Override\n\tpublic void move() {\n\n\t}", "@Override\n\tpublic void move() {\n\t\t\n\t}", "public final void processMovement() {\r\n\t\tif (isMoving()) {\r\n\t\t\tlong elapsed = System.currentTimeMillis() - moveStart;\r\n\t\t\tmovementPercent = (((float) elapsed) / ((float) movementTime));\r\n\t\t\tif (movementPercent < 1f) {\r\n\t\t\t\txOff = -getWrappedEntity().getDir().getXOff()\r\n\t\t\t\t\t\t* Math.round((1f - movementPercent)\r\n\t\t\t\t\t\t\t\t* TileConstants.TILE_WIDTH);\r\n\t\t\t\tzOff = -getWrappedEntity().getDir().getZOff()\r\n\t\t\t\t\t\t* Math.round((1f - movementPercent)\r\n\t\t\t\t\t\t\t\t* TileConstants.TILE_HEIGHT);\r\n\t\t\t} else {\r\n\t\t\t\tmovementPercent = 0f;\r\n\t\t\t\tmoveStart = -1;\r\n\t\t\t\txOff = 0;\r\n\t\t\t\tzOff = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void movement() {\n if (isAlive()) {\n //Prüfung ob A oder die linke Pfeiltaste gedrückt ist\n if (Keyboard.isKeyDown(KeyEvent.VK_LEFT) || Keyboard.isKeyDown(KeyEvent.VK_A)) {\n //Änder die X Position um den speed wert nach link (verkleinert sie)\n setPosX(getPosX() - getSpeed());\n //Prüft ob der Spieler den linken Rand des Fensters erreicht hat\n if (getPosX() <= 0) {\n //Setzt die X Position des Spielers an den Rand des Fensters zurück\n setPosX(0);\n }\n }\n //Prüfung ob D oder die rechte Pfeiltaste gedrückt ist\n if (Keyboard.isKeyDown(KeyEvent.VK_RIGHT) || Keyboard.isKeyDown(KeyEvent.VK_D)) {\n //Änder die X Position um den speed wert nach rechts (vergrößert sie)\n setPosX(getPosX() + getSpeed());\n //Prüft ob der Spieler den rechten Rand des Fensters erreicht hat\n if (getPosX() >= Renderer.getWindowSizeX() - getWight() - 7) {\n //Setzt die X Position des Spielers an den Rand des Fensters zurück\n setPosX(Renderer.getWindowSizeX() - getWight() - 7);\n }\n }\n //Aktualsiert die Hitbox\n setBounds();\n }\n }", "public void move() {\n\t\t// Override move so we don't move, then get location set by owner.\n\t}", "void move() {\r\n\t\tif (x + xa < 0){\r\n\t\t\txa = mov;\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\telse if (x + xa > game.getWidth() - diameter){\r\n\t\t\txa = -mov;\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\tif (y + ya < 0){\r\n\t\t\tya = mov;\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\telse if (y + ya > game.getHeight() - diameter){\r\n\t\t\tgame.gameOver();\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\tif (colisionPalas()){\r\n\t\t\tya = -mov;\r\n\t\t}\r\n\t\telse if(colisionEstorbos()){\r\n\t\t\tgame.puntuacion+=2;\r\n\t\t}\r\n\t\t\r\n\t\tx = x + xa;\r\n\t\ty = y + ya;\r\n\t}", "@Override\n \t\t\t\tpublic void doMove() {\n \n \t\t\t\t}", "public void update(){\n posX += velX;\n posY += velY;\n }", "void move() throws IOException, InterruptedException{\r\n \r\n // if current position and velocity are greater than 0 and less than the right edge of the screen\r\n if (x + xa > 0 && x + xa < 1280-w){\r\n // increase the character position by velocity\r\n x = x + xa;\r\n }\r\n \r\n // if current height and velocity are greater than zero and less than the floor of the game\r\n if (y + ya > 0 && y + ya < 500){\r\n // if jumping up\r\n if (y > 300){\r\n y = y + ya;\r\n } else{ // if falling down, increase velocity to 3\r\n ya = 3;\r\n y = y + ya;\r\n }\r\n }\r\n \r\n // if a collision is detected increase life counter\r\n if (game.collision()){\r\n // increase life counter\r\n count++;\r\n // call game over to load next image or to close game\r\n game.gameOver(count);\r\n } \r\n }", "public void move(double delta) {\n\t\tpreviousX = x;\n\t\tpreviousY = y;\n\t\tx += getVelocityX() * delta;\n\t\ty += getVelocityY() * delta;\n\t}", "@Override\n\tpublic void moveCharacter(){\n\t\tif (leftBlocked || rightBlocked) {\n\t\t\txSpeed = 0;\n\t\t}\n\t\t\n\t\t/* Applies gravity if falling */\n\t\tif ( isFalling() && this.getCurrentAnimation().isLastFrame() ) {\n\t\t\tfallingSpeed = fallingSpeed + gravity;\n\t\t\tint newySpeed = fallSpeed + fallingSpeed;\n\t\t\t\n//\t\t\tSystem.out.println(\"newySpeed: \" + newySpeed);\n\t\t\t\n\t\t\tif (newySpeed > maxySpeed) {\n\t\t\t\tnewySpeed = maxySpeed;\n\t\t\t}\n\t\t\tySpeed = newySpeed;\n\t\t\t\n\t\t\t// Applies horizontal speed to the fall\n\t\t\tif ( !isStraightFall() && (!isFallCollided() && !isDeadlyFall()) ) {\n\t\t\t\t\n\t\t\t\tif ( isSafeFall() ) {\n\t\t\t\t\t\n\t\t\t\t\tif (this.getOrientation().equals(\"left\")) {\n\t\t\t\t\t\txFrameOffset = -fallxSpeed;\n\t\t\t\t\t}\n\t\t\t\t\telse if (this.getOrientation().equals(\"right\")) {\n\t\t\t\t\t\txFrameOffset = fallxSpeed;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if ( isRiskyFall() ) {\n\t\t\t\t\t\n\t\t\t\t\tif (this.getOrientation().equals(\"left\")) {\n\t\t\t\t\t\txFrameOffset = -fallxSpeed/2;\n\t\t\t\t\t}\n\t\t\t\t\telse if (this.getOrientation().equals(\"right\")) {\n\t\t\t\t\t\txFrameOffset = fallxSpeed/2;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if ( isFallCollided() ) {\n\t\t\t\txFrameOffset = 0;\n\t\t\t}\n\t\t}\n\t\telse if ( isGrounded() && !this.getCurrentAnimation().getId().equals(\"stairs\")) {\n\n\t\t\t/* Character is on the ground */\n\t\t\tySpeed = 0;\n\t\t\tyFrameOffset = 0;\n\t\t\tfallingSpeed = 0;\n\t\t}\n\t\t\n\t\t/* Moves the character and its bounding box if he is not at the edge*/\n\t\tif (!this.isBlocked()) {\n\t\t\tsetX(x + xSpeed + xFrameOffset);\n\t\t\tsetY(y + ySpeed + yFrameOffset);\n\t\t\tboundingBox.translate(xSpeed + xFrameOffset, ySpeed + yFrameOffset);\n\t\t}\n\t\t\n\t\t/* Play music */\n\t\tif(!sound.equals(\"\")){\n\t\t\tloader.getSound(sound).play();;\n\t\t}\n\t}", "public int move(double pX, double pY) {\n\t\t\tdouble eX=this.getX();\n\t\t\tdouble eY=this.getY();\n\t\t\n\t\t\tdouble vX= pX-eX;\n\t\t\tdouble vY= pY-eY;\n\t\t\tdouble len= Math.sqrt(vX*vX+vY*vY);\n\t\t\tvX=(vX/len);\n\t\t\tvY=(vY/len);\n\n\t\t\tthis.setDelta(vX, vY);\n\t\t\tif(Core.checkCollision(this)==true)super.move();\n\t\t return 0;\n\t}", "private void move() throws Exception{\r\n\t switch (direction) {\r\n\t case Constants.DIRECTION_NORTH:\r\n\t y += 1;\r\n\t break;\r\n\t case Constants.DIRECTION_EAST:\r\n\t x += 1;\r\n\t break;\r\n\t case Constants.DIRECTION_SOUTH:\r\n\t y -= 1;\r\n\t break;\r\n\t case Constants.DIRECTION_WEST:\r\n\t x -= 1;\r\n\t break;\r\n\t }\r\n\t if(!verifyBounds()){\r\n\t throw new Exception(\"Rover exceeding range!!!\");\r\n\t }\r\n\t }", "public abstract void Move();", "public void move(){\n\t\t\n\t}", "@Override\n\tpublic void move() {\n\t}", "public abstract void move(int row, int col) throws IllegalMoveException;", "@Override\r\n\tpublic void move() {\n\r\n\t}", "public abstract void makeMove(int mouseDownX, int mouseDownY, int MouseUpX, int mouseUpY, int left, int top, int width, int height);", "public void redoMove(){\n circleObj.setX(newX);\n circleObj.setY(newY);\n }", "@Override\n public void move () {\n }", "public void move (long delta){\r\n\r\n super.move(delta);\r\n }", "public void move() {\n\t\tif(path.size() != 0) {\n\t\t\tCoordinate c = path.get(0);\n\t\t\tint x1 = c.x;\n\t\t\tint y1 = c.y;\n\t\t\t\t\n\t\t\tif(Math.abs(x1 - x) > speed || Math.abs(y1 - y) > speed) {\n\t\t\t\tif(this.x > x1) {\n\t\t\t\t\tvy = 0;\n\t\t\t\t\ttx.translate(-speed, vy);\n\t\t\t\t\tthis.x -= speed;\n\t\t\t\t}\n\t\t\t\n\t\t\t\telse if(this.x < x1) {\n\t\t\t\t\t//this.x += speed;\n\t\t\t\t\tvy = 0;\n\t\t\t\t\ttx.translate(speed, vy);\n\t\t\t\t\tthis.x += speed;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if(this.y > y1) {\n\t\t\t\t\t//vx = 0;\n\t\t\t\t\ttx.translate(0, -speed);\n\t\t\t\t\tthis.y -= speed;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if(this.y < y1) {\n\t\t\t\t\t//vx = 0;\n\t\t\t\t\ttx.translate(0, speed);\n\t\t\t\t\tthis.y += speed;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\t\tpath.remove(0);\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t}", "public final void move(Coordinates coordinates) throws Exception {\n if (!canMove(coordinates))\n throw new Exception(\"Entity cannot move there! \" + this + \", \"\n + coordinates);\n this.coordinates = coordinates;\n EventManager.onEntityMove(this);\n }", "@Override\r\n\tpublic Behaviour update(GameContext context) {\n\t\tif (Math.abs(thing.getX() - moveToX) < thing.getSpeed().getXv() / context.getTimeSinceLastUpdate()) {\r\n\t\t\tthing.setX(moveToX);\r\n\t\t}\r\n\t\tif (Math.abs(thing.getY() - moveToY) < thing.getSpeed().getYv() / context.getTimeSinceLastUpdate()) {\r\n\t\t\tthing.setY(moveToY);\r\n\t\t};\r\n\t\t\r\n\t\tif (!isContinueAfterTarget()) {\r\n\t\t\tthing.changeDirection(moveToX, moveToY, thing.getX(), thing.getY());\r\n\t\t}\r\n\t\tthing.updatePositionBasedOnSpeed(context);\r\n\t\t\r\n\t\tif (!isContinueAfterTarget()) {\r\n\t\t\tif ((int) thing.getX() == (int) moveToX) { // && thing.getY() == moveToLocation.y){\r\n\t\t\t\treturn new IdleBehaviour(thing);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn this;\r\n\t}", "public void doMove(int x, int y, int x1, int y1) throws IllegalCoordinateException, IllegalMoveException {\n field.doMove(x, y, x1, y1);\n checkGameOver();\n checkEndGame();\n }", "public void move(){\n\t\tswitch(state){\r\n\t\t\tcase ATField.SPRITE_STAND:\r\n\t\t\t\tspriteX = 0;\r\n\t\t\t\tcoords = standbySprite.get(spriteX);\r\n\t\t\t\tspriteImg = new Rect(coords.left,coords.top,coords.right,coords.bottom);\r\n\t\t\t\tactualImg = new Rect(x, y, x + width, y + height);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\r\n\t\t\tcase ATField.SPRITE_WALK:\r\n\t\t\t\tif(spriteX >walkSprite.size() - 1){\r\n\t\t\t\t\tspriteX = 0;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tcoords = walkSprite.get(spriteX);\r\n\t\t\t\tspriteImg = new Rect(coords.left,coords.top,coords.right,coords.bottom);\r\n\t\t\t\tactualImg = new Rect(x, y, x + width, y + height);\r\n\t\t\t\tspriteX++;\r\n\t\t\t\t\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase ATField.SPRITE_RUN:\r\n\t\t\t\t\r\n\t\t\t\tif(spriteX >runSprite.size() - 1){\r\n\t\t\t\t\tspriteX = 0;\r\n\t\t\t\t\tsetState(STAND);\r\n\t\t\t\t}\r\n\t\t\t\tcoords = runSprite.get(spriteX);\r\n\t\t\t\tspriteImg = new Rect(coords.left,coords.top,coords.right,coords.bottom);\r\n\t\t\t\tactualImg = new Rect(x, y, x + width, y + height);\r\n\t\t\t\tspriteX++;\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase ATField.SPRITE_JUMP:\r\n\t\t\t\tif(spriteX >5){\r\n\t\t\t\t\tsetState(STAND);\r\n\t\t\t\t}\r\n\t\t\t\tcoords = jumpSprite.get(0);\r\n\t\t\t\tspriteImg = new Rect(coords.left,coords.top,coords.right,coords.bottom);\r\n\t\t\t\tactualImg = new Rect(x, y, x + width, y + height);\r\n\t\t\t\tspriteX++;\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "public void Move()\n {\n this.x += this.speed;\n\n //Cutoff the position\n if (this.x <= 2)\n {\n this.x = 2;\n }\n else if (this.x >= GameConstants.SCREEN_WIDTH - 2 * this.imageWidth)\n {\n this.x = GameConstants.SCREEN_WIDTH - 2 * this.imageWidth;\n }\n }", "public void move() {\n\t\tif (type.equals(\"Fast\")) {\n\t\t\tspeed = 2;\n\t\t}else if (type.equals(\"Slow\")){\n\t\t\tspeed = 4;\n\t\t}\n\t\t\n\t\tif (rand.nextInt(speed) == 1){\n\t\t\tif (currentLocation.x - ChristopherColumbusLocation.x < 0) {\n\t\t\t\tif (currentLocation.x + 1 < oceanMap.getDimensions()) {\n\t\t\t\t\tcurrentLocation.x++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentLocation.x != 0) {\t\t\t\t\n\t\t\t\t\tcurrentLocation.x--;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (currentLocation.y - ChristopherColumbusLocation.y < 0) {\n\t\t\t\tif (currentLocation.y + 1 < oceanMap.getDimensions()) {\n\t\t\t\t\tcurrentLocation.y++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentLocation.y != 0) {\n\t\t\t\t\tcurrentLocation.y--;\n\t\t\t\t}\n\t\t\t} \n\t\t}\n\t}", "public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tLocation next = loc.getAdjacentLocation(getDirection());\n\t\t\n\t\tLocation next2 = next.getAdjacentLocation(getDirection());\n\t\tif (gr.isValid(next2)) {\n\t\t\tmoveTo(next2);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t}", "public abstract void move(int elapsedTime);", "public void move() {\n\n int move_position_x = 0;\n int move_postion_y = 0;\n Random random = new Random();\n do {\n\n move_position_x = 0;\n move_postion_y = 0;\n int direction = random.nextInt(6);\n switch (direction) {\n case 0:\n move_postion_y = -1;\n break;\n case 1:\n case 4:\n move_postion_y = 1;\n break;\n case 2:\n case 5:\n move_position_x = 1;\n break;\n case 3:\n move_position_x = -1;\n }\n } while ((this.positionX + move_position_x < 0) || (this.positionX + move_position_x >= size_of_map) || (\n this.positionY + move_postion_y < 0) || (this.positionY + move_postion_y >= size_of_map));\n this.positionX += move_position_x;\n this.positionY += move_postion_y;\n }", "public void move() {\n\r\n\t}", "public void moveEntity(Entity entity) {\n\t\tIMoveBehaviour b = entity.getBehaviour();\n\t\tb.preMove();\n\t\t\n\t\tCollisionMask mask = entity.getBoundingArea();\n\t\tif (hitsWall(entity, mask)) {\n\t\t\tentity.hitWall();\n\t\t}\n\n\t\tmask.move(b.getSpeedVector());\n\n\t\tif (!entity.canMoveThroughWall()) {\n\t\t\tmoveWithinScreen(mask);\n\t\t}\n\t}", "public void move(int delta);", "@Override\r\n public void tick() {\n playerNextTo();\r\n if (playerContact() && isCollisioned()) {\r\n if (!((GameState) game.getGameState()).getWorld().getTile((int) (x + xMove), (int) (y + yMove)).isSolid()\r\n && isValidMove(xMove, yMove)) {\r\n x += xMove;\r\n y += yMove;\r\n }\r\n }\r\n }", "@Override\n public void update(Entity entity, MapManager mapMgr, float delta) {\n\n updateBoundingBoxPosition(nextEntityPosition);\n updatePortalLayerActivation(mapMgr);\n\n if (!isCollisionWithMapLayer(entity, mapMgr) && (!isCollision(entity, mapMgr)) && state == Entity.State.WALKING) {\n setNextPositionToCurrent(entity, mapMgr, delta);\n Camera camera = mapMgr.getCamera();\n camera.position.set(currentEntityPosition.x, currentEntityPosition.y, 0f);\n camera.update();\n } else {\n updateBoundingBoxPosition(currentEntityPosition);\n //if direction key has been lifted stop moving\n\n //TODO bug where if player is walking against a wall switching direction\n //TODO will not break out of the walk\n /*if(motion == Entity.Motion.STANDING)\n {\n entity.sendMessage(MESSAGE.CURRENT_STATE, json.toJson(Entity.State.IDLE));\n }*/\n }\n\n if (isMining) {\n tileToMine = getFacingTile(entity,mapMgr);\n entity.sendMessage(MESSAGE.MINING_GRAPHICS, json.toJson(tileToMine));\n isMining = false;\n }\n if (motion == Entity.Motion.STANDING) {\n //only call calculate position once\n calculateNextPosition(delta);\n }\n tileToMine = getFacingTile(entity, mapMgr);\n //System.out.print(\"Tile x \" + tileToMine.x + \"Tile Y \" + tileToMine.y);\n }", "protected abstract void moveTo(final float x, final float y);", "public static void moveEntity(int direction){\n int tileSize = SpriteHandler.tileSize;\n switch(direction){\n case 0:\n if((userY-tileSize) >= MapManager.offset){\n userY -= tileSize;\n }\n break;\n case 1:\n if((userX+tileSize) <= (MapManager.width_X * tileSize)){\n userX += tileSize; \n }\n break;\n case 2:\n if((userY+tileSize) <= (MapManager.height_Y * tileSize)){\n userY += tileSize; \n }\n break;\n case 3:\n if((userX-tileSize) >= MapManager.offset){\n userX -= tileSize; \n }\n break;\n }\n }", "public void update() {\n if (!outOfBounds()) {\n super.move(dirVec.mul(ShadowDefend.getTimescale() * speed));\n }\n super.update();\n }", "@Override\n\tpublic void update() {\n\t\tmouseMove(gm.mouseY);\n\t\tmoveCollider();\n\t}", "public void move() {\r\n if (y > HEIGHT)\r\n y = initialY;\r\n y = y + speed;\r\n }", "public void move()\n {\n erase();\n \n\n yPosition += ySpeed;\n xPosition += xSpeed;\n\n if(yPosition >= (groundPositionY1 - diameter)){ //450\n yPosition = (int)(groundPositionY1 - diameter);\n ySpeed = -ySpeed;\n }\n\n if(yPosition <= groundPositionY2){ //40\n yPosition = (int)(groundPositionY2);\n ySpeed = -ySpeed;\n } \n\n if(xPosition <= groundPositionX2){ //50\n xPosition = (int)(groundPositionX2);\n xSpeed = -xSpeed;\n }\n\n // check if it has hit the ground\n if(xPosition >= (groundPositionX1 - diameter)) { //550\n xPosition = (int)(groundPositionX1 - diameter);\n xSpeed = -xSpeed; \n }\n\n // draw again at new position\n draw();\n }", "@Override\n protected void processEntity(Entity entity, float deltaTime) {\n final TransformComponent curTransform = Mapper.TRANSFORM.get(entity);\n final MovementComponent curMovement = Mapper.MOVEMENT.get(entity);\n\n // Store the real normal vector in a temporary object.\n // This vector requires that we normalize the normal vector and scale it to the move speed magnitude.\n Vector2 move_vec = new Vector2(curMovement.MOVEMENT_NORMAL).nor().scl((float)curMovement.moveSpeed * 60f * deltaTime);\n\n // Move and rotate the entity\n curTransform.POSITION.add(move_vec);\n curTransform.rotation += curMovement.rotSpeed * deltaTime;\n\n // Limit rotation to [0, 360) for easy printouts.\n if (curTransform.rotation >= 360)\n curTransform.rotation -= 360;\n if (curTransform.rotation < 0)\n curTransform.rotation += 360;\n }" ]
[ "0.73655015", "0.70477235", "0.70420945", "0.70390415", "0.6993062", "0.6807574", "0.67621356", "0.67405015", "0.67376685", "0.67162347", "0.670507", "0.6691471", "0.66599375", "0.6651281", "0.66258323", "0.6608867", "0.656711", "0.6557752", "0.65557194", "0.6555128", "0.6547346", "0.6528162", "0.65243083", "0.65201634", "0.6511477", "0.648221", "0.6480402", "0.6475618", "0.6473592", "0.6418646", "0.6413809", "0.6404621", "0.63943607", "0.63917905", "0.6376229", "0.6368849", "0.63470286", "0.6342057", "0.6322545", "0.6316364", "0.6312216", "0.6312216", "0.6312216", "0.6312216", "0.6312216", "0.6312216", "0.6312216", "0.6289372", "0.6272877", "0.6266808", "0.6263057", "0.6258139", "0.62435865", "0.62231773", "0.62197345", "0.62096804", "0.62041676", "0.6202005", "0.62016755", "0.61941", "0.6192202", "0.6183748", "0.6175801", "0.6166966", "0.61621207", "0.61609685", "0.6154977", "0.6151724", "0.6149347", "0.6147666", "0.6141751", "0.6140605", "0.61364114", "0.61352056", "0.61246955", "0.61135304", "0.6112083", "0.60974365", "0.60942", "0.6092595", "0.6091506", "0.6087721", "0.60830677", "0.60765374", "0.6071686", "0.60633576", "0.6057027", "0.60520846", "0.60489875", "0.6048711", "0.6039508", "0.6033491", "0.6032478", "0.6027018", "0.6024622", "0.6020377", "0.6017972", "0.60129243", "0.6011916", "0.60081726", "0.6001612" ]
0.0
-1
/ Finalising movement after all calculations are done
public void move() { this.pposX = this.posX; this.pposY = this.posY; this.posX = newPosX; this.posY = newPosY; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void finalizeMove() {\n return;\n }", "void ResolveUnreleasedMovements() {\n\t\t// if (isMove_down())\n\t\t// moveDown();\n\t\tif (isMove_left())\n\t\t\tmoveLeft();\n\t\tif (isMove_right())\n\t\t\tmoveRight();\n\t\t// if (isMove_up())\n\t\t// moveUP();\n\t\t// setBlock_down(false);\n\t\t// if (!isMove_left() && !isMove_right())\n\t\t// getSpeed().setX(0);\n\t\t// if (!isMove_down() && !isMove_up())\n\t\t// getSpeed().setY(0);\n\t}", "public final void processMovement() {\r\n\t\tif (isMoving()) {\r\n\t\t\tlong elapsed = System.currentTimeMillis() - moveStart;\r\n\t\t\tmovementPercent = (((float) elapsed) / ((float) movementTime));\r\n\t\t\tif (movementPercent < 1f) {\r\n\t\t\t\txOff = -getWrappedEntity().getDir().getXOff()\r\n\t\t\t\t\t\t* Math.round((1f - movementPercent)\r\n\t\t\t\t\t\t\t\t* TileConstants.TILE_WIDTH);\r\n\t\t\t\tzOff = -getWrappedEntity().getDir().getZOff()\r\n\t\t\t\t\t\t* Math.round((1f - movementPercent)\r\n\t\t\t\t\t\t\t\t* TileConstants.TILE_HEIGHT);\r\n\t\t\t} else {\r\n\t\t\t\tmovementPercent = 0f;\r\n\t\t\t\tmoveStart = -1;\r\n\t\t\t\txOff = 0;\r\n\t\t\t\tzOff = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void finalizeMovement() {\n for (Iterator<TransformLayer> itr = tLayerPool.values().iterator(); itr.hasNext(); ) {\n itr.next().finalizeMovement();\n }\n }", "public void finish() {\n\t\tPositionVo v = new PositionVo(1d, 0d, 0d, 0d, 0d, 0d, 0d);\n\t\tmanager.canvas.setJoneDoe(v, new Point(0, 0), Direction.NONE);\n\t\tstopTimer();\n\t\tfree();\n\t\tmanager.iWait();\n\t}", "void doneMoving();", "public void destroyed() {\n\t\twidth = SIZE_INC * width;\n\t\t// make the end points at the new location\n\t\tthis.makeEndPoints(width, (0 - (xSpeed * width)),\n\t\t\t\t(0 - (ySpeed * width)));\n\n\t}", "public void phaseOutMovement() {\n inertia_y();\n inertia_x();\n }", "public void cleanUp(){\n\t\t//offset(-1*bounds.left, -1*bounds.top);\n\t}", "public void finishSimulation() {\n finishSimulation(0.0);\n }", "private void movementPhase() {\n ClickObserver.getInstance().setCreatureFlag(\"\");\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getDoneButton().setDisable(false);\n TheCupGUI.update();\n Board.removeCovers();\n }\n });\n for (Player p : playerList) {\n \tplayer = p;\n player.flipAllUp();\n\t ClickObserver.getInstance().setActivePlayer(player);\n\t ClickObserver.getInstance().setCreatureFlag(\"Movement: SelectMovers\");\n\t InfoPanel.uncover(player.getName());\n\t if (p.getHexesWithPiece().size() > 0) {\n\t \tClickObserver.getInstance().setClickedTerrain(p.getHexesWithPiece().get(0));\n\t }\n\t pause();\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n \tClickObserver.getInstance().whenTerrainClicked();\n \t GUI.getHelpText().setText(\"Movement Phase: \" + player.getName()\n + \", Move your armies\");\n \t Game.getRackGui().setOwner(player);\n }\n });\n\t \n\t while (isPaused) {\n \ttry { Thread.sleep(100); } catch( Exception e ){ return; } \n\t }\n\t InfoPanel.cover(player.getName());\n player.flipAllDown();\n }\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getDoneButton().setDisable(true);\n }\n });\n ClickObserver.getInstance().setCreatureFlag(\"\");\n }", "protected void execute() {\n \tdouble moveValue = -1.0;\n \t\n \tif (useSmoothing) {\n\t \tif (Robot.clawElevator.getContainerHeight() == 0) {\n\t \t\t// TODO Something or other\n\t \t} else {\n\t \t\tdouble percentError = Math708.getPercentError(Robot.clawElevator.getTravelDistance(), Constants.CLAW_ELEVATOR_DOWN_TRAVEL_DISTANCE[Math.abs(Robot.clawElevator.getContainerHeight() - 3)]);\n\t \t\t\n\t \t\tif (percentError <= 0.5) {\n\t \t\tmoveValue = Math708.makeWithin(percentError, moveValue, -Constants.CLAW_ELEVATOR_MOTOR_MINIMUM);\n\t \t}\n\t \t}\n \t}\n \t\n \tRobot.clawElevator.manualMove(moveValue);\n }", "@Override\n\tpublic void updatePosition()\n\t{\n\t\tif(!fired && !pathfinding)\n\t\t{\n\t\t\tif(x == destX && y == destY)\n\t\t\t{\n\t\t\t\tfired = true;\n\t\t\t\tvehicle.msgAnimationDestinationReached();\n\t\t\t\tcurrentDirection = MovementDirection.None;\n\t\t\t\t\n\t\t\t\tIntersection nextIntersection = city.getIntersection(next);\n\t\t\t\tIntersection cIntersection = city.getIntersection(current);\n\t\t\t\tif(cIntersection == null)\n\t\t\t\t{\n\t\t\t\t\tif(city.permissions[current.y][current.x].tryAcquire() || true)\n\t\t\t\t\t{\n\t\t\t\t\t\tcity.permissions[current.y][current.x].release();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(nextIntersection == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!cIntersection.acquireIntersection())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcIntersection.releaseAll();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcIntersection.releaseIntersection();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(Pathfinder.isCrossWalk(current,city.getWalkingMap(), city.getDrivingMap()))\n\t\t\t\t{\n\t\t\t\t\tList<Gui> guiList = city.crosswalkPermissions.get(current.y).get(current.x);\n\t\t\t\t\tsynchronized(guiList)\n\t\t\t\t\t{\n\t\t\t\t\t\twhile(guiList.contains(this))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tguiList.remove(this);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif(allowedToMove || drunk)\n\t\t\t{\n\t\t\t\tswitch(currentDirection)\n\t\t\t\t{\n\t\t\t\t\tcase Right:\n\t\t\t\t\t\tx++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Up:\n\t\t\t\t\t\ty--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Down:\n\t\t\t\t\t\ty++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Left:\n\t\t\t\t\t\tx--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(x % CityPanel.GRID_SIZE == 0 && y % CityPanel.GRID_SIZE == 0 && !moves.isEmpty())\n\t\t\t{\t\n\t\t\t\tif(allowedToMove || drunk)\n\t\t\t\t{\n\t\t\t\t\tcurrentDirection = moves.pop();\n\t\t\t\t\n\t\t\t\t\tIntersection nextIntersection = city.getIntersection(next);\n\t\t\t\t\tIntersection cIntersection = city.getIntersection(current);\n\t\t\t\t\t\n\t\t\t\t\tif(current != next)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(cIntersection == null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(city.permissions[current.y][current.x].tryAcquire() || true)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcity.permissions[current.y][current.x].release();\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{\n\t\t\t\t\t\t\tif(nextIntersection == null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(!cIntersection.acquireIntersection())\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tcIntersection.releaseAll();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcIntersection.releaseIntersection();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//**************************ADDED**************************//\n\t\t\t\t\t\tif(Pathfinder.isCrossWalk(current,city.getWalkingMap(), city.getDrivingMap()))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tList<Gui> guiList = city.crosswalkPermissions.get(current.y).get(current.x);\n\t\t\t\t\t\t\tsynchronized(guiList)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\twhile(guiList.contains(this))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tguiList.remove(this);\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//**************************END ADDED**************************//\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcurrent = next;\n\t\t\t\t\t\n\t\t\t\t\tswitch(currentDirection)\n\t\t\t\t\t{\n\t\t\t\t\tcase Down:next = new Point(current.x,current.y + 1);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Left:next = new Point(current.x - 1,current.y);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Right:next = new Point(current.x + 1,current.y);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Up:next = new Point(current.x,current.y - 1);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:next = current;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\tIntersection nextIntersection = city.getIntersection(next);\n\t\t\t\tIntersection cIntersection = city.getIntersection(current);\n\t\t\t\t\n\t\t\t\tif(nextIntersection == null)\n\t\t\t\t{\n\t\t\t\t\tif(city.permissions[next.y][next.x].tryAcquire())\n\t\t\t\t\t{\n\t\t\t\t\t\tallowedToMove = true;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tallowedToMove = false;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(cIntersection == null)\n\t\t\t\t\t{\n\t\t\t\t\t\t//**************************ADDED**************************//\n\t\t\t\t\t\tList<Gui> guiList = city.crosswalkPermissions.get(next.y).get(next.x);\n\t\t\t\t\t\tsynchronized(guiList)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(Pathfinder.isCrossWalk(next, city.getWalkingMap(), city.getDrivingMap()))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tfor(Gui g : guiList)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif(g instanceof PassengerGui)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tallowedToMove = false;\n\t\t\t\t\t\t\t\t\t\treturn;\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\tif(nextIntersection.acquireIntersection())\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tnextIntersection.acquireAll();\n\t\t\t\t\t\t\t\t\tallowedToMove = true;\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\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tallowedToMove = false;\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tguiList.add(this);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//**************************END ADDED**************************//\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tallowedToMove = true;\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\tif(!allowedToMove && drunk)\n\t\t{\n\t\t\tcity.addGui(new ExplosionGui(x,y));\n\t\t\tSystem.out.println(\"DESTROYING\");\n\t\t\tcity.removeGui(this);\n\t\t\tvehicle.stopThread();\n\t\t\tsetPresent(false);\n\t\t\t\n\t\t\tIntersection nextIntersection = city.getIntersection(next);\n\t\t\tIntersection cIntersection = city.getIntersection(current);\n\t\t\t\n\t\t\tif(cIntersection == null)\n\t\t\t{\n\t\t\t\tif(city.permissions[current.y][current.x].tryAcquire() || true)\n\t\t\t\t{\n\t\t\t\t\tcity.permissions[current.y][current.x].release();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(nextIntersection == null)\n\t\t\t\t{\n\t\t\t\t\tif(!cIntersection.acquireIntersection())\n\t\t\t\t\t{\n\t\t\t\t\t\tcIntersection.releaseAll();\n\t\t\t\t\t}\n\t\t\t\t\tcIntersection.releaseIntersection();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void calculateMovement() {\r\n \tmovementY = (int)(movementSpeed * Math.sin(Math.toRadians(movementDirection - 90)));\r\n \tmovementX = (int)(movementSpeed * Math.cos(Math.toRadians(movementDirection - 90)));\r\n }", "protected void end() {\n \tRobotMap.feedMotor1.set(0);\n \tRobotMap.shootAgitator.set(0);\n }", "public void move() {\n\t\tx+= -1;\n\t\tif (x < 0) {\n\t\t\tx = (processing.width - 1);\n\t\t}\n\t\ty+= 1;\n\t\tif (y > processing.height-1)\n\t\t\ty=0;\n\t}", "public void move()\n\t{\n time++;\n\t\tif (time % 10 == 0)\n\t\t{\n\t\t\thistogramFrame.clearData();\n\t\t}\n\t\tfor (int i = 0; i < nwalkers; i++)\n\t\t{\n\t\t\tdouble r = random.nextDouble();\n\t\t\tif (r <= pRight)\n\t\t\t{\n\t\t\t\txpositions[i] = xpositions[i] + 1;\n\t\t\t}\n\t\t\telse if (r < pRight + pLeft)\n\t\t\t{\n\t\t\t\txpositions[i] = xpositions[i] - 1;\n\t\t\t}\n\t\t\telse if (r < pRight + pLeft + pDown)\n\t\t\t{\n\t\t\t\typositions[i] = ypositions[i] - 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\typositions[i] = ypositions[i] + 1;\n\t\t\t}\n\t\t\tif (time % 10 == 0)\n\t\t\t{\n\t\t\t\thistogramFrame.append(Math.sqrt(xpositions[i] * xpositions[i]\n\t\t\t\t\t\t+ ypositions[i] * ypositions[i]));\n\t\t\t}\n\t\t\txmax = Math.max(xpositions[i], xmax);\n\t\t\tymax = Math.max(ypositions[i], ymax);\n\t\t\txmin = Math.min(xpositions[i], xmin);\n\t\t\tymin = Math.min(ypositions[i], ymin);\n\t\t}\n\t}", "@Override\n public void calculateMove() {\n int xa = 0, ya = 0;\n if (steps <= 0) {\n direction = ep.calculateDirection();\n steps = MAX_STEPS;\n }\n if (direction == 0) {\n ya--;\n }\n if (direction == 2) {\n ya++;\n }\n if (direction == 3) {\n xa--;\n }\n if (direction == 1) {\n xa++;\n }\n if (canMove(xa, ya)) {\n steps -= 1 + rest;\n move(xa * speed, ya * speed);\n moving = true;\n } else {\n steps = 0;\n moving = false;\n }\n }", "public void updatePosition(){\n\t\t//maps the position to the closest \"grid\"\n\t\tif(y-curY>=GameSystem.GRID_SIZE/2){\n\t\t\tcurY=curY+GameSystem.GRID_SIZE;\n\t\t\tyGridNearest++;\n\t\t}\n\t\telse if(curX-x>=GameSystem.GRID_SIZE/2){\n\t\t\tcurX=curX-GameSystem.GRID_SIZE;\n\t\t\txGridNearest--;\n\t\t}\n\t\telse if(x-curX>=GameSystem.GRID_SIZE/2){\n\t\t\tcurX=curX+GameSystem.GRID_SIZE;\n\t\t\txGridNearest++;\n\t\t}\n\t\telse if(curY-y>=GameSystem.GRID_SIZE/2){\n\t\t\tcurY=curY-GameSystem.GRID_SIZE;\n\t\t\tyGridNearest--;\n\t\t}\n\t\t//sets the last completely arrived location grid\n\t\tif(y-yTemp>=GameSystem.GRID_SIZE){\n\t\t\tyTemp=yTemp+GameSystem.GRID_SIZE;\n\t\t\ty=yTemp;\n\t\t\tlastY++;\n\t\t}\n\t\telse if(xTemp-x>=GameSystem.GRID_SIZE){\n\t\t\txTemp=xTemp-GameSystem.GRID_SIZE;\n\t\t\tx=xTemp;\n\t\t\tlastX--;\n\t\t}\n\t\telse if(x-xTemp>=GameSystem.GRID_SIZE){\n\t\t\txTemp=xTemp+GameSystem.GRID_SIZE;\n\t\t\tx=xTemp;\n\t\t\tlastX++;\n\t\t}\n\t\telse if(yTemp-y>=GameSystem.GRID_SIZE){\n\t\t\tyTemp=yTemp-GameSystem.GRID_SIZE;\n\t\t\ty=yTemp;\n\t\t\tlastY--;\n\t\t}\n\t\t//only updates nextX and nextY when the move buttons are being pressed down\n\t\t/*\n\t\tif(movable){\n\t\t\tif(direction.equals(\"right\")){\n\t\t\t\t\tnextX=lastX+1;\n\t\t\t\t\tnextY=lastY;\n\t\t\t}\n\t\t\telse if(direction.equals(\"left\")){\n\t\t\t\tnextX=lastX-1;\n\t\t\t\tnextY=lastY;\n\t\t\t}\n\t\t\telse if(direction.equals(\"up\")){\n\t\t\t\tnextY=lastY-1;\n\t\t\t\tnextX=lastX;\n\t\t\t}\n\t\t\telse if(direction.equals(\"down\")){\n\t\t\t\tnextY=lastY+1;\n\t\t\t\tnextX=lastX;\n\t\t\t}\n\t\t}\n\t\t*/\n\t\t\n\t}", "protected void execute() {\n\n\t\tspeed = oi.getLeftY();\n\n\t\tleftTicks = drive.getLeftRotation();\n\t\trightTicks = drive.getRightRotation();\n\n\t\t/*\n\t\t * if (startAngle == drive.getAngle()) { drive.setBoth(oi.getLeftY()); }\n\t\t * else if (startAngle < drive.getAngle()) { if (oi.getLeftY() > 0)\n\t\t * drive.setBoth(oi.getLeftY(), .9 * oi.getLeftY()); else drive.setBoth(\n\t\t * .9 * oi.getLeftY(),oi.getLeftY()); } else if (startAngle >\n\t\t * drive.getAngle()) { if (oi.getLeftY() > 0)\n\t\t * drive.setBoth(oi.getLeftY(), .9 * oi.getLeftY()); else\n\t\t * drive.setBoth(.9 * oi.getLeftY(), oi.getLeftY()); }\n\t\t */\n\t\tif (leftTicks == 0 || rightTicks == 0)\n\t\t\tdrive.setBoth(speed);\n\t\telse\n\t\t\tdrive.setBoth(MathUtil.setLimits((rightTicks / leftTicks) * speed, -1.0, 1.0),\n\t\t\t\t\tMathUtil.setLimits((leftTicks / rightTicks) * speed, -1.0, 1.0));\n\n\t}", "private void cleaningBallot() {\n\t\tturnLeft();\n\t\tmove();\n\t\tgrabStrayBeepers();\n\t\tturnAround();\n\t\tmove();\n\t\tmove();\n\t\tgrabStrayBeepers();\n\t}", "public void run(){\n \n while (true){\n double p1Xnext =l1.getStart().getX()+v1p1;\n double p2Xnext =l2.getStart().getX()+v1p2;\n double p3Xnext =l3.getStart().getX()+v1p3;\n double p1Ynext =l1.getStart().getY()+v2p1;\n double p2Ynext =l2.getStart().getY()+v2p2;\n double p3Ynext =l3.getStart().getY()+v2p3;\n double p4Xnext =l1.getEnd().getX()+v1p1;\n double p5Xnext =l2.getEnd().getX()+v1p2;\n double p6Xnext =l3.getEnd().getX()+v1p3;\n double p4Ynext =l1.getEnd().getY()+v2p1;\n double p5Ynext =l2.getEnd().getY()+v2p2;\n double p6Ynext =l3.getEnd().getY()+v2p3;\n\n if (p1Xnext > l1.getCanvas().getWidth()){\n v1p1=-v1p1; \n }\n if (p1Xnext< 0){\n v1p1=-v1p1;\n \n }\n if (p1Ynext > l1.getCanvas().getHeight()){\n v2p1=-v2p1;\n \n }\n if (p1Ynext< 0){\n v2p1=-v2p1;\n }\n if (p2Xnext > l1.getCanvas().getWidth()){\n v1p2=-v1p2; \n }\n if (p2Xnext< 0){\n v1p2=-v1p2;\n \n }\n if (p2Ynext > l1.getCanvas().getHeight()){\n v2p2=-v2p2;\n \n }\n if (p2Ynext< 0){\n v2p2=-v2p2;\n \n }\n if (p3Xnext > l1.getCanvas().getWidth()){\n v1p3=-v1p3; \n }\n if (p3Xnext< 0){\n v1p3=-v1p3;\n \n }\n if (p3Ynext > l1.getCanvas().getHeight()){\n v2p3=-v2p3;\n \n }\n if (p3Ynext< 0){\n v2p3=-v2p3;\n }\n l1.setStart(l1.getStart().getX()+v1p1, l1.getStart().getY()+v2p1);\n l2.setStart(l2.getStart().getX()+v1p2, l2.getStart().getY()+v2p2);\n l3.setStart(l3.getStart().getX()+v1p3, l3.getStart().getY()+v2p3);\n l1.setEnd(l3.getStart());\n l2.setEnd(l1.getStart());\n l3.setEnd(l2.getStart());\n pause(10);\n \n \n \n }\n}", "public abstract void calculateMovement();", "protected void execute() {\n \tdouble currentPulses;\n \tdouble currentHeading = Robot.pixy.getCubeCenter();\n \tdouble headingCorrection = pixyCorrection.calculateCorrection(140, currentHeading);\n \tdouble currentDistance = Robot.sonar.getDistance();\n \tdouble powerCorrection = sonarCorrection.calculateCorrection(distance, currentDistance);\n \tif (headingCorrection > .25) {\n \t\theadingCorrection = .25;\n \t}\n \tif(powerCorrection > .25) {\n \t\tpowerCorrection = .25;\n \t}\n \tdouble power = basePower + powerCorrection;\n \tif (Robot.pixy.getCubeCenter() < 150) {\n \t\tleftPower = (power - headingCorrection);\n \t\trightPower = (power + headingCorrection);\n \t}\n \telse if (Robot.pixy.getCubeCenter() > 130) {\n \t\tleftPower = (power + headingCorrection);\n \t\trightPower = (power - headingCorrection);\n \t}\n \telse {\n \t\tleftPower = power;\n \t\trightPower = power;\n \t}\n \tRobot.drive.tankMove(leftPower, rightPower);\n \t\n \tcurrentPulses = Robot.drive.getPulsesLeft();\n \tencoderValue = currentPulses - VectorValues.lastEncoderPulses;\n \tVectorValues.lastEncoderPulses = currentPulses;\n \tVectorValues.vectorComponentX += (Math.sin(Robot.drive.getCurrentHeading() * (Math.PI / 180 )) * encoderValue);\n \tVectorValues.vectorComponentY += (Math.cos(Robot.drive.getCurrentHeading() * (Math.PI / 180 )) * encoderValue);\n }", "public void step() {\n hasMoved = new boolean[simulationSize][simulationSize]; // Initializing the array and populating it with false values\n\n for(int i = 0; i < hasMoved.length; i++)\n Arrays.fill(hasMoved[i], false);\n\n moveFluid();\n\n yVelocityModifier.add(gravity);\n for(int i = 0; i < simulationSize; i++) { // Iterating through every grid space\n for(int j = 0; j < simulationSize; j++) {\n if(fluidGrid[i][j][0] == EMPTY_VALUE) // If the current space is empty don't use it\n continue;\n\n for(float xModifier : xVelocityModifier) {\n fluidGrid[i][j][0] += xModifier;\n }\n\n for(float yModifier : yVelocityModifier) {\n fluidGrid[i][j][1] += yModifier;\n }\n }\n }\n\n xVelocityModifier.clear();\n yVelocityModifier.clear();\n }", "public void step() {\n\t\tcellSizes.clear();\n\t\tupsetNeighbors = new ArrayList<Neighbor>();\n\t\tavailableSpaces = new ArrayList<Cell>();\n\t\tfor (int r = 0; r < grid.getRows(); r++) {\n\t\t\tfor (int c = 0; c < grid.getColumns(); c++) {\n\t\t\t\tupdateStatus(r, c);\n\t\t\t}\n\t\t}\n\t\tupdateGrid();\n\t}", "public void move() {\n energy -= 0.03;\n if (energy < 0) {\n energy = 0;\n }\n }", "@Override\n\tpublic void excute() {\n\t\tmoveEvent.move(commandinfo.getValue() * 200);\n\t}", "@Override\n public void update() {\n animate();\n if (alive == false) {\n afterKill();\n return;\n }\n if (alive) {\n calculateMove();\n }\n }", "void endUpdate();", "public void move()\n {\n universe.erase(this);\n \n // compute new position\n \n yPosition += ySpeed;\n xPosition += xSpeed;\n\n // check if it has hit the ground\n if(yPosition >= (groundPosition - diameter) && ySpeed > 0) {\n yPosition = groundPosition - diameter;\n ySpeed = -ySpeed; \n }\n // check if top\n if(yPosition <= 0 && ySpeed < 0){\n ySpeed = -ySpeed; \n }\n //check right\n if(xPosition >= (universe.getLength() - diameter) && xSpeed >0){\n xSpeed = -xSpeed;\n }\n //check left\n if(xPosition <= 0 && xSpeed < 0){\n xSpeed = -xSpeed;\n }\n \n // draw again at new position\n universe.draw(this);\n }", "@Override\n public void movement() {\n if (isAlive()) {\n //Prüfung ob A oder die linke Pfeiltaste gedrückt ist\n if (Keyboard.isKeyDown(KeyEvent.VK_LEFT) || Keyboard.isKeyDown(KeyEvent.VK_A)) {\n //Änder die X Position um den speed wert nach link (verkleinert sie)\n setPosX(getPosX() - getSpeed());\n //Prüft ob der Spieler den linken Rand des Fensters erreicht hat\n if (getPosX() <= 0) {\n //Setzt die X Position des Spielers an den Rand des Fensters zurück\n setPosX(0);\n }\n }\n //Prüfung ob D oder die rechte Pfeiltaste gedrückt ist\n if (Keyboard.isKeyDown(KeyEvent.VK_RIGHT) || Keyboard.isKeyDown(KeyEvent.VK_D)) {\n //Änder die X Position um den speed wert nach rechts (vergrößert sie)\n setPosX(getPosX() + getSpeed());\n //Prüft ob der Spieler den rechten Rand des Fensters erreicht hat\n if (getPosX() >= Renderer.getWindowSizeX() - getWight() - 7) {\n //Setzt die X Position des Spielers an den Rand des Fensters zurück\n setPosX(Renderer.getWindowSizeX() - getWight() - 7);\n }\n }\n //Aktualsiert die Hitbox\n setBounds();\n }\n }", "protected void execute() {\r\n\t//double leftSpeed = oi.leftUpAndDown();\r\n\tdouble leftSpeed = motorScalerLeft.scale(oi.leftUpAndDown() * fullSpeed);\r\n\tSmartDashboard.putNumber(\"debug\\\\leftSpeed\", leftSpeed);\r\n\t\r\n\t//double rightSpeed = oi.rightUpAndDown();\r\n\tdouble rightSpeed = motorScalerRight.scale(oi.rightUpAndDown() * fullSpeed);\r\n\tSmartDashboard.putNumber(\"debug\\\\rightSpeed\", rightSpeed);\r\n\t\r\n\ttheDrive.goVariable(-leftSpeed,-rightSpeed);\r\n }", "private void onMovementComplete() {\n Callable<Boolean> movementCompleted;\n Consumer<Method> movementFailed;\n\n synchronized (_mutex) {\n movementCompleted = _movementCompleted;\n movementFailed = _movementFailed;\n\n _movementCompleted = null;\n _movementFailed = null;\n }\n\n boolean bMovementCompleted = false;\n if (movementCompleted != null) {\n try {\n bMovementCompleted = movementCompleted.call();\n } catch (Exception e) {\n _log.error(\"An error occurred while completing a movement.\", e);\n }\n }\n\n if (!bMovementCompleted && movementFailed != null) {\n movementFailed.accept(null);\n }\n }", "@Override\n\tpublic void update() {\n\t\tmove();\n\t\tplace();\n\t}", "public void cleanUp() {\n // a quick way to clean the vector\n segments = new Vector();\n // reset the total distance\n totalDistance = 0.0;\n distance = 0.0;\n }", "public void move() {\n track += speed;\n speed += acceleration;\n if (speed <= 0) {\n speed =0;\n }\n if (speed >= MAX_SPEED) {\n speed = MAX_SPEED;\n }\n y -= dy;\n if (y <=MAX_TOP) {\n y = MAX_TOP;\n }\n if (y >=MAX_BOTTOM){\n y = MAX_BOTTOM;\n }\n if (layer2 - speed <= 0) {\n layer1 = 0;\n layer2 = 2400;\n } else {\n\n layer1 -= speed;\n layer2 -= speed;\n }\n }", "public void updatemove() {\n\t\tmove = new Movement(getX(), getY(),dungeon,this);\n\t\t//System.out.println(\"Updated\");\n\t\tnotifys();\n\t\tif(this.getInvincible()) {\n\t\t\tsteptracer++;\n\t\t}\n\t\tdungeon.checkGoal();\n\t}", "public void update() {\n if (!outOfBounds()) {\n super.move(dirVec.mul(ShadowDefend.getTimescale() * speed));\n }\n super.update();\n }", "protected void end() {\n \tRobotMap.motorRightTwo.changeControlMode(TalonControlMode.PercentVbus);\n \tRobotMap.motorRightOne.changeControlMode(TalonControlMode.PercentVbus);\n \tRobotMap.motorLeftTwo.changeControlMode(TalonControlMode.PercentVbus);\n \tRobotMap.motorLeftOne.changeControlMode(TalonControlMode.PercentVbus);\n \tRobotMap.motorLeftOne.set(0);\n \tRobotMap.motorRightOne.set(0);\n \tRobotMap.motorLeftTwo.set(0);\n \tRobotMap.motorRightTwo.set(0);\n \tSystem.out.println(this.startAngle- RobotMap.navx.getAngle());\n\n\n \t\n }", "public abstract void doPerMoveWork();", "public void performance() {\n\t\tPositionVo s = currentPerformed.getFirst();\n\t\t@SuppressWarnings(\"unused\")\n\t\tPositionVo e = currentPerformed.getLast();\n//\t\tint timeCost = (int) (e.getTime() - s.getTime());\n//\t\tint span = (int) Math.abs(e.getHead().getX() - s.getHead().getX());\n\t\t// TODO according to the moving rate decide how many nodes fill the gap\n\n\t\tint size = currentPerformed.size();\n\n\t\tfor (int i = 1; i < size * 4 - 4; i += 4) {\n\t\t\tPositionVo s1 = currentPerformed.get(i - 1);\n\t\t\tPositionVo s2 = currentPerformed.get(i);\n\n\t\t\tPoint[] delta_Head = sim_dda(s1.getHead(), s2.getHead(), 4);\n\t\t\tPoint[] delta_left_hand = sim_dda(s1.getLeftHand(), s2.getRightHand(), 4);\n\t\t\tPoint[] delta_right_hand = sim_dda(s1.getRightHand(), s2.getRightHand(), 4);\n\n\t\t\tfor (int j = 0; j < 3; j++)\n\t\t\t\tcurrentPerformed.add(i + j, new PositionVo(delta_Head[j], delta_left_hand[j], delta_right_hand[j]));\n\t\t}\n\n\t\tnCount = currentPerformed.size();\n\t\tcursor = 0;\n\n\t\t/* (*)absolute point = initial point - current point */\n\t\treferX -= s.getHead().getX();\n\t\treferY += s.getHead().getY();\n\t\tcurrReferX = referX;\n\t\tcurrReferY = referY;\n\n\t\t/* update gui */\n\t\tmanager.proceBar.setMinimum(0);\n\t\tmanager.proceBar.setMaximum(nCount);\n\t\t/* end */\n\n\t\tstartTimer((int) (ANIMATE_FPS * speedRate));\n\t}", "public void update() {\n\t\tfirstMove = false;\n\t\tif (color == 1) xrange = -1;\n\t\tif (color == 0) xrange = 1;\n\t}", "public void ApplyMovement() {\n long currTime = SystemClock.uptimeMillis();\n if(currTime - lastUpdateTime < 16){\n return;\n }\n lastUpdateTime = currTime;\n\n\n double tl_power_raw = movement_y-movement_turn+movement_x*1.5;\n double bl_power_raw = movement_y-movement_turn- movement_x*1.5;\n double br_power_raw = -movement_y-movement_turn-movement_x*1.5;\n double tr_power_raw = -movement_y-movement_turn+movement_x*1.5;\n\n\n\n\n //find the maximum of the powers\n double maxRawPower = Math.abs(tl_power_raw);\n if(Math.abs(bl_power_raw) > maxRawPower){ maxRawPower = Math.abs(bl_power_raw);}\n if(Math.abs(br_power_raw) > maxRawPower){ maxRawPower = Math.abs(br_power_raw);}\n if(Math.abs(tr_power_raw) > maxRawPower){ maxRawPower = Math.abs(tr_power_raw);}\n\n //if the maximum is greater than 1, scale all the powers down to preserve the shape\n double scaleDownAmount = 1.0;\n if(maxRawPower > 1.0){\n //when max power is multiplied by this ratio, it will be 1.0, and others less\n scaleDownAmount = 1.0/maxRawPower;\n }\n tl_power_raw *= scaleDownAmount;\n bl_power_raw *= scaleDownAmount;\n br_power_raw *= scaleDownAmount;\n tr_power_raw *= scaleDownAmount;\n\n\n //now we can set the powers ONLY IF THEY HAVE CHANGED TO AVOID SPAMMING USB COMMUNICATIONS\n topLeft.setPower(tl_power_raw);\n bottomLeft.setPower(bl_power_raw);\n bottomRight.setPower(br_power_raw);\n topRight.setPower(tr_power_raw);\n }", "private void move() {\n acceleration.accelerate(velocity, position);\r\n }", "protected void end()\n\t{\n\t\t//\t\tdouble intakeSpeed[] = { 0.0, 0.0 };\n\t\t//\t\tRobot.intake.setSpeed(intakeSpeed);\n\t}", "public void movePacmans() {\n\t\ttry {\n\t\t\tgz.redraw();\n\t\t}\n\t\tcatch(NullPointerException npe) {\n\t\t\tgz.pauseGame();\n\t\t}\n\t}", "public void move() {\n\t\tmoveX();\n\t\tmoveY();\n\t}", "protected void end() {\n \n \tRobotMap.motorLeftOne.set(com.ctre.phoenix.motorcontrol.ControlMode.PercentOutput, 0);\n \tRobotMap.motorLeftTwo.set(com.ctre.phoenix.motorcontrol.ControlMode.PercentOutput, 0);\n \t\n \tRobotMap.motorRightOne.set(com.ctre.phoenix.motorcontrol.ControlMode.PercentOutput, 0);\n \tRobotMap.motorRightTwo.set(com.ctre.phoenix.motorcontrol.ControlMode.PercentOutput, 0);\n \t\n }", "protected void execute() {\n \tshooterWheel.shooterWheelSpeedControllerAft.Pause();\n \tshooterWheel.shooterWheelSpeedControllerFwd.Pause();\n \t\n }", "public void returnDefualt() {\r\n this.x = (float)getWidth()/2;\r\n this.y = (float)getHeight()/2;\r\n notifyObservers(normelizeAilron(this.x), normelizeElevator(this.y));\r\n }", "private void updateMovement() {\n if (_movementTask == null) {\n return;\n }\n\n if (getOwner().isDead() || _followTarget != null && _followTarget.isDead()) {\n cancelMoveTask2(true);\n return;\n }\n\n // Movement is invalid! Queue a new movement and wait again!\n if (_destinationLocation == null)\n {\n if (_waypoints.peek() != null) {\n _destinationLocation = _waypoints.poll();\n\n if (getOwner().getLocation().getGameSector() != null && getOwner().getLocation().getGameSector().hasActiveNeighbours()) {\n double validatedZ = GeoService.getInstance().validateZ(_destinationLocation.getX(), _destinationLocation.getY(), _destinationLocation.getZ());\n if (validatedZ == Double.MIN_VALUE) {\n _movementTick = System.currentTimeMillis();\n getOwner().getAi().setFindPathCompleted(false);\n cancelMoveTask2(true);\n onMovementComplete();\n return;\n }\n\n if (_destinationLocation != null) {\n _destinationLocation.setZ(validatedZ);\n }\n else {\n _movementTick = System.currentTimeMillis();\n getOwner().getAi().setFindPathCompleted(false);\n cancelMoveTask2(true);\n onMovementComplete();\n return;\n }\n _isSectorActive = true;\n }\n else {\n _isSectorActive = false;\n }\n notifySector(true);\n }\n else\n {\n _movementTick = System.currentTimeMillis();\n getOwner().getAi().setFindPathCompleted(true);\n cancelMoveTask2(true);\n onMovementComplete();\n return;\n }\n }\n\n if (_destinationLocation != null) {\n // Update current character movement, the location.\n float deltaTime = (System.currentTimeMillis() - _movementTick) / 1000.0f;\n float movementSpeed = getOwner().getActionStorage().getMoveSpeed();\n if (getOwner().getActionStorage().getAction().getActionChartActionT().getApplySpeedBuffType().isMove()) {\n movementSpeed *= (getOwner().getGameStats().getMoveSpeedRate().getMoveSpeedRate() + 1_000_000.0f) / 1_000_000.0f;\n }\n\n Location ownerLocation = getOwner().getLocation();\n\n double movementDirectionX = _destinationLocation.getX() - ownerLocation.getX();\n double movementDirectionY = _destinationLocation.getY() - ownerLocation.getY();\n double movementDirectionZ = _destinationLocation.getZ() - ownerLocation.getZ();\n\n double directionLength = Math.sqrt(Math.pow(movementDirectionX, 2) + Math.pow(movementDirectionY, 2) + Math.pow(movementDirectionZ, 2));\n movementDirectionX /= directionLength;\n movementDirectionY /= directionLength;\n movementDirectionZ /= directionLength;\n\n ownerLocation.setXYZ(\n ownerLocation.getX() + movementDirectionX * movementSpeed * deltaTime,\n ownerLocation.getY() + movementDirectionY * movementSpeed * deltaTime,\n ownerLocation.getZ() + movementDirectionZ * movementSpeed * deltaTime\n );\n\n if (_isSectorActive && !_navigationType.isAir()) {\n double validatedZ = GeoService.getInstance().validateZ(ownerLocation.getX(), ownerLocation.getY(), ownerLocation.getZ());\n if (validatedZ == Double.MIN_VALUE) {\n getOwner().getAi().setFindPathCompleted(false);\n cancelMoveTask2(true);\n onMovementComplete();\n return;\n }\n\n ownerLocation.setZ(validatedZ);\n }\n\n if (ownerLocation.isValid() && World.getInstance().getWorldMap().updateLocation(getOwner(), ownerLocation.getX(), ownerLocation.getY())) {\n double distanceToPoint = MathUtils.getDistance(ownerLocation, _destinationLocation) - getOwner().getTemplate().getBodySize();\n notifyVehicleMovement();\n\n if (_followTarget != null) {\n distanceToPoint -= _followTarget.getTemplate().getBodySize();\n\n if (!MathUtils.isInRange(_destinationLocation, _followTarget.getLocation(), 150)) {\n _destinationLocation.setLocation(_followTarget.getLocation());\n notifySector(true);\n } else { // No more waypoint's available. Send movement stop and events.\n if (distanceToPoint < 75 || distanceToPoint < getOwner().getTemplate().getAttackRange() && getOwner().getAi().getBehavior().isChase()) {\n getOwner().getAi().setFindPathCompleted(true);\n cancelMoveTask2(false);\n onMovementComplete();\n }\n }\n } else {\n // Check if we are near another destination, then we will\n // switch to another waypoint instead to continue our journey.\n Location nextWaypoint = _waypoints.peek();\n if (nextWaypoint != null) {\n if (distanceToPoint < 100) {\n _destinationLocation = null;\n }\n } else { // No more waypoint's available. Send movement stop and events.\n if (distanceToPoint < 75 || distanceToPoint < getOwner().getTemplate().getAttackRange() && getOwner().getAi().getBehavior().isChase()) {\n getOwner().getAi().setFindPathCompleted(true);\n cancelMoveTask2(false);\n onMovementComplete();\n }\n }\n }\n } else {\n getOwner().getAi().setFindPathCompleted(false);\n cancelMoveTask2(true);\n onMovementComplete();\n }\n }\n _movementTick = System.currentTimeMillis();\n }", "protected void Simulation_done()\n {\n \t//System.out.println(\"total lost:\");\n \tdouble time=getTime();\n \twhile(!a_buffer.isEmpty()){\n \t\ts.delay[s_index]+=time-a_buffer.remove().time;\n \t}\n \ts.delay[s_index]=math_yt.Divide(s.delay[s_index],numM);\n \tif(s.performance[s_index]==0)\n \t\ts.performance[s_index]=Double.POSITIVE_INFINITY;\n \telse\n \t\ts.performance[s_index]=math_yt.Divide(s.performance[s_index],s.firstacked);\n \tif(s.rtt[s_index]==0)\n \t\ts.rtt[s_index]=Double.POSITIVE_INFINITY;\n \telse\n \t\ts.rtt[s_index]=math_yt.Divide(s.rtt[s_index],s.nore);\n \ts.tput[s_index]=math_yt.Divide(math_yt.Multiply(s.t,256),time);\n \t/*if(s.firstacked==0)\n \t\ts.goodput[s_index]=Double.POSITIVE_INFINITY;\n \telse\n \t\ts.goodput[s_index]=math_yt.Divide(math_yt.Multiply(s.firstacked,160),time);*/\n \ts.goodput[s_index]=math_yt.Divide(math_yt.Multiply(s.firstacked,160),time);\n \tSystem.out.println(\"****************************8\");\n \tSystem.out.println(\"time:\"+getTime());\n \tSystem.out.println(\"simulation_done:\"+fa+\", average performance:\"+math_yt.Divide(perf, fa));\n }", "public void monitor() {\n moveTo(1.0, 10);\n try {\n Thread.sleep(500);\n } catch (InterruptedException ex) {\n }\n getPos();\n try {\n Thread.sleep(500);\n } catch (InterruptedException ex) {\n }\n getPos();\n try {\n Thread.sleep(500);\n } catch (InterruptedException ex) {\n }\n getPos();\n }", "protected void execute() {\n \n \t\n \t \n \t\n \n System.out.println((Timer.getFPGATimestamp()- starttime ) + \",\" + (RobotMap.motorLeftTwo.getEncPosition()) + \",\"\n + (RobotMap.motorLeftTwo.getEncVelocity()*600)/-4096 + \",\" + RobotMap.motorRightTwo.getEncPosition() + \",\" + (RobotMap.motorRightTwo.getEncVelocity()*600)/4096);\n \n /*if(endpoint > 0){\n cruiseVelocityLeft = (float) (this.initCruiseVelocityLeft+ angleorientation.getResult());\n cruiseVelocityRight = (float) (this.initCruiseVelocityRight - angleorientation.getResult());\n }\n if(endpoint <= 0){\n cruiseVelocityLeft = (float) (this.initCruiseVelocityLeft- angleorientation.getResult());\n cruiseVelocityRight = (float) (this.initCruiseVelocityRight + angleorientation.getResult());\n }*/\n System.out.println(this.motionMagicEndPoint*4096 + RobotMap.motorLeftTwo.getEncPosition() + \"l\");\n System.out.println(this.motionMagicEndPoint*4096 - RobotMap.motorRightTwo.getEncPosition() + \"r\");\n \n \n \t if(RobotMap.motorLeftTwo.getEncVelocity()!= velocityLeft)\n velocityLeft = RobotMap.motorLeftTwo.getEncVelocity(); \n velocityRight = RobotMap.motorRightTwo.getEncVelocity();\n SmartDashboard.putNumber(\"LeftWheelError\", (this.motionMagicEndPoint*4096 + RobotMap.motorLeftTwo.getEncPosition()));\n SmartDashboard.putNumber(\"RightWheelError\",(this.motionMagicEndPoint*4096 - RobotMap.motorRightTwo.getEncPosition()));\n SmartDashboard.putNumber(\"LeftWheelVelocity\", (RobotMap.motorLeftTwo.getEncVelocity())*600/4096);\n SmartDashboard.putNumber(\"RightWheelVelocity\",(RobotMap.motorRightTwo.getEncVelocity()*600)/4096);\n \n \n count++;\n \tangleorientation.updatePID(RobotMap.navx.getAngle());\n }", "public void AdvancePos() {\n \tswitch (data3d.TrackDirection){\n \tcase 0:\n \tc2.PositionValue += 1;\n \tc2.PositionValue = (c2.PositionValue % c2.getMaxPos());\n \tbreak;\n \tcase 1:\n \tc3.PositionValue += 1;\n \tc3.PositionValue = (c3.PositionValue % c3.getMaxPos());\n \tbreak;\n \tcase 2:\n \tc1.PositionValue += 1;\n \tc1.PositionValue = (c1.PositionValue % c1.getMaxPos());\n \tbreak;\n \tcase 3:\n \tdata3d.setElement((data3d.ActiveElement + 1) % data3d.Elements);\n \tcase 4:\n \tdata3d.setTime((data3d.ActiveTime + 1) % data3d.Times);\n \t}\n }", "protected void end() {\n\t\tloadLeftBuffer.stop();\n\t\tresetTalon(rightTalon, ControlMode.PercentOutput, 0);\n\t\tresetTalon(leftTalon, ControlMode.PercentOutput, 0);\n\t}", "private void calculateActions() {\n\n //Generate All Possible Moves In Tree\n this.possibleMoves.clear();\n this.possibleRotation = 0;\n Thread instance = new Thread(this);\n instance.start();\n try {\n instance.join();\n } catch (InterruptedException e) {}\n\n //Choose Best Move From List\n double [] move = chooseBestMove(possibleMoves);\n\n //Calculate Actions from this move and push to queue\n generateActions(move);\n }", "private void finishBuilding() {\n buildTarget = null;\n buildStep = 0;\n buildInstructions = null;\n buildLocation = null;\n buildHeight = null;\n\n knowledge.myState = RobotState.IDLE;\n }", "public void Exit() {\n\t\tif(currentCar == null)\n\t\t\treturn;\n\n\t\tcurrentCar.setRoad(roads.get(nextDir));\n\t\tRoad nextRoad = roads.get(nextDir);\n\t\tif(currentCar != null){\n\t\t\tnextRoad.Enter(currentCar);\n\t\t\tcurrentCar = null;\n\t\t}\n\n\t\t//currentCar.curVelocity = 0;\n\t}", "public void move()\n {\n xPosition = xPosition + xSpeed;\n yPosition = yPosition + ySpeed;\n draw();\n if (xPosition >= rightBound - diameter)\n {\n xSpeed = -(xSpeed);\n\n }\n else\n {\n }\n if (xPosition <= leftBound)\n {\n xSpeed = -(xSpeed);\n\n }\n else\n {\n }\n if (yPosition <= upBound)\n {\n ySpeed = -(ySpeed);\n\n }\n else\n {\n }\n if (yPosition >= lowBound - diameter)\n {\n ySpeed = -(ySpeed);\n\n }\n else \n {\n }\n\n }", "protected void end() {\n \tRobot.drivetrain.leftDrive1.set(0); \n \tRobot.drivetrain.leftDrive2.set(0);\n \tRobot.drivetrain.leftDrive3.set(0);\n \t\n \tRobot.drivetrain.rightDrive1.set(0);\n \tRobot.drivetrain.rightDrive2.set(0);\n \tRobot.drivetrain.rightDrive3.set(0);\n \tRobot.twoGearAngle = Robot.drivetrain.gyro.getYaw();\n }", "public void clean()\n\t{\n\t\tstep = -2;\n\t\tisIterationStep = false;\n\n\t\tcurrentTime = deltaTime = stepCallbackTime = 0;\n\t\tisInitialized = isFinished = isKilled = isPaused = false;\n\t}", "public void move()\n {\n x = x + unitVector.getValue(1)*speed;\n y = y + unitVector.getValue(2)*speed;\n }", "@Override\n protected void end() {\n Robot.myLifter.setLeftSpeed(0);\n Robot.myLifter.setRightSpeed(0);\n }", "protected void move() {\n\t\tx += dx;\n\t\ty += dy;\n\t\tif (distance() > range) remove();\n\t}", "public void paradiseMove(){\n if (!getCurrentMainCellCoordinates().equals(new DiscreteCoordinates(11, 9))) {\n move(30);\n }\n }", "protected void execute() {\n \tRobot.driveTrain.arcadeNoConstants(MOVE_SPEED_PERCENT, Robot.driveTrain.gyroPReturn(direction));\n }", "public void movement()\n\t{\n\t\tballoonY = balloonY + speedBalloonY1;\n\t\tif(balloonY > 700)\n\t\t{\n\t\t\tballoonY = -50;\n\t\t\tballoonX = (gen.nextInt(900)-75);\n\t\t}\n\t\tballoon2Y = balloon2Y + speedBalloonY2;\n\t\tif(balloon2Y > 700)\n\t\t{\n\t\t\tballoon2Y = -50;\n\t\t\tballoon2X = (gen.nextInt(900)-75);\n\t\t}\n\t\tballoon3Y = balloon3Y + speedBalloonY3;\n\t\tif(balloon3Y > 700)\n\t\t{\n\t\t\tballoon3Y = -50;\n\t\t\tballoon3X = (gen.nextInt(900)-75);\n\t\t}\n\t\tballoon4Y = balloon4Y + speedBalloonY4;\n\t\tif(balloon4Y > 700)\n\t\t{\n\t\t\tballoon4Y = -50;\n\t\t\tballoon4X = (gen.nextInt(900)-75);\n\t\t}\n\t\t\n\t\tballoon5Y = balloon5Y + speedBalloonY5;\n\t\tif(balloon5Y > 700)\n\t\t{\n\t\t\tballoon5Y = -50;\n\t\t\tballoon5X = (gen.nextInt(900)-75);\n\t\t}\n\t}", "public void move() {\n\t\tthis.position.stepForwad();\n\t\tthis.position.spin();\n\t}", "protected void execute()\n\t{\n\t\tdouble speed = Robot.oi.getActuatorSpeed();\n\t\t// Treat a zone around the center position as zero to prevent fluctuating\n\t\t// motor speeds when the joystick is at rest in the center position.\n\t\tRobot.linearActuator.setSpeed(Math.abs(speed) >= .1 ? speed : 0);\n\t}", "@SuppressWarnings(\"static-access\")\n\t@Override\n\tpublic void run() \n\t{\n\t\tint currentdx = 0;\n\t\tint currentdy = 0;\n\t\twhile(currentdy < Math.abs(dy) || currentdx < Math.abs(dx))\n\t\t{\n\t\t\tif(time == 0)\n\t\t\t{\n\t\t\t\tif(dx < 0 || dy < 0){\n\t\t\t\tdy = -dy;\n\t\t\t\tdx = -dx;\n\t\t\t\tcurrentdy = dy;\n\t\t\t\tcurrentdx = dx;\n\t\t\t\tMainController.getInstance().moveImage(name, -dx, -dy);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tcurrentdy = dy;\n\t\t\t\t\tcurrentdx = dx;\n\t\t\t\t\tMainController.getInstance().moveImage(name, dx, dy);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(currentdy < Math.abs(dy) && currentdx < Math.abs(dx)){\n\t\t\t\tcurrentdy++;\n\t\t\t\tcurrentdx++;\t\t\t\t\n\t\t\t\tMainController.getInstance().moveImage(name, dx/Math.abs(dx), dy/Math.abs(dy));\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(currentdy < Math.abs(dy)){\n\t\t\t\t\tcurrentdy++;\t\n\t\t\t\t\tMainController.getInstance().moveImage(name, 0, dy/Math.abs(dy));\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tif(currentdx < Math.abs(dx)){\n\t\t\t\t\tcurrentdx++;\t\t\t\t\n\t\t\t\t\tMainController.getInstance().moveImage(name, dx/Math.abs(dx), 0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tthis.sleep(time * 1000 / (( Math.max(Math.abs(dx), Math.abs(dy) ))+1));\n\t\t\t\tMainController.getInstance().repaint();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\n\t\t\tif((currentdx % 100 == 0 && currentdx != dx )|| (currentdy % 100 == 0&& currentdy!=dy))\n\t\t\t\tSystem.out.println(currentdx + \" \" + currentdy);\n\t\t}\n\t}", "public void go()\n {\n for( int i = 0; i<3; i++)m[i].setSpeed(720);\n step();\n for( int i = 0; i<3; i++)m[i].regulateSpeed(false);\n step();\n }", "@Override\n protected void onAnimationEnd() {\n super.onAnimationEnd();\n animating = false;\n\n if (moveAtEnd) {\n moveAtEnd = false;\n clearAnimation();\n setX(destX);\n setY(destY);\n }\n }", "protected void end() {\n \tRobot.shooter.speed(0.0);\n }", "public void updatePosition() {\n\n this.x = this.temp_x;\n this.y = this.temp_y;\n this.ax = 0;\n this.ay = 0;\n\t\tthis.axplusone = 0;\n this.ayplusone = 0;\n \n }", "protected void preUpdate() {\n freeX = true;\n freeY = true;\n }", "public void actionPerformed(ActionEvent event) {\t// Positionsdaten der bewegbaren Objekte aktualisieren und im Anschluss neu zeichnen\n \tEnemy.move();\n\t Player.move();\n\t TemporaryItem.updater();\n\t //ProjectileManager.controlProjectiles();\n\t Projectile.move();\n\t DisplayManager.updateDisplayTimers();\n\t Traps.updater();\n\t\n\t Controls.controls.updateGamePad();\n \trepaint();\t\t// neu zeichnen\n }", "protected void resetMotion(){\n \tisMoving = false;\n \tframesForCurrentMove = 0;\n \ttargetMainCellCoordinates = getCurrentMainCellCoordinates();\n }", "protected void end() {\r\n Robot.feeder.retractArm();\r\n Robot.feeder.setFeederIntakeSpeed(0);\r\n Robot.chassis.driveMecanumNormalized(0, 0, 0);\r\n Robot.shooter.setShootingMotors(0, 0);\r\n }", "@Override\n public void update(){\n getNextPosition();\n checkTileMapCollision();\n setPosition(xtemp, ytemp);\n animation.update();\n }", "@Override\n\tpublic void move() {\n\t\tCoordinate currPos = new Coordinate(control.getPosition());\n\t\t\n\t\t// if we have enough packages head to the exit\n\t\tif (control.numParcels() <= control.numParcelsFound()) {\n\t\t\t// if we don't have a path to the exit\n\t\t\tif (control.currentPath == null || !control.isHeadingToFinish) {\t\n\t\t\t\t// find path to exit\n\t\t\t\tArrayList<Coordinate> tempPath = null;\n\t\t\t\t// See if there's a path without needing to go through hazards\n\t\t\t\ttempPath = control.findPath(currPos, control.finish.get(0), control.hazardsMap.keySet());\n\t\t\t\tSet<Coordinate> tempHazards = new HashSet<>(control.hazardsMap.keySet());\n\t\t\t\t// If no path without going through hazards, just go through them\n\t\t\t\tif (tempPath == null || tempPath.size() == 0) {\n\t\t\t\t\tfor (Coordinate coord : control.hazardsMap.keySet()) {\n\t\t\t\t\t\ttempHazards.remove(coord);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// If it's a valid map, there should be a path now\n\t\t\t\tcontrol.setPath(control.findPath(currPos, control.finish.get(0), tempHazards));\n\t\n\t\t\t\tcontrol.isHeadingToFinish = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\theadTowardsPackages(currPos);\n\t\t\n\t\texploreUnseenMap(currPos);\n\t\t\n\t\tMapTile currTile = control.getView().get(currPos);\n\t\tboolean isHealth = false;\n\t\tif (currTile.getType() == MapTile.Type.TRAP) {\n\t\t\tTrapTile trap = (TrapTile) currTile;\n\t\t\tif (trap.getTrap().equals(\"health\")) {\n\t\t\t\tisHealth = true;\n\t\t\t}\n\t\t}\n\t\tif (isHealth && (control.getHealth() < HEALTH_TRAP_THRESHOLD)) {\n\t\t\t// do nothing\n\t\t\treturn;\n\t\t} else {\n\t\t\tisHealth = false;\n\t\t\tcontrol.moveTowards(control.dest);\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic void update_logic()\n\t{\n\t\tArrayList<Double> angleList = new ArrayList<Double>();\n\t\tfor(GameObject item : sightList)\n\t\t{\n\t\t\tangleList.add(ALL.point_direction(x, y, item.getX(), item.getY()));\n\t\t}\n\t\t\n\t\t// only if there is something to run from\n\t\tif (angleList.size() > 0)\n\t\t{\n\t\t\trunFromOthers(angleList);\n\t\t} else {\n\t\t\tmotion_set(direction, 0);\n\t\t}\n\t\t\n\t\t// show a debug message\n\t\tdebugString = Integer.toString(resources);\n\n\t}", "public void act() \n {\n movement();\n }", "protected void update(){\n\t\t_offx = _x.valueToPosition(0);\n\t\t_offy = _y.valueToPosition(0);\n\t}", "private boolean processMovingObject()\n {\n MovingObject[] ap_objects = p_gsb.ap_MovingObjects;\n for (int li = 0;li < ap_objects.length;li++)\n {\n MovingObject p_obj = ap_objects[li];\n\n if (!p_obj.lg_Active) continue;\n\n if (p_obj.process())\n {\n if (p_obj.i_State == MovingObject.STATE_EXPLODE)\n {\n p_obj.lg_Active = false;\n continue;\n }\n }\n\n if (p_obj.i_State == MovingObject.STATE_EXPLODE) continue;\n\n switch (p_obj.i_Type)\n {\n case MovingObject.TYPE_ARROW:\n {\n p_obj.i_scry -= ARROWSPEED;\n if (p_obj.i_scry <= (0 - p_obj.i_height))\n {\n p_obj.lg_Active = false;\n continue;\n }\n }\n ;\n break;\n case MovingObject.TYPE_ASSAULTER:\n {\n if (getRandomInt(1000) <= p_gsb.i_shotfreq)\n {\n MovingObject p_arrow = p_gsb.getInactiveMovingObject();\n if (p_arrow != null)\n {\n p_arrow.activate(MovingObject.TYPE_ARROW,MovingObject.STATE_UP);\n p_arrow.i_scrx = p_obj.i_scrx;\n p_arrow.i_scry = p_obj.i_scry - p_arrow.i_height;\n }\n }\n\n if (p_obj.i_State != MovingObject.STATE_DOWN) generateLadderAndDamForAssaulter(p_obj);\n\n switch (p_obj.i_State)\n {\n case MovingObject.STATE_LEFT:\n {\n if (p_obj.i_scrx - ASSAULTER_HORZSPEED < 0)\n {\n p_obj.setState(MovingObject.STATE_RIGHT,false);\n }\n else\n {\n p_obj.i_scrx -= ASSAULTER_HORZSPEED;\n }\n }\n ;\n break;\n case MovingObject.STATE_RIGHT:\n {\n if (p_obj.i_scrx + p_obj.i_width + ASSAULTER_HORZSPEED >= i_screenWidth)\n {\n p_obj.setState(MovingObject.STATE_LEFT,false);\n }\n else\n {\n p_obj.i_scrx += ASSAULTER_HORZSPEED;\n }\n }\n ;\n break;\n case MovingObject.STATE_UP:\n {\n p_obj.i_scry -= ASSAULTER_VERTSPEED;\n if ((p_obj.i_scry + (p_obj.i_height >> 1)) / VIRTUALCELL_HEIGHT == 0/*p_gsb.i_playeralt*/) return true;\n }\n ;\n break;\n case MovingObject.STATE_DOWN:\n {\n p_obj.i_scry += ASSAULTER_VERTSPEED;\n int i_cellx = p_obj.i_scrx / VIRTUALCELL_WIDTH;\n int i_celly = (p_obj.i_scry + p_obj.i_height - 1) / VIRTUALCELL_HEIGHT;\n boolean lg_stop = false;\n if (i_celly < FIELD_HEIGHT-p_gsb.i_playeralt)\n {\n if (Assault_GSB.getElement(i_cellx,i_celly) != Assault_GSB.CELL_NONE) lg_stop = true;\n }\n else\n {\n lg_stop = true;\n i_celly--;\n }\n\n if (lg_stop)\n {\n p_obj.i_scry = i_celly * VIRTUALCELL_HEIGHT;\n if (getRandomInt(40) >= 20)\n {\n p_obj.setState(MovingObject.STATE_LEFT,false);\n }\n else\n {\n p_obj.setState(MovingObject.STATE_RIGHT,false);\n }\n }\n }\n ;\n break;\n }\n }\n ;\n break;\n case MovingObject.TYPE_STONE:\n {\n if (p_obj.i_State == MovingObject.STATE_DOWN)\n {\n p_obj.i_scry += STONESPEED;\n if ((p_obj.i_scry + p_obj.i_height) >= FIELD_HEIGHT * VIRTUALCELL_HEIGHT)\n {\n p_obj.i_scry = (FIELD_HEIGHT * VIRTUALCELL_HEIGHT) - p_obj.i_height - 1;\n p_obj.setState(MovingObject.STATE_EXPLODE,false);\n }\n }\n }\n ;\n break;\n }\n }\n return false;\n }", "public int move () {\n intMoveState = 0;\r\n int pixel1;\r\n int pixel2;\r\n \r\n if (blnUp) {\r\n pixel1 = getPixelRGB (X - 25, Y + 10, \"r\");\r\n pixel2 = getPixelRGB (X + 25, Y + 10, \"r\");\r\n \r\n if (pixel1 != 0 && pixel2 != 0) { \r\n Y -= intSpeed;\r\n intMoveState -= 1;\r\n }\r\n }\r\n if (blnDown) {\r\n pixel1 = getPixelRGB (X - 25, Y + 46, \"r\");\r\n pixel2 = getPixelRGB (X + 25, Y + 46, \"r\");\r\n \r\n if (pixel1 != 0 && pixel2 != 0) { \r\n Y += intSpeed;\r\n intMoveState += 1;\r\n }\r\n }\r\n if (blnLeft) {\r\n pixel1 = getPixelRGB (X - 30, Y + 15, \"r\");\r\n pixel2 = getPixelRGB (X - 30, Y + 30, \"r\");\r\n \r\n if (pixel1 != 0 && pixel2 != 0) { \r\n X -= intSpeed;\r\n intMoveState -= 2;\r\n }\r\n }\r\n if (blnRight) {\r\n pixel1 = getPixelRGB (X + 30, Y + 15, \"r\");\r\n pixel2 = getPixelRGB (X + 30, Y + 30, \"r\");\r\n \r\n if (pixel1 != 0 && pixel2 != 0) { \r\n X += intSpeed;\r\n intMoveState += 2;\r\n }\r\n }\r\n \r\n try {\r\n dblAngle = Math.atan2((MouseY - Y),(MouseX - X));\r\n if (dblAngle < - Math.PI/4) {\r\n dblAngle = 2 * Math.PI + dblAngle;\r\n }\r\n }catch (ArithmeticException e) {\r\n if (MouseY < Y) {\r\n dblAngle = 3 * Math.PI/2;\r\n }else {\r\n dblAngle = Math.PI/2;\r\n }\r\n }\r\n degreesAngle = (int) (Math.toDegrees(dblAngle)); \r\n \r\n if(intHealth < 0 && !UserInterface.deathScreenVisible){\r\n UserInterface.deathScreenVisible = true;\r\n deathTime = System.nanoTime();\r\n ClientMain.ssm.sendText(\"player,\" + ClientMain.intPlayerNumber + \",iamdeadlol\");\r\n }\r\n \r\n return getPixelRGB (X, Y + 46, \"g\");\r\n }", "public void apply() {\n double currentHeading = self.getHeading();\n IGameIterator iter = target.getCollection().getIterator();\n Pylon nextPylon = null;\n while (iter.hasNext()) {\n iter.getNext();\n if (iter.get() instanceof Pylon) {\n if (((Pylon) iter.get()).getNum() == self.getLatestPylon() + 1) { //if it is the next pylon\n nextPylon = (Pylon) iter.get();\n }\n }\n }\n if (nextPylon == null) { //if there are no more pylons\n self.changeSpeed(0 - ((int) self.getMaxSpeed())); //stop at the finish line\n return;\n }\n\n double deltaX = nextPylon.getPosition().getX() - self.getPosition().getX();\n double deltaY = nextPylon.getPosition().getY() - self.getPosition().getY();\n newHeading = Math.toDegrees(Math.atan2(deltaY, deltaX));\n double rightTurn;\n double leftTurn;\n\n rightTurn = (newHeading - currentHeading);\n if (rightTurn < 0)\n rightTurn += 360;\n leftTurn = 360 - rightTurn;\n\n if (leftTurn <= rightTurn) {\n //turn left\n self.steer(-15);\n } else {\n // turn right\n self.steer(15);\n }\n //self.steer((int) (newHeading - currentHeading));\n currentHeading = self.getHeading();\n\n //move at max speed towards it\n self.changeSpeed((int) self.getMaxSpeed());\n }", "public void process()\n {\n // Get current time\n\t\tdouble t = readClock() * clockSpeed;\n\t\tdouble dTime = t - computeClock;\n\t\tdouble dtMax = 1/50.0f;\n\t\n\t\t// Set current time on display\n\t\tcomputeClock = t;\n\t\t\n\n // Only process if time has elapsed\n if (dTime <= 0)\n return;\n\n\n\t\t// ---------------\n\t\n\t\t// Compute accelerations, then integrate (using Critter methods)\n\t\n\t // This part advances the simulation forward by dTime seconds, but\n\t // using steps that are no larger than dtMax (this means it takes\n\t // more than one step when dTime > dtMax -- the number of steps\n\t // you need is stored in numSteps).\n\t\n\t // *** placeholder value\n\t int numSteps = (int) Math.floor(dTime / dtMax);\n\t \n\t // compute a new 'goal' point for the mainbug to attract toward - every 7 seconds\n\t if ((computeClock) - (goalPickClock) > 7)\n\t {\n\t \t// pick a new random goal point\n\t \tgoal = new Point3d(rgen.nextDouble()*16-8, rgen.nextDouble()*16-8, 0);\n\t \tgoalPickClock = computeClock;\n \t\n\t \ttarget = (int)rgen.nextDouble()*(critters.size()-2);\n\t \twhile (critters.get(target) == predator || critters.get(target) == mainBug)\n\t \t\ttarget = (int)(rgen.nextDouble()*(critters.size()-1));\n\t }\n\t \n\t // Here is the rough structure of what you'll need\n\t //\n\t\t// numSteps = how many steps to take for stable integration\n\t // do numSteps times\n\t // - reset acceleration\n\t // - compute acceleration (adding up accelerations from attractions,\n\t // repulsions, drag, ...)\n\t // - integrate (by dTime/numSteps)\n\t // end\n\t //\n\t // ...\n\t for (int i = 0; i < numSteps; i++)\n\t {\n\t \tfor (int k = 0; k < critters.size(); k++)\n\t \t{\n\t \t\tCritter tmp = critters.get(k);\n\t \t\ttmp.accelReset();\n\t \t\ttmp.accelDrag(0.6); // dampening\n\t \t\t\n\n\t \t\t\n\t \t\tif (tmp == mainBug)// big bug follows randomized 'goal' point (food? water? shelter? )\n\t \t\t{\n\t \t\t\ttmp.accelAttract(goal, 0.1, 1);\n\t \t\t\ttmp.accelAttract(predator.getLocation(), -rgen.nextDouble()*0.3, -2);\n\t \t\t\ttmp.accelAttract(origin, 0.25, 1);\t \t\t\t // attraction toward center of scene\n\t \t\t}\n\t \t\telse if (tmp == predator )\n\t \t\t{\n \t\t\t\t\ttmp.accelAttract(critters.get(target).getLocation(), rgen.nextDouble()*0.4, 2);\t \t\t\t\t\t\n\t \t\t}\n\t \t\telse \n\t \t\t{\n\t \t\t\t// baby bugs follow big bug and are repelled from other baby bugs and predator!\n\t \t\t\ttmp.accelAttract(mainBug.getLocation(), rgen.nextDouble()*0.3, 1);\n\t \t\t\ttmp.accelAttract(predator.getLocation(), -rgen.nextDouble()*0.45, -3);\n\t \t\t\tfor (int m = 0; m < critters.size(); m++)\n\t \t\t\t{\n\t \t\t\t\tif (critters.get(m) != mainBug && critters.get(m) != tmp)\n\t \t\t\t\t\ttmp.accelAttract(critters.get(m).getLocation(), -rgen.nextDouble()*0.5, -1);\t \t\t\t\t\t\n\t \t\t\t}\n\t \t\t}\n\t\n\t\t \t// repulsion away from obstacles\n\t\t \tfor (int j = 0; j < obstacles.size(); j++)\n\t\t \t{\n\t\t \t\ttmp.accelAttract(obstacles.get(j).getLocation(), -0.5, -2);\n\t\t \t}\n\t\t \t\n\t\t \ttmp.integrate(dTime/numSteps);\n\t \t}\n\t }\n\t\n\t // Keyframe motion for each critter\n\t for (int i = 0; i < critters.size(); i++)\n\t {\n\t \tcritters.get(i).keyframe(critters.get(i).dist);\n\t }\n }", "private void nextPosition()\n\t{\n\t\tdouble playerX = Game.player.getX();\n\t\tdouble playerY = Game.player.getY();\n\t\tdouble diffX = playerX - x;\n\t\tdouble diffY = playerY - y;\n\t\tif(Math.abs(diffX) < 64 && Math.abs(diffY) < 64)\n\t\t{\n\t\t\tclose = true;\n\t\t} \n\t\telse\n\t\t{\n\t\t\tclose = false;\n\t\t}\n\t\tif(close)\n\t\t{\n\t\t\tattackPlayer();\n\t\t} \n\t\telse if(alarm.done())\n\t\t{\n\t\t\tdirection = Math.abs(random.nextInt() % 360) + 1;\n\t\t\talarm.setTime(50);\n\t\t}\n\t\thspd = MathMethods.lengthDirX(speed, direction);\n\t\tvspd = MathMethods.lengthDirY(speed, direction);\n\t\tif(hspd > 0 && !flippedRight)\n\t\t{\n\t\t\tflippedRight = true;\n\t\t\tsetEnemy();\n\t\t} \n\t\telse if(hspd < 0 && flippedRight)\n\t\t{\n\t\t\tflippedRight = false;\n\t\t\tsetEnemy();\n\t\t}\n\t\tmove();\n\t\talarm.tick();\n\t\tshootTimer.tick();\n\t}", "public void move() {\n\t\tif (type.equals(\"Fast\")) {\n\t\t\tspeed = 2;\n\t\t}else if (type.equals(\"Slow\")){\n\t\t\tspeed = 4;\n\t\t}\n\t\t\n\t\tif (rand.nextInt(speed) == 1){\n\t\t\tif (currentLocation.x - ChristopherColumbusLocation.x < 0) {\n\t\t\t\tif (currentLocation.x + 1 < oceanMap.getDimensions()) {\n\t\t\t\t\tcurrentLocation.x++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentLocation.x != 0) {\t\t\t\t\n\t\t\t\t\tcurrentLocation.x--;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (currentLocation.y - ChristopherColumbusLocation.y < 0) {\n\t\t\t\tif (currentLocation.y + 1 < oceanMap.getDimensions()) {\n\t\t\t\t\tcurrentLocation.y++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentLocation.y != 0) {\n\t\t\t\t\tcurrentLocation.y--;\n\t\t\t\t}\n\t\t\t} \n\t\t}\n\t}", "public void act(){\n // Removing object, if out of the simulated zone\n if (atWorldEdge()){\n getWorld().removeObject(this);\n return;\n }\n\n //Move Thanos up\n setLocation (getX(), getY() - speed);\n }", "protected void execute() {\n \t\n \tcurrent_time = System.currentTimeMillis();\n \t\n \tlift.liftDown(LIFT_SPEED);\n }", "public void step(){\r\n\t\t\r\n\t\t\r\n\t\tsuper.step();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tif(marketEntryHappend){\r\n\t\t\t\r\n\t\t\t\r\n\t\t\taddSequencesToGraphs();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tif(marketExitHappend){\r\n\t\t\t\r\n\t\t\tfor(int i =0; i < exitedFirms.size();i++){\r\n\t\t\t\r\n\t\t\t\tfreeCoordinates.add(new Coordinate(exitedFirms.get(i).x_coord,exitedFirms.get(i).y_coord)); \r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\r\n\t\tgraphOutput.step();\r\n\t\tgraphPrice.step();\r\n\t\tgraphQuality.step();\r\n\t\tgraphFirmLocations.step();\r\n\t\t//graphEnteringCosts.step();\r\n\t\tgraphAverageProbability.step();\r\n\t\tgraphTotalProfit.step();\r\n\t\tgraphNumFirms.step();\r\n\t\t\r\n\t\tgraphSingleOutput.step();\r\n\t\tgraphSinglePrice.step(); \r\n\t\tgraphSingleQuality.step(); \r\n\t\tgraphSingleFirmLocations.step();\r\n\t graphSingleProbability.step(); \r\n\t\tgraphSinglelProfit.step();\r\n\t\tgraphSingleQualityConcept.step();\r\n\t\r\n\t\tgraphClusteringCoefficient.step();\r\n\t\t\r\n\t\tgraphCumProfit.step();\r\n\t\t\r\n\t\tfor(int i=0; i < dsurfList.size();i++){\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tgridSpaceList.get(i).update(locationList.get(i));;\r\n\t\t\t\r\n\t\t dsurfList.get(i).updateDisplay();\r\n\t\t }\r\n\t\t\r\n\t\t\tlayout.setList(nodeList);\r\n\t\t\r\n\t\t layout.updateLayout();\r\n\t\t surface.updateDisplay();\r\n\t\t \r\n\t\t\r\n\t\t\r\n\t}", "private static void processGroundCal()\n\t{\n\t\tif (testMotor != null) {\n\t\t\tSystem.out.println(\"Calibrating arm to floor position\");\n\t\t\ttestMotor.setPosition(SOFT_ENCODER_LIMIT_FLOOR);\n\t\t}\n\t}", "@Override\n\tpublic void update() {\n\t\tif(!shortestPath.isEmpty())\n\t\t\tnextPoint = shortestPath.peek();\n\t\telse\n\t\t{\n\t\t\tgameManager.killEnemy(this, false);\n\t\t\tGameStateManager.getInstance().getPlayState().removeEnemy(this);\n\t\t\treturn;\n\t\t}\n\t\tnextVector = new Vector2d(nextPoint.x * PlayState.INGAMETILESIZE, nextPoint.y * PlayState.INGAMETILESIZE);\n\t\tdirection = Vector2d.sub(nextVector, position);\n\t\tif(direction.mag() < tolerance)\n\t\t{\n\t\t\tposition = nextVector;\n\t\t\tshortestPath.pop();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdirection.normalize();\n\t\t\tposition.add(direction);\n\t\t}\n\t}", "public void moveObjsToGoals() {\n\t\tMap<Integer, MovingFObject> map = sc.getInitPos();\r\n\t\tfor(int i = 0; i < map.size(); i++) {\r\n\t\t\tMovingFObject temp = map.get(i);\r\n\t\t\tsc.moveAtVelAtTimeToLoc(i, sc.getMaxVelocity(), 0, (Location)temp.getGoal());\r\n\t\t}\r\n\t}", "public void actualiza() {\n //Determina el tiempo que ha transcurrido desde que el Applet inicio su ejecución\n long tiempoTranscurrido = System.currentTimeMillis() - tiempoActual;\n \n //Guarda el tiempo actual\n \t tiempoActual += tiempoTranscurrido;\n \n //Actualiza la animación con base en el tiempo transcurrido\n if (direccion != 0) {\n barril.actualiza(tiempoTranscurrido);\n }\n \n \n //Actualiza la animación con base en el tiempo transcurrido para cada malo\n if (click) {\n banana.actualiza(tiempoTranscurrido);\n }\n \n \n \n \n //Actualiza la posición de cada malo con base en su velocidad\n //banana.setPosY(banana.getPosY() + banana.getVel());\n \n \n \n if (banana.getPosX() != 50 || banana.getPosY() != getHeight() - 100) {\n semueve = false;\n }\n \n if (click) { // si click es true hara movimiento parabolico\n banana.setPosX(banana.getPosX() + banana.getVelX());\n banana.setPosY(banana.getPosY() - banana.getVelY());\n banana.setVelY(banana.getVelY() - gravity);\n }\n \n if (direccion == 1) { // velocidad de las barrils entre menos vidas menor el movimiento\n barril.setPosX(barril.getPosX() - vidas - 2);\n }\n \n else if (direccion == 2) {\n barril.setPosX(barril.getPosX() + vidas + 2);\n }\n }", "public void move() {\n\n if (_currentFloor == Floor.FIRST) {\n _directionOfTravel = DirectionOfTravel.UP;\n }\n if (_currentFloor == Floor.SEVENTH) {\n _directionOfTravel = DirectionOfTravel.DOWN;\n }\n\n\n if (_directionOfTravel == DirectionOfTravel.UP) {\n _currentFloor = _currentFloor.nextFloorUp();\n } else if (_directionOfTravel == DirectionOfTravel.DOWN) {\n _currentFloor = _currentFloor.nextFloorDown();\n }\n\n if(_currentFloor.hasDestinationRequests()){\n stop();\n } \n\n }", "protected void end() {\n \tintake.setLeftPower(0.0);\n\t\tintake.setRightPower(0.0);\n }" ]
[ "0.7164596", "0.70526266", "0.6649876", "0.65953565", "0.6594512", "0.6589749", "0.6402503", "0.63405836", "0.6260545", "0.62221587", "0.6220703", "0.6211017", "0.62070423", "0.6193146", "0.6149651", "0.6142143", "0.61385006", "0.6132408", "0.61153674", "0.61144024", "0.61108756", "0.6106635", "0.6097802", "0.60946834", "0.6087721", "0.60868365", "0.6085925", "0.6083137", "0.6079029", "0.6072969", "0.6072636", "0.60392714", "0.6039149", "0.6025252", "0.60076416", "0.5995262", "0.5991552", "0.5989205", "0.5984199", "0.5981692", "0.59778553", "0.5977658", "0.5966347", "0.5965859", "0.59607613", "0.59593844", "0.5958044", "0.5956201", "0.59558827", "0.59502715", "0.5943428", "0.59291464", "0.59279996", "0.5920118", "0.59111285", "0.5899127", "0.5898314", "0.58978415", "0.5894596", "0.5866897", "0.5865594", "0.5863418", "0.5861402", "0.5859612", "0.5857458", "0.5853556", "0.58507764", "0.5849687", "0.5846441", "0.5845061", "0.5843831", "0.58425456", "0.5841243", "0.58409905", "0.5831741", "0.5816568", "0.58158904", "0.5809488", "0.5809338", "0.5800509", "0.57985467", "0.57900256", "0.5789591", "0.57856375", "0.57800573", "0.5774486", "0.5774038", "0.5773049", "0.5772997", "0.57711625", "0.57700783", "0.5769527", "0.5763825", "0.57618046", "0.57591414", "0.5759051", "0.5757", "0.5755623", "0.5753874", "0.5751838" ]
0.58317393
75
Checks if the Entity is facing right
public abstract boolean facingRight();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean getFacingRight(){\n return facingRight;\n }", "public boolean isFacingRight() {\n return isFacingRight;\n }", "public boolean isFacingLeft(){\r\n\t\tif(facingLeft == true){\r\n\t\t\treturn true;\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Override\n\t\tprotected boolean condition() {\n\t\t\tWhichSide whichSide = VisionUtil.getPositionOfGearTarget();\n\t\t\tSystem.err.println(\"Position of gear target: \"+whichSide);\n\t\t\tif (whichSide == WhichSide.RIGHT)\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "public boolean isShootRight() {\n return shootRight;\n }", "private boolean movingRight() {\n return this.velocity.sameDirection(Vector2D.X_UNIT);\n }", "private boolean needToTurn() {\n\t\tdouble curDir = sens.getDirection();\n\t\tdouble desDirPlusAmount = desiredDirection + TURNSPEED;\n\t\tdouble desDirMinusAmount = desiredDirection - TURNSPEED;\n\n\t\t// if desired direction is <||> +_ x degrees\n\t\tif (curDir < desDirMinusAmount || curDir > desDirPlusAmount) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public void setFacingRight(boolean facingRight) {\n this.isFacingRight = facingRight;\n }", "private boolean rightCollision(InteractiveObject obj){\n\t\treturn rightUpCollision(obj) || rightDownCollision(obj);\n\t}", "boolean hasDirection();", "private boolean rightDownCollision(InteractiveObject obj){\n\t\treturn ((obj.getX() - this.getX() < this.getWidth()) && (obj.getX() > this.getX()) &&\n\t\t\t\t(obj.getY() - this.getY() < this.getHeight()) && (obj.getY() > this.getY()));\n\t}", "public boolean hitSide()\n {\n if(accel.getAcceleration(ADXL345_I2C.Axes.kX)>0)\n return true;\n else\n return false;\n }", "private boolean rightUpCollision(InteractiveObject obj){\n\t\treturn (((obj.getX() - this.getX()) < this.getWidth()) && (obj.getX() > this.getX()) &&\n\t\t\t\t((this.getY() - obj.getY()) < obj.getHeight()) && (this.getY() > obj.getY()));\n\t}", "public boolean isRight () {\r\n\t\tif (((Math.pow(startSide1, 2) + Math.pow(startSide2, 2) == Math.pow(startSide3, 2)) || \r\n\t\t\t(Math.pow(startSide2, 2) + Math.pow(startSide3, 2) == Math.pow(startSide1, 2)) ||\r\n\t\t\t(Math.pow(startSide3, 2) + Math.pow(startSide1, 2) == Math.pow(startSide2, 2)))\r\n\t\t\t&& isTriangle () == true && isEquilateral () == false) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse return false;\r\n\t}", "private boolean moveRight() {\n\t\tint moduleSpeed = stats.getSPEED();\n\n\t\tgetTorax().setRotationg(getTorax().getRotationg() + rotationRate);\n\t\tgetLegs().setRotationg(getLegs().getRotationg() + rotationRate);\n\n\t\tgetSpeed().setX(Math.cos(Math.toRadians(getTorax().getRotationg() - 90)) * moduleSpeed);\n\t\tgetSpeed().setY(Math.sin(Math.toRadians(getTorax().getRotationg() - 90)) * moduleSpeed);\n\n\t\tincreaseInfection();\n\n\t\treturn true;\n\t}", "public boolean isRightKnown() {\n return right != BeaconColor.UNKNOWN;\n }", "public void strafeRight()\r\n\t{\r\n\t\t//Following the camera:\r\n\t\tif(loc[1] > 1)\r\n\t\t{\r\n\t\t\tthis.loc[0] += Math.sin(Math.toRadians(heading))*distance; \r\n\t\t\tthis.loc[2] += Math.cos(Math.toRadians(heading))*distance;\r\n\t\t}\r\n\t}", "@Test\n\tpublic void testTCannotMoveRight() {\n\t\ttank.InabilityToMoveRight();\n\t\tassertEquals(false, tank.getRight());\n\t}", "private boolean checkStatus() {\r\n //\tSystem.out.println(\"Left \" + Left.getX() + \",\" + Left.getY());\r\n \t//System.out.println(\"Head \" + head.getX() + \",\" + head.getY());\r\n \tboolean result = false;\r\n \tif(Left.getX() >= -4 && Left.getX() <= -3.5f) {\r\n \t\t\r\n \t\tresult = true;\r\n \t}\r\n \tif(Left.getX() >= -2 && Left.getX() <= -0.5f) {\r\n \t\tthis.die = 1;\r\n \t\tresult = true;\r\n \t}\r\n \tif(Left.getX() >= 0 && Left.getX() <= 1.5f) {\r\n \t\tthis.die = 2;\r\n \t\tresult = true;\r\n \t}\r\n \tif(Left.getX() >= 2 && Left.getX() <= 3.5f) {\r\n \t\tthis.die = 3;\r\n \t\tresult = true;\r\n \t}\r\n \treturn result;\r\n }", "boolean hasHingeOnRightSide() throws RuntimeException;", "public boolean isRight() {\r\n\t\treturn firstNameState == null && lastNameState == null && steetState == null \r\n\t\t\t\t&& cityState == null && phoneNumberState == null && emailState == null \r\n\t\t\t\t&& usernameState == null && passwordState == null && rolesState == null\r\n\t\t\t\t&& siretState == null && urlState == null && postalCode == null;\r\n\t}", "public boolean chkRTL()\n\t{\n\t\treturn (orientation == ORIENT_RTL);\n\t}", "void check_alien_direction() {\n // Aliens are moving right, check if aliens will move off screen\n if (Alien.direction == Alien.Directions.RIGHT) {\n double max_x = rightmost_alien_x();\n // Alien1 has largest width, so we use that one to calculate if all aliens will fit\n if (max_x + Dimensions.ALIEN1_WIDTH + Dimensions.X_PADDING > scene_width){\n Alien.changeDirections();\n }\n }\n\n // Aliens are moving left, check if aliens will move off screen\n else if (Alien.direction == Alien.Directions.LEFT) {\n double min_x = leftmost_alien_x();\n if (min_x < Dimensions.X_PADDING){\n Alien.changeDirections();\n }\n }\n\n // Aliens are moving down, check if they finished moving down\n else if (Alien.direction == Alien.Directions.DOWN &&\n Alien.down_distance_travelled >= Dimensions.ALIEN_VERTICAL_SPACE){\n random_alien_fires(); // After aliens all descend one row, one of the ships fires at the player\n Alien.changeDirections();\n }\n }", "boolean isRight() {\r\n\t\tint maxlength;\r\n\t\tmaxlength = Math.max(Math.max(side1, side2), side3);\r\n\t\treturn (maxlength * maxlength == (side1 * side1) + (side2 * side2) + (side3 * side3) - (maxlength * maxlength));\r\n\t}", "public boolean checkBallOutLeftRight() {\n //if ball is out of left and right\n if (x <= -radius || x >= GameView.width + radius) {\n out = true;\n return true;\n }\n return false;\n }", "boolean getLeftToRight();", "public boolean isPressed() {\r\n List<Entity> entities = dungeon.getEntities();\r\n for (Entity e: entities) {\r\n if (e != null && e.getY() == getY() && e.getX() == getX()) {\r\n if (\"Boulder\".equals(e.getClass().getSimpleName()))\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "public boolean isRightDown() {\n return pm.pen.getButtonValue(PButton.Type.RIGHT);\n }", "public boolean fireRightJet()\r\n\t{\r\n\t\treturn fireJet(new Point(-0.3, 0));\r\n\t}", "public boolean isLeftToRight() {\n return leftToRight;\n }", "public boolean isMoveRight() {\n return moveRight;\n }", "protected boolean canUseOtherDirection() {\n return false;\n }", "public boolean isleft(){\n\t\tif (x>0 && x<Framework.width && y<Framework.height )//bullet can in the air(no boundary on the top. )\n\t\t\treturn false; \n\t\telse \n\t\t\treturn true; \n\t}", "boolean isSetDirection();", "boolean isValidSide(IBlockAccess access, BlockPos pos, EnumFacing facing);", "public boolean isRight(char dirFacing, Location next)\n\t{\n\t\tLocation right = getRight(dirFacing);\n\t\treturn right.getX() == next.x && right.getY() == next.y;\n\t}", "private void checkKey(){\n if(Greenfoot.isKeyDown(\"z\") && getJumping() == false){\n jump();\n }\n if(getCanMove()){\n if(Greenfoot.isKeyDown(\"right\")){\n moveRight();\n facingRight = true;\n }\n if(Greenfoot.isKeyDown(\"left\")){\n moveLeft();\n facingRight = false;\n }\n }\n if(Greenfoot.isKeyDown(\"x\") && getThrowing() == false){\n throwKnife(facingRight);\n changeThrowing(true);\n }\n }", "private void checkFlipDirection()\n\t{\n\t\tif (currentFloor == 0) //Are we at the bottom?\n\t\t\tcurrentDirection = Direction.UP; //Then we must go up\n\t\tif (currentFloor == (ElevatorSystem.getNumberOfFloors() - 1)) //Are we at the top?\n\t\t\tcurrentDirection = Direction.DOWN; //Then we must go down\n\t}", "public boolean hasRight(){\r\n\t\tif(getRight()!=null) {\r\n\t\t\treturn true;\r\n\t\t}else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean turretAngleOnTarget() {\n return this.turretPIDController.atSetpoint();\n }", "public boolean isLevel(){\n return Math.abs(gyro_board.getPitch()) < LEVEL_TOLERANCE && Math.abs(gyro_board.getRoll()) < LEVEL_TOLERANCE;\n }", "public boolean isShootLeft() {\n return shootLeft;\n }", "public void strafeLeft(){\r\n\t\t//Following the camera:\r\n\t\tif(loc[1] > 1)\r\n\t\t{\r\n\t\t\tthis.loc[0] -= Math.sin(Math.toRadians(heading))*distance; \r\n\t\t\tthis.loc[2] -= Math.cos(Math.toRadians(heading))*distance;\r\n\t\t}\r\n\t}", "public boolean atWorldEdge()\n {\n if(getX() < 20 || getX() > getWorld().getWidth() - 20)\n return true;\n if(getY() < 20 || getY() > getWorld().getHeight() - 20)\n return true;\n else\n return false;\n }", "public boolean atWorldEdge()\n {\n if(getX() < 20 || getX() > getWorld().getWidth() - 20)\n return true;\n if(getY() < 20 || getY() > getWorld().getHeight() - 20)\n return true;\n else\n return false;\n }", "public boolean isGravityDownward(){\r\n\t\tif(gravityDownward){\r\n\t\t\treturn true;\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean isRightSide() {\n return rightSide;\n }", "private boolean movingLeft() {\n return this.velocity.sameDirection(Vector2D.X_UNIT.opposite());\n }", "public void checkIsFrogAtTheEdge() {\n\t\tif (getY()<0 || getY()>800) {\n\t\t\tsetY(FrogPositionY);\t\n\t\t}\n\t\tif (getX()<-20) {\n\t\t\tmove(movementX*2, 0);\n\t\t} else if (getX()>600) {\n\t\t\tmove(-movementX*2, 0);\n\t\t}\n\t\tif (getY()<130 && ! ((getIntersectingObjects(End.class).size() >= 1))) {\n\t\t\tmove(0, movementY*2);\n\t\t\t\n\t\t}\n\t}", "public void setShootRight(boolean TorF) {\n shootRight = TorF;\n }", "private boolean checkDoor(Door door){\n\n\t \treturn(door.getStatus().equalsIgnoreCase(\"Unlocked\"));\n\t \t\t//return true;//returns the value true\n\t //else\n\t \t //return false;//returns the value false\n\t }", "private boolean checkWallRight(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView){\n\t\t\tswitch(orientation){\n\t\t\tcase EAST:\n\t\t\t\treturn checkSouth(currentView);\n\t\t\tcase NORTH:\n\t\t\t\treturn checkEast(currentView);\n\t\t\tcase SOUTH:\n\t\t\t\treturn checkWest(currentView);\n\t\t\tcase WEST:\n\t\t\t\treturn checkNorth(currentView);\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "public Direction getCorrectRobotDirection();", "public boolean getMovingRight() {\n \treturn movingRight;\n }", "public boolean isMoveLegal() {\n if (!getGame().getBoard().contains(getFinalCoords())) {\n return false;\n }\n\n // for aero units move must use up all their velocity\n if (getEntity() instanceof Aero) {\n Aero a = (Aero) getEntity();\n if (getLastStep() == null) {\n if ((a.getCurrentVelocity() > 0) && !getGame().useVectorMove()) {\n return false;\n }\n } else {\n if ((getLastStep().getVelocityLeft() > 0) && !getGame().useVectorMove()\n && !(getLastStep().getType() == MovePath.MoveStepType.FLEE\n || getLastStep().getType() == MovePath.MoveStepType.EJECT)) {\n return false;\n }\n }\n }\n\n if (getLastStep() == null) {\n return true;\n }\n\n if (getLastStep().getType() == MoveStepType.CHARGE) {\n return getSecondLastStep().isLegal();\n }\n if (getLastStep().getType() == MoveStepType.RAM) {\n return getSecondLastStep().isLegal();\n }\n return getLastStep().isLegal();\n }", "public boolean move(Entity entity, Direction dir) {\r\n\t\tif (entity == null || entity.room() == null || dir == null)\r\n\t\t\treturn false;\r\n\t\tif (!entity.room().equals(this))\r\n\t\t\treturn false;\r\n\t\tint changeX = 0;\r\n\t\tint changeY = 0;\r\n\t\tif (dir.isRelative()) {\r\n\t\t\t// handling for forward, back, left, right\r\n\t\t\tDirection facing = entity.facing();\r\n\t\t\t// first get the change values sorted for when facing North\r\n\t\t\tswitch (dir) {\r\n\t\t\tcase FORWARD:\r\n\t\t\t\tchangeY = -1;\r\n\t\t\t\tbreak;\r\n\t\t\tcase BACK:\r\n\t\t\t\tchangeY = 1;\r\n\t\t\t\tbreak;\r\n\t\t\tcase LEFT:\r\n\t\t\t\tchangeX = -1;\r\n\t\t\t\tbreak;\r\n\t\t\tcase RIGHT:\r\n\t\t\t\tchangeX = 1;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t// then, adjust them to fit the Direction that the Entity is facing\r\n\t\t\tswitch (facing) {\r\n\t\t\tcase NORTH: // everything fine\r\n\t\t\t\tbreak;\r\n\t\t\tcase EAST: // rotate 90 degrees right\r\n\t\t\t\tint tempY = changeY;\r\n\t\t\t\tchangeY = changeX;\r\n\t\t\t\tchangeX = -tempY;\r\n\t\t\t\tbreak;\r\n\t\t\tcase SOUTH: // opposite of North, so invert\r\n\t\t\t\tchangeX = -changeX;\r\n\t\t\t\tchangeY = -changeY;\r\n\t\t\t\tbreak;\r\n\t\t\tcase WEST: // rotate 90 degrees left\r\n\t\t\t\tint tempX = changeX;\r\n\t\t\t\tchangeX = changeY;\r\n\t\t\t\tchangeY = -tempX;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// handling for North, East, South, West\r\n\t\t\tswitch (dir) {\r\n\t\t\tcase NORTH:\r\n\t\t\t\tchangeY = -1;\r\n\t\t\t\tbreak;\r\n\t\t\tcase EAST:\r\n\t\t\t\tchangeX = 1;\r\n\t\t\t\tbreak;\r\n\t\t\tcase SOUTH:\r\n\t\t\t\tchangeY = 1;\r\n\t\t\t\tbreak;\r\n\t\t\tcase WEST:\r\n\t\t\t\tchangeX = -1;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tint targetX = entity.xPos() + changeX;\r\n\t\tint targetY = entity.yPos() + changeY;\r\n\t\t// movement between rooms\r\n\t\tif (targetX < 0) {\r\n\t\t\tif (targetY == this.depth / 2) {\r\n\t\t\t\tRoom targetRoom = this.neighbours.get(Direction.WEST);\r\n\r\n\t\t\t\tif (targetRoom != null) {\r\n\t\t\t\t\tif (targetRoom.entities[targetY][targetRoom.width - 1] == null) {\r\n\t\t\t\t\t\ttargetRoom.entities[targetY][targetRoom.width - 1] = entity;\r\n\t\t\t\t\t\tthis.entities[entity.yPos()][entity.xPos()] = null;\r\n\t\t\t\t\t\tentity.setRoom(targetRoom);\r\n\t\t\t\t\t\tentity.setXPos(targetRoom.width - 1);\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t} else if (targetX >= this.width) {\r\n\t\t\tif (targetY == this.depth / 2) {\r\n\t\t\t\tRoom targetRoom = this.neighbours.get(Direction.EAST);\r\n\r\n\t\t\t\tif (targetRoom != null) {\r\n\t\t\t\t\tif (targetRoom.entities[targetY][0] == null) {\r\n\t\t\t\t\t\ttargetRoom.entities[targetY][0] = entity;\r\n\t\t\t\t\t\tthis.entities[entity.yPos()][entity.xPos()] = null;\r\n\t\t\t\t\t\tentity.setRoom(targetRoom);\r\n\t\t\t\t\t\tentity.setXPos(0);\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t} else if (targetY < 0) {\r\n\t\t\tif (targetX == this.width / 2) {\r\n\r\n\t\t\t\tRoom targetRoom = this.neighbours.get(Direction.NORTH);\r\n\r\n\t\t\t\tif (targetRoom != null) {\r\n\t\t\t\t\tif (targetRoom.entities[targetRoom.depth - 1][targetX] == null) {\r\n\t\t\t\t\t\ttargetRoom.entities[targetRoom.depth - 1][targetX] = entity;\r\n\t\t\t\t\t\tthis.entities[entity.yPos()][entity.xPos()] = null;\r\n\t\t\t\t\t\tentity.setRoom(targetRoom);\r\n\t\t\t\t\t\tentity.setYPos(targetRoom.depth - 1);\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t} else if (targetY >= this.depth) {\r\n\t\t\tif (targetX == this.width / 2) {\r\n\r\n\t\t\t\tRoom targetRoom = this.neighbours.get(Direction.SOUTH);\r\n\r\n\t\t\t\tif (targetRoom != null) {\r\n\t\t\t\t\tif (targetRoom.entities[0][targetX] == null) {\r\n\t\t\t\t\t\ttargetRoom.entities[0][targetX] = entity;\r\n\t\t\t\t\t\tthis.entities[entity.yPos()][entity.xPos()] = null;\r\n\t\t\t\t\t\tentity.setRoom(targetRoom);\r\n\t\t\t\t\t\tentity.setYPos(0);\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (this.entities[targetY][targetX] == null) {\r\n\t\t\t// target location is free, so can move there\r\n\t\t\tthis.entities[targetY][targetX] = entity;\r\n\t\t\tthis.entities[entity.yPos()][entity.xPos()] = null;\r\n\t\t\tentity.setXPos(targetX);\r\n\t\t\tentity.setYPos(targetY);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean hasRight() {\r\n\t\treturn right != null;\r\n\t}", "boolean canFall();", "private void right() {\n lastMovementOp = Op.RIGHT;\n rotate(TURNING_ANGLE);\n }", "public boolean isDrooping() {\n return ((((this.leftTheta % 360) + 360) % 360) > 180)\n || ((((this.rightTheta % 360) + 360) % 360) > 180) \n || this.left.isDrooping()\n || this.right.isDrooping(); \n }", "private boolean leftDownCollision(InteractiveObject obj){\n\t\treturn (((this.getX() - obj.getX()) < obj.getWidth()) && (this.getX() > obj.getX()) &&\n\t\t\t\t((obj.getY() - this.getY()) < this.getHeight()) && (obj.getY() > this.getY()));\n\t}", "@Override\n public boolean isValidSecondaryFacing(int dir) {\n int rotate = dir - getFacing();\n if (canChangeSecondaryFacing()) {\n if (getQuirks().booleanOption(\"ext_twist\")) {\n return (rotate == 0) || (rotate == 1) || (rotate == 2) || (rotate == -1) || (rotate == -2) || (rotate == -5) || (rotate == -4) || (rotate == 5) || (rotate == 4);\n }\n return (rotate == 0) || (rotate == 1) || (rotate == -1) || (rotate == -5) || (rotate == 5);\n }\n return rotate == 0;\n }", "private boolean canDoRightTransfer(TFNode node) throws TFNodeException {\r\n TFNode parent = node.getParent();\r\n if (parent == null) {\r\n throw new TFNodeException(\"Node has no parent and therefore no sibling\");\r\n }\r\n\r\n // Must have a right sibling\r\n if (WCIT(node) < 2 && parent.getChild(WCIT(node) + 1) != null) {\r\n // That sibling must have two or more items in it\r\n TFNode rightSibling = parent.getChild(WCIT(node) + 1);\r\n if (rightSibling.getNumItems() > 1) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "public boolean isFacingMirrored() {\n return mIsMirrored;\n }", "private boolean isRightButtonEvent(MouseEvent me) {\r\n\t\treturn ((me.getModifiers() & MouseEvent.BUTTON3_MASK) == MouseEvent.BUTTON3_MASK);\r\n\t}", "private boolean leftUpCollision(InteractiveObject obj){\n\t\treturn (((this.getX() - obj.getX()) < obj.getWidth()) && (this.getX() > obj.getX()) &&\n\t\t\t\t((this.getY() - obj.getY()) < obj.getHeight()) && (this.getY() > obj.getY()));\n\t}", "boolean isRightCollision(Actor actor) {\n return this.getX() + 1 == actor.getX() && this.getY() == actor.getY();\n }", "public void directionRestriction(){\n \t\n }", "boolean checkDir(Directions dir);", "private boolean hasRight ( int pos )\n\t{\n\t\treturn false; // replace this with working code\n\t}", "public void right() {\n if (x + movementSpeed < 450) {\r\n x = x + movementSpeed;\r\n }\r\n }", "@Test\n\tpublic void testTCanMoveRight() {\n\t\ttank.AbilityToMoveRight();\n\t\tassertEquals(true, tank.getRight());\n\t}", "public void checkEdge()\n {\n if(getX() < 10 || getX() > getWorld().getWidth() - 10)\n {\n speed *= -1;\n }\n }", "public boolean isRightToLeft() {\n/* 493 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private boolean canMoveRight()\n {\n // runs through row first, column second\n for ( int row = 0; row < grid.length ; row++ ) {\n for ( int column = grid[row].length-2; column >=0 ; column-- ) {\n\n // looks at tile directly to the right of the current tile\n int compare = column + 1;\n if ( grid[row][column] != 0 ) {\n if ( grid[row][compare] == 0 || grid[row][column] ==\n grid[row][compare] ) {\n return true; \n }\n }\n }\n } \n return false;\n }", "public static boolean checkDirectionOfRitualValid(World world, int x, int y, int z, int ritualID, int direction)\n {\n List<RitualComponent> ritual = Rituals.getRitualList(ritualID);\n\n if (ritual == null)\n {\n return false;\n }\n\n Block test = null;\n\n switch (direction)\n {\n case 1:\n for (RitualComponent rc : ritual)\n {\n test = world.getBlock(x + rc.getX(), y + rc.getY(), z + rc.getZ());\n\n if (!(test instanceof RitualStone))\n {\n return false;\n }\n\n if (world.getBlockMetadata(x + rc.getX(), y + rc.getY(), z + rc.getZ()) != rc.getStoneType())\n {\n return false;\n }\n }\n\n return true;\n\n case 2:\n for (RitualComponent rc : ritual)\n {\n \ttest = world.getBlock(x - rc.getZ(), y + rc.getY(), z + rc.getX());\n \t\n if (!(test instanceof RitualStone))\n {\n return false;\n }\n\n if (world.getBlockMetadata(x - rc.getZ(), y + rc.getY(), z + rc.getX()) != rc.getStoneType())\n {\n return false;\n }\n }\n\n return true;\n\n case 3:\n for (RitualComponent rc : ritual)\n {\n \ttest = world.getBlock(x - rc.getX(), y + rc.getY(), z - rc.getZ());\n \t\n if (!(test instanceof RitualStone))\n {\n return false;\n }\n\n if (world.getBlockMetadata(x - rc.getX(), y + rc.getY(), z - rc.getZ()) != rc.getStoneType())\n {\n return false;\n }\n }\n\n return true;\n\n case 4:\n for (RitualComponent rc : ritual)\n {\n \ttest = world.getBlock(x + rc.getZ(), y + rc.getY(), z - rc.getX());\n \t\n \tif (!(test instanceof RitualStone))\n {\n return false;\n }\n\n if (world.getBlockMetadata(x + rc.getZ(), y + rc.getY(), z - rc.getX()) != rc.getStoneType())\n {\n return false;\n }\n }\n\n return true;\n }\n\n return false;\n }", "DoorMat getHingeOnRightSide(boolean onRightSide) throws RuntimeException;", "public boolean isRightRed() {\n return (right == BeaconColor.RED_BRIGHT || right == BeaconColor.RED);\n }", "private void checkRightWall(Invader invader) {\n\t\t\n\t\tif (invader.getX() >= BORDER) {\n\t\t\tInvader.setDirectionRight(false);\n\t\t\t\n\t\t\tadvanceInvaders();\n\t\t}\n\t}", "static boolean settleDown() throws GameActionException {\n\t\treturn !rc.isCircleOccupiedExceptByThisRobot(rc.getLocation(), SETTLERADIUS);\n\t}", "public void direction()\n {\n if(!goLeft){\n horzVelocity = 1;\n }else{\n horzVelocity = -1;\n }\n }", "public boolean isRightSideInverted() {\n return rightSideMultiplier == -1.0;\n }", "@Override\n\tpublic boolean onValidSurface()\n\t{\n\t\tif (!this.worldObj.getCollidingBoundingBoxes(this, this.getEntityBoundingBox()).isEmpty())\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint i = Math.max(1, this.blocksToTakeUp());\n\t\t\tint j = Math.max(1, this.blocksToTakeUp());\n\t\t\tBlockPos blockpos = this.hangingPosition.offset(this.facingDirection.getOpposite());\n\t\t\tEnumFacing enumfacing = this.facingDirection.rotateYCCW();\n\n\t\t\tfor (int k = -i / 2 + 1; k < i / 2 + 1; ++k)\n\t\t\t{\n\t\t\t\tfor (int l = -j / 2 + 1; l < j / 2 + 1; ++l)\n\t\t\t\t{\n\t\t\t\t\tBlockPos blockpos1 = blockpos.offset(enumfacing, k).up(l);\n\t\t\t\t\tBlock block = this.worldObj.getBlockState(blockpos1).getBlock();\n\n\t\t\t\t\tif (block.isSideSolid(this.worldObj, blockpos1, this.facingDirection))\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tif (!block.getMaterial().isSolid() && !BlockRedstoneDiode.isRedstoneRepeaterBlockID(block))\n\t\t\t\t\t{\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (Entity entity : this.worldObj.getEntitiesWithinAABBExcludingEntity(this, this.getEntityBoundingBox()))\n\t\t\t{\n\t\t\t\tif (entity instanceof EntityHanging)\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\t}", "@Override\n\t\t\t\tpublic boolean validEntity(Entity me, Entity other) {\n\t\t\t\t\tif(Mappers.status.get(me).same(Mappers.status.get(other))) return false;\n\t\t\t\t\t\n\t\t\t\t\tFacingComponent facingComp = Mappers.facing.get(me);\n\t\t\t\t\tBody myBody = Mappers.body.get(me).body;\n\t\t\t\t\tBody otherBody = Mappers.body.get(other).body;\n\t\t\t\t\t\n\t\t\t\t\tfloat xOff = facingComp.facingRight ? 0.5f : -0.5f;\n\t\t\t\t\t\n\t\t\t\t\tfloat myX = myBody.getPosition().x + xOff;\n\t\t\t\t\tfloat myY = myBody.getPosition().y;\n\t\t\t\t\tfloat otherX = otherBody.getPosition().x;\n\t\t\t\t\tfloat otherY = otherBody.getPosition().y;\n\t\t\t\t\t\n\t\t\t\t\tfloat minX = 0.0f;\n\t\t\t\t\tfloat maxX = minX + range;\n\t\t\t\t\tfloat yRange = 0.9f;\n\t\t\t\t\t\n\t\t\t\t\t// Construct box in front of you\n\t\t\t\t\tfloat closeX = facingComp.facingRight ? myX + minX : myX - minX;\n\t\t\t\t\tfloat farX = facingComp.facingRight ? myX + maxX : myX - maxX;\n\t\t\t\t\tfloat top = myY + yRange;\n\t\t\t\t\tfloat bottom = myY - yRange;\n\t\t\t\t\t\n\t\t\t\t\tDebugRender.setType(ShapeType.Line);\n\t\t\t\t\tDebugRender.setColor(Color.CYAN);\n\t\t\t\t\tDebugRender.rect(facingComp.facingRight ? closeX : farX, bottom, Math.abs(farX - closeX), top - bottom, 1.0f);\n\t\t\t\t\t\n\t\t\t\t\tRectangle kick = new Rectangle(Math.min(closeX, farX), bottom, Math.abs(closeX - farX), top - bottom);\n\t\t\t\t\tRectangle enemy = new Rectangle(Mappers.body.get(other).getAABB());\n\t\t\t\t\tenemy.x = otherX - enemy.width * 0.5f;\n\t\t\t\t\tenemy.y = otherY - enemy.height * 0.5f;\n\t\t\t\t\t\n\t\t\t\t\treturn kick.overlaps(enemy);\n//\t\t\t\t\treturn (((facingComp.facingRight && otherX >= closeX && otherX <= farX) || (!facingComp.facingRight && otherX >= farX && otherX <= closeX)) && otherY <= top && otherY >= bottom);\n\t\t\t\t}", "public boolean checkRight()\n\t{\n\t\tif(col+1<=9)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "private void checkBoundaries() {\n if (!isDestroyed()) {\n float upperEdge = screen.getGameCam().position.y + screen.getGameViewPort().getWorldHeight() / 2;\n float bottomEdge = screen.getGameCam().position.y - screen.getGameViewPort().getWorldHeight() / 2;\n if (bottomEdge <= getY() + getHeight() && getY() <= upperEdge) {\n b2body.setActive(true);\n currentState = b2body.getLinearVelocity().x > 0 ? State.MOVING_RIGHT : State.MOVING_LEFT;\n } else {\n if (b2body.isActive()) { // Was on camera...\n // It's outside bottom edge\n if (bottomEdge > getY() + getHeight()) {\n if(!world.isLocked()) {\n world.destroyBody(b2body);\n }\n currentState = State.FINISHED;\n }\n }\n }\n }\n }", "@Override\n\tpublic EGestureResult checkGesture(int userId) {\n\t\tif(getZ(userId, JointID.RIGHT_HAND) < getZ(userId, JointID.RIGHT_SHOULDER)){\n\t\t\t // right hand up right shoulder\n\t\t\tif(getY(userId, JointID.RIGHT_HAND)<getY(userId, JointID.RIGHT_SHOULDER)\n\t\t\t\t\t&& getY(userId, JointID.RIGHT_HAND) > getY(userId, JointID.CENTER_HIP)){\n\t\t\t\t// right elbow right of right shoulder and right hand\n\t\t\t\tif(getX(userId, JointID.RIGHT_ELBOW) > getX(userId, JointID.RIGHT_HAND) &&\n\t\t\t\t\tgetX(userId, JointID.RIGHT_ELBOW) > getX(userId, JointID.RIGHT_SHOULDER)){\n\t\t\t\t\treturn EGestureResult.SUCCEED;\n\t\t\t\t}\n\t\t\t\treturn EGestureResult.PAUSING;\n\t\t\t}\n\t\t\treturn EGestureResult.FAIL;\n\t\t}\n\t\treturn EGestureResult.FAIL;\n\t}", "@Test\n public void testGetDeltaXRIGHT()\n {\n assertEquals(Direction.RIGHT.getDeltaX(), 1);\n }", "public boolean canTeleport(Entity t) {\r\n if (getDirection() == Direction.EAST && (t.getLocation().getX() - getLocation().getX()) < 4 && (t.getLocation().getX() - getLocation().getX()) > -1 && (t.getLocation().getY() - getLocation().getY()) == 0) {\r\n return true;\r\n }\r\n if (getDirection() == Direction.WEST && (getLocation().getX() - t.getLocation().getX()) < 4 && (getLocation().getX() - t.getLocation().getX()) > -1 && (t.getLocation().getY() - getLocation().getY()) == 0) {\r\n return true;\r\n }\r\n if (getDirection() == Direction.NORTH && (t.getLocation().getY() - getLocation().getY()) < 4 && (t.getLocation().getY() - getLocation().getY()) > -1 && (t.getLocation().getX() - getLocation().getX()) == 0) {\r\n return true;\r\n }\r\n if (getDirection() == Direction.SOUTH && (getLocation().getY() - t.getLocation().getY()) < 4 && (getLocation().getY() - t.getLocation().getY()) > -1 && (t.getLocation().getX() - getLocation().getX()) == 0) {\r\n return true;\r\n }\r\n return false;\r\n }", "public void right () {\n Grid<Actor> gr = getGrid();\n if (gr == null)\n return;\n Location loc = getLocation();\n Location next = loc.getAdjacentLocation(Location.EAST);\n if (canMove(next)) {\n moveTo(next);\n }\n }", "private boolean check_vicinity(FishTankItem TankItem) {\r\n if (getDirection()) {\r\n return 0 <= (TankItem.firstCoordinate - this.firstCoordinate)\r\n && (TankItem.firstCoordinate - this.firstCoordinate) <= 7;\r\n } else {\r\n return 0 <= (this.firstCoordinate - TankItem.firstCoordinate)\r\n && (this.firstCoordinate - TankItem.firstCoordinate) <= 5;\r\n }\r\n }", "private boolean rightBoundsReached(float delta) {\n return (textureRegionBounds2.x - (delta * speed)) > Constants.APP_WIDTH;\n }", "public boolean canBeLeft();", "public boolean checkOpen(float x, float y)\r\n/* 483: */ {\r\n/* 484:580 */ if (!tileWalkable(x, y)) {\r\n/* 485:582 */ return false;\r\n/* 486: */ }\r\n/* 487:585 */ AgentModel a = getAgentOnTile(x, y);\r\n/* 488:586 */ if ((a != null) || (((a instanceof DoorModel)) && (!((DoorModel)a).isOpen()))) {\r\n/* 489:588 */ return false;\r\n/* 490: */ }\r\n/* 491:591 */ return true;\r\n/* 492: */ }", "@Test\n public final void testIsOrientation() {\n boolean result = ship.isOrientation();\n assertTrue(result);\n this.ship.setOrientation(false);\n result = ship.isOrientation();\n assertFalse(result);\n }", "public boolean isDirectional() {\n return false;\n }", "public boolean canMoveForward()\n {\n boolean ans = true;\n\n Iterator<WallMulti> walls = this.walls.iterator();\n\n while(walls.hasNext ())\n {\n WallMulti wall = walls.next();\n\n if(wall.getType ().equals (\"H\"))\n {\n if(locX>=wall.getX()-15 && locX<=wall.getX()+wall.getLength()+15)\n {\n if(wall.getY()-locY<=50 && wall.getY()-locY>=0 && degree>=0 && degree<=150)\n {\n ans=false;\n }\n if(locY-wall.getY()<=8 && locY-wall.getY()>=0 && degree>=180 && degree<=360)\n {\n ans=false;\n }\n }\n }\n\n if(wall.getType ().equals (\"V\"))\n {\n if(locY>=wall.getY()-15 &&locY<=wall.getY()+wall.getLength()+15)\n {\n if(wall.getX()-locX<=50 && wall.getX()-locX>=0 &&\n ((degree>=0 && degree<=90)||(degree>=270 && degree<=360)) )\n {\n ans=false;\n }\n if(locX-wall.getX()<=8 && locX-wall.getX()>=0 &&\n degree>=90 && degree<=270 )\n {\n ans=false;\n }\n }\n }\n }\n return ans;\n }", "public boolean canMove() {\n return (Math.abs(getDist())>=50);\n }", "protected void checkRights(String rightName, IEntity entity) {\n\t\tISecurityManager manager = DAOSystem.getSecurityManager();\n\t\tIUser user = manager.getCurrentUser();\n\n\t\tif (log.isDebugEnabled()) {\n\t\t\t// disabled.\n\t\t\t/*\n\t\t\t * StringBuffer logbuffer = new StringBuffer();\n\t\t\t * logbuffer.append(\"SECURITY CHECK: User: \").append(user != null ?\n\t\t\t * user.getName() : \"<no user: systemstart>\");\n\t\t\t * logbuffer.append(\" RECHT: \").append(rightName);\n\t\t\t * logbuffer.append(\"... Bei Entit�t: \"\n\t\t\t * ).append(getEntityClass().getName());\n\t\t\t * log.debug(logbuffer.toString());\n\t\t\t */\n\t\t}\n\t\tboolean result = entity == null ? manager.hasRight(getEntityClass().getName(), rightName) : hasRight(entity,\n\t\t\t\trightName);\n\n\t\tif (user != null && !result) {\n\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\tsb.append(\"Missing right: \").append(rightName);\n\t\t\tsb.append(\"... for entity: \").append(getEntityClass().getName());\n\t\t\tlog.error(\"SECURITY EXCEPTION: \" + sb.toString());\n\t\t\tthrow new SecurityException(sb.toString());\n\t\t}\n\t}", "public boolean isDoorway() {\n\t\tif(doorDirection != DoorDirection.NONE) {\t\t\t\t\t\t\t\t// catches if there is a door direction, indicating that the cell is a door\n\t\t\treturn true;\t\t\t\t\t\t\t\t\t\t\t\t\t\t// return true, indicating that the cell is a door\n\t\t}\n\t\telse {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if there is no door direction\n\t\t\treturn false;\t\t\t\t\t\t\t\t\t\t\t\t\t\t// return false, indicating that the cell is not a door\n\t\t}\n\t}" ]
[ "0.7356127", "0.7248328", "0.6861772", "0.68070745", "0.65406656", "0.64898837", "0.6464366", "0.6350409", "0.6293136", "0.62822664", "0.6257752", "0.61133474", "0.611119", "0.60943115", "0.60770124", "0.6053553", "0.601507", "0.600492", "0.5962327", "0.5953543", "0.59401566", "0.59281343", "0.5927449", "0.5919635", "0.58898467", "0.5869722", "0.58696604", "0.58614004", "0.58585626", "0.58584607", "0.58286244", "0.58010906", "0.57976156", "0.5795053", "0.57935506", "0.57808936", "0.5777059", "0.5774802", "0.5751697", "0.57299864", "0.57043374", "0.5697177", "0.5697017", "0.56954277", "0.56954277", "0.56899655", "0.56891865", "0.56880987", "0.5687311", "0.56841516", "0.56831086", "0.5682003", "0.5674859", "0.56692487", "0.5660045", "0.5658334", "0.5651928", "0.56413114", "0.5626262", "0.56184506", "0.56119734", "0.56112516", "0.56109375", "0.55828315", "0.55808353", "0.5565218", "0.5561564", "0.5549968", "0.55495995", "0.55390054", "0.55309343", "0.5529698", "0.5524561", "0.5519419", "0.5516727", "0.55118024", "0.55019903", "0.54996824", "0.54951704", "0.5494712", "0.5494375", "0.5491892", "0.54857177", "0.5467738", "0.5464219", "0.5464169", "0.5462746", "0.5460505", "0.545421", "0.5453968", "0.5444058", "0.54366595", "0.5432857", "0.5431713", "0.54229987", "0.54213303", "0.54193044", "0.5418555", "0.54047006", "0.5403872" ]
0.8158236
0
Getter method for the newPosX variable
public double getNewXPosition() { return newPosX; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double getPosX() {\n\t\treturn this.posX.get();\n\t}", "public int getPosX(){\n\t\treturn this.posX; \n\t}", "public int getPosX() {\n return posX;\n }", "public double getPosX(){\n return posX;\n }", "String getPosX();", "public float getPosX() {\n return posX;\n }", "public int getPosX() {\r\n\t\treturn posX;\r\n\t}", "@Override\n\tpublic int getPosX() {\n\t\treturn posX;\n\t}", "public int getPosX() {\n\t\treturn posX;\n\t}", "public float getPosX() {\r\n\t\treturn posX;\r\n\t}", "@Override\n public double getPosX() {\n return this.pos[0];\n }", "public float getPosX(){return px;}", "int getX() {\n return xPos;\n }", "public int getxPos() {\n return xPos;\n }", "public double getXPos(){\n return xPos;\n }", "public int getX(){ return xPosition; }", "@Override\n\tpublic float getX() {\n\t\treturn lilyPosX;\n\t}", "public int getX()\r\n {\r\n \treturn xPos;\r\n }", "public int getX() {\n return posX;\n }", "public int getX() {\n return pos_x;\n }", "public int getPos_x(){\n\t\treturn pos_x;\n\t}", "public short getXPos(){\n return xPos;\n }", "public int getxPos() \n\t{\n\t\treturn xPos;\n\t}", "public int getX() {\r\n return xpos;\r\n }", "public int getXPosition()\n {\n return xPosition;\n }", "public int getXPosition()\n {\n return xPosition;\n }", "public int getX() { return position.x; }", "public int getX() {\n return positionX;\n }", "public int getxPos() {\n\t\treturn xPos;\n\t}", "public int getXPos() {\n\t\treturn xPos;\n\t}", "public int getXPosition(){\n\t\treturn xPosition;\n\t}", "public int getPositionX(){\n\t\treturn positionx;\n\t}", "public int getXPos();", "public float getPositionX() {return this.position.getX();}", "public int getXPosition() {\n return xPosition;\n }", "public int getXPosition() {\n return this.xPosition;\n }", "public int getX()\n\t{\n\t\treturn m_nPosX;\n\t}", "public int getXpos() {\n\t\treturn xpos;\n\t}", "public float getX() {\n return pos.x;\n }", "public int getX() {\n return (int) xPos;\n }", "public int getPositionX() {\n return positionX;\n }", "public int getX()\r\n {\r\n return xLoc;\r\n }", "public int getSpawnX()\n {\n return spawnX;\n }", "double getPositionX();", "double getPositionX();", "double getPositionX();", "public float getxPosition() {\n return xPosition;\n }", "public int xPos() {\r\n\t\treturn this.xPos;\r\n\t}", "public int xPos() {\r\n\t\treturn this.xPos;\r\n\t}", "public double getXPosition()\n\t{\n\t\treturn xPosition;\n\t}", "double getXPosition();", "public int getLocX() {\n return locX;\n }", "public int getLocX() {\n return locX;\n }", "public int getMovementX() {\r\n return movementX;\r\n }", "public final int getX()\n\t{\n\t\treturn pos.x;\n\t}", "public double getPositionX() {\n return positionX_;\n }", "public double getPositionX() {\n return positionX_;\n }", "public double getPositionX() {\n return positionX_;\n }", "public int getPositionX() {\r\n\t\treturn positionX;\r\n\t}", "public int getxPosition() {\n\t\treturn xPosition;\n\t}", "public int getX()\r\n {\r\n return xCoord;\r\n }", "void setX(int newX) {\n this.xPos = newX;\n }", "public static int getNewX() {\n\t\treturn newX;\n\t}", "public int getX() { return loc.x; }", "public int getSpawnX() \n\t{\n\t\treturn spawnX;\n\t}", "public double getCardPosX(){\r\n return getX();\r\n }", "public double getPositionX() {\n return positionX_;\n }", "public double getPositionX() {\n return positionX_;\n }", "public double getPositionX() {\n return positionX_;\n }", "protected int getxCoord() {\n\t\treturn xCoord;\n\t}", "public int getXLeft() {\n return xLeft;\n }", "public Pos getPos()\r\n\t{\r\n\t\treturn position;\r\n\t}", "public int getCoordX() \r\n {\r\n \treturn this.coordX;\r\n }", "public void setPosX(double posX) {\n\t\tthis.PosX = posX;\r\n\t}", "public float getX() { return xCoordinate;}", "public int getX() {\r\n\t\treturn xcoord;\r\n\t}", "public double getXPos() {\n\t\treturn this.position[0];\n\t}", "public double getX() {\n return position.getX();\n }", "public void setPosX(int posX) {\n this.posX = posX;\n }", "public int getX() {\n return xCoord;\n }", "public int getX(){\n\t\treturn this.x_location;\n\t}", "public int getX() {\n\treturn baseXCoord;\n}", "double getX() { return pos[0]; }", "public void setPosX(float posX) {\n this.posX = posX;\n }", "Position getOldPosition();", "public int getXCoordinate ()\n {\n return xCoordinate;\n }", "protected Number getX() {\n return this.xCoordinate;\n }", "public int getX(){\n return this.position[0];\n }", "public int get_X_Coordinate()\n {\n return currentBallX;\n }", "public int getXPosition() {\n\t\treturn this.position.x;\n\t}", "@Override\n\tpublic int getX() {\n\t\treturn this.posicionX;\n\t}", "int getX_coordinate(){\n return x_coordinate;\n }", "public double getStartX()\n {\n return startxcoord; \n }", "public final float getPositionX() {\r\n\t\treturn getState(false).getPositionX();\r\n\t}", "public int getXPoint() {\r\n return this.x;\r\n }", "public int getXIndex(){\r\n return xIndex;\r\n }", "public int getxCoord() {\r\n\t\treturn xCoord;\r\n\t}", "public int getxCoord() {\r\n\t\treturn xCoord;\r\n\t}", "@Override\n public double getLocationX() {\n return myMovable.getLocationX();\n }", "@Override\n\tpublic double getXPos() {\n\t\treturn field_145851_c;\n\t}" ]
[ "0.8360161", "0.8267665", "0.82579404", "0.82563484", "0.8185372", "0.8155906", "0.8061897", "0.8061174", "0.79928446", "0.79677224", "0.7916842", "0.7832961", "0.77998763", "0.7742436", "0.77364725", "0.77184695", "0.7621328", "0.76177984", "0.7575054", "0.7562043", "0.7555538", "0.7539596", "0.7536958", "0.7531383", "0.7494759", "0.7494759", "0.74847287", "0.7433923", "0.74225897", "0.7415993", "0.7397126", "0.7386232", "0.7386127", "0.7352695", "0.7320693", "0.7320346", "0.73193663", "0.73137975", "0.73009163", "0.72893584", "0.7280811", "0.7274057", "0.72603506", "0.72499025", "0.72499025", "0.72499025", "0.7241383", "0.72384363", "0.72384363", "0.72239053", "0.7209638", "0.7195174", "0.71929204", "0.7189865", "0.7177272", "0.71543765", "0.7154259", "0.7154259", "0.71538764", "0.71459466", "0.7141704", "0.71246105", "0.71107286", "0.70868504", "0.7056675", "0.7055576", "0.70441663", "0.70439416", "0.70439416", "0.7040638", "0.7039961", "0.7036885", "0.7028085", "0.70279264", "0.70235026", "0.7020315", "0.7002268", "0.69989324", "0.69906574", "0.6974251", "0.69697547", "0.6958918", "0.6957124", "0.69490916", "0.6944657", "0.69420356", "0.6919714", "0.69160414", "0.69153875", "0.69062096", "0.6895286", "0.6880144", "0.68721485", "0.6870229", "0.6835377", "0.6817211", "0.680256", "0.680256", "0.678403", "0.67838836" ]
0.86930215
0
Getter method for the newPosY variable
public double getNewYPosition() { return newPosY; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double getPosY() {\n\t\treturn this.posX.get();\n\t}", "public double getPosY(){\n return posY;\n }", "@Override\n public double getPosY() {\n return this.pos[1];\n }", "public int getPosY() {\n return posY;\n }", "public float getPosY() {\n return posY;\n }", "String getPosY();", "public int getPosY() {\r\n\t\treturn posY;\r\n\t}", "public int getPosY(){\n\t\treturn this.posY; \n\t}", "public int getPosY() {\n\t\treturn posY;\n\t}", "public float getPosY(){return py;}", "int getY() {\n return yPos;\n }", "public double getYPos(){\n return yPos;\n }", "public int getyPos() {\n return yPos;\n }", "public int getY(){ return yPosition; }", "@Override\n\tpublic float getY() {\n\t\treturn lilyPosY;\n\t}", "public int getyPos() \n\t{\n\t\treturn yPos;\n\t}", "public int getY()\r\n {\r\n return yLoc;\r\n }", "public int getY() {\n return posY;\n }", "public int getY() {\r\n return ypos;\r\n }", "public int getY() {\n return pos_y;\n }", "public float getyPosition() {\n return yPosition;\n }", "public int getPos_y(){\n\t\treturn pos_y;\n\t}", "public int getyPos() {\n\t\treturn yPos;\n\t}", "double getYPosition();", "public int getYPos();", "public int getYPosition()\n {\n return yPosition;\n }", "public int getYPosition()\n {\n return yPosition;\n }", "public int getLocY ()\n {\n return locY;\n }", "public int getY() { return loc.y; }", "void setY(int newY) {\n this.yPos = newY;\n }", "public double getYPosition()\n\t{\n\t\treturn yPosition;\n\t}", "public int getYPos() {\n\t\treturn yPos;\n\t}", "public int getYPosition(){\n\t\treturn yPosition;\n\t}", "public int getYPosition() {\n return this.yPosition;\n }", "public int getYPosition() {\n return yPosition;\n }", "public int getY() {\n return positionY;\n }", "public int getY() {\n return (int) yPos;\n }", "public int getLocY() {\n return locY;\n }", "public int getLocY() {\n return locY;\n }", "public int getyPosition() {\n\t\treturn yPosition;\n\t}", "double getPositionY();", "double getPositionY();", "double getPositionY();", "public int getY()\r\n {\r\n return yCoord;\r\n }", "public short getYPos(){\n return yPos;\n }", "public int getyCoord() {\r\n\t\treturn yCoord;\r\n\t}", "public float getY() {\n return pos.y;\n }", "public int yPos() {\r\n\t\treturn this.yPos;\r\n\t}", "public int yPos() {\r\n\t\treturn this.yPos;\r\n\t}", "public int get_Y_Coordinate()\n {\n return currentBallY;\n }", "public int getY()\n\t{\n\t\treturn m_nPosY;\n\t}", "public void setPosY(double posY) {\n\t\tthis.PosY = posY;\r\n\t}", "public int getPositionY(){\n\t\treturn positiony;\n\t}", "public int getY() {\n return yCoord;\n }", "public int getY() { return y; }", "public int getY() { return y; }", "public int getY()\n {\n \t return _y;\n }", "public int getY() {return y;}", "public int getyCoord() {\n\t\treturn yCoord;\n\t}", "double getY() { return pos[1]; }", "public int getY()\r\n {\r\n return myY;\r\n }", "public double getPositionY() {\n return positionY_;\n }", "public double getPositionY() {\n return positionY_;\n }", "public double getPositionY() {\n return positionY_;\n }", "public double getYPos() {\n\t\treturn this.position[1];\n\t}", "public int getY() { return y;}", "public int getY() { return y;}", "public int getSpawnY()\n {\n return spawnY;\n }", "public int getY() {\r\n\t\treturn ycoord;\r\n\t}", "@Override\n\tpublic int getPosY() {\n\t\treturn Y_LAND;\n\t}", "public int setObjYCoord() {\n\t\tint objY = ThreadLocalRandom.current().nextInt(1, getRoomLength() - 1);\r\n\t\treturn objY;\r\n\t}", "public int getCoordY() \r\n {\r\n \treturn this.coordY;\r\n }", "public int getY ()\n {\n return coY;\n }", "public final int getY()\n\t{\n\t\treturn pos.y;\n\t}", "public static int getNewY() {\n\t\treturn newY;\n\t}", "public final int getY()\n{\n\treturn _y;\n}", "public double getY() {\r\n\t\t return this.yCoord;\r\n\t }", "public int getY() {\n\treturn baseYCoord;\n}", "public double getPositionY() {\n return positionY_;\n }", "public double getPositionY() {\n return positionY_;\n }", "public double getPositionY() {\n return positionY_;\n }", "public double getY() {\n return position.getY();\n }", "public int getYCoordinate ()\n {\n return yCoordinate;\n }", "public void updateYLoc();", "public int getY(){\n return this.position[1];\n }", "public double getyCoord() {\n\t\treturn yCoord;\n\t}", "int getY() {\n return y;\n }", "int getY() {\n return y;\n }", "int getY() {\n return y;\n }", "@Override\n\tpublic double getYLoc() {\n\t\treturn y;\n\t}", "public int getPositionY() {\n return positionY;\n }", "public int getyCoordinate() {\n return yCoordinate;\n }", "public int getyCoordinate() {\n return yCoordinate;\n }", "public double getYCoordinates() { return yCoordinates; }", "protected Number getY() {\n return this.yCoordinate;\n }", "public void setY(int y){ yPosition = y; }", "public void setYCoordinates(double newY) { this.yCoordinates = newY; }", "public int getY(){\n return this.y;\n }", "public int getY(){\n return this.y;\n }", "public int getY(){\n return this.y;\n }" ]
[ "0.83249474", "0.8196518", "0.8189283", "0.8062401", "0.8039938", "0.7992638", "0.7945955", "0.7940898", "0.78974485", "0.7879373", "0.7825433", "0.7801388", "0.7700825", "0.7699927", "0.75917935", "0.75482947", "0.7523619", "0.7514791", "0.7514207", "0.75058854", "0.74979985", "0.7495378", "0.7487", "0.74823004", "0.7476816", "0.7468136", "0.7468136", "0.7441239", "0.74383795", "0.74304444", "0.7420759", "0.740912", "0.7388243", "0.7376692", "0.7374667", "0.7373371", "0.737109", "0.7370744", "0.7362979", "0.7353816", "0.7342562", "0.7342562", "0.7342562", "0.7341794", "0.73332155", "0.73322546", "0.73290044", "0.73155177", "0.73155177", "0.7309585", "0.7303838", "0.7297987", "0.7293558", "0.72773594", "0.7265414", "0.7265414", "0.7262885", "0.7262464", "0.7256646", "0.7247097", "0.7245495", "0.7245255", "0.7245036", "0.7245036", "0.7244774", "0.7239702", "0.7239702", "0.72200555", "0.7206916", "0.72065395", "0.72029626", "0.7195619", "0.7178044", "0.7176317", "0.71634054", "0.7158065", "0.7152663", "0.71485937", "0.71473736", "0.71473736", "0.71473736", "0.71441436", "0.7137943", "0.7136942", "0.71297693", "0.71257764", "0.7116909", "0.7116909", "0.7116909", "0.7108898", "0.7108634", "0.7101299", "0.7101299", "0.7100317", "0.7098325", "0.7085071", "0.7082458", "0.70696294", "0.70696294", "0.70696294" ]
0.8721656
0
Returns a record reader for the given row id range.
public GenericRowFileRecordReader getRecordReaderForRange(int startRowId, int endRowId) { return new GenericRowFileRecordReader(_fileReader, startRowId, endRowId, _sortedRowIds); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Record readRecord(Long id);", "public Record readRecord(int recordId) {\n return records[recordId];\n }", "@Override\n\tpublic Record getRecordById(int id) {\n\t\tSession session = HibernateSessionFactory.getSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\tRecordDAO recordDAO = new RecordDAO();\n\t\tRecord R = null;\n\n\t\ttry {\n\t\t\tR = recordDAO.findById(id);\n\t\t\ttx.commit();\n\t\t} catch (RuntimeException e) {\n\t\t\te.printStackTrace();\n\t\t\ttx.commit();\n\t\t} finally {\n\t\t\tsession.close();\n\t\t}\n\n\t\treturn R;\n\t}", "public ActiveRecord read(Object id) {\n StringBuilder sql = new StringBuilder();\n sql.append(\"SELECT * FROM \").append(getTableName()).append(\" WHERE id = \").append(id);\n Row row = getAdapter().selectOne(sql.toString());\n if (row == null) throw new RecordNotFoundException(\"No record found with id \" + id);\n for (Column column : getColumns()) {\n String name = column.getName();\n Classes.setFieldValue(this, name, row.get(name));\n }\n\n readAssociations();\n readAggregations();\n\n newRecord = false;\n return this;\n }", "private Integer getLockFromId(long lockId)\n throws IOException {\n if(lockId == -1L) {\n return null;\n }\n String lockName = String.valueOf(lockId);\n Integer rl = null;\n synchronized(rowlocks) {\n rl = rowlocks.get(lockName);\n }\n if(rl == null) {\n throw new IOException(\"Invalid row lock\");\n }\n this.leases.renewLease(lockName);\n return rl;\n }", "public OpenERPRecord get(int id) {\r\n\t\tIterator<OpenERPRecord> i = records.iterator();\r\n\t\twhile (i.hasNext()) {\r\n\t\t\tOpenERPRecord n = i.next();\r\n\t\t\tInteger rID = (Integer) n.get(\"id\"); // no class cast exception\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// expected here...\r\n\t\t\tif (rID == id)\r\n\t\t\t\treturn n;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public abstract Range get(int mediaID, Range range );", "public abstract AbstractGenesisModel getRow(String id);", "T read(int id);", "T read(int id);", "DataReader reader();", "T getRowData(int rowNumber);", "public native RecordList getRangeAsRecordList(int start, int end) /*-{\r\n var self = this.@com.smartgwt.client.core.BaseClass::getOrCreateJsObj()();\r\n var recordsJS = self.getRange(start, end);\r\n return (recordsJS == null || recordsJS === undefined) ? null :\r\n @com.smartgwt.client.data.RecordList::new(Lcom/google/gwt/core/client/JavaScriptObject;)(recordsJS);\r\n }-*/;", "RecordLike selectByPrimaryKey(String id);", "@Override\r\n\tpublic Map<String, Object> read(int id) {\n\t\tSystem.out.println(id);\r\n\t\tsimpleJdbcCall = new SimpleJdbcCall(jdbcTemplate).withCatalogName(\"PKG_ESTADO_CIVIL\")\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t .withProcedureName(\"PR_BUS_ESTADO_CIVIL\")\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t .declareParameters(new SqlOutParameter(\"CUR_ESTADO_CIVIL\", OracleTypes.CURSOR,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t new ColumnMapRowMapper()), new SqlParameter(\"IDESTADO_CIVIL\", Types.INTEGER));\r\n\t\tSqlParameterSource in = new MapSqlParameterSource().addValue(\"IDESTADO_CIVIL\", id);\r\n\t\treturn simpleJdbcCall.execute(in);\r\n\t}", "public Record getRecord(long id) {\n SQLiteDatabase db = this.getReadableDatabase();\n\n Cursor cursor = db.query(Record.TABLE_NAME,\n new String[]{Record.COLUMN_ID,\n Record.COLUMN_TITLE,\n Record.COLUMN_AUTHOR,\n Record.COLUMN_DESCRIPTION,\n Record.COLUMN_URL,\n Record.COLUMN_IMAGE,\n Record.COLUMN_CONTENT,\n Record.COLUMN_TIMESTAMP},\n Record.COLUMN_ID + \"=?\",\n new String[]{String.valueOf(id)}, null, null, null, null);\n\n if (cursor != null)\n cursor.moveToFirst();\n\n // prepare record object\n Record record = new Record(\n cursor.getInt(cursor.getColumnIndex(Record.COLUMN_ID)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_TITLE)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_AUTHOR)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_DESCRIPTION)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_URL)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_IMAGE)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_CONTENT)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_TIMESTAMP)));\n\n // close the db connection\n cursor.close();\n\n return record;\n }", "public static TableRecordReader getTableRecordReader(JobConf conf, String projection) throws IOException, ParseException\n {\n // a single split is needed\n if (projection != null)\n setProjection(conf, projection);\n TableInputFormat inputFormat = new TableInputFormat();\n InputSplit[] splits = inputFormat.getSplits(conf, 1);\n return (TableRecordReader) inputFormat.getRecordReader(splits[0], conf, Reporter.NULL);\n }", "public Range get(int mediaID, long start, long end ) {\r\n\t\treturn get(mediaID, new Range(start, end));\r\n\t}", "public InputData getData(Integer id) {\n String SQL = \"SELECT * FROM world_bank WHERE idRecord_ID = ?\";\n InputData record = jdbcTemplate.queryForObject(SQL,\n new Object[] { id }, new DataMapper());\n return record;\n }", "public int[] getRow(int rowId) {\n return this.rows[rowId];\n }", "@Override\r\n\tpublic Libro read(int id) {\n\t\treturn libroRepository.findById(id).get();\r\n\t}", "Storage selectByPrimaryKey(Integer recordId);", "@Override\r\n\tpublic CodeRangeDis findById(String id) {\n\t\treturn codeRangeDisMapper.findById(id);\r\n\t}", "public interface DatabaseReaderSelector {\n DatabaseReader getDbReader(String dbId);\n}", "public void read(int rowId, GenericRow buffer) {\n if (_sortedRowIds != null) {\n rowId = _sortedRowIds[rowId];\n }\n _fileReader.read(rowId, buffer);\n }", "@SuppressWarnings(\"unchecked\")\r\n public DomainObject getRecordByPrimaryKey(KeyType id) {\r\n Session session = getSession();\r\n try {\r\n return (DomainObject) session.get(getPersistentClass(), id);\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in getRecordByPrimaryKey Method:\" + e, e);\r\n throw e;\r\n } finally {\r\n if (session.isOpen()) {\r\n session.close();\r\n }\r\n }\r\n }", "public ResultRow getRow(int rowIdx) {\r\n return rows.get(rowIdx);\r\n }", "T readOne(int id);", "int getRowId();", "int getRowId();", "int getRowId();", "int getRowId();", "int getRowId();", "public interface RawSnapshotReader extends Closeable, Iterable<RecordBatch> {\n /**\n * Returns the end offset and epoch for the snapshot.\n */\n OffsetAndEpoch snapshotId();\n\n /**\n * Returns the number of bytes for the snapshot.\n *\n * @throws IOException for any IO error while reading the size\n */\n long sizeInBytes() throws IOException;\n\n /**\n * Reads bytes from position into the given buffer.\n *\n * It is not guarantee that the given buffer will be filled.\n *\n * @param size size to read from snapshot file\n * @param position the starting position in the snapshot to read\n * @return the region read from snapshot\n * @throws IOException for any IO error while reading the snapshot\n */\n UnalignedRecords read(long position, int size) throws IOException;\n}", "public ZyCorporation selectByPrimaryKey(Integer rowid) {\r\n ZyCorporation key = new ZyCorporation();\r\n key.setRowid(rowid);\r\n ZyCorporation record = (ZyCorporation) getSqlMapClientTemplate().queryForObject(\"zy_corporation.selectByPrimaryKey\", key);\r\n return record;\r\n }", "public DataRecord getRecord(IdentifiedRecordTemplate template,\n String recordId) throws FormException {\n return getRecord(template, recordId, null);\n }", "public Renter findRenterById(int id){\n String sql = \"SELECT renterID AS id, first_name AS firstName, last_name AS lastName, CPR AS cpr, email, phone,\" +\n \" driver_license_number AS licenseNumber, a.street, a.building, a.floor, a.door, z.zip, city.name AS city,\" +\n \" c.name AS country FROM renter r JOIN address a ON r.addressID=a.addressID JOIN zip z ON a.zipID=z.zipID \" +\n \"JOIN city ON z.cityID=city.cityID JOIN country c ON z.countryID=c.countryID WHERE renterID = ?\";\n return template.queryForObject(sql, rowMapper, id);\n }", "GetRecordByIdType createGetRecordByIdType();", "public List<RecordReturn> findAllRecordReturns(Integer startResult, Integer maxRows);", "public DcSquadDO loadById(long id) throws DataAccessException;", "PaasCustomAutomationRecord selectByPrimaryKey(Integer id);", "@Override\n\tpublic Map<String, Object> read(int id) {\n\t\tsimpleJdbcCall = new SimpleJdbcCall(jdbcTemplate)\n\t\t\t\t.withProcedureName(\"pa_mat_produnidadmed_Get\").withCatalogName(\"PKG_ALM_CRUD_PRODUNIDADMED\")\n\t\t\t\t.declareParameters(new SqlOutParameter(\"uni\",OracleTypes.CURSOR,new ColumnMapRowMapper()), new SqlParameter(\"p_idprodunidadmed\", Types.INTEGER));\n\t\tSqlParameterSource in = new MapSqlParameterSource().addValue(\"p_idprodunidadmed\", id);\n\t\treturn simpleJdbcCall.execute(in);\n\t}", "@GET\n\t\t\t@Path(\"/{id}/record\")\n\t\t\t@Produces({\"application/xml\"})\n\t\t\tpublic Rows getAttachmentRecord() {\n\t\t\t\tRows rows = null;\n\t\t\t\ttry {\n\t\t\t\t\trows=new AttachmentDao(uriInfo,header).getAttachmentRows();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t logger.info( \"Error calling getAttachmentRecord()\"+ ex.getMessage());\n\t\t\t\t\t ex.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}", "FormatOriginRecord selectByPrimaryKey(Integer id);", "@GET\n\t\t\t@Path(\"/{id}/record\")\n\t\t\t@Produces({\"application/xml\"})\n\t\t\tpublic Rows getIndentRecord() {\n\t\t\t\tRows rows = null;\n\t\t\t\ttry {\n\t\t\t\t\trows=new IndentDao(uriInfo,header).getIndentRows();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t logger.info( \"Error calling getIndentRecord()\"+ ex.getMessage());\n\t\t\t\t\t ex.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}", "FileRecordAdmin selectByPrimaryKey(String id);", "public Record getRecord(String identifier, String metadataPrefix) throws OAIException {\n try {\n \tString query = builder.buildGetRecordQuery(identifier, metadataPrefix);\n \tDocument document = reader.read(query);\n return new Record(document);\n } catch (ErrorResponseException e) {\n \tthrow e;\n } catch (Exception e) {\n throw new OAIException(e);\n }\n }", "@Override\n\tpublic Room get(int id) {\n\t\tConnection cn = ConnectionPool.getInstance().getConnection();\n\t\ttry {\n\t\t\tStatement st = cn.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT * FROM room WHERE id_room = \" + id);\n\t\t\tif(rs.next()) {\n\t\t\t\treturn new Room(rs.getInt(1), rs.getInt(2));\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tConnectionPool.getInstance().closeConnection(cn);\n\t\t}\n\t\treturn new Room();\n\t}", "@Override\n\tpublic ReaderDTO findReaderDTObyId(long id) {\n\t\treturn null;\n\t}", "public Cursor getRowData(long rowId) {\n\n String where = KEY_ROWID + \"=\" + rowId;\n Cursor c = db.query(true, DATA_TABLE, null, where, null, null, null, null, null);\n if (c != null) {\n c.moveToFirst();\n }\n return c;\n\n }", "public List<cn.edu.nju.teamwiki.jooq.tables.pojos.Document> fetchRangeOfDId(String lowerInclusive, String upperInclusive) {\n return fetchRange(Document.DOCUMENT.D_ID, lowerInclusive, upperInclusive);\n }", "Supplier findSupplierById(Integer id)throws SQLException;", "@Bean\r\n public ItemReader<OrderEntity> reader(DataSource dataSource) {\r\n LOG.debug(\"=== reader\");\r\n JdbcCursorItemReader<OrderEntity> databaseReader = new JdbcCursorItemReader<>();\r\n\r\n databaseReader.setDataSource(dataSource);\r\n databaseReader.setSql(QUERY_FIND_ORDERS);\r\n databaseReader.setRowMapper(new BeanPropertyRowMapper<>(OrderEntity.class));\r\n\r\n return databaseReader;\r\n }", "@Override\n\tpublic Map<String, Object> read(int id) {\n\t\treturn rolDao.read(id);\n\t}", "public Room getRoom(int id) throws Exception {\n\t\tConnection connection = null;\n\t\tStatement statement = null;\n\t\tResultSet roomData = null;\n\t\tRoom room = null;\n\t\ttry {\n\t\t\tconnection = DriverManager.getConnection(databaseName);\n\t\t\tconnection.setAutoCommit(false);\n\t\t\tstatement = connection.createStatement();\n\t\t\tString sql = String.format(\"select * from rooms where id=%d\", id);\n\t\t\troomData = statement.executeQuery(sql);\n\t\t\tif (!roomData.next()) {\n\t\t\t\tthrow new RecordNotFoundException();\n\t\t\t}\n\n\t\t\troom = new Room(id,\n\t\t\t\t\troomData.getString(\"type\"),\n\t\t\t\t\troomData.getInt(\"price\"),\n\t\t\t\t\tnew HashSet<java.util.Date>());\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\troomData.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tstatement.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconnection.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\treturn room;\n\t}", "@Override\n public Flowable<Row> streamMarcRecordIds(ParseLeaderResult parseLeaderResult, ParseFieldsResult parseFieldsResult, RecordSearchParameters searchParameters, String tenantId) {\n SelectJoinStep searchQuery = DSL.selectDistinct(RECORDS_LB.EXTERNAL_ID).from(RECORDS_LB);\n appendJoin(searchQuery, parseLeaderResult, parseFieldsResult);\n appendWhere(searchQuery, parseLeaderResult, parseFieldsResult, searchParameters);\n if (searchParameters.getOffset() != null) {\n searchQuery.offset(searchParameters.getOffset());\n }\n if (searchParameters.getLimit() != null) {\n searchQuery.limit(searchParameters.getLimit());\n }\n /* Building a count query */\n SelectJoinStep countQuery = DSL.select(countDistinct(RECORDS_LB.EXTERNAL_ID)).from(RECORDS_LB);\n appendJoin(countQuery, parseLeaderResult, parseFieldsResult);\n appendWhere(countQuery, parseLeaderResult, parseFieldsResult, searchParameters);\n /* Join both in one query */\n String sql = DSL.select().from(searchQuery).rightJoin(countQuery).on(DSL.trueCondition()).getSQL(ParamType.INLINED);\n\n return getCachedPool(tenantId)\n .rxGetConnection()\n .flatMapPublisher(conn -> conn.rxBegin()\n .flatMapPublisher(tx -> conn.rxPrepare(sql)\n .flatMapPublisher(pq -> pq.createStream(10000)\n .toFlowable()\n .filter(row -> !enableFallbackQuery || row.getInteger(COUNT) != 0)\n .switchIfEmpty(streamMarcRecordIdsWithoutIndexersVersionUsage(conn, parseLeaderResult, parseFieldsResult, searchParameters))\n .map(this::toRow))\n .doAfterTerminate(tx::commit)));\n }", "List<PaasCustomAutomationRecord> selectByExampleWithRowbounds(PaasCustomAutomationRecordExample example, RowBounds rowBounds);", "public abstract UIReader getReaderByName(String readerName);", "Factory selectByPrimaryKey(Long id);", "public int getObject(int targetId)\n\t{\n for(String skey: searchBufs.keySet()){\n String[] keys = skey.split(\"\\\\s+\"); //separted by any white space\n\t\t\t// check the key and assign different method\n ByteBuffer buf = searchBufs.get(skey);\n int bound = buf.position();\n ByteBuffer readBuf = buf.asReadOnlyBuffer();\n readBuf.position(0);\n int oid = 0;\n long longnum = 0;\n \n while(readBuf.position() < bound) {\n oid = readBuf.getInt();\n //System.out.print(\"current cursor: Rowid \"+oid+\" key \"+skey);\n if(oid > targetId)\n break; // already found all of the target row , assume monotonous increase\n if(oid == targetId)\n System.out.print(\"Row \"+oid);\n \n for(int i=0; i<keys.length; i++){\n String type = types.get(keys[i]);\n if(type.equals(\"STRING\")){\n }\n else if(type.equals(\"LONG\")){\n longnum = readBuf.getLong();\n if(oid == targetId){\n System.out.print(longnum + \" \");\n }\n }\n else if(type.equals(\"DOUBLE\")){\n }\n else if(type.equals(\"BOOL\")){\n }\n }\n if(oid == targetId)\n System.out.println(\"\");\n } //end while\n } // end for\n return 0;\n }", "public Cursor fetchById(long rowId) {\n\t\tCursor cursor = db.query(tableName, fields, fields[0] + \" = \" + rowId, null, null, null, null);\n\t\tif (cursor != null) {\n\t\t\tcursor.moveToFirst();\n\t\t}\n\t\treturn cursor;\n\t}", "Module getById(Long identifier) throws DBException;", "public person findbyid(int id){\n\t\t\treturn j.queryForObject(\"select * from person where id=? \", new Object[] {id},new BeanPropertyRowMapper<person>(person.class));\r\n\t\t\r\n\t}", "private Query getIntRange(final String fieldName, String[] range) {\n int lower = Integer.parseInt(range[0]);\n int upper = Integer.parseInt(range[1]);\n return IntPoint.newRangeQuery(fieldName, lower, upper);\n }", "String get_row_id()\n {\n return row_id;\n }", "RID getRID();", "@Override\n\tpublic RecordableRecord findRecordableRecordByPid(String id) {\n\t\treturn recordableRecordRepository.findRecordableRecordByPid(id);\n\t}", "public HHisItem[] onHisRead(HDict rec, HDateTimeRange range)\r\n {\r\n if (!cache.initialized()) \r\n throw new IllegalStateException(Cache.NOT_INITIALIZED);\r\n\r\n if (LOG.isTraceOn())\r\n LOG.trace(\"onHisRead \" + rec.id() + \", \" + range);\r\n\r\n try\r\n {\r\n BHistoryConfig cfg = tagMgr.lookupHistoryConfig(rec.id());\r\n if (cfg == null) return new HHisItem[0];\r\n\r\n HStr unit = (HStr) rec.get(\"unit\", false);\r\n\r\n // ASSUMPTION: the tz in both ends of the range matches the \r\n // tz of the historized point, which in turn matches the \r\n // history's tz in its historyConfig.\r\n HTimeZone tz = range.start.tz;\r\n\r\n BAbsTime rangeStart = BAbsTime.make(range.start.millis(), cfg.getTimeZone());\r\n BAbsTime rangeEnd = BAbsTime.make(range.end.millis(), cfg.getTimeZone());\r\n\r\n // NOTE: be careful, timeQuery() is inclusive of both start and end\r\n BIHistory history = service.getHistoryDb().getHistory(cfg.getId());\r\n BITable table = (BITable) history.timeQuery(rangeStart, rangeEnd);\r\n ColumnList columns = table.getColumns();\r\n Column timestampCol = columns.get(\"timestamp\");\r\n\r\n // this will be null if its not a BTrendRecord\r\n boolean isTrendRecord = cfg.getRecordType().getResolvedType().is(BTrendRecord.TYPE);\r\n Column valueCol = isTrendRecord ? columns.get(\"value\") : null;\r\n\r\n Array arr = new Array(HHisItem.class, table.size());\r\n for (int i = 0; i < table.size(); i++)\r\n {\r\n BAbsTime timestamp = (BAbsTime) table.get(i, timestampCol);\r\n\r\n // ignore inclusive start value\r\n if (timestamp.equals(rangeStart)) continue;\r\n\r\n // create ts\r\n HDateTime ts = HDateTime.make(timestamp.getMillis(), tz);\r\n\r\n // create val\r\n HVal val = null;\r\n if (isTrendRecord)\r\n {\r\n // extract value from BTrendRecord\r\n BValue value = (BValue) table.get(i, valueCol);\r\n\r\n Type recType = cfg.getRecordType().getResolvedType();\r\n if (recType.is(BNumericTrendRecord.TYPE))\r\n {\r\n BNumber num = (BNumber) value;\r\n val = (unit == null) ? \r\n HNum.make(num.getDouble()) :\r\n HNum.make(num.getDouble(), unit.val);\r\n }\r\n else if (recType.is(BBooleanTrendRecord.TYPE))\r\n {\r\n BBoolean bool = (BBoolean) value;\r\n val = HBool.make(bool.getBoolean());\r\n }\r\n else if (recType.is(BEnumTrendRecord.TYPE))\r\n {\r\n BDynamicEnum dyn = (BDynamicEnum) value;\r\n BFacets facets = (BFacets) cfg.get(\"valueFacets\");\r\n BEnumRange er = (BEnumRange) facets.get(\"range\");\r\n val = HStr.make(SlotUtil.fromEnum(\r\n er.getTag(dyn.getOrdinal()),\r\n service.getTranslateEnums()));\r\n }\r\n else\r\n {\r\n val = HStr.make(value.toString());\r\n }\r\n }\r\n else\r\n {\r\n // if its not a BTrendRecord, just do a toString() \r\n // of the whole record\r\n val = HStr.make(table.get(i).toString());\r\n }\r\n\r\n // add item\r\n arr.add(HHisItem.make(ts, val));\r\n }\r\n\r\n // done\r\n return (HHisItem[]) arr.trim();\r\n }\r\n catch (RuntimeException e)\r\n {\r\n e.printStackTrace();\r\n throw e;\r\n }\r\n }", "public Row getRow (int line) {\n return rowCache.get(line);\n }", "public String getIdForRow(int row);", "public static ResultScanner scanRange(HTable table, String startrow, String endrow) throws Exception {\n\t\tScan s = new Scan(Bytes.toBytes(startrow), Bytes.toBytes(endrow));\n\t\tResultScanner rs = table.getScanner(s);\n\t\treturn rs;\n\t}", "Reservation loadReservation(int id) throws DataAccessException;", "ResourceWithBLOBs selectByPrimaryKey(Integer resourceid);", "private String getOffsetRecordId() throws Exception {\n String id = null;\n Iterable<String> rids = datasource.getRecordids();\n int itCount = 0;\n boolean startFound = false;\n for (String rid : rids) {\n if (rid.equals(recordid)) {\n startFound = true;\n }\n if (startFound) {\n itCount++;\n if (itCount >= iteration) {\n id = rid;\n break;\n }\n }\n }\n if (id == null) {\n throw new Exception(\"No offset record id found\");\n }\n return id;\n }", "public Docmentory getbyid(Docmentory docmentory) {\n\treturn mapper.getbyid(docmentory);\r\n}", "private AbstractCursorItemReader<String> createJdbcCursorItemReader(DataSource dataSource, String name) throws Exception {\n JdbcCursorItemReader<String> jcir = new JdbcCursorItemReader<String>();\n jcir.setDataSource(dataSource);\n jcir.setSql(SELECT);\n jcir.setRowMapper(new RowMapper() {\n\n @Override\n public Object mapRow(ResultSet rs, int rowNum) throws SQLException {\n return rs.getString(1);\n }\n });\n jcir.setName(name);\n jcir.setSaveState(true);\n // jcir.afterPropertiesSet(); not mandatory yet, just checks dataSource\n\n return jcir;\n }", "public Integer getRowId() {\n return rowId;\n }", "public List<JRepositoryPojo> fetchRangeOfJRepositoryId(String lowerInclusive, String upperInclusive) {\n return fetchRange(JRepository.REPOSITORY.REPOSITORY_ID, lowerInclusive, upperInclusive);\n }", "DBPublicResources selectByPrimaryKey(Integer id);", "public JournalReader read() {\n return new JournalReader(this);\n }", "@GET\n\t\t\t@Path(\"/{id}/record\")\n\t\t\t@Produces({\"application/xml\"})\n\t\t\tpublic Rows getEquipserviceRecord() {\n\t\t\t\tRows rows = null;\n\t\t\t\ttry {\n\t\t\t\t\trows=new EquipserviceDao(uriInfo,header).getEquipserviceRows();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t logger.info( \"Error calling getEquipserviceRecord()\"+ ex.getMessage());\n\t\t\t\t\t ex.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}", "TRepairs selectByPrimaryKey(Integer id);", "public Book read(int bookId){\n System.out.println(\"looking for Book with id \" + bookId);\n Book b = new Book();\n \n try (DBIterator keyIterator = dbmanager.getDB().iterator()) {\n keyIterator.seekToFirst();\n\n while (keyIterator.hasNext()) {\n String key = asString(keyIterator.peekNext().getKey());\n String[] splittedString = key.split(\"-\");\n\n if(!\"book\".equals(splittedString[0])){\n keyIterator.next();\n continue;\n }\n\n String resultAttribute = asString(dbmanager.getDB().get(bytes(key)));\n JSONObject jbook = new JSONObject(resultAttribute);\n\n if(jbook.getInt(\"idBOOK\") == bookId){\n b = new Book(jbook);\n break;\n }\n keyIterator.next(); \n }\n }\n catch(Exception ex){\n ex.printStackTrace();\n } \n return b;\n }", "OrgMemberRecord selectByPrimaryKey(String id);", "@OfMethod({\"getRowId(java.lang.String)\",\"getRowId(int)\"})\n public void testGetRowId() throws Exception {\n String parameterName = getParameterName();\n int parameterIndex = getParameterIndex();\n CallableStatement instance = newClosedCall();\n\n try {\n instance.getRowId(parameterName);\n fail(\"Allowed get rowid by parameter name after close\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n\n try {\n instance.getRowId(parameterIndex);\n fail(\"Allowed get rowid by parameter index after close\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n }", "public static XSSFRow getRowData(int RowNum) {\n\t row = excelWSheet.getRow(RowNum);\n\t return row;\n }", "public phonecallTicket getRow(int row){\n \n System.out.println(\"ROW IS!!! \" + row );\n try{\n if(row > total() || row < 0)\n System.out.println(\"invalid row\");\n else {rowrs.absolute(row);\n int id_col = rowrs.getInt(\"ID\");\n String first_name = rowrs.getString(\"NAME\");\n String phone = rowrs.getString(\"PHONE\");\n String tag = rowrs.getString(\"TAG\");\n String date = rowrs.getString(\"DATE\");\n String prob = rowrs.getString(\"PROBLEM\");\n String notes = rowrs.getString(\"NOTES\");\n String status = rowrs.getString(\"STATUS\");\n currentticket = makeTicket(id_col, first_name, phone, tag, date, prob, notes, status);\n }//else\n } catch (Exception e){\n System.out.println(\"SQL problem at getRow()\");}\n return currentticket;\n }", "public T get(int objectId) throws SQLException;", "RecordResult retrieveRecord(String recordID) throws RepoxException;", "RetailModule selectByPrimaryKey(Integer id);", "public io.dstore.engine.procedures.MiCheckPerformanceAd.Response.Row getRow(int index) {\n return row_.get(index);\n }", "RiceCooker getById(long id);", "public EscherRecord findFirstWithId(short id) {\n \treturn findFirstWithId(id, getEscherRecords());\n }", "public RecordReader getRecordReader( InputSplit split, JobConf job, Reporter reporter ) throws IOException\n {\n MultiInputSplit multiSplit = (MultiInputSplit) split;\n JobConf currentConf = mergeConf( job, multiSplit.config, true );\n \n return currentConf.getInputFormat().getRecordReader( multiSplit.inputSplit, currentConf, reporter );\n }", "public static List<Record> getRecords(String tableName, String rowKey)\n\t\t\tthrows IOException {\n\t\tHTable table = connectTable(tableName);\n\t\tScan s = new Scan(rowKey.getBytes());\n\n\t\tResultScanner ss = table.getScanner(s);\n\t\tRecord rec;\n\t\tList<Record> list = new ArrayList<Record>();\n\t\tfor (Result r : ss) {\n\t\t\tfor (KeyValue kv : r.raw()) {\n\t\t\t\trec = new Record();\n\t\t\t\trec.setTable(tableName);\n\t\t\t\trec.setRowKey(new String(kv.getRow()));\n\t\t\t\trec.setFamily(new String(kv.getFamily()));\n\t\t\t\trec.setQualifier(new String(kv.getQualifier()));\n\t\t\t\trec.setTimestamp(kv.getTimestamp());\n\t\t\t\trec.setValue(new String(kv.getValue()));\n\t\t\t\tlist.add(rec);\n\t\t\t}\n\t\t}\n\t\treleaseTable(table);\n\t\treturn list;\n\t}", "public ResultSet returnRecord(String id) throws SQLException{\n Statement stmt = getConnection().createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,\n ResultSet.CONCUR_UPDATABLE);\n String sqlGet = \"SELECT * FROM myStudents WHERE STUD_ID ='\" + id + \"'\";\n stmt.executeQuery(sqlGet);\n ResultSet rs = stmt.getResultSet();\n return rs;\n }", "public static int getRowIdFromDb() {\n // get DB helper\n mDbHelper = PointOfSaleDb.getInstance(context);\n\n // Each row in the list stores amount and date of transaction -- retrieves history from DB\n SQLiteDatabase db = mDbHelper.getReadableDatabase();\n\n // get the following columns:\n String[] tableColumns = { PointOfSaleDb.TRANSACTIONS_COLUMN_CREATED_AT,\n \"_ROWID_\"};// getting also _ROWID_ to save the txID after getting the response\n\n String sortOrder = PointOfSaleDb.TRANSACTIONS_COLUMN_CREATED_AT + \" DESC\";\n Cursor c = db.query(PointOfSaleDb.TRANSACTIONS_TABLE_NAME, tableColumns, null, null, null, null, sortOrder);\n int rowId=0;\n if(c.moveToFirst()) {\n rowId = Integer.parseInt(c.getString(1));\n }\n return rowId;\n }", "@GET\n\t\t\t@Path(\"/{id}/record\")\n\t\t\t@Produces({\"application/xml\"})\n\t\t\tpublic Rows getChannelRecord() {\n\t\t\t\tRows rows = null;\n\t\t\t\ttry {\n\t\t\t\t\trows=new ChannelDao(uriInfo,header).getChannelRows();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t logger.info( \"Error calling getChannelRecord()\"+ ex.getMessage());\n\t\t\t\t\t ex.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}", "public Tuple getRecord(RID rid)\n throws IOException,\n InvalidSlotNumberException {\n short recLen;\n short offset;\n byte[] record;\n PageId pageNo = new PageId();\n pageNo.pid = rid.pageNo.pid;\n curPage.pid = Convert.getIntValue(CUR_PAGE, data);\n int slotNo = rid.slotNo;\n\n // length of record being returned\n recLen = getSlotLength(slotNo);\n int slotCnt = Convert.getShortValue(SLOT_CNT, data);\n if ((slotNo >= 0) && (slotNo < slotCnt) && (recLen > 0)\n && (pageNo.pid == curPage.pid)) {\n offset = getSlotOffset(slotNo);\n record = new byte[recLen];\n System.arraycopy(data, offset, record, 0, recLen);\n Tuple tuple = new Tuple(record, 0, recLen);\n return tuple;\n } else {\n throw new InvalidSlotNumberException(null, \"HEAPFILE: INVALID_SLOTNO\");\n }\n\n\n }", "ReferenceData findById(ReferenceDataId id) throws DataException;" ]
[ "0.6400963", "0.57543397", "0.553254", "0.5515685", "0.54509413", "0.53871095", "0.5365542", "0.5357068", "0.53242093", "0.53242093", "0.5287753", "0.5258815", "0.52185243", "0.5193206", "0.5183297", "0.5169315", "0.51070154", "0.5105369", "0.5094977", "0.50720197", "0.50690305", "0.5044009", "0.5030042", "0.5017947", "0.50166625", "0.50074464", "0.4997665", "0.49800107", "0.49711177", "0.49711177", "0.49711177", "0.49711177", "0.49711177", "0.49457106", "0.4936686", "0.49254566", "0.4921907", "0.49203575", "0.49187455", "0.49169314", "0.49105072", "0.48986474", "0.48675287", "0.48642367", "0.48559526", "0.48550516", "0.48449615", "0.48272473", "0.4811626", "0.48103637", "0.48025024", "0.4793196", "0.47919428", "0.4791938", "0.47789276", "0.47609654", "0.47589377", "0.4755475", "0.47496766", "0.47428212", "0.47382942", "0.47352245", "0.47323734", "0.47315693", "0.47156733", "0.47109076", "0.47062275", "0.47001824", "0.46994534", "0.46974054", "0.46847358", "0.46833494", "0.46798557", "0.4673589", "0.46696353", "0.46618283", "0.46493933", "0.46441373", "0.46426204", "0.46408913", "0.46382192", "0.46359277", "0.4634621", "0.46300593", "0.46291822", "0.4629132", "0.46273464", "0.46254086", "0.46245888", "0.46241537", "0.46231723", "0.46168685", "0.46163705", "0.46133304", "0.46112272", "0.46091723", "0.46044022", "0.4600528", "0.46004102", "0.46001893" ]
0.809716
0
Reads the data of the given row id into the given buffer row.
public void read(int rowId, GenericRow buffer) { if (_sortedRowIds != null) { rowId = _sortedRowIds[rowId]; } _fileReader.read(rowId, buffer); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Cursor getRowData(long rowId) {\n\n String where = KEY_ROWID + \"=\" + rowId;\n Cursor c = db.query(true, DATA_TABLE, null, where, null, null, null, null, null);\n if (c != null) {\n c.moveToFirst();\n }\n return c;\n\n }", "boolean onReadRow(int rowIndex, Map<String, String> rowData);", "public int[] getRow(int rowId) {\n return this.rows[rowId];\n }", "protected abstract RMItem readData( int id, String key );", "T read(int id);", "T read(int id);", "public T getRow(int row) {\r\n\t\t\r\n\t\tlogger.trace(\"Enter getRow\");\r\n\t\t\r\n\t\tif (row >= getRowCount() || row < 0) {\r\n\t\t\tlogger.trace(\"Exit getRow - row >= getRowCount() || row < 0\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tlogger.trace(\"Exit getRow\");\r\n\t\treturn data.get(row);\r\n\t}", "public Record readRecord(Long id);", "void readBlock(int blockId, byte[] buffer) throws IOException;", "public abstract AbstractGenesisModel getRow(String id);", "public InputData getData(Integer id) {\n String SQL = \"SELECT * FROM world_bank WHERE idRecord_ID = ?\";\n InputData record = jdbcTemplate.queryForObject(SQL,\n new Object[] { id }, new DataMapper());\n return record;\n }", "Object[] getDataRow(final int index);", "E read(K id);", "void readBlock(int blockId, byte[] buffer, int offset) throws IOException;", "DataFrameRow<R,C> row(R rowKey);", "io.dstore.engine.procedures.ImModifyNodeCharacsAd.Response.Row getRow(int index);", "int addRow(RowData row_data) throws IOException;", "@Override\r\n\tpublic Map<String, Object> read(int id) {\n\t\tSystem.out.println(id);\r\n\t\tsimpleJdbcCall = new SimpleJdbcCall(jdbcTemplate).withCatalogName(\"PKG_ESTADO_CIVIL\")\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t .withProcedureName(\"PR_BUS_ESTADO_CIVIL\")\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t .declareParameters(new SqlOutParameter(\"CUR_ESTADO_CIVIL\", OracleTypes.CURSOR,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t new ColumnMapRowMapper()), new SqlParameter(\"IDESTADO_CIVIL\", Types.INTEGER));\r\n\t\tSqlParameterSource in = new MapSqlParameterSource().addValue(\"IDESTADO_CIVIL\", id);\r\n\t\treturn simpleJdbcCall.execute(in);\r\n\t}", "T getRowData(int rowNumber);", "public void setRowId(Integer rowId) {\n this.rowId = rowId;\n }", "public Cursor fetchById(long rowId) {\n\t\tCursor cursor = db.query(tableName, fields, fields[0] + \" = \" + rowId, null, null, null, null);\n\t\tif (cursor != null) {\n\t\t\tcursor.moveToFirst();\n\t\t}\n\t\treturn cursor;\n\t}", "public io.dstore.engine.procedures.ImModifyNodeCharacsAd.Response.Row getRow(int index) {\n if (rowBuilder_ == null) {\n return row_.get(index);\n } else {\n return rowBuilder_.getMessage(index);\n }\n }", "public Cursor fetchEntry(long rowId) throws SQLException {\n\t return mDb.query(true, DATABASE_TABLE, null, KEY_ROWID + \"=\" + rowId, null, null, null, null, null);\n }", "public io.dstore.engine.procedures.ImModifyNodeCharacsAd.Response.Row getRow(int index) {\n return row_.get(index);\n }", "@Override\r\n\tpublic void read(Object id) {\n\t\t\r\n\t}", "public Object[] retrieveRowFromCache(int rowIndex) {\n\t ensureRowCached(rowIndex);\n\t return (Object[])data[getIndexOfRowInCache(rowIndex)];\n }", "public Row getRow (int line) {\n return rowCache.get(line);\n }", "Object getDataValue(final int row, final int column);", "public phonecallTicket getRow(int row){\n \n System.out.println(\"ROW IS!!! \" + row );\n try{\n if(row > total() || row < 0)\n System.out.println(\"invalid row\");\n else {rowrs.absolute(row);\n int id_col = rowrs.getInt(\"ID\");\n String first_name = rowrs.getString(\"NAME\");\n String phone = rowrs.getString(\"PHONE\");\n String tag = rowrs.getString(\"TAG\");\n String date = rowrs.getString(\"DATE\");\n String prob = rowrs.getString(\"PROBLEM\");\n String notes = rowrs.getString(\"NOTES\");\n String status = rowrs.getString(\"STATUS\");\n currentticket = makeTicket(id_col, first_name, phone, tag, date, prob, notes, status);\n }//else\n } catch (Exception e){\n System.out.println(\"SQL problem at getRow()\");}\n return currentticket;\n }", "byte[] getRow() {\r\n return delete.getRow();\r\n }", "private Integer getLockFromId(long lockId)\n throws IOException {\n if(lockId == -1L) {\n return null;\n }\n String lockName = String.valueOf(lockId);\n Integer rl = null;\n synchronized(rowlocks) {\n rl = rowlocks.get(lockName);\n }\n if(rl == null) {\n throw new IOException(\"Invalid row lock\");\n }\n this.leases.renewLease(lockName);\n return rl;\n }", "R getOneRowOrThrow();", "Object getDataValue(String column, int row);", "io.dstore.engine.procedures.ImModifyNodeCharacsAd.Response.RowOrBuilder getRowOrBuilder(\n int index);", "public void read_from_buffer(byte[] buffer) throws IOException {\r\n ByteArrayInputStream byte_in = new ByteArrayInputStream(buffer);\r\n DataInputStream in = new DataInputStream(byte_in);\r\n\r\n read_from_buffer(in);\r\n\r\n in.close();\r\n byte_in.close();\r\n }", "public abstract void readDataItem(BDTuple tuple) throws RollbackException;", "com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Row getRow(int index);", "public ActiveRecord read(Object id) {\n StringBuilder sql = new StringBuilder();\n sql.append(\"SELECT * FROM \").append(getTableName()).append(\" WHERE id = \").append(id);\n Row row = getAdapter().selectOne(sql.toString());\n if (row == null) throw new RecordNotFoundException(\"No record found with id \" + id);\n for (Column column : getColumns()) {\n String name = column.getName();\n Classes.setFieldValue(this, name, row.get(name));\n }\n\n readAssociations();\n readAggregations();\n\n newRecord = false;\n return this;\n }", "public DataRow mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\n\t\n\t\tDataRow row = new DataRow();\n\t\t//if (rs.isClosed()){return null;}\n\t\tint cols = rs.getMetaData().getColumnCount();\n\t\t\n\t\tfor (int i=1 ; i <= cols; i++){\n\t\t\tDefaultLobHandler blob = new DefaultLobHandler();\n\t\t\trow.setValue(rs.getMetaData().getColumnName(i), blob.getBlobAsBinaryStream(rs, i));\n\t\t}\n\t\n\t\treturn row;\n\t}", "public String getIdForRow(int row);", "public int getRowId() {\n return rowId_;\n }", "public int getRowId() {\n return rowId_;\n }", "public int getRowId() {\n return rowId_;\n }", "public int getRowId() {\n return rowId_;\n }", "public int getRowId() {\n return rowId_;\n }", "@Override\r\n\tpublic Newstrategypojo getline(int id) {\n\t\treturn dao.getline(id);\r\n\t}", "@Override\n\tpublic Map<String, Object> read(int id) {\n\t\tsimpleJdbcCall = new SimpleJdbcCall(jdbcTemplate)\n\t\t\t\t.withProcedureName(\"pa_mat_produnidadmed_Get\").withCatalogName(\"PKG_ALM_CRUD_PRODUNIDADMED\")\n\t\t\t\t.declareParameters(new SqlOutParameter(\"uni\",OracleTypes.CURSOR,new ColumnMapRowMapper()), new SqlParameter(\"p_idprodunidadmed\", Types.INTEGER));\n\t\tSqlParameterSource in = new MapSqlParameterSource().addValue(\"p_idprodunidadmed\", id);\n\t\treturn simpleJdbcCall.execute(in);\n\t}", "DataFrameRow<R,C> rowAt(int rowOrdinal);", "@Override\n public String readData(String path) {\n Connection connection;\n ResultSet resultSet;\n String data = null;\n\n try {\n connection = getConnection();\n connection.setAutoCommit(false);\n\n PreparedStatement pstmt = connection.prepareStatement(\"SELECT DATA FROM DATA WHERE ID = ?\");\n pstmt.setString(1, path);\n\n resultSet = pstmt.executeQuery();\n\n while (resultSet.next()) {\n data = new String (resultSet.getBytes(1));\n }\n\n pstmt.close();\n resultSet.close();\n connection.close();\n\n } catch (SQLException e) {\n logger.log(Level.SEVERE, e.getMessage(), e);\n }\n return data;\n }", "public Cursor fetchPreg(long rowId) throws SQLException {\n\n Cursor mCursor =\n\n mDb.query(true, DATABASE_TABLE, new String[] {KEY_ROWID,\n KEY_TITLE, KEY_TIME, KEY_BODY}, KEY_ROWID + \"=\" + rowId, null,\n null, null, null, null);\n if (mCursor != null) {\n mCursor.moveToFirst();\n }\n return mCursor;\n\n }", "public ByteBuffer read(int location)\n throws DataOrderingException;", "@Nullable\n public byte[] getValue(MDSKey id) {\n Row row = table.get(id.getKey());\n return row.isEmpty() ? null : row.get(COLUMN);\n }", "public void\tread_sector_data_into_buffer(int drive, int side,int data_id,char[] buf, int length);", "public void commitRow(byte[] row, long startId, long commitId,\n boolean isDelete, Integer lockId) throws IOException;", "public static PlayerRow loadById(PostgresConnection connection, Long id) {\n QPlayerRow q = QPlayerRow.Player;\n return connection.query().select(q).from(q).where(q.id.eq(id)).fetchFirst();\n }", "T deserializeData(R r) throws SQLException;", "public abstract void fromProto(Message message, TARGET row);", "public Cursor fetchOneEntry(long rowId) throws SQLException {\n /*\n Cursor cursor = database.query(\n true, \n DATABASE_TABLE, \n new String[] {ROWID, LATITUDE, LONGITUDE, FREQUENCY, SIGNAL },\n ROWID + \"=\" + rowId, \n null, \n null, \n null, \n null, \n null);\n if (cursor != null) {\n cursor.moveToFirst();\n }\n return cursor;\n */\n \n // sql must NOT be ';' terminated\n String sql = \"SELECT \"+ ROWID + \", \" + MAC_ADDRESS + \", \" + LATITUDE + \", \" + LONGITUDE + \", \" \n + NETWORK_NAME + \", \" + CAPABILITIES + \", \" + FREQUENCY + \", \" + SIGNAL + \" \"\n + \"FROM \" + DATABASE_TABLE + \" \"\n + \"WHERE \" + ROWID + \" = \" + rowId;\n return database.rawQuery(sql, null);\n }", "public Integer getRowId() {\n return rowId;\n }", "private Tuple readFromBuffer(List<TupleReaderBinary> buffers, int bufferID) {\n\t\tif (buffers.get(bufferID) == null) {\n\t\t\treturn null;\n\t\t}\n\t\tTuple temp = buffers.get(bufferID).readTuple(true);\n\n\t\tif (temp != null) {\n\t\t\ttemp.ordering = ordering;\n\t\t\treturn temp;\n\t\t} else {\n\t\t\tassignBuffer(buffers, bufferID);\n\t\t\tif (buffers.get(bufferID) == null) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\ttemp = buffers.get(bufferID).readTuple(true);\n\n\t\t\tif (temp != null) {\n\t\t\t\ttemp.ordering = ordering;\n\t\t\t\treturn temp;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}", "int getRowId();", "int getRowId();", "int getRowId();", "int getRowId();", "int getRowId();", "io.dstore.engine.procedures.OmModifyCampaignsAd.Response.Row getRow(int index);", "public Cursor fetchById(long rowId) {\n\t\tCursor cursor = db.query(UserConstants.DB_TABLE, UserConstants.fields(), UserConstants.FIELD_ROWID + \" = \" + rowId, null, null, null, null);\n\t\tif (cursor != null) {\n\t\t\tcursor.moveToFirst();\n\t\t}\n\t\treturn cursor;\n\t}", "public io.dstore.engine.procedures.ImModifyNodeCharacsAd.Response.RowOrBuilder getRowOrBuilder(\n int index) {\n if (rowBuilder_ == null) {\n return row_.get(index); } else {\n return rowBuilder_.getMessageOrBuilder(index);\n }\n }", "public int getRowId() {\n return rowId_;\n }", "public int getRowId() {\n return rowId_;\n }", "public int getRowId() {\n return rowId_;\n }", "public int getRowId() {\n return rowId_;\n }", "public int getRowId() {\n return rowId_;\n }", "public int getRowid() {\n\t\treturn rowid;\n\t}", "public io.dstore.engine.procedures.OmModifyCampaignsAd.Response.Row getRow(int index) {\n if (rowBuilder_ == null) {\n return row_.get(index);\n } else {\n return rowBuilder_.getMessage(index);\n }\n }", "T readOne(int id);", "String get_row_id()\n {\n return row_id;\n }", "public int getRow() { return _row; }", "public void rollbackRow(byte[] row, long startId, Integer lockId)\n throws IOException;", "public Row getRow(int row) throws Exception{\n\t\tif(row >= size)\n\t\t\tthrow new Exception(\"Index out of bounds\");\n\n\t\treturn rows[row];\n\t}", "public void readFromSocket(long socketId) {}", "protected abstract E handleRow(ResultSet rs) throws SQLException;", "@Override\n public Result readById(final int id) throws DaoException {\n throw new DaoException(\"Unsupported operation. Result has no id\");\n }", "public Object get(int row) {\n\t\treturn null;\n\t}", "public io.dstore.engine.procedures.ImModifyNodeCharacsAd.Response.RowOrBuilder getRowOrBuilder(\n int index) {\n return row_.get(index);\n }", "public native void selectRow(int row) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.selectRow(row);\n }-*/;", "public synchronized byte[] getRow(String rowKey, byte[] column,\n boolean cacheBlocks) throws IOException {\n HTable table = getTable();\n Get get = new Get(rowKey.getBytes());\n get.setCacheBlocks(cacheBlocks);\n get.addColumn(familyName, column);\n Result row = table.get(get);\n if (row.raw().length >= 1) {\n return row.raw()[0].getValue();\n }\n return null;\n }", "public double[] getRowData(int row) {\n return data[row];\n }", "public ResultRow getRow(int rowIdx) {\r\n return rows.get(rowIdx);\r\n }", "public io.dstore.engine.procedures.OmModifyCampaignsAd.Response.Row getRow(int index) {\n return row_.get(index);\n }", "public int[] getRow() { return _row; }", "public io.dstore.engine.procedures.MiCheckPerformanceAd.Response.Row getRow(int index) {\n if (rowBuilder_ == null) {\n return row_.get(index);\n } else {\n return rowBuilder_.getMessage(index);\n }\n }", "private Object getEntry( Object[] row, String rrName ) {\n Integer icol = colMap_.get( rrName );\n return icol == null ? null : row[ icol.intValue() ];\n }", "public Object[] getRow(int r) {\n Object[] dta = new Object[data.columns];\n for (int i = 0; i < data.columns; i++)\n dta[i] = data.values[i][r];\n return dta;\n }", "@Nullable\n public <T> T get(MDSKey id, Type typeOfT) {\n Row row = table.get(id.getKey());\n if (row.isEmpty()) {\n return null;\n }\n\n byte[] value = row.get(COLUMN);\n if (value == null) {\n return null;\n }\n\n return deserialize(id, value, typeOfT);\n }", "void updateRow(int rowId, int[] newRow) {\n int oldHead = 0;\n int newHead = 0;\n int[] oldRow = this.rows[rowId];\n while (oldHead < oldRow.length && newHead < newRow.length) {\n int oldColId = oldRow[oldHead];\n int newColId = newRow[newHead];\n if (oldColId < newColId) {\n synchronized (this.getColumn(oldColId)) {\n this.getColumn(oldColId).remove(rowId);\n }\n oldHead++;\n } else if (oldColId > newColId) {\n synchronized (this.getColumn(newColId)) {\n this.getColumn(newColId).add(rowId);\n }\n newHead++;\n } else {\n oldHead++;\n newHead++;\n }\n }\n while (oldHead < oldRow.length) {\n int oldColId = oldRow[oldHead];\n synchronized (this.getColumn(oldColId)) {\n this.getColumn(oldColId).remove(rowId);\n }\n oldHead++;\n }\n while (newHead < newRow.length) {\n int newColId = newRow[newHead];\n synchronized (this.getColumn(newColId)) {\n this.getColumn(newColId).add(rowId);\n }\n newHead++;\n }\n this.rows[rowId] = newRow;\n }", "io.dstore.engine.procedures.MiCheckPerformanceAd.Response.Row getRow(int index);", "public CoverFooterItemType getRow(int row) {\r\n return ((CoverFooterItemType) data.get(row));\r\n }", "public String getData(int id){\n String _data = \"\";\n dbOperation operationObj = new dbOperation(getActivity());\n operationObj.open();\n MyTable fields = new MyTable();\n String condition2 = fields.getID() + \" ='\" + id + \"'\";\n String[] dbFields4 = {fields.getScore()};\n Cursor cursor2 = operationObj.getTableRow(fields.getTableName(),dbFields4,condition2,fields.getID() + \" ASC \",\"1\");\n if(cursor2.getCount() > 0)\n {\n cursor2.moveToFirst();\n do{\n _data = cursor2.getString(0);\n }while(cursor2.moveToNext());\n }else{\n _data = \"error\";\n }\n cursor2.close();\n cursor2.deactivate();\n operationObj.close();\n return _data;\n }", "public EntryRow getData(String TableName, String idKey, Object idValue) throws SQLException, NullPointerException {\n if(!valueExists(TableName, idKey, idValue.toString())) return null;\n\n ResultSet rs = mysql.query(\"SELECT * FROM `\" + TableName + \"` WHERE `\" + idKey + \"` LIKE '\" + idValue + \"'\");\n\n if(rs.next()) {\n Value[] values = new Value[rs.getMetaData().getColumnCount()];\n\n for(int columnIndex = 1; columnIndex <= rs.getMetaData().getColumnCount(); columnIndex++){\n int javaIndex = columnIndex-1;\n String key = rs.getMetaData().getColumnName(columnIndex);\n Object value = rs.getObject(columnIndex);\n\n values[javaIndex] = new Value(key, value);\n } // END OF FOR LOOP\n\n return new EntryRow(TableName, rs.getRow(), idKey, idValue, values);\n } // END OF rs.next IF\n\n return null;\n }" ]
[ "0.5973349", "0.58844054", "0.57511467", "0.5609803", "0.5467035", "0.5467035", "0.5463466", "0.54429317", "0.53669375", "0.5365936", "0.5247307", "0.52428323", "0.5223683", "0.5217243", "0.5194585", "0.51690066", "0.5150813", "0.5123035", "0.51178193", "0.510987", "0.50929403", "0.50800675", "0.5057004", "0.5034037", "0.5032263", "0.5013686", "0.500863", "0.49951556", "0.49896744", "0.4981175", "0.49664322", "0.49515215", "0.49496093", "0.49392083", "0.49314144", "0.49247107", "0.49241176", "0.49170423", "0.49129987", "0.49015743", "0.48910087", "0.48910087", "0.48910087", "0.48910087", "0.48910087", "0.48788664", "0.4874367", "0.48682103", "0.4856004", "0.48238295", "0.48108548", "0.4798086", "0.47974938", "0.47911885", "0.47836134", "0.47830364", "0.47802046", "0.47785825", "0.47666863", "0.47622067", "0.47573182", "0.47573182", "0.47573182", "0.47573182", "0.47573182", "0.47476226", "0.47463953", "0.47463194", "0.47426036", "0.47426036", "0.47426036", "0.47426036", "0.47426036", "0.47408885", "0.47174352", "0.47112775", "0.4710917", "0.4704552", "0.47020522", "0.4698669", "0.46952426", "0.46946862", "0.46902576", "0.46888837", "0.4683986", "0.46789613", "0.4674861", "0.4663963", "0.46598655", "0.46590513", "0.46576548", "0.46558705", "0.46497267", "0.46436834", "0.4643125", "0.4634505", "0.46324486", "0.4629459", "0.46265447", "0.46261415" ]
0.7747312
0
Compares the records at the given row ids.
public int compare(int rowId1, int rowId2) { assert _sortedRowIds != null; return _fileReader.compare(_sortedRowIds[rowId1], _sortedRowIds[rowId2]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkRow(Map<String,String> row1, Map<String,String> row2, String rowKey) {\n\t\tfinal BasicDBList countColumns = (BasicDBList) config.get(\n\t\t\t\tContextComparatorMongoReferences.FIELD_COUNT_COLUMNS);\n\t\tfinal BasicDBList refColumns = (BasicDBList) config.get(\n\t\t\t\tContextComparatorMongoReferences.FIELD_REF_COLUMNS);\n\n\t\t// Compare count columns.\n\t\tint size = countColumns.size();\n\t\tboolean testResult = true;\n\t\tfor (int i = 0; i < size; i ++) {\n\t\t\tfinal String colName = countColumns.get(i).toString();\n\t\t\tboolean flag = true;\n\n\t\t\t// Context 1 doesn't contain the column.\n\t\t\tif (!row1.containsKey(colName)) {\n\t\t\t\tContextComparator.addResult(namespace,\n\t\t\t\t\t\tContextComparatorConfigReferences.TEST_CATEGORY_COLUMN_LIST,\n\t\t\t\t\t\tContextComparatorConfigReferences.TEST_STATUS_FAILED,\n\t\t\t\t\t\tcolName + \" column missing in \" + ContextComparator.CONTEXT_1.getName()\n\t\t\t\t\t\t+ \"for key: \" + rowKey);\n\t\t\t\tflag = false;\n\t\t\t\ttestResult = false;\n\t\t\t}\n\n\t\t\t// Context 2 doesn't contain the column.\n\t\t\tif (!row2.containsKey(colName)) {\n\t\t\t\tContextComparator.addResult(namespace,\n\t\t\t\t\t\tContextComparatorConfigReferences.TEST_CATEGORY_COLUMN_LIST,\n\t\t\t\t\t\tContextComparatorConfigReferences.TEST_STATUS_FAILED,\n\t\t\t\t\t\tcolName + \" column missing in \" + ContextComparator.CONTEXT_2.getName()\n\t\t\t\t\t\t+ \"for key: \" + rowKey);\n\t\t\t\tflag = false;\n\t\t\t\ttestResult = false;\n\t\t\t}\n\n\t\t\t// Compare only if both contain the column.\n\t\t\tif (flag) {\n\t\t\t\tfinal boolean temp = compareIntValues(row1.get(colName), row2.get(colName),\n\t\t\t\t\t\tcolName, rowKey);\n\t\t\t\ttestResult = testResult && temp;\n\t\t\t}\n\t\t}\n\n\t\t// Compare other columns.\n\t\tsize = refColumns.size();\n\t\tfor (int i = 0; i < size; i ++) {\n\t\t\tfinal String colName = countColumns.get(i).toString();\n\t\t\tboolean flag = true;\n\n\t\t\t// Context 1 doesn't contain the column.\n\t\t\tif (!row1.containsKey(colName)) {\n\t\t\t\tContextComparator.addResult(namespace,\n\t\t\t\t\t\tContextComparatorConfigReferences.TEST_CATEGORY_COLUMN_LIST,\n\t\t\t\t\t\tContextComparatorConfigReferences.TEST_STATUS_FAILED,\n\t\t\t\t\t\tcolName + \" column missing in \" + ContextComparator.CONTEXT_1.getName()\n\t\t\t\t\t\t+ \"for key: \" + rowKey);\n\t\t\t\tflag = false;\n\t\t\t\ttestResult = false;\n\t\t\t}\n\n\t\t\t// Context 2 doesn't contain the column.\n\t\t\tif (!row2.containsKey(colName)) {\n\t\t\t\tContextComparator.addResult(namespace,\n\t\t\t\t\t\tContextComparatorConfigReferences.TEST_CATEGORY_COLUMN_LIST,\n\t\t\t\t\t\tContextComparatorConfigReferences.TEST_STATUS_FAILED,\n\t\t\t\t\t\tcolName + \" column missing in \" + ContextComparator.CONTEXT_2.getName()\n\t\t\t\t\t\t+ \"for key: \" + rowKey);\n\t\t\t\tflag = false;\n\t\t\t\ttestResult = false;\n\t\t\t}\n\n\t\t\t// Compare only if both contain the column.\n\t\t\tif (flag) {\n\t\t\t\tfinal boolean temp = compareStringValues(row1.get(colName),\n\t\t\t\t\t\trow2.get(colName), colName, rowKey);\n\t\t\t\ttestResult = testResult && temp;\n\t\t\t}\n\t\t}\n\n\t\t// Return overall result.\n\t\treturn testResult;\n\t}", "private boolean compareMatrix(int[][] result , int[][] expected){\n if(result.length != expected.length || result[0].length != expected[0].length){\n return false;\n }\n for(int i=0;i<result.length;i++){\n for(int j=0;j<result[0].length;j++){\n\n if(result[i][j] != expected[i][j]){\n return false;\n }\n }\n }\n return true;\n }", "private static void compareForIdenticalKeys() {\n Integer[] identical = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1};\n\n Insertion insertion = new Insertion();\n insertion.analyzeSort(identical);\n insertion.getStat().printReport();\n\n Selection selection = new Selection();\n selection.analyzeSort(identical);\n selection.getStat().printReport();\n }", "private boolean comparePersistentIdEntrys(@Nonnull PairwiseId one, @Nonnull PairwiseId other)\n {\n // Do not compare times\n //\n return Objects.equals(one.getPairwiseId(), other.getPairwiseId()) &&\n Objects.equals(one.getIssuerEntityID(), other.getIssuerEntityID()) &&\n Objects.equals(one.getRecipientEntityID(), other.getRecipientEntityID()) &&\n Objects.equals(one.getSourceSystemId(), other.getSourceSystemId()) &&\n Objects.equals(one.getPrincipalName(), other.getPrincipalName()) &&\n Objects.equals(one.getPeerProvidedId(), other.getPeerProvidedId());\n }", "@SuppressWarnings( \"unchecked\" )\n\tpublic int compare( final KeyedRecord record1, final KeyedRecord record2 ) {\n\t\tint comparison = 0;\n\t\t\n\t\tfor ( int index = 0 ; index < _keys.length ; index++ ) {\n\t\t\tfinal String key = _keys[index];\n final Object value1 = record1.valueForKey( key );\n final Object value2 = record2.valueForKey( key );\n if ( value1 instanceof Comparable && value2 instanceof Comparable ) {\n final Comparable<Object> comp1 = (Comparable<Object>)value1;\n final Comparable<Object> comp2 = (Comparable<Object>)value2;\n comparison = comp1.compareTo( comp2 );\n if ( comparison != 0 ) return comparison; \n }\n else {\n if ( !( value1 instanceof Comparable ) ) {\n throw new IllegalArgumentException( \"Record comparison failed because value 1: \" + value1 + \" is not comparable...\" );\n }\n else { \n throw new IllegalArgumentException( \"Record comparison failed because value 2: \" + value2 + \" is not comparable...\" );\n }\n }\n\t\t}\n\t\treturn comparison;\n\t}", "@Override\n public boolean equals (Object o) {\n if (!(o instanceof Row)) return false;\n\n Row other = (Row)o;\n if(index!=other.getIndex())\n return false;\n for (int i = 0; i < row.size(); i++)\n if (!row.get(i).equals(other.get(i)))\n return false;\n return true;\n }", "public static void compare () {\r\n for (int i = 0; i < dim; i++) {\r\n for (int j = 0; j < dim; j++) {\r\n if (d[i][j] != adjacencyMatrix[i][j])// here \r\n {\r\n System.out.println(\"Comparison failed\");\r\n \r\n return;\r\n }\r\n }\r\n }\r\n System.out.println(\"Comparison succeeded\");\r\n }", "private void compareSecondPass() {\n final int arraySize = this.oldFileNoMatch.size()\r\n + this.newFileNoMatch.size();\r\n this.compareArray = new SubsetElement[arraySize][2];\r\n final Iterator<String> oldIter = this.oldFileNoMatch.keySet()\r\n .iterator();\r\n int i = 0;\r\n while (oldIter.hasNext()) {\r\n final String key = oldIter.next();\r\n final SubsetElement oldElement = this.oldFileNoMatch.get(key);\r\n SubsetElement newElement = null;\r\n if (this.newFileNoMatch.containsKey(key)) {\r\n newElement = this.newFileNoMatch.get(key);\r\n }\r\n this.compareArray[i][0] = oldElement;\r\n this.compareArray[i][1] = newElement;\r\n i++;\r\n }\r\n // now go through the new elements and check for any that have no match.\r\n // these will be new elements with no corresponding old element\r\n final SubsetElement oldElement = null;\r\n final Iterator<String> newIter = this.newFileNoMatch.keySet()\r\n .iterator();\r\n while (newIter.hasNext()) {\r\n final String key = newIter.next();\r\n if (!this.oldFileNoMatch.containsKey(key)) {\r\n final SubsetElement newElement = this.newFileNoMatch.get(key);\r\n this.compareArray[i][0] = oldElement;\r\n this.compareArray[i][1] = newElement;\r\n i++;\r\n }\r\n\r\n }\r\n\r\n }", "private int compareStringArrayRecords(String[] rec1, String[] rec2)\n {\n for (int i = 0; i < rec1.length && i < rec2.length; i++) {\n if (rec1[i].equals(rec2[i])) {\n continue;\n }\n return rec1[i].compareTo(rec2[i]);\n }\n return 0;\n }", "@Override\n // Compare values according to columns\n public int compare(final int[] entry1, final int[] entry2) {\n if (entry1[0] > entry2[0])\n return 1;\n else\n return -1;\n }", "public int compare(int row1, int row2) {\n compares++;\n for (int level = 0; level < sortingColumns.size(); level++) {\n Integer column = sortingColumns.elementAt(level);\n int result = compareRowsByColumn(row1, row2, column.intValue());\n if (result != 0) {\n return ascending ? result : -result;\n }\n }\n return 0;\n }", "private final void checkRowCount(final int size1, final int size2) {\n\t\tif (size1 == size2) {\n\t\t\tContextComparator.addResult(namespace,\n\t\t\t\t\tContextComparatorConfigReferences.TEST_CATEGORY_ROW_COUNT,\n\t\t\t\t\tContextComparatorConfigReferences.TEST_STATUS_PASSED,\n\t\t\t\t\tnull);\n\t\t\treturn;\n\t\t} else {\n\t\t\tLOGGER.error(\"Count of rows doesn't match.\");\n\t\t\tContextComparator.addResult(namespace,\n\t\t\t\t\tContextComparatorConfigReferences.TEST_CATEGORY_ROW_COUNT,\n\t\t\t\t\tContextComparatorConfigReferences.TEST_STATUS_FAILED,\n\t\t\t\t\tContextComparator.CONTEXT_1.getName() + \" : \" + size1 + \", \"\n\t\t\t\t\t\t\t+ ContextComparator.CONTEXT_2.getName() + \" : \" + size2);\n\t\t\treturn;\n\t\t}\n\t}", "@Test\n public void testRecordsWithDifferentIDsProduceDifferentHashCodes() throws Exception {\n setRecordFieldValue(otherRecord, \"id\", 42L);\n int hashcodeA = record.hashCode();\n int hashcodeB = otherRecord.hashCode();\n\n assertThat(hashcodeA == hashcodeB, is(false));\n }", "public void testCompare() throws Exception {\n\n Object testData[][] = {\n { \"aaa\", \"bbb\", -1 },\n { \"aaa\", \"aaa\", 0 },\n { \"bbb\", \"aaa\", 1 },\n { \"aaa\", \"aaa_L1_bbb.lsm\", -1 },\n { \"aaa_L1_bbb.lsm\", \"aaa_L1_bbb.lsm\", 0 },\n { \"aaa_L1_bbb.lsm\", \"aaa\", 1 },\n { \"aaa_L1_bbb.lsm\", \"aaa_L10_bbb.lsm\", -1 },\n { \"aaa_L10_bbb.lsm\", \"aaa_L1_bbb.lsm\", 1 },\n { \"aaa_La_bbb.lsm\", \"aaa_L1_bbb.lsm\", 1 },\n { \"aaa_L2_bbb.lsm\", \"aaa_L10_bbb.lsm\", -1 }\n };\n\n LNumberComparator comparator = new LNumberComparator();\n\n for (Object[] testRow : testData) {\n String name1 = (String) testRow[0];\n String name2 = (String) testRow[1];\n File file1 = new File(name1);\n File file2 = new File(name2);\n int expectedResult = (Integer) testRow[2];\n int actualResult = comparator.compare(new FileTarget(file1),\n new FileTarget(file2));\n\n boolean isValid = ((expectedResult > 0) && (actualResult > 0)) ||\n ((expectedResult < 0) && (actualResult < 0)) ||\n ((expectedResult == 0) && (actualResult == 0));\n\n assertTrue(name1 + \" compared to \" + name2 +\n \" returned invalid result of \" + actualResult +\n \" (should have same sign as \" + expectedResult + \")\",\n isValid);\n }\n\n }", "public int compare(String record1, String record2)\n\t{\n\t\tint id1=0;\n\t\tint id2=0;\n\t\ttry\n\t\t{\n\t\t\tid1 = Integer.parseInt(record1);\n\t\t\tid2 = Integer.parseInt(record2);\n\t\t}\n\t\tcatch(NumberFormatException e)\n\t\t{\n\t\t}\n\t\treturn id1-id2;\n\t}", "private void assertDataUsageEquals(long[] dataIds, int... expectedValues) {\n if (dataIds.length != expectedValues.length) {\n throw new IllegalArgumentException(\"dataIds and expectedValues must be the same size\");\n }\n\n for (int i = 0; i < dataIds.length; i++) {\n assertDataUsageEquals(dataIds[i], expectedValues[i]);\n }\n }", "private boolean rowCheck() {\n\t\tfor(int[] row : puzzle) {\n\t\t\tfor(int i = 0; i < row.length; i++) {\n\t\t\t\tif(row[i] != 0) {\n\t\t\t\t\tfor(int j = i + 1; j < row.length; j++) {\n\t\t\t\t\t\tif(row[i] == row[j])\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "void compareDataStructures();", "private boolean eq(int[] a,int[] b){\n\t\tboolean eq = true;\n\t\tif(a.length != b.length) return false;\n\t\tfor(int i=0;i<a.length;i++){\n\t\t\tif( a[i] != b[i] ){\n\t\t\t\teq = false;\n\t\t\t\tbreak;\n\t\t\t}else{\n\n\t\t\t}\n\t\t}\n\t\treturn eq;\n\t}", "public boolean matchSameColumns(Key key);", "private void verifyObjects(String[] objIDs) {\n NST objectNST = DB.getObjectNST();\n ResultSet resultSet = objectNST.selectRows(); // \"ID\"\n List expectedIDStrs = Arrays.asList(objIDs);\n\n // fill actualIDStrs\n List actualIDInts = resultSet.toOIDList(1);\n List actualIDStrs = new ArrayList();\n for (Iterator actualIDIntIter = actualIDInts.iterator(); actualIDIntIter.hasNext();) {\n Integer actualIDInt = (Integer) actualIDIntIter.next();\n actualIDStrs.add(actualIDInt.toString());\n }\n\n // compare\n assertEquals(expectedIDStrs.size(), actualIDStrs.size());\n assertTrue(expectedIDStrs.containsAll(actualIDStrs));\n }", "private void compareMatrices(double[][] firstM, double[][] secondM) {\n assertEquals(firstM.length, secondM.length);\n\n for(int i=0; i<firstM.length; i++) {\n assertEquals(firstM[i].length, secondM[i].length);\n\n for(int j=0; j<firstM[0].length; j++) {\n assertEquals(\"i,j = \"+i+\",\"+j, \n firstM[i][j], secondM[i][j], TOLERANCE);\n }\n }\n }", "private static boolean equals(int[] array1, int[] array2) {\n if(array1.length != array2.length)\n return false;\n \n Arrays.sort(array1);\n Arrays.sort(array2);\n \n int i = 0;\n for(; i < array1.length; ++i) {\n if(array1[i] != array2[i])\n break;\n }\n \n return (i == array1.length);\n }", "private void updateEqualRows(String tableName, String[][] tableData, String[][] selectedCells) \n {\n String[][] modifiedCells = new String[selectedCells.length][selectedCells[0].length];\n// int cont = 0;\n for (int i = 0; i < selectedCells.length; i++) \n {\n for (int j = 0; j < selectedCells[0].length; j++) \n {\n if (!selectedCells[i][j].toString().equals(tableData[i][j].toString())) \n {\n adapter.updateRow(tableName, tableData[0][j], selectedCells[i][j], tableData[i][0]);\n// cont++;\n// System.out.println(\"GOT HERE: \" + cont);\n// System.out.println(\"table name: \" + tableName);\n// System.out.println(\"table data 0j: \" + tableData[0][j]);\n// System.out.println(\"selected cells ij: \" + selectedCells[i][j]);\n// System.out.println(\"tabledata i0: \" + tableData[i][0]);\n// System.out.println(\"\\n\");\n }\n }\n// cont = 0;\n }\n }", "private final boolean indicesEqual(Collection<TableName> list1, Collection<TableName> list2)\n {\n logger.info(\"indicesEqual - Enter - Index1: {}, Index2: {}\", list1, list2);\n\n // lists must have the same number of indices.\n if (list1.size() != list2.size()) {\n logger.warn(\"Indices lists are different sizes!\");\n return false;\n }\n\n // lists must have the same indices (irrespective of internal ordering).\n Iterator<TableName> iter = list1.iterator();\n while (iter.hasNext()) {\n if (!list2.contains(iter.next())) {\n logger.warn(\"Indices mismatch in list!\");\n return false;\n }\n }\n\n return true;\n }", "public static boolean doCheck(ArrayList<int[]> matches) {\n\t\tboolean result = true;\n\t\t\n\t\tArrayList<Integer> rows = new ArrayList<Integer>();\n\t\tArrayList<Integer> cols = new ArrayList<Integer>();\n\t\t\n\t\tfor (int i = 0; i < matches.size(); i++) {\n\t\t\tif (!rows.contains(matches.get(i)[0]) && !cols.contains(matches.get(i)[1])) {\n\t\t\t\trows.add(matches.get(i)[0]);\n\t\t\t\tcols.add(matches.get(i)[1]);\n\t\t\t} else {\n\t\t\t\tresult = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public static void compare(Set<Long> recipeIdList) {\r\n\t\tHistory.newItem(SCREEN_NAME + \"&\" + PARAMETER_ID_LIST + \"=\" + Kuharija.listJoiner.join(recipeIdList));\r\n\t}", "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null || getClass() != o.getClass()) {\n return false;\n }\n ResultsMatrices resultsMatrices = (ResultsMatrices) o;\n if (resultsMatrices.getId() == null || getId() == null) {\n return false;\n }\n return Objects.equals(getId(), resultsMatrices.getId());\n }", "@Override\npublic boolean equals(Object tbl) {\n Table table;\n\n try {\n table = (Table) tbl;\n } catch (Exception e) {\n return false;\n }\n\n if (getNumRows() != table.getNumRows()) {\n return false;\n }\n\n if (getNumColumns() != table.getNumColumns()) {\n return false;\n }\n\n for (int i = 0; i < getNumRows(); i++) {\n\n for (int j = 0; j < getNumColumns(); j++) {\n\n if (!getObject(i, j).equals(table.getObject(i, j))) {\n return false;\n }\n }\n }\n\n return true;\n\n }", "private static void mergeAllRowsIfPossible(ArrayList<Row> rows) {\n // use fixed seed in order to get consistent results (with random properties)\n Random rand = new Random(5711l);\n int tries = 0;\n // this should be enough to be quite sure we don't miss any optimalization\n // possibility\n final int maxTries = rows.size() * 2;\n\n // do this loop until we successfully merged everything into one row\n // or we give up until too much tries\n while (rows.size() > 1 && tries < maxTries) {\n // choose two random entries\n int oneIdx = rand.nextInt(rows.size());\n int secondIdx = rand.nextInt(rows.size());\n if (oneIdx == secondIdx) {\n // try again if we choose the same rows by accident\n continue;\n }\n\n Row one = rows.get(oneIdx);\n Row second = rows.get(secondIdx);\n\n if (one.merge(second)) {\n // remove the second one since it is merged into the first\n rows.remove(secondIdx);\n\n // success: reset counter\n tries = 0;\n } else {\n // increase counter to avoid endless loops if no improvement is possible\n tries++;\n }\n }\n }", "private static boolean compare(BufferedInputStream b1, BufferedInputStream b2) throws IOException {\n\t\tint cmp1 = 0, cmp2;\r\n\t\tbyte[] i = new byte[100];\r\n\t\tbyte[] j = new byte[100];\r\n\t\t\r\n\t\twhile(cmp1 != -1){\r\n\t\t\tcmp1 = b1.read(i, 0, i.length);\r\n\t\t\tcmp2 = b2.read(j, 0, j.length);\r\n\t\t\tif(cmp1 != cmp2){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor(int k = 0; k < cmp1; k++){\r\n\t\t\t\tif(i[k] != j[k]){\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private static boolean compareList(List<Object> l1, List<Object> l2)\n {\n int count=0;\n for (Object o : l1)\n {\n Object temp = o;\n for (Object otemp : l2)\n {\n if (EqualsBuilder.reflectionEquals(temp, otemp))\n {\n count++;\n }\n }\n\n }\n\n if(count == l1.size()) return true;\n return false;\n\n }", "@Override\n public boolean equals(Object obj){\n if(this == obj){\n return true;\n }\n else if(!(obj instanceof Row)){\n return false;\n }\n\n Row row2 = (Row)obj;\n\n return this.index == row2.index && this.spaces.equals(row2.spaces);\n }", "int planDiff (ArrayList<String> planR, ArrayList<String> planH) {\n \tif (planR.equals(planH)) return -1;\n\t\tint actionNumber = 0;\n\t\tfor (int i = 0; i < (planR.size() & planH.size()); i++) {\n\t\t\tif (!planR.get(i).equals(planH.get(i))) {\n\t\t\t\tactionNumber = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n//\t\tif ((actionNumber > 0 && planR.size() == planH.size())) return -1; // for planner indp\n\t\treturn actionNumber;\n\t}", "public void compareTwoRows(XSSFRow row1, XSSFRow row2, XSSFRow row3,XSSFWorkbook xssfWorkbook,CellStyle cellStyle) {\n Cell sheet1RequestId = null;\n Cell sheet1Barcode = null;\n Cell sheet1Status = null;\n Cell sheet2RequestId = null;\n Cell sheet2Barcode = null;\n Cell sheet2Status = null;\n String sheet1LasStatus = null;\n String[] sheet1 = new String[3];\n String[] sheet2 = new String[3];\n if (row1 != null){\n sheet1RequestId = getRowValuesForCompare(row1,0);\n sheet1Barcode = getRowValuesForCompare(row1,1);\n sheet1Status = getRowValuesForCompare(row1,10);\n }\n if(row2 != null){\n sheet2RequestId = getRowValuesForCompare(row2,0);\n sheet2Barcode = getRowValuesForCompare(row2,1);\n sheet2Status = getRowValuesForCompare(row2,10);\n }\n if (checkCellIsNotEmpty(sheet1RequestId)){\n sheet1[0] = sheet1RequestId.getStringCellValue();\n }\n if (checkCellIsNotEmpty(sheet1Barcode)){\n sheet1[1] = sheet1Barcode.getStringCellValue().toUpperCase();\n }\n if (checkCellIsNotEmpty(sheet2RequestId)){\n sheet2[0] = sheet2RequestId.getStringCellValue();\n }\n if (checkCellIsNotEmpty(sheet2Barcode)){\n sheet2[1]=sheet2Barcode.getStringCellValue();\n }\n if (checkCellIsNotEmpty(sheet1Status)){\n sheet1LasStatus = getLasStatusForCompare(sheet1Status, sheet1);\n }\n if(checkCellIsNotEmpty(sheet2Status)){\n sheet2[2] = sheet2Status.getStringCellValue();\n }\n boolean equalRow = Arrays.equals(sheet1, sheet2);\n buidComparisionSheet(row3, xssfWorkbook, sheet1LasStatus, sheet1, sheet2, equalRow,cellStyle);\n }", "private List<Comparison> doCompare(VM vm, Row row, String vmType) {\r\n List<Comparison> results = new ArrayList<Comparison>();\r\n\r\n for (String param : ReadFile.parametersToCompare.stringPropertyNames()) {\r\n\r\n if (paramIndexes.get(param) != null) {\r\n String resValue = getCellValue(row.getCell(paramIndexes.get(param)));\r\n\r\n if (resValue != null && datastoreUsageValues.get(param) != null) {\r\n resValue = datastoreUsageValues.get(param);\r\n if (\"Backuptool\".equals(param) && \"vm5\".equals(vm.getVm_name())) {\r\n resValue = datastoreUsageValues.get(\"NFSBackup\");\r\n }\r\n }\r\n\r\n if (resValue == null) {\r\n continue;\r\n }\r\n String vConfValue = getVConfValue(param, vm, ReadFile.parametersToCompare.getProperty(param));\r\n Comparison comparison = new Comparison();\r\n comparison.setAttribute(param);\r\n if (\"Datastore\".equals(param)) {\r\n matchStringValues(vConfValue, resValue, comparison);\r\n comparison.setComment(\"vConf value: \" + vConfValue + \", Resource sheet value: \" + resValue);\r\n } else if (\"Ext rep\".equals(param) && !openStack && !is3XL) {\r\n if (vmType.contains(\"Small\") || vmType.contains(\"Mainstream\")) {\r\n resValue = Double.toString(Double.parseDouble(resValue) / 2);\r\n } else {\r\n resValue = Double.toString(Double.parseDouble(resValue) / 4);\r\n }\r\n matchValues(vConfValue, resValue, comparison, param);\r\n comparison.setComment(\"vConf value: \" + vConfValue + \" MB, Resource sheet value: \" + resValue + \" GB\");\r\n } else if (\"vCPU\".equals(param)) {\r\n matchValues(vConfValue, resValue, comparison, param);\r\n comparison.setComment(\"vConf value: \" + vConfValue + \" GB, Resource sheet value: \" + resValue + \" GB\");\r\n } else {\r\n matchValues(vConfValue, resValue, comparison, param);\r\n comparison.setComment(\"vConf value: \" + vConfValue + \" MB, Resource sheet value: \" + resValue + \" GB\");\r\n }\r\n results.add(comparison);\r\n }\r\n }\r\n\r\n return results;\r\n }", "@Test\n public void testEqualsReturnsFalseOnDifferentIdVal() throws Exception {\n setRecordFieldValue(otherRecord, \"id\", 42L);\n\n boolean equals = record.equals(otherRecord);\n\n assertThat(equals, is(false));\n }", "private List<PmTableGenericRow<T_ROW_ELEMENT_PM>> ensureSortedRows(List<PmTableGenericRow<T_ROW_ELEMENT_PM>> rows) {\n if (sortOrderSelection == null) {\n // generates the sort order container.\n getColumns();\n }\n\n List<PmTableGenericRow<T_ROW_ELEMENT_PM>> existingList = sortOrderSelection.sortedRows;\n if (existingList == null) {\n if (sortOrderSelection.sortCol != null) {\n // Assign a new list after sorting to prevent concurrent modification problems.\n ArrayList<PmTableGenericRow<T_ROW_ELEMENT_PM>> tempList = new ArrayList<PmTableGenericRow<T_ROW_ELEMENT_PM>>(rows);\n Collections.sort(tempList, new RowComparator(sortOrderSelection));\n sortOrderSelection.assignSortedRows(tempList);\n\n return sortOrderSelection.sortedRows;\n }\n else {\n sortOrderSelection.assignSortedRows(new ArrayList<PmTableGenericRow<T_ROW_ELEMENT_PM>>(rows));\n return sortOrderSelection.sortedRows;\n }\n }\n else {\n return existingList;\n }\n }", "int existsSame(String startDate1,String endDate1,String startDate2,String endDate2) throws SQLException, ParseException {\n Connection con = db.connection();\n PreparedStatement stmt = con.prepareStatement(\"select id from rateplan where rp1startdate = ? and rp1enddate = ? and rp2startdate = ? and rp2enddate = ?\");\n stmt.setDate(1,getDate(startDate1));\n stmt.setDate(2,getDate(endDate1));\n stmt.setDate(3,getDate(startDate2));\n stmt.setDate(4,getDate(endDate2));\n\n ResultSet rs = stmt.executeQuery();\n if (rs.next())\n return rs.getInt(1);\n return -1;\n\n }", "@Test\r\n public void testCompare() {\r\n\r\n double[] r1;\r\n double[] r2;\r\n Comparator<double[]> instance = new DoubleArrayComparator();\r\n \r\n r1 = new double[]{1,2,3};\r\n r2 = new double[]{1,2,3}; \r\n assertEquals(0, instance.compare(r1, r2));\r\n\r\n r1 = new double[]{1,2,3};\r\n r2 = new double[]{1,3,2}; \r\n assertEquals(-1, instance.compare(r1, r2));\r\n \r\n r1 = new double[]{1,3,3};\r\n r2 = new double[]{1,3,2}; \r\n assertEquals(1, instance.compare(r1, r2));\r\n \r\n }", "@Test\n public void testHashcodeReturnsSameValueForIdenticalRecords() {\n int hashcodeA = record.hashCode();\n int hashcodeB = otherRecord.hashCode();\n\n assertThat(hashcodeA == hashcodeB, is(true));\n }", "private Boolean compararQueries(Configuracion config,Consulta consultaOriginal, Consulta consultaAlternativa, int itemConsultaOriginal, int itemConsultaAlternativa){\n\t\tDatabase database1 = new Database();\n\t\tDatabase database2 = new Database();\n\t\tList<Map<String, Object>> resultadosConsulta1 = database1.ejecutarQuery(config, consultaOriginal, database1);\n\t\tList<Map<String, Object>> resultadosConsulta2 = database2.ejecutarQuery(config, consultaAlternativa, database2);\n\t\tif (resultadosConsulta1.equals(resultadosConsulta2)){\n\t\t\treturn true;\t\t\t\t\t\n\t\t}\n\t\telse\n\t\t\treturn false;\t\t\t\n\t}", "public List<String> comparing(List<String> data1, List<String> data2) throws SQLException\n {\n \tif(data1.size()==0)\n \t\treturn data2;\n \telse if(data2.size()==0)\n \t\treturn data1;\n \tList<String> different = new ArrayList<String>();\n \tfor(int x = 0; x < data2.size();x++)\n \t{\n \t\tif(data1.contains(data2.get(x))==false)\n \t\t{\n \t\t\tdifferent.add(data2.get(x));\n \t\t}\n \t}\n \t\n \treturn different;\n }", "static void compararMatrices() {\r\n System.out.println(\"COMPARAR MATRIZ CUADRADA \\n\");\r\n setup(true);\r\n boolean iguales = matrizA.compararMatrices(matrizB);\r\n if (iguales) {\r\n messageDialog(\"Las matrices son iguales!\", \"Comparar\", 3);\r\n } else {\r\n messageDialog(\"Las matrices no son iguales!\", \"Comparar\", 3);\r\n }\r\n }", "public static void main(String[] args) {\n\t\tList l=new ArrayList();\r\n\t\tl.add(12);\r\n\t\tl.add(45);\r\n\t\tl.add(15);\r\n\t\tl.add(78);\r\n\t\t\r\n\t\tList l2=new ArrayList();\r\n\t\tl2.add(12);\r\n\t\tl2.add(45);\r\n\t\tl2.add(10);\r\n\t\tl2.add(78);\r\n\t\t\r\n\t\tBoolean m=l.containsAll(l2);\r\n\t\t\r\n\t\tif(m)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Elements are same\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Not equal\");\r\n\t\t}\r\n\t\t\r\n\r\n\t}", "private final boolean compareIntValues(final String data1, final String data2,\n\t\t\tfinal String colName, final String key){\n\t\tint tolerance = ContextComparatorConfigReferences.DEFAULT_TOLERANCE_PERCENTAGE;\n\t\ttry {\n\t\t\ttolerance = Integer.parseInt(\n\t\t\t\t\tconfig.get(\"tolerancePercent\").toString());\n\t\t} catch (NumberFormatException e) {\n\t\t\tLOGGER.warn(\"Unable to parse tolerance percentage, falling back to default.\", e);\n\t\t}\n\n\t\t// FIXME: What if values are decimals?\n\t\tint count1 = 0;\n\t\tint count2 = 0;\n\t\ttry {\n\t\t\tcount1 = Integer.parseInt(data1);\n\t\t\tcount2 = Integer.parseInt(data2);\n\t\t} catch (NumberFormatException e) {\n\t\t\tLOGGER.error(\"Unable to parse count in \" + colName + \" for key: \" + key, e);\n\t\t\tContextComparator.addResult(namespace,\n\t\t\t\t\tContextComparatorConfigReferences.TEST_CATEGORY_COUNT_VALUES,\n\t\t\t\t\tContextComparatorConfigReferences.TEST_STATUS_FAILED,\n\t\t\t\t\t\"Parse exception for \" + colName + \" and key \" + key);\n\t\t\treturn false;\n\t\t}\n\n\t\tif (count1 == count2) {\n\t\t\treturn true;\n\t\t}\n\n\t\tfinal int error = Math.abs(count1 - count2)/count1*100;\n\t\tif (error < tolerance) {\n\t\t\treturn true;\n\t\t}\n\n\t\tContextComparator.addResult(namespace,\n\t\t\t\tContextComparatorConfigReferences.TEST_CATEGORY_COUNT_VALUES,\n\t\t\t\tContextComparatorConfigReferences.TEST_STATUS_FAILED,\n\t\t\t\terror + \"% error for \" + colName + \" and key \" + key\n\t\t\t\t+ \". \" + ContextComparator.CONTEXT_1.getName()\n\t\t\t\t+ \": \" + count1 + \", \" + ContextComparator.CONTEXT_2.getName()\n\t\t\t\t+ \": \" + count2);\n\t\treturn false;\n\t}", "void checkSimColumns(Table t1, Table t2, LinkedList<String> simNames, HashMap<Integer,\n LinkedList> t1ToT2, LinkedList<Integer> simRowsT1,\n LinkedList<LinkedList> totalSimRows) {\n boolean flag = false;\n LinkedList<Integer> temp;\n for (String cn : simNames) {\n String[] t1Col = t1.getCol(cn);\n String[] t2Col = t2.getCol(cn);\n for (int i = 0; i < t1Col.length; i++) {\n for (int j = 0; j < t2Col.length; j++) {\n if (t1Col[i].equals(t2Col[j])) {\n simRowsT1.addLast(i);\n if (t1ToT2.containsKey(i)) {\n temp = t1ToT2.get(i);\n temp.addLast(j);\n t1ToT2.put(i, temp);\n flag = true;\n } else {\n temp = new LinkedList<>();\n temp.addLast(j);\n t1ToT2.put(i, temp);\n }\n }\n }\n }\n totalSimRows.addLast(simRowsT1);\n }\n }", "private boolean compareFiles(String file1, String file2)\r\n throws IOException {\r\n \r\n BufferedReader reader1 = new BufferedReader(new FileReader(file1));\r\n BufferedReader reader2 = new BufferedReader(new FileReader(file2));\r\n \r\n\r\n String line1 = reader1.readLine();\r\n String line2 = reader2.readLine();\r\n\r\n boolean areEqual = true;\r\n\r\n int lineNum = 1;\r\n\r\n while (line1 != null || line2 != null) {\r\n if (line1 == null || line2 == null) {\r\n areEqual = false;\r\n break;\r\n }\r\n \r\n else if (!line1.equals(line2)) {\r\n areEqual = false;\r\n break;\r\n }\r\n\r\n line1 = reader1.readLine();\r\n line2 = reader2.readLine();\r\n\r\n lineNum++;\r\n }\r\n reader1.close();\r\n reader2.close();\r\n\r\n if (areEqual) { \r\n return true;\r\n }\r\n else { \r\n System.out.println(\r\n \"Two files have different content. They differ at line \"\r\n + lineNum);\r\n return false;\r\n }\r\n\r\n \r\n }", "private static boolean areTheyEqual(int[][] tempArray, int[][] array2) {\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tif (tempArray[i][j] != array2[i][j]) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public Cell getRowValuesForCompare(Row row,int cellNum){\n return row.getCell(cellNum);\n }", "private static void assertRow(String msg, Row expected, Row actual)\n {\n Assert.assertEquals(\n StringUtils.format(\"%s: timestamp\", msg),\n expected.getTimestamp(),\n actual.getTimestamp()\n );\n\n final Map<String, Object> expectedMap = ((MapBasedRow) expected).getEvent();\n final Map<String, Object> actualMap = ((MapBasedRow) actual).getEvent();\n\n for (final String key : expectedMap.keySet()) {\n final Object expectedValue = expectedMap.get(key);\n if (!actualMap.containsKey(key)) {\n Assert.fail(\n StringUtils.format(\"%s: Expected key [%s] to exist, but it did not [%s]\", msg, key, actualMap.keySet())\n );\n }\n\n final Object actualValue = actualMap.get(key);\n\n if (expectedValue != null && expectedValue.getClass().isArray()) {\n Assert.assertArrayEquals((Object[]) expectedValue, (Object[]) actualValue);\n } else if (expectedValue instanceof Float || expectedValue instanceof Double) {\n Assert.assertEquals(\n StringUtils.format(\"%s: key[%s]\", msg, key),\n ((Number) expectedValue).doubleValue(),\n ((Number) actualValue).doubleValue(),\n Math.abs(((Number) expectedValue).doubleValue() * 1e-6)\n );\n } else {\n Assert.assertEquals(\n StringUtils.format(\"%s: key[%s]\", msg, key),\n expectedValue,\n actualValue\n );\n }\n }\n // Given that we iterated through all of the keys in one, checking that the key exists in the other, then if they\n // have the same size, they must have the same keyset.\n Assert.assertEquals(expectedMap.size(), actualMap.size());\n }", "int match(ArrayList<ImageCell> images);", "private int scoreIdMatch(int tag1, int tag2)\n {\n // If they're exactly equal, great.\n if (tag1 == tag2)\n return 100;\n \n // Fail for now.\n return 0;\n }", "private boolean isEqual(int[] x, int[] y) {\n for (int i = 0; i < 3; i++) {\n if (x[i] != y[i]) {\n return false;\n }\n }\n return true;\n }", "private boolean compareStatements(com.hp.hpl.jena.rdf.model.Statement stmt1,com.hp.hpl.jena.rdf.model.Statement stmt2) {\n if (!stmt1.getSubject().toString().equals(stmt2.getSubject().toString()))\n return false;\n else if (!stmt1.getObject().toString().equals(stmt2.getObject().toString()))\n return false;\n else if (!stmt1.getPredicate().toString().equals(stmt2.getPredicate().toString()))\n return false;\n else\n return true;\n }", "boolean areTheyEqual(int[] array_a, int[] array_b) {\n if(array_a == null || array_b == null || array_a.length!=array_b.length) return false;\n\n HashMap<Integer,Integer> count = new HashMap<>();\n for(int x : array_a){\n count.put(x, count.getOrDefault(x,0)+1);\n }\n for(int y : array_b){\n count.put(y, count.getOrDefault(y,0)-1);\n if(count.get(y)==0) count.remove(y);\n }\n return count.size()==0;\n }", "@Test(dependsOnMethods = \"verifyPayerSortTest\")\r\n\tpublic void verifyLoadIdSortTest() throws InterruptedException {\n\t\tcarrierschedulepayment.clickLoadIDColumn();\r\n\t\t// click first row to expand\r\n\t\tcarrierschedulepayment.clickFirstRow();\r\n\t\t// get the data elements from the first row displayed\r\n\t\tfirstRowData = carrierschedulepayment.getFirstRowData();\r\n\t\t// click LoadID Column to change sort from ascending to descending\r\n\t\tcarrierschedulepayment.clickLoadIDColumn();\r\n\t\t// click first row to expand\r\n\t\tcarrierschedulepayment.clickFirstRow();\r\n\t\t// get the data elements from the first row displayed\r\n\t\tlastRowData = carrierschedulepayment.getFirstRowData();\r\n\t\t// compare to the database when sorted by given column-Descending\r\n\t\tif (carrierschedulepayment.getRowCount() > 1)\r\n\t\t\tAssert.assertNotEquals(firstRowData, lastRowData,\r\n\t\t\t\t\t\"First Row Data: \\n\" + firstRowData + \"\\nLast Row Data: \\n\" + lastRowData);\r\n\t}", "private static int binaryCompare(final Resource r1, final Resource r2) throws IOException {\n try (InputStream in1 = new BufferedInputStream(r1.getInputStream());\n InputStream in2 =\n new BufferedInputStream(r2.getInputStream())) {\n\n for (int b1 = in1.read(); b1 != -1; b1 = in1.read()) {\n final int b2 = in2.read();\n if (b1 != b2) {\n return b1 > b2 ? 1 : -1;\n }\n }\n return in2.read() == -1 ? 0 : -1;\n }\n }", "public static void main(String[] args) {\n\t\tint[] arr1 = { 10, 12, 55, 32, 17 };\n\t\tint[] arr2 = { 10, 12, 55, 32, 17 };\n\t\t/*//Second set\n\t\tint[] arr1 = {10,12,55,32,17,99};\n\t\tint[] arr2 = {10,12,55,32,17}};*/\n\t\t/* //Third set\n\t\tint[] arr1 = {10,12,55,32,17};\n\t\tint[] arr2 = {10,12,99,32,17}};*/\n\n\t\tArraysIdentical arrayidentical = new ArraysIdentical();\n\t\tarrayidentical.identicalCheck(arr1, arr2);\n\n\t}", "public Set<RecordPair> match(Record record) throws ApplicationException;", "@Test\n public void codonCompare1(){\n //these list are already sorted\n AminoAcidLL first = AminoAcidLL.createFromRNASequence(a);\n AminoAcidLL second = AminoAcidLL.createFromRNASequence(b);\n int expected = 0;\n assertEquals(expected, first.codonCompare(second));\n }", "static public java.lang.String genComparisons (org.apache.spark.sql.catalyst.expressions.codegen.CodegenContext ctx, scala.collection.Seq<org.apache.spark.sql.catalyst.expressions.SortOrder> ordering) { throw new RuntimeException(); }", "public boolean equals(Object obj)\n {\n if (! (obj instanceof TableRow))\n return false;\n \n return data.equals(((TableRow) obj).data);\n }", "private Vector getModifiedRows()\r\n {\r\n Vector vecUpdatedRows = new Vector();\r\n int rowCount = 0;\r\n \r\n /* CASE #607 Add deletes to the vector before inserts and updates to avoid \r\n * unique constraint error */\r\n \r\n if (vecDeletedRows.size() > 0 )\r\n {//append deleted rows to vecUpdatedRows\r\n for (int row = 0; row < vecDeletedRows.size(); row++)\r\n {\r\n vecUpdatedRows.add(vecDeletedRows.get(row));\r\n } \r\n } \r\n\r\n while(rowCount < tblProtoCorresp.getRowCount())\r\n {// check AC_TYPE field\r\n String tmpACType ;\r\n if (codeTableModel.getValueAt(sorter.getIndexForRow(rowCount), codeTableModel.getColumnCount()-1) != null)\r\n {\r\n vecUpdatedRows.add(getTableRow(rowCount)) ;\r\n }\r\n rowCount++ ;\r\n }//end while\r\n\r\n return vecUpdatedRows ;\r\n }", "public void compareFiles() {\n\t \n\t\tprepareLinesFile(fileName1, linesFile1);\n\t\tprepareLinesFile(fileName2, linesFile2);\n\t\t\n\t\t//If both files have the same number of lines then we compare each line\n\t if (linesFile1.size() == linesFile2.size()) {\n\t \t \tfor (int i = 0; i < linesFile1.size(); i++) {\n\t \t\tcompareLines(i);\t\t\t\t\n\t\t\t}\n\t }\n\t \n\t //Otherwise\n\t else {\n\t \t//We distinguish the files by their number of lines\n\t \tfinal ArrayList<String> linesLongerFile;\n\t \tfinal ArrayList<String> linesShorterFile;\n\t \t\n\t \t\n\t \tif (linesFile1.size() > linesFile2.size()) {\n\t \t\tlinesLongerFile = linesFile1;\n\t \t\tlinesShorterFile = linesFile2;\n\t \t}\n\t \t\n\t \telse {\n\t \t\tlinesLongerFile = linesFile2;\n\t \t\tlinesShorterFile = linesFile1;\n\t \t}\n\t \t\n\t \tint counter = 0;\n\t \t//We compare each line a number of times equals to the number of the shortest file lines\n\t \tfor (int i = 0; i < linesShorterFile.size(); i++) {\n\t \t\tcompareLines(i);\n\t \t\tcounter = i;\n\t \t}\n\t \t\n\t \t//We show the remaining lines to add into the first file\n\t \tfor (int i = counter+1; i < linesLongerFile.size(); i++) {\n\t \t\t\n\t \t\t//If the second file is the longest then we show the remaining lines to add into the first file\n\t \t\tif (linesLongerFile.size() == linesFile2.size()) {\n\t \t\t\tSystem.out.println(\"+ \"+linesLongerFile.get(i));\n\t \t\t}\n\t \t\t\n\t \t\t//If the first file is the longest then we show the remaining lines to delete \n\t \t\telse {\n\t \t\t\tSystem.out.println(\"- \"+linesLongerFile.get(i));\n\t \t\t}\n\t \t\t\n\t \t}\n\t }\t\t\n\t}", "public int compare(RankSorter rs1, RankSorter rs2) {\n if (rs1.y < rs2.y)\n return -1;\n if (rs1.y > rs2.y)\n return 1;\n if (rs1.id < rs2.id)\n return -1;\n if (rs1.id > rs2.id)\n return 1;\n return 0;\n }", "@Test\t\n\tpublic void findAllQCBatchNotesTest(){\n//\t\tlog.trace(\"GETTING ALL QC BATCH NOTES\");\n\t\t\n\t\t// find all QC batch notes\n\t\tList<Note> notes = noteDao.findAllQCBatchNotes(TEST_QCBATCH_ID);\n\t\t\n\t\t// compare with expected\n\t\tList<Integer> expected = new ArrayList<>();\n\t\tCollections.addAll(expected, 6369,6390,6391,6420,6438,6457,6470);\n\t\tassertEquals(expected.size(), notes.size()); // same size\n\t\tfor(int j = 0; j < expected.size(); j++){\n\t\t\tassertTrue(expected.contains(notes.get(j).getNoteId())); // same values\n\t\t}\n\t}", "@Override\n\t\t\t\t\tpublic int compare(messagewrapper lhs, messagewrapper rhs) {\n\t\t\t\t\t\treturn rhs.get_id()-lhs.get_id();\n\t\t\t\t\t}", "protected abstract int doCompare(Object o1, Object o2);", "public void compare(Row code){\n\n\t\t//ArrayList<Peg> code_items=code.items;\n\n\t\t//Loop through each item in the code row\n\t\tfor(int j=0; j<code.items.size(); j++){\n\n\t\t\tboolean hard=false;\n\t\t\tboolean soft=false;\n\n\t\t\t//For each code row item, loop through each guess row item\n\t\t\tfor(int k=0; k<items.size(); k++){\n\n\t\t\t\t//get the guess and code values for the specific column\n\t\t\t\tint guessval=items.get(k).getValue();\n\t\t\t\tint codeval =code.items.get(j).getValue();\n\n\t\t\t\t//Determine if it is a hard hit or \n\t\t\t\tif(guessval==codeval && j==k){\n\t\t\t\t\thard=true;\n\t\t\t\t}else if(guessval==codeval && j!=k){\n\t\t\t\t\tsoft=true;\n\t\t\t\t}// end if..else if\n\n\t\t\t}//end inner for\n\n\t\t\t//determine hardhits vs softhits\n\t\t\tif(hard){\n\t\t\t\thardhit++;\n\t\t\t}else if(soft && !hard){\n\t\t\t\tsofthit++;\n\t\t\t}// end if..else if\n\n\t\t}//end outer for\n\n\t}", "public boolean checkRowDBVNode(ResultSet rs){\n\t\ttry{\n\t\t\twhile(rs.next()){\n\t\t\t\tif(rs.getString(\"id\").equals(id))\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}catch(SQLException e){\n\t\t\tSystem.err.println(e);\n\t\t}\n\t\treturn true;\n\t}", "private boolean multiFieldMatch(int doc1, int doc2)\n {\n int titleScore = 0;\n int authorScore = 0;\n int dateScore = 0;\n int idScore = 0;\n \n // Compare each field to each other field. We assume that there are not\n // very many, so that this isn't terribly inefficient.\n //\n for (int p1 = data.docTags.firstPos(doc1); p1 >= 0; p1 = data.docTags.nextPos(p1)) {\n int tag1 = data.docTags.getValue(p1);\n int type1 = data.tags.getType(tag1);\n \n for (int p2 = data.docTags.firstPos(doc2); p2 >= 0; p2 = data.docTags.nextPos(p2)) {\n int tag2 = data.docTags.getValue(p2);\n int type2 = data.tags.getType(tag2);\n \n if (type1 != type2)\n continue;\n \n switch (type1) {\n case FRBRData.TYPE_TITLE:\n titleScore = Math.max(titleScore, scoreTitleMatch(tag1, tag2));\n break;\n case FRBRData.TYPE_AUTHOR:\n authorScore = Math.max(authorScore, scoreAuthorMatch(tag1, tag2));\n break;\n case FRBRData.TYPE_DATE:\n dateScore = Math.max(dateScore, scoreDateMatch(tag1, tag2));\n break;\n case FRBRData.TYPE_ID:\n idScore = Math.max(idScore, scoreIdMatch(tag1, tag2));\n break;\n } // switch\n } // for p2\n } // for p1\n \n // Is the total score high enough?\n int totalScore = titleScore + authorScore + dateScore + idScore;\n return totalScore >= 200;\n }", "public static boolean same(int[] a, int[] b) {\r\n \treturn (a[0] == b[0] && a[1] == b[1]) || (a[0] == b[1] && a[1] == b[0]);\r\n }", "private void verify(final Collection objects) {\n final HashSet originalIds = new HashSet();\n for (final Iterator i = objects.iterator(); i.hasNext();) {\n final ManagedObject mo = (ManagedObject) i.next();\n originalIds.add(mo.getID());\n }\n\n final Collection inMemoryIds = getAllObjectIDs();\n assertTrue(\"Wrong bits in memory were set\", originalIds.containsAll(inMemoryIds));\n\n // verify on disk object IDs\n final ObjectIDSet idSet = this.managedObjectPersistor.snapshotObjectIDs();\n assertTrue(\"Wrong object IDs on disk\", idSet.containsAll(inMemoryIds));\n assertTrue(\"Wrong object IDs on disk\", inMemoryIds.containsAll(idSet));\n }", "@Test\n public void aminoCompareTest1(){\n //these list are already sorted\n AminoAcidLL first = AminoAcidLL.createFromRNASequence(c);\n AminoAcidLL second = AminoAcidLL.createFromRNASequence(d);\n int expected = 1;\n assertEquals(expected, first.aminoAcidCompare(second));\n }", "public static void main(String[] args) {\n\t\tInteger [] a= {1,4,7, 9, 2};\n\t\tInteger [] b={1,7,3,4,5};\n\t\tArrayList <Integer> c=new ArrayList<Integer>();\n\t\tfor(int i=0;i<a.length;i++)\n\t\t{\n\t\t\tfor(int j=0;j<b.length;j++)\n\t\t\t{\n\t\t\t\tif(a[i]==b[j])\n\t\t\t\t{\n\t\t\t\t\tif(!c.contains(a[i]))\n\t\t\t\t\t{\n\t\t\t\t\t\tc.add(a[i]);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"First Method : \"+c);\n\t\t//second method\n\t\tList<Integer> arr1=Arrays.asList(a);\n\t\tList<Integer> arr2=Arrays.asList(b);\n\t\tHashSet<Integer> aset=new HashSet<>(arr1);\n\t\taset.retainAll(arr2);\n\t\tSystem.out.println(\"Second Method: \"+aset);\n\t\t\n\t}", "public static void main(String[] args) {\n int[] a = {4, 6, 3};\n int[] b = {6, 4, 3};\n System.out.println(areSimilar(a, b));\n\n }", "@Test\n public void aminoCompareTest2() {\n //these list are already sorted\n AminoAcidLL first = AminoAcidLL.createFromRNASequence(c);\n AminoAcidLL second = AminoAcidLL.createFromRNASequence(c);\n int expected = 0;\n assertEquals(expected, first.aminoAcidCompare(second));\n }", "public static boolean equals(int[] list1, int[] list2) {\n boolean verdict = false;\n \n // use bubbleSort to sort each list\n list1 = bubbleSort(list1);\n list2 = bubbleSort(list2);\n \n if (list1.length == list2.length) {\n verdict = true;\n for (int i = 0; i < list1.length; i++) {\n if (list1[i] != list2[i]) {\n verdict = false;\n break;\n }\n }\n }\n return verdict;\n }", "public static void main(String[] args) {\n\t\tint a1[] = new int[] {4,9,5};\n\t\tint a2[] = new int[] {9,4,9,8,4 }; \n//\t\tArrays.sort(a1);\n//\t\tArrays.sort(a2);\n\t\tList<Integer> list = new ArrayList<Integer>();\n\t\tfor(int i=0;i<a1.length;i++){\n\t\t\tfor(int j=i;j<a2.length;j++){\n\t\t\t\tif(a1[i]!=a2[j]){\n\t\t\t\t\tcontinue;\n\t\t\t\t}else{\n\t\t\t\t\tlist.add(a1[i]);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tfor(Integer l:list){\n\t\t\tSystem.out.print(l+\" \");\n\t\t}\n\n\t}", "@Override\n public boolean equals(Object object)\n {\n if (!(object instanceof MatchEntryPK))\n {\n return false;\n }\n MatchEntryPK other = (MatchEntryPK) object;\n if (this.id != other.id)\n {\n return false;\n }\n if (this.formatId != other.formatId)\n {\n return false;\n }\n return this.formatGameId == other.formatGameId;\n }", "boolean equalTo(Block leftBlock, int leftPosition, Block rightBlock, int rightPosition);", "private static long vratiBrojOdlikasa(List<StudentRecord> records) {\n\t\treturn records.stream().filter(o -> o.getOcjena() == 5).count();\n\t}", "public int compare(Row row1, Row row2) {\n double asianDiff = row1.getDataValue(\"percAsian\") - row2.getDataValue(\"percAsian\");\n return asianDiff > 0.0 ? 1:\n asianDiff == 0.0 ? 0 : -1;\n }", "@Override\n\tpublic int compare(Map<String, Object> arg0, Map<String, Object> arg1) {\n\t\tint i1 = (Integer) arg0.get(\"id\");\n\t\tint i2 = (Integer) arg1.get(\"id\");\n\t\tif(i1 < i2)\n\t\t\treturn 1;\n\t\telse if(i1 > i2)\n\t\t\treturn -1;\n\t\treturn 0;\n\t}", "private static boolean isEqual(int[] nums1, int[] nums2){\n \tfor(int i=0; i<nums1.length; i++){\n \t\tif(nums1[i]!=nums2[i]){\n \t\t\treturn false;\n \t\t}\n \t}\n \treturn true;\n }", "@Override\n\t\tpublic int compare(WritableComparable a, WritableComparable b) {\n\t\t\tSystem.out.println(\"comparision occur\");\n\t\t\tif (a instanceof IntPair && b instanceof IntPair) {\n\t\t\t\treturn ((IntPair) a).id.compareTo(((IntPair) b).id);\n\t\t\t}\n\t\t\treturn super.compare(a, b);\n\t\t}", "@Test\n public void runQueriesWithoutCollisions() throws Throwable\n {\n execute(\"INSERT INTO %s (pk, ck, dec) VALUES (-2, 1, 2.2)\");\n execute(\"INSERT INTO %s (pk, ck, dec) VALUES (-2, 2, 2.2)\");\n execute(\"INSERT INTO %s (pk, ck, dec) VALUES (-1, 1, 1.1)\");\n execute(\"INSERT INTO %s (pk, ck, dec) VALUES (0, 1, 0)\");\n execute(\"INSERT INTO %s (pk, ck, dec) VALUES (1, 1, 1.1)\");\n execute(\"INSERT INTO %s (pk, ck, dec) VALUES (2, 1, 2.2)\");\n execute(\"INSERT INTO %s (pk, ck, dec) VALUES (2, 2, 2.2)\");\n\n // EQ queries\n assertRowsIgnoringOrder(execute(\"SELECT * FROM %s WHERE dec = 1.1\"),\n row(-1, 1, BigDecimal.valueOf(1.1D)),\n row(1, 1, BigDecimal.valueOf(1.1D)));\n\n assertRowsIgnoringOrder(execute(\"SELECT * FROM %s WHERE dec = 2.2\"),\n row(-2, 1, BigDecimal.valueOf(2.2D)),\n row(-2, 2, BigDecimal.valueOf(2.2D)),\n row(2, 1, BigDecimal.valueOf(2.2D)),\n row(2, 2, BigDecimal.valueOf(2.2D)));\n\n // LT/LTE queries\n assertRowsIgnoringOrder(execute(\"SELECT * FROM %s WHERE dec < 1.1\"),\n row(0, 1, BigDecimal.valueOf(0)));\n\n assertRowsIgnoringOrder(execute(\"SELECT * FROM %s WHERE dec <= 1.1\"),\n row(-1, 1, BigDecimal.valueOf(1.1D)),\n row(0, 1, BigDecimal.valueOf(0)),\n row(1, 1, BigDecimal.valueOf(1.1D)));\n\n // GT/GTE queries\n assertRowsIgnoringOrder(execute(\"SELECT * FROM %s WHERE dec > 1.1\"),\n row(-2, 1, BigDecimal.valueOf(2.2D)),\n row(-2, 2, BigDecimal.valueOf(2.2D)),\n row(2, 1, BigDecimal.valueOf(2.2D)),\n row(2, 2, BigDecimal.valueOf(2.2D)));\n\n assertRowsIgnoringOrder(execute(\"SELECT * FROM %s WHERE dec >= 1.1\"),\n row(-2, 1, BigDecimal.valueOf(2.2D)),\n row(-2, 2, BigDecimal.valueOf(2.2D)),\n row(-1, 1, BigDecimal.valueOf(1.1D)),\n row(1, 1, BigDecimal.valueOf(1.1D)),\n row(2, 1, BigDecimal.valueOf(2.2D)),\n row(2, 2, BigDecimal.valueOf(2.2D)));\n }", "public static void testIteratorEqualsOtherMethods(RatingsDataset<Rating> ratingsDataset) {\n\n int errors = 0;\n try {\n\n Map<Integer, Integer> numRatingsUsers_byIterator = new TreeMap<Integer, Integer>();\n Map<Integer, Integer> numRatingsItems_byIterator = new TreeMap<Integer, Integer>();\n\n for (Rating r : ratingsDataset) {\n int idUser = r.getIdUser();\n int idItem = r.getIdItem();\n\n ratingsDataset.getRating(idUser, idItem);\n\n if (numRatingsUsers_byIterator.containsKey(idUser)) {\n numRatingsUsers_byIterator.put(idUser, numRatingsUsers_byIterator.get(idUser) + 1);\n } else {\n numRatingsUsers_byIterator.put(idUser, 1);\n }\n\n if (numRatingsItems_byIterator.containsKey(idItem)) {\n numRatingsItems_byIterator.put(idItem, numRatingsItems_byIterator.get(idItem) + 1);\n } else {\n numRatingsItems_byIterator.put(idItem, 1);\n }\n\n }\n\n for (int idUser : ratingsDataset.allUsers()) {\n int numRatingsUser_byGetRatings = ratingsDataset.getUserRatingsRated(idUser).size();\n int numRatingsUser_ByIterator = numRatingsUsers_byIterator.get(idUser);\n\n if (numRatingsUser_byGetRatings != numRatingsUser_ByIterator) {\n Global.showWarning(\"El usuario \" + idUser + \" tiene:\\n\"\n + \"\\t\" + numRatingsUser_byGetRatings + \" valoraciones según el método getUserRatingsRated(idUser) \\n\"\n + \"\\t\" + numRatingsUser_ByIterator + \" valoraciones según el iterador\");\n errors++;\n }\n }\n\n final Set<Integer> allRatedItems = new TreeSet<Integer>(ratingsDataset.allRatedItems());\n\n for (int idItem : allRatedItems) {\n\n int numRatingsItem_byGetRatings = ratingsDataset.getItemRatingsRated(idItem).size();\n int numRatingsItem_ByIterator = numRatingsItems_byIterator.get(idItem);\n\n if (numRatingsItem_byGetRatings != numRatingsItem_ByIterator) {\n Global.showWarning(\"El producto \" + idItem + \" tiene:\\n\"\n + \"\\t\" + numRatingsItem_byGetRatings + \" valoraciones según el método getItemRatingsRated(idItem) \\n\"\n + \"\\t\" + numRatingsItem_ByIterator + \" valoraciones según el iterador\");\n errors++;\n }\n }\n\n if (numRatingsItems_byIterator.keySet().equals(allRatedItems)) {\n } else {\n errors++;\n Global.showWarning(\"El conjunto de items valorados es distinto.\");\n\n Set<Integer> AMinusB = new TreeSet<Integer>(numRatingsItems_byIterator.keySet());\n AMinusB.removeAll(allRatedItems);\n\n Set<Integer> BMinusA = new TreeSet<Integer>(allRatedItems);\n BMinusA.removeAll(numRatingsItems_byIterator.keySet());\n\n if (!AMinusB.isEmpty()) {\n Global.showWarning(\"Produtos que no están en el allItemsRated --> \" + AMinusB.toString());\n }\n if (!BMinusA.isEmpty()) {\n Global.showWarning(\"Produtos que no están según el iterador --> \" + BMinusA.toString());\n }\n }\n\n if (numRatingsUsers_byIterator.keySet().equals(ratingsDataset.allUsers())) {\n } else {\n errors++;\n Global.showWarning(\"El conjunto de usuarios es distinto.\");\n }\n\n } catch (UserNotFound ex) {\n ERROR_CODES.USER_NOT_FOUND.exit(ex);\n } catch (ItemNotFound ex) {\n ERROR_CODES.ITEM_NOT_FOUND.exit(ex);\n }\n if (errors == 0) {\n Global.showWarning(\"Finished the dataset test.\");\n } else {\n Global.showWarning(\"Finished the dataset test with \" + errors + \" errors.\");\n }\n }", "private static void verifyLongs(long[] values, int[] ids) throws Exception {\n IndexWriterConfig iwc = newIndexWriterConfig();\n\n // Else we can get O(N^2) merging:\n int mbd = iwc.getMaxBufferedDocs();\n if (mbd != -1 && mbd < values.length / 100) {\n iwc.setMaxBufferedDocs(values.length / 100);\n }\n iwc.setCodec(getCodec());\n Directory dir;\n if (values.length > 100000) {\n dir = newMaybeVirusCheckingFSDirectory(createTempDir(\"TestRangeTree\"));\n } else {\n dir = newMaybeVirusCheckingDirectory();\n }\n\n int missingPct = random().nextInt(100);\n int deletedPct = random().nextInt(100);\n if (VERBOSE) {\n System.out.println(\" missingPct=\" + missingPct);\n System.out.println(\" deletedPct=\" + deletedPct);\n }\n\n BitSet missing = new BitSet();\n BitSet deleted = new BitSet();\n\n Document doc = null;\n int lastID = -1;\n\n IndexWriter w = new IndexWriter(dir, iwc);\n for (int ord = 0; ord < values.length; ord++) {\n int id;\n if (ids == null) {\n id = ord;\n } else {\n id = ids[ord];\n }\n if (id != lastID) {\n if (random().nextInt(100) < missingPct) {\n missing.set(id);\n if (VERBOSE) {\n System.out.println(\" missing id=\" + id);\n }\n }\n\n if (doc != null) {\n w.addDocument(doc);\n if (random().nextInt(100) < deletedPct) {\n int idToDelete = random().nextInt(id);\n w.deleteDocuments(new Term(\"id\", \"\" + idToDelete));\n deleted.set(idToDelete);\n if (VERBOSE) {\n System.out.println(\" delete id=\" + idToDelete);\n }\n }\n }\n\n doc = new Document();\n doc.add(newStringField(\"id\", \"\" + id, Field.Store.NO));\n doc.add(new NumericDocValuesField(\"id\", id));\n lastID = id;\n }\n\n if (missing.get(id) == false) {\n doc.add(new LongPoint(\"sn_value\", values[id]));\n byte[] bytes = new byte[8];\n NumericUtils.longToSortableBytes(values[id], bytes, 0);\n doc.add(new BinaryPoint(\"ss_value\", bytes));\n }\n }\n\n w.addDocument(doc);\n\n if (random().nextBoolean()) {\n if (VERBOSE) {\n System.out.println(\" forceMerge(1)\");\n }\n w.forceMerge(1);\n }\n final IndexReader r = DirectoryReader.open(w);\n w.close();\n\n IndexSearcher s = newSearcher(r, false);\n\n int numThreads = TestUtil.nextInt(random(), 2, 5);\n\n if (VERBOSE) {\n System.out.println(\"TEST: use \" + numThreads + \" query threads; searcher=\" + s);\n }\n\n List<Thread> threads = new ArrayList<>();\n final int iters = atLeast(100);\n\n final CountDownLatch startingGun = new CountDownLatch(1);\n final AtomicBoolean failed = new AtomicBoolean();\n\n for (int i = 0; i < numThreads; i++) {\n Thread thread =\n new Thread() {\n @Override\n public void run() {\n try {\n _run();\n } catch (Exception e) {\n failed.set(true);\n throw new RuntimeException(e);\n }\n }\n\n private void _run() throws Exception {\n startingGun.await();\n\n for (int iter = 0; iter < iters && failed.get() == false; iter++) {\n Long lower = randomValue();\n Long upper = randomValue();\n\n if (upper < lower) {\n long x = lower;\n lower = upper;\n upper = x;\n }\n\n Query query;\n\n if (VERBOSE) {\n System.out.println(\n \"\\n\"\n + Thread.currentThread().getName()\n + \": TEST: iter=\"\n + iter\n + \" value=\"\n + lower\n + \" TO \"\n + upper);\n byte[] tmp = new byte[8];\n NumericUtils.longToSortableBytes(lower, tmp, 0);\n System.out.println(\" lower bytes=\" + Arrays.toString(tmp));\n NumericUtils.longToSortableBytes(upper, tmp, 0);\n System.out.println(\" upper bytes=\" + Arrays.toString(tmp));\n }\n\n if (random().nextBoolean()) {\n query = LongPoint.newRangeQuery(\"sn_value\", lower, upper);\n } else {\n byte[] lowerBytes = new byte[8];\n NumericUtils.longToSortableBytes(lower, lowerBytes, 0);\n byte[] upperBytes = new byte[8];\n NumericUtils.longToSortableBytes(upper, upperBytes, 0);\n query = BinaryPoint.newRangeQuery(\"ss_value\", lowerBytes, upperBytes);\n }\n\n if (VERBOSE) {\n System.out.println(Thread.currentThread().getName() + \": using query: \" + query);\n }\n\n final FixedBitSet hits =\n s.search(query, FixedBitSetCollector.createManager(r.maxDoc()));\n\n if (VERBOSE) {\n System.out.println(\n Thread.currentThread().getName() + \": hitCount: \" + hits.cardinality());\n }\n\n NumericDocValues docIDToID = MultiDocValues.getNumericValues(r, \"id\");\n\n for (int docID = 0; docID < r.maxDoc(); docID++) {\n assertEquals(docID, docIDToID.nextDoc());\n int id = (int) docIDToID.longValue();\n boolean expected =\n missing.get(id) == false\n && deleted.get(id) == false\n && values[id] >= lower\n && values[id] <= upper;\n if (hits.get(docID) != expected) {\n // We do exact quantized comparison so the bbox query should never disagree:\n fail(\n Thread.currentThread().getName()\n + \": iter=\"\n + iter\n + \" id=\"\n + id\n + \" docID=\"\n + docID\n + \" value=\"\n + values[id]\n + \" (range: \"\n + lower\n + \" TO \"\n + upper\n + \") expected \"\n + expected\n + \" but got: \"\n + hits.get(docID)\n + \" deleted?=\"\n + deleted.get(id)\n + \" query=\"\n + query);\n }\n }\n }\n }\n };\n thread.setName(\"T\" + i);\n thread.start();\n threads.add(thread);\n }\n startingGun.countDown();\n for (Thread thread : threads) {\n thread.join();\n }\n IOUtils.close(r, dir);\n }", "@Test\n public void testEqualsReturnsTrueOnIdenticalRecords() {\n boolean equals = record.equals(otherRecord);\n\n assertThat(equals, is(true));\n }", "public boolean compareCellsWithDB(String[][] tableData,\n\t\t\tString[][] selectedCells) {\n\t\t/*\n\t\t * to avoid getting the array out of bounds index in need to strict the\n\t\t * comparison only in the range of the smaller array (we won't have\n\t\t * trouble with columns as we only get here if both arrays have the same\n\t\t * number of cols)\n\t\t */\n\n\t\tint lessCols;\n\t\tif (tableData.length < selectedCells.length) {\n\t\t\tlessCols = tableData.length;\n\t\t\t/*\n\t\t\t * is this case we're certain we can return true because having one\n\t\t\t * more row implies that we have different information when compared\n\t\t\t * to the DB\n\t\t\t */\n\t\t\treturn true;\n\t\t} else {\n\t\t\tlessCols = selectedCells.length;\n\t\t}\n\n\t\tfor (int i = 0; i < lessCols; i++) {\n\t\t\tfor (int j = 0; j < selectedCells[0].length; j++) {\n\t\t\t\tif (!tableData[i][j].equals(selectedCells[i][j])) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\r\n\tpublic int blockByID(String[] ids) {\n\t\tfor (String id : ids) {\r\n\t\t\tSystem.out.println();\r\n\t\t\tCustomerRec rec = new CustomerRec();\r\n\t\t\trec.setId(id);\r\n\t\t\trec.setApprovalStatus(0);\r\n\t\t\tcustomerRecDao.updateStatusById(rec);\r\n\t\t}\r\n\t\treturn 1;\r\n\t}", "public void compareArray() {\n\t\tmatches = 0;\n\t\tfor(int g = 0; g<guessNum.length; g++) {\n\t\t\tfor(int r=0; r<randNum.length; r++) {\n\t\t\t\tif(guessNum[g]==randNum[r]) {\n\t\t\t\t\tmatches++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public boolean compareObjects(Object object1, Object object2, AbstractSession session) {\n Object firstCollection = getRealCollectionAttributeValueFromObject(object1, session);\n Object secondCollection = getRealCollectionAttributeValueFromObject(object2, session);\n ContainerPolicy containerPolicy = getContainerPolicy();\n\n if (containerPolicy.sizeFor(firstCollection) != containerPolicy.sizeFor(secondCollection)) {\n return false;\n }\n\n if (containerPolicy.sizeFor(firstCollection) == 0) {\n return true;\n }\n Object iterFirst = containerPolicy.iteratorFor(firstCollection);\n Object iterSecond = containerPolicy.iteratorFor(secondCollection);\n\n //loop through the elements in both collections and compare elements at the\n //same index. This ensures that a change to order registers as a change.\n while (containerPolicy.hasNext(iterFirst)) {\n //fetch the next object from the first iterator.\n Object firstAggregateObject = containerPolicy.next(iterFirst, session);\n Object secondAggregateObject = containerPolicy.next(iterSecond, session);\n\n //fetch the next object from the second iterator.\n //matched object found, break to outer FOR loop\t\t\t\n if (!getReferenceDescriptor().getObjectBuilder().compareObjects(firstAggregateObject, secondAggregateObject, session)) {\n return false;\n }\n }\n return true;\n }", "@Test(dependsOnMethods = \"verifyLoadIdSortTest\")\r\n\tpublic void verifyInvoiceSortTest() throws InterruptedException {\n\t\tcarrierschedulepayment.clickInvoiceColumn();\r\n\t\t// click first row to expand\r\n\t\tcarrierschedulepayment.clickFirstRow();\r\n\t\t// get the data elements from the first row displayed\r\n\t\tfirstRowData = carrierschedulepayment.getFirstRowData();\r\n\t\t// click LoadID Column to change sort from ascending to descending\r\n\t\tcarrierschedulepayment.clickInvoiceColumn();\r\n\t\t// click first row to expand\r\n\t\tcarrierschedulepayment.clickFirstRow();\r\n\t\t// get the data elements from the first row displayed\r\n\t\tlastRowData = carrierschedulepayment.getFirstRowData();\r\n\t\t// compare to the database when sorted by given column-Descending\r\n\t\tif (carrierschedulepayment.getRowCount() > 1)\r\n\t\t\tAssert.assertNotEquals(firstRowData, lastRowData,\r\n\t\t\t\t\t\"First Row Data: \\n\" + firstRowData + \"\\nLast Row Data: \\n\" + lastRowData);\r\n\t}", "public static void main(String[] args) {\n\t\tint[] a={1,2,3,4,5};\r\n\t\tint[] b={2,3,7,8,9,4,5};\r\n\t\tfor(int i=0;i<a.length;i++){\r\n\t\t\tfor(int j=0;j<b.length;j++){\r\n\t\t\t\tif(a[i]==b[j])\r\n\t\t\t\t\tSystem.out.println(b[j]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public static boolean elementsEqual(java.util.Iterator<?> r3, java.util.Iterator<?> r4) {\n /*\n L_0x0000:\n boolean r0 = r3.hasNext()\n if (r0 == 0) goto L_0x001d\n boolean r0 = r4.hasNext()\n r1 = 0\n if (r0 != 0) goto L_0x000e\n return r1\n L_0x000e:\n java.lang.Object r0 = r3.next()\n java.lang.Object r2 = r4.next()\n boolean r0 = com.google.common.base.Objects.equal(r0, r2)\n if (r0 != 0) goto L_0x0000\n return r1\n L_0x001d:\n boolean r3 = r4.hasNext()\n r3 = r3 ^ 1\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.common.collect.Iterators.elementsEqual(java.util.Iterator, java.util.Iterator):boolean\");\n }", "private static int textCompare(final Resource r1, final Resource r2) throws IOException {\n try (BufferedReader in1 =\n new BufferedReader(new InputStreamReader(r1.getInputStream()));\n BufferedReader in2 = new BufferedReader(\n new InputStreamReader(r2.getInputStream()))) {\n\n String expected = in1.readLine();\n while (expected != null) {\n final String actual = in2.readLine();\n if (!expected.equals(actual)) {\n if (actual == null) {\n return 1;\n }\n return expected.compareTo(actual);\n }\n expected = in1.readLine();\n }\n return in2.readLine() == null ? 0 : -1; //NOSONAR\n }\n }", "public List<String> comparingRoom(List<String> all, List<String> data2) throws SQLException\n {\n \tif(data2.size()==0)\n \t\treturn all;\n \tList<String> different = new ArrayList<String>();\n \tfor(int x = 0; x < all.size();x++)\n \t{\n \t\tif(data2.contains(all.get(x))==false)\n \t\t{\n \t\t\tdifferent.add(all.get(x));\n \t\t}\n \t}\n \treturn different;\n }" ]
[ "0.60912323", "0.5517007", "0.5329704", "0.5295447", "0.52921784", "0.5281979", "0.52336943", "0.52266073", "0.51218915", "0.509202", "0.50723076", "0.50565946", "0.5044992", "0.5034686", "0.5005355", "0.49684772", "0.49583873", "0.4957448", "0.4891382", "0.48864523", "0.48829645", "0.48709384", "0.48681292", "0.4866157", "0.48648193", "0.48625657", "0.48495394", "0.48430797", "0.48022816", "0.4788109", "0.4787901", "0.47828388", "0.4776458", "0.47659808", "0.4750514", "0.4742881", "0.47356027", "0.47299886", "0.47272015", "0.47236392", "0.4708528", "0.47038013", "0.47010553", "0.47010428", "0.46932113", "0.46809334", "0.46787694", "0.46716765", "0.4666809", "0.46658865", "0.46537244", "0.46530986", "0.46509984", "0.46457255", "0.4642251", "0.46353108", "0.46324703", "0.46303037", "0.4629194", "0.4593473", "0.45917818", "0.45882818", "0.45656192", "0.45595407", "0.45516333", "0.45485282", "0.45458388", "0.4544267", "0.453907", "0.4536485", "0.45328584", "0.45268896", "0.4514973", "0.45149186", "0.4512334", "0.45070502", "0.45012626", "0.44981673", "0.4493054", "0.44919482", "0.44886184", "0.4488473", "0.44845557", "0.44791266", "0.44771045", "0.44715452", "0.44712886", "0.44602913", "0.44530708", "0.44505847", "0.4448485", "0.44480175", "0.4447769", "0.44435415", "0.4441976", "0.44398922", "0.44375348", "0.44357076", "0.44247946", "0.44235313" ]
0.67720646
0
Dispense the specified stack, play the dispense sound and spawn particles.
@Override protected @Nonnull ItemStack dispenseStack(@Nonnull IBlockSource source, @Nonnull ItemStack stack) { ItemStack secondaryResult = Prep.getEmpty(); EnumFacing enumfacing = source.getBlockState().getValue(BlockDispenser.FACING); CapturedMob capturedMob = CapturedMob.create(stack); if (capturedMob != null) { if (capturedMob.spawn(source.getWorld(), source.getBlockPos(), enumfacing, true)) { stack.shrink(1); secondaryResult = new ItemStack(ItemSoulVial.this); } } else { for (EntityLivingBase entity : source.getWorld().<EntityLivingBase> getEntitiesWithinAABB(EntityLivingBase.class, new AxisAlignedBB(source.getBlockPos().offset(enumfacing)), EntitySelectors.NOT_SPECTATING)) { if (!(entity instanceof IEntityOwnable) || ((IEntityOwnable) entity).getOwnerId() == null) { capturedMob = CapturedMob.create(entity); if (capturedMob != null) { entity.setDead(); if (entity.isDead) { stack.shrink(1); secondaryResult = capturedMob.toStack(ItemSoulVial.this, 1, 1); break; } } } } } if (Prep.isValid(secondaryResult)) { if (Prep.isInvalid(stack)) { stack = secondaryResult; } else { TileEntity blockTileEntity = source.getBlockTileEntity(); if (!(blockTileEntity instanceof TileEntityDispenser) || ((TileEntityDispenser) blockTileEntity).addItemStack(secondaryResult) < 0) { Block.spawnAsEntity(source.getWorld(), source.getBlockPos().offset(enumfacing), secondaryResult); } } } return stack; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void spawnDispenseParticles(IBlockSource p_82489_1_, EnumFacing p_82489_2_)\n {\n p_82489_1_.getWorld().playAuxSFX(2000, p_82489_1_.getXInt(), p_82489_1_.getYInt(), p_82489_1_.getZInt(), this.func_82488_a(p_82489_2_));\n }", "public void explosion(){\n explosionEffect.play(pitch, volume);\n }", "public void destroyDefense(){\n\t\tif(currentConstruct != null)\n\t\t\tcurrentConstruct.receiveDamage(currentConstruct.getHitpoints());\n\t}", "public void doExplosionB(boolean spawnParticles) {\n this.world.playSound((EntityPlayer) null, this.x, this.y, this.z, SoundEvents.ENTITY_GENERIC_EXPLODE, SoundCategory.BLOCKS, 4.0F, (1.0F + (this.world.rand.nextFloat() - this.world.rand.nextFloat()) * 0.2F) * 0.7F);\n\n if (world instanceof WorldServer) {\n if (this.size >= 2.0F) {\n ((WorldServer) world).spawnParticle(EnumParticleTypes.EXPLOSION_HUGE, true, this.x, this.y, this.z, 2, 0, 0, 0, 0d);\n } else {\n ((WorldServer) world).spawnParticle(EnumParticleTypes.EXPLOSION_LARGE, true, this.x, this.y, this.z, 2, 0, 0, 0, 0d);\n }\n }\n\n }", "public void act() \n {\n //plays animation with a delay between frames\n explosionSound.play();\n i = (i+1)%(frames.length); \n setImage(frames[i]);\n if(i == 0) getWorld().removeObject(this);\n }", "protected void playDispenseSound(IBlockSource p_82485_1_)\n {\n p_82485_1_.getWorld().playAuxSFX(1000, p_82485_1_.getXInt(), p_82485_1_.getYInt(), p_82485_1_.getZInt(), 0);\n }", "public void EjectStackOnMilled( ItemStack stack )\r\n {\r\n \tint iFacing = 2 + worldObj.rand.nextInt( 4 ); // random direction to the sides\r\n \t\r\n \tVec3 ejectPos = Vec3.createVectorHelper( worldObj.rand.nextDouble() * 1.25F - 0.125F, \r\n \t\tworldObj.rand.nextFloat() * ( 1F / 16F ) + ( 7F / 16F ), \r\n \t\t-0.2F );\r\n \t\r\n \tejectPos.RotateAsBlockPosAroundJToFacing( iFacing );\r\n \t\r\n EntityItem entity = new EntityItem( worldObj, xCoord + ejectPos.xCoord, \r\n \t\tyCoord + ejectPos.yCoord, zCoord + ejectPos.zCoord, stack );\r\n\r\n \tVec3 ejectVel = Vec3.createVectorHelper( worldObj.rand.nextGaussian() * 0.025D, \r\n \t\tworldObj.rand.nextGaussian() * 0.025D + 0.1F, \r\n \t\t-0.06D + worldObj.rand.nextGaussian() * 0.04D );\r\n \t\r\n \tejectVel.RotateAsVectorAroundJToFacing( iFacing );\r\n \t\r\n entity.motionX = ejectVel.xCoord;\r\n entity.motionY = ejectVel.yCoord;\r\n entity.motionZ = ejectVel.zCoord;\r\n \r\n entity.delayBeforeCanPickup = 10;\r\n \r\n worldObj.spawnEntityInWorld( entity );\r\n }", "public static void playExplosion()\n {\n combust.play();\n if (combust.audioClip.getFramePosition() ==\n combust.audioClip.getFrameLength())\n {\n combust.audioClip.setFramePosition(0);\n combust.audioClip.stop();\n }\n }", "public void callExplode () {\n if (noOfExplosives > 0){\n yVelocity -= 750;\n noOfExplosives--;\n isExploding = true;\n }\n }", "public void act() \n {\n if(timer > 0){\n timer--;\n }else{\n Greenfoot.playSound(\"explosionSound.wav\");\n getWorld().removeObject(this);\n }\n }", "private void explode()\n\t{\n\t\texplosion.setX(getX());\n\t\texplosion.setY(getY());\n\t\t\n\t\tif(!explosion.isOver())\n\t\t{\n\t\t\texplosion.update();\n\t\t\texplosion.drawObject();\n\t\t}\t\n\t\telse\n\t\t\talive = false;\n\t}", "public void moveTowards(){\n \n \n \n if(!exploded){\n \n \n move(speed);\n \n if(isTouching(Enemy.class)){\n move(explosionRadius); \n \n inRange = (ArrayList) getObjectsInRange(explosionRadius + 25, Enemy.class);\n for(Enemy e : inRange){\n e.hit(damage);\n }\n \n //explode\n exploded = true;\n \n image = new GreenfootImage(\"50x50 aoe.png\");\n image.scale(explosionRadius*2, explosionRadius*2);\n setImage(image);\n //getWorld().removeObject(this);\n }\n else if (isAtEdge())\n {\n getWorld().removeObject(this);\n }\n else if ( radius < distance) {\n getWorld().removeObject(this); \n }\n }\n else{\n setImage(image);\n image.setTransparency(image.getTransparency() - 5);\n if(image.getTransparency() <= 0) getWorld().removeObject(this);\n }\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tl.getWorld().createExplosion(drop.getLocation(), 2, false);\n\t\t\t\t\t}", "public void dropExplosives() {\n // Updates the time elapsed for each of the explosives\n for (int i=0; i<this.explosives.size(); i++) {\n Explosive dormantExplosive = this.explosives.get(i);\n dormantExplosive.increaseTime();\n }\n // If the Airplane has reached the end, doesn't detect any enemies\n // Isn't deleted straight away as it needs to wait for explosives to detonate\n if (super.outOfBounds()) {return;}\n this.timeElapsedDrop += ShadowDefend.getTimescale()/FPS;\n //Adds a new explosive\n if (this.timeElapsedDrop >= this.dropTime) {\n this.timeElapsedDrop = 0;\n Explosive newExplosive = new Explosive(super.getCenter());\n // Centers the explosive at the airplane's current position\n newExplosive.centerRectAt(super.getCenter());\n this.explosives.add(newExplosive);\n // Generates a new drop time in range\n this.dropTime = generateDropTime();\n this.numDropped++;\n }\n\n }", "protected ItemStack dispenseStack(IBlockSource p_82487_1_, ItemStack p_82487_2_)\n {\n EnumFacing var3 = BlockDispenser.func_149937_b(p_82487_1_.getBlockMetadata());\n IPosition var4 = BlockDispenser.func_149939_a(p_82487_1_);\n ItemStack var5 = p_82487_2_.splitStack(1);\n doDispense(p_82487_1_.getWorld(), var5, 6, var3, var4);\n return p_82487_2_;\n }", "protected void onDespawn() {\r\n\r\n\t\tfor (int i = 0; i < 20; i++) {\r\n\t\t\tdouble randX = rand.nextDouble(), randZ = rand.nextDouble(), randY = rand.nextGaussian();\r\n\t\t\trandX = randX * (getEntityBoundingBox().maxX - getEntityBoundingBox().minX) + getEntityBoundingBox().minX;\r\n\t\t\trandZ = randZ * (getEntityBoundingBox().maxZ - getEntityBoundingBox().minZ) + getEntityBoundingBox().minZ;\r\n\t\t\trandY += posY;\r\n\t\t\tdouble velX = this.rand.nextGaussian() * 0.01D;\r\n\t\t\tdouble velY = Math.abs(this.rand.nextGaussian() * 0.2D);\r\n\t\t\tdouble velZ = this.rand.nextGaussian() * 0.01D;\r\n\t\t\tworld.spawnParticle(EnumParticleTypes.CLOUD, randX, randY, randZ, velX, velY, velZ);\r\n\t\t}\r\n\t}", "public void hit() {\n if (explodeTime == 0) {\n if (isExplosive) {\n region = explodeAnimation.getKeyFrame(explodeTime, false);\n explodeTime += Gdx.graphics.getDeltaTime();\n width = region.getRegionWidth();\n height = region.getRegionHeight();\n position.sub(width / 2, height / 2);\n direction = new Vector2(1, 0);\n explosionSound.play();\n } else {\n impactSound.play();\n active = false;\n }\n }\n }", "public boolean processInteract(EntityPlayer entityplayer, EnumHand hand, @Nullable ItemStack stack)\n {\n ItemStack itemstack = entityplayer.inventory.getCurrentItem();\n\n if (!bumgave && angerLevel == 0)\n {\n if (itemstack != null && (itemstack.getItem() == Items.DIAMOND || itemstack.getItem() == Items.GOLD_INGOT || itemstack.getItem() == Items.IRON_INGOT))\n {\n if (itemstack.getItem() == Items.IRON_INGOT)\n {\n value = rand.nextInt(2) + 1;\n }\n else if (itemstack.getItem() == Items.GOLD_INGOT)\n {\n value = rand.nextInt(5) + 1;\n }\n else if (itemstack.getItem() == Items.DIAMOND)\n {\n value = rand.nextInt(10) + 1;\n }\n\n if (itemstack.stackSize - 1 == 0)\n {\n entityplayer.inventory.setInventorySlotContents(entityplayer.inventory.currentItem, null);\n }\n else\n {\n itemstack.stackSize--;\n }\n\n for (int i = 0; i < 4; i++)\n {\n for (int i1 = 0; i1 < 10; i1++)\n {\n double d1 = rand.nextGaussian() * 0.02D;\n double d3 = rand.nextGaussian() * 0.02D;\n double d6 = rand.nextGaussian() * 0.02D;\n worldObj.spawnParticle(EnumParticleTypes.EXPLOSION_NORMAL, (posX + (double)(rand.nextFloat() * width * 2.0F)) - (double)width, posY + (double)(rand.nextFloat() * height) + (double)i, (posZ + (double)(rand.nextFloat() * width * 2.0F)) - (double)width, d1, d3, d6);\n }\n }\n\n texture = new ResourceLocation(Reference.MODID, Reference.TEXTURE_PATH_ENTITES +\n \t\tReference.TEXTURE_BUM_DRESSED);\n angerLevel = 0;\n //findPlayerToAttack();\n\n if (rand.nextInt(5) == 0)\n {\n // worldObj.playSoundAtEntity(this, \"morecreeps:bumsucker\", 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n worldObj.playSound((EntityPlayer) null, getPosition(), MCSoundEvents.ENTITY_BUM_SUCKER, SoundCategory.NEUTRAL, 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n bumgave = true;\n }\n else\n {\n // worldObj.playSoundAtEntity(this, \"morecreeps:bumthankyou\", 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n worldObj.playSound((EntityPlayer) null, getPosition(), MCSoundEvents.ENTITY_BUM_THANKYOU, SoundCategory.NEUTRAL, 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n bumgave = true;\n\n for (int j = 0; j < 10; j++)\n {\n double d = rand.nextGaussian() * 0.02D;\n double d2 = rand.nextGaussian() * 0.02D;\n double d5 = rand.nextGaussian() * 0.02D;\n worldObj.spawnParticle(EnumParticleTypes.EXPLOSION_NORMAL, (posX + (double)(rand.nextFloat() * width * 2.0F)) - (double)width, posY + (double)(rand.nextFloat() * height), (posZ + (double)(rand.nextFloat() * width * 2.0F)) - (double)width, d, d2, d5);\n }\n\n for (int k = 0; k < value; k++)\n {\n \tif(!worldObj.isRemote) {\n\t dropItem(Item.getItemById(rand.nextInt(95)), 1);\n\t dropItem(Items.IRON_SHOVEL, 1);\n \t}\n }\n\n return true;\n }\n }\n else if (itemstack != null)\n {\n if (timetopee > 0)\n {\n // worldObj.playSoundAtEntity(this, \"morecreeps:bumdontwant\", 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n worldObj.playSound((EntityPlayer) null, getPosition(), MCSoundEvents.ENTITY_BUM_DONTWANT, SoundCategory.NEUTRAL, 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n \n }\n else if (itemstack != null && (itemstack.getItem() == Item.getItemFromBlock(Blocks.YELLOW_FLOWER) || itemstack.getItem() == Item.getItemFromBlock(Blocks.RED_FLOWER)))\n {\n \t/* TODO\n \tif(!((EntityPlayerMP)entityplayer).getStatFile().hasAchievementUnlocked(MoreCreepsAndWeirdos.achievebumflower))\n \t{\n \tworldObj.playSoundAtEntity(entityplayer, \"morecreeps:achievement\", 1.0F, 1.0F);\n \tentityplayer.addStat(MoreCreepsAndWeirdos.achievebumflower, 1);\n \tconfetti(entityplayer);\n \t} */\n\n // worldObj.playSoundAtEntity(this, \"morecreeps:bumthanks\", 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n worldObj.playSound((EntityPlayer) null, getPosition(), MCSoundEvents.ENTITY_BUM_THANKS, SoundCategory.NEUTRAL, 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n timetopee = rand.nextInt(1900) + 1500;\n\n if (itemstack.stackSize - 1 == 0)\n {\n entityplayer.inventory.setInventorySlotContents(entityplayer.inventory.currentItem, null);\n }\n else\n {\n itemstack.stackSize--;\n }\n }\n else if (itemstack != null && itemstack.getItem() == Items.BUCKET)\n {\n \t/* TODO\n if (!((EntityPlayerMP)entityplayer).getStatFile().hasAchievementUnlocked(MoreCreepsAndWeirdos.achievebumpot) && ((EntityPlayerMP)entityplayer).getStatFile().hasAchievementUnlocked(MoreCreepsAndWeirdos.achievebumflower))\n {\n worldObj.playSoundAtEntity(entityplayer, \"morecreeps:achievement\", 1.0F, 1.0F);\n entityplayer.addStat(MoreCreepsAndWeirdos.achievebumpot, 1);\n confetti(entityplayer);\n } \n entityplayer.addStat(MoreCreepsAndWeirdos.achievebumpot, 1);\n */\n // worldObj.playSoundAtEntity(this, \"morecreeps:bumthanks\", 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n worldObj.playSound((EntityPlayer) null, getPosition(), MCSoundEvents.ENTITY_BUM_THANKS, SoundCategory.NEUTRAL, 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n timetopee = rand.nextInt(1900) + 1500;\n\n if (itemstack.stackSize - 1 == 0)\n {\n entityplayer.inventory.setInventorySlotContents(entityplayer.inventory.currentItem, null);\n }\n else\n {\n itemstack.stackSize--;\n }\n }\n else if (itemstack != null && itemstack.getItem() == Items.LAVA_BUCKET)\n {\n \t/* \n if (!((EntityPlayerMP)entityplayer).getStatFile().hasAchievementUnlocked(MoreCreepsAndWeirdos.achievebumlava) && ((EntityPlayerMP)entityplayer).getStatFile().hasAchievementUnlocked(MoreCreepsAndWeirdos.achievebumpot))\n {\n worldObj.playSoundAtEntity(entityplayer, \"morecreeps:achievement\", 1.0F, 1.0F);\n entityplayer.addStat(MoreCreepsAndWeirdos.achievebumlava, 1);\n confetti(entityplayer);\n }\n\n entityplayer.addStat(MoreCreepsAndWeirdos.achievebumpot, 1);\n */\n // worldObj.playSoundAtEntity(this, \"morecreeps:bumthanks\", 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n worldObj.playSound((EntityPlayer) null, getPosition(), MCSoundEvents.ENTITY_BUM_THANKS, SoundCategory.NEUTRAL, 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n timetopee = rand.nextInt(1900) + 1500;\n\n if (itemstack.stackSize - 1 == 0)\n {\n entityplayer.inventory.setInventorySlotContents(entityplayer.inventory.currentItem, null);\n }\n else\n {\n itemstack.stackSize--;\n }\n\n int l = (int)posX;\n int j1 = (int)posY;\n int k1 = (int)posZ;\n\n if (rand.nextInt(4) == 0)\n {\n for (int l1 = 0; l1 < rand.nextInt(3) + 1; l1++)\n {\n Blocks.OBSIDIAN.dropBlockAsItem(worldObj, new BlockPos(l, j1, k1), worldObj.getBlockState(new BlockPos(l, j1, k1)), 0);\n }\n }\n\n for (int i2 = 0; i2 < 15; i2++)\n {\n double d4 = (float)l + worldObj.rand.nextFloat();\n double d7 = (float)j1 + worldObj.rand.nextFloat();\n double d8 = (float)k1 + worldObj.rand.nextFloat();\n double d9 = d4 - posX;\n double d10 = d7 - posY;\n double d11 = d8 - posZ;\n double d12 = MathHelper.sqrt_double(d9 * d9 + d10 * d10 + d11 * d11);\n d9 /= d12;\n d10 /= d12;\n d11 /= d12;\n double d13 = 0.5D / (d12 / 10D + 0.10000000000000001D);\n d13 *= worldObj.rand.nextFloat() * worldObj.rand.nextFloat() + 0.3F;\n d9 *= d13;\n d10 *= d13;\n d11 *= d13;\n worldObj.spawnParticle(EnumParticleTypes.SMOKE_NORMAL, (d4 + posX * 1.0D) / 2D, (d7 + posY * 1.0D) / 2D + 2D, (d8 + posZ * 1.0D) / 2D, d9, d10, d11);\n worldObj.spawnParticle(EnumParticleTypes.SMOKE_NORMAL, d4, d7, d8, d9, d10, d11);\n }\n\n if (rand.nextInt(4) == 0)\n {\n entityplayer.inventory.setInventorySlotContents(entityplayer.inventory.currentItem, new ItemStack(Items.BUCKET));\n }\n }\n else if (!bumgave)\n {\n // worldObj.playSoundAtEntity(this, \"morecreeps:bumpee\", 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n worldObj.playSound((EntityPlayer) null, getPosition(), MCSoundEvents.ENTITY_BUM_PEE, SoundCategory.NEUTRAL, 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n }\n }\n }\n else\n {\n // worldObj.playSoundAtEntity(this, \"morecreeps:bumleavemealone\", 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n worldObj.playSound((EntityPlayer) null, getPosition(), MCSoundEvents.ENTITY_BUM_LEAVEMEALONE, SoundCategory.NEUTRAL, 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n }\n\n return super.processInteract(entityplayer, hand, stack);\n }", "protected void onImpact(MovingObjectPosition position)\n {\n if (!this.worldObj.isRemote)\n {\n List<PotionEffect> list = ItemPotionCorePotion.instance.getEffects(potion);\n\n if (list != null && !list.isEmpty())\n {\n AxisAlignedBB axisalignedbb = this.getEntityBoundingBox().expand(4.0D, 2.0D, 4.0D);\n List<EntityLivingBase> list1 = this.worldObj.<EntityLivingBase>getEntitiesWithinAABB(EntityLivingBase.class, axisalignedbb);\n\n if (!list1.isEmpty())\n {\n for (EntityLivingBase entitylivingbase : list1)\n {\n double d0 = this.getDistanceSqToEntity(entitylivingbase);\n\n if (d0 < 16.0D)\n {\n double d1 = 1.0D - Math.sqrt(d0) / 4.0D;\n\n if (entitylivingbase == position.entityHit)\n {\n d1 = 1.0D;\n }\n\n for (PotionEffect potioneffect : list)\n {\n int i = potioneffect.getPotionID();\n\n if (Potion.potionTypes[i].isInstant())\n {\n Potion.potionTypes[i].affectEntity(this, this.getThrower(), entitylivingbase, potioneffect.getAmplifier(), d1);\n }\n else\n {\n int j = (int)(d1 * (double)potioneffect.getDuration() + 0.5D);\n\n if (j > 20)\n {\n entitylivingbase.addPotionEffect(new PotionEffect(i, j, potioneffect.getAmplifier()));\n }\n }\n }\n }\n }\n }\n }\n this.worldObj.playSoundAtEntity(this, \"game.potion.smash\", 1.0F, this.worldObj.rand.nextFloat() * 0.1F + 0.9F);\n this.setDead();\n }\n else {\n \tif(!smashed) {\n \t\tdoSmashEffects();\n \t\tsmashed = true;\n \t}\n }\n }", "@Override\n\tpublic void end() {\n\t\tspriteManager.discard();\n\t\teffectHandler.discard();\n\t\tcircle.discard();\n\t}", "public final ItemStack dispense(IBlockSource p_82482_1_, ItemStack p_82482_2_)\n {\n ItemStack var3 = this.dispenseStack(p_82482_1_, p_82482_2_);\n this.playDispenseSound(p_82482_1_);\n this.spawnDispenseParticles(p_82482_1_, BlockDispenser.func_149937_b(p_82482_1_.getBlockMetadata()));\n return var3;\n }", "public void reSurrect(){\n\t\tcanvas = Canvas.getInstance();\n\t\tfor(int i = 0; i < myEffects.size(); i++){\n\t\t\tmyEffects.get(i).reSurrect();\n\t\t}\n\t}", "public void onExplosionDestroy(World worldIn, BlockPos pos, Explosion explosionIn)\n {\n if (!worldIn.isRemote)\n {\n EntityTNTPrimed entitytntprimed = new EntityTNTPrimed(worldIn, (double)((float)pos.getX() + 0.5F), (double)pos.getY(), (double)((float)pos.getZ() + 0.5F), explosionIn.getExplosivePlacedBy());\n entitytntprimed.setFuse((short)(worldIn.rand.nextInt(entitytntprimed.getFuse() / 4) + entitytntprimed.getFuse() / 8));\n worldIn.addEntity0(entitytntprimed);\n }\n }", "protected void playParticle(){\n\t\teffectData.getPlayParticles().playParticles(effectData, effectData.getDisplayAt());\n\t}", "public void removeSnow(Point3d position){\r\n\t\tBlockPos pos = new BlockPos(position.x, position.y, position.z);\r\n\t\tIBlockState state = world.getBlockState(pos);\r\n\t\tif(state.getMaterial().equals(Material.SNOW) || state.getMaterial().equals(Material.CRAFTED_SNOW)){\r\n\t\t\tworld.setBlockToAir(pos);\r\n\t\t\tworld.playSound(pos.getX(), pos.getY(), pos.getZ(), SoundEvents.BLOCK_SNOW_BREAK, SoundCategory.BLOCKS, 1.0F, 1.0F, false);\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void onEntityHit(LivingEntity ent) {\n\t\tParUtils.createParticle(Particles.EXPLOSION, loc, 0, 0, 0, 1, 0);\r\n\t\tplaySound(Sound.ENTITY_DRAGON_FIREBALL_EXPLODE,loc,1,1);\r\n\t\tent.setVelocity(dir.multiply(speed));\r\n\t\tdamage(ent, 2, caster);\r\n\t}", "public void explode() {\n\t\tthis.explosion = false;\n\t}", "@Override\r\n\tpublic void onPlayerHit(Player p) {\n\t\tParUtils.createParticle(Particles.EXPLOSION, loc, 0, 0, 0, 1, 0);\r\n\t\tplaySound(Sound.ENTITY_DRAGON_FIREBALL_EXPLODE,loc,1,1);\r\n\t\t//p.setVelocity(dir.multiply(speed/2));\r\n\t\tdoKnockback(p, caster.getLocation(), 1 );\r\n\t\tdamage(p, 2, caster);\r\n\t}", "protected ItemStack dispenseStack(IBlockSource source, ItemStack stack)\n {\n ItemStack itemstack = ItemArmor.dispenseArmor(source, stack);\n return itemstack.isEmpty() ? super.dispenseStack(source, stack) : itemstack;\n }", "public void explode(){\n\t\timage = explosion;\n\t\tisExploded = true;\n\t}", "public static void dropStackInWorld (World world, BlockPos pos, ItemStack stack) {\n \n if (!world.isRemote) {\n \n final float offset = 0.7F;\n final double offX = world.rand.nextFloat() * offset + (1.0F - offset) * 0.5D;\n final double offY = world.rand.nextFloat() * offset + (1.0F - offset) * 0.5D;\n final double offZ = world.rand.nextFloat() * offset + (1.0F - offset) * 0.5D;\n final EntityItem entityitem = new EntityItem(world, pos.getX() + offX, pos.getY() + offY, pos.getZ() + offZ, stack);\n entityitem.setPickupDelay(10);\n world.spawnEntity(entityitem);\n }\n }", "@EventHandler\r\n \tpublic void onEntityExplode(EntityExplodeEvent event) \r\n \t{\n \t\tif (event.getEntityType() == EntityType.PRIMED_TNT) \r\n \t\t{\r\n \t\t\tLocation eventLoc = event.getLocation();\r\n \t\t\tServer server = plugin.getServer();\r\n \t\t\t\r\n \t\t\t// Red towers\r\n \t\t\tif (redBuildings.DestroyBuilding(BuildingType.Tower, eventLoc))\r\n \t\t\t{\r\n \t\t\t\ttowerCounts.put(\"red\", redBuildings.BuildingsCount(BuildingType.Tower));\r\n\t\t\t\tserver.broadcastMessage(ChatColor.YELLOW + \"A \"+ ChatColor.RED + \"RED\" + ChatColor.YELLOW + \" Tower Has Been Destroyed! (\" + towerCounts.get(\"red\") + \" remaining)\");\r\n\r\n\t\t\t\t// Check if all towers are destroyed\r\n \t\t\t\t\r\n \t\t\t\tif (towerCounts.get(\"red\") == 0) \r\n \t\t\t\t\tserver.broadcastMessage(ChatColor.YELLOW + \"All \"+ ChatColor.RED + \"RED\" + ChatColor.YELLOW + \" Towers Are Destroyed! Defend the NEXUS!\");\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\t// Blue Towers\r\n \t\t\tif (blueBuildings.DestroyBuilding(BuildingType.Tower, eventLoc))\r\n \t\t\t{\r\n \t\t\t\ttowerCounts.put(\"blue\", blueBuildings.BuildingsCount(BuildingType.Tower));\r\n\t\t\t\tserver.broadcastMessage(ChatColor.YELLOW + \"A \"+ ChatColor.BLUE + \"BLUE\" + ChatColor.YELLOW + \" Tower Has Been Destroyed! (\" + towerCounts.get(\"blue\") + \" remaining)\");\r\n \r\n \t\t\t\t// Check if all towers are destroyed\r\n \t\t\t\tif (towerCounts.get(\"blue\") == 0) \r\n \t\t\t\t\tserver.broadcastMessage(ChatColor.YELLOW + \"All \"+ ChatColor.BLUE + \"BLUE\" + ChatColor.YELLOW + \" Towers Are Destroyed! Defend the NEXUS!\");\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\t\r\n \t\t\t// Nexus\r\n \t\t\tif (redBuildings.DestroyBuilding(BuildingType.Nexus, eventLoc))\r\n \t\t\t{\r\n \t\t\t\tserver.broadcastMessage(ChatColor.RED + \"The RED NEXUS Has Been Destroyed!\" + ChatColor.BLUE + \" BLUE WINS!\");\r\n \t\t\t}\r\n \t\t\telse if (blueBuildings.DestroyBuilding(BuildingType.Nexus, eventLoc))\r\n \t\t\t{\r\n \t\t\t\tserver.broadcastMessage(ChatColor.BLUE + \"The BLUE NEXUS Has Been Destroyed!\" + ChatColor.RED + \" RED WINS!\");\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t}", "public void handleExplosion(EntityExplodeEvent event) {\n final int radius = ConfigManager.getInstance().getRadius();\n\n // cancel if radius is < 0\n if (radius < 0) {\n ObsidianDestroyer.LOG.warning(\"Explosion radius is less than zero. Current value: \" + radius);\n return;\n }\n\n final Entity detonator = event.getEntity();\n\n if (detonator == null) {\n // some other plugins create new explosions passing 'null' as\n // Entity, so we need this here to fix it\n return;\n }\n\n final Location detonatorLoc = detonator.getLocation();\n final String eventTypeRep = event.getEntity().toString();\n //ObsidianDestroyer.debug(\"EventTypeRep: \" + eventTypeRep);\n\n // List of blocks that will be removed from the blocklist\n List<Block> blocksIgnored = new ArrayList<Block>();\n\n // Hook into cannons... (somehow)\n // TODO: Hook into cannons again.\n if (eventTypeRep.equals(\"CraftSnowball\")) {\n List<Location> hitLocs = new ArrayList<Location>();\n Iterator<Block> iter = event.blockList().iterator();\n while (iter.hasNext()) {\n Block block = iter.next();\n hitLocs.add(block.getLocation());\n if (hitLocs.contains(block.getLocation())) {\n continue;\n }\n if (ChunkManager.getInstance().blowBlockUp(block.getLocation(), event.getEntity().toString())) {\n blocksIgnored.add(block);\n }\n }\n }\n\n // Liquid overrides\n if (ConfigManager.getInstance().getBypassAllFluidProtection()) {\n LiquidExplosion.Handle(event);\n } else if ((detonatorLoc.getBlock().isLiquid()) && (ConfigManager.getInstance().getFluidsProtectIndustructables())) {\n return;\n }\n\n // Check explosion blocks\n for (Block block : event.blockList()) {\n if (ChunkManager.getInstance().blowBlockUp(block.getLocation(), event.getEntity().toString())) {\n blocksIgnored.add(block);\n }\n }\n\n // For materials that are not normally destructible.\n for (int x = -radius; x <= radius; x++) {\n for (int y = -radius; y <= radius; y++) {\n for (int z = -radius; z <= radius; z++) {\n Location targetLoc = new Location(detonator.getWorld(), detonatorLoc.getX() + x, detonatorLoc.getY() + y, detonatorLoc.getZ() + z);\n if (detonatorLoc.distance(targetLoc) <= radius) {\n if (blocksIgnored.contains(targetLoc.getBlock())) {\n continue;\n }\n if (!MaterialManager.getInstance().contains(targetLoc.getBlock().getType().name()) || targetLoc.getBlock().getType() == Material.AIR) {\n continue;\n }\n if (ChunkManager.getInstance().blowBlockUp(targetLoc, event.getEntity().toString())) {\n blocksIgnored.add(targetLoc.getBlock());\n }\n }\n }\n }\n }\n\n // Remove managed blocks\n for (Block block : blocksIgnored) {\n event.blockList().remove(block);\n }\n }", "protected void spawnDeadParticles() {\r\n\t\tfloat timed = (float) deathTicks / DeathAction.deathLingeringTicks;\r\n\t\ttimed = Math.max(0, timed - 0.1f) / 0.9f;\r\n\t\tint particleCount = (int) (20 * Math.pow(timed, 4));\r\n\t\tfor (int i = 0; i < particleCount; i++) {\r\n\t\t\tdouble randX = rand.nextDouble(), randZ = rand.nextDouble(), randY = rand.nextDouble();\r\n\t\t\trandX = randX * (this.getEntityBoundingBox().maxX - getEntityBoundingBox().minX)\r\n\t\t\t\t\t+ getEntityBoundingBox().minX;\r\n\t\t\trandZ = randZ * (getEntityBoundingBox().maxZ - getEntityBoundingBox().minZ) + getEntityBoundingBox().minZ;\r\n\t\t\trandY = Math.pow(randY, 3) * (getEntityBoundingBox().maxY - getEntityBoundingBox().minY)\r\n\t\t\t\t\t+ getEntityBoundingBox().minY;\r\n\t\t\tdouble velX = this.rand.nextGaussian() * 0.01D;\r\n\t\t\tdouble velY = Math.abs(this.rand.nextGaussian() * 0.7D);\r\n\t\t\tdouble velZ = this.rand.nextGaussian() * 0.01D;\r\n\t\t\tworld.spawnParticle(EnumParticleTypes.SUSPENDED_DEPTH, randX, randY, randZ, velX, velY, velZ);\r\n\t\t}\r\n\t}", "public void onImpact() {\r\n die();\r\n }", "public void onUsingTick(ItemStack stack, EntityPlayer player, int count) {\n/* 132 */ player.motionX = 0.0D;\n/* 133 */ player.motionZ = 0.0D;\n/* */ \n/* 135 */ int searchRange = 20;\n/* 136 */ List<EntityLivingBase> entities = player.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, AxisAlignedBB.getBoundingBox(player.posX - searchRange, player.posY - searchRange, player.posZ - searchRange, player.posX + searchRange, player.posY + searchRange, player.posZ + searchRange));\n/* */ \n/* 138 */ if (entities.contains(player)) {\n/* 139 */ entities.remove(player);\n/* */ }\n/* 141 */ if (count < getMaxItemUseDuration(stack) - 20) {\n/* 142 */ for (int counter = entities.size() - 1; counter >= 0; counter--) {\n/* 143 */ if (player.getDistanceToEntity((Entity)entities.get(counter)) <= 3.0F && \n/* 144 */ WandManager.consumeVisFromInventory(player, (new AspectList()).add(Aspect.FIRE, (int)(150.0F * RelicsConfigHandler.soulTomeVisMult)).add(Aspect.ENTROPY, (int)(120.0F * RelicsConfigHandler.soulTomeVisMult)))) {\n/* */ \n/* 146 */ EntityLivingBase thrownEntity = entities.get(counter);\n/* */ \n/* 148 */ Vector3 entityVec = Vector3.fromEntityCenter((Entity)thrownEntity);\n/* 149 */ Vector3 playerVec = Vector3.fromEntityCenter((Entity)player);\n/* */ \n/* 151 */ Vector3 diff = entityVec.copy().sub(playerVec).multiply((1.0F / player.getDistanceToEntity((Entity)thrownEntity) * 3.0F));\n/* */ \n/* 153 */ float curve = (float)(1.0D / player.getDistance(entityVec.x, entityVec.y, entityVec.z) * 8.0D);\n/* */ \n/* 155 */ if (!player.worldObj.isRemote)\n/* 156 */ for (int counterZ = 0; counterZ <= 3; counterZ++) {\n/* 157 */ Main.proxy.lightning(player.worldObj, player.posX, player.posY + 1.0D, player.posZ, entityVec.x, entityVec.y, entityVec.z, 40, curve, (int)(player.getDistance(entityVec.x, entityVec.y, entityVec.z) * 6.0D), 0, 0.075F);\n/* */ } \n/* 159 */ player.worldObj.playSoundAtEntity((Entity)player, \"thaumcraft:zap\", 1.0F, 0.8F);\n/* */ \n/* 161 */ thrownEntity.attackEntityFrom((DamageSource)new DamageRegistryHandler.DamageSourceTLightning((Entity)player), (float)(20.0D + 80.0D * Math.random()));\n/* */ \n/* 163 */ thrownEntity.motionX = diff.x;\n/* 164 */ thrownEntity.motionY = diff.y + 1.0D;\n/* 165 */ thrownEntity.motionZ = diff.z;\n/* */ } \n/* */ } \n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 195 */ this; this; this; this; if ((((count < getMaxItemUseDuration(stack) - 20) ? 1 : 0) & ((count % 4 == 0) ? 1 : 0)) != 0 && WandManager.consumeVisFromInventory(player, (new AspectList()).add(Aspect.EARTH, TerraCost).add(Aspect.AIR, AerCost).add(Aspect.FIRE, IgnisCost).add(Aspect.ENTROPY, PerditioCost))) {\n/* */ \n/* 197 */ EntityLivingBase randomEntity = null;\n/* */ \n/* 199 */ if (entities.size() > 0) {\n/* 200 */ randomEntity = entities.get((int)(entities.size() * Math.random()));\n/* */ }\n/* 202 */ if ((((randomEntity != null) ? 1 : 0) & (!player.worldObj.isRemote ? 1 : 0)) != 0) {\n/* */ \n/* 204 */ float soulDamage = randomEntity.getMaxHealth() / RelicsConfigHandler.soulTomeDivisor;\n/* */ \n/* 206 */ if (soulDamage > 20.0F) {\n/* 207 */ soulDamage = 20.0F;\n/* 208 */ } else if (soulDamage < 1.0F) {\n/* 209 */ soulDamage = 1.0F;\n/* */ } \n/* 211 */ randomEntity.attackEntityFrom((DamageSource)new DamageRegistryHandler.DamageSourceSoulDrain((Entity)player), soulDamage);\n/* 212 */ spawnSoul(player.worldObj, randomEntity, (EntityLivingBase)player);\n/* */ } \n/* */ } \n/* */ }", "@EventHandler\n\tpublic void onDispenserThrow(BlockDispenseEvent e){\n\t\t\n\t\tItemStack item = e.getItem();\n\t\tfromDisp = true; //prevents launched eggs from glowing\n\t\t\n\t\tif(item.hasItemMeta()){\n\t\t\tif(item.getItemMeta().hasLore()){\n\t\t\t\tif(item.getItemMeta().getLore().contains(ChatColor.MAGIC + \"lootEgg\")){\n\t\t\t\t\te.setCancelled(true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public static void displayFirework(Player p, double x, double y, double z, ItemStack firework){\n\n //create and spawn a firework rocket from our itemstack\n EntityFireworks fw = new EntityFireworks(((CraftWorld) p.getWorld()).getHandle());\n fw.setLocation(x, y, z, 0f, 0f);\n\n PacketPlayOutSpawnEntity alive = new PacketPlayOutSpawnEntity(fw, 76);\n ((CraftPlayer) p).getHandle().playerConnection.sendPacket(alive);\n\n //i looked at what mincreaft does in vanilla whe you launch a firework on a server. I just copied what they do here by editing a datawatcher. dont ask me how or why, but it works.\n DataWatcher dataWatcher = fw.getDataWatcher();\n for(DataWatcher.WatchableObject obj: dataWatcher.c()){\n if(obj.c()==5 && obj.a()==8 && obj.b()==null){\n obj.a(firework);\n }\n }\n\n //give the entity some meta\n PacketPlayOutEntityMetadata itemMeta = new PacketPlayOutEntityMetadata(fw.getId(), fw.getDataWatcher(), true);\n ((CraftPlayer) p).getHandle().playerConnection.sendPacket(itemMeta);\n\n //also play a sound\n PacketPlayOutNamedSoundEffect sound = new PacketPlayOutNamedSoundEffect(\"fireworks.launch\", x, y, z, 3f, 1f);\n ((CraftPlayer) p).getHandle().playerConnection.sendPacket(sound);\n\n\n //wait 30 ticks before we detonate it.\n //IMPORTANT: wait too long and the players client will freeze!\n new BukkitRunnable() {\n @Override\n public void run() {\n //detonate the firework, and destroy the entity.\n PacketPlayOutEntityStatus status = new PacketPlayOutEntityStatus(fw, (byte) 17);\n ((CraftPlayer) p).getHandle().playerConnection.sendPacket(status);\n PacketPlayOutEntityDestroy destroy = new PacketPlayOutEntityDestroy(fw.getId());\n ((CraftPlayer) p).getHandle().playerConnection.sendPacket(destroy);\n }\n }.runTaskLater(Juggernaut.pluginInstance, 30L);\n }", "abstract public void triggerExplosion();", "public Missile(SimpleSlickGame _game, int x, int y, int destX, int destY, Entity owner) \r\n\t{\r\n\t\t//the super constructor is called to give the x and y coordinates and call the game to use its variable and \r\n\t\tsuper(_game, x,y);\r\n\t\tsetHitboxRadius(20); \r\n\t\tthis.startX = x;\r\n\t\tthis.startY = y;\r\n\t\tthis.owner = owner;\r\n\t\tthis.destX = destX;\r\n\t\tthis.destY = destY;\r\n\t\tsetLocation(startX, startY);\r\n\t\trecalculateVector(destX, destY);\r\n\t\t\r\n\t\t//Initializes and adds a particle system to the entity\r\n\t\ttry \r\n\t\t{\r\n\n\t\t\tImage particleImg = new Image (\"Particles/particle.png\");\r\n\n\t\t\tparticles = new ParticleSystem(particleImg,150);\r\n\t\t\t\r\n\n\t\t//\tFile xmlFile = new File (\"Particles/fire effect.xml\");\r\n\t\t//\temitter = ParticleIO.loadEmitter(xmlFile);\r\n\t\t\temitter = ParticleIO.loadEmitter(\"Particles/fire effect.xml\");\r\n\n\t\t\temitter.setPosition(this.getPositionX(), this.getPositionY(),false);\r\n\t\t\t\r\n\t\t\tparticles.addEmitter(emitter);\r\n\t\t\tparticles.setBlendingMode(ParticleSystem.BLEND_ADDITIVE);\r\n\t\t\t\r\n\t\t} catch (SlickException e1) {\r\n\t\t\tSystem.out.println(\"cannot find xml file / particle image\");\r\n\t\t\te1.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"Cannot assign xml file to emitter. File might be missing.\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t//Adds sound files to the entity\r\n\t\ttry\r\n\t\t{\r\n\t\t\tSound sound = new Sound(\"Sounds/lazer.wav\");\r\n\t\t\tfloat pitch = ((float)game.r.nextInt(200) + 800)/1000;\r\n\t\t\tsound.play(pitch,1f);\r\n\t\t} catch (SlickException e){\r\n\t\t\tSystem.out.println(\"Could not find sound file\");\r\n\t\t}\r\n\t\t\r\n\t\t//Adds sprites to the entity\r\n\t\ttry\r\n\t\t{\r\n\t\t\tmissileImg = new Image(\"Graphics/Fireball.png\");\r\n\t\t\tthis.setSprite(missileImg);\r\n\t\t} catch (SlickException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.out.println(\"ERROR: Could not find sprite\");\r\n\t\t}\r\n\t}", "public void tick()\n{\n y+=speed;\n\n for(int i=0; i<game.ea.size(); i++)\n {\n EntityA tempEnt= game.ea.get(i);\n if(Physics.Coliision(this,tempEnt))\n {\n c.removeEntity(tempEnt); //zeby po trafieniu znikal pocisk\n c.removeEntity(this);\n game.setEnemy_killed(game.getEnemy_killed()+1);\n\n }\n }\n\n/*\n* If Enemy is out of bounds player get - points\n* and loses some stamina.\n*\n* Enemies are removed from list after disapears\n */\n\n if(y>(App.getHEIGHT()-20)*2)\n {\n App.addHealth(-10);\n App.addPOINTS(-3);\n c.removeEntity(this);\n }\n\n anim.runAnimation();\n\n /*\n * If App is not in game state it doesn't\n * need to have any enemies\n */\n\n if(App.State != App.STATE.GAME)\n {\n delEnemies();\n\n }\n}", "public void act() \r\n {\r\n if(timeInterval > 0) {\r\n timeInterval--;\r\n }else{\r\n if(currentSprite < 30) {\r\n currentSprite++;\r\n GreenfootImage img = new GreenfootImage(\"explosion_\" + currentSprite + \".png\");\r\n img.scale(img.getWidth() / 2 + 25, img.getHeight() / 2 + 25);\r\n setImage(img);\r\n timeInterval = timeIntervalDef;\r\n }else{\r\n getWorld().removeObject(this);\r\n }\r\n }\r\n }", "@Override\n public void explode(ArrayList<ScreenObject> level) {\n level.add(new Explosion(position.x, position.y, 100, 100,\n Explosion.expSubtype.YELLOW));\n }", "private void createFishExplosions() {\n \n for (Map.Entry<GlowFish, GlowFish> e : fishCollisions.entrySet()) {\n \n //combine the colours\n Vector4 combine = ColourUtil.combine(\n e.getKey().getColour(), e.getValue().getColour());\n entities.add(new Explosion(e.getKey().getPos().clone(), combine));\n e.getKey().remove();\n e.getValue().remove();\n \n //play sound\n FxManager.play3d(sound, e.getKey().getPos(), 1.0f);\n }\n }", "private void makeSnack() {\n\t\teating = true;\n\t\ttama.setLayoutX(200);\n\t\t\n\t\tsnack = new Sprite(3, 3, 22, 25, new Image(\"file:./res/images/snack.png\"), 1, 1000);\n\t\tsnack.setLayoutX(150);\n\t\tsnack.setLayoutY(150);\n\t\tsnack.setScaleX(0.3);\n\t\tsnack.setScaleY(0.3);\n\t\tgrid.getChildren().addAll(snack);\n\t\tPauseTransition pause = new PauseTransition(Duration.millis(1500));\n\t\tpause.setOnFinished(e -> {\n\t\t\tgrid.getChildren().remove(snack);\n\t\t\ttama.setLayoutX(190);\n\t\t\teating = false;\n\t\t\tmodel.getController().eatSnack();\n//\t\t\tif(!model.isHealthy()){\n//\t\t\t\tsetSickImg();\n//\t\t\t}\n\t\t});\n\t\tpause.play();\n\t\t\n\t}", "private void fadeOutandDetachSprites() {\n\t\t\t\t\tdetachChild(greenTick);\t\n\t\t\t\t\tdetachChild(redx);\n\t\t\t\t\tdetachChild(sprite1);\n\t\t\t\t\tdetachChild(sprite2);\n\t\t\t\t\tdetachChild(sprite3);\n\t\t\t\t\tdetachChild(sprite4);\n\n\t\t\t\t}", "private void attackPlayer()\n\t{\n\t\tif(shootTimer.done())\n\t\t{\n\t\t\tProjectile spiderWeb = new SpiderWeb(x, y);\n\t\t\tGame.objectWaitingRoom.add(spiderWeb);\n\t\t\tspiderWeb.shoot();\n\t\t\tshootTimer.setTime(200);\n\t\t}\n\t}", "public void onUpdate() {\n super.onUpdate();\n\n if (this.world.isRemote) {\n double d0 = this.posX + (this.rand.nextDouble() * 2.0D - 1.0D) * (double) this.width * 0.5D;\n double d1 = this.posY + 0.05D + this.rand.nextDouble() * 1.0D;\n double d2 = this.posZ + (this.rand.nextDouble() * 2.0D - 1.0D) * (double) this.width * 0.5D;\n //double d3 = (this.rand.nextDouble() * 2.0D - 1.0D) * 0.3D;\n double d4 = this.rand.nextDouble() * 0.1D;\n //double d5 = (this.rand.nextDouble() * 2.0D - 1.0D) * 0.3D;\n this.world.spawnParticle(ticksExisted % 2 == 0 ? EnumParticleTypes.FLAME : EnumParticleTypes.SMOKE_NORMAL, d0, d1, d2, 0, d4, 0);\n } else if (--this.lifeTicks < 0) {\n this.setDead();\n }\n }", "public void explosionDetonate(Level level, Explosion explosion, List<Entity> affectedEntities) {\n\n\t\tif (level.isClientSide() || explosion.getToBlow().isEmpty()) {\n\t\t\treturn;\n\t\t}\n\n\t\tList<BlockPos> list = new ArrayList<>(explosion.getToBlow());\n\t\texplosion.clearToBlow();\n\t\tMap<ChunkDimPos, Boolean> map = new HashMap<>();\n\n\t\tfor (BlockPos pos : list) {\n\t\t\tif (map.computeIfAbsent(new ChunkDimPos(level, pos), cpos ->\n\t\t\t{\n\t\t\t\tClaimedChunk chunk = FTBChunksAPI.getManager().getChunk(cpos);\n\t\t\t\treturn chunk == null || chunk.allowExplosions();\n\t\t\t})) {\n\t\t\t\texplosion.getToBlow().add(pos);\n\t\t\t}\n\t\t}\n\t}", "public void executeEffect() {\n\t\texecuteEffect(myCard);\n\t}", "public void heal2()\r\n {\r\n this.health = 900;\r\n Story.healText2();\r\n }", "public void decLives()\n\t{\n\t\tlives--;\n\t\tshipSpawned = false;\t\n\t\tif(lives <= 0)\n\t\t{\n\t\t\tSystem.out.println(\"Game over\");\n\t\t\tif(isSound() && !isPaused())\n\t\t\t\tdeath.play();\n\t\t\tsetGameOver(true);\n\t\t\tnotifyObservers();\n\t\t\treturn;\n\t\t}\n\t\tthis.addPlayerShip();\n\t}", "public void fireNPS()\n\t{\n\t\t//Only fire if a NonPlayerShip is spawned\n\t\tif(gameObj[2].size() > 0)\n\t\t{\n\t\t\t/*Create a new Missile\n\t\t\t * and set its location equal \n\t\t\t * to a randomly chosen NonPlayerShip\n\t\t\t * and speed greater than the NPS\n\t\t\t */\n\t\t\t\n\t\t\tint r = new Random().nextInt(gameObj[2].size());\n\t\t\tif(((NonPlayerShip)gameObj[2].get(r)).getMissileCount() > 0)\n\t\t\t{\n\t\t\t\tMissile mis = new Missile(true);\n\t\t\t\tmis.setDirection(((NonPlayerShip)gameObj[2].get(r)).getDirection());\n\t\t\t\tmis.setLocation(gameObj[2].get(r).getLocation());\n\t\t\t\tmis.setSpeed(((NonPlayerShip)gameObj[2].get(r)).getSpeed() + 4);\n\t\t\t\t//add Missile to the game world\n\t\t\t\tgameObj[3].add(mis);\n\t\t\t\tSystem.out.println(\"NPS has fired a misile\");\n\t\t\t\t((NonPlayerShip)gameObj[2].get(r)).launch();\n\t\t\t}else\n\t\t\t\tSystem.out.println(\"the chosen NPS is out of missiles\");\n\t\t}else \n\t\t\tSystem.out.println(\"A NPS is not currently spawned\");\t\t\n\t}", "public void removeDefense(){\n\t\tcurrentConstruct = null;\n\t\thasDefenseObject = false;\n\t}", "@Override\n void planted() {\n super.planted();\n TimerTask Task = new TimerTask() {\n @Override\n public void run() {\n\n for (Drawable drawables : gameState.getDrawables()) {\n if (drawables instanceof Zombie) {\n int distance = (int) Math.sqrt(Math.pow((drawables.x - x), 2) + Math.pow((drawables.y - y), 2));\n if (distance <= explosionradious) {\n ((Zombie) drawables).hurt(Integer.MAX_VALUE);\n }\n }\n }\n\n life = 0;\n }\n\n };\n\n Timer timer = new Timer();\n timer.schedule(Task, 2000);\n }", "public void fireNPS()\n\t{\n\t\t//Only fire if a NonPlayerShip is spawned\n\t\tIIterator iter = gameObj.getIterator();\n\t\twhile(iter.hasNext())\n\t\t{\n\t\t\tGameObject current = (GameObject)iter.getNext();\n\t\t\tif(current instanceof NonPlayerShip && ((NonPlayerShip)current).getMissileCount() > 0)\n\t\t\t{\n\n\t\t\t\t\tMissile mis = new Missile(true,getHeight(), getWidth());\n\t\t\t\t\tdouble x = ((NonPlayerShip)current).getLocation().getX();\n\t\t\t\t\tdouble y = ((NonPlayerShip)current).getLocation().getY() + ((NonPlayerShip)current).getSize()/2;\n\t\t\t\t\tmis.setLocation(new Point2D(x, y));\n\t\t\t\t\tmis.setDirection(((NonPlayerShip)current).getLauncher().getDirection());\n\t\t\t\t\tmis.setSpeed(((NonPlayerShip)current).getSpeed() + 20);\n\t\t\t\t\tgameObj.add(mis);\n\t\t\t\t\t((NonPlayerShip)current).launch();\n\t\t\t\t\tSystem.out.println(\"enemy missile added\");\n\t\t\t\t\tnotifyObservers();\n\t\t\t\t\treturn;\n\t\t\t}\n\t\t}\t\t\n\t}", "void nuke() {\n\t\tfor (int a = 0; a < height; a++) {\n\t\t\tfor (int b = 0; b < width; b++) {\n\t\t\t\tif (FWorld[a][b] != null) {\n\t\t\t\t\tEZ.removeEZElement(FWorld[a][b]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tEZ.removeEZElement(background);\n\t\tEZ.removeEZElement(explosion);\n\t\tturtle.kill();\n\t}", "@Override\r\n\tpublic void display() {\n\t\tif (silenced.contains(caster))\r\n\t\t\tdead = true;\r\n\t\tif (lastloc == null)\r\n\t\t\tlastloc = loc;\r\n\t\tdir = loc.toVector().subtract(lastloc.toVector());\r\n\t\tif (speed > 2)\r\n\t\t\tParUtils.dropItemEffectVector(loc.clone().add(0,1,0), Material.CACTUS, 1,1, 1,dir);\r\n\t\t\t\r\n\t\t\t//ParUtils.createFlyingParticle(Particles.CRIT, loc.clone().add(0,2.5,0), 0, 0, 0, 1, 5, dir.normalize());\r\n\t\t//ParUtils.createRedstoneParticle(loc.clone().add(0,2.5,0), 0.5,0.5, 0.5, 1, Color.GREEN, 1.5F);\r\n\t}", "public void onUpdate()\n {\n this.prevPosX = this.posX;\n this.prevPosY = this.posY;\n this.prevPosZ = this.posZ;\n this.motionY -= 0.03999999910593033D;\n this.moveEntity(this.motionX, this.motionY, this.motionZ);\n this.motionX *= 0.9800000190734863D;\n this.motionY *= 0.9800000190734863D;\n this.motionZ *= 0.9800000190734863D;\n\n if (this.onGround)\n {\n this.motionX *= 0.699999988079071D;\n this.motionZ *= 0.699999988079071D;\n this.motionY *= -0.5D;\n }\n\n if (this.fuse-- <= 0)\n {\n if (!this.worldObj.isRemote)\n {\n this.setDead();\n this.explode();\n }\n } else\n {\n this.worldObj.spawnParticle(\"smoke\", this.posX, this.posY + 0.5D, this.posZ, 0.0D, 0.0D, 0.0D);\n }\n }", "public void kill()\r\n {\n if(isTouching(TopDownPlayer.class))\r\n {\r\n health(1);\r\n\r\n getWorld().removeObject(player);\r\n //getWorld().addObject (new Test(), 20, 20);\r\n\r\n }\r\n // if(healthCount >= 1)\r\n // {\r\n // World world;\r\n // world = getWorld();\r\n // getWorld().removeObject(player);\r\n // \r\n // getWorld().addObject (new Test(), 20, 20);\r\n // }\r\n }", "@Override\n public void collide(CollisionEvent e) {\n \n if (e.getOtherBody() instanceof OptimusPrime && e.getReportingBody() instanceof Health) {\n prime.incrementHealthCount();\n healthSound.play();\n e.getReportingBody().destroy();\n \n \n }\n \n else if (e.getOtherBody() instanceof OptimusPrime && e.getReportingBody() instanceof Emerald) {\n prime.incrementEmeraldCount();\n emeraldSound.play();\n e.getReportingBody().destroy();\n }\n \n else if (e.getOtherBody() instanceof OptimusPrime && e.getReportingBody() instanceof DeadZone) {\n e.getReportingBody().destroy();\n System.exit(0);\n } \n \n else if (e.getReportingBody() instanceof Boss && e.getOtherBody() instanceof FireBall){\n e.getOtherBody().destroy();\n System.out.println(\"boss hit\");\n }\n \n else if (e.getReportingBody() instanceof StaticBody && e.getOtherBody() instanceof FireBall){\n e.getOtherBody().destroy();\n System.out.println(\"boss hit\");\n } \n \n }", "public void Hit()\n {\n this.numLives--;\n //Oscillate visible and not if the number of lives is greater than zero\n if(this.numLives > 0)\n {\n this.damaged = true;\n this.Blink(1);\n\n }\n }", "protected void fallingSnow(){\r\n\t\tsnowPileImage = new Image(GameData.getRegion(\"snow\"));\r\n\t\tsnowPileImage.setWidth(Gdx.graphics.getWidth());\r\n\t\t\r\n\t\tdouble snowRatio = GameData.getRegion(\"snow\").getRegionWidth()/GameData.getRegion(\"snow\").getRegionHeight();\r\n\t\tsnowPileImage.setHeight((int)(snowPileImage.getWidth()/snowRatio));\r\n\t\tsnowPileImage.setName(SNOW_PILE_Z);\r\n\t\t\r\n\t\tfor(int i=0; i<SNOW_FLAKES_NUMBER; i++){\r\n\t\t\tstage.addActor(new Snowflake(GameData.getRegion(\"snowflake\"), 1f, true, stage));\r\n\t\t\tstage.addActor(new Snowflake(GameData.getRegion(\"snowflake\"), 0.5f, false, stage));\r\n\t\t}\r\n\t\tstage.addActor(snowPileImage);\r\n\r\n\t}", "public void defend(){\n\tdefense += (int)(Math.random() * defense * .45 + 5);\n\tstrength -= 3;\n\tif (defense > 70) {\n\t defense = 70;\n\t}\t \n\tcounterDef += 1;\n\tif (counterDef == 2){\n\t counterDef = 0;\n\t recover();\n\t}\n\tSystem.out.println(\"You brace yourself with your bow.\");\n }", "public static void pop_sound() {\n\t\tm_player_pop.start();\n\t\tm_player_pop.setMediaTime(new Time(0));\n\t}", "public void fireScourge() {\n\t\t// Has player waited cooldown before trying to fire again?\t\tCHANGED to 10000\n\t\tif (System.currentTimeMillis() - this.lastFired > Config.WEAPON_COOLDOWN_TIME * 10000) {\n\t\t\tSystem.out.println(player.getDisplayName() + \" is attempting to launch napalm\");\n\t\t\t// Can this airship drop scourge?\n\t\t\tif (this.properties.FIRES_SCOURGE) {\n\t\t\t\tBlock[] cannons = getCannons();\n\t\t\t\tint numfiredcannons = 0;\n\t\t\t\tfor (int i = 0; i < cannons.length; i++) {\n\t\t\t\t\tif (cannons[i] != null && cannons[i].getRelative(0, -1, 0).getType().equals(Material.AIR) && cannonHasTnt(cannons[i], Config.NUM_TNT_TO_DROP_NAPALM)) {\n\t\t\t\t\t\tboolean missingMaterial = false;\n\t\t\t\t\t\tfor (int id : Config.MATERIALS_NEEDED_FOR_SCOURGE) {\n\t\t\t\t\t\t\tif (!cannonHasItem(cannons[i], id, 1))\n\t\t\t\t\t\t\t\tmissingMaterial = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (!missingMaterial && numfiredcannons < this.properties.MAX_NUMBER_OF_CANNONS) {\n\t\t\t\t\t\t\tnumfiredcannons++;\n\t\t\t\t\t\t\tlastFired = System.currentTimeMillis();\n\t\t\t\t\t\t\twithdrawTnt(cannons[i], Config.NUM_TNT_TO_DROP_SCOURGE);\n\t\t\t\t\t\t\tfor (int id : Config.MATERIALS_NEEDED_FOR_SCOURGE) {\n\t\t\t\t\t\t\t\twithdrawItem(cannons[i], id, 1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Fire some scourge TODO: maybe add sound effects for scourge dropping? :P\n\t\t\t\t\t\t\tnew Scourge(cannons[i]);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// More cannons on ship than allowed. Not all fired - can break out of loop now.\n\t\t\t\t\t\t\t//player.sendMessage(ChatColor.AQUA + \"Some purifiers did not fire. Max cannon limit is \" + ChatColor.GOLD + this.properties.MAX_NUMBER_OF_CANNONS);\n\t\t\t\t\t\t\tplayer.sendMessage(ChatColor.AQUA + \"Some purifiers did not fire. item check = \" + ChatColor.GOLD + missingMaterial);\n\t\t\t\t\t\t\tplayer.sendMessage(ChatColor.AQUA + \"numFiredCannons = \" + ChatColor.GOLD + numfiredcannons);\n\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}\n\t\t\t} else\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + this.properties.SHIP_TYPE + \" CANNOT DROP NAPALM\");\n\t\t} else\n\t\t\tplayer.sendMessage(ChatColor.GOLD + \"COOLING DOWN FOR \" + ChatColor.AQUA + (int)(Math.round(6 - (System.currentTimeMillis() - this.lastFired) / 1000)) + ChatColor.GOLD + \" MORE SECONDS\");\n\t}", "private void draw() {\n ctx.clearRect(0, 0, width, height);\n\n for (ImageParticle p : particles) {\n p.opacity = p.remainingLife / p.life * 0.5;\n\n // Draw particle from image\n ctx.save();\n ctx.translate(p.x, p.y);\n ctx.scale(p.size, p.size);\n //ctx.translate(p.image.getWidth() * (-0.5), p.image.getHeight() * (-0.5));\n ctx.translate(-HALF_WIDTH, -HALF_HEIGHT);\n ctx.setGlobalAlpha(p.opacity);\n ctx.drawImage(p.image, 0, 0);\n ctx.restore();\n\n //p.remainingLife--;\n p.remainingLife *= 0.98;\n //p.size *= 0.99;\n p.x += p.vX;\n p.y += p.vY;\n\n //regenerate particles\n if (p.remainingLife < 0 || p.size < 0 || p.opacity < 0.01) {\n if (running) {\n p.reInit();\n } else {\n particles.remove(p);\n }\n }\n }\n }", "private void shoot() {\n\t\tif (playerList.size() > 0) {\n\t\t\tif (!someoneLose) {\n\t\t\t\tPlayer target = null;\n\t\t\t\tint remainingShips = SHIP_COUNT + 1;\n\t\t\t\tfor (Player player : playerList) {\n\t\t\t\t\tif (player.getRemainingShips() < remainingShips) {\n\t\t\t\t\t\ttarget = player;\n\t\t\t\t\t\tremainingShips = player.getRemainingShips();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSector targetSector = target.findFreeSector();\n\t\t\t\tlastTarget = targetSector.getMiddle();\n\t\t\t\tShootingThread st = new ShootingThread(chordImpl, targetSector.getMiddle());\n\t\t\t\tst.start();\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void hero_dies() {\n SoundPlayer.playHeroDies();\n this.stop();\n\n get_hero().setPosition(PLAYER_START_POSITION);\n start();\n\n // setting every flower to its original position\n //reason: hero can knock the flower out of the pipe when it hits it\n for (int i = 0; i < get_pipes().size(); i++) {\n if (get_pipes().get(i).with_flower()) {\n get_pipes().get(i).get_flower().setLinearVelocity(new Vec2(0f, 0f));\n get_pipes().get(i).get_flower().setPosition(get_pipes().get(i).get_flower().get_original_position());\n }\n }\n \n for (int i = 0; i < get_fire_rods().size(); i++) {\n get_fire_rods().get(i).reset_position();\n }\n get_hero().addLife(-1);\n if (get_hero().get_life() < 1){\n getGameController().gameOver();\n //get_sound_player().stop_level_two_music();\n }\n }", "public ItemStack applyPassiveEffect(ItemStack stack);", "public static void sendExplosion(float x, float y, float z) {\n\t\tPacketPlayOutWorldParticles packet = new PacketPlayOutWorldParticles(EnumParticle.EXPLOSION_LARGE, true, x, y, z, 0, 0, 0, 0, 1);\n\t\tfor(Player online : Bukkit.getOnlinePlayers()) {\n ((CraftPlayer)online).getHandle().playerConnection.sendPacket(packet);\n\t\t}\n\t}", "private void explode()\r\n {\n isExploded = true;\r\n Color test = Color.hsb(Utils.getRandom(0, 360), 1, 1);\r\n for (int i = 0; i < 100; i++)\r\n {\r\n Color var = test;\r\n for (int j = 0; j < Utils.getRandomInt(5); j++)\r\n {\r\n var = var.brighter();\r\n }\r\n Firework mark1 = new Firework(this.x, this.y, var);\r\n Main.child.add(mark1.getNode());\r\n }\r\n reset();\r\n }", "void dropHandler() {\n if (tickSpeed < 0) {\n if((int)random(1,6) == 1){ //every 6 medkits the handler drops a minigun\n Sprite mg = new Sprite(minigun);\n mg.moveToPoint(random(0,2048), random(0, 2048)); //moves drop to random point\n minigunDrop.add(mg);\n tickSpeed = (int)random(100,500);\n }else if((int)random(1,4) == 1){ //every 4 medkits the handler drops a coilgun\n Sprite cg = new Sprite(coilgun);\n cg.moveToPoint(random(0,2048), random(0,2048)); //moves drop to random point\n coilgunDrop.add(cg);\n tickSpeed = (int)random(100,500); //changes \n }\n else {\n \n \n Medkit hp = new Medkit();\n hp.med.moveToPoint(random(0, 2048), random(0, 2048));\n\n health.add(hp);\n\n tickSpeed = (int)random(100,500);\n }\n }\n tickSpeed--;\n for (Medkit hp: health) {\n hp.med.display();\n hp.timer--;\n\n }\n for (Sprite mg: minigunDrop){\n mg.display();\n }\n for (Sprite cg: coilgunDrop){\n cg.display();\n }\n // e.forward(5);\n}", "private void defend() {\n\t\t\n\t\tnavigator.setPlaying(true);\n\t\ttravelTo(Location.DefenseBase);\n\t\tnavigator.turnTo(0);\n\t\t//unfold\n\t\tDefense def = Main.def;\n\t\tdef.mode(2);\n\t}", "public void act() \n {\n advance(); // move forward in the correct direction\n\n if(canSee(Ground.class) || atWorldEdge()) {\n getWorld().removeObject(this);\n return; \n }\n\n bImpact();\n takeExplosionTimer();\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\tdetachChild(anim);\n\n\t\t\t\t\tanim = null;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcache.get(position).getSound().play();\n\t\t\t\t\t\t// disable clicks on these first\n\t\t\t\t\t\tdetachChild(greenTick);\t\n\t\t\t\t\t\tdetachChild(redx);\n\t\t\t\t\t\tif(sprite1 != null)\n\t\t\t\t\t\t\tregisterTouchArea(sprite1);\n\t\t\t\t\t\tif(sprite2 != null)\n\t\t\t\t\t\t\tregisterTouchArea(sprite2);\n\t\t\t\t\t\tif(sprite3 != null)\n\t\t\t\t\t\t\tregisterTouchArea(sprite3);\n\t\t\t\t\t\tif(sprite4 != null)\n\t\t\t\t\t\t\tregisterTouchArea(sprite4);\n\t\t\t\t\t} catch (IndexOutOfBoundsException e) {\n\t\t\t\t\t\tshowToast(\"Line 277\");\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "public void tick() {\n if (ShulkerEntity.this.world.getDifficulty() != Difficulty.PEACEFUL) {\n --this.attackTime;\n LivingEntity livingentity = ShulkerEntity.this.getAttackTarget();\n ShulkerEntity.this.getLookController().setLookPositionWithEntity(livingentity, 180.0F, 180.0F);\n double d0 = ShulkerEntity.this.getDistanceSq(livingentity);\n if (d0 < 400.0D) {\n if (this.attackTime <= 0) {\n this.attackTime = 20 + ShulkerEntity.this.rand.nextInt(10) * 20 / 2;\n ShulkerEntity.this.world.addEntity(new ShulkerBulletEntity(ShulkerEntity.this.world, ShulkerEntity.this, livingentity, ShulkerEntity.this.getAttachmentFacing().getAxis()));\n ShulkerEntity.this.playSound(SoundEvents.ENTITY_SHULKER_SHOOT, 2.0F, (ShulkerEntity.this.rand.nextFloat() - ShulkerEntity.this.rand.nextFloat()) * 0.2F + 1.0F);\n }\n } else {\n ShulkerEntity.this.setAttackTarget((LivingEntity)null);\n }\n\n super.tick();\n }\n }", "public void act() \n {\n EggFactory eggFactory = new EggFactory();\n \n move(4);\n int random = Greenfoot.getRandomNumber(5000);\n if((random>200 & random<300) || ((Farm)getWorld()).atWorldEdge(this))\n {\n turn(180);\n getImage().mirrorVertically();\n move(4);\n \n }\n\n if( Greenfoot.getRandomNumber(100) ==0)\n {\n\n Farm farm = (Farm)getWorld();\n Egg egg = null; \n int eggPicker = Greenfoot.getRandomNumber(80);\n //DropEggStrategy dropEgg = new DropEggStrategy(); //Strategy pattern\n\n IEggStrategy whiteStrategy = new WhiteEggStrategy(eggFactory);\n IEggStrategy blackStrategy = new BlackEggStrategy(eggFactory);\n IEggStrategy goldenStrategy = new GoldenEggStrategy(eggFactory);\n \n DropEggContext context = new DropEggContext();\n \n if(eggPicker >= 50 && eggPicker <= 60){\n \n context.setIEggStrategy(goldenStrategy);\n egg = context.dropEgg();\n getWorld().addObject(egg, this.getX(), this.getY()+45);\n }\n else if(eggPicker >= 60 && eggPicker <= 70){\n\n context.setIEggStrategy(blackStrategy);\n egg = context.dropEgg();\n getWorld().addObject(egg, this.getX(), this.getY()+45);\n }\n else{\n context.setIEggStrategy(whiteStrategy);\n egg = context.dropEgg();\n getWorld().addObject(egg, this.getX(), this.getY()+45);\n }\n \n egg.register(farm.getLifeObserver());//register life creator observer into egg subject \n\n \n\n }\n\n }", "public abstract void placeSmoke(ShortPoint2D position, boolean smokeOn);", "@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\t\r\n\t\t\t\t\tfor(Entity as: Bukkit.getWorld(\"world\").getEntities()) {\r\n\t\t\t\t\t\tif(as instanceof ArmorStand) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tas.remove();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//TOPS\r\n\t\t\t\t\r\n\t\t\t\t\tif(MetodosWarps.containsWarp(\"topkills\")) {\r\n\t\t\t\t\t getTop(locTopKILLS,\"Kills\");\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žAžlTOP KILLS ATUALIZADO COM SUCESSO! \\n \");\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žcžlO TOP KILLS NAO PODE SER CARREGADO, POIS A WARP topkills NAO ESTA SETADA! \\n \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(MetodosWarps.containsWarp(\"topcoins\")) {\r\n\t\t\t\t\t getTop(locTopCoins,\"Coins\");\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žAžlTOP COINS ATUALIZADO COM SUCESSO! \\n \");\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žcžlO TOP COINS NAO PODE SER CARREGADO, POIS A WARP topkills NAO ESTA SETADA! \\n \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(MetodosWarps.containsWarp(\"top1v1\")) {\r\n\t\t\t\t\t getTop(locTop1v1,\"wins\");\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žAžlTOP 1v1 ATUALIZADO COM SUCESSO! \\n \");\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žcžlO TOP 1v1 NAO PODE SER CARREGADO, POIS A WARP top1v1 NAO ESTA SETADA! \\n \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Caixa misteriosa\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(MetodosWarps.containsWarp(\"misteryBox\")) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t Spawn(misteryBox, \"žažlCAIXA MISTERIOSA\",misteryBox.getY()-1.7);\r\n\t\t\t\t\t Spawn(misteryBox, \"žežlEM BREVE!\",misteryBox.getY()-2);\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žAžlMYSTERYBOX ATUALIZADO COM SUCESSO! \\n \");\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žcžlO TOP COINS NAO PODE SER CARREGADO, POIS A WARP misteryBox NAO ESTA SETADA! \\n \");\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "public void doAction() {\r\n\t\t// Erase the current drawing\r\n\t\twindow.remove(snow);\r\n\t\t// Repaint the snow\r\n\t\tthis.window.resumeRepaints();\r\n\t\t// Animate the avalanche by moving the snow areas covered\r\n\t\tif (this.direction == this.OUT) {\r\n\t\t\tbottom = bottom + 1;\r\n\t\t\tside1 = side1 - 1;\r\n\t\t\tside2 = side2 + 1;\r\n\t\t\tif (bottom >= originaly + 5) {\r\n\t\t\t\tthis.direction = IN;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tbottom = bottom - 1;\r\n\t\t\tside1 = side1 + 1;\r\n\t\t\tside2 = side2 - 1;\r\n\t\t\tif (bottom <= originaly - 5) {\r\n\t\t\t\tthis.direction = OUT;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// draw the snow\r\n\t\tthis.draw();\r\n\t}", "void effect(Entity e, BoardPosition bp);", "void takeDamage(int points) {\n this.health -= points;\n }", "public void explode(int x, int y) {\n\t\tremoveSprite(this.gameMap[x][y].getTile());\n\t\tthis.explosion = true;\n\t\tincrementNumMoves();\n\t\t\n\t}", "public void dealPlayer() {\n //Deal two cards to the player\n playerStack.add(cards[talonStack]);\n playerScore += evaluateCardScore(playerScore, cards[talonStack].rank);\n talonStack++;\n\n playerStack.add(cards[talonStack]);\n playerScore += evaluateCardScore(playerScore, cards[talonStack].rank);\n talonStack++;\n }", "public void onUpdate()\n {\n boolean flag;\n\n if (this.fireworkAge == 0 && this.fireworkExplosions != null)\n {\n flag = this.func_92037_i();\n boolean flag1 = false;\n\n if (this.fireworkExplosions.tagCount() >= 3)\n {\n flag1 = true;\n }\n else\n {\n for (int i = 0; i < this.fireworkExplosions.tagCount(); ++i)\n {\n NBTTagCompound nbttagcompound = (NBTTagCompound)this.fireworkExplosions.tagAt(i);\n\n if (nbttagcompound.getByte(\"Type\") == 1)\n {\n flag1 = true;\n break;\n }\n }\n }\n\n String s = \"fireworks.\" + (flag1 ? \"largeBlast\" : \"blast\") + (flag ? \"_far\" : \"\");\n this.worldObj.playSound(this.posX, this.posY, this.posZ, s, 20.0F, 0.95F + this.rand.nextFloat() * 0.1F, true);\n }\n\n if (this.fireworkAge % 2 == 0 && this.fireworkExplosions != null && this.fireworkAge / 2 < this.fireworkExplosions.tagCount())\n {\n int j = this.fireworkAge / 2;\n NBTTagCompound nbttagcompound1 = (NBTTagCompound)this.fireworkExplosions.tagAt(j);\n byte b0 = nbttagcompound1.getByte(\"Type\");\n boolean flag2 = nbttagcompound1.getBoolean(\"Trail\");\n boolean flag3 = nbttagcompound1.getBoolean(\"Flicker\");\n int[] aint = nbttagcompound1.getIntArray(\"Colors\");\n int[] aint1 = nbttagcompound1.getIntArray(\"FadeColors\");\n\n if (b0 == 1)\n {\n this.createBall(0.5D, 4, aint, aint1, flag2, flag3);\n }\n else if (b0 == 2)\n {\n this.createShaped(0.5D, new double[][] {{0.0D, 1.0D}, {0.3455D, 0.309D}, {0.9511D, 0.309D}, {0.3795918367346939D, -0.12653061224489795D}, {0.6122448979591837D, -0.8040816326530612D}, {0.0D, -0.35918367346938773D}}, aint, aint1, flag2, flag3, false);\n }\n else if (b0 == 3)\n {\n this.createShaped(0.5D, new double[][] {{0.0D, 0.2D}, {0.2D, 0.2D}, {0.2D, 0.6D}, {0.6D, 0.6D}, {0.6D, 0.2D}, {0.2D, 0.2D}, {0.2D, 0.0D}, {0.4D, 0.0D}, {0.4D, -0.6D}, {0.2D, -0.6D}, {0.2D, -0.4D}, {0.0D, -0.4D}}, aint, aint1, flag2, flag3, true);\n }\n else if (b0 == 4)\n {\n this.createBurst(aint, aint1, flag2, flag3);\n }\n else\n {\n this.createBall(0.25D, 2, aint, aint1, flag2, flag3);\n }\n\n int k = aint[0];\n float f = (float)((k & 16711680) >> 16) / 255.0F;\n float f1 = (float)((k & 65280) >> 8) / 255.0F;\n float f2 = (float)((k & 255) >> 0) / 255.0F;\n EntityFireworkOverlayFX entityfireworkoverlayfx = new EntityFireworkOverlayFX(this.worldObj, this.posX, this.posY, this.posZ);\n entityfireworkoverlayfx.setRBGColorF(f, f1, f2);\n this.theEffectRenderer.addEffect(entityfireworkoverlayfx);\n }\n\n ++this.fireworkAge;\n\n if (this.fireworkAge > this.particleMaxAge)\n {\n if (this.twinkle)\n {\n flag = this.func_92037_i();\n String s1 = \"fireworks.\" + (flag ? \"twinkle_far\" : \"twinkle\");\n this.worldObj.playSound(this.posX, this.posY, this.posZ, s1, 20.0F, 0.9F + this.rand.nextFloat() * 0.15F, true);\n }\n\n this.setDead();\n }\n }", "public void explode() {\n\t\tSystem.out.println(\"HydrogenBomb blast from Explosion\");\n\t}", "@Override\n public void run() {\n Platform.runLater(new Runnable(){\n @Override public void run() { \n\n if (explosion!= null) {\n pane.getChildren().remove(explosion);\n timer.cancel();\n timer.purge();\n }\n }\n }); \n \n }", "public void suffer(int damage){\r\n\t\thp -= damage;\r\n\t\tinvulnerable = true;\r\n\t}", "public void tick(){\n\t\tfor(int i=0;i<object.size(); i++){\n\t\t\ttempObject = object.get(i);\n\t\t\ttempObject.tick(object);\n\t\t\tif(tempObject.getId() == ObjectId.Player){\n\t\t\t\tif(tempObject.position.x == MouseInput.exitPosition.x&&\n\t\t\t\t tempObject.position.y == MouseInput.exitPosition.y){\n\t\t\t\t\tgame.score += game.timeLeft;\n\t\t\t\t\tSystem.out.println(\"exited\");\n\t\t\t\t\tgame.levelCompleted=true;\n\t\t\t\t}\n\t\t\t\tif(game.player.health <= 0){\n\t\t\t\t\tobject.clear();\n\t\t\t\t\tgame.gameLoop=1;\n\t\t\t\t\tgame.State=STATE.GAMEOVER;\n\t\t\t}\n\t\t}\n\t\t// bomb is null when exploded\t\t\n\t\tif(Bomb.exploded(bomb, object)){\n\t\t\tbomb=null;\t\t\t\n\t\t}\n\t\t\n\t\tif(System.currentTimeMillis()-Player.tHit < 3000){\n\t\t\tPlayer.invincible = true;\n\t\t}\n\t\telse{\n\t\t\tPlayer.invincible = false;\n\t\t}\n\t\t\n\t\tif(Power.consumed(power, object)) {\n\t\t\tpower=null;\n\t\t}\n\t\t}\n\t\t\n\t}", "public void spawnItemStack(ItemStack stack, Point3d point){\r\n\t\tworld.spawnEntity(new EntityItem(world, point.x, point.y, point.z, stack));\r\n\t}", "public void livingTick() {\n super.livingTick();\n this.oFlap = this.wingRotation;\n this.oFlapSpeed = this.destPos;\n this.destPos = (float)((double)this.destPos + (double)(this.onGround ? -1 : 4) * 0.3D);\n this.destPos = MathHelper.clamp(this.destPos, 0.0F, 1.0F);\n if (!this.onGround && this.wingRotDelta < 1.0F) {\n this.wingRotDelta = 1.0F;\n }\n\n this.wingRotDelta = (float)((double)this.wingRotDelta * 0.9D);\n Vec3d vec3d = this.getMotion();\n if (!this.onGround && vec3d.y < 0.0D) {\n this.setMotion(vec3d.mul(1.0D, 0.6D, 1.0D));\n }\n\n this.wingRotation += this.wingRotDelta * 2.0F;\n if (!this.world.isRemote && this.isAlive() && !this.isChild() && getGender()==Gender.FEMALE && --this.timeUntilNextEgg <= 0) {\n this.playSound(SoundEvents.ENTITY_CHICKEN_EGG, 1.0F, (this.rand.nextFloat() - this.rand.nextFloat()) * 0.2F + 1.0F);\n this.entityDropItem(Items.EGG);\n this.timeUntilNextEgg = this.rand.nextInt(6000) + 6000;\n }\n\n ++this.eatTicks;\n ItemStack itemstack = this.getItemStackFromSlot(EquipmentSlotType.MAINHAND);\n if (this.canEatItem(itemstack)) {\n if (this.eatTicks > 600) {\n ItemStack itemstack1 = itemstack.onItemUseFinish(this.world, this);\n if (!itemstack1.isEmpty()) {\n this.setItemStackToSlot(EquipmentSlotType.MAINHAND, itemstack1);\n }\n\n this.eatTicks = 0;\n } else if (this.eatTicks > 560 && this.rand.nextFloat() < 0.1F) {\n this.playSound(this.getEatSound(itemstack), 1.0F, 1.0F);\n this.world.setEntityState(this, (byte)45);\n }\n }\n\n }", "void deathHandler(Enemy e) {\n\n if (e != null) {\n Explosion rip = new Explosion();\n rip.kaboom.moveToPoint(e.eTank.getX(), e.eTank.getY());\n // println(\"made enemy\");\n rip.kaboom.frontAngle(90);\n rip.kaboom.turn(90);\n explosion.add(rip);\n }\n for (Explosion exp: explosion) {\n if (exp.kaboomCounter > 1) {\n exp.kaboom.display();\n }\n // if (exp.kaboomCounter < 1) {\n // explosion.remove(exp);\n // }\n // else {\n exp.kaboomCounter -= 3;\n // println(exp.kaboomCounter);\n // println(explosion.size());\n // }\n }\n\n}", "@Override\r\n\tpublic void collisionReaction(GameObject collidedWith)\r\n\t{\r\n\t\tif (\"Enemy\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\trandom = PFRandom.randomRange(0,2);\r\n\t\t\tshakeActivated = true;\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth -= PFRandom.randomRange(30,40);\r\n\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\t\t\tSoundManager.playBackgroundSound(\"Explode\");\r\n\t\t}\r\n\r\n\t\tif (\"StarBurst\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\trandom = PFRandom.randomRange(0,2);\r\n\t\t\tshakeActivated = true;\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth -= PFRandom.randomRange(20,40);\r\n\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\t\t\tSoundManager.playBackgroundSound(\"Explode\");\r\n\t\t}\r\n\t\tif (\"GeneralEnemyBullet\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\trandom = PFRandom.randomRange(0,2);\r\n\t\t\tshakeActivated = true;\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth -= PFRandom.randomRange(10,20);\r\n\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\t\t\tSoundManager.playBackgroundSound(\"Explode\");\r\n\t\t}\r\n\t\tif (\"AimedShot\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\trandom = PFRandom.randomRange(0,2);\r\n\t\t\tshakeActivated = true;\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth -= PFRandom.randomRange(1,5);\r\n\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\t\t\tSoundManager.playBackgroundSound(\"Explode\");\r\n\t\t}\r\n\r\n\r\n\t\tif (\"Asteroid\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\trandom = PFRandom.randomRange(0,2);\r\n\t\t\tshakeActivated = true;\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth -= PFRandom.randomRange(20, 45);\r\n\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\r\n\t\t\t//DESTROYED ASTEROID CODE! NEEDS TO BE REUSED WITH SHOOTING!\r\n\t\t\tVec2 deathSpot = collidedWith.getPosition();\r\n\r\n\r\n\t\t\tint healthdropNum = 0;\r\n\t\t\twhile(healthdropNum <= 4)\r\n\t\t\t{\r\n\t\t\t\thealthdropNum++;\r\n\t\t\t\tGameObject healthDrop = new HealthDrops();\r\n\t\t\t\thealthDrop.setPosition(deathSpot.getX() + getRandomValue(-5, 5), deathSpot.getY() + getRandomValue(-5, 5));\r\n\t\t\t\tObjectManager.addGameObject(healthDrop);\r\n\r\n\t\t\t}\r\n\t\t\tSoundManager.playBackgroundSound(\"Explode\");\r\n\r\n\t\t\tif (ShipHealth <= 30)\r\n\t\t\t{\r\n\t\t\t\tSoundManager.playBackgroundSound(\"LowHealth\");\r\n\t\t\t}\r\n\r\n\r\n\t\t}\r\n\r\n\t\tif (\"HealthDrop\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\tscore = score + 1;\r\n\t\t\tSystem.out.println(\"Score: \"+ score);\r\n\t\t\tif (ShipHealth < 100)\r\n\t\t\t{\r\n\r\n\t\t\t\tShipHealth += 1;\r\n\t\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\r\n\t\t\t\tif (ShipHealth > 30)\r\n\t\t\t\t{\r\n\t\t\t\t\tSoundManager.stopBackgroundSound(\"LowHealth\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcollidedWith.kill();\r\n\t\t}\r\n\t\tif (\"EnemyHealthDrop\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\tscore = score + 2;\r\n\t\t\tSystem.out.println(\"Score: \"+ score);\r\n\t\t\tif (ShipHealth < 100)\r\n\t\t\t{\r\n\r\n\t\t\t\tShipHealth += 2;\r\n\t\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\t\t\t\tif (ShipHealth > 30)\r\n\t\t\t\t{\r\n\t\t\t\t\tSoundManager.stopBackgroundSound(\"LowHealth\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcollidedWith.kill();\r\n\t\t}\r\n\t\tif (\"HealthPickup\".equals(collidedWith.getName()))\r\n\t\t{\r\n\r\n\t\t\t//System.out.println(\"Score: \" + score);\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth = 100;\r\n\t\t\tSystem.out.println(\"HEALTH RESTORED\");\r\n\t\t\tSoundManager.stopBackgroundSound(\"LowHealth\");\r\n\r\n\t\t}\r\n\t\tif (\"FollowBullet\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\trandom = PFRandom.randomRange(0,2);\r\n\t\t\tshakeActivated = true;\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth -= PFRandom.randomRange(10, 30);\r\n\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\t\t\tSoundManager.playBackgroundSound(\"Explode\");\r\n\t\t\tif (ShipHealth <= 30)\r\n\t\t\t{\r\n\t\t\t\tSoundManager.playBackgroundSound(\"LowHealth\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (\"BossFollower\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\tsetPositionY(165.7f);\r\n\t\t}\r\n\t}", "public void specialEffect() {\n if (getDefense() > 0) {\n setDefense(0);\n setCurrentHealth(currentHealth + 50);\n }\n\n }", "public void spawnExplosion(Point3d location, double strength, boolean flames){\r\n\t\tworld.newExplosion(null, location.x, location.y, location.z, (float) strength, flames, ConfigSystem.configObject.general.blockBreakage.value);\r\n\t}", "public void sharkAttack() {\n if (fins>0) \n fins--;\n }", "public void killAndHunt() {\n\t\tRandom random = new Random();\n\t\tint currentIndex = random.nextInt(N);\t\n\t\tkill(currentIndex);\n\t}", "@Inject(\n at = @At(\"HEAD\"),\n method = \"tick\",\n cancellable = true)\n\n private void removePoisonIfPCEnchant(CallbackInfo ci) {\n if ((Object) this instanceof PlayerEntity) {\n PlayerEntity entity = (PlayerEntity) (Object) this;\n ItemStack mainHand = getMainHandStack();\n\n\n if (EnchantmentHelper.getLevel(EnchantsRegistry.POISON_CLOUD, mainHand) >= 1\n || mainHand.getItem() == ItemRegistry.getItem(\"sickle_nightmares_bite\").asItem()\n || mainHand.getItem() == ItemRegistry.getItem(\"spear_venom_glaive\").asItem())\n {\n this.removeStatusEffect(StatusEffects.POISON);\n }\n }\n }", "@Override\n\tpublic void onUpdate() {\n\t\tif(!world.isRemote && !firstTick) {\n\t\t\tLCNetwork.net.sendToAllAround(new MessageSyncTNT(this), \n\t\t\t\t\tnew TargetPoint(this.dimension, this.posX, this.posY, this.posZ, 1024));\n\t\t\tfirstTick = true;\n\t\t}\n\t\t\n\t\tthis.prevPosX = this.posX;\n\t\tthis.prevPosY = this.posY;\n\t\tthis.prevPosZ = this.posZ;\n\t\tthis.motionY -= 0.03999999910593033D;\n\t\tthis.move(MoverType.SELF, this.motionX, this.motionY, this.motionZ);\n\t\tthis.motionX *= 0.9800000190734863D;\n\t\tthis.motionY *= 0.9800000190734863D;\n\t\tthis.motionZ *= 0.9800000190734863D;\n\n\t\tif (this.onGround)\n\t\t{\n\t\t\tthis.motionX *= 0.699999988079071D;\n\t\t\tthis.motionZ *= 0.699999988079071D;\n\t\t\tthis.motionY *= -0.5D;\n\t\t}\n\n\t\tif (this.fuse-- <= 0)\n\t\t{\n\t\t\tthis.setDead();\n\n\t\t\tif (!this.world.isRemote)\n\t\t\t{\n\t\t\t\tthis.explode();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.world.spawnParticle(EnumParticleTypes.SMOKE_LARGE, this.posX, this.posY + 0.5D, this.posZ, 0.0D, 0.0D, 0.0D);\n\t\t}\n\t}" ]
[ "0.6370101", "0.63040733", "0.59915096", "0.58899826", "0.5812015", "0.5741681", "0.56841624", "0.5625114", "0.56023407", "0.55333805", "0.55279243", "0.5521334", "0.5409155", "0.5381498", "0.5381159", "0.53452176", "0.5340729", "0.5306727", "0.53018206", "0.52904016", "0.52869624", "0.52617764", "0.5224276", "0.5221068", "0.5201213", "0.5200528", "0.5179494", "0.51600826", "0.5149747", "0.5134141", "0.512078", "0.5100027", "0.5097408", "0.5072154", "0.504905", "0.5039596", "0.50371104", "0.5025759", "0.49754846", "0.49680033", "0.49590403", "0.49589807", "0.49439448", "0.49386552", "0.49354908", "0.49240994", "0.49204677", "0.4913054", "0.4910582", "0.49031967", "0.49023324", "0.489803", "0.4895299", "0.48806804", "0.48779294", "0.48687434", "0.48680404", "0.48609504", "0.48548764", "0.48501816", "0.48492625", "0.48442477", "0.48391202", "0.48364386", "0.48276916", "0.48220786", "0.4808163", "0.48065478", "0.48043203", "0.48036495", "0.47985938", "0.47985244", "0.47963253", "0.47947985", "0.47920132", "0.47883853", "0.47825736", "0.47747022", "0.47675338", "0.4765991", "0.47633812", "0.47587252", "0.47485936", "0.47427893", "0.4742623", "0.47422603", "0.47404486", "0.47385958", "0.47378758", "0.47318304", "0.47261986", "0.47257423", "0.47236773", "0.47233137", "0.47205177", "0.4707845", "0.47025606", "0.47010243", "0.46986574", "0.46975812" ]
0.5484081
12
Mandatory empty constructor for the fragment manager to instantiate the fragment (e.g. upon screen orientation changes).
public DeviceModuleDetailFragment() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FragmentMy() {\n }", "public RickAndMortyFragment() {\n }", "public MainActivityFragment() {\n }", "public MainActivityFragment() {\n }", "public RegisterFragment() {\n // Required empty public constructor\n }", "public VehicleFragment() {\r\n }", "public EmployeeFragment() {\n }", "public RegisterFragment() {\n }", "public HomeFragment() {}", "public ExploreFragment() {\n\n }", "public WkfFragment() {\n }", "public WelcomeFragment() {}", "public FavoriteFragment() {\n }", "public MainActivityFragment(){\n\n }", "public HomeSectionFragment() {\n\t}", "public HistoryFragment() {\n }", "public HistoryFragment() {\n }", "public PhotoGalleryFragment() {\n }", "public DisplayFragment() {\n\n }", "public ForecastFragment() {\n }", "protected abstract Fragment createFragment();", "public Fragment_Tutorial() {}", "public VideoFragment() {\n }", "public ViewPagerFragment() {\n }", "public progFragment() {\n }", "public EventHistoryFragment() {\n\t}", "public AddReminderFragment() {\n }", "public HomeFragment() {\n // Required empty public constructor\n }", "public CuartoFragment() {\n }", "public LogFragment() {\n }", "public GalleryActivityFragment() { //Constructor which has no function, but is required\n }", "public RestaurantFragment() {\n }", "public BookListFragment() {\n }", "public PeopleFragment() {\n // Required empty public constructor\n }", "public PersonDetailFragment() {\r\n }", "public FriendsListFragment() {\n }", "public MyGoodsFragment() {\n }", "public BackEndFragment() {\n }", "public VantaggiFragment() {\n // Required empty public constructor\n }", "public MovieListFragment() {\n }", "public CustomerFragment() {\n }", "public StintFragment() {\n }", "public CreatePatientFragment() {\n\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public PlaylistFragment() {\n }", "public void createFragment() {\n\n }", "public MyLocationsFragment() {\n }", "public ArticleDetailFragment() { }", "public VenueDetailFragment() {\r\n\t}", "public RepositoryFragment() {\n }", "public NoteActivityFragment() {\n }", "public RouteFragment() {\n }", "public ItemFragment() {\n }", "public RoomStatusFragment()\n {\n }", "public PlaceholderFragment() {\n }", "public MovieGridFragment() {\n }", "public RecipeVideoFragment() {\n }", "public RelayListFragment() {\n }", "public ItemListFragment() {\n }", "public FeedFragment() {\n }", "@RequiresApi(api = Build.VERSION_CODES.O)\n public MainPages_MyProfile_Fragment() {\n Log.i(\"Init\", \"Initialize profile fragment...\");\n this.selected = R.id.profile_info_item;\n this.infoFragment = Info_Profile_Fragment.getInstance();\n this.imageFragment = Image_Profile_Fragment.getInstance();\n }", "public MovieDetailFragment() {\n }", "public MovieDetailFragment() {\n }", "public MainFragment2() {\r\n super();\r\n }", "public CreateEventFragment() {\n // Required empty public constructor\n }", "public CarModifyFragment() {\n }", "public ProductsFragment() {\n }", "public DialogFragment() {\n Log.d(TAG,\"Construction\");\n // Required empty public constructor\n }", "public SyncMigrationFragment()\n {\n super();\n }", "public AddressDetailFragment() {\n }", "public ShoppingListFragment() {\n }", "public RestaurantDetailFragment() {\n }", "public UpdaterFragment() {\n // Required empty public constructor\n }", "@Override\r\n\tpublic void onFragmentCreate(Bundle savedInstanceState) {\n\t}", "public AboutUsFragment() {\n // Required empty public constructor\n }", "private void initFragment(Fragment fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.add(R.id.contentFrame, fragment);\n transaction.commit();\n }", "public MovieDetailFragment() {\n\n }", "public NewShopFragment() {\n }", "public NoteListFragment() {\n }", "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public SistudiaMainFragment() {\r\n // Required empty public constructor\r\n }", "public PatientDetailLogsFragment() {\n }", "public SettingsFragment() {\n // Empty constructor required for fragment subclasses\n }", "public StepsFragment() {\n }", "public ChatThreadDetailFragment() {\n }", "public FExDetailFragment() {\n \t}", "public SwapListFragment() {\n }", "public CategoryFragment() {\n }", "public ProfileFragment() {\n\n }", "public CategoriesFragment() {\n }", "public UsersFragment() {\n }", "public EmailFragment() {\n }", "public MenuCategoryFragment() {\n\n }", "public WalletFragment(){}", "public ItemDetailFragment() {\n }", "public ItemDetailFragment() {\n }", "public ItemDetailFragment() {\n }", "public ItemDetailFragment() {\n }" ]
[ "0.8031511", "0.76991963", "0.7676922", "0.7676922", "0.7538628", "0.7534647", "0.75326765", "0.75220966", "0.75071454", "0.74123853", "0.7406797", "0.737607", "0.73755896", "0.736607", "0.73266673", "0.73027587", "0.73027587", "0.72954965", "0.7287682", "0.728533", "0.7280965", "0.72710395", "0.726701", "0.7262771", "0.7260237", "0.7250639", "0.72495973", "0.7237854", "0.7237179", "0.72367895", "0.7233901", "0.72333854", "0.72223955", "0.72210187", "0.7210297", "0.71998554", "0.71974355", "0.7185321", "0.7175307", "0.71749073", "0.71643627", "0.7136156", "0.7122973", "0.71101296", "0.71101296", "0.71101296", "0.71037227", "0.7094957", "0.7088855", "0.7088652", "0.7070247", "0.70624536", "0.70587", "0.7056132", "0.70477945", "0.7041431", "0.70330954", "0.7027764", "0.7018135", "0.70153606", "0.70095944", "0.70042574", "0.70007783", "0.6999985", "0.6999985", "0.69866604", "0.69833314", "0.6972247", "0.69676286", "0.69617236", "0.6960365", "0.6942106", "0.6936593", "0.6922325", "0.6921973", "0.69206995", "0.6910822", "0.6908854", "0.6908238", "0.69077724", "0.69047505", "0.6893635", "0.6890194", "0.68891186", "0.686739", "0.6851039", "0.6837696", "0.6834854", "0.68307483", "0.6830333", "0.6827755", "0.68277544", "0.6806075", "0.6802827", "0.6801055", "0.6800667", "0.6797551", "0.6797551", "0.6797551", "0.6797551" ]
0.71019924
47
Get the last heartbeat for the symbol
public long getHeartbeatForSymbol(final BitfinexStreamSymbol symbol) { synchronized (lastTick) { final Long heartbeat = lastTickTimestamp.get(symbol); if(heartbeat == null) { return -1; } return heartbeat; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getLastHeartbeat();", "public BitfinexTick getLastTick(final BitfinexTickerSymbol currencyPair) {\n\t\tsynchronized (lastTick) {\n\t\t\treturn lastTick.get(currencyPair);\n\t\t}\n\t}", "public void updateChannelHeartbeat(final BitfinexStreamSymbol symbol) {\n\t\tsynchronized (lastTick) {\n\t\t\tlastTickTimestamp.put(symbol, System.currentTimeMillis());\n\t\t}\n\t}", "edu.usfca.cs.dfs.StorageMessages.HeartBeat getHeartBeatMsg();", "int getEndBeat() {\n return this.endBeat;\n }", "public XBMCInfo getLastXBMC() {\n\t\treturn xbmcInfoManager.getLastXBMC();\n\t}", "public long getLastMsgTick() {\n return lastMessageSentAt;\n }", "abstract public SentinelHttpMessageAtk getLastAttackMessage();", "int getBeat();", "public int getTickCount(String symbol);", "String getHighScoreTime() {\n return getStringStat(highScoreTime);\n }", "int getHeartbeatInterval();", "public double getTimeForClose();", "public long getLastPlayed ( ) {\n\t\treturn extract ( handle -> handle.getLastPlayed ( ) );\n\t}", "public java.lang.String getLastChgTime () {\n\t\treturn lastChgTime;\n\t}", "public java.lang.String getLastChgTime () {\n\t\treturn lastChgTime;\n\t}", "public java.lang.String getLastChgTime () {\n\t\treturn lastChgTime;\n\t}", "public java.lang.String getLastChgTime () {\n\t\treturn lastChgTime;\n\t}", "public java.lang.String getLastChgTime () {\n\t\treturn lastChgTime;\n\t}", "public Date getLastHeard()\r\n\t{\r\n\t\treturn lastHeard;\r\n\t}", "int getHeartRate();", "public BrickStatusCommand getBrickStatusFromLast(int timeStamp) {\n\t\tBrickStatusCommand brickState = null;\n\t\tint counter = 1;\n\t\tint stateSize = Board.brickStateList.size();\n\t\twhile (counter <= stateSize) {\n\t\t\tbrickState = Board.brickStateList.get(stateSize - counter);\n\t\t\tcounter++;\n\t\t\tif (brickState.getTimestamp() <= timeStamp) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn brickState;\n\t}", "@Override\n public God getLastGod() {\n return godPower.getLastGod();\n }", "public java.lang.String getLastChgTime() {\n\t\treturn lastChgTime;\n\t}", "@Override\n public int getFinalBeat() {\n List<Note> currentNotes = this.getNotes();\n int size = currentNotes.size();\n int farthestBeat = 0;\n\n for (int i = 0; i < size; i++) {\n Note currentNote = currentNotes.get(i);\n int currentEnd = currentNote.getBeat() + currentNote.getDuration();\n\n if (currentEnd > farthestBeat) {\n farthestBeat = currentEnd;\n }\n }\n return farthestBeat;\n }", "Long getTemperatureForLastHour();", "int getFinalTick();", "private MoveBallCommand getBallStateFromLast(int timeStamp) {\n\t\tMoveBallCommand ballState = null;\n\t\tint counter = 1;\n\t\tint stateSize = Board.ballStateList.size();\n\t\twhile (counter <= stateSize) {\n\t\t\tballState = Board.ballStateList.get(stateSize - counter);\n\t\t\tcounter++;\n\t\t\tif (ballState.getTimeStamp() <= timeStamp) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn ballState;\n\t}", "public static long getLastResetTime() {\n return p().lastReset;\n }", "public String getLastPingAddress()\n {\n return lastPingAddress;\n }", "public String lastAsSlot();", "edu.usfca.cs.dfs.StorageMessages.HeartBeatResponse getHeartBeatResponse();", "Double getLastHourIntanceNetworkOut(String instanceId, long lastUpdated);", "public void sendHeartbeat();", "public long lastTime()\r\n/* 219: */ {\r\n/* 220:412 */ return this.lastTime.get();\r\n/* 221: */ }", "HeartBeat.Res getHeartBeatRes();", "int maxBeatNum();", "public edu.usfca.cs.dfs.StorageMessages.HeartBeat getHeartBeatMsg() {\n if (msgCase_ == 3) {\n return (edu.usfca.cs.dfs.StorageMessages.HeartBeat) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.HeartBeat.getDefaultInstance();\n }", "private void m29985m() {\n String str = \"com.tencent.android.tpush.service.channel.heartbeatIntent\";\n String str2 = \"TpnsChannel\";\n try {\n if (this.f23299z == null) {\n C6973b.m29776f().registerReceiver(new BroadcastReceiver() {\n public void onReceive(Context context, Intent intent) {\n C7005b.m29964a().m29983k();\n }\n }, new IntentFilter(str));\n this.f23299z = PendingIntent.getBroadcast(C6973b.m29776f(), 0, new Intent(str), 134217728);\n }\n long currentTimeMillis = System.currentTimeMillis();\n if (f23279n > f23278m) {\n f23279n = f23278m;\n }\n if (XGPushConfig.isForeignWeakAlarmMode(C6973b.m29776f())) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"scheduleHeartbeat WaekAlarmMode heartbeatinterval: \");\n sb.append(f23280o);\n sb.append(\" ms\");\n C6864a.m29305f(str2, sb.toString());\n f23279n = f23280o;\n }\n f23279n = C7055h.m30166a(C6973b.m29776f(), \"com.tencent.android.xg.wx.HeartbeatIntervalMs\", f23279n);\n C7045d.m30117a().mo34149a(0, currentTimeMillis + ((long) f23279n), this.f23299z);\n } catch (Throwable th) {\n C6864a.m29302d(str2, \"scheduleHeartbeat error\", th);\n }\n }", "public double getLastTime()\n\t{\n\t\tdouble time = Double.NaN;\n\t\tfinal Entry< Double, V > entry = getLastEntry();\n\t\tif( entry != null )\n\t\t{\n\t\t\ttime = entry.getKey();\n\t\t}\n\t\treturn time;\n\t}", "@Override\n\tpublic int getCloseTime() {\n\t\treturn 0;\n\t}", "public long getMaxTime()\n {\n return times[times.length - 1];\n }", "long getTimeBoltHBoltE();", "public HeartBeat.Res getHeartBeatRes() {\n return instance.getHeartBeatRes();\n }", "public HeartBeat.Res getHeartBeatRes() {\n if (rspCase_ == 5) {\n return (HeartBeat.Res) rsp_;\n }\n return HeartBeat.Res.getDefaultInstance();\n }", "public double getHigh(){\n return /*home*/ this.high /*and eat everything*/;\r\n //then go to sleep for a day or three \r\n }", "@Override\n protected long scanDelayMillis() {\n return getHeartbeatDelay();\n }", "HeartBeat.Req getHeartBeatReq();", "public String getRemoteRingbackTone();", "public E pollLast();", "public long getTick() {\n return tick;\n }", "public long getTick() {\n return tick;\n }", "public String getLastMessage() {\n return lastMessage;\n }", "default Long getHeartbeatPosition(final ChangeEvent<String, String> heartbeatEvent) {\n throw new UnsupportedOperationException();\n }", "public Long getCloseTime() {\n return closeTime;\n }", "public Epoch getLastEpoch() {\n epochsLock.lock();\n if (epochs.isEmpty()) {\n epochsLock.unlock();\n return null;\n }\n //Epoch epoch = epochs.get(epochs.size() - 1);\n Epoch epoch = epochs.get(ets); // the last epoch corresponds to the current ETS\n epochsLock.unlock();\n return epoch;\n }", "int getFirstTick();", "public int getLast() {\n\treturn _last;\n }", "@SuppressWarnings(\"unused\")\n\tprivate MovePaddleCommand getPaddleStateFromLast(int timeStamp) {\n\t\tMovePaddleCommand paddleState = null;\n\t\tint counter = 1;\n\t\tint stateSize = Board.paddleStateList.size();\n\t\twhile (counter <= stateSize) {\n\t\t\tpaddleState = Board.paddleStateList.get(stateSize - counter);\n\t\t\tcounter++;\n\t\t\tif (paddleState.getTimeStamp() <= timeStamp) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn paddleState;\n\t}", "public long getLastAliveTime() {\n\t\treturn this.aliveTime;\n\t}", "public int getLatestWeather() { //This function goes through the readings Arraylist and gets the most recent weather Code and returns it.\n int code;\n code = readings.get(readings.size() - 1).code;\n return code;\n }", "edu.usfca.cs.dfs.StorageMessages.HeartBeatOrBuilder getHeartBeatMsgOrBuilder();", "public Square getLastSquare() {\n\t\treturn squares.get(squares.size()-1);\n\t}", "protected long getLastMsTime() {\r\n return lastMsTime;\r\n }", "int getEndTick();", "public long getLastAttackTime() {\r\n\t\treturn lastAttackTime;\r\n\t}", "public int getThunderTime()\n {\n return thunderTime;\n }", "private static HashMap<String, String> getLastCheckpoint() {\n return checkpoints.remove(Thread.currentThread());\n }", "public static Sample getLastSample(int chan) {\n\t\tString path = LAST + chan;\n\t\tHttpResponse<String> response = sendRequest(path);\n\t\tif(response == null) return null;\n\t\treturn getSample(response);\n\t}", "long getOpenedTimestampNanos();", "public String getLastUsedStationNumber()\n\t{\n\t\treturn getValue(WareHouse.LASTUSEDSTATIONNUMBER).toString();\n\t}", "public java.lang.String getLastChgBy() {\n\t\treturn lastChgBy;\n\t}", "static String getLastCheckpointAsString() {\n HashMap<String, String> checkpoint = getLastCheckpoint();\n if (checkpoint == null) {\n return \"0 \";\n } else {\n StringBuilder sb = new StringBuilder();\n sb.append(checkpoint.size()).append(\" \");\n for (String name : checkpoint.keySet()) {\n sb.append(name).append(\"#####\");\n sb.append(checkpoint.get(name)).append(\"#####\");\n }\n return sb.toString();\n }\n }", "public T getLast() {\n return this.getHelper(this.indexCorrespondingToTheLatestElement).data;\n }", "public java.lang.String getLastChgBy () {\n\t\treturn lastChgBy;\n\t}", "public java.lang.String getLastChgBy () {\n\t\treturn lastChgBy;\n\t}", "public DateTime getLastSynced() {\n\t\treturn mLastSynced;\n\t}", "public int getTick() {\r\n return tick;\r\n }", "public ScheduledHarvest getLastOneTimeHarvest() {\n\n\t\treturn lastOneTimeHarvest;\n\n\t}", "public double getSignal() {\r\n return signals.lastEntry().getValue();\r\n }", "int getLastVibrationFrequency();", "public String getLastPlayed() {\n\t\treturn levelRunning;\n\t}", "public long getLastTimePlayed()\n {\n return lastTimePlayed;\n }", "public edu.usfca.cs.dfs.StorageMessages.HeartBeat getHeartBeatMsg() {\n if (heartBeatMsgBuilder_ == null) {\n if (msgCase_ == 3) {\n return (edu.usfca.cs.dfs.StorageMessages.HeartBeat) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.HeartBeat.getDefaultInstance();\n } else {\n if (msgCase_ == 3) {\n return heartBeatMsgBuilder_.getMessage();\n }\n return edu.usfca.cs.dfs.StorageMessages.HeartBeat.getDefaultInstance();\n }\n }", "public Signal getTipState() {\n\t\t// find the connector position in the queue\n\t\t// look in the noDelayQueue which value to communicate\n\t\tint now = GameEngine.getSimulationTimeInMillis();\n\t\tSignal signal = this.queue.getExit(now);\n\t\treturn signal;\n\t}", "public static String getHeartRateValue() {\n return heartRateValue;\n }", "protected long getRetryPeriod()\n {\n return heartbeat.getPulsePeriod();\n }", "public process get_last() {\n\t\treturn queue.getLast();\n\t}", "public HeartBeat.Req getHeartBeatReq() {\n return instance.getHeartBeatReq();\n }", "public long getLastUpdateTime() {\n return this.lastUpdateTime;\n }", "public static int measureHeartRate() {\n\t\treturn HeartRateSensor.getRate(currentRate);\n\t}", "pb4server.DealHeartAskReq getDealHeartAskReq();", "int getStartBeat() {\n return this.startBeat;\n }", "@java.lang.Override\n public com.google.protobuf.Timestamp getLastRefreshTime() {\n return lastRefreshTime_ == null\n ? com.google.protobuf.Timestamp.getDefaultInstance()\n : lastRefreshTime_;\n }", "public double getTimeForOpen();", "private String tick() {\r\n\t\tString out=\"Tick: \"+tile.getTick();\r\n\t\treturn out;\r\n\t}", "public Card getLastDrawnCard()\n\t{\n\t\treturn currentHand.get(getHandSize() - 1);\n\t}", "public static String getLatestProtocol() {\n return SORTED_PROTOCOLS.get(SORTED_PROTOCOLS.lastKey());\n }", "public void heartBeat();", "public int getLast() {\n\t\treturn last;\n\t}" ]
[ "0.73462594", "0.6567853", "0.62292916", "0.6215798", "0.6109383", "0.60173976", "0.6008553", "0.59492236", "0.5928839", "0.591576", "0.5908796", "0.5890724", "0.5874258", "0.57970387", "0.57913744", "0.57913744", "0.57913744", "0.57913744", "0.57913744", "0.5750031", "0.57447606", "0.57102364", "0.569785", "0.5687836", "0.56810987", "0.5676319", "0.5577121", "0.5575066", "0.55662656", "0.5562149", "0.55600923", "0.5551148", "0.55337393", "0.55316895", "0.550769", "0.5469559", "0.54608697", "0.5446063", "0.54364866", "0.5433027", "0.5432125", "0.541523", "0.54011935", "0.53855985", "0.53767866", "0.5366366", "0.536346", "0.53621817", "0.53603303", "0.53529066", "0.53499174", "0.53499174", "0.5338681", "0.53317773", "0.533123", "0.53226626", "0.5322248", "0.531638", "0.5313223", "0.531045", "0.52960455", "0.52779996", "0.52735543", "0.52692944", "0.5267245", "0.5264827", "0.5257099", "0.52519447", "0.5250969", "0.5239592", "0.5239393", "0.5237689", "0.5232832", "0.5224529", "0.5222", "0.5222", "0.5215658", "0.52151364", "0.52132326", "0.5212715", "0.5212581", "0.5212451", "0.5208372", "0.5192031", "0.5191631", "0.5186878", "0.51853323", "0.5184366", "0.5183575", "0.5180285", "0.5174127", "0.5171842", "0.51689255", "0.516833", "0.5165903", "0.5160634", "0.515325", "0.5150013", "0.5148979", "0.51451397" ]
0.7881815
0
Update the channel heartbeat
public void updateChannelHeartbeat(final BitfinexStreamSymbol symbol) { synchronized (lastTick) { lastTickTimestamp.put(symbol, System.currentTimeMillis()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n ctx.fireChannelActive();\n\n ctx.executor().scheduleAtFixedRate(new Runnable() {\n @Override\n public void run() {\n log.info(\"send heart beat\");\n HeartBeat heartBeat = new HeartBeat();\n ctx.writeAndFlush(heartBeat);\n }\n }, 0, 5, TimeUnit.SECONDS);\n }", "public void sendHeartbeat();", "public void sendHearBeat() {\n try {\n JSONObject jsonObject = new JSONObject();\n jsonObject.put(\"type\", WsMessage.MessageType.HEART_BEAT_REQ);\n this.wsManager.sendMessage(WsMessage.MessageType.HEART_BEAT_REQ, jsonObject.toString());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "void setHeartbeatInterval(int interval);", "EventChannel.Update update();", "private void sendHeartbeats() {\n\t\tHashSet<InetAddress> addresses = new HashSet<>(nodes.keySet());\n\t\t\n for (InetAddress addr : addresses) {\n\t\t\t// Take the mutex to ensure that no modifications are made to nodes\n\t\t\t// or channels while checking this node\n\t\t\tmutexLock.lock();\n\n // Check if the last heartbeat was responded to\n if (!nodes.containsKey(addr)) {\n mutexLock.unlock();\n continue;\n }\n\n NodeStatus node = nodes.get(addr);\n if (!(node.getLastResponse() == heartbeat.get())) {\n\n if (node.isAvailable()) {\n node.setAvailable(false);\n System.out.println(\"[\" + System.currentTimeMillis() + \" :: Node at \" + addr + \" is not available\");\n }\n }\n\n // Send the new heartbeat\n if (!channels.containsKey(addr)) {\n mutexLock.unlock();\n continue;\n }\n\n HeartbeatRequestMessage hrm = new HeartbeatRequestMessage(heartbeat.get()+1);\n SocketChannel channel = channels.get(addr);\n byte[] message = hrm.serialize();\n\n try {\n channel.write(ByteBuffer.wrap(message));\n } catch (ClosedChannelException cce) {\n channels.remove(addr);\n } catch (IOException e) {\n // Do something?\n }\n\n\t\t\t// Release the mutex\n\t\t\tmutexLock.unlock();\n }\n\n heartbeat.getAndIncrement();\n lastHeartbeatTime = System.currentTimeMillis();\n }", "public void update(Entity e1, double heartBeat, double dt) {\n\t\t\r\n\t}", "protected void issueHeartbeat() {\n updateProperties();\n\n issueConnectorPings();\n }", "public void triggerHeartBeat() {\n\t\tif (this.postman==null) return;\n\t\tthis.postman.sendHeartBeatAt = 0;\n\t}", "public void heartBeat();", "public void sendHeartBeat(String internalAppId) {\n\t\t// PUT on /vnfr/<vnfr_id>/app/<app_id>/heartbeat\n\t\tString webServiceUrl = serviceProfile.getServiceApiUrl()+\"/\"+internalAppId+\"/heartbeat\";\n\t\tlogger.info(\"sending heartbeat to EMM \"+ webServiceUrl);\n\t\t\n\t\tResponseEntity<Void> response = restTemplate.exchange(webServiceUrl, HttpMethod.PUT,\n null, Void.class);\n\t\tVoid body = response.getBody();\n\t\tlogger.info(\"response :\"+ response);\n\t}", "@Override\n public void channelRead(final ChannelHandlerContext ctx, final Object msg) throws Exception {\n MessageProto.Message message = (MessageProto.Message) msg;\n if (message.getLength() != 2 && message.getAction() == ActionType.HEARTBEAT_REQ) {\n logger.debug(\"Receive client heart beat message\");\n ctx.writeAndFlush(buildHeartBeat());\n logger.debug(\"Send heart beat message to client\");\n } else {\n ctx.fireChannelRead(msg);\n }\n }", "public void updateChannel(String channel) {\n Log.d(\"BC\", \"update channel \" + channel);\n long startTime = 0l;\n long endTime = 0l;\n Cursor cursor = getContentResolver().query(\n ChannelData.BROKEN_CONTENT_URI,\n null,\n null,\n new String[]{channel},\n null\n );\n if (cursor.getCount() > 0) {\n if (cursor.moveToFirst()) {\n startTime = cursor.getLong(cursor.getColumnIndex(\n ChannelData.PARENT\n ));\n endTime = cursor.getLong(cursor.getColumnIndex(\n ChannelData.ITEM_ID\n ));\n }\n Log.w(TAG, \"Found broken threads in \" + channel + \", \"\n + new Date(startTime) + \" / \"+ new Date(endTime));\n }\n cursor.close();\n cursor = getContentResolver().query(\n Roster.CONTENT_URI,\n new String[]{Roster.LAST_UPDATED},\n \"jid=?\",\n new String[]{channel},\n null\n );\n if (cursor.getCount() == 1) {\n cursor.moveToFirst();\n startTime = cursor.getLong(\n cursor.getColumnIndex(Roster.LAST_UPDATED));\n IQ iq = new ChannelFetch(channel, startTime);\n try {\n send(iq);\n } catch (RemoteException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n cursor.close();\n DiscoverInfo info = new DiscoverInfo();\n info.setNode(channel);\n info.setType(org.jivesoftware.smack.packet.IQ.Type.GET);\n info.setTo(\"broadcaster.buddycloud.com\");\n try {\n send(info);\n } catch (InterruptedException e) {\n e.printStackTrace(System.err);\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n }", "private void m29985m() {\n String str = \"com.tencent.android.tpush.service.channel.heartbeatIntent\";\n String str2 = \"TpnsChannel\";\n try {\n if (this.f23299z == null) {\n C6973b.m29776f().registerReceiver(new BroadcastReceiver() {\n public void onReceive(Context context, Intent intent) {\n C7005b.m29964a().m29983k();\n }\n }, new IntentFilter(str));\n this.f23299z = PendingIntent.getBroadcast(C6973b.m29776f(), 0, new Intent(str), 134217728);\n }\n long currentTimeMillis = System.currentTimeMillis();\n if (f23279n > f23278m) {\n f23279n = f23278m;\n }\n if (XGPushConfig.isForeignWeakAlarmMode(C6973b.m29776f())) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"scheduleHeartbeat WaekAlarmMode heartbeatinterval: \");\n sb.append(f23280o);\n sb.append(\" ms\");\n C6864a.m29305f(str2, sb.toString());\n f23279n = f23280o;\n }\n f23279n = C7055h.m30166a(C6973b.m29776f(), \"com.tencent.android.xg.wx.HeartbeatIntervalMs\", f23279n);\n C7045d.m30117a().mo34149a(0, currentTimeMillis + ((long) f23279n), this.f23299z);\n } catch (Throwable th) {\n C6864a.m29302d(str2, \"scheduleHeartbeat error\", th);\n }\n }", "@Override\n\tpublic void setEnableHeartBeat(boolean arg0) {\n\n\t}", "void sessionHeartbeat() throws IOException, InterruptedException;", "EventChannel refresh();", "int getHeartbeatInterval();", "private void startHeartbeats() {\r\n\t\tClientProperties props = ClientProperties.getInstance();\r\n\t\tint heartbeatInterval = Integer.parseInt(props.getProperty(ClientProperties.HEARTBEAT_INTERVAL));\r\n\t\theartbeatProducer.startHeartbeats(heartbeatInterval);\r\n\t}", "public void updateContestChannel(ContestChannel arg0) throws ContestManagementException {\r\n }", "public void heartBeat() throws InterruptedException {\n // 1) schedule the heartbeat on one thread in pool\n synchronized (txnBatchLock) {\n try {\n callWithTimeout(new CallRunner<Void>() {\n @Override\n public Void call() throws Exception {\n try {\n LOG.info(\"Sending heartbeat on batch \" + txnBatch);\n txnBatch.heartbeat();\n } catch (StreamingException e) {\n LOG.warn(\"Heartbeat error on batch \" + txnBatch, e);\n }\n return null;\n }\n });\n } catch (InterruptedException e) {\n throw e;\n } catch (Exception e) {\n LOG.warn(\"Unable to send heartbeat on Txn Batch \" + txnBatch, e);\n // Suppressing exceptions as we don't care for errors on heartbeats\n }\n }\n }", "@Override\n public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception {\n if (evt instanceof IdleStateEvent) {\n IdleState state = ((IdleStateEvent) evt).state();\n if (state == IdleState.WRITER_IDLE) {\n // write heartbeat to server\n //ctx.writeAndFlush(HEARTBEAT_SEQUENCE.duplicate());\n System.out.println(\"-----Send KeepAlive-----\");\n/* PacketProto.Packet.Builder builder = newBuilder();\n builder.setPacketType(PacketProto.Packet.PacketType.HEARTBEAT);\n PacketProto.Packet packet = builder.build();\n ctx.writeAndFlush(packet);*/\n ProtoMessage.ProtoMsg.Builder msg = ProtoMessage.ProtoMsg.newBuilder();\n msg.setType(ProtoHead.EMsgHead.KEEP_ALIVE_REQ);\n msg.setSequence(0);\n msg.setSessionId(1);\n ProtoMessage.Request.Builder req = ProtoMessage.Request.newBuilder();\n KeepAliveMsg.KeepAliveReq.Builder keepReq = KeepAliveMsg.KeepAliveReq.newBuilder();\n keepReq.setTime(111);\n req.setKeepAliveReq(keepReq);\n msg.setRequest(req);\n ctx.writeAndFlush(msg.build());\n }\n } else {\n super.userEventTriggered(ctx, evt);\n }\n }", "public void mo33398h() {\n String str = \"com.tencent.android.tpush.service.channel.heartbeatIntent.pullup\";\n String str2 = \"TpnsChannel\";\n try {\n if (this.f23285A == null) {\n IntentFilter intentFilter = new IntentFilter();\n intentFilter.addAction(\"android.intent.action.SCREEN_ON\");\n intentFilter.addAction(\"android.intent.action.SCREEN_OFF\");\n intentFilter.addAction(\"android.intent.action.USER_PRESENT\");\n intentFilter.addAction(str);\n C6973b.m29776f().registerReceiver(this.f23292L, intentFilter);\n this.f23285A = PendingIntent.getBroadcast(C6973b.m29776f(), 0, new Intent(str), 134217728);\n }\n long currentTimeMillis = System.currentTimeMillis();\n if (f23282q > f23278m) {\n f23282q = f23278m;\n }\n if (XGPushConfig.isForeignWeakAlarmMode(C6973b.m29776f())) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"schedulePullUpHeartbeat WaekAlarmMode heartbeatinterval: \");\n sb.append(f23280o);\n sb.append(\" ms\");\n C6864a.m29305f(str2, sb.toString());\n f23282q = f23280o;\n }\n f23282q = C7055h.m30166a(C6973b.m29776f(), \"com.tencent.android.xg.wx.HeartbeatIntervalMs\", f23282q);\n long j = currentTimeMillis + ((long) f23282q);\n mo33391b(true);\n C7045d.m30117a().mo34149a(0, j, this.f23285A);\n } catch (Throwable th) {\n C6864a.m29302d(str2, \"scheduleHeartbeat error\", th);\n }\n }", "private void beat() {\n\t\t\tSystem.out.println(\"Heart beating\");\n\t\t}", "EventChannel refresh(Context context);", "private void sendUpdateMessage() {\n Hyperium.INSTANCE.getHandlers().getGeneralChatHandler().sendMessage(\n \"A new version of Particle Addon is out! Get it at https://api.chachy.co.uk/download/ParticleAddon/\" + ChachyMod.INSTANCE.getVersion(() -> \"ParticleAddon\"));\n }", "public void scheduledUpdate() {\n\n if (isUpdating.compareAndSet(false, true)) {\n\n if (getCurrentChannel() != null) {\n\n updateData();\n }\n }\n\n timer.cancel();\n timer.purge();\n\n timer = new Timer();\n timer.scheduleAtFixedRate(new UpdateTask(), 3600000,\n 3600000);\n\n }", "@Override\n public void addHeartbeatHandler() {\n if (channel == null || !channel.isActive() || channel.pipeline() == null) {\n return;\n }\n\n ChannelPipeline pipeline = channel.pipeline();\n // re-attach the IdleStateHandler\n if (pipeline.get(IdleStateHandler.class.getSimpleName()) != null) {\n pipeline.remove(IdleStateHandler.class.getSimpleName());\n }\n // losing Heartbeat packet in succession for 3 times representing the connection is failed\n pipeline.addFirst(IdleStateHandler.class.getSimpleName(),\n new IdleStateHandler(getHeartbeatInterval() * 3, getHeartbeatInterval(), 0, TimeUnit.MILLISECONDS));\n\n // re-attach the HeartbeatHandler\n if (pipeline.get(HeartbeatHandler.class.getSimpleName()) != null) {\n pipeline.remove(HeartbeatHandler.class.getSimpleName());\n }\n if (pipeline.get(TCPMsgHandler.class.getSimpleName()) != null) {\n pipeline.addBefore(TCPMsgHandler.class.getSimpleName(), HeartbeatHandler.class.getSimpleName(),\n new HeartbeatHandler(this));\n }\n }", "boolean hasHeartBeatMsg();", "private void scheduleHeartBeatThread() {\n if (scheduler == null) {\n scheduler = Executors.newSingleThreadScheduledExecutor(\n Threads.createDaemonThreadFactory(\"program-heart-beat\"));\n scheduler.scheduleAtFixedRate(\n () -> {\n Map<String, String> properties = new HashMap<>();\n properties.put(ProgramOptionConstants.PROGRAM_RUN_ID, GSON.toJson(programRunId));\n properties.put(ProgramOptionConstants.HEART_BEAT_TIME,\n String.valueOf(System.currentTimeMillis()));\n // publish as heart_beat type, so it can be handled appropriately at receiver\n programStatePublisher.publish(Notification.Type.PROGRAM_HEART_BEAT, properties);\n LOG.trace(\"Sent heartbeat for program {}\", programRunId);\n }, heartBeatIntervalSeconds,\n heartBeatIntervalSeconds, TimeUnit.SECONDS);\n }\n }", "@SideOnly(Side.CLIENT)\n private void channelTickClient()\n {\n }", "@Override\n public void run() {\n final long currentTimeMillis = System.currentTimeMillis();\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(heartbeat + \" HeartbeatProcessor ...\");\n }\n if (!heartbeat.getSkillState().equals(State.READY)) {\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"No heartbeat because this skill has not yet joined the network.\");\n }\n return;\n }\n\n // send heartbeats after waiting at least the specified duration\n final long outboundHeartbeatReceivedThresholdMillis = currentTimeMillis - OUTBOUND_HEARTBEAT_PERIOD_MILLIS;\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\" \" + outboundParentHeartbeatInfo);\n }\n if (outboundParentHeartbeatInfo.heartbeatSentMillis < outboundHeartbeatReceivedThresholdMillis) {\n sendHeartbeat(outboundParentHeartbeatInfo, heartbeat);\n }\n }", "void reportHeartbeat();", "protected void sendHeartbeat(\n final OutboundHeartbeatInfo outboundHeartbeatInfo,\n final AbstractSkill heartbeat) {\n //Preconditions\n assert outboundHeartbeatInfo != null : \"inboundHeartbeatInfo must not be null\";\n assert heartbeat != null : \"heartbeat must not be null\";\n\n final Message message = new Message(\n heartbeat.getQualifiedName(), // senderQualifiedName\n heartbeat.getClass().getName(), // senderService\n outboundHeartbeatInfo.recipentQualifiedName,\n outboundHeartbeatInfo.service,\n AHCSConstants.KEEP_ALIVE_INFO); // operation\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\" dispatching keep-alive message\");\n LOGGER.debug(\" from \" + heartbeat.getQualifiedName());\n LOGGER.debug(\" to \" + outboundHeartbeatInfo.recipentQualifiedName);\n }\n sendMessageViaSeparateThread(\n null, // receivedMessage, which is null because this is triggered by a timer\n message);\n\n outboundHeartbeatInfo.heartbeatSentMillis = System.currentTimeMillis();\n }", "public void updatePeriodic() {\r\n }", "edu.usfca.cs.dfs.StorageMessages.HeartBeat getHeartBeatMsg();", "public void keepAlive() throws IOException {\n long currentTimeMillis = clock.currentTimeMillis();\n\n if (currentTimeMillis - lastTxMillis > TX_HEARTBEAT_INTERVAL_MILLIS)\n send(heartbeatMessageType);\n\n if (currentTimeMillis - lastRxMillis > RX_HEARTBEAT_TIMEOUT_MILLIS)\n handleHeartbeatTimeout();\n }", "public abstract void updateWhatsOn();", "private void requestThread() {\n while (true) {\n long elapsedMillis = System.currentTimeMillis() - lastHeartbeatTime;\n long remainingMillis = heartbeatMillis - elapsedMillis;\n if (remainingMillis <= 0) {\n sendHeartbeats();\n } else {\n try {\n Thread.sleep(Math.max(remainingMillis, 3));\n } catch (InterruptedException e) {\n }\n }\n }\n }", "@Override\n public void run() {\n try {\n synchronized (this) {\n output.write('\\r');\n flush();\n output.write('\\n');\n flush();\n }\n // We could write, reschedule heartbeat\n scheduleHeartBeat();\n } catch (IOException x) {\n // The other peer closed the connection\n close();\n eventSource.onClose();\n }\n }", "public boolean hasHeartBeatMsg() {\n return msgCase_ == 3;\n }", "@Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n ctx.write(\"Welcome to \" + InetAddress.getLocalHost().getHostName() + \"!\\r\\n\");\n ctx.write(\"It is \" + new Date() + \" now.\\r\\n\");\n ctx.flush();\n }", "private void handleHeartbeat(AppendEntries appendEntries) {\n\n AppendEntriesReply reply;\n\n this.isHeartbeat.set(true);\n\n do {\n\n try {\n long duration = this.raftProperties.getHeartbeat().toMillis() - (System.currentTimeMillis() - this.communicationStart.get());\n if (duration > 0)\n Thread.sleep(duration);\n } catch (InterruptedException e) {\n return;\n }\n\n this.communicationStart.set(System.currentTimeMillis());\n\n try {\n reply = (AppendEntriesReply) this.sendRPCHandler(() -> this.outbound.appendEntries(this.targetServerName, appendEntries));\n } catch (InterruptedException e) {\n return;\n }\n\n } while (reply == null);\n\n AppendEntriesReply finalReply = reply;\n this.taskExecutor.execute(() -> this.consensusModule.appendEntriesReply(finalReply, this.targetServerName));\n\n }", "public void publishHeartbeat(RoutingContext routingContext) {\n LOGGER.debug(\"Info: publishHeartbeat method starts;\");\n JsonObject requestJson = routingContext.getBodyAsJson();\n HttpServerRequest request = routingContext.request();\n HttpServerResponse response = routingContext.response();\n String instanceID = request.getHeader(HEADER_HOST);\n JsonObject authenticationInfo = new JsonObject();\n authenticationInfo.put(API_ENDPOINT, \"/iudx/v1/adapter\");\n requestJson.put(JSON_INSTANCEID, instanceID);\n if (request.headers().contains(HEADER_TOKEN)) {\n authenticationInfo.put(HEADER_TOKEN, request.getHeader(HEADER_TOKEN));\n authenticator.tokenInterospect(requestJson.copy(), authenticationInfo, authHandler -> {\n if (authHandler.succeeded()) {\n Future<JsonObject> brokerResult = managementApi.publishHeartbeat(requestJson, databroker);\n brokerResult.onComplete(brokerResultHandler -> {\n if (brokerResultHandler.succeeded()) {\n LOGGER.debug(\"Success: Published heartbeat\");\n handleSuccessResponse(response, ResponseType.Ok.getCode(),\n brokerResultHandler.result().toString());\n } else {\n LOGGER.debug(\"Fail: Unauthorized;\" + authHandler.cause().getMessage());\n processBackendResponse(response, brokerResultHandler.cause().getMessage());\n }\n });\n } else {\n LOGGER.debug(\"Fail: Unauthorized;\" + authHandler.cause().getMessage());\n handleResponse(response, ResponseType.AuthenticationFailure);\n }\n });\n } else {\n LOGGER.info(\"Fail: Unauthorized\");\n handleResponse(response, ResponseType.AuthenticationFailure);\n }\n }", "@Override\n public void heartRate(int valueHr, int timestamp) {\n }", "@Override\n\tpublic void update(long interval) {\n\n\t}", "public static void playCHigh() throws InterruptedException\n\t{\n\t\tchannels[channel].noteOn( 72, volume );//C\n\t\tThread.sleep(200);\n\t}", "@Override\n public void process(ChannelHandlerContext ctx, Node node, Message message) {\n if (logger.isTraceEnabled()) {\n logger.trace(\" receive heartbeat, host: {}, seq: {}\", node, message.getSeq());\n }\n }", "public boolean hasHeartBeatMsg() {\n return msgCase_ == 3;\n }", "@Override\r\n\tpublic void onChannelSuccess() {\n\t\t\r\n\t}", "@ApiModelProperty(required = true, value = \"\")\n public Integer getHeartbeatInterval() {\n return heartbeatInterval;\n }", "int getHeartRate();", "public void update()\n {\n tick++;\n if (this.part != null)\n {\n for (UpdatedLabel label : dataLabels)\n {\n label.update();\n }\n int c = 0;\n for (Entry<MechanicalNode, ForgeDirection> entry : part.node.getConnections().entrySet())\n {\n if (entry.getKey() != null)\n {\n this.connections[c].setText(\"Connection\" + c + \": \" + entry.getKey());\n c++;\n }\n }\n for (int i = c; i < connections.length; i++)\n {\n this.connections[i].setText(\"Connection\" + i + \": NONE\");\n }\n }\n }", "edu.usfca.cs.dfs.StorageMessages.HeartBeatOrBuilder getHeartBeatMsgOrBuilder();", "public void update(long ms) {\n\t\t\n\t}", "private void sendUpdateConnectionInfo() {\n\n }", "@Override\n public void update() {\n updateBuffs();\n }", "@Override\n public void heartRateInterval(int valueHri, int timestamp) {\n }", "long getLastHeartbeat();", "@Override\r\n\tpublic void updateConsumer(Consumer con) {\n\r\n\t}", "public void periodicUpdate();", "@Override\n\tpublic void update(CcNoticereceive entity) {\n\t\t\n\t}", "@Override\r\n public void update(String message) {\r\n send(message);\r\n }", "@Override\n public void run(){\n while(true){\n ArrayList<Thread> threads = new ArrayList<Thread>();\n \n //construct the string\n String message = String.format(\"hb|%d|%d\", serverPort, sequence);\n\n //have a thread to send heart beat\n for(ServerInfo peer : serverStatus.keySet()){\n //pass it to the client runnable\n Thread thread = new Thread(new SenderRunnable(peer, message));\n threads.add(thread);\n thread.start();\n }\n\n //wait for the completion\n for(Thread thread : threads){\n try{\n thread.join();\n }catch(Exception e){}\n \n \n }\n\n //increment the sequence by 1\n sequence += 1;\n\n //sleep for 2 secs\n try{\n Thread.sleep(2000);\n }catch(InterruptedException e){\n //System.err.println(e);\n }\n\n }\n }", "public Builder setHeartBeatMsg(edu.usfca.cs.dfs.StorageMessages.HeartBeat value) {\n if (heartBeatMsgBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n msg_ = value;\n onChanged();\n } else {\n heartBeatMsgBuilder_.setMessage(value);\n }\n msgCase_ = 3;\n return this;\n }", "Update withSource(EventChannelSource source);", "private void receivedMessage(ChannelHandlerContext channelHandlerContext, ByteBuf response) {\n String message = new String(getByteArray(response));\n if (message.contains(\"Heartbeat\")) {\n logger.info(\"Received Heartbeat message\");\n channelHandlerContext.fireUserEventTriggered(response);\n } else {\n clientChannelHandlerObserver.processResponse(getByteArray(response));\n }\n }", "@Override\n public void channelActive(final ChannelHandlerContext ctx) throws UnknownHostException {\n System.err.println(\"处于活连接\");\n //ctx.writeAndFlush(\"Welcome to secure chat service!\\n\");\n }", "public void update() {\n\t\tif (this.currentLoginState == LoginState.READY_TO_ACCEPT) {\n\t\t\tthis.tryAcceptPlayer();\n\t\t}\n\n\t\tif (this.connectionTimer++ == 600) {\n\t\t\tthis.closeConnection(\"Took too long to log in\");\n\t\t}\n\t}", "@Override\n public void doUpdate(NotificationMessage notification) {\n \n }", "@Override\n\t\t\t\t\t\tpublic void channelActive(ChannelHandlerContext ctx) {\n\t\t\t\t\t\t\tSystem.out.println(RestResult.success(\"channel active!\"));\n\t\t\t\t\t\t}", "private void updateChannelObject() {\n int i = channelSelect.getSelectedIndex();\n Channel c = channelList.get(i);\n \n double a = Double.valueOf(ampBox.getText()) ;\n double d = Double.valueOf(durBox.getText());\n double f = Double.valueOf(freqBox.getText());\n double o = Double.valueOf(owBox.getText());\n \n c.updateSettings(a, d, f, o);\n }", "public synchronized void update() {\n localMemberHealth.setHeartbeat(localMemberHealth.getHeartbeat() + 1);\n long currentTime = System.currentTimeMillis();\n List<MemberHealth> removals = new ArrayList<>();\n for (MemberHealth memberHealth : memberHealths) {\n if (currentTime - memberHealth.getLastSeen() > 5500) {\n removals.add(memberHealth);\n } else if (currentTime - memberHealth.getLastSeen() > 2750) {\n if (!memberHealth.hasFailed() && !memberHealth.hasLeft()) {\n memberHealth.setHasFailed(true);\n logger.logLine(Logger.INFO, \"Member: \" + memberHealth.getId() + \" has failed\");\n }\n } else {\n if (memberHealth.hasFailed()) {\n logger.logLine(Logger.INFO, \"Member: \" + memberHealth.getId() + \" has rejoined\");\n }\n memberHealth.setHasFailed(false);\n }\n }\n for (MemberHealth memberHealth : removals) {\n memberHealths.remove(memberHealth);\n logger.logLine(Logger.INFO, \"Member: \" + memberHealth.getId() + \" has been removed\");\n }\n }", "public boolean hasHeartBeatResponse() {\n return msgCase_ == 4;\n }", "public void update(Conseiller c) {\n\t\t\r\n\t}", "@Override\n public void update() {\n String msg = (String) topic.getUpdate(this);\n if(msg == null){\n System.out.println(this.imeRonioca + \" no new messages\");\n }else{\n System.out.println(this.imeRonioca + \" consuming message: \" + msg);\n }\n }", "public void invalidateTickerHeartbeat() {\n\t\t// Invalidate last tick timetamps\n\t\tsynchronized (lastTick) {\n\t\t\tlastTickTimestamp.clear();\t\n\t\t}\n\t}", "@Override\r\n\tpublic void update(WechatMember member) {\n\t\t\r\n\t}", "public void update() {\n Dashboard.sendToDash(\"/update Servo \" + id + \" \" + servo.getPosition());\n }", "public edu.usfca.cs.dfs.StorageMessages.HeartBeat getHeartBeatMsg() {\n if (msgCase_ == 3) {\n return (edu.usfca.cs.dfs.StorageMessages.HeartBeat) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.HeartBeat.getDefaultInstance();\n }", "private void updateNewsTicker() {\n createExchangeLabel();\n }", "@Override\r\n public void update() {\n String msg = (String) topic.getUpdate(this);\r\n\t\tif(msg == null){\r\n\t\t\tSystem.out.println(name+\":: No new message\");\r\n\t\t}else{\r\n card.show(this.getContentPane(), msg);\r\n }\r\n System.out.println(name+\":: Consuming message::\"+msg);\r\n \r\n }", "private void resetHeartbeatTimer() {\n if (heartbeatScheduledFuture != null && !heartbeatScheduledFuture.isDone()) {\n heartbeatScheduledFuture.cancel(true);\n }\n heartbeatScheduledFuture = scheduledExecutorService.schedule(new Runnable() {\n @Override\n public void run() {\n startNewHeartbeat();\n }\n }, raftOptions.getHeartbeatPeriodMilliseconds(), TimeUnit.MILLISECONDS);\n }", "public void gainHealth()\n\t{\n\t\tSystem.out.println(\"1 heart gained\");\n\t}", "public void receivedUpdateFromServer();", "@Override()\n public void update() {\n showSeparator(' ');\n \n // Update time display\n showTime(alarmTime);\n \n // Clear weekday Selector\n for(int i = 0; i < DAYS.length; i++) {\n clock.getDigit(2).setText(i+2, DAYS[i]);\n }\n // Update weekday selector\n String str;\n for(int i = 0; i < DAYS.length; i++){\n str = DAYS[i];\n if(days[i]){\n str = \">\"+DAYS[i]+\"<\";\n }\n clock.getDigit(2).setText(i+2,str); \n }\n String activeText = alarm.active ? \"Disable\" : \"Enable\";\n clock.getDigit(2).setText(10, activeText);\n }", "public void update(int time);", "public boolean hasHeartBeatResponse() {\n return msgCase_ == 4;\n }", "@Override\n public void userEventTriggered(ChannelHandlerContext channelHandlerContext, Object evt) throws Exception {\n if (evt instanceof IdleStateEvent) {\n\n\n if (((IdleStateEvent) evt).state() == IdleState.READER_IDLE) {\n\n NettyAndroidClient nettyAndroidClient = LUCIControl.luciSocketMap.get(ipadddress);\n LSSDPNodeDB mNodeDB1 = LSSDPNodeDB.getInstance();\n LSSDPNodes mNode = mNodeDB1.getTheNodeBasedOnTheIpAddress(ipadddress);\n //Log.d(\"Scan_Netty\", \"Triggered Heartbeeat check\") ;\n if (nettyAndroidClient==null) {\n\n return;\n }\n if(mNode != null) {\n LibreLogger.d(this, \"HeartBeatHandler Last Notified Time \" + nettyAndroidClient.getLastNotifiedTime() +\n \" For the Ip \" + nettyAndroidClient.getRemotehost() + \"Device Name \" + mNode.getFriendlyname()) ;\n }else{\n LibreLogger.d(this, \"HeartBeatHandler Last Notified Time \" + nettyAndroidClient.getLastNotifiedTime() +\n \" For the Ip \" + nettyAndroidClient.getRemotehost());\n }\n\n /* If we are Missing 6 Alive notification */\n if(( System.currentTimeMillis()- (nettyAndroidClient.getLastNotifiedTime()))>60000){\n /*\n Removing the connection as we have not got any notiication from long time\n */\n\n\t\t\t\t\t/* Commented for New TCP based Discovery , where Ping is not required*/\n //if(!ping(ipadddress))\n {\n /*Commenting As per the HAri Comments*/\n //RemovingTheCorrespondingSceneMapFromCentralDB(channelHandlerContext,ipadddress,mNode);\n\n // Send Commands To UI that Device is Removed .\n Log.d(\"Scan_Netty\", ipadddress + \"Socket removed becuase we did not get notification since last 11 second\");\n Log.d(HeartbeatHandler.class.getName(), ipadddress + \"Socket removed becuase we did not get notification since last 11 second\");\n }\n }\n }\n }\n }", "@Override\n public void update(Map conf) {\n LOG.info(\"Receive configuration {}\", conf);\n this.conf.putAll(conf);\n \n isSlowdown = JStormUtils.parseBoolean(conf.get(BOLT_SLOW_DOWN), true);\n }", "@Scheduled(cron = \"0 5 21 ? * THU,SUN\")\n @Async\n protected void updatePowerBallBote() throws IOException {\n LOGGER.info(\"update powerBall bote\");\n americanaService.updatePowerBallBote();\n\n }", "private void constructHeartbeatMessage() {\n // build head\n MessageProtobuf.Head.Builder headBuilder = MessageProtobuf.Head.newBuilder();\n headBuilder.setMsgId(UUID.randomUUID().toString());\n headBuilder.setMsgType(MsgConstant.MsgType.HEARTBEAT_MESSAGE);\n headBuilder.setTimeStamp(System.currentTimeMillis());\n\n // build message\n MessageProtobuf.Msg.Builder builder = MessageProtobuf.Msg.newBuilder();\n builder.setHead(headBuilder.build());\n\n defaultHeartbeatMessage = builder.build();\n }", "HeartbeatProcessor(final Heartbeat heartbeat) {\n //Preconditions\n assert heartbeat != null : \"heartbeat must not be null\";\n\n this.heartbeat = heartbeat;\n }", "public void channelChanged(){\r\n if(channel.getText().equals(\"\") || Integer.parseInt(channel.getText())<1 || Integer.parseInt(channel.getText())>83){\r\n System.out.println(\"Channel out of range! resetting to channel 1...\");\r\n channel.setText(\"1\");\r\n System.out.println(\"New Channel: \"+channel.getText());\r\n }\r\n else\r\n System.out.println(\"New Channel: \"+channel.getText());\r\n\r\n }", "@Override\r\n\tpublic void changeChannel(int channel) {\n\t\tSystem.out.println(\"채널을 바꾸다\");\r\n\t}", "void notifyConnected(MessageSnapshot snapshot);", "private void updateChannels(List<YouTubeData> channels) {\n // keep mChannels null if no results\n if (channels.size() > 0) {\n mChannels = channels;\n\n // notify anyone who cares\n EventBus.getDefault().post(new BusEvents.ContentEvent());\n }\n }", "public void update() {\r\n \t\tif(regenerateHealth && !isDead) {\r\n \t\t\tthis.health += healthRegen*1000*(\r\n \t\t\t\t\tSystem.currentTimeMillis()-lastRegTime);\r\n \t\t}\r\n \t}", "public edu.usfca.cs.dfs.StorageMessages.HeartBeatOrBuilder getHeartBeatMsgOrBuilder() {\n if (msgCase_ == 3) {\n return (edu.usfca.cs.dfs.StorageMessages.HeartBeat) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.HeartBeat.getDefaultInstance();\n }", "public void notifyListener() {\n\t\tbuffer.putInt(1);\n\t\tbuffer.flip();\n\t\tsocketLock.lock();\n\t\ttry {\n\t\t\tnotifyChannel.write(buffer);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"[Turing Server] Non è stato possibile notificare il client.\");\n\t\t}\n\t\tsocketLock.unlock();\n\t\tbuffer.clear();\n\t}" ]
[ "0.67919916", "0.6728366", "0.6693648", "0.6410582", "0.63875186", "0.63160515", "0.62329805", "0.61322635", "0.59698355", "0.59551036", "0.59009165", "0.58417034", "0.5797959", "0.5767417", "0.5738925", "0.57091343", "0.57060784", "0.56377167", "0.5626365", "0.562496", "0.56066567", "0.5602261", "0.5594786", "0.5580373", "0.55790055", "0.5573333", "0.557091", "0.55407876", "0.5490203", "0.5473601", "0.54612356", "0.5425524", "0.54234976", "0.54033226", "0.5395576", "0.5392392", "0.5377708", "0.5365114", "0.5363544", "0.5359729", "0.532689", "0.53237283", "0.53139496", "0.53115684", "0.5296539", "0.52948064", "0.52940816", "0.52928644", "0.52663314", "0.52585995", "0.5257579", "0.5251049", "0.52412844", "0.52326787", "0.5228926", "0.52221555", "0.52156186", "0.52050704", "0.5202103", "0.5187398", "0.51841736", "0.51833886", "0.5180839", "0.51652426", "0.5151974", "0.5147841", "0.5144186", "0.5143402", "0.5133981", "0.51307535", "0.5129884", "0.5129731", "0.51201063", "0.5119511", "0.51175666", "0.51150405", "0.5105227", "0.50986266", "0.50954294", "0.5090985", "0.5090421", "0.5080528", "0.5074964", "0.5070638", "0.5068179", "0.50666547", "0.5065746", "0.50631106", "0.5047437", "0.5046737", "0.5044213", "0.50434595", "0.50429916", "0.50349826", "0.5031231", "0.5014359", "0.5013613", "0.50066835", "0.49977675", "0.49942046" ]
0.6885871
0
Get a set with active symbols
public Set<BitfinexStreamSymbol> getActiveSymbols() { synchronized (lastTick) { return lastTick.keySet(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TreeSet < Symbol > getNotRemoveableSymbolsFromAlphabet ()\n {\n TreeSet < Symbol > set = new TreeSet < Symbol > ();\n if ( this.regexNode == null )\n {\n return set;\n }\n for ( LeafNode l : this.regexNode.getTokenNodes () )\n {\n if ( l instanceof TokenNode )\n {\n set.add ( new DefaultSymbol ( ( ( TokenNode ) l ).getName () ) );\n }\n else if ( l instanceof CharacterClassNode )\n {\n CharacterClassNode c = ( CharacterClassNode ) l;\n set.addAll ( c.getCharacters () );\n }\n }\n return set;\n }", "@Override\n\t public Set<Symbol> getSymbols() {\n\t return Collections.unmodifiableSet(symbols);\n\t }", "public static Set<Symbol> getSymbols(SymbolTable st) {\n Set<Symbol> ret = new LinkedHashSet<Symbol>();\n if (st == null) {\n return ret;\n }\n for (IDExpression key : getTable(st).keySet()) {\n if (key instanceof Identifier) {\n Symbol symbol = ((Identifier)key).getSymbol();\n if (symbol != null) {\n ret.add(symbol);\n }\n }\n }\n return ret;\n }", "@Override\n public Set<ObjectLabel> getSymbols() {\n if (object_labels == null)\n return Collections.emptySet();\n Set<ObjectLabel> s = newSet();\n for (ObjectLabel objlabel : object_labels)\n if (objlabel.getKind() == Kind.SYMBOL)\n s.add(objlabel);\n return s;\n }", "private HashSet < Symbol > getUsedSymbols ()\n {\n HashSet < Symbol > symbols = new HashSet < Symbol > ();\n for ( LeafNode l : this.regexNode.getTokenNodes () )\n {\n if ( l instanceof TokenNode )\n {\n TokenNode t = ( TokenNode ) l;\n symbols.add ( new DefaultSymbol ( t.getName () ) );\n }\n }\n return symbols;\n }", "public Set<E> getActiveFlags();", "public List<Character> getSymbolList () {\n if (symbolList.contains('ε')) {\n symbolList.remove(symbolList.indexOf('ε'));\n }\n return this.symbolList;\n }", "public List<String> getActiveSetNames()\n {\n List<String> names = New.list(myActiveSetConfig.getSetNames());\n names.remove(USER_ACTIVATED_SET_NAME);\n return names;\n }", "private Set<Glyph> retrieveFlags ()\r\n {\r\n Set<Glyph> foundFlags = new HashSet<>();\r\n\r\n for (Glyph glyph : getSystem().getInfo().getGlyphs()) {\r\n Shape shape = glyph.getShape();\r\n\r\n if (ShapeSet.Flags.contains(shape)) {\r\n if (glyph.getTranslations().contains(this)) {\r\n foundFlags.add(glyph);\r\n }\r\n }\r\n }\r\n\r\n return foundFlags;\r\n }", "public Set<Character> alphabet(){\n\t\tSet<Character> a = new HashSet<Character>();\n\t\ta.addAll(gauche.alphabet());\n\t\ta.addAll(droit.alphabet());\n\t\treturn a;\n\t}", "public Set<Entry> getSet() {\n Set<Entry> litSet = this.litRegister;\n return litSet;\n }", "public EList<GenClass> getActiveStartSymbols() {\n \t\tEList<GenClass> symbols = new BasicEList<GenClass>();\n \t\tsymbols.addAll(getStartSymbols());\n \t\tif (symbols.size() > 0) {\n \t\t\treturn symbols;\n \t\t}\n \t\t\n \t\tEList<Import> imports = getImports();\n \t\tfor (Import importedElement : imports) {\n \t\t\tfinal ConcreteSyntax importedSyntax = importedElement.getConcreteSyntax();\n \t\t\tif (importedSyntax != null) {\n \t\t\t\tsymbols.addAll(importedSyntax.getActiveStartSymbols());\n \t\t\t}\n \t\t}\n \t\treturn symbols;\n \t}", "public Set<String> getAllCharacters() {\n\t\treturn characterStates.keySet();\n\t}", "public Set<Character> distincts() {\n return jumble.keySet();\n }", "@Override \n public Set<String> keySet() {\n \n \n // definido um set onde colocar o resultado\n Set<String> r = new HashSet<>();\n \n try {\n \n // abre uma conecção\n conn = Connect.connect();\n \n // abrir um statment com a querie que temos de executar\n PreparedStatement stm = conn.prepareStatement(\"SELECT nome FROM Componente WHERE visivel=TRUE;\");\n \n \n // o resultado colocado em rs\n ResultSet rs = stm.executeQuery();\n \n while (rs.next()) // enquanto existir o next\n r.add(rs.getString(\"nome\")); // adiciona o aluno\n } catch (SQLException | ClassNotFoundException e) {\n e.printStackTrace();\n } finally {\n Connect.close(conn);\n }\n return r;\n }", "protected HashSet getNoMnemonic(){\n return tester.noMnemonic;\n }", "Set<String> getKeys();", "public static Set<String> createSet() {\n Set<String> set = new HashSet<>();\n set.add(\"lesson\");\n set.add(\"large\");\n set.add(\"link\");\n set.add(\"locale\");\n set.add(\"love\");\n set.add(\"light\");\n set.add(\"limitless\");\n set.add(\"lion\");\n set.add(\"line\");\n set.add(\"lunch\");\n set.add(\"level\");\n set.add(\"lamp\");\n set.add(\"luxurious\");\n set.add(\"loop\");\n set.add(\"last\");\n set.add(\"lie\");\n set.add(\"lose\");\n set.add(\"lecture\");\n set.add(\"little\");\n set.add(\"luck\");\n\n return set;\n }", "@JsonIgnore\n public Collection<Symbol> getSymbols() {\n return symbols;\n }", "Set<String> getUniqueCharacterStrings();", "public static Set<Character> symbols(String str) {\n\t\tSet<Character> set = new HashSet<Character>();\n\t\tfor (int i=0; i<str.length(); i++) {\n\t\t\tchar ch = str.charAt(i);\n\t\t\tset.add(ch);\n\t\t}\n\t\treturn set;\n\t}", "public List<Preference<CharacterSet>> getAcceptedCharacterSets() {\n // Lazy initialization with double-check.\n List<Preference<CharacterSet>> a = this.acceptedCharacterSets;\n if (a == null) {\n synchronized (this) {\n a = this.acceptedCharacterSets;\n if (a == null) {\n this.acceptedCharacterSets = a = new ArrayList<Preference<CharacterSet>>();\n }\n }\n }\n return a;\n }", "Set<String> getGameShortcodes();", "@Override \n public Set<String> keySet() {\n \n \n // definido um set onde colocar o resultado\n Set<String> r = new HashSet<>();\n \n try {\n \n // abre uma conecção\n conn = Connect.connect();\n \n // abrir um statment com a querie que temos de executar\n PreparedStatement stm = conn.prepareStatement(\"SELECT nomePacote FROM Pacote WHERE visivel=TRUE;\");\n \n \n // o resultado colocado em rs\n ResultSet rs = stm.executeQuery();\n \n while (rs.next()) // enquanto existir o next\n r.add(rs.getString(\"nomePacote\")); \n } catch (SQLException | ClassNotFoundException e) {\n e.printStackTrace();\n } finally {\n Connect.close(conn);\n }\n return r;\n }", "public static Set<Symbol> getGlobalSymbols(Traversable t) {\n while (true) {\n if (t instanceof TranslationUnit) {\n break;\n }\n t = t.getParent();\n }\n TranslationUnit t_unit = (TranslationUnit)t;\n return getVariableSymbols(t_unit);\n }", "public static Set<Symbol> getLocalSymbols(Traversable t) {\n Set<Symbol> ret = new LinkedHashSet<Symbol>();\n if (t == null) {\n return ret;\n }\n DFIterator<SymbolTable> iter =\n new DFIterator<SymbolTable>(t, SymbolTable.class);\n while (iter.hasNext()) {\n ret.addAll(getSymbols(iter.next()));\n }\n return ret;\n }", "@Override\n public Set keySet() {\n OmaLista palautettava = new OmaLista();\n\n for (int i = 0; i < this.values.length; i++) {\n if (this.values[i] != null) {\n for (int z = 0; z < this.values[i].size(); z++) {\n palautettava.add(this.values[i].value(z).getKey());\n }\n }\n }\n\n return palautettava;\n }", "public KeySet getKeys();", "public CharArraySet get() {\n return build();\n }", "public Set<String> keySet()\n\t{\n\t\tverifyParseState();\n\t\t\n\t\treturn values.keySet();\n\t}", "private static Set<String> getCurrencySet() {\n Set<String> currencySet = new HashSet<>();\n for (int i= 0; i<getDataBase().length;i++){\n currencySet.add(getDataBase()[i][0]);\n }\n return Collections.synchronizedSet(currencySet);\n }", "public static void main(String[] args) {\nString str = \"java,C, Java\";\r\nStringBuffer sf = new StringBuffer();\r\nSet<Character> set = new HashSet<>();\r\nfor(int i=0;i<str.length();i++)\r\n{\r\nchar c=str.charAt(i);\r\nif(!set.contains(c))\r\n{\r\nset.add(c);\r\n//System.out.println(set);\r\n\r\nsf.append(c);\r\n\r\n//Set s = new Set();\r\n}\r\n}\r\nSystem.out.println(set);\r\nSystem.out.println(sf.toString());\r\n}", "Set<K> keys();", "RegSet[] used() {\r\n RegSet[] used = new RegSet[code.length];\r\n for (int i = 0; i < code.length; i++) \r\n\tused[i] = code[i].used();\r\n return used;\r\n }", "public Set<Glyph> getFlagGlyphs ()\r\n {\r\n return flagGlyphs;\r\n }", "public Set<Identifier> keySet() {\n return Collections.unmodifiableSet(container.keySet());\n }", "public static Collection<Character> getWhitelist(){\n\t\treturn new HashSet<Character>(kanjiWhitelist);\n\t}", "public final synchronized Set<String> m111z() {\n return this.f112Y.keySet();\n }", "protected HashSet getWrongMnemonic(){\n return tester.wrongMnemonic;\n }", "public Set<Character> getExtensionKeys() {\n/* 1006 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public Set<State> getTransitionSet(Set<State> fromSet, char letter) {\n\t\treturn null;\n\t}", "Map<String, OperationalSets> getSets();", "public Iterator iterator()\n {\n return new HashSetIterator();\n }", "public Iterator<Character> getDefinedChars() {\n\t\tSortedSet<Character> dest = new TreeSet<Character>();\n\t\tSet<Key<?>> keys = properties.keys(ObservableProperties.DEFAULT);\n\t\tfor (Key<?> key : keys) {\n\t\t\tObject t = properties.get(key);\n\t\t\tif (t instanceof WritingShape && key.toString().length() == 1) {\n\t\t\t\tdest.add(key.toString().charAt(0));\n\t\t\t}\n\t\t}\n\t\treturn dest.iterator();\n\t}", "public LinkedHashSet<Spot> getSpotSet() {\n if (spotSet == null) {\n spotSet = new LinkedHashSet<>();\n for (int x = 0; x < WIDTH; x++) {\n for (int y = 0; y < HEIGHT; y++) {\n spotSet.add(board[x][y]);\n }\n }\n }\n return spotSet;\n }", "public abstract Collection<Turtle> getActiveTurtles();", "public Set<T> m37700a() {\n return new LinkedHashSet();\n }", "HSet keySet();", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<String> getCustomerActiveSet() {\r\n\t\treturn (List<String>)getHibernateTemplate().find(\"SELECT DISTINCT customerName FROM CardIssue WHERE status='Active'\");\r\n\t}", "public Set<String> getClassKeys();", "Set<K> keySet();", "public Set<String> getFeatures();", "Set<String> getOsPSet();", "public List<Set> getSets() {\n\t\treturn this.sets;\n\t}", "public Set<String> getActiveGroupIds()\n {\n return myActiveGroups.stream().filter(g -> !g.activationProperty().isActivatingOrDeactivating()).map(g -> g.getId())\n .collect(Collectors.toSet());\n }", "Set<String> getDictionary();", "private static final String renderStateAsSymbolList(Set<GdlSentence> theState) {\n\t\tString s = \"( \";\n\t\tfor (GdlSentence sent : theState) {\n\t\t\tString sentString = sent.toString();\n\t\t\ts += sentString.substring(6, sentString.length() - 2).trim() + \" \";\n\t\t}\n\t\treturn s + \")\";\n\t}", "public Set keyNames() {\n return new LinkedHashSet<>( asList( idName() ) );\n }", "public static synchronized Set<Class<?>> keySet() {\n\t\treturn ClassRegistry.dictionary.keySet();\n\t}", "Set<X> toSet();", "@Override\r\n\tpublic CharacterStateSet createCharacterStateSet() {\r\n\t\tCharacterStateSetImpl characterStateSet = new CharacterStateSetImpl(getDocument());\r\n\t\tList<Element> currentCharElements = getChildrenByTagName(getFormatElement(), \"char\");\r\n\t\tList<Element> currentSetElements = getChildrenByTagName(getFormatElement(), \"set\");\r\n\t\tif ( ! currentCharElements.isEmpty() ) {\r\n\t\t\tElement firstCharElement = currentCharElements.get(0);\r\n\t\t\tgetFormatElement().insertBefore(characterStateSet.getElement(), firstCharElement);\r\n\t\t}\r\n\t\telse if ( ! currentSetElements.isEmpty() ) {\r\n\t\t\tElement firstSetElement = currentSetElements.get(0);\r\n\t\t\tgetFormatElement().insertBefore(characterStateSet.getElement(), firstSetElement);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tgetFormatElement().appendChild( characterStateSet.getElement() );\r\n\t\t}\r\n\t\tmCharacterStateSets.add(characterStateSet);\r\n\t\treturn characterStateSet;\r\n\t}", "public Set<Map.Entry<Integer, String>> entrySet() {\n return Collections.unmodifiableSet(getMacrosses().entrySet());\n }", "public Set keySet() {\n\treturn table.keySet();\n }", "public Set<String> getVariablesWithin(String exp) {\r\n Set<String> all=new TreeSet<String>(String.CASE_INSENSITIVE_ORDER);\r\n String add=null;\r\n\r\n for(StringTokenizer tkz=new StringTokenizer(exp,SYMBOLS,true); tkz.hasMoreTokens(); ) {\r\n String tkn=tkz.nextToken().trim();\r\n\r\n if (tkn.length()!=0 && Character.isLetter(tkn.charAt(0))) { add=tkn; }\r\n else if(tkn.length()==1 && tkn.charAt(0)=='(' ) { add=null; }\r\n else if(add!=null && !constants.containsKey(add) ) { all.add(add); }\r\n }\r\n if(add!=null && !constants.containsKey(add)) { all.add(add); }\r\n return all;\r\n }", "public Collection<String > getResult(){\n Collection<String> result = new HashSet<String>();\n result.add(\"A\");\n result.add(\"B\");\n result.add(\"C\");\n result.add(\"D\");\n return result;\n }", "@Override \n public Set<String> keySet() {\n // definido um set onde colocar o resultado\n Set<String> r = new HashSet<>();\n try {\n // abre uma conecção\n conn = Connect.connect();\n // abrir um statment com a querie que temos de executar\n PreparedStatement stm = conn.prepareStatement(\"SELECT username FROM Administrador WHERE visivel=TRUE;\");\n // o resultado colocado em rs\n ResultSet rs = stm.executeQuery();\n while (rs.next()) // enquanto existir o next\n r.add(rs.getString(\"username\")); // adiciona o aluno\n } catch (SQLException | ClassNotFoundException e) {\n e.printStackTrace();\n } finally {\n Connect.close(conn);\n }\n return r;\n }", "public AccessibleStateSet getAccessibleStateSet() {\n/* 589 */ AccessibleStateSet accessibleStateSet = super.getAccessibleStateSet();\n/* 590 */ accessibleStateSet.add(AccessibleState.ACTIVE);\n/* 591 */ return accessibleStateSet;\n/* */ }", "protected Set<String> handleKeySet() {\n return new HashSet<String>(Arrays.asList(\"okKey\", \"cancelKey\"));\n }", "public static void main(String[] args) {\n\n Set<String> mySetList = new SetC<>();\n Set<String> hashSetList = new HashSet<>();\n\n\n\n mySetList.add(\"Тест1\"); hashSetList.add(\"Тест1\");\n mySetList.add(\"Тест2\"); hashSetList.add(\"Тест2\");\n mySetList.add(\"Тест3\"); hashSetList.add(\"Тест3\");\n\n\n\n System.out.println(\"mySetList:\"+mySetList+\"\\nhashSetList:\"+hashSetList);\n\n\n\n }", "public List<String> getStates() {\r\n \t\treturn new ArrayList<String>(new TreeSet<String>(states.keySet()));\r\n \t}", "public static char[] getModifierMapKeySetsAsCharArr() {\n if (modifierMapKeySets == null) {\n Character[] srcCharArr1 = (Character[]) (getAllPhAttribTypes().get(VowConsoSylabicy.class.getSimpleName()).getCharMap().keySet().toArray(new Character[0]));\n Character[] srcCharArr2 = (Character[]) (getAllPhAttribTypes().get(VowelLength.class.getSimpleName()).getCharMap().keySet().toArray(new Character[0]));\n Character[] srcCharArr3 = (Character[]) (getAllPhAttribTypes().get(VowelNasal.class.getSimpleName()).getCharMap().keySet().toArray(new Character[0]));\n Character[] charArr = (Character[]) ArrayUtils.addAll(srcCharArr1, srcCharArr2);\n charArr = (Character[]) ArrayUtils.addAll(charArr, srcCharArr3);\n modifierMapKeySets = ArrayUtils.toPrimitive(charArr);\n }\n return modifierMapKeySets;\n }", "public Set<IS> getFreItemSet();", "public static Set<Symbol> getAccessedSymbols(Traversable t) {\n Set<Symbol> ret = new HashSet<Symbol>();\n if (t == null) {\n return ret;\n }\n DFIterator<Identifier> iter =\n new DFIterator<Identifier>(t, Identifier.class);\n while (iter.hasNext()) {\n Symbol symbol = iter.next().getSymbol();\n if (symbol != null) {\n ret.add(symbol);\n }\n }\n return ret;\n }", "public Set<NounPhrase> getOpSet(){\n\t\tSet<NounPhrase> opSet = this.getEntConsiderPass(\"O\");\n\t\treturn opSet;\n\t}", "public Set<T> getSet () {\r\n\t\treturn _set;\r\n\t}", "public List<Key> getActiveKeys() {\n\t\tactiveKeys.clear();\n\t\t\n\t\tfor (Key key : keys) {\n\t\t\tif (key.getIsActive()) activeKeys.add(key);\n\t\t}\n\t\t\n\t\treturn activeKeys;\n\t}", "Set<String> getIdentifiers();", "@Override\n\tpublic Set<String> getWordSet() {\n\t\tlock.lockReadOnly();\n\t\ttry {\n\t\t\treturn super.getWordSet();\n\t\t} finally {\n\t\t\tlock.unlockReadOnly();\n\t\t}\n\t}", "protected Set<String> getUserActivatedGroupIds()\n {\n Set<String> result = New.set();\n DataGroupInfoActiveSet initialActiveSet = myActiveSetConfig.getSetByName(USER_ACTIVATED_SET_NAME);\n if (initialActiveSet != null)\n {\n result.addAll(initialActiveSet.getGroupIds());\n }\n return result;\n }", "public UnicodeSet getUnicodeSet() {\n/* 64 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private ISet<String> getKeySet(IList<String> words) {\n\t\tISet<String> keySet = new ChainedHashSet<String>();\n\t\tfor (String word: words) {\n\t\t\tkeySet.add(word);\n\t\t}\n\t\treturn keySet;\n }", "public K[] keySet() {\n MyStack<K> result = new MyStack<>();\n\n for (Object entry : this.table) {\n if (entry != null) {\n Entry<K, V> current = (Entry<K, V>) entry;\n\n while (current.hasNext()) {\n result.push(current.getKey());\n current = current.getNext();\n }\n result.push(current.getKey());\n }\n }\n return result.toArray();\n }", "public HashSet<String> conjProdutos(){\n return (HashSet)produtosComprados.values().stream().collect(Collectors.toSet());\n }", "@Override\n public Set<K> keySet() {\n Set<K> ks = new HashSet<>();\n keySetHelper(root, ks);\n return ks;\n// throw new UnsupportedOperationException(\"Unsupported operation, sorry!\");\n }", "private Collection<Character> m2345j() {\n HashSet hashSet = new HashSet();\n for (char valueOf : ((String) this.f2745b.mo10202a(C1096c.f2346bH)).toCharArray()) {\n hashSet.add(Character.valueOf(valueOf));\n }\n hashSet.add(Character.valueOf('\\\"'));\n return hashSet;\n }", "@Override\n\tpublic Set<K> keySet() {\n\t\tArrayList<K> claves = new ArrayList<K>();\n\t\tIterator it = tabla.iterator();\n\t\tint i = 0;\n\t\twhile (it.hasNext()) {\n\t\t\tIterator it2 = tabla.get(i).keySet().iterator();\n\t\t\tit.next();\n\t\t\tint j = 0;\n\t\t\twhile (it2.hasNext()) {\n\t\t\t\tit2.next();\n\t\t\t\tclaves.add(tabla.get(i).keySet().get(j));\n\t\t\t\tj++;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\treturn new HashSet<K>(claves);\n\t}", "@Override\n\tpublic Set<K> keySet() {\n\t\t// TODO\n\t\treturn new KeyView();\n\t}", "public Set<T> toSet()\r\n\t{\r\n\t\tSet<T> s = new HashSet<T>();\r\n//\t\tSystem.out.println(\"in toSet method\");\r\n//\t\tSystem.out.println(\"thisTable.tostring \" + this.toString());\r\n\t\tIterator<T> thisTableIter = this.iterator();\r\n\t\t\r\n\t\twhile (thisTableIter.hasNext())\r\n\t\t{\r\n\t\t\tT e = thisTableIter.next();\r\n\t\t//\tSystem.out.println(e + \" \");\r\n\t\t\ts.add(e);\r\n\t\t}\r\n\t\treturn s;\r\n\t}", "public int getCharacterSet() {\r\n return CharacterSet;\r\n }", "public static Set<String> getAvailableCharsets() {\n return allCharacterSets;\n }", "public Set keySet() {\n return map.keySet();\n }", "@Override\n public Set<T> asSet() {\n return new AbstractSet<T>() {\n @Override\n public Iterator<T> iterator() {\n return new Iterator<T>() {\n boolean foundNext;\n boolean hasNext;\n T next;\n \n private void findNext() {\n if (!foundNext) {\n hasNext = isPresent();\n if (hasNext) {\n try {\n next = get();\n } catch (NoSuchElementException e) {\n // in case there was a race and the value became absent\n hasNext = false;\n next = null;\n }\n } else {\n next = null;\n }\n foundNext = true;\n }\n }\n \n @Override\n public boolean hasNext() {\n findNext();\n return hasNext;\n }\n\n @Override\n public T next() {\n findNext();\n if (hasNext) {\n // no next after consuming the single present value \n hasNext = false;\n T ret = next;\n next = null;\n return ret;\n }\n throw new NoSuchElementException();\n }\n\n @Override\n public void remove() {\n throw new UnsupportedOperationException();\n }\n };\n }\n\n @Override\n public int size() {\n return isPresent() ? 1 : 0;\n }\n };\n }", "public Set<SymbolGroup> getGroups() {\n return groups;\n }", "public String getLetters() {\r\n\t\treturn solution.getLetterSet();\r\n\t}", "public Set<StateVertex> getAllStates() {\n\t\treturn sfg.vertexSet();\n\t}", "public Iterator<String> mo27016b() {\n return Collections.unmodifiableSet(this.f18797b.keySet()).iterator();\n }", "public Set<String> getUnicodeLocaleKeys() {\n/* 1042 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public Set<E> keySet() {\n\t\treturn null;\r\n\t}", "abstract CharArraySet build();", "public List<SetMappingValue> getSets() {\r\n\t\treturn sets;\r\n\t}" ]
[ "0.66689605", "0.6554251", "0.6430117", "0.64297456", "0.639236", "0.63237", "0.61554694", "0.6098371", "0.60827416", "0.6078897", "0.60367775", "0.59746087", "0.5961101", "0.59605587", "0.5944862", "0.5942326", "0.589513", "0.5885403", "0.586731", "0.585341", "0.5844108", "0.5819689", "0.58169454", "0.58132595", "0.58079463", "0.5784897", "0.57815367", "0.57529926", "0.5739901", "0.57378817", "0.5732709", "0.5721655", "0.57028955", "0.57020444", "0.56888074", "0.5681768", "0.56729376", "0.5654358", "0.5579862", "0.55794287", "0.5575583", "0.55551845", "0.5552885", "0.55477124", "0.55431914", "0.5542553", "0.55412877", "0.5541175", "0.55410314", "0.55245876", "0.5522201", "0.55168563", "0.5515386", "0.5511794", "0.5505989", "0.54959106", "0.54898196", "0.5487275", "0.5486165", "0.5484628", "0.5478819", "0.54753816", "0.5473002", "0.5460764", "0.5456344", "0.54492736", "0.544717", "0.5446996", "0.5446787", "0.54429924", "0.5439367", "0.5435864", "0.54278284", "0.542526", "0.54228336", "0.5422255", "0.541887", "0.5416494", "0.5411853", "0.53973454", "0.53962654", "0.5390614", "0.53877515", "0.53868324", "0.53823483", "0.537616", "0.5374443", "0.5351293", "0.5346328", "0.53376573", "0.53322357", "0.5331205", "0.5325742", "0.5319632", "0.53165966", "0.53146434", "0.530954", "0.5306859", "0.5304538", "0.5303383" ]
0.6887529
0
Get the last tick for a given symbol
public BitfinexTick getLastTick(final BitfinexTickerSymbol currencyPair) { synchronized (lastTick) { return lastTick.get(currencyPair); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getHeartbeatForSymbol(final BitfinexStreamSymbol symbol) {\n\t\tsynchronized (lastTick) {\n\t\t\tfinal Long heartbeat = lastTickTimestamp.get(symbol);\n\t\t\t\n\t\t\tif(heartbeat == null) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\t\n\t\t\treturn heartbeat;\n\t\t}\n\t}", "int getEndTick();", "int getFinalTick();", "public int getTickCount(String symbol);", "public double getLastTradePrice(String symbol)\n {\n // Get the order book for this symbol if it exists\n try {\n return Double.parseDouble( marketBook.get(symbol).toString() );\n }\n catch ( Exception e ) { }\n \n return 0;\n }", "long getSymbol();", "public long getTick() {\n return tick;\n }", "public long getTick() {\n return tick;\n }", "public double getTick() { // 3\n\t\treturn tic;\n\t}", "public Symbol getCurrentPlayerSymbol();", "int getFirstTick();", "public int getTick() {\r\n\t\treturn tick;\r\n\t}", "void setLastTickPos(Vec3 pos);", "public int getTick() {\r\n return tick;\r\n }", "public String lastAsSlot();", "TickerPrice getPrice(String symbol);", "K last();", "public String getSymbol() {\n return symbol.get();\n }", "public abstract int getTickOffset();", "public DrawingCommand getLastCommand() {\r\n\t\tint i = this.commands.size() - 1;\r\n\t\tif (i >= 0) {\r\n\t\t\treturn this.commands.get(this.commands.size() - 1);\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public StockTicks getTicks() {\n if (getTicks == null)\n getTicks = new StockTicks(jsBase + \".ticks()\");\n\n return getTicks;\n }", "private String tick() {\r\n\t\tString out=\"Tick: \"+tile.getTick();\r\n\t\treturn out;\r\n\t}", "public BitfinexTicker getTicker(String symbol) {\r\n\t\tif (Strings.isBlank(symbol)) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tBitfinexTicker ticker = null;\r\n\t\tString url = String.format(BitfinexConst.URL_TICKER, symbol);\r\n\t\tResponse response = HttpUtil.get(url);\r\n\t\tif (response != null && response.isOK()) {\r\n\t\t\tticker = Json.fromJson(BitfinexTicker.class, response.getContent());\r\n\t\t}\r\n\t\treturn ticker;\r\n\t}", "public int indexForTick(long tick){\n if(tick<0){\n tick=0;\n }\n return eventForTickBinarySearch(tick, 0 , tempoList.size()-1);\n }", "public long getLastMsgTick() {\n return lastMessageSentAt;\n }", "public String getSymbol( )\n {\n return symbol;\n }", "public Symbol getSymbol() {\r\n\t\treturn symbol;\r\n\t}", "private MoveBallCommand getBallStateFromLast(int timeStamp) {\n\t\tMoveBallCommand ballState = null;\n\t\tint counter = 1;\n\t\tint stateSize = Board.ballStateList.size();\n\t\twhile (counter <= stateSize) {\n\t\t\tballState = Board.ballStateList.get(stateSize - counter);\n\t\t\tcounter++;\n\t\t\tif (ballState.getTimeStamp() <= timeStamp) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn ballState;\n\t}", "public final Symbol pop() {\n\t\ttry {\n\t\t\treturn opstack.pop().getSymbol();\n\t\t} catch (BadTypeException | EmptyStackException e) {\n\t\t\tSystem.out.println(\"An exception has occurred, \"\n\t\t\t\t\t+ \"Maybe the stack has gone empty\");\n\t\t\treturn null;\n\t\t}\n\t}", "public Operation getLastOp() {\n\t\treturn ops.get(ops.size() - 1);\n\t}", "public BrickStatusCommand getBrickStatusFromLast(int timeStamp) {\n\t\tBrickStatusCommand brickState = null;\n\t\tint counter = 1;\n\t\tint stateSize = Board.brickStateList.size();\n\t\twhile (counter <= stateSize) {\n\t\t\tbrickState = Board.brickStateList.get(stateSize - counter);\n\t\t\tcounter++;\n\t\t\tif (brickState.getTimestamp() <= timeStamp) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn brickState;\n\t}", "public double lastYValue() {\n\t\tif (pointList.size()==0)\n\t\t\treturn Double.NaN;\n\t\telse\n\t\t\treturn pointList.get( pointList.size()-1).getY();\n\t}", "public int get(int symbol);", "public String getSymbol() {\n return symbol;\n }", "public String getSymbol()\n {\n return annot.getString(COSName.SY);\n }", "public double getSignal() {\r\n return signals.lastEntry().getValue();\r\n }", "public Symbol getSymbol() {\n\n return this.symbol;\n }", "public E getLast(){\n return tail.getPrevious().getElement();\n }", "public String getSymbol() {\r\n\t\treturn symbol;\r\n\t}", "public String getSymbol() {\r\n\t\treturn symbol;\r\n\t}", "public CurrencySymbolPosition getSymbolPosition()\r\n {\r\n return (m_symbolPosition);\r\n }", "public String getSymbol() {\n return symbol;\n }", "String getSymbol();", "public E getLast() {\r\n\r\n\t\treturn (E) data.get(data.size() - 1);\r\n\t}", "public StockTicks getMinorTicks() {\n if (getMinorTicks == null)\n getMinorTicks = new StockTicks(jsBase + \".minorTicks()\");\n\n return getMinorTicks;\n }", "public static final long getTickMillis() {\n return p().TIME_TICK;\n }", "public String getSymbol() {\n return this.symbol ;\n }", "public String getSymbol() {\n\t\treturn symbol;\n\t}", "public process get_last() {\n\t\treturn queue.getLast();\n\t}", "public Node<T> getLast() \r\n {\r\n if (isEmpty()) return sentinel;\r\n return sentinel.prev;\r\n }", "public TypeHere getLast() {\n return items[size - 1];\n }", "public GPoint last() {\n\t\tif (points.isEmpty()) {\n\t\t\tthrow new IllegalStateException(\"line group is empty\");\n\t\t}\n\t\treturn points.get(points.size() - 1);\n\t}", "public double getLastTime()\n\t{\n\t\tdouble time = Double.NaN;\n\t\tfinal Entry< Double, V > entry = getLastEntry();\n\t\tif( entry != null )\n\t\t{\n\t\t\ttime = entry.getKey();\n\t\t}\n\t\treturn time;\n\t}", "Stock retrieveStockChartData(String symbol);", "@Override\n\tpublic TimeSeriesDataStructureI lastTimeSeriesAdjustment(TimeSeriesDataStructureI tsd) {\n\t\treturn tsd;\n\t}", "public StockSymbol getStockSymbol() {\n\t\treturn stockSymbol;\n\t}", "public Long getNextSymbolId() {\n return nextSymbolId;\n }", "@Override\n public Number getEndY(int series, int item) {\n assert 0 <= series && series < checkpoint.gcTraceSize();\n assert 0 <= item && item < checkpoint.size(series);\n\n return getEndYValue(series, item);\n }", "public String getLastCell() {\n\t\treturn lastCell;\n\t}", "public GJPoint2D lastPoint() {\n\t\tint n = this.segments.size();\n\t\tif (n == 0) \n\t\t\treturn null;\n\t\treturn this.segments.get(n-1).lastControl();\n\t}", "public String getLast()\n {\n return lastItem;\n }", "Long getTemperatureForLastHour();", "public Square getLastSquare() {\n\t\treturn squares.get(squares.size()-1);\n\t}", "public T getLast();", "public T getLast();", "public abstract String getSymbol();", "public int getSymbol(ISymbol sym) {\r\n\t\tif (symbols.contains(sym)) {\r\n\t\t\treturn symbols.indexOf(sym);\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "public Object lastElement();", "public BigDecimal getPriceLastOrd();", "public double getLastPrice() {\r\n\t\treturn lastPrice;\r\n\t}", "public Optional<D> findLatest(String symbol) {\n return findLatestScope(symbol)\n .map(scope -> scope.get(symbol));\n }", "public int getLast() {\n\treturn _last;\n }", "TickerStatistics get24HrPriceStatistics(String symbol);", "private Line getLastLine() {\n\t\treturn doily.lines.get(doily.lines.size()-1);\n\t}", "public static native long GetLast(long lpjFbxArrayVector2);", "public E last() {\n\r\n if(tail == null) {\r\n return null;\r\n } else {\r\n return tail.getItem();\r\n\r\n }\r\n }", "public T getLast() {\n return this.getHelper(this.indexCorrespondingToTheLatestElement).data;\n }", "public String getSymbol(){\n return this.symbol;\n }", "T last();", "@Override\r\n\tpublic Object last(){\r\n\t\tcheck();\r\n\t\treturn tail.value;\r\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate MovePaddleCommand getPaddleStateFromLast(int timeStamp) {\n\t\tMovePaddleCommand paddleState = null;\n\t\tint counter = 1;\n\t\tint stateSize = Board.paddleStateList.size();\n\t\twhile (counter <= stateSize) {\n\t\t\tpaddleState = Board.paddleStateList.get(stateSize - counter);\n\t\t\tcounter++;\n\t\t\tif (paddleState.getTimeStamp() <= timeStamp) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn paddleState;\n\t}", "E last() throws NoSuchElementException;", "public float getLastValue() {\n // ensure float division\n return ((float)(mLastData - mLow))/mStep;\n }", "public Item getLast();", "public int getLast() {\n\t\treturn last;\n\t}", "Position<T> last();", "public String getName() {\n return \"last\";\n }", "public GPoint getLastPoint() {\n\t\treturn (points.size() > 0) ? points.get(points.size() - 1) : null;\n\t}", "public Symbol pop() throws BadTypeException {\n if (this.isEmpty()) {\n throw new EmptyStackException();\n } else {\n Entry entry = opStack.pop();\n return entry.getSymbol();\n }\n }", "public String getLastItem();", "public Item getLast() {\n return items[size - 1];\n }", "public T getLast() {\n if (this.getSize() > 0) {\n return buffer[index];\n }\n return null;\n }", "public String getSymbol() {\n }", "public synchronized DoubleLinkedListNodeInt getLast() {\n\t\tif(isEmpty())\n\t\t\treturn null;\n\t\treturn tail.getPrev();\n\t}", "@Override\n public Number getEndX(int series, int item) {\n assert 0 <= series && series < checkpoint.gcTraceSize();\n assert 0 <= item && item < checkpoint.size(series);\n\n return getEndXValue(series, item);\n }", "@Override\n public E getLast() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"No elements in dequeue\");\n }\n return dequeue[tail];\n }", "public Optional<Scope<D>> findLatestScope(String symbol) {\n return stream()\n .filter(scope -> scope.contains(symbol))\n .findFirst();\n }", "public T getLast()\n\t{\n\t\treturn getLastNode().getData();\n\t}", "public T getLast()\n\t{\n\t\treturn getLastNode().getData();\n\t}", "public int lastIndexOf(Fraction x)\r\n\t{\r\n\t\tfor(int i=n-1;i>=0;i--)\r\n\t\t\tif(x.gettu()==a[i].gettu() && x.getmau()==a[i].getmau())\r\n\t\t\t\treturn i;\r\n\t\treturn -1;\t\t\t\t\t\r\n\t}" ]
[ "0.6558735", "0.63183045", "0.62744737", "0.602073", "0.59615415", "0.59576505", "0.58385164", "0.58385164", "0.58316237", "0.5757324", "0.57407856", "0.5668112", "0.5658486", "0.5654744", "0.56408817", "0.5610593", "0.55856663", "0.5559247", "0.5526638", "0.5526225", "0.55105245", "0.5493044", "0.5480911", "0.54479", "0.5440006", "0.5436687", "0.54350156", "0.5399345", "0.5385003", "0.5383196", "0.53755236", "0.5369837", "0.535961", "0.5339467", "0.53374594", "0.533543", "0.5335214", "0.53351164", "0.53237075", "0.53237075", "0.53112745", "0.5302007", "0.52989846", "0.5298968", "0.5293056", "0.5286483", "0.5269684", "0.5266038", "0.5263848", "0.52593195", "0.5238234", "0.52260554", "0.52013844", "0.5197792", "0.51861376", "0.51825947", "0.5181321", "0.516973", "0.51639897", "0.51631135", "0.515554", "0.5148854", "0.513991", "0.5137492", "0.5137492", "0.5132753", "0.5128926", "0.5115125", "0.5107619", "0.51069003", "0.510428", "0.51036173", "0.50992846", "0.5097307", "0.50960344", "0.5094449", "0.509399", "0.5092184", "0.50895023", "0.50892305", "0.5088032", "0.5086349", "0.5085172", "0.5069276", "0.50692475", "0.5047251", "0.5047251", "0.5047095", "0.5044524", "0.5042156", "0.50405926", "0.50395584", "0.50323623", "0.5031601", "0.5028655", "0.50233454", "0.5021593", "0.50191694", "0.50191694", "0.50146085" ]
0.7588142
0
Invalidate the ticket heartbeat values
public void invalidateTickerHeartbeat() { // Invalidate last tick timetamps synchronized (lastTick) { lastTickTimestamp.clear(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void invalidate() {}", "@Override\r\n public void invalidate() {\r\n }", "private void resetActiveHeartbeatTimer() {\n\t\tactiveHeartbeatTimer.cancel();\n\t\tstartActiveHeartbeatTimer();\n\t}", "public void invalidate() {\n\t\t\n\t}", "@Override\n\tpublic void invalidate() {\n\n\t}", "public void invalidate() {\n\t\tthis.invalidated = true;\n\t}", "public void invalidateAll() {\n synchronized (this) {\n long l10;\n this.H = l10 = 512L;\n }\n this.requestRebind();\n }", "@Override\n\tpublic void invalidate() {\n\t\t\n\t}", "public void invalidateAll() {\n synchronized (this) {\n long l10;\n this.m = l10 = (long)8;\n }\n this.requestRebind();\n }", "public void invalidate() {\n for (int i = 0; true; i = (2 * i + 1) & 63) {\n synchronized (this) {\n this.listener = null;\n this.sema = null;\n if (!deliveryPending || (Thread.currentThread().getId() == id)) {\n return;\n }\n }\n if (i == 0) {\n Thread.yield();\n } else {\n if (i > 3) Log.finer(Log.FAC_NETMANAGER, \"invalidate spin {0}\", i);\n try {\n Thread.sleep(i);\n } catch (InterruptedException e) {\n }\n }\n }\n }", "void invalidate();", "void invalidate();", "@Override\n\tpublic void invalidateAll() {\n\t\t\n\t}", "public void clearExpiredTokens();", "void invalidateAll();", "@RequiresLock(\"SeaLock\")\r\n protected void invalidate_internal() {\n }", "public void invalidateAll() {\n synchronized (this) {\n long l10;\n this.u = l10 = (long)32;\n }\n this.requestRebind();\n }", "void invalidateProperties() {\n super.invalidateProperties();\n token_ = null;\n }", "private void resetHeartbeatTimer() {\n if (heartbeatScheduledFuture != null && !heartbeatScheduledFuture.isDone()) {\n heartbeatScheduledFuture.cancel(true);\n }\n heartbeatScheduledFuture = scheduledExecutorService.schedule(new Runnable() {\n @Override\n public void run() {\n startNewHeartbeat();\n }\n }, raftOptions.getHeartbeatPeriodMilliseconds(), TimeUnit.MILLISECONDS);\n }", "private void clearHeartBeatRes() {\n if (rspCase_ == 5) {\n rspCase_ = 0;\n rsp_ = null;\n }\n }", "public void ejectTicket(){if(this.inProgress()){this.currentTicket=null;}}", "public synchronized void reset() {\n\t\tlisteners.clear();\n\t\tbuffer.clear();\n\t\ttrash.clear();\n\n\t\ttickCount = 1;\n\n\t\tif (log.isInfoEnabled()) {\n\t\t\tlog.info(\"Clock reset\");\n\t\t}\n\t}", "public void invalidateData() {\n Log.d(TAG, \"mama MessagesListRepository invalidateData \");\n //messagesRepository.setInitialKey(null);\n messagesRepository.invalidateData();\n }", "public void emptyTickets() {\r\n tickets.clear();\r\n }", "private void clearHeartBeatReq() {\n if (reqCase_ == 5) {\n reqCase_ = 0;\n req_ = null;\n }\n }", "public void reset() {\n setValuesInternal(new Date(clock.getTime()), false, true);\n }", "public synchronized void invalidate(boolean invalidateHeaders) {\n/* 303 */ this.content = null;\n/* 304 */ InputStream rstream = this.rawData.get();\n/* 305 */ if (rstream != null) {\n/* */ \n/* */ \n/* */ try {\n/* 309 */ rstream.close();\n/* 310 */ } catch (IOException ex) {}\n/* */ \n/* */ \n/* 313 */ this.rawData = new SoftReference(null);\n/* */ } \n/* 315 */ if (this.contentStream != null) {\n/* */ try {\n/* 317 */ this.contentStream.close();\n/* 318 */ } catch (IOException ex) {}\n/* */ \n/* */ \n/* 321 */ this.contentStream = null;\n/* */ } \n/* 323 */ this.msgSize = -1;\n/* 324 */ if (invalidateHeaders) {\n/* 325 */ this.headers = null;\n/* 326 */ this.hdrSize = -1;\n/* */ } \n/* */ }", "public static void invalidate(TileEntity tileEntity)\n \t{\n \t\tfor (int i = 0; i < 6; i++)\n \t\t{\n \t\t\tForgeDirection direction = ForgeDirection.getOrientation(i);\n \t\t\tTileEntity checkTile = VectorHelper.getConnectorFromSide(tileEntity.worldObj, new Vector3(tileEntity), direction);\n \n \t\t\tif (checkTile instanceof INetworkProvider)\n \t\t\t{\n \t\t\t\tIElectricityNetwork network = ((INetworkProvider) checkTile).getNetwork();\n \n \t\t\t\tif (network != null)\n \t\t\t\t{\n \t\t\t\t\tnetwork.stopRequesting(tileEntity);\n \t\t\t\t\tnetwork.stopProducing(tileEntity);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "public void reset() {\n\t\tsuper.reset(); // reset the Reportable, too.\n\n\t\tif (_interArrivalTimeActivated && _interArrivalTally != null)\n\t\t\t_interArrivalTally.reset();\n\t\t\n\t\t// really reset the counter value?\n\t\tif (!this.isResetResistant) {\n\t\t\tthis._value = 0;\n \t this._min = this._max = 0;\n\t\t}\n\t}", "void invalidate() {\n\t\tinvalid = true;\n\t}", "protected void invalidate() {\n\n fireEvent();\n }", "default void reportHeartbeat(long expiredTimestamp) {}", "@Override\n\tpublic void invalidate(S key) {\n\t\t\n\t}", "void invalidate(String key);", "public final void invalidate()\n\t{\n\t\tresource = null;\n\t}", "void invalidated(TwoWayEvent.Invalidated<DM, UMD, DMD> evt);", "public void mraiExpire() {\n for (int tDest : this.dirtyDest) {\n this.sendUpdate(tDest);\n }\n this.dirtyDest.clear();\n }", "public synchronized void reset(){\n \t\teverbie = null;\n \t}", "public void clearClosingTime() {\n genClient.clear(CacheKey.closingTime);\n }", "private void invalidateData() {\n mDashboardListAdapter.invalidateData();\n }", "public void invalidateAll() {\n segment.clear();\n }", "private void resetBackupHeartbeatTimer() {\n\t\tbackupHeartbeatTimer.cancel();\n\t\tstartBackupHeartbeatTimer();\n\t}", "public void invalidate() {\n/* 327 */ if (isValid()) {\n/* 328 */ invalidateSD();\n/* 329 */ super.invalidate();\n/* */ } \n/* */ }", "public void markAndResetTimer(){\n value += getTime();\n resetTimer();\n }", "public void detonate()\r\n\t{\r\n\t\tdetonated = true;\r\n\t}", "private void invalidateCache() {\n\t}", "protected boolean setOffTimerReservationSetting(byte[] edt) {return false;}", "public synchronized void endUpdates() {\n checkState(_recentlyTouched != null, \"The beginUpdates method has not been called.\");\n Iterator<String> iter = _metrics.keySet().iterator();\n while (iter.hasNext()) {\n String metric = iter.next();\n if (!_recentlyTouched.contains(metric)) {\n _registry.remove(metric);\n iter.remove();\n }\n }\n _recentlyTouched = null;\n }", "protected void issueHeartbeat() {\n updateProperties();\n\n issueConnectorPings();\n }", "@Override\n public void reset() {\n globalIndex = new AtomicLong(0);\n lastIssuedMap = new ConcurrentHashMap<>();\n }", "public void resetOccupied(){\n \t\toccupiedSeconds = 0;\n \t}", "public void resetChronometer (View v){\n\n\n chronometer.setBase(SystemClock.elapsedRealtime());\n tempTime = totalTime;\n totalTime = 0;\n dateEnd = new Date();\n addTimer();\n grantTickets();\n\n\n\n }", "@Override\n\tpublic boolean invalidateIt() {\n\t\treturn false;\n\t}", "@Test\n public void setResolutionConfigSlot_faultUpdate_cleared() throws Exception {\n EqpAssmblBom lResolutionConfigSlot =\n createResolutionConfigSlot( CONFIG_SLOT_1_ATA, CONFIG_SLOT_1_NAME );\n SdFaultTable lExistingFault = createFault( lResolutionConfigSlot.getPk() );\n\n iService.setResolutionConfigSlot( lExistingFault, null, HumanResourceKey.ADMIN );\n\n // Ensure the value has been set on the fault object\n assertNull( lExistingFault.getResolutionConfigSlot() );\n\n // Ensure history note is logged on creation\n List<EvtStageTable> lFaultHistoryNotes = getFaultHistoryNotes( lExistingFault.getPk() );\n assertFalse( lFaultHistoryNotes.isEmpty() );\n\n String lExpectedMessage = \"has been cleared\";\n assertHistoryNoteWasAdded( lFaultHistoryNotes.get( 0 ), lExpectedMessage );\n }", "public void setInvalidate(Date invalidate) {\n\t\tsetField(\"invalidate\", invalidate);\n\t}", "@Override\n\tpublic int updateTicket(Booking_ticket bt) {\n\t\treturn 0;\n\t}", "void channelInactive() throws Exception;", "void channelInactive() throws Exception;", "public Builder clearHeartRate() {\n if (extraCase_ == 5) {\n extraCase_ = 0;\n extra_ = null;\n onChanged();\n }\n return this;\n }", "public final void mo60875d() {\n if (!this.f61641k) {\n invalidate();\n m76757i();\n }\n }", "private synchronized void refresh() {\n \t\t\tlastChangeStamp = changeStamp;\n \t\t\tlastFeaturesChangeStamp = featuresChangeStamp;\n \t\t\tlastPluginsChangeStamp = pluginsChangeStamp;\n \t\t\tchangeStampIsValid = false;\n \t\t\tfeaturesChangeStampIsValid = false;\n \t\t\tpluginsChangeStampIsValid = false;\n \t\t\tfeatures = null;\n \t\t\tplugins = null;\n \t\t}", "public synchronized void resetTime() {\n }", "private synchronized void invalidate() {\n MoreCloseables.closeQuietly(mNewCallsCursor);\n MoreCloseables.closeQuietly(mOldCallsCursor);\n mNewCallsCursor = null;\n mOldCallsCursor = null;\n }", "private void m19558b() {\n this.f21607h = false;\n this.f21602c.invalidateSelf();\n }", "public void invalidateCachedJTSPeer() {\r\n jtsPeer = null;\r\n }", "public void m9010e() {\n if (this.f7525d != null) {\n this.f7525d.clear();\n }\n }", "private void timerExpired() {\r\n timer.stop();\r\n mainFrame.setEnabled(true);\r\n inputPanel.addKits(receivedKits);\r\n messageSent = false;\r\n setMessage(finishedReceivingMessage, Color.BLUE);\r\n receivedKits.clear();\r\n }", "public void clear(){\r\n\t\tsummary \t= null;\r\n\t\tstart\t\t= 0;\r\n\t\tend\t\t\t= 0;\r\n\t\tlocation\t= null;\r\n\t\talarm\t\t= 0;\r\n\t\tnote\t\t= null;\r\n\t\tallDay\t\t= false;\r\n\t\tattendees\t= null;\r\n\t\tfree_busy\t= FB_FREE;\r\n\t\tevent_class\t= CLASS_PRIVATE;\r\n\t\trepeat_type\t= \"\";\r\n\t}", "public void reset()\n {\n this.timeToCook = 0;\n this.startTime = 0;\n }", "@Scheduled(fixedRate = 60000)\n\tpublic void evictExpiredTokens() {\n\t\tlogger.info(\"Evicting expired tokens.\");\n\t\ttokenCache.evictExpiredElements();\n\t\ttokenCache.flush();\n\t}", "private void clearTime() {\n \n time_ = 0L;\n }", "private void clearTime() {\n \n time_ = 0L;\n }", "private void clearTime() {\n \n time_ = 0L;\n }", "void clearAndNotify();", "static synchronized void invalidate(Object o) {\n Set<FailFast> s = MAP.get(o);\n if (s != null) {\n s.clear();\n }\n }", "public void markRequestTimerDelete() throws JNCException {\n markLeafDelete(\"requestTimer\");\n }", "public Builder clearHeartBeatRes() {\n copyOnWrite();\n instance.clearHeartBeatRes();\n return this;\n }", "private void noteExpiredLease() {\n if (logger.isTraceEnabled(LogMarker.DLS_VERBOSE)) {\n logger.trace(LogMarker.DLS_VERBOSE, \"[noteExpiredLease] {}\", thread);\n }\n if (expiredLeases == null) {\n expiredLeases = new WeakHashMap();\n }\n expiredLeases.put(thread, null);\n }", "public void clear()\n\t{\n\t\tif (m_changeSupport != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tm_changeSupport.fireVetoableChange(PROPERTYNAME, super.size(), 0);\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\tSystem.out.println (\"CCache.clear - \" + e);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t//\tClear\n\t\tsuper.clear();\n\t\tif (m_expire != 0)\n\t\t{\n\t\t\tlong addMS = 60000L * m_expire;\n\t\t\tm_timeExp = System.currentTimeMillis() + addMS;\n\t\t}\n\t\tm_justReset = true;\n\t}", "protected synchronized void clearChanged() {\n changed = false;\n }", "public void sendHeartBeat(String internalAppId) {\n\t\t// PUT on /vnfr/<vnfr_id>/app/<app_id>/heartbeat\n\t\tString webServiceUrl = serviceProfile.getServiceApiUrl()+\"/\"+internalAppId+\"/heartbeat\";\n\t\tlogger.info(\"sending heartbeat to EMM \"+ webServiceUrl);\n\t\t\n\t\tResponseEntity<Void> response = restTemplate.exchange(webServiceUrl, HttpMethod.PUT,\n null, Void.class);\n\t\tVoid body = response.getBody();\n\t\tlogger.info(\"response :\"+ response);\n\t}", "public void resetZealotCounter() {\n persistentValues.summoningEyeCount = 0;\n persistentValues.totalKills = 0;\n persistentValues.kills = 0;\n saveValues();\n }", "@Override\n\tpublic void invalidateCache() {\n\t\t\n\t}", "public void update() {\n\t\tthis.tickCounter++;\n\t\tif(tickCounter == 10) {\n\t\t\tthis.lifetime--;\n\t\t\tif(this.lifetime == 0) {\n\t\t\t\tthis.remove();\n\t\t\t}\n\t\t\tthis.tickCounter = 0;\n\t\t}\n\t}", "@Override\n\tpublic void expireToken() {\n\t\t\n\t}", "@SuppressLint(\"CommitPrefEdits\") // Preferences change needs to be synchronous\n public void invalidateToken() {\n preferences.edit().remove(getString(R.string.auth_token)).commit();\n validateToken();\n }", "public void\n\t invalidateState()\n\t //\n\t ////////////////////////////////////////////////////////////////////////\n\t {\n\t if (state != null) {\n\t\t\t\tstate.destructor();\n\t\t\t\tstate = null;\n\t }\n\t }", "private static void cleanLeaseCache(Map<HashPair, Lease> tc) {\n for (Iterator<Lease> iter = tc.values().iterator(); iter.hasNext(); ) {\n Lease l = iter.next();\n if (l.isExpired(Router.CLOCK_FUDGE_FACTOR))\n iter.remove();\n }\n }", "private void clearData() {}", "private void onResponseTimerTick()\r\n {\r\n EneterTrace aTrace = EneterTrace.entering();\r\n try\r\n {\r\n cleanAfterConnection(true, true);\r\n }\r\n finally\r\n {\r\n EneterTrace.leaving(aTrace);\r\n }\r\n }", "protected void reset()\n {\n this.shapeDataCache.removeAllEntries();\n this.sector = null;\n }", "void setHeartbeatInterval(int interval);", "private void invalidateBuffer() throws IOException, BadDescriptorException {\n if (!reading) flushWrite();\n int posOverrun = buffer.remaining(); // how far ahead we are when reading\n buffer.clear();\n if (reading) {\n buffer.flip();\n // if the read buffer is ahead, back up\n FileChannel fileChannel = (FileChannel)descriptor.getChannel();\n if (posOverrun != 0) fileChannel.position(fileChannel.position() - posOverrun);\n }\n }", "void invalidate(String id);", "public void removeAllBeatsPerMinute() {\r\n\t\tBase.removeAll(this.model, this.getResource(), BEATSPERMINUTE);\r\n\t}", "protected void invalidateAll() {\n\t\tfor (CacheEntry entry : map.values()) {\n\t\t\tentry.getItem().invalidate();\n\t\t}\n\t}", "@Override\n public void resetAllValues() {\n }", "public synchronized void update() {\n localMemberHealth.setHeartbeat(localMemberHealth.getHeartbeat() + 1);\n long currentTime = System.currentTimeMillis();\n List<MemberHealth> removals = new ArrayList<>();\n for (MemberHealth memberHealth : memberHealths) {\n if (currentTime - memberHealth.getLastSeen() > 5500) {\n removals.add(memberHealth);\n } else if (currentTime - memberHealth.getLastSeen() > 2750) {\n if (!memberHealth.hasFailed() && !memberHealth.hasLeft()) {\n memberHealth.setHasFailed(true);\n logger.logLine(Logger.INFO, \"Member: \" + memberHealth.getId() + \" has failed\");\n }\n } else {\n if (memberHealth.hasFailed()) {\n logger.logLine(Logger.INFO, \"Member: \" + memberHealth.getId() + \" has rejoined\");\n }\n memberHealth.setHasFailed(false);\n }\n }\n for (MemberHealth memberHealth : removals) {\n memberHealths.remove(memberHealth);\n logger.logLine(Logger.INFO, \"Member: \" + memberHealth.getId() + \" has been removed\");\n }\n }", "public void invalidateSessionobjects(){\n\n\t}", "private void clearTime() {\n \n time_ = 0L;\n }" ]
[ "0.63265187", "0.61428005", "0.614177", "0.614119", "0.61064893", "0.5990587", "0.59788305", "0.59766877", "0.59043044", "0.5857973", "0.5823628", "0.5823628", "0.5807497", "0.57782376", "0.5757451", "0.57566184", "0.573285", "0.5714731", "0.56288755", "0.55570734", "0.55197954", "0.5510099", "0.5506777", "0.5500439", "0.5491679", "0.5460584", "0.54585737", "0.5457332", "0.5434882", "0.5429883", "0.54276425", "0.5424427", "0.54131895", "0.53785586", "0.5376715", "0.5344387", "0.5338037", "0.5325828", "0.5311188", "0.5300857", "0.529745", "0.526092", "0.5254506", "0.52280796", "0.5224624", "0.52129275", "0.52127296", "0.5211317", "0.52059233", "0.5201219", "0.5188784", "0.51883656", "0.51764494", "0.51612276", "0.51524025", "0.51485085", "0.5147203", "0.5147203", "0.51434875", "0.51342994", "0.5126779", "0.51251554", "0.51138425", "0.5110225", "0.5104369", "0.50978255", "0.5096089", "0.5080909", "0.5070673", "0.5055057", "0.5047624", "0.5047624", "0.5047624", "0.5043291", "0.50414836", "0.50336426", "0.502539", "0.50223035", "0.5005639", "0.50037134", "0.49920768", "0.49899384", "0.4982803", "0.49822763", "0.49813682", "0.49780887", "0.49657425", "0.4964626", "0.49644783", "0.49630967", "0.49583638", "0.4952969", "0.4948723", "0.49452963", "0.49429363", "0.4938301", "0.4937291", "0.49328205", "0.49314925", "0.4931393" ]
0.7512672
0