query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
We need to create an AES key for EVERY message
public void sendMessage(View view) { String ownFingerprint = PreferenceManager .getDefaultSharedPreferences(getBaseContext()) .getString("KEY_FINGERPRINT", "Key not found"); EditText editText = (EditText)findViewById(R.id.edit_message); EncryptedMessage em = new EncryptedMessage( fingerprint, editText.getText().toString(), this); Log.d("MESSAGE submitter", ownFingerprint); Log.d("MESSAGE destination", em.getDestination()); Log.d("MESSAGE key", em.getEncryptedAesKey()); Log.d("MESSAGE encrypted", em.getEncryptedMessage()); Log.d("MESSAGE IV", em.getIv()); this.adapter.add(editText.getText().toString()); // Creating HTTP client DefaultHttpClient httpClient = new DefaultHttpClient(); // Creating HTTP Post HttpPost httpPost = new HttpPost(sendMessageURL); // Building post parameters // key and value pair List<NameValuePair> nameValuePair = new ArrayList<NameValuePair>(2); nameValuePair.add(new BasicNameValuePair("origin", ownFingerprint)); nameValuePair.add(new BasicNameValuePair("destination", em.getDestination())); nameValuePair.add(new BasicNameValuePair("key", em.getEncryptedAesKey())); nameValuePair.add(new BasicNameValuePair("vector", em.getIv())); nameValuePair.add(new BasicNameValuePair("message", em.getEncryptedMessage())); // Url Encoding the POST parameters try { httpPost.setEntity(new UrlEncodedFormEntity(nameValuePair)); } catch (UnsupportedEncodingException e) { // writing error to Log e.printStackTrace(); } // Making HTTP Request try { HttpResponse response = httpClient.execute(httpPost); // writing response to log Log.d("Http Response:", response.toString()); } catch (ClientProtocolException e) { // writing exception to log e.printStackTrace(); } catch (IOException e) { // writing exception to log e.printStackTrace(); } editText.setText(""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Key generateAESKey(final byte[] key) {\n return new AesKey(key);\n }", "@Test\n public void testAesEncryptForInputKey() throws Exception {\n byte[] key = Cryptos.generateAesKey();\n String input = \"foo message\";\n\n byte[] encryptResult = Cryptos.aesEncrypt(input.getBytes(\"UTF-8\"), key);\n String descryptResult = Cryptos.aesDecrypt(encryptResult, key);\n\n System.out.println(key);\n System.out.println(descryptResult);\n }", "protected SecretKey generateRandomAESKey() throws GeneralSecurityException {\n fixPrng();\n // Instantiante KeyGenerator\n KeyGenerator keyGenerator = KeyGenerator.getInstance(AES_INSTANCE);\n // Initialize generator with the desired keylength\n keyGenerator.init(AES_128);\n // Return new key\n return keyGenerator.generateKey();\n }", "private void initKey() {\n String del = \":\";\n byte[] key;\n if (MainGame.applicationType == Application.ApplicationType.Android) {\n key = StringUtils.rightPad(Build.SERIAL + del + Build.ID + del, 32, \"~\").getBytes();\n } else if (MainGame.applicationType == Application.ApplicationType.Desktop) {\n key = new byte[]{0x12, 0x2d, 0x2f, 0x6c, 0x1f, 0x7a, 0x4f, 0x10, 0x48, 0x56, 0x17, 0x4b, 0x4f, 0x48, 0x3c, 0x17, 0x04, 0x06, 0x4b, 0x6d, 0x1d, 0x68, 0x4b, 0x52, 0x50, 0x50, 0x1f, 0x06, 0x29, 0x68, 0x5c, 0x65};\n } else {\n key = new byte[]{0x77, 0x61, 0x6c, 0x0b, 0x04, 0x5a, 0x4f, 0x4b, 0x65, 0x48, 0x52, 0x68, 0x1f, 0x1d, 0x3c, 0x4a, 0x5c, 0x06, 0x1f, 0x2f, 0x12, 0x32, 0x50, 0x19, 0x3c, 0x52, 0x04, 0x17, 0x48, 0x4f, 0x6d, 0x4b};\n }\n for (int i = 0; i < key.length; ++i) {\n key[i] = (byte) ((key[i] << 2) ^ magic);\n }\n privateKey = key;\n }", "public String initAesOperations() throws NoSuchAlgorithmException, NoSuchPaddingException, Base64DecodingException, DecoderException {\n byte[] aesKeyBytes = new byte[16];\n this.randomize.nextBytes(aesKeyBytes);\n this.aesKey = new SecretKeySpec(aesKeyBytes, \"AES\");\n this.aesCipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n return Hex.encodeHexString(aesKeyBytes);\n }", "private AES() {\r\n\r\n }", "public static byte[] encryptText(String plainText,SecretKey secKey) throws Exception{\n\r\n Cipher aesCipher = Cipher.getInstance(\"AES\");\r\n\r\n aesCipher.init(Cipher.ENCRYPT_MODE, secKey);\r\n\r\n byte[] byteCipherText = aesCipher.doFinal(plainText.getBytes());\r\n\r\n return byteCipherText;\r\n\r\n}", "private AES() {\n }", "private static String m5297cj() {\n try {\n KeyGenerator instance = KeyGenerator.getInstance(\"AES\");\n instance.init(128);\n return Base64.encodeToString(instance.generateKey().getEncoded(), 0);\n } catch (Throwable unused) {\n return null;\n }\n }", "public void CreateCipher() {\n String key = \"IWantToPassTAP12\"; // 128 bit key\n aesKey = new javax.crypto.spec.SecretKeySpec(key.getBytes(), \"AES\");\n try {\n this.cipher = Cipher.getInstance(\"AES\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public CaesarCipherOne(int key) {this.key=key;}", "private String generateSecretKey(){\n SecureRandom random = new SecureRandom();\n byte[] bytes = new byte[20];\n\n random.nextBytes(bytes);\n Base32 base32 = new Base32();\n return base32.encodeToString(bytes);\n }", "OpenSSLKey mo134201a();", "void genKey(){\n Random rand = new Random();\n int key_length = 16;\n String key_alpha = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\";\n StringBuilder sb = new StringBuilder(key_length);\n for(int i = 0; i < key_length; i++){\n int j = rand.nextInt(key_alpha.length());\n char c = key_alpha.charAt(j);\n sb.append(c);\n }\n this.key = sb.toString();\n }", "@Override\n\tprotected SessionKey generateSessionKey() {\n\n\t\tSessionKey sk = new SessionKey();\n\t\t\n\t\tSecureRandom random = null;\n\t\ttry {\n\t\t\trandom = SecureRandom.getInstance(\"SHA1PRNG\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tbyte bytes[] = new byte[16];\n\t\trandom.nextBytes(bytes);\n\n\t\tbyte transformation[] = \"AES/CBC/PKCS5Padding\".getBytes();\n\t\tsk.setTransformationName(transformation);\n\t\tsk.setKey(bytes); // 128 Bits\n\t\trandom.nextBytes(bytes);\n\t\tsk.setIV(bytes); // 128 Bits\n\n\t\t\n\t\treturn sk;\n\t}", "Encryption encryption();", "@SuppressLint(\"TrulyRandom\")\n private static byte[] encrypt(byte[] bytes, SecretKey aesKey) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException, InvalidAlgorithmParameterException {\n Cipher cipher = Cipher.getInstance(decodeBytesToString(new byte[]{-70, -77, -122, -114, 56, 56, -114, 7, 53, -68, -80, -117, 10, 32, 58, -72, 62, 59, 60, 86})); // AES/CBC/PKCS5Padding\n IvParameterSpec ivSpec = new IvParameterSpec(decodeBytesToString(IV).getBytes());\n cipher.init(Cipher.ENCRYPT_MODE, aesKey, ivSpec);\n return cipher.doFinal(bytes);\n }", "@VisibleForTesting\n byte[] getAESKey() throws IncompatibleDeviceException, CryptoException {\n String encodedEncryptedAES = storage.retrieveString(KEY_ALIAS);\n if (TextUtils.isEmpty(encodedEncryptedAES)) {\n encodedEncryptedAES = storage.retrieveString(OLD_KEY_ALIAS);\n }\n if (encodedEncryptedAES != null) {\n //Return existing key\n byte[] encryptedAES = Base64.decode(encodedEncryptedAES, Base64.DEFAULT);\n byte[] existingAES = RSADecrypt(encryptedAES);\n final int aesExpectedLengthInBytes = AES_KEY_SIZE / 8;\n //Prevent returning an 'Empty key' (invalid/corrupted) that was mistakenly saved\n if (existingAES != null && existingAES.length == aesExpectedLengthInBytes) {\n //Key exists and has the right size\n return existingAES;\n }\n }\n //Key doesn't exist. Generate new AES\n try {\n KeyGenerator keyGen = KeyGenerator.getInstance(ALGORITHM_AES);\n keyGen.init(AES_KEY_SIZE);\n byte[] aes = keyGen.generateKey().getEncoded();\n //Save encrypted encoded version\n byte[] encryptedAES = RSAEncrypt(aes);\n String encodedEncryptedAESText = new String(Base64.encode(encryptedAES, Base64.DEFAULT), StandardCharsets.UTF_8);\n storage.store(KEY_ALIAS, encodedEncryptedAESText);\n return aes;\n } catch (NoSuchAlgorithmException e) {\n /*\n * This exceptions are safe to be ignored:\n *\n * - NoSuchAlgorithmException:\n * Thrown if the Algorithm implementation is not available. AES was introduced in API 1\n *\n * Read more in https://developer.android.com/reference/javax/crypto/KeyGenerator\n */\n Log.e(TAG, \"Error while creating the AES key.\", e);\n throw new IncompatibleDeviceException(e);\n }\n }", "public byte[] encrypt(final String message) throws KeyException {\n if (key == null) {\n throw new KeyException(\"Secret key not set\");\n }\n\n try {\n final Cipher cipher = Cipher.getInstance(\"AES\");\n cipher.init(Cipher.ENCRYPT_MODE, key);\n\n return cipher.doFinal(message.getBytes());\n } catch (NoSuchAlgorithmException |\n NoSuchPaddingException |\n InvalidKeyException |\n BadPaddingException |\n IllegalBlockSizeException e) {\n e.printStackTrace();\n throw new UnsupportedOperationException();\n }\n }", "@Override\n public String encryptMsg(String msg) {\n if (msg.length() == 0) {\n return msg;\n } else {\n char[] encMsg = new char[msg.length()];\n for (int ind = 0; ind < msg.length(); ++ind) {\n char letter = msg.charAt(ind);\n encMsg[ind] = (char) ((letter + key) % 65536);\n }\n return new String(encMsg);\n }\n }", "private String encryptMessage(String message) {\n int MESSAGE_LENGTH = message.length();\n //TODO: throw SizeTooBigException for message requirements\n if(MESSAGE_LENGTH > 1300){\n\n throw new SizeTooBigException();\n }\n\n final int length = message.length();\n String encryptedMessage = \"\";\n for (int i = 0; i < length; i++) {\n //TODO: throw InvalidCharacterException for message requirements\n int m = message.charAt(i);\n int k = this.kissKey.keyAt(i) - 'a';\n int value = m ^ k;\n encryptedMessage += (char) value;\n }\n return encryptedMessage;\n }", "public static String encrypt(String message, String randomkey) throws GeneralSecurityException {\n //Log.d(\"Jsonmessage\",message);\n try {\n final SecretKeySpec key = new SecretKeySpec(ENCRYPTION_SECRET_KEY.getBytes(), \"AES\");\n\n // byte[] cipherText = encrypt(key, ApiConfig.ENCRYPTION_IV_KEY.getBytes(), message.getBytes(CHARSET));\n byte[] cipherText = encrypt(key, randomkey.getBytes(), message.getBytes(CHARSET));\n //Log.d(\"SecretKey123\",cipherText.toString());\n String encoded = Base64.encodeToString(cipherText, Base64.NO_WRAP);\n //Log.d(\"SecretKey\",encoded);\n return encoded;\n } catch (UnsupportedEncodingException e) {\n if (DEBUG_LOG_ENABLED)\n Log.e(TAG, \"UnsupportedEncodingException \", e);\n throw new GeneralSecurityException(e);\n }\n }", "public static byte[] getEncryptRawKey() {\n\n try {\n /*byte[] bytes64Key = App.RealmEncryptionKey.getBytes(\"UTF-8\");\n KeyGenerator kgen = KeyGenerator.getInstance(\"AES\");\n SecureRandom sr = SecureRandom.getInstance(\"SHA1PRNG\");\n sr.setSeed(bytes64Key);\n kgen.init(128, sr);\n SecretKey skey = kgen.generateKey();\n byte[] raw = skey.getEncoded();*/\n\n byte[] key = new BigInteger(App.RealmEncryptionKey, 16).toByteArray();\n return key;\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }", "private void encryptionAlgorithm() {\n\t\ttry {\n\t\t\t\n\t\t\tFileInputStream fileInputStream2=new FileInputStream(\"D:\\\\program\\\\key.txt\");\n\t\t\tchar key=(char)fileInputStream2.read();\n\t\t\tSystem.out.println(key);\n\t\t\tFileInputStream fileInputStream1=new FileInputStream(\"D:\\\\program\\\\message.txt\");\n\t\t\tint i=0;\n\t\t\t\n\t\t\tStringBuilder message=new StringBuilder();\n\t\t\twhile((i= fileInputStream1.read())!= -1 )\n\t\t\t{\n\t\t\t\tmessage.append((char)i);\n\t\t\t}\n\t\t\tString s=message.toString();\n\t\t\tchar[] letters=new char[s.length()];\n\t\t\tStringBuilder en=new StringBuilder();\n\t\t\tfor(int j = 0;j < letters.length;j++)\n\t\t\t{\n\t\t\t\ten.append((char)(byte)letters[j]+key);\n\t\t\t}\t\t\n\t\t\tFileOutputStream fileoutput=new FileOutputStream(\"D:\\\\program\\\\encryptedfile.txt\");\n\t\t\t\n\t\t\tfileInputStream1.close();\n\t\t\tfileInputStream2.close();\n\t\t\t\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t\n\t}", "public static byte[] generateRandomKey_AES128() {\n return ByteUtil.randomBytes(16);\n }", "private static Key generateKey(String secretKeyString) throws Exception {\n // generate secret key from string\n Key key = new SecretKeySpec(secretKeyString.getBytes(), \"AES\");\n return key;\n }", "public String cipher() {\n int[] r1taps = {13, 16, 17, 18};\n int[] r2taps = {20, 21};\n int[] r3taps = {7, 20, 21, 22};\n\n // Set register size and majority bits\n final int R1 = 19;\n final int R1M = 8;\n final int R2 = 22;\n final int R2M = 10;\n final int R3 = 23;\n final int R3M = 10;\n\n // Initialize variables\n String bs = \"\";\n byte[] key = HexStringToBytes(symKey);\n BitSet keySet = new BitSet();\n BitSet keyStream = new BitSet();\n BitSet messageSet = new BitSet();\n\n // Create a byte array length of sample message\n byte[] messageArray = new byte[message.length()];\n\n // Convert the sample message to a byte array\n try {\n messageArray = message.getBytes(\"ISO-8859-1\");\n } catch (Exception e) {\n System.out.println(\"Error: \" + e);\n }\n\n // Convert message sample byte array to string\n String as = \"\";\n for (int i = 0; i < messageArray.length; i++) {\n byte b1 = messageArray[i];\n String s = String.format(\"%8s\", Integer.toBinaryString(b1 & 0xFF))\n .replace(' ', '0');\n as += s;\n }\n\n // Convert string of bits to a BitSet\n messageSet = BitStringToBitSet(as);\n\n // Creates string from key byte array\n for (int i = 0; i < 8; i++) {\n byte b1 = key[i];\n String s = String.format(\"%8s\", Integer.toBinaryString(b1 & 0xFF))\n .replace(' ', '0');\n bs += s;\n }\n\n // Convert string of bits to a BitSet\n keySet = BitStringToBitSet(bs);\n\n // Initialize registers\n BitSet r1 = new BitSet();\n BitSet r2 = new BitSet();\n BitSet r3 = new BitSet();\n\n // Process key into registers\n for (int i = 0; i < 64; i++) {\n r1 = ShiftSet(r1, R1, keySet.get(i) ^ Tap(r1, r1taps));\n r2 = ShiftSet(r2, R2, keySet.get(i) ^ Tap(r2, r2taps));\n r3 = ShiftSet(r3, R3, keySet.get(i) ^ Tap(r3, r3taps));\n }\n\n // Clock additional 100 times for additional security (GSM standard)\n for (int i = 0; i < 100; i++) {\n int maj = 0;\n boolean[] ar = {false, false, false};\n if (r1.get(R1M) == true) {\n ar[0] = true;\n maj += 1;\n }\n if (r2.get(R2M) == true) {\n ar[1] = true;\n maj += 1;\n }\n if (r3.get(R3M) == true) {\n ar[2] = true;\n maj += 1;\n }\n // If majority is false (0 bit)\n if (maj <= 1) {\n if (ar[0] == false) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == false) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == false) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n // Else majority is true\n } else {\n if (ar[0] == true) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == true) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == true) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n }\n }\n\n // Create keystream as long as the sample message\n for (int i = 0; i < message.length() * 8; i++) {\n\n // Get keystream bit\n keyStream.set(i, r1.get(R1 - 1) ^ r2.get(R2 - 1) ^ r3.get(R3 - 1));\n\n // Shift majority registers\n int maj = 0;\n boolean[] ar = {false, false, false};\n if (r1.get(R1M) == true) {\n ar[0] = true;\n maj += 1;\n }\n if (r2.get(R2M) == true) {\n ar[1] = true;\n maj += 1;\n }\n if (r3.get(R3M) == true) {\n ar[2] = true;\n maj += 1;\n }\n // If majority is false (0 bit)\n if (maj <= 1) {\n if (ar[0] == false) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == false) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == false) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n // Else majority is true\n } else {\n if (ar[0] == true) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == true) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == true) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n }\n\n }\n\n // XOR the message with the created keystream and return as string\n messageSet.xor(keyStream);\n return BitStringToText(ReturnSet(messageSet, message.length() * 8));\n }", "public void setAesKey(byte[] key) {\n this.aesKey = KeyFactory.getKey(KeyFactory.SYMETRIC_KEY_WITH_DATA, key);\n }", "private static byte[] generateSymetricKey(int length) {\n\t\tSecureRandom random = new SecureRandom();\n\t\tbyte[] keyBytes = new byte[length];\n\t\trandom.nextBytes(keyBytes);\n\t\tSecretKeySpec key = new SecretKeySpec(keyBytes, \"AES\");\n\t\treturn key.getEncoded();\n\t}", "private EncryptionKey() {\n }", "public interface AES {\n\n public String encrypt(String strToEncrypt);\n\n public String decrypt(String strToDecrypt);\n\n public String getSecretKeyWord();\n}", "public SecretKey generarClaveSecreta() throws NoSuchAlgorithmException {\n KeyGenerator keyGenerator = KeyGenerator.getInstance(\"AES\");\n keyGenerator.init(256);\n SecretKey secretKey = keyGenerator.generateKey();\n return secretKey;\n }", "public void testCaesar(){\n String msg = \"At noon be in the conference room with your hat on for a surprise party. YELL LOUD!\";\n \n /*String encrypted = encrypt(msg, key);\n System.out.println(\"encrypted \" +encrypted);\n \n String decrypted = encrypt(encrypted, 26-key);\n System.out.println(\"decrypted \" + decrypted);*/\n \n \n String encrypted = encrypt(msg, 15);\n System.out.println(\"encrypted \" +encrypted);\n \n }", "KeyManager createKeyManager();", "protected void engineInitEncrypt (Key key)\n throws KeyException {\n makeKey(key);\n }", "public Key generateKey2(int l) throws IOException{\n int b = l/32;\r\n int [] unos = new int[b];\r\n for(int i=0;i<b;i++){\r\n unos[i] = 1;\r\n }\r\n byte [] aB = int2byte(unos);\r\n\r\n return new SecretKeySpec(aB, \"AES\");\r\n }", "public void initAesOperations(byte[] aesKeyBytes) throws NoSuchAlgorithmException, NoSuchPaddingException, Base64DecodingException, DecoderException {\n this.aesKey = new SecretKeySpec(Hex.decodeHex(new String(aesKeyBytes).toCharArray()), \"AES\");\n this.aesCipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n }", "private static Key generateKey() {\n return new SecretKeySpec(keyValue, ALGO);\n }", "String encryption(Long key, String encryptionContent);", "@PostConstruct\n public void init() {\n KeyGenerator keyGen;\n try {\n int KEK_SIZE = 256;\n String KEK_ALGORITHM = \"AES\";\n\n keyGen = KeyGenerator.getInstance(KEK_ALGORITHM);\n keyGen.init(KEK_SIZE);\n\n SecretKey secretKey = keyGen.generateKey();\n byte[] encodedKey = secretKey.getEncoded();\n String baseKek = new String(Hex.encode(encodedKey));\n KeyDto key = new KeyDto(baseKek);\n keyValueOperations.put(KEK_STORAGE_PATH, key);\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n }", "public KeyEncryptionKeyInfo() {\n }", "public static Tuple<String, String> generateKey() {\r\n\t\t// Get the KeyGenerator\r\n\t\ttry {\r\n\t\t\tKeyGenerator kgen;\r\n\t\t\tkgen = KeyGenerator.getInstance(\"AES\");\r\n\t\t\tkgen.init(256);\r\n\t\t\t// Generate the secret key specs.\r\n\t\t\tSecretKey skey = kgen.generateKey();\r\n\t\t\tbyte[] raw = skey.getEncoded();\r\n\t\t\tString key = new Base64().encodeAsString(raw);\r\n\r\n\t\t\tSecureRandom randomSecureRandom = SecureRandom\r\n\t\t\t\t\t.getInstance(\"SHA1PRNG\");\r\n\t\t\tCipher cipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\r\n\t\t\tbyte[] iv = new byte[cipher.getBlockSize()];\r\n\t\t\trandomSecureRandom.nextBytes(iv);\r\n\t\t\tString ivStr = new Base64().encodeAsString(iv);\r\n\t\t\treturn new Tuple(key, ivStr);\r\n\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\tLogger.error(\"Error while generating key: %s\",\r\n\t\t\t\t\t\"NoSuchAlgorithmException\");\r\n\t\t} catch (NoSuchPaddingException e) {\r\n\t\t\tLogger.error(\"Error while generating key: %s\",\r\n\t\t\t\t\t\"NoSuchPaddingException\");\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public SessionKey (String keyString) {\n byte[] keyByte = Base64.getDecoder().decode(keyString.getBytes());\n //Decodes a Base64 encoded String into a byte array\n int keyLength = keyByte.length;\n this.secretKey = new SecretKeySpec(keyByte, 0, keyLength, \"AES\");\n //Construct secret key from the given byte array.\n }", "public byte[] getAesCipheredMacKey() throws InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException, Base64DecodingException, NoSuchAlgorithmException {\n byte[] Iv = new byte[16];\n randomize.nextBytes(Iv);\n this.cipherParamSpec = new IvParameterSpec(Iv);\n this.aesCipher.init(Cipher.ENCRYPT_MODE, this.aesKey, cipherParamSpec);\n byte[] encryptedMacKey = this.aesCipher.doFinal(this.macKey.getEncoded());\n return concatByteArrays(Iv, encryptedMacKey);\n }", "short generateKeyAndWrap(byte[] applicationParameter, short applicationParameterOffset, byte[] publicKey, short publicKeyOffset, byte[] keyHandle, short keyHandleOffset, byte info);", "public CryptographyKeysCreator() {\n Random random = new Random();\n BigInteger prime1 = BigInteger.probablePrime(256, random);\n BigInteger prime2 = BigInteger.probablePrime(256, random);\n primesMultiplied = prime1.multiply(prime2);\n BigInteger phi = prime1.subtract(BigInteger.ONE).multiply(prime2.subtract(BigInteger.ONE));\n encryptingBigInt = BigInteger.probablePrime(256, random);\n\n while (phi.gcd(encryptingBigInt).compareTo(BigInteger.ONE) > 0 && encryptingBigInt.compareTo(phi) < 0) {\n encryptingBigInt = encryptingBigInt.add(BigInteger.ONE);\n }\n\n decryptingBigInt = encryptingBigInt.modInverse(phi);\n }", "@Override\n public String encryptMsg(String msg) {\n if (msg.length() == 0) {\n return msg;\n } else {\n char[] encMsg = new char[msg.length()];\n for (int ind = 0; ind < msg.length(); ++ind) {\n char letter = msg.charAt(ind);\n if (letter >= 'a' && letter <= 'z') {\n encMsg[ind] = (char) ('a' + ((letter - 'a' + key) % 26));\n } else if (letter >= 'A' && letter <= 'Z') {\n encMsg[ind] = (char) ('A' + ((letter - 'A' + key) % 26));\n } else {\n encMsg[ind] = letter;\n }\n }\n return new String(encMsg);\n }\n }", "public void createKeyStore(String master_key) throws AEADBadTagException {\n SharedPreferences.Editor editor = getEncryptedSharedPreferences(master_key).edit();\n editor.putString(MASTER_KEY, master_key);\n editor.apply();\n\n Log.d(TAG, \"Encrypted SharedPreferences created...\");\n }", "public byte[] Tencryption() {\n int[] ciphertext = new int[message.length];\n\n for (int j = 0, k = 1; j < message.length && k < message.length; j = j + 2, k = k + 2) {\n sum = 0;\n l = message[j];\n r = message[k];\n for (int i = 0; i < 32; i++) {\n sum = sum + delta;\n l = l + (((r << 4) + key[0]) ^ (r + sum) ^ ((r >> 5) + key[1]));\n r = r + (((l << 4) + key[2]) ^ (l + sum) ^ ((l >> 5) + key[3]));\n }\n ciphertext[j] = l;\n ciphertext[k] = r;\n }\n return this.Inttobyte(ciphertext);\n\n }", "private static SecretKey createSymmetricKey()\n\t{\n\t\tSecretKey secretKey = null;\n\n\t\ttry\n\t\t{\n\t\t\tKeyGenerator keyGen = KeyGenerator.getInstance(inputAlgorithmForFileEncryption);\n\t\t\tkeyGen.init(128);\n\t\t\tsecretKey = keyGen.generateKey();\n\t\t} catch (NoSuchAlgorithmException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn secretKey;\n\t}", "public String encrypt(String plaintext) {\n\t\tCipher rsaCipher, aesCipher;\n\t\ttry {\n\t\t\t// Create AES key\n\t\t\tKeyGenerator keyGen = KeyGenerator.getInstance(\"AES\");\n\t\t\tkeyGen.init(AES_BITS);\n\t\t\tKey aesKey = keyGen.generateKey();\n\n\t\t\t// Create Random IV\n\t\t\tbyte[] iv = SecureRandom.getSeed(16);\n\t\t\tIvParameterSpec ivSpec = new IvParameterSpec(iv);\n\n\t\t\t// Encrypt data using AES\n\t\t\taesCipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n\t\t\taesCipher.init(Cipher.ENCRYPT_MODE, aesKey, ivSpec);\n\t\t\tbyte[] data = aesCipher.doFinal(plaintext.getBytes());\n\n\t\t\t// Encrypt AES key using RSA public key\n\t\t\trsaCipher = Cipher.getInstance(\"RSA/NONE/PKCS1Padding\");\n\t\t\trsaCipher.init(Cipher.ENCRYPT_MODE, this.pubKey);\n\t\t\tbyte[] encKey = rsaCipher.doFinal(aesKey.getEncoded());\n\n\t\t\t// Create output\n\t\t\tString keyResult = new String(Base64.encodeBytes(encKey, 0));\n\t\t\tString ivResult = new String(Base64.encodeBytes(iv, 0));\n\t\t\tString dataResult = new String(Base64.encodeBytes(data, 0));\n\t\t\tString result = FORMAT_ID + \"|\" + VERSION + \"|\" + this.keyId + \"|\"\n\t\t\t\t\t+ keyResult + \"|\" + ivResult + \"|\" + dataResult;\n\t\t\treturn Base64.encodeBytes(result.getBytes(), Base64.URL_SAFE);\n\t\t} catch (InvalidKeyException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (NoSuchPaddingException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalBlockSizeException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (BadPaddingException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InvalidAlgorithmParameterException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn \"Encryption_Failed\";\n\t}", "public static void main(String[] args) throws GeneralSecurityException {\n\t\tGCMParameterSpec myParams = new GCMParameterSpec(0, null);\r\n\t\tCipher c = Cipher.getInstance(\"DES/EBS/NoPadding\"); // original AES/GCM/NoPadding\r\n\t\tc.init(Cipher.ENCRYPT_MODE, myKey, myParams);\r\n\t\tKeyGenerator keyGenerator = KeyGenerator.getInstance(\"AES\");\r\n\r\n\t\tSecureRandom secureRandom = new SecureRandom();\r\n\t\tint keyBitSize = 64; //original 256\r\n\t\tkeyGenerator.init(keyBitSize, secureRandom);\r\n\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tSecretKey secretKey = keyGenerator.generateKey();\r\n\t\t\r\n\t}", "public void sendKeys() throws Exception{\n ATMMessage atmMessage = (ATMMessage)is.readObject();\r\n System.out.println(\"\\nGot response\");\r\n \r\n //System.out.println(\"Received second message from the client with below details \");\r\n //System.out.println(\"Response Nonce value : \"+atmMessage.getResponseNonce());\r\n \r\n if(!verifyMessage(atmMessage))error(\" Nonce or time stamp does not match\") ;\r\n kSession = crypto.makeRijndaelKey();\r\n \r\n Key kRandom = crypto.makeRijndaelKey();\r\n byte [] cipherText = crypto.encryptRSA(kRandom,kPubClient);\r\n os.writeObject((Serializable)cipherText);\r\n System.out.println(\"\\nSending Accept and random key\");\r\n \r\n \r\n cipherText = crypto.encryptRSAPrivateKey(kSession,kPrivBank);\r\n atmMessage = new ATMMessage(); \r\n atmMessage.setEncryptedSessionKey(cipherText);\r\n cipherText = crypto.encryptRijndael(atmMessage,kRandom);\r\n currTimeStamp = System.currentTimeMillis();\r\n os.writeObject((Serializable)cipherText);\r\n //System.out.println(\"Session Key send to the client \");\r\n \r\n //SecondServerMessage secondServerMessage = new SecondServerMessage();\r\n //secondServerMessage.setSessionKey(kSession);\r\n \r\n //byte [] cipherText1;\r\n //cipherText = crypto.encryptRSAPrivateKey(kSession,kPrivBank);\r\n //cipherText1 = crypto.encryptRSA(cipherText,clientPublicKey);\r\n //os.writeObject((Serializable)cipherText1);\r\n \r\n //System.out.println(\"Second message send by the server which contains the session key. \");\r\n //System.out.println(\"\\n\\n\\n\");\r\n \r\n \r\n }", "private void encode(){\r\n \r\n StringBuilder sb = new StringBuilder();\r\n \r\n /*\r\n *if a character code is >126 after adding the encryption key, subtract \r\n *95 to wrap\r\n */\r\n for(int i = 0; i < message.length(); i++){\r\n if(message.charAt(i) + key > 126){\r\n int wrappedKey = message.charAt(i) + key - 95;\r\n \r\n sb.append((char) wrappedKey);\r\n \r\n /*\r\n *if a character code ins't > 126 after adding the encryption key\r\n */\r\n } else{\r\n int wrappedKey = message.charAt(i) + key;\r\n sb.append( (char) wrappedKey);\r\n }\r\n }\r\n /*\r\n *case coded message to a string\r\n */\r\n codedMessage = sb.toString();\r\n }", "@BeforeClass\n public void setKeyLength() {\n Aes.keyLength = 16;\n }", "public byte[] createKey(String keyName, String token) throws InternalSkiException {\n return createKey(keyName, null, SkiKeyGen.DEFAULT_KEY_SIZE_BITS, token);\n }", "@SuppressWarnings(\"deprecation\")\n @Test\n public void AesBlock() throws IOException {\n byte[] bytes = \"hello, my name is inigo montoya\".getBytes();\n\n SecureRandom rand = new SecureRandom(entropySeed.getBytes());\n\n PaddedBufferedBlockCipher aesEngine = new PaddedBufferedBlockCipher(new CBCBlockCipher(new AESFastEngine()));\n\n byte[] key = new byte[32];\n byte[] iv = new byte[16];\n\n // note: the IV needs to be VERY unique!\n rand.nextBytes(key); // 256bit key\n rand.nextBytes(iv); // 16bit block size\n\n\n byte[] encryptAES = CryptoAES.encrypt(aesEngine, key, iv, bytes, logger);\n byte[] decryptAES = CryptoAES.decrypt(aesEngine, key, iv, encryptAES, logger);\n\n if (Arrays.equals(bytes, encryptAES)) {\n fail(\"bytes should not be equal\");\n }\n\n if (!Arrays.equals(bytes, decryptAES)) {\n fail(\"bytes not equal\");\n }\n }", "private static Map<CryptoAlgorithm, String> createExactCipherMapping() {\n HashMap<CryptoAlgorithm, String> map = new HashMap<>();\n map.put(CryptoAlgorithm.AES_CBC, \"AES/CBC/PKCS5PADDING\");\n return Collections.unmodifiableMap(map);\n }", "@Test\r\n public void testEncrypt()\r\n {\r\n System.out.println(\"encrypt\");\r\n String input = \"Hello how are you?\";\r\n KeyMaker km = new KeyMaker();\r\n SecretKeySpec sks = new SecretKeySpec(km.makeKeyDriver(\"myPassword\"), \"AES\");\r\n EncyptDecrypt instance = new EncyptDecrypt();\r\n String expResult = \"0fqylTncsgycZJQ+J5pS7v6/fj8M/fz4bavB/SnIBOQ=\";\r\n String result = instance.encrypt(input, sks);\r\n assertEquals(expResult, result);\r\n }", "public SessionKey (int keyLength) throws NoSuchAlgorithmException {\n KeyGenerator key1 = KeyGenerator.getInstance(\"AES\");\n key1.init(keyLength);\n this.secretKey = key1.generateKey();\n }", "void generateSecretKey() {\n\n Random rand = new Random();\n \n // randomly generate alphabet chars\n this.secretKey.setCharAt(0, (char) (rand.nextInt(26) + 'a'));\n this.secretKey.setCharAt(1, (char) (rand.nextInt(26) + 'a'));\n this.secretKey.setCharAt(4, (char) (rand.nextInt(26) + 'a'));\n this.secretKey.setCharAt(5, (char) (rand.nextInt(26) + 'a'));\n\n // randomly generate special chars\n // special chars are between 33-47 and 58-64 on ASCII table\n if (rand.nextBoolean()) {\n this.secretKey.setCharAt(3, (char) (rand.nextInt(15) + '!'));\n this.secretKey.setCharAt(8, (char) (rand.nextInt(15) + '!'));\n } else {\n this.secretKey.setCharAt(3, (char) (rand.nextInt(7) + ':'));\n this.secretKey.setCharAt(8, (char) (rand.nextInt(7) + ':'));\n }\n \n // randomly generate int between 2 and 5\n this.secretKey.setCharAt(7, (char) (rand.nextInt(4) + '2'));\n }", "public abstract String encryptMsg(String msg);", "public ECKey() {\n this(secureRandom);\n }", "@SuppressWarnings(\"unused\")\n\tprotected static final byte[] h2(SMSField4 y, byte[] message, String mode) throws CipherException {\n\t\treturn CTR_AES(y.toByteArray(), message, mode, rnd);\n\t}", "public void encrypt() throws Exception {\n\t\tLogWriter = new BufferedWriter(new FileWriter(localWorkingDirectoryPath + \"\\\\Log_Encryption.txt\"));\n\t\tFileOutputStream configurationFileOutputStream = null;\n\n\t\t// Loading the store with the giving arguments\n\t\twriteToLog(\"Step 1: Loading the store with the giving arguments\");\n\t\tloadStore();\n\n\t\t// Getting the receiver's public-key\n\t\twriteToLog(\"Step 2: Getting the receiver's public-key\");\n\t\tCertificate receiverCert = keyStore.getCertificate(receiverSelfSignedCertAlias);\n\t\tif (receiverCert == null) {\n\t\t\twriteToLog(\"The entered certificate alias: \\\"\" + receiverSelfSignedCertAlias\n\t\t\t\t\t+ \"\\\" dose not exist in the keys store.\");\n\t\t\tLogWriter.close();\n\t\t\tthrow new Exception(\"The entered certificate alias: \\\"\" + receiverSelfSignedCertAlias\n\t\t\t\t\t+ \"\\\" dose not exist in the keys store.\");\n\t\t}\n\t\tPublicKey receiverPublicKey = receiverCert.getPublicKey();\n\n\t\t// Getting my private key in order to generate a signature\n\t\twriteToLog(\"Step 3: Getting the encryptor's private-key\");\n\t\tPrivateKey myPrivateKey = getMyPrivateKey();\n\t\t\n\t\t// Generating a symmetric key\n\t\twriteToLog(\"Step 4: Generating a symmetric key\");\n\t\tKeyGenerator kg = KeyGenerator.getInstance(\"AES\");\n\t\tSecretKey semetricKey = kg.generateKey();\n\n\t\t// Generating a random IV\n\t\twriteToLog(\"Step 5: Generating a random IV\");\n\t\tbyte[] iv = generateRandomIV();\n\n\t\t// Initializing the cipher\n\t\twriteToLog(\"Step 6: Initilatzing the cipher Object\");\n\t\ttry {\n\t\t\tmyCipher = createCipher();\n\t\t\tmyCipher.init(Cipher.ENCRYPT_MODE, semetricKey, new IvParameterSpec(iv));\n\t\t}catch(Exception e) {\n\t\t\twriteToLog(\"Error While tring to Initializing the cipher with the giving arguments: \" + e.getMessage());\n\t\t\tLogWriter.close();\n\t\t\tthrow new Exception(\"Error: While tring to Initializing the cipher with the giving arguments\",e);\n\t\t}\n\t\t\n\n\t\t// Initializing the signature with my private-key\n\t\twriteToLog(\"Step 7: Initilatzing the signature Object with the encryptor's private-key\");\n\t\tSignature dataSigner = Signature.getInstance(\"SHA256withRSA\");\n\t\tdataSigner.initSign(myPrivateKey);\n\n\t\t// Encrypting\n\t\twriteToLog(\"Step 8: Encrypting... \");\n\t\tFile fileToEncrrypt = new File(fileToEncryptPath);\n\t\tencryptingData(fileToEncrrypt, dataSigner);\n\n\t\t// Signing on the encrypted data\n\t\twriteToLog(\"Step 9: Signing on the encrypted data \");\n\t\tbyte[] mySignature = dataSigner.sign();\n\n\t\t// Encrypt the symmetric key with the public of the receiver\n\t\twriteToLog(\"Step 10: Encrypt the symmetric key with the public of the receiver \");\n\t\tbyte[] encryptedSymmetricKey = encryptSymmetricKey(receiverPublicKey, semetricKey);\n\n\t\t// Saving the IV, Encrypted Symmetric-Key and Signature to the configurations file\n\t\twriteToLog(\"Step 11: Saving the IV, Encrypted Semetric-Key and Signature to the configurations file \");\n\t\tsavingToConfigurationsFile(configurationFileOutputStream, iv, encryptedSymmetricKey, mySignature);\n\n\t\tLogWriter.write(\"Encryption completed, No Errors Were Found\");\n\t\tLogWriter.close();\n\t}", "public static Cipher getCypher(int mode) throws NoSuchAlgorithmException, NoSuchPaddingException,\r\n InvalidKeyException {\n Key aesKey = new SecretKeySpec(ENC_KEY.getBytes(), \"AES\");\r\n Cipher cipher = Cipher.getInstance(\"AES\");\r\n // encrypt the text\r\n cipher.init(mode, aesKey);\r\n return cipher;\r\n }", "public Cipher generateCipher() throws NoSuchAlgorithmException,\n\t\t\tNoSuchPaddingException, NoSuchProviderException {\n\t\tCipher cipher = Cipher.getInstance(\"AES/GCM/NoPadding\", \"BC\");\n\t\treturn cipher;\n\t}", "public static String Encrypt(String inputText, String key) {\n String retVal = \"\";\n try {\n Cipher cipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n byte[] keyBytes = new byte[16];\n byte[] b = key.getBytes();\n int len = b.length;\n if (len > keyBytes.length) {\n len = keyBytes.length;\n }\n System.arraycopy(b, 0, keyBytes, 0, len);\n SecretKeySpec keySpec = new SecretKeySpec(keyBytes, \"AES\");\n IvParameterSpec ivSpec = new IvParameterSpec(keyBytes);\n cipher.init(Cipher.ENCRYPT_MODE, keySpec, ivSpec);\n BASE64Encoder _64e = new BASE64Encoder();\n byte[] encryptedData = cipher.doFinal(inputText.getBytes());\n retVal = _64e.encode(encryptedData);\n\n } catch (Exception ex) {\n ApiLog.One.WriteException(ex);\n }\n return retVal;\n }", "@SuppressWarnings(\"deprecation\")\n @Test\n public void AesWithIVBlock() throws IOException {\n byte[] bytes = \"hello, my name is inigo montoya\".getBytes();\n\n SecureRandom rand = new SecureRandom(entropySeed.getBytes());\n\n PaddedBufferedBlockCipher aesEngine = new PaddedBufferedBlockCipher(new CBCBlockCipher(new AESFastEngine()));\n\n byte[] key = new byte[32]; // 256bit key\n byte[] iv = new byte[aesEngine.getUnderlyingCipher().getBlockSize()];\n\n // note: the IV needs to be VERY unique!\n rand.nextBytes(key);\n rand.nextBytes(iv);\n\n\n byte[] encryptAES = CryptoAES.encryptWithIV(aesEngine, key, iv, bytes, logger);\n byte[] decryptAES = CryptoAES.decryptWithIV(aesEngine, key, encryptAES, logger);\n\n if (Arrays.equals(bytes, encryptAES)) {\n fail(\"bytes should not be equal\");\n }\n\n if (!Arrays.equals(bytes, decryptAES)) {\n fail(\"bytes not equal\");\n }\n }", "public Add128(){\n key = new byte[128];\n Random rand = new Random();\n rand.nextBytes(key);\n }", "public void generateEphemeralKey(){\n esk = BIG.randomnum(order, rng); //ephemeral secret key, x\n epk = gen.mul(esk); //ephemeral public key, X = x*P\n }", "public void generateKeys() {\r\n try {\r\n SecureRandom random = SecureRandom.getInstance(Constants.SECURE_RANDOM_ALGORITHM);\r\n KeyPairGenerator generator = KeyPairGenerator.getInstance(Constants.ALGORITHM);\r\n generator.initialize(Constants.KEY_BIT_SIZE, random);\r\n \r\n KeyPair keys = generator.genKeyPair();\r\n \r\n persistPrivateKey(keys.getPrivate().getEncoded());\r\n persistPublicKey(keys.getPublic().getEncoded());\r\n logger.log(Level.INFO, \"Done with generating persisting Public and Private Key.\");\r\n \r\n } catch (NoSuchAlgorithmException ex) {\r\n logger.log(Level.SEVERE, \"En error occured while generating the Public and Private Key\");\r\n }\r\n }", "public EnScrypt() {}", "public String encrypt(String message) {\t\n\n\t\tchar [] letters = new char [message.length()];\n\t\tString newMessage = \"\";\n\n\t\t//create an array of characters from message\n\t\tfor(int i=0; i< message.length(); i++){\n\t\t\tletters[i]= message.charAt(i);\n\t\t}\n\n\t\tfor(int i=0; i<letters.length; i++){\n\t\t\tif(Character.isLetter(letters[i])){ //check to see if letter\n\t\t\t\tif(Character.isUpperCase(letters[i])){ //check to see if it is uppercase\n\t\t\t\t\tnewMessage += letters[i]; //add that character to new string\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\t\t//this creates an array with the numbers that are keys \n\t\tint [] numberOfLetters = new int[newMessage.length()];\n\t\tString alphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\n\t\tfor(int i=0; i< newMessage.length(); i++){\n\t\t\tfor(int j=0; j< alphabet.length(); j++){\n\t\t\t\tif(newMessage.charAt(i) == alphabet.charAt(j)){ //if they have the same letter\n\t\t\t\t\tnumberOfLetters[i]=j+1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\n\t\t//creates an array of the keys\n\t\tint [] key = new int[numberOfLetters.length];\n\t\tint keys;\n\t\tfor(int i=0; i< numberOfLetters.length; i++){\n\t\t\tkeys = getKey();\n\t\t\tkey[i] = keys;\n\t\t}\n\t\n\t\t//create an array for what we encrypted \n\t\tint [] encryptNum = new int[key.length];\n\t\tfor(int i=0; i< key.length; i++){\n\t\t\tint value = numberOfLetters[i] + key[i];\n\t\t\tif(value > 26){\n\t\t\t\tvalue = value-26;\n\t\t\t\tencryptNum[i]= value;\n\t\t\t}else{\n\t\t\t\tencryptNum[i]= value;\n\t\t\t}\n\t\t}\n\n\t\t//turn encryption into letters \n\t\tString encrypt = \"\";\n\t\tchar [] let = new char [encryptNum.length];\n\n\t\tfor(int i=0; i< encryptNum.length; i++){\n\t\t\tint x = encryptNum[i]-1;\n\t\t\tlet[i] = alphabet.charAt(x);\n\t\t}\n\n\t\tfor(int j=0; j< let.length; j++){\n\t\t\tencrypt += let[j];\n\t\t}\n\n\t\t// COMPLETE THIS METHOD\n\t\t// THE FOLLOWING LINE HAS BEEN ADDED TO MAKE THE METHOD COMPILE\n\n\t\treturn encrypt;\n\t}", "private static byte[] genKey(String algorithm, int keySize) throws NoSuchAlgorithmException {\n KeyGenerator keyGenerator = KeyGenerator.getInstance(algorithm);\n\n keyGenerator.init(keySize);\n\n SecretKey secretKey = keyGenerator.generateKey();\n\n return secretKey.getEncoded();\n }", "public final byte[] SchlüsselTausch() throws Exception{\n File datei = new File(\"AES.key\");\n \n //Key auslesen\n FileInputStream fis = new FileInputStream(datei);\n byte[] encodedKey = new byte[(int) datei.length()];\n fis.read(encodedKey);\n fis.close();\n \n System.out.println(encodedKey);\n //Das byte[] des Schlüssels zurückgeben\n return(encodedKey);\n}", "public String getSecretKey();", "public void test() {\n\t\ttry {\n\t\t\tString plainText = \"Sensitive information\";\n\t\t\tint keySize = 128;\n\t\t\t// Generate a key for AES\n\t\t\tKeyGenerator keygenerator = KeyGenerator.getInstance(\"AES\");\n\t\t\tkeygenerator.init(keySize);\n\t\t\tSecretKey key = keygenerator.generateKey();\n\t\t\t// Encrypt the plain text with AES\n\t\t\tCipher aesChipher;\n\t\t\taesChipher = Cipher.getInstance(\"AES\");\n\t\t\taesChipher.init(Cipher.ENCRYPT_MODE, key);\n\t\t\tbyte[] encrypted= aesChipher.doFinal(plainText.getBytes());\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (NoSuchPaddingException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InvalidKeyException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalBlockSizeException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (BadPaddingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public byte[] encrypto(String base) throws Exception {\n\t\tSecretKeyFactory keyFactory = SecretKeyFactory.getInstance(PBKDF2);\r\n\t\tKeySpec pbeKeySpec = new PBEKeySpec(\"password\".toCharArray(), \"salt\".getBytes(), 1023, 128);\r\n\t\tSecretKey pbeSecretKey = keyFactory.generateSecret(pbeKeySpec);\r\n\t\t// Create SecretKey for AES by KeyFactory-With-Hmac\r\n\t\tSecretKey aesSecretKey = new SecretKeySpec(pbeSecretKey.getEncoded(), AES);\r\n\t\t\r\n\t\tCipher cipher = Cipher.getInstance(AES_CBC_PKCS5PADDING);\r\n//\t\tcipher.init(Cipher.ENCRYPT_MODE, aesSecretKey, SecureRandom.getInstance(\"SHA1PRNG\"));\r\n\t\tcipher.init(Cipher.ENCRYPT_MODE, aesSecretKey);\r\n\t\tbyte[] encrypted = cipher.doFinal(base.getBytes());\r\n\r\n\t\tSystem.out.println(\"IV: \" + new String(cipher.getIV()));\r\n\t\tSystem.out.println(\"AlgorithmParameter: \" + cipher.getParameters().getEncoded());\r\n\t\tCipher decryptor = Cipher.getInstance(AES_CBC_PKCS5PADDING);\r\n\t\tdecryptor.init(Cipher.DECRYPT_MODE, aesSecretKey, new IvParameterSpec(cipher.getIV()));\r\n\t\tSystem.out.println(\"Decrypted: \" + new String(decryptor.doFinal(encrypted)));\r\n\t\t\r\n\t\treturn encrypted;\r\n\t}", "private void generateIntegrityKeyPair(boolean clientMode) throws UnsupportedEncodingException, IOException, NoSuchAlgorithmException {\n byte[] cimagic = CLIENT_INT_MAGIC.getBytes(encoding);\n byte[] simagic = SVR_INT_MAGIC.getBytes(encoding);\n MessageDigest md5 = MessageDigest.getInstance(\"MD5\");\n byte[] keyBuffer = new byte[H_A1.length + cimagic.length];\n System.arraycopy(H_A1, 0, keyBuffer, 0, H_A1.length);\n System.arraycopy(cimagic, 0, keyBuffer, H_A1.length, cimagic.length);\n md5.update(keyBuffer);\n byte[] Kic = md5.digest();\n System.arraycopy(simagic, 0, keyBuffer, H_A1.length, simagic.length);\n md5.update(keyBuffer);\n byte[] Kis = md5.digest();\n if (logger.isLoggable(Level.FINER)) {\n traceOutput(DI_CLASS_NAME, \"generateIntegrityKeyPair\", \"DIGEST12:Kic: \", Kic);\n traceOutput(DI_CLASS_NAME, \"generateIntegrityKeyPair\", \"DIGEST13:Kis: \", Kis);\n }\n if (clientMode) {\n myKi = Kic;\n peerKi = Kis;\n } else {\n myKi = Kis;\n peerKi = Kic;\n }\n }", "public static String encryptKey(String key, String token) {\n try {\n IvParameterSpec iv = new IvParameterSpec(IV);\n SecretKeySpec spec = new SecretKeySpec(key.getBytes(UTF_8), \"AES\");\n Cipher cipher = Cipher.getInstance(\"AES/CBC/NoPADDING\");\n cipher.init(Cipher.ENCRYPT_MODE, spec, iv);\n byte[] encrypted = cipher.doFinal(token.getBytes(UTF_8));\n return Hex.encodeHexString(encrypted, false);\n } catch (GeneralSecurityException e) {\n // never happens\n throw new IllegalStateException(\"Exception during AES CBC encryption\", e);\n }\n }", "protected String generateKey(){\n Random bi= new Random();\n String returnable= \"\";\n for(int i =0;i<20;i++)\n returnable += bi.nextInt(10);\n return returnable;\n }", "public AES(String filePath, boolean isShred)\r\n throws UnsupportedEncodingException, NoSuchAlgorithmException, Exception\r\n {\r\n AES.filePath = filePath;\r\n AES.isShred = isShred;\r\n SecureRandom rand = new SecureRandom(SecureRandom.getSeed((int)System.currentTimeMillis()));\r\n key = keyGen(hash(String.valueOf(rand.nextLong())));\r\n }", "private SampleAesEncryption(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private void generateCipher()\n {\n for (int i = 0; i < 26; i++)\n {\n if (((i + shiftKey) < 26) && ((i + shiftKey) >= 0))\n {\n cipherAlphabet[i] = Alphabet[i + shiftKey];\n }\n else\n {\n cipherAlphabet[i] = Alphabet[(i + shiftKey) - 26];\n }\n } \n }", "private static byte[] generate(final byte[] buffer, final PrivateKey key) {\r\n\r\n\t\tbyte[] data = null;\r\n\r\n\t\ttry {\r\n\t\t\tfinal X509EncodedKeySpec spec = new X509EncodedKeySpec(buffer);\r\n\t\t\tfinal KeyFactory kf = getKeyFactory();\r\n\t\t\tfinal PublicKey pk = kf.generatePublic(spec);\r\n\t\t\tdata = SharedSecret.doKeyExchange(key, pk);\r\n\t\t} catch (Exception e) {\r\n\t\t\tfinal String msg = Utils.toMessage(e);\r\n\t\t\tLOG.error(msg);\r\n\t\t\tLOG.debug(msg, e);\r\n\t\t\tdata = new byte[0];\r\n\t\t}\r\n\r\n\t\treturn data;\r\n\t}", "public byte[] generateKey()\n\t{\n\t\tImageKeyGenerate ikg = ImageKeyGenerate.getMD5SHA256();\n\t\tthis.rowKey = MyBytes.toBytes(CommonUtils.byteArrayToHexString(ikg.generate(imageData)));\n\t\treturn this.rowKey;\n\t}", "public static String encrypt(String seed, String plain) throws Exception {\r\nbyte[] rawKey = getRawKey(seed.getBytes());\r\nbyte[] encrypted = encrypt(rawKey, plain.getBytes());\r\nreturn Base64.encodeToString(encrypted, Base64.DEFAULT);\r\n}", "public AesCtr(byte[] key) throws Exception {\n\n // check if input key is ok\n if (key.length != 16 && key.length != 24 && key.length != 32) {\n throw new Exception(\"Key length should be 16, 24, or 32 bytes long\");\n }\n\n // set key length\n KEY_SIZE_BYTES = key.length;\n\n // create secret key spec instance\n m_keySpec = new SecretKeySpec(key, \"AES\");\n\n // create cipher instance\n m_cipher = javax.crypto.Cipher.getInstance(\"AES/CTR/NoPadding\");\n\n // create secure random number generator instance\n m_secureRandom = new SecureRandom();\n }", "public static synchronized int[] createConversationKey() {\r\n\t\tlong millisecs = seed++;\r\n\t\tlong nanosecs = System.nanoTime();\r\n\t\tlong k = millisecs * nanosecs * (nanosecs + millisecs);\r\n\t\t\r\n\t\tint[] key = new int[4];\r\n\t\tkey[0] = setOddParityWord((int)((k >>> 48) & 0xFFFFL));\r\n\t\tkey[1] = setOddParityWord((int)((k >>> 32) & 0xFFFFL));\r\n\t\tkey[2] = setOddParityWord((int)((k >>> 16) & 0xFFFFL));\r\n\t\tkey[3] = setOddParityWord((int)(k & 0xFFFFL));\r\n\t\treturn key;\r\n\t}", "public String createSmartKey(long ... ids);", "public String generateKey(long duration) throws Exception;", "protected AESCrypto(Context context, int iterations) throws NoAlgorithmAvailableException {\n // Call superclass\n super(context);\n // Check availability of provoders\n providerCheckAESCrypto();\n // Apply Googles fix for the pseudo random number generator for API-Levels 16-18\n prng = new AtomicBoolean(false);\n fixPrng();\n // set the iteration count\n PBE_ITERATIONS = iterations;\n }", "public static String generateActivationKey() {\n return RandomStringUtils.randomNumeric(DEF_COUNT);\n }", "public static String generateActivationKey() {\n return RandomStringUtils.randomNumeric(DEF_COUNT);\n }", "private static Key generateKey() throws NoSuchAlgorithmException {\r\n\t\tif (key == null) {\r\n\t\t\tgenerator = KeyGenerator.getInstance(\"DES\");\r\n\t\t\tgenerator.init(new SecureRandom());\r\n\t\t\tkey = generator.generateKey();\r\n\t\t}\r\n\t\treturn key;\r\n\t}", "public void testCaesar(){\n int key1 = 23;\n int key2 = 17;\n String encrypted = encrypt(\"At noon be in the conference room with your hat on for a surprise party. YELL LOUD!\", 15);\n System.out.println(\"key is 15\" + \"\\n\" + encrypted);\n String encrypted2 = encryptTwoKeys(\"At noon be in the conference room with your hat on for a surprise party. YELL LOUD!\", 8, 21);\n System.out.println(\"key are 8 and 21\" + \"\\n\" + encrypted2);\n }", "protected CipherIV encryptAES(byte[] plainText, SecretKey secretKey) throws GeneralSecurityException {\n fixPrng();\n // Instantiate Cipher with the AES Instance\n final Cipher cipher = Cipher.getInstance(AES_MODE);\n // Generate random bytes for the initialization vector\n final SecureRandom secureRandom = new SecureRandom();\n final byte[] initVector = new byte[IVECTOR_LENGTH_IN_BYTE];\n secureRandom.nextBytes(initVector);\n final IvParameterSpec initVectorParams = new IvParameterSpec(initVector);\n // Initialize cipher object with the desired parameters\n cipher.init(Cipher.ENCRYPT_MODE, secretKey, initVectorParams);\n // Encrypt\n byte[] cipherText = cipher.doFinal(plainText);\n // Return ciphertext and iv in CipherIV object\n return new CipherIV(cipherText, cipher.getIV());\n }", "@Test\n public void testAesForInputKeyMode() throws Exception {\n//TODO: Test goes here... \n/* \ntry { \n Method method = Cryptos.getClass().getMethod(\"aes\", byte[].class, byte[].class, int.class); \n method.setAccessible(true); \n method.invoke(<Object>, <Parameters>); \n} catch(NoSuchMethodException e) { \n} catch(IllegalAccessException e) { \n} catch(InvocationTargetException e) { \n} \n*/\n }", "public GenEncryptionParams() {\n }", "public static void main(String[] args) throws Exception {\n String keyString = \"1bobui76m677W1eCxjFM79mJ189G2zxo\";\n String input = \"john doe i a dead man sdhfhdshfihdoifo\";\n\n // setup AES cipher in CBC mode with PKCS #5 padding\n Cipher cipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n\n // setup an IV (initialization vector) that should be\n // randomly generated for each input that's encrypted\n byte[] iv = new byte[cipher.getBlockSize()];\n new SecureRandom().nextBytes(iv);\n IvParameterSpec ivSpec = new IvParameterSpec(iv);\n\n // hash keyString with SHA-256 and crop the output to 128-bit for key\n MessageDigest digest = MessageDigest.getInstance(\"SHA-256\");\n digest.update(keyString.getBytes());\n byte[] key = new byte[16];\n System.arraycopy(digest.digest(), 0, key, 0, key.length);\n SecretKeySpec keySpec = new SecretKeySpec(key, \"AES\");\n\n // encrypt\n cipher.init(Cipher.ENCRYPT_MODE, keySpec, ivSpec);\n byte[] encrypted = cipher.doFinal(input.getBytes(\"UTF-8\"));\n System.out.println(\"encrypted: \" + new String(encrypted));\n\n // include the IV with the encrypted bytes for transport, you'll\n // need the same IV when decrypting (it's safe to send unencrypted)\n\n // decrypt\n cipher.init(Cipher.DECRYPT_MODE, keySpec, ivSpec);\n byte[] decrypted = cipher.doFinal(encrypted);\n System.out.println(\"decrypted: \" + new String(decrypted, \"UTF-8\"));\n }" ]
[ "0.6794334", "0.67295253", "0.6716428", "0.6691493", "0.66810596", "0.66762686", "0.66524976", "0.6641701", "0.6567719", "0.6549723", "0.6519654", "0.6359847", "0.6358506", "0.63468903", "0.6344418", "0.63124275", "0.6285382", "0.6277058", "0.626138", "0.62354726", "0.6214642", "0.61404276", "0.61280507", "0.60868555", "0.6080836", "0.60804445", "0.607421", "0.6063168", "0.6051826", "0.6041699", "0.60404044", "0.6038073", "0.60306567", "0.60216516", "0.6012231", "0.6011374", "0.6001451", "0.59894615", "0.598805", "0.598091", "0.59747684", "0.5972338", "0.59595656", "0.5951588", "0.59442174", "0.59438926", "0.5942566", "0.59289277", "0.59058917", "0.59030527", "0.589947", "0.5898585", "0.58690524", "0.585188", "0.5844088", "0.5830891", "0.58277303", "0.5804546", "0.57971317", "0.5789561", "0.5788395", "0.5774282", "0.5770608", "0.5766712", "0.57642746", "0.5763404", "0.57627493", "0.5753958", "0.5751211", "0.5746921", "0.57468873", "0.57360977", "0.5726045", "0.5723024", "0.5722669", "0.57111686", "0.5707826", "0.5697011", "0.56853336", "0.568154", "0.56754273", "0.5672439", "0.5651054", "0.5650905", "0.56465125", "0.5646449", "0.56456053", "0.56434333", "0.5625832", "0.5620131", "0.5618421", "0.561825", "0.5618209", "0.5617336", "0.5617336", "0.56163764", "0.56144136", "0.5609256", "0.56052023", "0.56046295", "0.5602993" ]
0.0
-1
return false if user is not suscribed
public boolean getUsuarioSuscrito(){ return !(suscribirClientBean.getUsuarioSuscrito(idOferta).length == 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean isUser(User user) {\n\t\treturn false;\n\t}", "@Override\n public boolean isUser() {\n return false;\n }", "public boolean isUser()\n\t{\n\t\treturn (id != -1);\n\t}", "private boolean correctUser() {\n // TODO mirar si l'usuari es unic a la base de dades\n return true;\n }", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "public boolean hasUser() {\n return user_ != null;\n }", "public boolean hasUser() {\n return user_ != null;\n }", "public boolean hasUser(){\n return numUser < MAX_USER;\n }", "public boolean isExistingUser() {\r\n return isExistingUser;\r\n }", "@Override\n\tpublic boolean isUserExist(StudentForm student) {\n\t\treturn false;\n\t}", "private boolean isNotCurrentUser(User user) {\n if (user.getEmail().equals(mEncodedEmail)) {\n /* Toast appropriate error message if the user is trying to add themselves */\n Toast.makeText(mActivity,\n mActivity.getResources().getString(R.string.toast_you_cant_add_yourself),\n Toast.LENGTH_LONG).show();\n return false;\n }\n return true;\n }", "public boolean hasUser() {\n return instance.hasUser();\n }", "private boolean isUserExists() {\n\t\treturn KliqDataStore.isUserExists(this.mobileNumber, null);\r\n\t}", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "public boolean isSetUser() {\n return this.user != null;\n }", "public boolean isSetUser() {\n return this.user != null;\n }", "boolean hasObjUser();", "public boolean hasUser() {\n return user_ != null;\n }", "@Override\r\n\tpublic boolean updateUser() {\n\t\treturn false;\r\n\t}", "public boolean isUser(String userName) throws Exception;", "private boolean cekUser(String user){\n return user.equals(Preferences.getRegisteredUser(getBaseContext()));\n }", "public boolean isValidUser() {\n\t\treturn _isValid;\n\t}", "public boolean esistitoUser(String user) {\n\t\ttry {\n\t\t\tPreparedStatement prst = connection.prepareStatement(DbManagerUtils.ACCOUNT_ESISTE);\n\t\t\tprst.setString(1, user);\n\t\t\treturn prst.executeQuery().getInt(1) == 1;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn false;\n\t}", "boolean hasUserId();", "boolean hasUserId();", "boolean hasUserId();", "private static boolean doesUserExist () {\n String sqlRetrieveAisId = \"SELECT ais_id FROM users WHERE user_id=?\";\n \n boolean valid = false;\n try (Connection conn = Database.getConnection();\n PreparedStatement pstmt = conn.prepareStatement(sqlRetrieveAisId)) {\n \n pstmt.setInt(1, userId);\n \n ResultSet rs = pstmt.executeQuery();\n \n valid = rs.next() != false;\n } catch (SQLException se) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(1), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n } catch (IOException ioe) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(0), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(0), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n }\n \n return valid;\n }", "private Boolean canUserValidate() throws ServeurException, ClientException {\n // Direct on/off line\n return checkValidatePermission();\n }", "boolean hasSelectedUser();", "private boolean IsUserExist(){\n SignupUser user =roomDB.dao().GetUserData(et_user.getText().toString());\n if(user!=null){\n if(!user.getEmail().isEmpty()){\n Toast.makeText(this, \"User is already registered!\", Toast.LENGTH_SHORT).show();\n return true;\n }\n\n }\n return false;\n }", "boolean hasUserManaged();", "public boolean hasUser() {\n return userBuilder_ != null || user_ != null;\n }", "public boolean hasUser() {\n return userBuilder_ != null || user_ != null;\n }", "@XmlTransient\n\tpublic boolean isCanActivateUser() {\n\t\treturn (isSecurityAdministrator() && isSelfRegistrationEnabled());\n\t}", "private Boolean isInUserBoard() {\n\t\t\tBoolean isInUserBoard;\n\t\t\t//String g = userBoard.getUser().getfName();\n\t\t\tif(userBoard.getUser().getExitCode() != null){\n if(Integer.parseInt(userBoard.getUser().getExitCode()) == 0 ){\n isInUserBoard = true;\n userSingleton.INSTANCE.setfName(userBoard.getUser().getfName());\n userSingleton.INSTANCE.setName(userBoard.getUser().getName());\n userSingleton.INSTANCE.setId(userBoard.getUser().getId());\n userSingleton.INSTANCE.setClasse(userBoard.getUser().getClasse());\n userSingleton.INSTANCE.setPassword(userBoard.getUser().getPassword());\n\n\n }\n else{\n isInUserBoard = false;\n }\n }\n else{\n isInUserBoard = false;\n }\n\n\n\n\t\t\treturn isInUserBoard;\n\t\t}", "public boolean verifyUser(User user) {\n GetUserTask getUserTask = new GetUserTask();\n User temp = new User();\n\n try {\n temp = getUserTask.execute(user.getUserName()).get();\n }\n catch (InterruptedException e) {\n e.printStackTrace();\n }\n catch (ExecutionException e) {\n e.printStackTrace();\n }\n\n //if user did not exist, add one\n if(temp == null){\n ElasticSearchUserController.AddUserTask addUserTask = new ElasticSearchUserController.AddUserTask();\n addUserTask.execute(user);\n return true;\n }\n return false;\n }", "public boolean hasObjUser() {\n return objUser_ != null;\n }", "public boolean shouldConfirmCredentials(int userId) {\n synchronized (this.mLock) {\n boolean z = false;\n if (this.mStartedUsers.get(userId) == null) {\n return false;\n }\n }\n }", "@Override\n public boolean isUser(User entity) {\n \tboolean result = false;\n \tUser user = (User) getCurrentSession()\n \t\t.createQuery(\"select u from User u where email = :email and password = :password\")\n \t\t.setParameter(\"email\", entity.getEmail())\n \t\t.setParameter(\"password\", entity.getPassword()).uniqueResult();\n if(user != null) {\n \tresult = true;\n }\n \treturn result;\n }", "@Override\n public boolean userExists(User user) {\n return DATABASE.getUsers().stream()\n .anyMatch(currentUser -> user.equals(currentUser));\n }", "@Override\n\tpublic boolean userExists(String user) {\n\t\tLogin login = fetchUser(user);\n\t\treturn (login != null);\n\t}", "public boolean findUserIsExist(String name) {\n\t\treturn false;\r\n\t}", "public boolean hasAccount(String user);", "private boolean isValidUser(User user) {\n\n try (Connection connection = getDataSource().getConnection()) {\n String query = \"{call USER_UTILITY.LOG_IN(?, ?) }\";\n CallableStatement statement = connection.prepareCall(query);\n statement.setString(1, user.getEmail());\n statement.setString(2, user.getPassword());\n statement.execute();\n } catch (SQLException e) {\n if (e.getErrorCode() == 20001) return false;\n }\n return true;\n }", "boolean hasUserName();", "public boolean hasRegisteredUser() {\n return registeredUser_ != null;\n }", "private void checkUser() {\n\t\tloginUser = mySessionInfo.getCurrentUser();\n\t}", "public static boolean isUserPassed() {\n return isUserPassed(user);\n }", "public boolean checkUser(User userobj)\n\t\t{\n\t\t\tCursor c = getUser();\n\t\t\tif(c!=null){\n\t\t\t\tc.moveToFirst();\n\t\t\t\tdo{\n\t\t\t\tif(userobj.getUserName().equalsIgnoreCase(c.getString(1))&& userobj.getPassword().equalsIgnoreCase(c.getString(2)))\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t}while(c.moveToNext());\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "public boolean upadte(User user);", "private boolean isUserExplicitlyLoggedIn() {\n // User is explicitly logged in, if his securityStatus is more than or equal to security status login.\n String securityStatusPropertyName = getStorePropertyManager().getSecurityStatusPropertyName();\n int securityStatus = ((Integer) getProfile().getPropertyValue(securityStatusPropertyName)).intValue();\n return securityStatus >= getStorePropertyManager().getSecurityStatusLogin();\n }", "@Override\n\tprotected boolean needUser(String eventName)\n\t{\n\t\treturn false;\n\t}", "private void checkUser() {\n\t\tlog.info(\"___________checkUser\");\n\t\tList<User> adminUser = userRepository.getByAuthority(AuthorityType.ROLE_ADMIN.toString());\n\t\tif (adminUser == null || adminUser.isEmpty()) {\n\t\t\tgenerateDefaultAdmin();\n\t\t}\n\t}", "private boolean isInstructor(User user)\r\n {\r\n if (LOG.isDebugEnabled())\r\n {\r\n LOG.debug(\"isInstructor(User \" + user + \")\");\r\n }\r\n if (user != null)\r\n return SecurityService.unlock(user, \"site.upd\", getContextSiteId());\r\n else\r\n return false;\r\n }", "@Override\r\n\tpublic boolean isVerifiedUser(User user) {\n\t\tif (userDao.get(user.getId()).isVerified())\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "public boolean checkForUser(Player p) {\n\t\tif(p.getName(p).equals(\"user\")) {\n\t\t\treturn true;\t\t\t\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "public boolean isUserActive(String userId) {\n\t\treturn false;\n\t}", "@Override\n public boolean requiresUser() {\n return false;\n }", "private boolean checkUserData() {\n UserAccount userAccount = new UserAccount(this);\n customer = userAccount.getCustomer();\n return customer != null;\n }", "public synchronized boolean isTestUser(User user) {\r\n return user.getEmail().endsWith(server.getServerProperties().get(TEST_DOMAIN_KEY));\r\n }", "private boolean hasUserImportantView() {\n int userID = this.sharedPreferences.getInt(Constants.SP_USER_ID_KEY, 0);\n return this.sharedPreferences.getBoolean(serverName + \"_\" + userID, false);\n }", "private Boolean isValid(User user){\n Boolean result = false;\n if (user != null && loginService.validate(user.getUserName()) != null && user.getUserRole().equals(\"admin\"))\n result = true;\n return result;\n }", "boolean isUser(String username);", "private void checkForUser(){\n if(mUserId != -1){\n return;\n }\n\n if(mPreferences == null) {\n getPrefs();\n }\n\n mUserId = mPreferences.getInt(USER_ID_KEY, -1);\n\n if(mUserId != -1){\n return;\n }\n\n //do we have any users at all?\n List<User> users = mUserDAO.getAllUsers();\n if(users.size() <= 0 ){\n User defaultUser = new User(\"din_djarin\",\"baby_yoda_ftw\");\n mUserDAO.insert(defaultUser);\n }\n }", "public boolean testUser(){\n VallidateUserName validator = new VallidateUserName();\n return validator.isValidUser(UserName);\n }", "public boolean hasObjUser() {\n return instance.hasObjUser();\n }", "public boolean isActiveUser() {\r\n if (currentProcessInstance == null)\r\n return false;\r\n \r\n String[] states = currentProcessInstance.getActiveStates();\r\n if (states == null)\r\n return false;\r\n \r\n Actor[] users;\r\n for (int i = 0; i < states.length; i++) {\r\n try {\r\n users = currentProcessInstance.getWorkingUsers(states[i]);\r\n for (int j = 0; j < users.length; j++) {\r\n if (getUserId().equals(users[j].getUser().getUserId()))\r\n return true;\r\n }\r\n } catch (WorkflowException ignored) {\r\n // ignore unknown state\r\n continue;\r\n }\r\n }\r\n \r\n return false;\r\n }", "private boolean isLoggedInUser(){\n return true;\n }", "public boolean hasRegisteredUser() {\n return registeredUserBuilder_ != null || registeredUser_ != null;\n }", "@Override\n\tpublic boolean isValid(UsersDto dto) {\n\t\tString id=session.selectOne(\"users.isValid\",dto);\n\t\tif(id==null) {//잘못된 아이디와 비밀번호\n\t\t\treturn false;\n\t\t}else {//유효한 아이디와 비밀번호\n\t\t\treturn true;\n\t\t}\n\t}", "@Override\n\tpublic boolean hasAvailability(String userId) throws ASException {\n\t\tUser user = userDao.get(userId, true);\n\t\t\n\t\t// No messaging enabled means no coupons received\n\t\tif( !user.getGeoFenceEnabled() || !user.getReceivePushMessages() ) \n\t\t\treturn false;\n\t\t\n\t\t// if has an active lock, means false\n\t\tif( dmlDao.hasActiveLocks(userId, new Date()))\n\t\t\treturn false;\n\t\t\n\t\t// No surprises till now... means it's OK\n\t\treturn true;\n\t}", "public boolean isUserSettingsOK() {\r\n return (userSettings != null && userSettings.isValid());\r\n }" ]
[ "0.7613435", "0.7378753", "0.7370544", "0.7351822", "0.72930163", "0.72930163", "0.72930163", "0.72930163", "0.72930163", "0.72930163", "0.72930163", "0.7068371", "0.7068371", "0.7026108", "0.6998292", "0.69851696", "0.69801617", "0.6973114", "0.6957981", "0.69559747", "0.69559747", "0.69559747", "0.69559747", "0.69559747", "0.69559747", "0.69559747", "0.69559747", "0.69559747", "0.69559747", "0.69559747", "0.69559747", "0.69559747", "0.69559747", "0.69559747", "0.69559747", "0.69559747", "0.69559747", "0.6949568", "0.6949568", "0.6931142", "0.6929804", "0.6919531", "0.6915775", "0.689748", "0.68370426", "0.6826726", "0.6793666", "0.6793666", "0.6793666", "0.67717266", "0.6748241", "0.6735523", "0.66695136", "0.6663413", "0.666274", "0.666274", "0.6641031", "0.66379505", "0.6605205", "0.6601448", "0.65909195", "0.6581036", "0.65705734", "0.655449", "0.6554305", "0.6535063", "0.6533355", "0.65332544", "0.65299094", "0.6508828", "0.6503479", "0.6501825", "0.6492343", "0.649087", "0.6490354", "0.6486603", "0.64833957", "0.64828616", "0.6473333", "0.6445431", "0.6445431", "0.6445431", "0.6445431", "0.6445431", "0.6445431", "0.64401364", "0.64277065", "0.64261156", "0.64251083", "0.64099103", "0.64092124", "0.6405682", "0.6397885", "0.63915145", "0.6384038", "0.63731456", "0.63622135", "0.63587266", "0.6352575", "0.6335573", "0.63325787" ]
0.0
-1
initialize a duke object and run it
public static void main(String[] args) throws DukeException { new Duke("data/tasks.txt").run(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Duke(String filePath) {\n this.storage = new Storage(filePath);\n\n TaskList tmpTaskList;\n boolean tmpIsLoadedFromDisk;\n try {\n tmpTaskList = new TaskList(storage.load());\n tmpIsLoadedFromDisk = true;\n } catch (DukeException e) {\n tmpTaskList = new TaskList();\n tmpIsLoadedFromDisk = false;\n }\n\n this.taskList = tmpTaskList;\n this.dukeState = DukeState.RUNNING;\n this.isLoadedFromDisk = tmpIsLoadedFromDisk;\n }", "public static void main(String[] args) {\n new Duke(STORAGE_PATH).run();\n }", "public Duke() {\n try {\n taskList = new TaskList(storage);\n } catch (DukeException err) {\n System.out.println(err.getMessage());\n } catch (FileNotFoundException err) {\n System.out.println(\"File not found in filepath provided\");\n }\n }", "public void startDuke() {\n boolean isExit = false;\n while (!isExit) {\n try {\n String userResponse = ui.readUserResponse();\n Command command = Parser.parse(userResponse);\n command.execute(taskList, ui, storage);\n isExit = command.isExit();\n } catch (DukeException | IOException e) {\n ui.printMessage(e.getMessage());\n }\n }\n }", "public void setDuke(Duke d) {\n duke = d;\n }", "public static void main(String[] args) {\n Duke duke = new Duke();\n duke.run();\n }", "public static void main(String[] args) {\n new Duke().run();\n }", "public Duke() {\n this.ui = new Ui();\n this.storage = new Storage();\n try {\n tasks = new TaskList(storage.load());\n } catch (DukeException | IOException e) {\n tasks = new TaskList();\n e.printStackTrace();\n }\n }", "public static void main(String[] args) throws IOException {\n Duke duke = new Duke();\n duke.run();\n }", "public void setDuke(Duke d) {\n duke = d;\n d.openDukeChatBot();\n }", "public Duke() throws IOException {\n try {\n Storage storage = new Storage();\n TaskList taskList = new TaskList(storage.getTasks());\n DukeState initialState = new DukeState(taskList, storage);\n this.dukeStateManager = new DukeStateManager(initialState);\n this.ui = new Ui();\n this.parser = new Parser();\n } catch (IOException e) {\n throw new IOException(e);\n }\n }", "public Duke(String filePath) {\n this.ui = new Ui();\n this.storage = new Storage(filePath);\n try {\n this.list = new TaskList(storage.loadDukeData());\n } catch (DukeException e) {\n this.ui.printAndReturnMessage(e.getMessage());\n this.list = new TaskList();\n }\n }", "public Duke() {\n ui = new Ui();\n storage = new Storage(\"data/duke.txt\");\n try {\n tasklist = new TaskList(storage.loadFile());\n isLoaded = true;\n } catch (FileNotFoundException e) {\n tasklist = new TaskList();\n isLoaded = false;\n }\n }", "abstract T run() throws KeeperException, InterruptedException;", "public Duke(String filePath) {\n this.parser = new Parser();\n try {\n this.storage = new Storage(filePath);\n } catch (DukeException e) {\n this.storage = new Storage();\n }\n\n try {\n this.tasks = new TaskList(this.storage.loadDefaultFile());\n } catch (DukeException e) {\n this.tasks = new TaskList();\n }\n }", "public Duke(String filePath) {\n assert filePath.contains(\".txt\") : \"The storage path must contains a valid .txt file\";\n\n ui = new Ui();\n storage = new Storage(filePath);\n\n TaskList tasks = new TaskList();\n try {\n tasks = storage.load();\n } catch (DukeException e) {\n ui.showLoadingError();\n }\n\n agent = new CommandAgent(tasks);\n }", "public void run() {\n TasksCounter tc = new TasksCounter(tasks);\n new Window(tc);\n Ui.welcome();\n boolean isExit = false;\n Scanner in = new Scanner(System.in);\n while (!isExit) {\n try {\n String fullCommand = Ui.readLine(in);\n Command c = Parser.commandLine(fullCommand);\n c.execute(tasks, members, storage);\n isExit = c.isExit();\n } catch (DukeException e) {\n Ui.print(e.getMessage());\n }\n }\n }", "public Duke() {\n ui = new Ui();\n storage = new Storage();\n try {\n taskList = new TaskList(TaskList.deserialize(storage.loadData()));\n } catch (DukeException | IOException e) {\n ui.printMessage(e.getMessage());\n taskList = new TaskList();\n storage.createNewData(ui);\n }\n }", "@Override\r\n\tpublic void run() {\n\t\tSystem.out.println(\"dog run\");\r\n\t}", "public void run() {\n energy = 2;\n redBull = 0;\n gun = 1;\n target = 1;\n }", "public void run() {\r\n\t\ttargets = new Hashtable();\r\n\t\ttarget = new Enemy();\r\n\t\ttarget.distance = 100000;\r\n\t\tsetBodyColor(Color.ORANGE);\r\n\t\t// the next two lines mean that the turns of the robot, gun and radar\r\n\t\t// are independant\r\n\t\tsetAdjustGunForRobotTurn(true);\r\n\t\tsetAdjustRadarForGunTurn(true);\r\n\t\tturnRadarRightRadians(2 * PI); // turns the radar right around to get a\r\n\t\t\t\t\t\t\t\t\t\t// view of the field\r\n\t\twhile (true) {\r\n\t\t\tmove();\r\n\t\t\tdoFirePower(); // select the fire power to use\r\n\t\t\tdoScanner(); // Oscillate the scanner over the bot\r\n\t\t\tdoGun();\r\n\t\t\tout.println(target.distance); // move the gun to predict where the\r\n\t\t\t\t\t\t\t\t\t\t\t// enemy will be\r\n\t\t\tfire(firePower);\r\n\t\t\texecute(); // execute all commands\r\n\t\t}\r\n\t}", "public Duke() {\n this.ui = new Ui();\n this.storage = new Storage();\n this.tasks = new TaskList();\n this.parse = new Parser();\n this.lists = new ArrayList<Task>();\n\n }", "public Duke() {\n this.storage = new Storage(\"data/duke.txt\");\n this.ui = new Ui();\n try {\n this.tasks = new TaskList(this.storage.loadSave());\n } catch (Exception e) {\n this.ui.showLoadingError();\n }\n }", "public static void main(String[] args) {\n AbstractDuck duck = new PekingDuck();\n duck.display();\n duck.quack();\n duck.swim();\n duck.fly();\n }", "@Override\n\t public void run() {\n\t \tSnakeGame game = new SnakeGame();\n\t }", "public Duke(String filePath) {\n this.ui = new Ui();\n this.storage = new Storage(filePath);\n try {\n tasks = new TaskList(storage.load());\n } catch (DukeException | IOException e) {\n tasks = new TaskList();\n e.printStackTrace();\n }\n }", "public static void run(){}", "public void run() {\n boolean debug = debugLifecycle;\r\n if (debug) {\r\n System.out.println(\"Created : \" + getName()); \r\n }\r\n try {\r\n alive.incrementAndGet();\r\n super.run();\r\n } finally {\r\n alive.decrementAndGet();\r\n if (debug) {\r\n System.out.println(\"Exiting : \" + getName());\r\n }\r\n }\r\n }", "public static void run() {\n }", "public void run()\n\t\t{\n\t\t}", "public void doDrugRun() {\n\t\tthis.pickThing();\n\t\t// for loop that makes runner go and climb wall\n\t\tfor (int i = 0; i < 2; i++) {\n\t\t\tthis.moveToWall();\n\t\t\tthis.climbWall();\n\t\t}\n\t\tthis.putThing();\n\t}", "public void run() {\n\n\t}", "public void run() {\n\n\t}", "public Duke(String filePath) {\n ui = new Ui();\n storage = new Storage();\n taskList = new TaskList();\n parser = new Parser(taskList);\n\n try {\n storage.loadFromFile(filePath + \"/duke.txt\", taskList);\n } catch (FileNotFoundException e) {\n ui.printHorizontalLine();\n ui.printFileCreatedMessage(filePath);\n }\n }", "public void run() {\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tRunRecMaintenance maintain = new RunRecMaintenance();\n\t\t\t\t\t\tmaintain.startAutomaticMaintain();\n\t\t\t\t\t}", "@Override\n public void runCracker() {\n }", "public void run() {\n\t\t}", "public void run() {\n\t\t}", "public void run() {\n\t\t}", "public void run();", "public void run();", "public void run();", "public void run();", "public void run();", "public static void main(String[] args) {\n MallardDuck duck = new MallardDuck();\n\n WildTurkey turkey = new WildTurkey();\n Duck turkeyAdapter = new TurkeyAdapter(turkey);\n\n System.out.println(\"Turkey:\");\n turkey.gobble();\n turkey.fly();\n\n System.out.println(\"\\nDuck:\");\n testDuck(duck);\n\n System.out.println(\"\\nTurkeyAdapter:\");\n testDuck(turkeyAdapter);\n }", "public void run(){\n\t}", "private RunVolumes() {}", "public void run()\n\t{\n\t}", "void run() {\n instanceDog.setSize(20);\n go(instanceDog);\n }", "public void run() {\n\t\t\n\t}", "@Override\n public void run() {\n _brain.legs.run();\n }", "public void run() {\n // The run method should be overridden by the subordinate class. Please\n // see the example applications provided for more details.\n }", "public void run() {\n }", "public void run() {\n\n }", "@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 Duke(String filePath) {\n response = new Response();\n storage = new PersistentStorage(filePath);\n\n try {\n taskList = storage.loadTasks();\n this.isSuccessfulFileLoad = true;\n } catch (DukeException e) {\n this.isSuccessfulFileLoad = false;\n taskList = new Tasklist();\n }\n }", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t\ttest testt = new test();\r\n\t\ttestt.oninIt();\r\n\t\ttry {\r\n\t\t\ttestt.pingServer();\r\n\t\t} catch (DeploymentException | IOException | URISyntaxException | InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public void run() {\n\t}", "public void run() {\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tnew Niveau1();\n\t\t\t}", "public static void main(String[] args) {\n new Duke(\"data/tasks.txt\", \"data/members.txt\").run();\n }", "void run();", "void run();", "void run();", "void run();", "public void run() {\n\t\t\t\t\t\t}", "public void run() {\r\n\t\tGameArchive ga = GameArchive.getInstance();\r\n\t\tga.newGame();\r\n\t\t_game = ga.getCurrentGame();\r\n\t\tint startRound = 1;\r\n\t\tint endRound = (int)(1.0*cardFinder.getCardsInDeck() /_playerCollection.size());\r\n\t\tint dealer = -1;\r\n\t\tint lead = 0;\r\n\t\tint inc = 1;\r\n\t\tif(go.getGameSpeed().equals(GameSpeed.QUICK_PLAY)) {\r\n\t\t\tinc = 2;\r\n\t\t\tif(_playerCollection.size() != 4) {\r\n\t\t\t\tstartRound = 2;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\tList<Integer> playerIds = getPlayerId();\r\n\t\tList<String> playerNames = getPlayerNames();\r\n\t\tfor (int i = 0; i < playerIds.size(); i++) {\r\n\t\t\t_game.addPlayer(playerIds.get(i), playerNames.get(i));\r\n\t\t}\r\n\t\tgameEventNotifier.notify(new NewGameEvent(playerIds,playerNames));\r\n\t\tfor (int roundId = startRound; roundId < endRound + 1; roundId = roundId + inc) {\r\n\t\t\tdealer = (dealer + 1)% _playerCollection.size();\r\n\t\t\tlead = (dealer + 1)% _playerCollection.size();\r\n\t\t\tgameEventNotifier.notify(new NewRoundEvent(roundId));\r\n\t\t\t_game.newRound(roundId);\r\n\t\t\tRound round = _game.getCurrentRound();\r\n\t\t\tCard trump = dealCards(roundId, dealer, lead);\r\n\t\t\tgameEventNotifier.notify(new NewTrumpEvent(trump));\r\n\t\t\tround.setTrump(trump);\r\n\r\n\t\t\tif(trump != null && trump.getValue().equals(Value.WIZARD)) {\r\n\t\t\t\tPlayer trumpPicker = _playerCollection.get(dealer);\r\n\t\t\t\t//_logger.info(trumpPicker.getName() + \" gets to pick trump.\");\r\n\t\t\t\ttrump = new Card(null, trumpPicker.pickTrump(), -1);\r\n\t\t\t\tgameEventNotifier.notify(new NewTrumpEvent(trump));\r\n\t\t\t\tround.setTrump(trump);\r\n\t\t\t}\r\n\t\t\tint cardsDealt = roundId;\r\n\t\t\tBid bid = bid(trump, lead, cardsDealt, round);\r\n\t\t\tif(go.getBidType().equals(BidType.HIDDEN)) {\r\n\t\t\t\tfor(IndividualBid individualBid :bid.getBids()) {\r\n\t\t\t\t\tgameEventNotifier.notify(new PlayerBidEvent(individualBid.getPlayer().getId(), individualBid.getBid()));\r\n\t\t\t\t\tround.setBid(individualBid.getPlayer().getId(), individualBid.getBid());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tRoundSummary roundSummary = new RoundSummary();\r\n\t\t\tfor (int i = 0; i < roundId; i++) {\r\n\t\t\t\tTrickTracker trickTracker = playTrick(trump, lead, round);\r\n\t\t\t\troundSummary.addTrickTracker(trickTracker);\r\n\t\t\t\tint playerIdWhoWon = trickTracker.winningPlay().getPlayerId();\r\n\t\t\t\tlead = findPlayerIndex(playerIdWhoWon);\r\n\t\t\t}\r\n\t\t\tif(go.getBidType().equals(BidType.SECRET)) {\r\n\t\t\t\tfor(IndividualBid individualBid :bid.getBids()) {\r\n\t\t\t\t\tgameEventNotifier.notify(new PlayerBidEvent(individualBid.getPlayer().getId(), individualBid.getBid()));\r\n\t\t\t\t\tround.setBid(individualBid.getPlayer().getId(), individualBid.getBid());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tscoreRound(roundSummary, bid, _game);\r\n\t\t\tthis.overallScores.displayScore();\r\n\t\t}\r\n\t\tCollection<Integer> winningPlayerIds = calcWinningIds();\r\n\t\tCollection<String> winningPlayers = getPlayerNames(winningPlayerIds);\r\n\t\tfor(int winningIds:winningPlayerIds) {\r\n\t\t\t_game.addWinner(winningIds);\r\n\t\t}\r\n\t\tgameEventNotifier.notify(new GameOverEvent(winningPlayerIds, winningPlayers));\r\n\t}", "public void run() {\n\t\t\r\n\t}", "public void run() {\n\t\t\r\n\t}", "public void setDuke(Duke d) {\n this.duke = d;\n updateTotalSpentLabel();\n }", "public void run() {\n\t\t\t\t\n\t\t\t}", "public void run() {\n }", "public void run() {\n\t\texecuteCommand( client, false );\n\t}", "Run createRun();", "public void _run() {\n String[] args = (String[])tEnv.getObjRelation(\"ARGS\");\n\n log.println(\"Running with arguments:\");\n for (int i=0; i< args.length; i++)\n log.println(\"#\" + i + \": \" + args[i]);\n\n oObj.run(args);\n\n tRes.tested(\"run()\", true);\n }", "public void run() {\n }", "public void run() {\n }", "public void run() {\n }", "protected void run() {\r\n\t\t//\r\n\t}", "@Override\n\t\tpublic void run() {\n\n\t\t}", "public void run() {\r\n\t\ttry {\r\n\t\t\tListenForHandshakes();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void run() {\r\n\t\t// overwrite in a subclass.\r\n\t}", "public void start() {\n dialogContainer.getChildren().addAll(\n DialogBox.getDukeDialog(Messages.START, dukeImage)\n );\n }", "public void run() {\n long creationInterval = MILLISEC_PER_SEC / this.generationRate;\n\n int curIndex = 0;\n long startTime, endTime, diff, sleepTime, dur = this.test_duration;\n\n do {\n // startTime = System.nanoTime();\n startTime = System.currentTimeMillis();\n\n Request r = new DataKeeperRequest((HttpClient) this.clients[curIndex], this.appserverID, this.url);\n curIndex = (curIndex + 1) % clientsPerNode;\n this.requests.add(r);\n\n try {\n r.setEnterQueueTime();\n this.requestQueue.put(r);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n\n // endTime = System.nanoTime();\n endTime = System.currentTimeMillis();\n diff = endTime - startTime;\n dur -= diff;\n sleepTime = creationInterval - diff;\n if (sleepTime < 0) {\n continue;\n }\n\n try {\n // Thread.sleep(NANO_PER_MILLISEC / sleepTime, (int) (NANO_PER_MILLISEC % sleepTime));\n Thread.sleep(sleepTime);\n } catch (InterruptedException e) {\n throw new RuntimeException(e);\n }\n\n dur -= sleepTime;\n } while (dur > 0);\n\n try {\n this.requestQueue.put(new ExitRequest());\n this.requestQueueHandler.join();\n } catch (InterruptedException e) {\n throw new RuntimeException(e);\n }\n }", "public static void main(String[] args) {\n\t\tDuck duck1 = new MallardDuck();\n\t\tDuck duck2 = new RedheadDuck();\n\t\tDuck duck3 = new RubberDuck();\n\n\t\tduck1.display();\n\t\tduck1.performFly();\n\t\tduck1.performQuack();\n\t\tduck1.swim();\n\t\tSystem.out.println(\"----------\");\n\t\tduck2.display();\n\t\tduck2.performFly();\n\t\tduck2.performQuack();\n\t\tduck2.swim();\n\t\tSystem.out.println(\"----------\");\n\t\tduck3.display();\n\t\tduck3.performFly();\n\t\tduck3.performQuack();\n\t\tduck3.swim();\n\n\t}", "public void run()\r\n\t{\r\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void run() {\n\n\t\t\t}", "public void run() {\r\n }", "public static void main(String[] args) {\n new ShootMe();\n\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t\tRandom r = new Random();\n\t\t\t\tint x = r.nextInt(700);\n\t\t\t\tint y = r.nextInt(700);\n\t\t\t\tdaoju dj = new daoju(1, x, y);\n\t\t\t\tSystem.out.println(dj.x + \" \" + dj.y);\n\t\t\t\tjp.djs.add(dj);\n\n\t\t\t}", "public void run() {\n\t\t\t\t\t\tcmd.killProcess(deviceId, \"monkey\");\n\t\t\t\t\t}", "public void run() {\n\t\t\t\t\t\tcmd.killProcess(deviceId, \"monkey\");\n\t\t\t\t\t}", "public void run() {\n }", "@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}", "public void run() {\n }", "public void run() {\n }", "public void run() {\n }", "public void run() {\n }" ]
[ "0.6589819", "0.6409272", "0.64080924", "0.6388248", "0.63726276", "0.63260835", "0.62746847", "0.6270717", "0.6238325", "0.61446166", "0.6030088", "0.5986126", "0.59571064", "0.5952825", "0.5941619", "0.5902712", "0.5825249", "0.58234936", "0.5778279", "0.5724521", "0.5705553", "0.57052463", "0.5698884", "0.5695031", "0.56825393", "0.5678762", "0.56587803", "0.5651492", "0.56459874", "0.56423885", "0.5631838", "0.5579123", "0.5579123", "0.5567289", "0.5559469", "0.55586225", "0.5551849", "0.55502224", "0.55502224", "0.55502224", "0.55455375", "0.55455375", "0.55455375", "0.55455375", "0.55455375", "0.55217975", "0.54945326", "0.5493675", "0.5488341", "0.5484973", "0.54801553", "0.5479722", "0.54787904", "0.5472237", "0.5458906", "0.54559684", "0.5452884", "0.54518515", "0.5451409", "0.5451409", "0.54342896", "0.5433656", "0.54311275", "0.54311275", "0.54311275", "0.54311275", "0.5430187", "0.5427468", "0.54237515", "0.54237515", "0.5421695", "0.54027724", "0.53972584", "0.539409", "0.5385429", "0.5376096", "0.53672475", "0.53672475", "0.53672475", "0.5358796", "0.53541327", "0.53541255", "0.5338151", "0.5333193", "0.5328032", "0.53228575", "0.53194976", "0.5317201", "0.531538", "0.53116673", "0.53050834", "0.53042835", "0.53042835", "0.5302952", "0.5300811", "0.5300811", "0.52887", "0.52887", "0.52887", "0.52887" ]
0.5566762
34
Create new views (invoked by the layout manager)
@Override public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.story, parent, false); return new ViewHolder(view); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "View createView();", "private void addViews() {\n\t}", "@Override\n public void Create() {\n\n initView();\n }", "ViewContainer createViewContainer();", "private void createView() {\n\t\tTabWidget tWidget = (TabWidget) findViewById(android.R.id.tabs);\r\n\t\tshowLayout = (LinearLayout) LayoutInflater.from(this).inflate(\r\n\t\t\t\tR.layout.tab_layout, tWidget, false);\r\n\t\tImageView imageView = (ImageView) showLayout.getChildAt(0);\r\n\t\tTextView textView = (TextView) showLayout.getChildAt(1);\r\n\t\timageView.setImageResource(R.drawable.main_selector);\r\n\t\ttextView.setText(R.string.show);\r\n\r\n\t\taddLayout = (LinearLayout) LayoutInflater.from(this).inflate(\r\n\t\t\t\tR.layout.tab_layout, tWidget, false);\r\n\t\tImageView imageView1 = (ImageView) addLayout.getChildAt(0);\r\n\t\tTextView textView1 = (TextView) addLayout.getChildAt(1);\r\n\t\timageView1.setImageResource(R.drawable.add_selector);\r\n\t\ttextView1.setText(R.string.add_record);\r\n\r\n\t\tchartLayout = (LinearLayout) LayoutInflater.from(this).inflate(\r\n\t\t\t\tR.layout.tab_layout, tWidget, false);\r\n\t\tImageView imageView2 = (ImageView) chartLayout.getChildAt(0);\r\n\t\tTextView textView2 = (TextView) chartLayout.getChildAt(1);\r\n\t\timageView2.setImageResource(R.drawable.chart_selector);\r\n\t\ttextView2.setText(R.string.chart_show);\r\n\t}", "public abstract void initViews();", "private void initView() {\n\n LayoutInflater inflater = getLayoutInflater();\n final int screenWidth = MyUtils.getScreenMetrics(this).widthPixels;\n final int screenHeight = MyUtils.getScreenMetrics(this).heightPixels;\n for (int i = 0; i < 3; i++) {\n ViewGroup layout = (ViewGroup) inflater.inflate(\n R.layout.content_layout, myHorizontal, false);\n layout.getLayoutParams().width = screenWidth;\n TextView textView = (TextView) layout.findViewById(R.id.title);\n textView.setText(\"page \" + (i + 1));\n layout.setBackgroundColor(Color.rgb(255 / (i + 1), 255 / (i + 1), 0));\n createList(layout);\n myHorizontal.addView(layout);\n }\n }", "private void initViews() {\n\n }", "private void initViews() {\n\n\t}", "protected abstract void initViews();", "private void createView() {\n\t\tif (txtButtonCaption == null) {\n\t\t\tView v = LayoutInflater.from(getContext()).inflate(R.layout.ijoomer_voice_button, null);\n\n\t\t\tlnrPlayVoice = (LinearLayout) v.findViewById(R.id.lnrPlayVoice);\n\t\t\tlnrReportVoice = (LinearLayout) v.findViewById(R.id.lnrReportVoice);\n\n\t\t\ttxtButtonCaption = (IjoomerTextView) v.findViewById(R.id.txtButtonCaption);\n\t\t\timgPlay = (ImageView) v.findViewById(R.id.imgPlay);\n\t\t\tgifVoiceLoader = (IjoomerGifView) v.findViewById(R.id.gifVoiceLoader);\n\n\t\t\timgReport = (ImageView) v.findViewById(R.id.imgReport);\n\t\t\ttxtReportCaption = (IjoomerTextView) v.findViewById(R.id.txtReportCaption);\n\n\t\t\tpbrLoading = (ProgressBar) v.findViewById(R.id.pbrLoading);\n\n\t\t\taddView(v, new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT));\n\t\t\tupdateView();\n\t\t\tsetActionListener();\n\t\t}\n\t}", "public void initViews(){\n }", "@Override\n public void Create() {\n initView();\n initData();\n }", "public void createUI() {\r\n\t\ttry {\r\n\t\t\tJPanel centerPanel = this.createCenterPane();\r\n\t\t\tJPanel westPanel = this.createWestPanel();\r\n\t\t\tm_XONContentPane.add(westPanel, BorderLayout.WEST);\r\n\t\t\tm_XONContentPane.add(centerPanel, BorderLayout.CENTER);\r\n\t\t\tm_XONContentPane.revalidate();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tRGPTLogger.logToFile(\"Exception at createUI \", ex);\r\n\t\t}\r\n\t}", "private void createAndAddViews() {\n \t\t// Create the layout parameters for each field\n \t\tfinal LinearLayout.LayoutParams labelParams = new LinearLayout.LayoutParams(\n \t\t\t\t0, LayoutParams.WRAP_CONTENT, 0.3f);\n \t\tlabelParams.gravity = Gravity.RIGHT;\n \t\tlabelParams.setMargins(0, 25, 0, 0);\n \t\tfinal LinearLayout.LayoutParams valueParams = new LinearLayout.LayoutParams(\n \t\t\t\t0, LayoutParams.WRAP_CONTENT, 0.7f);\n \t\tvalueParams.gravity = Gravity.LEFT;\n \t\tvalueParams.setMargins(0, 25, 0, 0);\n \n \t\t// Add a layout and text views for each property\n \t\tfor (final StockProperty property : m_propertyList) {\n \t\t\tLog.d(TAG, \"Adding row for property: \" + property.getPropertyName());\n \n \t\t\t// Create a horizontal layout for the label and value\n \t\t\tfinal LinearLayout layout = new LinearLayout(this);\n \t\t\tlayout.setLayoutParams(new LinearLayout.LayoutParams(\n \t\t\t\t\tLayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT));\n \n \t\t\t// Create a TextView for the label\n \t\t\tfinal TextView label = new TextView(this);\n \t\t\tlabel.setLayoutParams(labelParams);\n \t\t\tlabel.setText(property.getLabelText());\n \t\t\tlabel.setTextAppearance(this, android.R.style.TextAppearance_Medium);\n \t\t\tlayout.addView(label);\n \n \t\t\t// Configure and add the value TextView (created when the property\n \t\t\t// was constructed)\n \t\t\tfinal TextView value = property.getView();\n \t\t\tvalue.setLayoutParams(valueParams);\n \t\t\tvalue.setHint(\"None\");\n \t\t\tvalue.setTextAppearance(this, android.R.style.TextAppearance_Medium);\n \t\t\tvalue.setTypeface(null, Typeface.BOLD);\n \t\t\tlayout.addView(value);\n \n \t\t\t// Add the row to the main layout\n \t\t\tm_resultsLayout.addView(layout);\n \t\t}\n \t}", "private void createTileViews() {\n\t\tfor (short row = 0; row < gridSize; row++) {\n\t\t\tfor (short column = 0; column < gridSize; column++) {\n\t\t\t\tTileView tv = new TileView(context, row, column);\n\t\t\t\ttileViews.add(tv);\n\t\t\t\ttableRow.get(row).addView(tv);\n\t\t\t} // end column\n\t\t\tparentLayout.addView(tableRow.get(row));\n\t\t} // end row\n\n\t}", "@Override\r\n\tprotected void initViews() {\n\t\t\r\n\t}", "private void InitView() {\n\t\tmLinearLayout = new LinearLayout(getContext());\n\t\t//mLinearLayout.setBackgroundResource(MusicApplication.getInstance().getBgResource());\n\t\t\n\t\t//Modify by LiYongNam 2012.9.19_start\n\t\tMusicUtil.setBackgroundOfView ( mLinearLayout, getContext() );\t\t\t\t\n\t\t//Modify by LiYongNam 2012.9.19_end\n\t\t\n\t\tmLinearLayout.setOrientation(LinearLayout.VERTICAL);\n\t\tmLinearLayout.setPadding(1, 1, 1, Util.dipTopx(getContext(), 60));\n\t\t// 导航条\n\t\taddTitleBar(-1, \"编辑列表\", R.drawable.check_off, R.drawable.title_bar);\n\n\t\tmControlBar = new ControlBar(getContext());\n\t\tmControlBar.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,\n\t\t\t\tUtil.dipTopx(getContext(), 60)));\n\n//\t\taddControlButton(\"全选\", CONTROL1, 0);\n\t\taddControlButton(\"播放\", CONTROL2, 1);\n\t\taddControlButton(\"加入\", CONTROL3, 2);\n\t\taddControlButton(\"删除\", CONTROL4, 3);\n\n\t}", "@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.live_layout, null);\r\n\t}", "protected void createLayout() {\n\t\tthis.layout = new GridLayout();\n\t\tthis.layout.numColumns = 2;\n\t\tthis.layout.marginWidth = 2;\n\t\tthis.setLayout(this.layout);\n\t}", "private void registerViews() {\n\t}", "public void onCreateClick(){\r\n\t\tmyView.advanceToCreate();\r\n\t}", "ViewElement createViewElement();", "private void setViews() {\n\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\tView v=inflater.inflate(R.layout.notepad_main, container, false);\r\n\t\tbody=(LineEditText) v.findViewById(R.id.body);\r\n\t\tdel=(Button) v.findViewById(R.id.delAll);\r\n\t\tdel.setOnClickListener(this);\r\n\t\treturn v;\r\n\t}", "@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 void createInitialLayout(IPageLayout layout) {\n defineActions(layout);\n defineLayout(layout);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmRoot = inflater.inflate(R.layout.mouse_layout, container, false); \n\t\tinitializeUI();\n\t\treturn mRoot; \n }", "public myView() {\n initComponents();\n CreatMenu();\n }", "@Override\n\tpublic View onMainCreateView(Activity activity) {\n\t\tlayout = new FrameLayout(activity);\n\t\treturn layout;\n\t}", "@Override\n\tpublic View onCreateView(LayoutInflater inflater,\n\t\t\t@Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.one, null);\n\t\treturn view;\n\t}", "@Override\n public View getView() {\n photoLayout = new LinearLayout(context);\n addPhotoButton = new Button(context);\n addPhotoButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dispatchTakePictureIntent();\n }\n });\n addPhotoButton.setText(\"Take a photo\");\n photoLayout.addView(addPhotoButton);\n// photoLayout.\n return photoLayout;\n }", "public abstract ArchECoreView newView(ArchECoreArchitecture architecture) throws ArchEException;", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tmContext = getActivity();\n\t\tll = new LinearLayout(getActivity());\n\t\tLinearLayout.LayoutParams params = new LinearLayout.LayoutParams(\n\t\t\t\tLinearLayout.LayoutParams.FILL_PARENT,\n\t\t\t\tLinearLayout.LayoutParams.FILL_PARENT);\n\t\tthis.getActivity().addContentView(ll, params);\n\t}", "private void loadViews(){\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.main_u_test, null);\r\n ViewUtils.inject(this, view);\r\n\r\n btnOne.setOnClickListener(this);\r\n btnTwo.setOnClickListener(this);\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_add_work, container, false);\n initializeViews(view);\n tvDone.setOnClickListener(this);\n tvBack.setOnClickListener(this);\n return view;\n }", "public void layout() {\n TitleLayout ll1 = new TitleLayout(getContext(), sourceIconView, titleTextView);\n\n // All items in ll1 are vertically centered\n ll1.setGravity(Gravity.CENTER_VERTICAL);\n ll1.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n ll1.addView(sourceIconView);\n ll1.addView(titleTextView);\n\n // Container layout for all the items\n if (mainLayout == null) {\n mainLayout = new LinearLayout(getContext());\n mainLayout.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n mainLayout.setPadding(adaptSizeToDensity(LEFT_PADDING),\n adaptSizeToDensity(TOP_PADDING),\n adaptSizeToDensity(RIGHT_PADDING),\n adaptSizeToDensity(BOTTOM_PADDING));\n mainLayout.setOrientation(LinearLayout.VERTICAL);\n }\n\n mainLayout.addView(ll1);\n\n if(syncModeSet) {\n mainLayout.addView(syncModeSpinner);\n }\n\n this.addView(mainLayout);\n }", "public abstract void initView();", "private void initView() {\n\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 }", "protected void onLoadLayout(View view) {\n }", "protected abstract void initView();", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.add, container, false);\n }", "protected abstract void setupMvpView();", "private void init() {\n mainll = new LinearLayout(getContext());\n mainll.setId(View.generateViewId());\n mainll.setLayoutParams(new ActionBar.LayoutParams(ActionBar.LayoutParams.MATCH_PARENT, ActionBar.LayoutParams.WRAP_CONTENT));\n mainll.setOrientation(LinearLayout.VERTICAL);\n\n map = new HashMap<>();\n\n RelativeLayout mainrl = new RelativeLayout(getContext());\n RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(ActionBar.LayoutParams.MATCH_PARENT,\n ActionBar.LayoutParams.WRAP_CONTENT);\n\n params.addRule(RelativeLayout.BELOW, mainll.getId());\n\n save = new Button(getContext());\n\n save.setLayoutParams(params);\n save.setText(\"save\");\n\n mainrl.addView(mainll);\n mainrl.addView(save);\n addView(mainrl);\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.xxh_gamelayout3, container, false);\n\t}", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\t\n\t\tView arrangeOrderLayout = inflater.inflate(R.layout.arrange_order, container, false);\n\t\tinitButton(arrangeOrderLayout);\n\t\tinitListView(arrangeOrderLayout);\n\t\treturn arrangeOrderLayout;\n\t}", "interface ViewCreator {\n /**\n * Creates a view\n * @param path\n * @param sql\n * @param sqlContext\n */\n void createView(List<String> path, String sql, List<String> sqlContext, NamespaceAttribute... attributes);\n\n /**\n * Updates a view\n * @param path\n * @param sql\n * @param sqlContext\n * @param attributes\n */\n void updateView(List<String> path, String sql, List<String> sqlContext, NamespaceAttribute... attributes);\n\n /**\n * Drops a view\n * @param path\n */\n void dropView(List<String> path);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) \n {\n super.onCreate(savedInstanceState);\n\n setContentView(R.layout.main); \n createLayout();\n }", "@Override\n public View onCreateView(LayoutInflater inflater,\n @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n mRootView = inflater.inflate(getLayoutId(), null);\n x.view().inject(this, mRootView);\n return mRootView;\n }", "private void createWidgets() {\n\n\t\tJPanel filmPanel = createFilmPanel();\n\t\tJPanel musicPanel = createMusicPanel();\n\t\tJPanel unclassPanel = createUnclassifiedPanel();\n\n\t\tthis.add(filmPanel);\n\t\tthis.add(musicPanel);\n\t\tthis.add(unclassPanel);\n\t}", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\tView layout = inflater.inflate(R.layout.fragment_assistant, container, false);\r\n\t\tlayout.findViewById(R.id.kaniu).setOnClickListener(this);\r\n\t\tlayout.findViewById(R.id.img_add).setOnClickListener(this);\r\n\t\tinitListView(layout);\r\n\t\treturn layout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_top_matrix, container, false);\n\n\n //Wire up the UI widgets so they can handle events later\n wireWidgets(v);\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.first_step_layout, container, false);\n initView();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_new_design, 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.main_fhmx, container, false);\r\n\t}", "private void createContents() {\n\t\tshlEditionRussie = new Shell(getParent(), getStyle());\n\t\tshlEditionRussie.setSize(470, 262);\n\t\tshlEditionRussie.setText(\"Edition r\\u00E9ussie\");\n\t\t\n\t\tLabel lblLeFilm = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblLeFilm.setBounds(153, 68, 36, 15);\n\t\tlblLeFilm.setText(\"Le film\");\n\t\t\n\t\tLabel lblXx = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblXx.setBounds(195, 68, 21, 15);\n\t\tlblXx.setText(\"\" + getViewModel());\n\t\t\n\t\tLabel lblABient = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblABient.setText(\"a bien \\u00E9t\\u00E9 modifi\\u00E9\");\n\t\tlblABient.setBounds(222, 68, 100, 15);\n\t\t\n\t\tButton btnRevenirLa = new Button(shlEditionRussie, SWT.NONE);\n\t\tbtnRevenirLa.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tm_Infrastructure.runController(shlEditionRussie, ListMoviesController.class);\n\t\t\t}\n\t\t});\n\t\tbtnRevenirLa.setBounds(153, 105, 149, 25);\n\t\tbtnRevenirLa.setText(\"Revenir \\u00E0 la liste des films\");\n\n\t}", "public ViewClass() {\n\t\tcreateGUI();\n\t\taddComponentsToFrame();\n\t\taddActionListeners();\n\t}", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.fragment_topo_structure,\n\t\t\t\tcontainer, false);\n\t\tnodeView = (topoStructureView) view.findViewById(R.id.topoStructureView);\n\t\tif (MainActivity.serialPortConnect)\n\t\t\tnew Thread(new MyThread()).start();\n\t\t\n\t\treturn view;\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View layout = inflater.inflate(R.layout.fragment_explore, container, false);\n PlantasInit(getContext());\n rv = layout.findViewById(R.id.homerv);\n rv.setLayoutManager(new LinearLayoutManager(getContext(), LinearLayout.VERTICAL,false));\n return layout;\n }", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(41, 226, 75, 25);\n\t\tbtnNewButton.setText(\"Limpiar\");\n\t\t\n\t\tButton btnGuardar = new Button(shell, SWT.NONE);\n\t\tbtnGuardar.setBounds(257, 226, 75, 25);\n\t\tbtnGuardar.setText(\"Guardar\");\n\t\t\n\t\ttext = new Text(shell, SWT.BORDER);\n\t\ttext.setBounds(25, 181, 130, 21);\n\t\t\n\t\ttext_1 = new Text(shell, SWT.BORDER);\n\t\ttext_1.setBounds(230, 181, 130, 21);\n\t\t\n\t\ttext_2 = new Text(shell, SWT.BORDER);\n\t\ttext_2.setBounds(25, 134, 130, 21);\n\t\t\n\t\ttext_3 = new Text(shell, SWT.BORDER);\n\t\ttext_3.setBounds(25, 86, 130, 21);\n\t\t\n\t\ttext_4 = new Text(shell, SWT.BORDER);\n\t\ttext_4.setBounds(25, 42, 130, 21);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(227, 130, 75, 25);\n\t\tbtnNewButton_1.setText(\"Buscar\");\n\t\t\n\t\tLabel label = new Label(shell, SWT.NONE);\n\t\tlabel.setBounds(25, 21, 55, 15);\n\t\tlabel.setText(\"#\");\n\t\t\n\t\tLabel lblFechaYHora = new Label(shell, SWT.NONE);\n\t\tlblFechaYHora.setBounds(25, 69, 75, 15);\n\t\tlblFechaYHora.setText(\"Fecha y Hora\");\n\t\t\n\t\tLabel lblPlaca = new Label(shell, SWT.NONE);\n\t\tlblPlaca.setBounds(25, 113, 55, 15);\n\t\tlblPlaca.setText(\"Placa\");\n\t\t\n\t\tLabel lblMarca = new Label(shell, SWT.NONE);\n\t\tlblMarca.setBounds(25, 161, 55, 15);\n\t\tlblMarca.setText(\"Marca\");\n\t\t\n\t\tLabel lblColor = new Label(shell, SWT.NONE);\n\t\tlblColor.setBounds(230, 161, 55, 15);\n\t\tlblColor.setText(\"Color\");\n\n\t}", "private void initView() {\n\t\tsna_viewpager = (ViewPager) findViewById(R.id.sna_viewpager);\r\n\t\thost_bt = (Button) findViewById(R.id.host_bt);\r\n\t\tcomment_bt = (Button) findViewById(R.id.comment_bt);\r\n\t\tback_iv = (ImageView) findViewById(R.id.back_iv);\r\n\t\trelativeLayout_project = (RelativeLayout) findViewById(R.id.relativeLayout_project);\r\n\t\trelativeLayout_addr = (RelativeLayout) findViewById(R.id.relativeLayout_addr);\r\n\t\trelativeLayout_activity = (RelativeLayout) findViewById(R.id.relativeLayout_activity);\r\n\t\trelativeLayout_host = (RelativeLayout) findViewById(R.id.relativeLayout_host);\r\n\t\trelativeLayout_comment = (RelativeLayout) findViewById(R.id.relativeLayout_comment);\r\n\t\tll_point = (LinearLayout) findViewById(R.id.ll_point);\r\n\t\tstoyrName = (TextView) findViewById(R.id.stoyrName);\r\n\t\tstory_addr = (TextView) findViewById(R.id.story_addr);\r\n\t\t\r\n\t}", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n\n\n view = inflater.inflate(LAYOUT, container, false);\n return view;\n }", "@Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(getLayoutViewId());\n// presenter = getPresenter(typePresenter);\n init();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_factories, container, false);\n initViews();\n return view;\n }", "private View onRealCreateView(Context context, String name, AttributeSet attrs) {\n View view = null;\n try {\n if (-1 == name.indexOf('.')) {\n if (\"View\".equals(name)) {\n view = LayoutInflater.from(context).createView(name, \"android.view.\", attrs);\n }\n if (view == null) {\n view = LayoutInflater.from(context).createView(name, \"android.widget.\", attrs);\n }\n if (view == null) {\n view = LayoutInflater.from(context).createView(name, \"android.webkit.\", attrs);\n }\n } else {\n view = LayoutInflater.from(context).createView(name, null, attrs);\n }\n\n LogUtils.i(\"about to create \" + name);\n\n } catch (Exception e) {\n LogUtils.e(\"error while create 【\" + name + \"】 : \" + e.getMessage());\n view = null;\n }\n return view;\n }", "void initView();", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_add_info, container, false);\n //Initialise UI elements\n saveButton = view.findViewById(R.id.save_button);\n saveButton.setOnClickListener(this);\n EditText titleEdit = view.findViewById(R.id.maze_title_edit);\n loadingScreen = view.findViewById(R.id.loading_screen);\n titleEdit.addTextChangedListener(createMazeTextWatcher);\n publicToggle = view.findViewById(R.id.public_switch);\n initPublicToggle();\n return view;\n }", "private View creatView(ViewGroup parent) {\n\t\tView convertView;\n\t\tViewHolder vh = new ViewHolder();\n\t\tconvertView = LayoutInflater.from(mContext).inflate(R.layout.message_function_layout, parent, false);\n\t\tvh.mImageView = (ImageView)convertView.findViewById(R.id.message_function_btn);\n\t\tvh.mTextView = (TextView)convertView.findViewById(R.id.message_function_name);\n\t\tconvertView.setTag(vh);\n\t\treturn convertView;\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.day_layout, container,false);\n setPieMap(v);\n loadDatas();\n simulator();\n return v;\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 }", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tGroup group_1 = new Group(shell, SWT.NONE);\n\t\tgroup_1.setText(\"\\u65B0\\u4FE1\\u606F\\u586B\\u5199\");\n\t\tgroup_1.setBounds(0, 120, 434, 102);\n\t\t\n\t\tLabel label_4 = new Label(group_1, SWT.NONE);\n\t\tlabel_4.setBounds(10, 21, 61, 17);\n\t\tlabel_4.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel label_5 = new Label(group_1, SWT.NONE);\n\t\tlabel_5.setText(\"\\u7528\\u6237\\u7535\\u8BDD\");\n\t\tlabel_5.setBounds(10, 46, 61, 17);\n\t\t\n\t\tLabel label_6 = new Label(group_1, SWT.NONE);\n\t\tlabel_6.setText(\"\\u5BC6\\u7801\");\n\t\tlabel_6.setBounds(10, 75, 61, 17);\n\t\t\n\t\ttext = new Text(group_1, SWT.BORDER);\n\t\ttext.setBounds(121, 21, 140, 17);\n\t\t\n\t\ttext_1 = new Text(group_1, SWT.BORDER);\n\t\ttext_1.setBounds(121, 46, 140, 17);\n\t\t\n\t\ttext_2 = new Text(group_1, SWT.BORDER);\n\t\ttext_2.setBounds(121, 75, 140, 17);\n\t\t\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.setBounds(31, 228, 80, 27);\n\t\tbtnNewButton.setText(\"\\u63D0\\u4EA4\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(288, 228, 80, 27);\n\t\tbtnNewButton_1.setText(\"\\u91CD\\u586B\");\n\t\t\n\t\tGroup group = new Group(shell, SWT.NONE);\n\t\tgroup.setText(\"\\u539F\\u5148\\u4FE1\\u606F\");\n\t\tgroup.setBounds(0, 10, 320, 102);\n\t\t\n\t\tLabel label = new Label(group, SWT.NONE);\n\t\tlabel.setBounds(10, 20, 61, 17);\n\t\tlabel.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel lblNewLabel = new Label(group, SWT.NONE);\n\t\tlblNewLabel.setBounds(113, 20, 61, 17);\n\t\t\n\t\tLabel label_1 = new Label(group, SWT.NONE);\n\t\tlabel_1.setBounds(10, 43, 61, 17);\n\t\tlabel_1.setText(\"\\u6027\\u522B\");\n\t\t\n\t\tButton btnRadioButton = new Button(group, SWT.RADIO);\n\t\t\n\t\tbtnRadioButton.setBounds(90, 43, 97, 17);\n\t\tbtnRadioButton.setText(\"\\u7537\");\n\t\tButton btnRadioButton_1 = new Button(group, SWT.RADIO);\n\t\tbtnRadioButton_1.setBounds(208, 43, 97, 17);\n\t\tbtnRadioButton_1.setText(\"\\u5973\");\n\t\t\n\t\tLabel label_2 = new Label(group, SWT.NONE);\n\t\tlabel_2.setBounds(10, 66, 61, 17);\n\t\tlabel_2.setText(\"\\u7528\\u6237\\u7535\\u8BDD\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(group, SWT.NONE);\n\t\tlblNewLabel_1.setBounds(113, 66, 61, 17);\n\t\t\n\t\tLabel label_3 = new Label(group, SWT.NONE);\n\t\tlabel_3.setBounds(10, 89, 61, 17);\n\t\tlabel_3.setText(\"\\u5BC6\\u7801\");\n\t\tLabel lblNewLabel_2 = new Label(group, SWT.NONE);\n\t\tlblNewLabel_2.setBounds(113, 89, 61, 17);\n\t\t\n\t\ttry {\n\t\t\tUserDao userDao=new UserDao();\n\t\t\tlblNewLabel_2.setText(User.getPassword());\n\t\t\tlblNewLabel.setText(User.getUserName());\n\t\t\n\t\t\t\n\n\t\t\n\t\t\ttry {\n\t\t\t\tList<User> userList=userDao.query();\n\t\t\t\tString results[][]=new String[userList.size()][5];\n\t\t\t\tlblNewLabel.setText(User.getUserName());\n\t\t\t\tlblNewLabel_1.setText(User.getSex());\n\t\t\t\tlblNewLabel_2.setText(User.getUserPhone());\n\t\t\t\tButton button = new Button(shell, SWT.NONE);\n\t\t\t\tbutton.setBounds(354, 0, 80, 27);\n\t\t\t\tbutton.setText(\"\\u8FD4\\u56DE\");\n\t\t\t\tbutton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\t\t\tshell.dispose();\n\t\t\t\t\t\tbook book=new book();\n\t\t\t\t\t\tbook.open();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(int i = 0; i < userList.size(); i++) {\n\t\t\t\t\t\tUser user1 = (User)userList.get(i);\t\n\t\t\t\t\tresults[i][0] = user1.getUserName();\n\t\t\t\t\tresults[i][1] = user1.getSex();\t\n\t\t\t\t\tresults[i][2] = user1.getPassword();\t\n\t\n\t\t\t\t\tif(user1.getSex().equals(\"男\"))\n\t\t\t\t\t\tbtnRadioButton.setSelection(true);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbtnRadioButton_1.setSelection(true);\n\t\t\t\t\tlblNewLabel_1.setText(user1.getUserPhone());\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tif(!text_1.getText().equals(\"\")&&!text.getText().equals(\"\")&&!text_2.getText().equals(\"\"))\n\t\t\tuserDao.updateUser(text_1.getText(), text.getText(), text_2.getText());\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tuserDao.updateUser(text_1.getText(), text.getText(), text_2.getText());\n\t\t\t\t\tif(!text_1.getText().equals(\"\")&&!text_2.getText().equals(\"\")&&!text.getText().equals(\"\"))\n\t\t\t\t\t{shell.dispose();\n\t\t\t\t\tbook book=new book();\n\t\t\t\t\tbook.open();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{JOptionPane.showMessageDialog(null,\"用户名或密码不能为空\",\"错误\",JOptionPane.PLAIN_MESSAGE);}\n\t\t\t\t} catch (SQLException 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\t});\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\t\ttext.setText(\"\");\n\t\t\t\t\ttext_1.setText(\"\");\n\t\t\t\t\ttext_2.setText(\"\");\n\t\t\t\n\t\t\t}\n\t\t});\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_upload_new, container, false);\n findViewByIds(view);\n return view;\n }", "@SuppressLint(\"ResourceAsColor\")\r\n\tprivate void initView() {\n\t\tfriendOneBtn = (Button)getActivity().findViewById(R.id.friend_one_btn);\r\n\t\tfriendTwoBtn = (Button) getActivity().findViewById(R.id.friend_two_btn);\r\n\t\tcursorImage = (ImageView)getActivity().findViewById(R.id.cursor);\r\n\t\t// 进入添加好友页\r\n\t\tfriendOneBtn.setOnClickListener(listener);\r\n\t\tfriendTwoBtn.setOnClickListener(listener);\r\n\t\t\r\n\t\tunreadLabel = (TextView) getActivity().findViewById(R.id.unread_msg_number);\r\n unreadAddressLable = (TextView) getActivity().findViewById(R.id.unread_address_number);\r\n ImageView addContactView = (ImageView) getView().findViewById(R.id.iv_new_contact);\r\n\t\t// 进入添加好友页\r\n\t\taddContactView.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tstartActivity(new Intent(getActivity(), AddContactActivity.class));\r\n\t\t\t}\r\n\t\t});\r\n\t}", "@Override\n \tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n \t\t\tBundle savedInstanceState) {\n \t\treturn inflater.inflate(R.layout.list, container, false);\n \t}", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.stage_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_add_plant_from_database, container, false);\n mContext = getActivity();\n mongoDbSetup = MongoDbSetup.getInstance(mContext);\n findPlantsList();\n findWidgets(v);\n\n return v;\n\n }", "public void createLayout() {\n\t\tpersons = createPersonGuessPanel();\t\t\n\t\tweapons = createWeaponGuessPanel();\n\t\trooms = createRoomGuessPanel();\n\t\t\n\t\tpersonCheckList = createPeoplePanel();\n\t\tweaponCheckList =createWeaponsPanel(); \n\t\troomCheckList = createRoomsPanel();\n\t\t\n\t\tJPanel completed = new JPanel();\n\t\tcompleted.setLayout(new GridLayout(3, 2));\n\t\tadd(completed, BorderLayout.CENTER);\n\t\tcompleted.add(personCheckList);\n\t\tcompleted.add(persons);\n\t\tcompleted.add(weaponCheckList);\n\t\tcompleted.add(weapons);\n\t\tcompleted.add(roomCheckList);\n\t\tcompleted.add(rooms);\n\t}", "protected Scene createView() {\n\t\treturn null;\n\t}", "private void createUI() {\n\t\tthis.rootPane = new TetrisRootPane(true);\n\t\tthis.controller = new TetrisController(this, rootPane, getWorkingDirectory());\n\t\tthis.listener = new TetrisActionListener(controller, this, rootPane);\n\t\t\n\t\trootPane.setActionListener(listener);\n\t\trootPane.setGameComponents(controller.getGameComponent(), controller.getPreviewComponent());\n\t\trootPane.initialize();\n\t\t\n\t\tPanelBorder border = controller.getPlayer().getPanel().getPanelBorder(\"Tetris v\" + controller.getVersion());\n\t\tborder.setRoundedCorners(true);\n\t\tJPanel panel = new JPanel(new FlowLayout(FlowLayout.CENTER, 0, 0));\n\t\tpanel.setBackground(getBackgroundColor(border.getLineColor()));\n\t\tpanel.setBorder(border);\n\t\tpanel.setPreferredSize(new Dimension(564, 551));\n\t\tpanel.add(rootPane);\n\t\trootPane.addPanelBorder(border, panel);\n\t\t\n\t\tthis.setContentPane(panel);\n\t\tthis.setSize(564, 550);\n\t\t\n\t\tcontroller.initializeUI();\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.be_admin_printers, container, false);\n\n /** RETURN THE VIEW INSTANCE TO SETUP THE LAYOUT **/\n return view;\n }", "@Override protected void initViews() {\n\t\tsetFragments(F_PopularFragment.newInstance(T_HomeActivity.this), F_TimelineFragment.newInstance(T_HomeActivity.this));\n\t}", "private void createNewVisualPane(int solverId) {\n }", "private void createComponents() {\n view = new JPanel(new GridBagLayout());\n\n GridBagConstraints constraints = new GridBagConstraints();\n constraints.gridx = 0;\n constraints.gridy = 0;\n constraints.weightx = 1;\n constraints.weighty = 1;\n constraints.fill = GridBagConstraints.BOTH;\n\n view.add(new JPanel(), constraints);\n\n constraints.gridy = 1;\n view.add(new JPanel(), constraints);\n\n constraints.gridx = 1;\n constraints.weighty = 4;\n constraints.weightx = 6;\n view.add(renderMain(), constraints);\n\n constraints.gridx = 2;\n constraints.weightx = 1;\n constraints.weighty = 1;\n view.add(new JPanel(), constraints);\n\n constraints.gridx = 0;\n constraints.gridy = 2;\n view.add(renderBottom(), constraints);\n\n registerEvents();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_add_new_incident, container, false);\n\n initView(view);\n incidentData();\n\n return view;\n }", "protected void prepareChildViews() {\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_ins_tructor_event_create, container, false);\n }", "public void createInitialLayout(IPageLayout layout) {\n \n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_create_class, container, false);\n }", "private void initBaseLayout()\n {\n add(viewPaneWrapper, BorderLayout.CENTER);\n \n currentLayoutView = VIEW_PANE;\n currentSearchView = SEARCH_PANE_VIEW;\n showMainView(VIEW_PANE);\n showSearchView(currentSearchView);\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.fragment_main, container, false);\n\n\t\t// instantiate the graphical components\n\t\tedtMessage = (EditText) view.findViewById(R.id.edtMessage);\n\t\tbtnAdd = (Button) view.findViewById(R.id.btnAdd);\n\t\t// Instantiate the listView\n\t\tlsvResult = (ListView) view.findViewById(R.id.lsvResult);\n\t\thumans = new ArrayList<Human>();\n\t\t// Human tempH;\n\t\t// for (int i = 0; i < 800; i++) {\n\t\t// tempH = new Human(\"toto \" + i, \"No message, noFuture\", i);\n\t\t// humans.add(tempH);\n\t\t// }\n\t\t\n\t\treturn view;\n\t}", "private void initializeClasses() {\n navigator.addView(JournalView.NAME, JournalView.class);\n navigator.addView(MedicationView.NAME, MedicationView.class);\n\n }", "protected abstract void initContentView(View view);", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n return inflater.inflate(R.layout.frag_new_entries, container, false);\n }", "@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)//allows toolbar to work\n private void viewCreator() {\n toolbar = (Toolbar) findViewById(R.id.toolbar_main);\n lists = (ListView) findViewById(R.id.list);\n\n }", "public void createNewTask(View view) {\n try{\n newTaskLayout.checkTaskLayoutIsValid();\n ImageView taskImage = (ImageView) findViewById(R.id.imageViewBoard);\n String layoutImagePath = takeScreenshot(taskImage);\n newTaskLayout.setImagePath(layoutImagePath);\n\n // save new task\n HashMap<String, Integer> instructions = convertSpinnersToHashMap();\n Task newTask = new Task(newTaskLayout, instructions);\n Task.saveTask(getApplicationContext(), newTask);\n\n // alert user task created and return to task menu.\n Toast.makeText(this, \"new task created\", Toast.LENGTH_LONG).show();\n startActivity(new Intent(getApplicationContext(), TaskOptionsActivity.class));\n } catch (TaskLayoutException | InstructionsRequiredException e) {\n // layout was not valid on insufficient instructions set.\n makeMessageDialogue(e.getMessage());\n }\n }", "protected void createContents() {\n\t\tshell = new Shell(SWT.TITLE | SWT.CLOSE | SWT.BORDER);\n\t\tshell.setSize(713, 226);\n\t\tshell.setText(\"ALT Planner\");\n\t\t\n\t\tCalendarPop calendarComp = new CalendarPop(shell, SWT.NONE);\n\t\tcalendarComp.setBounds(5, 5, 139, 148);\n\t\t\n\t\tComposite composite = new PlannerInterface(shell, SWT.NONE, calendarComp);\n\t\tcomposite.setBounds(0, 0, 713, 200);\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmFile = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmFile.setText(\"File\");\n\t\t\n\t\tMenu menu_1 = new Menu(mntmFile);\n\t\tmntmFile.setMenu(menu_1);\n\t\t\n\t\tMenuItem mntmSettings = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmSettings.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSettings settings = new Settings(Display.getDefault());\n\t\t\t\tsettings.open();\n\t\t\t}\n\t\t});\n\t\tmntmSettings.setText(\"Settings\");\n\t}", "ViewComponent createViewComponent();" ]
[ "0.73330516", "0.7290258", "0.72524214", "0.6896963", "0.6842908", "0.67892873", "0.6757536", "0.66984254", "0.6675081", "0.66690147", "0.6597825", "0.658943", "0.65769076", "0.6563808", "0.6537989", "0.6486454", "0.6471762", "0.64565444", "0.64475906", "0.64475906", "0.639751", "0.6392969", "0.63730496", "0.63687664", "0.6359445", "0.63533574", "0.6343408", "0.63076794", "0.63074726", "0.6301512", "0.63007504", "0.6277344", "0.6267656", "0.62488586", "0.6241866", "0.6241616", "0.62385076", "0.62308306", "0.6222892", "0.62171847", "0.621239", "0.6210795", "0.61996716", "0.6192432", "0.6182473", "0.61674297", "0.6166404", "0.61663735", "0.6165325", "0.6163599", "0.61576796", "0.6157238", "0.6155955", "0.6150343", "0.6144623", "0.61442804", "0.6135716", "0.61349183", "0.61306036", "0.61286336", "0.61281765", "0.612758", "0.61272657", "0.61233646", "0.6121109", "0.61157936", "0.61144096", "0.61138433", "0.6101562", "0.60991746", "0.60968095", "0.609332", "0.6092094", "0.60895514", "0.6083109", "0.6078312", "0.6073782", "0.60695726", "0.6067393", "0.6066136", "0.6061433", "0.60580075", "0.6053305", "0.60526824", "0.6049803", "0.60483193", "0.6046879", "0.60461557", "0.60341686", "0.60331595", "0.60297227", "0.6022253", "0.60215455", "0.6020891", "0.60124785", "0.60111", "0.6010097", "0.5992647", "0.5982319", "0.5981245", "0.59806746" ]
0.0
-1
get element from your DataSet at this position replace the contents of the view with that element Making Object
@Override public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { dbNEw = new DbAryan(mContext); final ViewHolder viewHolder = (ViewHolder) holder; final Model modelTest = (Model) contactParentsList.get(position); viewHolder.txtTitle.setText(modelTest.getTitle()); //Declared in Fields sharedPreferences = mContext.getSharedPreferences(PREF_SETTINGS_KEY, MODE_PRIVATE); chosenFont = sharedPreferences.getString(PREF_FONT, "Default"); chosenFontSize = sharedPreferences.getString(PREF_FONT_SIZE, "Default"); if (chosenFont == null) chosenFont = "Default"; switch (chosenFont) { case "Default": break; case "font/ALGER.TTF": viewHolder.txtTitle.setTypeface(Typeface.createFromAsset(mContext.getAssets(), "font/ALGER.TTF")); break; case "font/ITCBLKAD.TTF": viewHolder.txtTitle.setTypeface(Typeface.createFromAsset(mContext.getAssets(), "font/ITCBLKAD.TTF")); break; case "font/ITCKRIST.TTF": viewHolder.txtTitle.setTypeface(Typeface.createFromAsset(mContext.getAssets(), "font/ITCKRIST.TTF")); break; } if (chosenFontSize == null) chosenFontSize = "Default"; switch (chosenFontSize) { case "Default": break; case 13 + "": viewHolder.txtTitle.setTextSize(13); break; case 17 + "": viewHolder.txtTitle.setTextSize(17); break; case 20 + "": viewHolder.txtTitle.setTextSize(20); break; } //Adding Image Drawable d; try { // get input stream InputStream ims = mContext.getAssets().open(modelTest.getImageName() + ".jpg"); // load image as Drawable d = Drawable.createFromStream(ims, null); // set image to ImageView } catch (IOException ex) { return; } viewHolder.imgEachTitle.setImageDrawable(d); viewHolder.rltv.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(mContext, ShowStory_Activity.class); intent.putExtra("Title", modelTest.getTitle()); intent.putExtra("Content", modelTest.getContent()); intent.putExtra("imageName", modelTest.getImageName()); mContext.startActivity(intent); } }); viewHolder.imgFAVE.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { switch (modelTest.getFave()) { case "0": modelTest.setFave("1"); viewHolder.imgFAVE.setImageResource(R.drawable.full_star); Splash.db.updateContactTest(modelTest.getId(),modelTest.getFave()); Toast.makeText(mContext,R.string.add_to_favorite, Toast.LENGTH_SHORT).show(); break; case "1": modelTest.setFave("0"); viewHolder.imgFAVE.setImageResource(R.drawable.empry_star); Splash.db.updateContactTest(modelTest.getId(),modelTest.getFave()); Toast.makeText(mContext, R.string.remove_from_fave, Toast.LENGTH_SHORT).show(); break; } } }); switch (modelTest.getFave()) { case "0": viewHolder.imgFAVE.setImageResource(R.drawable.empry_star); break; case "1": viewHolder.imgFAVE.setImageResource(R.drawable.full_star); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onBindViewHolder(DetailAdapter.ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n //holder.mTextView.setText(mDataset[position]);\n holder.informacion.setText(mDataset[position]); //informacion es el dato que nos entrega el arreglo\n }", "void setElement(int row, String field, Object value);", "protected void loadElement(final R element) {\n boolean found = false;\n for (final DataTableRow<R> row : getModel().getRows()) {\n if (row.getElement().equals(element)) {\n // updated element.\n row.setElement(element);\n found = true;\n }\n }\n if (!found) {\n // new created element.\n getModel().getRows().add(getModel().createRow(element));\n }\n }", "DataSet toDataSet(Object adaptee);", "public @Override E set(int index, E element) {\n \tNode n = getNode(index);\n \tE result = n.data;\n \tn.data = element;\n \treturn result;\n }", "public void updateViewRs(){\n try{\n this.viewrs= viewstmt.executeQuery \n (\"SELECT * FROM JEREMY.TICKET ORDER BY ID\"); \n// viewrs.beforeFirst();\n// viewrs.next();\n }catch (Exception e ){\n System.out.println(\"sql exception at updateViewRs\" + e);\n }\n }", "@Override\n public void onBindViewHolder(ViewHolder viewHolder, final int position)\n {\n Log.d(TAG, \"Element \" + position + \" set.\");\n\n if(position==0)\n {\n posicion=1;\n }\n if(position==1)\n {\n posicion=2;\n }\n if(position==2)\n {\n posicion=3;\n }\n if(position==3)\n {\n posicion=4;\n }\n if(position==4)\n {\n posicion=5;\n }\n if(position==5)\n {\n posicion=6;\n }\n\n // Get element from your dataset at this position and replace the contents of the view\n // with that element\n viewHolder.getTextView().setText(mDataSet[position]);\n }", "void set(int index, Object element);", "@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n holder.mImageView1.setImageResource(mDataset.get(position).img1);\n holder.mTextView1.setText(mDataset.get(position).text1);\n holder.mImageView2.setImageResource(mDataset.get(position).img2);\n holder.mTextView2.setText(mDataset.get(position).text2);\n holder.mTextView3.setText(mDataset.get(position).text3);\n\n }", "public abstract void setDataToElementXY();", "private void setData() {\n\n if (id == NO_VALUE) return;\n MarketplaceItem item = ControllerItems.getInstance().getModel().getItemById(id);\n if (item == null) return;\n\n ControllerAnalytics.getInstance().logItemView(id, item.getTitle());\n\n if (item.getPhotos() != null\n && item.getPhotos().size() > 0 &&\n !TextUtils.isEmpty(item.getPhotos().get(0).getSrc_big(this)))\n Picasso.with(this).load(item.getPhotos().get(0).getSrc_big(this)).into((ImageView) findViewById(R.id.ivItem));\n else if (!TextUtils.isEmpty(item.getThumb_photo()))\n Picasso.with(this).load(item.getThumb_photo()).into((ImageView) findViewById(R.id.ivItem));\n\n adapter.updateData(item, findViewById(R.id.rootView));\n }", "@Override\r\n\tprotected void setValue(Object element, Object value) {\r\n\t\t// update the whole table\r\n\t\tgetViewer().refresh();\r\n\t}", "public Object set(int index, Object element) {\r\n Entry e = entry(index);\r\n Object oldVal = e.element;\r\n e.element = element;\r\n return oldVal;\r\n }", "protected void viewRow(E rowObject) {\n }", "public ISlideDataElement getSlideDataElement(int row, int col);", "ViewElement getViewElement();", "@Override\n\tpublic Objet Retrieve(int indice) {\n\t\treturn null;\n\t}", "public Object getElement()\n {return data;}", "E getData(int index);", "protected Object getViewData() {\n\t\treturn view.getViewData();\n\t}", "public void setElement(E element)\n\t{\n\t\tthis.data = element;\n\t}", "public void set (Object element)\n {\n if(!isAfterNext){\n throw new IllegalStateException(); \n }\n position.data = element;\n \n \n }", "@Override\n public T set(int index, T element) {\n if (indexCheck(index)) {\n T previousValue = (T) data[index];\n data[index] = element;\n return previousValue;\n }\n return null;\n }", "public void prerender() {\n try{\n if (getSessionBean1().getCurrentAnalysisDSID() == null ) {\n //Select no rows\n getSessionBean1().getAnalysisdsfilelumiRowSet().setObject(1, \"-1\");\n analysisdsfilelumiDataProvider.cursorFirst();\n //analysisdsfilelumiDataProvider.refresh();\n }\n } catch (Exception e) {\n log(\"Cannot switch tso \" + e.getMessage());\n }\n \n analysisdsfilelumiDataProvider.refresh();\n \n }", "void setObject(int index, Object value) throws SQLException;", "@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n holder.tv.setText(arr.get(position));\n\n // .setText(arr[position]);\n // ((ImageView)temp.findViewById(R.id.iconimage)).setImageResource(ico[position]);\n\n }", "@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n Picasso.get().load(mDataset[position].getImgUrl()).into(holder.imageView);\n }", "public void updateView() {\n if (mData.isEmpty()) {\n Logger.d(TAG, \"The mData is empty\");\n return;\n }\n Set<View> viewSet = mData.keySet(); // keySet() returns [] if map is\n // empty\n Iterator<View> viewIterator = viewSet.iterator();\n if (viewIterator == null) {\n Logger.d(TAG, \"The viewIterator is null\");\n return;\n }\n while (viewIterator.hasNext()) {\n View view = viewIterator.next();\n if (view == null) {\n Logger.d(TAG, \"The view is null\");\n } else {\n Object obj = mData.get(view);\n if (obj == null) {\n Logger.d(TAG, \"The value is null\");\n } else {\n if (obj instanceof ChatsStruct) {\n ChatsStruct chatStruct = (ChatsStruct) obj;\n updateChats(view, chatStruct);\n } else if (obj instanceof InvitationStruct) {\n InvitationStruct inviteStruct = (InvitationStruct) obj;\n updateInvitations(view, inviteStruct);\n } else {\n Logger.d(TAG, \"Unknown view type\");\n }\n }\n }\n }\n }", "Element getElement() {\n\t\tElement result = element.clone();\n\t\tresult.setName(table.getName());\n\t\treturn result;\n\t}", "public Object getData() {\n\t\t\treturn null;// this.element;\n\t\t}", "@Override\n public T set(final int index, final T element) {\n this.checkIndex(index);\n final T prevElment = get(index);\n this.data[index] = element;\n return prevElment;\n }", "@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 Log.d(TAG, \"onBindViewHolder \" + position);\n Glide.with(holder.imageView.getContext())\n .load(mDataset.get(position))\n .placeholder(R.drawable.ic_menu_camera)\n .centerCrop()\n .into(holder.imageView);\n }", "private void setElement(int index, E element) {\n// if (getElement(index) != null) {\n// setContents.remove(getElement(index));\n// }\n while (index >= contents.size()) {\n contents.add(null);\n }\n contents.set(index, element);\n// contents.put(index, element);\n backwards.put(element, index);\n\n// if (element != null) {\n// setContents.add(getElement(index));\n// }\n }", "public void setObject(Object element, int row, int column) {\n\t\tcolumns[column].setRow(element, subset[row]);\n\t}", "private void setDataModel() {\r\n tableData = new Object[resultSet.size()][classFields.length];\r\n // for every object from collection of objects\r\n for (int i = 0; i < resultSet.size(); i++) {\r\n // for every fields from class of object\r\n for (int j = 0; j < classFields.length; j++) {\r\n // for every method from class of object\r\n for (int x = 0; x < classMethods.length; x++) {\r\n // if class name start with 'get' and class method name\r\n // lenght is equal to field name + 3 (becouse of get word)\r\n if ((classMethods[x].getName().startsWith(\"get\"))\r\n && (classMethods[x].getName().length() == (classFields[j].getName().length() + 3))) {\r\n // if class name to lowercase ends with field name to\r\n // lower case\r\n if (classMethods[x].getName().toLowerCase().endsWith(classFields[j].getName().toLowerCase())) {\r\n // then try to invoke that getter\r\n try {\r\n tableData[i][j] = classMethods[x].invoke(resultSet.get(i));\r\n } catch (IllegalAccessException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (IllegalArgumentException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (InvocationTargetException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n }\r\n // This is alternative method for obtaining getter for field but\r\n // it will need public fields\r\n // try {\r\n // fieldValue = pola[j].get(resultSet.get(i));\r\n // data[i][j]=fieldValue;\r\n // } catch (IllegalArgumentException e) {\r\n // // TODO Auto-generated catch block\r\n // e.printStackTrace();\r\n // } catch (IllegalAccessException e) {\r\n // // TODO Auto-generated catch block\r\n // e.printStackTrace();\r\n // }\r\n }\r\n }\r\n }", "public Object set(int index, Object element) {\n\t\tif (index < 0 || index >= this.size) {\n\t\t\tthrow new IndexOutOfBoundsException(\"the index [\" + index\n\t\t\t\t\t+ \"] is not valid for this list with the size [\"\n\t\t\t\t\t+ this.size + \"].\");\n\t\t}\n\t\tObject replaced = this.storedObjects[index];\n\t\tthis.storedObjects[index] = element;\n\n\t\treturn replaced;\n\t}", "protected abstract void fillData(View itemView, T data);", "@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n holder.mname.setText(mDataset.get(position).getCode());\n holder.mprice.setText(mDataset.get(position).getStock_name());\n }", "@Override\n public Object getValueAt(int aRow, int aColumn) {\n return model.getValueAt(aRow, aColumn); \n }", "void setDataFromDBContent() {\n\n }", "@Override\n public void onBindViewHolder(ViewHolder viewHolder, final int position) {\n\n // Get element from your dataset at this position and replace the contents of the view\n // with that element\n /*try {*/\n //viewHolder.getImageView().setImageBitmap(friends[position].convertPicture());\n viewHolder.getTextView().setText(friends[position].getName());\n /*} catch (SQLException e){\n e.printStackTrace();\n }*/\n }", "@Override\n public void onBindViewHolder(MyAdapter.ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n View holder1, holder2, holder3, holder4;\n holder1 = holder.mView.findViewById(R.id.subText);\n holder2 = holder.mView.findViewById(R.id.dueDateText);\n // holder3 = holder.mView.findViewById(R.id.gradeText);\n// holder4 = holder.mView.findViewById(R.id.descText);\n if (mDataset.get(position).getCourse() != null) {\n ((TextView) holder1).setText(mDataset.get(position).getCourse().getSub());\n }\n if (mDataset.get(position).getDueDate() != null) {\n ((TextView) holder2).setText((CharSequence) mDataset.get(position).getDueDate());\n }\n // ((TextView) holder3).setText(mDataset.get(position).get);\n// ((TextView) holder4).setText(mDataset[position]);\n //.setText(mDataset[position]));\n //setText(mDataset[position]);\n }", "void updateItem(E itemElementView);", "@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n final Rate rate = mRates.get(position);\n setImage(rate,holder);\n setRate(rate,holder);\n setText(rate,holder);\n }", "void setData (Object newData) { /* package access */ \n\t\tdata = newData;\n\t}", "@Override\r\n public void onBindViewHolder(MyViewHolder holder, int position) {\r\n // - get element from your dataset at this position\r\n // - replace the contents of the view with that element\r\n holder.textView_longitude.setText(dataset.get(position).dataLongitude);\r\n holder.textView_latitude.setText(dataset.get(position).dataLatitude);\r\n holder.textView_speed.setText(dataset.get(position).dataSpeed);\r\n holder.textView_time.setText(dataset.get(position).dataTime);\r\n\r\n }", "public void changeData() {\n\t\tDefaultTableModel dtm = new DefaultTableModel(dataModel.getData(),\n\t\t\t\tdataModel.getHeader());\n\t\tsetModel(dtm);\n\t}", "public E set(int index, E element) {\n\t\tif(index < 0 || index > size) {\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\t} else if(index == size) {\r\n\t\t\tadd(element);\r\n\t\t\treturn element;\r\n\t\t}\r\n\t\tE e = getNode(index).getData();\r\n\t\tgetNode(index).setData(element);\r\n\t\treturn e;\r\n\t}", "@Override\n public void onBindViewHolder(ViewHolder viewHolder, final int position) {\n Log.d(TAG, \"Element \" + position + \" set.\");\n\n // Get element from your dataset at this position and replace the contents of the view\n // with that element\n //viewHolder.getTextView().setText(mDataSet[position]);\n TextDrawable drawable = TextDrawable.builder().buildRound(\"AB\", Color.RED);\n viewHolder.getIconView().setImageDrawable(drawable);\n viewHolder.getNameView().setText(items.get(position).getName());\n viewHolder.getEmailView().setText(items.get(position).getEmail());\n viewHolder.getJobTitleView().setText(items.get(position).getJobTitle());\n viewHolder.getLocationView().setText(items.get(position).getLocation());\n viewHolder.getExtView().setText(items.get(position).getExt());\n }", "void set(int index, T data);", "public Object caseViewColumn(ViewColumn object) {\r\n\t\treturn null;\r\n\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 }", "public ViewObjectImpl getFindYourOilVO1() {\n return (ViewObjectImpl) findViewObject(\"FindYourOilVO1\");\n }", "public Object get(int row) {\n\t\treturn null;\n\t}", "public void read() {\n\n Object[][] obj = readItems();\n\n for (View v : views) {\n v.update(obj);\n }\n }", "public void setElement(MatrixElement pNewElement) {\r\n\t\tmElement = pNewElement;\r\n\t}", "@Override\n public View getView(int position, View ConvertView, ViewGroup parent){ ///position starts from zero,one and goes on, parent would be the layout we want to display all elements\n View row=ConvertView; //to optimize we inflate the item only first else we recycle the view using converterView\n if(row==null) {\n LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\n //**View of which we want to convert to java view object\n row = inflater.inflate(R.layout.single_row, parent, false);\n }\n //*****From row view we can access the view items and populate it data\n ImageView imageView = (ImageView)row.findViewById(R.id.imageView);\n TextView myDiscription=(TextView)row.findViewById(R.id.myDescription);\n TextView myTitle=(TextView)row.findViewById(R.id.mytitle);\n\n imageView.setImageResource(images[position]); //postion will incremented automaticlly as views will populate\n myDiscription.setText(description[position]);\n myTitle.setText(titles[position]);\n\n return row;\n }", "public T getElement() {\n\t return myData;\n }", "public E getElement()\n {\n return this.data;\n }", "private void remplirMaterielData() {\n\t}", "public void updateDataCell();", "@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 final String title = this.mDataset.get(position).getTitle();\n holder.title.setText(title);\n }", "public DataSet getDataSet() {\r\n return dataBinder.getDataSet();\r\n }", "public abstract Object getValueAt(int nodeIndex,int nodeRow,int nodeColumn);", "@Override\n public void setValueAt(Object aValue, int aRow, int aColumn) {\n model.setValueAt(aValue, aRow, aColumn); \n }", "private void fillData() {\n String[] from = new String[] {\n NOMBRE_OBJETO,\n DESCRIPCION,\n TEXTURA\n };\n // Campos de la interfaz a los que mapeamos\n int[] to = new int[] {\n R.id.txtNombreObjeto,\n R.id.txtDescripcion,\n R.id.imgIconoObjeto\n };\n getLoaderManager().initLoader(OBJETOS_LOADER, null, this);\n ListView lvObjetos = (ListView) findViewById(R.id.listaObjetos);\n adapter = new SimpleCursorAdapter(this, R.layout.activity_tiendaobjetos_filaobjeto, null, from, to, 0);\n lvObjetos.setAdapter(adapter);\n }", "@Override\n public void setValueAt( Object aValue, Object node, int column )\n {\n }", "void replacePojo(Object pojo);", "public DomainElement elementForIndex(int index);", "@Override\r\n\tpublic void updateElement() {\n\r\n\t}", "public synchronized WModelObject elementAt(int index)\n\t{\n\t\treturn (WModelObject)m_elements.elementAt(index);\n\t}", "public HTMLTableElement getElementDetalle() { return this.$element_Detalle; }", "@Override\n public E set(int index, E elem) {\n\t E first = _store[index];\n\t _store[index] =elem;\n\t return first;\n }", "public Object set(int index, Object element) {\r\n return deref(refs.set(index, new WeakReference(element)));\r\n }", "@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n Picture pictures = picture.get(position);\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n holder.title.setText(pictures.getTitle());\n holder.image.setImageURI(pictures.getUrl());\n\n }", "protected abstract void putDataInViewControls(Cursor cursor);", "void setObject(int index, Object value, int sqlType, int scale)\n throws SQLException;", "public synchronized void setElementAt(WModelObject object, int index)\n\t{\n\t\tm_elements.setElementAt(object, index);\n\t}", "@Override\n\tpublic E set(int index, E element) {\n\t\tNode<E> node = node(index);\n\t\tE old = node.elementE;\n\t\tnode.elementE = element;\n\t\treturn old;\n\t}", "@Override\r\n\tprotected PO wrapperPO(ResultSet rs, int idx) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tprotected PO wrapperPO(ResultSet rs, int idx) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tprotected PO wrapperPO(ResultSet rs, int idx) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tprotected PO wrapperPO(ResultSet rs, int idx) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tprotected PO wrapperPO(ResultSet rs, int idx) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tprotected PO wrapperPO(ResultSet rs, int idx) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tprotected PO wrapperPO(ResultSet rs, int idx) {\n\t\treturn null;\r\n\t}", "public void setValueAt(Object obj, int row, int column) {\n Object[] rowValues = this.records.get(row);\n rowValues[column] = obj;\n fireTableDataChanged();\n }", "private DbElement completeElement(DbElement e) throws MapsException {\n\n Connection conn = createConnection();\n String sqlQuery = null;\n try {\n if (e.getType().equals(MapsConstants.MAP_TYPE)) {\n sqlQuery = \"SELECT mapname FROM \" + mapTable\n + \" WHERE mapId = ?\";\n } else {\n sqlQuery = \"SELECT nodelabel,nodesysoid FROM node WHERE nodeid = ?\";\n }\n PreparedStatement statement = conn.prepareStatement(sqlQuery);\n statement.setInt(1, e.getId());\n ResultSet rs = statement.executeQuery();\n if (rs.next()) {\n e.setLabel(getLabel(rs.getString(1)));\n if (e.getType().equals(MapsConstants.NODE_TYPE)) {\n if (rs.getString(2) != null) {\n log.debug(\"DBManager: sysoid = \" + rs.getString(2));\n e.setSysoid(rs.getString(2));\n }\n }\n }\n rs.close();\n statement.close();\n\n } catch (Throwable e1) {\n log.error(\"Error while completing element (\" + e.getId()\n + \") with label and icon \", e1);\n throw new MapsException(e1);\n } finally {\n releaseConnection(conn);\n }\n\n return e;\n }", "public E set(int index, E element);", "public ViewObjectImpl getInterviewerDataVO1() {\n return (ViewObjectImpl) findViewObject(\"InterviewerDataVO1\");\n }", "@Override\n public Object getValueAt( Object node, int i )\n {\n return node;\n }", "void updateViewFromModel();", "public void updateView() {\n\t\tif(columns_view != null){\n\t\t\tint rowCount = newModel.getRowCount();\n\t\t\tfor (int i = rowCount - 1; i >= 0; i--) {\n\t\t\t newModel.removeRow(i);\n\t\t\t}\n\t\t\t\n\t\t\tint columns_size = columns_view.size();\n\t\t\tfor(int i =0 ; i < columns_size;i++){\n\t\t\t\tString index = Integer.toString(i);\n\t\t\t\tString name = \"Obs \" + index;\n\t\t\t\tif(columns_view.get(i) == model.bird){\n\t\t\t\t\tname = \"Bird\";\n\t\t\t\t}\n\t\t\t\tString obstacle_x = Integer.toString(columns_view.get(i).x);\n\t\t\t\tString obstacle_y = Integer.toString(columns_view.get(i).y);\n\t\t\t\tString obstacle_width = Integer.toString(columns_view.get(i).width);\n\t\t\t\tString obstacle_height = Integer.toString(columns_view.get(i).height);\n\t\t\t\tnewModel.addRow(new Object[]{name,obstacle_x,obstacle_y,obstacle_width,obstacle_height});\n\t\t\t}\n\t\t\t//System.out.println(\"this is view1 updateview\");\n\t\t\t//System.out.println(\"columns size\" + columns_view.size());\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic void update(Epreuve element) throws DaoException {\n\t\t\n\t}", "private void refreshSubData() {\n\t SfJdRecordFileModel model = (SfJdRecordFileModel) listCursor.getCurrentObject(); \r\n\t }", "@Override\n\tpublic DataSet getDataSet() {\n\t\treturn mDataSet;\n\t}", "@Override\r\n\tpublic boolean updateTable() {\r\n\t\t/*\r\n\t\t * VERSION 1\r\n\t\t *\r\n\t\tobjectCollection.clear();\r\n\t\tobjectCollection.addAll(retrieveObjects());\r\n\t\trefreshTable();*/\r\n\t\tlong size=objectCollection.size();\r\n\t\tobjectCollection.clear();\r\n\t\tint index=getSelectionIndex();\r\n\t\tupdateTable(SWT.DEFAULT);\r\n\t\tselectElement(index);\r\n\t\treturn objectCollection.size()!=size;\r\n\t}", "private void setData() {\n\n }", "public void getData( ){\n model2.getDataVector( ).removeAllElements( );\n model2.fireTableDataChanged( );\n\n try{\n //membuat statemen pemanggilan data pada table tblGaji dari database\n Statement s = koneksi.createStatement();\n String sql = \"Select * from tb_customer\";\n ResultSet r = s.executeQuery(sql);\n\n //penelusuran baris pada tabel tblGaji dari database\n while(r.next ()){\n Object[ ] o = new Object[4];\n o[0] = r.getString(\"id\");\n o[1] = r.getString(\"nama\");\n o[2] = r.getString(\"alamat\");\n o[3] = r.getString(\"telepon\");\n\n model2.addRow(o);\n }\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage() );\n }\n }", "public native Object getEditedCell(Record record) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n var ret = self.getEditedCell([email protected]::getJsObj()());\r\n return $wnd.SmartGWT.convertToJavaType(ret);\r\n }-*/;", "public void updateArticleView(ServerObj serverObj){\n View v = getView();\n// String[] data = Ipsum.Articles;\n// article.setText(data[position]);\n// currentPosition = position;\n currentServerObj=serverObj;\n LinearLayout containerOfContents= (LinearLayout) v.findViewById(R.id.container_of_contents);\n containerOfContents.removeAllViews();\n ContentsViewBuilder contentsViewBuilder=new ContentsViewBuilder(activity);\n Log.d(\"myPavilion\",\"serverObj\"+serverObj.getJson());\n View contentsView=contentsViewBuilder.getView(serverObj.getContentsObj());\n containerOfContents.addView(contentsView);\n\n }" ]
[ "0.5788672", "0.560918", "0.55316645", "0.55189246", "0.5511008", "0.538376", "0.5374371", "0.5359311", "0.5359231", "0.5336825", "0.5315739", "0.52926916", "0.5292342", "0.5292023", "0.5273709", "0.5265235", "0.5258763", "0.5258316", "0.5246756", "0.5241016", "0.52284586", "0.52137446", "0.52075505", "0.5196921", "0.51937383", "0.51863515", "0.5184412", "0.51788557", "0.5154406", "0.5128", "0.51251084", "0.51136756", "0.51136327", "0.5111961", "0.51102525", "0.51100683", "0.510991", "0.5109708", "0.51096416", "0.51086783", "0.5106023", "0.5105608", "0.5096386", "0.50903296", "0.5079563", "0.50723755", "0.5068067", "0.5062194", "0.50139034", "0.50027025", "0.500214", "0.49839786", "0.4972779", "0.4971664", "0.4971109", "0.4968351", "0.4946677", "0.49461585", "0.4935926", "0.4930297", "0.4923793", "0.4920812", "0.49193022", "0.49185228", "0.49120015", "0.49112898", "0.4902232", "0.48959523", "0.48927945", "0.48927122", "0.4888437", "0.48883563", "0.4885644", "0.4879244", "0.4874046", "0.48729044", "0.48636168", "0.48627022", "0.48626593", "0.48532063", "0.48532063", "0.48532063", "0.48532063", "0.48532063", "0.48532063", "0.48532063", "0.4852044", "0.48502776", "0.484957", "0.4845709", "0.48451358", "0.48431492", "0.4842605", "0.48420656", "0.48410377", "0.48385695", "0.48376846", "0.48292136", "0.4824776", "0.48166013", "0.48135394" ]
0.0
-1
Return the size of your DataSet (invoked by the layout manager)
@Override public int getItemCount() { return contactParentsList.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int dataSize() {\n\t\treturn _dataSet.dataSize();\n\t}", "public int getMaxSize(){\n\t\treturn ds.length;\n\t}", "public int getDataSize() {\n\t\treturn (int)this.getSize(data);\n\t}", "public int dimensions() {\n return this.data[0].length;\n }", "@Override\n\tpublic int getSize() {\n\t\treturn datas.size();\n\t}", "Dimension getSize();", "Dimension getSize();", "public int getSize() {\n return rows * cols;\n }", "public int getRecordSize(){\n return columns.get(0).size();\n }", "public int size() {\n return dataSize;\n }", "public int getSize()\n\t{\n\t\treturn setSize;\n\t}", "public long getDataSize() {\n return dataSize;\n }", "public int get_size() {\r\n return this.dimension * 2 * sizeof_float + 4 * sizeof_float + sizeof_dimension + sizeof_int;\r\n }", "public static int GetSize() {\n\t\t\treturn gridSize.getValue();\n\t\t}", "public int get_data_header_size() {\r\n return sizeof_dimension;\r\n }", "public int size() {\n \n return point2DSET.size();\n }", "public int getSize() {\n\t\treturn width + length;\n\t}", "public int getLayoutMeasure(){\n\t\treturn this.getWaypointsMeasures(edges) + this.getShapesMeasures(shapes); \n\t}", "public static int numDimensions_data() {\n return 1;\n }", "public int getSetSize(){ return Integer.parseInt(setSize.getText()); }", "public int dataSize() {\n\t\treturn data.size();\n\t}", "public int getSize() throws SQLException{\n\t\tint counter = 0;\n\t\tStatement s = null;\n\t\ts = derbyConn.createStatement();\n\t\tResultSet results = s.executeQuery(\"select * from \"+tableName);\n\t\twhile(results.next()) {\n\t\t counter++;\n\t\t}\n\t\tsize = counter;\n\t\treturn size;\n\t}", "public static int size_dataType() {\n return (8 / 8);\n }", "public int size() {\n\treturn slices*rows*columns;\n}", "public abstract int layoutWidth();", "public Dimension getSize() {\r\n\t\treturn this.size;\r\n\t}", "public static int elementSize_data() {\n return (8 / 8);\n }", "public int getDataSetCount() {\n EntityManager em = getEntityManager();\n try {\n CriteriaQuery cq = em.getCriteriaBuilder().createQuery();\n Root<DataSet> rt = cq.from(DataSet.class);\n cq.select(em.getCriteriaBuilder().count(rt));\n Query q = em.createQuery(cq);\n return ((Long) q.getSingleResult()).intValue();\n } finally {\n em.close();\n }\n }", "public int getSizeOfData() {\n\t\treturn sizeOfData;\n\t}", "public double getSize()\n\t{\n\t\treturn size;\n\t}", "public int getTotalSize();", "public int getSize() {\n return this.size;\n }", "public static int totalSize_data() {\n return (480 / 8);\n }", "public int getSize() {\n\t\treturn point3D.size();\r\n\t}", "public int getRecordSize() {\n return rows.size();\n }", "public int getSize()\n {\n return this.size;\n }", "public int domainDimension() {\n return dvModel.totalParamSize();\r\n }", "public int getSize() {\n\t\tif (type == Attribute.Type.Int) {\r\n\t\t\treturn INT_SIZE;\r\n\t\t} else if (type == Attribute.Type.Char) {\r\n\t\t\treturn CHAR_SIZE * length;\r\n\t\t} else if (type == Attribute.Type.Long) {\r\n\t\t\treturn LONG_SIZE;\r\n\t\t} else if (type == Attribute.Type.Float) {\r\n\t\t\treturn FLOAT_SIZE;\r\n\t\t} else if (type == Attribute.Type.Double) {\r\n\t\t\treturn DOUBLE_SIZE;\r\n\t\t} else if (type == Attribute.Type.DateTime){\r\n\t\t\treturn LONG_SIZE;\r\n\t\t}\r\n\t\t\r\n\t\treturn size;\r\n\t}", "public int size() {\n return numberOfRows();\n }", "public int getSize() {\r\n\t\treturn this.size;\r\n\t}", "public int getSize() {\r\n\t\treturn this.size;\r\n\t}", "int getDimensionsCount();", "public int getSize() {\r\n return this.size;\r\n }", "public int size() {\r\n return theData.size();\r\n }", "public abstract String get_size(DataRequest source) throws ConnectorOperationException;", "public int getSize()\n\t{\n\t\treturn this.size;\n\t}", "public int getSize(){\n\t\treturn this.size;\n\t}", "public int getCellSize(){\n return cellSize;\n }", "public int getSize() {\n\t\treturn this.size;\n\t}", "public int getSize() {\n\t\treturn this.size;\n\t}", "public int getSize() {\n\t\treturn this.size;\n\t}", "public int getSize() {\n\t\treturn this.size;\n\t}", "public int getSize() {\n\t\treturn this.size;\n\t}", "int getColumnsCount();", "int getColumnsCount();", "public int getCount() {\n if(data.size()<=0) return 1;\n return data.size();\n }", "public double getSize() {\n return getElement().getSize();\n }", "public int getSize() {\n\t\treturn grid.length;\n\t}", "private int getSize() {\r\n\t\treturn this.size;\r\n\t}", "public long dataSize() {\n return this.dataSize;\n }", "public static int size_infos_size_data() {\n return (8 / 8);\n }", "public int getCellSize()\n {\n return cellSize;\n }", "public int getSize() {\r\n\t\treturn size;\r\n\t}", "public int getSize() {\n return size;\n }", "public int size() {\n return data.size();\n }", "public int getSize() {\r\n return size;\r\n }", "int getItemSize();", "@Override\n\tpublic int size() {\n\t\treturn this.nDims;\n\t}", "public int getSize() {\n\t\t\treturn this.size;\n\t\t}", "public int getSize() {\n return size;\n }", "public int getSize() {\n return size;\n }", "public int getSize() {\n return size;\n }", "public int getSize() {\n return size;\n }", "public int getSize() {\n return size;\n }", "public int getSize() {\n return size;\n }", "public int getSize() {\n return size;\n }", "public int getSize() {\n return size;\n }", "public static int getSIZE() {\n return SIZE;\n }", "public Dimension getPreferredSize() {\n synchronized (getTreeLock()) {\n Dimension size = super.getPreferredSize();\n if (columns != 0) {\n size.width = columns * getColumnWidth();\n }\n return size;\n }\n }", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getLocalSize();", "private int getSize() {\n\t\t\treturn size;\n\t\t}", "public int size() {\n return data.length;\n }", "public int getSize() {\n\t\treturn size;\n\t}", "public int getSize() {\n\t\treturn size;\n\t}", "public int getSize() {\n\t\treturn size;\n\t}", "public int getSize() {\n\t\treturn size;\n\t}", "public int getSize() {\n\t\treturn size;\n\t}", "public int getSize() {\n\t\treturn size;\n\t}", "public int getSize() {\n\t\treturn size;\n\t}", "public int getSize() {\n\t\treturn size;\n\t}", "public int getSize() {\n\t\treturn size;\n\t}" ]
[ "0.71140784", "0.7042257", "0.6934779", "0.6844951", "0.67670906", "0.6639744", "0.6639744", "0.66393524", "0.66149426", "0.6583243", "0.65451795", "0.65310085", "0.6523166", "0.65033543", "0.6491708", "0.648963", "0.64381087", "0.6422836", "0.6419385", "0.6408758", "0.64077157", "0.6406821", "0.63682884", "0.63643795", "0.63161373", "0.631445", "0.63083434", "0.6304343", "0.63040346", "0.6290658", "0.6262053", "0.6258598", "0.6257083", "0.625518", "0.6253771", "0.62534726", "0.62466514", "0.6244378", "0.6239012", "0.62350434", "0.62350434", "0.6231133", "0.6230937", "0.6229717", "0.6226404", "0.62198174", "0.62171304", "0.6211125", "0.6204401", "0.6204401", "0.6204401", "0.6204401", "0.6204401", "0.6202758", "0.6202758", "0.6193956", "0.61894864", "0.61837053", "0.6179084", "0.61786443", "0.6173984", "0.6167611", "0.616696", "0.61651826", "0.61640376", "0.6164028", "0.6163431", "0.6162561", "0.6157672", "0.6153104", "0.6153104", "0.6153104", "0.6153104", "0.6153104", "0.6153104", "0.6153104", "0.6153104", "0.6147448", "0.61434156", "0.61398834", "0.61398834", "0.61398834", "0.61398834", "0.61398834", "0.61398834", "0.61398834", "0.61398834", "0.61398834", "0.61398834", "0.6138042", "0.6133543", "0.6130073", "0.6127", "0.6127", "0.6127", "0.6127", "0.6127", "0.6127", "0.6127", "0.6127", "0.6127" ]
0.0
-1
Specifies the depth of the host memory part of the DMA FIFO. This method is optional. In order to see the actual depth configured, use NiFpga_ConfigureFifo2.
public static void configureFifo(int hClient, int channel, int fifoDepthInElements, NiRioStatus status) { mergeStatus( status, configFifoFn.invokeInt(new Object[] { hClient, channel, fifoDepthInElements })); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDepth(double aDepth);", "public static void setDepth(int dep) {\n depth = dep;\n }", "void setTemporaryMaxDepth(int depth);", "public void setDepth(int depth) {\r\n this.depth = depth;\r\n }", "public FractalTrace setDepth(int value) throws ParameterOutOfRangeException\n {\n\t\tif(value > 65536 || value < 1)\n\t {\n\t throw new ParameterOutOfRangeException(value, 1, 65536);\n\t }\n\n m_Depth = value;\n setProperty(\"depth\", value);\n return this;\n }", "private final void setDepth(int depth){\n\t\tthis.depth = depth;\n\t}", "public void setDepth(double depth) {\n\t\t this.depth = depth;\n\t }", "public Builder setDepth(float value) {\n bitField0_ |= 0x00000002;\n depth_ = value;\n onChanged();\n return this;\n }", "public void setMaxDepth(int theDepth) {\r\n\t\tmaxDepth = theDepth;\r\n\t}", "public void setMaxDepth (int maxDepth) {\n \n }", "public Builder setDepth(float value) {\n bitField0_ |= 0x00000004;\n depth_ = value;\n onChanged();\n return this;\n }", "public void setDepth(int newdepth)\n {\n depth = newdepth; \n }", "public Builder setDepth(int value) {\n \n depth_ = value;\n onChanged();\n return this;\n }", "float getDepth();", "float getDepth();", "public void setDepth(double[] depthValues) {\n depth = depthValues;\n }", "void setDepthIndex(int depthIndex) {\n this.depthIndex = depthIndex;\n }", "public static native int freenect_set_depth_mode_proxy(Pointer<libfreenectLibrary.freenect_device > dev, ValuedEnum<libfreenectLibrary.freenect_resolution > res, ValuedEnum<libfreenectLibrary.freenect_depth_format > fmt);", "public float getDepth() {\n return depth_;\n }", "public float getDepth() {\n return depth;\n }", "public int getDepth(){\n\t\treturn _depth;\n\t}", "public int getDepth(){\n\t\treturn depth;\n\t}", "public double getDepth();", "public int getDepth(){\r\n return this.depth;\r\n }", "public float getDepth() {\n return depth_;\n }", "public float getDepth() {\n return depth_;\n }", "int getMax_depth();", "public float getDepth() {\n return depth_;\n }", "int getDepth();", "public int getDepth();", "public ReportParameters setDepth(int depth) {\n this.depth = depth;\n return this;\n }", "void setColorDepth(int colorDepth);", "public int getDepth() {\r\n return depth;\r\n }", "public int setDepth(Integer depth) {\n try {\n setDepth(depth.floatValue());\n } catch (Exception e) {\n setDepthError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return depthError;\n }", "public int getDepthMapFBO(){\n return depthMapFBO;\n }", "public int getDepth()\n {\n return depth; \n }", "public int getDepth() {\n return depth;\n }", "public void setMaxDepth(Integer maxDepth) {\n this.maxDepth = maxDepth;\n }", "public void setDepthImage(T depthImage) {\n\t\tthis.depthImage = depthImage;\n\t}", "void setDestBitDepth(Integer myDestBitDepth);", "public static int getDepth() {\n return depth;\n }", "public void setFixedZdepth(int expectedZIndex);", "public int setDepth(Float depth) {\n try {\n setDepth(depth.floatValue());\n } catch (Exception e) {\n setDepthError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return depthError;\n }", "public int getDepth() {\n return depth_;\n }", "public void setMaxBitDepth(int maxValue) {\n/* 460 */ this.maxSample = maxValue;\n/* */ \n/* 462 */ this.maxSampleSize = 0;\n/* 463 */ while (maxValue > 0) {\n/* 464 */ maxValue >>>= 1;\n/* 465 */ this.maxSampleSize++;\n/* */ } \n/* */ }", "protected void incrementDepthLimit() {\n currDepthLimit++;\n }", "int getTemporaryMaxDepth();", "private int setDepth() {\n int getDepth = depth;\n if (depth != -1) {\n getDepth = depth + 1;\n }\n return getDepth;\n }", "public int getDepth() {\n return depth_;\n }", "boolean isMaxdepthSpecified();", "public native void setDepth(int depth) throws MagickException;", "public int depth ();", "public void setColorDepth(int depth) {\n this.standardPairs.put(Parameters.COLOR_DEPTH, Integer.toString(depth));\n }", "public void setMaxDepth(int maxDepth) {\n this.maxDepth = maxDepth;\n }", "public float getDepth() {\r\n\t\treturn Float.parseFloat(getProperty(\"depth\").toString());\t\r\n\t}", "public VPHashTree(int depth) {\n super(DEFAULT_BIN_SIZE);\n this.depth = depth;\n this.depthReached = false;\n }", "public int getDepth()\n {\n return m_Depth;\n }", "int getDepthIndex() {\n return depthIndex;\n }", "public void setMaximumCrawlDepth(int depth) throws Exception\n\t{\n\t\tif (depth < -1)\n\t\t{\n\t\t\tthrow new Exception(\"Maximum crawl depth should be either a positive number or -1 for unlimited depth.\");\n\t\t}\n\t\tif (depth > Short.MAX_VALUE)\n\t\t{\n\t\t\tthrow new Exception(\"Maximum value for crawl depth is \" + Short.MAX_VALUE);\n\t\t}\n\t\tWebCrawler.setMaximumCrawlDepth((short) depth);\n\t}", "public void setMaxDepth(int maxDepth) {\n this.maxDepth = maxDepth - 1;\n }", "public Texture2D getDepthTexture()\n\t{\n\t\treturn mDepthTexture;\n\t}", "@Override\r\n\tpublic int getMaxDepth() {\r\n\t\tint profundidad = 1;// Profundidad inicial, como es la raiz es 1\r\n\t\treturn getMaxDepthRec(raiz, profundidad, profundidad);\r\n\t}", "@Override\n public int getDepth() {\n return 680;\n }", "public int depth() {\r\n\t\treturn this.depth;\r\n\t}", "int maxDepth();", "public WQU_Depth(int n) {\n\t\tcount = n;\n\t\tparent = new int[n];\n\t height = new int[n];\n\t for (int i = 0; i < n; i++) {\n\t parent[i] = i;\n\t height[i] = 0;\n\t }\n\t}", "public int setDepth(String depth) {\n try {\n setDepth(new Float(depth).floatValue());\n } catch (Exception e) {\n setDepthError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return depthError;\n }", "public int getMaxDepth() {\n return maxDepth;\n }", "int depth();", "int depth();", "public byte getBitDepth();", "@Override\r\npublic void Display(int depth) {\n\tSystem.out.println(\"-\"+depth);\r\n children.forEach(com->com.Display(depth+2));\r\n }", "DepthCamera(String fileName) throws Exception{\n\t\t\n\t\tSystemSettings.initLibOpenNi();\n\t\t\n\t\tOpenNI.initialize();\n this.device= Device.open(fileName);\n if (this.device==null)\n \tthrow new Exception(\"Eror opening \"+ fileName + \" file\");\n if (!device.hasSensor(SensorType.DEPTH)) \n \t\tthrow new Exception(\"Device does not seport depth sensonr\");\n init();\n\t}", "public void draw() {\n easyFade();\n\n if(showSettings) \n { \n // updates the kinect raw depth + pixels\n kinecter.updateKinectDepth(true);\n \n // display instructions for adjusting kinect depth image\n instructionScreen();\n\n // want to see the optical flow after depth image drawn.\n flowfield.update();\n }\n else\n {\n // updates the kinect raw depth\n kinecter.updateKinectDepth(false);\n \n // updates the optical flow vectors from the kinecter depth image (want to update optical flow before particles)\n flowfield.update();\n particleManager.updateAndRenderGL();\n }\n}", "public Integer getMaxDepth() {\n return this.maxDepth;\n }", "public boolean isDepthEnabled() {\n return Keys.isDepthOn(this.mActivity.getSettingsManager()) && !isCameraFrontFacing() && this.mAppController.getCurrentModuleIndex() == 4;\n }", "DepthCamera() throws Exception{\n\t\t\n\t\tSystemSettings.initLibOpenNi();\n\t\t\n\t\tOpenNI.initialize();\n\t\t\n List<DeviceInfo> devicesInfo = OpenNI.enumerateDevices();\n if (devicesInfo.isEmpty()) \n \t \tthrow new Exception(\"No Device Connected\");\n \n this.device= Device.open(devicesInfo.get(0).getUri());\n \n \n if (!device.hasSensor(SensorType.DEPTH)) \n \t\tthrow new Exception(\"Device does not seport depth sensonr\");\n init(); \n\t}", "public void setMinDepth(int minDepth) {\n this.minDepth = minDepth;\n }", "@Override\n\tpublic Integer getDepth()\n\t{\n\t\treturn null;\n\t}", "private void setDepthError (float depth, Exception e, int error) {\n this.depth = depth;\n depthErrorMessage = e.toString();\n depthError = error;\n }", "public int getMaxDepth() {\r\n\t\treturn maxDepth;\r\n\t}", "void incrementNewDepth() {\n mNewDepth++;\n }", "public void increaseDepth() {\n currentDepth++;\n }", "public String getnDepth() {\n return nDepth;\n }", "@Override\r\n\tpublic int[] getConfigSpec() {\n\t\tint[] configSpec = {\r\n EGL10.EGL_DEPTH_SIZE, 16,\r\n EGL10.EGL_NONE\r\n };\r\n return configSpec;\r\n\t}", "public int maxDepth() {\n return maxDepth;\n }", "public void setup()\n {\t\nint i;\n// Clear screen and depth buffer\n\n\n }", "public void setColorDepth(String colorDepth) {\n\t\tif (colorDepth != null && !colorDepth.isEmpty()) {\n\t\t\tint value = Integer.parseInt(colorDepth);\n\n\t\t\tif (value >= MIN_COLOR_DEPTH && value <= MAX_COLOR_DEPTH)\n\t\t\t\tthis.colorDepth = value;\n\t\t}\n\t}", "public Pipelining(int depth) {\n checkPositive(depth, \"depth must be positive\");\n this.permits.set(depth);\n }", "public FixedDataEditorPanel( int hexLength )\n {\n super( \"Device Parameters\", \"Fixed data\", \"Enter the default fixed data for this protocol, in hex.\",\n \"Enter the default fixed data below.\", hexLength );\n }", "public short getBitDepth() {\n\n\t\treturn getShort(ADACDictionary.PIXEL_BIT_DEPTH);\n\n\t}", "public void setThresholdDepth(IfcPositiveLengthMeasure ThresholdDepth)\n\t{\n\t\tthis.ThresholdDepth = ThresholdDepth;\n\t\tfireChangeEvent();\n\t}", "public VPHashTree(int depth, int nodeCapacity) {\n super(nodeCapacity);\n this.depth = depth;\n this.depthReached = false;\n }", "public int getQueueDepth() throws Exception\n {\n return destination.queue.getQueueDepth();\n }", "public int maxDepth() {\n return maxDepth;\n }", "private void createDepthMap() {\n\t\tdouble depthX = 0.0;\n\t\tdouble depthY = 0.0;\n\t\tdouble[][] depthMap = new double[I1.getRowDimension()][I1.getColumnDimension()];\n\t\tfor (int i=0; i < I1.getRowDimension(); i++) {\n\t\t\tfor (int j=0; j < I1.getColumnDimension(); j++) {\n\t\t\t\tif (j == 0) {\n\t\t\t\t\tdepthX += this.Ny.getEntry(i, 0) / -this.Nz.getEntry(i, j) ;\n\t\t\t\t\tdepthY = 0.0;\n\t\t\t\t}\n\t\t\t\tdepthY += this.Nx.getEntry(i, j) / -this.Nz.getEntry(i, j);\n\t\t\t\tdepthMap[i][j] = depthX + depthY ;\n\t\t\t}\n\t\t}\t\n\t\tthis.D = MatrixUtils.createRealMatrix(depthMap);\n\t}", "public Builder clearDepth() {\n bitField0_ = (bitField0_ & ~0x00000002);\n depth_ = 0F;\n onChanged();\n return this;\n }", "public void setGateDepth(int value) {\r\n\t\tgateDepth = value;\r\n\t}", "public int getBufferDepth() {\n return (this.bufferDepth);\n }", "private void setBitDepth(short encoding) {\n if (encoding == AudioFormat.ENCODING_PCM_8BIT)\n audioBundle.putInt(AudioSettings.AUDIO_BUNDLE_KEYS[20], 8);\n else if (encoding == AudioFormat.ENCODING_PCM_16BIT)\n audioBundle.putInt(AudioSettings.AUDIO_BUNDLE_KEYS[20], 16);\n else if (encoding == AudioFormat.ENCODING_PCM_FLOAT)\n audioBundle.putInt(AudioSettings.AUDIO_BUNDLE_KEYS[20], 32);\n else {\n // default or error, return \"guaranteed\" default\n audioBundle.putInt(AudioSettings.AUDIO_BUNDLE_KEYS[20], 16);\n }\n }" ]
[ "0.6179034", "0.6032015", "0.60235035", "0.59375036", "0.5924396", "0.58809793", "0.57431024", "0.5642797", "0.55504173", "0.5533685", "0.55155665", "0.54758686", "0.54621714", "0.54470634", "0.54470634", "0.5399118", "0.5276172", "0.5223725", "0.5207068", "0.5183158", "0.5157063", "0.51562166", "0.5131202", "0.51077765", "0.5105666", "0.5105666", "0.510481", "0.50916904", "0.50880104", "0.5081756", "0.5070381", "0.5054742", "0.5024412", "0.50241286", "0.5020217", "0.49886507", "0.49825096", "0.49708304", "0.4967836", "0.49639505", "0.49588916", "0.49566144", "0.49345082", "0.49226248", "0.49219275", "0.4869112", "0.48688468", "0.4863736", "0.48574865", "0.4840184", "0.48345983", "0.48099336", "0.4780713", "0.47762716", "0.47557503", "0.47544047", "0.4739283", "0.47140425", "0.46969357", "0.46561116", "0.46482936", "0.4647858", "0.4622528", "0.45996106", "0.4580123", "0.4574354", "0.4524756", "0.45211843", "0.447691", "0.447691", "0.445825", "0.44469342", "0.44300914", "0.44286537", "0.44226462", "0.44057277", "0.4405306", "0.43766677", "0.43678457", "0.4362974", "0.43618086", "0.43509704", "0.4350742", "0.4345036", "0.43332595", "0.43282977", "0.43233994", "0.43173212", "0.43106443", "0.42929593", "0.42897597", "0.42854533", "0.42844498", "0.4262006", "0.42559788", "0.4250918", "0.42455596", "0.42265016", "0.4226259", "0.42164618" ]
0.52085567
18
Starts a FIFO. This method is optional.
public static void startFifo(int hClient, int channel, NiRioStatus status) { mergeStatus(status, startFifoFn.invokeInt(new Object[] { hClient, channel })); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void openFifoFile() throws Exception { Ready to start writing rows to the FIFO file now...\n //\n logDetailed(\"Opening fifo file \" + data.fifoFilename + \" for writing.\");\n data.fifoOpener = new FifoOpener(data.fifoFilename, 1000);\n data.fifoOpener.start();\n }", "public interface BlockingFIFO {\r\n\tvoid put(Task item) throws Exception;\r\n Task take() throws Exception;\r\n\r\n}", "@VisibleForTesting\n public static native void mkfifo(String path, int mode) throws IOException;", "public WBLeftistHeapPriorityQueueFIFO() {\n\t\theap = new WBLeftistHeap<>();\n\t}", "public Disk_Scheduler(LinkedList<Process> IO) {\n Random rn = new Random();\n this.current_position = Math.abs((rn.nextInt()) % 200);//generating random current position\n this.io_queue = IO;//putting the requests in the io queue\n }", "public void runFIFO() {\n\n //init\n ArrayList<Processus> localProcess = new ArrayList<>(); //Creation of a local list of process\n for (Processus cpy : listOfProcess) { //Copy the list of process in the local list\n localProcess.add(cpy);\n }\n int size = listOfProcess.size(); //variable used to save the initial size of the list of process\n\n Processus executedProc = null; //ExecutedProc is the current process that is being execute\n Processus tmpProc = localProcess.get(0); //The tmpProc is the previous process executed\n\n //Variable we need to calcul\n double occupancyRate = 0;\n double averageWaitingTime = 0;\n double averageReturnTime = 0;\n int currentTime = 0;\n int occupancyTime = 0;\n int counter = 1;\n\n //beginning of the algo\n while (!localProcess.isEmpty()) { //As long as there are processes that are not done yet we keep going on\n\n //Determines the next process that will be executed\n for (Processus proc : localProcess) { //flow all remaining processes\n if (proc.getTime() <= currentTime) { //check if the currentTime of the process is below the currentTime\n if (localProcess.size() == 1) { //if there is only one process left\n executedProc = proc;\n } else if (proc.getCurrentOrder() <= tmpProc.getCurrentOrder()) { //selection of the older process (FIFO selection)\n executedProc = proc;\n tmpProc = proc;\n }\n }\n }\n\n //Check if the current process is assigned\n if (executedProc != null) {\n\n //execute the current ressource\n int tmpTime = 0;\n while (executedProc.getRessource(executedProc.getCurrentStep()) > tmpTime) { //As long as there is a resource\n for (Processus proc : localProcess) {\n if (proc.getTime() <= currentTime && !proc.equals(executedProc)) { //checking if there is another process waiting and set the new waiting time\n proc.setWaitingTime(1);\n }\n }\n currentTime++; //currentTime is updating at each loop\n occupancyTime++; //occupancyTime is updating at each loop\n tmpTime++;\n }\n\n executedProc.setCurrentStep(executedProc.getCurrentStep() + 1); //Update the currentStep to the next one (index of the lists of UC and inOut)\n\n if (executedProc.getCurrentStep() >= executedProc.getlistOfResource().size()) {//if it is the end of the process\n averageReturnTime += executedProc.getExecutedTime(); //update the average return time by adding the time that the process took\n localProcess.remove(executedProc); //remove the process from the list of process that needs to run\n }\n\n if (executedProc.getCurrentStep() <= executedProc.getListOfInOut().size()) { //If there is another inOut, it set the new time\n executedProc.setTime(executedProc.getInOut(executedProc.getCurrentStep() - 1) + currentTime);\n }\n\n //put the process at the end of the list (fifo order)\n executedProc.setCurrentOrder(counter);\n counter++;\n executedProc = null;\n } else {\n currentTime++;\n }\n }\n //end of the algo\n\n //Calculation of the variables\n occupancyRate = ((double) occupancyTime / (double) currentTime) * 100;\n for (Processus proc : listOfProcess) {\n averageWaitingTime += proc.getWaitingTime();\n }\n averageWaitingTime = averageWaitingTime / size;\n averageReturnTime = averageReturnTime / size;\n\n //Updating the global variables\n currentAverageReturnTime = averageReturnTime;\n logger.trace(\"Current average return time : \" + currentAverageReturnTime);\n currentAverageWaitingTime = averageWaitingTime;\n logger.trace(\"Current average waiting time : \" + currentAverageWaitingTime);\n currentOccupancyRate = occupancyRate;\n logger.trace(\"Current occupancy rate : \" + currentOccupancyRate);\n currentOccupancyTime = occupancyTime;\n logger.trace(\"Current occupancy time : \" + currentOccupancyTime);\n\n restList(); //reset the list to the origin values so the user can test another algo\n }", "public boolean isFIFO() {\n return linkFlag == LF_FIFO;\n }", "public void declareQueue() {\n try {\n mChannel.queueDeclare();\n } catch (IOException e) {\n e.printStackTrace();\n }\n \n }", "public void start() {\n\t\tcheckIsDisposed();\n\n\t\tif (isStarted)\n\t\t\treturn;\n\n\t\tqueueThread.start();\n\t\tisStarted = true;\n\t}", "public void start(){\n\t\tdo{\n\t\t\tMessage<T> msg= input.read();\n\t\t\tif (!msg.getQuit() && !msg.getFail() ){\n\t\t\t\tconsume(msg.getContent());\n\t\t\t}\n\t\t\tif (msg.getQuit()){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}while(true);\n\t\t\n\t}", "public CacheFIFO()\r\n/* 16: */ {\r\n/* 17: 95 */ this(20);\r\n/* 18: */ }", "public void run(){\n // first register the producer\n m_DirectoryQueue.registerProducer();\n\n enqueueFiles(f_Root);\n\n //lastly unregister the producer\n m_DirectoryQueue.unregisterProducer();\n }", "void runQueue();", "public SimpleQueue() {\n initQueue(DEFAULT_SIZE);\n WRITE_PTR = 0;\n READ_PTR = 0;\n LAST_READ_TIME = now();\n LAST_WRITE_TIME = now();\n }", "public Queue() {}", "public void onStart() {\n\t new Thread() {\n\t @Override public void run() {\n\t receive();\n\t }\n\t }.start();\n\t }", "@Override\n public void onStart() {\n this.dataGenerator = new DataGenerator(this.dataSize, this.dataValues, this.dataValuesBalancing);\n this.dataStream = new DataStream();\n if (this.flowRate != 0)\n this.sleepTime = dataStream.convertToInterval(this.flowRate);\n this.count = 0L;\n// this.me = this.me + \"_\" + getRuntimeContext().getIndexOfThisSubtask();\n new Thread(this::receive).start();\n }", "public void start() {\n process(0);\n }", "void start(String feedAddr) {\n this.scheduler = Executors.newSingleThreadScheduledExecutor(r -> new Thread(r, \"f\" + feedAddr));\n this.scheduler.scheduleAtFixedRate(this.newsProducer, this.newsProducingRateInMillis,\n this.newsProducingRateInMillis, TimeUnit.MILLISECONDS);\n }", "public synchronized void start()\n {\n if (!started && open) {\n line.start();\n started = true;\n if (getTimeLeft() > 0) {\n // If we haven't finished playback of bytes already written, we\n // should start the tracker again.\n timeTracker.start();\n }\n }\n }", "public void newQueue(){\r\n\t\tgenerateQueue();\r\n\t\trefreshLeft = true;\r\n\t}", "public void start() throws IOException;", "public BulkFifoNaive() {\n m_chainedFifo[0] = new long[m_bulkSize];\n }", "private Queue(){\r\n\t\tgenerateQueue();\r\n\t}", "public void start() { \t\n try {\n \tTask task = new FileTask(fileScanner);\n \tTaskDescription taskDescription = new TaskDescription();\n \ttaskDescription.setName(name + \"-FILE-EP\");\n \ttaskDescription.setTaskGroup(\"FILE-EP\");\n \ttaskDescription.setInterval(interval);\n \ttaskDescription.setIntervalInMs(true);\n \ttaskDescription.addResource(TaskDescription.INSTANCE, task);\n \ttaskDescription.addResource(TaskDescription.CLASSNAME, task.getClass().getName());\n \tstartUpController = new StartUpController();\n \tstartUpController.setTaskDescription(taskDescription);\n \tstartUpController.init(synapseEnvironment);\n\n } catch (Exception e) {\n log.error(\"Could not start File Processor. Error starting up scheduler. Error: \" + e.getLocalizedMessage());\n }\n }", "public TaskQueue(){\n this(\n new PrintWriter(System.out, true),\n new PrintWriter(System.err, true),\n DEFAULT_CONCURRENT_ACTIONS\n );\n }", "public Process start() {\n\t\tif (ioQueue.isEmpty()) {\n\t\t\tcurrentProcess = null;\n\t\t\tgui.setIoActive(null);\n\t\t}else{\n\t\t\tcurrentProcess = (Process) ioQueue.removeNext();\n\t\t\tgui.setIoActive(currentProcess);\n\t\t}\n\t\treturn currentProcess;\n\t}", "public void enqueue(Item item) \n {\n stack1.push(item);\n }", "@Override\n public synchronized void start() {\n LOG.info(\"HDFSSink start\");\n this.bucketWriterMap = new WriterLinkedHashMap(maxOpenFiles);\n Configuration config = new Configuration();\n config.setBoolean(\"fs.automatic.close\", false);\n try {\n this.fileSystem = new Path(this.filePath).getFileSystem(config);\n }\n catch (IOException ex) {\n LOG.error(ex.getMessage(), ex);\n }\n this.scheduler = Executors.newSingleThreadScheduledExecutor();\n this.checkConfScheduler();\n this.sinkCounter.start();\n super.start();\n }", "void queueShrunk();", "public void enqueue (T item) {\n leftStack.push(item);\n }", "public TokenFIFOStack(int operationMode) {\r\n\t\tthis.operationMode = operationMode;\r\n\t\tthis.tokenList = new ArrayList<tToken>();\r\n\t}", "public InMemoryQueueService(){\n this.ringBufferQueue = new QueueMessage[10000];\n }", "@Override\r\n\tpublic void enqueueFront(E element) {\n\t\tif(sizeDeque == CAPACITY) return;\r\n\t\tif(sizeDeque == 0) {\r\n\t\t\tdata[frontDeque] = element;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tfrontDeque = (frontDeque - 1 + CAPACITY) % CAPACITY;\r\n\t\t\tdata[frontDeque] = element;\r\n\t\t}\r\n\t\t\r\n\t\tsizeDeque++;\r\n\t}", "@Override\n\tpublic void run() {\n\t\tboolean done = false;\n\t\t\n\t\twhile(!done){\n\t\t\tFile file;\n\t\t\ttry {\n\t\t\t\tfile = queue.take();\n\t\t\t\tif(file == FileEnumrationTask.Dummy){\n\t\t\t\t\tdone = true;\n\t\t\t\t\tqueue.put(file);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tserch(file);\n\t\t\t\t}\n\t\t\t} catch (InterruptedException | FileNotFoundException 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}", "myQueue(){\n }", "public interface FifoQueue {\n\n /**\n * Push the item to the tail of the queue.\n * @param queueName Target queue.\n * @param item Item to be added\n */\n public void push(final String queueName, final String item);\n\n /**\n * Remove the item from the queue.\n * @param queueName Queue name.\n * @param item Target item.\n * @return <code>true</code> item removed, otherwise <code>false</code>\n */\n public boolean remove(final String queueName, final String item);\n\n /**\n * Get top items.\n * @param queueName Delay queue name.\n * @param end End index.\n * @return Delayed items.\n */\n public Collection<String> pop(final String queueName, final int end);\n}", "public void start() {\n LOG.entering(CLASS_NAME, \"start\");\n if (state.compareAndSet(STOPPING, STARTED)) {\n // Keep same thread running if STOPPING\n }\n else if (state.compareAndSet(STOPPED, STARTED)) {\n new Thread(this, \"XoaEventProcessor\").start();\n }\n }", "public FreebaseProducerImpl()\n {\n this.queue = new ArrayBlockingQueue<>(DEFAULT_QUEUE_CAPACITY);\n this.file = null;\n }", "public Queue()\n\t{\n\t\tsuper();\n\t}", "public InMemoryQueueService(int queueLength) {\n if(queueLength == 0) {\n throw new IllegalArgumentException(\"Queue length must be greater than 0\");\n }\n this.ringBufferQueue = new QueueMessage[queueLength];\n }", "public synchronized void mProcessSerial(){ //170927 Returns array of data received from serial RX they are also put on receive buffer\n for (int loop=0;loop<oTXFIFO.nBytesAvail;loop++){\n if (oTXFIFO.mCanPop(1)==false) break; //Send FIFO data to serial output stream\n int byB=oTXFIFO.mFIFOpop();\n mWriteByte(oOutput, (byte) byB);\n }\n byte[] aBytes = mReadBytes(oInput);\n if (aBytes==null) return ;\n for (int i=0;i<aBytes.length;i++){ //Loop through buffer and transfer from input stream to FIFO buffer //+170601 revised from while loop to avoid endless loop\n if (oRXFIFO.mCanPush()){\n oRXFIFO.mFIFOpush(aBytes[i]); //Put the data on the fifo\n }\n else\n {\n mStateSet(cKonst.eSerial.kOverflow);\n nDataRcvd=-1;\n }\n }\n }", "public CacheFIFO(int paramInt)\r\n/* 11: */ {\r\n/* 12: 84 */ super(paramInt);\r\n/* 13: */ }", "public void start()\n throws IOException\n {\n }", "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"AddToQueue Thread Running\");\n\t\t//Create passenger creator\n\t\tCreatePassenger creator = new CreatePassenger();\n\t\t//Start time\n\t\tint start = LocalDateTime.now().getSecond();\n\t\tint time = 0;\n\t\tcounter = 0;\n\t\t//Loop until counter reaches max passengers or time equals max time\n\t\twhile(counter <= MAX_PASSENGERS && time < MAX_TIME) {\n\t\t\t//Create new passenger\n\t\t\tPassenger arrived = creator.create();\n\t\t\t//Add passenger to order array\n\t\t\tthis.arrivedAdd(arrived);\n\t\t\t//Clear line\n\t\t\tSystem.out.print(\"\\033[2K\");\n\t\t\t//Add passenger to queue\n\t\t\tqueue.offer(arrived);\n\t\t\t//Incremement counter\n\t\t\tcounter++;\n\t\t\t//Print out new queue\n\t\t\tSystem.out.print(\"\\r\" + queue);\n\t\t\tint now = LocalDateTime.now().getSecond();\n\t\t\tif(now >= start) {\n\t\t\t\t\ttime = now - start;\n\t\t\t} else {\n\t\t\t\ttime = (now + 59) - start;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tThread.sleep(300); \n\t\t\t} catch(InterruptedException e) {\n\t\t\t\tSystem.out.println(\"Error! Thread was interrupted!\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\tsuper.run();\n\t\t\twhile(runFlg){\n\t\t\t\ttry{\n\t\t\t\t\t\n\t\t\t\t\twhile(mQueue.getSize() >0 ){\n\t\t\t\t\t\tbyte[] data = getData();\n\t\t\t\t\t\tmOut.write(data);\n\t\t\t\t\t}\n\t\t\t\t}catch (Exception e) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\tLog.e(TAG,e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public static <T> FCQueue<T> createFCQueue() {\n \t\treturn new FCQueue<T>();\n \t}", "public void queueUsage() {\n\t\t//use LinkedList as a queue\n\t\tQueue<String> q = new LinkedList<String>();\n\t\tq.add(\"1\");\n\t\tq.add(\"2\");\n\t\tq.add(\"3\");\n\t\tq.add(\"10\");\n\t\tq.add(\"11\");\n\t\tint[] a;\n\n\t\tLinkedBlockingQueue<String> bq = new LinkedBlockingQueue<String>();\n\t\t\n\t\t//ArrayBlockingQueue needs to set the size when created.\n\t\tArrayBlockingQueue<String> aq = new ArrayBlockingQueue<String>(100);\n\t\t\n\t\tPriorityBlockingQueue<String> pq = new PriorityBlockingQueue<String>();\n\t\t\n//\t\tDelayQueue<String> dq = new DelayQueue<String>(); \n\t\t\n\t}", "public void start() {\n\t\tpcmList = Collections.synchronizedList(new LinkedList<PCMData>());\n\t\tencodedlist = Collections\n\t\t\t\t.synchronizedList(new LinkedList<EncodedData>());\n\t\taudioRecordThread = new AudioRecordThread(this);\n\t\taudioSpeexEncoderThread = new AudioSpeexEncoderThread(this);\n\t\tflvWriterThread = new AudioFlvWriterThread(this);\n\t\taudioRecordThread.start();\n\t\taudioSpeexEncoderThread.start();\n\t\tflvWriterThread.start();\n\t}", "public static void main(String args[]) {\n Instant start = Instant.now();\n\n QueueStudentIDs studentsInLine = new QueueStudentIDs(8);\n studentsInLine.insertStudent(885475); // first-in\n studentsInLine.insertStudent(290451);\n studentsInLine.insertStudent(500324);\n studentsInLine.insertStudent(769012);\n studentsInLine.insertStudent(489926);\n studentsInLine.insertStudent(319319);\n studentsInLine.insertStudent(652432);\n studentsInLine.insertStudent(824323); // last-in\n\n // [1] output number in queue\n System.out.println(\"\\n[1] There are \" + studentsInLine.size() +\n \" students in queue.\");\n // [2] output value of top element\n System.out.println(\"[2] First Student in queue: \"\n + studentsInLine.peekAtFirstStudent() + \" (top of stack)\");\n // [3] serve next student -- FIFO\n System.out.println(\"[3] Now Serving: \" + studentsInLine.serveNextStudent() +\n \" (removed from queue)\");\n // [4] output number in queue\n System.out.println(\"[4] There are \" + studentsInLine.size() +\n \" students in queue.\");\n\n // [5] output stack\n System.out.print(\"[5] Students Left in queue: \");\n while (!studentsInLine.isEmpty() ) {\n long value = studentsInLine.serveNextStudent();\n System.out.print(value);\n System.out.print(\"\\t\");\n }\n System.out.println();\n\n // [6] output number in queue\n System.out.println(\"[6] There are \" + studentsInLine.size() +\n \" students in queue.\");\n\n // Save current date-time in UTC\n Instant end = Instant.now();\n System.out.println(\"\\nTime elapsed: \" + Duration.between(start, end).toMillis() + \" milliseconds.\");\n }", "public static void startStream(Context context) {\n Intent intent = new Intent(context, BandCollectionService.class);\n intent.putExtra(BAND_ACTION, BandAction.START_STREAM);\n context.startService(intent);\n }", "public void\n start() throws IOException;", "public Quack() {\n\t\tlist = new SinglyLinkedList();\n\t\tinStackMode = true; // Quack always starts in stack mode\n\t}", "public void startSerialBombing() {\n\t\tint x = _count;\n\t\t_active = true;\n\t\twhile (_active && x-- > 0) {\n\t\t\tserialBomb(_count - x);\n\t\t}\n\t\t_active = false;\n\t}", "public void start() {\n this.leftover = 0L;\n this.lastTick = System.nanoTime();\n if (stopped.getAndSet(false)) {\n startThread();\n }\n }", "public EventQueue(){}", "public void start() {\n\t\tstack = new Stack<>();\t\t\n\t}", "public TaskQueue(PrintWriter stdout, PrintWriter stderr){\n this(stdout, stderr, DEFAULT_CONCURRENT_ACTIONS);\n }", "public static void main(String[] args) {\n SharedBoundedStack buffer = new SharedBoundedStackMonitorIncomplete(MainMonitorIncomplete.bufferSize);\n\n // starting consumer thread\n new Consumer(buffer, MainMonitorIncomplete.consumerServiceTime);\n\n // starting producer thread\n new Producer(buffer, MainMonitorIncomplete.producerServiceTime);\n }", "public MyQueue() {\n \n }", "@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\twhile(true){\n\t\t\t\tsemaphore.acquire();\n\t\t\t\twhile(list.size()<10){\n\t\t\t\t\tlist.add(1);\n\t\t\t\t\tSystem.out.println(\"生产者放入一个产品,目前有\"+list.size()+\"个产品\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"队列满\"+\"等待消费者消费\");\n\t\t\t\tsemaphore.release();\n\t\t\t\tThread.sleep(500);\n\t\t\t\t}\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}", "public void start(){\n //Set pausing to false\n pausing = false;\n next();\n }", "public void start() {\n\t\tcanvas.createBufferStrategy(2);\n\t\tbuffer = canvas.getBufferStrategy();\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "public DVDQueue() { \n\t\tqueue = new LinkedList<DVDPackage>(); \n\t}", "@Override\n public void start() {\n synth.start();\n // Start the LineOut. It will pull data from the oscillator.\n lineOut.start();\n\n // Queue attack portion of sample.\n samplePlayer.dataQueue.queue(sample, 0, loopStartFrame);\n queueNewLoop();\n }", "private IOHandler(){\n download_queue = new ArrayList<>(); \n initialize();\n }", "public void startData()\n\t\t\t{\n\t\t\t\tsend(\"<data>\", false);\n\t\t\t}", "@Override\n public void run()\n {\n logger.info(\"Starting the producer \" + Thread.currentThread().getName());\n /*\n * Process all files inside this directory\n */\n if (file.isDirectory())\n {\n logger.debug(file.getAbsolutePath() + \" is a directory. Processing directory files (one level only)\");\n\n File[] files = file.listFiles(new FilenameFilter()\n {\n @Override\n public boolean accept(File dir, String name)\n {\n if (name.startsWith(\".\"))\n return false;\n else\n return true;\n }\n });\n\n for (File f : files)\n {\n this.processFile(f);\n }\n }\n /*\n * Process the file\n */\n else\n {\n this.processFile(this.file);\n }\n\n try\n {\n // Sleep a second to wait other threads to finish their processes\n Thread.sleep(1000);\n }\n catch (InterruptedException e)\n {\n\n e.printStackTrace();\n }\n\n logger.info(\"Finishing producer \" + Thread.currentThread().getName());\n\n /*\n * Generates a dummy Entity to stop the consumers\n */\n Entity e = new Entity(ImporterConstants.CANCEL_ENTITY_URI, null);\n\n try\n {\n queue.put(e);\n }\n catch (InterruptedException e1)\n {\n e1.printStackTrace();\n }\n\n }", "public Queue()\r\n\t{\r\n\t\tthis(capacity);\r\n\t}", "public LinkedBlockingQueue<Run> getStartQueue() {\n\t\treturn new LinkedBlockingQueue<Run>(startQueue);\n\t}", "public MyQueue() {\n\n }", "public Deque() {}", "public WaitingProcessQueue() {\r\n this.data = new CustomProcess[INITIAL_CAPACITY];\r\n }", "void startPumpingEvents();", "public void start()\n throws JobException\n {\n // Announce our arrival.\n if (_log.isInfoEnabled()) \n _log.info(MsgUtils.getMsg(\"JOBS_READER_STARTED\", _parms.name, \n _queueName, getBindingKey()));\n \n // Start reading the queue.\n readQueue();\n \n // Announce our termination.\n if (_log.isInfoEnabled()) \n _log.info(MsgUtils.getMsg(\"JOBS_READER_STOPPED\", _parms.name, \n _queueName, getBindingKey()));\n }", "public Queue()\n\t{\n\t\thead = null;\n\t}", "public ShippingQueue() {\r\n\t\tfirst = null;\r\n\t\tcount = 0;\r\n\t}", "public MyStack() {\n queue = new ArrayDeque<>();\n }", "@Override\n public void startEndpoint() throws IOException, InstantiationException {\n setRunning(true);\n \n rampUpProcessorTask();\n registerComponents();\n\n startPipelines();\n startListener();\n }", "public MyQueue() {\n push=new Stack<>();\n pull=new Stack<>();\n }", "public MyStack() {\n queue = new LinkedList<>();\n }", "protected void onStart() {\n // Allocate while starting to improve chances of thread-local\n // isolation\n queue = new Runnable[INITIAL_QUEUE_CAPACITY];\n // Initial value of seed need not be especially random but\n // should differ across threads and must be nonzero\n int p = poolIndex + 1;\n seed = p + (p << 8) + (p << 16) + (p << 24); // spread bits\n }", "public EventQueue() {\n\t\tqueue = new LinkedList<Event>();\n\t}", "public static void configureFifo(int hClient, int channel,\n\t\t\tint fifoDepthInElements, NiRioStatus status) {\n\t\tmergeStatus(\n\t\t\t\tstatus,\n\t\t\t\tconfigFifoFn.invokeInt(new Object[] { hClient, channel,\n\t\t\t\t\t\tfifoDepthInElements }));\n\t}", "public void onQueue();", "public interface Queue {\r\n\r\n\t/**\r\n\t * This method will return the first activity from the queue.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic Activity poll();\r\n\r\n\t/**\r\n\t * This method will push the activity to the queue.\r\n\t * \r\n\t * @param activity\r\n\t */\r\n\tpublic void push(Object activity);\r\n\r\n\t/**\r\n\t * This method will tell that the queue is closed or not.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isQueueClosed();\r\n\r\n\t/**\r\n\t * This method will on the queue to available.\r\n\t */\r\n\tpublic void onQueue();\r\n\r\n\t/**\r\n\t * this method will off the queue so not available.\r\n\t */\r\n\tpublic void closeQueue();\r\n\r\n\t/**\r\n\t * Returns true if the queue is empty.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isEmpty();\r\n\r\n}", "@Override\r\n \tprotected void startProcess() {\n \t\tfor(int i = 0; i < inventoryStacks.length - 1; i++) {\r\n \t\t\tif(inventoryStacks[i] != null) {\r\n \t\t\t\tticksToProcess = (int)(TileEntityFurnace.getItemBurnTime(inventoryStacks[i]) * GENERATOR_TO_FURNACE_TICK_RATIO);\r\n \t\t\t\tdecrStackSize(i, 1);\r\n \t\t\t\tburning = true;\r\n \t\t\t}\r\n \t\t}\r\n \t}", "public synchronized void start() {\n\t\tstartSuspended();\r\n\t\tsetRunnable(true);\r\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t\tRandom randNum = new Random();\r\n\t\tInteger buffer[] = new Integer[BUFFER_SIZE];\r\n\t\t\r\n\t\t// Producer adds to the buffer and increments until it hits the limit\r\n\t\tThread producer = new Thread() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\twhile (true) {\r\n\t\t\t\t\tif (currAmount < BUFFER_SIZE -1) {\r\n\t\t\t\t\t\tbuffer[currAmount] = randNum.nextInt(100);\r\n\t\t\t\t\t\tSystem.out.println(\"Added 1 (\" + buffer[currAmount] + \") to the stock\");\r\n\t\t\t\t\t\tcurrAmount++;\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tSystem.out.println(\"Stock is full, can't produce more\");\r\n\t\t\t\t\t\t\tThread.sleep(1);\r\n\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t};\r\n\t\t// Consumer will consumer from the buffer until it is empty\r\n\t\tThread consumer = new Thread() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\twhile (true) {\r\n\t\t\t\t\tif (currAmount > 0) {\r\n\t\t\t\t\t\tbuffer[currAmount] = randNum.nextInt(100);\r\n\t\t\t\t\t\tSystem.out.println(\"consumer took 1 (\" + buffer[currAmount] + \") from the stock\");\r\n\t\t\t\t\t\tcurrAmount--;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tSystem.out.println(\"Stock is empty, can't consume anymore\");\r\n\t\t\t\t\t\t\tThread.sleep(1);\r\n\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t};\r\n\t\t\r\n\t\tproducer.start();\r\n\t\tconsumer.start();\r\n\r\n\t}", "public MyQueue() {\n storeStack = new Stack<>();\n }", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();" ]
[ "0.6385905", "0.5763877", "0.5632771", "0.54413205", "0.5438792", "0.5374396", "0.53186095", "0.5278651", "0.52313125", "0.51491666", "0.51022136", "0.50494725", "0.49682596", "0.49573192", "0.49463418", "0.49460536", "0.49460503", "0.49383324", "0.4935861", "0.493444", "0.49051207", "0.49046567", "0.4891985", "0.488562", "0.48793644", "0.48762816", "0.4866272", "0.48646596", "0.48619074", "0.48562378", "0.48477957", "0.4844117", "0.4831938", "0.4816956", "0.48119527", "0.4806152", "0.4788023", "0.47668895", "0.47645387", "0.47513273", "0.47439066", "0.47260472", "0.47137636", "0.4708545", "0.4701429", "0.46940243", "0.46840099", "0.46828997", "0.46750608", "0.46584418", "0.4643641", "0.46326193", "0.46282065", "0.46241114", "0.46175164", "0.46174178", "0.46065974", "0.46048993", "0.46040246", "0.4598847", "0.459842", "0.45976102", "0.459544", "0.45819843", "0.45775512", "0.45753068", "0.45740208", "0.4573251", "0.45656914", "0.45607683", "0.45604798", "0.45510483", "0.45508224", "0.45490324", "0.4548105", "0.45461082", "0.4543011", "0.45421222", "0.45405307", "0.453553", "0.45352668", "0.4528247", "0.4523629", "0.45219466", "0.4520919", "0.45200425", "0.4519888", "0.45188347", "0.45168167", "0.451626", "0.45156506", "0.45156506", "0.45156506", "0.45156506", "0.45156506", "0.45156506", "0.45156506", "0.45156506", "0.45156506", "0.45156506" ]
0.59194404
1
Stops a FIFO. This method is optional.
public static void stopFifo(int hClient, int channel, NiRioStatus status) { mergeStatus(status, stopFifoFn.invokeInt(new Object[] { hClient, channel })); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stop() {\n\t\tthis.close(this.btcomm);\n\t}", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop() {}", "public void\n stop() throws IOException;", "void stop() throws IOException;", "public boolean stop();", "public void stop() {\n closed.set(true);\n consumer.wakeup();\n }", "public abstract void stop();", "public abstract void stop();", "public abstract void stop();", "public abstract void stop();", "public abstract void stop();", "public void stop() {\n }", "public void stop() {\n }", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "public void stop()\n {\n }", "abstract public void stop();", "public void stop(){\n }", "public void stop()\n throws IOException\n {\n }", "public void stopRinging();", "public void stop(){\n\t\t\n\t}", "private void stop() {\n MediaQueueItem item = mQueue.get(0);\n if (item.getState() == MediaItemStatus.PLAYBACK_STATE_PLAYING\n || item.getState() == MediaItemStatus.PLAYBACK_STATE_PAUSED) {\n if (mCallback != null) {\n mCallback.onStop();\n }\n item.setState(MediaItemStatus.PLAYBACK_STATE_FINISHED);\n }\n }", "public synchronized void stop()\n {\n if (open) {\n //stop = true;\n notifyAll();\n started = false;\n line.stop();\n timeTracker.pause();\n }\n }", "public void stop() {\n\t}", "public void stop()\n {\n storage.stop();\n command.stop();\n }", "public void stop() {\n \t\t\tif (isJobRunning) cancel();\n \t\t}", "public void stop() {\n\t\t\n\t}", "public void stop()\n\t{\n\t\trunning = false;\n\t}", "public void stop(){\n running = false;\n }", "public void stop (String message);", "public final void stop() {\n running = false;\n \n \n\n }", "public void stop() {\r\n running = false;\r\n }", "public synchronized void stop(){\n\t\tif (tickHandle != null){\n\t\t\ttickHandle.cancel(false);\n\t\t\ttickHandle = null;\n\t\t}\n\t}", "@Override\n\tpublic void stop()\n\t\t{\n\t\t}", "void stop() {\n }", "public void stopped();", "public void stop()\n {\n running = false;\n }", "public void stop() {\n cancelCallback();\n mStartTimeMillis = 0;\n mCurrentLoopNumber = -1;\n mListener.get().onStop();\n }", "public void stopReading() {\r\n rightShoe.getSerialReader().stopRead();\r\n leftShoe.getSerialReader().stopRead();\r\n rightShoe.getSerialReader().closePort();\r\n leftShoe.getSerialReader().closePort();\r\n timeController.stopReading();\r\n }", "public void stop() {\n running = false;\n }", "public synchronized void stop() {\n this.running = false;\n }", "public void stopThread(){\r\n\t\tthis.p.destroy();\r\n\t\ttry {\r\n\t\t\tinput.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tthis.stop();\r\n\t}", "@Override\n public void stop() {}", "public void stopReceiver() {\r\n\t\tif(receiver != null) {\r\n\t\t\treceiver.stop();\r\n\t\t\treceiver = null;\r\n\t\t}\r\n\t}", "public static void stopStream(Context context) {\n Intent intent = new Intent(context, BandCollectionService.class);\n intent.putExtra(BAND_ACTION, BandAction.STOP_STREAM);\n context.startService(intent);\n }", "@Override\n\tpublic void stop() {\n\t\tstopTask();\n\t\tmPlaybillPath = null;\n\t\tmResPlaybill = null;\n\t}", "void stop(long timeout);", "public void stop() {\n\t\tSystem.out.println(\"结束系统1\");\r\n\t}", "@Override\r\n public void stop() {\r\n }", "@Override\r\n public void stop() {\r\n }", "public void stop() {\n _running = false;\n }", "@Override\r\n\tpublic void stop() {\n\t\t\r\n\t}", "@Override public void stop() {\n }", "@Override\n public void stop() {\n }", "private void stop()\n {\n if(running)\n {\n scheduledExecutorService.shutdownNow();\n running = false;\n }\n }", "public void Stop(){\n\t\t_TEST stack = new _TEST();\t\t/* TEST */\n\t\tstack.PrintHeader(ID,\"\", \"\");\t/* TEST */\n\n\t\tSetStatus(Status.RUNNING);\n\t\t\n\t\tstack.PrintTail(ID,\"\", \"\"); \t/* TEST */\n\t}", "@Override public void stop() {\n\t\t_active = false;\n\t}", "@Override\n public void stop()\n {\n final String funcName = \"stop\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n if (playing)\n {\n analogOut.setAnalogOutputMode((byte) 0);\n analogOut.setAnalogOutputFrequency(0);\n analogOut.setAnalogOutputVoltage(0);\n playing = false;\n expiredTime = 0.0;\n setTaskEnabled(false);\n }\n }", "public void stop()\r\n\t{\r\n\t\tdoStop = true;\r\n\t}", "@Override\n\t\tpublic void stop() {\n\t\t\t// Nothing to do for now\n\t\t}", "public void stopping();", "public void stop() {\n System.out.println(\"stop\");\n }", "@Override\n\tpublic void stop() {\n\t}", "@Override\n\tpublic void stop() {\n\t}", "public void stopInbound();", "public abstract void stopped();", "@Override public void stop () {\n }", "@Override\r\n public void stop() {\r\n\r\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }" ]
[ "0.5937078", "0.57912225", "0.57912225", "0.57912225", "0.57912225", "0.57912225", "0.57912225", "0.57912225", "0.57912225", "0.57912225", "0.57912225", "0.57912225", "0.57912225", "0.57912225", "0.57912225", "0.57912225", "0.5693799", "0.56844175", "0.5642362", "0.5544945", "0.55117196", "0.55056006", "0.55056006", "0.55056006", "0.55056006", "0.55056006", "0.5494998", "0.5494998", "0.5488248", "0.5488248", "0.5488248", "0.5488248", "0.5488248", "0.5488248", "0.5488248", "0.5488248", "0.5488248", "0.5488248", "0.5488248", "0.5488248", "0.5488248", "0.5488248", "0.5488248", "0.5488248", "0.5488248", "0.54775596", "0.5473837", "0.54685026", "0.5455714", "0.54171854", "0.5412224", "0.5393703", "0.5387163", "0.5370577", "0.53550905", "0.5348838", "0.53407556", "0.5333746", "0.52931255", "0.5288274", "0.5260391", "0.5259861", "0.5255508", "0.5253571", "0.52516294", "0.524926", "0.5247765", "0.52337277", "0.52291334", "0.5213449", "0.5194939", "0.5188138", "0.51862717", "0.5159583", "0.51452154", "0.5142583", "0.5139871", "0.51263696", "0.5123299", "0.5123299", "0.5118422", "0.5116573", "0.51138264", "0.50953895", "0.50930995", "0.5092674", "0.5088247", "0.5085973", "0.50828785", "0.5078233", "0.50735617", "0.50631934", "0.5059086", "0.5059086", "0.5052769", "0.50480264", "0.50384516", "0.503703", "0.50345266", "0.50345266" ]
0.57646203
16
Reads from a targettohost FIFO of unsigned 32bit integers.
public static void readFifoU32(int hClient, int channel, Pointer buf, int num, int timeout, IntByReference remaining, NiRioStatus status) { mergeStatus( status, readFifoU32Fn.invokeInt(new Object[] { hClient, channel, Pointer.nativeValue(buf), num, timeout, Pointer.nativeValue(buf) })); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(expected = IOException.class)\n\tpublic void testUint32Overflow() throws IOException {\n\t\tBinaryReader br = br(true, 0xff, 0xff, 0xff, 0xff, 0xff);\n\t\tint value = br.readNextUnsignedIntExact();\n\t\tAssert.fail(\n\t\t\t\"Should not be able to read a value that is larger than what can fit in java 32 bit int: \" +\n\t\t\t\tInteger.toUnsignedString(value));\n\t}", "public abstract int read_ulong();", "public static synchronized int readU32(int hClient, int offset,\n\t\t\tNiRioStatus status) {\n\t\t// System.out.print(\"read offset = 0x\");\n\t\t// System.out.println(Long.toString(offset, 16));\n\t\tmergeStatus(\n\t\t\t\tstatus,\n\t\t\t\treadU32Fn.invokeInt(new Object[] { hClient, offset,\n\t\t\t\t\t\tPointer.nativeValue(readValue.getPointer()) }));\n\t\t// System.out.print(\"value = 0x\");\n\t\t// System.out.println(Long.toString(((long)value) & 0xFFFFFFFFL, 16));\n\t\treturn readValue.getValue();\n\t}", "public abstract void read_ulong_array(int[] value, int offset, int\nlength);", "long fetch32(BytesStore bytes, @NonNegative long off) throws IllegalStateException, BufferUnderflowException {\n return bytes.readUnsignedInt(off);\n }", "private void fetch(byte[] target) throws IOException {\n\t\tint actuallyRead=0;\n\t\tint required=target.length;\n\t\tlog.debug(\"Need to read \"+required+\" to fill buffer\");\n\t\twhile(actuallyRead<required) {\n\t\t\tactuallyRead+=fromDevice.read(target,actuallyRead,required-actuallyRead);\n\t\t\tlog.debug(\"Now read \"+actuallyRead);\n\t\t}\n\t}", "private static int unserializeUint32(byte[] arr, int offset) {\n\t\tint i;\n\t\tint r = 0;\n\t\n\t\tfor (i = 3; i >= 0; i--)\n\t\t\tr |= (byte2int(arr[offset++])) << (i * 8);\n\t\treturn r;\n\t}", "@Test\n void testReadIntPacked() throws IOException {\n byte[] input = new byte[]{(byte) 0x35, (byte) 0x54};\n r = new BitReader(input);\n assertEquals(5402, r.readIntPacked());\n }", "protected void readPayload() throws IOException {\n _data_stream.skipBytes(PushCacheProtocol.COMMAND_LEN);\n int rlen = _data_stream.readInt();\n if (rlen == 0) {\n return;\n }\n _text_buffer = new byte[rlen];\n int sofar = 0;\n int toread = rlen;\n sofar = 0;\n toread = rlen;\n int rv = -1;\n edu.hkust.clap.monitor.Monitor.loopBegin(752);\nwhile (toread > 0) { \nedu.hkust.clap.monitor.Monitor.loopInc(752);\n{\n rv = _in.read(_text_buffer, sofar, toread);\n if (rv < 0) {\n throw new IOException(\"read returned \" + rv);\n }\n sofar += rv;\n toread -= rv;\n }} \nedu.hkust.clap.monitor.Monitor.loopEnd(752);\n\n _data_stream = new DataInputStream(new ByteArrayInputStream(_text_buffer));\n }", "long readS32LE()\n throws IOException, EOFException;", "long readS32BE()\n throws IOException, EOFException;", "private final int readBytes( int number ) throws IOException {\n byte[] buffer = new byte[ number ];\n int read = dataSource.read( buffer, 0, number );\n\n if ( read != buffer.length ) {\n if ( read < 0 ) throw new IOException( \"End of Stream\" );\n for ( int i = read; i < buffer.length; i++ ) buffer[ i ] = (byte)readByte();\n }\n \n\t/**\n * Create integer\n */\n switch ( number ) {\n case 1: return (buffer[ 0 ] & 0xff);\n\t case 2: return (buffer[ 0 ] & 0xff) | ((buffer[ 1 ] & 0xff) << 8);\n\t case 3: return (buffer[ 0 ] & 0xff) | ((buffer[ 1 ] & 0xff) << 8) | ((buffer[ 2 ] & 0xff) << 16);\n\t case 4: return (buffer[ 0 ] & 0xff) | ((buffer[ 1 ] & 0xff) << 8) | ((buffer[ 2 ] & 0xff) << 16) | ((buffer[ 3 ] & 0xff) << 24);\n\t default: throw new IOException( \"Illegal Read quantity\" );\n\t}\n }", "public abstract long read_ulonglong();", "public void readFromSocket(long socketId) {}", "@Override\n\tpublic int read() {\n\t\tint lowByte = getFirstArg();\n\t\tint highByte = getSecondArg();\n\t\tint address = highByte;\n\t\taddress = address << 8;\n\t\taddress |= lowByte;\n\t\treturn CpuMem.getInstance().readMem(address);\n\t}", "public long getUInt() { return bb.getInt() & 0xffff_ffffL; }", "private static int readFromBuffer() throws IOException{\n int n;\n // The number of ints read into the buffer after a read.\n int intsRead;\n // The current position in the byte buffer.\n int pos;\n // The current integer values being processed.\n int x;\n // The current position in the integer array of values to be sorted.\n int index = 0;\n\n // The loop condition reads in the next buffer of bytes from the file, until there are no\n // more bytes to be read in.\n while ((n = fis.read(buf)) != READ_FINISHED) {\n intsRead = n / BYTES_TO_INTS;\n\n // iterate through all the ints currently being held in the byte buffer\n // if they fall in the given bound, add them to the int array to be sorted.\n for (int i = 0; i < intsRead; i++) {\n pos = BYTES_TO_INTS * i;\n\n // Convert the next set of 4 bytes to an integer.\n x = (((int) buf[pos]) & 255) << 24\n | ((((int) buf[pos + 1]) & 255) << 16)\n | ((((int) buf[pos + 2]) & 255) << 8)\n | ((((int) buf[pos + 3]) & 255));\n\n\n // put the current integer into the int array\n ints[index] = x;\n index++;\n }\n }\n\n\n // This returns the number of values selected to be sorted.\n return index;\n }", "public int get_reading() {\n return (int)getUIntBEElement(offsetBits_reading(), 16);\n }", "public int read() throws IOException {\n/* 173 */ long next = this.pointer + 1L;\n/* 174 */ long pos = readUntil(next);\n/* 175 */ if (pos >= next) {\n/* 176 */ byte[] buf = this.data.get((int)(this.pointer >> 9L));\n/* */ \n/* 178 */ return buf[(int)(this.pointer++ & 0x1FFL)] & 0xFF;\n/* */ } \n/* 180 */ return -1;\n/* */ }", "protected void readPayload() throws IOException {\n _dataStream.skipBytes(PushCacheProtocol.COMMAND_LEN);\n int rlen = _dataStream.readInt();\n if (rlen == 0) {\n return;\n }\n if (rlen > PushCacheProtocol.MAX_PAYLOAD_LEN) {\n throw new IOException(\"Payload length \" + rlen + \" exceeds maximum length \" + PushCacheProtocol.MAX_PAYLOAD_LEN);\n }\n _textBuffer = new byte[rlen];\n int sofar = 0;\n int toread = rlen;\n sofar = 0;\n toread = rlen;\n int rv = -1;\n edu.hkust.clap.monitor.Monitor.loopBegin(142);\nwhile (toread > 0) { \nedu.hkust.clap.monitor.Monitor.loopInc(142);\n{\n rv = _stream.read(_textBuffer, sofar, toread);\n if (rv < 0) {\n throw new IOException(\"read returned \" + rv + \" after reading \" + sofar + \" bytes\");\n }\n sofar += rv;\n toread -= rv;\n }} \nedu.hkust.clap.monitor.Monitor.loopEnd(142);\n\n _dataStream = new DataInputStream(new ByteArrayInputStream(_textBuffer));\n }", "public void startReader() throws Exception{\n byte[] buf = new byte[8];\n buf[0] = (byte) 0x02;\n buf[1] = (byte)0x08;\n buf[2] = (byte)0xB0;\n buf[3] = (byte) 0x00;\n buf[4] = (byte) 0x00;\n buf[5] = (byte) 0x00;\n buf[6] = (byte) 0x00;\n CheckSum(buf,(byte) buf.length);\n OutputStream outputStream = socket.getOutputStream();\n outputStream.write(buf);\n\n InputStream in = socket.getInputStream();\n System.out.println(in.available());\n if (in.available() == 0){\n System.out.println(\"null\");\n }else {\n byte[] bytes = new byte[8];\n in.read(bytes);\n CheckSum(bytes,(byte)8);\n String str = toHex(bytes);\n //String[] str1 = str.split(\"\");\n //ttoString(str1);\n System.out.println(str);\n }\n\n\n\n /*byte[] by2 = new byte[17];\n in.read(by2);\n String str2 = toHex(by2);\n String[] str4 = str2.split(\"\");\n String[] str5 = new String[getInt(str4)];\n System.arraycopy(str4,0,str5,0,getInt(str4));\n if(getInt(str4)>3)\n System.out.println(ttoString(str5));\n set = new HashSet();\n set.add(ttoString(str5));\n list = new ArrayList(set);\n System.out.println(list);*/\n }", "public int read_int32() throws IOException {\n byte bytes[] = read_bytes(4);\n\n return bytesToInt32(bytes, Endianness.BIG_ENNDIAN);\n }", "public long applyIntToLong(int host);", "public void set_reading(int value) {\n setUIntBEElement(offsetBits_reading(), 16, value);\n }", "protected int populateBuffer()\n {\n interlock.beginReading();\n // System.out.println(\"populateBuffer: 2\");\n return byteBuffer.limit();\n }", "void Receive (int boardID, short addr, ByteBuffer buffer, long cnt, int Termination);", "@Override\n\tpublic int[] read() {\n\t\treturn null;\n\t}", "@Override\n\tpublic int[] read() {\n\t\treturn null;\n\t}", "@Override\n\tpublic int[] read() {\n\t\treturn null;\n\t}", "public void internalRead() {\r\n\t\tbusInt.put(data);\r\n\t}", "int readNonBlocking(byte[] buffer, int offset, int length);", "private void read() throws IOException {\n\n ByteBuffer buffer = ByteBuffer.allocate(ProjectProperties.BYTE_BUFFER_SIZE);\n int read = 0;\n // Keep trying to write until all bytes are read\n while (buffer.hasRemaining() && read != -1) {\n read = channel.read(buffer);\n }\n checkIfClosed(read);// check for error\n\n // convert byte[] to hash string\n String rt = RandomByteAndHashCode.SHA1FromBytes(buffer.array());\n if(ProjectProperties.DEBUG_FULL){\n System.out.println(\"Read: \" + rt );\n }\n\n write(rt.getBytes()); // write hash string\n }", "public static int read(int fd, byte[] buffer) {\n //invalid file descriptor\n if (fd < 3 || fd > 31) {\n return -1;\n }\n return Kernel.interrupt(Kernel.INTERRUPT_SOFTWARE, Kernel.READBUF, fd, buffer);\n }", "T read(int id);", "T read(int id);", "int exportTo(int[] buffer, int from);", "public void receivedDataFromRobot(int[] data) {}", "public abstract byte[] readData(int address, int length);", "public int read(int number, ByteList byteList) throws IOException, BadDescriptorException {\n checkOpen();\n \n byteList.ensure(byteList.length() + number);\n int bytesRead = read(ByteBuffer.wrap(byteList.getUnsafeBytes(),\n byteList.begin() + byteList.length(), number));\n if (bytesRead > 0) {\n byteList.length(byteList.length() + bytesRead);\n }\n return bytesRead;\n }", "public int read() throws FTD2XXException {\n byte[] c = new byte[1];\n int ret = read(c);\n return (ret == 1) ? (c[0] & 0xFF) : -1;\n }", "@Override\n public int read() throws IOException\n {\n try\n {\n byte [] buff = fAVMRemote.readInput(fTicketHolder.getTicket(), fHandle, 1);\n if (buff.length == 0)\n {\n return -1;\n }\n return ((int)buff[0]) & 0xff;\n }\n catch (Exception e)\n {\n throw new IOException(\"Remote I/O Error.\");\n }\n }", "public synchronized void mProcessSerial(){ //170927 Returns array of data received from serial RX they are also put on receive buffer\n for (int loop=0;loop<oTXFIFO.nBytesAvail;loop++){\n if (oTXFIFO.mCanPop(1)==false) break; //Send FIFO data to serial output stream\n int byB=oTXFIFO.mFIFOpop();\n mWriteByte(oOutput, (byte) byB);\n }\n byte[] aBytes = mReadBytes(oInput);\n if (aBytes==null) return ;\n for (int i=0;i<aBytes.length;i++){ //Loop through buffer and transfer from input stream to FIFO buffer //+170601 revised from while loop to avoid endless loop\n if (oRXFIFO.mCanPush()){\n oRXFIFO.mFIFOpush(aBytes[i]); //Put the data on the fifo\n }\n else\n {\n mStateSet(cKonst.eSerial.kOverflow);\n nDataRcvd=-1;\n }\n }\n }", "public static final int readUInt(InputStream in) throws IOException {\n byte[] buff = new byte[4];\n StreamTool.readFully(in, buff);\n return getUInt(buff, 0);\n }", "public long readUnsignedInt()\r\n/* 429: */ {\r\n/* 430:442 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 431:443 */ return super.readUnsignedInt();\r\n/* 432: */ }", "public static long uint32_tToLong(byte b0, byte b1, byte b2, byte b3) {\n return (unsignedByteToInt(b0) +\n (unsignedByteToInt(b1) << 8) +\n (unsignedByteToInt(b2) << 16) +\n (unsignedByteToInt(b3) << 24)) &\n 0xFFFFFFFFL;\n }", "public int read() throws IOException {\n ensureOpen();\n return read(singleByteBuf, 0, 1) == -1 ? -1 : Byte.toUnsignedInt(singleByteBuf[0]);\n }", "public long readUnsignedIntLE()\r\n/* 847: */ {\r\n/* 848:856 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 849:857 */ return super.readUnsignedIntLE();\r\n/* 850: */ }", "public static final long readULong(IRandomAccess ra) throws IOException {\n byte[] buff = new byte[8];\n ra.readFully(buff);\n return getULong(buff, 0);\n }", "static int fromArray(byte[] payload) {\n return payload[0] << 24 | (payload[1] & 0xFF) << 16 | (payload[2] & 0xFF) << 8 | (payload[3] & 0xFF);\n }", "public int read(byte[] dest) {\n try {\n return in.read(dest);\n } catch (IOException e) {\n print(\"Error reading bytes from \" + portName);\n }\n return -1;\n }", "public int read(int address){\n switch (address){\r\n /*\r\n case 0: {\r\n return registers_w[CONTROL_REGISTER_1];\r\n }\r\n\r\n case 3: {\r\n return spriteMemoryCounter;\r\n }\r\n case 5:{\r\n return registers_w[SCROLL_OFFSET];\r\n }\r\n case 6:{\r\n return horizontalTileCounter | (verticalTileCounter << 5) | (horizontalNameCounter << 10) | (verticalNameCounter << 11);\r\n }\r\n */\r\n\t\t\tcase 0: {\r\n\t\t\t\t\t\treturn scanLine;\r\n\t\t\t\t\t\t// hack\r\n\t\t\t}\r\n case 1: {\r\n return registers_w[CONTROL_REGISTER_2];\r\n }\r\n case STATUS_REGISTER:{ // 2\r\n int returnVal = registers_r[STATUS_REGISTER];\r\n registers_r[STATUS_REGISTER] = getBitsUnset(registers_r[STATUS_REGISTER], STATUS_VBLANK); //| STATUS_SPRITE0_HIT);\r\n isFirstWriteToScroll = true;\r\n lastPPUAddressWasHigh = false;\r\n //logger.info(\"Status is: \" + Integer.toHexString(returnVal));\r\n return returnVal;\r\n }\r\n case SPRITE_MEMORY_DATA:{ // 4\r\n return readFromSpriteMemory();\r\n }\r\n case PPU_MEMORY_DATA:{ // 7\r\n int returnVal = 0xFF & registers_r[PPU_MEMORY_DATA]; // buffered read\r\n \r\n //int returnVal = 0xFF & memory.read(ppuMemoryAddress);\r\n\t\t\tint readAddress = horizontalTileCounter \r\n\t\t\t\t\t\t\t\t| (verticalTileCounter << 5)\r\n\t\t\t\t\t\t\t\t| (horizontalNameCounter << 10)\r\n\t\t\t\t\t\t\t\t| (verticalNameCounter << 11)\r\n\t\t\t\t\t\t\t\t| ((fineVerticalCounter & 0x3) << 12);\r\n\r\n\t\t\tif (readAddress == 0x3F10 || readAddress == 0x3F14 || readAddress == 0x3F18 || readAddress == 0x3F1C) {\r\n\t\t\t\treadAddress = readAddress & 0x3F0F;\r\n\t\t\t}\r\n registers_r[PPU_MEMORY_DATA] = 0xFF & memory.read(readAddress);\r\n // registers_r[PPU_MEMORY_DATA] = 0xFF & memory.read(ppuMemoryAddress);\r\n incrementCounters();\r\n /*\r\n if ((registers_w[CONTROL_REGISTER_1] & CR1_VERTICAL_WRITE) == 0){\r\n ppuMemoryAddress++;\r\n }\r\n else {\r\n ppuMemoryAddress = (ppuMemoryAddress + 32);\r\n }\r\n */\r\n return returnVal;\r\n }\r\n\r\n default: throw new RuntimeException(\"Invalid read attempt: \" + Integer.toHexString(address));\r\n }\r\n }", "private static int getBytes(long r23) {\n /*\n java.lang.ThreadLocal<byte[]> r0 = TEMP_NUMBER_BUFFER\n java.lang.Object r0 = r0.get()\n byte[] r0 = (byte[]) r0\n r1 = 20\n if (r0 != 0) goto L_0x0013\n byte[] r0 = new byte[r1]\n java.lang.ThreadLocal<byte[]> r2 = TEMP_NUMBER_BUFFER\n r2.set(r0)\n L_0x0013:\n r2 = -9223372036854775808\n r4 = 54\n r5 = 57\n r6 = 45\n r7 = 53\n r8 = 56\n r9 = 55\n r10 = 51\n r11 = 50\n r12 = 0\n r13 = 48\n r14 = 1\n int r15 = (r23 > r2 ? 1 : (r23 == r2 ? 0 : -1))\n if (r15 != 0) goto L_0x0076\n r0[r12] = r6\n r0[r14] = r5\n r2 = 2\n r0[r2] = r11\n r2 = 3\n r0[r2] = r11\n r2 = 4\n r0[r2] = r10\n r2 = 5\n r0[r2] = r10\n r2 = 6\n r0[r2] = r9\n r2 = 7\n r0[r2] = r11\n r2 = 8\n r0[r2] = r13\n r2 = 9\n r0[r2] = r10\n r2 = 10\n r0[r2] = r4\n r2 = 11\n r0[r2] = r8\n r2 = 12\n r0[r2] = r7\n r2 = 13\n r3 = 52\n r0[r2] = r3\n r2 = 14\n r0[r2] = r9\n r2 = 15\n r0[r2] = r9\n r2 = 16\n r0[r2] = r7\n r2 = 17\n r0[r2] = r8\n r2 = 18\n r0[r2] = r13\n r2 = 19\n r0[r2] = r8\n return r1\n L_0x0076:\n r1 = 0\n int r3 = (r23 > r1 ? 1 : (r23 == r1 ? 0 : -1))\n if (r3 != 0) goto L_0x007f\n r0[r12] = r13\n return r14\n L_0x007f:\n if (r3 >= 0) goto L_0x0088\n r0[r12] = r6\n long r15 = java.lang.Math.abs(r23)\n goto L_0x008b\n L_0x0088:\n r14 = 0\n r15 = r23\n L_0x008b:\n r17 = 9\n r19 = 10\n r21 = 1\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0099\n r17 = r21\n goto L_0x017e\n L_0x0099:\n r17 = 99\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00a3\n r17 = r19\n goto L_0x017e\n L_0x00a3:\n r17 = 999(0x3e7, double:4.936E-321)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00ad\n r17 = 100\n goto L_0x017e\n L_0x00ad:\n r17 = 9999(0x270f, double:4.94E-320)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00b7\n r17 = 1000(0x3e8, double:4.94E-321)\n goto L_0x017e\n L_0x00b7:\n r17 = 99999(0x1869f, double:4.9406E-319)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00c2\n r17 = 10000(0x2710, double:4.9407E-320)\n goto L_0x017e\n L_0x00c2:\n r17 = 999999(0xf423f, double:4.94065E-318)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00ce\n r17 = 100000(0x186a0, double:4.94066E-319)\n goto L_0x017e\n L_0x00ce:\n r17 = 9999999(0x98967f, double:4.940656E-317)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00da\n r17 = 1000000(0xf4240, double:4.940656E-318)\n goto L_0x017e\n L_0x00da:\n r17 = 99999999(0x5f5e0ff, double:4.9406564E-316)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00e6\n r17 = 10000000(0x989680, double:4.9406565E-317)\n goto L_0x017e\n L_0x00e6:\n r17 = 999999999(0x3b9ac9ff, double:4.940656453E-315)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00f2\n r17 = 100000000(0x5f5e100, double:4.94065646E-316)\n goto L_0x017e\n L_0x00f2:\n r17 = 9999999999(0x2540be3ff, double:4.940656458E-314)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0100\n r17 = 1000000000(0x3b9aca00, double:4.94065646E-315)\n goto L_0x017e\n L_0x0100:\n r17 = 99999999999(0x174876e7ff, double:4.94065645836E-313)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0110\n r17 = 10000000000(0x2540be400, double:4.9406564584E-314)\n goto L_0x017e\n L_0x0110:\n r17 = 999999999999(0xe8d4a50fff, double:4.940656458408E-312)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x011f\n r17 = 100000000000(0x174876e800, double:4.9406564584E-313)\n goto L_0x017e\n L_0x011f:\n r17 = 9999999999999(0x9184e729fff, double:4.940656458412E-311)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x012e\n r17 = 1000000000000(0xe8d4a51000, double:4.94065645841E-312)\n goto L_0x017e\n L_0x012e:\n r17 = 99999999999999(0x5af3107a3fff, double:4.9406564584124E-310)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x013d\n r17 = 10000000000000(0x9184e72a000, double:4.9406564584125E-311)\n goto L_0x017e\n L_0x013d:\n r17 = 999999999999999(0x38d7ea4c67fff, double:4.94065645841246E-309)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x014c\n r17 = 100000000000000(0x5af3107a4000, double:4.94065645841247E-310)\n goto L_0x017e\n L_0x014c:\n r17 = 9999999999999999(0x2386f26fc0ffff, double:5.431165199810527E-308)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x015b\n r17 = 1000000000000000(0x38d7ea4c68000, double:4.940656458412465E-309)\n goto L_0x017e\n L_0x015b:\n r17 = 99999999999999999(0x16345785d89ffff, double:5.620395787888204E-302)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x016a\n r17 = 10000000000000000(0x2386f26fc10000, double:5.431165199810528E-308)\n goto L_0x017e\n L_0x016a:\n r17 = 999999999999999999(0xde0b6b3a763ffff, double:7.832953389245684E-242)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0179\n r17 = 100000000000000000(0x16345785d8a0000, double:5.620395787888205E-302)\n goto L_0x017e\n L_0x0179:\n r17 = 1000000000000000000(0xde0b6b3a7640000, double:7.832953389245686E-242)\n L_0x017e:\n long r1 = r15 / r17\n int r3 = (int) r1\n switch(r3) {\n case 0: goto L_0x01b6;\n case 1: goto L_0x01af;\n case 2: goto L_0x01aa;\n case 3: goto L_0x01a5;\n case 4: goto L_0x019e;\n case 5: goto L_0x0199;\n case 6: goto L_0x0194;\n case 7: goto L_0x018f;\n case 8: goto L_0x018a;\n case 9: goto L_0x0185;\n default: goto L_0x0184;\n }\n L_0x0184:\n goto L_0x01bb\n L_0x0185:\n int r3 = r14 + 1\n r0[r14] = r5\n goto L_0x01ba\n L_0x018a:\n int r3 = r14 + 1\n r0[r14] = r8\n goto L_0x01ba\n L_0x018f:\n int r3 = r14 + 1\n r0[r14] = r9\n goto L_0x01ba\n L_0x0194:\n int r3 = r14 + 1\n r0[r14] = r4\n goto L_0x01ba\n L_0x0199:\n int r3 = r14 + 1\n r0[r14] = r7\n goto L_0x01ba\n L_0x019e:\n int r3 = r14 + 1\n r6 = 52\n r0[r14] = r6\n goto L_0x01ba\n L_0x01a5:\n int r3 = r14 + 1\n r0[r14] = r10\n goto L_0x01ba\n L_0x01aa:\n int r3 = r14 + 1\n r0[r14] = r11\n goto L_0x01ba\n L_0x01af:\n int r3 = r14 + 1\n r6 = 49\n r0[r14] = r6\n goto L_0x01ba\n L_0x01b6:\n int r3 = r14 + 1\n r0[r14] = r13\n L_0x01ba:\n r14 = r3\n L_0x01bb:\n int r3 = (r17 > r21 ? 1 : (r17 == r21 ? 0 : -1))\n if (r3 != 0) goto L_0x01c0\n goto L_0x01d8\n L_0x01c0:\n java.lang.Long.signum(r17)\n long r1 = r1 * r17\n long r15 = r15 - r1\n r1 = 0\n int r3 = (r15 > r1 ? 1 : (r15 == r1 ? 0 : -1))\n if (r3 != 0) goto L_0x01d9\n L_0x01cc:\n int r1 = (r17 > r21 ? 1 : (r17 == r21 ? 0 : -1))\n if (r1 <= 0) goto L_0x01d8\n int r1 = r14 + 1\n r0[r14] = r13\n long r17 = r17 / r19\n r14 = r1\n goto L_0x01cc\n L_0x01d8:\n return r14\n L_0x01d9:\n long r17 = r17 / r19\n goto L_0x017e\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.unboundid.util.ByteStringBuffer.getBytes(long):int\");\n }", "@Override\n public final int readVarint32() throws IOException {\n return (int) readVarint64();\n }", "public void testNIO_int_array() throws Exception {\n int[] intArray = new int[8];\n IntBuffer ib = IntBuffer.wrap(intArray);\n intBufferTest(ib);\n }", "public void read(int value) {\n if (maxHeap.isEmpty() || value <= maxHeap.peek()) {\n maxHeap.add(value);\n } else {\n minHeap.add(value);\n }\n // re-order\n if (maxHeap.size() - minHeap.size() >= 2) {\n minHeap.add(maxHeap.poll());\n } else if (minHeap.size() > maxHeap.size()) {\n maxHeap.add(minHeap.poll());\n }\n }", "private int readbit(ByteBuffer buffer) {\n if (numberLeftInBuffer == 0) {\n loadBuffer(buffer);\n numberLeftInBuffer = 8;\n }\n int top = ((byteBuffer >> 7) & 1);\n byteBuffer <<= 1;\n numberLeftInBuffer--;\n return top;\n }", "public void mo4677d() {\n this.f3118j = new ArrayList<>();\n this.f3119k = new byte[1];\n this.f3114f = true;\n new Thread(new Runnable() {\n public void run() {\n C1140n.m5266a(\"开启socket读取线程!socket = \" + C1149t.this.f3111c);\n while (C1149t.this.f3114f) {\n if (!(C1149t.this.f3111c == null || C1149t.this.f3113e == null)) {\n try {\n C1149t.this.f3113e.read(C1149t.this.f3119k);\n if (C1149t.this.f3118j.size() != 0) {\n C1149t.this.f3118j.add(Integer.valueOf(C1149t.this.f3119k[0] & 255));\n } else if ((C1149t.this.f3119k[0] & 255) == 1) {\n C1149t.this.f3118j.add(Integer.valueOf(C1149t.this.f3119k[0] & 255));\n C1149t.this.m5304a(\"socket读取,头校验成功\");\n }\n if (C1149t.this.f3118j.size() == 3) {\n Integer unused = C1149t.this.f3120l = (Integer) C1149t.this.f3118j.get(2);\n }\n if (C1149t.this.f3118j.size() > 3 && C1149t.this.f3118j.size() == C1149t.this.f3120l.intValue() + 3) {\n int i = 0;\n for (int i2 = 0; i2 < C1149t.this.f3118j.size() - 1; i2++) {\n i += ((Integer) C1149t.this.f3118j.get(i2)).intValue();\n }\n if (i % 256 == ((Integer) C1149t.this.f3118j.get(C1149t.this.f3118j.size() - 1)).intValue()) {\n C1149t.this.m5304a(\"socket读取,数据校验成功!\");\n byte[] bArr = new byte[C1149t.this.f3118j.size()];\n for (int i3 = 0; i3 < C1149t.this.f3118j.size(); i3++) {\n bArr[i3] = (byte) ((Integer) C1149t.this.f3118j.get(i3)).intValue();\n }\n if (C1149t.this.f3110b != null) {\n C1149t.this.f3110b.mo4520a(bArr);\n } else {\n C1140n.m5269b(\"数据校验:listener监听为null\");\n }\n }\n C1149t.this.f3118j.clear();\n Integer unused2 = C1149t.this.f3120l = 0;\n }\n } catch (SocketTimeoutException e) {\n C1139m.m5264a(\"socket read and parse out of time! e = \" + e.toString());\n C1140n.m5269b(\"socket连接超时:\" + e.toString());\n if (!C1149t.this.f3122n) {\n C1141o.m5272a().mo4665b();\n boolean unused3 = C1149t.this.f3122n = true;\n if (C1149t.this.f3111c != null) {\n try {\n C1149t.this.f3111c.close();\n } catch (IOException e2) {\n e2.printStackTrace();\n }\n }\n Socket unused4 = C1149t.this.f3111c = null;\n try {\n if (C1149t.this.f3113e != null) {\n C1149t.this.f3113e.close();\n }\n if (C1149t.this.f3112d != null) {\n C1149t.this.f3112d.close();\n }\n } catch (IOException e3) {\n e3.printStackTrace();\n }\n InputStream unused5 = C1149t.this.f3113e = null;\n OutputStream unused6 = C1149t.this.f3112d = null;\n C1149t.this.m5315f();\n }\n } catch (IOException e4) {\n e4.printStackTrace();\n C1140n.m5269b(\"socket read error: \" + e4.toString());\n C1149t.this.m5302a(2000);\n }\n }\n }\n }\n }).start();\n }", "private void read() throws IOException {\n // The first byte of every data frame\n int firstByte;\n\n // Loop until end of stream is reached.\n while ((firstByte = bis.read()) != -1) {\n // Data contained in the first byte\n // int fin = (firstByte << 24) >>> 31;\n // int rsv1 = (firstByte << 25) >>> 31;\n // int rsv2 = (firstByte << 26) >>> 31;\n // int rsv3 = (firstByte << 27) >>> 31;\n int opcode = (firstByte << 28) >>> 28;\n\n // Reads the second byte\n int secondByte = bis.read();\n\n // Data contained in the second byte\n // int mask = (secondByte << 24) >>> 31;\n int payloadLength = (secondByte << 25) >>> 25;\n\n // If the length of payload data is less than 126, that's the\n // final\n // payload length\n // Otherwise, it must be calculated as follows\n if (payloadLength == 126) {\n // Attempts to read the next 2 bytes\n byte[] nextTwoBytes = new byte[2];\n for (int i = 0; i < 2; i++) {\n byte b = (byte) bis.read();\n nextTwoBytes[i] = b;\n }\n\n // Those last 2 bytes will be interpreted as a 16-bit\n // unsigned\n // integer\n byte[] integer = new byte[]{0, 0, nextTwoBytes[0], nextTwoBytes[1]};\n payloadLength = Utils.fromByteArray(integer);\n } else if (payloadLength == 127) {\n // Attempts to read the next 8 bytes\n byte[] nextEightBytes = new byte[8];\n for (int i = 0; i < 8; i++) {\n byte b = (byte) bis.read();\n nextEightBytes[i] = b;\n }\n\n // Only the last 4 bytes matter because Java doesn't support\n // arrays with more than 2^31 -1 elements, so a 64-bit\n // unsigned\n // integer cannot be processed\n // Those last 4 bytes will be interpreted as a 32-bit\n // unsigned\n // integer\n byte[] integer = new byte[]{nextEightBytes[4], nextEightBytes[5], nextEightBytes[6],\n nextEightBytes[7]};\n payloadLength = Utils.fromByteArray(integer);\n }\n\n // Attempts to read the payload data\n byte[] data = new byte[payloadLength];\n for (int i = 0; i < payloadLength; i++) {\n byte b = (byte) bis.read();\n data[i] = b;\n }\n\n // Execute the action depending on the opcode\n switch (opcode) {\n case OPCODE_CONTINUATION:\n // Should be implemented\n break;\n case OPCODE_TEXT:\n notifyOnTextReceived(new String(data, Charset.forName(\"UTF-8\")));\n break;\n case OPCODE_BINARY:\n notifyOnBinaryReceived(data);\n break;\n case OPCODE_CLOSE:\n closeInternal();\n notifyOnCloseReceived();\n return;\n case OPCODE_PING:\n notifyOnPingReceived(data);\n sendPong(data);\n break;\n case OPCODE_PONG:\n notifyOnPongReceived(data);\n break;\n default:\n closeInternal();\n Exception e = new UnknownOpcodeException(\"Unknown opcode: 0x\" + Integer.toHexString(opcode));\n notifyOnException(e);\n return;\n }\n }\n\n // If there are not more data to be read,\n // and if the connection didn't receive a close frame,\n // an IOException must be thrown because the connection didn't close\n // gracefully\n throw new IOException(\"Unexpected end of stream\");\n }", "int readBytes(TclObject obj, int bytesToRead, IntPtr offsetPtr) {\n final boolean debug = false;\n int toRead, srcOff, srcLen, offset, length;\n ChannelBuffer buf;\n IntPtr srcRead, dstWrote;\n byte[] src, dst;\n\n offset = offsetPtr.i;\n \n buf = inQueueHead;\n src = buf.buf;\n srcOff = buf.nextRemoved;\n srcLen = buf.nextAdded - buf.nextRemoved;\n if (debug) {\n System.out.println(\"readBytes() : src buffer len is \" + buf.buf.length);\n System.out.println(\"readBytes() : buf.nextRemoved is \" + buf.nextRemoved);\n System.out.println(\"readBytes() : buf.nextAdded is \" + buf.nextAdded);\n }\n\n toRead = bytesToRead;\n if (toRead > srcLen) {\n\t toRead = srcLen;\n if (debug)\n System.out.println(\"readBytes() : toRead set to \" + toRead);\n }\n\n length = TclByteArray.getLength(null, obj);\n dst = TclByteArray.getBytes(null, obj);\n if (debug) {\n System.out.println(\"readBytes() : toRead is \" + toRead);\n System.out.println(\"readBytes() : length is \" + length);\n System.out.println(\"readBytes() : array length is \" + dst.length);\n }\n\n if (toRead > length - offset - 1) {\n if (debug) {\n System.out.println(\"readBytes() : TclObject too small\");\n }\n\n // Double the existing size of the object or make enough room to\n // hold all the characters we may get from the source buffer,\n // whichever is larger.\n\n length = offset * 2;\n if (offset < toRead) {\n length = offset + toRead + 1;\n }\n dst = TclByteArray.setLength(null, obj, length);\n }\n\n if (needNL) {\n needNL = false;\n if ((srcLen == 0) || (src[srcOff] != '\\n')) {\n dst[offset] = (byte) '\\r';\n offsetPtr.i += 1;\n return 1;\n }\n dst[offset++] = (byte) '\\n';\n srcOff++;\n srcLen--;\n toRead--;\n }\n\n srcRead = new IntPtr(srcLen);\n dstWrote = new IntPtr(toRead);\n\n if (translateEOL(dst, offset, src, srcOff, dstWrote, srcRead) != 0) {\n if (dstWrote.i == 0) {\n return -1;\n }\n }\n\n buf.nextRemoved += srcRead.i;\n offsetPtr.i += dstWrote.i;\n return dstWrote.i;\n }", "HugeUInt(HugeUInt arg) {\r\n array = new int[arg.array.length];\r\n for (int i = 0; i < arg.array.length; i++) array[i] = arg.array[i];\r\n }", "private static long makeQueueElement(int value, int index)\n {\n return index | (((long) value) << 32);\n }", "public int readInt();", "private static void readFully(final DataInput input, final int[] ints) throws IOException {\n if (input instanceof ImageInputStream) {\n // Optimization for ImageInputStreams, read all in one go\n ((ImageInputStream) input).readFully(ints, 0, ints.length);\n } else {\n for (int i = 0; i < ints.length; i++) {\n ints[i] = input.readInt();\n }\n }\n }", "void ReadStatusByte(int boardID, short addr, ShortByReference result);", "int transferFromMemory(I8237Channel c,int address) throws SIMException\n\t{\n\t\treturn (lastByte = cpu.getByte(address));\n\t}", "static int readRawVarint32(InputStream input) throws IOException {\r\n int result = 0;\r\n int offset = 0;\r\n for (; offset < 32; offset += 7) {\r\n int b = input.read();\r\n if (b == -1) {\r\n throw new EOFException(\"stream is truncated\");\r\n }\r\n result |= (b & 0x7f) << offset;\r\n if ((b & 0x80) == 0) {\r\n return result;\r\n }\r\n }\r\n // Keep reading up to 64 bits.\r\n for (; offset < 64; offset += 7) {\r\n int b = input.read();\r\n if (b == -1) {\r\n throw new EOFException(\"stream is truncated\");\r\n }\r\n if ((b & 0x80) == 0) {\r\n return result;\r\n }\r\n }\r\n throw new IOException(\"malformed varInt\");\r\n }", "private int read()\n\t{\n\t\ttry{\n\t\t\twhile(dev_in.available()==0);\n\t\t\treturn dev_in.read();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\n\t\treturn -1;\n\t}", "public int read(int i);", "static int m60359a(BufferedSource bufferedSource) throws IOException {\n return (bufferedSource.readByte() & 255) | (((bufferedSource.readByte() & 255) << 16) | ((bufferedSource.readByte() & 255) << 8));\n }", "public static int int32_tToInt(byte b0, byte b1, byte b2, byte b3) {\n return unsignedByteToInt(b0) +\n (unsignedByteToInt(b1) << 8) +\n (unsignedByteToInt(b2) << 16) +\n (unsignedByteToInt(b3) << 24);\n }", "public void read(long address, ByteBuffer destination)\n {\n tryRead(address, destination);\n }", "private void read() {\n\t\tticketint = preticketint.getInt(\"ticketint\", 0);\r\n\t\tLog.d(\"ticketint\", \"ticketint\" + \"read\" + ticketint);\r\n\t}", "public byte[] read(int number) throws FTD2XXException {\n byte[] ret = new byte[number];\n int actually = read(ret);\n if (actually != number) {\n byte[] shrink = new byte[actually];\n System.arraycopy(ret, 0, shrink, 0, actually);\n return shrink;\n }\n else {\n return ret;\n }\n }", "public int readInt() {\n return ((int) readLong());\n }", "private List<String> readTemperatureRaw() throws IOException {\n Path path = Paths.get( deviceFolder, \"/w1_slave\" );\n return FileReader.readLines( path );\n }", "private void readInterfaces() throws IOException, ClassFormatException {\n final int interfaces_count = dataInputStream.readUnsignedShort();\n interfaces = new int[interfaces_count];\n for (int i = 0; i < interfaces_count; i++) {\n interfaces[i] = dataInputStream.readUnsignedShort();\n }\n }", "public int readRaw()\r\n {\r\n \tbyte[] buf = new byte[1];\r\n \treadRaw(buf, 0, 1);\r\n \treturn buf[0] & 0xFF;\r\n }", "public int readUnsignedShort() throws IOException {\n\n\t\tif (read(bb, 0, 2) < 2) {\n\t\t\tthrow new EOFException();\n\t\t}\n\n\t\treturn (bb[0] & 0xFF) << 8 | (bb[1] & 0xFF);\n\t}", "private static int getPayload()\n\t{\n\t\tint max = Integer.MAX_VALUE; // largest int we can get 2147483647\n\t\tint min = Integer.MIN_VALUE; // smallest int we can get -2147483648\n\t\t\n\t\tRandom rn = new Random();\n\t\tint randomInt = rn.nextInt(); // \n\t\treturn randomInt; // hoping this will create the large number that we want to use.\n\t}", "private long read_long(MappedByteBuffer buff) throws IOException {\n long number = 0;\n for (int i = 0; i < 8; ++i) {\n number += ((long) (buff.get() & 0xFF)) << (8 * i);\n }\n return number;\n }", "private static byte[] getBytes(int val) {\n log.log(Level.FINEST, String.format(\"%d\", val));\n byte[] ret = new byte[NekoIOConstants.INT_LENGTH];\n for (int i = 0; i < NekoIOConstants.INT_LENGTH; i++) {\n if (NekoIOConstants.BIG_ENDIAN) {\n ret[NekoIOConstants.INT_LENGTH - 1 - i] = (byte) val;\n } else {\n ret[i] = (byte) val;\n }\n val >>= 8;\n }\n return ret;\n }", "public int read ()\n {\n return (_buffer.remaining() > 0) ? (_buffer.get() & 0xFF) : -1;\n }", "int readInt();", "public byte[] readBytes(int inNumberMessages, int[] outNumberMessages) throws IOException;", "@Override\n\tpublic int Read(byte[] buffer, int offset, int count)\n\t{\n\t\tif (buffer == null)\n\t\t{\n\t\t\tthrow new NullPointerException(\"buffer\");\n\t\t}\n\n\t\tint totalRead = 0;\n\n\t\tif (entryOffset >= entrySize)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\n\t\tlong numToRead = count;\n\n\t\tif ((numToRead + entryOffset) > entrySize)\n\t\t{\n\t\t\tnumToRead = entrySize - entryOffset;\n\t\t}\n\n\t\tif (readBuffer != null)\n\t\t{\n\t\t\tint sz = (numToRead > readBuffer.length) ? readBuffer.length : (int)numToRead;\n\n\t\t\tSystem.arraycopy(readBuffer, 0, buffer, offset, sz);\n\n\t\t\tif (sz >= readBuffer.length)\n\t\t\t{\n\t\t\t\treadBuffer = null;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint newLen = readBuffer.length - sz;\n//C# TO JAVA CONVERTER WARNING: Unsigned integer types have no direct equivalent in Java:\n//ORIGINAL LINE: byte[] newBuf = new byte[newLen];\n\t\t\t\tbyte[] newBuf = new byte[newLen];\n\t\t\t\tSystem.arraycopy(readBuffer, sz, newBuf, 0, newLen);\n\t\t\t\treadBuffer = newBuf;\n\t\t\t}\n\n\t\t\ttotalRead += sz;\n\t\t\tnumToRead -= sz;\n\t\t\toffset += sz;\n\t\t}\n\n\t\twhile (numToRead > 0)\n\t\t{\n//C# TO JAVA CONVERTER WARNING: Unsigned integer types have no direct equivalent in Java:\n//ORIGINAL LINE: byte[] rec = tarBuffer.ReadBlock();\n\t\t\tbyte[] rec = tarBuffer.ReadBlock();\n\t\t\tif (rec == null)\n\t\t\t{\n\t\t\t\t// Unexpected EOF!\n\t\t\t\tthrow new TarException(\"unexpected EOF with \" + numToRead + \" bytes unread\");\n\t\t\t}\n\n\t\t\tint sz = (int)numToRead;\n\t\t\tint recLen = rec.length;\n\n\t\t\tif (recLen > sz)\n\t\t\t{\n\t\t\t\tSystem.arraycopy(rec, 0, buffer, offset, sz);\n//C# TO JAVA CONVERTER WARNING: Unsigned integer types have no direct equivalent in Java:\n//ORIGINAL LINE: readBuffer = new byte[recLen - sz];\n\t\t\t\treadBuffer = new byte[recLen - sz];\n\t\t\t\tSystem.arraycopy(rec, sz, readBuffer, 0, recLen - sz);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsz = recLen;\n\t\t\t\tSystem.arraycopy(rec, 0, buffer, offset, recLen);\n\t\t\t}\n\n\t\t\ttotalRead += sz;\n\t\t\tnumToRead -= sz;\n\t\t\toffset += sz;\n\t\t}\n\n\t\tentryOffset += totalRead;\n\n\t\treturn totalRead;\n\t}", "public int getInt2() {\n\t\tfinal int b1 = payload.get() & 0xFF;\n\t\tfinal int b2 = payload.get() & 0xFF;\n\t\tfinal int b3 = payload.get() & 0xFF;\n\t\tfinal int b4 = payload.get() & 0xFF;\n\t\treturn b2 << 24 & 0xFF | b1 << 16 & 0xFF | b4 << 8 & 0xFF | b3 & 0xFF;\n\t}", "abstract BookieId maybeSendSpeculativeRead(BitSet heardFromHostsBitSet);", "public interface UsbCommunicationInterface extends Runnable\n{\n byte get();\n\n void send(byte data) throws IOException;\n\n void cancel();\n}", "public byte read(int param1) {\n }", "public <T> T readInbound() {\n/* 291 */ T message = (T)poll(this.inboundMessages);\n/* 292 */ if (message != null) {\n/* 293 */ ReferenceCountUtil.touch(message, \"Caller of readInbound() will handle the message from this point\");\n/* */ }\n/* 295 */ return message;\n/* */ }", "private static int read(InputStream in, byte[] dest, int bytesToRead)\n\t\t\tthrows IOException {\n\t\tint read = 0;\n\t\tif (bytesToRead % 2 == 1)\n\t\t\tbytesToRead--;\n\t\tread = in.read(dest, 0, bytesToRead);\n\t\tif (read == -1)\n\t\t\treturn read;\n\t\twhile ((read % 2) == 1) {\n\t\t\tint k = in.read(dest, read, bytesToRead - read);\n\t\t\tif (k == -1)\n\t\t\t\treturn read;\n\t\t\tread += k;\n\t\t}\n\t\treturn read;\n\t}", "public ArrayList<Object> readTrendBuffer(){\n try {\n ReadRangeAck ack = DeviceService.localDevice.send(bacnetDevice, new ReadRangeRequest(getObjectIdentifier(),\n PropertyIdentifier.logBuffer, null,\n new ReadRangeRequest.ByPosition(0,1000))).get();\n return new ArrayList<>(ack.getItemData().getValues());\n } catch (BACnetException e) {\n LOG.warn(\"Can't read {} of: {}\",PropertyIdentifier.logBuffer.toString(),getObjectName());\n }\n return null;\n }", "@Test(expected = IOException.class)\n\tpublic void testToolargeUnsigned() throws IOException {\n\t\tInputStream is = is(0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x02);\n\n\t\tlong value = LEB128.read(is, false);\n\t\tAssert.fail(\n\t\t\t\"Should not be able to read a LEB128 that is larger than what can fit in java 64bit long int: \" +\n\t\t\t\tvalue);\n\t}", "public int readInt() throws IOException;", "native byte[] _readSerialPort(int port);", "@Override\r\n\tprotected void readImpl()\r\n\t{\r\n\t\t_listId = readD();\r\n\t\tint count = readD();\r\n\t\tif (count <= 0 || count > Config.MAX_ITEM_IN_PACKET || count * BATCH_LENGTH != getByteBuffer().remaining())\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t_items = new Item[count];\r\n\t\tfor (int i = 0; i < count; i++)\r\n\t\t{\r\n\t\t\tint objectId = readD();\r\n\t\t\tint itemId = readD();\r\n\t\t\tlong cnt = readQ();\r\n\t\t\tif (objectId < 1 || itemId < 1 || cnt < 1)\r\n\t\t\t{\r\n\t\t\t\t_items = null;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t_items[i] = new Item(objectId, itemId, cnt);\r\n\t\t}\r\n\t}", "short getQ( byte[] buffer, short offset );", "public int[] getLittleEndianHoldData(ModbusDevice device, int startRegister, int numberOfRegisters) {\n int[] data = new int[numberOfRegisters];\n device.getModbusConnection().configureLittleEndianInts();\n if (numberOfRegisters > 0) {\n try {\n device.getModbusConnection().readMultipleRegisters(device.getUnitID(), startRegister, data);\n } catch (IOException ex) {\n DataDiodeLogger.getInstance().addLogs(log.SEVERE,\n \"Error getting data from recorder at IP Address: \"\n + device.getIpAddress().toString() + \".\\n\" + ex.toString());\n }\n }\n return data;\n }", "int readInt() throws IOException;", "private byte[] consumePayload() throws IOException {\n byte[] payload = new byte[(int) payloadLength];\n int count = 0;\n while (payloadLength > 0L) {\n payload[count] = (byte) this.read();\n count++;\n }\n return payload;\n }" ]
[ "0.56382686", "0.5296472", "0.51658577", "0.51152915", "0.50977206", "0.50343686", "0.49759027", "0.484123", "0.47927678", "0.4769055", "0.47603607", "0.47522482", "0.47453368", "0.47391582", "0.47319195", "0.4726765", "0.4716371", "0.46762583", "0.4650393", "0.4646993", "0.461599", "0.46124431", "0.46053496", "0.46020105", "0.46010268", "0.4588608", "0.4572525", "0.4572525", "0.4572525", "0.45557553", "0.45287704", "0.45107478", "0.45088735", "0.45045587", "0.45045587", "0.44974867", "0.44943586", "0.448163", "0.4467529", "0.44646966", "0.4457567", "0.44407225", "0.44353768", "0.4434877", "0.4432266", "0.44294846", "0.4418758", "0.4412793", "0.4409704", "0.44041687", "0.43990353", "0.43981364", "0.43979126", "0.4397759", "0.43938044", "0.43910393", "0.43898383", "0.43879387", "0.43870893", "0.43840194", "0.4379272", "0.4378615", "0.43777648", "0.4376178", "0.43667904", "0.43566656", "0.4356539", "0.43501806", "0.43441343", "0.4343577", "0.43352923", "0.43321928", "0.4330774", "0.43256047", "0.43218485", "0.4317947", "0.43145028", "0.43020895", "0.4296081", "0.4285675", "0.42642155", "0.42639446", "0.42633978", "0.42568487", "0.42499882", "0.42472515", "0.42463267", "0.42439878", "0.42419705", "0.42353642", "0.42351204", "0.42312312", "0.42172977", "0.42170197", "0.4216247", "0.42158195", "0.42140332", "0.42134324", "0.42091948", "0.4207295" ]
0.65044826
0
I/O: Conditionally sets the status to a new value. The previous status is preserved unless the new status is more of an error, which means that warnings and errors overwrite successes, and errors overwrite warnings. New errors do not overwrite older errors, and new warnings do not overwrite older warnings.
static void mergeStatus(NiRioStatus statusA, int statusB) { statusA.setStatus(statusB); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }", "public void switchStatus() {\n if (ioStatus.get() == EdgeStatus.INPUT) {\n ioStatus.set(EdgeStatus.OUTPUT);\n } else {\n ioStatus.set(EdgeStatus.INPUT);\n }\n }", "public synchronized void setStatus(Status stat) {\n if (!isMutable()) {\n throw new IllegalStateException(\n \"This TestResult is no longer mutable!\");\n }\n\n if (stat == null) {\n throw new IllegalArgumentException(\n \"TestResult status cannot be set to null!\");\n }\n\n // close out message section\n sections[0].setStatus(null);\n\n execStatus = stat;\n\n if (execStatus == inProgress) {\n execStatus = interrupted;\n }\n\n // verify integrity of status in all sections\n for (Section section : sections) {\n if (section.isMutable()) {\n section.setStatus(incomplete);\n }\n }\n\n props = PropertyArray.put(props, SECTIONS,\n StringArray.join(getSectionTitles()));\n props = PropertyArray.put(props, EXEC_STATUS,\n execStatus.toString());\n\n // end time now required\n // mainly for writing in the TRC for the Last Run Filter\n if (PropertyArray.get(props, END) == null) {\n props = PropertyArray.put(props, END, formatDate(new Date()));\n }\n\n // this object is now immutable\n notifyCompleted();\n }", "public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }", "public void setStatus(Status newStatus){\n status = newStatus;\n }", "public void setStatus(String newStatus)throws Exception{\n\t\t\n\t\tthis.status = newStatus;\n\t\toverWriteLine(\"Status\", newStatus);\n\t}", "public void setStatus(String stat)\n {\n status = stat;\n }", "public void setStatus(int value) {\n this.status = value;\n }", "public void setStatus(int value) {\n this.status = value;\n }", "private static DownloadStatus statusOn(OutputStream target, DownloadStatus status, FileReader reader) {\n \t\tif (reader != null) {\n \t\t\tFileInfo fi = reader.getLastFileInfo();\n \t\t\tif (fi != null) {\n \t\t\t\tstatus.setFileSize(fi.getSize());\n \t\t\t\tstatus.setLastModified(fi.getLastModified());\n \t\t\t\tstatus.setTransferRate(fi.getAverageSpeed());\n \t\t\t}\n \t\t}\n \t\tif (target instanceof IStateful)\n \t\t\t((IStateful) target).setStatus(status);\n \t\treturn status;\n \t}", "public void setStatus(Boolean s){ status = s;}", "public void setStatus(int status);", "public void setStatus(int status);", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "public void setStatus(boolean stat) {\n\t\tstatus = stat;\n\t}", "private void sendStatus() throws IOException {\n\t\tWriteStatus status = new WriteStatus.Builder().build();\n\t\tstatus.writeTo(out);\n\t\tout.flush();\n\t}", "public abstract void updateStatus() throws Throwable;", "void statusUpdate(boolean invalid);", "public void setStatus(String status) { this.status = status; }", "public void setStatus(boolean newStatus);", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}", "void setStatus(int status);", "@Override\n public Status getStatus() throws IOException;", "public void setStatus(int newStatus) {\n status = newStatus;\n }", "public void setStatus(Integer status)\n {\n data().put(_STATUS, status);\n }", "public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}", "@Override\n\tpublic void setStatus(int status);", "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(java.lang.CharSequence value) {\n this.status = value;\n }", "void setStatus(STATUS status);", "public void writeDeviceLost(boolean status)\n\t{\n\t\tString writeStatement = (User + \", \" +\n\t\t\t\t\t\t\t UserPassword + \", \" +\n\t\t\t\t\t\t\t Device_ID + \", \");\n\t\t\n\t\t//System.out.println(\"\\nWRITE Statement: \" + writeStatement);\n\t\twriteStatement += (status) ? (1) : (0);\n\t\t// System.out.println(\"\\nWRITE Statement: \" + writeStatement);\n\n\t\t//Write Area Below Start\n\t\ttry {\n\t\t\t\n\t\t\t//THIS WORKS DONT TOUCH IT. or at least save copies.\n\t\t\tFile fileToBeModified = new File(filename);\n\t \n\t String oldContent = \"\";\n\t \n\t BufferedReader reader = null;\n\t \n\t FileWriter writer = null;\n\t \n reader = new BufferedReader(new FileReader(fileToBeModified));\n \n String line = reader.readLine();\n \n while (line != null) \n {\n oldContent = oldContent + line + System.lineSeparator();\n \n line = reader.readLine();\n }\n \n //Replacing oldString with newString in the oldContent\n \n String newContent = oldContent.replaceAll(user_line, writeStatement);\n \n //Rewriting the input text file with newContent\n \n writer = new FileWriter(fileToBeModified);\n \n writer.write(newContent);\n reader.close();\n \n writer.close();\n \n } catch (IOException e) \n\t\t{\n e.printStackTrace();\n }\n\t}", "public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }", "public void changeStatus(){\n Status = !Status;\n\n }", "public void setStatus(java.lang.Object status) {\n this.status = status;\n }", "private void updateStatus(boolean success) {\n if (success) {\n try {\n callSP(buildSPCall(MODIFY_STATUS_PROC));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_system_log with modify entries. \", exception);\n }\n\n try {\n callSP(buildSPCall(COMPLETE_STATUS_PROC, success));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_system_log with for merge completion. \",\n exception);\n }\n } else {\n try {\n callSP(buildSPCall(COMPLETE_STATUS_PROC, success));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_system_log with for merge completion. \",\n exception);\n }\n }\n }", "public void status(boolean b) {\n status = b;\n }", "public void setStatus(int status) {\n this.status = status;\n }", "public void setStatus(int status) {\n this.status = status;\n }", "public void setStatus(long status) {\r\n this.status = status;\r\n }", "public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }", "StringBuffer writableStatus(StringBuffer buffer, int kind, StringBuffer excluded) {\n\tif ((getStatus() & ERROR_MASK) != 0) {\n\n\t\t// Get children status\n\t\tStringBuffer childrenBuffer = super.writableStatus(new StringBuffer(), kind, excluded);\n\n\t\t// Write status on file if not excluded\n\t\tif (childrenBuffer.length() > 0) {\n\t\t\tbuffer.append(\"\t\");\n\t\t\tbuffer.append(getLabel(null));\n\t\t\tIEclipsePreferences preferences = new InstanceScope().getNode(IPerformancesConstants.PLUGIN_ID);\n\t\t\tString comment = preferences.get(getId(), null);\n\t\t\tif (comment != null) {\n\t\t\t\tif ((kind & IPerformancesConstants.STATUS_VALUES) != 0) {\n\t\t\t\t\tbuffer.append(\"\t\t\t\t\t\t\t\t\t\t\t\");\n\t\t\t\t} else {\n\t\t\t\t\tbuffer.append(\"\t\t\");\n\t\t\t\t}\n\t\t\t\tbuffer.append(comment);\n\t\t\t}\n\t\t\tbuffer.append(Util.LINE_SEPARATOR);\n\t\t\tbuffer.append(childrenBuffer);\n\t\t\tbuffer.append(Util.LINE_SEPARATOR);\n\t\t}\n\t}\n\treturn buffer;\n}", "public void setStatus(int status)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATUS$12, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STATUS$12);\n }\n target.setIntValue(status);\n }\n }", "public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}", "void setStatus(java.lang.String status);", "public void setStatus(int status) {\n STATUS = status;\n }", "public void setStatus(Status result) {\n synchronized (TestResult.this) {\n synchronized (this) {\n checkMutable();\n for (OutputBuffer b : buffers) {\n if (b instanceof WritableOutputBuffer) {\n WritableOutputBuffer wb = (WritableOutputBuffer) b;\n wb.getPrintWriter().close();\n }\n }\n if (env == null) {\n env = emptyStringArray;\n }\n this.result = result;\n if (env == null) {\n env = emptyStringArray;\n }\n notifyCompletedSection(this);\n }\n }\n }", "public void setStatus(int status) {\n\t\tswitch (status) {\r\n\t\tcase 1:\r\n\t\t\tthis.status = FRESHMAN;\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.status = SOPHOMORE;\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.status = JUNIOR;\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.status = SENIOR;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public void setStatus(boolean value) {\n this.status = value;\n }", "public void setStatus(boolean value) {\n this.status = value;\n }", "public void setStatus( short newStatus )\r\n {\r\n setStatus( newStatus, -1, null );\r\n }", "public void setStatusMessage(IStatus status);", "public void setStatus(Status status) {\r\n this.status = status;\r\n }", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(STATUS status) {\n this.status = status;\n }", "public void setStatus(byte[] status) {\r\n this.status = status;\r\n }", "public void setStatus(StatusOfCause status) {\n\t\tthis.statusValue = status.value;\n\t}", "private void internalSetStatus(String status) {\n jStatusLine.setText(\"Status: \" + status);\n }", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(StatusEnum status) {\n this.status = status;\n }", "public void setStatus(int status) {\n\t\tthis.status = (byte) status;\n\t\trefreshStatus();\n\t}", "public void setStatus(EnumVar status) {\n this.status = status;\n }", "public void setStatus(Status status)\n {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "public void setStatus(int status)\r\n\t{\r\n\t\tthis.m_status = status;\r\n\t}", "public void setStatus(@NotNull Status status) {\n this.status = status;\n }", "public void setStatus(BatchStatus value) {\n this.status = value;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }" ]
[ "0.63083285", "0.620439", "0.61035836", "0.60052496", "0.5926086", "0.59147215", "0.5899964", "0.58688104", "0.58688104", "0.5848097", "0.5812922", "0.58079517", "0.58079517", "0.5807255", "0.5807255", "0.5803147", "0.5799505", "0.57960206", "0.57735246", "0.5743949", "0.57366824", "0.5734286", "0.5734286", "0.5734286", "0.5734286", "0.5734286", "0.5734286", "0.5734286", "0.5734286", "0.5734286", "0.5734286", "0.5734286", "0.5734286", "0.5734286", "0.5734286", "0.5734286", "0.5734286", "0.5734286", "0.5734286", "0.5734286", "0.5716846", "0.5710067", "0.5701654", "0.5699657", "0.56927603", "0.5690401", "0.56884027", "0.5685734", "0.5685734", "0.56781936", "0.56676626", "0.5659402", "0.5658828", "0.56486857", "0.56454796", "0.5641105", "0.5635088", "0.5631511", "0.5631511", "0.5629466", "0.5615172", "0.56126016", "0.560815", "0.56038535", "0.5586827", "0.55644256", "0.55641043", "0.5556072", "0.5549995", "0.5549995", "0.5543958", "0.5539607", "0.5537746", "0.5531438", "0.5529481", "0.55285203", "0.5519999", "0.5509513", "0.5507773", "0.5507773", "0.54981637", "0.5482586", "0.54730904", "0.5471908", "0.5463625", "0.5463625", "0.54630095", "0.54630095", "0.54630095", "0.54630095", "0.54630095", "0.54630095", "0.54630095", "0.5462803", "0.5462063", "0.545788", "0.5445371", "0.5445371", "0.5445371", "0.5445371" ]
0.55714476
65
Writes an unsigned 32bit integer value to a given control or indicator.
public static void writeU32(int hClient, int offset, int value, NiRioStatus status) { // System.out.print("write offset = 0x"); // System.out.print(Long.toString(offset, 16) + ""); // System.out.print("value = "); // System.out.println(Long.toString(((long)value) & 0xFFFFFFFFL, 10)); mergeStatus(status, writeU32Fn.invokeInt(new Object[] { hClient, offset, value })); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void writeInt(int value);", "static void write32( int dword, OutputStream out )\n throws IOException\n {\n out.write( dword );\n out.write( dword >> 8 );\n out.write( dword >> 16 );\n out.write( dword >> 24 );\n }", "void writeInt(int v) throws IOException;", "private native void Df1_Write_Integer(String plcAddress,short value) throws Df1LibraryNativeException;", "private void writeInt(DataOutputStream out, int n) throws IOException {\n int result = ((n & 0xFF) << 24) | ((n & 0xFF00) << 8) | ((n & 0xFF0000) >> 8) | ((n & 0xFF000000) >> 24);\n out.writeInt(result);\n }", "public static @NonNull Buffer writeVarInt(@NonNull Buffer buffer, int value) {\n while (true) {\n if ((value & ~0x7F) == 0) {\n buffer.writeByte((byte) value);\n return buffer;\n } else {\n buffer.writeByte((byte) ((value & 0x7F) | 0x80));\n value >>>= 7;\n }\n }\n }", "@Override\n\tpublic void write(int value) {\n\t\tint lowByte = getFirstArg();\n\t\tint highByte = getSecondArg();\n\t\tint address = highByte;\n\t\taddress = address << 8;\n\t\taddress |= lowByte;\n\t\tCpuMem.getInstance().writeMem(address, value);\n\t}", "public static int writeInt(OutputStream target, int value) throws IOException {\n target.write(value >>> 24);\n target.write(value >>> 16);\n target.write(value >>> 8);\n target.write(value);\n return Integer.BYTES;\n }", "public ByteBuf writeIntLE(int value)\r\n/* 871: */ {\r\n/* 872:880 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 873:881 */ return super.writeIntLE(value);\r\n/* 874: */ }", "public void writeInt(int value)\n throws java.io.IOException {\n\n if (isBigEndian) {\n outputStream.writeByte((value >> 24) & 0xFF);\n outputStream.writeByte((value >> 16) & 0xFF);\n outputStream.writeByte((value >> 8) & 0xFF);\n outputStream.writeByte(value & 0xFF);\n } else {\n outputStream.writeByte(value & 0xFF);\n outputStream.writeByte((value >> 8) & 0xFF);\n outputStream.writeByte((value >> 16) & 0xFF);\n outputStream.writeByte((value >> 24) & 0xFF);\n }\n }", "@Test(expected = IOException.class)\n\tpublic void testUint32Overflow() throws IOException {\n\t\tBinaryReader br = br(true, 0xff, 0xff, 0xff, 0xff, 0xff);\n\t\tint value = br.readNextUnsignedIntExact();\n\t\tAssert.fail(\n\t\t\t\"Should not be able to read a value that is larger than what can fit in java 32 bit int: \" +\n\t\t\t\tInteger.toUnsignedString(value));\n\t}", "protected abstract void write( int value ) throws IOException;", "public void writeInt(int i) throws IOException {\n\t\twriteByte((byte) (i >> 24));\n\t\twriteByte((byte) (i >> 16));\n\t\twriteByte((byte) (i >> 8));\n\t\twriteByte((byte) i);\n\t}", "public static void writeInteger(DataOutputStream dos,Integer data) throws IOException{\r\n\t\tif(data != null){\r\n\t\t\tdos.writeBoolean(true);\r\n\t\t\tdos.writeInt(data.intValue());\r\n\t\t}\r\n\t\telse\r\n\t\t\tdos.writeBoolean(false);\r\n\t}", "@Override\n public void write(final int byteVal) throws IOException {\n write(new byte[] { (byte) (byteVal & 0xFF) });\n }", "void writeInt(int i) throws IOException;", "public void writeUnsignedByte(int i) throws IOException {\r\n\t\tthis.writeByte(i);\r\n\t\t// this.writeByte((byte) (i % 128));\r\n\t}", "public static synchronized int readU32(int hClient, int offset,\n\t\t\tNiRioStatus status) {\n\t\t// System.out.print(\"read offset = 0x\");\n\t\t// System.out.println(Long.toString(offset, 16));\n\t\tmergeStatus(\n\t\t\t\tstatus,\n\t\t\t\treadU32Fn.invokeInt(new Object[] { hClient, offset,\n\t\t\t\t\t\tPointer.nativeValue(readValue.getPointer()) }));\n\t\t// System.out.print(\"value = 0x\");\n\t\t// System.out.println(Long.toString(((long)value) & 0xFFFFFFFFL, 16));\n\t\treturn readValue.getValue();\n\t}", "static void encodeInt(DataOutput os, int i) throws IOException {\n if (i >> 28 != 0)\n os.write((i >> 28) & 0x7f);\n if (i >> 21 != 0)\n os.write((i >> 21) & 0x7f);\n if (i >> 14 != 0)\n os.write((i >> 14) & 0x7f);\n if (i >> 7 != 0)\n os.write((i >> 7) & 0x7f);\n os.write((i & 0x7f) | (1 << 7));\n }", "void writeShort(int v) throws IOException;", "private void setInt(byte [] buffer, int offset, int value) {\r\n\t\tbuffer[offset++] = (byte)((value & 0xFF000000) >>> 24);\r\n\t\tbuffer[offset++] = (byte)((value & 0x00FF0000) >>> 16);\r\n\t\tbuffer[offset++] = (byte)((value & 0x0000FF00) >>> 8);\r\n\t\tbuffer[offset] = (byte)((value & 0x000000FF));\r\n\t}", "@Test\n public void testWriteInt() {\n System.out.println(\"writeInt\");\n /** Positive testing. */\n // Positive value\n Long val = 42L;\n String expResult = \"i42e\";\n String result = Bencoder.writeInt(val);\n assertEquals(expResult, result);\n // Zerro value\n val = 0L;\n expResult = \"i0e\";\n result = Bencoder.writeInt(val);\n assertEquals(expResult, result);\n // Negative value\n val = -42L;\n expResult = \"i-42e\";\n result = Bencoder.writeInt(val);\n assertEquals(expResult, result);\n }", "public ByteBuf writeInt(int value)\r\n/* 551: */ {\r\n/* 552:562 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 553:563 */ return super.writeInt(value);\r\n/* 554: */ }", "@Override\r\n\tpublic Buffer appendUnsignedShort(int s) {\n\t\treturn null;\r\n\t}", "public long getUInt() { return bb.getInt() & 0xffff_ffffL; }", "void writeLong(long v) throws IOException;", "void writeLong(long value);", "public void setInteger(String plcAddress,short value) throws Df1LibraryNativeException\n\t{\n\t\tDf1_Write_Integer(plcAddress,value);\n\t}", "@Override\r\n\tpublic Buffer setUnsignedInt(int pos, long i) {\n\t\treturn null;\r\n\t}", "public StreamWriter write(int value) {\r\n\t\tif(order() == ByteOrder.LITTLE_ENDIAN){\r\n\t\t\t_buffer[0] = (byte) (value & 0xFF);\r\n\t\t\t_buffer[1] = (byte) ((value & 0xFF00) >> 8);\r\n\t\t\t_buffer[2] = (byte) ((value & 0xFF0000) >> 16);\r\n\t\t\t_buffer[3] = (byte) ((value & 0xFF000000) >> 24);\r\n\t\t}else{\r\n\t\t\t_buffer[0] = (byte) (value >> 24);\r\n\t\t\t_buffer[1] = (byte) (value >> 16);\r\n\t\t\t_buffer[2] = (byte) (value >> 8);\r\n\t\t\t_buffer[3] = (byte) value;\r\n\t\t}\r\n\t\t_stream.write(_buffer,0,4);\r\n\t\treturn this;\r\n\t}", "public UnsignedInteger32(long a) {\r\n if ( (a < MIN_VALUE) || (a > MAX_VALUE)) {\r\n throw new NumberFormatException();\r\n }\r\n\r\n value = new Long(a);\r\n }", "public void writeLong(long i) throws IOException {\n\t\twriteInt((int) (i >> 32));\n\t\twriteInt((int) i);\n\t}", "public static int writeInt(byte[] target, int offset, int value) {\n target[offset] = (byte) (value >>> 24);\n target[offset + 1] = (byte) (value >>> 16);\n target[offset + 2] = (byte) (value >>> 8);\n target[offset + 3] = (byte) value;\n return Integer.BYTES;\n }", "private static int unserializeUint32(byte[] arr, int offset) {\n\t\tint i;\n\t\tint r = 0;\n\t\n\t\tfor (i = 3; i >= 0; i--)\n\t\t\tr |= (byte2int(arr[offset++])) << (i * 8);\n\t\treturn r;\n\t}", "public static void unsignedIntToBytes(byte[] buf, int offset, int len, int value) {\n for (int i = len - 1; i >= 0; i--) {\n buf[i + offset] = (byte) (value & 0xFF);\n value >>= 8;\n }\n }", "public int getUnsignedValue() {\n return num & 0xFF;\n }", "public final void writeInt(final int data, final boolean endianess) throws IOException {\r\n\r\n if (endianess == FileDicomBaseInner.BIG_ENDIAN) {\r\n byteBuffer4[0] = (byte) (data >>> 24);\r\n byteBuffer4[1] = (byte) (data >>> 16);\r\n byteBuffer4[2] = (byte) (data >>> 8);\r\n byteBuffer4[3] = (byte) (data & 0xff);\r\n } else {\r\n byteBuffer4[0] = (byte) (data & 0xff);\r\n byteBuffer4[1] = (byte) (data >>> 8);\r\n byteBuffer4[2] = (byte) (data >>> 16);\r\n byteBuffer4[3] = (byte) (data >>> 24);\r\n }\r\n\r\n raFile.write(byteBuffer4);\r\n }", "public void write(SecureObject o, int value){\n o.currentValue = value;\n //System.out.println(o.name +\" was written as \" + value);\n }", "com.google.protobuf.UInt32Value getStatus();", "public void writeUnsignedShortLittleEndian(int i) throws IOException {\r\n\t\tshort s = (short) (i & 0x0000ffff);\r\n\t\tthis.writeShort(Short.reverseBytes(s));\r\n\t}", "private static void serializeUint32(ArrayList<Byte> arrlist, int k) {\n\t\tint i;\n\t\tbyte b;\n\t\n\t\tfor (i = 3; i >= 0; i--) {\n\t\t\tb = (byte) ((k & (0x000000ff << (i * 8))) >> (i * 8));\n\t\t\tarrlist.add(Byte.valueOf(b));\n\t\t}\n\t}", "public void setInt(int addr, int val) throws ProgramException {\n setLittleEndian(addr, Integer.BYTES, val);\n }", "public void set_reading(int value) {\n setUIntBEElement(offsetBits_reading(), 16, value);\n }", "void writeByte(int v) throws IOException;", "@Override\n protected void writeInternal(int index, int value) {\n\n }", "@Override\n protected void writeInternal(int index, int value) {\n\n }", "private static void writeDATA(int data) {\n writeByte(true,data);\n }", "public void setUnsignedInt(\n org.apache.axis2.databinding.types.UnsignedInt param) {\n this.localUnsignedInt = param;\n }", "String intWrite();", "UnsignedValue createUnsignedValue();", "@Override\n\tpublic void serializeTo(DataOutputStream output) throws IOException\n\t{\n\t\toutput.writeLong(value);\n\t}", "protected abstract void writeInternal(int index, int value);", "public void write(int b) throws IOException;", "public void write(int pVal) throws IOException {\n mPrintWriter.write(pVal);\n }", "public UnsignedInteger(int i) {\n\t\tvalue = new Integer(i);\n\t}", "public final long getUInt(int index) {\r\n return bb.getInt(index) & 0xffff_ffffL;\r\n }", "void writeShort(short value);", "public abstract int read_ulong();", "public ByteBuf writeShortLE(int value)\r\n/* 859: */ {\r\n/* 860:868 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 861:869 */ return super.writeShortLE(value);\r\n/* 862: */ }", "public ByteBuf setIntLE(int index, int value)\r\n/* 799: */ {\r\n/* 800:808 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 801:809 */ return super.setIntLE(index, value);\r\n/* 802: */ }", "public static int writeLong(OutputStream target, long value) throws IOException {\n target.write((byte) (value >>> 56));\n target.write((byte) (value >>> 48));\n target.write((byte) (value >>> 40));\n target.write((byte) (value >>> 32));\n target.write((byte) (value >>> 24));\n target.write((byte) (value >>> 16));\n target.write((byte) (value >>> 8));\n target.write((byte) value);\n return Long.BYTES;\n }", "com.google.protobuf.UInt32ValueOrBuilder getStatusOrBuilder();", "private void write(int i) {\n\t\tEditor edit = preticketint.edit();\r\n\t\tedit.putInt(\"ticketint\", i);\r\n\t\tedit.commit();\r\n\t}", "static int intToBytes(int int_value, byte[] dest, int index) {\n dest[index + 0] = (byte) (int_value & 0xff);\n dest[index + 1] = (byte) ((int_value >> 8) & 0xff);\n dest[index + 2] = (byte) ((int_value >> 16) & 0xff);\n dest[index + 3] = (byte) ((int_value >> 24) & 0xff);\n return 4;\n }", "private void writeByte(int val) {\n dest[destPos++] = (byte) val;\n }", "void set_int(ThreadContext tc, RakudoObject classHandle, int Value);", "@Override\r\n\tpublic Buffer setUnsignedShort(int pos, int s) {\n\t\treturn null;\r\n\t}", "public static long getUnsignedInt(int x) {\n return x & 0x00000000ffffffffL;\n }", "public void setXbtId(ULong value) {\n set(2, value);\n }", "public int read_int32() throws IOException {\n byte bytes[] = read_bytes(4);\n\n return bytesToInt32(bytes, Endianness.BIG_ENNDIAN);\n }", "public void write(int ints) {\n try {\n mOutStream.writeInt(ints);\n Log.i(\"TRANSFER\", \"wrote \" + ints);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void write(DataOutput dout) throws IOException {\n\t\tdout.writeLong(this.time);\n\t\tdout.writeInt(this.intVal);\n\t}", "public static int toInt32(byte[] value) {\r\n\t\treturn toInt32(value, 0);\r\n\t}", "private void write(SidRegisterAddress reg) {\n\t\to.reg(reg).write(UnsignedByte.x01);\n\t}", "public final int getInt32(int i) {\n if (isAvailable(i, 4)) {\n return this.data.getInt(i);\n }\n return -1;\n }", "public void setUNUSED_ID(java.lang.Integer value);", "public static boolean isUInt32(double v) {\n return !Double.isNaN(v) && !Double.isInfinite(v) && v >= 0 && v <= Integer.MAX_VALUE * 2.0 + 1 && (v % 1) == 0;\n }", "@Override\r\n public void write(int value) throws IOException {\r\n super.write(value);\r\n if (!(inWrite1 || inWrite3)) {\r\n /*if (!Helper.NEW_IO_HANDLING && null != IoNotifier.fileNotifier) {\r\n IoNotifier.fileNotifier.notifyWrite(recId, 1);\r\n } else {*/\r\n if (null != RecorderFrontend.instance) {\r\n RecorderFrontend.instance.writeIo(recId, \r\n null, 1, StreamType.FILE);\r\n }\r\n //}\r\n }\r\n }", "public static int toUnsignedInt(byte x)\n {\n return (int)(x) & 0xff;\n }", "@Override\n\tpublic long as32Bit() throws AssembleError {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic synchronized void write(int b)\r\n\t{\r\n\t}", "public static final int readUInt(InputStream in) throws IOException {\n byte[] buff = new byte[4];\n StreamTool.readFully(in, buff);\n return getUInt(buff, 0);\n }", "private static void m17788a(OutputStream outputStream, int i) {\n outputStream.write((i >> 0) & 255);\n outputStream.write((i >> 8) & 255);\n outputStream.write((i >> 16) & 255);\n outputStream.write((i >> 24) & 255);\n }", "public void alt_SET(int src)\n { set_bytes((int)(src) & -1L, 4, data, 24); }", "public void set_counter(long value) {\n setUIntBEElement(offsetBits_counter(), 32, value);\n }", "public static int encodeAsInt(short high, short low) {\n\n // Store the first short value in the highest 16 bits of the int\n int key = high | 0x00000000;\n key <<= 16;\n\n // Store the second short value in the lowest 16 bits of the int\n int lowInt = low & 0x0000FFFF;\n key |= lowInt;\n\n return key;\n\n }", "public void writeInt(int i) throws IOException {\n\t\tmBuffer[mBufferLength+3] = (byte) i;\n\t\tmBuffer[mBufferLength+2] = (byte) (i>>>8);\n\t\tmBuffer[mBufferLength+1] = (byte) (i>>>16);\n\t\tmBuffer[mBufferLength] = (byte) (i>>>24);\n\n\n\t\t\n\n\n\t\tmBufferLength += 4;\n\n\t\t// TODO: on the first filling of the buffer, flush when bufferLength+offset is at the end of a segment\n\t\tif (firstFill && ((mBufferLength >= firstFillThreshold))) {\n\t\t\tthis.flush();\n\t\t\tfirstFill = false;\n\t\t}\n\n\t\tif (mBufferLength == BUFFER_SIZE){\n\t\t\tthis.flush();\n\t\t}\n\t}", "void setInt(boolean reverse, IntsRef ref, int value);", "public void writeInt(String actionName, Integer value) throws IllegalStateException {\n\t\tif (!canPerformAction(actionName, Action.ACTION_WRITE, Value.VALUE_INTEGER)) {\n\t\t\tthrow new IllegalStateException(\"\\twriteInt in \" + this.name + \" is not supported\");\n\t\t}\n\t\tNetworkClient.getInstance().writeInt(this.name, actionName, value);\n\t}", "public void x_SET(short src)\n { set_bytes((short)(src) & -1L, 2, data, 3); }", "public static long uint32_tToLong(byte b0, byte b1, byte b2, byte b3) {\n return (unsignedByteToInt(b0) +\n (unsignedByteToInt(b1) << 8) +\n (unsignedByteToInt(b2) << 16) +\n (unsignedByteToInt(b3) << 24)) &\n 0xFFFFFFFFL;\n }", "@Override\n protected void serialize(OutputStream os) throws IOException {\n writeInt(os,_gateCounter);\n }", "public void z_SET(short src)\n { set_bytes((short)(src) & -1L, 2, data, 7); }", "@Override\n\tpublic String toString() {\n\t\treturn Integer.toUnsignedString(value);\n\t}", "public void grabarInt(int x) throws IOException\r\n {\r\n maestro.writeInt(x); \r\n }", "public synchronized void write(final int b) throws IOException {\n\t\tthis.singleIntArray[0] = (byte) (0xFF & b);\n\t\twrite(singleIntArray, 0, 1);\n\t}", "public static void write4bytes(int value, OutputStream outputStream) throws IOException {\n outputStream.write(value >>> 3 * 8);\n outputStream.write(value >>> 2 * 8 & 255);\n outputStream.write(value >>> 1 * 8 & 255);\n outputStream.write(value & 255);\n }", "@Test\n public void testReadWriteInt() {\n System.out.println(\"readInt\");\n ByteArray instance = new ByteArray();\n \n instance.writeInt(12, 0);\n instance.writeInt(1234, 4);\n instance.writeInt(13, instance.compacity());\n \n assertEquals(12, instance.readInt(0));\n assertEquals(1234, instance.readInt(4));\n assertEquals(13, instance.readInt(instance.compacity() - 4));\n \n instance.writeInt(14, 4);\n assertEquals(14, instance.readInt(4));\n }", "public void setInteger(int value);", "@Override\n public void visitIntLiteral(IntLiteral node){\n mPrintWriter.println(\"#Integer\");\n mPrintWriter.println(\"ldi r24,lo8(\"+node.getIntValue()+\")\");\n mPrintWriter.println(\"ldi r25,hi8(\"+node.getIntValue()+\")\");\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");\n }" ]
[ "0.6376335", "0.62705606", "0.61910176", "0.60493845", "0.5880349", "0.58609176", "0.583557", "0.57671154", "0.57572275", "0.5737535", "0.57207024", "0.56384546", "0.56034195", "0.5564206", "0.55485463", "0.55244267", "0.5519404", "0.5515485", "0.54435045", "0.54198194", "0.5417256", "0.53734577", "0.5346803", "0.53249073", "0.5320568", "0.52945155", "0.52875394", "0.5285035", "0.52835953", "0.52769977", "0.526868", "0.5255263", "0.5245568", "0.52206486", "0.52174896", "0.52011186", "0.5175801", "0.5164013", "0.5161873", "0.5157427", "0.5150816", "0.510477", "0.5073995", "0.50738484", "0.5030963", "0.5030963", "0.5010816", "0.49978715", "0.49835408", "0.4979989", "0.49790317", "0.4964368", "0.49426937", "0.49344182", "0.49306217", "0.4930125", "0.49259076", "0.4925898", "0.49181658", "0.4916345", "0.4912563", "0.49117234", "0.49041605", "0.4898585", "0.48656753", "0.48282602", "0.48178592", "0.48085722", "0.47912207", "0.4778658", "0.47729075", "0.47720078", "0.4757508", "0.47544345", "0.47477892", "0.47462907", "0.47386268", "0.47305137", "0.47302827", "0.4718316", "0.4718", "0.4715558", "0.4702086", "0.46967834", "0.46906605", "0.4688881", "0.46885616", "0.46766078", "0.46750128", "0.46680665", "0.46645948", "0.46640643", "0.46560654", "0.4652507", "0.46523377", "0.4644585", "0.4639036", "0.46385494", "0.4636281", "0.46282798" ]
0.74081796
0
Reads an unsigned 32bit integer value from a given offset
public static synchronized int readU32(int hClient, int offset, NiRioStatus status) { // System.out.print("read offset = 0x"); // System.out.println(Long.toString(offset, 16)); mergeStatus( status, readU32Fn.invokeInt(new Object[] { hClient, offset, Pointer.nativeValue(readValue.getPointer()) })); // System.out.print("value = 0x"); // System.out.println(Long.toString(((long)value) & 0xFFFFFFFFL, 16)); return readValue.getValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int unserializeUint32(byte[] arr, int offset) {\n\t\tint i;\n\t\tint r = 0;\n\t\n\t\tfor (i = 3; i >= 0; i--)\n\t\t\tr |= (byte2int(arr[offset++])) << (i * 8);\n\t\treturn r;\n\t}", "public abstract int read_ulong();", "long fetch32(BytesStore bytes, @NonNegative long off) throws IllegalStateException, BufferUnderflowException {\n return bytes.readUnsignedInt(off);\n }", "public int read_int32() throws IOException {\n byte bytes[] = read_bytes(4);\n\n return bytesToInt32(bytes, Endianness.BIG_ENNDIAN);\n }", "public static int offsetBits_reading() {\n return 32;\n }", "public abstract long read_ulonglong();", "public static int offset_reading() {\n return (32 / 8);\n }", "@Test(expected = IOException.class)\n\tpublic void testUint32Overflow() throws IOException {\n\t\tBinaryReader br = br(true, 0xff, 0xff, 0xff, 0xff, 0xff);\n\t\tint value = br.readNextUnsignedIntExact();\n\t\tAssert.fail(\n\t\t\t\"Should not be able to read a value that is larger than what can fit in java 32 bit int: \" +\n\t\t\t\tInteger.toUnsignedString(value));\n\t}", "protected final long getUInt(int offset)\n {\n final byte[] tableData = tables.getTablesData();\n return Bytes.getUInt(tableData, cursor+offset);\n }", "public static final int readUInt(InputStream in) throws IOException {\n byte[] buff = new byte[4];\n StreamTool.readFully(in, buff);\n return getUInt(buff, 0);\n }", "long readS32BE()\n throws IOException, EOFException;", "private int getInt(byte [] buffer, int offset) {\r\n\t\tint result = buffer[offset++] << 24;\r\n\t\tresult |= (buffer[offset++] << 16) & 0x00FF0000;\r\n\t\tresult |= (buffer[offset++] << 8) & 0x0000FF00;\r\n\t\tresult |= buffer[offset] & 0x000000FF;\r\n\r\n\t\treturn result;\r\n\t}", "public int get_reading() {\n return (int)getUIntBEElement(offsetBits_reading(), 16);\n }", "long readS32LE()\n throws IOException, EOFException;", "public abstract void read_ulong_array(int[] value, int offset, int\nlength);", "@Override\n public final int readVarint32() throws IOException {\n return (int) readVarint64();\n }", "public final long getUInt(int index) {\r\n return bb.getInt(index) & 0xffff_ffffL;\r\n }", "public long getUInt() { return bb.getInt() & 0xffff_ffffL; }", "static int readRawVarint32(InputStream input) throws IOException {\r\n int result = 0;\r\n int offset = 0;\r\n for (; offset < 32; offset += 7) {\r\n int b = input.read();\r\n if (b == -1) {\r\n throw new EOFException(\"stream is truncated\");\r\n }\r\n result |= (b & 0x7f) << offset;\r\n if ((b & 0x80) == 0) {\r\n return result;\r\n }\r\n }\r\n // Keep reading up to 64 bits.\r\n for (; offset < 64; offset += 7) {\r\n int b = input.read();\r\n if (b == -1) {\r\n throw new EOFException(\"stream is truncated\");\r\n }\r\n if ((b & 0x80) == 0) {\r\n return result;\r\n }\r\n }\r\n throw new IOException(\"malformed varInt\");\r\n }", "public final long getUInt(final boolean endianess) throws IOException {\r\n\r\n long val = 0;\r\n\r\n if (endianess == FileDicomBaseInner.BIG_ENDIAN) {\r\n val = ( (tagBuffer[bPtr] & 0xffL) << 24) | ( (tagBuffer[bPtr + 1] & 0xffL) << 16)\r\n | ( (tagBuffer[bPtr + 2] & 0xffL) << 8) | (tagBuffer[bPtr + 3] & 0xffL); // Big Endian\r\n } else {\r\n val = ( (tagBuffer[bPtr + 3] & 0xffL) << 24) | ( (tagBuffer[bPtr + 2] & 0xffL) << 16)\r\n | ( (tagBuffer[bPtr + 1] & 0xffL) << 8) | (tagBuffer[bPtr] & 0xffL);\r\n }\r\n\r\n bPtr += 4;\r\n\r\n return val;\r\n }", "public int readInt() {\n return ((int) readLong());\n }", "@Test\n void testReadIntPacked() throws IOException {\n byte[] input = new byte[]{(byte) 0x35, (byte) 0x54};\n r = new BitReader(input);\n assertEquals(5402, r.readIntPacked());\n }", "static final long get32(byte b[], int off) {\n return get16(b, off) | ((long) get16(b, off + 2) << 16);\n }", "public long readUnsignedIntLE()\r\n/* 847: */ {\r\n/* 848:856 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 849:857 */ return super.readUnsignedIntLE();\r\n/* 850: */ }", "private Integer extractByteFromLong(final Long longvalue, final Byte offset) {\n\t\tfinal Long mask = 0xFFL << ((long) offset * 0x8L);\n\t\tfinal Long tmpval = longvalue & mask;\n\t\tfinal Long ret = (tmpval >>> ((long) offset * 0x8L));\n\t\treturn ret.intValue();\n\t}", "public final int getInt32(int i) {\n if (isAvailable(i, 4)) {\n return this.data.getInt(i);\n }\n return -1;\n }", "private native short Df1_Read_Integer(String plcAddress) throws Df1LibraryNativeException;", "public int readInt() throws IOException;", "private static int readInt(InputStream is) throws IOException {\n int a = is.read();\n int b = is.read();\n int c = is.read();\n int d = is.read();\n return a | b << 8 | c << 16 | d << 24;\n }", "long readS32BE(String name)\n throws IOException, EOFException;", "abstract int readInt(int start);", "int readInt() throws IOException;", "long readLong();", "@Override\n public int peekUnsignedByte(int offset) throws IOException\n {\n if (offset < 0)\n {\n throw new IOException(\"offset is negative\");\n }\n if (offset == 0)\n {\n return randomAccessRead.peek();\n }\n long currentPosition = randomAccessRead.getPosition();\n if (currentPosition + offset >= randomAccessRead.length())\n {\n throw new IOException(\"Offset position is out of range \" + (currentPosition + offset)\n + \" >= \" + randomAccessRead.length());\n }\n randomAccessRead.seek(currentPosition + offset);\n int peekValue = randomAccessRead.read();\n randomAccessRead.seek(currentPosition);\n return peekValue;\n }", "public static final long readULong(IRandomAccess ra) throws IOException {\n byte[] buff = new byte[8];\n ra.readFully(buff);\n return getULong(buff, 0);\n }", "long readS32LE(String name)\n throws IOException, EOFException;", "int getRawOffset();", "public int getInt(int addr) throws ProgramException {\n return (int) getLittleEndian(addr, Integer.BYTES);\n }", "@Override\n public long readSInt64() throws IOException {\n long value = decoder.readVarint64();\n return (value >>> 1) ^ -(value & 1);\n }", "@Override\n\tpublic int decode(byte[] buffer, int offset) throws IOException {\n\t\tlong value = NeuronReader.readRawInt64(buffer, offset);\n\t\tunionCache.setLong(fieldIndex, value);\n\n\t\treturn NeuronReader.LONG_SIZE;\n\t}", "public static long uint32_tToLong(byte b0, byte b1, byte b2, byte b3) {\n return (unsignedByteToInt(b0) +\n (unsignedByteToInt(b1) << 8) +\n (unsignedByteToInt(b2) << 16) +\n (unsignedByteToInt(b3) << 24)) &\n 0xFFFFFFFFL;\n }", "public long readUnsignedInt()\r\n/* 429: */ {\r\n/* 430:442 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 431:443 */ return super.readUnsignedInt();\r\n/* 432: */ }", "public static final long readULong(InputStream in) throws IOException {\n byte[] buff = new byte[8];\n StreamTool.readFully(in, buff);\n return getULong(buff, 0);\n }", "public int readRawVarint32() throws java.io.IOException {\n /*\n r9 = this;\n int r0 = r9.bufferPos\n int r1 = r9.bufferSize\n if (r1 != r0) goto L_0x0008\n goto L_0x007c\n L_0x0008:\n byte[] r2 = r9.buffer\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0013\n r9.bufferPos = r3\n return r0\n L_0x0013:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0019\n goto L_0x007c\n L_0x0019:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n long r3 = (long) r0\n r5 = 0\n int r7 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r7 >= 0) goto L_0x002d\n r5 = -128(0xffffffffffffff80, double:NaN)\n L_0x0029:\n long r2 = r3 ^ r5\n int r0 = (int) r2\n goto L_0x0082\n L_0x002d:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n long r7 = (long) r0\n int r1 = (r7 > r5 ? 1 : (r7 == r5 ? 0 : -1))\n if (r1 < 0) goto L_0x003f\n r0 = 16256(0x3f80, double:8.0315E-320)\n long r0 = r0 ^ r7\n int r0 = (int) r0\n L_0x003d:\n r1 = r3\n goto L_0x0082\n L_0x003f:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n long r3 = (long) r0\n int r7 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r7 >= 0) goto L_0x004f\n r5 = -2080896(0xffffffffffe03f80, double:NaN)\n goto L_0x0029\n L_0x004f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n long r4 = (long) r0\n r6 = 266354560(0xfe03f80, double:1.315966377E-315)\n long r4 = r4 ^ r6\n int r0 = (int) r4\n if (r1 >= 0) goto L_0x003d\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0082\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x003d\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0082\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x003d\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0082\n L_0x007c:\n long r0 = r9.readRawVarint64SlowPath()\n int r1 = (int) r0\n return r1\n L_0x0082:\n r9.bufferPos = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.reflect.jvm.internal.impl.protobuf.CodedInputStream.readRawVarint32():int\");\n }", "public static int readUleb128Int(SimpleSliceInputStream input)\n {\n byte[] inputBytes = input.getByteArray();\n int offset = input.getByteArrayOffset();\n // Manual loop unrolling shows improvements in BenchmarkReadUleb128Int\n int inputByte = inputBytes[offset];\n int value = inputByte & 0x7F;\n if ((inputByte & 0x80) == 0) {\n input.skip(1);\n return value;\n }\n inputByte = inputBytes[offset + 1];\n value |= (inputByte & 0x7F) << 7;\n if ((inputByte & 0x80) == 0) {\n input.skip(2);\n return value;\n }\n inputByte = inputBytes[offset + 2];\n value |= (inputByte & 0x7F) << 14;\n if ((inputByte & 0x80) == 0) {\n input.skip(3);\n return value;\n }\n inputByte = inputBytes[offset + 3];\n value |= (inputByte & 0x7F) << 21;\n if ((inputByte & 0x80) == 0) {\n input.skip(4);\n return value;\n }\n inputByte = inputBytes[offset + 4];\n verify((inputByte & 0x80) == 0, \"ULEB128 variable-width integer should not be longer than 5 bytes\");\n input.skip(5);\n return value | inputByte << 28;\n }", "public abstract int read_long();", "public static void writeU32(int hClient, int offset, int value,\n\t\t\tNiRioStatus status) {\n//\t\t System.out.print(\"write offset = 0x\");\n//\t\t System.out.print(Long.toString(offset, 16) + \"\");\n//\t\t System.out.print(\"value = \");\n//\t\t System.out.println(Long.toString(((long)value) & 0xFFFFFFFFL, 10));\n\t\tmergeStatus(status,\n\t\t\t\twriteU32Fn.invokeInt(new Object[] { hClient, offset, value }));\n\t}", "public static int int32_tToInt(byte b0, byte b1, byte b2, byte b3) {\n return unsignedByteToInt(b0) +\n (unsignedByteToInt(b1) << 8) +\n (unsignedByteToInt(b2) << 16) +\n (unsignedByteToInt(b3) << 24);\n }", "public int readInt();", "long readLong() throws IOException;", "public int readUnsignedByte() throws IOException {\n\t\treturn read() | 0x00ff;\n\t}", "public long retrieve(long record) {\n return (record & MASK) >>> OFFSET;\n }", "public void set_reading(int value) {\n setUIntBEElement(offsetBits_reading(), 16, value);\n }", "public int readValue() { \n\t\treturn (port.readRawValue() - offset); \n\t}", "private void setInt(byte [] buffer, int offset, int value) {\r\n\t\tbuffer[offset++] = (byte)((value & 0xFF000000) >>> 24);\r\n\t\tbuffer[offset++] = (byte)((value & 0x00FF0000) >>> 16);\r\n\t\tbuffer[offset++] = (byte)((value & 0x0000FF00) >>> 8);\r\n\t\tbuffer[offset] = (byte)((value & 0x000000FF));\r\n\t}", "private int read_int(RandomAccessFile file) throws IOException {\n int number = 0;\n for (int i = 0; i < 4; ++i) {\n number += (file.readByte() & 0xFF) << (8 * i);\n }\n return number;\n }", "protected static int getInt(byte[] data, int offset){\n return makeInt(data, offset);\n }", "public int read() throws IOException {\n/* 173 */ long next = this.pointer + 1L;\n/* 174 */ long pos = readUntil(next);\n/* 175 */ if (pos >= next) {\n/* 176 */ byte[] buf = this.data.get((int)(this.pointer >> 9L));\n/* */ \n/* 178 */ return buf[(int)(this.pointer++ & 0x1FFL)] & 0xFF;\n/* */ } \n/* 180 */ return -1;\n/* */ }", "int readInt();", "public static int readNumberFromBytes(byte[] data, int readSize, int startIndex) {\n int value = 0;\n for (int i = 0; i < readSize; i++)\n value += ((long) data[startIndex + i] & 0xFFL) << (Constants.BITS_PER_BYTE * i);\n return value;\n }", "public static long read(byte[] buffer, long offset, long length) {\n offset =0;\n long result = 0 ;\n int shift_count = 0 ;\n\n while ( length -- > 0 ) {\n int temp = buffer[(int) offset++] & 0xFF;\n result |= temp << shift_count ;\n shift_count += 8;\n }\n return(result);\n }", "public int readAsInt(int nrBits) {\n return readAsInt(bitPos, nrBits, ByteOrder.BigEndian);\n }", "protected final int getInt(int offset)\n {\n final byte[] tableData = tables.getTablesData();\n return Bytes.getInt(tableData, cursor+offset);\n }", "public abstract long read_longlong();", "public static int toInt32(byte[] value, int startIndex) {\r\n\t\treturn ByteBuffer.wrap(value, startIndex, 4).order(ByteOrder.LITTLE_ENDIAN).getInt();\r\n\t}", "private int bytesToInt32(byte bytes[], Endianness endianness) {\n int number;\n\n if (Endianness.BIG_ENNDIAN == endianness) {\n number = ((bytes[0] & 0xFF) << 24) | ((bytes[1] & 0xFF) << 16) |\n ((bytes[2] & 0xFF) << 8) | (bytes[3] & 0xFF);\n } else {\n number = (bytes[0] & 0xFF) | ((bytes[1] & 0xFF) << 8) |\n ((bytes[2] & 0xFF) << 16) | ((bytes[3] & 0xFF) << 24);\n }\n return number;\n }", "private long read_long(MappedByteBuffer buff) throws IOException {\n long number = 0;\n for (int i = 0; i < 8; ++i) {\n number += ((long) (buff.get() & 0xFF)) << (8 * i);\n }\n return number;\n }", "public static int readInt(byte[] source, int position) {\n return makeInt(source[position], source[position + 1], source[position + 2], source[position + 3]);\n }", "public String getSrcLong(long offset) throws IOException {\n\t\tdataBase.seek(offset);\n\t\tString[] array = dataBase.readLine().split(\"\\\\|\");\n\t\treturn array[11];\n\t}", "public String getLong(long offset) throws IOException {\n\t\tdataBase.seek(offset);\n\t\tString[] array = dataBase.readLine().split(\"\\\\|\");\n\t\treturn array[8];\n\t}", "public long readLong() throws IOException;", "public int readInt() throws IOException {\n return in.readInt();\n }", "public static int readLittleEndianInt(byte[] bytes) {\n int signum = 1;\n if ((bytes[0] & 0x80) != 0) {\n signum = -1;\n bytes[0] &= 0x7F;\n }\n return new BigInteger(signum, bytes).intValue();\n }", "private static int readInt(@Nullable byte[] data) {\n if (data == null || data.length == 0) {\n return 0;\n }\n int value = 0;\n for (byte b : data) {\n value <<= 8;\n value += (0xff & b);\n }\n return value;\n }", "private int getNumberBufAsInt(ByteOrder byteOrder, int nrReadBytes,\n int firstBytePos) {\n\n int result = 0;\n int bytePortion = 0;\n for (int i = 0; i < nrReadBytes; i++) {\n bytePortion = 0xFF & (byteBuffer.get(firstBytePos++));\n\n if (byteOrder == ByteOrder.LittleEndian)\n // reshift bytes\n result = result | bytePortion << (i << 3);\n else\n result = bytePortion << ((nrReadBytes - i - 1) << 3) | result;\n }\n\n return result;\n }", "public static int decodeLowBits(long l) {\n\n return (int) l;\n\n }", "private int getEntryFieldInt(int item, OFFSET offset) {\n switch (offset) {\n case KEY_LENGTH:\n // return two low bytes of the key length index int\n return (entries[item + offset.value] & KEY_LENGTH_MASK);\n case KEY_BLOCK:\n // offset must be OFFSET_KEY_BLOCK, return 2 high bytes of the int inside key length\n // right-shift force, fill empty with zeroes\n return (entries[item + offset.value] >>> KEY_BLOCK_SHIFT);\n case VALUE_LENGTH:\n return (entries[item + offset.value] & VALUE_LENGTH_MASK);\n case VALUE_BLOCK:\n return (entries[item + offset.value] >>> VALUE_BLOCK_SHIFT);\n default:\n return entries[item + offset.value];\n }\n }", "public static long getUnsignedInt(int x) {\n return x & 0x00000000ffffffffL;\n }", "public static int byteArrayToUnsignedInt(byte @NotNull [] data, int offset) {\n return byteArrayToUnsignedInt(data, offset, Endian.BIG, INT_WIDTH);\n }", "protected final int getUShort(int offset)\n {\n final byte[] tableData = tables.getTablesData();\n return Bytes.getUShort(tableData, cursor+offset);\n }", "public int read(int address){\n switch (address){\r\n /*\r\n case 0: {\r\n return registers_w[CONTROL_REGISTER_1];\r\n }\r\n\r\n case 3: {\r\n return spriteMemoryCounter;\r\n }\r\n case 5:{\r\n return registers_w[SCROLL_OFFSET];\r\n }\r\n case 6:{\r\n return horizontalTileCounter | (verticalTileCounter << 5) | (horizontalNameCounter << 10) | (verticalNameCounter << 11);\r\n }\r\n */\r\n\t\t\tcase 0: {\r\n\t\t\t\t\t\treturn scanLine;\r\n\t\t\t\t\t\t// hack\r\n\t\t\t}\r\n case 1: {\r\n return registers_w[CONTROL_REGISTER_2];\r\n }\r\n case STATUS_REGISTER:{ // 2\r\n int returnVal = registers_r[STATUS_REGISTER];\r\n registers_r[STATUS_REGISTER] = getBitsUnset(registers_r[STATUS_REGISTER], STATUS_VBLANK); //| STATUS_SPRITE0_HIT);\r\n isFirstWriteToScroll = true;\r\n lastPPUAddressWasHigh = false;\r\n //logger.info(\"Status is: \" + Integer.toHexString(returnVal));\r\n return returnVal;\r\n }\r\n case SPRITE_MEMORY_DATA:{ // 4\r\n return readFromSpriteMemory();\r\n }\r\n case PPU_MEMORY_DATA:{ // 7\r\n int returnVal = 0xFF & registers_r[PPU_MEMORY_DATA]; // buffered read\r\n \r\n //int returnVal = 0xFF & memory.read(ppuMemoryAddress);\r\n\t\t\tint readAddress = horizontalTileCounter \r\n\t\t\t\t\t\t\t\t| (verticalTileCounter << 5)\r\n\t\t\t\t\t\t\t\t| (horizontalNameCounter << 10)\r\n\t\t\t\t\t\t\t\t| (verticalNameCounter << 11)\r\n\t\t\t\t\t\t\t\t| ((fineVerticalCounter & 0x3) << 12);\r\n\r\n\t\t\tif (readAddress == 0x3F10 || readAddress == 0x3F14 || readAddress == 0x3F18 || readAddress == 0x3F1C) {\r\n\t\t\t\treadAddress = readAddress & 0x3F0F;\r\n\t\t\t}\r\n registers_r[PPU_MEMORY_DATA] = 0xFF & memory.read(readAddress);\r\n // registers_r[PPU_MEMORY_DATA] = 0xFF & memory.read(ppuMemoryAddress);\r\n incrementCounters();\r\n /*\r\n if ((registers_w[CONTROL_REGISTER_1] & CR1_VERTICAL_WRITE) == 0){\r\n ppuMemoryAddress++;\r\n }\r\n else {\r\n ppuMemoryAddress = (ppuMemoryAddress + 32);\r\n }\r\n */\r\n return returnVal;\r\n }\r\n\r\n default: throw new RuntimeException(\"Invalid read attempt: \" + Integer.toHexString(address));\r\n }\r\n }", "protected final long parseUnsignedInt(ByteArrayInputStream stream) throws EOFException\n {\n long value = 0;\n for (int i = 0; i < 4; ++i)\n {\n value = (value << 8) | EASMessage.parseUnsignedByte(stream);\n }\n return value;\n }", "public UnsignedInteger32(long a) {\r\n if ( (a < MIN_VALUE) || (a > MAX_VALUE)) {\r\n throw new NumberFormatException();\r\n }\r\n\r\n value = new Long(a);\r\n }", "public static int readInt() {\n return Integer.parseInt(readString());\n }", "public int readRaw()\r\n {\r\n \tbyte[] buf = new byte[1];\r\n \treadRaw(buf, 0, 1);\r\n \treturn buf[0] & 0xFF;\r\n }", "public int readInt(int length) throws DomainLayerException{\n if(length == 0) return 0;\n boolean positive = readOne();\n int value = positive ? 0x1:0x0;\n int mask = (0x1 << length) - 1;\n --length;\n while (length > 0) {\n value <<= 1;\n if (readOne()) value |= 0x1;\n --length;\n }\n if (positive) return value;\n return value-mask;\n }", "public abstract int getRawOffset();", "public abstract int getRawOffset();", "public long get(int i) {\n return read(i);\n }", "@Override\n\tpublic int read() {\n\t\tint lowByte = getFirstArg();\n\t\tint highByte = getSecondArg();\n\t\tint address = highByte;\n\t\taddress = address << 8;\n\t\taddress |= lowByte;\n\t\treturn CpuMem.getInstance().readMem(address);\n\t}", "private static long getLongLittleEndian(byte[] buf, int offset) {\n return ((long) buf[offset + 7] << 56) | ((buf[offset + 6] & 0xffL) << 48)\n | ((buf[offset + 5] & 0xffL) << 40) | ((buf[offset + 4] & 0xffL) << 32)\n | ((buf[offset + 3] & 0xffL) << 24) | ((buf[offset + 2] & 0xffL) << 16)\n | ((buf[offset + 1] & 0xffL) << 8) | ((buf[offset] & 0xffL));\n }", "public int read(long addr) {\n\t\treturn findBlock(addr);\n\t}", "public static final int readInt(InputStream in) throws IOException {\n byte[] buff = new byte[4];\n StreamTool.readFully(in, buff);\n return getInt(buff, 0);\n }", "String intRead();", "public static @Nullable Integer readVarIntOrNull(@NonNull Buffer buffer) {\n var i = 0;\n var maxRead = Math.min(5, buffer.readableBytes());\n for (var j = 0; j < maxRead; j++) {\n var nextByte = buffer.readByte();\n i |= (nextByte & 0x7F) << j * 7;\n if ((nextByte & 0x80) != 128) {\n return i;\n }\n }\n return null;\n }", "private static int getRightShiftedNumberBufAsInt(int numberBuf,\n long bitPos, int nrBits, ByteOrder byteOrder) throws BitBufferException {\n\n // number of bits integer buffer needs to be shifted to the right in\n // order to reach the last bit in last byte\n long shiftBits;\n if (byteOrder == ByteOrder.BigEndian)\n shiftBits = 7 - ((nrBits + bitPos + 7) % 8);\n else\n shiftBits = bitPos % 8;\n\n return numberBuf >> shiftBits;\n }", "public int getUnsignedValue() {\n return num & 0xFF;\n }", "public static long readlong()\n\t{\n\t\treturn sc.nextLong();\n\t}", "long readS64BE()\n throws IOException, EOFException;", "public int readIntLE()\r\n/* 841: */ {\r\n/* 842:850 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 843:851 */ return super.readIntLE();\r\n/* 844: */ }" ]
[ "0.7491091", "0.7388161", "0.6746685", "0.670283", "0.6634879", "0.66252476", "0.6616002", "0.6611586", "0.65905553", "0.6556598", "0.65157884", "0.6466919", "0.63987035", "0.6387142", "0.63155425", "0.6246467", "0.62263155", "0.6214114", "0.6178216", "0.61653817", "0.6114729", "0.6092895", "0.6069843", "0.6051813", "0.5964147", "0.5942513", "0.5936574", "0.5920055", "0.59174263", "0.59106576", "0.5902568", "0.5890911", "0.58896905", "0.58726037", "0.5865549", "0.58647233", "0.585764", "0.58568555", "0.5836846", "0.5826006", "0.5812005", "0.5775954", "0.5770413", "0.5761644", "0.57522774", "0.574943", "0.5745595", "0.57303435", "0.57115453", "0.57055664", "0.5704706", "0.57032615", "0.5695485", "0.56762445", "0.5673267", "0.56731725", "0.5669863", "0.5658129", "0.5645663", "0.5639574", "0.5639109", "0.5633303", "0.5631429", "0.56126773", "0.56107306", "0.5576637", "0.5560167", "0.55435735", "0.55347824", "0.552263", "0.5498561", "0.54906857", "0.54840344", "0.5474829", "0.5470231", "0.54603964", "0.54569954", "0.545204", "0.5446786", "0.5444757", "0.54411644", "0.54298514", "0.5428603", "0.5426804", "0.54209954", "0.54207224", "0.54197943", "0.54197943", "0.5416275", "0.5382067", "0.53746885", "0.5353536", "0.5347321", "0.5343715", "0.53367776", "0.5332242", "0.5330145", "0.5313315", "0.5310999", "0.53066576" ]
0.7584207
0
IRQ contexts are singlethreaded; only one thread can wait with a particular context at any given time. Clients must reserve as many contexts as the application requires. If a context is successfully reserved (the returned status is not an error), it must be unreserved later. Otherwise a memory leak will occur.
public static void reserveIrqContext(int hClient, IntByReference context, NiRioStatus status) { mergeStatus( status, reserveIrqContextFn.invokeInt(new Object[] { hClient, Pointer.nativeValue(context.getPointer()) })); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static synchronized int waitOnIrqs(int hClient,\n\t\t\tIntByReference context, int irqs, int timeout, NiRioStatus status) {\n\t\tirqsAsserted.setValue(0);\n\t\tmergeStatus(\n\t\t\t\tstatus,\n\t\t\t\twaitOnIrqsFn.invokeInt(new Object[] { hClient,\n\t\t\t\t\t\tcontext.getValue(), irqs, timeout,\n\t\t\t\t\t\tPointer.nativeValue(irqsAsserted.getPointer()), 0 }));\n\t\treturn irqsAsserted.getValue();\n\t}", "public static void unreserveIrqContext(int hClient, IntByReference context,\n\t\t\tNiRioStatus status) {\n\t\tmergeStatus(\n\t\t\t\tstatus,\n\t\t\t\tunreserveIrqContextFn.invokeInt(new Object[] { hClient,\n\t\t\t\t\t\tcontext.getValue() }));\n\t}", "InterruptResource createInterruptResource();", "public void testUnsetOfInterruptStatus_relaxed() throws InterruptedException {\n testUnsetOfInterruptStatus(false);\n }", "public synchronized int entranceReqUnder(int id, int i, int index) {\n\t\tSystem.out.println(\"Sono il tesista \" + id + \" provo a occupare un computer.\");\n\t\twhile(computers.get(index) == 1) {\n\t\t\ttry {\n\t\t\t\twait();\n\t\t\t} catch (InterruptedException e) {}\n\t\t}\n\t\tSystem.out.println(\"Sono il tesista \" + id + \" eseguo la richiesta \"+i);\n\t\tcomputers.set(index, 1);\n\t\tbusy++;\n\t\treturn index;\n\t}", "@Context\r\npublic interface ThreadContext\r\n{\r\n /**\r\n * Get the minimum thread level.\r\n *\r\n * @param min the default minimum value\r\n * @return the minimum thread level\r\n */\r\n int getMin( int min );\r\n \r\n /**\r\n * Return maximum thread level.\r\n *\r\n * @param max the default maximum value\r\n * @return the maximum thread level\r\n */\r\n int getMax( int max );\r\n \r\n /**\r\n * Return the deamon flag.\r\n *\r\n * @param flag true if a damon thread \r\n * @return the deamon thread policy\r\n */\r\n boolean getDaemon( boolean flag );\r\n \r\n /**\r\n * Get the thread pool name.\r\n *\r\n * @param name the pool name\r\n * @return the name\r\n */\r\n String getName( String name );\r\n \r\n /**\r\n * Get the thread pool priority.\r\n *\r\n * @param priority the thread pool priority\r\n * @return the priority\r\n */\r\n int getPriority( int priority );\r\n \r\n /**\r\n * Get the maximum idle time.\r\n *\r\n * @param idle the default maximum idle time\r\n * @return the maximum idle time in milliseconds\r\n */\r\n int getIdle( int idle );\r\n \r\n}", "private NotifySuspendedCommandControllerPowerState() {\n\n\t}", "@SuppressWarnings(\"BooleanMethodIsAlwaysInverted\")\n protected boolean acquireCapacity(Limit endpointReserve, Limit globalReserve, int bytes, long currentTimeNanos, long expiresAtNanos)\n {\n ResourceLimits.Outcome outcome = acquireCapacity(endpointReserve, globalReserve, bytes);\n\n if (outcome == ResourceLimits.Outcome.INSUFFICIENT_ENDPOINT)\n ticket = endpointWaitQueue.register(this, bytes, currentTimeNanos, expiresAtNanos);\n else if (outcome == ResourceLimits.Outcome.INSUFFICIENT_GLOBAL)\n ticket = globalWaitQueue.register(this, bytes, currentTimeNanos, expiresAtNanos);\n\n if (outcome != ResourceLimits.Outcome.SUCCESS)\n throttledCount++;\n\n return outcome == ResourceLimits.Outcome.SUCCESS;\n }", "public final void serviceIRQorNMI() {\r\n // NMI requested?\r\n if (this.isNMILow && !this.lastNMIState) {\r\n // we need seven cycles just like for a BRK operation\r\n this.cycles += 7;\r\n // execute the interrupt routine\r\n serviceInterrupt(0xfffa);\r\n // IRQ requested?\r\n } else if (this.isIRQLow) {\r\n // is the interrupt allowed?\r\n if (!this.interruptFlag) {\r\n // we need seven cycles just like for a BRK operation\r\n this.cycles += 7;\r\n // execute the interrupt routine\r\n serviceInterrupt(0xfffe);\r\n }\r\n // we no longer have to check for interrupts as all NMI/IRQ requests have been serviced\r\n this.isCheckInterrupt = false;\r\n }\r\n // remember last NMI state in order to check on next\r\n this.lastNMIState = this.isNMILow;\r\n }", "private void selectLoop() {\n \t\tlong timeout = 0; // wait indefinitely\n \t\n \t\tregisterPending();\n \t\n \t\twhile (!Thread.interrupted()) {\n \t\t\tif (contextMap.isEmpty() && currentlyOpenSockets.get() == 0 && currentlyConnectingSockets.get() == 0) {\n \t\t\t\tassert logger != null;\n \t\t\t\tlogger.debug(\"SocketEngineService clean\");\n \t\t\t\ttimeout = 0;\n \t\t\t} else {\n\t\t\t\t//XXX remove\n//\t\t\t\tlogger.debug(\"active contexts: \"+contextMap.size()+\" selection keys: \"+selector.keys().size());\n//\t\t\t\tlogger.debug(\"open sockets: \"+currentlyOpenSockets.get()+\" connecting sockets: \"+currentlyConnectingSockets.get());\n \t\t\t\ttimeout = Math.max(timeout, 500); // XXX\n \t\t\t}\n \n \t\t\ttry {\n \t\t\t\tselector.select(timeout);\n \t\t\t\tassert selector != null;\n \t\t\t\tif (selector.isOpen() == false) {\n \t\t\t\t\treturn;\n \t\t\t\t}\n \t\t\t} catch (IOException e) {\n \t\t\t\tassert logger != null;\n \t\t\t\tlogger.error(\"I/O error in Selector#select()\", e);\n \t\t\t\treturn;\n \t\t\t}\n \t\t\t\n \t\t\tregisterPending();\n \n \t\t\tfor (SelectionKey key : selector.selectedKeys()) {\n \t\t\t\tSelectionContext context = (SelectionContext)key.attachment();\n \t\t\t\ttry {\n \t\t\t\t\tcontext.testKey(key);\n \t\t\t\t} catch (CancelledKeyException e) {\n \t\t\t\t\t// a selected key is cancelled\n\t\t\t\t\t// XXX remove\n//\t\t\t\t\tlogger.warning(\"Cancelled selector key (on selected key)\", e);\n \t\t\t\t\t// do something about it\n \t\t\t\t\tcontext.close();\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tlong now = System.currentTimeMillis();\n \t\t\ttimeout = Long.MAX_VALUE;\n \t\t\tfor (SelectionKey key : selector.keys()) {\n \t\t\t\tSelectionContext context = (SelectionContext)key.attachment();\n \t\t\t\ttry {\n \t\t\t\t\ttimeout = Math.min(timeout, context.testTimeOut(key, now));\n \t\t\t\t} catch (CancelledKeyException e) {\n\t\t\t\t\t//XXX remove\n//\t\t\t\t\tlogger.warning(\"Cancelled selector key (when testing timeout of unselected key)\", e);\n \t\t\t\t\t// do something about it. should close?\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (timeout == Long.MAX_VALUE) timeout = 0; // 0 means wait indefinitely\n \t\t}\n \t}", "private void newContext(final Object channel,\n final NewContextRequest request) {\n String statusInfo = null;\n final String contextId = UUID.randomUUID().toString();\n request.setContext(contextId);\n final String requestId = request.getRequestId();\n LOGGER.info(\"received a new context request with request id \"\n + requestId);\n try {\n getContext(request, true);\n } catch (MMIMessageException e) {\n LOGGER.error(e.getMessage(), e);\n statusInfo = e.getMessage();\n }\n final NewContextResponse response = new NewContextResponse();\n final String target = request.getSource();\n response.setTarget(target);\n response.setContext(contextId);\n response.setRequestId(requestId);\n if (statusInfo == null) {\n response.setStatus(StatusType.SUCCESS);\n } else {\n LOGGER.info(\"new context failed: \" + statusInfo);\n response.setStatus(StatusType.FAILURE);\n response.addStatusInfo(statusInfo);\n }\n try {\n final Mmi mmi = new Mmi();\n mmi.setLifeCycleEvent(response);\n adapter.sendMMIEvent(channel, mmi);\n } catch (IOException e) {\n LOGGER.error(e.getMessage(), e);\n removeContext(contextId);\n }\n }", "public boolean isInterruptible() {\n/* 31 */ return true;\n/* */ }", "public void waitUntil(long x) {\n\n\tlong wakeTime = Machine.timer().getTime() + x;\n\tboolean intrState = Machine.interrupt().disable();\n\tKThread.currentThread().time = wakeTime;\n\tsleepingThreads.add(KThread.currentThread());\n\tKThread.currentThread().sleep();\n Machine.interrupt().restore(intrState);\n \n }", "void await() throws InterruptedException\n {\n while (streams.containsKey(context))\n Thread.sleep(10);\n }", "void activate(ConditionContext context);", "public void hardwareResources() {\n\t\t\r\n\t}", "public void waitUntil(long x){\n\n Machine.interrupt().disable(); //disable interrupts\n\n\t long wakeTime; \n wakeTime = Machine.timer().getTime() ;\n wakeTime = wakeTime + x; //calculate wakeTime\n\n //pass through wakeTime and current thread as instance variables for a\n ThreadWait a;\n a = new ThreadWait(wakeTime, KThread.currentThread());\n\n waitingQueue.add(a); //add a to the waitingQueue \n\n KThread.currentThread().sleep(); //sleep current thread\n\n Machine.interrupt().enable(); //enable interrupts\n }", "public int ExternalInterruptCount() { return EXTERNAL_INTERRUPTS; }", "public boolean isInterruptible();", "private void assignResourcesToJobs\n\t\t(long now)\n\t\tthrows IOException\n\t\t{\n\t\t// List of jobs to be canceled.\n\t\tList<JobInfo> cancelList = new LinkedList<JobInfo>();\n\n\t\t// Decide what to do with each waiting job.\n\t\tIterator<JobInfo> iter = myWaitingJobList.iterator();\n\t\tjobLoop : while (iter.hasNext())\n\t\t\t{\n\t\t\tJobInfo jobinfo = iter.next();\n\n\t\t\t// If the cluster doesn't have enough resources, don't try to\n\t\t\t// reserve any.\n\t\t\tif (! enoughResourcesForJob (jobinfo.Nn, jobinfo.Np, jobinfo.Nt))\n\t\t\t\t{\n\t\t\t\titer.remove();\n\t\t\t\tcancelList.add (jobinfo);\n\t\t\t\tcontinue jobLoop;\n\t\t\t\t}\n\n\t\t\t// Used to decide how many processes for each node.\n\t\t\tint Np_div_Nn = jobinfo.Np / jobinfo.Nn;\n\t\t\tint Np_rem_Nn = jobinfo.Np % jobinfo.Nn;\n\n\t\t\t// Reserve idle nodes for this job until there are no more idle\n\t\t\t// nodes or this job has all the nodes it needs.\n\t\t\tint be = myNextBackendNumber;\n\t\t\tdo\n\t\t\t\t{\n\t\t\t\t// Decide how many processes for this node.\n\t\t\t\tint Nproc = Np_div_Nn;\n\t\t\t\tif (jobinfo.nodeCount < Np_rem_Nn) ++ Nproc;\n\n\t\t\t\t// Reserve this node only if it is idle and it has enough CPUs.\n\t\t\t\tBackendInfo backendinfo = myBackendInfo[be];\n\t\t\t\tif (backendinfo.state == BackendInfo.State.IDLE &&\n\t\t\t\t\t\tbackendinfo.totalCpus >= Nproc)\n\t\t\t\t\t{\n\t\t\t\t\t// Reserve node.\n\t\t\t\t\tbackendinfo.state = BackendInfo.State.RESERVED;\n\t\t\t\t\tbackendinfo.stateTime = now;\n\t\t\t\t\tbackendinfo.job = jobinfo;\n\n\t\t\t\t\t// Used to decide how many CPUs for each process.\n\t\t\t\t\tint Nt_div_Nproc = backendinfo.totalCpus / Nproc;\n\t\t\t\t\tint Nt_rem_Nproc = backendinfo.totalCpus % Nproc;\n\n\t\t\t\t\t// Assign Np processes.\n\t\t\t\t\tfor (int i = 0; i < Nproc; ++ i)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t// Decide how many CPUs for this process.\n\t\t\t\t\t\tint Ncpus = jobinfo.Nt;\n\t\t\t\t\t\tif (Ncpus == 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tNcpus = Nt_div_Nproc;\n\t\t\t\t\t\t\tif (i < Nt_rem_Nproc) ++ Ncpus;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Log information.\n\t\t\t\t\t\tmyLog.log\n\t\t\t\t\t\t\t(now,\n\t\t\t\t\t\t\t \"Job \" + jobinfo.jobnum + \" assigned \" +\n\t\t\t\t\t\t\t backendinfo.name + \", rank=\" + jobinfo.count +\n\t\t\t\t\t\t\t \", CPUs=\" + Ncpus);\n\n\t\t\t\t\t\t// Record information about process.\n\t\t\t\t\t\tjobinfo.backend[jobinfo.count] = backendinfo;\n\t\t\t\t\t\tjobinfo.cpus[jobinfo.count] = Ncpus;\n\t\t\t\t\t\t++ jobinfo.count;\n\n\t\t\t\t\t\t// Inform Job Frontend.\n\t\t\t\t\t\tjobinfo.frontend.assignBackend\n\t\t\t\t\t\t\t(/*theJobScheduler*/ this,\n\t\t\t\t\t\t\t /*name */ backendinfo.name,\n\t\t\t\t\t\t\t /*host */ backendinfo.host,\n\t\t\t\t\t\t\t /*jvm */ backendinfo.jvm,\n\t\t\t\t\t\t\t /*classpath */ backendinfo.classpath,\n\t\t\t\t\t\t\t /*jvmflags */ backendinfo.jvmflags,\n\t\t\t\t\t\t\t /*Nt */ Ncpus);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t// Assign one node.\n\t\t\t\t\t++ jobinfo.nodeCount;\n\t\t\t\t\t}\n\n\t\t\t\t// Consider next node.\n\t\t\t\tbe = (be + 1) % myBackendCount;\n\t\t\t\t}\n\t\t\twhile (be != myNextBackendNumber && jobinfo.count < jobinfo.Np);\n\t\t\tmyNextBackendNumber = be;\n\n\t\t\t// If this job now has Np processes, start running this job.\n\t\t\tif (jobinfo.count == jobinfo.Np)\n\t\t\t\t{\n\t\t\t\t// Log information.\n\t\t\t\tmyLog.log (now, \"Job \" + jobinfo.jobnum + \" started\");\n\n\t\t\t\t// Mark job as running.\n\t\t\t\titer.remove();\n\t\t\t\tmyRunningJobList.add (jobinfo);\n\t\t\t\tjobinfo.state = JobInfo.State.RUNNING;\n\t\t\t\tjobinfo.stateTime = now;\n\n\t\t\t\t// Mark all the job's nodes as running.\n\t\t\t\tfor (BackendInfo backendinfo : jobinfo.backend)\n\t\t\t\t\t{\n\t\t\t\t\tbackendinfo.state = BackendInfo.State.RUNNING;\n\t\t\t\t\tbackendinfo.stateTime = now;\n\t\t\t\t\t}\n\n\t\t\t\t// If the Job Scheduler is imposing a maximum job time, start\n\t\t\t\t// job timer.\n\t\t\t\tif (myJobTime > 0)\n\t\t\t\t\t{\n\t\t\t\t\tjobinfo.jobTimer.start (myJobTime * 1000L);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t// If this job does not yet have Np processes, don't schedule any\n\t\t\t// further jobs.\n\t\t\telse\n\t\t\t\t{\n\t\t\t\tbreak jobLoop;\n\t\t\t\t}\n\t\t\t}\n\n\t\t// Cancel jobs for which there are insufficient resources.\n\t\tfor (JobInfo jobinfo : cancelList)\n\t\t\t{\n\t\t\tdoCancelJobTooFewResources (now, jobinfo);\n\t\t\t}\n\t\t}", "public void initialExecutionResourcesExhausted() {\n \n \t\t// if (this.environment.getExecutingThread() != Thread.currentThread()) {\n \t\t// throw new ConcurrentModificationException(\n \t\t// \"initialExecutionResourcesExhausted must be called from the task that executes the user code\");\n \t\t// }\n \n \t\t// Construct a resource utilization snapshot\n \t\tfinal long timestamp = System.currentTimeMillis();\n \t\t// Get CPU-Usertime in percent\n \t\tThreadMXBean threadBean = ManagementFactory.getThreadMXBean();\n \t\tlong userCPU = (threadBean.getCurrentThreadUserTime() / NANO_TO_MILLISECONDS) * 100\n \t\t\t/ (timestamp - this.startTime);\n \n \t\t// collect outputChannelUtilization\n \t\tfinal Map<ChannelID, Long> channelUtilization = new HashMap<ChannelID, Long>();\n \t\tlong totalOutputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfOutputGates(); ++i) {\n \t\t\tfinal OutputGate<? extends Record> outputGate = this.environment.getOutputGate(i);\n \t\t\tfor (int j = 0; j < outputGate.getNumberOfOutputChannels(); ++j) {\n \t\t\t\tfinal AbstractOutputChannel<? extends Record> outputChannel = outputGate.getOutputChannel(j);\n \t\t\t\tchannelUtilization.put(outputChannel.getID(),\n \t\t\t\t\tLong.valueOf(outputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalOutputAmount += outputChannel.getAmountOfDataTransmitted();\n \t\t\t}\n \t\t}\n \t\tlong totalInputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfInputGates(); ++i) {\n \t\t\tfinal InputGate<? extends Record> inputGate = this.environment.getInputGate(i);\n \t\t\tfor (int j = 0; j < inputGate.getNumberOfInputChannels(); ++j) {\n \t\t\t\tfinal AbstractInputChannel<? extends Record> inputChannel = inputGate.getInputChannel(j);\n \t\t\t\tchannelUtilization.put(inputChannel.getID(),\n \t\t\t\t\tLong.valueOf(inputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalInputAmount += inputChannel.getAmountOfDataTransmitted();\n \n \t\t\t}\n \t\t}\n \t\tBoolean force = null;\n \n \t\tif (this.environment.getInvokable().getClass().isAnnotationPresent(Stateful.class)\n \t\t\t&& !this.environment.getInvokable().getClass().isAnnotationPresent(Stateless.class)) {\n \t\t\t// Don't checkpoint statefull tasks\n \t\t\tforce = false;\n \t\t} else {\n \t\t\t// look for a forced decision from the user\n \t\t\tForceCheckpoint forced = this.environment.getInvokable().getClass().getAnnotation(ForceCheckpoint.class);\n \t\t\tif (forced != null) {\n \t\t\t\tforce = forced.checkpoint();\n \t\t\t}\n \t\t}\n \t\tfinal ResourceUtilizationSnapshot rus = new ResourceUtilizationSnapshot(timestamp, channelUtilization, userCPU,\n \t\t\tforce, totalInputAmount, totalOutputAmount);\n \n \t\t// Notify the listener objects\n \t\tfinal Iterator<ExecutionListener> it = this.registeredListeners.iterator();\n \t\twhile (it.hasNext()) {\n \t\t\tit.next().initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t\t}\n \n \t\t// Finally, propagate event to the job manager\n \t\tthis.taskManager.initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t}", "synchronized void askForCritical() {\n\nSC=true;\n\nwhile(!Jeton){\n\ttry{\nthis.wait();\n\t}catch( InterruptedException ie ){\n\t\t\n\t}\n}\n}", "@Test\n public void ResourceRequirement() {\n MSG_ACTION_ACTIVATE_LEADERCARD message = new MSG_ACTION_ACTIVATE_LEADERCARD(0);\n p.getStrongbox().addResource(Resource.SHIELD, 4);\n p.getWarehouseDepot().add(Resource.COIN);\n p.getWarehouseDepot().add(Resource.SHIELD);\n c.emptyQueue();\n\n assertTrue(am.activateLeaderCard(p, message));\n\n assertTrue(l1.isEnabled());\n\n assertEquals(1, c.messages.stream().filter(x -> x.getMessageType() == MessageType.MSG_UPD_Player).count());\n assertEquals(1, c.messages.stream().filter(x -> x.getMessageType() == MessageType.MSG_NOTIFICATION).count());\n assertEquals(2, c.messages.size());\n }", "public synchronized void acquire(int id) throws InterruptedException\r\n\t{\r\n\t\twhile (avail2 == 0) {\r\n\t\t\tSystem.out.println(\"+Process_\" + id + \" is waiting for SR2.\");\r\n\t\t\twait();\r\n\t\t}\r\n\t\tSystem.out.println(\"Process_\" + id + \" acquired SR2.\");\r\n\t\t//assigns one of the available instances\r\n\t\tavail2--;\r\n\t}", "public Consumer<Context> select(final Context ctx);", "public synchronized void makeAvailable(){\n isBusy = false;\n }", "protected abstract void HandleInterrupts();", "protected void setup(Context context\n\t ) throws IOException, InterruptedException {\n\t // NOTHING\n\t }", "private void collectContextDataCreatContextSituation()\n\t\t\tthrows NumberFormatException, InterruptedException {\n\n\t\twhile (isTransmissionStarted) {\n\t\t\tVector<ContextElement> contextElements = new Vector<>();\n\n\t\t\tm_CASMediator = getCASMediator();\n\n\t\t\t// create the time context element\n\t\t\tContextElement contextElement = new ContextElement();\n\t\t\tcontextElement.setContexttype(\"timecontext\");\n\t\t\tTimeContextElement timeContextElement = new TimeContextElement();\n\t\t\tDate date = new Date();\n\t\t\tTime time = new Time();\n\t\t\ttimeContextElement.setDate(date);\n\t\t\ttimeContextElement.setTime(time);\n\t\t\ttimeContextElement.setContextid(Integer\n\t\t\t\t\t.parseInt(m_timeContextContextIdText.getText()));\n\t\t\tdate.setDay(Integer.parseInt(m_timeContextDateDayText.getText()));\n\t\t\tdate.setMonth(Integer.parseInt(m_timeContextDateMonthText.getText()));\n\t\t\tdate.setYear(Integer.parseInt(m_timeContextDateYearText.getText()));\n\t\t\ttime.setHour(Integer.parseInt(m_timeContextTimeHourText.getText()));\n\t\t\ttime.setMinutes(Integer.parseInt(m_timeContextTimeMinutesText\n\t\t\t\t\t.getText()));\n\t\t\ttime.setSeconds(Integer.parseInt(m_timeContextTimeSecondsText\n\t\t\t\t\t.getText()));\n\t\t\ttime.setAMPM(m_timeContextDayRadio.isSelected() ? \"DAY\" : \"NIGHT\");\n\t\t\tcontextElement.setTimeContextElement(timeContextElement);\n\t\t\tcontextElements.addElement(contextElement);\n\n\t\t\t// create the position context\n\t\t\tcontextElement = new ContextElement();\n\t\t\tcontextElement.setContexttype(\"locationcontext\");\n\t\t\tLocationContextElement locationContextElement = new LocationContextElement();\n\t\t\tPhysicalLocation physicalLocation = new PhysicalLocation();\n\t\t\tGeographicalLocation geographicalLocation = new GeographicalLocation();\n\t\t\tlocationContextElement.setContextid(Integer\n\t\t\t\t\t.parseInt(m_positionContextContextIDText.getText()));\n\t\t\tlocationContextElement.setPhysicalLocation(physicalLocation);\n\t\t\tlocationContextElement\n\t\t\t\t\t.setGeographicalLocation(geographicalLocation);\n\t\t\tphysicalLocation\n\t\t\t\t\t.setCountry(m_positionContextPhysicalLocationCountryText\n\t\t\t\t\t\t\t.getText());\n\t\t\tphysicalLocation\n\t\t\t\t\t.setState(m_positionContextPhysicalLocationStateText\n\t\t\t\t\t\t\t.getText());\n\t\t\tphysicalLocation.setCity(m_positionContextPhysicalLocationCityText\n\t\t\t\t\t.getText());\n\t\t\tphysicalLocation.setPincode(Integer\n\t\t\t\t\t.parseInt(m_positionContextPhysicalLocationPincodeText\n\t\t\t\t\t\t\t.getText()));\n\t\t\tgeographicalLocation\n\t\t\t\t\t.setAltitude(Float\n\t\t\t\t\t\t\t.parseFloat(m_positionContextGeographicalLocationAltitudeText\n\t\t\t\t\t\t\t\t\t.getText()));\n\t\t\tgeographicalLocation\n\t\t\t\t\t.setLatitude(Double\n\t\t\t\t\t\t\t.parseDouble(m_positionContextGeographicalLocationLatitudeText\n\t\t\t\t\t\t\t\t\t.getText()));\n\t\t\tgeographicalLocation\n\t\t\t\t\t.setLongitude(Double\n\t\t\t\t\t\t\t.parseDouble(m_positionContextGeographicalLocationLongitudeText\n\t\t\t\t\t\t\t\t\t.getText()));\n\t\t\tcontextElement.setLocationContextElement(locationContextElement);\n\t\t\tcontextElements.addElement(contextElement);\n\n\t\t\t// get the User context\n\t\t\tcontextElement = new ContextElement();\n\t\t\tcontextElement.setContexttype(\"usercontext\");\n\t\t\tUserContextElement userContextElement = new UserContextElement();\n\t\t\tUserProfile userProfile = new UserProfile();\n\t\t\tHealth health = new Health();\n\t\t\tuserContextElement.setContextid(m_userContextContextIDText\n\t\t\t\t\t.getText());\n\t\t\tuserContextElement.setHealth(health);\n\t\t\tuserContextElement.setUserProfile(userProfile);\n\t\t\tuserProfile\n\t\t\t\t\t.setAge(Integer.parseInt(m_userContextAgeText.getText()));\n\t\t\tuserProfile\n\t\t\t\t\t.setMaritalStatus(m_userContextRadioSingle.isSelected() ? \"Single\"\n\t\t\t\t\t\t\t: \"Married\");\n\t\t\tuserProfile.setSex(m_userContextRadioMale.isSelected() ? \"Male\"\n\t\t\t\t\t: \"Female\");\n\t\t\tuserProfile.setNationality(m_userContextRadioNationalityAustrian\n\t\t\t\t\t.isSelected() ? \"Austrian\" : \"Other\");\n\t\t\thealth.setBloodPressure(m_userContextHealthBloodPressure.getText());\n\t\t\thealth.setHeartRate(m_userContextHealthHeartRate.getText());\n\t\t\thealth.setVoiceTone(m_userContextHealthVoiceTone.getText());\n\t\t\tcontextElement.setUserContextElement(userContextElement);\n\t\t\tcontextElements.addElement(contextElement);\n\n\t\t\t// get the device context\n\t\t\tcontextElement = new ContextElement();\n\t\t\tcontextElement.setContexttype(\"devicecontext\");\n\t\t\tDeviceContextElement deviceContextElement = new DeviceContextElement();\n\t\t\tDevice device = new Device();\n\t\t\tSoftware software = new Software();\n\t\t\tdeviceContextElement.setContextid(Integer\n\t\t\t\t\t.parseInt(m_deviceContextContextIDText.getText()));\n\t\t\tdeviceContextElement.setDevice(device);\n\t\t\tdeviceContextElement.setSoftware(software);\n\t\t\tdevice.setAudio(m_deviceContextAudioRadioYes.isSelected());\n\t\t\tdevice.setBatteryPercentage(m_deviceContextBatteryPercentageSlider\n\t\t\t\t\t.getValue());\n\t\t\tdevice.setMemory(Integer.parseInt(m_deviceContextMemoryText\n\t\t\t\t\t.getText()));\n\t\t\tsoftware.setOperatingsystem(m_deviceContextOperatingSyste.getText());\n\t\t\tsoftware.setVersion(Float.parseFloat(m_deviceOperatingSystemVersion\n\t\t\t\t\t.getText()));\n\t\t\tcontextElement.setDeviceContextElement(deviceContextElement);\n\t\t\tcontextElements.addElement(contextElement);\n\n\t\t\t// get the temperature context\n\t\t\tcontextElement = new ContextElement();\n\t\t\tcontextElement.setContexttype(\"temperaturecontext\");\n\t\t\tTemperatureContextElement temperatureContextElement = new TemperatureContextElement();\n\t\t\tCurrentTemperature currentTemperature = new CurrentTemperature();\n\t\t\tcurrentTemperature.setTemperaturevalue(Integer\n\t\t\t\t\t.parseInt(m_temperatureText.getText()));\n\t\t\ttemperatureContextElement.setCurrentTemperature(currentTemperature);\n\t\t\ttemperatureContextElement.setContextid(501);\n\t\t\tcontextElement\n\t\t\t\t\t.setTemperatureContextElement(temperatureContextElement);\n\t\t\tcontextElements.addElement(contextElement);\n\n\t\t\t// put the context elements in context situation\n\t\t\tm_contextSituation.setContextElements(contextElements);\n\n\t\t\t// communicate the context situation\n\t\t\tm_CASMediator.communicateContextSituation(m_contextSituation);\n\n\t\t\t// communicating context situation every 9 seconds\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"Context Situation will be updated in \"\n\t\t\t\t\t\t\t+ m_transmissionFrequencySecondsText.getText()\n\t\t\t\t\t\t\t+ \" seconds\");\n\n\t\t\tThread.sleep(Integer.parseInt(m_transmissionFrequencySecondsText\n\t\t\t\t\t.getText()) * 1000);\n\t\t}\n\n\t}", "private void waitForFree() throws InterruptedException {\n // Still full?\n while (isFull()) {\n // Park me 'till something is removed.\n block.await();\n }\n }", "public interface Context {\n\n\tvoid goNext();\n\tvoid setState(State state);\n\tvoid execute();\n\tState getCurrent();\n}", "public synchronized void acquire(int id) throws InterruptedException\r\n\t{\r\n\t\twhile (avail1 == 0) {\r\n\t\t\tSystem.out.println(\"+Process_\" + id + \" is waiting for SR1\");\r\n\t\t\twait();\r\n\t\t}\r\n\t\tSystem.out.println(\"Process_\" + id + \" acquired SR1.\");\r\n\t\t//assigns one of the available instances\r\n\t\tavail1--;\r\n\t}", "@DISPID(1611006044) //= 0x6006005c. The runtime will prefer the VTID if present\n @VTID(119)\n boolean contextualFeaturesSelectableAtCreation();", "public Context() {\n\t\tstates = new ObjectStack<>();\n\t}", "@Override\n public boolean continueWaitState(SceKernelThreadInfo thread, ThreadWaitInfo wait) {\n SceKernelEventFlagInfo event = eventMap.get(wait.EventFlag_id);\n if (event == null) {\n thread.cpuContext._v0 = ERROR_KERNEL_NOT_FOUND_EVENT_FLAG;\n return false;\n }\n\n // Check EventFlag.\n if (checkEventFlag(event, wait.EventFlag_bits, wait.EventFlag_wait, wait.EventFlag_outBits_addr)) {\n event.threadWaitingList.removeWaitingThread(thread);\n thread.cpuContext._v0 = 0;\n return false;\n }\n\n return true;\n }", "void state_REQState(){\r\n eccState = INDEX_REQState;\r\n alg_REQAlg();\r\n CNF.serviceEvent(this);\r\n state_START();\r\n}", "void waitAndReleaseAllEntities();", "interface Condition {\n\n long PARK_TIMEOUT = 50L;\n\n int MAX_PROG_YIELD = 2000;\n\n // return true if the queue condition is satisfied\n boolean test();\n\n // wake me when the condition is satisfied, or timeout\n void awaitNanos(final long timeout) throws InterruptedException;\n\n // wake if signal is called, or wait indefinitely\n void await() throws InterruptedException;\n\n // tell threads waiting on condition to wake up\n void signal();\n\n /*\n * progressively transition from spin to yield over time\n */\n static int progressiveYield(final int n) {\n if(n > 500) {\n if(n<1000) {\n // \"randomly\" yield 1:8\n if((n & 0x7) == 0) {\n LockSupport.parkNanos(PARK_TIMEOUT);\n } else {\n onSpinWait();\n }\n } else if(n<MAX_PROG_YIELD) {\n // \"randomly\" yield 1:4\n if((n & 0x3) == 0) {\n Thread.yield();\n } else {\n onSpinWait();\n }\n } else {\n Thread.yield();\n return n;\n }\n } else {\n onSpinWait();\n }\n return n+1;\n }\n\n static void onSpinWait() {\n\n // Java 9 hint for spin waiting PAUSE instruction\n\n //http://openjdk.java.net/jeps/285\n // Thread.onSpinWait();\n }\n\n /**\n * Wait for timeout on condition\n *\n * @param timeout - the amount of time in units to wait\n * @param unit - the time unit\n * @param condition - condition to wait for\n * @return boolean - true if status was detected\n * @throws InterruptedException - on interrupt\n */\n static boolean waitStatus(final long timeout, final TimeUnit unit, final Condition condition) throws InterruptedException {\n // until condition is signaled\n\n final long timeoutNanos = TimeUnit.NANOSECONDS.convert(timeout, unit);\n final long expireTime = System.nanoTime() + timeoutNanos;\n // the queue is empty or full wait for something to change\n while (condition.test()) {\n final long now = System.nanoTime();\n if (now > expireTime) {\n return false;\n }\n\n condition.awaitNanos(expireTime - now - PARK_TIMEOUT);\n\n }\n\n return true;\n }\n\n}", "public void waitUntil(long x) {\n\n\t\tMachine.interrupt().disable();\n\t\t//Create the pair object with current thread and its respective wake time.\n\t\tPair newPair = new Pair(KThread.currentThread(), Machine.timer().getTime() + x);\n\n\t\t//Initialize with the current thread and wakeTime\n\t\ttheThreads.add(newPair); //add to list\n\t\t\n\t\tKThread.sleep(); //put that thread to sleep....its waiting\n\t\tMachine.interrupt().enable();\n\n\n\t}", "@Override\n public void stateChange(PciContext pciContext) {\n log.debug(\"inside statechange of sdnr notif state\");\n String notification = pciContext.getSdnrNotification();\n Notification notificationObject;\n try {\n\n ObjectMapper mapper = new ObjectMapper();\n notificationObject = mapper.readValue(notification, Notification.class);\n log.debug(\"notificationObject{}\", notificationObject);\n\n List<FapServiceList> serviceList = notificationObject.getPayload().getRadioAccess().getFapServiceList();\n for (FapServiceList fapService : serviceList) {\n String cellId = fapService.getCellConfig().getLte().getRan().getCellIdentity();\n log.debug(\"cellId:{}\", cellId);\n log.debug(\"inside for loop\");\n\n List<ClusterDetails> clusterDetails = getAllClusters();\n\n ClusterDetails clusterDetail = getClusterForNotification(fapService, clusterDetails);\n\n if (clusterDetail == null) {\n // form the cluster\n Graph cluster = createCluster(fapService);\n // save to db\n UUID clusterId = UUID.randomUUID();\n cluster.setGraphId(clusterId);\n // create the child thread\n log.debug(\"creating new child\");\n BlockingQueue<FapServiceList> queue = new LinkedBlockingQueue<>();\n ThreadId threadId = new ThreadId();\n threadId.setChildThreadId(0);\n ChildThread child = new ChildThread(pciContext.getChildStatusUpdate(), cluster, queue, threadId);\n queue.put(fapService);\n MainThreadComponent mainThreadComponent = BeanUtil.getBean(MainThreadComponent.class);\n mainThreadComponent.getPool().execute(child);\n\n waitForThreadId(threadId);\n\n saveCluster(cluster, clusterId, threadId.getChildThreadId());\n addChildThreadMap(threadId.getChildThreadId(), child);\n pciContext.addChildStatus(threadId.getChildThreadId(), \"processingNotifications\");\n\n }\n\n else {\n if (isOofTriggeredForCluster(pciContext, clusterDetail)) {\n pciContext.setNotifToBeProcessed(false);\n bufferNotification(fapService, clusterDetail.getClusterId());\n } else {\n pciContext.setNotifToBeProcessed(true);\n log.debug(\"childThreadId:{}\", clusterDetail.getChildThreadId());\n childThreadMap.get(clusterDetail.getChildThreadId()).putInQueue(fapService);\n }\n }\n }\n } catch (Exception e) {\n log.error(\"caught in sdnr notif handling state{}\", e);\n }\n\n WaitState waitState = WaitState.getInstance();\n pciContext.setPciState(waitState);\n pciContext.stateChange(pciContext);\n }", "public void preempt(Context context, PreemptionMessage preemptionRequests);", "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 synchronized int pencil() throws InterruptedException {\n\t\tThread.currentThread().destroy();\n\t\treturn 2;\n\t}", "public void waitForAccess(KThread thread) \n\t\t{\n\t\t\tLib.assertTrue(Machine.interrupt().disabled());\n ThreadState waiterState = getThreadState(thread);\n waiterState.waitForAccess(this); //Call waitForAccess of ThreadState class\n waitQueue.add(thread); //Add this thread to this waitQueue \n if(owner != null)\n\t\t\t{\n\t\t\t getThreadState(owner).donatePriority(waiterState.getPriority()-getThreadState(owner).getPriority()); //See if the incoming thread has to donate priority to the owner\n\t\t\t}\n\t\t}", "ManagementLockObject apply(Context context);", "public void startResourcesThread() {\r\n\t\t\r\n\t\t//Check lock\r\n\t\tif (resourcesThreadRunning)\r\n\t\t\tlogger.log(Level.INFO, \"Resources Thread already running...\\n\");\r\n\t\telse\r\n\t\t\t//Submit to ExecutorService\r\n\t\t\teventsExecutorService.submit(() -> {\r\n\t\t\t\ttry {\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Lock\r\n\t\t\t\t\tresourcesThreadRunning = true;\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Detect if the microphone is available\r\n\t\t\t\t\twhile (true) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Is the Microphone Available\r\n\t\t\t\t\t\tif (!AudioSystem.isLineSupported(Port.Info.MICROPHONE))\r\n\t\t\t\t\t\t\tlogger.log(Level.INFO, \"Microphone is not available.\\n\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Sleep some period\r\n\t\t\t\t\t\tThread.sleep(350);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (InterruptedException ex) {\r\n\t\t\t\t\tlogger.log(Level.WARNING, null, ex);\r\n\t\t\t\t\tresourcesThreadRunning = false;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t}", "public interface Reservation extends Closeable {\n \n boolean isSentinel();\n \n Resource getResource();\n \n void free();\n }", "@Override\n public boolean isInterruptible() {\n return true;\n }", "public void acquire() throws InterruptedException {\n if (Thread.interrupted()) {\n throw new InterruptedException();\n }\n synchronized (this) {\n try {\n if (!m_available) {\n wait();\n }\n m_available = false;\n }\n catch (InterruptedException ie) {\n notify();\n throw ie;\n }\n }\n }", "public boolean isSuspended();", "public void getContext() {\n ((AppiumDriver) getDriver()).getContextHandles();\n }", "private void changeContext(){\n MainWorkflow.observeContexts(generateRandom(24,0));\n }", "@Override\n public native void waitForIdle();", "private void waitForBuyersAction() throws InterruptedException\n {\n while(waiting)\n {\n Thread.sleep(100);\n }\n waiting = true;\n }", "@Override\r\n\t\tpublic void contextInitialized(ServletContextEvent sce) {\r\n\t\t/*\twhile(true) {\r\n\t\t\t\r\n\t\t\t\texecutor = new Thread(new Runnable() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\tps.verifyStock();\r\n\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\texecutor.start();\r\n\t\t\ttry {\r\n\t\t\t\texecutor.sleep(5000);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\r\n\t\t}*/\r\n\t\t}", "public void IRQChange(IRQChangeEvent evt);", "@When(\"^i select my desired rooms$\")\n public void i_select_my_desired_rooms() throws Throwable {\n throw new PendingException();\n }", "private ISeesContext createSeesContext() throws RodinDBException {\n\t\tfinal IMachineRoot mch = createMachine(\"mch\");\n\t\treturn mch.createChild(ISeesContext.ELEMENT_TYPE, null, null);\n\t}", "public void pushContext() {\n super.pushContext();\n if (fCurrentContext + 1 == fValidContext.length) {\n boolean[] contextarray = new boolean[fValidContext.length * 2];\n System.arraycopy(fValidContext, 0, contextarray, 0, fValidContext.length);\n fValidContext = contextarray;\n }\n\n fValidContext[fCurrentContext] = true;\n }", "public void interruptActive() {\n\t\tList<Thread> toInterrupt = registeredThreads.entrySet()\n\t\t\t.stream()\n\t\t\t.map(Map.Entry::getKey)\n\t\t\t.collect(Collectors.toList());\n\n\t\tinterrupt(toInterrupt);\n\t}", "ManagementLockObject create(Context context);", "@Override\n\tpublic void contextDestroyed(ServletContextEvent contextEvent) {\n t.interrupt();\n\t\t\n\t}", "public void timerInterrupt() \n {\n\t\n Machine.interrupt().disable(); //disable\n\n //if waitingQueue is empty, and current time is greater than or equal to the first ThreadWaits, wakeUp time,\n while(!waitingQueue.isEmpty() && (waitingQueue.peek().wakeUp < Machine.timer().getTime()\n || waitingQueue.peek().wakeUp == Machine.timer().getTime())) {\n waitingQueue.poll().thread.ready(); //pop head\n }\n\n KThread.currentThread().yield();\n\n Machine.interrupt().enable(); //enable\n\n }", "@VisibleForTesting\n public boolean reserveMemory(final long memoryToReserve,\n boolean waitForEviction, AtomicBoolean isStopped) {\n int badCallCount = 0;\n long evictedTotalMetric = 0, reservedTotalMetric = 0, remainingToReserve = memoryToReserve;\n boolean result = true;\n while (remainingToReserve > 0) {\n long usedMem = usedMemory.get(), newUsedMem = usedMem + remainingToReserve;\n if (newUsedMem <= maxSize) {\n if (usedMemory.compareAndSet(usedMem, newUsedMem)) {\n reservedTotalMetric += remainingToReserve;\n break;\n }\n continue;\n }\n if (evictor == null) return false;\n // TODO: for one-block case, we could move notification for the last block out of the loop.\n long evicted = evictor.evictSomeBlocks(remainingToReserve);\n if (evicted == 0) {\n ++badCallCount;\n if (!waitForEviction) {\n result = false;\n break;\n }\n\n if (isStopped != null && isStopped.get()) {\n result = false;\n break;\n }\n try {\n Thread.sleep(badCallCount > 9 ? 1000 : (1 << badCallCount));\n } catch (InterruptedException e) {\n LlapIoImpl.LOG.warn(\"Thread interrupted\"); // We currently don't expect this.\n Thread.currentThread().interrupt();\n result = false;\n break;\n }\n continue;\n }\n evictedTotalMetric += evicted;\n badCallCount = 0;\n // Adjust the memory - we have to account for what we have just evicted.\n while (true) {\n long availableToReserveAfterEvict = maxSize - usedMem + evicted;\n long reservedAfterEvict = Math.min(remainingToReserve, availableToReserveAfterEvict);\n if (usedMemory.compareAndSet(usedMem, usedMem - evicted + reservedAfterEvict)) {\n remainingToReserve -= reservedAfterEvict;\n reservedTotalMetric += reservedAfterEvict;\n break;\n }\n usedMem = usedMemory.get();\n }\n }\n if (!result) {\n releaseMemory(reservedTotalMetric);\n reservedTotalMetric = 0;\n }\n metrics.incrCacheCapacityUsed(reservedTotalMetric - evictedTotalMetric);\n return result;\n }", "@DISPID(1611006044) //= 0x6006005c. The runtime will prefer the VTID if present\n @VTID(120)\n void contextualFeaturesSelectableAtCreation(\n boolean oContextualFeaturesSelectable);", "condition getConditionAllocution();", "public RCC() {\n v = new Semaphore(1);\n s = new Semaphore(0);\n mutex = new Semaphore(1);\n suspendidos_s = 0;\n }", "private void runInterrupt(final JexlEngine jexl) throws Exception {\n List<Runnable> lr = null;\n final ExecutorService exec = Executors.newFixedThreadPool(2);\n try {\n final JexlContext ctxt = new TestContext();\n\n // run an interrupt\n final JexlScript sint = jexl.createScript(\"interrupt(); return 42\");\n Object t = null;\n Script.Callable c = (Script.Callable) sint.callable(ctxt);\n try {\n t = c.call();\n if (c.isCancellable()) {\n Assert.fail(\"should have thrown a Cancel\");\n }\n } catch (final JexlException.Cancel xjexl) {\n if (!c.isCancellable()) {\n Assert.fail(\"should not have thrown \" + xjexl);\n }\n }\n Assert.assertTrue(c.isCancelled());\n Assert.assertNotEquals(42, t);\n\n // self interrupt\n Future<Object> f = null;\n c = (Script.Callable) sint.callable(ctxt);\n try {\n f = exec.submit(c);\n t = f.get();\n if (c.isCancellable()) {\n Assert.fail(\"should have thrown a Cancel\");\n }\n } catch (final ExecutionException xexec) {\n if (!c.isCancellable()) {\n Assert.fail(\"should not have thrown \" + xexec);\n }\n }\n Assert.assertTrue(c.isCancelled());\n Assert.assertNotEquals(42, t);\n\n // timeout a sleep\n final JexlScript ssleep = jexl.createScript(\"sleep(30000); return 42\");\n try {\n f = exec.submit(ssleep.callable(ctxt));\n t = f.get(100L, TimeUnit.MILLISECONDS);\n Assert.fail(\"should timeout\");\n } catch (final TimeoutException xtimeout) {\n if (f != null) {\n f.cancel(true);\n }\n }\n Assert.assertNotEquals(42, t);\n\n // cancel a sleep\n try {\n final Future<Object> fc = exec.submit(ssleep.callable(ctxt));\n final Runnable cancels = () -> {\n try {\n Thread.sleep(200L);\n } catch (final Exception xignore) {\n\n }\n fc.cancel(true);\n };\n exec.submit(cancels);\n t = f.get(100L, TimeUnit.MILLISECONDS);\n Assert.fail(\"should be cancelled\");\n } catch (final CancellationException xexec) {\n // this is the expected result\n }\n\n // timeout a while(true)\n final JexlScript swhile = jexl.createScript(\"while(true); return 42\");\n try {\n f = exec.submit(swhile.callable(ctxt));\n t = f.get(100L, TimeUnit.MILLISECONDS);\n Assert.fail(\"should timeout\");\n } catch (final TimeoutException xtimeout) {\n if (f != null) {\n f.cancel(true);\n }\n }\n Assert.assertNotEquals(42, t);\n\n // cancel a while(true)\n try {\n final Future<Object> fc = exec.submit(swhile.callable(ctxt));\n final Runnable cancels = () -> {\n try {\n Thread.sleep(200L);\n } catch (final Exception xignore) {\n\n }\n fc.cancel(true);\n };\n exec.submit(cancels);\n t = fc.get();\n Assert.fail(\"should be cancelled\");\n } catch (final CancellationException xexec) {\n // this is the expected result\n }\n Assert.assertNotEquals(42, t);\n } finally {\n lr = exec.shutdownNow();\n }\n Assert.assertTrue(lr.isEmpty());\n }", "public Semaphore() {\n m_available = true;\n }", "public BaseContextScannerThread(int contextId) {\n super();\n this.contextId = contextId;\n this.listeners = new LinkedHashSet<>();\n }", "public void testContextManager() throws Exception {\n System.out.println(\"testContextManager\");\n \n // init the session information\n ThreadsPermissionContainer permissions = new ThreadsPermissionContainer();\n SessionManager.init(permissions);\n UserStoreManager userStoreManager = new UserStoreManager();\n UserSessionManager sessionManager = new UserSessionManager(permissions,\n userStoreManager);\n LoginManager.init(sessionManager,userStoreManager);\n // instanciate the thread manager\n CoadunationThreadGroup threadGroup = new CoadunationThreadGroup(sessionManager,\n userStoreManager);\n \n // add a user to the session for the current thread\n RoleManager.getInstance();\n \n InterceptorFactory.init(permissions,sessionManager,userStoreManager);\n \n // add a new user object and add to the permission\n Set set = new HashSet();\n set.add(\"test\");\n UserSession user = new UserSession(\"test1\", set);\n permissions.putSession(new Long(Thread.currentThread().getId()),\n new ThreadPermissionSession(\n new Long(Thread.currentThread().getId()),user));\n \n \n NamingDirector.init(threadGroup);\n \n Context context = new InitialContext();\n \n context.bind(\"java:comp/env/test\",\"fred\");\n context.bind(\"java:comp/env/test2\",\"fred2\");\n \n if (!context.lookup(\"java:comp/env/test\").equals(\"fred\")) {\n fail(\"Could not retrieve the value for test\");\n }\n if (!context.lookup(\"java:comp/env/test2\").equals(\"fred2\")) {\n fail(\"Could not retrieve the value for test2\");\n }\n System.out.println(\"Creating the sub context\");\n Context subContext = context.createSubcontext(\"java:comp/env/test3/test3\");\n System.out.println(\"Adding the binding for bob to the sub context\");\n subContext.bind(\"bob\",\"bob\");\n System.out.println(\"Looking up the binding for bob on the sub context.\");\n Object value = subContext.lookup(\"bob\");\n System.out.println(\"Object type is : \" + value.getClass().getName());\n if (!value.equals(\"bob\")) {\n fail(\"Could not retrieve the value bob\");\n }\n if (!context.lookup(\"java:comp/env/test3/test3/bob\").equals(\"bob\")) {\n fail(\"Could not retrieve the value bob\");\n }\n \n ClassLoader loader = new URLClassLoader(new URL[0]);\n ClassLoader original = Thread.currentThread().getContextClassLoader();\n Thread.currentThread().setContextClassLoader(loader);\n NamingDirector.getInstance().initContext();\n \n context.bind(\"java:comp/env/test5\",\"fred5\");\n if (!context.lookup(\"java:comp/env/test5\").equals(\"fred5\")) {\n fail(\"Could not retrieve the value fred5\");\n }\n \n Thread.currentThread().setContextClassLoader(original);\n \n try{\n context.lookup(\"java:comp/env/test5\");\n fail(\"Failed retrieve a value that should not exist\");\n } catch (NameNotFoundException ex) {\n // ignore\n }\n \n Thread.currentThread().setContextClassLoader(loader);\n \n NamingDirector.getInstance().releaseContext();\n \n try{\n context.lookup(\"java:comp/env/test5\");\n fail(\"Failed retrieve a value that should not exist\");\n } catch (NameNotFoundException ex) {\n // ignore\n }\n Thread.currentThread().setContextClassLoader(original);\n System.out.println(\"Add value 1\");\n context.bind(\"basic\",\"basic\");\n System.out.println(\"Add value 2\");\n context.bind(\"basic2/bob\",\"basic2\");\n if (context.lookup(\"basic\") != null) {\n fail(\"Could not retrieve the basic value from the [\" + \n context.lookup(\"basic\") + \"]\");\n }\n if (context.lookup(\"basic2/bob\") != null) {\n fail(\"Could not retrieve the basic value from the JNDI [\" +\n context.lookup(\"basic2/bob\") + \"]\");\n }\n \n try {\n context.bind(\"java:network/env/test\",\"fred\");\n fail(\"This should have thrown as only relative urls can be used \" +\n \"JNDI\");\n } catch (NamingException ex) {\n // ignore\n }\n \n try {\n context.unbind(\"java:network/env/test\");\n fail(\"This should have thrown as only relative urls can be used \" +\n \"JNDI\");\n } catch (NamingException ex) {\n // ignore\n }\n context.rebind(\"basic\",\"test1\");\n context.rebind(\"basic2/bob\",\"test2\");\n \n if (context.lookup(\"basic\") != null) {\n fail(\"Could not retrieve the basic value from the JNDI\");\n }\n if (context.lookup(\"basic2/bob\") != null) {\n fail(\"Could not retrieve the basic value from the JNDI\");\n }\n \n context.unbind(\"basic\");\n context.unbind(\"basic2/bob\");\n \n try{\n context.lookup(\"basic2/bob\");\n fail(\"The basic bob value could still be found\");\n } catch (NameNotFoundException ex) {\n // ignore\n }\n \n NamingDirector.getInstance().shutdown();\n }", "private void updateContext(ClientContext context,\r\n IOMSG ioMsg, String message) throws Exception\r\n {\r\n int index = 0;\r\n\r\n for (TwoPlayerClientContext tp : serverContext.getContextList())\r\n {\r\n if (tp.equals(context))\r\n {\r\n messageQueue.appendText(\"Updating context for \" + tp.getClientID() + \"\\n\");\r\n tp.setMessage(message);\r\n tp = (TwoPlayerClientContext) context;\r\n transmitData(ioMsg, context, index);\r\n }\r\n index++;\r\n }\r\n }", "public abstract void interrupt();", "protected void cleanup(Context context\n\t ) throws IOException, InterruptedException {\n\t // NOTHING\n\t }", "public boolean isATMReadyTOUse() throws java.lang.InterruptedException;", "public void interrupt();", "@java.lang.Override public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n }", "public interface DeviceContextChangeListener {\n\n /**\n * Notification about start phase in device context, right after successful handshake\n * @param nodeId\n * @param success or failure\n */\n void deviceStartInitializationDone(final NodeId nodeId, final boolean success);\n\n /**\n * Notification about start phase in device context, after all other contexts initialized properly\n * @param nodeId\n * @param success\n */\n void deviceInitializationDone(final NodeId nodeId, final boolean success);\n\n}", "public synchronized void waitUntilApplicationContextIsReady() {\n // if we are in the same thread, waiting probably doesn't make sense, so we have to check\n // this.\n if (Thread.currentThread().getId() != this.m_creatorThreadId) {\n // access from another thread -> wait\n while (!this.m_applicationContextIsReady) {\n try {\n DefaultDaoRegistry.s_logger\n .debug(\"Waiting for Spring context to be fully initialized.\");\n this.wait();\n } catch (final InterruptedException e) {\n DefaultDaoRegistry.s_logger\n .debug(\"Interrupted: Application context might be ready now.\");\n }\n }\n }\n // context might be ready but caller got the contextRefreshed-event earlier than we did.\n if (!this.m_applicationContextIsReady) {\n if (this.m_applicationContext instanceof RefreshableModuleApplicationContext) {\n final RefreshableModuleApplicationContext context = (RefreshableModuleApplicationContext) this.m_applicationContext;\n this.m_applicationContextIsReady = context.isRefreshed();\n }\n }\n if (!this.m_applicationContextIsReady) {\n CoreNotificationHelper\n .notifyMisconfiguration(\"Trying to get DAOs before Spring context is \"\n + \"fully initialized. Some DAOs might not be found. \"\n + \"Implement ch.vd.seven.semis.dao.el4j.core.context.ModuleApplicationListener to get notified as soon \"\n + \"Spring context is fully initialized\");\n }\n }", "void process(CatapultContext context) throws InvalidCatapultStateException;", "protected IOContext _createContext(Object srcRef, boolean resourceManaged)\n/* */ {\n/* 1513 */ return new IOContext(_getBufferRecycler(), srcRef, resourceManaged);\n/* */ }", "CTX_Context getContext();", "@Override\n public void select(Menu context) {\n updateControllable(context);\n currentStructure.assignWorkersToPowerHarvest(context.getFocus(), PopUpMenuWindow.WorkerMenu());\n }", "private void requestHandler(Object context)\n {\n final String funcName = \"requestHandler\";\n @SuppressWarnings(\"unchecked\")\n TrcRequestQueue<Request>.RequestEntry entry = (TrcRequestQueue<Request>.RequestEntry) context;\n Request request = entry.getRequest();\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.TASK, \"request=%s\", request);\n }\n\n request.canceled = entry.isCanceled();\n if (!request.canceled)\n {\n if (request.readRequest)\n {\n request.buffer = readData(request.address, request.length);\n if (debugEnabled)\n {\n if (request.buffer != null)\n {\n dbgTrace.traceInfo(funcName, \"readData(addr=0x%x,len=%d)=%s\",\n request.address, request.length, Arrays.toString(request.buffer));\n \n }\n }\n }\n else\n {\n request.length = writeData(request.address, request.buffer, request.length);\n }\n }\n\n if (request.completionEvent != null)\n {\n request.completionEvent.set(true);\n }\n\n if (request.completionHandler != null)\n {\n request.completionHandler.notify(request);\n }\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.TASK);\n }\n }", "ContextBucket getContext() {\n\treturn context;\n }", "@Test\n public void testAnnoSuportedContext() throws Throwable\n {\n testAnnoDeployment(SupportedContextResourceAdapter.class);\n }", "public void testUnsetOfInterruptStatus(boolean strict) throws InterruptedException {\n DetectingAndInterruptingRunnable detector = new DetectingAndInterruptingRunnable();\n\n newRunningRepeater(strict, new RepeatableRunnable(detector),1);\n\n //give the runnable some time to runWork.\n giveOthersAChance();\n\n //this test could fail because the interrupt status could be set from the outside.\n //But till so far I haven't had any problems. \n detector.assertNoInterruptFound();\n }", "private void awaitItems() throws IgniteInterruptedCheckedException {\n U.await(takeLatch);\n }", "private static void setupServerContext(){\n\n serverContext.set(new ServerContext());\n serverContext.get().bgThreadIds = new int[GlobalContext.getNumTotalBgThreads()];\n serverContext.get().numShutdownBgs = 0;\n serverContext.get().serverObj = new Server();\n\n }", "public void acquire(PriorityQueue waitQueue) \n {\n waitQueue = null;\n donation = 0;\n lastEffectivePriority = -1; //Need to recalculate the effectivePriority as the leaving thread might take off its donation effects or \n //the thread is acquiring the resource and needs to calculate the effective priority for the first time.\n }", "public interface ResourceInterface {\n\n /**\n * A process can arrive at a resource or finish using it.\n * These are the two methods to handle these occurances.\n */\n /**arrivingProcess handles the event of a process arriving to a resource for service\n * This method is handled differently depending on whether the resource is exclusive or not\n * @param theProcess process the process that has arrived at the resource for service\n * @param time int The global time at which the process has arrived to the resource\n */\n void arrivingProcess(process theProcess, int time);\n\n /**finishService handles the event of a process finishing using the resource.\n * This method is called in the scheduler to insert the returned process back into the ready queue.\n * This method is different for exclusive and inclusive resources.\n *\n * @return Process The process that has finishing using the resource\n */\n process finishService ();\n\n /**\n * additional methods for updating resource object\n */\n\n /**updateNextUnblockTime mutates NextUnblockTime to be equal to the given time\n *\n * @param t int the given time\n */\n void updateNextUnblockTime(int t);\n\n /**updateIdleTime increments the IdleTime by the given int\n *\n * @param T int the amount of time the resource was idle\n */\n void updateIdleTime(int T);\n\n /**updateActiveTime increment the ActiveTime by the given time\n *\n * @param T The amount of time the resource was active\n */\n void updateActiveTime(int T);\n\n /**\n * toString formats important information about resource into a string for debugging purposes\n */\n String toString();\n\n /**\n * getters for resource\n */\n String getType();\n int getNextUnblockTime();\n int getStartIdleTime();\n int getActiveTime();\n int getIdleTime();\n process getServingProcess();\n int getCount();\n int getMaxCount();\n int getNumOfBlocks();\n int getTotalBlockTime();\n int getStartWaitTime();\n int getWaitTime();\n}", "void setContainerStatusInProgress(RuleContextContainer rccContext)\r\n throws StorageProviderException;", "public void softwareResources() {\n\t\t\r\n\t}", "public synchronized int entranceReqStud(int id, int i, int index) {\n\t\tSystem.out.println(\"Sono lo studete \" + id + \" provo a occupare un computer.\");\n\t\twhile(busy == size) {\n\t\t\ttry {\n\t\t\t\twait();\n\t\t\t} catch (InterruptedException e) {}\n\t\t}\n\t\tSystem.out.println(\"Sono lo studete \" + id + \" eseguo la richiesta \"+i);\n\t\twhile(computers.get(index) == 1) index++;\n\t\tcomputers.set(index, 1);\n\t\tbusy++;\n\t\treturn index;\n\t}", "@GET(\"/_matrix/client/r0/rooms/{roomId}/context/{eventId}\")\n EventContextResponse context(@Path(\"roomId\") String roomId, @Path(\"eventId\") String eventId, @Query(\"limit\") Integer limit);", "public void timerInterrupt() {\n\n\t\tMachine.interrupt().disable();\n\n\t\t//while loop the threads in the TreeSet\n\t\twhile(!theThreads.isEmpty()) {\n\t\t\tPair curr_thread = theThreads.first(); //Fetch the first (lowest wakeTime) on the list\n\n\t\t\tif(curr_thread.wakeTime < Machine.timer().getTime()) { //Is the wakeTime for that thread < current time\n\t\t\t\ttheThreads.pollFirst(); //Remove it from the TreeSet, curr_thread holds it still.\n\t\t\t\tcurr_thread.thread.ready(); //Ready that thread\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbreak; //break the loop, not ready yet.\n\t\t\t}\n\t\t}\n\t\tMachine.interrupt().enable();\n\t\tKThread.yield(); //Yield the current thread.\n\t}", "public Context getNextContext() {\n Context c;\n int index = 1;\n boolean value = true;\n\n do {\n c = this.surveyContext.get(index);\n\n if (!c.isComplete()) {\n value = false;\n }\n\n index++;\n } while (index <= this.surveyContext.values().size() && value);\n\n return c;\n }", "@Override\n public boolean shutdownProviderInstances(PhysicalNetworkServiceProvider provider, ReservationContext context) throws ConcurrentOperationException,\n ResourceUnavailableException {\n return true;\n }", "public static boolean checkResources(){\n for(Instruction i : waitingList){\n if(resourceArr[i.resourceType - 1] >= i.resourceAmount){\n return true;\n }\n }\n for(int i = 0 ; i < taskPointers.length; i ++){\n int pointerIndex = taskPointers[i];\n Task currTask = taskList.get(i);\n if(currTask.terminateTime == - 1 && (currTask.isAborted == false) && Collections.disjoint(waitingList, currTask.instructionList)){\n Instruction currInstruction = currTask.instructionList.get(pointerIndex);\n Type instructionType = currInstruction.instructionType;\n int resourceType = currInstruction.resourceType;\n if(instructionType != Type.request){\n return true;\n }else{\n if(resourceArr[currInstruction.resourceType - 1] >= currInstruction.resourceAmount){\n return true;\n }\n }\n }\n\n }\n return false;\n }", "public org.omg.CORBA.Context read_Context() {\n throw new org.omg.CORBA.NO_IMPLEMENT();\n }" ]
[ "0.6113385", "0.5694831", "0.5336117", "0.4981204", "0.48261213", "0.48224142", "0.48066968", "0.47734582", "0.46671724", "0.4653", "0.46507904", "0.46470216", "0.4646698", "0.46404824", "0.46167278", "0.45750886", "0.4570621", "0.4552233", "0.45516175", "0.45245188", "0.44990024", "0.4498595", "0.44902313", "0.446715", "0.4460918", "0.44529524", "0.44461793", "0.4446098", "0.44415185", "0.4420475", "0.44187483", "0.4398629", "0.43984503", "0.43765092", "0.43551767", "0.43406683", "0.43396056", "0.4337145", "0.43371364", "0.43308738", "0.43159646", "0.43120146", "0.43104732", "0.43081862", "0.43035367", "0.42938823", "0.42880425", "0.4284486", "0.42821693", "0.42802277", "0.42751148", "0.4272842", "0.42609334", "0.42594206", "0.425812", "0.42574766", "0.4256222", "0.4253968", "0.42531592", "0.42526463", "0.42484662", "0.42473525", "0.42312142", "0.42295697", "0.42274135", "0.4217019", "0.42012787", "0.41973764", "0.41958416", "0.4195292", "0.41883326", "0.4187184", "0.4183058", "0.41762522", "0.41569108", "0.41527656", "0.41485313", "0.41470513", "0.4144169", "0.41395405", "0.41341102", "0.41325334", "0.4131145", "0.41277167", "0.41257057", "0.41096723", "0.41084754", "0.4105965", "0.4105445", "0.4102538", "0.41015396", "0.40986297", "0.40944737", "0.40915817", "0.40847167", "0.40761662", "0.40756902", "0.40753", "0.4070972", "0.40695143" ]
0.6960322
0
Unreserves an IRQ context obtained from reserveIrqContext.
public static void unreserveIrqContext(int hClient, IntByReference context, NiRioStatus status) { mergeStatus( status, unreserveIrqContextFn.invokeInt(new Object[] { hClient, context.getValue() })); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void reserveIrqContext(int hClient, IntByReference context,\n\t\t\tNiRioStatus status) {\n\t\tmergeStatus(\n\t\t\t\tstatus,\n\t\t\t\treserveIrqContextFn.invokeInt(new Object[] { hClient,\n\t\t\t\t\t\tPointer.nativeValue(context.getPointer()) }));\n\t}", "public synchronized void abort(int trxnId)\n {\n ResourceManager rm;\n for (Enumeration e = transactionTouch.keys(); e.hasMoreElements();) {\n rm = (ResourceManager)e.nextElement();\n try {\n rm.abort(trxnId);\n } catch (Exception x)\n {\n System.out.println(\"EXCEPTION:\");\n System.out.println(x.getMessage());\n x.printStackTrace();\n }\n }\n transactionTouch.remove(trxnId);\n lm.UnlockAll(trxnId);\n }", "void deactivate() throws ResourceActivatorException, InterruptedException, ExecutionException;", "InterruptResource createInterruptResource();", "void unsetRequiredResources();", "void unsetRequestID();", "public void testUnsetOfInterruptStatus_relaxed() throws InterruptedException {\n testUnsetOfInterruptStatus(false);\n }", "public boolean unreserveItem(int id, String key)\n \t\tthrows RemoteException, TransactionAbortedException{\n \tReservableItem item = (ReservableItem) readData(id, key);\n \tif ( item == null ) {\n \t\tTrace.warn(\"RM::reserveItem( \" + id + \", \" + key+\") failed--item doesn't exist\" );\n \t\tthrow new TransactionAbortedException(id);\n \t}\n \tTrace.info(\"RM::unreserveItem(\" + id + \") has reserved \" + key + \"which is reserved\" + item.getReserved() + \" times and is still available \" + item.getCount() + \" times\" );\n \titem.setReserved(item.getReserved()-1);\n \titem.setCount(item.getCount()+1);\n \treturn true;\n }", "public void interrupt();", "public void removeTile(){\n\t\toccupied = false;\n\t\tcurrentTile = null;\n\t}", "public void evict(Object val) throws HibException;", "@Override\n public void unstall() {\n registers.get(rdIndex).unstall(id);\n }", "public void release(int ind) { \n if (ind >= maxId) {\n return;\n }\n int expandedInd = ind + maxId - 1;\n idPool.clear(expandedInd);\n setBitsInTree(expandedInd);\n }", "public void unScheduleItem(IItem item, BankFusionEnvironment env) {\n removeItem(item);\n }", "public void abort(int tid) {\n List<Lock> lockList = null;\n for (Integer varIndex : _lockTable.keySet()) {\n lockList = _lockTable.get(varIndex);\n int size = lockList.size();\n for (int i = size - 1; i >= 0; i--) {\n if (lockList.get(i).getTranId() == tid) {\n if (lockList.get(i).getType() == Lock.Type.WRITE) {\n _uncommitDataMap.remove(varIndex);\n }\n lockList.remove(i);\n break;\n }\n }\n }\n // remove this transaction from accessed list\n _accessedTransactions.remove(tid);\n }", "UntagResourceResult untagResource(UntagResourceRequest untagResourceRequest);", "@Override\n public UntagResourceResult untagResource(UntagResourceRequest request) {\n request = beforeClientExecution(request);\n return executeUntagResource(request);\n }", "@Override\n public UntagResourceResult untagResource(UntagResourceRequest request) {\n request = beforeClientExecution(request);\n return executeUntagResource(request);\n }", "@Override\n public UntagResourceResult untagResource(UntagResourceRequest request) {\n request = beforeClientExecution(request);\n return executeUntagResource(request);\n }", "@Override\r\n public void unsubscribe() {\n t.interrupt();\r\n }", "protected abstract void evict();", "public void clearInterrupt() {\n Object object = this.msgSync;\n synchronized (object) {\n this.msg = 0;\n }\n }", "void uncap();", "void deactivate(ConditionContext context);", "protected abstract void HandleInterrupts();", "void unlock(String resourceName) throws InterruptedException;", "private void clearRegisterRes() {\n if (rspCase_ == 7) {\n rspCase_ = 0;\n rsp_ = null;\n }\n }", "public void unregisterCriticalComponent(CriticalComponent criticalComponent);", "protected abstract void deAllocateNativeResource();", "String reclaim(String request) throws RemoteException;", "protected void interrupted() {\n\t\tL.ogInterrupt(this);\n\t}", "public static void remove() {\n contexts.remove();\n log.finest(\"FHIRRequestContext.remove invoked.\");\n }", "public void unregisterForUpdates(CtxAttributeIdentifier attrId);", "public BufferSlot remove();", "public void interrupt() {\n this.f3567pI.interrupt();\n }", "public abstract void interrupt();", "@Override\n\tpublic void unLock() {\n\t\t\n\t}", "public void unpin();", "public void unpin();", "public void removeResource(TIdentifiable resource) {\r\n\t int column = m_resources.getIndex(resource);\r\n\t if (column >= 0) {\r\n\t m_resources.removeID(resource);\r\n\t m_current_resources_count--;\r\n\t // shift the right columns left:\r\n\t for (int a=column; a < m_current_resources_count; a++)\r\n\t for (int b=0; b < m_current_users_count; b++) \r\n\t m_associations[a][b] = m_associations[a + 1][b];\r\n // clean up that last column:\t \r\n for (int b=0; b < m_current_users_count; b++)\r\n m_associations[m_current_resources_count][b] = null;\r\n\t }\t \r\n }", "public void unset(){\n\t\tcurrentInst = -1;\n\t}", "void evict(Object obj);", "public void interruptActive() {\n\t\tList<Thread> toInterrupt = registeredThreads.entrySet()\n\t\t\t.stream()\n\t\t\t.map(Map.Entry::getKey)\n\t\t\t.collect(Collectors.toList());\n\n\t\tinterrupt(toInterrupt);\n\t}", "private void unregister(final Intent intent) {\n\t\tLog.i(TAG, \"unregister(\" + intent.getAction() + \")\");\n\t\tsynchronized (this.pendingIOOps) {\n\t\t\tLog.d(TAG, \"currentIOOps=\" + this.pendingIOOps.size());\n\t\t\tfinal int l = this.pendingIOOps.size();\n\t\t\tif (l == 1) {\n\t\t\t\tthis.pendingIOOps.clear();\n\t\t\t} else {\n\t\t\t\tIntent oi;\n\t\t\t\tfor (int i = 0; i < l; i++) {\n\t\t\t\t\toi = this.pendingIOOps.get(i);\n\t\t\t\t\t// note that ConnectorSpec.equals will not work here because\n\t\t\t\t\t// not all intent types have ConnectorSpec bundle in them\n\t\t\t\t\tif (ConnectorCommand.equals(intent, oi)) {\n\t\t\t\t\t\tthis.pendingIOOps.remove(i);\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\tLog.d(TAG, \"currentIOOps=\" + this.pendingIOOps.size());\n\t\t\tif (this.pendingIOOps.size() == 0) {\n\t\t\t\t// set service to background\n\t\t\t\tif (this.mNM != null) {\n\t\t\t\t\tthis.mNM.cancel(NOTIFICATION_PENDING);\n\t\t\t\t}\n\t\t\t\tif (this.wakelock != null && this.wakelock.isHeld()) {\n\t\t\t\t\tthis.wakelock.release();\n\t\t\t\t}\n\t\t\t\t// stop unneeded service\n\t\t\t\t// this.stopSelf();\n\t\t\t}\n\t\t}\n\t}", "private static void releaseResources(int trans_id) {\n\n\n System.out.println(\"Releasing resources T\" + trans_id);\n // Remove the hold of transaction from the variables\n\n Iterator<Map.Entry<Integer, List<Integer>>> it = transaction_variable_map.entrySet().iterator();\n\n\n while (it.hasNext()) {\n Map.Entry<Integer, List<Integer>> pair = (Map.Entry<Integer, List<Integer>>) it.next();\n List<Integer> list = pair.getValue();\n if (list.contains(trans_id)) {\n // System.out.println(list.toString());\n List<Variable> variables = variable_copies_map.get(pair.getKey());\n for (Variable v : variables) {\n v.unlockVariable();\n }\n // System.out.println(trans);\n list.removeAll(Arrays.asList(trans_id));\n\n if (list.isEmpty()) {\n it.remove();\n }\n }\n\n\n }\n\n // remove from waiting operations\n Transaction txn = transactions.get(trans_id);\n\n Iterator<Tuple<Transaction, Operation>> iter = waitingOperations.iterator();\n while (iter.hasNext()) {\n // get transaction id\n\n // check if read or write operation\n Tuple<Transaction, Operation> t = iter.next();\n\n Transaction tx = t.x;\n if (tx.equals(txn)) {\n iter.remove();\n\n }\n\n }\n\n // Remove the transaction from the current set of transactions\n transactions.remove(trans_id);\n\n // Remove dependency edge if any\n DeadlockHandler.removeDependencyEdge(trans_id);\n\n }", "private void stopRequest(){ Remove the clause synchronized of the stopRequest method.\n // Synchronization is isolated as possible to avoid thread lock.\n // Note: the method removeRequest from SendQ is synchronized.\n // fix bug jaw.00392.B\n //\n synchronized(this){\n setRequestStatus(stAborted);\n }\n informSession.getSnmpQManager().removeRequest(this);\n synchronized(this){\n requestId=0;\n }\n }", "private void releaseGlobalLock( ConcurrentMap<Long, ForsetiLockManager.Lock> lockMap, long resourceId )\n {\n ForsetiLockManager.Lock lock = lockMap.get( resourceId );\n if( lock instanceof ExclusiveLock )\n {\n lockMap.remove( resourceId );\n }\n else if( lock instanceof SharedLock && ((SharedLock)lock).release(this) )\n {\n // We were the last to hold this lock, it is now dead and we should remove it.\n lockMap.remove( resourceId );\n }\n }", "private void cleanup() {\n\t\tTreeSet<CacheEntry> entries = new TreeSet<CacheEntry>(map.values());\n\t\tint i = region.getItemsToEvict();\n\t\tIterator<CacheEntry> it = entries.iterator();\n\t\twhile (it.hasNext() && i > 0) {\n\t\t\tremoveEntry(it.next());\n\t\t\ti--;\n\t\t}\n\t}", "public void timerInterrupt() {\n \tboolean istr = Machine.interrupt().disable();\n \t\n \twhile (sleepingThreads.size()>0 && sleepingThreads.peek().time <= Machine.timer().getTime()) {\n \t\tsleepingThreads.remove().ready();\n \t}\n \n \tKThread.yield();\n \t\n \t//Machine.interrupt().enable();\n \tMachine.interrupt().restore(istr);\n \n }", "public void unregisterState(IState state) {\n moduleCSM.unregisterState(state);\n threadPool.unregisterState(state);\n }", "public static void freeTag(int tag) {\n\t\tsynchronized (reservedTags) {\n\t\t\treservedTags.remove((Integer) tag);\n\t\t}\n\t}", "protected void cleanup(Context context\n\t ) throws IOException, InterruptedException {\n\t // NOTHING\n\t }", "@Override\r\n public void unfreeze(IAssignmentState state) {\n }", "public void useKey() {\n Key key = this.getInventory().getFirstKey();\n if (key != null){\n this.getInventory().removeItems(key);\n }\n }", "public static void pushUnregister(Context context) {\n PushRegistration.UnregisterTask task = new PushRegistration.UnregisterTask(context);\n executorService.submit(task);\n }", "static void clearRequest(long requestId)\n {\n requestMap.remove(requestId);\n }", "public void removeLocalVariable(LocalVariableGen lvg) {\n/* 183 */ this._slotAllocator.releaseSlot(lvg);\n/* 184 */ super.removeLocalVariable(lvg);\n/* */ }", "@Override\n\tpublic ItemStack removeStackFromSlot(int index) {\n\t\treturn null;\n\t}", "public void abort() {\n reservedSpace.clear();\n this.abortRequested = true;\n stop();\n }", "void evictFromCache( Long id );", "public void interrupt() {\n interrupted.set(true);\n Thread.currentThread().interrupt();\n }", "public void unregisterItem(Item i) {\n\t\ti.remove();\n\t\tsetLocation(i, i.getLocation(), null);\n\t}", "void removeExecution(ExecutionContext context, int exeId) throws ExecutorException;", "public void removeByequip_id(long equip_id);", "@Override\r\n\tpublic void unsetResource(ResourceType resource) {\n\t\t\r\n\t}", "public void i() {\n if (this.e != null) {\n this.e.cancel();\n this.e = null;\n }\n if (this.d != null) {\n this.d.cancel();\n this.d.purge();\n this.d = null;\n }\n }", "protected void unmaskSlot(int slot) {\n\t\tif (slot >= 0 && slot < this.length) {\n\t\t\tthis.mask[slot] = false;\n\t\t\tthis.unrevealedSlots--;\n\t\t}\n\t}", "public void unfreeze() {\n\t\tthis.__freezed = false;\n\t}", "public void IRQChange(IRQChangeEvent evt);", "public void interrupt() {\n close();\n }", "public abstract void unregister();", "public void unassignEnergyToShip(AbstractObject source) {\n\t\tenergyToShip.remove(source.getId());\n\t}", "public void processUntilShutdownUninterruptibly() {\n this.uiThreadScheduler.processUntilShutdownUninterruptibly();\n }", "private void releaseHttpRequest(\r\n \t\t\tHttpServletRequestEvent hreqEvent) {\r\n \t\t\r\n \t\tif (logger.isDebugEnabled()) {\r\n \t\t\tlogger.debug(\"releaseHttpRequest() enter\");\r\n \t\t}\r\n \t\t\r\n \t\tObject lock = requestLock.removeLock(hreqEvent);\r\n \t\tif (lock != null) {\r\n \t\t\tsynchronized (lock) {\r\n \t\t\t\tlock.notify();\r\n \t\t\t}\r\n \t\t}\r\n \t\telse {\r\n \t\t\tlogger.warn(\"unable to wake up blocked servlet thread, did not found the lock for event \"+hreqEvent);\r\n \t\t}\r\n \r\n \t\tif (logger.isDebugEnabled()) {\r\n \t\t\tlogger.debug(\"releaseHttpRequest() exit\");\r\n \t\t}\r\n \t}", "public synchronized void unRegisterObject(Object object)\r\n {\r\n removeObjectFromMaps(object);\r\n }", "@Override\n\tpublic void removeInUse() {\n\t\theldObj.removeInUse();\n\t}", "public void unsubscribeSwitchState() {\n\t\t\n\t}", "@Override\n\tpublic void contextDestroyed(ServletContextEvent contextEvent) {\n t.interrupt();\n\t\t\n\t}", "public void freeTexture(final int id){\n\t\t//android.util.Log.d(TAG,\"freeTexture(\"+id+\")\");\n\t\tthis.textures.remove(id);\n\t}", "@Override\n public void unlock(int myId) {\n Y = -1; \n flag[myId] = false;\n \n }", "public void evict(Object po)\n {\n}", "void removeRowsLock();", "void evictedElement(T key);", "public final void invalidate()\n\t{\n\t\tresource = null;\n\t}", "public void unlock() {\n int id = ThreadID.get();\n \n this.levels[id].set(0);\n\n }", "protected void interrupted() {\n \tRobotMap.gearIntakeRoller.set(0);\n }", "public void leave() throws InterruptedException {\n inship.clear();\n // your code here\n\n }", "public void removeContext(LoggerContext context) {\n/* 86 */ for (Map.Entry<String, AtomicReference<WeakReference<LoggerContext>>> entry : CONTEXT_MAP.entrySet()) {\n/* 87 */ LoggerContext ctx = ((WeakReference<LoggerContext>)((AtomicReference<WeakReference<LoggerContext>>)entry.getValue()).get()).get();\n/* 88 */ if (ctx == context) {\n/* 89 */ CONTEXT_MAP.remove(entry.getKey());\n/* */ }\n/* */ } \n/* */ }", "void unregister(String uuid);", "void unregister(String policyId);", "private void releaseAssignedResource(@Nullable Throwable cause) {\n\n\t\tassertRunningInJobMasterMainThread();\n\n\t\tfinal LogicalSlot slot = assignedResource;\n\n\t\tif (slot != null) {\n\t\t\tComponentMainThreadExecutor jobMasterMainThreadExecutor =\n\t\t\t\tgetVertex().getExecutionGraph().getJobMasterMainThreadExecutor();\n\n\t\t\tslot.releaseSlot(cause)\n\t\t\t\t.whenComplete((Object ignored, Throwable throwable) -> {\n\t\t\t\t\tjobMasterMainThreadExecutor.assertRunningInMainThread();\n\t\t\t\t\tif (throwable != null) {\n\t\t\t\t\t\treleaseFuture.completeExceptionally(throwable);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treleaseFuture.complete(null);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t} else {\n\t\t\t// no assigned resource --> we can directly complete the release future\n\t\t\treleaseFuture.complete(null);\n\t\t}\n\t}", "private void unregister() {\n Intent regIntent = new Intent(REQUEST_UNREGISTRATION_INTENT);\n regIntent.setPackage(GSF_PACKAGE);\n regIntent.putExtra(\n EXTRA_APPLICATION_PENDING_INTENT, PendingIntent.getBroadcast(context, 0, new Intent(), 0));\n setUnregisteringInProcess(true);\n context.startService(regIntent);\n }", "public void interrupt() {\r\n ServerLogger.log(this.myID + \" interrupt()\");\r\n this.run = false;\r\n //super.interrupt(); //To change body of overridden methods use File | Settings | File Templates.\r\n }", "public synchronized void evict()\n {\n // push next flush out to avoid attempts at multiple simultaneous\n // flushes\n deferFlush();\n\n // walk all buckets\n SafeHashMap.Entry[] aeBucket = m_aeBucket;\n int cBuckets = aeBucket.length;\n for (int iBucket = 0; iBucket < cBuckets; ++iBucket)\n {\n // walk all entries in the bucket\n Entry entry = (Entry) aeBucket[iBucket];\n while (entry != null)\n {\n if (entry.isExpired())\n {\n removeExpired(entry, true);\n }\n entry = entry.getNext();\n }\n }\n\n // schedule next flush\n scheduleFlush();\n }", "public void interruptTask() {\n }", "public void interruptTask() {\n }", "public final void cancelResv() {\n ApiUtil.getApi2().cancelCourseResv(this.reserveId).compose(RxUtil.applyIO()).subscribe(new MyResvDetailActivity$cancelResv$1(this, this));\n }", "final void interruptTask() {\n/* 82 */ Thread currentRunner = this.runner;\n/* 83 */ if (currentRunner != null) {\n/* 84 */ currentRunner.interrupt();\n/* */ }\n/* 86 */ this.doneInterrupting = true;\n/* */ }", "@Override\n\tpublic void abortWorkItem(WorkItem arg0, WorkItemManager arg1) {\n\t}", "void delistResource(ExoResource xares) throws RollbackException, SystemException;" ]
[ "0.5597856", "0.5160783", "0.5131465", "0.502584", "0.50057083", "0.4894409", "0.48910454", "0.48501003", "0.48421758", "0.48134014", "0.48051155", "0.47462004", "0.47395825", "0.46721745", "0.46653777", "0.46647355", "0.46415487", "0.46415487", "0.46415487", "0.46335143", "0.4628514", "0.4623831", "0.46194506", "0.4616483", "0.46101326", "0.4591296", "0.45889524", "0.45745134", "0.45717698", "0.45664883", "0.45653716", "0.4564781", "0.45493308", "0.45463103", "0.45425674", "0.45399323", "0.4538259", "0.45302063", "0.45302063", "0.4528794", "0.4522669", "0.45217335", "0.45154744", "0.4510448", "0.44996008", "0.44865733", "0.44792628", "0.44568682", "0.44536614", "0.44493845", "0.44479194", "0.443972", "0.44255328", "0.44251516", "0.44226405", "0.44186985", "0.4417948", "0.44074416", "0.4401242", "0.4401088", "0.43990278", "0.43915653", "0.43838793", "0.4369456", "0.4361706", "0.43590197", "0.43579388", "0.43452635", "0.43427983", "0.43420652", "0.43415385", "0.4340356", "0.43259498", "0.431391", "0.43134484", "0.43010083", "0.42975584", "0.42966297", "0.42929563", "0.4288975", "0.42871097", "0.42851985", "0.42819783", "0.42809716", "0.42804223", "0.42769733", "0.4272202", "0.42708483", "0.42700028", "0.42699242", "0.42688993", "0.42654106", "0.42635658", "0.42591256", "0.42563924", "0.42563924", "0.42561427", "0.42560205", "0.42545897", "0.4249548" ]
0.72571605
0
This is a blocking function that stops the calling thread until the FPGA asserts any IRQ in the irqs parameter, or until the function call times out. Before calling this function, you must use NiFpga_ReserveIrqContext to reserve an IRQ context. No other threads can use the same context when this function is called. You can use the irqsAsserted parameter to determine which IRQs were asserted for each function call.
public static synchronized int waitOnIrqs(int hClient, IntByReference context, int irqs, int timeout, NiRioStatus status) { irqsAsserted.setValue(0); mergeStatus( status, waitOnIrqsFn.invokeInt(new Object[] { hClient, context.getValue(), irqs, timeout, Pointer.nativeValue(irqsAsserted.getPointer()), 0 })); return irqsAsserted.getValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void interrupt();", "public void timerInterrupt() \n {\n\t\n Machine.interrupt().disable(); //disable\n\n //if waitingQueue is empty, and current time is greater than or equal to the first ThreadWaits, wakeUp time,\n while(!waitingQueue.isEmpty() && (waitingQueue.peek().wakeUp < Machine.timer().getTime()\n || waitingQueue.peek().wakeUp == Machine.timer().getTime())) {\n waitingQueue.poll().thread.ready(); //pop head\n }\n\n KThread.currentThread().yield();\n\n Machine.interrupt().enable(); //enable\n\n }", "public abstract void interrupt();", "public void timerInterrupt() {\n\n\t\tMachine.interrupt().disable();\n\n\t\t//while loop the threads in the TreeSet\n\t\twhile(!theThreads.isEmpty()) {\n\t\t\tPair curr_thread = theThreads.first(); //Fetch the first (lowest wakeTime) on the list\n\n\t\t\tif(curr_thread.wakeTime < Machine.timer().getTime()) { //Is the wakeTime for that thread < current time\n\t\t\t\ttheThreads.pollFirst(); //Remove it from the TreeSet, curr_thread holds it still.\n\t\t\t\tcurr_thread.thread.ready(); //Ready that thread\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbreak; //break the loop, not ready yet.\n\t\t\t}\n\t\t}\n\t\tMachine.interrupt().enable();\n\t\tKThread.yield(); //Yield the current thread.\n\t}", "public void checkInterruption() throws InterruptedException ;", "protected abstract void HandleInterrupts();", "public void timerInterrupt() {\n \tboolean istr = Machine.interrupt().disable();\n \t\n \twhile (sleepingThreads.size()>0 && sleepingThreads.peek().time <= Machine.timer().getTime()) {\n \t\tsleepingThreads.remove().ready();\n \t}\n \n \tKThread.yield();\n \t\n \t//Machine.interrupt().enable();\n \tMachine.interrupt().restore(istr);\n \n }", "public final void serviceIRQorNMI() {\r\n // NMI requested?\r\n if (this.isNMILow && !this.lastNMIState) {\r\n // we need seven cycles just like for a BRK operation\r\n this.cycles += 7;\r\n // execute the interrupt routine\r\n serviceInterrupt(0xfffa);\r\n // IRQ requested?\r\n } else if (this.isIRQLow) {\r\n // is the interrupt allowed?\r\n if (!this.interruptFlag) {\r\n // we need seven cycles just like for a BRK operation\r\n this.cycles += 7;\r\n // execute the interrupt routine\r\n serviceInterrupt(0xfffe);\r\n }\r\n // we no longer have to check for interrupts as all NMI/IRQ requests have been serviced\r\n this.isCheckInterrupt = false;\r\n }\r\n // remember last NMI state in order to check on next\r\n this.lastNMIState = this.isNMILow;\r\n }", "public void waitUntil(long x) {\n\n\tlong wakeTime = Machine.timer().getTime() + x;\n\tboolean intrState = Machine.interrupt().disable();\n\tKThread.currentThread().time = wakeTime;\n\tsleepingThreads.add(KThread.currentThread());\n\tKThread.currentThread().sleep();\n Machine.interrupt().restore(intrState);\n \n }", "public void IRQChange(IRQChangeEvent evt);", "public void interrupt() {\n this.f3567pI.interrupt();\n }", "@Test\n public void testIfThreadsAreBlockedIfThereIsNothinginQueue() throws InterruptedException {\n \t\n \tqueue.addUserRequest(createUserRequest(1, 10, ElevatorDirection.UP));\n \tqueue.addUserRequest(createUserRequest(1, 8, ElevatorDirection.UP));\n \t\n final Thread t = startTestThread( new TestRunnable() {\n\t\t\t@Override\n\t\t\tprotected void runTestThread() throws Throwable {\n\t\t\t\tfor (int i = 0; i < 2; ++i) {\n\t\t\t\t\tAssert.assertNotNull(queue.pickRequest(1, ElevatorDirection.UP));\n\t\t\t\t\tlogger.debug(\"Picked Element Fron Queue\");\n }\n\t\t\t\tThread.currentThread().interrupt();\n try {\n \tqueue.pickRequest(1, ElevatorDirection.UP);\n Assert.assertFalse(true);\n } catch (InterruptedException success) {\n \tlogger.debug(\"Thread Interrupted\");\n }\n Assert.assertFalse(Thread.interrupted());\n\t\t\t}\n\t\t});\n t.start();\n \n }", "public void testUnsetOfInterruptStatus_relaxed() throws InterruptedException {\n testUnsetOfInterruptStatus(false);\n }", "public void initGpioInterrupt() throws InterruptedException {\n\n //System.out.println(\"<--Pi4J--> GPIO interrupt test program\");\n\n // setup wiringPi\n if (Gpio.wiringPiSetup() == -1) {\n //System.out.println(\" ==>> GPIO SETUP FAILED\");\n return;\n }\n\n // configure pins as input pins\n Gpio.pinMode(0, Gpio.INPUT) ;\n\n // configure pins with pull down resistance\n Gpio.pullUpDnControl(0, Gpio.PUD_UP);\n\n // here is another approach using a custom callback class/instance instead of an anonymous method\n InterruptCallback risingCallbackInstance = new InterruptCallback(\"RISING\");\n\n // setup a pin interrupt callbacks for pin 2\n Gpio.wiringPiISR(0, Gpio.INT_EDGE_FALLING, risingCallbackInstance);\n //Gpio.wiringPiISR(0, Gpio.INT_EDGE_BOTH, risingCallbackInstance);\n\n // wait for user to exit program\n //System.console().readLine(\"Press <ENTER> to exit program.\\r\\n\");\n }", "public void testUnsetOfInterruptStatus(boolean strict) throws InterruptedException {\n DetectingAndInterruptingRunnable detector = new DetectingAndInterruptingRunnable();\n\n newRunningRepeater(strict, new RepeatableRunnable(detector),1);\n\n //give the runnable some time to runWork.\n giveOthersAChance();\n\n //this test could fail because the interrupt status could be set from the outside.\n //But till so far I haven't had any problems. \n detector.assertNoInterruptFound();\n }", "public boolean isInterruptible() {\n/* 31 */ return true;\n/* */ }", "public boolean isInterruptible();", "public static void main(String[] args) throws InterruptedException {\n InterruptRethrow thread = new InterruptRethrow();\n thread.start();\n Thread.sleep(3000);\n // let me interrupt\n log.info(\"let me interrupt the task thread:D\");\n thread.interrupt();\n log.info(\"task thread interrupted? \" + thread.isInterrupted());\n }", "public void waitUntil(long x){\n\n Machine.interrupt().disable(); //disable interrupts\n\n\t long wakeTime; \n wakeTime = Machine.timer().getTime() ;\n wakeTime = wakeTime + x; //calculate wakeTime\n\n //pass through wakeTime and current thread as instance variables for a\n ThreadWait a;\n a = new ThreadWait(wakeTime, KThread.currentThread());\n\n waitingQueue.add(a); //add a to the waitingQueue \n\n KThread.currentThread().sleep(); //sleep current thread\n\n Machine.interrupt().enable(); //enable interrupts\n }", "public final void setIRQ(final IOChip ioChip, final boolean state) {\r\n if (setSignal(this.irqs, ioChip, state)) {\r\n final boolean setIRQ = !this.irqs.isEmpty();\r\n\r\n if (!this.isIRQLow && setIRQ) {\r\n this.isCheckInterrupt = true;\r\n }\r\n this.isIRQLow = setIRQ;\r\n }\r\n }", "private void ignoringInterrupts( ThrowingAction<InterruptedException> action )\n {\n try\n {\n action.apply();\n }\n catch ( InterruptedException e )\n {\n log.warn( \"Unexpected interrupt\", e );\n }\n }", "public void CHECK_IRQ_LINES() {\n if (konamilog != null) {\n fprintf(konamilog, \"konami#%d irq_lines_en :PC:%d,PPC:%d,A:%d,B:%d,D:%d,DP:%d,U:%d,S:%d,X:%d,Y:%d,CC:%d,EA:%d\\n\", cpu_getactivecpu(), konami.pc, konami.ppc, A(), B(), konami.d, konami.dp, konami.u, konami.s, konami.x, konami.y, konami.cc, ea);\n }\n if (konami.irq_state[KONAMI_IRQ_LINE] != CLEAR_LINE || konami.irq_state[KONAMI_FIRQ_LINE] != CLEAR_LINE) {\n konami.int_state &= ~KONAMI_SYNC; /* clear SYNC flag */\n\n if (konamilog != null) {\n fprintf(konamilog, \"konami#%d irq_lines_0 :PC:%d,PPC:%d,A:%d,B:%d,D:%d,DP:%d,U:%d,S:%d,X:%d,Y:%d,CC:%d,EA:%d\\n\", cpu_getactivecpu(), konami.pc, konami.ppc, A(), B(), konami.d, konami.dp, konami.u, konami.s, konami.x, konami.y, konami.cc, ea);\n }\n }\n if (konami.irq_state[KONAMI_FIRQ_LINE] != CLEAR_LINE && ((konami.cc & CC_IF) == 0)) {\n /* fast IRQ */\n /* HJB 990225: state already saved by CWAI? */\n if ((konami.int_state & KONAMI_CWAI) != 0) {\n konami.int_state &= ~KONAMI_CWAI; /* clear CWAI */\n\n konami.extra_cycles += 7;\t\t /* subtract +7 cycles */\n\n } else {\n konami.cc &= ~CC_E;\t\t\t\t/* save 'short' state */\n\n PUSHWORD(konami.pc);\n PUSHBYTE(konami.cc);\n konami.extra_cycles += 10;\t/* subtract +10 cycles */\n\n }\n konami.cc |= CC_IF | CC_II;\t\t\t/* inhibit FIRQ and IRQ */\n\n konami.pc = RM16(0xfff6);\n change_pc16(konami.pc);\n konami.irq_callback.handler(KONAMI_FIRQ_LINE);\n if (konamilog != null) {\n fprintf(konamilog, \"konami#%d irq_lines_a :PC:%d,PPC:%d,A:%d,B:%d,D:%d,DP:%d,U:%d,S:%d,X:%d,Y:%d,CC:%d,EA:%d\\n\", cpu_getactivecpu(), konami.pc, konami.ppc, A(), B(), konami.d, konami.dp, konami.u, konami.s, konami.x, konami.y, konami.cc, ea);\n }\n } else if (konami.irq_state[KONAMI_IRQ_LINE] != CLEAR_LINE && ((konami.cc & CC_II) == 0)) {\n /* standard IRQ */\n /* HJB 990225: state already saved by CWAI? */\n if ((konami.int_state & KONAMI_CWAI) != 0) {\n konami.int_state &= ~KONAMI_CWAI; /* clear CWAI flag */\n\n konami.extra_cycles += 7;\t\t /* subtract +7 cycles */\n\n } else {\n konami.cc |= CC_E; \t\t\t\t/* save entire state */\n\n PUSHWORD(konami.pc);\n PUSHWORD(konami.u);\n PUSHWORD(konami.y);\n PUSHWORD(konami.x);\n PUSHBYTE(konami.dp);\n PUSHBYTE(B());\n PUSHBYTE(A());\n PUSHBYTE(konami.cc);\n konami.extra_cycles += 19;\t /* subtract +19 cycles */\n\n }\n konami.cc |= CC_II;\t\t\t\t\t/* inhibit IRQ */\n\n konami.pc = RM16(0xfff8);\n change_pc16(konami.pc);\n konami.irq_callback.handler(KONAMI_IRQ_LINE);\n if (konamilog != null) {\n fprintf(konamilog, \"konami#%d irq_lines_b :PC:%d,PPC:%d,A:%d,B:%d,D:%d,DP:%d,U:%d,S:%d,X:%d,Y:%d,CC:%d,EA:%d\\n\", cpu_getactivecpu(), konami.pc, konami.ppc, A(), B(), konami.d, konami.dp, konami.u, konami.s, konami.x, konami.y, konami.cc, ea);\n }\n }\n\n }", "private static void checkAndThrowInterruptedException()\n throws InterruptedException {\n if (Thread.currentThread().interrupted()) {\n throw new InterruptedException(\"Timed out before Hive call was made. \"\n + \"Your callTimeout might be set too low or Hive calls are \"\n + \"taking too long.\");\n }\n }", "@Override\n public void interruptWait() {\n _vcVlsi.cancelWaitForUpdates();\n }", "final protected void interrupt()\n {\n if (startTask != null)\n startTask.interruptAll();\n }", "private static void interruptWithException () {\n\n Thread thread = new Thread(() -> {\n try {\n System.out.println(\"start sleeping ...\");\n Thread.sleep(5000000);\n } catch (InterruptedException e) {\n System.out.println(\"interrupted from outside !\");\n }\n });\n\n thread.start();\n }", "@Override\n\tpublic void lockInterruptibly() throws InterruptedException {\n\t\t\n\t}", "@Override\n\tpublic void lockInterruptibly() throws InterruptedException {\n\t\t\n\t}", "private void runInterrupt(final JexlEngine jexl) throws Exception {\n List<Runnable> lr = null;\n final ExecutorService exec = Executors.newFixedThreadPool(2);\n try {\n final JexlContext ctxt = new TestContext();\n\n // run an interrupt\n final JexlScript sint = jexl.createScript(\"interrupt(); return 42\");\n Object t = null;\n Script.Callable c = (Script.Callable) sint.callable(ctxt);\n try {\n t = c.call();\n if (c.isCancellable()) {\n Assert.fail(\"should have thrown a Cancel\");\n }\n } catch (final JexlException.Cancel xjexl) {\n if (!c.isCancellable()) {\n Assert.fail(\"should not have thrown \" + xjexl);\n }\n }\n Assert.assertTrue(c.isCancelled());\n Assert.assertNotEquals(42, t);\n\n // self interrupt\n Future<Object> f = null;\n c = (Script.Callable) sint.callable(ctxt);\n try {\n f = exec.submit(c);\n t = f.get();\n if (c.isCancellable()) {\n Assert.fail(\"should have thrown a Cancel\");\n }\n } catch (final ExecutionException xexec) {\n if (!c.isCancellable()) {\n Assert.fail(\"should not have thrown \" + xexec);\n }\n }\n Assert.assertTrue(c.isCancelled());\n Assert.assertNotEquals(42, t);\n\n // timeout a sleep\n final JexlScript ssleep = jexl.createScript(\"sleep(30000); return 42\");\n try {\n f = exec.submit(ssleep.callable(ctxt));\n t = f.get(100L, TimeUnit.MILLISECONDS);\n Assert.fail(\"should timeout\");\n } catch (final TimeoutException xtimeout) {\n if (f != null) {\n f.cancel(true);\n }\n }\n Assert.assertNotEquals(42, t);\n\n // cancel a sleep\n try {\n final Future<Object> fc = exec.submit(ssleep.callable(ctxt));\n final Runnable cancels = () -> {\n try {\n Thread.sleep(200L);\n } catch (final Exception xignore) {\n\n }\n fc.cancel(true);\n };\n exec.submit(cancels);\n t = f.get(100L, TimeUnit.MILLISECONDS);\n Assert.fail(\"should be cancelled\");\n } catch (final CancellationException xexec) {\n // this is the expected result\n }\n\n // timeout a while(true)\n final JexlScript swhile = jexl.createScript(\"while(true); return 42\");\n try {\n f = exec.submit(swhile.callable(ctxt));\n t = f.get(100L, TimeUnit.MILLISECONDS);\n Assert.fail(\"should timeout\");\n } catch (final TimeoutException xtimeout) {\n if (f != null) {\n f.cancel(true);\n }\n }\n Assert.assertNotEquals(42, t);\n\n // cancel a while(true)\n try {\n final Future<Object> fc = exec.submit(swhile.callable(ctxt));\n final Runnable cancels = () -> {\n try {\n Thread.sleep(200L);\n } catch (final Exception xignore) {\n\n }\n fc.cancel(true);\n };\n exec.submit(cancels);\n t = fc.get();\n Assert.fail(\"should be cancelled\");\n } catch (final CancellationException xexec) {\n // this is the expected result\n }\n Assert.assertNotEquals(42, t);\n } finally {\n lr = exec.shutdownNow();\n }\n Assert.assertTrue(lr.isEmpty());\n }", "@Override\n public boolean isInterruptible() {\n return true;\n }", "public void interruptActive() {\n\t\tList<Thread> toInterrupt = registeredThreads.entrySet()\n\t\t\t.stream()\n\t\t\t.map(Map.Entry::getKey)\n\t\t\t.collect(Collectors.toList());\n\n\t\tinterrupt(toInterrupt);\n\t}", "final void interruptTask() {\n/* 82 */ Thread currentRunner = this.runner;\n/* 83 */ if (currentRunner != null) {\n/* 84 */ currentRunner.interrupt();\n/* */ }\n/* 86 */ this.doneInterrupting = true;\n/* */ }", "private void checkForIOInterrupt() {\r\n\t\t// If there is no interrupt to process, do nothing\r\n\t\tif (m_IC.isEmpty()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t// Retreive the interrupt data\r\n\t\tint[] intData = m_IC.getData();\r\n\t\t\r\n\t\t// Report the data if in verbose mode\r\n\t\tif (m_verbose) {\r\n\t\t\tSystem.out.println(\"CPU received interrupt: type=\" + intData[0]\r\n\t\t\t\t\t+ \" dev=\" + intData[1] + \" addr=\" + intData[2] + \" data=\"\r\n\t\t\t\t\t+ intData[3]);\r\n\t\t}\r\n\t\t\r\n\t\t// Dispatch the interrupt to the OS\r\n\t\tswitch (intData[0]) {\r\n\t\t\tcase InterruptController.INT_READ_DONE:\r\n\t\t\t\tm_TH.interruptIOReadComplete(intData[1], intData[2], intData[3]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase InterruptController.INT_WRITE_DONE:\r\n\t\t\t\tm_TH.interruptIOWriteComplete(intData[1], intData[2]);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"CPU ERROR: Illegal Interrupt Received.\");\r\n\t\t\t\tSystem.exit(-1);\r\n\t\t\t\tbreak;\r\n\t\t}// switch\r\n\t\t\r\n\t}", "public int ExternalInterruptCount() { return EXTERNAL_INTERRUPTS; }", "@Override\n\t\tpublic void interrupt() {\n\t\t\t\n\t\t\t///why is this method not called?????\n\t\t\tSystem.out.println(\"here\");\n\t\t\tsuper.interrupt();\n\t\t}", "protected abstract void doExternalInterrupt(int number);", "public void interrupt() {\r\n ServerLogger.log(this.myID + \" interrupt()\");\r\n this.run = false;\r\n //super.interrupt(); //To change body of overridden methods use File | Settings | File Templates.\r\n }", "InterruptResource createInterruptResource();", "public void testCase4_testInterruptParticipantImage() throws Throwable {\n TreeSet<String> emptyParticipantList = new TreeSet<String>();\n TreeSet<String> participantListOne = new TreeSet<String>();\n participantListOne.add(MOCK_NUMBER_ONE);\n TreeSet<String> participantListTwo = new TreeSet<String>();\n participantListTwo.add(MOCK_NUMBER_TWO);\n MockOnLoadImageFinishListener listener = new MockOnLoadImageFinishListener();\n MockOnLoadImageFinishListener listenerNext = new MockOnLoadImageFinishListener();\n ImageLoader.requestImage(participantListOne, listener);\n ImageLoader.requestImage(participantListTwo, listenerNext);\n listener.waitForImage();\n listenerNext.waitForImage();\n ImageLoader.getInstance().clearImageMap();\n ImageLoader.requestImage(participantListOne, listener);\n ImageLoader.requestImage(participantListTwo, listenerNext);\n getInstrumentation().waitForIdleSync();\n ImageLoader.interrupt(participantListTwo);\n ImageLoader.interrupt(participantListOne);\n ImageLoader.interrupt(emptyParticipantList);\n getInstrumentation().waitForIdleSync();\n }", "synchronized void askForCritical() {\n\nSC=true;\n\nwhile(!Jeton){\n\ttry{\nthis.wait();\n\t}catch( InterruptedException ie ){\n\t\t\n\t}\n}\n}", "@Override\n public void interrupt() {\n super.interrupt(); //To change body of generated methods, choose Tools | Templates.\n }", "public void interrupt() {\n interrupted.set(true);\n Thread.currentThread().interrupt();\n }", "public void waitUntil(long x) {\n\n\t\tMachine.interrupt().disable();\n\t\t//Create the pair object with current thread and its respective wake time.\n\t\tPair newPair = new Pair(KThread.currentThread(), Machine.timer().getTime() + x);\n\n\t\t//Initialize with the current thread and wakeTime\n\t\ttheThreads.add(newPair); //add to list\n\t\t\n\t\tKThread.sleep(); //put that thread to sleep....its waiting\n\t\tMachine.interrupt().enable();\n\n\n\t}", "public boolean stopKernels () throws InterruptedException {\n // Retrieve all the kernels started on the workspace\n Set keys = kernels.keySet();\n Iterator iterator = keys.iterator();\n\n // Create an executor service to launch the stop of every kernels in the same time and wait for every one\n // of them to be stopped.\n ExecutorService es = Executors.newCachedThreadPool();\n\n while(iterator.hasNext()){\n // Create the stop task for each kernel\n Kernel k = kernels.get(iterator.next());\n Runnable task = () -> {\n k.stop();\n };\n\n // Execute the stop task via the executor service\n es.execute(task);\n }\n\n es.shutdown();\n return es.awaitTermination(3, TimeUnit.MINUTES);\n }", "public void interrupt() {\n\t\tinterrupted = true;\n\t}", "public synchronized int entranceReqUnder(int id, int i, int index) {\n\t\tSystem.out.println(\"Sono il tesista \" + id + \" provo a occupare un computer.\");\n\t\twhile(computers.get(index) == 1) {\n\t\t\ttry {\n\t\t\t\twait();\n\t\t\t} catch (InterruptedException e) {}\n\t\t}\n\t\tSystem.out.println(\"Sono il tesista \" + id + \" eseguo la richiesta \"+i);\n\t\tcomputers.set(index, 1);\n\t\tbusy++;\n\t\treturn index;\n\t}", "public void interruptTask() {\n }", "public void interruptTask() {\n }", "public abstract void task() throws InterruptedException;", "@Override\n public void set_irq_callback(irqcallbacksPtr callback) {\n konami.irq_callback = callback;\n }", "@Override\n public synchronized void interrupt(int savedProgramCounter, int deviceNumber) {\n\n // leave this code here\n CheckValid.deviceNumber(deviceNumber);\n if (!machine.cpu.runProg) {\n return;\n }\n // end of code to leave\n saveRegisters(savedProgramCounter);\n setBaseLimit();\n \n machine.interruptRegisters.register[deviceNumber] = false;\n IORequest oldhead = waitQ[deviceNumber].remove();\n Process_Table[oldhead.prognum].status = ProcessState.ready;\n \n IORequest next =null;\n \n switch (deviceNumber) {\n case 0: { //keyboard\n\n }\n case 1: { //console\n // If the queue is not empty write to console\n if (!waitQ[deviceNumber].isEmpty()) {\n // setting next so that write console has something to write to and know what it is writing \n next = waitQ[deviceNumber].peek();\n writeConsole(next);\n\n }\n break;\n }\n\n case 2: { //disk1\n if (!waitQ[deviceNumber].isEmpty()) {\n //set next to the nextprocess that should be ran in the correct order\n next = SSTF(deviceNumber, oldhead);\n System.out.println(\"Program number \"+next.prognum);\n }\n if (!waitQ[deviceNumber].isEmpty()) {\n try {\n //if requestType is 0 its a write if rr is 1 its a read\n if (next.requestType == DeviceControllerOperations.WRITE) {\n write(next);\n\n } else {\n // System.out.println(\"WHY YOU DONT WORK\");\n read(next);\n }\n } catch (MemoryFault ex) {\n Logger.getLogger(OperatingSystem.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n \n\n }\n break;\n\n }\n case 3: { //disk2\n\n }\n\n }\n\n restoreRegisters();\n\n }", "public static void reserveIrqContext(int hClient, IntByReference context,\n\t\t\tNiRioStatus status) {\n\t\tmergeStatus(\n\t\t\t\tstatus,\n\t\t\t\treserveIrqContextFn.invokeInt(new Object[] { hClient,\n\t\t\t\t\t\tPointer.nativeValue(context.getPointer()) }));\n\t}", "private void awaitItems() throws IgniteInterruptedCheckedException {\n U.await(takeLatch);\n }", "public native int cStopInterrupt();", "private void waitForBuyersAction() throws InterruptedException\n {\n while(waiting)\n {\n Thread.sleep(100);\n }\n waiting = true;\n }", "public void waitForShutdown() throws InterruptedException {\n\t\tsynchronized(this){\n\t\t\tif(platform != null){\n\t\t\t\tthis.wait();\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}", "void await() throws InterruptedException;", "void await() throws InterruptedException;", "void await() throws InterruptedException;", "public static void inter() throws InterruptedException {\r\n\t\t// Thread.currentThread().sleep(3000);\r\n\t\tstop = true;\r\n\t\t// Thread.currentThread().sleep( 3000 );\r\n\t}", "@Test(timeout = 1000)\n public void alreadyInterrupted() throws Exception {\n Thread.currentThread().interrupt();\n assertThrows(InterruptedException.class, () -> lock.lockInterruptibly());\n Thread.currentThread().interrupt();\n assertThrows(InterruptedException.class, () -> lock.tryLock(0, TimeUnit.SECONDS));\n }", "private void doNothing(long milliseconds)\n {\n try\n {\n Thread.sleep(milliseconds);\n }\n catch (InterruptedException e)\n {\n System.out.println(\"Unexpeced interrupt\");\n System.exit(0);\n }\n }", "public void testFairBlockingPut() {\n Thread t = new Thread(new Runnable() {\n public void run() {\n try {\n SynchronousQueue q = new SynchronousQueue(true);\n q.put(zero);\n threadShouldThrow();\n } catch (InterruptedException ie){\n }\n }});\n t.start();\n try {\n Thread.sleep(SHORT_DELAY_MS);\n t.interrupt();\n t.join();\n }\n catch (InterruptedException ie) {\n\t unexpectedException();\n }\n }", "private void wake() {\n /*\n r1 = this;\n boolean r0 = r1.blocked\n if (r0 != 0) goto L_0x0005\n return\n L_0x0005:\n monitor-enter(r1)\n r1.notifyAll() // Catch:{ Exception -> 0x000c }\n goto L_0x000c\n L_0x000a:\n r0 = move-exception\n goto L_0x000e\n L_0x000c:\n monitor-exit(r1) // Catch:{ all -> 0x000a }\n return\n L_0x000e:\n monitor-exit(r1) // Catch:{ all -> 0x000a }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.androidquery.callback.AbstractAjaxCallback.wake():void\");\n }", "void await()\n throws InterruptedException;", "@Override\n\tpublic void interrupt(UUID clientDatabaseGuid) {\n\t\t\n\t}", "protected void aTimerInterrupt()\r\n {\r\n \t\tSystem.out.println(\"|aTimerInterrupt| : time out.\");\r\n \t\tstartTimer(0,RxmtInterval);\r\n \t\tSystem.out.println(\"|aTimerInterrupt| : timer is started\");\r\n \t\t\r\n \t\tfor(int i=window_base% LimitSeqNo;i<next_seq_num % LimitSeqNo;i++)\r\n \t\t{\r\n \t\t\tif(packetBufferAry[i]!=null)\r\n \t\t\t{\r\n \t\t\t\tcount_retransmissions_by_A++;\r\n \t\t\t\tSystem.out.println(\"|aTimerInterrupt| : packet with seq number:\"+Integer.toString(packetBufferAry[i].getSeqnum())+\" is resent.\");\r\n \t\t\t\ttoLayer3(0,packetBufferAry[i]);\r\n \t\t\t}\r\n \t\t}\r\n \t\t/*\r\n \t\tif(state_sender == STATE_WAIT_FOR_ACK_OR_NAK_0)\r\n \t\t{\r\n \t\t\tSystem.out.println(\"aTimerInterrupt: time up for STATE_WAIT_FOR_ACK_OR_NAK_0\");\r\n \t\t\tresendPacket(packetBuffer);\r\n \t\t\tstartTimer(0,RxmtInterval);\r\n \t\t\tSystem.out.println(\"aTimerInterrupt: start sender timer\");\r\n \t\t\t\r\n \t\t}\r\n \t\telse if(state_sender == STATE_WAIT_FOR_ACK_OR_NAK_1)\r\n \t\t{\r\n \t\t\tSystem.out.println(\"aTimerInterrupt: time up for STATE_WAIT_FOR_ACK_OR_NAK_1\");\r\n \t\t\tresendPacket(packetBuffer);\r\n \t\t\tstartTimer(0,RxmtInterval);\r\n \t\t\tSystem.out.println(\"aTimerInterrupt: start sender timer\");\r\n \t\t}\r\n \t\t*/\r\n }", "public static void main(String[] args) throws InterruptedException {\n interrupted3();\n }", "public void testFairInterruptedTimedPoll() {\n Thread t = new Thread(new Runnable() {\n public void run() {\n try {\n SynchronousQueue q = new SynchronousQueue(true);\n assertNull(q.poll(SHORT_DELAY_MS, TimeUnit.MILLISECONDS));\n } catch (InterruptedException success){\n }\n }});\n t.start();\n try {\n Thread.sleep(SHORT_DELAY_MS);\n t.interrupt();\n t.join();\n }\n catch (InterruptedException ie) {\n\t unexpectedException();\n }\n }", "private void waitForFree() throws InterruptedException {\n // Still full?\n while (isFull()) {\n // Park me 'till something is removed.\n block.await();\n }\n }", "protected void interrupted() {\n\t\tL.ogInterrupt(this);\n\t}", "public static void main(String[] args) {\n \r\n Thread yielder = new Thread(new ThreaInterrupt());\r\n yielder.start(); // main thread makes yielder thread begin\r\n try {\r\n Thread.sleep(500);\r\n yielder.interrupt();\r\n print(\">>>>>>>>>>>> first interrupt! \");\r\n } catch (InterruptedException e) {}\r\n \r\n try {\r\n Thread.sleep(1000);\r\n yielder.interrupt();\r\n print(\">>>>>>>>>>>> second interrupt! \");\r\n } catch (InterruptedException e) {}\r\n print(\"Main Thread ends\");\r\n \r\n try { yielder.join(); } catch (InterruptedException e) {}\r\n \r\n System.out.println(buf.toString());\r\n }", "public static void main(String[] args) throws InterruptedException {\n\t\tLockThread th = new LockThread();\n\t\tth.start();\n\t\tstartLatch.await();\n\t\tSystem.out.println(\"Before park, thread state: \" + th.getState());\n\t\tparkLatch.countDown();\n\t\tSystem.out.println(\"After park, thread state: \" + th.getState());\n\t\tThread.sleep(1000);\n\t\t\n\t\tth.interrupt();\n\t\tSystem.out.println(\"Unparking.. \" + th.getState());\n\t}", "void unlock(String resourceName) throws InterruptedException;", "private static void waitForLogin() {\n\t\ttry {\n\t\t\tlatch.await();\n\t\t} catch (final InterruptedException e) {\n\t\t\tlogger.error(\"Unexpected interrupt\", e);\n\t\t\tThread.currentThread().interrupt();\n\t\t}\n\t}", "public String waitThread() throws InterruptedException {\n return \"Not Waiting Yet\";\n }", "public static void main(String[] args) throws InterruptedException {\n Semaphore cutHairStartedSig = new Semaphore(0, true);\n Semaphore cutHairFinishedSig = new Semaphore(0, true);\n ExecutorService exec = Executors.newCachedThreadPool();\n\n // barber\n exec.submit(() -> handleInterruptedException(() -> {\n while (true) {\n boolean pendingHaircut = false;\n synchronized (_02_barbershop.class) {\n if (freeChairs < SEATS_CNT) {\n pendingHaircut = true;\n }\n }\n\n if (!pendingHaircut) {\n System.out.println(\"[B] Barber goes to sleep...\");\n Thread.sleep(SLEEP_OFFSET + 1000);\n } else {\n cutHairStartedSig.release();\n System.out.println(\"[B] Barber is cutting hair...\");\n Thread.sleep(SLEEP_OFFSET + HAIRCUT_DURATION + (ThreadLocalRandom.current().nextInt() % 1000));\n cutHairFinishedSig.release();\n synchronized (_02_barbershop.class) {\n freeChairs++;\n }\n }\n }\n }));\n\n // clients\n for (int i = 0; i < 6; i++) {\n final int customerID = i;\n exec.submit(() -> handleInterruptedException(() -> {\n while (true) {\n if (ThreadLocalRandom.current().nextInt() % 100 > 50) {\n Thread.sleep(SLEEP_OFFSET + 1000 + (ThreadLocalRandom.current().nextInt() % 5000));\n continue;\n }\n\n boolean pendingHaircut = false;\n synchronized (_02_barbershop.class) {\n if (freeChairs > 0) {\n freeChairs--;\n System.out.printf(\"[C] Client %d takes a free chair... Remaining seats=%d\\n\", customerID, freeChairs);\n pendingHaircut = true;\n }\n }\n\n if (pendingHaircut) {\n cutHairStartedSig.acquire();\n System.out.printf(\"[C] Client %d is getting their hair cut...\\n\", customerID);\n cutHairFinishedSig.acquire();\n } else {\n System.out.printf(\"[C] Client %d leaves as there are no free chairs...\\n\", customerID);\n }\n\n Thread.sleep(SLEEP_OFFSET + 2000 + (ThreadLocalRandom.current().nextInt() % 1000));\n }\n }));\n }\n\n Thread.sleep(20000);\n exec.shutdownNow();\n exec.awaitTermination(5, TimeUnit.SECONDS);\n }", "public void check() throws InterruptedException, ExecutionException {\n // If a thread threw an uncaught exception, re-throw it.\n final ExecutionException executionException = getExecutionException();\n if (executionException != null) {\n throw executionException;\n }\n // If this thread or another thread has been interrupted, throw InterruptedException\n if (checkAndReturn()) {\n throw new InterruptedException();\n }\n }", "public void signalTheWaiter();", "public void permisoEscribir(int idEscritor) throws InterruptedException;", "public void doWait() {\n\t\tsynchronized(lockObject){\n\t\t\t//Now even if the notify() is called earlier without a pre-wait() call then it will check the condition\n\t\t\t//and will found \"resumeSignal\" to be true hence, will not enter the waiting state.\n\t\t\tif(!resumeSignal){\n\t\t\t\ttry{\n\t\t\t\t\tlockObject.wait();\n\t\t\t\t} catch(InterruptedException e){}\n\t\t\t}\n\t\t\t//Waiting state is over. So, clear the signal flag and continue running.\n\t\t\tresumeSignal = false;\n\t\t}\n\t}", "@Override\n public void interrupt(String exchangeId) {\n Exchange found = null;\n for (AsyncProcessorAwaitManager.AwaitThread entry : browse()) {\n Exchange exchange = entry.getExchange();\n if (exchangeId.equals(exchange.getExchangeId())) {\n found = exchange;\n break;\n }\n }\n\n if (found != null) {\n interrupt(found);\n }\n }", "@Override\n public void stateChange(PciContext pciContext) {\n log.debug(\"inside statechange of sdnr notif state\");\n String notification = pciContext.getSdnrNotification();\n Notification notificationObject;\n try {\n\n ObjectMapper mapper = new ObjectMapper();\n notificationObject = mapper.readValue(notification, Notification.class);\n log.debug(\"notificationObject{}\", notificationObject);\n\n List<FapServiceList> serviceList = notificationObject.getPayload().getRadioAccess().getFapServiceList();\n for (FapServiceList fapService : serviceList) {\n String cellId = fapService.getCellConfig().getLte().getRan().getCellIdentity();\n log.debug(\"cellId:{}\", cellId);\n log.debug(\"inside for loop\");\n\n List<ClusterDetails> clusterDetails = getAllClusters();\n\n ClusterDetails clusterDetail = getClusterForNotification(fapService, clusterDetails);\n\n if (clusterDetail == null) {\n // form the cluster\n Graph cluster = createCluster(fapService);\n // save to db\n UUID clusterId = UUID.randomUUID();\n cluster.setGraphId(clusterId);\n // create the child thread\n log.debug(\"creating new child\");\n BlockingQueue<FapServiceList> queue = new LinkedBlockingQueue<>();\n ThreadId threadId = new ThreadId();\n threadId.setChildThreadId(0);\n ChildThread child = new ChildThread(pciContext.getChildStatusUpdate(), cluster, queue, threadId);\n queue.put(fapService);\n MainThreadComponent mainThreadComponent = BeanUtil.getBean(MainThreadComponent.class);\n mainThreadComponent.getPool().execute(child);\n\n waitForThreadId(threadId);\n\n saveCluster(cluster, clusterId, threadId.getChildThreadId());\n addChildThreadMap(threadId.getChildThreadId(), child);\n pciContext.addChildStatus(threadId.getChildThreadId(), \"processingNotifications\");\n\n }\n\n else {\n if (isOofTriggeredForCluster(pciContext, clusterDetail)) {\n pciContext.setNotifToBeProcessed(false);\n bufferNotification(fapService, clusterDetail.getClusterId());\n } else {\n pciContext.setNotifToBeProcessed(true);\n log.debug(\"childThreadId:{}\", clusterDetail.getChildThreadId());\n childThreadMap.get(clusterDetail.getChildThreadId()).putInQueue(fapService);\n }\n }\n }\n } catch (Exception e) {\n log.error(\"caught in sdnr notif handling state{}\", e);\n }\n\n WaitState waitState = WaitState.getInstance();\n pciContext.setPciState(waitState);\n pciContext.stateChange(pciContext);\n }", "public boolean isInterruptable() {\n\t\treturn interrupt;\n\t}", "public void preempt(Context context, PreemptionMessage preemptionRequests);", "public void waitForReport() {\n CountDownLatch localLatch = crashReportDoneLatch;\n if (localLatch != null) {\n try {\n localLatch.await();\n } catch (InterruptedException e) {\n log.debug(\"Wait for report was interrupted!\", e);\n // Thread interrupted. Just exit the function\n }\n }\n }", "public static void main(String[] args) throws Exception {\r\n Thread mainThread = Thread.currentThread();\r\n mainThread.setName(\"Chris\");\r\n // Our new created thread that will have the name \"interrupt Example\" (Now we have 2 threads.)\r\n EightSix thread = new EightSix(\"interrupt Example\");\r\n // here we are woking with our new thread.\r\n System.out.println(\"Starting Thread: \" +thread.name + \" state: \" +thread.getState());\r\n // this thread uses the run method prviously established.\r\n thread.start();\r\n // here we tell our main thread to sleep for 3 seconds.\r\n thread.sleep(3000);\r\n // this is printed because the time our main thread had to sleep is up and our \"interrupt Example\" thread is sleeping for 1 second.\r\n System.out.println(\"Stopping Thread: \" +thread.name + \" state: \" +thread.getState());\r\n // Here we change the boolean value to true\r\n thread.interrupt = true;\r\n /* while the \"interrupt Example\" is sleeping we interrupt it\r\n if a thread is interrupted while it is sleeping, an InterruptedException is generated.\r\n This exception will be caught at the catch defined in 27 and this block will execute as soon as the thread regains CPU,\r\n in other words is scheduled by the scheduler.\r\n */\r\n thread.interrupt();\r\n // print the state of the thread\r\n System.out.println(thread.name + \" state: \" +thread.getState());\r\n // here we force the main thred to sleep to delibeatey make the other thread execute which allows it to finish the run method.\r\n //Therefore the child thread will be terminated before the main thread.\r\n thread.sleep(3000);\r\n // here we see the status of the \"Interupted example\" thread.\r\n System.out.println(\"Exiting application state: \"+thread.getState());\r\n // The application is terminated using the exit method of the System class.\r\n System.exit(0);\r\n }", "public void wait4launch() throws InterruptedException {\n if(inship.size()<2){\n readyToabaord.waitSem();\n }else{\n readyToabaord.signalSem();\n }\n // your code here\n }", "public static void naive(int numResources){\n while(terminatedCount < taskList.size()){\n\n releaseArr = new int [numResources];\n boolean wait = addressWaiting();\n boolean notWait = addressNonWaiting();\n\n while((wait == false && notWait == false) && !checkResources() && terminatedCount < taskList.size() ){\n for(Task t : taskList){\n if(t.terminateTime == -1 && (!t.isAborted)){ // not terminated yet\n releaseAll(t);\n\n t.isAborted = true;\n terminatedCount ++;\n removeWaiting(t.taskNumber);\n\n break; // break out of forloop\n }\n }\n updateResources();\n }\n\n updateResources();\n time += 1;\n\n for(Instruction i : removeSet){\n waitingList.remove(i);\n }\n Collections.sort(waitingList);\n }\n }", "void cancel() {\n\tsleepThread.interrupt();\n }", "@Test(priority = 5)\n public void testSubmitFeedback() throws InterruptedException {\n\t\tassertTrue(true);\n }", "void blockUntilFreeSlotForMessage() throws InterruptedException {\n lock.lockInterruptibly();\n try {\n while (messageQueue.size() == messageCapacity) {\n messageQueueNotFull.await();\n }\n } finally {\n lock.unlock();\n }\n }", "public void acquire() throws InterruptedException {\n if (Thread.interrupted()) {\n throw new InterruptedException();\n }\n synchronized (this) {\n try {\n if (!m_available) {\n wait();\n }\n m_available = false;\n }\n catch (InterruptedException ie) {\n notify();\n throw ie;\n }\n }\n }", "@Override\n public boolean continueWaitState(SceKernelThreadInfo thread, ThreadWaitInfo wait) {\n SceKernelEventFlagInfo event = eventMap.get(wait.EventFlag_id);\n if (event == null) {\n thread.cpuContext._v0 = ERROR_KERNEL_NOT_FOUND_EVENT_FLAG;\n return false;\n }\n\n // Check EventFlag.\n if (checkEventFlag(event, wait.EventFlag_bits, wait.EventFlag_wait, wait.EventFlag_outBits_addr)) {\n event.threadWaitingList.removeWaitingThread(thread);\n thread.cpuContext._v0 = 0;\n return false;\n }\n\n return true;\n }", "public boolean interrupt() throws Exception{\n if (processorTask.isError()) return true; // if error was detected on prev phase - skip execution\n\n if ( asyncFilters == null || asyncFilters.size() == 0 ) {\n execute();\n return false;\n } else {\n asyncHandler.addToInterruptedQueue(asyncProcessorTask); \n return invokeFilters();\n }\n }", "private void heat() throws InterruptedException {\n\t\tInteger delta = new Double((rest.getTemperature() - temperatureSensor.getTemperature()) * 10).intValue();\n\t\tfor (Integer rTemp : temperatureAdjust.keySet()) {\n\t\t\tif (delta > rTemp) {\n\t\t\t\tInteger percent = new Double(new Double(temperatureAdjust.get(rTemp)) / 100 * timeIntervalInMS).intValue();\n\t\t\t\theater.off();\n\t\t\t\tThread.sleep(timeIntervalInMS - percent);\n\t\t\t\theater.on();\n\t\t\t\tThread.sleep(percent);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t// we are above all limits, switch heater off and wait!\n\t\theater.off();\n\t\tThread.sleep(timeIntervalInMS);\n\t}", "private void m3981iw() {\n if (this.f3565Ty.currentTimeMillis() - this.f3564Tx >= this.f3563Tw) {\n interrupt();\n this.f3564Tx = this.f3565Ty.currentTimeMillis();\n }\n }", "@Override\r\n\tpublic void onInterrupt() {\n\t\t\r\n\t}", "protected abstract int doAwaitExit() throws InterruptedException;", "public static void setInterruptible(final boolean choice) {\r\n m_bProcInterruptible = choice;\r\n }" ]
[ "0.55566543", "0.54406184", "0.5408262", "0.5361728", "0.5305805", "0.5247828", "0.52353156", "0.51985455", "0.51337236", "0.5086136", "0.50843513", "0.5079572", "0.5078418", "0.50664824", "0.506314", "0.5018719", "0.49489608", "0.4923106", "0.49146304", "0.48908994", "0.4882299", "0.48787358", "0.4876738", "0.48385364", "0.47910774", "0.47575384", "0.47435996", "0.47435996", "0.47176155", "0.47171026", "0.4673965", "0.46658823", "0.4658327", "0.46566623", "0.46263286", "0.46067378", "0.4601378", "0.45976076", "0.45815438", "0.45465848", "0.45065975", "0.45055836", "0.45037964", "0.44931996", "0.44782227", "0.44668916", "0.4429894", "0.4429894", "0.43879983", "0.4355689", "0.43464306", "0.43414357", "0.43287554", "0.43178487", "0.4315852", "0.43139967", "0.4299956", "0.4299956", "0.4299956", "0.4286448", "0.4285773", "0.42831323", "0.42764518", "0.42595047", "0.4259152", "0.4257263", "0.42457888", "0.42397436", "0.4236783", "0.42316818", "0.42293075", "0.42273957", "0.42229524", "0.42165592", "0.42150104", "0.41943884", "0.4194181", "0.41758576", "0.416987", "0.41657168", "0.4148645", "0.4147793", "0.4133956", "0.41297513", "0.41254482", "0.41248247", "0.4122847", "0.4121042", "0.41206482", "0.41204354", "0.4118472", "0.41120815", "0.41045365", "0.41003895", "0.40984377", "0.4089827", "0.4089693", "0.40852544", "0.4081401", "0.40797463" ]
0.6863439
0
Returns all card nodes in the scene graph. Card nodes that are visible in the listview are definitely in the scene graph, while some nodes that are not visible in the listview may also be in the scene graph.
private Set<Node> getAllCardNodes() { return guiRobot.lookup(CARD_PANE_ID).queryAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }", "public List<Node> getNodes();", "List<Node> getNodes();", "public void getCardsShown(List<Room> roomList) {\n\n //Removes cards that are now in the view\n cardHolder.getChildren().clear();\n\n for (Room r : roomList) {\n HBox roomCard = roomCards.get(r.getRoomId().get());\n cardHolder.getChildren().add(roomCard);\n }\n\n\n }", "Collection<Node> allNodes();", "public List<INode> getAllNodes();", "public List<Node> getAllNodes() {\n return nodeRepository.findAll();\n }", "public List<Node> getNodes() {\n List<Node> list = getNodes(false, false);\n return list;\n }", "public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}", "java.util.List<entities.Torrent.NodeId>\n getNodesList();", "public ArrayList<GraphNode> getNodes() {\n return selectedNodes;\n }", "List<CyNode> getNodeList();", "List<Node> nodes();", "java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();", "public List<Nodes> getNodes() {\n return nodes;\n }", "protected abstract Node[] getAllNodes();", "public LinkedList<Node> getChildren() { \r\n LinkedList<Node> nodes = new LinkedList<>();\r\n for(int i=0;i<=size;i++)\r\n nodes.add(children[i]);\r\n return nodes;\r\n }", "public List<OSMNode> nodes() {\n return nodes;\n }", "public List<List<NodeType>> getAllKCliques() {\n\t\treturn null;\t\t//TODO\n\t}", "public Nodes nodes() {\n return this.nodes;\n }", "private void checkNodesToSearch() {\n if (nodesToSearch == null || nodesToSearch.length == 0) {\n Graph graph;\n if (Lookup.getDefault().lookup(DataTablesController.class).isShowOnlyVisible()) {\n graph = Lookup.getDefault().lookup(GraphController.class).getGraphModel().getGraphVisible();\n } else {\n graph = Lookup.getDefault().lookup(GraphController.class).getGraphModel().getGraph();\n }\n nodesToSearch = graph.getNodes().toArray();\n }\n }", "public List<TreeNode> getChildrenNodes();", "public Vector<Node> getChildren(){\n\t\t Vector<Node> children = new Vector<>(0);\n\t\t Iterator<Link> l= myLinks.iterator();\n\t\t\twhile(l.hasNext()){\n\t\t\t\tLink temp=l.next();\n\t\t\t\tif(temp.getM().equals(currNode))\n\t\t\t\t children.add(temp.getN());\n\t\t\t\tif(temp.getN().equals(currNode))\n\t\t\t\t children.add(temp.getM());\n\t\t\t}\n\t\treturn children;\n\t}", "public Node[] getChildren() {\n\t\tNode[] nextLayer = new Node[nextLayerNodes.keySet().toArray().length];\n\t\tfor (int i = 0; i < nextLayer.length; i++) {\n\t\t\tnextLayer[i] = (Node) nextLayerNodes.keySet().toArray()[i];\n\t\t}\n\t\treturn nextLayer;\n\t}", "public List<TbNode> getAll() {\n return qureyNodeList(new NodeParam());\n }", "private Collection<Node> getCandidates(State state) {\n\t\treturn new ArrayList<Node>(Basic_ILS.graph.getNodes());\n\t}", "public List<Node> getNodes()\t{return Collections.unmodifiableList(nodes);}", "public Collection<Node> getNodeList(){\r\n return nodesMap.values();\r\n }", "@Override\r\n\tpublic Iterable<Entity> getNodes()\r\n\t{\n\t\treturn null;\r\n\t}", "public ArrayList<Node> getChildren() {\n if (children != null) return children;\n children = new ArrayList<>();\n for (Move m : state.getLegalMoves()) {\n Node child = new Node(this, m);\n children.add(child);\n }\n return children;\n }", "public List<GameStateChild> getChildren() {\n return null;\n }", "public Set<Node<E>> getNodes(){\n return nodes.keySet();\n }", "public List<OSMNode> nonRepeatingNodes() {\n if (isClosed()) {\n return nodes.subList(0, nodes.size() - 1);\n } else {\n return nodes;\n }\n }", "public void retainOnlyVisibleNodes() {\n RTGraphComponent.RenderContext myrc = (RTGraphComponent.RenderContext) getRTComponent().rc; if (myrc == null) return;\n Set<String> new_retained_nodes = new HashSet<String>();\n Iterator<String> it = myrc.entity_counter_context.binIterator();\n while (it.hasNext()) new_retained_nodes.add(it.next());\n retained_nodes = new_retained_nodes;\n newBundlesRoot(getRTParent().getRootBundles());\n }", "public List<RealObject> getChildren();", "java.util.List<uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode> \n getNodeList();", "public Boolean getShowNodes() {\n return showNodes;\n }", "public Nodes getNodes()\n {\n return nodes;\n }", "public MyArrayList<Node> getNodes() {\n return this.nodes;\n }", "public ArrayList<Node> getListNodes(){\r\n return listNodes;\r\n }", "public List<NetworkNode> listNetworkNode();", "public HashSet<Node> getNodes(){\n\t\t\n\t\t//Return nodes hashset\n\t\treturn this.nodes;\n\t\t\n\t}", "public abstract List<Node> getChildNodes();", "public List<PlanNode> getChildren() {\n return childrenView;\n }", "@Override\n\tpublic synchronized Set<PetrinetNode> getNodes() {\n\t\tSet<PetrinetNode> nodes = new HashSet<PetrinetNode>();\n\t\tnodes.addAll(this.transitions);\n\t\tnodes.addAll(this.places);\n\t\treturn nodes;\n\t}", "String showAllNodes();", "@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }", "private Collection<Node> getNodes()\r\n\t{\r\n\t return nodeMap.values();\r\n\t}", "@Override\n public List<cScene> collectScenes() {\n List<Element> eScenes = root.getChild(\"library_visual_scenes\", ns).getChildren(\"visual_scene\", ns);\n List<cScene> scenes = new ArrayList<>();\n\n List<cCamera> cameras = collectCameras();\n List<cLight> lights = collectLights();\n List<cGeometry> geometries = collectGeometry();\n List<cMaterial> materials = collectMaterials();\n\n for (Element eScene : eScenes) {\n\n cScene scene = new cScene(); //<visual_scene>..\n scene.collect(eScene, ns);\n\n for (Element eNode : eScene.getChildren(\"node\", ns)) {\n\n cNode node = new cNode(); //<node>..\n node.collect(eNode, ns);\n\n Element eInstance_Nodes;\n cInstance_Node instance_node = null;\n if ((eInstance_Nodes = eNode.getChild(\"instance_light\", ns)) != null) { //<instance_..>..\n instance_node = new cInstance_Light();\n instance_node.collect(eInstance_Nodes, ns, lights);\n } else if ((eInstance_Nodes = eNode.getChild(\"instance_geometry\", ns)) != null) {\n instance_node = new cInstance_Geometry();\n\n Element eBind_Material;\n if ((eBind_Material = eInstance_Nodes.getChild(\"bind_material\", ns)) != null) {\n List<Element> instance_materials = eBind_Material.getChild(\"technique_common\",ns).getChildren(\"instance_material\",ns);\n\n for (Element eInstMaterial : instance_materials) {\n cInstance_Geometry.Instance_Material instance_material = ((cInstance_Geometry)instance_node).getInstanceMaterial();\n instance_material.collect(eInstMaterial, ns, materials);\n ((cInstance_Geometry)instance_node).boundedMaterials.add(instance_material);\n }\n }\n instance_node.collect(eInstance_Nodes, ns, geometries);\n }\n else if ((eInstance_Nodes = eNode.getChild(\"instance_camera\", ns)) != null) {\n instance_node = new cInstance_Camera();\n instance_node.collect(eInstance_Nodes, ns, cameras);\n }\n node.instanceNode = instance_node;\n scene.nodes.add(node);\n }\n scenes.add(scene);\n }\n\n cameras = null;\n lights = null;\n geometries = null;\n materials = null;\n\n return scenes;\n }", "public List<NodeInfo> getStoredNodes() {\n List<NodeInfo> nodes = new ArrayList<>();\n\n SearchResponse response = client.prepareSearch(\"k8s_*\").setTypes(\"node\").setSize(10000).get();\n\n SearchHit[] hits = response.getHits().getHits();\n log.info(String.format(\"The length of node search hits is [%d]\", hits.length));\n\n ObjectMapper mapper = new ObjectMapper();\n try {\n for (SearchHit hit : hits) {\n// log.info(hit.getSourceAsString());\n NodeInfo node = mapper.readValue(hit.getSourceAsString(), NodeInfo.class);\n nodes.add(node);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return nodes;\n }", "@objid (\"808c084f-1dec-11e2-8cad-001ec947c8cc\")\n public final List<GmNodeModel> getChildren() {\n return new ArrayList<>(this.children);\n }", "@Override\n public abstract Collection<? extends GraphNode<N, E>> getNodes();", "public List<Card> getCardPathCollection() {\n\t\tList<Card> tempCardCollection = new ArrayList<Card>();\n\t\tfor (CardNode cardNode: cardPathCollection) {\n\t\t\ttempCardCollection.add(cardNode.getCard());\n\t\t}\n\t\treturn tempCardCollection;\n\t}", "@Override\n public List<E> allItems() {\n return new ArrayList(graphNodes.keySet());\n }", "public HashMap<Integer, Node> getNodeList()\n\t{\n\t\treturn nodeManager.getNodes();\n\t}", "@Override\n public Set<EventNode> getNodes() {\n return nodes;\n }", "public List<Node<T>> getNodesCollection() {\n if (root == null) {\n return new ArrayList<>();\n }\n\n ArrayList<Node<T>> nodesCollection = new ArrayList<>();\n\n Queue<Node<T>> pendingNodes = new ArrayDeque<>();\n pendingNodes.add(root);\n\n while (pendingNodes.size() > 0) {\n Node<T> currNode = pendingNodes.poll();\n nodesCollection.add(currNode);\n\n for (Node<T> child : currNode.getChildren()) {\n pendingNodes.add(child);\n }\n }\n\n return nodesCollection;\n }", "public LinkedList<AbstractNode> getNodes() {\n\t\treturn nodes;\n\t}", "public List<Node> getAll() throws SQLException {\n var nodes = new ArrayList<Node>();\n var statement = connection.createStatement();\n var result = statement.executeQuery(\"SELECT identifier, x, y, parentx, parenty, status, owner, description FROM nodes\");\n while (result.next()) {\n nodes.add(\n new Node(\n result.getInt(\"identifier\"),\n result.getInt(\"x\"),\n result.getInt(\"y\"),\n result.getInt(\"parentx\"),\n result.getInt(\"parenty\"),\n result.getString(\"status\"),\n result.getString(\"owner\"),\n result.getString(\"description\")\n )\n );\n }\n result.close();\n statement.close();\n return nodes;\n }", "public Set<String> getAllNodes() {\n return this.graph.keySet();\n }", "protected ArrayList<AStarNode> getNodes() {\n return nodes;\n }", "public static Collection<SxpNode> getNodes() {\n return Collections.unmodifiableCollection(NODES.values());\n }", "public List<Node> getChildren() {\r\n\t\t\tchildren.reset();\r\n\t\t\treturn children;\r\n\t\t}", "public List<Card> getCards() {\n\t\treturn new ArrayList<Card>(this.content);\n\t}", "@Override\n public ArrayList<Node> getAllNodes() {\n return getAllNodesRecursive(root);\n\n }", "public Collection<MyNode> getNeighbors(){\r\n return new ArrayList<>(this.neighbors);\r\n }", "public Node[] getNodes()\r\n {\r\n if(nodes == null)\r\n\t{\r\n\t nodes = new Node[numNodes()];\r\n\t int i = 0;\r\n\t for (final NodeTypeHolder nt : ntMap.values())\r\n\t\tfor (final Node node : nt.getNodes())\r\n\t\t nodes[i++] = node;\r\n\t}\r\n return nodes.clone();\r\n }", "public @NonNull List<@NonNull Node<@Nullable T>> getChildren() {\n return Collections.unmodifiableList(this.children);\n }", "public List<Integer> getVisibleLayers ()\n {\n List<Integer> visible = Lists.newArrayList();\n List<Boolean> visibility = getLayerVisibility();\n for (int layer = 0, nn = visibility.size(); layer < nn; layer++) {\n if (visibility.get(layer)) {\n visible.add(layer);\n }\n }\n return visible;\n }", "public Vector<GraphicalLatticeElement> getChildren() {\n\t\tVector<GraphicalLatticeElement> children = new Vector<GraphicalLatticeElement>();\n\t\tif (childrenEdges != null)\n\t\t\tfor (int i = 0; i < childrenEdges.size(); i++) {\n\t\t\t\tEdge edge = childrenEdges.elementAt(i);\n\t\t\t\tchildren.add(edge);\n\t\t\t\tchildren.add(edge.getDestination());\n\t\t\t}\n\t\t\n\t\treturn children;\n\t}", "io.netifi.proteus.admin.om.Node getNodes(int index);", "public ArrayList<Node> getList(){\n \treturn this.children;\n }", "@Override\n\tpublic List<Card> findAllCard() {\n\t\treturn cb.findAllCard();\n\t}", "public List<Card> getCardsInPlay() {\n List<Card> cards = new ArrayList<>(cardsInPlayStack);\n cardsInPlayStack.removeAllElements();\n return cards;\n }", "private List<Node> findBranchsMesh()\r\n\t{\t\r\n\t\t// Nos que fecham o laco\r\n\t\tList<Node> nodes = new ArrayList<>();\r\n\t\t\r\n\t\tfor (Entry<String, Integer> value : cacheDestinationNodes.entrySet())\r\n\t\t{\r\n\t\t\t// No possui mais de um arco chegando (ANEL!)\r\n\t\t\tif (value.getValue() > 1)\r\n\t\t\t{\r\n\t\t\t\tString label = value.getKey();\r\n\t\t\t\tNode node = cacheNodes.get(label);\r\n\t\t\t\tnodes.add(node);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// nodes > 1 indica que esta rede possui anel\r\n\t\treturn nodes; \r\n\t}", "public Node[] getNodes() {\n\t\treturn nodes;\n\t}", "java.util.List<com.zibea.recommendations.webserver.core.dao.proto.AttributesMapProto.Map.KeyValue> \n getNodesList();", "public List<Card> getCards() throws RemoteException {\n return mainScreenProvider.getCards();\n }", "public List<Imnode> getImnodes() {\n if (Imnodes == null) {\n Imnodes = new ArrayList<Imnode>();\n }\n return Imnodes;\n }", "List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }", "public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }", "@Override\n public final CardCollectionView getCards(final boolean filter) {\n\n CardCollectionView cards = super.getCards(false);\n if (!filter) {\n return cards;\n }\n\n boolean hasFilteredCard = false;\n for (Card c : cards) {\n if (c.isPhasedOut()) {\n hasFilteredCard = true;\n break;\n }\n }\n\n if (hasFilteredCard) {\n CardCollection filteredCollection = new CardCollection();\n for (Card c : cards) {\n if (!c.isPhasedOut()) {\n filteredCollection.add(c);\n }\n }\n cards = filteredCollection;\n }\n return cards;\n }", "@objid (\"808c0847-1dec-11e2-8cad-001ec947c8cc\")\n public final List<GmNodeModel> getChildren(String role) {\n ArrayList<GmNodeModel> ret = new ArrayList<>(this.children.size());\n for (GmNodeModel c : this.children) {\n if (role.equals(c.getRoleInComposition())) {\n ret.add(c);\n }\n }\n return ret;\n }", "public List<CacheOverlay> getChildren() {\n return new ArrayList<>();\n }", "public ArrayList<Node> getChildren() { return this.children; }", "public static ArrayList<Npc> getNearbyNpcList(ClientContext ctx) {\n ArrayList npcs = new ArrayList();\n\n for (Npc n : ctx.npcs.select().viewable()) {\n npcs.add(n);\n }\n\n return new ArrayList<>(new HashSet<>(npcs));\n\n\n }", "@Override\n\tpublic int getNodes() {\n\t\treturn model.getNodes();\n\t}", "Collection<DendrogramNode<T>> getChildren();", "default List<SemanticRegion<T>> allChildren() {\n List<SemanticRegion<T>> result = new LinkedList<>();\n for (SemanticRegion<T> r : this) {\n result.add(r);\n }\n return result;\n }", "@Override\r\n\tpublic List<Node> getChildren() {\r\n\t\treturn null;\r\n\t}", "public Card getAllCards() {\n\t\tfor (Card cardInDeck : cards) {\n\t\t\tSystem.out.println(\"Rank: \" + cardInDeck.getRank() + \"\\n\"\n\t\t\t\t\t+ \"Suit: \" + cardInDeck.getSuit()+ \"\\n\");\n\t\t\t//System.out.println(i++);\n\t\t}\n\t\treturn null;\n\t}", "public ArrayList<Node> getChildren(){\n return children;\n }", "public ArrayList<Node> getChildren() {\n return children;\n }", "public final List<SceneData> allSceneData() {\n ArrayList<SceneData> result = new ArrayList<SceneData>();\n\n for (int i = 0; i < scenes.size(); i++) {\n Scene scene = scenes.get(i);\n if (scene.getDisplayName() == null) {\n scene.setDisplayName(i + 1 + \"\");\n }\n if (scene.getNumber() == null) {\n scene.setNumber(new Integer(i + 1));\n }\n result.add(new SceneData(i + 1, scene, scene == activeScene));\n }\n\n return result;\n }", "public final Object [] getVisibleElements() {\r\n\t\tfinal List<XElementNode> roots = new ArrayList<XElementNode>();\t\t\t\t\r\n\t\tStringBuffer paths = new StringBuffer();\r\n\r\n\t\t//if right side is empty, we take selection of left side:\r\n\t\tif(targetHierarchyTree.isEmpty()) {\r\n//\t\t\tfinal Map <FastMSTreeItem, XElementNode> parents = new HashMap<FastMSTreeItem, XElementNode>();\r\n\t\t\tfinal LinkedHashSet <FastMSTreeItem> currentSelection = sourceHierarchyTree.getSelection(); \r\n\t\t\tfor (FastMSTreeItem it: currentSelection) {\r\n\t\t\t\tpaths.append(it.getModel().getPath());\r\n\t\t\t\tpaths.append(\",\");\r\n\t\t\t}\r\n\t\t\tsourceHierarchyTree.traverse(new FastMSTreeItemVisitor() {\r\n\t\t\t\tpublic boolean visit(FastMSTreeItem item, FastMSTreeItem parent) {\r\n\t\t\t\t\tXElementNode elNode = getElementNodeCopyFrom(item);\r\n//\t\t\t\t\telNode.removeChildren();\r\n//\t\t\t\t\tparents.put(item, elNode);\r\n\t\t\t\t\titem.setElementNode(elNode);\r\n\t\t\t\t\tXElementNode xParent = getParent(parent); //, parents); //parents.get(parent);\r\n\t\t\t\t\tif(xParent == null)\r\n\t\t\t\t\t\troots.add(elNode);\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\txParent.forceAddChild(elNode);\r\n\t\t\t\t\t\telNode.setParent(xParent);\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\txAxisHierarchy.addProperty(\"filterPaths\", paths.toString());\r\n\t\t} else {\r\n\t\t\tfinal Map<FastMSTreeItem, XElementNode> parents = new HashMap<FastMSTreeItem, XElementNode>();\r\n\t\t\tfinal List <String> filterPaths = new ArrayList <String>();\r\n\t\t\ttargetHierarchyTree.traverse(new FastMSTreeItemVisitor(){\r\n\t\t\t\tpublic boolean visit(FastMSTreeItem item, FastMSTreeItem parent) {\r\n\t\t\t\t\tXObjectModel node = item.getXObjectModel();\r\n\t\t\t\t\tString path = node.get(\"filterPath\");\r\n\t\t\t\t\tif (path != null) {\r\n\t\t\t\t\t\tfilterPaths.add(path);\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn item.getChildCount() > 0;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tfor (String f: filterPaths) {\r\n\t\t\t\tpaths.append(f);\r\n\t\t\t\tpaths.append(\",\");\r\n\t\t\t}\r\n\t\t\ttargetHierarchyTree.traverse(new FastMSTreeItemVisitor() {\r\n\t\t\t\tpublic boolean visit(FastMSTreeItem item, FastMSTreeItem parent) {\r\n\t\t\t\t\tXElementNode elNode = getElementNodeCopyFrom(item);\r\n\t\t\t\t\telNode.removeChildren();\r\n\t\t\t\t\titem.setElementNode(elNode);\r\n\t\t\t\t\tXElementNode xParent = getParent(parent); //parents.get(parent);\r\n\t\t\t\t\tif(xParent == null)\r\n\t\t\t\t\t\troots.add(elNode);\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\txParent.forceAddChild(elNode);\r\n\t\t\t\t\t\telNode.setParent(xParent);\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t});\t\t\t\r\n\t\t\txAxisHierarchy.addProperty(\"filterPaths\", paths.toString());\r\n\t\t}\r\n\t\treturn new Object [] {roots.toArray(new XElementNode[0]), paths.toString()};\r\n\t}", "public ArrayList<VentraCard> getAllCards(){\n \treturn allCards;\n }", "public boolean showNodes(ItemStack itemstack, EntityLivingBase player);", "public List<Card> getCards() {\n return new ArrayList<Card>(cards);\n }", "public final List<Scene> getScenes() {\n return Collections.unmodifiableList(scenes);\n }", "public SnapshotArray<Actor> getChildren() {\n\n SnapshotArray<com.guidebee.game.engine.scene.Actor>\n internalActors = internalGroup.getChildren();\n SnapshotArray<Actor> actors = null;\n if (internalActors != null) {\n actors = new SnapshotArray<Actor>();\n for (com.guidebee.game.engine.scene.Actor actor : internalActors) {\n actors.add((Actor) actor.getUserObject());\n }\n\n }\n return actors;\n }" ]
[ "0.62251073", "0.611847", "0.6057898", "0.6005521", "0.59987146", "0.5887535", "0.58257216", "0.58046305", "0.5762012", "0.5736038", "0.57253546", "0.56853384", "0.5684215", "0.5662819", "0.5652721", "0.56502056", "0.5626621", "0.56107104", "0.5583913", "0.5582383", "0.5542648", "0.5541454", "0.54965824", "0.54895115", "0.5482856", "0.547875", "0.547751", "0.5471924", "0.5464677", "0.5463628", "0.54623973", "0.545841", "0.54470825", "0.5446525", "0.5445512", "0.54231095", "0.5418427", "0.54156125", "0.54152495", "0.54002535", "0.5393111", "0.5390969", "0.5385796", "0.5370412", "0.53674906", "0.5340028", "0.53394693", "0.5332473", "0.5330211", "0.5327988", "0.5322493", "0.5311714", "0.5310964", "0.5309553", "0.5303807", "0.53008956", "0.52988124", "0.5298648", "0.52799153", "0.52796906", "0.5278619", "0.5262485", "0.52623874", "0.52501917", "0.52354884", "0.52251184", "0.52199244", "0.5218624", "0.51894426", "0.5183384", "0.51765835", "0.51735294", "0.5172006", "0.51719373", "0.51701415", "0.5168541", "0.51673245", "0.51635844", "0.51600355", "0.51588744", "0.51579887", "0.51526743", "0.51440036", "0.5126489", "0.5126289", "0.5125867", "0.51200306", "0.5114442", "0.5109919", "0.5106491", "0.5103876", "0.51038545", "0.510329", "0.510304", "0.5099468", "0.5097581", "0.50630355", "0.50622255", "0.50515896", "0.5051059" ]
0.7792512
0
Returns the size of the list.
public int getListSize() { return getRootNode().getItems().size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getSize(){\n\t\tint size = list.size();\n\t\treturn size;\n\n\t}", "public int size()\n\t{\n\t\treturn listSize;\n\t}", "public int size()\n\t{\n\t\treturn list.size();\n\t}", "public int size()\n\t{\n\t\treturn list.size();\n\t}", "public int getSize() {\n return list.size();\n }", "public int size() {\n\t\treturn list.size();\n\t}", "public int getSize() \r\n {\r\n return list.size();\r\n }", "public int size() {\n\t return list.size();\n }", "public int size() {\n return list.size();\n }", "public int size(){\n\t\treturn list.size();\n\t}", "public int size(){\n\t\treturn list.size();\n\t}", "public int size()\n {\n return list.size();\n }", "public int getSize () {\n return this.list.size();\n }", "public int size() {\n return list.size();\n }", "public int getSize()\n {\n return pList.size();\n }", "public int size()\n {\n if(_list!=null)\n return _list.size();\n return 0;\n }", "public int getListSize() {\n return listSize;\n }", "public synchronized int size(){\n return list.size();\n }", "public int size() {\n return lists.getSize();\n }", "@Override\n\tpublic int size() {\n\t\t\n\t\treturn list.size();\n\t}", "public int size(){\n return list.size();\n }", "public int size(){\n\n \treturn list.size();\n\n }", "public int getSize() {\n\t\t\treturn lists.size();\r\n\t\t}", "@Override\n\tpublic int getSize()\n\t{\n\t\treturn list.size();\n\t}", "public int size() {\n\t\tint numElements = 0;\n\t\tfor (int i = 0; i < this.size; i++) {\n\t\t\tif (list[i] != null) {\n\t\t\t\tnumElements++;\n\t\t\t}\n\t\t}\n\t\treturn numElements;\n\t}", "@Override\n public int size() {\n\n Node nodePointer = listHead;\n int size = 0;\n while (nodePointer != null) {\n size += 1;\n nodePointer = nodePointer.next;\n }\n return size;\n }", "int getListSize(int list) {\n\t\treturn m_lists.getField(list, 4);\n\t}", "@Override\n public int size() {\n return list.size();\n }", "public int listSize(){\r\n return counter;\r\n }", "public int getSize() {\r\n return list.getItemCount();\r\n }", "public int getSize() {\n synchronized (itemsList) {\n return itemsList.size();\n }\n }", "public int getSizeList(){\r\n\t\tint size;\r\n\t\tif (arrayWordsList != null )\r\n\t\t\tsize = arrayWordsList.length;\r\n\t\telse\r\n\t\t\tsize = 0;\r\n\t\t\r\n\t\treturn size;\r\n\t}", "public int size(){\n\t\tListUtilities start = this.returnToStart();\n\t\tint count = 1;\n\t\twhile(start.nextNum != null){\n\t\t\tcount++;\n\t\t\tstart = start.nextNum;\n\t\t}\n\t\treturn count;\n\t}", "public int size(){\n if (head == null) {\n // Empty list\n return 0;\n } else {\n return head.size();\n }\n }", "public int size() {\n int counter = 1;\n Lista iter = new Lista(this);\n while (iter.next != null) {\n iter = iter.next;\n counter += 1;\n }\n return counter;\n }", "public int size()\n { \t\n \t//initialize a counter to measure the size of the list\n int sizeVar = 0;\n //create local node variable to update in while loop\n LinkedListNode<T> localNode = getFirstNode();\n \n //update counter while there are still nodes\n while(localNode != null)\n {\n sizeVar += 1;\n localNode = localNode.getNext();\n }\n \n return sizeVar;\n }", "public int size() {\n // DO NOT MODIFY THIS METHOD!\n return size;\n }", "public int getListCount() {\n return list_.size();\n }", "public int size(){\n int size = 0;\n for(LinkedList<E> item : this.data){\n size += item.size();\n }\n return size;\n }", "public int size() {\r\n if (NumItems > Integer.MAX_VALUE) {\r\n return Integer.MAX_VALUE;\r\n }\r\n return NumItems;\r\n }", "public int size() {\n//\t\tint rtn = 0;\n//\t\tfor (ListNode p = myHead; p != null; p = p.myNext) {\n//\t\t\trtn++;\t\n//\t\t}\n//\t\treturn rtn;\n\t\treturn mySize;\n\t}", "public int size()\r\n {\r\n return nItems;\r\n }", "public int size() {\n // DO NOT MODIFY!\n return size;\n }", "@Override\n public int size() {\n if(isEmpty()){ //if list is empty, size is 0\n return 0;\n }\n /*int size = 1; //if list is not empty, then we have at least one element in it\n DLNode<T> current = last; //a reference, pointing to the last element\n while(current.prev != null){\n current = current.prev;\n size++;\n }*/\n \n int count = 0;\n DLNode<T> p = first;\n while (p != null){\n count++;\n p = p.next;\n }\n //return size;\n return count;\n }", "public int size() {\n\t\tint size = 0;\n\t\tfor (List<?> list : lists) size += list.size();\n\t\treturn size;\n\t}", "public int getListCount() {\n return list_.size();\n }", "public int length()\n {\n if(integerList == null)\n return 0;\n else\n return integerList.length;\n }", "public int size() {\n\t\tint rtn = 0;\n\t\tfor (ListNode p = myHead; p != null; p = p.myNext) {\n\t\t\trtn++;\n\t\t}\n\t\tthis.mySize = rtn;\n\t\treturn rtn;\n\t}", "public int size() {\n return nItems;\n }", "public int size()\r\n\t{\r\n\t\treturn numItems;\r\n\r\n\t}", "public int size() {\n return numItems;\n }", "public int size() {\r\n\t\tthis.size= 0;\r\n\t\tfor (DirectoryComponent item : DirectoryList){\r\n\t\t\tthis.size += item.size();\r\n\t\t}\r\n\t\treturn this.size;\r\n\t}", "public int size() {\n\t\t// DO NOT CHANGE THIS METHOD\n\t\treturn numElements;\n\t}", "@Test\n public void getSizeOfList() {\n List<Integer> list = new ArrayList<>();\n list.add(1);\n list.add(2);\n list.add(3);\n list.add(4);\n\n assertEquals(4, list.size());\n }", "public int getSize()\n\t{\n\t\t// returns n, the number of strings in the list: O(n).\n\t\tint count = 0;\n \t\tnode p = head; \n\t\twhile (p != null)\n \t\t{\n \t\tcount ++;\n \t\tp = p.next;\n \t\t}\n \t\treturn count;\n\t}", "public int get_size();", "public int get_size();", "public int size()\r\n\t{\r\n\t\treturn count;\r\n\t}", "public static int size() \r\n\t{\r\n\t\treturn m_count;\r\n }", "@Override\n\tpublic int size() {\n\n\t\treturn this.numOfItems;\n\t}", "public int size()\r\n {\r\n return size;\r\n }", "public int size()\r\n {\r\n return size;\r\n }", "public int size()\r\n {\r\n return size;\r\n }", "int size()\n\t{\n\t\t//Get the reference of the head of the Linked list\n\t\tNode ref = head;\n\t\t\n\t\t//Initialize the counter to -1\n\t\tint count = -1;\n\t\t\n\t\t//Count the number of elements of the Linked List\n\t\twhile(ref != null)\n\t\t{\n\t\t\tcount++;\n\t\t\tref = ref.next;\n\t\t}\n\t\t\n\t\t//Return the number of elements as the size of the Linked List\n\t\treturn count;\n\t}", "public int size() {\r\n\t\t\tint size = 0;\r\n\t\t\tListNode counter = header;\r\n\t\t\twhile (counter != null) {\r\n\t\t\t\tsize++;\r\n\t\t\t\tcounter = counter.next;\r\n\t\t\t}\r\n\t\t\treturn size;\r\n\t\t}", "public int size()\n {\n \tDNode<E> temp=first;\n \tint count=0;\n \twhile(temp!=null)\t\t//Iterating till the end of the list\n \t{\n \t\tcount++;\n \t\ttemp=temp.next;\n \t}\n \treturn count;\n }", "public int size()\n\t{\n\t\treturn size;\n\t}", "public int size()\n\t{\n\t\treturn size;\n\t}", "public int size()\r\n {\r\n return count;\r\n }", "public int size() {\n \treturn numItems;\n }", "public int size() {\n // TODO: Implement this method\n return size;\n }", "int length() {\n return this.myArrayList.size();\n }", "public int size() {\n return size;\r\n }", "public int size() {\r\n return size;\r\n }", "public int size() {\n\t\treturn count;\n\t}", "public int size() {\n\t\treturn count;\n\t}", "public int size() {\n\t\treturn count;\n\t}", "public int size() {\n ListNode current = front;\n int size = 0;\n while (current != null) {\n size += 1;\n current = current.next;\n }\n return size;\n }", "public int size() {\r\n \r\n return size;\r\n }", "public int size() {\r\n return size;\r\n }", "public int size() {\r\n return size;\r\n }", "public int size() {\r\n return size;\r\n }", "public int size() {\r\n return size;\r\n }", "public int size() {\n\t\tint count = 0;\n\t\tListNode current = front;\n\t\twhile (current != null) {\n\t\t\tcurrent = current.next;\n\t\t\tcount++;\n\t\t}\n\t\treturn count;\n\t}", "public int size()\r\n\t{\r\n\t\treturn this.size;\r\n\t}", "public int size() {\n\t\treturn size;\r\n\t}", "public int size() {\n\t\treturn size;\r\n\t}", "public int size() {\n return doSize();\n }", "public int size() {\n\n return size;\n }", "public int size() {\n return adminList.size() + ipList.size() + tpList.size() + topicList.size();\n }", "public int size()\n {\n return size;\n }", "public int size()\n {\n return size;\n }", "public int size()\n {\n return size;\n }", "public int size()\n {\n return size;\n }", "public final int size()\n {\n return m_count;\n }", "public int size()\n {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }", "public int size() {\n return size;\n }" ]
[ "0.8859538", "0.87179303", "0.8651766", "0.8651766", "0.8646886", "0.8633218", "0.86274886", "0.8609052", "0.859987", "0.8599389", "0.8599389", "0.8564131", "0.8519212", "0.85155004", "0.8418833", "0.8394364", "0.83943605", "0.8393758", "0.83928823", "0.83395946", "0.8327542", "0.8294988", "0.82191634", "0.8185451", "0.815146", "0.814211", "0.8108878", "0.81070167", "0.8105203", "0.7994615", "0.7987481", "0.7976608", "0.7966016", "0.7962991", "0.7901739", "0.7879832", "0.7867985", "0.7846268", "0.7838003", "0.7825754", "0.7821369", "0.78165364", "0.78157645", "0.77935666", "0.77828836", "0.7773492", "0.77648556", "0.77565837", "0.7748948", "0.7719523", "0.77135456", "0.7711805", "0.7704056", "0.77015185", "0.76703465", "0.7645717", "0.7645717", "0.7638319", "0.7637922", "0.76325727", "0.7628035", "0.7628035", "0.7628035", "0.76266474", "0.762266", "0.7615575", "0.76133037", "0.76133037", "0.7604603", "0.7595303", "0.7587815", "0.7580548", "0.7574035", "0.7569319", "0.75692296", "0.75692296", "0.75692296", "0.7568426", "0.756713", "0.7564138", "0.7564138", "0.7564138", "0.7564138", "0.7562457", "0.75624067", "0.7560956", "0.7560956", "0.75609064", "0.75605965", "0.75559586", "0.75455284", "0.75455284", "0.75455284", "0.75455284", "0.75450677", "0.7540878", "0.75373876", "0.75373876", "0.75373876", "0.75373876" ]
0.7884196
35
TODO Autogenerated method stub
@Override public void addNode(Node node) { frontier.addLast(node); if(frontier.size() > maxSize) maxSize = frontier.size(); }
{ "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
@Override public boolean isEmpty() { return frontier.isEmpty(); }
{ "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
@Override public Node removeNode() { if(isEmpty()) return null; // BreadthFirstSearch using a queue, first in first out principle return frontier.removeFirst(); }
{ "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
@Override public void removeAll() { if(isEmpty()) return; // Remove until the frontier is empty while(!isEmpty()) frontier.removeFirst(); }
{ "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
@Override // Return the maximum size of the frontier public int maxSize() { return maxSize; }
{ "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
Create column from exists column
public Column(Column other) { from(other); if (other.next != null) addSubColumn(new Column(other.next)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Column createColumn();", "ColumnOrAlias createColumnOrAlias();", "Col createCol();", "OrColumn createOrColumn();", "public boolean hasExistingColumn(String name) // see also \"hasField(String)\"\n {\n try {\n String n = this.getMappedFieldName(name);\n Map<String,DBField> colMap = this.getExistingColumnMap(false);\n return ((colMap != null) && colMap.containsKey(n))? true : false;\n } catch (DBException dbe) {\n Print.logException(\"Checking for existing column: \" + name, dbe);\n return false;\n }\n }", "ColumnFull createColumnFull();", "private Column processCreateColumn(HsqlName hsqlName)\n throws HsqlException {\n\n boolean isIdentity = false;\n long identityStart = database.firstIdentity;\n long identityIncrement = 1;\n boolean isPrimaryKey = false;\n String typeName;\n int type;\n int length = 0;\n int scale = 0;\n boolean hasLength = false;\n boolean isNullable = true;\n Expression defaultExpr = null;\n String token;\n\n typeName = tokenizer.getSimpleToken();\n type = Types.getTypeNr(typeName);\n\n if (type == Types.CHAR) {\n if (tokenizer.isGetThis(Token.T_VARYING)) {\n type = Types.VARCHAR;\n }\n }\n\n if (typeName.equals(Token.T_IDENTITY)) {\n isIdentity = true;\n isPrimaryKey = true;\n }\n\n // fredt - when SET IGNORECASE is in effect, all new VARCHAR columns are defined as VARCHAR_IGNORECASE\n if (type == Types.DOUBLE) {\n tokenizer.isGetThis(Token.T_PRECISION);\n }\n\n if (tokenizer.isGetThis(Token.T_OPENBRACKET)) {\n hasLength = true;\n length = tokenizer.getInt();\n\n Trace.check(Types.acceptsPrecisionCreateParam(type),\n Trace.UNEXPECTED_TOKEN);\n\n if (type != Types.TIMESTAMP && type != Types.TIME && length == 0) {\n throw Trace.error(Trace.INVALID_SIZE_PRECISION);\n }\n\n if (tokenizer.isGetThis(Token.T_COMMA)) {\n Trace.check(Types.acceptsScaleCreateParam(type),\n Trace.UNEXPECTED_TOKEN);\n\n scale = tokenizer.getInt();\n }\n\n tokenizer.getThis(Token.T_CLOSEBRACKET);\n } else if (type == Types.CHAR && database.sqlEnforceStrictSize) {\n length = 1;\n } else if (type == Types.VARCHAR && database.sqlEnforceStrictSize) {\n throw Trace.error(Trace.COLUMN_SIZE_REQUIRED);\n }\n\n /**\n * @todo fredt - drop support for SET IGNORECASE and replace the\n * type name with a qualifier specifying the case sensitivity of VARCHAR\n */\n if (type == Types.VARCHAR && database.isIgnoreCase()) {\n type = Types.VARCHAR_IGNORECASE;\n }\n\n if (type == Types.FLOAT && length > 53) {\n throw Trace.error(Trace.NUMERIC_VALUE_OUT_OF_RANGE);\n }\n\n if (type == Types.TIMESTAMP) {\n if (!hasLength) {\n length = 6;\n } else if (length != 0 && length != 6) {\n throw Trace.error(Trace.NUMERIC_VALUE_OUT_OF_RANGE);\n }\n }\n\n if (type == Types.TIME) {\n if (length != 0) {\n throw Trace.error(Trace.NUMERIC_VALUE_OUT_OF_RANGE);\n }\n }\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_DEFAULT)) {\n defaultExpr = processCreateDefaultExpression(type, length, scale);\n token = tokenizer.getSimpleToken();\n } else if (token.equals(Token.T_GENERATED)) {\n tokenizer.getThis(Token.T_BY);\n tokenizer.getThis(Token.T_DEFAULT);\n tokenizer.getThis(Token.T_AS);\n tokenizer.getThis(Token.T_IDENTITY);\n\n if (tokenizer.isGetThis(Token.T_OPENBRACKET)) {\n tokenizer.getThis(Token.T_START);\n tokenizer.getThis(Token.T_WITH);\n\n identityStart = tokenizer.getBigint();\n\n if (tokenizer.isGetThis(Token.T_COMMA)) {\n tokenizer.getThis(Token.T_INCREMENT);\n tokenizer.getThis(Token.T_BY);\n\n identityIncrement = tokenizer.getBigint();\n }\n\n tokenizer.getThis(Token.T_CLOSEBRACKET);\n }\n\n isIdentity = true;\n isPrimaryKey = true;\n token = tokenizer.getSimpleToken();\n }\n\n // fredt@users - accept IDENTITY before or after NOT NULL\n if (token.equals(Token.T_IDENTITY)) {\n isIdentity = true;\n isPrimaryKey = true;\n token = tokenizer.getSimpleToken();\n }\n\n if (token.equals(Token.T_NULL)) {\n token = tokenizer.getSimpleToken();\n } else if (token.equals(Token.T_NOT)) {\n tokenizer.getThis(Token.T_NULL);\n\n isNullable = false;\n token = tokenizer.getSimpleToken();\n }\n\n if (token.equals(Token.T_IDENTITY)) {\n if (isIdentity) {\n throw Trace.error(Trace.SECOND_PRIMARY_KEY, Token.T_IDENTITY);\n }\n\n isIdentity = true;\n isPrimaryKey = true;\n token = tokenizer.getSimpleToken();\n }\n\n if (token.equals(Token.T_PRIMARY)) {\n tokenizer.getThis(Token.T_KEY);\n\n isPrimaryKey = true;\n } else {\n tokenizer.back();\n }\n\n // make sure IDENTITY and DEFAULT are not used together\n if (isIdentity && defaultExpr != null) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, Token.T_DEFAULT);\n }\n\n Column column = new Column(hsqlName, isNullable, type, length, scale,\n isPrimaryKey, defaultExpr);\n\n column.setIdentity(isIdentity, identityStart, identityIncrement);\n\n return column;\n }", "Column createColumn(JavaTypeMapping mapping, String javaType, ColumnMetaData colmd);", "Column createColumn(AbstractMemberMetaData fmd, Table table, JavaTypeMapping mapping, ColumnMetaData colmd, Column referenceCol, ClassLoaderResolver clr);", "Column createColumn(JavaTypeMapping mapping, String javaType, int datastoreFieldIndex);", "ColumnOperand createColumnOperand();", "public boolean verifyExists(String value, String column);", "protected ValidationComponent createColumnExistenceComponent (\n\t\tfinal String columnName)\n\t{\n\t\treturn createColumnExistenceComponent(columnName, null);\n\t}", "@Override\r\n\tprotected String defineColumn(ColumnDefinition columnDefinition) {\n\t\treturn null;\r\n\t}", "private void checkAddColumn(Table t, Column c) throws HsqlException {\n\n boolean canAdd = true;\n\n if (t.findColumn(c.columnName.name) != -1) {\n throw Trace.error(Trace.COLUMN_ALREADY_EXISTS, c.columnName.name);\n }\n\n if (c.isPrimaryKey() && t.hasPrimaryKey()) {\n canAdd = false;\n }\n\n if (canAdd && !t.isEmpty(session)) {\n canAdd = c.isNullable() || c.getDefaultExpression() != null;\n }\n\n if (!canAdd) {\n throw Trace.error(Trace.BAD_ADD_COLUMN_DEFINITION);\n }\n }", "PivotCol createPivotCol();", "Get<K, C> addColumn(C column);", "OrOrderByColumn createOrOrderByColumn();", "protected boolean hasColumn(String header){\n return hasColumn(header, false);\n }", "IColumnBinding addColumn(String spec);", "public abstract void newColumn();", "public boolean hasColumn (String column)\n {\n return data.get(canonicalize(column)) != null;\n }", "Get<K, C> addColumn(String family, C column);", "OrGroupByColumn createOrGroupByColumn();", "public void addColumn(String columnName);", "private boolean addColumnToTable(String server, String database, String table, String columnName,\n\t\t\tString dataType) {\n\n\t\tcolumnName = getNormalisedColumnName(columnName);\n\n\t\tString sql = String.format(\"alter table \\\"%s\\\" add column \\\"%s\\\" %s\",\n\t\t\t\ttable, columnName.trim(), dataType);\n\t\ttry {\n\t\t\treturn (new QueryRunner(server, database)\n\t\t\t\t\t.runDBQuery(sql, 0, 0, false));\n\t\t} catch (ClassNotFoundException | SQLException e) {\n\t\t\tlog.debug(\"Error creating table column\", e);\n\t\t\treturn false;\n\t\t}\n\t}", "public static Element addOrModifyColumn(Element parent, String name) {\n\t\tfinal Element columnMapping = parent.element( \"column\" );\n\n\t\tif ( columnMapping == null ) {\n\t\t\treturn addColumn( parent, name, null, null, null, null, null, null );\n\t\t}\n\n\t\tif ( !StringTools.isEmpty( name ) ) {\n\t\t\taddOrModifyAttribute( columnMapping, \"name\", name );\n\t\t}\n\n\t\treturn columnMapping;\n\t}", "public com.guidewire.datamodel.ColumnDocument.Column addNewColumn()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.guidewire.datamodel.ColumnDocument.Column target = null;\r\n target = (com.guidewire.datamodel.ColumnDocument.Column)get_store().add_element_user(COLUMN$0);\r\n return target;\r\n }\r\n }", "IColumnBinding addColumn(IColumnBinding baseColumn, EStructuralFeature feature, int width);", "private void addCalculatedColumn(CalculatedColumn calculatedColumn, String name, String expressionText) {\n try {\n\n ColumnHolder columnHolder = output.getSchema().getColumnHolder(name);\n if (columnHolder != null) {\n if (!(columnHolder.getColumn() instanceof ICalcColumnHolder)) {\n throw new IllegalArgumentException(\"A column already exists with the name '\" + name + \"'\");\n }\n\n String oldExpression = expressions.get(columnHolder.getColumnId());\n if (expressionText.equals(oldExpression)) {\n // nothing to do!\n return;\n }\n }\n\n BitSet columnsUsed = new BitSet();\n HookingContext hookingContext = new HookingContext(getExecutionContext().getReactor(), name, output.getSchema());\n IExpression expression = expressionParser.parse(expressionText, output.getSchema(),\n calcColAliases.get(calculatedColumn), columnsUsed, hookingContext);\n\n int calcColumnIndex = -1;\n if (columnHolder != null) {\n if (!columnHolder.getType().equals(expression.getType())) {\n throw new IllegalArgumentException(\"Cannot change expression on existing column '\" + name + \"' as it is of different type\");\n }\n\n for (int i = 0; i < calcColumnHolders.length; i++) {\n if (calcColumnHolders[i] == columnHolder.getColumn()) {\n calcColumnIndex = i;\n break;\n }\n }\n }\n\n ColumnHolder calcColumnHolder = input.makeColumnHolder(name, expression, columnsUsed);\n tableStorage.initialiseColumn(calcColumnHolder);\n if (columnHolder != null) {\n columnHolder.setColumn(calcColumnHolder);\n } else {\n columnHolder = ColumnHolderUtils.createColumnHolder(name, expression.getType());\n if (calculatedColumn.dataType != null) {\n ColumnMetadata metadata = ColumnHolderUtils.createColumnMetadata(expression.getType());\n metadata.setDataType(calculatedColumn.dataType);\n columnHolder.setMetadata(metadata);\n }\n columnHolder.setColumn(calcColumnHolder);\n output.getSchema().addColumn(columnHolder);\n }\n calcColumnHolder.setColumnId(columnHolder.getColumnId());\n expressions.put(columnHolder.getColumnId(), expressionText);\n for (int columnId = columnsUsed.nextSetBit(0); columnId >= 0; columnId = columnsUsed.nextSetBit(columnId + 1)) {\n ((IWritableColumn) output.getSchema().getColumnHolder(columnId).getColumn()).storePreviousValues();\n }\n output.getCurrentChanges().markColumnDirty(columnHolder.getColumnId());\n if (calcColumnIndex == -1) {\n calcColumnIndex = nextCalcColumn++;\n }\n if (calcColumnHolders.length <= calcColumnIndex) {\n calcColumnHolders = Arrays.copyOf(calcColumnHolders, calcColumnIndex + 1);\n }\n calcColumnHolders[calcColumnIndex] = calcColumnHolder;\n addedColumns.add(calcColumnHolder);\n addedColumnIds.set(calcColumnHolder.getColumnId());\n if (isDataRefreshedOnColumnAdd) {\n refreshData();\n }\n } catch (Throwable t) {\n throw new OperatorConfigurationException(CalcColOperator.this, t);\n }\n\n// log.trace(\"Took {}ms to add calc col {} [{}]\", (System.nanoTime() - start) / 1000000f, name, expressionText);\n }", "public abstract void addColumn(Column c);", "public IColumn addColumn(String name, int idx) throws ETLException {\r\n\t\tif (name == null) {\r\n\t\t\tString baseName = \"Col-\" + columns.size();\r\n\t\t\tname = baseName;\r\n\t\t\tint i = 0;\r\n\t\t\twhile (columnMap.containsKey(name)) {\r\n\t\t\t\tname = baseName + \".\" + (i++);\r\n\t\t\t}\r\n\t\t}\r\n\t\tIColumn column = new Column(name, idx); \r\n\t\taddColumn(column);\r\n\t\treturn column;\r\n\t}", "private HColumnDescriptor toHColumnDescriptor(ColumnFamilyDescriptor column) {\n HColumnDescriptor hColumnDescriptor = new HColumnDescriptor(column.getNameAsString());\n // TODO - copy the config and value Maps\n for (Map.Entry<String, String> entry : column.getConfiguration().entrySet()) {\n hColumnDescriptor.setConfiguration(entry.getKey(), entry.getValue());\n }\n for (Map.Entry<Bytes, Bytes> entry : column.getValues().entrySet()) {\n hColumnDescriptor.setValue(entry.getKey().get(), entry.getValue().get());\n }\n return hColumnDescriptor;\n }", "public boolean addColumn(String colName) {\n\t\tif (!Strings.isNullOrEmpty(colName)) {\n\t\t\tif (!mColIdxByNameMap.containsKey(colName)) {\n\t\t\t\tmColIdxByNameMap.put(colName, mNumCols);\n\n\t\t\t\tmNumCols++;\n\n\t\t\t\tfor (List<String> colDataList : mDataByID.values()) {\n\t\t\t\t\tcolDataList.add(null);\n\t\t\t\t}\n\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (LOGGER.isDebugEnabled()) {\n\t\t\t\t\tLOGGER.debug(\"Column name \\\"\" + colName + \"\\\" already exists.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif (LOGGER.isDebugEnabled()) {\n\t\t\t\tLOGGER.debug(\"Must provide a column name.\");\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "private void handleColumnFields(JFieldVar field, JsonNode propertyNode) {\n if (propertyNode.has(JpaConstants.COLUMN)) {\n JAnnotationUse jAnnotationUse = field.annotate(Column.class);\n if (propertyNode.has(JpaConstants.COLUMN_NAME)) {\n jAnnotationUse.param(JpaConstants.NAME, propertyNode.get(JpaConstants.COLUMN_NAME).asText());\n } else if (!propertyNode.get(JpaConstants.COLUMN).isBoolean()) {\n jAnnotationUse.param(JpaConstants.NAME, propertyNode.get(JpaConstants.COLUMN).asText());\n }\n }\n }", "public void createColumn(String columnName){\n addColumnBtn.click();\n wait.until(ExpectedConditions.visibilityOf(columnNameLbl));\n columnNameLbl.click();\n columnNameInput.sendKeys(columnName);\n columnNameInput.sendKeys(Keys.ENTER);\n }", "public BooleanColumn mapToBooleanColumn(\n String name, Function<? super T, ? extends Boolean> function) {\n BooleanColumn newColumn = BooleanColumn.create(name, size());\n mapInto(function, newColumn);\n return newColumn;\n }", "private void createDuplicateColumn(String tableName, Column c, ArrayList<Column> list) {\n\t\ttry {\n\t\t\tif (c.getName().contains(\".\"))\n\t\t\t\tlist.add(new Column(c.getName(),null,c.getColumnType(),c.getDefault()));\n\t\t\telse\n\t\t\t\tlist.add(new Column(tableName+\".\"+c.getName(),null,c.getColumnType(),c.getDefault()));\n\t\t} catch (InvalidNameException e) {\n\t\t\t//\n\t\t}\n\t}", "boolean hasCol();", "public void addColumn(DatabaseColumn column) {\n addColumn(-1, column);\n }", "public IColumn addColumn(String name) throws ETLException {\r\n\t\treturn addColumn(name, -1);\r\n\t}", "void setValueOfColumn(ModelColumnInfo<Item> column, @Nullable Object value);", "protected ValidationComponent createColumnExistenceComponent (\n\t\tfinal String columnName, final MappingFieldElement relatedField)\n\t{\n\t\treturn new ValidationComponent ()\n\t\t{\n\t\t\tpublic void validate () throws ModelValidationException\n\t\t\t{\n\t\t\t\tif (columnName != null)\n\t\t\t\t{\n\t\t\t\t\tString className = getClassName();\n\t\t\t\t\tString absoluteName = NameUtil.getAbsoluteMemberName(\n\t\t\t\t\t\tgetSchemaForClass(className), columnName);\n\t\t\t\t\tTableElement table = TableElement.forName(\n\t\t\t\t\t\tNameUtil.getTableName(absoluteName));\n\t\t\t\t\tboolean foundTable = (table != null);\n\t\t\t\t\tDBMemberElement columnElement = ((foundTable) ? \n\t\t\t\t\t\ttable.getMember(DBIdentifier.create(absoluteName)) :\n\t\t\t\t\t\tnull);\n\t\t\t\t\tboolean noRelated = (relatedField == null);\n\n\t\t\t\t\tif (foundTable)\n\t\t\t\t\t{\n\t\t\t\t\t\tboolean isRelationship = \n\t\t\t\t\t\t\t(!noRelated && isRelationship(relatedField));\n\t\t\t\t\t\tboolean noColumn = (columnElement == null);\n\n\t\t\t\t\t\tif (!isRelationship && noColumn)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tObject[] args = (noRelated) ? \n\t\t\t\t\t\t\t\tnew Object[]{columnName, className} : \n\t\t\t\t\t\t\t\tnew Object[]{columnName, relatedField, \n\t\t\t\t\t\t\t\tclassName};\n\n\t\t\t\t\t\t\tthrow new ModelValidationException(\n\t\t\t\t\t\t\t\tModelValidationException.WARNING, \n\t\t\t\t\t\t\t\tgetOffendingObject(relatedField),\n\t\t\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), getKey(\n\t\t\t\t\t\t\t\t\t\"util.validation.column_not_found\", //NOI18N\n\t\t\t\t\t\t\t\t\trelatedField), args));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (isRelationship && \n\t\t\t\t\t\t\t(noColumn || !isPairComplete(columnElement)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthrow new ModelValidationException(\n\t\t\t\t\t\t\t\tModelValidationException.WARNING, \n\t\t\t\t\t\t\t\tgetOffendingObject(relatedField),\n\t\t\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\t\t\t\"util.validation.column_invalid\", //NOI18N\n\t\t\t\t\t\t\t\t\tnew Object[]{columnName, relatedField, \n\t\t\t\t\t\t\t\t\tclassName}));\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\tprivate boolean isPairComplete (DBMemberElement member)\n\t\t\t{\n\t\t\t\treturn ((member instanceof ColumnPairElement) && \n\t\t\t\t\t(((ColumnPairElement)member).getLocalColumn() != null) && \n\t\t\t\t\t(((ColumnPairElement)member).getReferencedColumn() \n\t\t\t\t\t!= null));\n\t\t\t}\n\t\t};\n\t}", "private static TextColumnBuilder getColumnByNameField(String nameField){ \n return drColumns.get(nameField);\n }", "public boolean supportsColumnCheck() {\n \t\treturn true;\n \t}", "public Column createFromParcel(Parcel parcel) {\n return new Column(parcel);\n }", "IColumnBinding addColumn(EStructuralFeature feature, int width);", "public T col(final String column) {\r\n\t\treturn op(ConditionValueType.COLUMN, column);\r\n\t}", "IColumnBinding addColumn(SpecialBinding columnType, int width);", "public void addColumn(Column col) {\n\t\t// Allocate a new array.\n\t\tColumn[] newColumns = new Column[columns.length + 1];\n\n\t\t// copy current columns if any\n\t\tSystem.arraycopy(columns, 0, newColumns, 0, columns.length);\n\n\t\t//ANCA: need to expand the column\n\t\t// old:\t\tnewColumns[newColumns.length - 1] = col;\n\n\t\tString columnClass = (col.getClass()).getName();\n\t\tColumn expandedColumn = null;\n\t\ttry {\n\t\t\texpandedColumn = (Column) Class.forName(columnClass).newInstance();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t\t//if col is the first column in the table add it as is and initialize subset\n\t\tint numRows = super.getNumRows();\n\t\tif (columns.length == 0) {\n\t\t\tif (subset.length == 0) {\n\t\t\t\tnumRows = col.getNumRows();\n\t\t\t\tsubset = new int[numRows];\n\t\t\t\tfor (int i = 0; i < this.getNumRows(); i++) {\n\t\t\t\t\tsubset[i] = i;\n\t\t\t\t}\n\t\t\t\texpandedColumn = col;\n\t\t\t}\n\t\t} else if (numRows == col.getNumRows()) {\n expandedColumn = col;\n } else {\n\t\t\texpandedColumn.addRows(numRows);\n\t\t\texpandedColumn.setLabel(col.getLabel());\n\t\t\texpandedColumn.setComment(col.getComment());\n\t\t\texpandedColumn.setIsScalar(col.getIsScalar());\n\t\t\texpandedColumn.setIsNominal(col.getIsNominal());\n\n\t\t\t//initialize all values as missing for the beginning\n\t\t\tfor (int j = 0; j < numRows; j++)\n\t\t\t\texpandedColumn.setValueToMissing(true, j);\n\n\t\t\t//set the elements of the column where appropriate as determined by subset\n\t\t\tObject el;\n\t\t\tfor (int i = 0; i < subset.length; i++) {\n if (col.isValueMissing(i)) {\n expandedColumn.setValueToMissing(true, i);\n } else {\n\t\t\t\t el = col.getObject(i);\n\t\t\t\t expandedColumn.setObject(el, subset[i]);\n\t\t\t\t expandedColumn.setValueToMissing(false, subset[i]);\n }\n\t\t\t}\n\t\t}\n\t\tnewColumns[newColumns.length - 1] = expandedColumn;\n\t\tcolumns = newColumns;\n\t}", "ColumnMapping createColumnMapping(JavaTypeMapping mapping, AbstractMemberMetaData fmd, int index, Column column);", "ColumnMapping createColumnMapping(JavaTypeMapping mapping, Column column, String javaType);", "public boolean containsColumn(String name) {\r\n\t\treturn columnMap.containsKey(name) || aliasMap.containsKey(name);\r\n\t}", "public TapColumn findOneColumn(TapColumnPK tapColumnPK);", "private static boolean isColumn(String table, String column) throws SQLException {\n\t\tConnection con = Connect_db();\r\n\t\tPreparedStatement pstat = con.prepareStatement(table);\r\n\t\tResultSet rs = pstat.executeQuery();\r\n\t\ttry {\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tif (rs.getString(\"Field\").equals(column)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t} finally {\r\n\t\t\t// TODO: handle finally clause\r\n\t\t\tcon.close();\r\n\t\t}\r\n\t}", "@Override\n\tpublic Identifier determineBasicColumnName(ImplicitBasicColumnNameSource source) {\n\t\treturn toIdentifier( transformAttributePath( source.getAttributePath() ), source.getBuildingContext() );\n\t}", "public static void addColumn(Element anyMapping, Column column) {\n\t\taddColumn(\n\t\t\t\tanyMapping,\n\t\t\t\tcolumn.getName(),\n\t\t\t\tcolumn.getLength(),\n\t\t\t\tcolumn.getScale(),\n\t\t\t\tcolumn.getPrecision(),\n\t\t\t\tcolumn.getSqlType(),\n\t\t\t\tcolumn.getCustomRead(),\n\t\t\t\tcolumn.getCustomWrite(),\n\t\t\t\tcolumn.isQuoted()\n\t\t);\n\t}", "@Override\n\t\t\tpublic ColumnMetaData getColumnMetaData() {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tthrow new UnsupportedOperationException(\n\t\t\t\t\t\t\"If you want to use val() to create a real\"\n\t\t\t\t\t\t\t\t+ \" column within a tuple, give it a name (i.e. use val(obj, name))!\");\n\t\t\t}", "@Override\n\tpublic IColumns createColumns() {\n\t\treturn null;\n\t}", "@Override\n\tpublic IColumns createColumns() {\n\t\treturn null;\n\t}", "public abstract List<V> makeColumnData(C column);", "public boolean addColumn(String columnName, DataType valueType) {\n boolean added = false;\n\n if (!columns.containsKey(columnName)) {\n\n columns.put(columnName, valueType);\n added = true;\n }\n\n return added;\n }", "@Override\n public Boolean generateColumn() {\n presenter.appendColumn(editingWrapper().getActionCol52());\n\n return true;\n }", "private void addColumnInPath(String key) {\n _queryBuilder.addColumn(key);\n _queryBuilder.addTable(TableMetaData.KEY_TABLE_PATH);\n }", "protected String getNewGenericColumnName(int column) {\n\t\tHashSet<String> usedNames = new HashSet<>();\n\t\tfor (AttributeColumn col : getAllAttributeColumns()) {\n\t\t\tusedNames.add(col.getName());\n\t\t}\n\n\t\twhile (usedNames.contains(\"attribute_\" + column)) {\n\t\t\tcolumn++;\n\t\t}\n\t\treturn \"attribute_\" + column;\n\t}", "public void setColumn(String column, boolean b)\n {\n if (! hasColumn(column))\n throw new IllegalArgumentException(\"No such column \" + column);\n \n data.put(canonicalize(column), b ? Boolean.TRUE : Boolean.FALSE);\n }", "public void addColumn(Expression value) {\n myInfoExposer.addColumn(value);\n }", "public void addColumn(final byte [] tableName, DBColumnDescriptor column)\n throws IOException {\n if (this.master == null) \n throw new MasterNotRunningException(\"master has been shut down\");\n \n DBTableDescriptor.isLegalTableName(tableName);\n try {\n this.master.addColumn(tableName, column);\n } catch (RemoteException e) {\n throw RemoteExceptionHandler.decodeRemoteException(e);\n }\n }", "Column(String column) {\n this.column = column;\n }", "Column(String column) {\n this.column = column;\n }", "public void testExists() {\n\n String\tsql\t= \"SELECT AD_Table.AD_Table_ID, AD_Table.TableName \" + \"FROM AD_Table \" + \"WHERE EXISTS (SELECT * FROM AD_Column c WHERE AD_Table.AD_Table_ID=c.AD_Table_ID)\";\n AccessSqlParser\tfixture\t= new AccessSqlParser(sql);\n\n assertEquals(\"AccessSqlParser[AD_Column=c|AD_Table|1]\", fixture.toString());\n }", "boolean isNeedColumnInfo();", "public Column getColumn(String columnName);", "private void processAlterColumnRename(Table t,\n Column column) throws HsqlException {\n\n String newName = tokenizer.getSimpleName();\n boolean isquoted = tokenizer.wasQuotedIdentifier();\n\n if (t.findColumn(newName) > -1) {\n throw Trace.error(Trace.COLUMN_ALREADY_EXISTS, newName);\n }\n\n t.database.schemaManager.checkColumnIsInView(t,\n column.columnName.name);\n session.commit();\n session.setScripting(true);\n t.renameColumn(column, newName, isquoted);\n }", "public void addColumn(String name, String type, boolean primaryKey) {\n if (mColumnCreationStr.length() != 0) {\n mColumnCreationStr += \", \";\n }\n\n // Adding column\n mColumnCreationStr += name + \" \";\n mColumnCreationStr += type + \" \";\n if (primaryKey) {\n mColumnCreationStr += \"PRIMARY KEY \";\n }\n }", "Column baseColumn();", "public boolean containsColumn(final String name) {\n boolean found = false;\n \n for (PgColumn column : columns) {\n if (column.getName().equals(name)) {\n found = true;\n \n break;\n }\n }\n \n return found;\n }", "protected Column fix(Column column) {\n String name = fix(column.getName());\n column.setName(name);\n return column;\n }", "Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {\n this.column = column;\n this.javaProperty = javaProperty;\n this.jdbcType = jdbcType;\n this.isColumnNameDelimited = isColumnNameDelimited;\n }", "Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {\n this.column = column;\n this.javaProperty = javaProperty;\n this.jdbcType = jdbcType;\n this.isColumnNameDelimited = isColumnNameDelimited;\n }", "Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {\n this.column = column;\n this.javaProperty = javaProperty;\n this.jdbcType = jdbcType;\n this.isColumnNameDelimited = isColumnNameDelimited;\n }", "Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {\n this.column = column;\n this.javaProperty = javaProperty;\n this.jdbcType = jdbcType;\n this.isColumnNameDelimited = isColumnNameDelimited;\n }", "Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {\n this.column = column;\n this.javaProperty = javaProperty;\n this.jdbcType = jdbcType;\n this.isColumnNameDelimited = isColumnNameDelimited;\n }", "Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {\n this.column = column;\n this.javaProperty = javaProperty;\n this.jdbcType = jdbcType;\n this.isColumnNameDelimited = isColumnNameDelimited;\n }", "Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {\n this.column = column;\n this.javaProperty = javaProperty;\n this.jdbcType = jdbcType;\n this.isColumnNameDelimited = isColumnNameDelimited;\n }", "Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {\n this.column = column;\n this.javaProperty = javaProperty;\n this.jdbcType = jdbcType;\n this.isColumnNameDelimited = isColumnNameDelimited;\n }", "Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {\n this.column = column;\n this.javaProperty = javaProperty;\n this.jdbcType = jdbcType;\n this.isColumnNameDelimited = isColumnNameDelimited;\n }", "Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {\n this.column = column;\n this.javaProperty = javaProperty;\n this.jdbcType = jdbcType;\n this.isColumnNameDelimited = isColumnNameDelimited;\n }", "Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {\n this.column = column;\n this.javaProperty = javaProperty;\n this.jdbcType = jdbcType;\n this.isColumnNameDelimited = isColumnNameDelimited;\n }", "public void addColumn(final Column<?> column) {\n Preconditions.checkState(!readOnly, \"Cannot add more data to a read only concat column\");\n Preconditions.checkArgument(column.getType() == getType(), \"cannot append a type %s to a column of type %s\", column\n .getType(), getType());\n if (column instanceof ConcatColumn) {\n for (Column<?> c : ((ConcatColumn<?>) column).columnIds.values()) {\n addColumn(c);\n }\n } else {\n columnIds.put(numTuples, column);\n numTuples += column.size();\n }\n }", "@Override\n\tpublic IColumns createColumns() {\n\t\treturn new CustomerselfhawbColumns();\n\t}", "private ArrayList<PSJdbcColumnDef> createColumnDef(PSJdbcDataTypeMap dataTypeMap)\n {\n ArrayList<PSJdbcColumnDef> coldefs = new ArrayList<PSJdbcColumnDef>();\n coldefs.add(new PSJdbcColumnDef(dataTypeMap, \"col1\", PSJdbcTableComponent.ACTION_REPLACE, Types.CHAR, \"10\",\n true, null));\n coldefs.add(new PSJdbcColumnDef(dataTypeMap, \"col2\", PSJdbcTableComponent.ACTION_CREATE, Types.DATE, \"15\",\n true, null));\n return coldefs;\n }", "@Override\n\tpublic IColumns createColumns() {\n\t\treturn new WaybillforauditColumns();\n\t}", "@NotNull\r\n String getColumnId();", "public void addColumn(Expression value, ObjectTransformer transform) {\n myInfoExposer.addColumn(value, transform);\n }", "@FunctionalInterface\npublic interface MetaColumnExec {\n\tStbColumn process(final StbColumn column, Annotation self, Field annotatedField);\n}", "Column getCol();", "public TableColumn specifyColumn(String type, String name, String cmd,\n boolean newObject, boolean newColumn)\n throws ClassNotFoundException, IllegalAccessException, InstantiationException\n {\n Map gprops = (Map)getSpecification().getProperties();\n Map props = (Map)getSpecification().getCommandProperties(cmd);\n Map bindmap = (Map)props.get(\"Binding\"); // NOI18N\n String tname = (String)bindmap.get(type);\n if (tname != null) {\n Map typemap = (Map)gprops.get(tname);\n if (typemap == null) throw new InstantiationException(\n MessageFormat.format(NbBundle.getBundle(\"org.netbeans.lib.ddl.resources.Bundle\").getString(\"EXC_UnableLocateObject\"), // NOI18N\n new String[] {tname}));\n Class typeclass = Class.forName((String)typemap.get(\"Class\")); // NOI18N\n String format = (String)typemap.get(\"Format\"); // NOI18N\n column = (TableColumn)typeclass.newInstance();\n column.setObjectName(name);\n column.setObjectType(type);\n column.setColumnName(name);\n column.setFormat(format);\n column.setNewObject(newObject);\n column.setNewColumn(newColumn);\n } else throw new InstantiationException(MessageFormat.format(NbBundle.getBundle(\"org.netbeans.lib.ddl.resources.Bundle\").getString(\"EXC_UnableLocateType\"), // NOI18N\n new String[] {type, bindmap.toString() }));\n\n return column;\n }", "public static <N,V> HColumn<N,V> createColumn(N name, V value,\n Serializer<N> nameSerializer, Serializer<V> valueSerializer) {\n return new HColumn<N, V>(name, value, createClock(), nameSerializer, valueSerializer);\n }", "public boolean columExists(String pTableName, String pColumnName)\n {\n \t// Busca en la tabla la columna deseada.\n \treturn true;\n }", "@Override\n\tpublic Identifier determineIdentifierColumnName(ImplicitIdentifierColumnNameSource source) {\n\t\treturn toIdentifier(\n\t\t\t\ttransformAttributePath( source.getIdentifierAttributePath() ),\n\t\t\t\tsource.getBuildingContext()\n\t\t);\n\t}" ]
[ "0.6953087", "0.63553816", "0.61299795", "0.61033225", "0.58512086", "0.58470005", "0.5759282", "0.56992847", "0.56795484", "0.5564968", "0.55595875", "0.54825926", "0.5475979", "0.5467109", "0.54572064", "0.54553837", "0.5325853", "0.531078", "0.52782166", "0.5229413", "0.5205627", "0.5181353", "0.5173219", "0.5165891", "0.51561797", "0.51530814", "0.5129444", "0.5106159", "0.51029414", "0.5098089", "0.5097133", "0.5091721", "0.5050319", "0.5043605", "0.50173384", "0.5010722", "0.50101", "0.49979636", "0.4992778", "0.4992237", "0.4982834", "0.4971283", "0.49668163", "0.49641335", "0.49437636", "0.49290466", "0.4914837", "0.4906211", "0.48874626", "0.48854387", "0.4875132", "0.48633477", "0.4849227", "0.48436874", "0.48412985", "0.4840569", "0.48322758", "0.4828542", "0.48190624", "0.48190624", "0.48186022", "0.48178673", "0.48130697", "0.47698766", "0.47663453", "0.47606885", "0.4756646", "0.4754739", "0.4749695", "0.4749695", "0.47346944", "0.47314757", "0.4728463", "0.47251615", "0.47095308", "0.4706038", "0.47024387", "0.46978208", "0.46944433", "0.46944433", "0.46944433", "0.46944433", "0.46944433", "0.46944433", "0.46944433", "0.46944433", "0.46944433", "0.46944433", "0.46944433", "0.4692047", "0.46734023", "0.4666296", "0.46589106", "0.46569502", "0.4642588", "0.4641748", "0.4631265", "0.46268287", "0.462551", "0.45977697", "0.45858008" ]
0.0
-1
Copy properties from other column
public Column from(Column other) { this.key = other.key; this.name = other.name; this.clazz = other.clazz; // this.share = other.share; this.processor = other.processor; this.styleProcessor = other.styleProcessor; this.width = other.width; this.headerHeight = other.headerHeight; this.o = other.o; this.styles = other.styles; this.headerComment = other.headerComment; this.cellComment = other.cellComment; this.numFmt = other.numFmt; this.colIndex = other.colIndex; this.option = other.option; this.realColIndex = other.realColIndex; if (other.cellStyle != null) setCellStyle(other.cellStyle); if (other.headerStyle != null) setHeaderStyle(other.headerStyle); int i; if ((i = other.getHeaderStyleIndex()) > 0) this.headerStyleIndex = i; if ((i = other.getCellStyleIndex()) > 0) this.cellStyleIndex = i; this.effect = other.effect; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void copyColumns(Object o1, Object o2, JpaClassInfo classInfo, PropertyFilter propertyFilter) {\n\t\tfor (String property : classInfo.getColumns()) {\n\t\t\tif (propertyFilter.test(o1, property)) {\n\t\t\t\tObject value = JpaIntrospector.getProperty(o1, property);\n\t\t\t\tJpaIntrospector.setProperty(o2, property, value);\n\t\t\t}\n\t\t}\n\t}", "void copyMetasToProperties( Object source, Object target );", "@Override\n public RelatedArtifactChangedColumn copy() {\n RelatedArtifactChangedColumn newXCol = new RelatedArtifactChangedColumn();\n super.copy(this, newXCol);\n return newXCol;\n }", "void copyMetasToProperties( Object sourceAndTarget );", "void copyPropertiesToMetas( Object source, Object target );", "void copyPropertiesToMetas( Object sourceAndTarget );", "public void copyFrom(Column scol)\n{\n\tjType = scol.getType();\n\t//key = scol.isKey();\n\tlabel = scol.getLabel();\n}", "@Override\r\n\tpublic void copy(Property p) {\n\t\t\r\n\t}", "Builder copyValues(PropertyBox source);", "void copyMetasToProperties( Object source, Object target, String... blackList );", "@Override\n public DatabaseQueryColumn clone() {\n return new DatabaseQueryColumn(this.formula, this.name);\n }", "IDataRow getCopy();", "private void pasteMetaDataFromClipboardField(OwField prop_p) throws Exception\r\n {\r\n OwClipboard clipboard = getClipboard();\r\n if (clipboard != null && !clipboard.getContent().isEmpty())\r\n {\r\n Iterator it = clipboard.getContent().iterator();\r\n while (it.hasNext())\r\n {\r\n OwField field = ((OwClipboardContentOwField) it.next()).getField();\r\n //search for the correct field <--> field association\r\n if (field.getFieldDefinition().getClassName().equals(prop_p.getFieldDefinition().getClassName()))\r\n {\r\n prop_p.setValue(field.getValue());\r\n\r\n //exit loop\r\n break;\r\n }\r\n }\r\n }\r\n }", "public final void copy(ColumnInfo columnInfo, ColumnInfo columnInfo2) {\n BleKeyDataColumnInfo bleKeyDataColumnInfo = (BleKeyDataColumnInfo) columnInfo;\n BleKeyDataColumnInfo bleKeyDataColumnInfo2 = (BleKeyDataColumnInfo) columnInfo2;\n bleKeyDataColumnInfo2.serialNumberIndex = bleKeyDataColumnInfo.serialNumberIndex;\n bleKeyDataColumnInfo2.keyValueIndex = bleKeyDataColumnInfo.keyValueIndex;\n bleKeyDataColumnInfo2.keyTitleIndex = bleKeyDataColumnInfo.keyTitleIndex;\n bleKeyDataColumnInfo2.keyAssignIndex = bleKeyDataColumnInfo.keyAssignIndex;\n bleKeyDataColumnInfo2.deviceClassIndex = bleKeyDataColumnInfo.deviceClassIndex;\n bleKeyDataColumnInfo2.interfaceTypeIndex = bleKeyDataColumnInfo.interfaceTypeIndex;\n bleKeyDataColumnInfo2.maxColumnIndexValue = bleKeyDataColumnInfo.maxColumnIndexValue;\n }", "private void pasteMetaDataFromClipboardObject(OwField prop_p) throws Exception\r\n {//TODO implement paste MetaData from Clipboard Field to field\r\n if (prop_p != null)\r\n {\r\n OwClipboard clipboard = getClipboard();\r\n OwObject clipboardObject = ((OwClipboardContentOwObject) clipboard.getContent().get(0)).getObject();\r\n try\r\n {\r\n OwField clipboardfield = clipboardObject.getProperty(prop_p.getFieldDefinition().getClassName());\r\n\r\n // filter only writable user fields\r\n if (isfieldPasteable(prop_p, clipboardObject))\r\n {\r\n prop_p.setValue(clipboardfield.getValue());\r\n }\r\n }\r\n catch (OwObjectNotFoundException e)\r\n {\r\n // ignore\r\n }\r\n }\r\n }", "void copyPropertiesToMetas( Object source, Object target, String... blackList );", "@Override\n public LogStateColumn copy() {\n LogStateColumn newXCol = new LogStateColumn();\n copy(this, newXCol);\n return newXCol;\n }", "public void copyValue(DBRow p_src) throws DBException\n\t{\n\t\tSet<String> colList= _MetaData.getColumnNameList();\n\n\t\tfor (String colName : colList)\n\t\t{\n\t\t\tDBColumnMetaData colMeta = _MetaData.getColumnMetaData(colName);\n\t\t\tDBColumn dbval = p_src.getColumn(colMeta.getName());\n\t\t\t\n\t\t\tif(dbval != null)\n\t\t\t\t_RowData.get(colMeta.getName()).setValue(dbval.getValue());\n\t\t}\t\t\t\n\t}", "void copyPropertiesToMetas( Object sourceAndTarget, String... blackList );", "@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }", "@Override\n public FieldEntity copy()\n {\n return state.copy();\n }", "@Override\n public void copyProperty(Object dest, String name, Object value)\n throws IllegalAccessException, InvocationTargetException {\n if (value != null) {\n // attempt to check if the value is a pojo we can clone using nested calls\n if (!value.getClass().isPrimitive()\n && !value.getClass().isSynthetic()\n && !isInternal(value.getClass().getName())) {\n try {\n Object prop = super.getPropertyUtils().getProperty(dest, name);\n // get current value, if its null then clone the value and set that to the value\n if (prop == null) {\n super.setProperty(dest, name, super.cloneBean(value));\n } else {\n // get the destination value and then recursively call\n copyProperties(prop, value);\n }\n } catch (NoSuchMethodException e) {\n return;\n } catch (InstantiationException e) {\n throw new RuntimeException(\"Nested property could not be cloned.\", e);\n }\n } else {\n super.copyProperty(dest, name, value);\n }\n }\n }", "@Override\n\tpublic void setColumnProperties() {\n\t\t\n\t\tcolPedidoCompraId.setCellValueFactory(new PropertyValueFactory<>(\"id\"));\n//\t\tcolPedidoCompraNome.setCellValueFactory(new PropertyValueFactory<>(\"nome\"));\n\t\tcolStatus.setCellValueFactory(new PropertyValueFactory<>(\"status\"));\n//\t\tcolSaldoInicial.setCellValueFactory(new PropertyValueFactory<>(\"saldoinicial\"));\n//\t\tcolIE.setCellValueFactory(new PropertyValueFactory<>(\"inscricaoestadual\"));\n//\t\tcolEmail.setCellValueFactory(new PropertyValueFactory<>(\"email\"));\n//\t\tcolTelefone.setCellValueFactory(new PropertyValueFactory<>(\"telefone\"));\n\t\tcolAtivo.setCellValueFactory(new PropertyValueFactory<>(\"ativo\"));\n//\t\t\n\t\tcolEdit.setCellFactory(cellFactory);\n\t\tcolDel.setCellFactory(cellFactorydel);\n\t\t\n\t\tsuper.setColumnProperties();\n\t}", "IGLProperty clone();", "public Column(Column other) {\n from(other);\n if (other.next != null) addSubColumn(new Column(other.next));\n }", "public Object getFromData() throws AeBusinessProcessException\r\n {\r\n IAePropertyAlias propAlias = getPropertyAlias();\r\n return AePropertyAliasBasedSelector.selectValue(propAlias, getDataForQueryContext(propAlias), getCopyOperation().getContext());\r\n }", "Field getCopy();", "public abstract void setProperties(Properties uprop);", "private void refreshProperties() {\n\t\tInspectableProperty[][] inspectableProperties = new InspectableProperty[propertiesRowCount][];\n InspectableProperty[] creatorProperties = new InspectableProperty[propertiesRowCount];\n for (int i = 0; i < propertiesRowCount; i++) {\n \tinspectableProperties[i] = inspectables[i].getProperties(columnOrder, true);\n\t\t\tfor (int j = 0; j < inspectableProperties[i].length; j++) {\n\t\t\t\tInspectableProperty property = inspectableProperties[i][j];\n\t\t\t\tif (property instanceof CreatorProperty && creatorProperties[i] == null) {\n\t\t\t\t\tcreatorProperties[i] = property;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n }\n\t\t\t\n\t\t// Count the number of columns required by matching the properties by their names.\n \t\tnameToPropertiesColumnIndex = new HashMap();\n Vector propStrings = new Vector();\n // Add the starting fixed columns.\n propStrings.add(\"\");\n propStrings.add(propertiesNamesColumn);\n\t\tnameToPropertiesColumnIndex.put(propertiesNamesColumn, new Integer(1));\n propStrings.add(propertiesCommentsColumn);\n\t\tnameToPropertiesColumnIndex.put(propertiesCommentsColumn, new Integer(2));\n propertiesColumnCount = 3;\n for (int i = 0; i < propertiesRowCount; i++) {\n\t\t\tfor (int j = 0; j < inspectableProperties[i].length; j++) {\n\t\t\t\tInspectableProperty property = inspectableProperties[i][j];\n\t\t\t\tif (!(property instanceof CreatorProperty)) {\n\t\t\t\t\tString name = property.getName();\n\t\t\t\t\tif (nameToPropertiesColumnIndex.get(name) == null) {\n\t\t\t\t\t\tnameToPropertiesColumnIndex.put(name, Integer.valueOf(String.valueOf(propertiesColumnCount)));\n\t\t\t\t\t\tpropStrings.add(name);\n\t\t\t\t\t\tpropertiesColumnCount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tpropertiesColumnNames = new String[propertiesColumnCount];\n\t\tpropStrings.copyInto(propertiesColumnNames);\n\n\t\t// Copy the properties into a rectangle shaped table. Empty spaces are filled with creator properties.\n\t\tproperties = new InspectableProperty[propertiesRowCount][];\n\t\tfor (int i = 0; i < propertiesRowCount; i++) {\n\t\t\tproperties[i] = new InspectableProperty[propertiesColumnCount];\n\n\t\t\tVisibilityProperty visibilityProperty = new VisibilityProperty(true);\n\t\t\tfor (int j = 0; j < propertiesColumnCount; j++) {\n\t\t\t\tif (j == 0) {\n\t\t\t\t properties[i][j] = visibilityProperty;\n\t\t\t\t} else if (propertiesColumnNames[j].equals(propertiesCommentsColumn)) {\n\t\t\t\t properties[i][j] = inspectables[i].getCommentProperty();\n\t\t\t\t} else {\n\t\t\t\t properties[i][j] = creatorProperties[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor (int j = 0; j < inspectableProperties[i].length; j++) {\n\t\t\t\tInspectableProperty property = inspectableProperties[i][j];\n\t\t\t\tif (!(property instanceof CreatorProperty)) {\n\t\t\t\t\tint col = ((Integer)nameToPropertiesColumnIndex.get(property.getName())).intValue();\n\t\t\t\t\tproperties[i][col] = property; \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n \t\t// Create a name to row translation table.\n\t\tnameToPropertiesRowIndex = new HashMap();\n\t\tint nameColumn = nameToPropertiesColumnIndex(propertiesNamesColumn);\n\t\tif (nameColumn >= 0) {\n\t\t\tfor (int i = 0; i < propertiesRowCount; i++) {\n\t\t\t\tnameToPropertiesRowIndex.put(properties[i][nameColumn].getValue(), new Integer(i));\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void copyValues(final fr.jmmc.oiexplorer.core.model.OIBase other) {\n final View view = (View) other;\n\n // copy type, subsetDefinition (reference):\n this.type = view.getType();\n this.subsetDefinition = view.getSubsetDefinition();\n }", "private void addOrUpdatePropertiesEdge(GraphTraversalSource g, LineageRelationship lineageRelationship) {\n Map<String, Object> properties = lineageRelationship.getProperties().entrySet().stream().collect(Collectors.toMap(\n e -> PROPERTY_KEY_PREFIX_ELEMENT + PROPERTY_KEY_PREFIX_INSTANCE_PROPERTY + e.getKey(),\n Map.Entry::getValue\n ));\n\n properties.values().remove(null);\n properties.computeIfAbsent(PROPERTY_KEY_ENTITY_CREATE_TIME, val -> lineageRelationship.getCreateTime());\n properties.computeIfAbsent(PROPERTY_KEY_ENTITY_CREATED_BY, val -> lineageRelationship.getCreatedBy());\n properties.computeIfAbsent(PROPERTY_KEY_ENTITY_UPDATE_TIME, val -> lineageRelationship.getUpdateTime());\n properties.computeIfAbsent(PROPERTY_KEY_ENTITY_UPDATED_BY, val -> lineageRelationship.getUpdatedBy());\n properties.computeIfAbsent(PROPERTY_KEY_LABEL, val -> lineageRelationship.getTypeDefName());\n properties.computeIfAbsent(PROPERTY_KEY_ENTITY_VERSION, val -> lineageRelationship.getVersion());\n properties.computeIfAbsent(PROPERTY_KEY_METADATA_ID, val -> lineageRelationship.getMetadataCollectionId());\n\n g.inject(properties)\n .as(PROPERTIES)\n .V(lineageRelationship.getSourceEntity().getGuid())\n .outE()\n .where(inV().hasId(lineageRelationship.getTargetEntity().getGuid()))\n .as(EDGE)\n .sideEffect(__.select(PROPERTIES)\n .unfold()\n .as(KV)\n .select(EDGE)\n .property(__.select(KV).by(Column.keys), __.select(KV).by(Column.values))).iterate();\n\n\n }", "private void storComponentProperties(){\n\t\t//IPreferenceStore prefStore = JFacePreferences.getPreferenceStore();\n\t\t//PreferenceStore prefStore = mOyster2.getPreferenceStore();\n\t\tProperties mprop = mOyster2.getProperties();\n\t\tint count = mprop.getInteger(Constants.NUMBER_OF_COLUMNS);\n\t\tfor(int i=0; i<count; i++){\n\t\t\tmprop.setString(Constants.COLUMN_TYPE+i, mprop.getDefaultString(Constants.COLUMN_TYPE+i));\n\t\t\tmprop.setString(Constants.COLUMN_NAME+i, mprop.getDefaultString(Constants.COLUMN_NAME+i));\n\t\t\tmprop.setString(Constants.COLUMN_WIDTH+i, mprop.getDefaultString(Constants.COLUMN_WIDTH+i));\n\t\t\t/*\n\t\t\tprefStore.setToDefault(Constants.COLUMN_TYPE+i);\n\t\t\tprefStore.setToDefault(Constants.COLUMN_NAME+i);\n\t\t\tprefStore.setToDefault(Constants.COLUMN_WIDTH+i);\n\t\t\t*/\n\t\t}\n\t\tmprop.setString(Constants.NUMBER_OF_COLUMNS, \"\"+columns.size());\n\t\tfor(int i=0; i<columns.size(); i++){\n\t\t\tResultViewerColumnInfo colInf = getColumnInfo(i);\n\t\t\tmprop.setString(Constants.COLUMN_NAME + i, colInf.getColumnName());\n\t\t\tmprop.setString(Constants.COLUMN_TYPE + i, colInf.getColumnType());\n\t\t\tmprop.setString(Constants.COLUMN_WIDTH + i, \"\"+colInf.getWidth());\n\t\t}\n\t\ttry{\n\t\t\tmprop.storeOn();\n\t\t\t//prefStore.save();\n\t\t}\n\t\tcatch(Exception IO){\n\t\t\tSystem.out.println(\"couldnt save properties\");\n\t\t}\n\t\t\n\t}", "@Override\n public RawStore copy() {\n return new RawStore(this.toRawCopy2D(), myNumberOfColumns);\n }", "protected void copy(){\n\t\tthis.model.copy(this.color.getBackground());\n\t}", "void copyValues(AgileItem agileItem);", "public String get_another_field(String table, String source_field, String source_value, String destination_field);", "public void setOrderPropertyColumns() {\n\t\t// Clave\n\t\tColumn<BmObject, String> codeColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getCode().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(codeColumn, SafeHtmlUtils.fromSafeConstant(\"Clave\"));\n\t\torderPropertyTaxGrid.setColumnWidth(codeColumn, 150, Unit.PX);\n\n\n\t\t\t// Descripcion\n\t\t\tColumn<BmObject, String> blockColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t@Override\n\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getDescription().toString();\n\t\t\t\t}\n\t\t\t};\n\t\t\torderPropertyTaxGrid.addColumn(blockColumn, SafeHtmlUtils.fromSafeConstant(\"Descripción\"));\n\t\t\torderPropertyTaxGrid.setColumnWidth(blockColumn, 150, Unit.PX);\n\n\t\t// Calle y numero\n\t\tColumn<BmObject, String> streetColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getStreet().toString() + \" \"\n\t\t\t\t\t\t+ \" #\" + ((BmoOrderPropertyTax)bmObject).getBmoProperty().getNumber().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(streetColumn, SafeHtmlUtils.fromSafeConstant(\"Calle y Número\"));\n\t\torderPropertyTaxGrid.setColumnWidth(streetColumn, 200, Unit.PX);\n\t\t\n\t\t//Meses\n\t\tColumn<BmObject, String> monthsColumn;\n\t\tmonthsColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t// con un asicrono obtener los meses de f.inicio y f.fin del pedido\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getQuantity().toString();\n//\t\t\t\treturn String.valueOf(months);\n\t\t\t}\n\t\t};\n//\t\tmonthsColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n//\t\t\t@Override\n//\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n//\t\t\t\tchangeOrderEquipmentDays(bmObject, value);\n//\t\t\t}\n//\t\t});\n\t\t\n\t\t\n\t\tSafeHtmlHeader daysHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t@Override \n\t\t\tpublic String asString() { \n\t\t\t\treturn \"<p style=\\\"text-center;\\\">Meses</p>\"; \n\t\t\t} \n\t\t}); \n\t\torderPropertyTaxGrid.addColumn(monthsColumn, daysHeader);\n\t\torderPropertyTaxGrid.setColumnWidth(monthsColumn, 50, Unit.PX);\n\t\tmonthsColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);\n//\t}\n\t\t\n\t// Precio\n\t\t\tColumn<BmObject, String> priceColumn;\n\t\t\t\tif (bmoOrder.getStatus().equals(BmoOrder.STATUS_REVISION)) {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new EditTextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\tpriceColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n\t\t\t\t\t\t\tchangeOrderPropertyPrice(bmObject, value);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tSafeHtmlHeader priceHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t\t\t@Override \n\t\t\t\t\tpublic String asString() { \n\t\t\t\t\t\treturn \"<p style=\\\"text-align:right;\\\">Precio</p>\"; \n\t\t\t\t\t} \n\t\t\t\t}); \n\t\t\t\torderPropertyTaxGrid.addColumn(priceColumn, priceHeader);\n\t\t\t\torderPropertyTaxGrid.setColumnWidth(priceColumn, 50, Unit.PX);\n\t\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\n//\t\t\t\t@Override\n//\t\t\t\tpublic String getValue(BmObject bmObject) {\n//\t\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat()\n//\t\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getPrice().toDouble());\n//\t\t\t\t\treturn (formatted);\n//\t\t\t\t}\n//\t\t\t};\n//\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n//\t\t\torderPropertyTaxGrid.addColumn(priceColumn, SafeHtmlUtils.fromSafeConstant(\"Precio\"));\n\n\n\t\t// Total\n\t\tColumn<BmObject, String> totalColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat();\n\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getAmount().toDouble());\n\t\t\t\treturn (formatted);\n\t\t\t}\n\t\t};\n\t\ttotalColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\t\torderPropertyTaxGrid.addColumn(totalColumn, SafeHtmlUtils.fromSafeConstant(\"Total\"));\n\t}", "public static List<String> propertiesForColumns(MetadataModel<EntityMappingsMetadata> mappings,\n final String entityName, final List<String> columns) throws IOException {\n List<String> properties = Collections.emptyList();\n try {\n properties = mappings.runReadActionWhenReady(new MetadataModelAction<EntityMappingsMetadata, List<String>>() {\n @Override\n public List<String> run(EntityMappingsMetadata metadata) {\n Entity[] entities = metadata.getRoot().getEntity();\n Entity entity = null;\n for (int i=0; i<entities.length; i++) {\n if (entityName.equals(entities[i].getName())) {\n entity = entities[i];\n break;\n }\n }\n if (entity == null) {\n return Collections.emptyList();\n }\n boolean all = (columns == null);\n List<String> props = new LinkedList<String>();\n Map<String,String> columnToProperty = all ? null : new HashMap<String,String>();\n Attributes attrs = entity.getAttributes();\n for (Id id : attrs.getId()) {\n String propName = J2EEUtils.fieldToProperty(id.getName());\n if (all) {\n props.add(propName);\n } else {\n String columnName = id.getColumn().getName();\n columnName = unquote(columnName);\n columnToProperty.put(columnName, propName);\n }\n }\n for (Basic basic : attrs.getBasic()) {\n String propName = J2EEUtils.fieldToProperty(basic.getName());\n if (\"<error>\".equals(propName)) { // NOI18N\n continue;\n }\n if (all) {\n props.add(propName);\n } else {\n String columnName = basic.getColumn().getName();\n columnName = unquote(columnName);\n columnToProperty.put(columnName, propName); \n }\n }\n for (ManyToOne manyToOne : attrs.getManyToOne()) {\n String propName = J2EEUtils.fieldToProperty(manyToOne.getName());\n if (\"<error>\".equals(propName)) { // NOI18N\n continue;\n }\n if (all) {\n props.add(propName);\n } else {\n JoinColumn[] joinColumn = manyToOne.getJoinColumn();\n String columnName;\n if (joinColumn.length == 0) {\n columnName = manyToOne.getName().toUpperCase() + \"_ID\"; // NOI18N\n } else {\n columnName = manyToOne.getJoinColumn(0).getName();\n }\n columnName = unquote(columnName);\n columnToProperty.put(columnName, propName); \n }\n }\n if (!all) {\n for (String column : columns) {\n String propName = columnToProperty.get(column);\n if (propName == null) {\n Logger.getLogger(J2EEUtils.class.getName()).log(\n Level.INFO, \"WARNING: Cannot find property for column {0}\", column); // NOI18N\n } else {\n props.add(propName);\n }\n }\n }\n return props;\n }\n }).get();\n } catch (InterruptedException iex) {\n Logger.getLogger(J2EEUtils.class.getName()).log(Level.INFO, iex.getMessage(), iex);\n } catch (ExecutionException eex) {\n Logger.getLogger(J2EEUtils.class.getName()).log(Level.INFO, eex.getMessage(), eex);\n }\n return properties;\n }", "@Test\n public void testCopyAttributesTable() throws SQLException {\n AlterTableUtils.testCopyAttributesTable(activity, geoPackage);\n }", "private void copy()\n\t{\n\t\t//for loop for row\n\t\tfor (int row =0; row<nextVersion.length; row++)\n\t\t{\t//for loop for column\n\t\t\tfor (int column =0; column<nextVersion[row].length; column++)\n\t\t\t{\n\t\t\t\t//assigning values for currentVersion to nextVersion array\n\t\t\t\tnextVersion[row][column] = currentVersion[row][column];\n\t\t\t}\n\t\t}\n\t\n\t}", "@Optional\n @ImportColumn(\"VOLLGESCHX\")\n Property<String> zulaessigeVollgeschosse();", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "Model copy();", "@Override\n\tpublic void transferProperty(TransferPropertyRequest transferPropertyRequest,Long pid,Long uid) throws Exception {\n\t\tProperty property = getById(transferPropertyRequest.getPropertyId());\n\t\tProperty newProperty = new Property();\n\t\tif(property.getActive()) {\n\t\t\tproperty.setTransferred(true);\n\t\t\tproperty.setTransferredToSamagraId(transferPropertyRequest.getTransferToSamagraId());\n\t\t\tiPropertyDAO.save(property);\n\t\t}else {\n\t\t\tthrow new Exception(\"Property with Unique id :\"+property.getCustomUniqueId()+\"does not belong to current samagra and cant be transffered\");\n\t\t}\n\t\t//fetch the person - the new owner of this property\n\t\tnewProperty.setActive(true);\n\t\tnewProperty.setArea(property.getArea());\n\t\tnewProperty.setIsResidential(property.getIsResidential());\n\t\tnewProperty.setResidentName(property.getResidentName());\n\t\tnewProperty.setResidentName(transferPropertyRequest.getResidentName());\n\t\tnewProperty.setSubHolder(transferPropertyRequest.getNewSubHolder());\n\t\tnewProperty.setIsWaterConnected(property.getWaterConnected());\n\t\tnewProperty.setEastLandmark(property.getEastLandmark());\n\t\tnewProperty.setWestLandmark(property.getWestLandmark());\n\t\tnewProperty.setNorthLandmark(property.getNorthLandmark());\n\t\tnewProperty.setSouthLandmark(property.getSouthLandmark());\n\t\tnewProperty.setVillage(property.getVillage());\n\t\tnewProperty.setTehsil(property.getTehsil());\n\t\tnewProperty.setDistrict(property.getDistrict());\n\t\tnewProperty.setPropertyNumber(property.getPropertyNumber());\n\t\tnewProperty.setPanchayat(property.getPanchayat());\n\t\tnewProperty.setSharedWallDescription(property.getSharedWallDescription());\n\t\tnewProperty.setWaterBillDescription(property.getWaterBillDescription());\n\t\tnewProperty.setLength(property.getLength());\n\t\tnewProperty.setWidth(property.getWidth());\n newProperty.setCustomUniqueId(property.getCustomUniqueId());\n\t\tBeanUtils.copyProperties(property.getPropertyUsages(),newProperty.getPropertyUsages());\n\t\tBeanUtils.copyProperties(property.getPropertyTypes(),newProperty.getPropertyTypes());\n//\t\tnewProperty.setPropertyUsages(property.getPropertyUsages());\n\t\tnewProperty.setOtherDescription(property.getOtherDescription());\n\t\tnewProperty.setPincode(property.getPincode());\n\t\t//the updated field\n\t\tnewProperty.setSamagraId(transferPropertyRequest.getTransferToSamagraId());\n\t\tnewProperty.setDocuments(transferPropertyRequest.getDocuments());\n\t\tcreateTransferredProperty(newProperty,pid,uid);\n\t}", "public void migrateOldAttrPropertyBackedBeans(RowHandler rowHandler)\n {\n getOldAttrPropertyBackedBeansImpl(rowHandler);\n }", "private HColumnDescriptor toHColumnDescriptor(ColumnFamilyDescriptor column) {\n HColumnDescriptor hColumnDescriptor = new HColumnDescriptor(column.getNameAsString());\n // TODO - copy the config and value Maps\n for (Map.Entry<String, String> entry : column.getConfiguration().entrySet()) {\n hColumnDescriptor.setConfiguration(entry.getKey(), entry.getValue());\n }\n for (Map.Entry<Bytes, Bytes> entry : column.getValues().entrySet()) {\n hColumnDescriptor.setValue(entry.getKey().get(), entry.getValue().get());\n }\n return hColumnDescriptor;\n }", "private Object[] cloneRow() {\n\t\t\treturn (Object[]) (row.clone());\n\t\t}", "public Table copy() {\n\t\tTableImpl vt;\n\n\t\t// Copy failed, maybe objects in a column that are not serializable.\n\t\tColumn[] cols = new Column[this.getNumColumns()];\n\t\tColumn[] oldcols = this.getColumns();\n\t\tfor (int i = 0; i < cols.length; i++) {\n\t\t\tcols[i] = oldcols[i].copy();\n\t\t}\n\t\tint[] newsubset = new int[subset.length];\n\t\tSystem.arraycopy(subset, 0, newsubset, 0, subset.length);\n\t\tvt = new SubsetTableImpl(cols, newsubset);\n\t\tvt.setLabel(this.getLabel());\n\t\tvt.setComment(this.getComment());\n\t\treturn vt;\n\t}", "private TableColumn<Object, ?> fillColumns() {\n\t\t\n\t\treturn null;\n\t}", "public void copy (WorldState other)\n\t{\n\t\tresetProperties();\n\t\t//Iterate through other state and clone it's properties into this states properties\n\t\tCollection<WorldStateProperty> otherProperties = other.properties.values();\n\t\tfor (WorldStateProperty property : otherProperties)\n\t\t{\n\t\t\tproperties.put(property.key, property.clone());\n\t\t}\n\t}", "public Cell(Cell original){\n this.i = original.i;\n this.j = original.j;\n this.type = original.type;\n if (original.entity != null) {\n if (original.entity instanceof Agent) {\n Agent agent = (Agent) original.entity;\n this.entity = new Agent(agent);\n }\n else if (original.entity instanceof Box) {\n Box box = (Box) original.entity;\n this.entity = new Box(box);\n }\n }\n else {\n this.entity = null;\n }\n this.goalLetter = original.goalLetter;\n }", "public void copy(final Coordinate c) { row = c.row; col = c.col; }", "private void copyPosition(NodeAttribute<Coordinates> sourceAttribute, NodeAttribute<Coordinates> destinationAttribute, Node node) {\n Coordinates sourceValue = sourceAttribute.get(node);\n if (!sourceAttribute.isDefault(node)\n && (destinationAttribute.isDefault(node) || !sourceValue.equals(destinationAttribute.get(node)))) {\n destinationAttribute.set(node, sourceValue);\n }\n }", "public static void copyProperties(Object src, Object target) {\r\n BeanUtils.copyProperties(src, target, getNullPropertyNames(src));\r\n }", "Value getEquivalentPropertyChainHead(int columnIndex);", "public BaseEntity copyTo(BaseEntity entity) {\n // If both entities are not same then return the nil.\n super.copyTo(entity);\n if (!entity.getEntityName().equals(this.entityName)) {\n return null;\n }\n Tenant t = (Tenant) entity;\n t.address1 = this.address1;\n t.address2 = this.address2;\n t.appMask = this.appMask;\n t.city = this.city;\n t.createdAt = this.createdAt;\n t.createdBy = this.createdBy;\n t.fax = this.fax;\n t.name = this.name;\n t.lastOperationType = this.lastOperationType;\n t.phone1 = this.phone1;\n t.taskNumber = this.taskNumber;\n t.entityId = this.entityId;\n t.tenantStatus = this.tenantStatus;\n t.tenantType = this.tenantType;\n t.updatedAt = this.updatedAt;\n t.updatedBy = this.updatedBy;\n return t;\n }", "private void assingTempProperty(UUID uuid){\n TraversalDescription tempTraversal = this.database.traversalDescription()\n .depthFirst()\n .uniqueness(Uniqueness.RELATIONSHIP_GLOBAL);\n String uuidString = \"flw-\"+uuid.toString();\n Transaction tx = database.beginTx();\n try {\n for(Relationship r : tempTraversal.traverse(this.nSource)\n .relationships()){\n if (r.hasProperty(\"weight\"))\n r.setProperty(uuidString,Double.parseDouble((String)r.getProperty(\"weight\")) * 1.0);\n }\n tx.success();\n } catch (Exception e) {\n System.err.println(\"MaximumFlow.assingTempProperty: \" + e);\n tx.failure();\n } finally {\n tx.close();\n }\n }", "private void initColumnMaster()\r\n\t{\r\n\t\tstudentaNoMColumn.setCellValueFactory(new PropertyValueFactory<>(\"studendID\"));\r\n\t\tnameMColumn.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\r\n\t\tsurnameMColumn.setCellValueFactory(new PropertyValueFactory<>(\"surname\"));\r\n\t\tsupervisorMColumn.setCellValueFactory(new PropertyValueFactory<>(\"supervisor\"));\r\n\t\temailMColumn.setCellValueFactory(new PropertyValueFactory<>(\"email\"));\r\n\t\tcellphoneMColumn.setCellValueFactory(new PropertyValueFactory<>(\"cellphone\"));\r\n\t\tstationMColumn.setCellValueFactory(new PropertyValueFactory<>(\"station\"));\r\n\t\tcourseMColumn.setCellValueFactory(new PropertyValueFactory<>(\"course\"));\r\n\t}", "@Override // a2.j.d.c.y3, com.google.common.collect.Table\n public /* bridge */ /* synthetic */ Map column(Object obj) {\n return super.column(obj);\n }", "private static void transferProperty(final Properties tableProperties,\n final Map<String, String> jobProperties, Keys propertyToTransfer, boolean required) {\n String value = tableProperties.getProperty(propertyToTransfer.getKey());\n if (value != null) {\n jobProperties.put(propertyToTransfer.getKey(), value);\n } else if (required) {\n throw new IllegalArgumentException(\"Property \" + propertyToTransfer.getKey()\n + \" not found in the table properties.\");\n }\n }", "private void copyValues(Convention conventions)\r\n {\n _PrimaryKeyName = conventions._PrimaryKeyName;\r\n _CreatedName = conventions._CreatedName;\r\n _LastUpdatedName = conventions._LastUpdatedName;\r\n _DeletedName = conventions._DeletedName;\r\n _ForeignKeyNamePostfix = conventions._ForeignKeyNamePostfix;\r\n // _Prefix = conventions._Prefix;\r\n _ColumnNamingConventionStr = conventions._ColumnNamingConventionStr;\r\n // _DBColumnNameTranslation = conventions._DBColumnNameTranslation;\r\n\r\n // Defaults are optional and can be overridden.\r\n if (TextUtil.isNullOrEmpty(_DefaultModeStr) == true)\r\n _DefaultModeStr = conventions._DefaultModeStr;\r\n if (TextUtil.isNullOrEmpty(_DefaultLCStr) == true)\r\n _DefaultLCStr = conventions._DefaultLCStr;\r\n\r\n _CaseSensitiveColumns = conventions._CaseSensitiveColumns;\r\n\r\n }", "private void addOrUpdatePropertiesVertex(GraphTraversalSource g, Vertex vertex, LineageEntity lineageEntity) {\n Map<String, Object> properties = getProperties(lineageEntity);\n g.inject(properties)\n .unfold()\n .as(PROPERTIES)\n .V(vertex.id())\n .as(V)\n .sideEffect(__.select(PROPERTIES)\n .unfold()\n .as(KV)\n .select(V)\n .property(__.select(KV).by(Column.keys), __.select(KV).by(Column.values))).iterate();\n }", "@Override\n public void alterColumnByName(String name, XPropertySet descriptor) throws SQLException, NoSuchElementException {\n \n }", "ColumnFull createColumnFull();", "protected void copyProperties(AbstractContext context) {\n\t\tcontext.description = this.description;\n\t\tcontext.batchSize = this.batchSize;\n\t\tcontext.injectBeans = this.injectBeans;\n\t\tcontext.commitImmediately = this.isCommitImmediately();\n\t\tcontext.script = this.script;\n\t}", "public abstract void newColumn();", "public void insertPmProperty(PmPropertyBean pmPropertyBean);", "@Override\n public void copyTo(UserProfile userProfile) {\n userProfile.setId(getId());\n userProfile.setCity(getCity());\n userProfile.setZipcode(getZipcode());\n userProfile.setCountry(getCountry());\n userProfile.setTitle(getTitle());\n userProfile.setName(getName());\n userProfile.setFirstName(getFirstName());\n userProfile.setLastName(getLastName());\n userProfile.setUsername(getUsername());\n userProfile.setGender(getGender());\n userProfile.setPoints(getPoints());\n userProfile.setNotifyReportDue(isNotifyReportDue());\n }", "public abstract DataTableDefinition clone();", "public interface MergableProperties {\n\n\t/**\n\t * A variation of {@link BeanUtils#copyProperties(Object, Object)} specifically designed to copy properties using the following rule:\n\t *\n\t * - If source property is null then override with the same from mergable.\n\t * - If source property is an array and it is empty then override with same from mergable.\n\t * - If source property is mergable then merge.\n\t */\n\tdefault void merge(MergableProperties mergable) {\n\t\tif (mergable == null) {\n\t\t\treturn;\n\t\t}\n\t\tfor (PropertyDescriptor targetPd : BeanUtils.getPropertyDescriptors(mergable.getClass())) {\n\t\t\tMethod writeMethod = targetPd.getWriteMethod();\n\t\t\tif (writeMethod != null) {\n\t\t\t\tPropertyDescriptor sourcePd = BeanUtils.getPropertyDescriptor(this.getClass(), targetPd.getName());\n\t\t\t\tif (sourcePd != null) {\n\t\t\t\t\tMethod readMethod = sourcePd.getReadMethod();\n\t\t\t\t\tif (readMethod != null &&\n\t\t\t\t\t\t\tClassUtils.isAssignable(writeMethod.getParameterTypes()[0], readMethod.getReturnType())) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif (!Modifier.isPublic(readMethod.getDeclaringClass().getModifiers())) {\n\t\t\t\t\t\t\t\treadMethod.setAccessible(true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tObject value = readMethod.invoke(this);\n\t\t\t\t\t\t\tif (value != null) {\n\t\t\t\t\t\t\t\tif (value instanceof MergableProperties) {\n\t\t\t\t\t\t\t\t\t((MergableProperties)value).merge((MergableProperties)readMethod.invoke(mergable));\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\tObject v = readMethod.invoke(mergable);\n\t\t\t\t\t\t\t\t\tif (v == null || (ObjectUtils.isArray(v) && ObjectUtils.isEmpty(v))) {\n\t\t\t\t\t\t\t\t\t\tif (!Modifier.isPublic(writeMethod.getDeclaringClass().getModifiers())) {\n\t\t\t\t\t\t\t\t\t\t\twriteMethod.setAccessible(true);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\twriteMethod.invoke(mergable, value);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (Throwable ex) {\n\t\t\t\t\t\t\tthrow new FatalBeanException(\n\t\t\t\t\t\t\t\t\t\"Could not copy property '\" + targetPd.getName() + \"' from source to target\", ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tdefault void copyProperties(Object source, Object target) throws BeansException {\n\n\t}\n}", "public Data assign(Data other) {\r\n this.setDimension(other.dimension);\r\n this.distanz = other.distanz;\r\n //for (int i = 0; i < this.dimension; ++i)\r\n for (int i = 0; i < this.dimension * 2; ++i) {\r\n this.data[i] = other.data[i];\r\n }\r\n this.id = other.id;\r\n return this;\r\n }", "public void setColumns(Column[] newColumns) { columns = newColumns; }", "Column createColumn();", "public void addColumn(Column col) {\n\t\t// Allocate a new array.\n\t\tColumn[] newColumns = new Column[columns.length + 1];\n\n\t\t// copy current columns if any\n\t\tSystem.arraycopy(columns, 0, newColumns, 0, columns.length);\n\n\t\t//ANCA: need to expand the column\n\t\t// old:\t\tnewColumns[newColumns.length - 1] = col;\n\n\t\tString columnClass = (col.getClass()).getName();\n\t\tColumn expandedColumn = null;\n\t\ttry {\n\t\t\texpandedColumn = (Column) Class.forName(columnClass).newInstance();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t\t//if col is the first column in the table add it as is and initialize subset\n\t\tint numRows = super.getNumRows();\n\t\tif (columns.length == 0) {\n\t\t\tif (subset.length == 0) {\n\t\t\t\tnumRows = col.getNumRows();\n\t\t\t\tsubset = new int[numRows];\n\t\t\t\tfor (int i = 0; i < this.getNumRows(); i++) {\n\t\t\t\t\tsubset[i] = i;\n\t\t\t\t}\n\t\t\t\texpandedColumn = col;\n\t\t\t}\n\t\t} else if (numRows == col.getNumRows()) {\n expandedColumn = col;\n } else {\n\t\t\texpandedColumn.addRows(numRows);\n\t\t\texpandedColumn.setLabel(col.getLabel());\n\t\t\texpandedColumn.setComment(col.getComment());\n\t\t\texpandedColumn.setIsScalar(col.getIsScalar());\n\t\t\texpandedColumn.setIsNominal(col.getIsNominal());\n\n\t\t\t//initialize all values as missing for the beginning\n\t\t\tfor (int j = 0; j < numRows; j++)\n\t\t\t\texpandedColumn.setValueToMissing(true, j);\n\n\t\t\t//set the elements of the column where appropriate as determined by subset\n\t\t\tObject el;\n\t\t\tfor (int i = 0; i < subset.length; i++) {\n if (col.isValueMissing(i)) {\n expandedColumn.setValueToMissing(true, i);\n } else {\n\t\t\t\t el = col.getObject(i);\n\t\t\t\t expandedColumn.setObject(el, subset[i]);\n\t\t\t\t expandedColumn.setValueToMissing(false, subset[i]);\n }\n\t\t\t}\n\t\t}\n\t\tnewColumns[newColumns.length - 1] = expandedColumn;\n\t\tcolumns = newColumns;\n\t}", "public void copyDataFrom(ParamUnit other)\r\n\t{\r\n\t\tif (this.data.row != other.data.row || this.data.col != other.data.col)\r\n\t\t\tthrow new DeepException(\"Cannot copy data from a different dimension.\");\r\n\t\tthis.data.copyFrom(other.data);\r\n\t}", "public MobileEntity getclone(MobileEntity ws){\n return ws.MakeCopy();\n }", "@Override\n public UserProfile copy() {\n UserProfile userProfile = new UserProfile();\n copyTo(userProfile);\n return userProfile;\n }", "public static void copyAggregateProperties(Node aggregate, boolean skipExistingProperties, String[] copyProperties,\n CopyAggregatePropertiesStatistics copyStats) {\n String[] unskippedProperties = copyProperties;\n // first, clear the properties be copied in case we make a refresh\n if (skipExistingProperties) {\n unskippedProperties = Arrays.stream(copyProperties).filter(Predicate.not(aggregate::hasProperty)).toArray(String[]::new);\n }\n for (String copyProperty : unskippedProperties) {\n aggregate.removeProperty(copyProperty);\n }\n Iterable<Relationship> elementRels = aggregate.getRelationships(ConceptEdgeTypes.HAS_ELEMENT);\n // List of properties to copy that are no array properties - and thus\n // cannot be merged - but have different\n // values.\n Set<String> divergentProperties = new HashSet<>();\n // For each element...\n Map<String, Object> newAggregateProperties = new HashMap<>();\n // Collect existing property values on the aggregate\n for (String copyProperty : unskippedProperties) {\n if (aggregate.hasProperty(copyProperty))\n newAggregateProperties.put(copyProperty, aggregate.getProperties(copyProperty));\n }\n for (Relationship elementRel : elementRels) {\n Node term = elementRel.getEndNode();\n if (null != copyStats)\n copyStats.numElements++;\n // Copy each specified property.\n // Array properties are merged.\n // Non-array properties are set, if non existent. If a non-array\n // property has multiple, different values\n // among the elements, this property is subject to the majority vote\n // after this loop.\n for (String copyProperty : unskippedProperties) {\n if (term.hasProperty(copyProperty)) {\n if (null != copyStats)\n copyStats.numProperties++;\n Object property = term.getProperty(copyProperty);\n if (property.getClass().isArray()) {\n final Object[] mergedValue = mergeArrayValue(newAggregateProperties.getOrDefault(copyProperty, null), JulieNeo4jUtilities.convertArray(property));\n newAggregateProperties.put(copyProperty, mergedValue);\n } else {\n if (!newAggregateProperties.containsKey(copyProperty))\n newAggregateProperties.put(copyProperty, property);\n Object aggregateProperty = newAggregateProperties.get(copyProperty);\n if (!aggregateProperty.equals(property)) {\n divergentProperties.add(copyProperty);\n }\n }\n }\n }\n }\n // We now make majority votes on the values of divergent properties. The\n // minority property values are then\n // stored in a special property with the suffix\n // AggregateConstants.SUFFIX_DIVERGENT_ELEMENT_ROPERTY\n\n for (String divergentProperty : divergentProperties) {\n Multiset<Object> propertyValues = HashMultiset.create();\n elementRels = aggregate.getRelationships(ConceptEdgeTypes.HAS_ELEMENT);\n for (Relationship elementRel : elementRels) {\n Node term = elementRel.getEndNode();\n Object propertyValue = getNonNullNodeProperty(term, divergentProperty);\n if (null != propertyValue)\n propertyValues.add(propertyValue);\n }\n // Determine the majority value.\n Object majorityValue = null;\n int maxCount = 0;\n for (Entry<Object> entry : propertyValues.entrySet()) {\n if (entry.getCount() > maxCount) {\n majorityValue = entry.getElement();\n maxCount = entry.getCount();\n }\n }\n\n // Set the majority value to the aggregate.\n// aggregate.setProperty(divergentProperty, majorityValue);\n newAggregateProperties.put(divergentProperty, majorityValue);\n // Set the minority values to the aggregate as a special property.\n for (Object propertyValue : propertyValues.elementSet()) {\n if (!propertyValue.equals(majorityValue)) {\n Object[] convert = JulieNeo4jUtilities.convertElementsIntoArray(propertyValue.getClass(),\n propertyValue);\n final String divergentKey = divergentProperty + AggregateConstants.SUFFIX_DIVERGENT_ELEMENT_ROPERTY;\n final Object[] mergedValue = mergeArrayValue(newAggregateProperties.getOrDefault(divergentKey, null), convert);\n newAggregateProperties.put(divergentKey, mergedValue);\n// mergeArrayProperty(aggregate,\n// divergentKey, convert);\n }\n }\n }\n\n // The aggregate could have a conflict on the preferred name. This is\n // already resolved by a majority\n // vote above. We now additionally merge the minority names to the\n // synonyms.\n final String divergentPrefnameKey = PROP_PREF_NAME + AggregateConstants.SUFFIX_DIVERGENT_ELEMENT_ROPERTY;\n final Object[] synonymsWithDivergentPrefNames = mergeArrayValue(newAggregateProperties.getOrDefault(PROP_SYNONYMS, null), (Object[]) newAggregateProperties.get(divergentPrefnameKey));\n if (synonymsWithDivergentPrefNames != null)\n newAggregateProperties.put(PROP_SYNONYMS, synonymsWithDivergentPrefNames);\n// mergeArrayProperty(aggregate, PROP_SYNONYMS,\n// (Object[]) getNonNullNodeProperty(aggregate,\n// divergentPrefnameKey));\n\n // As a last step, remove duplicate synonyms, case ignored\n if (newAggregateProperties.containsKey(PROP_SYNONYMS)) {\n String[] synonyms = (String[]) newAggregateProperties.get(PROP_SYNONYMS);\n Set<String> lowerCaseSynonyms = new HashSet<>();\n List<String> acceptedSynonyms = new ArrayList<>();\n for (String synonym : synonyms) {\n String lowerCaseSynonym = synonym.toLowerCase();\n if (!lowerCaseSynonyms.contains(lowerCaseSynonym)) {\n lowerCaseSynonyms.add(lowerCaseSynonym);\n acceptedSynonyms.add(synonym);\n }\n }\n Collections.sort(acceptedSynonyms);\n newAggregateProperties.put(PROP_SYNONYMS,\n acceptedSynonyms.toArray(new String[0]));\n }\n\n for (String copyProperty : newAggregateProperties.keySet()) {\n aggregate.setProperty(copyProperty, newAggregateProperties.get(copyProperty));\n }\n }", "ColumnInfoTransformer getColumnInfoTransformer();", "public void copy(final MouseCrosstabShuttleVO otherBean)\n {\n if (null != otherBean)\n {\n this.setMouse1(otherBean.getMouse1());\n this.setMouse2(otherBean.getMouse2());\n this.setMouse3(otherBean.getMouse3());\n this.setMouse4(otherBean.getMouse4());\n this.setMouse5(otherBean.getMouse5());\n this.setMouse6(otherBean.getMouse6());\n this.setMouse7(otherBean.getMouse7());\n this.setMouse8(otherBean.getMouse8());\n this.setMouse9(otherBean.getMouse9());\n this.setMouse10(otherBean.getMouse10());\n this.setDay(otherBean.getDay());\n this.setCompoundName(otherBean.getCompoundName());\n this.setPanelName(otherBean.getPanelName());\n this.setCellLineName(otherBean.getCellLineName());\n this.setGroupRole(otherBean.getGroupRole());\n this.setCompound(otherBean.getCompound());\n this.setCellLine(otherBean.getCellLine());\n this.setCellTypeName(otherBean.getCellTypeName());\n this.setCellTypeSortOrder(otherBean.getCellTypeSortOrder());\n this.setCellLineSortOrder(otherBean.getCellLineSortOrder());\n this.setTestNumber(otherBean.getTestNumber());\n }\n }", "public final ColumnInfo copy(boolean z) {\n return new BleKeyDataColumnInfo(this, z);\n }", "@Override\n\t\tprotected String convertProperty(String propertyName, String propertyValue) {\n\t\t\tSystem.out.println(\"propertyName1 = \" + propertyName + \" propertyValue1 = \" + propertyValue);\n\t\t\tpropertyName = propertyName + \"_new\";\n\t\t\tpropertyValue = \"_new\";\n\t\t\t\n\t\t\treturn super.convertProperty(propertyName, propertyValue);\n\t\t}", "@Override\r\n\tpublic Object getValueFromObject(ColumnWraper columnWraper, Object fromValue) {\n\t\treturn fromValue;\r\n\t}", "private void copyFields(NetcdfRecordInfo src, Set<String> excludedFields) {\n Iterator<String> keyIter = src.beanMap.keyIterator();\n Object val;\n while (keyIter.hasNext()) {\n String key = keyIter.next();\n if (this.beanMap.getWriteMethod(key) != null\n && !excludedFields.contains(key)) {\n val = src.beanMap.get(key);\n if (val != null) {\n this.beanMap.put(key, val);\n }\n }\n }\n }", "public void initialize(){\n equipoColumn.setCellValueFactory(new PropertyValueFactory<>(\"equipo\"));\n }", "public void copyFrom(QueryTreeNode node) throws StandardException {\r\n super.copyFrom(node);\r\n\r\n CreateSequenceNode other = (CreateSequenceNode)node;\r\n this.sequenceName = (TableName)getNodeFactory().copyNode(other.sequenceName,\r\n getParserContext());\r\n this.dataType = other.dataType;\r\n this.initialValue = other.initialValue;\r\n this.stepValue = other.stepValue;\r\n this.maxValue = other.maxValue;\r\n this.minValue = other.minValue;\r\n this.cycle = other.cycle;\r\n }", "private static void mergeTables(Hashtable<? super String, Object> props1,\n Hashtable<? super String, Object> props2) {\n for (Object key : props2.keySet()) {\n String prop = (String) key;\n Object val1 = props1.get(prop);\n if (val1 == null) {\n props1.put(prop, props2.get(prop));\n } else if (isListProperty(prop)) {\n String val2 = (String) props2.get(prop);\n props1.put(prop, ((String) val1) + \":\" + val2);\n }\n }\n }", "public ColumnStatisticsObj(ColumnStatisticsObj other) {\n if (other.isSetColName()) {\n this.colName = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(other.colName);\n }\n if (other.isSetColType()) {\n this.colType = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(other.colType);\n }\n if (other.isSetStatsData()) {\n this.statsData = new ColumnStatisticsData(other.statsData);\n }\n }", "public void copy(MTBTypesDTO bean) {\n setMTBTypesKey(bean.getMTBTypesKey());\n setType(bean.getType());\n setDescription(bean.getDescription());\n setTableName(bean.getTableName());\n setColumnName(bean.getColumnName());\n setCreateUser(bean.getCreateUser());\n setCreateDate(bean.getCreateDate());\n setUpdateUser(bean.getUpdateUser());\n setUpdateDate(bean.getUpdateDate());\n }", "public int getOldProperty_descriptionType(){\n return localOldProperty_descriptionType;\n }", "public void collapseProperty( String name )\n {\n collapseRow( getRow( name ) );\n }", "public ScalarType copyValue();", "public static void copyPropertiesNoNull(Object source, Object target) {\n BeanUtils.copyProperties(source, target, getNullField(source));\n }", "public static void copyProperties(List<Property> properties, StringMap result) {\n/* 192 */ if (properties != null)\n/* 193 */ for (int i = 0; i < properties.size(); i++) {\n/* 194 */ Property prop = properties.get(i);\n/* 195 */ result.putValue(prop.getName(), prop.getValue());\n/* */ } \n/* */ }", "void setValueOfColumn(ModelColumnInfo<Item> column, @Nullable Object value);", "public JsonMember copy() {\n return new JsonMember(name, value.copy());\n }", "@Override\n protected void updateProperties() {\n }", "public MappingInfo copy()\r\n\t{\r\n\t\tArrayList<MappingCell> mappingCells = new ArrayList<MappingCell>();\r\n\t\tfor(MappingCell mappingCell : mappingCellHash.get())\r\n\t\t\tmappingCells.add(mappingCell);\r\n\t\treturn new MappingInfo(mapping.copy(),mappingCells);\r\n\t}", "private void AdditionalSetUpTable() {\n TableColumnModel stuffcm = stuffTable.getColumnModel();\n \n //update: 22 juni 2006 add column code and modal so we can remove them in propertiesComboBox\n //ActionPerformed when we click \"Additonal Properties\"\n //we have to reference name column so we can put category and code column\n //in the left of the name column\n category = stuffcm.getColumn(0);\n code = stuffcm.getColumn(1);\n \n modal = stuffcm.getColumn(3);\n sale = stuffcm.getColumn(4);\n quantity = stuffcm.getColumn(5);\n \n //update: 2 july 2006, add two column; s = t, Third T\n s_t = stuffcm.getColumn(17);\n third = stuffcm.getColumn(18);\n \n //make it middle\n class MiddleCellEditor extends DefaultTableCellRenderer {\n MiddleCellEditor() {\n super();\n setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n }\n }\n quantity.setCellRenderer( new MiddleCellEditor() );\n \n length = stuffcm.getColumn(8);\n length.setCellRenderer( new MiddleCellEditor() );\n width = stuffcm.getColumn(9);\n width.setCellRenderer( new MiddleCellEditor() );\n height = stuffcm.getColumn(10);\n height.setCellRenderer( new MiddleCellEditor() );\n volume = stuffcm.getColumn(11);\n volume.setCellRenderer( new MiddleCellEditor() );\n primary = stuffcm.getColumn(12);\n measurement = stuffcm.getColumn(13);\n measurement.setCellRenderer( new MiddleCellEditor() );\n secondary = stuffcm.getColumn(14);\n produceritem = stuffcm.getColumn(15);\n selleritem = stuffcm.getColumn(16);\n //index column\n TableColumn stuffcol = stuffcm.getColumn(7);\n stuffTable.removeColumn(stuffcol);\n //comment column\n stufftc = stuffTable.getColumnModel().getColumn(6);\n if(!displayComment.isSelected())\n stuffTable.removeColumn(stufftc);\n \n //remove all column first for the first time\n stuffTable.removeColumn(modal);\n stuffTable.removeColumn(sale);\n stuffTable.removeColumn(quantity);\n stuffTable.removeColumn(code);\n stuffTable.removeColumn(category);\n stuffTable.removeColumn(s_t);\n stuffTable.removeColumn(third);\n \n propertiesComboBoxActionPerformed(null);\n \n //additional setup for \"index\" and \"comment\" column on employeeTable\n TableColumnModel employeecm = employeeTable.getColumnModel();\n //index column\n TableColumn employeecol = employeecm.getColumn(9);\n employeeTable.removeColumn(employeecol);\n //comment column\n employeetc = employeecm.getColumn(8);\n if(!displayCommentEmployee.isSelected())\n employeeTable.removeColumn(employeetc);\n \n //additional setup for sellerTable\n TableColumnModel sellercm = sellerTable.getColumnModel();\n //index column\n TableColumn sellercol = sellercm.getColumn(4);\n sellerTable.removeColumn(sellercol);\n //comment column\n sellertc = sellercm.getColumn(3);\n if(!displayCommentSeller.isSelected())\n sellerTable.removeColumn(sellertc);\n \n //additional setup for salesmanTable\n TableColumnModel salesmancm = salesmanTable.getColumnModel();\n //index column\n TableColumn salesmancol = salesmancm.getColumn(8);\n salesmanTable.removeColumn(salesmancol);\n //comment column\n salesmantc = salesmancm.getColumn(7);\n if(!displayCommentSeller.isSelected())\n salesmanTable.removeColumn(salesmantc);\n \n //additional setup for ProducerTable\n TableColumnModel producercm = ProducerTable.getColumnModel();\n //index column\n TableColumn producercol = producercm.getColumn(4);\n ProducerTable.removeColumn(producercol);\n //comment column\n producertc = producercm.getColumn(3);\n if(!DisplayCommentProducer.isSelected())\n ProducerTable.removeColumn(producertc);\n \n //additional setup for customerTable\n TableColumnModel customercm = customerTable.getColumnModel();\n //index column\n TableColumn customercol = customercm.getColumn(4);\n customerTable.removeColumn(customercol);\n //comment column\n customertc = customercm.getColumn(3);\n if(!displayCommentCustomer.isSelected())\n customerTable.removeColumn(customertc);\n \n //additional setup for commisionerTable\n TableColumnModel commisionercm = commisionerTable.getColumnModel();\n //index column\n TableColumn commisionercol = commisionercm.getColumn(4);\n commisionerTable.removeColumn(commisionercol);\n //comment columnlist\n commisionertc = commisionercm.getColumn(3);\n if(!displayCommentCommisioner.isSelected())\n commisionerTable.removeColumn(commisionertc);\n \n //additional setup for debtcreditTable\n// TableColumn debtcreditcol = DebtCreditTable.getColumnModel().getColumn(5);\n// DebtCreditTable.removeColumn(debtcreditcol);\n \n //additional setup for debt table\n TableColumn debtcol = DebtTable.getColumnModel().getColumn(5);\n DebtTable.removeColumn(debtcol);\n \n //additional setup for sale ( edit trans ) table\n TableColumn salecol = SaleTable.getColumnModel().getColumn(6);\n SaleTable.removeColumn(salecol);\n \n //additional setup for purchase ( edit trans ) table\n TableColumn purchasecol = PurchaseTable.getColumnModel().getColumn(6);\n PurchaseTable.removeColumn(purchasecol);\n \n //additional setup for credit table\n TableColumn creditcol = CreditTable.getColumnModel().getColumn(5);\n CreditTable.removeColumn(creditcol);\n \n //additional setup for warehouseTB\n TableColumn warehouseindexcol = WarehouseTB.getColumnModel().getColumn(3);\n WarehouseTB.removeColumn(warehouseindexcol);\n \n //additional setup for containerTB\n TableColumn containerindexcol = ContainerTB.getColumnModel().getColumn(4);\n ContainerTB.removeColumn(containerindexcol);\n }", "private void mergeOrKeepCurrentProperty(Motif original, Motif updated, String property, String newValue) throws ExecutionError {\n if (property.equals(\"Short name\")) {\n String originalName=original.getShortName();\n if (originalName==null || originalName.isEmpty()) updated.setShortName(newValue); else updated.setShortName(originalName);\n } else if (property.equals(\"Long name\")) {\n String originalName=original.getLongName();\n if (originalName==null || originalName.isEmpty()) updated.setLongName(newValue); else updated.setLongName(originalName);\n } else if (property.equals(\"Consensus\")) {\n String originalConsensus=original.getConsensusMotif();\n if (originalConsensus==null || originalConsensus.isEmpty()) updated.setConsensusMotifAndUpdatePWM(newValue); else updated.setConsensusMotifAndUpdatePWM(originalConsensus);\n } else if (property.equals(\"Factors\")) {\n String mergedList=mergeStringsLists(original.getBindingFactors(),newValue);\n updated.setBindingFactors(mergedList);\n } else if (property.equals(\"Classification\")) {\n if (newValue.matches(\"[^0-9\\\\.]\")) throw new ExecutionError(\"Incorrect class label: \"+newValue);\n int level=MotifClassification.getClassLevel(newValue);\n while (level>4) {\n newValue=MotifClassification.getParentLevel(newValue);\n level=MotifClassification.getClassLevel(newValue);\n }\n if (!MotifClassification.isKnownClassString(newValue)) throw new ExecutionError(\"Unknown motif class:\"+newValue);\n if (original.getClassification()==null) updated.setClassification(newValue);\n } else if (property.equals(\"Quality\")) {\n try {\n int value=Integer.parseInt(newValue);\n if (value<1 || value>6) throw new ExecutionError(\"Quality should be a number between 1 and 6\");\n if (original.getQuality()==6) updated.setQuality(value);\n } catch (NumberFormatException nfe) {\n throw new ExecutionError(\"Unable to parse expected numeric value for quality: \"+newValue);\n }\n } else if (property.equals(\"Alternatives\")) {\n String[] names=newValue.split(\"\\\\s*,\\\\s*\");\n String[] originalNames=new String[original.getKnownDuplicatesNames().size()];\n originalNames=original.getKnownDuplicatesNames().toArray(originalNames);\n String[] merged=mergeStringLists(names, originalNames);\n updated.setKnownDuplicatesNames(merged);\n } else if (property.equals(\"Interactions\")) {\n String[] names=newValue.split(\"\\\\s*,\\\\s*\");\n String[] originalNames=new String[original.getInteractionPartnerNames().size()];\n originalNames=original.getInteractionPartnerNames().toArray(originalNames);\n String[] merged=mergeStringLists(names, originalNames);\n updated.setInteractionPartnerNames(merged);\n } else if (property.equals(\"Organisms\")) {\n String mergedList=mergeStringsLists(original.getOrganisms(),newValue);\n updated.setOrganisms(mergedList);\n } else if (property.equals(\"Expression\")) {\n String[] tissues=newValue.split(\"\\\\s*,\\\\s*\");\n String[] originalNames=new String[original.getTissueExpressionAsStringArray().size()];\n originalNames=original.getTissueExpressionAsStringArray().toArray(originalNames);\n String[] merged=mergeStringLists(tissues, originalNames);\n updated.setTissueExpression(merged);\n } else if (property.equals(\"Part\")) {\n if (!Motif.isValidPart(newValue)) throw new ExecutionError(\"'\"+newValue+\"' is not a valid value for the 'part' property\");\n updated.setPart(newValue);\n } else {\n if (!Motif.isValidUserDefinedPropertyKey(property)) throw new ExecutionError(\"'\"+property+\"' is not a valid name for a user-defined property\");\n if (newValue.contains(\";\")) throw new ExecutionError(\"Value can not contain the ';' character\");\n Class type=Motif.getClassForUserDefinedProperty(property, gui.getEngine());\n if (type!=null && (type.equals(ArrayList.class) || type.equals(String.class))) {\n String merged=mergeStringsLists( (String)original.getUserDefinedPropertyValueAsType(property,String.class), newValue); \n String[] mergedSplit=merged.split(\"\\\\s*,\\\\s*\");\n ArrayList<String> value=new ArrayList<String>(mergedSplit.length);\n value.addAll(Arrays.asList(merged));\n updated.setUserDefinedPropertyValue(property, value);\n } else updated.setUserDefinedPropertyValue(property, original.getUserDefinedPropertyValue(property)); // the property can not be merged (or can it?)\n }\n }" ]
[ "0.6745557", "0.6368918", "0.63210195", "0.63027304", "0.59528714", "0.5903792", "0.58869463", "0.588568", "0.57275736", "0.57161367", "0.5697701", "0.55553806", "0.5528181", "0.551826", "0.5472091", "0.5460043", "0.5393903", "0.53202945", "0.5306058", "0.5295899", "0.52730405", "0.52138346", "0.521353", "0.51912284", "0.5172981", "0.51631707", "0.5154148", "0.5151434", "0.51057595", "0.509987", "0.50916344", "0.5078333", "0.5064537", "0.50639933", "0.5063089", "0.5039416", "0.5026908", "0.5005078", "0.49967575", "0.49897262", "0.4989125", "0.49889922", "0.4973192", "0.4963293", "0.4939489", "0.4939089", "0.49190596", "0.49176", "0.49139944", "0.48994955", "0.48954806", "0.48881006", "0.48853764", "0.48787346", "0.48727313", "0.48577946", "0.48562604", "0.48484722", "0.48456946", "0.48386738", "0.48353598", "0.48202375", "0.48111424", "0.48109114", "0.48106307", "0.4769947", "0.47584888", "0.47485507", "0.47483408", "0.47310966", "0.4729971", "0.47181925", "0.47168073", "0.47157204", "0.4714952", "0.47011992", "0.47008476", "0.46975467", "0.46919486", "0.46916205", "0.46911272", "0.46854463", "0.4682291", "0.46818", "0.46814263", "0.46673736", "0.46640065", "0.46636426", "0.4659269", "0.4658029", "0.46575227", "0.46560493", "0.46481118", "0.46462432", "0.46461743", "0.4645438", "0.4643723", "0.46409693", "0.46400708", "0.46346343" ]
0.581281
8
Setting the cell is shared
public boolean isShare() { return (option >> 5 & 1) == 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setShared(boolean shared) {\n this.shared = shared;\n }", "public void setShared(boolean shared) {\n this.shared = shared;\n }", "public void setShared(boolean shared) {\n isShared = shared;\n }", "public void setSharedInd(String sharedInd) {\n\t\t\n\t}", "public void setCell(Cell cell)\n {\n myCell = cell;\n }", "public boolean getShared(){\n return this.shared;\n }", "public void setCell(boolean cell) {\n\t\tCell = cell;\n\t}", "protected abstract void setCell(int x, int y, boolean state);", "public void setShared(CPointer<Object> shared) throws IOException\n\t{\n\t\tlong __address = ((shared == null) ? 0 : shared.getAddress());\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeLong(__io__address + 80, __address);\n\t\t} else {\n\t\t\t__io__block.writeLong(__io__address + 80, __address);\n\t\t}\n\t}", "private void setSharedTo(int value) {\n \n sharedTo_ = value;\n }", "public abstract boolean isShared();", "public boolean isShared() {\n return shared;\n }", "public boolean isShared() {\n return shared;\n }", "public boolean isShared() {\n return isShared;\n }", "private void updateSharedState()\r\n {\r\n // TODO update the shared state\r\n // e.g.: sharedState.setTurnHolder(gameModel.getTurnHolder());\r\n }", "public void setIsShared(ParseTree node, Boolean bool) {\n\t\tthis.isShared.put(node, bool);\n\t}", "public void updateDataCell();", "public synchronized void switchCell()\n {\n cellValue = (cellValue == ALIVE) ? DEAD : ALIVE;\n }", "private void setCell(int x, int y, int newValue) {\n hiddenGrid[x][y] = newValue;\n }", "public void setSeCell(org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle seCell)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(SECELL$18, 0);\n if (target == null)\n {\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().add_element_user(SECELL$18);\n }\n target.set(seCell);\n }\n }", "public void setSharedSetName(String sharedSetName) {\r\n this.sharedSetName = sharedSetName;\r\n }", "public abstract boolean isOneCell();", "private void linkCell() {\n taskListView.setCellFactory(listView -> {\n TaskListViewCell cell = new TaskListViewCell();\n cell.addEventFilter(MouseEvent.MOUSE_PRESSED, event -> {\n taskListView.requestFocus();\n if (!cell.isEmpty()) {\n int index = cell.getIndex();\n if (taskListView.getSelectionModel().getSelectedIndices().contains(index)) {\n logger.fine(\"Selection in task list panel with index '\" + index\n + \"' has been deselected\");\n raise(new DeselectListCellTask(taskListView, index));\n } else {\n taskListView.getSelectionModel().select(index);\n }\n event.consume();\n }\n });\n return cell;\n });\n }", "@Override\n\tpublic boolean isShareable() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isShareable() {\n\t\treturn false;\n\t}", "boolean isShared();", "public void setToGridPermanently(){\n this.isPermanent = true;\n }", "public void setCacheShared(boolean isSharedCache) {\n cacheHandler.setSharedCache(isSharedCache);\n }", "public Cell() {\r\n\t\tthis.mineCount = 0;\r\n\t\tthis.isFlagged = false;\r\n\t\tthis.isExposed = false;\r\n\t\tthis.isMine = false;\r\n\t}", "public void startEditingAtCell(Object cell) {\r\n \t\tgraph.startEditingAtCell(cell);\r\n \t\tif ((cell != null) && (cell instanceof JmtCell)) {\r\n \t\t\tJmtCell jcell = (JmtCell) cell;\r\n \t\t\tStationParameterPanel stationPanel = new jmt.gui.common.panels.StationParameterPanel(model, model,\r\n \t\t\t\t\t((CellComponent) jcell.getUserObject()).getKey());\r\n \t\t\t// Adds on the top a panel to change station name\r\n \t\t\tstationPanel.add(new StationNamePanel(model, ((CellComponent) jcell.getUserObject()).getKey()), BorderLayout.NORTH);\r\n \t\t\tdialogFactory.getDialog(stationPanel, \"Editing \" + jcell.getUserObject().toString() + \" Properties...\");\r\n \r\n \t\t\t// Updates cell dimensions if name was changed too much...\r\n \t\t\tHashtable<Object, Map> nest = new Hashtable<Object, Map>();\r\n \t\t\tDimension cellDimension = jcell.getSize(graph);\r\n \t\t\tMap attr = jcell.getAttributes();\r\n \t\t\tRectangle2D oldBounds = GraphConstants.getBounds(attr);\r\n \t\t\tif (oldBounds.getWidth() != cellDimension.getWidth()) {\r\n \t\t\t\tGraphConstants.setBounds(attr, new Rectangle2D.Double(oldBounds.getX(), oldBounds.getY(), cellDimension.getWidth(), cellDimension\r\n \t\t\t\t\t\t.getHeight()));\r\n \t\t\t\tnest.put(cell, attr);\r\n \t\t\t\tjcell.updatePortPositions(nest, GraphConstants.getIcon(attr), cellDimension);\r\n \t\t\t\tgraph.getGraphLayoutCache().edit(nest);\r\n \t\t\t}\r\n \t\t}\r\n \t\t// Blocking region editing\r\n \t\telse if ((cell != null) && (cell instanceof BlockingRegion)) {\r\n \t\t\tObject regionKey = ((BlockingRegion) cell).getKey();\r\n \t\t\tdialogFactory.getDialog(new BlockingRegionParameterPanel(model, model, regionKey), \"Editing \" + model.getRegionName(regionKey)\r\n \t\t\t\t\t+ \" Properties...\");\r\n \t\t}\r\n \t}", "public abstract void setEmpty(AwtCell empty);", "public abstract void setCell(int row, int column, T item);", "public interface IMergableGridCell<T> extends IGridCell<T> {\n\n /**\n * Whether the cell in a merged state\n * @return true if merged\n */\n boolean isMerged();\n\n /**\n * Return the number of cells merged into this cell. For cells that are at the top\n * of a merged block this should be the number of merged cells, including this cell.\n * For cells that are not the top of a merged block but are contained in a merged\n * block this should return zero. For non-merged cells this should return one.\n * @return The number of cells merged into this cell, or zero if part of a merged block or one if not merged.\n */\n int getMergedCellCount();\n\n /**\n * Whether the cell is collapsed. For cells that are at the top of a collapsed\n * block this should return false. For cells that are not the top of a collapsed block\n * but are contained in a collapsed block this should return false.\n * @return true is collapsed.\n */\n boolean isCollapsed();\n\n /**\n * Collapse the cell.\n */\n void collapse();\n\n /**\n * Expand the cell.\n */\n void expand();\n\n /**\n * Reset the cell to a non-merged, non-collapsed state.\n */\n void reset();\n\n}", "public void setSingle( final boolean single ) {\n checkWidget();\n if( this.single != single ) {\n this.single = single;\n updateItemsWithResizeEvent();\n }\n }", "public void updateCell() {\n alive = !alive;\n simulator.getSimulation().changeState(xPosition, yPosition);\n setColor();\n }", "void startEditing(Object cell) {\n\n\t}", "public void testSetCell()\n {\n // Test setting a cell under ideal conditions\n assertTrue(b1.getCell(0, 0) == Cell.EMPTY);\n assertTrue(b1.setCell(0, 0, Cell.RED1));\n assertTrue(b1.getCell(0, 0) == Cell.RED1 );\n\n // If a cell is out of bounds, should fail\n assertFalse(b1.setCell(-1, 0, Cell.RED1));\n assertFalse(b1.setCell(0, -1, Cell.RED1));\n assertFalse(b1.setCell(3, 0, Cell.RED1));\n assertFalse(b1.setCell(0, 3, Cell.RED1));\n\n // If a cell is already occupied, should fail\n assertFalse(b1.setCell(0, 0, Cell.RED1));\n\n // If the board is won, should fail\n assertTrue(b1.setCell(0, 1, Cell.RED1));\n assertTrue(b1.setCell(0, 2, Cell.RED1));\n assertEquals(b1.getWhoHasWon(), Cell.RED1);\n assertFalse(b1.setCell(1, 1, Cell.RED1)); // Unoccupied\n assertFalse(b1.setCell(0, 0, Cell.RED1)); // Occupied\n\n\n\n\n }", "@Override\r\n\t\t\tpublic void update(final ViewerCell cell) {\n\t\t\t}", "@Override\r\n\t\t\tpublic void update(final ViewerCell cell) {\n\t\t\t}", "public void setSharedValue (String sharedKey, boolean sharedValue) {\n mSharedPreferences\n .edit()\n .putBoolean(sharedKey, sharedValue)\n .apply();\n }", "public void markCellAccessModeMerge() throws JNCException {\n markLeafMerge(\"cellAccessMode\");\n }", "public void setUsedAsTableCell(boolean isCell)\n {\n if (isCell)\n {\n removeAll();\n add(\"West\", field);\n setBackground(field.getBackground());\n field.setBorder(null);\n field.setPreferredSize(new Dimension(getMaximumSize().width, getPreferredSize().height));\n }\n }", "public String formatShared(Variant sh, String colname) {\n return shared.toString();\n }", "public void setSelectedCell(Coord c) {\n this.selected = c;\n }", "public Cell(){\n \tthis.shot=false;\n }", "public void test47278() {\n XSSFWorkbook wb = (XSSFWorkbook)_testDataProvider.createWorkbook();\n XSSFSheet sheet = wb.createSheet();\n XSSFRow row = sheet.createRow(0);\n SharedStringsTable sst = wb.getSharedStringSource();\n assertEquals(0, sst.getCount());\n \n //case 1. cell.setCellValue(new XSSFRichTextString((String)null));\n XSSFCell cell_0 = row.createCell(0);\n XSSFRichTextString str = new XSSFRichTextString((String)null);\n assertNull(str.getString());\n cell_0.setCellValue(str);\n assertEquals(0, sst.getCount());\n assertEquals(XSSFCell.CELL_TYPE_BLANK, cell_0.getCellType());\n \n //case 2. cell.setCellValue((String)null);\n XSSFCell cell_1 = row.createCell(1);\n cell_1.setCellValue((String)null);\n assertEquals(0, sst.getCount());\n assertEquals(XSSFCell.CELL_TYPE_BLANK, cell_1.getCellType());\n }", "public void setGFXCell(GFXDataCell gfxCell);", "protected void set(int row, int col, Cell cell) {\n\t\tmyGrid.set(row, col, cell);\n\t}", "public void setCellUsed(int row, int col, boolean val) {\n used[row][col] = val;\n }", "public void testSetCell()\r\n {\r\n board.loadBoardState(\"OOOO\",\r\n \"OOOO\",\r\n \"O+OO\",\r\n \"OOOO\");\r\n board.setCell(1, 2, MineSweeperCell.FLAGGED_MINE);\r\n assertBoard(board, \"OOOO\",\r\n \"OOOO\",\r\n \"OMOO\",\r\n \"OOOO\");\r\n }", "public int getShared() {\n\t\treturn shared;\n\t}", "public void setCurrentCell(\n\t\t\tint index )\n\t{\n\t}", "private void storeMutantShared(BlockStmt original, BlockStmt modified)\n {\n if (modified.equals(original))\n return;\n\n // Add Mutant\n addMutant(new ASTMutant(\n this.getOriginal().getCompilationUnit(),\n original,\n modified,\n this.getType()\n ));\n\n }", "public Boolean getIsShared(ParseTree node) {\n\t\treturn this.isShared.get(node);\n\t}", "@Override\n protected void updateItem(Boolean t, boolean empty) {\n super.updateItem(t, empty);\n if (!empty) {\n setGraphic(cellButton);\n }\n }", "public boolean isCellEditable(Object cell) {\r\n \t\treturn cell instanceof JmtCell || cell instanceof BlockingRegion;\r\n \t}", "public void punishment(){\n\t\tthis.cell = 0;\n\t}", "public String getSharedSetName() {\r\n return sharedSetName;\r\n }", "@Override\n\tpublic boolean isCellInteractable() {\n\t\treturn false;\n\t}", "@Override\n public void setCurSharedRef(MPlaceholder arg0)\n {\n \n }", "public void setNeCell(org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle neCell)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(NECELL$24, 0);\n if (target == null)\n {\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().add_element_user(NECELL$24);\n }\n target.set(neCell);\n }\n }", "@Override\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return columnIndex == 1;\n }", "public void setSwCell(org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle swCell)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(SWCELL$20, 0);\n if (target == null)\n {\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().add_element_user(SWCELL$20);\n }\n target.set(swCell);\n }\n }", "public boolean isSetSeCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(SECELL$18) != 0;\n }\n }", "boolean hasSharedSet();", "Binding<T> shared();", "void Cell(boolean R, int x, int y, Bridge bridge);", "@Override\n protected void updateItem(Boolean t, boolean empty) {\n super.updateItem(t, empty);\n if(!empty){\n setGraphic(cellButton);\n }\n else{\n setGraphic(null);\n }\n }", "private void setCellGrid(){\n count=0;\n status.setText(\"Player 1 Move\");\n field = new ArrayList<>();\n for (int i=0; i< TwoPlayersActivity.CELL_AMOUNT; i++) {\n field.add(new Cell(i));\n }\n }", "public void testSetCell() {\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.UNEXPLORED, maze1.getCell(test));\n test = new Location(9, 9);\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.UNEXPLORED, maze1.getCell(test));\n test = new Location(1, 0);\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.WALL, maze1.getCell(test));\n test = new Location(0, 1);\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.WALL, maze1.getCell(test));\n \n \n \n maze1.setCell(test, MazeCell.CURRENT_PATH);\n assertEquals(MazeCell.CURRENT_PATH, maze1.getCell(test));\n maze1.setCell(test, MazeCell.FAILED_PATH);\n assertEquals(MazeCell.FAILED_PATH, maze1.getCell(test));\n \n }", "public void cellAlreadyOccupied(int worker) {\n notifyCellAlreadyOccupied(worker, getCurrentTurn().getCurrentPlayer().getNickname());\n }", "@FXML\n public void changeMarksCellEvent(CellEditEvent<UGSubjectMarks, Integer> edittedCell) throws SQLException, ClassNotFoundException{\n UGSubjectMarks markSelected = subjectmarktbl.getSelectionModel().getSelectedItem();\n markSelected.SetSubMark(Integer.parseInt(edittedCell.getNewValue().toString()));\n int newMarks = Integer.parseInt(edittedCell.getNewValue().toString());\n UGSubject.setSubjectMarks(Integer.parseInt(studentID.getText()), sem, markSelected.getSubName(), newMarks);\n \n \n }", "public boolean isSetSwCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(SWCELL$20) != 0;\n }\n }", "public int setCell(int value){\n int newValue;\n if (isHit(value)){\n newValue = HIT;\n }\n else {\n newValue = MISS;\n }\n return newValue;\n }", "public void setCellStatus(boolean cellStatus)\n {\n this.cellStatus = cellStatus;\n }", "protected abstract double setCell(\r\n int row,\r\n int col,\r\n double valueToSet);", "public void setUserCell(String userCell) {\n\t\tthis.userCell = userCell;\n\t}", "com.google.ads.googleads.v6.resources.SharedSet getSharedSet();", "Shared shared();", "@Override\n public boolean isCellEditable(int row, int column) {\n return false;\n }", "private void update() {\n // Set for each cell\n for (Cell cell : this.view.getGamePanel().getViewCellList()) {\n cell.setBackground(BKGD_DARK_GRAY);\n cell.setForeground(Color.WHITE);\n cell.setFont(new Font(\"Halvetica Neue\", Font.PLAIN, 36));\n cell.setBorder(new LineBorder(Color.BLACK, 0));\n cell.setHorizontalAlignment(JTextField.CENTER);\n cell.setCaretColor(new Color(32, 44, 53));\n cell.setDragEnabled(false);\n cell.setTransferHandler(null);\n\n // Add subgrid separators\n CellPosition pos = cell.getPosition();\n if (pos.getColumn() == 2 || pos.getColumn() == 5) {\n cell.setBorder(BorderFactory.createMatteBorder(0, 0, 0, 2, new Color(146, 208, 80)));\n } else if (pos.getRow() == 2 || pos.getRow() == 5) {\n cell.setBorder(BorderFactory.createMatteBorder(0, 0, 2, 0, new Color(146, 208, 80)));\n }\n if ((pos.getColumn() == 2 && pos.getRow() == 2) || (pos.getColumn() == 5 && pos.getRow() == 5)\n || (pos.getColumn() == 2 && pos.getRow() == 5) || (pos.getColumn() == 5 && pos.getRow() == 2)) {\n cell.setBorder(BorderFactory.createMatteBorder(0, 0, 2, 2, new Color(146, 208, 80)));\n }\n\n // Validate User's Cell Input + Mouse Listeners\n cell.removeKeyListener(cellKeyListener);\n cell.removeMouseListener(cellMouseListener);\n if (cell.isLocked()) {\n cell.setEditable(false);\n cell.setHighlighter(null);\n } else {\n cell.setBackground(BKGD_LIGHT_GRAY);\n cell.addMouseListener(cellMouseListener);\n cell.addKeyListener(cellKeyListener);\n }\n if (cell.isEmpty()) {\n cell.setText(\"\");\n } else {\n cell.setText(String.valueOf(cell.getUserValue()));\n }\n\n // Adds cell to the view's grid\n this.view.getGamePanel().getGrid().add(cell);\n }\n\n }", "private void actionSmallerCells() {\n layoutPanel.changeCellSize(false);\n }", "@Override\n public boolean isCellEditable(int rowIndex, int columnIndex)\n {\n return columnIndex == 1;\n }", "public Builder setSharedTo(int value) {\n copyOnWrite();\n instance.setSharedTo(value);\n return this;\n }", "@Override\n public void updateCellState(CellPosition cellPosition, CellState cellState) {\n grid.replace(cellPosition, cellState);\n }", "public void setMine() {\r\n\t\tisMine=true;\r\n\t}", "public abstract void setCellValue(int cellValue, int row, int col);", "@Override\r\n\t\t\t\t\tpublic boolean shouldSelectCell(EventObject arg0) {\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}", "@Override\n public boolean isCellEditable(int i, int i1) {\n return false;\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"Shared \"+id;\n\t}", "public void putCellInGoodPlace(JmtCell cell, int x, int y, boolean flag) {\n \t\tif (sp > 9) {\r\n \t\t\tsp = 0;\r\n \t\t}\r\n \t\tint oldPointX = 0;\r\n \t\tint oldPointY = 0;\r\n \t\tboolean inGroup = false;\r\n \t\t// Il flag stato creato per capire sapere se e' una block regione e\r\n \t\t// quindi utilizzare\r\n \t\t// il vecchio metodo oppure se e' una cella quindi flag=true allora uso\r\n \t\t// il nuovo\r\n \t\t// System.out.println(\"------------PUT CELL IN GOOD PLACE\r\n \t\t// ----------------------\");\r\n \r\n \t\tif (flag) {\r\n \t\t\tRectangle bounds = GraphConstants.getBounds(cell.getAttributes()).getBounds();\r\n \t\t\tRectangle bounds2 = new Rectangle((int) bounds.getX() - 20, (int) bounds.getY(), (int) bounds.getWidth() + 38, (int) bounds.getHeight());\r\n \r\n \t\t\toldPointX = x;\r\n \t\t\toldPointY = y;\r\n \t\t\t// ---------inzio\r\n \t\t\t// Object[] cells=(graph).getDescendants(graph.getRoots());\r\n \t\t\t// for(int j=0;j<cells.length;j++){\r\n \t\t\t// if((cells[j] instanceof JmtCell) &&(cells[j]!=cell)){\r\n \t\t\t// Rectangle\r\n \t\t\t// boundcell=GraphConstants.getBounds(((JmtCell)cells[j]).getAttributes()).getBounds();\r\n \t\t\t// if(boundcell.intersects(bounds2)){\r\n \t\t\t// System.out.println(\"true\");\r\n \t\t\t// }\r\n \t\t\t// }\r\n \t\t\t// }\r\n \r\n \t\t\t// ---------------fine\r\n \t\t\t// check if a cell isInGroup\r\n \t\t\tif (isInGroup(cell)) {\r\n \r\n \t\t\t\tinGroup = true;\r\n \t\t\t}\r\n \r\n \t\t\t// Avoids negative starting point\r\n \t\t\tif (bounds.getX() < 20) {\r\n \t\t\t\tbounds.setLocation(20, (int) bounds.getY());\r\n \t\t\t}\r\n \t\t\tif (bounds.getY() < 0) {\r\n \t\t\t\tbounds.setLocation((int) bounds.getX(), 0);\r\n \t\t\t}\r\n \r\n \t\t\t// Qua ho le celle e archi che intersecano la mia cella\r\n \t\t\t// selezionata..bounds (molto efficente dal punto di vista della\r\n \t\t\t// pesantezza)\r\n \t\t\tObject[] overlapping = graph.getDescendants(graph.getRoots(bounds2));\r\n \r\n \t\t\tPoint2D zero = new Point(20, 0);\r\n \t\t\tresetOverLapping = 0;\r\n \t\t\twhile (overlapping.length > 0) {\r\n \r\n \t\t\t\t// Moves bounds until it doesn't overlap with anything\r\n \t\t\t\tPoint2D last = (Point2D) zero.clone();\r\n \t\t\t\tfor (int j = 0; j < overlapping.length; j++) {\r\n \r\n \t\t\t\t\tresetOverLapping++;\r\n \t\t\t\t\t// resetOverLapping is inserted for an anormall behavior of\r\n \t\t\t\t\t// Tool\r\n \t\t\t\t\t// in fact, if you disable this variable you can see that\r\n \t\t\t\t\t// the tools\r\n \t\t\t\t\t// stop and \"for cycle\" will be repeated infinite times\r\n \t\t\t\t\tif (resetOverLapping > 50) {\r\n \t\t\t\t\t\tbounds.setLocation(new Point(oldPointX, oldPointY));\r\n \t\t\t\t\t\tGraphConstants.setBounds(cell.getAttributes(), bounds);\r\n \t\t\t\t\t\tresetOverLapping = 0;\r\n \t\t\t\t\t\treturn;\r\n \t\t\t\t\t}\r\n \t\t\t\t\t// System.out.println(\"---flag in for---\");\r\n \t\t\t\t\t// if(overlapping[j] instanceof JmtEdge\r\n \t\t\t\t\t// &&((JmtEdge)overlapping[j]).intersects((EdgeView)(graph.getGraphLayoutCache()).getMapping(overlapping[j],\r\n \t\t\t\t\t// false),\r\n \t\t\t\t\t// GraphConstants.getBounds(((JmtCell)cell).getAttributes())))\r\n \t\t\t\t\t// System.out.println(\"Intersect TRUE\");\r\n \r\n \t\t\t\t\t// Puts last to last corner of overlapping cells\r\n \t\t\t\t\tif (overlapping[j] instanceof JmtCell && overlapping[j] != cell && inGroup) {\r\n \t\t\t\t\t\tRectangle2D b2 = GraphConstants.getBounds(((JmtCell) overlapping[j]).getAttributes());\r\n \t\t\t\t\t\tif (b2.intersects(bounds)) {\r\n \t\t\t\t\t\t\tif (b2.getMaxX() > last.getX()) {\r\n \t\t\t\t\t\t\t\tlast.setLocation(b2.getMaxX(), last.getY());\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tif (b2.getMaxY() > last.getY()) {\r\n \t\t\t\t\t\t\t\tlast.setLocation(last.getX(), b2.getMaxY());\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tlast.setLocation(new Point((int) (last.getX() + .5), (int) (last.getY() + .5)));\r\n \t\t\t\t\t}\r\n \r\n \t\t\t\t\tint numberOfChild = cell.getChildCount();\r\n \r\n \t\t\t\t\tif (!inGroup && overlapping[j] instanceof JmtCell && overlapping[j] != cell) {\r\n \r\n \t\t\t\t\t\tRectangle2D b = GraphConstants.getBounds(((JmtCell) overlapping[j]).getAttributes());\r\n \t\t\t\t\t\t// Consider only rectangles that intersects with given\r\n \t\t\t\t\t\t// bound\r\n \t\t\t\t\t\tif (b.intersects(bounds2)) {\r\n \t\t\t\t\t\t\tlast.setLocation(new Point(oldPointX, oldPointY));\r\n \r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t\t// inizio a controllare se l intersezione e' un lato\r\n \t\t\t\t\tif (overlapping[j] instanceof JmtEdge\r\n \t\t\t\t\t\t\t&& overlapping[j] != cell\r\n \t\t\t\t\t\t\t&& !isInGroup(overlapping[j])\r\n \t\t\t\t\t\t\t&& ((JmtEdge) overlapping[j]).intersects((EdgeView) (graph.getGraphLayoutCache()).getMapping(overlapping[j], false),\r\n \t\t\t\t\t\t\t\t\tGraphConstants.getBounds(cell.getAttributes())) && ((JmtEdge) overlapping[j]).getSource() != cell.getChildAt(0)) {\r\n \t\t\t\t\t\tboolean access = false;\r\n \t\t\t\t\t\tboolean access2 = false;\r\n \r\n \t\t\t\t\t\t// Nonostatne SourceCell e SinkCell estendano JMTCell\r\n \t\t\t\t\t\t// avevo problemi di nullPointerException per questo\r\n \t\t\t\t\t\t// verifico di che\r\n \t\t\t\t\t\t// tipo sono\r\n \r\n \t\t\t\t\t\tif (cell instanceof SourceCell\r\n \t\t\t\t\t\t\t\t&& ((JmtEdge) overlapping[j]).intersects((EdgeView) (graph.getGraphLayoutCache()).getMapping(overlapping[j], false),\r\n \t\t\t\t\t\t\t\t\t\tGraphConstants.getBounds(((SourceCell) cell).getAttributes()))) {\r\n \t\t\t\t\t\t\tif (((JmtEdge) overlapping[j]).getSource() != cell.getChildAt(0)) {\r\n \t\t\t\t\t\t\t\t// _______INIZIO_____\r\n \t\t\t\t\t\t\t\tArrayList<Point2D> intersectionPoints = ((JmtEdge) overlapping[j]).getIntersectionVertexPoint();\r\n \t\t\t\t\t\t\t\tPoint2D tmp = (intersectionPoints.get(0));\r\n \t\t\t\t\t\t\t\tRectangle2D cellBound = GraphConstants.getBounds(((SourceCell) cell).getAttributes());\r\n \t\t\t\t\t\t\t\tdouble vertexMaxX = (int) cellBound.getMaxX();\r\n \t\t\t\t\t\t\t\tdouble vertexMaxY = (int) cellBound.getMaxY();\r\n \t\t\t\t\t\t\t\tdouble vertexHeight = (int) cellBound.getHeight();\r\n \t\t\t\t\t\t\t\tdouble vertexWidth = (int) cellBound.getWidth();\r\n \t\t\t\t\t\t\t\tboolean upperSideIntersaction = ((JmtEdge) overlapping[j]).getUpperSideIntersaction();\r\n \t\t\t\t\t\t\t\tboolean lowerSideIntersaction = ((JmtEdge) overlapping[j]).getLowerSideIntersaction();\r\n \t\t\t\t\t\t\t\tboolean leftSideIntersaction = ((JmtEdge) overlapping[j]).getLeftSideIntersaction();\r\n \t\t\t\t\t\t\t\tboolean rightSideIntersaction = ((JmtEdge) overlapping[j]).getRightSideIntersaction();\r\n \t\t\t\t\t\t\t\tif (upperSideIntersaction && lowerSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\tint valoreIntermedio = ((int) vertexMaxX - (int) (vertexWidth / 2));\r\n \t\t\t\t\t\t\t\t\tif ((int) tmp.getX() < valoreIntermedio) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, false, true, false);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t} else {\r\n \r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, false, false, true);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t} else if (leftSideIntersaction && rightSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\tint valoreIntermedio = ((int) vertexMaxY - (int) (vertexHeight / 2));\r\n \t\t\t\t\t\t\t\t\tif ((int) tmp.getY() < valoreIntermedio) {\r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, true, false, false);\r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition2 = new Point(newPosition.x, newPosition.y + sp);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition2);\r\n \t\t\t\t\t\t\t\t\t\tsp = sp + 2;\r\n \t\t\t\t\t\t\t\t\t\t// cellBounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t\t// GraphConstants.setBounds(((SinkCell)cell).getAttributes(),\r\n \t\t\t\t\t\t\t\t\t\t// cellBounds);\r\n \t\t\t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\ttrue, false, false, false);\r\n \r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t} else if (upperSideIntersaction && rightSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp, false,\r\n \t\t\t\t\t\t\t\t\t\t\tfalse, false, true);\r\n \t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \r\n \t\t\t\t\t\t\t\t} else if (upperSideIntersaction && leftSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp, false,\r\n \t\t\t\t\t\t\t\t\t\t\tfalse, true, false);\r\n \t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t} else if (lowerSideIntersaction && rightSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\tPoint2D tmp1 = (intersectionPoints.get(1));\r\n \t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp1, false,\r\n \t\t\t\t\t\t\t\t\t\t\tfalse, false, true);\r\n \t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t} else if (lowerSideIntersaction && leftSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp, false,\r\n \t\t\t\t\t\t\t\t\t\t\tfalse, true, false);\r\n \t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\taccess = true;\r\n \t\t\t\t\t\t\t}\r\n \r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tif (cell instanceof SinkCell) {\r\n \r\n \t\t\t\t\t\t\tif (((JmtEdge) overlapping[j]).getTarget() != cell.getChildAt(0)) {\r\n \r\n \t\t\t\t\t\t\t\tif (((JmtEdge) overlapping[j]).intersects((EdgeView) (graph.getGraphLayoutCache()).getMapping(overlapping[j], false),\r\n \t\t\t\t\t\t\t\t\t\tGraphConstants.getBounds(((SinkCell) cell).getAttributes()))) {\r\n \r\n \t\t\t\t\t\t\t\t\tArrayList<Point2D> intersectionPoints = ((JmtEdge) overlapping[j]).getIntersectionVertexPoint();\r\n \t\t\t\t\t\t\t\t\tPoint2D tmp = (intersectionPoints.get(0));\r\n \t\t\t\t\t\t\t\t\tRectangle2D cellBound = GraphConstants.getBounds(((SinkCell) cell).getAttributes());\r\n \t\t\t\t\t\t\t\t\tdouble vertexMaxX = (int) cellBound.getMaxX();\r\n \t\t\t\t\t\t\t\t\tdouble vertexMaxY = (int) cellBound.getMaxY();\r\n \t\t\t\t\t\t\t\t\tdouble vertexHeight = (int) cellBound.getHeight();\r\n \t\t\t\t\t\t\t\t\tdouble vertexWidth = (int) cellBound.getWidth();\r\n \t\t\t\t\t\t\t\t\tboolean upperSideIntersaction = ((JmtEdge) overlapping[j]).getUpperSideIntersaction();\r\n \t\t\t\t\t\t\t\t\tboolean lowerSideIntersaction = ((JmtEdge) overlapping[j]).getLowerSideIntersaction();\r\n \t\t\t\t\t\t\t\t\tboolean leftSideIntersaction = ((JmtEdge) overlapping[j]).getLeftSideIntersaction();\r\n \t\t\t\t\t\t\t\t\tboolean rightSideIntersaction = ((JmtEdge) overlapping[j]).getRightSideIntersaction();\r\n \t\t\t\t\t\t\t\t\tif (upperSideIntersaction && lowerSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tint valoreIntermedio = ((int) vertexMaxX - (int) (vertexWidth / 2));\r\n \t\t\t\t\t\t\t\t\t\tif ((int) tmp.getX() < valoreIntermedio) {\r\n \t\t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\t\tfalse, false, true, false);\r\n \t\t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t\t} else {\r\n \r\n \t\t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\t\tfalse, false, false, true);\r\n \t\t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t\t} else if (leftSideIntersaction && rightSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tint valoreIntermedio = ((int) vertexMaxY - (int) (vertexHeight / 2));\r\n \t\t\t\t\t\t\t\t\t\tif ((int) tmp.getY() < valoreIntermedio) {\r\n \t\t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\t\tfalse, true, false, false);\r\n \t\t\t\t\t\t\t\t\t\t\tPoint newPosition2 = new Point(newPosition.x, newPosition.y + sp);\r\n \t\t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition2);\r\n \t\t\t\t\t\t\t\t\t\t\tsp = sp + 3;\r\n \t\t\t\t\t\t\t\t\t\t\t// bounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\t\ttrue, false, false, false);\r\n \r\n \t\t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t\t} else if (upperSideIntersaction && rightSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, false, false, true);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \r\n \t\t\t\t\t\t\t\t\t} else if (upperSideIntersaction && leftSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, false, true, false);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t} else if (lowerSideIntersaction && rightSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tPoint2D tmp1 = (intersectionPoints.get(1));\r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp1,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, false, false, true);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t} else if (lowerSideIntersaction && leftSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, false, true, false);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t\t// GraphConstants.setBounds(((SinkCell)cell).getAttributes(),\r\n \t\t\t\t\t\t\t\t\t\t// cellBounds);\r\n \t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t\taccess2 = true;\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}\r\n \t\t\t\t\t\tif (!isInGroup(overlapping[j]) && !access && !access2 && overlapping[j] instanceof JmtEdge) {\r\n \t\t\t\t\t\t\tif ((numberOfChild == 2)\r\n \t\t\t\t\t\t\t\t\t&& ((JmtEdge) overlapping[j]).getSource() != cell.getChildAt(0)\r\n \t\t\t\t\t\t\t\t\t&& ((JmtEdge) overlapping[j]).getSource() != cell.getChildAt(1)\r\n \t\t\t\t\t\t\t\t\t&& ((JmtEdge) overlapping[j]).getTarget() != cell.getChildAt(0)\r\n \t\t\t\t\t\t\t\t\t&& ((JmtEdge) overlapping[j]).getTarget() != cell.getChildAt(1)\r\n \t\t\t\t\t\t\t\t\t&& ((JmtEdge) overlapping[j]).intersects((EdgeView) (graph.getGraphLayoutCache()).getMapping(overlapping[j],\r\n \t\t\t\t\t\t\t\t\t\t\tfalse), GraphConstants.getBounds(cell.getAttributes()))) {\r\n \r\n \t\t\t\t\t\t\t\taccess = access2 = false;\r\n \r\n \t\t\t\t\t\t\t\tArrayList<Point2D> intersectionPoints = ((JmtEdge) overlapping[j]).getIntersectionVertexPoint();\r\n \t\t\t\t\t\t\t\tif ((intersectionPoints == null) || intersectionPoints.size() <= 0) {\r\n \t\t\t\t\t\t\t\t\tbounds.setLocation(new Point(oldPointX, oldPointY));\r\n \t\t\t\t\t\t\t\t\tGraphConstants.setBounds(cell.getAttributes(), bounds);\r\n \t\t\t\t\t\t\t\t\tresetOverLapping = 0;\r\n \t\t\t\t\t\t\t\t\treturn;\r\n \t\t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\t\tPoint2D tmp = (intersectionPoints.get(0));\r\n \r\n \t\t\t\t\t\t\t\t\tRectangle2D cellBound = GraphConstants.getBounds(cell.getAttributes());\r\n \t\t\t\t\t\t\t\t\tdouble vertexMaxX = (int) cellBound.getMaxX();\r\n \t\t\t\t\t\t\t\t\tdouble vertexMaxY = (int) cellBound.getMaxY();\r\n \t\t\t\t\t\t\t\t\tdouble vertexHeight = (int) cellBound.getHeight();\r\n \t\t\t\t\t\t\t\t\tdouble vertexWidth = (int) cellBound.getWidth();\r\n \t\t\t\t\t\t\t\t\tboolean upperSideIntersaction = ((JmtEdge) overlapping[j]).getUpperSideIntersaction();\r\n \t\t\t\t\t\t\t\t\tboolean lowerSideIntersaction = ((JmtEdge) overlapping[j]).getLowerSideIntersaction();\r\n \t\t\t\t\t\t\t\t\tboolean leftSideIntersaction = ((JmtEdge) overlapping[j]).getLeftSideIntersaction();\r\n \t\t\t\t\t\t\t\t\tboolean rightSideIntersaction = ((JmtEdge) overlapping[j]).getRightSideIntersaction();\r\n \t\t\t\t\t\t\t\t\tif (upperSideIntersaction && lowerSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tint valoreIntermedio = ((int) vertexMaxX - (int) (vertexWidth / 2));\r\n \t\t\t\t\t\t\t\t\t\tif ((int) tmp.getX() < valoreIntermedio) {\r\n \r\n \t\t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\t\tfalse, false, true, false);\r\n \t\t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t\t} else {\r\n \r\n \t\t\t\t\t\t\t\t\t\t\t;\r\n \t\t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\t\tfalse, false, false, true);\r\n \t\t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t\t} else if (leftSideIntersaction && rightSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tint valoreIntermedio = ((int) vertexMaxY - (int) (vertexHeight / 2));\r\n \t\t\t\t\t\t\t\t\t\tif ((int) tmp.getY() < valoreIntermedio) {\r\n \r\n \t\t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\t\tfalse, true, false, false);\r\n \t\t\t\t\t\t\t\t\t\t\tPoint newPosition2 = new Point(newPosition.x, newPosition.y + sp);\r\n \t\t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition2);\r\n \t\t\t\t\t\t\t\t\t\t\tsp = sp + 3;\r\n \t\t\t\t\t\t\t\t\t\t\t// bounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t\t\t// GraphConstants.setBounds(((SinkCell)cell).getAttributes(),\r\n \t\t\t\t\t\t\t\t\t\t\t// cellBounds);\r\n \t\t\t\t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\t\ttrue, false, false, false);\r\n \t\t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t\t} else if (upperSideIntersaction && rightSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, false, false, true);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t} else if (upperSideIntersaction && leftSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, false, true, false);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t} else if (lowerSideIntersaction && rightSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tPoint2D tmp1 = (intersectionPoints.get(1));\r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp1,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, false, false, true);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t} else if (lowerSideIntersaction && leftSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, false, true, false);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t} // end if of edge\r\n \t\t\t\t}\r\n \r\n \t\t\t\tif (last.equals(zero)) {\r\n \t\t\t\t\tbreak;\r\n \t\t\t\t}\r\n \r\n \t\t\t\tbounds.setLocation(new Point((int) (last.getX()), (int) (last.getY())));\r\n \r\n \t\t\t\toverlapping = graph.getDescendants(graph.getRoots(bounds));\r\n \t\t\t}\r\n \r\n \t\t\t// Puts this cell in found position\r\n \t\t\tGraphConstants.setBounds(cell.getAttributes(), bounds);\r\n \r\n \t\t} else {\r\n \r\n \t\t\tRectangle bounds = GraphConstants.getBounds(cell.getAttributes()).getBounds();\r\n \t\t\tif (isInGroup(cell)) {\r\n \t\t\t\tinGroup = true;\r\n \t\t\t}\r\n \r\n \t\t\t// Avoids negative starting point\r\n \t\t\tif (bounds.getX() < 20) {\r\n \t\t\t\tbounds.setLocation(20, (int) bounds.getY());\r\n \t\t\t}\r\n \t\t\tif (bounds.getY() < 0) {\r\n \t\t\t\tbounds.setLocation((int) bounds.getX(), 0);\r\n \t\t\t}\r\n \t\t\tObject[] overlapping = graph.getDescendants(graph.getRoots(bounds));\r\n \r\n \t\t\tif (overlapping == null) {\r\n \r\n \t\t\t\treturn;\r\n \t\t\t}\r\n \r\n \t\t\tPoint2D zero = new Point(20, 0);\r\n \t\t\twhile (overlapping.length > 0) {\r\n \t\t\t\tPoint2D last = (Point2D) zero.clone();\r\n \t\t\t\tfor (Object element : overlapping) {\r\n \t\t\t\t\tif (element instanceof JmtCell && element != cell && inGroup) {\r\n \t\t\t\t\t\tRectangle2D b2 = GraphConstants.getBounds(((JmtCell) element).getAttributes());\r\n \t\t\t\t\t\tif (b2.intersects(bounds)) {\r\n \t\t\t\t\t\t\tif (b2.getMaxX() > last.getX()) {\r\n \t\t\t\t\t\t\t\tlast.setLocation(b2.getMaxX(), last.getY());\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tif (b2.getMaxY() > last.getY()) {\r\n \t\t\t\t\t\t\t\tlast.setLocation(last.getX(), b2.getMaxY());\r\n \t\t\t\t\t\t\t}\r\n \r\n \t\t\t\t\t\t\tlast.setLocation(new Point((int) (last.getX() + .5), (int) (last.getY() + .5)));\r\n \t\t\t\t\t\t}\r\n \r\n \t\t\t\t\t}\r\n \t\t\t\t\tif (!inGroup && element instanceof JmtCell && element != cell) {\r\n \t\t\t\t\t\tlast.setLocation(new Point((int) (last.getX() + .5), (int) (last.getY() + .5)));\r\n \t\t\t\t\t}\r\n \t\t\t\t\tint numberOfChild = cell.getChildCount();\r\n \t\t\t\t\tif (isInGroup(element) && element instanceof JmtEdge) {\r\n \t\t\t\t\t\tif ((numberOfChild == 2)\r\n \t\t\t\t\t\t\t\t&& ((JmtEdge) element).getSource() != cell.getChildAt(0)\r\n \t\t\t\t\t\t\t\t&& ((JmtEdge) element).getSource() != cell.getChildAt(1)\r\n \t\t\t\t\t\t\t\t&& ((JmtEdge) element).getTarget() != cell.getChildAt(0)\r\n \t\t\t\t\t\t\t\t&& ((JmtEdge) element).getTarget() != cell.getChildAt(1)\r\n \t\t\t\t\t\t\t\t&& ((JmtEdge) element).intersects((EdgeView) (graph.getGraphLayoutCache()).getMapping(element, false), GraphConstants\r\n \t\t\t\t\t\t\t\t\t\t.getBounds(cell.getAttributes()))) {\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tRectangle2D b2 = GraphConstants.getBounds(((JmtEdge) element).getAttributes());\r\n \t\t\t\t\t\tif (b2.intersects(bounds)) {\r\n \t\t\t\t\t\t\t// ___\r\n \t\t\t\t\t\t}\r\n \r\n \t\t\t\t\t\tlast.setLocation(new Point((int) (last.getX() + .5), (int) (last.getY() + .5)));\r\n \t\t\t\t\t}\r\n \r\n \t\t\t\t}\r\n \t\t\t\tif (last.equals(zero)) {\r\n \t\t\t\t\tbreak;\r\n \t\t\t\t}\r\n \t\t\t\tbounds.setLocation(new Point((int) (last.getX()), (int) (last.getY())));\r\n \t\t\t\toverlapping = graph.getDescendants(graph.getRoots(bounds));\r\n \t\t\t}\r\n \t\t\tGraphConstants.setBounds(cell.getAttributes(), bounds);\r\n \r\n \t\t}\r\n \r\n \t}", "public void setMine()\n {\n mine = true;\n }", "protected final boolean sharedConnectionEnabled() {\n\t\treturn true;\n\t}", "public void setSharedValue (String sharedKey, String sharedValue) {\n mSharedPreferences\n .edit()\n .putString(sharedKey, sharedValue)\n .apply();\n }", "@Override\r\n\t\t\t\t\tpublic boolean isCellEditable(EventObject arg0) {\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}", "private void clearSharedTo() {\n \n sharedTo_ = 0;\n }", "@Override\n public boolean isCellEditable(int row, int column) \n {\n return false;\n }", "public void setGrid(final boolean theSelection) {\n myGrid = theSelection;\n repaint();\n }", "private void unlockCell(int x, int y) {\n data[x][y] = false;\n\t}", "private void actionBiggerCells() {\n layoutPanel.changeCellSize(true);\n }", "@Override\r\n public boolean isCellEditable(int row, int col) {\r\n return true;\r\n }" ]
[ "0.6894225", "0.66472685", "0.65892327", "0.6203736", "0.60551107", "0.60201275", "0.5927306", "0.5801597", "0.5791302", "0.57446206", "0.5721862", "0.56772524", "0.56772524", "0.5673462", "0.5644208", "0.56203306", "0.5563771", "0.5537648", "0.54982764", "0.54882157", "0.54820716", "0.5451068", "0.5438789", "0.5394788", "0.5394788", "0.537981", "0.5374563", "0.536355", "0.534576", "0.5338197", "0.53178895", "0.52991927", "0.5297913", "0.52823937", "0.5257385", "0.5252325", "0.52508855", "0.5249991", "0.5249991", "0.52374035", "0.52325577", "0.5218616", "0.52047914", "0.52013177", "0.5172488", "0.51643777", "0.51584965", "0.5156872", "0.51402515", "0.5131838", "0.5110748", "0.5097078", "0.50832313", "0.5082896", "0.50793076", "0.5076376", "0.5053448", "0.50532264", "0.503189", "0.5030855", "0.50173056", "0.50143945", "0.50115347", "0.50015914", "0.4995792", "0.4994047", "0.49890518", "0.49879882", "0.49835697", "0.496718", "0.49583757", "0.49544987", "0.4951759", "0.49517012", "0.4947733", "0.49460995", "0.49319074", "0.49312526", "0.49303305", "0.4929801", "0.49294108", "0.49275196", "0.4920506", "0.4919153", "0.4907914", "0.49030703", "0.49023136", "0.48942587", "0.48926118", "0.4889307", "0.488928", "0.4885136", "0.48830652", "0.48824656", "0.48784536", "0.48784116", "0.48745376", "0.4873864", "0.48677412", "0.48613235", "0.48591596" ]
0.0
-1
Returns the column name
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getColumnName();", "public String getColumnName() {\r\n return dataBinder.getColumnName();\r\n }", "public String getColumnName();", "public String getName(){\n\t\t\treturn columnName;\n\t\t}", "public String getColumnName(int col) { return columnNames[col]; }", "public String getName() {\n return columnName;\n }", "public java.lang.String getColumnName() {\r\n return columnName;\r\n }", "@Override\n public String getName() {\n return columnInfo.getName();\n }", "@Override\n public String getColumnName(int column) {\n return colName[column];\n }", "public String getColumnName(int col) {\n return columns[col] ;\n }", "@Override\n public String getColumnName(int column) { return columnnames[column]; }", "public String getColumnName() {\n return columnName; \n }", "public String getColumnName(int columnIndex){\n return COLUMN_NAMES[columnIndex];\n }", "public String getColumnName(int col) {\n\t return columnNames[col];\n }", "@Override\n public String getColumnName(int column) {\n return columnNames[column];\n }", "@Override\n public String getColumnName(int column) {\n return columnNames[column];\n }", "@Override\n public String getColumnName(int aColumn) {\n return model.getColumnName(aColumn); \n }", "public String getColumnName(int col) {\r\n return columnNames[col];\r\n }", "java.lang.String getColumn();", "public String getColumnName() {\r\n return navBinder.getColumnName();\r\n }", "public String getColumnName(int col) {\n return columnNames[col];\n }", "@Override\r\n\tpublic String getColumnName(int column) {\n\t\treturn columnName[column];\r\n\t}", "@Override\r\n\tpublic String getColumnName(int column) {\n\t\treturn columnName[column];\r\n\t}", "@Override\n public String getColumnName(int columnIndex) {\n return columnNames[columnIndex];\n }", "public String getColumnName(int col) {\n return columnNames[col];\n }", "public String getColumnName() {\n return this.columnName;\n }", "public String getColumnName(int column) {\n return columnNames[column];\n }", "public String getColumnName(int theCol) {\n return columnNameList[theCol];\n }", "@Override\n public String getColumnName(int columnIndex) {\n return nomeColunas[columnIndex];\n }", "public String getColumnName(int theCol) {\n return this.model.getColumnName(theCol);\n }", "@Override\n public String getColumnName(int columnIndex) {\n return nomeColunas[columnIndex];\n }", "@Override\n\tpublic String getColumnName(int column) {\n\t\treturn this.colunas[column];\n\t}", "@Override\n\tpublic String getColumnName(int arg0) throws SQLException {\n\t\treturn columns[arg0-1];\n\t}", "public String getColumnName(int col) {\r\n if (columns[col] instanceof StratmasObject) {\r\n return ((StratmasObject)columns[col]).getReference().getIdentifier().trim();\r\n }\r\n else {\r\n return (String)columns[col];\r\n }\r\n }", "public String getColumnName(int columnIndex){\r\n\t\t\tif (Person.getFieldColumn(columnIndex) != null)\r\n\t\t\t\treturn Person.getFieldColumn(columnIndex);\r\n\t\t\treturn \"\";\r\n\t\t}", "@Override\n public String getColumnName(final int column) {\n return _columns.get(column);\n }", "public String getColumnName(int column) {\r\n if (_debugTable != null) {\r\n return _debugTable.getColumnTitle(column) ;\r\n } else {\r\n return \"\" ;\r\n }\r\n }", "public String getColName() {\r\n\t\treturn colName;\r\n\t}", "@Override\n\tpublic String getColumnName(int column) {\n\t\tswitch (column) {\n\t\tcase 0:\n\t\t\treturn \"Expression\";\n\t\tcase 1:\n\t\t\treturn \"Value\";\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic String getColumnName(int col) {\n\t\treturn columnNames.get(col);\n\t}", "@Override\n\tpublic String getColumnName(int column) {\n\t\treturn names[column];\n\t}", "@Override\n\tpublic String getColumnName(int col)\n\t{\n\t\treturn nomColonnes[col];\n\t}", "@Override\r\n public String getColumnName(int col) {\r\n return title[col];\r\n }", "@Override\r\n public String getColumnName(int column) {\n return (String)this.columnNames.get(column);\r\n }", "public String getColumnName(int col) {\n\t\treturn columnNames[col];\n\t}", "public String getColumnName(int columnIndex) {\r\n return this.table.getSchema().getColumnName(columnIndex);\r\n }", "public String getColumnName(int columnIndex) {\n return columnNames[columnIndex];\n }", "public String getColumnName(int col)\n\t{\n\t\treturn columnNames[col];\n\t}", "public String getColumnName(int c) {\n\treturn columnNames[c];\n}", "String getColumn();", "public String getColumnName(int col) {\r\n\t\treturn this.columnNames[col];\r\n\t}", "@Override\n\tpublic String getColumnName(int col) {\n\t\treturn NOMICOLONNE[col];\n\t}", "public String getColumnName(int c){\r\n\t\treturn (new Integer(c).toString());\r\n\t}", "@Override\n public String getColumnName(int column) {\n if (column > colunas.length || column < 0) {\n return null;\n }\n return colunas[column];\n\n }", "@Override\n\tpublic String getColumnName(int col) throws SQLException {\n\t\tif (col <= this.width && col >= 1) {\n\n\t\t\tcol--;\n\t\t\tString str = table[0][col];\n\t\t\tStringTokenizer token = new StringTokenizer(str, \",\");\n\t\t\tString label = token.nextToken();\n\n\t\t\treturn label;\n\n\t\t} else\n\t\t\tthrow new SQLException(\"column requested out of table bounds \");\n\t}", "public String getColumnName(int col) {\n\t\treturn colNames.get(col);\n\t}", "public String getColumnName(int column)throws IllegalStateException{\n if(!connectedToDatabase)\n throw new IllegalStateException(\"Not Connected to datsbase\");\n \n //determine col name\n try{\n return metaData.getColumnName(column+1);\n }catch(SQLException sQLException){\n sQLException.printStackTrace();\n }\n return \"\"; //if problems occur above, return 0 for number of columns\n \n }", "@Override\n public String getColumnName(int column) {\n if (column == COL_ID) {\n return \"Código\";\n } else if (column == COL_NAME) {\n return \"Nome\";\n }\n return \"\";\n }", "public String getColumnName(int column)\n {\n if (columnNames != null)\n {\n return columnNames[column];\n \n }\n if (metaData == null)\n {\n return \"N/A\";\n }\n\n try\n {\n return metaData.getColumnName(column+1);\n\n } catch (SQLException ex)\n {\n edu.ku.brc.af.core.UsageTracker.incrSQLUsageCount();\n edu.ku.brc.exceptions.ExceptionTracker.getInstance().capture(ResultSetTableModelDirect.class, ex);\n return \"N/A\";\n }\n }", "protected String getTableColumn()\n\t\t{\n\t\t\treturn Column ;\n\t\t}", "public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }", "public String getColumnName(int columnIndex) {\n return resource.getString(columnNames.get(columnIndex));\n }", "java.lang.String getSourceColumnName();", "private String getColumnName( String propertyName ) {\r\n String[] s = StringExtend.toArray( propertyName, \".\", false );\r\n return s[s.length - 1];\r\n }", "public String getColumn() {\n Object ref = column_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n column_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getColumnName(int columnIdx)\r\n\t{\r\n\t\treturn columnName[columnIdx];\r\n\t}", "public StrColumn getName() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"name\", StrColumn::new) :\n getBinaryColumn(\"name\"));\n }", "@Override public String getColumnName(int iColumnIndex)\r\n {\r\n return COLUMN_NAMES[iColumnIndex];\r\n }", "public StrColumn getName() {\n return delegate.getColumn(\"name\", DelegatingStrColumn::new);\n }", "public StrColumn getName() {\n return delegate.getColumn(\"name\", DelegatingStrColumn::new);\n }", "public String getColumnName(int col) {\n\t\treturn (col == 0) ? \"Path\" : prescaleTable.prescaleColumnName(col - 1);\n\t}", "public String getColumnName(int column) {\n return headerTitles[column];\n }", "public String getColumnNameOne(){\n return columnNameOneLbl.getText();\n }", "public String getPkColumnName() {\n return featureDao.getPkColumnName();\n }", "public String getFieldColumn() {\n return fieldColumn;\n }", "public String getColumnName(int index) {\n\t\treturn columnNames[index];\n\t}", "public String getColumnName( int column ) throws IllegalStateException\r\n { \r\n if ( !connectedToDatabase ) \r\n throw new IllegalStateException( \"Not Connected to Database\" );\r\n\r\n try \r\n {\r\n return metaData.getColumnName( column + 1 ); \r\n }\r\n catch ( SQLException sqlException ) \r\n {\r\n sqlException.printStackTrace();\r\n }\r\n \r\n return \"\";\r\n }", "public String getColumnName(int col) {\n\tif (col==0) {\n\t ArrayList<Stream> streams = smartPrescaleTable.associatedStreams();\n\t String work;\n\t if (streams.size()==0) {\n\t\twork=\"No stream\";\n\t } else if (streams.size()==1) {\n\t\twork=\"Stream: \"+streams.get(0).name();\n\t } else {\n\t\twork=\"Streams: \"+streams.get(0).name();\n\t\tfor (int i=1; i<streams.size(); ++i) work += \",\"+streams.get(i).name();\n\t }\n\t return work;\n\t} else if (col==1) {\n\t return \"SMART\";\n\t} else {\n\t return prescaleTable.prescaleColumnName(col-2);\n\t}\n }", "@Override\n public String getColumnName(int column) {\n return cabecera[column];\n }", "public String getColumnName(int index)\n {\n return header[index];\n }", "public String getEscapedColumnName() {\n if (this.isColumnNameDelimited) {\n return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();\n } else {\n return this.column;\n }\n }", "public String getEscapedColumnName() {\n if (this.isColumnNameDelimited) {\n return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();\n } else {\n return this.column;\n }\n }", "public String getEscapedColumnName() {\n if (this.isColumnNameDelimited) {\n return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();\n } else {\n return this.column;\n }\n }", "public String getEscapedColumnName() {\n if (this.isColumnNameDelimited) {\n return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();\n } else {\n return this.column;\n }\n }", "public String getEscapedColumnName() {\n if (this.isColumnNameDelimited) {\n return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();\n } else {\n return this.column;\n }\n }", "public String getEscapedColumnName() {\n if (this.isColumnNameDelimited) {\n return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();\n } else {\n return this.column;\n }\n }", "public String getEscapedColumnName() {\n if (this.isColumnNameDelimited) {\n return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();\n } else {\n return this.column;\n }\n }", "public String getEscapedColumnName() {\n if (this.isColumnNameDelimited) {\n return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();\n } else {\n return this.column;\n }\n }", "public String getEscapedColumnName() {\n if (this.isColumnNameDelimited) {\n return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();\n } else {\n return this.column;\n }\n }", "public String getEscapedColumnName() {\n if (this.isColumnNameDelimited) {\n return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();\n } else {\n return this.column;\n }\n }", "public String getEscapedColumnName() {\n if (this.isColumnNameDelimited) {\n return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();\n } else {\n return this.column;\n }\n }", "@Override\n\tpublic java.lang.String getName() {\n\t\treturn _expandoColumn.getName();\n\t}", "public String[] getColumnNames();", "public String getColumnName (int col)\n\t{\n\t\tif (col < 0 || col > m_data.cols.size())\n\t\t\tthrow new java.lang.IllegalArgumentException(\"Column invalid\");\n\t\tRColumn rc = (RColumn)m_data.cols.get(col);\n\t\tif (rc != null)\n\t\t\treturn rc.getColHeader();\n\t\treturn null;\n\t}", "@Override\n\tpublic String getColumnName(int arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getColumnName(int arg0) {\n\t\treturn null;\n\t}", "public String getColumnForPrimaryKey() {\n return null;\n }", "Column getCol();", "public String getColumnone() {\n return columnone;\n }", "public String getName() {\n return ctTableColumn.getName();\n }", "KijiColumnName getAttachedColumn();" ]
[ "0.8558194", "0.8449434", "0.83179766", "0.82954323", "0.8288235", "0.8273372", "0.81202126", "0.8086046", "0.80731994", "0.80645096", "0.80551314", "0.8036187", "0.802932", "0.7999848", "0.7979506", "0.7979506", "0.796866", "0.79398805", "0.7934371", "0.79253787", "0.7918247", "0.79085267", "0.79085267", "0.79080933", "0.7897152", "0.789639", "0.7892382", "0.7883924", "0.78817976", "0.78817976", "0.78817976", "0.78768975", "0.7869189", "0.78436005", "0.7828829", "0.78227395", "0.78001887", "0.77894855", "0.7786397", "0.77810746", "0.7761888", "0.77516097", "0.7744265", "0.77404565", "0.77364695", "0.77188456", "0.77120733", "0.771065", "0.77027714", "0.76912785", "0.76908493", "0.7678481", "0.7675439", "0.7647015", "0.7644338", "0.76301676", "0.7622462", "0.759925", "0.7518686", "0.75118446", "0.74946445", "0.7470878", "0.7463852", "0.7456903", "0.7449795", "0.7423094", "0.74154973", "0.7390762", "0.7373748", "0.7373748", "0.73705196", "0.7342333", "0.7321946", "0.7314139", "0.73127323", "0.7308393", "0.73021734", "0.72677654", "0.72501045", "0.72445446", "0.72209984", "0.72209984", "0.72209984", "0.72209984", "0.72209984", "0.72209984", "0.72209984", "0.72209984", "0.72209984", "0.72209984", "0.72209984", "0.72114336", "0.7190127", "0.71810406", "0.71792614", "0.71792614", "0.71599054", "0.7140998", "0.710232", "0.7101418", "0.7099506" ]
0.0
-1
Returns the cell type
public Class<?> getClazz() { return clazz; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCellType() {\n return this.cellType;\n }", "public String getCellTypeName()\n {\n return this.cellTypeName;\n }", "public CellType getType()\r\n/* 151: */ {\r\n/* 152:270 */ return CellType.ERROR;\r\n/* 153: */ }", "public CellType getType()\r\n/* 35: */ {\r\n/* 36: 94 */ return CellType.EMPTY;\r\n/* 37: */ }", "public Column.Type getType();", "@Override\n\tpublic List<Cell> getCellTypes() {\n\t\treturn CELLS;\n\t}", "public char returnCellType(int row, int column) {\n return myMatrix[row][column];\n }", "public CellDataTypeEnum getDataType() {\n return dataType;\n }", "public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }", "public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }", "public StrColumn getType() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"type\", StrColumn::new) :\n getBinaryColumn(\"type\"));\n }", "public int getCellShape() {\n if (myCellShape.equals(\"TRIANGLE\")) {\n return 2;\n }\n if (myCellShape.equals(\"HEXAGON\")) {\n return 1;\n }\n if (myCellShape.equals(\"SQUARE\")) {\n return 0;\n }\n else {\n throw new IllegalArgumentException(\"Cell Shape given is invalid\");\n }\n }", "public String getDataType() {\n\t\t\t\t\n\t\t//for contributed grid, need to find the units from the ESRIShapefile object\n\t\tfor (LayerPanel layerPanel : ((MapApp)map.getApp()).layerManager.getLayerPanels()) {\n\t\t\tif (layerPanel.layer instanceof ESRIShapefile && ((ESRIShapefile)layerPanel.layer).equals(this)) {\n\t\t\t\tESRIShapefile esf = (ESRIShapefile)(layerPanel.layer);\n\t\t\t\treturn esf.getGridDataType();\n\t\t\t}\n\t\t}\n\t\t\n\t\tString units = getUnits();\n\t\tif ( name.equals(GridDialog.GEOID) ) {\n\t\t\treturn \"Geoid Height\";\n\t\t}\n\t\telse if ( units.equals(\"m\") ){\n\t\t\treturn \"Elevation\";\n\t\t}else if ( units.equals(\"mgal\") ) {\n\t\t\treturn \"Gravity Anomaly\";\n\t\t}else if ( units.equals(\"percent\") ) {\n\t\t\treturn \"Percent\";\n\t\t}else if ( units.equals(\"mY\") ) {\n\t\t\treturn \"Age\";\n\t\t}else if ( units.equals(\"%\") ) {\n\t\t\treturn \"Percentage\";\n\t\t}else if ( units.equals(\"mm/a\") ) {\n\t\t\treturn \"Rate\";\n\t\t}\n\n\t\treturn \"\";\n\t}", "public String getType() {\n\t\tCharacter tempType = (char)type;\n\t\treturn tempType.toString();\n\t}", "public int getType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$2);\n if (target == null)\n {\n return 0;\n }\n return target.getIntValue();\n }\n }", "AlgDataType getRowType();", "public void setCellType(CellType type) {\n\t\tcellType = type;\n\t}", "public int getType() {\r\n return typ;\r\n }", "public TypeColis getTypeColis() {\r\n\t\treturn typeColis;\r\n\t}", "public char getType() {\n\t\treturn type;\n\t}", "private Class[] typifyCells() {\n int ncol = ((List) rows.get( 0 )).size();\n int nrow = rows.size();\n Class[] classes = new Class[ ncol ];\n \n /* For each column in the table, go through each row and see what\n * is the most restrictive datatype that all rows are compatible \n * with. */\n for ( int icol = 0; icol < ncol; icol++ ) {\n boolean maybeBoolean = true;\n boolean maybeInteger = true;\n boolean maybeFloat = false;\n boolean maybeDouble = true;\n boolean maybeLong = true;\n for ( Iterator it = rows.iterator(); it.hasNext(); ) {\n List row = (List) it.next();\n String value = (String) row.get( icol );\n if ( value == null || value.length() == 0 ) {\n continue;\n }\n boolean done = false;\n if ( ! done && maybeBoolean ) {\n if ( value.equalsIgnoreCase( \"false\" ) ||\n value.equalsIgnoreCase( \"true\" ) ||\n value.equalsIgnoreCase( \"f\" ) ||\n value.equalsIgnoreCase( \"t\" ) ) {\n done = true;\n }\n else {\n maybeBoolean = false;\n }\n }\n if ( ! done && maybeInteger ) {\n try {\n Integer.parseInt( value );\n done = true;\n }\n catch ( NumberFormatException e ) {\n maybeInteger = false;\n }\n }\n if ( ! done && maybeFloat ) {\n try {\n Float.parseFloat( value );\n done = true;\n }\n catch ( NumberFormatException e ) {\n maybeFloat = false;\n }\n }\n if ( ! done && maybeDouble ) {\n try {\n Double.parseDouble( value );\n done = true;\n }\n catch ( NumberFormatException e ) {\n maybeDouble = false;\n }\n }\n if ( ! done && maybeLong ) {\n try {\n Long.parseLong( value );\n done = true;\n }\n catch ( NumberFormatException e ) {\n maybeLong = false;\n }\n }\n }\n \n /* Set the type we will use, and an object which can convert from\n * a string to the type in question. */\n abstract class Converter {\n abstract Object convert( String value);\n }\n Converter conv;\n Class clazz;\n if ( maybeBoolean ) {\n clazz = Boolean.class;\n conv = new Converter() {\n Object convert( String value ) {\n char v1 = value.charAt( 0 );\n return ( v1 == 't' || v1 == 'T' ) ? Boolean.TRUE \n : Boolean.FALSE;\n }\n };\n }\n else if ( maybeInteger ) {\n clazz = Integer.class;\n conv = new Converter() {\n Object convert( String value ) {\n return new Integer( Integer.parseInt( value ) );\n }\n };\n }\n else if ( maybeFloat ) {\n clazz = Float.class;\n conv = new Converter() {\n Object convert( String value ) {\n return new Float( Float.parseFloat( value ) );\n }\n };\n }\n else if ( maybeDouble ) {\n clazz = Double.class;\n conv = new Converter() {\n Object convert( String value ) {\n return new Double( Double.parseDouble( value ) );\n }\n };\n }\n else if ( maybeLong ) {\n clazz = Long.class;\n conv = new Converter() {\n Object convert( String value ) {\n return new Long( Long.parseLong( value ) );\n }\n };\n }\n else {\n clazz = String.class;\n conv = new Converter() {\n Object convert( String value ) {\n return value;\n }\n };\n }\n classes[ icol ] = clazz;\n \n /* Do the conversion for each row. */\n for ( Iterator it = rows.iterator(); it.hasNext(); ) {\n List row = (List) it.next();\n String value = (String) row.get( icol );\n if ( value == null || value.length() == 0 ) {\n row.set( icol, null );\n }\n else {\n row.set( icol, conv.convert( value ) );\n }\n }\n }\n \n /* Return the types. */\n return classes;\n }", "@Override\r\n public Class getColumnClass(int column) {\r\n return getValueAt(0, column).getClass();\r\n }", "private static String getColumnClassDataType (String windowName2) {\n\r\n\t\tString classType = \"@Override \\n public Class getColumnClass(int column) { \\n switch (column) {\\n\";\r\n\t\tVector<WindowTableModelMapping> maps = getMapColumns(windowName2);\r\n\t\tfor (int i = 0; i < maps.size(); i++) {\r\n\t\t\tWindowTableModelMapping mp = maps.get(i);\r\n\t\t\tclassType = classType + \" case \" + i + \":\\n\";\r\n\t\t\tif(mp.getColumnDataType().equalsIgnoreCase(\"Boolean\")) {\r\n\t\t\t\tclassType = classType + \" return Boolean.class; \\n\";\r\n\t\t\t} else \tif(mp.getColumnDataType().equalsIgnoreCase(\"Integer\")) {\r\n\t\t\t\tclassType = classType + \" return Integer.class; \\n\";\r\n\t\t\t} else \t\t\tif(mp.getColumnDataType().equalsIgnoreCase(\"Double\")) {\r\n\t\t\t\tclassType = classType + \" return Double.class; \\n\";\r\n\t\t\t} else {\r\n\t\t\t\tclassType = classType + \" return String.class; \\n\";\r\n\t\t\t}\r\n\t\t\r\n \r\n\r\n\t\t}\r\n\t\tclassType = classType + \" default: \\n return String.class;\\n }\\n}\";\r\n\t\treturn classType;\r\n\t}", "@Override\n public Class getColumnClass(int c) {\n return getValueAt(0, c).getClass();\n }", "public int getType();", "public int getType();", "public int getType();", "public int getType();", "public int getType();", "public DataType getType() {\n return type;\n }", "public char getType() {\r\n return type.charAt(1);\r\n }", "public int tileType(){\n\t\treturn this.type;\n\t}", "DType getType();", "public com.cdoframework.cdolib.database.xsd.types.IfTypeType getType() {\n return this.type;\n }", "public char getType() {\n return type;\n }", "public char getType() {\n return type;\n }", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "public char getType() {\r\n return type;\r\n }", "public Integer getType() {\n\t\treturn (Integer) getValue(3);\n\t}", "public MatrixType getType() {\n return mat.getType();\n }", "public int getType() {\r\n\t\treturn (type);\r\n\t}", "type getType();", "public char getType(){\n\t\treturn type;\n\t}", "@Override\r\n\t\t\tpublic Class getColumnClass(int column)\r\n\t\t\t{\r\n\t\t\t\treturn getValueAt(0, column).getClass();\r\n\t\t\t}", "@Override\r\n\t\t\tpublic Class getColumnClass(int column)\r\n\t\t\t{\r\n\t\t\t\treturn getValueAt(0, column).getClass();\r\n\t\t\t}", "@Override\r\n\t\t\tpublic Class getColumnClass(int column)\r\n\t\t\t{\r\n\t\t\t\treturn getValueAt(0, column).getClass();\r\n\t\t\t}", "@Override\r\n\t\t\tpublic Class getColumnClass(int column)\r\n\t\t\t{\r\n\t\t\t\treturn getValueAt(0, column).getClass();\r\n\t\t\t}", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();" ]
[ "0.85624725", "0.7770981", "0.76376516", "0.74121743", "0.72755814", "0.71308714", "0.6977377", "0.6975954", "0.695035", "0.695035", "0.69439065", "0.6563227", "0.6554325", "0.64892656", "0.64829725", "0.6468825", "0.64535457", "0.6417181", "0.6359408", "0.6310548", "0.6301236", "0.62940043", "0.62928027", "0.6288824", "0.6272129", "0.6272129", "0.6272129", "0.6272129", "0.6272129", "0.62541497", "0.6222979", "0.6220539", "0.62127715", "0.62112695", "0.6208552", "0.6208552", "0.62055844", "0.62055844", "0.62055844", "0.62055844", "0.62055844", "0.62055844", "0.62055844", "0.62055844", "0.6195834", "0.6191505", "0.6176296", "0.61762124", "0.6173473", "0.617061", "0.6166466", "0.6166466", "0.6166466", "0.6166466", "0.61597836", "0.61597836", "0.61597836", "0.61597836", "0.61597836", "0.61597836", "0.61597836", "0.61597836", "0.61597836", "0.61597836", "0.61597836", "0.61597836", "0.61597836", "0.6159029", "0.6159029", "0.6159029", "0.6159029", "0.6159029", "0.6159029", "0.6159029", "0.6159029", "0.6159029", "0.6159029", "0.6159029", "0.6159029", "0.6159029", "0.6159029", "0.6159029", "0.6159029", "0.6159029", "0.6159029", "0.6159029", "0.6159029", "0.6159029", "0.6159029", "0.6159029", "0.6159029", "0.6159029", "0.6148695", "0.6148695", "0.6148695", "0.6148695", "0.6148695", "0.6148695", "0.6148695", "0.6148695", "0.6148695" ]
0.0
-1
Returns the width of cell
public double getWidth() { return width; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCellWidth() {\r\n\t\treturn cellWidth;\r\n\t}", "private double getCellSize() {\n double wr = canvas.getWidth() / board.getWidth();\n double hr = canvas.getHeight() / board.getHeight();\n\n return Math.min(wr, hr);\n }", "public int getCellSize()\n {\n return cellSize;\n }", "private int getWidth() {\r\n if (ix < 0) \r\n throw new NoSuchElementException();\r\n \r\n int result = tileWidth;\r\n if ((getX() == numCols - 1) && (width % tileWidth != 0)) {\r\n // if this is the last column and the width isn't exactly divisible\r\n result = width % tileWidth;\r\n }\r\n \r\n return result;\r\n }", "public int width() {\n checkTransposed();\n return width;\n }", "public int getCellSize(){\n return cellSize;\n }", "public int getWidth() {\n return getTileWidth() * getWidthInTiles();\n }", "public double getWidth() {\n return getElement().getWidth();\n }", "int getCellsCount();", "public double getWidth();", "public double getWidth();", "public int getWidth()\n\t{\n\t\treturn this._width;\n\t}", "public int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}", "public int getWidth()\n\t{\n\t\treturn width;\n\t}", "public int getWidth()\n\t{\n\t\treturn width;\n\t}", "public int getWidth() \n\t{\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\r\n\t}", "public double getWidth() {\n\t\treturn mx-nx;\n\t}", "private int getActualWidth(boolean withColor){\n return 5+2*cellWidth + (withColor?2*7:0);\n }", "public int getWidth() {\r\n\t\treturn width;\r\n\t}", "public int getWidth() {\r\n\t\treturn width;\r\n\t}", "public int getWidth() {\r\n\t\t\r\n\t\treturn width;\r\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public double getWidth() {\r\n\t\treturn width;\r\n\t}", "public int getWidth() {\r\n\t\treturn this.width;\r\n\t}", "public int getWidth() {\n\t\treturn this.width;\n\t}", "public int getWidth() {\n\t\treturn this.width;\n\t}", "public int getWidth() {\n return (int) Math.round(width);\n }", "@Field(2) \n\tpublic int width() {\n\t\treturn this.io.getIntField(this, 2);\n\t}", "public double getWidth() {\n\t\t\treturn width.get();\n\t\t}", "public double getWidth() {\n\t\treturn width;\n\t}", "public double getWidth() {\n\t\treturn width;\n\t}", "public double getWidth() {\n\t\treturn width;\n\t}", "public Integer getWidth() {\n\t\t\treturn width;\n\t\t}", "public static int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}", "public Integer getWidth()\n {\n return (Integer) getStateHelper().eval(PropertyKeys.width, null);\n }", "public int getColumnWidth() {\r\n\t\tint columnWidth = getElementColumn1().getOffsetWidth();\r\n\t\treturn columnWidth;\r\n\t}", "private double getWidth() {\n\t\treturn width;\n\t}", "public int getWidth()\n {\n return this.width;\n }", "public int getWidth(){\r\n\t\treturn grid.length;\r\n\t}", "public int getWidth() {\n\t\t\treturn width;\n\t\t}", "public int getWidth()\r\n\t{\r\n\t\treturn mWidth;\r\n\t}", "public int getWidth()\r\n\t{\r\n\t\treturn WIDTH;\r\n\t}", "public double getWidth()\r\n {\r\n return width;\r\n }", "public int getWidth()\n\t{\n\t\treturn mWidth;\n\t}", "public Integer getWidth() {\n return this.width;\n }", "public int getWidth() {\n // Replace the following line with your solution.\n return width;\n }", "public int getWidth()\n {\n\treturn width;\n }", "public int getWidth() {\n return this.width;\n }", "public int getWidth() {\n return this.width;\n }", "public double getWidth()\n {\n return width;\n }", "@Override\n\tpublic int getWidth() {\n\t\treturn this.width;\n\t}", "public int getWidth();", "public int getWidth();", "public int getWidth();", "public int getWidth()\n {\n return width;\n }", "public int getWidth()\n {\n return width;\n }", "public int getWidth()\n {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "public double getWidth() {\n\treturn width;\n }", "public int getWidth() {\r\n return width;\r\n }", "double getWidth();", "double getWidth();", "public int getWidth() {\r\n return width;\r\n }", "public int getWidth(){\n\t\treturn width;\n\t}", "public int getWidth() {\n return this._width;\n }", "public double getWidth() {\r\n return width;\r\n }", "public double getWidthInInches()\n {\n return width;\n }", "public Number getWidth() {\n\t\treturn getAttribute(WIDTH_TAG);\n\t}", "public double getWidth() {\r\n\r\n\t\treturn w;\r\n\r\n\t}", "public double getWidth () {\n return width;\n }", "public int getWidth()\n {\n return width;\n }", "public int getWidth() {\n return type.getWidth();\n }", "public int getWidth() {\n return width;\n }" ]
[ "0.83583343", "0.77618", "0.7625453", "0.7491855", "0.7464206", "0.7463638", "0.7400152", "0.7368157", "0.73384184", "0.7328591", "0.7328591", "0.73240966", "0.72965854", "0.729006", "0.729006", "0.72786784", "0.7277887", "0.727756", "0.7268719", "0.72674143", "0.72674143", "0.72663254", "0.72638154", "0.72638154", "0.72638154", "0.72638154", "0.72638154", "0.72638154", "0.72638154", "0.72638154", "0.72638154", "0.72638154", "0.72638154", "0.72638154", "0.72638154", "0.7263354", "0.72614616", "0.7260018", "0.7260018", "0.72585183", "0.72571206", "0.72493494", "0.7248297", "0.7248297", "0.7248297", "0.7246483", "0.7246109", "0.7243037", "0.72384256", "0.7233684", "0.7224145", "0.7221376", "0.72184676", "0.72157216", "0.7213192", "0.72035176", "0.7200589", "0.7192899", "0.7187633", "0.7181386", "0.7176985", "0.7176985", "0.7170801", "0.7170193", "0.7162", "0.7162", "0.7162", "0.715969", "0.715969", "0.715969", "0.71594155", "0.71594155", "0.71594155", "0.71594155", "0.71594155", "0.71594155", "0.71594155", "0.71594155", "0.71594155", "0.71594155", "0.71594155", "0.71594155", "0.71594155", "0.7158402", "0.7157239", "0.7154766", "0.7154766", "0.715389", "0.71509606", "0.7147728", "0.71472263", "0.71410435", "0.7137535", "0.7122048", "0.71213084", "0.7119176", "0.7114085", "0.71105695" ]
0.71434176
93
Returns the style index of cell, 1 if not be setting
public int getCellStyleIndex() { return cellStyleIndex >= 0 ? cellStyleIndex : (cellStyleIndex = styles != null && cellStyle != null ? styles.of(cellStyle) : -1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getHeaderStyleIndex() {\n return headerStyleIndex >= 0 ? headerStyleIndex : (headerStyleIndex = styles != null && headerStyle != null ? styles.of(headerStyle) : -1);\n }", "public static String get_cell_style_id(){\r\n\t\t_cell_style_id ++;\r\n\t\treturn \"cond_ce\" + _cell_style_id;\r\n\t}", "public int getCellStyle() {\n if (cellStyle != null) {\n return cellStyle;\n }\n setCellStyle(getCellStyle(clazz));\n return cellStyle;\n }", "public CellStyle getCellStyleAt(int arg0) {\n\t\treturn null;\n\t}", "public int getNumCellStyles() {\n\t\treturn 0;\n\t}", "public int getStyle() {\r\n\t\treturn this.style;\r\n\t}", "public int getStyle() {\r\n\t\treturn style;\r\n\t}", "public int getStyle() {\n\treturn style;\n }", "public int getPosition(){\n\t\treturn this.cell;\n\t}", "int getCellStatus(int x, int y);", "private int getIdx(MouseEvent e) {\n Point p = e.getPoint();\n p.translate(-BORDER_SIZE, -BORDER_SIZE);\n int x = p.x / CELL_SIZE;\n int y = p.y / CELL_SIZE;\n if (0 <= x && x < GUI.SIZE[1] && 0 <= y && y < GUI.SIZE[1]) {\n return GUI.SIZE[1] * x + y;\n } else {\n return -1;\n }\n }", "public static ScriptStyle getStyle(int val)\r\n/* 31: */ {\r\n/* 32: 92 */ for (int i = 0; i < styles.length; i++) {\r\n/* 33: 94 */ if (styles[i].getValue() == val) {\r\n/* 34: 96 */ return styles[i];\r\n/* 35: */ }\r\n/* 36: */ }\r\n/* 37:100 */ return NORMAL_SCRIPT;\r\n/* 38: */ }", "int getRowIndex();", "public int getCell() {\n return this.cell;\n }", "public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle getNwCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(NWCELL$26, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "int getColumnIndex();", "int getColumnIndex();", "int getColumnIndex();", "public java.lang.String getStyleId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STYLEID$30);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public int getStartIndex(Color col) {\n\t\tint startIndex;\n\t\tswitch (col) {\n\t\t\tcase RED:\n\t\t\t\tstartIndex = RED_START;\n\t\t\t\tbreak;\n\t\t\tcase GREEN:\n\t\t\t\tstartIndex = GREEN_START;\n\t\t\t\tbreak;\n\t\t\tcase YELLOW:\n\t\t\t\tstartIndex = YELLOW_START;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tstartIndex = BLUE_START;\n\t\t}\n\t\treturn startIndex;\n\t}", "public int getRowIndex() {\r\n\t\treturn rowIndex;\r\n\t}", "public int getCellStyle(Class<?> clazz) {\n int style;\n if (isString(clazz)) {\n style = Styles.defaultStringBorderStyle();\n } else if (isDateTime(clazz) || isDate(clazz) || isLocalDateTime(clazz)) {\n if (numFmt == null) numFmt = DATETIME_FORMAT;\n style = (1 << INDEX_BORDER) | Horizontals.CENTER;\n } else if (isBool(clazz) || isChar(clazz)) {\n style = Styles.clearHorizontal(Styles.defaultStringBorderStyle()) | Horizontals.CENTER;\n } else if (isInt(clazz) || isLong(clazz)) {\n style = Styles.defaultIntBorderStyle();\n } else if (isFloat(clazz) || isDouble(clazz) || isBigDecimal(clazz)) {\n style = Styles.defaultDoubleBorderStyle();\n } else if (isLocalDate(clazz)) {\n if (numFmt == null) numFmt = DATE_FORMAT;\n style = (1 << INDEX_BORDER) | Horizontals.CENTER;\n } else if (isTime(clazz) || isLocalTime(clazz)) {\n if (numFmt == null) numFmt = TIME_FORMAT;\n style = (1 << INDEX_BORDER) | Horizontals.CENTER;\n } else {\n style = (1 << Styles.INDEX_FONT) | (1 << INDEX_BORDER); // Auto-style\n }\n\n // Reset custom number format if specified.\n if (numFmt != null) {\n style = Styles.clearNumFmt(style) | styles.addNumFmt(numFmt);\n }\n\n return style | (option & 1);\n }", "public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle getSwCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(SWCELL$20, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle getSeCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(SECELL$18, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public int getSheetIndex() {\r\n return sheetIndex;\r\n }", "@Override\n public int indexOf(T t) {\n Integer p = cells.get(t);\n return p == null ? -1 : p;\n }", "public int getExperimentColorIndex(int row);", "public int getColorIndex() {\n return colorIndex;\n }", "public int getCellShape() {\n if (myCellShape.equals(\"TRIANGLE\")) {\n return 2;\n }\n if (myCellShape.equals(\"HEXAGON\")) {\n return 1;\n }\n if (myCellShape.equals(\"SQUARE\")) {\n return 0;\n }\n else {\n throw new IllegalArgumentException(\"Cell Shape given is invalid\");\n }\n }", "public TextCellStyle getCellStyle(int charOffset);", "public int getRowNo() {\n return rowIndex+1;\n }", "public StyleId getStyleId ();", "public int getActiveSheetIndex() {\n\t\treturn 0;\n\t}", "public static int getHomeCellIndex()\n {\n switch (TurnController.getPlayerTurn())\n {\n case BLUE:\n return 48;\n case RED:\n return 55;\n case GREEN:\n return 62;\n case YELLOW:\n return 69;\n }\n return -1;\n }", "@JsOverlay\n\tpublic final int getIndex() {\n\t\t// checks if there is the property\n\t\tif (ObjectType.UNDEFINED.equals(JsHelper.get().typeOf(this, \"index\"))) {\n\t\t\treturn Undefined.INTEGER;\n\t\t}\n\t\treturn getNativeIndex();\n\t}", "private int getWidgetIndex(Widget widget){\r\n\t\tint rowCount = table.getRowCount();\r\n\t\tfor(int row = 0; row < rowCount; row++){\r\n\t\t\tif(widget == table.getWidget(row, 0) || widget == table.getWidget(row, 1))\r\n\t\t\t\treturn row;\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "public int getIndx() {\n return this.indx;\n }", "@Override\n\tpublic CellStyle getHeaderStyle(int index) {\n\t\tif (index == 0) {\n\t\t\treturn titleStyle;\n\t\t}\n\t\tif (headerStyle == null) {\n\t\t\treturn headerStyle;\n\t\t}\n\t\treturn headerStyle;\n\t}", "public int getIndex() {\n\t\treturn 0;\n\t}", "public ColorStyle getColorStyle(int i){\n\t\tif(i >=0 && i < styles.size()) return styles.get(i);\n\t\treturn null;\n\t}", "public int findExitIndex() {\n for (int i = 0; i < cells.size() ; i++) {\n if (cells.get(i) == CellState.Exit) { // Entrance -> indexEntrance\n return i;\n }\n }\n return -1;\n }", "public int getGlyphIndex()\n {\n ensureGlyphIndex();\n return glyphIndex.getValue();\n }", "public int getIndex() {\r\n \t\t\treturn index;\r\n \t\t}", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex(){\n\t\treturn index;\n\t}", "public int findEntranceIndex() {\n for (int i = 0; i < cells.size() ; i++) {\n if (cells.get(i) == CellState.Entrance) { // Entrance -> indexEntrance\n return i;\n }\n }\n return -1;\n }", "private OOBibStyle getSelectedStyle() {\n if (selectionModel.getSelected().size() > 0) {\n return selectionModel.getSelected().get(0);\n } else {\n return null;\n }\n }", "public int getIndex() {\r\n\t\treturn index;\r\n\t}", "int getCellid();", "public int getIndex() {\n \t\treturn index;\n \t}", "public Integer getCellNum() {\n return cellNum;\n }", "public int getIndex(){\r\n \treturn index;\r\n }", "@Override\n\tpublic CellStyle getRowStyle() {\n\t\treturn null;\n\t}", "@Override\n\tpublic CellStyle getHeaderStyle(int index) {\n\t\treturn headerStyle;\n\t}", "int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex()\n {\n return getInt(\"Index\");\n }", "int index(){\n\n\t\t\n\t\tif (cursor == null) \n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\treturn index;\n\t}", "private int getStartCell() {\r\n\t\tint extraCells = (getContentHeight() - getViewableHeight()) / CELL_SIZE_Y;\r\n\t\tif (getContentHeight() < getViewableHeight()) {\r\n\t\t\textraCells = 0;\r\n\t\t}\r\n\t\treturn (int) ((float) extraCells * ((float) _curScrollValue / (float) _maxScrollValue));\r\n\t}", "public int getIndex() {\r\n return index;\r\n }", "public int getIndex()\n {\n return index;\n }", "public int getCellIndex(int column, int row) {\n\t\treturn ((row - 1) * width) + (column - 1);\n\t}", "Style getStyle();", "public int getIndex() {\n return index;\n }", "private int getIndex() {\n\t\treturn this.index;\r\n\t}", "public int getIndex()\n {\n return m_index;\n }", "public long getStylesStart() {\n return ByteUtils.toUnsignedInt(stylesStart);\n }", "public String getRowUiStyle() {\r\n return uiRowStyle;\r\n }", "@SuppressWarnings(\"unchecked\")\n private int getHighlightedRows() {\n int rowNumber = 0;\n // first check if any rows have been clicked on\n for (TableRow row: rows) {\n Drawable background = row.getBackground();\n if (background instanceof ColorDrawable) {\n int backColor = ((ColorDrawable) background).getColor();\n //if (backColor == rowHighlightColor) continue;\n if (backColor == rowSelectColor) {\n rowNumber = rowNumber + 1;\n }\n }\n }\n return rowNumber;\n }", "public int getIndex() {\n return index;\n }", "public int getIndexInSection()\n\t{\n\t\tfinal TiViewProxy parent = getParent();\n\n\t\tif (parent instanceof TableViewSectionProxy) {\n\t\t\tfinal TableViewSectionProxy section = (TableViewSectionProxy) parent;\n\n\t\t\treturn section.getRowIndex(this);\n\t\t}\n\n\t\treturn -1;\n\t}", "public native int getScrollIndocatorStyle() /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\treturn jso.scrollIndicatorStyle;\n }-*/;", "public int getIndex()\n {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "private int getEthIdx() {\n return this.colStartOffset + 3;\n }", "public Cell getPosition() {\n return position;\n }", "public int getRowspan() \n {\n return 1;\n }", "public int getRowIndex(Feature f){\n return fc.indexOf(f);\n }", "public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle getNeCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(NECELL$24, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public int getIndex() {\n\t\treturn this.mIndex;\n\t}", "public int getIndex() {\r\n\t\ttry {\r\n\t\t\treturn (int)(index * ((float)this.originalTextLength / (float)this.text.length));\r\n\t\t} catch (Exception e) {\r\n\t\t\t// maybe there were a division by zero\r\n\t\t\treturn index;\r\n\t\t}\r\n\t}", "public void modify( CellStyle style );", "public int getIndex() {\n\t\treturn this.index;\n\t}", "public Integer getIdx() {\r\n\t\treturn idx;\r\n\t}", "public Integer getIndex() {\n return index;\n }", "private int[] getStyle(int index) {\n\t\tif (m_styleOffsets==null || m_styles==null ||\n\t\t\tindex>=m_styleOffsets.length)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\tint offset=m_styleOffsets[index]/4;\n\t\tint style[];\n\t\t{\n\t\t\tint count=0;\n\t\t\tfor (int i=offset;i<m_styles.length;++i) {\n\t\t\t\tif (m_styles[i]==-1) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcount+=1;\n\t\t\t}\n\t\t\tif (count==0 || (count%3)!=0) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tstyle=new int[count];\n\t\t}\n\t\tfor (int i=offset,j=0;i<m_styles.length;) {\n\t\t\tif (m_styles[i]==-1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tstyle[j++]=m_styles[i++];\n\t\t}\n\t\treturn style;\n\t}", "public int getSelectedLayer ()\n {\n return _table.getSelectedRow();\n }", "private int getRuleIndex(String rule){\n\t\tfor(int i=0; i<ConditionTree.length;i++){\n\t\t\tif(rule.equals(ConditionTree[i][0])){\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "@Override\r\n\tpublic int getIndex() {\n\t\treturn index;\r\n\t}", "public int index() {\n\t\treturn this.index;\n\t}", "public int getIndex(){\n return index;\n }", "public int getIndex(){\n return index;\n }", "private int _parseStyle(\n String value\n )\n {\n if (value == null)\n return -1;\n\n if (value.equalsIgnoreCase(XMLConstants.PLAIN_FONT_STYLE))\n return Font.PLAIN;\n if (value.equalsIgnoreCase(XMLConstants.ITALIC_FONT_STYLE))\n return Font.ITALIC;\n if (value.equalsIgnoreCase(XMLConstants.BOLD_FONT_STYLE))\n return Font.BOLD;\n\n _LOG.warning(_STYLE_ERROR);\n\n return -1;\n }" ]
[ "0.7074823", "0.6907524", "0.6852764", "0.67617434", "0.65846205", "0.6516149", "0.6357865", "0.62903255", "0.62399423", "0.6200972", "0.6162265", "0.6145649", "0.60629404", "0.6055918", "0.60516584", "0.60493606", "0.60493606", "0.60493606", "0.6024433", "0.59541565", "0.59288937", "0.5898923", "0.58965856", "0.58881086", "0.5881286", "0.5869191", "0.5854179", "0.5850941", "0.5761068", "0.5749356", "0.57385063", "0.57026744", "0.5700787", "0.56865245", "0.56824017", "0.5660474", "0.56450635", "0.5641496", "0.5641149", "0.5634948", "0.5615434", "0.5610365", "0.56080586", "0.5580637", "0.5580637", "0.5580637", "0.55800736", "0.5553716", "0.5550365", "0.55429715", "0.5540179", "0.55398947", "0.55372995", "0.5534361", "0.5534246", "0.55333126", "0.55286264", "0.55286264", "0.55286264", "0.5523149", "0.55210525", "0.55197966", "0.5514729", "0.5511736", "0.55025285", "0.5501041", "0.54994494", "0.5497598", "0.5490421", "0.549006", "0.54884017", "0.5486575", "0.5480329", "0.54788125", "0.5477351", "0.5469146", "0.5467193", "0.5467193", "0.5467193", "0.5467193", "0.5467193", "0.54642826", "0.5457165", "0.54555076", "0.5451778", "0.54494816", "0.5447269", "0.5446472", "0.5441252", "0.54375076", "0.5436703", "0.54295415", "0.54273933", "0.54267687", "0.5424889", "0.5420962", "0.5416354", "0.54156816", "0.54156816", "0.54135203" ]
0.8225831
0
Returns the header style index of cell, 1 if not be setting
public int getHeaderStyleIndex() { return headerStyleIndex >= 0 ? headerStyleIndex : (headerStyleIndex = styles != null && headerStyle != null ? styles.of(headerStyle) : -1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCellStyleIndex() {\n return cellStyleIndex >= 0 ? cellStyleIndex : (cellStyleIndex = styles != null && cellStyle != null ? styles.of(cellStyle) : -1);\n }", "@Override\n\tpublic CellStyle getHeaderStyle(int index) {\n\t\treturn headerStyle;\n\t}", "@Override\n\tpublic CellStyle getHeaderStyle(int index) {\n\t\tif (index == 0) {\n\t\t\treturn titleStyle;\n\t\t}\n\t\tif (headerStyle == null) {\n\t\t\treturn headerStyle;\n\t\t}\n\t\treturn headerStyle;\n\t}", "protected Integer getColumnIndex(String header){\n for (Map.Entry<String, Integer> entry: headerMap.entrySet()){\n if (header.toLowerCase().equals(entry.getKey().toLowerCase())) return entry.getValue();\n }\n return -1;\n }", "public static String get_cell_style_id(){\r\n\t\t_cell_style_id ++;\r\n\t\treturn \"cond_ce\" + _cell_style_id;\r\n\t}", "public CellStyle getCellStyleAt(int arg0) {\n\t\treturn null;\n\t}", "protected Integer getColumnIndex(String header, boolean caseSensitive){\n if (caseSensitive) return headerMap.getOrDefault(header, -1);\n else return getColumnIndex(header);\n }", "public int getCellStyle() {\n if (cellStyle != null) {\n return cellStyle;\n }\n setCellStyle(getCellStyle(clazz));\n return cellStyle;\n }", "private int getHeaderViewPosition() {\n if (getEmptyViewCount() == 1) {\n if (mHeadAndEmptyEnable) {\n return 0;\n }\n } else {\n return 0;\n }\n return -1;\n }", "public int getNumCellStyles() {\n\t\treturn 0;\n\t}", "int getColumnIndex();", "int getColumnIndex();", "int getColumnIndex();", "protected String getColumnHeader(Integer index){\n for (Map.Entry<String, Integer> entry: headerMap.entrySet()){\n if (index.equals(entry.getValue())) return entry.getKey();\n }\n return null;\n }", "int getRowIndex();", "public int getRowIndex() {\r\n\t\treturn rowIndex;\r\n\t}", "public int getPinnedHeaderState(int position) {\n\t\t\tfinal Cursor cursor = getCursor();\n\t\t if (mIndexer == null || cursor == null || cursor.getCount() == 0) {\n\t\t return PINNED_HEADER_GONE;\n\t\t }\n\t\t\n\t\t if (position < 0) {\n\t\t return PINNED_HEADER_GONE;\n\t\t }\n\t\t\n\t\t // The header should get pushed up if the top item shown\n\t\t // is the last item in a section for a particular letter.\n\t\t int section = getSectionForPosition(position);\n\t\t int nextSectionPosition = getPositionForSection(section + 1);\n\t\t if (nextSectionPosition != -1 && position == nextSectionPosition - 1) {\n\t\t return PINNED_HEADER_PUSHED_UP;\n\t\t }\n\t\t\n\t\t return PINNED_HEADER_VISIBLE;\n\t\t}", "public int getStartIndex(Color col) {\n\t\tint startIndex;\n\t\tswitch (col) {\n\t\t\tcase RED:\n\t\t\t\tstartIndex = RED_START;\n\t\t\t\tbreak;\n\t\t\tcase GREEN:\n\t\t\t\tstartIndex = GREEN_START;\n\t\t\t\tbreak;\n\t\t\tcase YELLOW:\n\t\t\t\tstartIndex = YELLOW_START;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tstartIndex = BLUE_START;\n\t\t}\n\t\treturn startIndex;\n\t}", "public final native int getHeading() /*-{\n return this.getHeading() || 0;\n }-*/;", "@Override\n\tpublic CellStyle getRowStyle() {\n\t\treturn null;\n\t}", "public synchronized int getDefaultIndex() {\r\n for (int i = 0; i < COLUMNS.length; i++)\r\n if (COLUMNS[i].equals(f_title)) {\r\n return i;\r\n }\r\n throw new IllegalStateException(\"Column title \" + f_title + \"is unknown, not one of: \" + Arrays.toString(COLUMNS));\r\n }", "private int getEthIdx() {\n return this.colStartOffset + 3;\n }", "@Override\n\t\tpublic int getIntHeader(String name) {\n\t\t\treturn 0;\n\t\t}", "public int getStyle() {\r\n\t\treturn this.style;\r\n\t}", "public int getSheetIndex() {\r\n return sheetIndex;\r\n }", "ComponentHeaderType getHeader();", "private void initRowHeaders() {\n TableColumn aColumn = jTable1.getColumnModel().getColumn(0);\n TableCellRenderer aRenderer = jTable1.getTableHeader().getDefaultRenderer();\n if (aRenderer == null) {\n System.out.println(\" Aouch !\");\n aColumn = jTable1.getColumnModel().getColumn(0);\n aRenderer = aColumn.getHeaderRenderer();\n if (aRenderer == null) {\n System.out.println(\" Aouch Aouch !\");\n // System.exit(3);\n exitForm(null);\n }\n }\n Component aComponent = aRenderer.getTableCellRendererComponent(jTable1, aColumn.getHeaderValue(), false, false, -1, 0);\n aFont = aComponent.getFont();\n aBackground = aComponent.getBackground();\n aForeground = aComponent.getForeground();\n\n border = (Border) UIManager.getDefaults().get(\"TableHeader.cellBorder\");\n insets = border.getBorderInsets(jTable1.getTableHeader());\n metrics = jTable1.getFontMetrics(aFont);\n }", "public int getColspan() \n {\n int colspan = 1;\n List subHeadings = getSubHeadings();\n if (subHeadings != null && subHeadings.size() > 0)\n { \n colspan = subHeadings.size();\n }\n \n return colspan;\n }", "private static StyleBuilder getHeaderStyle(ExportData metaData){\n \n /*pour la police des entàtes de HARVESTING*/\n if(metaData.getTitle().equals(ITitle.HARVESTING)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }/*pour la police des entetes de SERVICING*/\n if(metaData.getTitle().equals(ITitle.SERVICING)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }/*pour la police des entetes de FERTILIZATION*/\n if(metaData.getTitle().equals(ITitle.FERTILIZATION)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }/*pour la police des entetes de CONTROL_PHYTO*/\n if(metaData.getTitle().equals(ITitle.CONTROL_PHYTO)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }else{\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n }\n \n }", "public java.lang.Short getHeaderInstanceIndex() {\r\n return headerInstanceIndex;\r\n }", "private int createRowHeader(HSSFSheet sheet, int i) {\r\n\r\n\t\ti++;\r\n\t\tHSSFRow row = sheet.createRow((short) i);\r\n\r\n\t\trow.createCell((short) 0).setCellValue(\"\");\r\n\t\trow.createCell((short) 1).setCellValue(\"Process\");\r\n\t\trow.createCell((short) 2).setCellValue(\"Date last ran\");\r\n\t\trow.createCell((short) 3).setCellValue(\"\");\r\n\t\trow.createCell((short) 4).setCellValue(\"Sent\");\r\n\t\trow.createCell((short) 5).setCellValue(\"Amount\");\r\n\t\ti++;\r\n\r\n\t\trow = sheet.createRow((short) i);\r\n\t\trow.createCell((short) 0).setCellValue(\"\");\r\n\t\ti++;\r\n\t\treturn i;\r\n\t}", "public int getSheetIndex(Sheet arg0) {\n\t\treturn 0;\n\t}", "public int getStyle() {\r\n\t\treturn style;\r\n\t}", "public int getActiveSheetIndex() {\n\t\treturn 0;\n\t}", "public int getStyle() {\n\treturn style;\n }", "public String getRowUiStyle() {\r\n return uiRowStyle;\r\n }", "public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle getFirstCol()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(FIRSTCOL$14, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public int getIndexInSection()\n\t{\n\t\tfinal TiViewProxy parent = getParent();\n\n\t\tif (parent instanceof TableViewSectionProxy) {\n\t\t\tfinal TableViewSectionProxy section = (TableViewSectionProxy) parent;\n\n\t\t\treturn section.getRowIndex(this);\n\t\t}\n\n\t\treturn -1;\n\t}", "public int getCellStyle(Class<?> clazz) {\n int style;\n if (isString(clazz)) {\n style = Styles.defaultStringBorderStyle();\n } else if (isDateTime(clazz) || isDate(clazz) || isLocalDateTime(clazz)) {\n if (numFmt == null) numFmt = DATETIME_FORMAT;\n style = (1 << INDEX_BORDER) | Horizontals.CENTER;\n } else if (isBool(clazz) || isChar(clazz)) {\n style = Styles.clearHorizontal(Styles.defaultStringBorderStyle()) | Horizontals.CENTER;\n } else if (isInt(clazz) || isLong(clazz)) {\n style = Styles.defaultIntBorderStyle();\n } else if (isFloat(clazz) || isDouble(clazz) || isBigDecimal(clazz)) {\n style = Styles.defaultDoubleBorderStyle();\n } else if (isLocalDate(clazz)) {\n if (numFmt == null) numFmt = DATE_FORMAT;\n style = (1 << INDEX_BORDER) | Horizontals.CENTER;\n } else if (isTime(clazz) || isLocalTime(clazz)) {\n if (numFmt == null) numFmt = TIME_FORMAT;\n style = (1 << INDEX_BORDER) | Horizontals.CENTER;\n } else {\n style = (1 << Styles.INDEX_FONT) | (1 << INDEX_BORDER); // Auto-style\n }\n\n // Reset custom number format if specified.\n if (numFmt != null) {\n style = Styles.clearNumFmt(style) | styles.addNumFmt(numFmt);\n }\n\n return style | (option & 1);\n }", "public int getRowNo() {\n return rowIndex+1;\n }", "public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle getFirstRow()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(FIRSTROW$22, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public int getRowspan() \n {\n return 1;\n }", "public int getSheetIndex(String arg0) {\n\t\treturn 0;\n\t}", "public static HSSFCellStyle getHeaderStyle(final HSSFWorkbook workbook){\n\t\tHSSFCellStyle style=workbook.createCellStyle();\n\t\tFont font=workbook.createFont();\n\t\tfont.setFontHeightInPoints((short)12);\n\t\tfont.setFontName(HSSFFont.FONT_ARIAL);\n\t\tfont.setBoldweight(Font.BOLDWEIGHT_BOLD);\n\t\tstyle.setFont(font);\n\t\treturn style;\n\t}", "public Number getHeaderId() {\n return (Number)getAttributeInternal(HEADERID);\n }", "public Number getHeaderId() {\n return (Number)getAttributeInternal(HEADERID);\n }", "@Override\n\tpublic int getViewType() {\n\t\treturn RowType.HEADER_ITEM.ordinal();\n\t}", "public static int getHomeCellIndex()\n {\n switch (TurnController.getPlayerTurn())\n {\n case BLUE:\n return 48;\n case RED:\n return 55;\n case GREEN:\n return 62;\n case YELLOW:\n return 69;\n }\n return -1;\n }", "private int updateHeaderRow(Account.AccountType accountType, FilterSelection selection, int rowIndex) {\n int headerIndex = -1;\n // this assumes a sorted order where the header precedes the account\n for (int index = rowIndex - 1; index >= 0; index--) {\n final AccountFilterSelectListTableEntry entry = _data.get(index);\n if ((entry.isHeader()) && (entry.getAccountType() == accountType)) {\n headerIndex = index;\n break;\n }\n }\n if (headerIndex < 0) return rowIndex; // header not found, error condition\n final AccountFilterSelectListTableEntry header = _data.get(headerIndex);\n FilterSelection headerFilter = selection;\n for (int index = headerIndex + 1; index < _data.size(); index++) {\n final AccountFilterSelectListTableEntry entry = _data.get(index);\n if (entry.getAccountType() != accountType) break; // we're done\n if (!selection.equals(entry.getFilterSelection())) {\n // there are accounts of the given type that don't share the same selection,\n // therefore the header has a null filter selection and we're done\n headerFilter = null;\n break;\n }\n }\n if (!RatiosUtil.areEqual(header.getFilterSelection(), headerFilter)) {\n // we're going to change the header item (can be null)\n header.setFilterSelection(headerFilter);\n return headerIndex;\n }\n return rowIndex;\n }", "int getCellStatus(int x, int y);", "public MultisortTableHeaderCellRenderer() {\r\n this(0.5F);\r\n }", "int getCol();", "private void addHeaderForSummary(Workbook p_workBook, Sheet p_sheet)\n {\n int col = 0;\n int row = SUMMARY_HEADER_ROW;\n Row summaryHeaderRow = getRow(p_sheet, row);\n\n Cell cell_A = getCell(summaryHeaderRow, col);\n cell_A.setCellValue(m_bundle.getString(\"lb_company\"));\n cell_A.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n\n Cell cell_B = getCell(summaryHeaderRow, col);\n cell_B.setCellValue(m_bundle.getString(\"lb_job_id\"));\n cell_B.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n\n Cell cell_C = getCell(summaryHeaderRow, col);\n cell_C.setCellValue(m_bundle.getString(\"lb_job_name\"));\n cell_C.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 30 * 256);\n col++;\n\n Cell cell_D = getCell(summaryHeaderRow, col);\n cell_D.setCellValue(m_bundle.getString(\"lb_language\"));\n cell_D.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n\n Cell cell_E = getCell(summaryHeaderRow, col);\n cell_E.setCellValue(m_bundle.getString(\"lb_workflow_state\"));\n cell_E.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n\n Cell cell_F = getCell(summaryHeaderRow, col);\n cell_F.setCellValue(m_bundle.getString(\"lb_mt_word_count\"));\n cell_F.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n\n if (usePerplexity)\n {\n Cell cell = getCell(summaryHeaderRow, col);\n cell.setCellValue(m_bundle.getString(\"lb_perplexity_wordcount\"));\n cell.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n }\n\n Cell cell_G = getCell(summaryHeaderRow, col);\n cell_G.setCellValue(m_bundle.getString(\"lb_total_word_count\"));\n cell_G.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n\n Cell cell_H = getCell(summaryHeaderRow, col);\n cell_H.setCellValue(m_bundle.getString(\"lb_average_edit_distance\"));\n cell_H.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 30 * 256);\n col++;\n\n Cell cell_I = getCell(summaryHeaderRow, col);\n cell_I.setCellValue(m_bundle.getString(\"lb_translation_error_rate\"));\n cell_I.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n\n Cell cell_J = getCell(summaryHeaderRow, col);\n cell_J.setCellValue(m_bundle.getString(\"lb_engine_name\"));\n cell_J.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n }", "public int getHeading()\n\t{\n\t\treturn heading;\n\t}", "public short getHeader() {\n \n if (this == CHAT) {\n return Outgoing.ChatMessageComposer;\n } else if (this == SHOUT) {\n return Outgoing.ShoutMessageComposer;\n } else if (this == WHISPER) {\n return Outgoing.WhisperMessageComposer;\n }\n \n return -1;\n }", "public HSSFCellStyle getColumnTopStyle(HSSFWorkbook workbook) {\r\n\r\n\t\t// Set font\r\n\t\tHSSFFont font = workbook.createFont();\r\n\t\t// Set font size\r\n\t\tfont.setFontHeightInPoints((short) 11);\r\n\t\t// Bold font\r\n\t\tfont.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);\r\n\t\t// Set font name\r\n\t\tfont.setFontName(\"Courier New\");\r\n\t\t// Set the style;\r\n\t\tHSSFCellStyle style = workbook.createCellStyle();\r\n\t\t// Set the bottom border;\r\n\t\tstyle.setBorderBottom(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the bottom border color;\r\n\t\tstyle.setBottomBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the left border;\r\n\t\tstyle.setBorderLeft(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the left border color;\r\n\t\tstyle.setLeftBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the right border;\r\n\t\tstyle.setBorderRight(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the right border color;\r\n\t\tstyle.setRightBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the top border;\r\n\t\tstyle.setBorderTop(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the top border color;\r\n\t\tstyle.setTopBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Use the font set by the application in the style;\r\n\t\tstyle.setFont(font);\r\n\t\t// Set auto wrap;\r\n\t\tstyle.setWrapText(false);\r\n\t\t// Set the style of horizontal alignment to center alignment;\r\n\t\tstyle.setAlignment(HSSFCellStyle.ALIGN_CENTER);\r\n\t\t// Set the vertical alignment style to center alignment;\r\n\t\tstyle.setVerticalAlignment(HSSFCellStyle.VERTICAL_CENTER);\r\n\r\n\t\treturn style;\r\n\r\n\t}", "int getColumnIndex (String columnName);", "public int getColorIndex() {\n return colorIndex;\n }", "boolean isHeader(int position);", "int getColumnIndex(String name);", "public JComponent getRowHeaderComponent() {\r\n return null;\r\n }", "@Override\n public int indexOf(T t) {\n Integer p = cells.get(t);\n return p == null ? -1 : p;\n }", "public java.lang.String getStyleId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STYLEID$30);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public int getRowIndex(Comparable key) { return this.underlying.getRowIndex(key); }", "public int getRowIndex(Feature f){\n return fc.indexOf(f);\n }", "public static ScriptStyle getStyle(int val)\r\n/* 31: */ {\r\n/* 32: 92 */ for (int i = 0; i < styles.length; i++) {\r\n/* 33: 94 */ if (styles[i].getValue() == val) {\r\n/* 34: 96 */ return styles[i];\r\n/* 35: */ }\r\n/* 36: */ }\r\n/* 37:100 */ return NORMAL_SCRIPT;\r\n/* 38: */ }", "public int getExperimentColorIndex(int row);", "@Override\n\tpublic void setRowStyle(CellStyle arg0) {\n\t\t\n\t}", "public int getPosition(){\n\t\treturn this.cell;\n\t}", "private static Map<String, CellStyle> createStyles(Workbook wb) {\r\n Map<String, CellStyle> styles = new HashMap<>();\r\n DataFormat df = wb.createDataFormat();\r\n\r\n Font font1 = wb.createFont();\r\n\r\n CellStyle style;\r\n Font headerFont = wb.createFont();\r\n headerFont.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n style.setFont(headerFont);\r\n styles.put(\"header\", style);\r\n\r\n style = wb.createCellStyle();\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(false);\r\n styles.put(\"cell_centered\", style);\r\n\r\n style = wb.createCellStyle();\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(true);\r\n styles.put(\"cell_centered_locked\", style);\r\n// style = createBorderedStyle(wb);\r\n// style.setAlignment(CellStyle.ALIGN_CENTER);\r\n// style.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\r\n// style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n// style.setFont(headerFont);\r\n// style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n// styles.put(\"header_date\", style);\r\n font1.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setFont(font1);\r\n styles.put(\"cell_b\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(false);\r\n styles.put(\"cell_b_centered\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(true);\r\n styles.put(\"cell_b_centered_locked\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setFont(font1);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_b_date\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setFont(font1);\r\n style.setFillForegroundColor(IndexedColors.GREY_25_PERCENT.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_g\", style);\r\n\r\n Font font2 = wb.createFont();\r\n font2.setColor(IndexedColors.BLUE.getIndex());\r\n font2.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setFont(font2);\r\n styles.put(\"cell_bb\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setFont(font1);\r\n style.setFillForegroundColor(IndexedColors.GREY_25_PERCENT.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_bg\", style);\r\n\r\n Font font3 = wb.createFont();\r\n font3.setFontHeightInPoints((short) 14);\r\n font3.setColor(IndexedColors.DARK_BLUE.getIndex());\r\n font3.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setFont(font3);\r\n style.setWrapText(true);\r\n styles.put(\"cell_h\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setWrapText(true);\r\n styles.put(\"cell_normal\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setWrapText(true);\r\n styles.put(\"cell_normal_centered\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setWrapText(true);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_normal_date\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setIndention((short) 1);\r\n style.setWrapText(true);\r\n styles.put(\"cell_indented\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setFillForegroundColor(IndexedColors.BLUE.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n styles.put(\"cell_blue\", style);\r\n\r\n return styles;\r\n }", "public int getColumnIndex() {\n return table.findColumnIndex(getName());\n }", "public String getRowCssClassName(int value) {\n \tif (isEven(value)) {\n \t\treturn \"rowEven\";\n \t}\n \treturn \"rowOdd\";\n }", "public abstract String getHeaderRow();", "public int getIndex() {\n\t\treturn 0;\n\t}", "public native int getScrollIndocatorStyle() /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\treturn jso.scrollIndicatorStyle;\n }-*/;", "public TextCellStyle getCellStyle(int charOffset);", "int getOrdinalPosition();", "protected int getRow( Property property )\n {\n if(treeTable == null)\n {\n return -1;\n }\n JTree tree = treeTable.getTree();\n int n = tree.getRowCount();\n String name = property.getCompleteName();\n\n TreePath path;\n Property p;\n for(int i=1; i<n; i++)\n {\n path = tree.getPathForRow(i);\n p = (Property)path.getLastPathComponent();\n if( p.getCompleteName().startsWith(name) )\n return i;\n }\n\n return -1;\n }", "@Override\n public long getHeaderId(int position) {\n // return the first character of the country as ID because this is what\n // headers are based upon\n return wordList.get(position).getBox();\n }", "public int getColumnIndex() {\n/* 2979 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public int getColumnNumber() {\n return column;\n }", "private int nameToPropertiesRowIndex(String name) {\n \tInteger index = (Integer)nameToPropertiesRowIndex.get(name);\n return (index != null) ? index.intValue() : -1;\n }", "public int firstEntryIndex() {\n return isEmpty() ? -1 : 0;\n }", "public static int getColNumFromTxt(String headerName, ArrayList<ArrayList<String>> datas) {\n\r\n int i = 0;\r\n for (i = 0; i < datas.get(0).size(); i++) {\r\n //System.out.println(datas.get(0).get(i));\r\n if (datas.get(0).get(i).toLowerCase().equals(headerName.toLowerCase())) {\r\n return i;\r\n }\r\n }\r\n return 9999;\r\n }", "public int getIndex()\n {\n return getInt(\"Index\");\n }", "public int getCell() {\n return this.cell;\n }", "public long getStylesStart() {\n return ByteUtils.toUnsignedInt(stylesStart);\n }", "public int getCellShape() {\n if (myCellShape.equals(\"TRIANGLE\")) {\n return 2;\n }\n if (myCellShape.equals(\"HEXAGON\")) {\n return 1;\n }\n if (myCellShape.equals(\"SQUARE\")) {\n return 0;\n }\n else {\n throw new IllegalArgumentException(\"Cell Shape given is invalid\");\n }\n }", "private int obtemIndiceColuna(String colunaNome, String nomeTabela) {\n WebElement tabela = obtemTabela(nomeTabela);\n List<WebElement> colunas = tabela.findElements(By.xpath(\".//th\"));\n int idColuna = -1;\n for(int i=0;i<colunas.size();i++) {\n if(colunas.get(i).getText().equals(colunaNome)) {\n idColuna = i+1;\n break;\n }\n }\n\n return idColuna;\n }", "public int getRequiredRow() {\n\t\tint rowNumber = 0;\n\t\tfor(int i=0;i<=sheet.getLastRowNum();i++) {\n\t\t\t//System.out.println(testCaseName+sheet.getRow(i).getCell(0).toString());\n\t\t\tif(testCaseName.equals(sheet.getRow(i).getCell(0).toString())) {\n\t\t\t\trowNumber = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn rowNumber;\n\t}", "public int getStartRow();", "@Override\n protected JTableHeader createDefaultTableHeader()\n {\n return new JTableHeader(columnModel)\n {\n /**\n * Serial version UID variable for the inner class.\n */\n public static final long serialVersionUID = 111222333444555601L;\n\n @Override\n public String getToolTipText(MouseEvent e)\n {\n int index = columnModel.getColumnIndexAtX( e.getPoint().x );\n int realIndex = columnModel.getColumn(index).getModelIndex();\n return columnNames[realIndex];\n }\n };\n }", "public int getColumnIndex(Comparable key) {\n/* 174 */ int index = this.underlying.getColumnIndex(key);\n/* 175 */ if (index >= this.firstCategoryIndex && index <= lastCategoryIndex()) {\n/* 176 */ return index - this.firstCategoryIndex;\n/* */ }\n/* 178 */ return -1;\n/* */ }", "public javax.accessibility.AccessibleTable getAccessibleRowHeader() {\n // Not yet supported\n return null;\n }", "public int getRowspan() \n {\n int rowspan = 1;\n List subHeadings = getSubHeadings();\n if (subHeadings != null && subHeadings.size() > 0)\n { \n rowspan = subHeadings.size();\n }\n \n /*\n while (subHeadings != null || subHeadings.size() > 0)\n { \n subHeadings = recurseHeadings\n \n int size = subHeadings.size();\n for (int i=0; i<size; i++) \n {\n int max = 1;\n List recurseHeadings = \n ((Heading)subHeadings.get(i)).getSubHeadings();\n while (recurseHeadings != null \n && recurseHeadings.size() > 0) \n {\n int test = recurseHeadings.size();\n max = (test > max) ? test : max;\n\n recurseHeadings\n }\n \n } \n }\n */\n return rowspan;\n }", "public int getIndx() {\n return this.indx;\n }", "int getCellid();", "protected JTableHeader createDefaultTableHeader() {\n return new JTableHeader(columnModel) {\n public String getToolTipText(MouseEvent e) {\n java.awt.Point p = e.getPoint();\n int index = columnModel.getColumnIndexAtX(p.x);\n int realIndex = columnModel.getColumn(index).getModelIndex();\n return columnToolTips[realIndex];\n }\n };\n }", "protected JTableHeader createDefaultTableHeader() {\r\n \treturn new JTableHeader(columnModel) {\r\n \t\t\r\n \t\tprivate static final long serialVersionUID = 1L;\r\n \t\t\r\n \t\tpublic String getToolTipText(MouseEvent e) {\r\n \t\t\tjava.awt.Point p = e.getPoint();\r\n \t\t\tint index = columnModel.getColumnIndexAtX(p.x);\r\n \t\t\tint realColumnIndex = convertColumnIndexToModel(index);\r\n \t\t\tif ((realColumnIndex >= 0) && (realColumnIndex < getModel().getColumnCount()))\r\n \t\t\t\treturn \"The column \" + getModel().getColumnName(realColumnIndex);\r\n \t\t\telse\r\n \t\t\t\treturn \"\";\r\n \t\t}\r\n \t};\r\n }", "public int getIndex() {\r\n \t\t\treturn index;\r\n \t\t}" ]
[ "0.7555913", "0.74668854", "0.71719307", "0.6706206", "0.6485947", "0.64568734", "0.63181275", "0.6272972", "0.6263478", "0.6255166", "0.61322695", "0.61322695", "0.61322695", "0.6026807", "0.59770256", "0.5871817", "0.58627856", "0.583073", "0.57474476", "0.57283455", "0.5726485", "0.57221466", "0.5718858", "0.57068086", "0.5697345", "0.5695806", "0.56936884", "0.56647295", "0.5663478", "0.5646764", "0.5634318", "0.56224144", "0.56139886", "0.5593683", "0.5589915", "0.5577292", "0.55721104", "0.5569053", "0.5543256", "0.5539185", "0.5524011", "0.55171996", "0.55163205", "0.55046326", "0.5455213", "0.5455213", "0.5452624", "0.5444049", "0.5443305", "0.5427137", "0.54269147", "0.54064435", "0.5406152", "0.54009587", "0.5388934", "0.53862685", "0.5385018", "0.53839266", "0.53715014", "0.5366873", "0.53664577", "0.53660613", "0.5351808", "0.5335768", "0.5332979", "0.53307515", "0.5329664", "0.53200394", "0.53073007", "0.52975273", "0.52973783", "0.52949655", "0.5292638", "0.528009", "0.52658767", "0.52608293", "0.52538896", "0.52462775", "0.5244143", "0.5241995", "0.5236266", "0.52298844", "0.5218671", "0.5192918", "0.5188903", "0.5181835", "0.51747453", "0.5169708", "0.51687294", "0.5168218", "0.51610357", "0.51607794", "0.51559544", "0.51547694", "0.5154593", "0.5149815", "0.51483375", "0.51464707", "0.5140983", "0.5138555" ]
0.7905072
0
Returns the default horizontal style the Date, Character, Bool has center value, the Numeric has right value, otherwise left value
int defaultHorizontal() { int horizontal; if (isDate(clazz) || isDateTime(clazz) || isLocalDate(clazz) || isLocalDateTime(clazz) || isTime(clazz) || isLocalTime(clazz) || isChar(clazz) || isBool(clazz)) { horizontal = Horizontals.CENTER; } else if (isInt(clazz) || isLong(clazz) || isFloat(clazz) || isDouble(clazz) || isBigDecimal(clazz)) { horizontal = Horizontals.RIGHT; } else { horizontal = Horizontals.LEFT; } return horizontal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String leftAlignFormat() {\n String leftAlignFormat = \"\\n\\t\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(5) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(40) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(30) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(30) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(60) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(15) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(15) + \"s\" //string\r\n + \"|\"\r\n + \" %-\" + Integer.toString(24) + \"s\" \r\n + \"|\\n\";\r\n return leftAlignFormat;\r\n }", "public String getStartPointEndingStyle() {\n/* 737 */ COSBase base = getCOSObject().getDictionaryObject(COSName.LE);\n/* 738 */ if (base instanceof COSArray && ((COSArray)base).size() >= 2)\n/* */ {\n/* 740 */ return ((COSArray)base).getName(0, \"None\");\n/* */ }\n/* 742 */ return \"None\";\n/* */ }", "public int getHorizontalAlignment()\n {\n return field.getHorizontalAlignment();\n }", "public short getHorizontalAlignment()\n {\n return halign;\n }", "public HSSFCellStyle getColumnTopStyle(HSSFWorkbook workbook) {\r\n\r\n\t\t// Set font\r\n\t\tHSSFFont font = workbook.createFont();\r\n\t\t// Set font size\r\n\t\tfont.setFontHeightInPoints((short) 11);\r\n\t\t// Bold font\r\n\t\tfont.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);\r\n\t\t// Set font name\r\n\t\tfont.setFontName(\"Courier New\");\r\n\t\t// Set the style;\r\n\t\tHSSFCellStyle style = workbook.createCellStyle();\r\n\t\t// Set the bottom border;\r\n\t\tstyle.setBorderBottom(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the bottom border color;\r\n\t\tstyle.setBottomBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the left border;\r\n\t\tstyle.setBorderLeft(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the left border color;\r\n\t\tstyle.setLeftBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the right border;\r\n\t\tstyle.setBorderRight(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the right border color;\r\n\t\tstyle.setRightBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the top border;\r\n\t\tstyle.setBorderTop(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the top border color;\r\n\t\tstyle.setTopBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Use the font set by the application in the style;\r\n\t\tstyle.setFont(font);\r\n\t\t// Set auto wrap;\r\n\t\tstyle.setWrapText(false);\r\n\t\t// Set the style of horizontal alignment to center alignment;\r\n\t\tstyle.setAlignment(HSSFCellStyle.ALIGN_CENTER);\r\n\t\t// Set the vertical alignment style to center alignment;\r\n\t\tstyle.setVerticalAlignment(HSSFCellStyle.VERTICAL_CENTER);\r\n\r\n\t\treturn style;\r\n\r\n\t}", "default Integer getHorizontalMargin() {\n return null;\n }", "public int getCellStyle(Class<?> clazz) {\n int style;\n if (isString(clazz)) {\n style = Styles.defaultStringBorderStyle();\n } else if (isDateTime(clazz) || isDate(clazz) || isLocalDateTime(clazz)) {\n if (numFmt == null) numFmt = DATETIME_FORMAT;\n style = (1 << INDEX_BORDER) | Horizontals.CENTER;\n } else if (isBool(clazz) || isChar(clazz)) {\n style = Styles.clearHorizontal(Styles.defaultStringBorderStyle()) | Horizontals.CENTER;\n } else if (isInt(clazz) || isLong(clazz)) {\n style = Styles.defaultIntBorderStyle();\n } else if (isFloat(clazz) || isDouble(clazz) || isBigDecimal(clazz)) {\n style = Styles.defaultDoubleBorderStyle();\n } else if (isLocalDate(clazz)) {\n if (numFmt == null) numFmt = DATE_FORMAT;\n style = (1 << INDEX_BORDER) | Horizontals.CENTER;\n } else if (isTime(clazz) || isLocalTime(clazz)) {\n if (numFmt == null) numFmt = TIME_FORMAT;\n style = (1 << INDEX_BORDER) | Horizontals.CENTER;\n } else {\n style = (1 << Styles.INDEX_FONT) | (1 << INDEX_BORDER); // Auto-style\n }\n\n // Reset custom number format if specified.\n if (numFmt != null) {\n style = Styles.clearNumFmt(style) | styles.addNumFmt(numFmt);\n }\n\n return style | (option & 1);\n }", "boolean getAligning();", "protected CellStyle getTextCellStyle(final Workbook workbook) {\n final CellStyle myStyle = ExportExcelUtils.makeFullBorderStyle(workbook);\n myStyle.setAlignment(CellStyle.ALIGN_LEFT);\n return myStyle;\n }", "public int getHorizontalAlignment() {\n return horizontalAlignment;\n }", "Integer getDefaultWidth();", "public static String leftAlignFormatTitulo() {\n String leftAlignFormat = \"\\t\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(5) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(40) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(30) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(30) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(60) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(15) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(15) + \"s\" //string\r\n + \"|\"\r\n + \" %-\" + Integer.toString(24) + \"s\" \r\n + \"|\\n\";\r\n return leftAlignFormat;\r\n }", "TickAlign getAlign();", "public MeasurementCSSImpl getLeft()\n\t{\n\t\treturn left;\n\t}", "public AlignX getAlignmentX() { return AlignX.Left; }", "com.microsoft.schemas.office.x2006.digsig.STPositiveInteger xgetHorizontalResolution();", "public String left() {\n if (!(this.styledValueElements instanceof ShiftedText)) {\n this.styledValueElements = new ShiftedText(this.styledValue);\n } else {\n ((ShiftedText) this.styledValueElements).shiftLeft();\n }\n\n this.value = this.styledValueElements.stringify();\n return this.value;\n }", "public int getHorizontalTextAlignment() {\r\n\t\treturn getJTextField().getHorizontalAlignment();\r\n\t}", "int getVerticalAlignValue();", "public HSSFCellStyle getStyle(HSSFWorkbook workbook) {\r\n\t\t// Set font\r\n\t\tHSSFFont font = workbook.createFont();\r\n\t\t// Set font size\r\n\t\t// font.setFontHeightInPoints((short)10);\r\n\t\t// Bold font\r\n\t\t// font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);\r\n\t\t// Set font name\r\n\t\tfont.setFontName(\"Courier New\");\r\n\t\t// Set the style;\r\n\t\tHSSFCellStyle style = workbook.createCellStyle();\r\n\t\t// Set the bottom border;\r\n\t\tstyle.setBorderBottom(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the bottom border color;\r\n\t\tstyle.setBottomBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the left border;\r\n\t\tstyle.setBorderLeft(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the left border color;\r\n\t\tstyle.setLeftBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the right border;\r\n\t\tstyle.setBorderRight(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the right border color;\r\n\t\tstyle.setRightBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the top border;\r\n\t\tstyle.setBorderTop(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the top border color;\r\n\t\tstyle.setTopBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Use the font set by the application in the style;\r\n\t\tstyle.setFont(font);\r\n\t\t// Set auto wrap;\r\n\t\tstyle.setWrapText(false);\r\n\t\t// Set the style of horizontal alignment to center alignment;\r\n\t\tstyle.setAlignment(HSSFCellStyle.ALIGN_CENTER);\r\n\t\t// Set the vertical alignment style to center alignment;\r\n\t\tstyle.setVerticalAlignment(HSSFCellStyle.VERTICAL_CENTER);\r\n\r\n\t\treturn style;\r\n\r\n\t}", "public int getSwtAlignment() {\r\n return f_swtAlignment;\r\n }", "public String getDateStyleClass() {\r\n return dateThreshold ? \"equipmentDate\" : \"\";\r\n }", "public final HORIZONTALALIGNMENT getHorizontalAlignment(){\n\t\treturn wDisplayHorizontalAlignment;\n\t}", "public String getDefaultStyleString() {\n/* 552 */ return getCOSObject().getString(COSName.DS);\n/* */ }", "public int getHorizontalAlignment() {\r\n\t\treturn getJTextField().getHorizontalAlignment();\r\n\t}", "CrossAlign getCrossAlign();", "public NumberFormat getDefaultNumberFormat()\n {\n return valueRenderer.defaultNumberFormat;\n }", "private static Map<String, CellStyle> createStyles(Workbook wb) {\r\n Map<String, CellStyle> styles = new HashMap<>();\r\n DataFormat df = wb.createDataFormat();\r\n\r\n Font font1 = wb.createFont();\r\n\r\n CellStyle style;\r\n Font headerFont = wb.createFont();\r\n headerFont.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n style.setFont(headerFont);\r\n styles.put(\"header\", style);\r\n\r\n style = wb.createCellStyle();\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(false);\r\n styles.put(\"cell_centered\", style);\r\n\r\n style = wb.createCellStyle();\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(true);\r\n styles.put(\"cell_centered_locked\", style);\r\n// style = createBorderedStyle(wb);\r\n// style.setAlignment(CellStyle.ALIGN_CENTER);\r\n// style.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\r\n// style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n// style.setFont(headerFont);\r\n// style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n// styles.put(\"header_date\", style);\r\n font1.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setFont(font1);\r\n styles.put(\"cell_b\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(false);\r\n styles.put(\"cell_b_centered\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(true);\r\n styles.put(\"cell_b_centered_locked\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setFont(font1);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_b_date\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setFont(font1);\r\n style.setFillForegroundColor(IndexedColors.GREY_25_PERCENT.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_g\", style);\r\n\r\n Font font2 = wb.createFont();\r\n font2.setColor(IndexedColors.BLUE.getIndex());\r\n font2.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setFont(font2);\r\n styles.put(\"cell_bb\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setFont(font1);\r\n style.setFillForegroundColor(IndexedColors.GREY_25_PERCENT.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_bg\", style);\r\n\r\n Font font3 = wb.createFont();\r\n font3.setFontHeightInPoints((short) 14);\r\n font3.setColor(IndexedColors.DARK_BLUE.getIndex());\r\n font3.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setFont(font3);\r\n style.setWrapText(true);\r\n styles.put(\"cell_h\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setWrapText(true);\r\n styles.put(\"cell_normal\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setWrapText(true);\r\n styles.put(\"cell_normal_centered\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setWrapText(true);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_normal_date\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setIndention((short) 1);\r\n style.setWrapText(true);\r\n styles.put(\"cell_indented\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setFillForegroundColor(IndexedColors.BLUE.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n styles.put(\"cell_blue\", style);\r\n\r\n return styles;\r\n }", "protected CellStyle makeStyleForEmptyTitleCell(final Workbook workbook) {\n final CellStyle myStyle = workbook.createCellStyle();\n myStyle.setBorderTop(CellStyle.BORDER_THIN);\n myStyle.setBorderBottom(CellStyle.BORDER_THIN);\n myStyle.setBorderLeft(CellStyle.BORDER_NONE);\n myStyle.setBorderRight(CellStyle.BORDER_NONE);\n return myStyle;\n }", "private static StyleBuilder getHeaderStyle(ExportData metaData){\n \n /*pour la police des entàtes de HARVESTING*/\n if(metaData.getTitle().equals(ITitle.HARVESTING)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }/*pour la police des entetes de SERVICING*/\n if(metaData.getTitle().equals(ITitle.SERVICING)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }/*pour la police des entetes de FERTILIZATION*/\n if(metaData.getTitle().equals(ITitle.FERTILIZATION)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }/*pour la police des entetes de CONTROL_PHYTO*/\n if(metaData.getTitle().equals(ITitle.CONTROL_PHYTO)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }else{\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n }\n \n }", "public int getNumCellStyles() {\n\t\treturn 0;\n\t}", "public static Style getDefault() { return Style.SHAPE; }", "@Override\n\tpublic CellStyle getRowStyle() {\n\t\treturn null;\n\t}", "public float leading() {\n if (Float.isNaN(leading)) {\n return font.leading(1.5f);\n }\n return leading;\n }", "int getAlignValue();", "public double getLeft() {\r\n\t\treturn -left.getRawAxis(1);\r\n\t}", "public Boolean isHorizontal() {\n return horizontal;\n }", "public String getCurrentValueFormatted()\r\n {\r\n \t/*\r\n \t * If you look at the OpenXML spec or\r\n \t * STNumberFormat.java, you'll see there are some 60 number formats.\r\n \t * \r\n \t * Of these, we currently aim to support:\r\n \t * \r\n\t\t * decimal\r\n\t\t * upperRoman\r\n\t\t * lowerRoman\r\n\t\t * upperLetter\r\n\t\t * lowerLetter\r\n\t\t * bullet\r\n\t\t * none\r\n\t\t * \r\n\t\t * What about?\r\n\t\t * \r\n\t\t * ordinal\r\n\t\t * cardinalText\r\n\t\t * ordinalText\r\n \t * \r\n \t */\r\n \t\r\n \tif (numFmt.equals( NumberFormat.DECIMAL ) ) {\r\n \t\treturn this.counter.getCurrentValue().toString();\r\n \t}\r\n \t\r\n \tif (numFmt.equals( NumberFormat.NONE ) ) {\r\n \t\treturn \"\"; \t\t\r\n \t}\r\n\r\n \tif (numFmt.equals( NumberFormat.BULLET ) ) {\r\n \t\t\r\n \t\t// TODO - revisit how this is handled.\r\n \t\t// The code elsewhere for handling bullets\r\n \t\t// overlaps with this numFmt stuff.\r\n \t\treturn \"*\"; \t\t\r\n \t}\r\n \t \t\r\n \tint current = this.counter.getCurrentValue().intValue();\r\n \t\r\n \tif (numFmt.equals( NumberFormat.UPPER_ROMAN ) ) { \t\t\r\n \t\tNumberFormatRomanUpper converter = new NumberFormatRomanUpper(); \r\n \t\treturn converter.format(current);\r\n \t}\r\n \tif (numFmt.equals( NumberFormat.LOWER_ROMAN ) ) { \t\t\r\n \t\tNumberFormatRomanLower converter = new NumberFormatRomanLower(); \r\n \t\treturn converter.format(current);\r\n \t}\r\n \tif (numFmt.equals( NumberFormat.LOWER_LETTER ) ) { \t\t\r\n \t\tNumberFormatLowerLetter converter = new NumberFormatLowerLetter(); \r\n \t\treturn converter.format(current);\r\n \t}\r\n \tif (numFmt.equals( NumberFormat.UPPER_LETTER ) ) { \t\t\r\n \t\tNumberFormatLowerLetter converter = new NumberFormatLowerLetter(); \r\n \t\treturn converter.format(current).toUpperCase();\r\n \t} \t\r\n \tif (numFmt.equals( NumberFormat.DECIMAL_ZERO ) ) { \t\t\r\n \t\tNumberFormatDecimalZero converter = new NumberFormatDecimalZero(); \r\n \t\treturn converter.format(current);\r\n \t}\r\n \t\r\n \tlog.error(\"Unhandled numFmt: \" + numFmt.name() );\r\n return this.counter.getCurrentValue().toString();\r\n }", "protected CellStyle getNumberCellStyle(final Workbook workbook) {\n final CellStyle numberStyle = ExportExcelUtils.makeFullBorderStyle(workbook);\n numberStyle.setAlignment(CellStyle.ALIGN_RIGHT);\n return numberStyle;\n }", "public long getStylesStart() {\n return ByteUtils.toUnsignedInt(stylesStart);\n }", "public static XSSFCellStyle baseStyle(XSSFWorkbook wb) {\n\t\t// Define color palette\n\t\tcmBg = new XSSFColor(new java.awt.Color(33, 150, 243, 0)); // #2196F3\n\t\ttdBg = new XSSFColor(new java.awt.Color(139, 195, 74, 0)); // #8BC34A\n\t\ttpBg = new XSSFColor(new java.awt.Color(255, 193, 7, 0)); // #FFC107\n\t\tccEtBg = new XSSFColor(new java.awt.Color(244, 67, 54, 0)); // #F44336\n\t\tsiBg = new XSSFColor(new java.awt.Color(0, 117, 169, 0));\n\t\tasrBg = new XSSFColor(new java.awt.Color(50, 117, 108, 0));\n\n\t\tdateBg = new XSSFColor(new java.awt.Color(189, 189, 189, 0)); // #BDBDBD\n\t\tweekNumBg = new XSSFColor(new java.awt.Color(224, 224, 224, 0)); // #E0E0E0\n\t\tholidaysBg = new XSSFColor(new java.awt.Color(255, 87, 34, 0)); // #FF5722\n\n\t\t// create font\n\t\tFont font = wb.createFont();\n\t\tfont.setFontHeightInPoints((short) 11);\n\t\tfont.setFontName(\"Arial\");\n\t\tfont.setColor(IndexedColors.BLACK.getIndex());\n\t\tfont.setBold(false);\n\t\tfont.setItalic(false);\n\n\t\t// Create cell style\n\t\tXSSFCellStyle cellStyle = wb.createCellStyle();\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setVerticalAlignment(VerticalAlignment.CENTER);\n\t\tcellStyle.setWrapText(true); // Set wordwrap\n\n\t\t// Setting font to style\n\t\tcellStyle.setFont(font);\n\n\t\treturn cellStyle;\n\t}", "public JLabel buildDefaultHeader(){\n JLabel returnHeader = new JLabel();\n returnHeader.setHorizontalAlignment(SwingConstants.LEFT);\n returnHeader.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 48)); // Great font, makes it pop\n returnHeader.setForeground(Color.WHITE);\n returnHeader.setBackground(Color.BLACK);\n \n return returnHeader;\n }", "private void numberDisplayAlignment() {\n numberDisplay.setAlignment(Pos.CENTER_RIGHT);\n numberDisplay.setPrefSize(20, 10);\n }", "private static Map<String, CellStyle> createStyles(Workbook wbl) {\r\n\r\n\tMap<String, CellStyle> styles = new HashMap<String, CellStyle>();\r\n\ttry {\r\n\t CellStyle style;\r\n\t Font titleFont = wbl.createFont();\r\n\t titleFont.setFontHeightInPoints((short) 18);\r\n\t titleFont.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n\t style = wbl.createCellStyle();\r\n\t style.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t style.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t style.setFont(titleFont);\r\n\t styles.put(\"title\", style);\r\n\r\n\t Font monthFont = wbl.createFont();\r\n\t monthFont.setFontHeightInPoints((short) 11);\r\n\t monthFont.setColor(IndexedColors.WHITE.getIndex());\r\n\t style = wbl.createCellStyle();\r\n\t style.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t style.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t style.setFillForegroundColor(IndexedColors.GREY_50_PERCENT.getIndex());\r\n\t style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n\t style.setFont(monthFont);\r\n\t style.setWrapText(true);\r\n\t style.setRightBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderRight(CellStyle.BORDER_THIN);\r\n\t style.setLeftBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderLeft(CellStyle.BORDER_THIN);\r\n\t style.setTopBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderTop(CellStyle.BORDER_THIN);\r\n\t style.setBottomBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderBottom(CellStyle.BORDER_THIN);\r\n\t styles.put(\"header\", style);\r\n\t \r\n\t //MandatoryColumn to admission process\r\n\t Font mandatoryColumnFont = wbl.createFont();\r\n\t mandatoryColumnFont.setFontHeightInPoints((short) 11);\r\n\t mandatoryColumnFont.setColor(IndexedColors.RED.getIndex());\r\n\t style = wbl.createCellStyle();\r\n\t style.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t style.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t style.setFillForegroundColor(IndexedColors.GREY_50_PERCENT.getIndex());\r\n\t style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n\t style.setFont(mandatoryColumnFont);\r\n\t style.setWrapText(true);\r\n\t style.setRightBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderRight(CellStyle.BORDER_THIN);\r\n\t style.setLeftBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderLeft(CellStyle.BORDER_THIN);\r\n\t style.setTopBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderTop(CellStyle.BORDER_THIN);\r\n\t style.setBottomBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderBottom(CellStyle.BORDER_THIN);\r\n\t styles.put(\"headers\", style);\r\n\r\n\t style = wbl.createCellStyle();\r\n\t style.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t style.setWrapText(true);\r\n\t style.setBorderRight(CellStyle.BORDER_THIN);\r\n\t style.setRightBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderLeft(CellStyle.BORDER_THIN);\r\n\t style.setLeftBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderTop(CellStyle.BORDER_THIN);\r\n\t style.setTopBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderBottom(CellStyle.BORDER_THIN);\r\n\t style.setBottomBorderColor(IndexedColors.BLACK.getIndex());\r\n\t styles.put(\"cell\", style);\r\n\r\n\t style = wbl.createCellStyle();\r\n\t style.setWrapText(true);\r\n\t style.setBorderRight(CellStyle.BORDER_THIN);\r\n\t style.setRightBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderLeft(CellStyle.BORDER_THIN);\r\n\t style.setLeftBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderTop(CellStyle.BORDER_THIN);\r\n\t style.setTopBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderBottom(CellStyle.BORDER_THIN);\r\n\t style.setBottomBorderColor(IndexedColors.BLACK.getIndex());\r\n\t styles.put(\"string\", style);\r\n\r\n\t CreationHelper createHelper = wbl.getCreationHelper();\r\n\t style = wbl.createCellStyle();\r\n\t style.setDataFormat(createHelper.createDataFormat().getFormat(\"dd-MMM-yyyy\"));\r\n\t style.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t style.setWrapText(true);\r\n\t style.setBorderRight(CellStyle.BORDER_THIN);\r\n\t style.setRightBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderLeft(CellStyle.BORDER_THIN);\r\n\t style.setLeftBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderTop(CellStyle.BORDER_THIN);\r\n\t style.setTopBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderBottom(CellStyle.BORDER_THIN);\r\n\t style.setBottomBorderColor(IndexedColors.BLACK.getIndex());\r\n\t styles.put(\"date\", style);\r\n\r\n\t} catch (Exception ex) {\r\n\t ex.printStackTrace();\r\n\t JRExceptionClient jre = new JRExceptionClient();jre.sendException(ex);jre = null;\r\n\t}\r\n\r\n\treturn styles;\r\n }", "@Override\n\tpublic CellStyle getCellStyle(int index, T entity, Object value, AttributeModel attributeModel) {\n\t\tif (value instanceof Integer || value instanceof Long) {\n\t\t\treturn thousandsGrouping ? numberStyle : numberSimpleStyle;\n\t\t} else if (value instanceof Date || value instanceof LocalDate || value instanceof LocalDateTime) {\n\t\t\tif (attributeModel == null || !attributeModel.isWeek()) {\n\t\t\t\treturn getDateStyle(attributeModel);\n\t\t\t}\n\t\t} else if (value instanceof BigDecimal || NumberUtils.isDouble(value)) {\n\t\t\treturn getDecimalStyle(attributeModel);\n\t\t}\n\t\treturn normal;\n\t}", "public String getLineEndingStyle() {\n/* 412 */ return getCOSObject().getNameAsString(COSName.LE, \"None\");\n/* */ }", "private static Map<String, CellStyle> createStyles(Workbook wb)\r\n\t{\r\n\t\tMap<String, CellStyle> styles = new HashMap<String, CellStyle>();\r\n\t\tDataFormat df = wb.createDataFormat();\r\n\r\n\t\tFont titleFont = wb.createFont();\r\n\t\ttitleFont.setFontHeightInPoints((short) 18);\r\n\t\ttitleFont.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n\t\ttitleFont.setColor(IndexedColors.DARK_BLUE.getIndex());\r\n\t\tCellStyle titleStyle = wb.createCellStyle();\r\n\t\ttitleStyle.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t\ttitleStyle.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t\ttitleStyle.setFont(titleFont);\r\n\t\tborderCell(titleStyle, CellStyle.BORDER_THICK, IndexedColors.BLUE.getIndex());\r\n\t\tstyles.put(TITLE_STYLE_NAME, titleStyle);\r\n\r\n\t\tFont headerFont = wb.createFont();\r\n\t\theaderFont.setFontHeightInPoints((short) 11);\r\n\t\theaderFont.setColor(IndexedColors.WHITE.getIndex());\r\n\t\tCellStyle headerStyle = wb.createCellStyle();\r\n\t\theaderStyle.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t\theaderStyle.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t\theaderStyle.setFillForegroundColor(IndexedColors.GREY_50_PERCENT.getIndex());\r\n\t\theaderStyle.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n\t\theaderStyle.setFont(headerFont);\r\n\t\theaderStyle.setWrapText(true);\r\n\t\tstyles.put(HEADER_STYLE_NAME, headerStyle);\r\n\r\n\t\tCellStyle plainCellStyle = wb.createCellStyle();\r\n\t\tplainCellStyle.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t\tborderCell(plainCellStyle, CellStyle.BORDER_THIN, IndexedColors.BLACK.getIndex());\r\n\t\tstyles.put(PLAIN_CELL_STYLE_NAME, plainCellStyle);\r\n\r\n\t\tCellStyle dateCellStyle = wb.createCellStyle();\r\n\t\tdateCellStyle.cloneStyleFrom(plainCellStyle);\r\n\t\tdateCellStyle.setDataFormat(df.getFormat(\"yyyy-mm-dd\"));\r\n\t\tstyles.put(DATE_CELL_STYLE_NAME, dateCellStyle);\r\n\r\n\t\tCellStyle integerFormulaStyle = wb.createCellStyle();\r\n\t\tintegerFormulaStyle.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t\tintegerFormulaStyle.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t\tintegerFormulaStyle.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\r\n\t\tintegerFormulaStyle.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n\t\tborderCell(integerFormulaStyle, CellStyle.BORDER_DOTTED, IndexedColors.GREY_80_PERCENT.getIndex());\r\n\t\tintegerFormulaStyle.setDataFormat(df.getFormat(\"0\"));\r\n\t\tintegerFormulaStyle.setWrapText(true);\r\n\t\tstyles.put(INTEGER_FORMULA_STYLE_NAME, integerFormulaStyle);\r\n\r\n\t\tCellStyle floatFormulaStyle = wb.createCellStyle();\r\n\t\tfloatFormulaStyle.cloneStyleFrom(integerFormulaStyle);\r\n\t\tfloatFormulaStyle.setDataFormat(df.getFormat(\"0.00\"));\r\n\t\tstyles.put(FLOAT_FORMULA_STYLE_NAME, floatFormulaStyle);\r\n\r\n\t\tCellStyle percentageFormulaStyle = wb.createCellStyle();\r\n\t\tpercentageFormulaStyle.cloneStyleFrom(integerFormulaStyle);\r\n\t\tpercentageFormulaStyle.setDataFormat(df.getFormat(\"0.00 %\"));\r\n//\t\tpercentageFormulaStyle.setDataFormat((short) 9); // See BuiltinFormats\r\n\t\tshort colorIndex = IndexedColors.INDIGO.getIndex();\r\n\t\tColor customColor = defineColor(wb, colorIndex, 0x88, 0xFF, 0x55);\r\n\t\tif (percentageFormulaStyle instanceof XSSFCellStyle)\r\n\t\t{\r\n\t\t\t((XSSFCellStyle) percentageFormulaStyle).setFillForegroundColor((XSSFColor) customColor);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tpercentageFormulaStyle.setFillForegroundColor(colorIndex);\r\n\t\t}\r\n\t\tstyles.put(PERCENTAGE_FORMULA_STYLE_NAME, percentageFormulaStyle);\r\n\r\n\t\treturn styles;\r\n\t}", "public CellStyle createCellStyle() {\n\t\treturn null;\n\t}", "public Alignment getFacetValueHoverAlign() {\r\n return EnumUtil.getEnum(Alignment.values(), getAttribute(\"facetValueHoverAlign\"));\r\n }", "public abstract String getStyle();", "public XSSFCellStyle getXssfCellStyleForDate(XSSFWorkbook xssfWorkbook) {\n XSSFCreationHelper createHelper = xssfWorkbook.getCreationHelper();\n XSSFCellStyle cellStyle = xssfWorkbook.createCellStyle();\n cellStyle.setAlignment(HorizontalAlignment.LEFT);\n cellStyle.setDataFormat(createHelper.createDataFormat().getFormat(ReCAPConstants.DATE_CELL_STYLE_FORMAT));\n return cellStyle;\n }", "protected boolean isHorizontal() {\n\t\treturn true;\n\t}", "public char getTableHeaderTypeAsCharForFormatting(){\n\t\tchar fmtChar;\n\t\t\n\t\tif(dataType.isInstance(String.class)){\n\t\t\tfmtChar = 's';\n\t\t}\n\t\telse if(dataType.isInstance(Integer.class)){\n\t\t\tfmtChar = 'd';\n\t\t}\n\t\telse{\n\t\t\tfmtChar = 's';\n\t\t}\n\t\treturn fmtChar;\n\t}", "public static String formatPosition(String format, HorizontalPosition position) {\n switch (format) {\n //text editor style formatting used in most cases\n case \"text\":\n switch (position) {\n case LEFT:\n return \"left\";\n case RIGHT:\n return \"right\";\n default:\n return \"center\";\n }\n case \"stl\":\n //stl style is upper-case\n switch (position) {\n case LEFT:\n return \"Left\";\n case RIGHT:\n return \"Right\";\n default:\n return \"Center\";\n }\n default:\n throw new RuntimeException(String.format(\"Unknown position format '%s'\", format));\n }\n }", "void xsetHorizontalResolution(com.microsoft.schemas.office.x2006.digsig.STPositiveInteger horizontalResolution);", "private int getBorderWidthValue( IStyle style, int borderNum )\n \t{\n \t\tif ( null == style )\n \t\t{\n \t\t\treturn 0;\n \t\t}\n \t\tif ( IStyle.STYLE_BORDER_TOP_WIDTH != borderNum\n \t\t\t\t&& IStyle.STYLE_BORDER_RIGHT_WIDTH != borderNum\n \t\t\t\t&& IStyle.STYLE_BORDER_BOTTOM_WIDTH != borderNum\n \t\t\t\t&& IStyle.STYLE_BORDER_LEFT_WIDTH != borderNum )\n \t\t{\n \t\t\treturn 0;\n \t\t}\n \t\tCSSValue value = style.getProperty( borderNum );\n \t\tif ( value != null && ( value instanceof FloatValue ) )\n \t\t{\n \t\t\tFloatValue fv = (FloatValue) value;\n \t\t\tfloat v = fv.getFloatValue( );\n \t\t\tswitch ( fv.getPrimitiveType( ) )\n \t\t\t{\n \t\t\t\tcase CSSPrimitiveValue.CSS_CM :\n \t\t\t\t\treturn (int) ( v * 72000 / 2.54 );\n \n \t\t\t\tcase CSSPrimitiveValue.CSS_IN :\n \t\t\t\t\treturn (int) ( v * 72000 );\n \n \t\t\t\tcase CSSPrimitiveValue.CSS_MM :\n \t\t\t\t\treturn (int) ( v * 7200 / 2.54 );\n \n \t\t\t\tcase CSSPrimitiveValue.CSS_PT :\n \t\t\t\t\treturn (int) ( v * 1000 );\n \t\t\t\tcase CSSPrimitiveValue.CSS_NUMBER :\n \t\t\t\t\treturn (int) v;\n \t\t\t}\n \t\t}\n \t\treturn 0;\n \t}", "@SuppressWarnings(\"unchecked\")\n public TCS defaultEdging() {\n cellStyle_p.setBorderBottom(BORDER_THIN);\n cellStyle_p.setBottomBorderColor(BLACK.getIndex());\n cellStyle_p.setBorderLeft(BORDER_THIN);\n cellStyle_p.setLeftBorderColor(BLACK.getIndex());\n cellStyle_p.setBorderRight(BORDER_THIN);\n cellStyle_p.setRightBorderColor(BLACK.getIndex());\n cellStyle_p.setBorderTop(BORDER_THIN);\n cellStyle_p.setTopBorderColor(BLACK.getIndex());\n\n return (TCS) this;\n }", "boolean hasAligning();", "public boolean leftJustified(){\n return justification.equals(FormatAlignment.LEFT_JUSTIFY);\n }", "public double getLeftXAxis() {\n\t\treturn getRawAxis(Axis_LeftX);\n\t}", "public int getCompoundPaddingLeft() {\n final Drawables dr = mDrawables;\n if (dr == null || dr.mDrawableLeft == null) {\n return mPaddingLeft;\n } else {\n return mPaddingLeft + dr.mDrawablePadding + dr.mDrawableSizeLeft;\n }\n }", "@Override\n\tpublic CellStyle getCellStyle(int index, T entity, Object value, AttributeModel attributeModel) {\n\t\tif (value instanceof Integer || value instanceof Long) {\n\t\t\treturn thousandsGrouping ? numberStyle : numberSimpleStyle;\n\t\t} else if (value instanceof Date) {\n\t\t\tif (attributeModel == null || !attributeModel.isWeek()) {\n\t\t\t\tif (attributeModel == null || AttributeDateType.DATE.equals(attributeModel.getDateType())) {\n\t\t\t\t\t// date style is the default\n\t\t\t\t\treturn dateStyle;\n\t\t\t\t} else if (AttributeDateType.TIMESTAMP.equals(attributeModel.getDateType())) {\n\t\t\t\t\treturn dateTimeStyle;\n\t\t\t\t} else if (AttributeDateType.TIME.equals(attributeModel.getDateType())) {\n\t\t\t\t\treturn timeStyle;\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (value instanceof BigDecimal) {\n\t\t\tif (attributeModel != null && attributeModel.isPercentage()) {\n\t\t\t\treturn bigDecimalPercentageStyle;\n\t\t\t} else if (attributeModel != null && attributeModel.isCurrency()) {\n\t\t\t\treturn currencyStyle;\n\t\t\t}\n\t\t\treturn bigDecimalStyle;\n\t\t}\n\t\treturn normal;\n\t}", "private HBox hboxFormat() {\n HBox hbox = new HBox(10); // 10 = spacing between elements\n return hbox;\n }", "public boolean getShowHorizontalLines() {\r\n return calendarTable.getShowHorizontalLines();\r\n }", "String getValueFormat();", "public Alignment getCellAlign() {\r\n return EnumUtil.getEnum(Alignment.values(), getAttribute(\"cellAlign\"));\r\n }", "public int getLeading() {\n return 0;\n }", "public double getWidth() { return _width<0? -_width : _width; }", "public String getDefaultValue() {\r\n if (this == BOOLEAN) {\r\n return \"false\";\r\n }\r\n\r\n if (this == CHAR) {\r\n return \"''\";\r\n }\r\n\r\n if (this == VOID) {\r\n return \"\";\r\n }\r\n\r\n if (this == FLOAT) {\r\n return \"0.f\";\r\n }\r\n\r\n if (this == DOUBLE) {\r\n return \"0.0\";\r\n }\r\n\r\n return \"0\";\r\n }", "public void createDisplayHeader()\r\n\t{\r\n\t\tboolean isEType;\r\n\t\tint currentK, lowestJValue, highestJValue;\r\n\r\n\t\t// redundant now\r\n\t\tisEType = getIsEType();\r\n\t\tcurrentK = getCurrentK();\r\n\t\tlowestJValue = getLowestJValue();\r\n\t\thighestJValue = getHighestJValue();\r\n\r\n\t\tString symmetry;\r\n\t\tString kOutput;\r\n\r\n\t\tif (isEType) {\r\n\t\t\tif (currentK >= 0) {\r\n\t\t\t\tkOutput = currentK + \"\";\r\n\t\t\t\tsymmetry = \"E1\";\r\n\t\t\t} else {\r\n\t\t\t\tkOutput = Math.abs(currentK) + \"\";\r\n\t\t\t\tsymmetry = \"E2\";\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tkOutput = Math.abs(currentK) + \"\";\r\n\t\t\tsymmetry = \"A\";\r\n\r\n\t\t\tif (currentK >= 0) {\r\n\t\t\t\tkOutput += \"+\";\r\n\t\t\t} else {\r\n\t\t\t\tkOutput += \"-\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tString ls = System.lineSeparator();\r\n\t\tmainHeader = \"================================================================\"\r\n\t\t\t\t+ ls + \"Symmetry type:\\t\\t\\t\\t\\t\" + symmetry + ls\r\n\t\t\t\t+ \"The K of the lower energy is:\\t\\t\\t\" + kOutput + ls + \"The input \"\r\n\t\t\t\t+ INPUT_BRANCH_TYPE + \" branch was flipped:\\t\\t\\t\" + inputIsFlipped + ls\r\n\t\t\t\t+ \"The input \" + INPUT_BRANCH_TYPE + \" branch used a J range of:\\t\\t\"\r\n\t\t\t\t+ lowestJValue + \" to \" + highestJValue\r\n\t\t\t\t+ ls + ls + \"Results for these selections are...\" + ls;\r\n\r\n\t\tsetHeaderDisplayState(true);\r\n\t}", "public int getPreferredHorizontalOffset() {\n\t\treturn preferredHorizontalOffset;\n\t}", "public static XSSFCellStyle dateStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = dateFormatStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(dateBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}", "public boolean isHorizontalMode() throws PDFNetException {\n/* 627 */ return IsHorizontalMode(this.a);\n/* */ }", "@Override\n\tpublic CellStyle getHeaderStyle(int index) {\n\t\tif (index == 0) {\n\t\t\treturn titleStyle;\n\t\t}\n\t\tif (headerStyle == null) {\n\t\t\treturn headerStyle;\n\t\t}\n\t\treturn headerStyle;\n\t}", "public int getColspan() \n {\n return 1;\n }", "public int getLineStyle() {\r\n return LineStyle;\r\n }", "public int getDisplayFormat() {\r\n return insertMode ? 0 : intValue(CONTACTS_DISPLAY_FORMAT);\r\n }", "public Alignment getFacetValueAlign() {\r\n return EnumUtil.getEnum(Alignment.values(), getAttribute(\"facetValueAlign\"));\r\n }", "@Override\n public Component getTableCellRendererComponent(JTable table, Object value,\n boolean isSelected, boolean hasFocus, int row, int column) {\n\n final Component c = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);\n\n // Check the column name, if it is \"version\"\n if (table.getColumnName(column).compareToIgnoreCase(columnName) == 0) {\n // You know version column includes string\n Double val = NumberUtils.toDouble(value.toString().replace(\",\", \".\")) / 100.0;\n \n if (val > 1.0) val = 1.0;\n \n double H = val * 0.4; // Hue (note 0.4 = Green, see huge chart below)\n double S = 1; // Saturation\n double B = 1; // Brightness\n\n\n Color color = Color.getHSBColor((float)H, (float)S, (float)B);\n \n c.setForeground(color);\n c.setBackground(Color.BLACK);\n c.setFont(new Font(\"Dialog\", Font.BOLD, 12));\n setText(value.toString() + \"%\");\n setHorizontalAlignment(SwingConstants.CENTER);\n\n } else {\n // Here you should also stay at default\n //stay at default\n c.setForeground(Color.BLACK);\n c.setBackground(Color.WHITE);\n c.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n if (NumberUtils.isNumber(value.toString()))\n setHorizontalAlignment(SwingConstants.CENTER);\n else\n setHorizontalAlignment(SwingConstants.LEFT);\n }\n return c;\n }", "default boolean isHorizontalLineSegment() {\n return false;\n }", "public static HSSFCellStyle getHeaderStyle(final HSSFWorkbook workbook){\n\t\tHSSFCellStyle style=workbook.createCellStyle();\n\t\tFont font=workbook.createFont();\n\t\tfont.setFontHeightInPoints((short)12);\n\t\tfont.setFontName(HSSFFont.FONT_ARIAL);\n\t\tfont.setBoldweight(Font.BOLDWEIGHT_BOLD);\n\t\tstyle.setFont(font);\n\t\treturn style;\n\t}", "public double getMinWidth() { return getMinWidth(-1); }", "private String defaultFormat(double d) {\n\t\tString str = \"\" + d;\n\t\tint availableSpace = getSize().width - 2 * PIXEL_MARGIN;\n\t\tFontMetrics fm = getFontMetrics(getFont());\n\t\tif (fm.stringWidth(str) <= availableSpace) return str;\n\t\tint eIndex = str.indexOf(\"E\");\n\t\tString suffix = \"\";\n\t\tif (eIndex != -1) {\n\t\t\tsuffix = str.substring(eIndex);\n\t\t\tstr = str.substring(0, eIndex);\n\t\t\ttry {\n\t\t\t\td = parser.parse(str).doubleValue();\n\t\t\t} catch (ParseException ex) {\n\t\t\t\tthrow new ErrorException(ex);\n\t\t\t}\n\t\t}\n\t\tNumberFormat standard = NumberFormat.getNumberInstance(Locale.US);\n\t\tstandard.setGroupingUsed(false);\n\t\tString head = str.substring(0, str.indexOf('.') + 1);\n\t\tint fractionSpace = availableSpace - fm.stringWidth(head + suffix);\n\t\tif (fractionSpace > 0) {\n\t\t\tint fractionDigits = fractionSpace / fm.stringWidth(\"0\");\n\t\t\tstandard.setMaximumFractionDigits(fractionDigits);\n\t\t\treturn standard.format(d) + suffix;\n\t\t}\n\t\tstr = \"\";\n\t\twhile (fm.stringWidth(str + \"#\") <= availableSpace) {\n\t\t\tstr += \"#\";\n\t\t}\n\t\treturn str;\n\t}", "public String none() {\n if (!this.styledValueElements.isDefault()) {\n this.styledValueElements = new ShiftedText(this.styledValue);\n this.value = this.styledValueElements.stringify();\n }\n return this.value;\n }", "private int getActualWidth(boolean withColor){\n return 5+2*cellWidth + (withColor?2*7:0);\n }", "public boolean isPlain() {\n\treturn style == 0;\n }", "public int getHorSTX() {\r\n return horSTX;\r\n }", "protected final float getMajorAxisInsetSpan() {\n ViewInsets insets = getInsets();\n return (insets != null)\n ? (isXMajorAxis() ? insets.getLeftRight() : insets.getTopBottom())\n : 0;\n }", "public int getWidth() {\r\n\t\treturn defaultWidth;\r\n\t}", "public double getLeftYAxis() {\n\t\treturn getRawAxis(Axis_LeftY);\n\t}", "public int getLeftX() {\n\t\treturn 0;\r\n\t}", "private RectHV rectLb() {\n\n if (!horizontal) {\n return new RectHV(\n rect.xmin(),\n rect.ymin(),\n p.x(),\n rect.ymax()\n );\n\n\n } else {\n return new RectHV(\n rect.xmin(),\n rect.ymin(),\n rect.xmax(),\n p.y()\n );\n }\n }", "public boolean inVerticalBlank();", "public float getAlignment(int axis) {\n if (axis == View.X_AXIS) {\n return 0;\n }\n return super.getAlignment(axis);\n }", "public static XSSFCellStyle weekNumStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = baseStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(weekNumBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}", "public TextCellStyle getCellStyle(int charOffset);", "public int getNaturalOrientation() {\n if ((!this.mIsLandScapeDefault || this.mBaseDisplayWidth >= this.mBaseDisplayHeight) && this.mBaseDisplayWidth < this.mBaseDisplayHeight) {\n return 1;\n }\n return 2;\n }", "public int getStyle() {\n\treturn style;\n }", "public int getElementHorizontalalAlignmentLeft(WebDriver driver, String xpathUpper, String xpathLower) throws NumberFormatException, IOException {\n\t\tint X = driver.findElement(By.xpath(xpathUpper)).getLocation().getX();\n\t\tint x = driver.findElement(By.xpath(xpathLower)).getLocation().getX();\n\t\tint alignment = Math.abs(X - x);\n\t\tfileWriterPrinter(\"\\n\" + \"HORIZONTAL ALIGNMENT = \" + alignment);\n\t\treturn alignment;\n\t\t}", "float getHorizontalMargin() {\n return mTn.mHorizontalMargin;\n }" ]
[ "0.59124756", "0.58312887", "0.5740625", "0.5704761", "0.56889343", "0.56751096", "0.5672222", "0.56517875", "0.561892", "0.5555294", "0.5539223", "0.549785", "0.5479754", "0.54667926", "0.5432658", "0.53863364", "0.53493273", "0.53173125", "0.53007394", "0.5287728", "0.52869207", "0.526283", "0.52619", "0.5236418", "0.5211933", "0.5211727", "0.51954114", "0.517692", "0.51428074", "0.51399314", "0.51257277", "0.5120368", "0.5119287", "0.5094553", "0.5046274", "0.5045966", "0.50353336", "0.50339967", "0.5032264", "0.5017953", "0.501074", "0.5003098", "0.498083", "0.4979187", "0.49658406", "0.49655586", "0.49595523", "0.49566934", "0.49544525", "0.49525517", "0.49493745", "0.49343765", "0.49338582", "0.4923319", "0.49226558", "0.49151865", "0.49142635", "0.4890123", "0.48741442", "0.48586074", "0.48550126", "0.48536262", "0.4852448", "0.48489922", "0.48455784", "0.4827798", "0.48249596", "0.4818024", "0.48133105", "0.48131287", "0.48075014", "0.4785003", "0.47848707", "0.47822672", "0.4781218", "0.47810987", "0.47802767", "0.47750613", "0.47712025", "0.4768714", "0.47667933", "0.47649834", "0.4760276", "0.47597116", "0.47502", "0.47484547", "0.474603", "0.47446907", "0.47425687", "0.4736653", "0.47292137", "0.4728725", "0.47170073", "0.47151002", "0.47149158", "0.47061816", "0.47020468", "0.4701269", "0.46957964", "0.46912503" ]
0.79219055
0
Returns default style based on cell type
public int getCellStyle(Class<?> clazz) { int style; if (isString(clazz)) { style = Styles.defaultStringBorderStyle(); } else if (isDateTime(clazz) || isDate(clazz) || isLocalDateTime(clazz)) { if (numFmt == null) numFmt = DATETIME_FORMAT; style = (1 << INDEX_BORDER) | Horizontals.CENTER; } else if (isBool(clazz) || isChar(clazz)) { style = Styles.clearHorizontal(Styles.defaultStringBorderStyle()) | Horizontals.CENTER; } else if (isInt(clazz) || isLong(clazz)) { style = Styles.defaultIntBorderStyle(); } else if (isFloat(clazz) || isDouble(clazz) || isBigDecimal(clazz)) { style = Styles.defaultDoubleBorderStyle(); } else if (isLocalDate(clazz)) { if (numFmt == null) numFmt = DATE_FORMAT; style = (1 << INDEX_BORDER) | Horizontals.CENTER; } else if (isTime(clazz) || isLocalTime(clazz)) { if (numFmt == null) numFmt = TIME_FORMAT; style = (1 << INDEX_BORDER) | Horizontals.CENTER; } else { style = (1 << Styles.INDEX_FONT) | (1 << INDEX_BORDER); // Auto-style } // Reset custom number format if specified. if (numFmt != null) { style = Styles.clearNumFmt(style) | styles.addNumFmt(numFmt); } return style | (option & 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CellStyle createCellStyle() {\n\t\treturn null;\n\t}", "@Override\n\tpublic CellStyle getRowStyle() {\n\t\treturn null;\n\t}", "public int getNumCellStyles() {\n\t\treturn 0;\n\t}", "public int getCellStyle() {\n if (cellStyle != null) {\n return cellStyle;\n }\n setCellStyle(getCellStyle(clazz));\n return cellStyle;\n }", "public CellStyle getCellStyleAt(int arg0) {\n\t\treturn null;\n\t}", "@Override\n @Source({CellTable.Style.DEFAULT_CSS, \"../exercise/ScoresCellTableStyleSheet.css\"})\n TableResources.TableStyle cellTableStyle();", "public static Style getDefault() { return Style.SHAPE; }", "public HSSFCellStyle getStyle(HSSFWorkbook workbook) {\r\n\t\t// Set font\r\n\t\tHSSFFont font = workbook.createFont();\r\n\t\t// Set font size\r\n\t\t// font.setFontHeightInPoints((short)10);\r\n\t\t// Bold font\r\n\t\t// font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);\r\n\t\t// Set font name\r\n\t\tfont.setFontName(\"Courier New\");\r\n\t\t// Set the style;\r\n\t\tHSSFCellStyle style = workbook.createCellStyle();\r\n\t\t// Set the bottom border;\r\n\t\tstyle.setBorderBottom(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the bottom border color;\r\n\t\tstyle.setBottomBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the left border;\r\n\t\tstyle.setBorderLeft(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the left border color;\r\n\t\tstyle.setLeftBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the right border;\r\n\t\tstyle.setBorderRight(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the right border color;\r\n\t\tstyle.setRightBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the top border;\r\n\t\tstyle.setBorderTop(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the top border color;\r\n\t\tstyle.setTopBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Use the font set by the application in the style;\r\n\t\tstyle.setFont(font);\r\n\t\t// Set auto wrap;\r\n\t\tstyle.setWrapText(false);\r\n\t\t// Set the style of horizontal alignment to center alignment;\r\n\t\tstyle.setAlignment(HSSFCellStyle.ALIGN_CENTER);\r\n\t\t// Set the vertical alignment style to center alignment;\r\n\t\tstyle.setVerticalAlignment(HSSFCellStyle.VERTICAL_CENTER);\r\n\r\n\t\treturn style;\r\n\r\n\t}", "@Override\n\tpublic CellStyle getCellStyle(int index, T entity, Object value, AttributeModel attributeModel) {\n\t\tif (value instanceof Integer || value instanceof Long) {\n\t\t\treturn thousandsGrouping ? numberStyle : numberSimpleStyle;\n\t\t} else if (value instanceof Date) {\n\t\t\tif (attributeModel == null || !attributeModel.isWeek()) {\n\t\t\t\tif (attributeModel == null || AttributeDateType.DATE.equals(attributeModel.getDateType())) {\n\t\t\t\t\t// date style is the default\n\t\t\t\t\treturn dateStyle;\n\t\t\t\t} else if (AttributeDateType.TIMESTAMP.equals(attributeModel.getDateType())) {\n\t\t\t\t\treturn dateTimeStyle;\n\t\t\t\t} else if (AttributeDateType.TIME.equals(attributeModel.getDateType())) {\n\t\t\t\t\treturn timeStyle;\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (value instanceof BigDecimal) {\n\t\t\tif (attributeModel != null && attributeModel.isPercentage()) {\n\t\t\t\treturn bigDecimalPercentageStyle;\n\t\t\t} else if (attributeModel != null && attributeModel.isCurrency()) {\n\t\t\t\treturn currencyStyle;\n\t\t\t}\n\t\t\treturn bigDecimalStyle;\n\t\t}\n\t\treturn normal;\n\t}", "private static Map<String, CellStyle> createStyles(Workbook wb) {\r\n Map<String, CellStyle> styles = new HashMap<>();\r\n DataFormat df = wb.createDataFormat();\r\n\r\n Font font1 = wb.createFont();\r\n\r\n CellStyle style;\r\n Font headerFont = wb.createFont();\r\n headerFont.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n style.setFont(headerFont);\r\n styles.put(\"header\", style);\r\n\r\n style = wb.createCellStyle();\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(false);\r\n styles.put(\"cell_centered\", style);\r\n\r\n style = wb.createCellStyle();\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(true);\r\n styles.put(\"cell_centered_locked\", style);\r\n// style = createBorderedStyle(wb);\r\n// style.setAlignment(CellStyle.ALIGN_CENTER);\r\n// style.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\r\n// style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n// style.setFont(headerFont);\r\n// style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n// styles.put(\"header_date\", style);\r\n font1.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setFont(font1);\r\n styles.put(\"cell_b\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(false);\r\n styles.put(\"cell_b_centered\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(true);\r\n styles.put(\"cell_b_centered_locked\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setFont(font1);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_b_date\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setFont(font1);\r\n style.setFillForegroundColor(IndexedColors.GREY_25_PERCENT.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_g\", style);\r\n\r\n Font font2 = wb.createFont();\r\n font2.setColor(IndexedColors.BLUE.getIndex());\r\n font2.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setFont(font2);\r\n styles.put(\"cell_bb\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setFont(font1);\r\n style.setFillForegroundColor(IndexedColors.GREY_25_PERCENT.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_bg\", style);\r\n\r\n Font font3 = wb.createFont();\r\n font3.setFontHeightInPoints((short) 14);\r\n font3.setColor(IndexedColors.DARK_BLUE.getIndex());\r\n font3.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setFont(font3);\r\n style.setWrapText(true);\r\n styles.put(\"cell_h\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setWrapText(true);\r\n styles.put(\"cell_normal\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setWrapText(true);\r\n styles.put(\"cell_normal_centered\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setWrapText(true);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_normal_date\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setIndention((short) 1);\r\n style.setWrapText(true);\r\n styles.put(\"cell_indented\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setFillForegroundColor(IndexedColors.BLUE.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n styles.put(\"cell_blue\", style);\r\n\r\n return styles;\r\n }", "@Override\n\tpublic CellStyle getCellStyle(int index, T entity, Object value, AttributeModel attributeModel) {\n\t\tif (value instanceof Integer || value instanceof Long) {\n\t\t\treturn thousandsGrouping ? numberStyle : numberSimpleStyle;\n\t\t} else if (value instanceof Date || value instanceof LocalDate || value instanceof LocalDateTime) {\n\t\t\tif (attributeModel == null || !attributeModel.isWeek()) {\n\t\t\t\treturn getDateStyle(attributeModel);\n\t\t\t}\n\t\t} else if (value instanceof BigDecimal || NumberUtils.isDouble(value)) {\n\t\t\treturn getDecimalStyle(attributeModel);\n\t\t}\n\t\treturn normal;\n\t}", "protected CellStyle getTextCellStyle(final Workbook workbook) {\n final CellStyle myStyle = ExportExcelUtils.makeFullBorderStyle(workbook);\n myStyle.setAlignment(CellStyle.ALIGN_LEFT);\n return myStyle;\n }", "public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle getNwCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(NWCELL$26, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "private static Map<String, CellStyle> createStyles(Workbook wb)\r\n\t{\r\n\t\tMap<String, CellStyle> styles = new HashMap<String, CellStyle>();\r\n\t\tDataFormat df = wb.createDataFormat();\r\n\r\n\t\tFont titleFont = wb.createFont();\r\n\t\ttitleFont.setFontHeightInPoints((short) 18);\r\n\t\ttitleFont.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n\t\ttitleFont.setColor(IndexedColors.DARK_BLUE.getIndex());\r\n\t\tCellStyle titleStyle = wb.createCellStyle();\r\n\t\ttitleStyle.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t\ttitleStyle.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t\ttitleStyle.setFont(titleFont);\r\n\t\tborderCell(titleStyle, CellStyle.BORDER_THICK, IndexedColors.BLUE.getIndex());\r\n\t\tstyles.put(TITLE_STYLE_NAME, titleStyle);\r\n\r\n\t\tFont headerFont = wb.createFont();\r\n\t\theaderFont.setFontHeightInPoints((short) 11);\r\n\t\theaderFont.setColor(IndexedColors.WHITE.getIndex());\r\n\t\tCellStyle headerStyle = wb.createCellStyle();\r\n\t\theaderStyle.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t\theaderStyle.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t\theaderStyle.setFillForegroundColor(IndexedColors.GREY_50_PERCENT.getIndex());\r\n\t\theaderStyle.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n\t\theaderStyle.setFont(headerFont);\r\n\t\theaderStyle.setWrapText(true);\r\n\t\tstyles.put(HEADER_STYLE_NAME, headerStyle);\r\n\r\n\t\tCellStyle plainCellStyle = wb.createCellStyle();\r\n\t\tplainCellStyle.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t\tborderCell(plainCellStyle, CellStyle.BORDER_THIN, IndexedColors.BLACK.getIndex());\r\n\t\tstyles.put(PLAIN_CELL_STYLE_NAME, plainCellStyle);\r\n\r\n\t\tCellStyle dateCellStyle = wb.createCellStyle();\r\n\t\tdateCellStyle.cloneStyleFrom(plainCellStyle);\r\n\t\tdateCellStyle.setDataFormat(df.getFormat(\"yyyy-mm-dd\"));\r\n\t\tstyles.put(DATE_CELL_STYLE_NAME, dateCellStyle);\r\n\r\n\t\tCellStyle integerFormulaStyle = wb.createCellStyle();\r\n\t\tintegerFormulaStyle.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t\tintegerFormulaStyle.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t\tintegerFormulaStyle.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\r\n\t\tintegerFormulaStyle.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n\t\tborderCell(integerFormulaStyle, CellStyle.BORDER_DOTTED, IndexedColors.GREY_80_PERCENT.getIndex());\r\n\t\tintegerFormulaStyle.setDataFormat(df.getFormat(\"0\"));\r\n\t\tintegerFormulaStyle.setWrapText(true);\r\n\t\tstyles.put(INTEGER_FORMULA_STYLE_NAME, integerFormulaStyle);\r\n\r\n\t\tCellStyle floatFormulaStyle = wb.createCellStyle();\r\n\t\tfloatFormulaStyle.cloneStyleFrom(integerFormulaStyle);\r\n\t\tfloatFormulaStyle.setDataFormat(df.getFormat(\"0.00\"));\r\n\t\tstyles.put(FLOAT_FORMULA_STYLE_NAME, floatFormulaStyle);\r\n\r\n\t\tCellStyle percentageFormulaStyle = wb.createCellStyle();\r\n\t\tpercentageFormulaStyle.cloneStyleFrom(integerFormulaStyle);\r\n\t\tpercentageFormulaStyle.setDataFormat(df.getFormat(\"0.00 %\"));\r\n//\t\tpercentageFormulaStyle.setDataFormat((short) 9); // See BuiltinFormats\r\n\t\tshort colorIndex = IndexedColors.INDIGO.getIndex();\r\n\t\tColor customColor = defineColor(wb, colorIndex, 0x88, 0xFF, 0x55);\r\n\t\tif (percentageFormulaStyle instanceof XSSFCellStyle)\r\n\t\t{\r\n\t\t\t((XSSFCellStyle) percentageFormulaStyle).setFillForegroundColor((XSSFColor) customColor);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tpercentageFormulaStyle.setFillForegroundColor(colorIndex);\r\n\t\t}\r\n\t\tstyles.put(PERCENTAGE_FORMULA_STYLE_NAME, percentageFormulaStyle);\r\n\r\n\t\treturn styles;\r\n\t}", "public static String get_cell_style_id(){\r\n\t\t_cell_style_id ++;\r\n\t\treturn \"cond_ce\" + _cell_style_id;\r\n\t}", "public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle getSwCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(SWCELL$20, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "protected CellStyle makeStyleForEmptyTitleCell(final Workbook workbook) {\n final CellStyle myStyle = workbook.createCellStyle();\n myStyle.setBorderTop(CellStyle.BORDER_THIN);\n myStyle.setBorderBottom(CellStyle.BORDER_THIN);\n myStyle.setBorderLeft(CellStyle.BORDER_NONE);\n myStyle.setBorderRight(CellStyle.BORDER_NONE);\n return myStyle;\n }", "public static XSSFCellStyle baseStyle(XSSFWorkbook wb) {\n\t\t// Define color palette\n\t\tcmBg = new XSSFColor(new java.awt.Color(33, 150, 243, 0)); // #2196F3\n\t\ttdBg = new XSSFColor(new java.awt.Color(139, 195, 74, 0)); // #8BC34A\n\t\ttpBg = new XSSFColor(new java.awt.Color(255, 193, 7, 0)); // #FFC107\n\t\tccEtBg = new XSSFColor(new java.awt.Color(244, 67, 54, 0)); // #F44336\n\t\tsiBg = new XSSFColor(new java.awt.Color(0, 117, 169, 0));\n\t\tasrBg = new XSSFColor(new java.awt.Color(50, 117, 108, 0));\n\n\t\tdateBg = new XSSFColor(new java.awt.Color(189, 189, 189, 0)); // #BDBDBD\n\t\tweekNumBg = new XSSFColor(new java.awt.Color(224, 224, 224, 0)); // #E0E0E0\n\t\tholidaysBg = new XSSFColor(new java.awt.Color(255, 87, 34, 0)); // #FF5722\n\n\t\t// create font\n\t\tFont font = wb.createFont();\n\t\tfont.setFontHeightInPoints((short) 11);\n\t\tfont.setFontName(\"Arial\");\n\t\tfont.setColor(IndexedColors.BLACK.getIndex());\n\t\tfont.setBold(false);\n\t\tfont.setItalic(false);\n\n\t\t// Create cell style\n\t\tXSSFCellStyle cellStyle = wb.createCellStyle();\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setVerticalAlignment(VerticalAlignment.CENTER);\n\t\tcellStyle.setWrapText(true); // Set wordwrap\n\n\t\t// Setting font to style\n\t\tcellStyle.setFont(font);\n\n\t\treturn cellStyle;\n\t}", "public static XSSFCellStyle tdStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = baseStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(tdBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}", "public void customiseStatusCells() {\n TableColumn column = table.getVisibleLeafColumn(5);\n column.setCellFactory(new Callback<TableColumn, TableCell>() {\n public TableCell call(TableColumn p) {\n //cell implementation\n return new styleCell();\n }\n });\n }", "public static XSSFCellStyle tpStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = baseStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(tpBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}", "private Style createDefaultStyle() {\n Rule rule = createRule(LINE_COLOUR, FILL_COLOUR); //utilizamos las definiciones anteriores\n\n FeatureTypeStyle fts = sf.createFeatureTypeStyle();\n fts.rules().add(rule);\n\n Style style = sf.createStyle();\n style.featureTypeStyles().add(fts);\n return style;\n}", "public void modify( CellStyle style );", "public HSSFCellStyle getColumnTopStyle(HSSFWorkbook workbook) {\r\n\r\n\t\t// Set font\r\n\t\tHSSFFont font = workbook.createFont();\r\n\t\t// Set font size\r\n\t\tfont.setFontHeightInPoints((short) 11);\r\n\t\t// Bold font\r\n\t\tfont.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);\r\n\t\t// Set font name\r\n\t\tfont.setFontName(\"Courier New\");\r\n\t\t// Set the style;\r\n\t\tHSSFCellStyle style = workbook.createCellStyle();\r\n\t\t// Set the bottom border;\r\n\t\tstyle.setBorderBottom(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the bottom border color;\r\n\t\tstyle.setBottomBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the left border;\r\n\t\tstyle.setBorderLeft(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the left border color;\r\n\t\tstyle.setLeftBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the right border;\r\n\t\tstyle.setBorderRight(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the right border color;\r\n\t\tstyle.setRightBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the top border;\r\n\t\tstyle.setBorderTop(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the top border color;\r\n\t\tstyle.setTopBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Use the font set by the application in the style;\r\n\t\tstyle.setFont(font);\r\n\t\t// Set auto wrap;\r\n\t\tstyle.setWrapText(false);\r\n\t\t// Set the style of horizontal alignment to center alignment;\r\n\t\tstyle.setAlignment(HSSFCellStyle.ALIGN_CENTER);\r\n\t\t// Set the vertical alignment style to center alignment;\r\n\t\tstyle.setVerticalAlignment(HSSFCellStyle.VERTICAL_CENTER);\r\n\r\n\t\treturn style;\r\n\r\n\t}", "@Override\n\tpublic CellStyle getHeaderStyle(int index) {\n\t\tif (index == 0) {\n\t\t\treturn titleStyle;\n\t\t}\n\t\tif (headerStyle == null) {\n\t\t\treturn headerStyle;\n\t\t}\n\t\treturn headerStyle;\n\t}", "public abstract String getStyle();", "public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle getSeCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(SECELL$18, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public String getCellType() {\n return this.cellType;\n }", "public CellType getType()\r\n/* 35: */ {\r\n/* 36: 94 */ return CellType.EMPTY;\r\n/* 37: */ }", "public Object getDefault(VisualStyle style) {\n \t\tif (style == null)\n \t\t\treturn null;\n \n \t\tAppearance a = null;\n \n \t\tif (isNodeProp())\n \t\t\ta = style.getNodeAppearanceCalculator().getDefaultAppearance();\n \t\telse\n \t\t\ta = style.getEdgeAppearanceCalculator().getDefaultAppearance();\n \n \t\treturn a.get(this);\n \t}", "private static Map<String, CellStyle> createStyles(Workbook wbl) {\r\n\r\n\tMap<String, CellStyle> styles = new HashMap<String, CellStyle>();\r\n\ttry {\r\n\t CellStyle style;\r\n\t Font titleFont = wbl.createFont();\r\n\t titleFont.setFontHeightInPoints((short) 18);\r\n\t titleFont.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n\t style = wbl.createCellStyle();\r\n\t style.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t style.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t style.setFont(titleFont);\r\n\t styles.put(\"title\", style);\r\n\r\n\t Font monthFont = wbl.createFont();\r\n\t monthFont.setFontHeightInPoints((short) 11);\r\n\t monthFont.setColor(IndexedColors.WHITE.getIndex());\r\n\t style = wbl.createCellStyle();\r\n\t style.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t style.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t style.setFillForegroundColor(IndexedColors.GREY_50_PERCENT.getIndex());\r\n\t style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n\t style.setFont(monthFont);\r\n\t style.setWrapText(true);\r\n\t style.setRightBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderRight(CellStyle.BORDER_THIN);\r\n\t style.setLeftBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderLeft(CellStyle.BORDER_THIN);\r\n\t style.setTopBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderTop(CellStyle.BORDER_THIN);\r\n\t style.setBottomBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderBottom(CellStyle.BORDER_THIN);\r\n\t styles.put(\"header\", style);\r\n\t \r\n\t //MandatoryColumn to admission process\r\n\t Font mandatoryColumnFont = wbl.createFont();\r\n\t mandatoryColumnFont.setFontHeightInPoints((short) 11);\r\n\t mandatoryColumnFont.setColor(IndexedColors.RED.getIndex());\r\n\t style = wbl.createCellStyle();\r\n\t style.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t style.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t style.setFillForegroundColor(IndexedColors.GREY_50_PERCENT.getIndex());\r\n\t style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n\t style.setFont(mandatoryColumnFont);\r\n\t style.setWrapText(true);\r\n\t style.setRightBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderRight(CellStyle.BORDER_THIN);\r\n\t style.setLeftBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderLeft(CellStyle.BORDER_THIN);\r\n\t style.setTopBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderTop(CellStyle.BORDER_THIN);\r\n\t style.setBottomBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderBottom(CellStyle.BORDER_THIN);\r\n\t styles.put(\"headers\", style);\r\n\r\n\t style = wbl.createCellStyle();\r\n\t style.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t style.setWrapText(true);\r\n\t style.setBorderRight(CellStyle.BORDER_THIN);\r\n\t style.setRightBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderLeft(CellStyle.BORDER_THIN);\r\n\t style.setLeftBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderTop(CellStyle.BORDER_THIN);\r\n\t style.setTopBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderBottom(CellStyle.BORDER_THIN);\r\n\t style.setBottomBorderColor(IndexedColors.BLACK.getIndex());\r\n\t styles.put(\"cell\", style);\r\n\r\n\t style = wbl.createCellStyle();\r\n\t style.setWrapText(true);\r\n\t style.setBorderRight(CellStyle.BORDER_THIN);\r\n\t style.setRightBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderLeft(CellStyle.BORDER_THIN);\r\n\t style.setLeftBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderTop(CellStyle.BORDER_THIN);\r\n\t style.setTopBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderBottom(CellStyle.BORDER_THIN);\r\n\t style.setBottomBorderColor(IndexedColors.BLACK.getIndex());\r\n\t styles.put(\"string\", style);\r\n\r\n\t CreationHelper createHelper = wbl.getCreationHelper();\r\n\t style = wbl.createCellStyle();\r\n\t style.setDataFormat(createHelper.createDataFormat().getFormat(\"dd-MMM-yyyy\"));\r\n\t style.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t style.setWrapText(true);\r\n\t style.setBorderRight(CellStyle.BORDER_THIN);\r\n\t style.setRightBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderLeft(CellStyle.BORDER_THIN);\r\n\t style.setLeftBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderTop(CellStyle.BORDER_THIN);\r\n\t style.setTopBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderBottom(CellStyle.BORDER_THIN);\r\n\t style.setBottomBorderColor(IndexedColors.BLACK.getIndex());\r\n\t styles.put(\"date\", style);\r\n\r\n\t} catch (Exception ex) {\r\n\t ex.printStackTrace();\r\n\t JRExceptionClient jre = new JRExceptionClient();jre.sendException(ex);jre = null;\r\n\t}\r\n\r\n\treturn styles;\r\n }", "public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle getNeCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(NECELL$24, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public TextCellStyle getCellStyle(int charOffset);", "Style getStyle();", "protected void buildCellBaseStyle( ICellContent cell,\n \t\t\tStringBuffer styleBuffer )\n \t{\n \t\tIStyle style = null;\n \t\tif ( isEmbeddable )\n \t\t{\n \t\t\tstyle = cell.getStyle( );\n \t\t}\n \t\telse\n \t\t{\n \t\t\tstyle = cell.getInlineStyle( );\n \t\t}\n \t\t// build the cell's style except border\n \t\tAttributeBuilder.buildCellStyle( styleBuffer, style, parentEmitter );\n \n \t\t// prepare build the cell's border\n \t\tint columnCount = -1;\n \t\tIStyle cellStyle = null, cellComputedStyle = null;\n \t\tIStyle rowStyle = null, rowComputedStyle = null;\n \n \t\tcellStyle = cell.getStyle( );\n \t\tcellComputedStyle = cell.getComputedStyle( );\n \t\tIRowContent row = (IRowContent) cell.getParent( );\n \t\tif ( null != row )\n \t\t{\n \t\t\trowStyle = row.getStyle( );\n \t\t\trowComputedStyle = row.getComputedStyle( );\n \t\t\tITableContent table = row.getTable( );\n \t\t\tif ( null != table )\n \t\t\t{\n \t\t\t\tcolumnCount = table.getColumnCount( );\n \t\t\t}\n \t\t}\n \n \t\t// build the cell's border\n \t\tif ( null == rowStyle || cell.getColumn( ) < 0 || columnCount < 1 )\n \t\t{\n \t\t\tif ( null != cellStyle )\n \t\t\t{\n \t\t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\t\tHTMLTags.ATTR_BORDER_TOP,\n \t\t\t\t\t\tcellStyle.getBorderTopWidth( ),\n \t\t\t\t\t\tcellStyle.getBorderTopStyle( ),\n \t\t\t\t\t\tcellStyle.getBorderTopColor( ),\n \t\t\t\t\t\t0,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\t0 );\n \n \t\t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\t\tHTMLTags.ATTR_BORDER_RIGHT,\n \t\t\t\t\t\tcellStyle.getBorderRightWidth( ),\n \t\t\t\t\t\tcellStyle.getBorderRightStyle( ),\n \t\t\t\t\t\tcellStyle.getBorderRightColor( ),\n \t\t\t\t\t\t0,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\t0 );\n \n \t\t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\t\tHTMLTags.ATTR_BORDER_BOTTOM,\n \t\t\t\t\t\tcellStyle.getBorderBottomWidth( ),\n \t\t\t\t\t\tcellStyle.getBorderBottomStyle( ),\n \t\t\t\t\t\tcellStyle.getBorderBottomColor( ),\n \t\t\t\t\t\t0,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\t0 );\n \n \t\t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\t\tHTMLTags.ATTR_BORDER_LEFT,\n \t\t\t\t\t\tcellStyle.getBorderLeftWidth( ),\n \t\t\t\t\t\tcellStyle.getBorderLeftStyle( ),\n \t\t\t\t\t\tcellStyle.getBorderLeftColor( ),\n \t\t\t\t\t\t0,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\t0 );\n \t\t\t}\n \t\t}\n \t\telse if ( null == cellStyle )\n \t\t{\n \t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\tHTMLTags.ATTR_BORDER_TOP,\n \t\t\t\t\tnull,\n \t\t\t\t\tnull,\n \t\t\t\t\tnull,\n \t\t\t\t\t0,\n \t\t\t\t\trowStyle.getBorderTopWidth( ),\n \t\t\t\t\trowStyle.getBorderTopStyle( ),\n \t\t\t\t\trowStyle.getBorderTopColor( ),\n \t\t\t\t\t0 );\n \n \t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\tHTMLTags.ATTR_BORDER_RIGHT,\n \t\t\t\t\tnull,\n \t\t\t\t\tnull,\n \t\t\t\t\tnull,\n \t\t\t\t\t0,\n \t\t\t\t\trowStyle.getBorderRightWidth( ),\n \t\t\t\t\trowStyle.getBorderRightStyle( ),\n \t\t\t\t\trowStyle.getBorderRightColor( ),\n \t\t\t\t\t0 );\n \n \t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\tHTMLTags.ATTR_BORDER_BOTTOM,\n \t\t\t\t\tnull,\n \t\t\t\t\tnull,\n \t\t\t\t\tnull,\n \t\t\t\t\t0,\n \t\t\t\t\trowStyle.getBorderBottomWidth( ),\n \t\t\t\t\trowStyle.getBorderBottomStyle( ),\n \t\t\t\t\trowStyle.getBorderBottomColor( ),\n \t\t\t\t\t0 );\n \n \t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\tHTMLTags.ATTR_BORDER_LEFT,\n \t\t\t\t\tnull,\n \t\t\t\t\tnull,\n \t\t\t\t\tnull,\n \t\t\t\t\t0,\n \t\t\t\t\trowStyle.getBorderLeftWidth( ),\n \t\t\t\t\trowStyle.getBorderLeftStyle( ),\n \t\t\t\t\trowStyle.getBorderLeftColor( ),\n \t\t\t\t\t0 );\n \t\t}\n \t\telse\n \t\t{\n \t\t\t// We have treat the column span. But we haven't treat the row span.\n \t\t\t// It need to be solved in the future.\n \t\t\tint cellWidthValue = getBorderWidthValue( cellComputedStyle,\n \t\t\t\t\tIStyle.STYLE_BORDER_TOP_WIDTH );\n \t\t\tint rowWidthValue = getBorderWidthValue( rowComputedStyle,\n \t\t\t\t\tIStyle.STYLE_BORDER_TOP_WIDTH );\n \t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\tHTMLTags.ATTR_BORDER_TOP,\n \t\t\t\t\tcellStyle.getBorderTopWidth( ),\n \t\t\t\t\tcellStyle.getBorderTopStyle( ),\n \t\t\t\t\tcellStyle.getBorderTopColor( ),\n \t\t\t\t\tcellWidthValue,\n \t\t\t\t\trowStyle.getBorderTopWidth( ),\n \t\t\t\t\trowStyle.getBorderTopStyle( ),\n \t\t\t\t\trowStyle.getBorderTopColor( ),\n \t\t\t\t\trowWidthValue );\n \n \t\t\tif ( ( cell.getColumn( ) + cell.getColSpan( ) ) == columnCount )\n \t\t\t{\n \t\t\t\tcellWidthValue = getBorderWidthValue( cellComputedStyle,\n \t\t\t\t\t\tIStyle.STYLE_BORDER_RIGHT_WIDTH );\n \t\t\t\trowWidthValue = getBorderWidthValue( rowComputedStyle,\n \t\t\t\t\t\tIStyle.STYLE_BORDER_RIGHT_WIDTH );\n \t\t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\t\tHTMLTags.ATTR_BORDER_RIGHT,\n \t\t\t\t\t\tcellStyle.getBorderRightWidth( ),\n \t\t\t\t\t\tcellStyle.getBorderRightStyle( ),\n \t\t\t\t\t\tcellStyle.getBorderRightColor( ),\n \t\t\t\t\t\tcellWidthValue,\n \t\t\t\t\t\trowStyle.getBorderRightWidth( ),\n \t\t\t\t\t\trowStyle.getBorderRightStyle( ),\n \t\t\t\t\t\trowStyle.getBorderRightColor( ),\n \t\t\t\t\t\trowWidthValue );\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\t\tHTMLTags.ATTR_BORDER_RIGHT,\n \t\t\t\t\t\tcellStyle.getBorderRightWidth( ),\n \t\t\t\t\t\tcellStyle.getBorderRightStyle( ),\n \t\t\t\t\t\tcellStyle.getBorderRightColor( ),\n \t\t\t\t\t\t0,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\t0 );\n \t\t\t}\n \n \t\t\tcellWidthValue = getBorderWidthValue( cellComputedStyle,\n \t\t\t\t\tIStyle.STYLE_BORDER_BOTTOM_WIDTH );\n \t\t\trowWidthValue = getBorderWidthValue( rowComputedStyle,\n \t\t\t\t\tIStyle.STYLE_BORDER_BOTTOM_WIDTH );\n \t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\tHTMLTags.ATTR_BORDER_BOTTOM,\n \t\t\t\t\tcellStyle.getBorderBottomWidth( ),\n \t\t\t\t\tcellStyle.getBorderBottomStyle( ),\n \t\t\t\t\tcellStyle.getBorderBottomColor( ),\n \t\t\t\t\tcellWidthValue,\n \t\t\t\t\trowStyle.getBorderBottomWidth( ),\n \t\t\t\t\trowStyle.getBorderBottomStyle( ),\n \t\t\t\t\trowStyle.getBorderBottomColor( ),\n \t\t\t\t\trowWidthValue );\n \n \t\t\tif ( cell.getColumn( ) == 0 )\n \t\t\t{\n \t\t\t\tcellWidthValue = getBorderWidthValue( cellComputedStyle,\n \t\t\t\t\t\tIStyle.STYLE_BORDER_LEFT_WIDTH );\n \t\t\t\trowWidthValue = getBorderWidthValue( rowComputedStyle,\n \t\t\t\t\t\tIStyle.STYLE_BORDER_LEFT_WIDTH );\n \t\t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\t\tHTMLTags.ATTR_BORDER_LEFT,\n \t\t\t\t\t\tcellStyle.getBorderLeftWidth( ),\n \t\t\t\t\t\tcellStyle.getBorderLeftStyle( ),\n \t\t\t\t\t\tcellStyle.getBorderLeftColor( ),\n \t\t\t\t\t\tcellWidthValue,\n \t\t\t\t\t\trowStyle.getBorderLeftWidth( ),\n \t\t\t\t\t\trowStyle.getBorderLeftStyle( ),\n \t\t\t\t\t\trowStyle.getBorderLeftColor( ),\n \t\t\t\t\t\trowWidthValue );\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\t\tHTMLTags.ATTR_BORDER_LEFT,\n \t\t\t\t\t\tcellStyle.getBorderLeftWidth( ),\n \t\t\t\t\t\tcellStyle.getBorderLeftStyle( ),\n \t\t\t\t\t\tcellStyle.getBorderLeftColor( ),\n \t\t\t\t\t\t0,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\t0 );\n \t\t\t}\n \n \t\t}\n \n \t\t// output in-line style\n \t\twriter.attribute( HTMLTags.ATTR_STYLE, styleBuffer.toString( ) );\n \t}", "public CellType getType()\r\n/* 151: */ {\r\n/* 152:270 */ return CellType.ERROR;\r\n/* 153: */ }", "public int getCellStyleIndex() {\n return cellStyleIndex >= 0 ? cellStyleIndex : (cellStyleIndex = styles != null && cellStyle != null ? styles.of(cellStyle) : -1);\n }", "protected CellStyle getNumberCellStyle(final Workbook workbook) {\n final CellStyle numberStyle = ExportExcelUtils.makeFullBorderStyle(workbook);\n numberStyle.setAlignment(CellStyle.ALIGN_RIGHT);\n return numberStyle;\n }", "private OOBibStyle getSelectedStyle() {\n if (selectionModel.getSelected().size() > 0) {\n return selectionModel.getSelected().get(0);\n } else {\n return null;\n }\n }", "private void defaultStyle() {\n\t\t//idField.setStyle(\"\");\n\t\tproductNameField.setStyle(\"\");\n\t\tinvField.setStyle(\"\");\n\t\tpriceField.setStyle(\"\");\n\t\tmaxField.setStyle(\"\");\n\t\tminField.setStyle(\"\");\n\t}", "private static Map<String, CellStyle> createStyles(Workbook wb) {\n Map<String, CellStyle> styles = new HashMap<>();\n\n CellStyle style;\n Font headerFont = wb.createFont();\n headerFont.setBold(true);\n style = createBorderedStyle(wb);\n style.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\n style.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n style.setVerticalAlignment(VerticalAlignment.TOP);\n style.setWrapText(true);\n style.setFont(headerFont);\n styles.put(\"header\", style);\n\n style = createBorderedStyle(wb);\n style.setVerticalAlignment(VerticalAlignment.TOP);\n style.setWrapText(true);\n styles.put(\"body\", style);\n\n return styles;\n }", "@Override\n\tpublic CellStyle getHeaderStyle(int index) {\n\t\treturn headerStyle;\n\t}", "@SuppressWarnings(\"unchecked\")\n public TCS defaultEdging() {\n cellStyle_p.setBorderBottom(BORDER_THIN);\n cellStyle_p.setBottomBorderColor(BLACK.getIndex());\n cellStyle_p.setBorderLeft(BORDER_THIN);\n cellStyle_p.setLeftBorderColor(BLACK.getIndex());\n cellStyle_p.setBorderRight(BORDER_THIN);\n cellStyle_p.setRightBorderColor(BLACK.getIndex());\n cellStyle_p.setBorderTop(BORDER_THIN);\n cellStyle_p.setTopBorderColor(BLACK.getIndex());\n\n return (TCS) this;\n }", "public int getCellShape() {\n if (myCellShape.equals(\"TRIANGLE\")) {\n return 2;\n }\n if (myCellShape.equals(\"HEXAGON\")) {\n return 1;\n }\n if (myCellShape.equals(\"SQUARE\")) {\n return 0;\n }\n else {\n throw new IllegalArgumentException(\"Cell Shape given is invalid\");\n }\n }", "public int getStyle() {\n\treturn style;\n }", "public String getCellStyle() throws TextException {\r\n try {\r\n return getXPropertySet().getPropertyValue(\"CellStyle\").toString();\r\n } catch (Exception exception) {\r\n TextException textException = new TextException(exception.getMessage());\r\n textException.initCause(exception);\r\n throw textException;\r\n }\r\n }", "public static XSSFCellStyle tdBorderStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = baseBorderStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(tdBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}", "@Override\n\tpublic void setRowStyle(CellStyle arg0) {\n\t\t\n\t}", "public String getStyle() {\r\n return style;\r\n }", "public Font getCellFont() {\n return cellFont;\n }", "public String getStyle() {\n return style;\n }", "public String getStyle() {\n return style;\n }", "public String getStyle() {\n return style;\n }", "public String getStyle() {\n return style;\n }", "@Override\n\tpublic List<Cell> getCellTypes() {\n\t\treturn CELLS;\n\t}", "private static String getStyleClass(Object obj) { return ((MetaData)obj).getStyle(); }", "public TextStyle getStyle(\n )\n {return style;}", "public int getStyle() {\r\n\t\treturn style;\r\n\t}", "public void setCellStyle( CellStyle style )\n {\n for (Cell[] colCells : cells) {\n for (Cell cell : colCells) {\n cell.setCellStyle(style);\n }\n }\n }", "public static XSSFCellStyle cmStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = baseStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(cmBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}", "public static XSSFCellStyle weekNumStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = baseStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(weekNumBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}", "public static XSSFCellStyle tpBorderStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = baseBorderStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(tpBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}", "public String getStyleClass() {\r\n return Util.getQualifiedStyleClass(this,\r\n styleClass, \r\n CSS_DEFAULT.OUTPUT_CHART_DEFAULT_STYLE_CLASS,\r\n \"styleClass\");\r\n }", "private WritableCellFormat initializeWritableWritableCelFormat() throws WriteException{\r\n\t\tWritableFont times10ptBoldUnderline = new WritableFont(\r\n\t\t\t\tWritableFont.TIMES, 12, WritableFont.BOLD, false,\r\n\t\t\t\tUnderlineStyle.NO_UNDERLINE);\r\n\t\tWritableCellFormat timesBoldUnderline = new WritableCellFormat(times10ptBoldUnderline);\r\n\t\t// Lets automatically wrap the cells\r\n\t\ttimesBoldUnderline.setWrap(false);\r\n\t\t\r\n\t\treturn timesBoldUnderline;\r\n\t}", "@Override\n public TableCellRenderer getCellRenderer(int row, int column) {\n DefaultTableCellRenderer renderer;\n switch (columnTypes[column]) {\n case TEXT_COL:\n renderer = new DefaultTableCellRenderer();\n renderer.setHorizontalAlignment(LEFT);\n break;\n\n case CURR0_COL:\n case CURR2_COL:\n Vector<CurrencyType> rowCurrencies = getDataModel().getRowCurrencies();\n CurrencyType curr;\n if (0 <= row && row < rowCurrencies.size()) {\n curr = rowCurrencies.get(row); // Security\n } else {\n curr = book.getCurrencies().getBaseType(); // Footer reports base currency\n }\n renderer = new CurrencyRenderer(mdGUI, curr, columnTypes[column].equals(CURR0_COL));\n renderer.setHorizontalAlignment(RIGHT);\n break;\n\n case PERCENT_COL:\n renderer = new PercentRenderer(mdGUI);\n renderer.setHorizontalAlignment(RIGHT);\n break;\n\n default:\n renderer = new DefaultTableCellRenderer();\n }\n return renderer;\n }", "public abstract TC createStyle();", "public String getCellTypeName()\n {\n return this.cellTypeName;\n }", "public String getStyle() {\n\t\treturn style;\n\t}", "public static HSSFCellStyle getHeaderStyle(final HSSFWorkbook workbook){\n\t\tHSSFCellStyle style=workbook.createCellStyle();\n\t\tFont font=workbook.createFont();\n\t\tfont.setFontHeightInPoints((short)12);\n\t\tfont.setFontName(HSSFFont.FONT_ARIAL);\n\t\tfont.setBoldweight(Font.BOLDWEIGHT_BOLD);\n\t\tstyle.setFont(font);\n\t\treturn style;\n\t}", "public FontStyle getStyle();", "@Override\n public String getCSSStyle() {\n return null;\n }", "public boolean testFillstyles(EIfcfillareastyle type) throws SdaiException;", "private WritableCellFormat initializeWritableCellFormat() throws WriteException{\r\n\t\tWritableFont times12pt = new WritableFont(WritableFont.TIMES, 12);\r\n\t\t// Define the cell format\r\n\t\tWritableCellFormat times = new WritableCellFormat(times12pt);\r\n\t\t// Lets automatically wrap the cells\r\n\t\ttimes.setWrap(true);\r\n\t\t\r\n\t\treturn times;\r\n\t}", "public static XSSFCellStyle dateStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = dateFormatStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(dateBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}", "public static XSSFCellStyle holidayStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = baseStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(holidaysBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}", "public NotebookCell setCellType(String cellType) {\n this.cellType = cellType;\n return this;\n }", "public abstract DefaultCell getGraphCell();", "private void setCellStyle( CellStyle style, int rowIx, int colIx )\n {\n \tcells[colIx][rowIx].setCellStyle( style );\n }", "public static synchronized PdfPCell getFormattedCell(String string,\r\n int fontSize, String fontType, boolean isBold, int border) {\r\n if (fontSize == 0) {\r\n fontSize = 10;\r\n }\r\n\r\n Phrase phrase = null;\r\n\r\n if (string != null) {\r\n if (isBold) {\r\n phrase = new Phrase(string,\r\n FontFactory.getFont(fontType, fontSize, Font.BOLD,\r\n new Color(0, 0, 0)));\r\n } else {\r\n phrase = new Phrase(string,\r\n FontFactory.getFont(fontType, fontSize, Font.NORMAL,\r\n new Color(0, 0, 0)));\r\n }\r\n } else {\r\n phrase = new Phrase(\"\",\r\n FontFactory.getFont(fontType, fontSize, Font.NORMAL,\r\n new Color(0, 0, 0)));\r\n }\r\n\r\n //return phrase;\r\n PdfPCell newCell = new PdfPCell(phrase);\r\n newCell.setBorder(border);\r\n\r\n return newCell;\r\n }", "protected CellStyle getNumberCellStyleVisitedTimes(final Workbook workbook) {\n final CellStyle numberStyle = ExportExcelUtils.makeFullBorderStyle(workbook);\n numberStyle.setBorderBottom(CellStyle.BORDER_NONE);\n numberStyle.setAlignment(CellStyle.ALIGN_RIGHT);\n return numberStyle;\n }", "public TableCellRenderer getDefaultRenderer(Class columnClass) {\r\n return getDefaultRenderer(columnClass);\r\n }", "public RMTextStyle getStyle()\n {\n return new RMTextStyle(_style);\n }", "public String getRowUiStyle() {\r\n return uiRowStyle;\r\n }", "public String getStyle() {\r\n if (style != null) {\r\n return style;\r\n }\r\n ValueBinding vb = getValueBinding(\"style\");\r\n return vb != null ? (String) vb.getValue(getFacesContext()) : null;\r\n }", "public static ScriptStyle getStyle(int val)\r\n/* 31: */ {\r\n/* 32: 92 */ for (int i = 0; i < styles.length; i++) {\r\n/* 33: 94 */ if (styles[i].getValue() == val) {\r\n/* 34: 96 */ return styles[i];\r\n/* 35: */ }\r\n/* 36: */ }\r\n/* 37:100 */ return NORMAL_SCRIPT;\r\n/* 38: */ }", "protected TextStyle getApplicableStyle( String word, int type ) \r\n\t{\r\n\t\tTextStyle toApply = null;\r\n\t\tswitch(type)\r\n\t\t{\r\n\t\tcase Token.KEYWORD:\r\n\t\t\tif (isFunction(word))\r\n\t\t\t{\r\n\t\t\t\ttoApply = m_scheme.getStyle(TokenTypes.SPEL);\r\n\t\t\t}\r\n\t\t\telse if (isLanguage(word))\r\n\t\t\t{\r\n\t\t\t\ttoApply = m_scheme.getStyle(TokenTypes.CODE);\r\n\t\t\t}\r\n\t\t\telse if (isModifier(word))\r\n\t\t\t{\r\n\t\t\t\ttoApply = m_scheme.getStyle(TokenTypes.MODIFIER);\r\n\t\t\t}\r\n\t\t\telse if (isConstant(word))\r\n\t\t\t{\r\n\t\t\t\ttoApply = m_scheme.getStyle(TokenTypes.CONSTANT);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttoApply = m_scheme.getStyle(TokenTypes.NORMAL);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase Token.LINE_COMMENT:\r\n\t\t\ttoApply = m_scheme.getStyle(TokenTypes.COMMENT);\r\n\t\t\tbreak;\r\n\t\tcase Token.NORMAL:\r\n\t\t\t// Easier than using a pattern for recognising numbers\r\n\t\t\tif (isNumber(word))\r\n\t\t\t{\r\n\t\t\t\ttoApply = m_scheme.getStyle(TokenTypes.NUMBER);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttoApply = m_scheme.getStyle(TokenTypes.NORMAL);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase Token.WHITESPACE:\r\n\t\tcase Token.EOF:\r\n\t\t\tbreak;\r\n\t\tcase Token.SEPARATOR:\r\n\t\tcase Token.SPECIAL_SEQUENCE:\r\n\t\t\ttoApply = m_scheme.getStyle(TokenTypes.SYMBOL);\r\n\t\t\tbreak;\r\n\t\tcase Token.STRING:\r\n\t\t\ttoApply = m_scheme.getStyle(TokenTypes.STRING);\r\n\t\t\tbreak;\r\n\t\tcase Token.UNKNOWN:\r\n\t\tdefault:\r\n\t\t\ttoApply = m_scheme.getDefaultStyle();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn toApply;\r\n\t}", "public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle getWholeTbl()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(WHOLETBL$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public String getDefaultStyleString() {\n/* 552 */ return getCOSObject().getString(COSName.DS);\n/* */ }", "public static XSSFCellStyle gapStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = baseStyle(wb);\n\t\tcellStyle.setBorderTop(BorderStyle.THIN);\n\t\tcellStyle.setBorderBottom(BorderStyle.THIN);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\n\t\treturn cellStyle;\n\t}", "public int getStyle() {\r\n\t\treturn this.style;\r\n\t}", "protected interface CellStyleModifier {\n /**\n * Changes the given cell style\n * @param style style to modify\n */\n public void modify( CellStyle style );\n }", "public abstract BossStyle getStyle();", "String getInitialStyleValue(QName eltName, QName styleName);", "private void setDefaultRenderer() {\n setDefaultRenderer(Object.class, new SimpleTableCellRenderer());\n setDefaultRenderer(Boolean.class, new CheckRenderer());\n setDefaultRenderer(Integer.class, new NumericRenderer());\n setDefaultRenderer(Float.class, new NumericRenderer());\n setDefaultRenderer(Double.class, new NumericRenderer());\n setDefaultRenderer(Long.class, new NumericRenderer());\n setDefaultRenderer(Date.class, new DateRenderer());\n setDefaultRenderer(Object[].class, new MultiLineRenderer());\n setDefaultRenderer(String[].class, new MultiLineRenderer());\n setDefaultRenderer(Integer[].class, new MultiLineRenderer());\n setDefaultRenderer(Date[].class, new MultiLineRenderer());\n setDefaultRenderer(Boolean[].class, new MultiLineRenderer());\n }", "public BoardStyle getChosenStyle() {\n\t\treturn boardStyle;\n\t}", "public static XSSFCellStyle ccStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = baseStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(ccEtBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}", "public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle getFirstCol()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(FIRSTCOL$14, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public final static int getRecordStyle(int dbIdx, String styleStr) {\n\t\tint type = Constants.NULL_INTEGER;\n\n\t\ttry {\n\t\t\ttype = Integer.parseInt(styleStr);\n\t\t} catch (Exception e) {\t}\n\n\t\treturn type;\n\t}", "public void style() {\n\n\t\tfinal ArrayList<String> cssClasses = new ArrayList<>();\n\t\tif (!this.styles.isEmpty()) {\n\t\t\tthis.styles.forEach(s -> {\n\t\t\t\tcssClasses.add(s.getCss());\n\t\t\t});\n\t\t}\n\n\t\t// replace the cell styles with the new set\n\t\tthis.add(AttributeModifier.replace(\"class\", StringUtils.join(cssClasses, \" \")));\n\t}", "private TableCell getTextWrappingCell(){\r\n\t\tTableCell cell = new TableCell<>();\r\n Text text = new Text();\r\n text.setStyle(\"-fx-fill: -fx-text-background-color;\");\r\n cell.setGraphic(text);\r\n cell.setPrefHeight(Control.USE_COMPUTED_SIZE);\r\n text.wrappingWidthProperty().bind(cell.widthProperty());\r\n text.textProperty().bind(cell.itemProperty());\r\n return cell;\r\n\t}" ]
[ "0.69642276", "0.66725373", "0.6518563", "0.65045863", "0.64589345", "0.6454533", "0.64080966", "0.6406496", "0.6369385", "0.63366246", "0.63229346", "0.62505937", "0.6248311", "0.62231237", "0.62019324", "0.61747134", "0.61673635", "0.61666346", "0.61213684", "0.6089832", "0.6042426", "0.602441", "0.6008124", "0.60077316", "0.6001172", "0.59974325", "0.598487", "0.5975351", "0.5965833", "0.59500515", "0.59401625", "0.590787", "0.58943754", "0.58716", "0.58246297", "0.58241624", "0.57414794", "0.5739401", "0.57300884", "0.5704802", "0.57006663", "0.5693362", "0.5652361", "0.5579315", "0.5561281", "0.5561107", "0.55594087", "0.55519056", "0.55504614", "0.55239445", "0.55120385", "0.55120385", "0.55120385", "0.55120385", "0.5500897", "0.549268", "0.54816383", "0.5481534", "0.54685783", "0.54621726", "0.54563427", "0.54494154", "0.5447114", "0.5440819", "0.539818", "0.53891546", "0.53846335", "0.536654", "0.5363666", "0.53635806", "0.5362594", "0.5357603", "0.53478676", "0.5332122", "0.5331381", "0.5329778", "0.53053856", "0.5295805", "0.52907", "0.5288333", "0.52854675", "0.52844214", "0.5276178", "0.52621216", "0.5253403", "0.52343893", "0.52343875", "0.5231509", "0.5226919", "0.52266455", "0.5203813", "0.5202797", "0.5201803", "0.5199171", "0.5191006", "0.51725084", "0.5165588", "0.5160435", "0.51570797", "0.51550204" ]
0.6462357
4
Setting the cell styles
public int getCellStyle() { if (cellStyle != null) { return cellStyle; } setCellStyle(getCellStyle(clazz)); return cellStyle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void modify( CellStyle style );", "public void setCellStyle( CellStyle style )\n {\n for (Cell[] colCells : cells) {\n for (Cell cell : colCells) {\n cell.setCellStyle(style);\n }\n }\n }", "public void style() {\n\n\t\tfinal ArrayList<String> cssClasses = new ArrayList<>();\n\t\tif (!this.styles.isEmpty()) {\n\t\t\tthis.styles.forEach(s -> {\n\t\t\t\tcssClasses.add(s.getCss());\n\t\t\t});\n\t\t}\n\n\t\t// replace the cell styles with the new set\n\t\tthis.add(AttributeModifier.replace(\"class\", StringUtils.join(cssClasses, \" \")));\n\t}", "private void setCellStyle( CellStyle style, int rowIx, int colIx )\n {\n \tcells[colIx][rowIx].setCellStyle( style );\n }", "@Override\n\tpublic void setRowStyle(CellStyle arg0) {\n\t\t\n\t}", "@Override\n @Source({CellTable.Style.DEFAULT_CSS, \"../exercise/ScoresCellTableStyleSheet.css\"})\n TableResources.TableStyle cellTableStyle();", "private static Map<String, CellStyle> createStyles(Workbook wb) {\r\n Map<String, CellStyle> styles = new HashMap<>();\r\n DataFormat df = wb.createDataFormat();\r\n\r\n Font font1 = wb.createFont();\r\n\r\n CellStyle style;\r\n Font headerFont = wb.createFont();\r\n headerFont.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n style.setFont(headerFont);\r\n styles.put(\"header\", style);\r\n\r\n style = wb.createCellStyle();\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(false);\r\n styles.put(\"cell_centered\", style);\r\n\r\n style = wb.createCellStyle();\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(true);\r\n styles.put(\"cell_centered_locked\", style);\r\n// style = createBorderedStyle(wb);\r\n// style.setAlignment(CellStyle.ALIGN_CENTER);\r\n// style.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\r\n// style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n// style.setFont(headerFont);\r\n// style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n// styles.put(\"header_date\", style);\r\n font1.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setFont(font1);\r\n styles.put(\"cell_b\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(false);\r\n styles.put(\"cell_b_centered\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(true);\r\n styles.put(\"cell_b_centered_locked\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setFont(font1);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_b_date\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setFont(font1);\r\n style.setFillForegroundColor(IndexedColors.GREY_25_PERCENT.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_g\", style);\r\n\r\n Font font2 = wb.createFont();\r\n font2.setColor(IndexedColors.BLUE.getIndex());\r\n font2.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setFont(font2);\r\n styles.put(\"cell_bb\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setFont(font1);\r\n style.setFillForegroundColor(IndexedColors.GREY_25_PERCENT.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_bg\", style);\r\n\r\n Font font3 = wb.createFont();\r\n font3.setFontHeightInPoints((short) 14);\r\n font3.setColor(IndexedColors.DARK_BLUE.getIndex());\r\n font3.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setFont(font3);\r\n style.setWrapText(true);\r\n styles.put(\"cell_h\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setWrapText(true);\r\n styles.put(\"cell_normal\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setWrapText(true);\r\n styles.put(\"cell_normal_centered\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setWrapText(true);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_normal_date\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setIndention((short) 1);\r\n style.setWrapText(true);\r\n styles.put(\"cell_indented\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setFillForegroundColor(IndexedColors.BLUE.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n styles.put(\"cell_blue\", style);\r\n\r\n return styles;\r\n }", "public void setRowCellStyle( CellStyle style, int rowIndex, int colOffset, int length )\n {\n for (int i=0; i<length; i++) {\n cells[colOffset+i][rowIndex].setCellStyle( style );\n }\n }", "public void setCellStyle(Cell cell, short halign, short valign, short border, short borderColor, int fontHeight) {\n CellStyle style = workbook.createCellStyle();\n Font font = workbook.createFont();\n font.setFontHeightInPoints((short) fontHeight);\n font.setFontName(\"Times New Roman\");\n style.setAlignment(halign);\n style.setVerticalAlignment(valign);\n style.setBorderBottom(border);\n style.setBottomBorderColor(borderColor);\n style.setBorderLeft(border);\n style.setLeftBorderColor(borderColor);\n style.setBorderRight(border);\n style.setRightBorderColor(borderColor);\n style.setBorderTop(border);\n style.setTopBorderColor(borderColor);\n style.setFont(font);\n cell.setCellStyle(style);\n }", "private static Map<String, CellStyle> createStyles(Workbook wb)\r\n\t{\r\n\t\tMap<String, CellStyle> styles = new HashMap<String, CellStyle>();\r\n\t\tDataFormat df = wb.createDataFormat();\r\n\r\n\t\tFont titleFont = wb.createFont();\r\n\t\ttitleFont.setFontHeightInPoints((short) 18);\r\n\t\ttitleFont.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n\t\ttitleFont.setColor(IndexedColors.DARK_BLUE.getIndex());\r\n\t\tCellStyle titleStyle = wb.createCellStyle();\r\n\t\ttitleStyle.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t\ttitleStyle.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t\ttitleStyle.setFont(titleFont);\r\n\t\tborderCell(titleStyle, CellStyle.BORDER_THICK, IndexedColors.BLUE.getIndex());\r\n\t\tstyles.put(TITLE_STYLE_NAME, titleStyle);\r\n\r\n\t\tFont headerFont = wb.createFont();\r\n\t\theaderFont.setFontHeightInPoints((short) 11);\r\n\t\theaderFont.setColor(IndexedColors.WHITE.getIndex());\r\n\t\tCellStyle headerStyle = wb.createCellStyle();\r\n\t\theaderStyle.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t\theaderStyle.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t\theaderStyle.setFillForegroundColor(IndexedColors.GREY_50_PERCENT.getIndex());\r\n\t\theaderStyle.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n\t\theaderStyle.setFont(headerFont);\r\n\t\theaderStyle.setWrapText(true);\r\n\t\tstyles.put(HEADER_STYLE_NAME, headerStyle);\r\n\r\n\t\tCellStyle plainCellStyle = wb.createCellStyle();\r\n\t\tplainCellStyle.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t\tborderCell(plainCellStyle, CellStyle.BORDER_THIN, IndexedColors.BLACK.getIndex());\r\n\t\tstyles.put(PLAIN_CELL_STYLE_NAME, plainCellStyle);\r\n\r\n\t\tCellStyle dateCellStyle = wb.createCellStyle();\r\n\t\tdateCellStyle.cloneStyleFrom(plainCellStyle);\r\n\t\tdateCellStyle.setDataFormat(df.getFormat(\"yyyy-mm-dd\"));\r\n\t\tstyles.put(DATE_CELL_STYLE_NAME, dateCellStyle);\r\n\r\n\t\tCellStyle integerFormulaStyle = wb.createCellStyle();\r\n\t\tintegerFormulaStyle.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t\tintegerFormulaStyle.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t\tintegerFormulaStyle.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\r\n\t\tintegerFormulaStyle.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n\t\tborderCell(integerFormulaStyle, CellStyle.BORDER_DOTTED, IndexedColors.GREY_80_PERCENT.getIndex());\r\n\t\tintegerFormulaStyle.setDataFormat(df.getFormat(\"0\"));\r\n\t\tintegerFormulaStyle.setWrapText(true);\r\n\t\tstyles.put(INTEGER_FORMULA_STYLE_NAME, integerFormulaStyle);\r\n\r\n\t\tCellStyle floatFormulaStyle = wb.createCellStyle();\r\n\t\tfloatFormulaStyle.cloneStyleFrom(integerFormulaStyle);\r\n\t\tfloatFormulaStyle.setDataFormat(df.getFormat(\"0.00\"));\r\n\t\tstyles.put(FLOAT_FORMULA_STYLE_NAME, floatFormulaStyle);\r\n\r\n\t\tCellStyle percentageFormulaStyle = wb.createCellStyle();\r\n\t\tpercentageFormulaStyle.cloneStyleFrom(integerFormulaStyle);\r\n\t\tpercentageFormulaStyle.setDataFormat(df.getFormat(\"0.00 %\"));\r\n//\t\tpercentageFormulaStyle.setDataFormat((short) 9); // See BuiltinFormats\r\n\t\tshort colorIndex = IndexedColors.INDIGO.getIndex();\r\n\t\tColor customColor = defineColor(wb, colorIndex, 0x88, 0xFF, 0x55);\r\n\t\tif (percentageFormulaStyle instanceof XSSFCellStyle)\r\n\t\t{\r\n\t\t\t((XSSFCellStyle) percentageFormulaStyle).setFillForegroundColor((XSSFColor) customColor);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tpercentageFormulaStyle.setFillForegroundColor(colorIndex);\r\n\t\t}\r\n\t\tstyles.put(PERCENTAGE_FORMULA_STYLE_NAME, percentageFormulaStyle);\r\n\r\n\t\treturn styles;\r\n\t}", "public void customiseStatusCells() {\n TableColumn column = table.getVisibleLeafColumn(5);\n column.setCellFactory(new Callback<TableColumn, TableCell>() {\n public TableCell call(TableColumn p) {\n //cell implementation\n return new styleCell();\n }\n });\n }", "protected interface CellStyleModifier {\n /**\n * Changes the given cell style\n * @param style style to modify\n */\n public void modify( CellStyle style );\n }", "public CellStyle createCellStyle() {\n\t\treturn null;\n\t}", "public void setColCellStyle( CellStyle style, int colIndex, int rowOffset, int length )\n {\n final Cell[] colCells = cells[colIndex];\n for (int i=0; i<length; i++) {\n colCells[rowOffset+i].setCellStyle( style );\n }\n }", "private static Map<String, CellStyle> createStyles(Workbook wbl) {\r\n\r\n\tMap<String, CellStyle> styles = new HashMap<String, CellStyle>();\r\n\ttry {\r\n\t CellStyle style;\r\n\t Font titleFont = wbl.createFont();\r\n\t titleFont.setFontHeightInPoints((short) 18);\r\n\t titleFont.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n\t style = wbl.createCellStyle();\r\n\t style.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t style.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t style.setFont(titleFont);\r\n\t styles.put(\"title\", style);\r\n\r\n\t Font monthFont = wbl.createFont();\r\n\t monthFont.setFontHeightInPoints((short) 11);\r\n\t monthFont.setColor(IndexedColors.WHITE.getIndex());\r\n\t style = wbl.createCellStyle();\r\n\t style.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t style.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t style.setFillForegroundColor(IndexedColors.GREY_50_PERCENT.getIndex());\r\n\t style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n\t style.setFont(monthFont);\r\n\t style.setWrapText(true);\r\n\t style.setRightBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderRight(CellStyle.BORDER_THIN);\r\n\t style.setLeftBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderLeft(CellStyle.BORDER_THIN);\r\n\t style.setTopBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderTop(CellStyle.BORDER_THIN);\r\n\t style.setBottomBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderBottom(CellStyle.BORDER_THIN);\r\n\t styles.put(\"header\", style);\r\n\t \r\n\t //MandatoryColumn to admission process\r\n\t Font mandatoryColumnFont = wbl.createFont();\r\n\t mandatoryColumnFont.setFontHeightInPoints((short) 11);\r\n\t mandatoryColumnFont.setColor(IndexedColors.RED.getIndex());\r\n\t style = wbl.createCellStyle();\r\n\t style.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t style.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t style.setFillForegroundColor(IndexedColors.GREY_50_PERCENT.getIndex());\r\n\t style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n\t style.setFont(mandatoryColumnFont);\r\n\t style.setWrapText(true);\r\n\t style.setRightBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderRight(CellStyle.BORDER_THIN);\r\n\t style.setLeftBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderLeft(CellStyle.BORDER_THIN);\r\n\t style.setTopBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderTop(CellStyle.BORDER_THIN);\r\n\t style.setBottomBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderBottom(CellStyle.BORDER_THIN);\r\n\t styles.put(\"headers\", style);\r\n\r\n\t style = wbl.createCellStyle();\r\n\t style.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t style.setWrapText(true);\r\n\t style.setBorderRight(CellStyle.BORDER_THIN);\r\n\t style.setRightBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderLeft(CellStyle.BORDER_THIN);\r\n\t style.setLeftBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderTop(CellStyle.BORDER_THIN);\r\n\t style.setTopBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderBottom(CellStyle.BORDER_THIN);\r\n\t style.setBottomBorderColor(IndexedColors.BLACK.getIndex());\r\n\t styles.put(\"cell\", style);\r\n\r\n\t style = wbl.createCellStyle();\r\n\t style.setWrapText(true);\r\n\t style.setBorderRight(CellStyle.BORDER_THIN);\r\n\t style.setRightBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderLeft(CellStyle.BORDER_THIN);\r\n\t style.setLeftBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderTop(CellStyle.BORDER_THIN);\r\n\t style.setTopBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderBottom(CellStyle.BORDER_THIN);\r\n\t style.setBottomBorderColor(IndexedColors.BLACK.getIndex());\r\n\t styles.put(\"string\", style);\r\n\r\n\t CreationHelper createHelper = wbl.getCreationHelper();\r\n\t style = wbl.createCellStyle();\r\n\t style.setDataFormat(createHelper.createDataFormat().getFormat(\"dd-MMM-yyyy\"));\r\n\t style.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t style.setWrapText(true);\r\n\t style.setBorderRight(CellStyle.BORDER_THIN);\r\n\t style.setRightBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderLeft(CellStyle.BORDER_THIN);\r\n\t style.setLeftBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderTop(CellStyle.BORDER_THIN);\r\n\t style.setTopBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderBottom(CellStyle.BORDER_THIN);\r\n\t style.setBottomBorderColor(IndexedColors.BLACK.getIndex());\r\n\t styles.put(\"date\", style);\r\n\r\n\t} catch (Exception ex) {\r\n\t ex.printStackTrace();\r\n\t JRExceptionClient jre = new JRExceptionClient();jre.sendException(ex);jre = null;\r\n\t}\r\n\r\n\treturn styles;\r\n }", "public void setCellStyle( CellStyle style, int[] rowIndices, int[] colIndices )\n {\n for ( int colIx : colIndices ) {\n final Cell[] colCells = cells[colIx];\n for ( int rowIx : rowIndices ) {\n colCells[rowIx].setCellStyle( style );\n }\n }\n }", "protected void buildCellBaseStyle( ICellContent cell,\n \t\t\tStringBuffer styleBuffer )\n \t{\n \t\tIStyle style = null;\n \t\tif ( isEmbeddable )\n \t\t{\n \t\t\tstyle = cell.getStyle( );\n \t\t}\n \t\telse\n \t\t{\n \t\t\tstyle = cell.getInlineStyle( );\n \t\t}\n \t\t// build the cell's style except border\n \t\tAttributeBuilder.buildCellStyle( styleBuffer, style, parentEmitter );\n \n \t\t// prepare build the cell's border\n \t\tint columnCount = -1;\n \t\tIStyle cellStyle = null, cellComputedStyle = null;\n \t\tIStyle rowStyle = null, rowComputedStyle = null;\n \n \t\tcellStyle = cell.getStyle( );\n \t\tcellComputedStyle = cell.getComputedStyle( );\n \t\tIRowContent row = (IRowContent) cell.getParent( );\n \t\tif ( null != row )\n \t\t{\n \t\t\trowStyle = row.getStyle( );\n \t\t\trowComputedStyle = row.getComputedStyle( );\n \t\t\tITableContent table = row.getTable( );\n \t\t\tif ( null != table )\n \t\t\t{\n \t\t\t\tcolumnCount = table.getColumnCount( );\n \t\t\t}\n \t\t}\n \n \t\t// build the cell's border\n \t\tif ( null == rowStyle || cell.getColumn( ) < 0 || columnCount < 1 )\n \t\t{\n \t\t\tif ( null != cellStyle )\n \t\t\t{\n \t\t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\t\tHTMLTags.ATTR_BORDER_TOP,\n \t\t\t\t\t\tcellStyle.getBorderTopWidth( ),\n \t\t\t\t\t\tcellStyle.getBorderTopStyle( ),\n \t\t\t\t\t\tcellStyle.getBorderTopColor( ),\n \t\t\t\t\t\t0,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\t0 );\n \n \t\t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\t\tHTMLTags.ATTR_BORDER_RIGHT,\n \t\t\t\t\t\tcellStyle.getBorderRightWidth( ),\n \t\t\t\t\t\tcellStyle.getBorderRightStyle( ),\n \t\t\t\t\t\tcellStyle.getBorderRightColor( ),\n \t\t\t\t\t\t0,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\t0 );\n \n \t\t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\t\tHTMLTags.ATTR_BORDER_BOTTOM,\n \t\t\t\t\t\tcellStyle.getBorderBottomWidth( ),\n \t\t\t\t\t\tcellStyle.getBorderBottomStyle( ),\n \t\t\t\t\t\tcellStyle.getBorderBottomColor( ),\n \t\t\t\t\t\t0,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\t0 );\n \n \t\t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\t\tHTMLTags.ATTR_BORDER_LEFT,\n \t\t\t\t\t\tcellStyle.getBorderLeftWidth( ),\n \t\t\t\t\t\tcellStyle.getBorderLeftStyle( ),\n \t\t\t\t\t\tcellStyle.getBorderLeftColor( ),\n \t\t\t\t\t\t0,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\t0 );\n \t\t\t}\n \t\t}\n \t\telse if ( null == cellStyle )\n \t\t{\n \t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\tHTMLTags.ATTR_BORDER_TOP,\n \t\t\t\t\tnull,\n \t\t\t\t\tnull,\n \t\t\t\t\tnull,\n \t\t\t\t\t0,\n \t\t\t\t\trowStyle.getBorderTopWidth( ),\n \t\t\t\t\trowStyle.getBorderTopStyle( ),\n \t\t\t\t\trowStyle.getBorderTopColor( ),\n \t\t\t\t\t0 );\n \n \t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\tHTMLTags.ATTR_BORDER_RIGHT,\n \t\t\t\t\tnull,\n \t\t\t\t\tnull,\n \t\t\t\t\tnull,\n \t\t\t\t\t0,\n \t\t\t\t\trowStyle.getBorderRightWidth( ),\n \t\t\t\t\trowStyle.getBorderRightStyle( ),\n \t\t\t\t\trowStyle.getBorderRightColor( ),\n \t\t\t\t\t0 );\n \n \t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\tHTMLTags.ATTR_BORDER_BOTTOM,\n \t\t\t\t\tnull,\n \t\t\t\t\tnull,\n \t\t\t\t\tnull,\n \t\t\t\t\t0,\n \t\t\t\t\trowStyle.getBorderBottomWidth( ),\n \t\t\t\t\trowStyle.getBorderBottomStyle( ),\n \t\t\t\t\trowStyle.getBorderBottomColor( ),\n \t\t\t\t\t0 );\n \n \t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\tHTMLTags.ATTR_BORDER_LEFT,\n \t\t\t\t\tnull,\n \t\t\t\t\tnull,\n \t\t\t\t\tnull,\n \t\t\t\t\t0,\n \t\t\t\t\trowStyle.getBorderLeftWidth( ),\n \t\t\t\t\trowStyle.getBorderLeftStyle( ),\n \t\t\t\t\trowStyle.getBorderLeftColor( ),\n \t\t\t\t\t0 );\n \t\t}\n \t\telse\n \t\t{\n \t\t\t// We have treat the column span. But we haven't treat the row span.\n \t\t\t// It need to be solved in the future.\n \t\t\tint cellWidthValue = getBorderWidthValue( cellComputedStyle,\n \t\t\t\t\tIStyle.STYLE_BORDER_TOP_WIDTH );\n \t\t\tint rowWidthValue = getBorderWidthValue( rowComputedStyle,\n \t\t\t\t\tIStyle.STYLE_BORDER_TOP_WIDTH );\n \t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\tHTMLTags.ATTR_BORDER_TOP,\n \t\t\t\t\tcellStyle.getBorderTopWidth( ),\n \t\t\t\t\tcellStyle.getBorderTopStyle( ),\n \t\t\t\t\tcellStyle.getBorderTopColor( ),\n \t\t\t\t\tcellWidthValue,\n \t\t\t\t\trowStyle.getBorderTopWidth( ),\n \t\t\t\t\trowStyle.getBorderTopStyle( ),\n \t\t\t\t\trowStyle.getBorderTopColor( ),\n \t\t\t\t\trowWidthValue );\n \n \t\t\tif ( ( cell.getColumn( ) + cell.getColSpan( ) ) == columnCount )\n \t\t\t{\n \t\t\t\tcellWidthValue = getBorderWidthValue( cellComputedStyle,\n \t\t\t\t\t\tIStyle.STYLE_BORDER_RIGHT_WIDTH );\n \t\t\t\trowWidthValue = getBorderWidthValue( rowComputedStyle,\n \t\t\t\t\t\tIStyle.STYLE_BORDER_RIGHT_WIDTH );\n \t\t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\t\tHTMLTags.ATTR_BORDER_RIGHT,\n \t\t\t\t\t\tcellStyle.getBorderRightWidth( ),\n \t\t\t\t\t\tcellStyle.getBorderRightStyle( ),\n \t\t\t\t\t\tcellStyle.getBorderRightColor( ),\n \t\t\t\t\t\tcellWidthValue,\n \t\t\t\t\t\trowStyle.getBorderRightWidth( ),\n \t\t\t\t\t\trowStyle.getBorderRightStyle( ),\n \t\t\t\t\t\trowStyle.getBorderRightColor( ),\n \t\t\t\t\t\trowWidthValue );\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\t\tHTMLTags.ATTR_BORDER_RIGHT,\n \t\t\t\t\t\tcellStyle.getBorderRightWidth( ),\n \t\t\t\t\t\tcellStyle.getBorderRightStyle( ),\n \t\t\t\t\t\tcellStyle.getBorderRightColor( ),\n \t\t\t\t\t\t0,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\t0 );\n \t\t\t}\n \n \t\t\tcellWidthValue = getBorderWidthValue( cellComputedStyle,\n \t\t\t\t\tIStyle.STYLE_BORDER_BOTTOM_WIDTH );\n \t\t\trowWidthValue = getBorderWidthValue( rowComputedStyle,\n \t\t\t\t\tIStyle.STYLE_BORDER_BOTTOM_WIDTH );\n \t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\tHTMLTags.ATTR_BORDER_BOTTOM,\n \t\t\t\t\tcellStyle.getBorderBottomWidth( ),\n \t\t\t\t\tcellStyle.getBorderBottomStyle( ),\n \t\t\t\t\tcellStyle.getBorderBottomColor( ),\n \t\t\t\t\tcellWidthValue,\n \t\t\t\t\trowStyle.getBorderBottomWidth( ),\n \t\t\t\t\trowStyle.getBorderBottomStyle( ),\n \t\t\t\t\trowStyle.getBorderBottomColor( ),\n \t\t\t\t\trowWidthValue );\n \n \t\t\tif ( cell.getColumn( ) == 0 )\n \t\t\t{\n \t\t\t\tcellWidthValue = getBorderWidthValue( cellComputedStyle,\n \t\t\t\t\t\tIStyle.STYLE_BORDER_LEFT_WIDTH );\n \t\t\t\trowWidthValue = getBorderWidthValue( rowComputedStyle,\n \t\t\t\t\t\tIStyle.STYLE_BORDER_LEFT_WIDTH );\n \t\t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\t\tHTMLTags.ATTR_BORDER_LEFT,\n \t\t\t\t\t\tcellStyle.getBorderLeftWidth( ),\n \t\t\t\t\t\tcellStyle.getBorderLeftStyle( ),\n \t\t\t\t\t\tcellStyle.getBorderLeftColor( ),\n \t\t\t\t\t\tcellWidthValue,\n \t\t\t\t\t\trowStyle.getBorderLeftWidth( ),\n \t\t\t\t\t\trowStyle.getBorderLeftStyle( ),\n \t\t\t\t\t\trowStyle.getBorderLeftColor( ),\n \t\t\t\t\t\trowWidthValue );\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\tbuildCellRowBorder( styleBuffer,\n \t\t\t\t\t\tHTMLTags.ATTR_BORDER_LEFT,\n \t\t\t\t\t\tcellStyle.getBorderLeftWidth( ),\n \t\t\t\t\t\tcellStyle.getBorderLeftStyle( ),\n \t\t\t\t\t\tcellStyle.getBorderLeftColor( ),\n \t\t\t\t\t\t0,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\tnull,\n \t\t\t\t\t\t0 );\n \t\t\t}\n \n \t\t}\n \n \t\t// output in-line style\n \t\twriter.attribute( HTMLTags.ATTR_STYLE, styleBuffer.toString( ) );\n \t}", "@Override\n\tpublic CellStyle getRowStyle() {\n\t\treturn null;\n\t}", "public static XSSFCellStyle tdStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = baseStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(tdBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}", "private WritableCellFormat initializeWritableWritableCelFormat() throws WriteException{\r\n\t\tWritableFont times10ptBoldUnderline = new WritableFont(\r\n\t\t\t\tWritableFont.TIMES, 12, WritableFont.BOLD, false,\r\n\t\t\t\tUnderlineStyle.NO_UNDERLINE);\r\n\t\tWritableCellFormat timesBoldUnderline = new WritableCellFormat(times10ptBoldUnderline);\r\n\t\t// Lets automatically wrap the cells\r\n\t\ttimesBoldUnderline.setWrap(false);\r\n\t\t\r\n\t\treturn timesBoldUnderline;\r\n\t}", "protected void setBordersFromCell() {\n borderBefore = cell.borderBefore.copy();\n if (rowSpanIndex > 0) {\n borderBefore.normal = BorderSpecification.getDefaultBorder();\n }\n borderAfter = cell.borderAfter.copy();\n if (!isLastGridUnitRowSpan()) {\n borderAfter.normal = BorderSpecification.getDefaultBorder();\n }\n if (colSpanIndex == 0) {\n borderStart = cell.borderStart;\n } else {\n borderStart = BorderSpecification.getDefaultBorder();\n }\n if (isLastGridUnitColSpan()) {\n borderEnd = cell.borderEnd;\n } else {\n borderEnd = BorderSpecification.getDefaultBorder();\n }\n }", "public static String get_cell_style_id(){\r\n\t\t_cell_style_id ++;\r\n\t\treturn \"cond_ce\" + _cell_style_id;\r\n\t}", "public HSSFCellStyle getStyle(HSSFWorkbook workbook) {\r\n\t\t// Set font\r\n\t\tHSSFFont font = workbook.createFont();\r\n\t\t// Set font size\r\n\t\t// font.setFontHeightInPoints((short)10);\r\n\t\t// Bold font\r\n\t\t// font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);\r\n\t\t// Set font name\r\n\t\tfont.setFontName(\"Courier New\");\r\n\t\t// Set the style;\r\n\t\tHSSFCellStyle style = workbook.createCellStyle();\r\n\t\t// Set the bottom border;\r\n\t\tstyle.setBorderBottom(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the bottom border color;\r\n\t\tstyle.setBottomBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the left border;\r\n\t\tstyle.setBorderLeft(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the left border color;\r\n\t\tstyle.setLeftBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the right border;\r\n\t\tstyle.setBorderRight(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the right border color;\r\n\t\tstyle.setRightBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the top border;\r\n\t\tstyle.setBorderTop(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the top border color;\r\n\t\tstyle.setTopBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Use the font set by the application in the style;\r\n\t\tstyle.setFont(font);\r\n\t\t// Set auto wrap;\r\n\t\tstyle.setWrapText(false);\r\n\t\t// Set the style of horizontal alignment to center alignment;\r\n\t\tstyle.setAlignment(HSSFCellStyle.ALIGN_CENTER);\r\n\t\t// Set the vertical alignment style to center alignment;\r\n\t\tstyle.setVerticalAlignment(HSSFCellStyle.VERTICAL_CENTER);\r\n\r\n\t\treturn style;\r\n\r\n\t}", "private static Map<String, CellStyle> createStyles(Workbook wb) {\n Map<String, CellStyle> styles = new HashMap<>();\n\n CellStyle style;\n Font headerFont = wb.createFont();\n headerFont.setBold(true);\n style = createBorderedStyle(wb);\n style.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\n style.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n style.setVerticalAlignment(VerticalAlignment.TOP);\n style.setWrapText(true);\n style.setFont(headerFont);\n styles.put(\"header\", style);\n\n style = createBorderedStyle(wb);\n style.setVerticalAlignment(VerticalAlignment.TOP);\n style.setWrapText(true);\n styles.put(\"body\", style);\n\n return styles;\n }", "public void buildCellStyle( ICellContent cell, StringBuffer styleBuffer,\n \t\t\tboolean isInTableHead )\n \t{\n \t\t//build column related style\n \t\tIStyle style = new CellMergedStyle( cell );\n \t\tAttributeBuilder.buildStyle( styleBuffer, style, parentEmitter );\n \n \t\t// set font weight to be normal if the cell use \"th\" tag while it is in\n \t\t// table header.\n \t\tif ( isInTableHead )\n \t\t{\n \t\t\thandleCellFont( cell, styleBuffer );\n \t\t}\n \n \t\tbuildCellBaseStyle( cell, styleBuffer );\n \t}", "protected void modifyCellStyle( int[] rowIndices, int[] colIndices, CellStyleModifier modifier )\n {\n \tif ( rowIndices.length != colIndices.length ) \n \t\tthrow new RuntimeException(\"Length of indRows should equal length of indCols!\");\n Map<Short, CellStyle> styleMap = new HashMap<Short,CellStyle>();\n CellStyle defaultStyle = null;\n \n for ( int i=0; i<colIndices.length; i++ ) {\n \tCell cell = cells[colIndices[i]][rowIndices[i]];\n \tCellStyle style = cell.getCellStyle();\n \tif ( style == null ) {\n \t\tif ( defaultStyle == null ) {\n \t\t\tdefaultStyle = getWorkbook().createCellStyle();\n \t\t\tmodifier.modify( defaultStyle );\n \t\t}\n \t\tcell.setCellStyle(defaultStyle);\n \t}\n \telse { \n \t\tif ( styleMap.containsKey( style.getIndex() ) ) { // has been cached \n \t\t\tcell.setCellStyle( styleMap.get( style.getIndex() ) );\n \t\t}\n \t\telse { // create a new style, and cache it\n \t\t\tCellStyle modStyle = getWorkbook().createCellStyle();\n \t\t\tmodStyle.cloneStyleFrom( style );\n \t\t\tmodifier.modify(modStyle);\n \t\t\tstyleMap.put(style.getIndex(), modStyle);\n \t\t\tcell.setCellStyle( modStyle );\n \t\t}\n \t}\n }\n }", "public int getNumCellStyles() {\n\t\treturn 0;\n\t}", "void setStyle(String style);", "public static XSSFCellStyle tpStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = baseStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(tpBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}", "private void setBorder(CellStyle style, BorderStyle borderStyle) {\n\t\tstyle.setBorderBottom(borderStyle);\n\t\tstyle.setBorderTop(borderStyle);\n\t\tstyle.setBorderLeft(borderStyle);\n\t\tstyle.setBorderRight(borderStyle);\n\t}", "private void setTable(){\r\n\t\tfor(int i=0;i<100;++i)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<100;++j)\r\n\t\t\t{\r\n\t\t\t\tif(game.checkCell(i,j)==true)\r\n\t\t\t\t{\r\n\t\t\t\t\tmap[i][j].setBackground(Color.black);\r\n\t\t\t\t\tmap[i][j].setBounds(j*5,i*5, 5, 5);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tmap[i][j].setBackground(Color.blue);\r\n\t\t\t\t\tmap[i][j].setBounds(j*5,i*5, 5, 5);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected void setStyleName(FlexTable flexTable) {\n\n\t\tint index = flexTable.getRowCount() - 1;\n\n\t\tif (index == 0) {\n\n\t\t\tString cellStyleName = CSS_HEADING;\n\n\t\t\tint count = flexTable.getCellCount(index);\n\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tflexTable.getCellFormatter().addStyleName(index, i, cellStyleName);\n\t\t\t}\n\t\t} else {\n\n\t\t\tint count = flexTable.getCellCount(index);\n\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tif (i != count - 1) {\n\t\t\t\t\tflexTable.getCellFormatter().addStyleName(index, i, CSS_CONTENT);\n\t\t\t\t} else {\n\t\t\t\t\tflexTable.getCellFormatter().addStyleName(index, i, CSS_MENU);\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\n\t}", "public CellStyle getCellStyleAt(int arg0) {\n\t\treturn null;\n\t}", "public void setTableStyleClass(String tableStyleClass)\r\n {\r\n _tableStyleClass = tableStyleClass;\r\n }", "public static XSSFCellStyle baseStyle(XSSFWorkbook wb) {\n\t\t// Define color palette\n\t\tcmBg = new XSSFColor(new java.awt.Color(33, 150, 243, 0)); // #2196F3\n\t\ttdBg = new XSSFColor(new java.awt.Color(139, 195, 74, 0)); // #8BC34A\n\t\ttpBg = new XSSFColor(new java.awt.Color(255, 193, 7, 0)); // #FFC107\n\t\tccEtBg = new XSSFColor(new java.awt.Color(244, 67, 54, 0)); // #F44336\n\t\tsiBg = new XSSFColor(new java.awt.Color(0, 117, 169, 0));\n\t\tasrBg = new XSSFColor(new java.awt.Color(50, 117, 108, 0));\n\n\t\tdateBg = new XSSFColor(new java.awt.Color(189, 189, 189, 0)); // #BDBDBD\n\t\tweekNumBg = new XSSFColor(new java.awt.Color(224, 224, 224, 0)); // #E0E0E0\n\t\tholidaysBg = new XSSFColor(new java.awt.Color(255, 87, 34, 0)); // #FF5722\n\n\t\t// create font\n\t\tFont font = wb.createFont();\n\t\tfont.setFontHeightInPoints((short) 11);\n\t\tfont.setFontName(\"Arial\");\n\t\tfont.setColor(IndexedColors.BLACK.getIndex());\n\t\tfont.setBold(false);\n\t\tfont.setItalic(false);\n\n\t\t// Create cell style\n\t\tXSSFCellStyle cellStyle = wb.createCellStyle();\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setVerticalAlignment(VerticalAlignment.CENTER);\n\t\tcellStyle.setWrapText(true); // Set wordwrap\n\n\t\t// Setting font to style\n\t\tcellStyle.setFont(font);\n\n\t\treturn cellStyle;\n\t}", "private void styleRows() {\n int rows = fieldTable.getRowCount();\n for (int row = 1; row < rows; row++ ) {\n fieldTable.getFlexCellFormatter().addStyleName(row, 0, \"metadataTableCell\");\n fieldTable.getFlexCellFormatter().addStyleName(row, 1, \"metadataTableCell\");\n fieldTable.getFlexCellFormatter().addStyleName(row, 2, \"metadataTableCell\");\n if (row % 2 == 0) {\n fieldTable.getRowFormatter().removeStyleName(row, \"metadataTableOddRow\");\n fieldTable.getRowFormatter().addStyleName(row, \"metadataTableEvenRow\");\n } else {\n fieldTable.getRowFormatter().removeStyleName(row, \"metadataTableEvenRow\");\n fieldTable.getRowFormatter().addStyleName(row, \"metadataTableOddRow\");\n }\n }\n }", "public void setFillStyle(STYLE style);", "@Override\n\tpublic CellStyle getCellStyle(int index, T entity, Object value, AttributeModel attributeModel) {\n\t\tif (value instanceof Integer || value instanceof Long) {\n\t\t\treturn thousandsGrouping ? numberStyle : numberSimpleStyle;\n\t\t} else if (value instanceof Date || value instanceof LocalDate || value instanceof LocalDateTime) {\n\t\t\tif (attributeModel == null || !attributeModel.isWeek()) {\n\t\t\t\treturn getDateStyle(attributeModel);\n\t\t\t}\n\t\t} else if (value instanceof BigDecimal || NumberUtils.isDouble(value)) {\n\t\t\treturn getDecimalStyle(attributeModel);\n\t\t}\n\t\treturn normal;\n\t}", "public void setClickedStyle(Button button){\n whiteCellButton.getStyleClass().clear();\n blackCellButton.getStyleClass().clear();\n removeCellButton.getStyleClass().clear();\n\n if (button == whiteCellButton) {\n whiteCellButton.getStyleClass().add(\"edit-buttons-selected\");\n blackCellButton.getStyleClass().add(\"edit-buttons\");\n removeCellButton.getStyleClass().add(\"edit-buttons\");\n }\n else if (button == blackCellButton) {\n blackCellButton.getStyleClass().add(\"edit-buttons-selected\");\n whiteCellButton.getStyleClass().add(\"edit-buttons\");\n removeCellButton.getStyleClass().add(\"edit-buttons\");\n }\n else if (button == removeCellButton) {\n removeCellButton.getStyleClass().add(\"edit-buttons-selected\");\n whiteCellButton.getStyleClass().add(\"edit-buttons\");\n blackCellButton.getStyleClass().add(\"edit-buttons\");\n }\n }", "@Override\n protected void SetCellFactories() {\n columnID.setCellValueFactory(new PropertyValueFactory<>(\"airlineID\"));\n columnName.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\n columnAlias.setCellValueFactory(new PropertyValueFactory<>(\"alias\"));\n columnIATA.setCellValueFactory(new PropertyValueFactory<>(\"IATA\"));\n columnICAO.setCellValueFactory(new PropertyValueFactory<>(\"ICAO\"));\n columnCallsign.setCellValueFactory(new PropertyValueFactory<>(\"callsign\"));\n columnCountry.setCellValueFactory(new PropertyValueFactory<>(\"country\"));\n columnActive.setCellValueFactory(new PropertyValueFactory<>(\"active\"));\n }", "@Override\n\tpublic CellStyle getCellStyle(int index, T entity, Object value, AttributeModel attributeModel) {\n\t\tif (value instanceof Integer || value instanceof Long) {\n\t\t\treturn thousandsGrouping ? numberStyle : numberSimpleStyle;\n\t\t} else if (value instanceof Date) {\n\t\t\tif (attributeModel == null || !attributeModel.isWeek()) {\n\t\t\t\tif (attributeModel == null || AttributeDateType.DATE.equals(attributeModel.getDateType())) {\n\t\t\t\t\t// date style is the default\n\t\t\t\t\treturn dateStyle;\n\t\t\t\t} else if (AttributeDateType.TIMESTAMP.equals(attributeModel.getDateType())) {\n\t\t\t\t\treturn dateTimeStyle;\n\t\t\t\t} else if (AttributeDateType.TIME.equals(attributeModel.getDateType())) {\n\t\t\t\t\treturn timeStyle;\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (value instanceof BigDecimal) {\n\t\t\tif (attributeModel != null && attributeModel.isPercentage()) {\n\t\t\t\treturn bigDecimalPercentageStyle;\n\t\t\t} else if (attributeModel != null && attributeModel.isCurrency()) {\n\t\t\t\treturn currencyStyle;\n\t\t\t}\n\t\t\treturn bigDecimalStyle;\n\t\t}\n\t\treturn normal;\n\t}", "private WritableCellFormat initializeWritableCellFormat() throws WriteException{\r\n\t\tWritableFont times12pt = new WritableFont(WritableFont.TIMES, 12);\r\n\t\t// Define the cell format\r\n\t\tWritableCellFormat times = new WritableCellFormat(times12pt);\r\n\t\t// Lets automatically wrap the cells\r\n\t\ttimes.setWrap(true);\r\n\t\t\r\n\t\treturn times;\r\n\t}", "private static void createCell(Workbook wb, Row row, int column, HorizontalAlignment halign, VerticalAlignment valign) {\n Cell cell = row.createCell(column);\n cell.setCellValue(\"Align It\");\n CellStyle cellStyle = wb.createCellStyle();\n //水平对其\n// cellStyle.setAlignment(halign);\n //垂直对齐\n// cellStyle.setVerticalAlignment(valign);\n cell.setCellStyle(cellStyle);\n }", "@Override\n protected void installDefaults() {\n super.installDefaults();\n //行高设置为25看起来会舒服些\n table.setRowHeight(25);\n //不显示垂直的网格线\n table.setShowVerticalLines(false);\n //设置单元格间的空白(默认是1个像素宽和高)\n //说明:设置本参数可以实现单元格间的间隔空制,间隔里通常是实现网格线的绘制,但\n //网格维绘制与否并不影响间隔的存在(如果间隔存在但网格线不绘的话它就是是透明的空\n //间),参数中width表示水平间隔,height表示垂直间隔,为0则表示没有间隔\n table.setIntercellSpacing(new Dimension(0, 1));\n }", "@Override\n public void styleComponent(JComponent component) {\n JTable jTable = (JTable) component;\n super.styleComponent(jTable.getTableHeader());\n jTable.getTableHeader().setBorder(new LineBorder(Color.WHITE, 1));\n Font font = new Font(\"Helvetica\", Font.PLAIN, 30);\n jTable.setFont(font);\n Font headingFont = new Font(\"Helvetica\", Font.BOLD, 30);\n jTable.getTableHeader().setFont(headingFont);\n jTable.setRowHeight(100);\n jTable.setFillsViewportHeight(true);\n jTable.setShowGrid(false);\n super.styleComponent(((JComponent) jTable.getParent()));\n\n }", "public HSSFCellStyle getColumnTopStyle(HSSFWorkbook workbook) {\r\n\r\n\t\t// Set font\r\n\t\tHSSFFont font = workbook.createFont();\r\n\t\t// Set font size\r\n\t\tfont.setFontHeightInPoints((short) 11);\r\n\t\t// Bold font\r\n\t\tfont.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);\r\n\t\t// Set font name\r\n\t\tfont.setFontName(\"Courier New\");\r\n\t\t// Set the style;\r\n\t\tHSSFCellStyle style = workbook.createCellStyle();\r\n\t\t// Set the bottom border;\r\n\t\tstyle.setBorderBottom(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the bottom border color;\r\n\t\tstyle.setBottomBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the left border;\r\n\t\tstyle.setBorderLeft(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the left border color;\r\n\t\tstyle.setLeftBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the right border;\r\n\t\tstyle.setBorderRight(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the right border color;\r\n\t\tstyle.setRightBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the top border;\r\n\t\tstyle.setBorderTop(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the top border color;\r\n\t\tstyle.setTopBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Use the font set by the application in the style;\r\n\t\tstyle.setFont(font);\r\n\t\t// Set auto wrap;\r\n\t\tstyle.setWrapText(false);\r\n\t\t// Set the style of horizontal alignment to center alignment;\r\n\t\tstyle.setAlignment(HSSFCellStyle.ALIGN_CENTER);\r\n\t\t// Set the vertical alignment style to center alignment;\r\n\t\tstyle.setVerticalAlignment(HSSFCellStyle.VERTICAL_CENTER);\r\n\r\n\t\treturn style;\r\n\r\n\t}", "public void styleforOne() {\r\n\t\t\r\n\r\n\t\tsuper.styleforOne();\r\n\t\t\r\n\t}", "protected CellStyle makeStyleForEmptyTitleCell(final Workbook workbook) {\n final CellStyle myStyle = workbook.createCellStyle();\n myStyle.setBorderTop(CellStyle.BORDER_THIN);\n myStyle.setBorderBottom(CellStyle.BORDER_THIN);\n myStyle.setBorderLeft(CellStyle.BORDER_NONE);\n myStyle.setBorderRight(CellStyle.BORDER_NONE);\n return myStyle;\n }", "@Override\n\tpublic void setColumnProperties() {\n\t\t\n\t\tcolPedidoCompraId.setCellValueFactory(new PropertyValueFactory<>(\"id\"));\n//\t\tcolPedidoCompraNome.setCellValueFactory(new PropertyValueFactory<>(\"nome\"));\n\t\tcolStatus.setCellValueFactory(new PropertyValueFactory<>(\"status\"));\n//\t\tcolSaldoInicial.setCellValueFactory(new PropertyValueFactory<>(\"saldoinicial\"));\n//\t\tcolIE.setCellValueFactory(new PropertyValueFactory<>(\"inscricaoestadual\"));\n//\t\tcolEmail.setCellValueFactory(new PropertyValueFactory<>(\"email\"));\n//\t\tcolTelefone.setCellValueFactory(new PropertyValueFactory<>(\"telefone\"));\n\t\tcolAtivo.setCellValueFactory(new PropertyValueFactory<>(\"ativo\"));\n//\t\t\n\t\tcolEdit.setCellFactory(cellFactory);\n\t\tcolDel.setCellFactory(cellFactorydel);\n\t\t\n\t\tsuper.setColumnProperties();\n\t}", "@Override \r\n public void setUI(TableUI ui) \r\n {\n super.setUI(new BasicTableUI(){ \r\n public void paint(Graphics g, JComponent c) { \r\n Rectangle r=g.getClipBounds(); \r\n int firstRow=table.rowAtPoint(new Point(0,r.y)); \r\n int lastRow=table.rowAtPoint(new Point(0,r.y+r.height)); \r\n // -1 is a flag that the ending point is outside the table \r\n if (lastRow<0) \r\n lastRow=table.getRowCount()-1; \r\n for (int i=firstRow; i<=lastRow; i++) \r\n paintRow(i,g); \r\n } \r\n private void paintRow(int row, Graphics g) \r\n { \r\n Rectangle r=g.getClipBounds(); \r\n for (int i=0; i<table.getColumnCount();i++) \r\n { \r\n Rectangle r1=table.getCellRect(row,i,true); \r\n if (r1.intersects(r)) // at least a part is visible \r\n { \r\n int sk=i;//((CTable)table).map.visibleCell(red,i); \r\n paintCell(row,sk,g,r1); \r\n // increment the column counter \r\n //i+=((CTable)table).map.span(row,sk)-1; \r\n //i++; \r\n } \r\n } \r\n } \r\n private void paintCell(int row, int column, Graphics g,Rectangle area) \r\n { \r\n int verticalMargin = table.getRowMargin(); \r\n int horizontalMargin = table.getColumnModel().getColumnMargin(); \r\n \r\n Color c = g.getColor(); \r\n g.setColor(table.getGridColor()); \r\n g.drawRect(area.x,area.y,area.width-1,area.height-1); \r\n g.setColor(c); \r\n \r\n area.setBounds(area.x + horizontalMargin/2, \r\n area.y + verticalMargin/2, \r\n area.width - horizontalMargin, \r\n area.height - verticalMargin); \r\n \r\n if (table.isEditing() && table.getEditingRow()==row && \r\n table.getEditingColumn()==column) \r\n { \r\n Component component = table.getEditorComponent(); \r\n component.setBounds(area); \r\n component.validate(); \r\n } \r\n else \r\n { \r\n TableCellRenderer renderer = table.getCellRenderer(row, column); \r\n Component component = table.prepareRenderer(renderer, row, column); \r\n if (component.getParent() == null) \r\n rendererPane.add(component); \r\n rendererPane.paintComponent(g, component, table, area.x, area.y, \r\n area.width, area.height, true); \r\n } \r\n } \r\n }); \r\n }", "public void setUsedAsTableCell(boolean isCell)\n {\n if (isCell)\n {\n removeAll();\n add(\"West\", field);\n setBackground(field.getBackground());\n field.setBorder(null);\n field.setPreferredSize(new Dimension(getMaximumSize().width, getPreferredSize().height));\n }\n }", "public void setSeCell(org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle seCell)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(SECELL$18, 0);\n if (target == null)\n {\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().add_element_user(SECELL$18);\n }\n target.set(seCell);\n }\n }", "public void initOfficeHoursGridStyle() {\r\n // RIGHT SIDE - THE OFFICE HOURS GRID TIME HEADERS\r\n CSGWorkspace workspaceComponent = (CSGWorkspace)app.getWorkspaceComponent();\r\n workspaceComponent.getOfficeHoursGridPane().getStyleClass().add(CLASS_OFFICE_HOURS_GRID);\r\n setStyleClassOnAll(workspaceComponent.getOfficeHoursGridTimeHeaderPanes(), CLASS_OFFICE_HOURS_GRID_TIME_COLUMN_HEADER_PANE);\r\n setStyleClassOnAll(workspaceComponent.getOfficeHoursGridTimeHeaderLabels(), CLASS_OFFICE_HOURS_GRID_TIME_COLUMN_HEADER_LABEL);\r\n setStyleClassOnAll(workspaceComponent.getOfficeHoursGridDayHeaderPanes(), CLASS_OFFICE_HOURS_GRID_DAY_COLUMN_HEADER_PANE);\r\n setStyleClassOnAll(workspaceComponent.getOfficeHoursGridDayHeaderLabels(), CLASS_OFFICE_HOURS_GRID_DAY_COLUMN_HEADER_LABEL);\r\n setStyleClassOnAll(workspaceComponent.getOfficeHoursGridTimeCellPanes(), CLASS_OFFICE_HOURS_GRID_TIME_CELL_PANE);\r\n setStyleClassOnAll(workspaceComponent.getOfficeHoursGridTimeCellLabels(), CLASS_OFFICE_HOURS_GRID_TIME_CELL_LABEL);\r\n setStyleClassOnAll(workspaceComponent.getOfficeHoursGridTACellPanes(), CLASS_OFFICE_HOURS_GRID_TA_CELL_PANE);\r\n setStyleClassOnAll(workspaceComponent.getOfficeHoursGridTACellLabels(), CLASS_OFFICE_HOURS_GRID_TA_CELL_LABEL);\r\n }", "@Override\n public void initialiseUiCells() {\n }", "public static XSSFCellStyle dateStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = dateFormatStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(dateBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}", "public TextCellStyle getCellStyle(int charOffset);", "public void setCell(Cell cell)\n {\n myCell = cell;\n }", "protected CellStyle getTextCellStyle(final Workbook workbook) {\n final CellStyle myStyle = ExportExcelUtils.makeFullBorderStyle(workbook);\n myStyle.setAlignment(CellStyle.ALIGN_LEFT);\n return myStyle;\n }", "@Override\n public void normalCell() {\n gCell.setFill(Color.BLACK);\n }", "@Override\n public void redCell() {\n gCell.setFill(Color.ORANGERED);\n }", "private void setCellFactories() {\n\t\tcolHotel.setCellValueFactory(new PropertyValueFactory<Room, String>(\"hotelName\"));\n\t\tcolQuality.setCellValueFactory(new PropertyValueFactory<Room, String>(\"quality\"));\n\t\tcolRoomNumber.setCellValueFactory(new PropertyValueFactory<Room, String>(\"roomNumber\"));\n\t}", "public CMARichTableCell() {\n super(\"table-cell\");\n }", "public static XSSFCellStyle cmStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = baseStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(cmBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}", "public void setSwCell(org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle swCell)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(SWCELL$20, 0);\n if (target == null)\n {\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().add_element_user(SWCELL$20);\n }\n target.set(swCell);\n }\n }", "@Override\n\tpublic void createCellStructure() {\n\t\t\n\t}", "@Override\n\tpublic CellStyle getHeaderStyle(int index) {\n\t\tif (index == 0) {\n\t\t\treturn titleStyle;\n\t\t}\n\t\tif (headerStyle == null) {\n\t\t\treturn headerStyle;\n\t\t}\n\t\treturn headerStyle;\n\t}", "private void initStyles() {\n for (int i = 0; i < getChildCount(); i++) {\n initStyle(getChildAt(i));\n }\n }", "public void setStyle(String st){\n style = st;\n }", "public DataGridColumnStyle(java.lang.Object instance) throws Throwable {\n super(instance);\n if (instance instanceof JCObject) {\n classInstance = (JCObject) instance;\n } else\n throw new Exception(\"Cannot manage object, it is not a JCObject\");\n }", "public void createCell(XSSFWorkbook xssfWorkbook, XSSFRow row,CellStyle cellStyle, String cellValue, int cellNum) {\n if (StringUtils.isNotBlank(cellValue)){\n XSSFCell cell = row.createCell(cellNum);\n cell.setCellValue(cellValue);\n cell.setCellStyle(cellStyle);\n }\n }", "public void setStyle(Style style) {\n\t\tmFont = style.font;\n\t\tmFontHeight = mFont.getHeight();\n\t\tmFontColor = style.getFontColor();\n\t\tmTimeStrLen = mFont.stringWidth((Util.TIME_FMT == 24) ? \"00:00 -\" : \"00:00MM -\") + SPACING;\n\t}", "private void defaultStyle() {\n\t\t//idField.setStyle(\"\");\n\t\tproductNameField.setStyle(\"\");\n\t\tinvField.setStyle(\"\");\n\t\tpriceField.setStyle(\"\");\n\t\tmaxField.setStyle(\"\");\n\t\tminField.setStyle(\"\");\n\t}", "@Override\n\tpublic void placementcell() {\n\t\t\n\t}", "public void setStyle(String style) {\r\n this.style = style;\r\n }", "public void setStyle(String style) {\r\n this.style = style;\r\n }", "public int getCellStyle(Class<?> clazz) {\n int style;\n if (isString(clazz)) {\n style = Styles.defaultStringBorderStyle();\n } else if (isDateTime(clazz) || isDate(clazz) || isLocalDateTime(clazz)) {\n if (numFmt == null) numFmt = DATETIME_FORMAT;\n style = (1 << INDEX_BORDER) | Horizontals.CENTER;\n } else if (isBool(clazz) || isChar(clazz)) {\n style = Styles.clearHorizontal(Styles.defaultStringBorderStyle()) | Horizontals.CENTER;\n } else if (isInt(clazz) || isLong(clazz)) {\n style = Styles.defaultIntBorderStyle();\n } else if (isFloat(clazz) || isDouble(clazz) || isBigDecimal(clazz)) {\n style = Styles.defaultDoubleBorderStyle();\n } else if (isLocalDate(clazz)) {\n if (numFmt == null) numFmt = DATE_FORMAT;\n style = (1 << INDEX_BORDER) | Horizontals.CENTER;\n } else if (isTime(clazz) || isLocalTime(clazz)) {\n if (numFmt == null) numFmt = TIME_FORMAT;\n style = (1 << INDEX_BORDER) | Horizontals.CENTER;\n } else {\n style = (1 << Styles.INDEX_FONT) | (1 << INDEX_BORDER); // Auto-style\n }\n\n // Reset custom number format if specified.\n if (numFmt != null) {\n style = Styles.clearNumFmt(style) | styles.addNumFmt(numFmt);\n }\n\n return style | (option & 1);\n }", "public ObjectTableCellRenderer() {\r\n\t\tsuper();\r\n\t}", "void setFonts(int rowNumber, FontFace fontFace, FontSize fontSize, int charPosition)\n {\n RowComposite rowComposite = compositeRowStack.get(rowNumber);\n rowComposite\n .setFontFace(fontFace.getFontFaceType(), fontSize.getFontSizeType(), charPosition);\n }", "public void styleMe(){\n\t}", "private void setBorder(CellStyle style, short border) {\n\t\tstyle.setBorderBottom(border);\n\t\tstyle.setBorderTop(border);\n\t\tstyle.setBorderLeft(border);\n\t\tstyle.setBorderRight(border);\n\t}", "private static StyleBuilder getHeaderStyle(ExportData metaData){\n \n /*pour la police des entàtes de HARVESTING*/\n if(metaData.getTitle().equals(ITitle.HARVESTING)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }/*pour la police des entetes de SERVICING*/\n if(metaData.getTitle().equals(ITitle.SERVICING)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }/*pour la police des entetes de FERTILIZATION*/\n if(metaData.getTitle().equals(ITitle.FERTILIZATION)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }/*pour la police des entetes de CONTROL_PHYTO*/\n if(metaData.getTitle().equals(ITitle.CONTROL_PHYTO)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }else{\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n }\n \n }", "public static XSSFCellStyle tdBorderStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = baseBorderStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(tdBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}", "private static void createCell(Workbook wb, Row row, short column, short halign, short valign) {\n Cell cell = row.createCell(column);\n cell.setCellValue(\"Align It\");\n CellStyle cellStyle = wb.createCellStyle();\n cellStyle.setAlignment(halign);\n cellStyle.setVerticalAlignment(valign);\n cell.setCellStyle(cellStyle);\n }", "@Override\n\tpublic CellStyle getHeaderStyle(int index) {\n\t\treturn headerStyle;\n\t}", "@Override\n public void update(ViewerCell cell) {\n\n StyledString styledString =\n format(cell.getItem(), cell.getElement(), LinkableStyledString.ignoring(theme)).getString();\n String newText = styledString.toString();\n\n StyleRange[] oldStyleRanges = cell.getStyleRanges();\n StyleRange[] newStyleRanges = styledString.getStyleRanges();\n\n if (!Arrays.equals(oldStyleRanges, newStyleRanges)) {\n cell.setStyleRanges(newStyleRanges);\n if (cell.getText().equals(newText)) {\n cell.setText(\"\");\n }\n }\n Color bgcolor = getBackgroundColor(cell.getElement());\n if (bgcolor != null) {\n cell.setBackground(bgcolor);\n }\n cell.setImage(getImage(cell.getElement()));\n cell.setText(newText);\n }", "public static XSSFCellStyle gapStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = baseStyle(wb);\n\t\tcellStyle.setBorderTop(BorderStyle.THIN);\n\t\tcellStyle.setBorderBottom(BorderStyle.THIN);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\n\t\treturn cellStyle;\n\t}", "public TimetableItemCellSizer(TableModel table_model){\n this.table_model = table_model;\n }", "private void setCellFormat(ListView listView) {\n listView.setCellFactory(cell -> {\n return new ListCell<String>() {\n @Override\n protected void updateItem(String item, boolean empty) {\n super.updateItem(item, empty);\n if (item != null) {\n setText(item);\n setFont(Font.font(TEXT_SIZE));\n }\n }\n };\n });\n }", "public void buildRowStyle( IRowContent row, StringBuffer styleBuffer )\n \t{\n \t\tbuildSize( styleBuffer, HTMLTags.ATTR_HEIGHT, row.getHeight( ) ); //$NON-NLS-1$\n \t\tbuildStyle( row, styleBuffer );\n \t}", "public void setGFXCell(GFXDataCell gfxCell);", "public void setNwCell(org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle nwCell)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(NWCELL$26, 0);\n if (target == null)\n {\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().add_element_user(NWCELL$26);\n }\n target.set(nwCell);\n }\n }", "public void setCellspacing(java.lang.String cellspacing)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CELLSPACING$28);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(CELLSPACING$28);\n }\n target.setStringValue(cellspacing);\n }\n }", "public void setStyle(String style) {\n this.style = style;\n }", "public abstract void setCellValue(int cellValue, int row, int col);", "public abstract void setCell(int row, int column, T item);", "public GridBagPanel style(String... styles)\n {\n myStyleQueue.clear();\n for (String style : styles)\n {\n myStyleQueue.add(style);\n }\n useNextStyle();\n return this;\n }", "public static XSSFCellStyle ccStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = baseStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(ccEtBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}", "public void styleIngredientAddedListCell(ListView<Ingredient> lv){\n Callback<ListView<Ingredient>, ListCell<Ingredient>> ingredientsQuantityFormat = new Callback<ListView<Ingredient>, ListCell<Ingredient>>() {\n @Override\n public ListCell<Ingredient> call(ListView<Ingredient> ingredientListView) {\n ListCell<Ingredient> cell = new ListCell<>(){\n @Override\n protected void updateItem(Ingredient ingredient, boolean empty) {\n super.updateItem(ingredient, empty);\n if (empty){\n setText(null);\n } else {\n String quantityName = ingredient.getQuantityName();\n double quantityInGrams = ingredient.getQuantityInGrams();\n double quantityRatio = (quantityInGrams / ingredient.getSingleQuantityInGrams());\n\n //for formating. quantity in grams is to have no decimal places and the quantity\n //ratio is to have a maximum of one decimal place\n DecimalFormat df = new DecimalFormat(\"#.#\");\n DecimalFormat df2 = new DecimalFormat(\"#\");\n\n //eg if more than one egg, it should read eggs\n if (quantityRatio > 1){\n quantityName = quantityName + \"s\";\n }\n\n setText( ingredient.getName() + \" ( \" + df2.format(quantityInGrams) + \" grams / \" +\n df.format(quantityRatio) + \" \" + quantityName + \")\");\n }\n setFont(InterfaceStyling.textFieldFont);\n }\n };\n return cell;\n }\n };\n lv.setCellFactory(ingredientsQuantityFormat);\n }", "private void paintTable()\r\n\t{\r\n\t\tfor(int i=0;i<100;++i)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<100;++j)\r\n\t\t\t{\r\n\t\t\t\tif(game.checkCell(i,j)==true)\r\n\t\t\t\t{\r\n\t\t\t\t\tmap[i][j].setBackground(Color.black);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tmap[i][j].setBackground(Color.blue);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void setColor() {\n cell.setStroke(Color.GRAY);\n\n if (alive) {\n cell.setFill(aliveColor);\n } else {\n cell.setFill(deadColor);\n }\n }" ]
[ "0.77690905", "0.76153284", "0.74730325", "0.73960084", "0.7203759", "0.70037174", "0.6973764", "0.6957335", "0.6887151", "0.6742126", "0.67098695", "0.6588872", "0.6567022", "0.6506797", "0.6478973", "0.6461565", "0.6277226", "0.6216003", "0.6207319", "0.62039673", "0.6201982", "0.61397326", "0.60516745", "0.6040565", "0.6020398", "0.6006105", "0.60059994", "0.60009164", "0.59772956", "0.59123766", "0.58943737", "0.58296674", "0.5807426", "0.57992333", "0.5792298", "0.5783787", "0.57803", "0.5776938", "0.5735849", "0.5730079", "0.56991076", "0.5687312", "0.5683671", "0.56796134", "0.5668444", "0.56666553", "0.5661778", "0.5659274", "0.56459564", "0.5638732", "0.5627571", "0.5624486", "0.56035566", "0.5594011", "0.5593369", "0.5592386", "0.5569758", "0.55540514", "0.55496323", "0.5547907", "0.55399823", "0.5515927", "0.55134094", "0.5505572", "0.54997844", "0.5494236", "0.5492706", "0.54869103", "0.5484545", "0.5479628", "0.54699445", "0.54695463", "0.5465175", "0.54612094", "0.54612094", "0.5458816", "0.5454101", "0.545278", "0.5449568", "0.54326844", "0.54280955", "0.5421403", "0.54177225", "0.54073215", "0.5398163", "0.5397699", "0.53961843", "0.5391407", "0.538967", "0.5389574", "0.53892255", "0.5388596", "0.53812003", "0.53802025", "0.5365888", "0.5349624", "0.53440946", "0.53358454", "0.5333525", "0.5332677" ]
0.583901
31
Returns the size of subcolumn
public int subColumnSize() { int i = 1; if (next != null) { Column next = this.next; for (; next != tail; next = next.next, i++); i++; } return i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int getNumColumns();", "public int getColumnSize() {\n \t\treturn this.columns;\n \t}", "public abstract int numColumns();", "public int sizeOfColArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(COL$2);\n }\n }", "int getColumnsCount();", "int getColumnsCount();", "public int sizeOfSubArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(SUB$2);\n }\n }", "int getColumnCount();", "int getColumnCount();", "public int sizeOfColumnArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(COLUMN$0);\r\n }\r\n }", "public int getNcol(){\r\n \treturn this.ncol;\r\n \t}", "int totalColumns(){\n return column;\n }", "public int getRecordSize(){\n return columns.get(0).size();\n }", "int colCount();", "public Integer getLength(Menu row){\r\n \treturn row.getIdmenu().length();\r\n }", "public int getTupleLength() {\n int size = 0;\n for(TupleDescItem item : columns) {\n size += item.getType().getLen();\n }\n return size;\n }", "public int getNumCol() {\n\t\treturn dc.size();\n\t}", "public int getColumnCount();", "public int size() {\n\treturn slices*rows*columns;\n}", "public int getCellSize(){\n return cellSize;\n }", "public int numberOfColumns()\n {\n // TODO: get the number of columns\n return matrix[0].length;\n }", "public int getSize(){\n\treturn Cells.size();\n }", "public abstract int getNumberOfColumnsInCurrentRow();", "public int columns( )\n {\n int col = 0;\n\n if( table != null )\n {\n col = table[0].length;\n } //end\n return (col);\n }", "public int numCols() {\n\t /*return the number of columns in the field*/\n return col; \n }", "public int getNumberOfColumns(){\n\t\treturn number_columns;\n\t}", "public int getCellSize()\n {\n return cellSize;\n }", "int tableSize();", "int getColumns();", "int getColumns();", "public int getSize(){\n /**\n * TODO: INSERT YOUR CODE HERE\n * FIND THE NUMBER OF NODES IN THE TREE AND STORE THE VALUE IN CLASS VARIABLE \"size\"\n * RETURN THE \"size\" VALUE\n *\n * HINT: THE NMBER OF NODES CAN BE UPDATED IN THE \"size\" VARIABLE EVERY TIME A NODE IS INSERTED OR DELETED FROM THE TREE.\n */\n\n return size;\n }", "public int getSize() {\n\t\tint total = 0;\n\t\tfor (int i = 0; i < capacity; i++) {\n\t\t\ttotal += table.get(i).getSize();\n\t\t}\n\t\treturn total;\n\t}", "public int getColumnWidth() {\r\n\t\tint columnWidth = getElementColumn1().getOffsetWidth();\r\n\t\treturn columnWidth;\r\n\t}", "int maxColSize() {\n int max = Integer.MIN_VALUE;\n for (IntSet col : this.cols) {\n if (col.size() > max) {\n max = col.size();\n }\n }\n return max;\n }", "public int getNumColumns() { return columns.length; }", "private int numCols(){\n return attrTable.getModel().getColumnCount();\n }", "public int get_size() {\r\n return this.dimension * 2 * sizeof_float + 4 * sizeof_float + sizeof_dimension + sizeof_int;\r\n }", "int columnPairsSize();", "public int getNumColumns() {\n\t\treturn numColumns; \n\t}", "public abstract int getNbMinColumns( );", "public int getSize() {\n\t\treturn width + length;\n\t}", "public int obtenerNumeroColumnas() {\n\t\treturn matriz.get(0).size();\n\t}", "public int getNumColumns() {\n\t\treturn numColumns;\n\t}", "public int getSize(){\n return this.node.getValues().size();\n }", "public int getNumberOfCols() {\n return this.numberOfCols;\n }", "public abstract int getNodeColumnCount();", "public int getNbColumn()\n\t{\n\t\treturn this.nbColumn;\n\t}", "public int columnCount() {\n\t\treturn n_;\n\t}", "@Override\n public int getNumCols(){ return WIDTH; }", "public int getnCols() {\n return nCols;\n }", "public int getNumColumns() {\n return mNumColumns;\n }", "public int getSize() {\n return rows * cols;\n }", "int childrenSize();", "public int getColumnWidth() {\n return COLUMN_WIDTH;\n }", "@Override\n public int size(){\n return sizeHelper(this.first);\n }", "public int getCellSize() {\n return CELLSIZE;\n //throw new UnsupportedOperationException();\n }", "Exp getElemSizeExp();", "public int getNumCols() { return numCols; }", "public int getSize() {\n return field.length;\n }", "public static int size() {\n return cells.size();\n }", "public int numberOfColumns() {\n\t\treturn colCount;\n\t}", "public int getNumColumns() { return target.getNumColumns();}", "public int size() {\r\n return cells.size();\r\n }", "public int get_size();", "public int get_size();", "int maxRowSize();", "public int getLength ()\r\n {\r\n return glyph.getBounds().width;\r\n }", "public int size() {\n //encapsulate\n int size = this.array.length;\n return size;\n }", "public int getMaxColumn() {\n return seatPlan[0].length;\n }", "private JCExpression getSize() {\n if (refSym.isStatic()) {\n return Call(attributeSizeName(refSym));\n } else {\n return m().Conditional(EQnull(selector()),\n Int(0),\n Call(selector(), attributeSizeName(refSym)));\n }\n }", "public int sizeOfColgroupArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(COLGROUP$4);\n }\n }", "public int getTotalSize();", "@Override\n\tpublic int size() {\n\t\tint tamano = 0;\n\t\tint i = 0;\n\t\tIterator it = tabla.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tit.next();\n\t\t\ttamano += tabla.get(i).keySet().size();\n\t\t\ti++;\n\t\t}\n\t\treturn tamano;\n\t}", "public int getLength() {\n return mySize.getLength();\n }", "public int getCols() {\n\t\treturn g[0].length;\n\t}", "public int getxlength(){ \n return numcols*boxsize;\n }", "@Override\n public int getColumnsCount() {\n return columns_.size();\n }", "Dimension getSize();", "Dimension getSize();", "public static int size_length() {\n return (8 / 8);\n }", "@Override\r\n\tpublic int getColumnsCount() {\r\n\t\tint result = 0;\r\n\t\tITableRow headerRow = this.getHeaderRow();\r\n\t\tif (null != headerRow) {\r\n\t\t\t// It is usually consistent that both the columns of table header and table cell\r\n\t\t\tresult = headerRow.getColumnsCount();\r\n\t\t}\r\n\t\telse if (this.hasBodyRow()) {\r\n\t\t\t// Gets the first line, with the number of columns of the first row as number of columns of the table\r\n\t\t\tITableRow row = this.getBodyRow(0);\r\n\t\t\tresult = row.getColumnsCount();\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}", "public static byte getRowSize() {\n return ROW_SIZE;\n }", "public int getColspan() \n {\n int colspan = 1;\n List subHeadings = getSubHeadings();\n if (subHeadings != null && subHeadings.size() > 0)\n { \n colspan = subHeadings.size();\n }\n \n return colspan;\n }", "public int dimensions() {\n return this.data[0].length;\n }", "public int getSize() throws SQLException{\n\t\tint counter = 0;\n\t\tStatement s = null;\n\t\ts = derbyConn.createStatement();\n\t\tResultSet results = s.executeQuery(\"select * from \"+tableName);\n\t\twhile(results.next()) {\n\t\t counter++;\n\t\t}\n\t\tsize = counter;\n\t\treturn size;\n\t}", "public int getMaxCols() {\r\n\t\treturn boardcell[0].length;\r\n\t}", "private int size() {\n\treturn matrix.length; //# of rows\n }", "public int get_data_header_size() {\r\n return sizeof_dimension;\r\n }", "public int size(){\n\t\treturn howMany; \n\t}", "public int getNumberOfColumns() {\n\t\tthis.openDataBase();\n\t\tint iColumnCount = 0;\n\t\ttry { \n\t\t\tCursor mcursor = myDataBase.rawQuery(\"Select * from \" + TABLE_POSES, null);\n\t\t iColumnCount = mcursor.getColumnCount();\n\t\t mcursor.close();\n\t\t}\n\t\tcatch (SQLException sqle) {\n\t\t\tLog.d(\"Database Error\", \"Error getting number of columns\");\n\t\t\tLog.d(\"SQL EXception\", sqle.toString());\n\t\t}\n\t\t\n\t\tthis.close();\n return iColumnCount;\n\t}", "public Integer getN_COLS() {\n return n_COLS;\n }", "@java.lang.Override\n public int getColumnsCount() {\n return columns_.size();\n }", "public int getCountCol() {\n\treturn countCol;\n}", "int getTotalSize();", "int getCellsCount();", "public abstract int \t\tgetNodeColumnCount(int nodeIndex);", "@Override\n public int size() {\n return this.size; // Returns value in size field\n }", "public static int colCount() {\n\treturn sheet.getRow(0).getLastCellNum();\n\t}", "public int size() {\n\t\tTree<K, V> t = this;\n\t\tint size = 1;\n\t\treturn size(t, size);\n\t}", "@Override\n protected String appendSize(Column col, String typeName) {\n if (firebirdVersion != FB_VERSION_15)\n return super.appendSize(col, typeName);\n\n if (col.getType() == Types.VARCHAR\n && col.getSize() > indexedVarcharMaxSizeFB15\n && col.getTable() != null) {\n\n if (col.isPrimaryKey()) {\n col.setSize(indexedVarcharMaxSizeFB15);\n return super.appendSize(col, typeName);\n }\n Index[] indexes = col.getTable().getIndexes();\n for (Index index : indexes) {\n if (index.containsColumn(col)) {\n col.setSize(indexedVarcharMaxSizeFB15);\n return super.appendSize(col, typeName);\n }\n }\n Unique[] uniques = col.getTable().getUniques();\n for (Unique unique : uniques) {\n if (unique.containsColumn(col)) {\n col.setSize(indexedVarcharMaxSizeFB15);\n return super.appendSize(col, typeName);\n }\n }\n ForeignKey[] foreignKeys = col.getTable().getForeignKeys();\n for (ForeignKey foreignKey : foreignKeys) {\n if (foreignKey.containsColumn(col)) {\n col.setSize(indexedVarcharMaxSizeFB15);\n return super.appendSize(col, typeName);\n }\n }\n }\n return super.appendSize(col, typeName);\n }" ]
[ "0.6950763", "0.6938563", "0.69161725", "0.6898495", "0.67484534", "0.67484534", "0.66945636", "0.66171163", "0.66171163", "0.6583872", "0.65427583", "0.6529616", "0.6475099", "0.6430617", "0.64246345", "0.63745797", "0.6373441", "0.63617176", "0.63615453", "0.6334964", "0.63281864", "0.63251054", "0.63109887", "0.6292877", "0.6284079", "0.62821203", "0.6278513", "0.62730855", "0.627173", "0.627173", "0.626973", "0.6252543", "0.6226497", "0.6215388", "0.6214548", "0.6207324", "0.6202608", "0.61994094", "0.6177977", "0.61681473", "0.61472845", "0.61293334", "0.6124438", "0.6115804", "0.61146307", "0.61135095", "0.6105467", "0.6089314", "0.6070019", "0.6067877", "0.60524863", "0.6049006", "0.60424227", "0.603832", "0.6033853", "0.6029563", "0.6019382", "0.6017773", "0.60143745", "0.60122657", "0.6009708", "0.6006309", "0.59875804", "0.5976133", "0.5976133", "0.597357", "0.59645545", "0.5955149", "0.5950437", "0.59423405", "0.59347963", "0.5931106", "0.5913976", "0.5910877", "0.5899686", "0.58933425", "0.58855104", "0.5883199", "0.5883199", "0.5882555", "0.58818114", "0.58765304", "0.5873846", "0.5871254", "0.5870591", "0.58637047", "0.58620894", "0.58595514", "0.5858079", "0.5853129", "0.585053", "0.5846047", "0.58448577", "0.5843261", "0.58403337", "0.5835351", "0.58267826", "0.5817311", "0.58144975", "0.5799051" ]
0.8392527
0
Returns an array containing all of the subcolumn
public Column[] toArray() { return toArray(new Column[subColumnSize()]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.walgreens.rxit.ch.cda.StrucDocCol[] getColArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(COL$2, targetList);\n com.walgreens.rxit.ch.cda.StrucDocCol[] result = new com.walgreens.rxit.ch.cda.StrucDocCol[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "public com.guidewire.datamodel.ColumnDocument.Column[] getColumnArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(COLUMN$0, targetList);\r\n com.guidewire.datamodel.ColumnDocument.Column[] result = new com.guidewire.datamodel.ColumnDocument.Column[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "public abstract TableTreeNodeColumn[] getColumns();", "public int[] getCol() { return _col; }", "public String[] getColumns() {\r\n\t\tlogger.trace(\"Enter getColumns\");\r\n\t\tlogger.trace(\"Exit getColumns\");\r\n\t\treturn columns;\r\n\t}", "Column[] getColumns() { return columns; }", "public Object[] getColumn(int c) {\n// Object[] dta = new Object[data.rows];\n// for (int i = 0; i < data.rows; i++)\n// dta[i] = data.values[c][c];\n return data.values[c];\n }", "public List<Column> getColumns();", "public com.walgreens.rxit.ch.cda.StrucDocSub[] getSubArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(SUB$2, targetList);\n com.walgreens.rxit.ch.cda.StrucDocSub[] result = new com.walgreens.rxit.ch.cda.StrucDocSub[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "List<String> getColumns();", "public Column[] getColumns() {return columns;}", "public com.walgreens.rxit.ch.cda.StrucDocColgroup[] getColgroupArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(COLGROUP$4, targetList);\n com.walgreens.rxit.ch.cda.StrucDocColgroup[] result = new com.walgreens.rxit.ch.cda.StrucDocColgroup[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "public List<String> getColumns();", "public abstract ArrayList<Cell> getSelfArray();", "public ArrayList getColumns() {\n return columns;\n }", "public ArrayList<Column> getColumnArrayList(){\n\t\t\n\t\treturn clist;\n\t\t\n\t}", "Object[] getChildArray();", "public Object[] subList(int c){\n return Arrays.copyOf(data, c);\n }", "public Column[] toArray(Column[] dist) {\n int len = Math.min(subColumnSize(), dist.length);\n if (len < 1) return dist;\n Column e = this;\n for (int i = 0; i < len; i++) {\n dist[i] = e;\n e = e.next;\n }\n return dist;\n }", "public List<byte[]> getColumns(){\n List<byte[]> list = new ArrayList<byte[]>();\n Iterator<Pair<String ,byte[]>> iter =outList.iterator();\n if(iter.hasNext()){\n byte[] col = iter.next().getSecond();\n if(null != col)\n list.add(col);\n }\n return list;\n }", "public double[] getColumnPackedCopy() {\n double[] vals = new double[m*n];\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n vals[i+j*m] = data[i][j];\n }\n }\n return vals;\n }", "@NonNull\n Collection<TObj> getColumnItems(int column) {\n Collection<TObj> result = new LinkedList<>();\n for (int count = mData.size(), i = 0; i < count; i++) {\n int key = mData.keyAt(i);\n TObj columnObj = mData.get(key).get(column);\n if (columnObj != null) {\n result.add(columnObj);\n }\n\n }\n return result;\n }", "static int[][] getColumns(int[] array){\n int[][] rezultArray = new int[n][n];\n int index = 0;\n for (int i = 0; i < n; i++){\n for (int j = i; j < n * n; j += n){\n rezultArray[i][index++] = array[j];\n }\n index = 0;\n }\n return rezultArray;\n }", "Column getColumns(int index);", "public int[] getColumns()\n\t{\n\t\treturn columns;\n\t}", "java.util.List<Column>\n getColumnsList();", "public int[] getInnerArray() {\n\t\treturn data;\n\t}", "@Override\n public Set<String> getAllColumnIds() {\n return subFilter.getAllColumnIds();\n }", "private String[] getColumas(){\n String columna[]={\"Tipo Usuario \",\"Nombre\",\"Empleado ID\",\"Asignar\"};\n return columna;\n }", "private static String[] getSubCollectionNames (String subcolInfo) {\r\n List nameList = new LinkedList();\r\n int lastIndex = subcolInfo.lastIndexOf(\"</subcolName>\");\r\n int index = 0;\r\n while (index < lastIndex) {\r\n index = subcolInfo.indexOf(\"<subcolName>\", index);\r\n int endIndex = subcolInfo.indexOf(\"</subcolName>\", index);\r\n\r\n String name = subcolInfo.substring(index+12, endIndex).trim();\r\n nameList.add (name);\r\n index = endIndex;\r\n }\r\n return (String[]) nameList.toArray (new String[0]);\r\n }", "@Override\n public List<ScalarFunctionColumn> getScalarFunctionColumns() {\n return subFilter.getScalarFunctionColumns();\n }", "public com.walgreens.rxit.ch.cda.StrucDocCol getColArray(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.StrucDocCol target = null;\n target = (com.walgreens.rxit.ch.cda.StrucDocCol)get_store().find_element_user(COL$2, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n return target;\n }\n }", "public String[][] getContent() {\n\t\tString[][] result = new String[input.size()][getColumnCount()];\n\t\tfor (int i = 0; i < input.size(); i++) {\n\t\t\tfor (int j = 0; j < getColumnCount(); j++) {\n\t\t\t\tresult[i][j] = input.get(i).get(j);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public List getColumns() {\r\n return columns;\r\n }", "@Override\r\n\tpublic String[] getCol(String[] sql) {\n\t\treturn null;\r\n\t}", "@Nonnull\n public int [] getPivot ()\n {\n return Arrays.copyOf (m_aPivot, m_nRows);\n }", "public java.lang.String[] getColumns() {\n return columns;\n }", "public String[][] get();", "@Override\n\tpublic double[][] toArray() {\n\t\tint m = this.getRowsCount();\n\t\tint n = this.getColsCount();\n\t\tdouble[][] arr = new double[m][n];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tarr[i][j] = this.get(i, j);\n\t\t\t}\n\t\t}\n\t\treturn arr;\n\t}", "public SystemColumn[] buildColumnList() {\n \n return new SystemColumn[] {\n SystemColumnImpl.getUUIDColumn(\"TIMING_ID\", false),\n SystemColumnImpl.getColumn(\"CONSTRUCTOR_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"OPEN_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"NEXT_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"CLOSE_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"EXECUTE_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"AVG_NEXT_TIME_PER_ROW\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"PROJECTION_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"RESTRICTION_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"TEMP_CONG_CREATE_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"TEMP_CONG_FETCH_TIME\", Types.BIGINT, true),\n };\n }", "public double[] getColumn(int j) {\n\t double out[] = new double[data.length];\n for (int i = 0; i < data.length; i++) {\n out[i] = data[i][j];\n }\n return out;\n }", "public List<Integer> getColAsList(int j){\n\t\tList<Integer> col = new ArrayList<Integer>(size*size);\n\t\tfor (int i = 0; i < size*size; i++){\n\t\t\tcol.add(numbers[i][j]);\n\t\t}\n\t\treturn col;\n\t}", "public double[] getColVals() {\n return colVals;\n }", "public java.sql.Array getArray(String colName) throws SQLException\n {\n return m_rs.getArray(colName);\n }", "public String[] getColumnArray() {\r\n\t\treturn headerRow;\r\n\t}", "@NonNull\n Collection<TObj> getAll() {\n Collection<TObj> result = new LinkedList<>();\n for (int countR = mData.size(), i = 0; i < countR; i++) {\n int rowKey = mData.keyAt(i);\n SparseArrayCompat<TObj> columns = mData.get(rowKey);\n for (int countC = columns.size(), j = 0; j < countC; j++) {\n int key = columns.keyAt(j);\n result.add(columns.get(key));\n }\n }\n return result;\n }", "public static Object[][] getData() {\n\t\tEntity[] data = db.getData();\n\t\tObject[][] toReturn = new Object[data.length][];\n\t\tfor(int i = 0; i < toReturn.length; i++) {\n\t\t\ttoReturn[i] = data[i].getObject();\n\t\t}\n\t\treturn toReturn;\n\t}", "public SubsetTableImpl(Column[] col) {\n\t\tsuper(col);\n\t\t//ANCA added 2 lines below\n\t\tint numRows = super.getNumRows();\n\t\tthis.subset = new int[numRows];\n\t\t//ANCA took this out: this.subset = new int [this.getNumRows()];\n\t\tfor (int i = 0; i < this.getNumRows(); i++) {\n\t\t\tsubset[i] = i;\n\t\t}\n\t}", "public static Column[] all() {\n return Column.values();\n }", "public int getCols();", "@JSProperty\n int getCols();", "int getColumns();", "int getColumns();", "List<IMEInventoryHandler> getCellArray();", "private ArrayList<Integer> columns() {\r\n ArrayList<Integer> header = new ArrayList<>();\r\n for (int ii = 0; ii < totalBeats; ii += 4) {\r\n header.add(ii);\r\n }\r\n return header;\r\n }", "public Columns getColumns() {\n\tColumns cs = null;\n\tif (column1 != null && !column1.isVariable()) {\n\t\tcs = new Columns(column1);\n\t\tif (column2 != null && !column2.isVariable()) {\n\t\t\tcs.add(column2);\n\t\t}\n\t}\n\treturn cs;\n}", "private Object [] getFilterVals()\n throws java.sql.SQLException\n {\n Object [] ret = new Object[m_cols.length];\n\n for (int i = 0; i < m_cols.length; i++)\n {\n ret[i] = m_rs.getString((String)m_cols[i]);\n }\n return ret;\n }", "public String getColumns() {\n\t\tString[] colStrArr = columns.toArray(new String[columns.size()]); \n\t\tlogInfo(String.join(\", \", colStrArr));\n\t\treturn \"\"+String.join(\", \", colStrArr);\n\t}", "public SystemColumn[] buildColumnList()\n throws StandardException\n {\n return new SystemColumn[] {\n SystemColumnImpl.getUUIDColumn(\"UUID\", false),\n SystemColumnImpl.getIdentifierColumn(\"ROLEID\", false),\n SystemColumnImpl.getIdentifierColumn(\"GRANTEE\", false),\n SystemColumnImpl.getIdentifierColumn(\"GRANTOR\", false),\n SystemColumnImpl.getIndicatorColumn(\"WITHADMINOPTION\"),\n SystemColumnImpl.getIndicatorColumn(\"ISDEF\"),\n };\n }", "public String[] getChildList() {\n if (this.children == null) {\n return this.pointsByChild.keySet().toArray(new String[this.pointsByChild.size()]);\n } else {\n return this.children.clone();\n }\n }", "public Array getArray(String columnName) throws SQLException {\n\n try {\n int id = getNextId(TraceObject.ARRAY);\n debugCodeAssign(\"Clob\", TraceObject.ARRAY, id, \"getArray(\" + quote(columnName) + \")\");\n Value v = get(columnName);\n return v == ValueNull.INSTANCE ? null : new JdbcArray(conn, v, id);\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "private Object[][] getTableData() {\n Object[][] lclArray = null;\n\n if (articles.size() == 0) {\n lclArray = new Object[1][NUM_COLS];\n lclArray[0][0] = \"\";\n lclArray[0][1] = \"\";\n lclArray[0][2] = \"\";\n return lclArray;\n } // no articles yet !!!!\n if (articles != null) {\n lclArray = new Object[articles.size()][NUM_COLS];\n }\n for (int i = 0; i < articles.size(); i++) {\n NewsArticle article = (NewsArticle) articles.elementAt(i);\n\n lclArray[i][0] = article.getSubject();\n lclArray[i][1] = String.valueOf(article.getScore(filterType));\n lclArray[i][2] = article.getUserRating();\n }\n return lclArray;\n }", "public List<Object[]> select() {\n return selectColumns(metadata.getColumns());\n }", "List<Column> getQueryColumns();", "public List<Column> getColumns(){\r\n\t\treturn columns;\r\n\t}", "public String[] getStringArray(String subExpression) {\n String[] result = null;\n String expression = contextNode + \"/\" + subExpression;\n try {\n NodeList nl = (NodeList)xp.evaluate(contextNode + \"/\" + subExpression, source, XPathConstants.NODESET);\n int n = nl.getLength();\n if (n > 0) {\n result = new String[n];\n for (int i = 0; i < n; i++) result[i] = nl.item(i).getTextContent();\n }\n } catch(Exception e) {\n Util.log(\"XML error: can't read node \" + expression + \".\");\n Util.logException(e);\n }\n return result;\n }", "public final Column[] getRawColumns() { return columns; }", "@Override\n\tpublic List<T> getCol(MatrixCoordinate coordIn) {\n\t\treturn this.getCol(coordIn.getX());\n\t}", "public String[][] getNames () ;", "@Override\n\tpublic List<T> getCol(long xIn) throws IndexOutOfBoundsException {\n\t\tMatrixValidator.throwIfBadIndex(this, xIn, Plane.X);\n\t\tLinkedList<T> output = new LinkedList<>();\n\t\t\n\t\tfor(long i = 0; i < this.getNumRows(); i++){\n\t\t\toutput.addLast(this.get(xIn, i));\n\t\t}\n\t\t\n\t\treturn output;\n\t}", "public Vector[] getAllRowsData() {\n Vector[] va = new Vector[getModel().getRowCount()];\n getAllRowsData(va);\n return va;\n }", "public int getCols() {\n\t\treturn g[0].length;\n\t}", "public V[] values() {\n MyStack<V> 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.getValue());\n current = current.getNext();\n }\n result.push(current.getValue());\n }\n }\n return result.toArray();\n }", "int[] getProjectionSeparators() {\r\n int[] src = new int[10];\r\n Criteria root = this.root;\r\n int i = 0;\r\n int sum = 0;\r\n while (root != null) {\r\n if (root.resultColumn) {\r\n sum += root.projections.size();\r\n src[i++] = sum;\r\n }\r\n root = root.child;\r\n }\r\n int[] dst = new int[i];\r\n System.arraycopy(src, 0, dst, 0, i);\r\n return dst;\r\n }", "public static int[] getColumn(int[][] myArr2D, int colNum)\n {\n int[] x = new int[myArr2D.length];\n for(int row = 0; row < myArr2D.length; row++)\n { \n if(colNum > myArr2D[row].length-1)\n {\n System.out.println(\"That column does not exsit\");\n }\n else\n {\n x[row] = myArr2D[row][colNum];\n }\n }\n return x; \n }", "public Collection<TapColumn> findAllColumns();", "public String[] camposDivididos(){\r\nString[] args=column().split(\"[,]\");\r\nreturn args;\r\n //return Arrays.toString(args);\r\n}", "private static List<Integer> getColumn(int colIndex, int[][] m) {\r\n List<Integer> col = new ArrayList<Integer>(m[0].length);\r\n for (int i = 0; i < m.length; ++i) {\r\n col.add(m[i][colIndex]);\r\n }\r\n\r\n return col;\r\n }", "com.google.protobuf.ByteString getColumnBytes();", "public String[][] arrayAusgabe(){\n\t\treturn spielfeld;\n\t}", "final public int[] getSubset() {\n\t\treturn subset;\n\t}", "public Object[] getOracleArray()\n/* */ throws SQLException\n/* */ {\n/* 272 */ return getOracleArray(0L, Integer.MAX_VALUE);\n/* */ }", "@SuppressWarnings( {\"unchecked\"})\n\t\t\tString[] getStuff() { \n\t\t\t\treturn (String[]) getSeveral().toArray(new String[getSeveral().size()]);\n\t\t\t}", "java.util.List<com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Column> \n getColumnList();", "public Expression getArray()\n {\n return getExpression();\n }", "public int[] getRowAndCol() {\n return new int[]{myRow, myCol};\n }", "com.google.protobuf.ByteString\n getColumnBytes();", "private ArrayList<String[]> getTableRowData() \n {\n int numRow, numCol;\n ArrayList<String[]> data = new ArrayList<>();\n numRow = jtModel.getRowCount(); \n numCol = jtModel.getColumnCount();\n String[] row;\n for(int i = 0; i< numRow; i++)\n {\n row = new String[numCol];\n for(int j = 0; j< numCol; j++)\n {\n row[j] = jtModel.getValueAt(i, j).toString();\n } \n data.add(row);\n } \n return data;\n }", "public com.guidewire.datamodel.ColumnDocument.Column getColumnArray(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.guidewire.datamodel.ColumnDocument.Column target = null;\r\n target = (com.guidewire.datamodel.ColumnDocument.Column)get_store().find_element_user(COLUMN$0, i);\r\n if (target == null)\r\n {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n return target;\r\n }\r\n }", "public java.util.List<com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Column> getColumnList() {\n if (columnBuilder_ == null) {\n return java.util.Collections.unmodifiableList(column_);\n } else {\n return columnBuilder_.getMessageList();\n }\n }", "public Array getArray(int columnIndex) throws SQLException {\n\n try {\n int id = getNextId(TraceObject.ARRAY);\n debugCodeAssign(\"Clob\", TraceObject.ARRAY, id, \"getArray(\" + columnIndex + \")\");\n Value v = get(columnIndex);\n return v == ValueNull.INSTANCE ? null : new JdbcArray(conn, v, id);\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "public List<Pair<byte[], byte[]>> getScanColumn(){\n List<Pair<byte[], byte[]>> list = new ArrayList<Pair<byte[], byte[]>>();\n Iterator<Pair<String ,byte[]>> iter =outList.iterator();\n while(iter.hasNext()){\n Pair<String ,byte[]> col = iter.next();\n if(col.getSecond() == null)\n continue;\n list.add(new Pair<byte[],byte[]>(cf,col.getSecond()));\n }\n return list;\n }", "public Set<String> getColumns();", "private String[] getColumns(String[] properties) {\r\n String[] dst = new String[properties.length];\r\n int i = 0;\r\n for (String string : properties) {\r\n dst[i++] = getProjectionColumn(string);\r\n }\r\n return dst;\r\n }", "double[][] asArray(){\n double[][] array_to_return = new double[this.rows][this.cols];\n for(int i=0; i<this.rows; i++){\n for(int j=0; j<this.cols; j++) array_to_return[i][j] = this.data[i*this.cols + j];\n }\n\n return array_to_return;\n }", "public java.sql.Array getArray(int i) throws SQLException\n {\n return m_rs.getArray(i);\n }", "@Override\n\t\tpublic Object[] toArray() {\n\t\t\treturn snapshot().toArray();\n\t\t}", "private int getSubjTypeIdx() {\n return this.colStartOffset + 6;\n }", "public static String[][] selectSubArray (int rowStart, int rowEnd, int colStart, \n\t\t\t\t\t\t\t\t\t\t\tint colEnd, String[][] dataArray) {\n\t\t\n\t\tint colIndex;\n\t\tint rowIndex;\n\t\t\n\t\tint newRows = (rowEnd - rowStart) +1;\n\t\tint newCols = (colEnd - colStart) +1;\n\t\t\n\t\tString[][] returnData = new String[newRows][newCols];\n\t\trowIndex = rowStart;\n\t\t\n\t\tfor (int i = 0; i < newRows ; i++) { \n\t\t\tcolIndex = colStart;\n\t\t\tfor (int j = 0; j < newCols; j++) {\n\t\t\t\treturnData[i][j] = dataArray[rowIndex][colIndex];\n\t\t\t\tcolIndex++;\n\t\t\t}\n\t\t\trowIndex++;\n\t\t}\n\t\treturn returnData;\n\t}", "public static int[] getColumn(int[][] arr2D, int c) {\n int[] col = new int[arr2D.length];\n for (int r = 0; r < arr2D.length; r++) {\n col[r] = arr2D[r][c];\n }\n return col;\n }" ]
[ "0.7128953", "0.688218", "0.68224645", "0.66983974", "0.65154946", "0.63308525", "0.62865436", "0.6252088", "0.62445045", "0.6194187", "0.6192667", "0.6128387", "0.6085707", "0.60779524", "0.6070498", "0.60268086", "0.602448", "0.6014522", "0.5986211", "0.59720397", "0.5953732", "0.59024715", "0.58845085", "0.5884062", "0.5881218", "0.5878718", "0.58715606", "0.5866008", "0.5843391", "0.5829316", "0.5818294", "0.58098227", "0.57873887", "0.5785526", "0.57574975", "0.5724699", "0.57147276", "0.57108474", "0.5696923", "0.5696155", "0.5686243", "0.5679351", "0.5678099", "0.5655371", "0.5647858", "0.5637102", "0.5630108", "0.56202906", "0.56200606", "0.5605759", "0.5600254", "0.55976516", "0.55976516", "0.5591286", "0.5582462", "0.5537526", "0.5521167", "0.552094", "0.5514477", "0.55046695", "0.5503527", "0.54974174", "0.5496313", "0.5486845", "0.54836935", "0.54752773", "0.5472913", "0.5472556", "0.54567623", "0.5452225", "0.54477715", "0.54374063", "0.5432376", "0.54145056", "0.5414108", "0.5409516", "0.5407446", "0.5405368", "0.53907007", "0.5389516", "0.5388956", "0.5384303", "0.53811467", "0.5377069", "0.53696436", "0.53673655", "0.5366721", "0.5361636", "0.5357206", "0.5355651", "0.5347288", "0.53471845", "0.5342125", "0.53396577", "0.5337637", "0.533651", "0.53353876", "0.5321285", "0.53139985", "0.53085226" ]
0.7608351
0
Returns an array containing all of the subcolumn
public Column[] toArray(Column[] dist) { int len = Math.min(subColumnSize(), dist.length); if (len < 1) return dist; Column e = this; for (int i = 0; i < len; i++) { dist[i] = e; e = e.next; } return dist; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Column[] toArray() {\n return toArray(new Column[subColumnSize()]);\n }", "public com.walgreens.rxit.ch.cda.StrucDocCol[] getColArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(COL$2, targetList);\n com.walgreens.rxit.ch.cda.StrucDocCol[] result = new com.walgreens.rxit.ch.cda.StrucDocCol[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "public com.guidewire.datamodel.ColumnDocument.Column[] getColumnArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(COLUMN$0, targetList);\r\n com.guidewire.datamodel.ColumnDocument.Column[] result = new com.guidewire.datamodel.ColumnDocument.Column[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "public abstract TableTreeNodeColumn[] getColumns();", "public int[] getCol() { return _col; }", "public String[] getColumns() {\r\n\t\tlogger.trace(\"Enter getColumns\");\r\n\t\tlogger.trace(\"Exit getColumns\");\r\n\t\treturn columns;\r\n\t}", "Column[] getColumns() { return columns; }", "public Object[] getColumn(int c) {\n// Object[] dta = new Object[data.rows];\n// for (int i = 0; i < data.rows; i++)\n// dta[i] = data.values[c][c];\n return data.values[c];\n }", "public List<Column> getColumns();", "public com.walgreens.rxit.ch.cda.StrucDocSub[] getSubArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(SUB$2, targetList);\n com.walgreens.rxit.ch.cda.StrucDocSub[] result = new com.walgreens.rxit.ch.cda.StrucDocSub[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "List<String> getColumns();", "public Column[] getColumns() {return columns;}", "public com.walgreens.rxit.ch.cda.StrucDocColgroup[] getColgroupArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(COLGROUP$4, targetList);\n com.walgreens.rxit.ch.cda.StrucDocColgroup[] result = new com.walgreens.rxit.ch.cda.StrucDocColgroup[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "public List<String> getColumns();", "public abstract ArrayList<Cell> getSelfArray();", "public ArrayList getColumns() {\n return columns;\n }", "public ArrayList<Column> getColumnArrayList(){\n\t\t\n\t\treturn clist;\n\t\t\n\t}", "Object[] getChildArray();", "public Object[] subList(int c){\n return Arrays.copyOf(data, c);\n }", "public List<byte[]> getColumns(){\n List<byte[]> list = new ArrayList<byte[]>();\n Iterator<Pair<String ,byte[]>> iter =outList.iterator();\n if(iter.hasNext()){\n byte[] col = iter.next().getSecond();\n if(null != col)\n list.add(col);\n }\n return list;\n }", "public double[] getColumnPackedCopy() {\n double[] vals = new double[m*n];\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n vals[i+j*m] = data[i][j];\n }\n }\n return vals;\n }", "@NonNull\n Collection<TObj> getColumnItems(int column) {\n Collection<TObj> result = new LinkedList<>();\n for (int count = mData.size(), i = 0; i < count; i++) {\n int key = mData.keyAt(i);\n TObj columnObj = mData.get(key).get(column);\n if (columnObj != null) {\n result.add(columnObj);\n }\n\n }\n return result;\n }", "static int[][] getColumns(int[] array){\n int[][] rezultArray = new int[n][n];\n int index = 0;\n for (int i = 0; i < n; i++){\n for (int j = i; j < n * n; j += n){\n rezultArray[i][index++] = array[j];\n }\n index = 0;\n }\n return rezultArray;\n }", "Column getColumns(int index);", "public int[] getColumns()\n\t{\n\t\treturn columns;\n\t}", "java.util.List<Column>\n getColumnsList();", "public int[] getInnerArray() {\n\t\treturn data;\n\t}", "@Override\n public Set<String> getAllColumnIds() {\n return subFilter.getAllColumnIds();\n }", "private String[] getColumas(){\n String columna[]={\"Tipo Usuario \",\"Nombre\",\"Empleado ID\",\"Asignar\"};\n return columna;\n }", "private static String[] getSubCollectionNames (String subcolInfo) {\r\n List nameList = new LinkedList();\r\n int lastIndex = subcolInfo.lastIndexOf(\"</subcolName>\");\r\n int index = 0;\r\n while (index < lastIndex) {\r\n index = subcolInfo.indexOf(\"<subcolName>\", index);\r\n int endIndex = subcolInfo.indexOf(\"</subcolName>\", index);\r\n\r\n String name = subcolInfo.substring(index+12, endIndex).trim();\r\n nameList.add (name);\r\n index = endIndex;\r\n }\r\n return (String[]) nameList.toArray (new String[0]);\r\n }", "@Override\n public List<ScalarFunctionColumn> getScalarFunctionColumns() {\n return subFilter.getScalarFunctionColumns();\n }", "public com.walgreens.rxit.ch.cda.StrucDocCol getColArray(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.StrucDocCol target = null;\n target = (com.walgreens.rxit.ch.cda.StrucDocCol)get_store().find_element_user(COL$2, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n return target;\n }\n }", "public String[][] getContent() {\n\t\tString[][] result = new String[input.size()][getColumnCount()];\n\t\tfor (int i = 0; i < input.size(); i++) {\n\t\t\tfor (int j = 0; j < getColumnCount(); j++) {\n\t\t\t\tresult[i][j] = input.get(i).get(j);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public List getColumns() {\r\n return columns;\r\n }", "@Override\r\n\tpublic String[] getCol(String[] sql) {\n\t\treturn null;\r\n\t}", "@Nonnull\n public int [] getPivot ()\n {\n return Arrays.copyOf (m_aPivot, m_nRows);\n }", "public java.lang.String[] getColumns() {\n return columns;\n }", "public String[][] get();", "@Override\n\tpublic double[][] toArray() {\n\t\tint m = this.getRowsCount();\n\t\tint n = this.getColsCount();\n\t\tdouble[][] arr = new double[m][n];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tarr[i][j] = this.get(i, j);\n\t\t\t}\n\t\t}\n\t\treturn arr;\n\t}", "public SystemColumn[] buildColumnList() {\n \n return new SystemColumn[] {\n SystemColumnImpl.getUUIDColumn(\"TIMING_ID\", false),\n SystemColumnImpl.getColumn(\"CONSTRUCTOR_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"OPEN_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"NEXT_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"CLOSE_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"EXECUTE_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"AVG_NEXT_TIME_PER_ROW\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"PROJECTION_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"RESTRICTION_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"TEMP_CONG_CREATE_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"TEMP_CONG_FETCH_TIME\", Types.BIGINT, true),\n };\n }", "public double[] getColumn(int j) {\n\t double out[] = new double[data.length];\n for (int i = 0; i < data.length; i++) {\n out[i] = data[i][j];\n }\n return out;\n }", "public List<Integer> getColAsList(int j){\n\t\tList<Integer> col = new ArrayList<Integer>(size*size);\n\t\tfor (int i = 0; i < size*size; i++){\n\t\t\tcol.add(numbers[i][j]);\n\t\t}\n\t\treturn col;\n\t}", "public double[] getColVals() {\n return colVals;\n }", "public java.sql.Array getArray(String colName) throws SQLException\n {\n return m_rs.getArray(colName);\n }", "public String[] getColumnArray() {\r\n\t\treturn headerRow;\r\n\t}", "@NonNull\n Collection<TObj> getAll() {\n Collection<TObj> result = new LinkedList<>();\n for (int countR = mData.size(), i = 0; i < countR; i++) {\n int rowKey = mData.keyAt(i);\n SparseArrayCompat<TObj> columns = mData.get(rowKey);\n for (int countC = columns.size(), j = 0; j < countC; j++) {\n int key = columns.keyAt(j);\n result.add(columns.get(key));\n }\n }\n return result;\n }", "public static Object[][] getData() {\n\t\tEntity[] data = db.getData();\n\t\tObject[][] toReturn = new Object[data.length][];\n\t\tfor(int i = 0; i < toReturn.length; i++) {\n\t\t\ttoReturn[i] = data[i].getObject();\n\t\t}\n\t\treturn toReturn;\n\t}", "public SubsetTableImpl(Column[] col) {\n\t\tsuper(col);\n\t\t//ANCA added 2 lines below\n\t\tint numRows = super.getNumRows();\n\t\tthis.subset = new int[numRows];\n\t\t//ANCA took this out: this.subset = new int [this.getNumRows()];\n\t\tfor (int i = 0; i < this.getNumRows(); i++) {\n\t\t\tsubset[i] = i;\n\t\t}\n\t}", "public static Column[] all() {\n return Column.values();\n }", "public int getCols();", "@JSProperty\n int getCols();", "int getColumns();", "int getColumns();", "List<IMEInventoryHandler> getCellArray();", "private ArrayList<Integer> columns() {\r\n ArrayList<Integer> header = new ArrayList<>();\r\n for (int ii = 0; ii < totalBeats; ii += 4) {\r\n header.add(ii);\r\n }\r\n return header;\r\n }", "public Columns getColumns() {\n\tColumns cs = null;\n\tif (column1 != null && !column1.isVariable()) {\n\t\tcs = new Columns(column1);\n\t\tif (column2 != null && !column2.isVariable()) {\n\t\t\tcs.add(column2);\n\t\t}\n\t}\n\treturn cs;\n}", "private Object [] getFilterVals()\n throws java.sql.SQLException\n {\n Object [] ret = new Object[m_cols.length];\n\n for (int i = 0; i < m_cols.length; i++)\n {\n ret[i] = m_rs.getString((String)m_cols[i]);\n }\n return ret;\n }", "public String getColumns() {\n\t\tString[] colStrArr = columns.toArray(new String[columns.size()]); \n\t\tlogInfo(String.join(\", \", colStrArr));\n\t\treturn \"\"+String.join(\", \", colStrArr);\n\t}", "public SystemColumn[] buildColumnList()\n throws StandardException\n {\n return new SystemColumn[] {\n SystemColumnImpl.getUUIDColumn(\"UUID\", false),\n SystemColumnImpl.getIdentifierColumn(\"ROLEID\", false),\n SystemColumnImpl.getIdentifierColumn(\"GRANTEE\", false),\n SystemColumnImpl.getIdentifierColumn(\"GRANTOR\", false),\n SystemColumnImpl.getIndicatorColumn(\"WITHADMINOPTION\"),\n SystemColumnImpl.getIndicatorColumn(\"ISDEF\"),\n };\n }", "public String[] getChildList() {\n if (this.children == null) {\n return this.pointsByChild.keySet().toArray(new String[this.pointsByChild.size()]);\n } else {\n return this.children.clone();\n }\n }", "public Array getArray(String columnName) throws SQLException {\n\n try {\n int id = getNextId(TraceObject.ARRAY);\n debugCodeAssign(\"Clob\", TraceObject.ARRAY, id, \"getArray(\" + quote(columnName) + \")\");\n Value v = get(columnName);\n return v == ValueNull.INSTANCE ? null : new JdbcArray(conn, v, id);\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "private Object[][] getTableData() {\n Object[][] lclArray = null;\n\n if (articles.size() == 0) {\n lclArray = new Object[1][NUM_COLS];\n lclArray[0][0] = \"\";\n lclArray[0][1] = \"\";\n lclArray[0][2] = \"\";\n return lclArray;\n } // no articles yet !!!!\n if (articles != null) {\n lclArray = new Object[articles.size()][NUM_COLS];\n }\n for (int i = 0; i < articles.size(); i++) {\n NewsArticle article = (NewsArticle) articles.elementAt(i);\n\n lclArray[i][0] = article.getSubject();\n lclArray[i][1] = String.valueOf(article.getScore(filterType));\n lclArray[i][2] = article.getUserRating();\n }\n return lclArray;\n }", "public List<Object[]> select() {\n return selectColumns(metadata.getColumns());\n }", "List<Column> getQueryColumns();", "public List<Column> getColumns(){\r\n\t\treturn columns;\r\n\t}", "public String[] getStringArray(String subExpression) {\n String[] result = null;\n String expression = contextNode + \"/\" + subExpression;\n try {\n NodeList nl = (NodeList)xp.evaluate(contextNode + \"/\" + subExpression, source, XPathConstants.NODESET);\n int n = nl.getLength();\n if (n > 0) {\n result = new String[n];\n for (int i = 0; i < n; i++) result[i] = nl.item(i).getTextContent();\n }\n } catch(Exception e) {\n Util.log(\"XML error: can't read node \" + expression + \".\");\n Util.logException(e);\n }\n return result;\n }", "public final Column[] getRawColumns() { return columns; }", "@Override\n\tpublic List<T> getCol(MatrixCoordinate coordIn) {\n\t\treturn this.getCol(coordIn.getX());\n\t}", "public String[][] getNames () ;", "@Override\n\tpublic List<T> getCol(long xIn) throws IndexOutOfBoundsException {\n\t\tMatrixValidator.throwIfBadIndex(this, xIn, Plane.X);\n\t\tLinkedList<T> output = new LinkedList<>();\n\t\t\n\t\tfor(long i = 0; i < this.getNumRows(); i++){\n\t\t\toutput.addLast(this.get(xIn, i));\n\t\t}\n\t\t\n\t\treturn output;\n\t}", "public Vector[] getAllRowsData() {\n Vector[] va = new Vector[getModel().getRowCount()];\n getAllRowsData(va);\n return va;\n }", "public int getCols() {\n\t\treturn g[0].length;\n\t}", "public V[] values() {\n MyStack<V> 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.getValue());\n current = current.getNext();\n }\n result.push(current.getValue());\n }\n }\n return result.toArray();\n }", "int[] getProjectionSeparators() {\r\n int[] src = new int[10];\r\n Criteria root = this.root;\r\n int i = 0;\r\n int sum = 0;\r\n while (root != null) {\r\n if (root.resultColumn) {\r\n sum += root.projections.size();\r\n src[i++] = sum;\r\n }\r\n root = root.child;\r\n }\r\n int[] dst = new int[i];\r\n System.arraycopy(src, 0, dst, 0, i);\r\n return dst;\r\n }", "public static int[] getColumn(int[][] myArr2D, int colNum)\n {\n int[] x = new int[myArr2D.length];\n for(int row = 0; row < myArr2D.length; row++)\n { \n if(colNum > myArr2D[row].length-1)\n {\n System.out.println(\"That column does not exsit\");\n }\n else\n {\n x[row] = myArr2D[row][colNum];\n }\n }\n return x; \n }", "public Collection<TapColumn> findAllColumns();", "public String[] camposDivididos(){\r\nString[] args=column().split(\"[,]\");\r\nreturn args;\r\n //return Arrays.toString(args);\r\n}", "private static List<Integer> getColumn(int colIndex, int[][] m) {\r\n List<Integer> col = new ArrayList<Integer>(m[0].length);\r\n for (int i = 0; i < m.length; ++i) {\r\n col.add(m[i][colIndex]);\r\n }\r\n\r\n return col;\r\n }", "com.google.protobuf.ByteString getColumnBytes();", "public String[][] arrayAusgabe(){\n\t\treturn spielfeld;\n\t}", "final public int[] getSubset() {\n\t\treturn subset;\n\t}", "public Object[] getOracleArray()\n/* */ throws SQLException\n/* */ {\n/* 272 */ return getOracleArray(0L, Integer.MAX_VALUE);\n/* */ }", "@SuppressWarnings( {\"unchecked\"})\n\t\t\tString[] getStuff() { \n\t\t\t\treturn (String[]) getSeveral().toArray(new String[getSeveral().size()]);\n\t\t\t}", "java.util.List<com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Column> \n getColumnList();", "public Expression getArray()\n {\n return getExpression();\n }", "public int[] getRowAndCol() {\n return new int[]{myRow, myCol};\n }", "com.google.protobuf.ByteString\n getColumnBytes();", "private ArrayList<String[]> getTableRowData() \n {\n int numRow, numCol;\n ArrayList<String[]> data = new ArrayList<>();\n numRow = jtModel.getRowCount(); \n numCol = jtModel.getColumnCount();\n String[] row;\n for(int i = 0; i< numRow; i++)\n {\n row = new String[numCol];\n for(int j = 0; j< numCol; j++)\n {\n row[j] = jtModel.getValueAt(i, j).toString();\n } \n data.add(row);\n } \n return data;\n }", "public com.guidewire.datamodel.ColumnDocument.Column getColumnArray(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.guidewire.datamodel.ColumnDocument.Column target = null;\r\n target = (com.guidewire.datamodel.ColumnDocument.Column)get_store().find_element_user(COLUMN$0, i);\r\n if (target == null)\r\n {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n return target;\r\n }\r\n }", "public java.util.List<com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Column> getColumnList() {\n if (columnBuilder_ == null) {\n return java.util.Collections.unmodifiableList(column_);\n } else {\n return columnBuilder_.getMessageList();\n }\n }", "public Array getArray(int columnIndex) throws SQLException {\n\n try {\n int id = getNextId(TraceObject.ARRAY);\n debugCodeAssign(\"Clob\", TraceObject.ARRAY, id, \"getArray(\" + columnIndex + \")\");\n Value v = get(columnIndex);\n return v == ValueNull.INSTANCE ? null : new JdbcArray(conn, v, id);\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "public List<Pair<byte[], byte[]>> getScanColumn(){\n List<Pair<byte[], byte[]>> list = new ArrayList<Pair<byte[], byte[]>>();\n Iterator<Pair<String ,byte[]>> iter =outList.iterator();\n while(iter.hasNext()){\n Pair<String ,byte[]> col = iter.next();\n if(col.getSecond() == null)\n continue;\n list.add(new Pair<byte[],byte[]>(cf,col.getSecond()));\n }\n return list;\n }", "public Set<String> getColumns();", "private String[] getColumns(String[] properties) {\r\n String[] dst = new String[properties.length];\r\n int i = 0;\r\n for (String string : properties) {\r\n dst[i++] = getProjectionColumn(string);\r\n }\r\n return dst;\r\n }", "double[][] asArray(){\n double[][] array_to_return = new double[this.rows][this.cols];\n for(int i=0; i<this.rows; i++){\n for(int j=0; j<this.cols; j++) array_to_return[i][j] = this.data[i*this.cols + j];\n }\n\n return array_to_return;\n }", "public java.sql.Array getArray(int i) throws SQLException\n {\n return m_rs.getArray(i);\n }", "@Override\n\t\tpublic Object[] toArray() {\n\t\t\treturn snapshot().toArray();\n\t\t}", "private int getSubjTypeIdx() {\n return this.colStartOffset + 6;\n }", "public static String[][] selectSubArray (int rowStart, int rowEnd, int colStart, \n\t\t\t\t\t\t\t\t\t\t\tint colEnd, String[][] dataArray) {\n\t\t\n\t\tint colIndex;\n\t\tint rowIndex;\n\t\t\n\t\tint newRows = (rowEnd - rowStart) +1;\n\t\tint newCols = (colEnd - colStart) +1;\n\t\t\n\t\tString[][] returnData = new String[newRows][newCols];\n\t\trowIndex = rowStart;\n\t\t\n\t\tfor (int i = 0; i < newRows ; i++) { \n\t\t\tcolIndex = colStart;\n\t\t\tfor (int j = 0; j < newCols; j++) {\n\t\t\t\treturnData[i][j] = dataArray[rowIndex][colIndex];\n\t\t\t\tcolIndex++;\n\t\t\t}\n\t\t\trowIndex++;\n\t\t}\n\t\treturn returnData;\n\t}", "public static int[] getColumn(int[][] arr2D, int c) {\n int[] col = new int[arr2D.length];\n for (int r = 0; r < arr2D.length; r++) {\n col[r] = arr2D[r][c];\n }\n return col;\n }" ]
[ "0.7608351", "0.7128953", "0.688218", "0.68224645", "0.66983974", "0.65154946", "0.63308525", "0.62865436", "0.6252088", "0.62445045", "0.6194187", "0.6192667", "0.6128387", "0.6085707", "0.60779524", "0.6070498", "0.60268086", "0.602448", "0.6014522", "0.59720397", "0.5953732", "0.59024715", "0.58845085", "0.5884062", "0.5881218", "0.5878718", "0.58715606", "0.5866008", "0.5843391", "0.5829316", "0.5818294", "0.58098227", "0.57873887", "0.5785526", "0.57574975", "0.5724699", "0.57147276", "0.57108474", "0.5696923", "0.5696155", "0.5686243", "0.5679351", "0.5678099", "0.5655371", "0.5647858", "0.5637102", "0.5630108", "0.56202906", "0.56200606", "0.5605759", "0.5600254", "0.55976516", "0.55976516", "0.5591286", "0.5582462", "0.5537526", "0.5521167", "0.552094", "0.5514477", "0.55046695", "0.5503527", "0.54974174", "0.5496313", "0.5486845", "0.54836935", "0.54752773", "0.5472913", "0.5472556", "0.54567623", "0.5452225", "0.54477715", "0.54374063", "0.5432376", "0.54145056", "0.5414108", "0.5409516", "0.5407446", "0.5405368", "0.53907007", "0.5389516", "0.5388956", "0.5384303", "0.53811467", "0.5377069", "0.53696436", "0.53673655", "0.5366721", "0.5361636", "0.5357206", "0.5355651", "0.5347288", "0.53471845", "0.5342125", "0.53396577", "0.5337637", "0.533651", "0.53353876", "0.5321285", "0.53139985", "0.53085226" ]
0.5986211
19
Returns the real colindex(one base)
public int getRealColIndex() { return realColIndex; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getColumnIndex();", "int getColumnIndex();", "int getColumnIndex();", "int getCol();", "int getColumn();", "DataFrameColumn<R,C> colAt(int colIOrdinal);", "public abstract int getColumn();", "public int[] getNeighborColIndex() {\n if (myRow % 2 == 0) {\n return neighborEvenColIndex;\n } else {\n return neighborOddColIndex;\n }\n }", "int getColumnIndex (String columnName);", "int atColumn();", "public abstract int findColForWindow(int x);", "public Integer getColIndex() {\r\n\t\treturn colIndex;\r\n\t}", "public int getColumn();", "private int getNIdx() {\n return this.colStartOffset + 7;\n }", "private int getColumn() {\n return binaryPartition(column);\n }", "int getColumnIndex(String name);", "public int getColIndex() {\r\n\t\treturn colIndex;\r\n\t}", "public int getCol() { return _col; }", "public int getColumnIndex(Comparable key) {\n/* 174 */ int index = this.underlying.getColumnIndex(key);\n/* 175 */ if (index >= this.firstCategoryIndex && index <= lastCategoryIndex()) {\n/* 176 */ return index - this.firstCategoryIndex;\n/* */ }\n/* 178 */ return -1;\n/* */ }", "public abstract int getLastCageCol(int row, int col);", "protected int getCol() {\r\n\t\treturn this.col;\r\n\t}", "private int getCol(int index) {\n return index & (chunkSize - 1);\n }", "public int col() {\r\n return col;\r\n }", "Column getCol();", "public int getCol() {\r\n return this.col;\r\n }", "public final AstValidator.col_index_return col_index() throws RecognitionException {\n AstValidator.col_index_return retval = new AstValidator.col_index_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree DOLLARVAR261=null;\n\n CommonTree DOLLARVAR261_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:448:11: ( DOLLARVAR )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:448:13: DOLLARVAR\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n DOLLARVAR261=(CommonTree)match(input,DOLLARVAR,FOLLOW_DOLLARVAR_in_col_index2240); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n DOLLARVAR261_tree = (CommonTree)adaptor.dupNode(DOLLARVAR261);\n\n\n adaptor.addChild(root_0, DOLLARVAR261_tree);\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "public final int getColumn() {\n/* 368 */ return this.bufcolumn[this.bufpos];\n/* */ }", "private int getRealIndex()\r\n\t{\r\n\t\treturn index - 1;\r\n\t}", "private int ufindex(int row, int col) {\n return grid.length * (row - 1) + col - 1;\n }", "public int getCol() {\n\t\treturn j;\n\t}", "public int getColumnIndex() {\n return table.findColumnIndex(getName());\n }", "public int getOrigCol() {\n return origCol;\n }", "public int getColumnIndex() {\n/* 2979 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public abstract long getIndex();", "public int col() {\r\n\t\treturn col;\r\n\t}", "public int getCol()\n\t{\n\t\treturn col;\n\t}", "public int getCol()\n\t{\n\t\treturn col;\n\t}", "public int getCol() {\n return col;\n }", "@Override\r\n public int getCol() {\r\n return this.col;\r\n }", "public int[] getCol() { return _col; }", "int index(){\n\n\t\t\n\t\tif (cursor == null) \n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\treturn index;\n\t}", "public Col getCol() {\n\treturn new Col(colIndex); \n }", "String getColumn();", "protected Integer getColumnIndex(String header){\n for (Map.Entry<String, Integer> entry: headerMap.entrySet()){\n if (header.toLowerCase().equals(entry.getKey().toLowerCase())) return entry.getValue();\n }\n return -1;\n }", "public int getCol() {\n return this.col; \n }", "Expression getIndexExpr();", "final int getColumnIdx( int column ) throws SQLException{\n\t\tif(column < 1 || column > columns.size())\n\t\t\tthrow SmallSQLException.create( Language.COL_IDX_OUT_RANGE, String.valueOf(column));\n\t\treturn column-1;\n\t}", "private int getPmidIdx() {\n return this.colStartOffset + 2;\n }", "public int getIntialSortedColumn()\n { \n return 0; \n }", "public int getColumnIndex (String columnName)\n\t{\n\t\tif (columnName == null || columnName.length() == 0)\n\t\t\treturn -1;\n\t\t//\n\t\tfor (int i = 0; i < m_data.cols.size(); i++)\n\t\t{\n\t\t\tRColumn rc = (RColumn)m_data.cols.get(i);\n\t\t//\tlog.fine( \"Column \" + i + \" \" + rc.getColSQL() + \" ? \" + columnName);\n\t\t\tif (rc.getColSQL().startsWith(columnName))\n\t\t\t{\n\t\t\t\tlog.fine( \"Column \" + i + \" \" + rc.getColSQL() + \" = \" + columnName);\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "public int getCol(){\r\n\t\treturn this.column;\r\n\t}", "private int getEthIdx() {\n return this.colStartOffset + 3;\n }", "private int getIndex(int row,int column,int maxColumn)\n {\n \tint rownumber = row*maxColumn+column;\n \treturn rownumber;\n }", "public int[] getRowColumnIndex(Point point) {\n\t\tTable table = tableViewer.getTable();\n\t\tViewerCell cell = tableViewer.getCell(point);\n\t\tif(cell == null)\n\t\t\treturn null;\n\t\tint col = cell.getColumnIndex();\n//\t\tint row = table.indexOf((TableItem) cell.getItem());\n//\t\treturn new int[]{row, col};\n\t\tint row = -1;\n\t\t// get row index\n\t\tRectangle clientArea = table.getClientArea();\n\n\t\tint index = table.getTopIndex();\n\t\twhile (index < table.getItemCount()) {\n\t\t\tboolean visible = false;\n\t\t\tTableItem item = table.getItem(index);\n\t\t\tRectangle rect = item.getBounds(col);\n\t\t\tif (rect.contains(point)) {\n\t\t\t\trow = index;\n\t\t\t\treturn new int[] { row, col };\n\t\t\t}\n\t\t\tif (!visible && rect.intersects(clientArea)) {\n\t\t\t\tvisible = true;\n\t\t\t}\n\n\t\t\tif (!visible)\n\t\t\t\treturn new int[] { row, col };\n\t\t\tindex++;\n\t\t}\n\t\treturn new int[] { row, col };\n\t}", "public native int getCellColumn(CellRecord cellRecord) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n return self.getCellColumn([email protected]::getJsObj()());\r\n }-*/;", "private int getLifeFormCol(LifeForm lf)\r\n\t{\r\n\t\tfor(int i = 0; i < rows; i++)\r\n\t\t\tfor(int j = 0; j < columns; j++)\r\n\t\t\t\tif(cells[i][j].getLifeForm() == lf)\r\n\t\t\t\t\treturn j;\r\n\t\treturn -1;\r\n\t}", "void colFull(int col);", "public int getDecoratedColumn (Node node);", "int indexOf(String column);", "int indexOf(String column);", "protected Integer getColumnIndex(String header, boolean caseSensitive){\n if (caseSensitive) return headerMap.getOrDefault(header, -1);\n else return getColumnIndex(header);\n }", "public int getIndex();", "public int getIndex();", "public int getIndex();", "protected int _columnOffset(int absRank) {\n\treturn absRank;\n}", "public int getMinColumn();", "public int getCol() {\n\t\treturn column; \n\t}", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "private int getColumnIndex(Cursor cursor, String columnName) {\n return cursor.getColumnIndexOrThrow(columnName);\n }", "private int getColumn(char columnName) {\r\n\t\tint result = -1;\r\n\t\tif (columnName > 64 && columnName < 91) {\r\n\t\t\tresult = columnName - 65;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public abstract Number getNumber(int columnIndex);", "Column baseColumn();", "public int getColumn()\n\t{\n\t\treturn col;\n\t}", "public int getColumn() { return cc; }", "public abstract int getIndex();", "public int getCol() {\n\t\t\treturn col;\n\t\t}", "public int getCurrentColumn() {\n return buffer.columnNumber();\n }", "public int getRowIndex(Feature f){\n return fc.indexOf(f);\n }", "public interface Column extends Field {\n\n\t/**\n\t * Get the index of the column within the tabular data set. This is\n\t * always 1 based. If a value of 0 is returned that is interpreted as\n\t * this column does not a fixed position and will be assigned an index.\n\t * \n\t * @return The index.\n\t */\n\tpublic int getIndex();\n\t\n}", "public int getColumn()\n {\n return col;\n }", "String getColumn(int index);", "String getColumn(int index);", "public int getColumn(){ return (Integer)args[1]; }", "public int getColumn()\t \t\t{ return column; \t}", "public int getColumn() {\r\n\t\treturn this.col;\r\n\t}", "public int getColumn() {\n return col;\n }", "private int getCharacterColumnNumber(char character) { \t\n if(Character.isUpperCase(character))\n return 1;\n else if(Character.isLowerCase(character))\n return 2;\n else if(Character.isDigit(character))\n return 3;\n else if(Character.isWhitespace(character))\n return 0;\n else if (this.columnHashTable.get(character) != null)\n return this.columnHashTable.get(character);\n else\n return 24;\t\n }", "protected int obtenerIndice(int fil, int col) {\n\t\tint indiceVector;\n\t\tif (fil > col) {\n\t\t\tint auxiliar = col;\n\t\t\tcol = fil;\n\t\t\tfil = auxiliar;\n\t\t}\n\t\tindiceVector = fil * gradoMat + col - (fil * fil + 3 * fil + 2) / 2;\n\t\tif(fil == col) {\n\t\t\tindiceVector = 0;\n\t\t}\n\t\treturn indiceVector; \n\t}" ]
[ "0.7215893", "0.7215893", "0.7215893", "0.68961346", "0.6563815", "0.65566176", "0.65437645", "0.6521637", "0.6510369", "0.64918643", "0.64462966", "0.6443791", "0.6438793", "0.6433987", "0.6389258", "0.63891447", "0.63346714", "0.6315818", "0.6261539", "0.6205151", "0.62027156", "0.61867756", "0.6146089", "0.6141457", "0.6128446", "0.6113598", "0.6107405", "0.610231", "0.61016583", "0.60988885", "0.60830665", "0.6072439", "0.6063485", "0.6055281", "0.6048314", "0.6044801", "0.6044801", "0.6038984", "0.6038156", "0.6037273", "0.6022687", "0.60073304", "0.6001688", "0.59986734", "0.5992688", "0.5977354", "0.59619725", "0.5959697", "0.5958228", "0.5956791", "0.59195536", "0.5907737", "0.5904481", "0.58957285", "0.58867675", "0.58707714", "0.58659375", "0.5850727", "0.5850416", "0.5850416", "0.58385515", "0.5831472", "0.5831472", "0.5831472", "0.58286756", "0.5827602", "0.58255416", "0.58204454", "0.58204454", "0.58204454", "0.58204454", "0.58204454", "0.58204454", "0.58204454", "0.58204454", "0.58204454", "0.58204454", "0.58204454", "0.58204454", "0.58204454", "0.581721", "0.58163095", "0.5804605", "0.5798938", "0.57912713", "0.5784736", "0.5784619", "0.57816595", "0.5780965", "0.5772597", "0.5766531", "0.5759872", "0.5754645", "0.5754645", "0.5744331", "0.5741874", "0.57335097", "0.5725803", "0.5719934", "0.5718476" ]
0.76153183
0
Returns the last column
public Column getTail() { return tail != null ? tail : this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int getLastCageCol(int row, int col);", "public int getEndColumnNumber() {\n return this.endColumn;\n }", "public String getLastCell() {\n\t\treturn lastCell;\n\t}", "public StrColumn getPageLast() {\n return delegate.getColumn(\"page_last\", DelegatingStrColumn::new);\n }", "public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle getLastCol()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(LASTCOL$12, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public int getMaxColumn();", "public int getCurrentColumn() {\n return buffer.columnNumber();\n }", "public abstract int getLastCageRow(int row, int col);", "int getCol();", "public abstract int getLastCageCellValue(int row, int col);", "public CellCoord previousColumn() {\n return new CellCoord(column - 1, row);\n }", "public int getMaxCol() {\n return maxCol;\n }", "public int getEndRow();", "public int getLast() {\n\treturn _last;\n }", "public int getLast() {\n\t\treturn last;\n\t}", "protected int lastIdx() {\n return arrayIndex(currentWindowIndex() - 1);\n }", "private int lastCategoryIndex() {\n/* 158 */ if (this.maximumCategoryCount == 0) {\n/* 159 */ return -1;\n/* */ }\n/* 161 */ return Math.min(this.firstCategoryIndex + this.maximumCategoryCount, this.underlying\n/* 162 */ .getColumnCount()) - 1;\n/* */ }", "private Line getLastLine() {\n\t\treturn doily.lines.get(doily.lines.size()-1);\n\t}", "int atColumn();", "int getColumn();", "public int getMaxColumn() {\n return seatPlan[0].length;\n }", "public int getCol(){\r\n\t\treturn this.column;\r\n\t}", "protected int getCol() {\r\n\t\treturn this.col;\r\n\t}", "public int col() {\r\n return col;\r\n }", "public int getLastIndex() {\n return lastIndex;\n }", "public int maxC()\r\n {\r\n return metro.numberOfColumns - 1;\r\n }", "public int getCol() {\n\t\treturn column; \n\t}", "public int getLast() {\n if (size == 0)\n return NO_ELEMENT;\n else\n return endOfBlock[numberOfBlocks - 1] - 1;\n }", "public int getCol() {\n return col;\n }", "@Override\r\n public int getCol() {\r\n return this.col;\r\n }", "public int getCol() { return _col; }", "public E getLast() {\r\n\r\n\t\treturn (E) data.get(data.size() - 1);\r\n\t}", "public int getCol() {\r\n return this.col;\r\n }", "public int getCol() {\n\t\treturn j;\n\t}", "public TypeHere getLast() {\n return items[size - 1];\n }", "private CommonTableExpression getLast() {\n\t\tCommonTableExpression cte = !nodes.isEmpty() ? (CommonTableExpression)nodes.get(nodes.size() - 1) : null;\n\t\tif (cte == null) {\n\t\t\tthrow new IllegalStateException(\"No nodes\");\n\t\t}\n\t\treturn cte;\n\t}", "public int col() {\r\n\t\treturn col;\r\n\t}", "public U getLast(){\r\n\t \tif (getArraySize()==0)\r\n\t \t\tthrow new IndexOutOfBoundsException();\r\n\t \t//calls get\r\n\t \treturn get(numElems-1);\r\n\t }", "public E getLast() {\r\n\t\tif (tail == null) {\r\n\t\t\tthrow new NoSuchElementException();\r\n\t\t} else {\r\n\t\t\treturn indices.get(size - 1).data;\t\r\n\t\t}\r\n\t}", "String getColumn();", "public int getLastPos ()\r\n {\r\n return (getFirstPos() + getThickness()) - 1;\r\n }", "Column getCol();", "public CoreCell getLastCellInUniverse (){\r\n return cellsUniverse.get(cellsUniverse.size()-1);\r\n }", "public int getCol()\n\t{\n\t\treturn col;\n\t}", "public int getCol()\n\t{\n\t\treturn col;\n\t}", "public E getLast(){\n return tail.getPrevious().getElement();\n }", "public String getLastC() {\n\t\treturn lastFieldC.getText();\n\t}", "public final int getColumn() {\n/* 368 */ return this.bufcolumn[this.bufpos];\n/* */ }", "public char lastChar() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn (char) (-1);\n\t\treturn (char) last();\n\t}", "public T getLast() {\n return this.getHelper(this.indexCorrespondingToTheLatestElement).data;\n }", "@Override\n //TODO lambda\n public int lastFieldLine() {\n int max = -1;\n for (int i : lineToField.keySet()) {\n if (i > max) {\n max = i;\n }\n }\n return max;\n }", "public T getLast() {\n if (this.getSize() > 0) {\n return buffer[index];\n }\n return null;\n }", "@Override\n public int getCol() {\n return getLayout().getCol();\n }", "public int getMaxRow();", "@Override\r\n\tpublic int selectLastNo() {\n\t\treturn sqlSession.selectOne(namespace + \".selectLastNo\");\r\n\t}", "@Override\r\n\tpublic int selectLastNo() {\n\t\treturn sqlSession.selectOne(namespace + \".selectLastNo\");\r\n\t}", "public int getColumn();", "public int getCurrentPawnColumn(){\r\n GamePosition curPos = currentGame.getCurrentPosition();\n\t\tPlayer white = currentGame.getWhitePlayer();\n\t\tif(curPos.getPlayerToMove().equals(white)) {\n\t\t\treturn curPos.getWhitePosition().getTile().getColumn();\n\t\t\n\t\t} else {\n\t\t\treturn curPos.getBlackPosition().getTile().getColumn();\n\t\t}\r\n }", "protected long getLastCleanedRow() {\n List<String> res = dbconnector.execRead(\"SELECT value FROM MS_DataCleaning_conf \" +\n \"WHERE name='sample_last_cleaned_row'\").get(0);\n return Long.parseLong(res.get(0));\n }", "public String getLastCommit() {\n return getCellContent(LAST_COMMIT);\n }", "public CellCoord nextColumn() {\n return new CellCoord(column + 1, row);\n }", "private void addLastValueToTable(){\n\t\t//System.out.println(theModelColumn.size()-1);\n\t\tsetValueAt(theModelColumn.get(theModelColumn.size()-1).getX(), theModelColumn.size()-1, 0);\n\t\tsetValueAt(theModelColumn.get(theModelColumn.size()-1).getY(), theModelColumn.size()-1, 1);\n\t\tsetValueAt(theModelColumn.get(theModelColumn.size()-1).getWidth(), theModelColumn.size()-1, 2);\n\t\tsetValueAt(theModelColumn.get(theModelColumn.size()-1).getHeight(), theModelColumn.size()-1, 3);\n\t}", "public int getCol() {\n\t\t\treturn col;\n\t\t}", "private int getColumnSpanToTheEnd(int startingColumn) {\r\n return layout.getColumnCount() - startingColumn;\r\n }", "public Object getLast() {\r\n if (size == 0)\r\n throw new NoSuchElementException();\r\n\r\n return header.previous.element;\r\n }", "public int getColumn()\t \t\t{ return column; \t}", "public E getLast()// you finish (part of HW#4)\n\t{\n\t\t// If the tree is empty, return null\n\t\t// FIND THE RIGHT-MOST RIGHT CHILD\n\t\t// WHEN you can't go RIGHT anymore, return the node's data to last Item\n\t\tif (root == null)\n\t\t\treturn null;\n\t\tBinaryNode<E> iteratorNode = root;\n\t\twhile (iteratorNode.hasRightChild())\n\t\t\titeratorNode = iteratorNode.getRightChild();\n\t\treturn iteratorNode.getData();\n\t}", "protected long getLastDLRow() {\n List<String> res = dbconnector.execRead(\"SELECT id FROM DW_station_state \" +\n \"ORDER BY id DESC \" +\n \"LIMIT 1\").get(0);\n return Long.parseLong(res.get(0));\n }", "public int getColumn(){\n return this.column;\n }", "public E last() {\n if(isEmpty()){\n return null;\n }else{\n return trailer.getPrev().getElement();\n }\n }", "public void unsetLastCol()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(LASTCOL$12, 0);\n }\n }", "public int getColumn() {\n return mCol;\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 getColumn() {\n return col;\n }", "public int getCol() {\n return this.col; \n }", "public int getColumn()\n\t{\n\t\treturn col;\n\t}", "public T getLast() {\n\t\t//return the data in the last node\n\t\treturn getLastNode().getData();\n\t}", "java.lang.String getColumn();", "public String getLastNm()\n\t{\n\t\treturn mLastNm;\n\t}", "public int getColumn()\n {\n return col;\n }", "public int endIndex(){\n\t\treturn this.startIndex()+this.getRows()-1;\n\t}", "public int last() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn -1;\n\t\tsynchronized (buffer) {\n\t\t\tint outgoing = buffer[bufferLast - 1];\n\t\t\tbufferIndex = 0;\n\t\t\tbufferLast = 0;\n\t\t\treturn outgoing;\n\t\t}\n\t}", "public int getColumn()\n {\n return column;\n }", "public int getColumn()\r\n\t{\r\n\t\treturn this.column;\r\n\t}", "public int getMinColumn();", "public int getNcol(){\r\n \treturn this.ncol;\r\n \t}", "public String getName() {\n return \"last\";\n }", "public int getColumn() {\r\n\t\treturn this.col;\r\n\t}", "public int getOrigCol() {\n return origCol;\n }", "public int getColumn() {\n return this.column;\n }", "public E last() {\n if (this.isEmpty()) return null;\r\n return this.tail.getElement();\r\n }", "public Object lastElement();", "public static Items findLastRow() {\r\n Items item = dao().findLastRow();\r\n return item;\r\n }", "public E last() { // returns (but does not remove) the last element\n // TODO\n\n if ( isEmpty()) return null ;\n return tail.getElement();\n }", "public int getselectedLFCol()\r\n\t{\r\n\t\treturn selectedLFCol;\r\n\t}", "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 }", "@Override\n\tpublic String getColumnName(int arg0) throws SQLException {\n\t\treturn columns[arg0-1];\n\t}", "public String getLast() {\n if(first == null) return null;\n int i = 0;\n Node x = first;\n for(x = first; i < n - 1; x = x.next) {\n i++;\n }\n return x.data;\n }", "public Node getLast() {\r\n\t\treturn getNode(this.size());\r\n\t}" ]
[ "0.75848633", "0.74350923", "0.7400213", "0.7236102", "0.7200966", "0.7159362", "0.7020922", "0.6860772", "0.6857313", "0.6785662", "0.6751802", "0.6728523", "0.6704546", "0.66731864", "0.6672057", "0.6651794", "0.66199887", "0.6600613", "0.6566355", "0.6516941", "0.6514151", "0.64895916", "0.6484104", "0.64818716", "0.64796025", "0.647803", "0.6466908", "0.6466091", "0.64596057", "0.6458802", "0.64439654", "0.6437055", "0.6435535", "0.6433023", "0.6419946", "0.6418628", "0.64165825", "0.64004546", "0.6383614", "0.638221", "0.63759345", "0.6375794", "0.63642085", "0.6361453", "0.6361453", "0.6334409", "0.6333723", "0.6333015", "0.63270396", "0.63198584", "0.631895", "0.62938964", "0.6292745", "0.6292197", "0.62883896", "0.62883896", "0.62866634", "0.62840354", "0.6247751", "0.6226681", "0.62248397", "0.6212396", "0.62044615", "0.62020254", "0.6199688", "0.619942", "0.61928284", "0.6190663", "0.6190452", "0.61716676", "0.6169252", "0.6165981", "0.61626256", "0.61626256", "0.61542344", "0.6153233", "0.61506885", "0.61479706", "0.6131919", "0.6125542", "0.6121112", "0.6117867", "0.611298", "0.61108965", "0.6108863", "0.6107691", "0.6105625", "0.61050266", "0.61010784", "0.6100071", "0.6099391", "0.60992193", "0.60940206", "0.6089692", "0.6080159", "0.60800874", "0.6076186", "0.6067828", "0.6066976", "0.6065163" ]
0.66674274
15
Returns the resize setting
public int getAutoSize() { return option >> 1 & 3; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getPreviewSizePref();", "public java.lang.Integer getResizeRatio() {\r\n return resizeRatio;\r\n }", "public boolean getResized()\n {\n return resized;\n }", "public int winSize() { return winSize; }", "int getImageQualityPref();", "public Number getSizeratio() {\n return (Number)getAttributeInternal(SIZERATIO);\n }", "@objid (\"7f09cb82-1dec-11e2-8cad-001ec947c8cc\")\n public boolean allowsResize() {\n return true;\n }", "short getPaperSize();", "public boolean isPrefWidthSet() { return get(\"PrefWidth\")!=null; }", "public void settings() { size(1200, 800); }", "int getWindowSize();", "public int getMinSize() {\n return minSize;\n }", "private void getImgSize(){\n imgSizeX = 1080; //mAttacher.getDisplayRect().right - mAttacher.getDisplayRect().left;\n imgSizeY = 888.783f; //mAttacher.getDisplayRect().bottom - mAttacher.getDisplayRect().top;\n }", "int getZoomPref();", "Integer getCurrentWidth();", "private JRadioButton getJRadioButtonButtSize() {\r\n\t\t// if (buttSize == null) {\r\n\t\tbuttSize = new JRadioButton();\r\n\t\tbuttSize.setText(\"New Size\");\r\n\t\tbuttSize.setToolTipText(\"prefers the new size setting instead of the zoom values\");\r\n\t\tbuttSize.addActionListener(this);\r\n\t\tbuttSize.setActionCommand(\"parameter\");\r\n\t\t// }\r\n\t\treturn buttSize;\r\n\t}", "@Override\n\tprotected int getShellStyle() {\n\t\treturn super.getShellStyle()|SWT.RESIZE;\n\t}", "public int getLargeur() {\n return getWidth();\n }", "public boolean isMinWidthSet() { return get(\"MinWidth\")!=null; }", "public Size getPreviewSize() {\n String pair = get(\"preview-size\");\n if (pair == null)\n return null;\n String[] dims = pair.split(\"x\");\n if (dims.length != 2)\n return null;\n\n return new Size(Integer.parseInt(dims[0]),\n Integer.parseInt(dims[1]));\n\n }", "long getThumbSizeX();", "public double getPrefWidth() { return getPrefWidth(-1); }", "short getFitWidth();", "public RMSize getSize() { return new RMSize(getWidth(), getHeight()); }", "public void settings() {\n size(640, 384);\n }", "private void resize() {\n }", "public Configuration getScale() {\n return scale;\n }", "public String getAutosizing()\n{\n String li = _layoutInfo instanceof String? (String)_layoutInfo : null;\n return li!=null && li.length()>6 && (li.charAt(0)=='-' || li.charAt(0)=='~')? li : getAutosizingDefault();\n}", "@Override\n\tpublic float getPrefWidth() {\n\t\treturn windowSize * 1.2f;\n\t}", "public int getFrameSize();", "int getCurrentSize();", "public int getCurrentWidth();", "short getHResolution();", "public Dimension getSnapSize()\n\t{\n\t\treturn snapSize;\n\t}", "public int getSetSize(){ return Integer.parseInt(setSize.getText()); }", "public void settings() {\r\n size(750, 550);\r\n }", "private int calculateResizeThreshold() {\n\t\treturn (buffer.length >> 2) * 3;\n\t}", "Dimension getSize();", "Dimension getSize();", "void resize() {\n }", "private void toggleResizeMode() {\n\n CURRENT_RESIZE_MODE = CURRENT_RESIZE_MODE + 1;\n if (CURRENT_RESIZE_MODE >= RESIZE_MODE.size()) {\n CURRENT_RESIZE_MODE = 0;\n }\n AppPref.getInstance().setResizeMode(CURRENT_RESIZE_MODE);\n simpleExoPlayerView.setResizeMode((Integer) RESIZE_MODE.keySet().toArray()[CURRENT_RESIZE_MODE]);\n btn_screen.setImageResource(RESIZE_MODE.get(CURRENT_RESIZE_MODE));\n }", "private void showImageSizeOptionDialog() {\n\t\t// TODO Auto-generated method stub\n\t\tCharSequence title = res.getString(R.string.stream_set_res_photo);\n\n\t\tfinal String[] imageSizeUIString = uiDisplayResource.getImageSize();\n\t\tif (imageSizeUIString == null) {\n\t\t\tWriteLogToDevice.writeLog(\"[Error] -- SettingView: \",\n\t\t\t\t\t\"imageSizeUIString == null\");\n\t\t\tpreviewHandler\n\t\t\t\t\t.obtainMessage(GlobalApp.MESSAGE_UPDATE_UI_IMAGE_SIZE)\n\t\t\t\t\t.sendToTarget();\n\t\t\treturn;\n\t\t}\n\t\tint length = imageSizeUIString.length;\n\n\t\tint curIdx = 0;\n\t\tUIInfo uiInfo = reflection.refecltFromSDKToUI(\n\t\t\t\tSDKReflectToUI.SETTING_UI_IMAGE_SIZE,\n\t\t\t\tcameraProperties.getCurrentImageSize());\n\n\t\tfor (int ii = 0; ii < length; ii++) {\n\t\t\tWriteLogToDevice.writeLog(\"[Normal] -- SettingView: \",\n\t\t\t\t\t\"uiInfo.uiStringInSetting == \" + uiInfo.uiStringInSetting);\n\t\t\tif (imageSizeUIString[ii].equals(uiInfo.uiStringInSetting)) {\n\t\t\t\tcurIdx = ii;\n\t\t\t}\n\t\t}\n\n\t\tDialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\n\t\t\t\tString value = (String) reflection.refecltFromUItoSDK(\n\t\t\t\t\t\tUIReflectToSDK.SETTING_SDK_IMAGE_SIZE,\n\t\t\t\t\t\timageSizeUIString[arg1]);\n\t\t\t\tcameraProperties.setImageSize(value);\n\t\t\t\tpreviewHandler.obtainMessage(\n\t\t\t\t\t\tGlobalApp.MESSAGE_UPDATE_UI_IMAGE_SIZE).sendToTarget();\n\t\t\t\targ0.dismiss();\n\t\t\t\tsettingValueList = getSettingValue();\n\t\t\t\tif (optionListAdapter == null) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\toptionListAdapter.notifyDataSetChanged();\n\t\t\t}\n\t\t};\n\t\tshowOptionDialog(title, imageSizeUIString, curIdx, listener, false);\n\t}", "@Min(2)\n public int getWindowSize()\n {\n return windowSize;\n }", "public int getwDimension()\n {\n return wDimension;\n }", "protected final Dimension windowSizeControl () {\n\t\tif (!this.isMaximum && !this.isIcon && !this.isClosed) {\n\t\t\tint height = size.height;\n\t\t\tint width = size.height;\n\t\t\t\n\t\t\t// Gets the current size\n\t\t\tint currentHeight = this.getHeight();\n\t\t\tint currentWidth = this.getWidth();\n\t\t\t\n\t\t\t// Makes a pack() to get the minimum required size\n\t\t\tthis.pack();\n\t\t\t\n\t\t\t// Gets the pack size\n\t\t\tint packHeight = this.getHeight();\n\t\t\tint packWidth = this.getWidth();\n\t\t\t\n\t\t\t// Calculates the ideal height\n\t\t\tif (packHeight > currentHeight) {\n\t\t\t\theight = packHeight;\n\t\t\t} else {\n\t\t\t\theight = currentHeight;\n\t\t\t}\n\t\t\t// Calculates the ideal width\n\t\t\tif (packWidth > currentWidth) {\n\t\t\t\twidth = packWidth;\n\t\t\t} else {\n\t\t\t\twidth = currentWidth;\n\t\t\t}\n\t\t\t\n\t\t\t// It must not be greater than the desktop size\n\t\t\tint desktopHeight = parent.getDesktopPane().getHeight();\n\t\t\tint desktopWidth = parent.getDesktopPane().getWidth();\n\t\t\t\n\t\t\tif (width > desktopWidth){\n\t\t\t\twidth = desktopWidth;\n\t\t\t}\n\t\t\tif (packWidth > desktopWidth){\n\t\t\t\tpackWidth = desktopWidth;\n\t\t\t}\n\t\t\tif (height > desktopHeight){\n\t\t\t\theight = desktopHeight;\n\t\t\t}\n\t\t\tif (packHeight > desktopHeight){\n\t\t\t\tpackHeight = desktopHeight;\n\t\t\t}\n\t\t\t\n\t\t\t// Resizes the window and sets the minimum allowed size\n\t\t\tsize = new Dimension(width, height);\n\t\t\tsetSize(size);\n\t\t\tsetMinimumSize(new Dimension(packWidth, packHeight));\n\t\t}\n\t\treturn size;\n\t}", "abstract public int getMinWidth();", "protected abstract void resize();", "public JComboBox getSizesSelection() {\r\n return mySizes;\r\n \r\n }", "double getOldWidth();", "public int getResizeElementCount() { return vboSet.getResizeElementCount(); }", "public Dimension getSize()\n {\n return new Dimension(300, 150);\n }", "public int getPreferredOptionsPanelGravity() {\n int rotation = getRotation();\n if (this.mInitialDisplayWidth < this.mInitialDisplayHeight) {\n if (rotation != 1) {\n return (rotation == 2 || rotation != 3) ? 81 : 8388691;\n }\n return 85;\n } else if (rotation == 1) {\n return 81;\n } else {\n if (rotation != 2) {\n return rotation != 3 ? 85 : 81;\n }\n return 8388691;\n }\n }", "public int getMediaAssetScaleTypeValue() {\n return instance.getMediaAssetScaleTypeValue();\n }", "public int[] getSuggestedScreenSize();", "@java.lang.Override\n public long getWindowSize() {\n return windowSize_;\n }", "public int getAutoScaleStatus() {\n return autoScaleStatus;\n }", "int wkhtmltoimage_get_global_setting(PointerByReference settings, Pointer name, Pointer value, int vs);", "short getFitHeight();", "@Override\n\tpublic void resize() {\n\t\t\n\t}", "protected byte desiredWinScale() { return 9; }", "public void updateParametersPictureSize() {\n if (this.mCameraDevice == null) {\n Log.w(TAG, \"attempting to set picture size without camera device\");\n return;\n }\n String pictureSizeKey;\n this.mCameraSettings.setSizesLocked(false);\n SettingsManager settingsManager = this.mActivity.getSettingsManager();\n if (isCameraFrontFacing()) {\n pictureSizeKey = Keys.KEY_PICTURE_SIZE_FRONT;\n } else {\n pictureSizeKey = Keys.KEY_PICTURE_SIZE_BACK;\n }\n String pictureSize = settingsManager.getString(SettingsManager.SCOPE_GLOBAL, pictureSizeKey, SettingsUtil.getDefaultPictureSize(isCameraFrontFacing()));\n Size size = new Size(960, MotionPictureHelper.FRAME_HEIGHT_9);\n if (isDepthEnabled()) {\n size = SettingsUtil.getBokehPhotoSize(this.mActivity, pictureSize);\n } else {\n size = SettingsUtil.sizeFromString(pictureSize);\n }\n this.mCameraSettings.setPhotoSize(size);\n if (ApiHelper.IS_NEXUS_5) {\n if (ResolutionUtil.NEXUS_5_LARGE_16_BY_9.equals(pictureSize)) {\n this.mShouldResizeTo16x9 = true;\n } else {\n this.mShouldResizeTo16x9 = false;\n }\n }\n if (size != null) {\n Size optimalSize;\n Tag tag;\n Size optimalSize2 = CameraUtil.getOptimalPreviewSize(this.mActivity, this.mCameraCapabilities.getSupportedPreviewSizes(), ((double) size.width()) / ((double) size.height()));\n Size original = this.mCameraSettings.getCurrentPreviewSize();\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Photo module Set preview size \");\n stringBuilder.append(size);\n stringBuilder.append(\" calculate size \");\n stringBuilder.append(optimalSize2);\n stringBuilder.append(\" original size \");\n stringBuilder.append(original);\n android.util.Log.e(\"===++++++=====\", stringBuilder.toString());\n if (isDepthEnabled()) {\n optimalSize = SettingsUtil.getBokehPreviewSize(pictureSize, false);\n } else {\n if ((size.width() == 4160 && size.height() == 1970) || (size.width() == 3264 && size.height() == 1546)) {\n optimalSize2 = new Size(1440, MotionPictureHelper.FRAME_HEIGHT_9);\n }\n optimalSize = optimalSize2;\n this.mActivity.getCameraAppUI().setSurfaceHeight(optimalSize.height());\n this.mActivity.getCameraAppUI().setSurfaceWidth(optimalSize.width());\n }\n this.mUI.setCaptureSize(optimalSize);\n Log.w(TAG, String.format(\"KPI original size is %s, optimal size is %s\", new Object[]{original.toString(), optimalSize.toString()}));\n if (!optimalSize.equals(original)) {\n tag = TAG;\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"setting preview size. optimal: \");\n stringBuilder2.append(optimalSize);\n stringBuilder2.append(\"original: \");\n stringBuilder2.append(original);\n Log.v(tag, stringBuilder2.toString());\n this.mCameraSettings.setPreviewSize(optimalSize);\n this.mCameraDevice.applySettings(this.mCameraSettings);\n this.mCameraSettings = this.mCameraDevice.getSettings();\n if (this.mCameraSettings == null) {\n Log.e(TAG, \"camera setting is null ?\");\n }\n }\n if (!(optimalSize.width() == 0 || optimalSize.height() == 0)) {\n Log.v(TAG, \"updating aspect ratio\");\n this.mUI.updatePreviewAspectRatio(((float) optimalSize.width()) / ((float) optimalSize.height()));\n }\n this.mCameraSettings.setSizesLocked(true);\n tag = TAG;\n StringBuilder stringBuilder3 = new StringBuilder();\n stringBuilder3.append(\"Preview size is \");\n stringBuilder3.append(optimalSize);\n Log.d(tag, stringBuilder3.toString());\n }\n }", "public int getMediaAssetScaleTypeValue() {\n return mediaAssetScaleType_;\n }", "protected IDialogSettings getDialogBoundsSettings() {\n\t\t\t\treturn JavaPlugin.getDefault().getDialogSettingsSection(\"JavadocWizardDialog\"); //$NON-NLS-1$\n\t\t\t}", "public int grWidth() { return width; }", "public Dimension getSize() {\r\n\t\treturn this.size;\r\n\t}", "public Dimension getImageSize() {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic void resize() {\n\t\t\r\n\t}", "@Override\n\tpublic Point getMinSize() {\n\t\treturn Parameter.SPRITE_MIN_SIZE;\n\t}", "public Point getSize() {\n checkWidget();\n return parent.fixPoint( itemBounds.width, itemBounds.height );\n }", "Dimension getWindowSizeById(long id);", "private void getSmallestPreviewSize(Parameters params) {\n List<Size> supportedPreviewSizes = params.getSupportedPreviewSizes();\n Size minSize = null;\n for (Size s : supportedPreviewSizes) {\n if (minSize == null || s.width < minSize.width) {\n minSize = s;\n }\n }\n height_ = minSize.height;\n width_ = minSize.width;\n }", "long getThumbSizeY();", "public Point getMinimumSize() {\n checkWidget();\n return parent.fixPoint( minimumWidth, minimumHeight );\n }", "@Override\n protected Dimension getMaximumThumbSize()\n {\n return new Dimension(size, size);\n }", "@Override\n protected Dimension getMaximumThumbSize()\n {\n return new Dimension(size, size);\n }", "Dimension getCanvasDimension();", "public static int getSIZE() {\n return SIZE;\n }", "public final int getWidth() {\r\n return config.width;\r\n }", "public Number getSizeSno() {\n return (Number)getAttributeInternal(SIZESNO);\n }", "@java.lang.Override\n public long getWindowSize() {\n return windowSize_;\n }", "public short getGridSize() {\n\t\treturn gridSize;\n\t}", "public double getMinWidth() { return getMinWidth(-1); }", "public int getResolution() {\n return resolution;\n }", "public final Vector2f getResolution() {\r\n return settings.getResolution();\r\n }", "@Override\n protected Dimension getMinimumThumbSize()\n {\n return new Dimension(size, size);\n }", "@Override\n protected Dimension getMinimumThumbSize()\n {\n return new Dimension(size, size);\n }", "default int getSquareSize() {\n return java.awt.Toolkit.getDefaultToolkit().getScreenSize().width / 20;\n }", "public static boolean isResizable() {\n return clientAccessor().isResizableMode();\n }", "int getHorizontalResolution();", "public Dimension getSize() {\n\t\treturn size.getCopy();\n\t}", "VideoSize getSize() {\n return size;\n }", "public int getWidth() {\n return mySize.getWidth();\n }", "public int getSize()\n\t{\n\t\treturn setSize;\n\t}", "private int getTargetWidth()\r\n\t{\r\n\t\tsynchronized (mMutex)\r\n\t\t{\r\n\t\t\treturn mTargetWidth;\r\n\t\t}\r\n\t}", "public void setFrameSize();", "public int GetSize() {\n\t\tif(this.V == 0) {\n\t\t\t\n\t\t\t// Read from settings file\n\t\t\ttry {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"settings.txt\"));\n\t\t\t\tString line;\n\t\t\t\tif((line = br.readLine()) != null) {\n\t\t\t\t\tthis.V = Integer.parseInt(line.split(\" \")[1]);\n\t\t\t\t}\n\t\t\t} catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn this.V;\n\t}", "public int getImageWidth() {\n\treturn width;\n }", "public int getSwitchTextSize(){\n return switchTextSize;\n }", "Dimension[] getSizes();", "@Override\n public void settings() {\n setSize(WIDTH, HEIGHT);\n }" ]
[ "0.7015781", "0.691016", "0.64199024", "0.6101406", "0.60848427", "0.60575026", "0.6003313", "0.5961972", "0.59260714", "0.5862109", "0.5858231", "0.5827427", "0.5814925", "0.581468", "0.5797763", "0.57732373", "0.57492596", "0.57474345", "0.57379246", "0.5732393", "0.57169706", "0.57087064", "0.56966084", "0.56780386", "0.5668206", "0.5666547", "0.56555116", "0.5652386", "0.56520593", "0.5648493", "0.5643333", "0.56071526", "0.5570348", "0.55698407", "0.556782", "0.5549668", "0.5543277", "0.5526548", "0.5526548", "0.5524316", "0.5521132", "0.55153555", "0.55131584", "0.5497485", "0.5494169", "0.5469302", "0.54452866", "0.54399693", "0.5437067", "0.54366297", "0.542167", "0.5420754", "0.5413718", "0.53946394", "0.5392911", "0.5389464", "0.53820854", "0.53801286", "0.5379428", "0.53770226", "0.53756636", "0.53698236", "0.53636557", "0.53592396", "0.5356072", "0.5353737", "0.5351552", "0.5344727", "0.53433084", "0.53390294", "0.53357875", "0.5328624", "0.5327139", "0.53262395", "0.53262395", "0.5324934", "0.5323791", "0.5322911", "0.5319469", "0.5316691", "0.53148115", "0.53139806", "0.5313596", "0.5312723", "0.53113616", "0.53113616", "0.5301319", "0.52977246", "0.5297182", "0.52965397", "0.5295238", "0.52949435", "0.5290899", "0.5289981", "0.52896595", "0.5289409", "0.5282111", "0.52812743", "0.52799547", "0.52750427" ]
0.55233705
40
Returns the column type
public int getColumnType() { return (this.option >> 6) & 3; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Column.Type getType();", "public String getColType() {\r\n\t\treturn colType;\r\n\t}", "public Class<?>[] getColumnTypes();", "public StrColumn getType() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"type\", StrColumn::new) :\n getBinaryColumn(\"type\"));\n }", "public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }", "public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }", "public Class<?> getColumnClass(int columnIndex) {\r\n return this.table.getSchema().getColumnType(columnIndex);\r\n }", "@Override\r\n\tpublic String getType() {\n\t\treturn \"column\";\r\n\t}", "@Override\n\tpublic String getColumnTypeName(int arg0) throws SQLException {\n\t\treturn tMeta[0].colType(arg0);\n\t}", "@Override\n\tpublic int getColumnType(int col) throws SQLException {\n\n\t\tif (col <= width && col >= 1) {\n\t\t\tcol--;\n\n\t\t\tString str = table[0][col];\n\t\t\tStringTokenizer token = new StringTokenizer(str, \",\");\n\t\t\tString name = token.nextToken();\n\t\t\tString type = token.nextToken();\n\t\t\t/*\n\t\t\t * possible errors here according . we should check accurately the\n\t\t\t * name of types returned by amr to make sure they match the words\n\t\t\t * here . anyway I wrote them now and can be modified in\n\t\t\t * logartithmic time easily :P :D\n\t\t\t */\n\n\t\t\tif (type.equals(\"double\"))\n\t\t\t\treturn java.sql.Types.DOUBLE;\n\t\t\telse if (type.equals(\"integer\"))\n\t\t\t\treturn java.sql.Types.INTEGER;\n\t\t\telse if (type.equals(\"string\"))\n\t\t\t\treturn java.sql.Types.VARCHAR;\n\t\t\telse if (type.equals(\"boolean\"))\n\t\t\t\treturn java.sql.Types.BOOLEAN;\n\t\t\telse if (type.equals(\"date\"))\n\t\t\t\treturn java.sql.Types.DATE;\n\t\t\telse\n\t\t\t\treturn java.sql.Types.NULL;\n\n\t\t} else\n\t\t\tthrow new SQLException(\"column requested out of table bounds\");\n\n\t}", "public int getColumnType(int position) {\n return columns[position].getType();\n }", "RelDataType getColumnType(String sql);", "public TypeColis getTypeColis() {\r\n\t\treturn typeColis;\r\n\t}", "private ColumnType typeOf(DataType type) {\n switch (type) {\n case _class:\n return ColumnType.nominal;\n case _float:\n return ColumnType.continuous;\n case _order:\n return ColumnType.ordinal;\n default:\n throw new IllegalArgumentException(\"Unknown type: \" + type);\n }\n }", "@Override\n\tpublic int getType() {\n\t\treturn _expandoColumn.getType();\n\t}", "ColumnAffinityType getColumnType();", "@Override\r\n public Class getColumnClass(int column) {\r\n return getValueAt(0, column).getClass();\r\n }", "public DataType getColDataType(String columnName) {\n final ColumnDefinition x = this.columns.get(columnName.toLowerCase());\n\n return (x == null) ? null\n : x.getDataType();\n }", "public int getColumnType(Connection con, String table) throws SQLException {\r\n if (databaseColumnType == Types.NULL) {\r\n // For the sake of compatibility, always retrieve meta data with capitalized table and column names\r\n // first and afterwards (for Postgres) with lower-cased names\r\n try {\r\n databaseColumnType = selectDataType(con, table.toUpperCase(), databaseFieldName.toUpperCase());\r\n }\r\n catch(SQLException sqlx) {\r\n databaseColumnType = selectDataType(con, table.toLowerCase(), databaseFieldName.toLowerCase());\r\n }\r\n }\r\n return databaseColumnType;\r\n }", "public String getColumnDataType(String columnname){\r\n\t\tSystem.out.println(\"getColumnDataType, column name = \"+columnname);\r\n\t\tStatement st = null;\r\n\t\tString result = null;\r\n\t\ttry {\r\n\t\t\tst = conn.createStatement();\r\n\t\t\t\r\n\t\t\tString query = \"select data_type from information_schema.columns where table_name='sales' and column_name = '\"+columnname+\"'\";\r\n\t\t\tResultSet rs = st.executeQuery(query);\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\tresult = rs.getString(1);\r\n\t\t\t\tSystem.out.println(\"getColumnDataType, result=\"+result);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\trs.close();\r\n\t\t\treturn result;\r\n\t\t}\r\n\t\tcatch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tfinally{\r\n\t\t\tif(st!=null){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tst.close();\r\n\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}", "private static String getColumnType(String columnValue) {\n\t\ttry {\r\n\t\t\tInteger.parseInt(columnValue);\r\n\t\t\treturn \"INTEGER\";\r\n\t\t} catch (Throwable error) {}\r\n\t\t// then, try to parse it as a float\r\n\t\ttry {\r\n\t\t\tDouble.parseDouble(columnValue);\r\n\t\t\treturn \"REAL\";\r\n\t\t} catch (Throwable error) {}\r\n\t\t// otherwise, it's a text column\r\n\t\treturn \"TEXT\";\r\n\t}", "public Class getColumnClass(int column)\n\t {\n\t return getValueAt(0, column).getClass();\n\t }", "public LuaObject getcoltypes() throws SQLException\n {\n L.newTable();\n LuaObject table = L.getLuaObject(-1);\n \n ResultSetMetaData md = rs.getMetaData();\n \n for (int i = 1; i <= md.getColumnCount(); i++)\n {\n String name = md.getColumnTypeName(i);\n \n L.pushNumber(i);\n L.pushString(name);\n L.setTable(-3);\n }\n L.pop(1);\n \n return table;\n }", "@Override\n public Class getColumnClass(int c) {\n return getValueAt(0, c).getClass();\n }", "@Override\r\n\t\t\tpublic Class getColumnClass(int column)\r\n\t\t\t{\r\n\t\t\t\treturn getValueAt(0, column).getClass();\r\n\t\t\t}", "@Override\r\n\t\t\tpublic Class getColumnClass(int column)\r\n\t\t\t{\r\n\t\t\t\treturn getValueAt(0, column).getClass();\r\n\t\t\t}", "@Override\r\n\t\t\tpublic Class getColumnClass(int column)\r\n\t\t\t{\r\n\t\t\t\treturn getValueAt(0, column).getClass();\r\n\t\t\t}", "@Override\r\n\t\t\tpublic Class getColumnClass(int column)\r\n\t\t\t{\r\n\t\t\t\treturn getValueAt(0, column).getClass();\r\n\t\t\t}", "@Override\n\tpublic String getColumnClassName(int arg0) throws SQLException {\n\t\treturn tMeta[0].colType(arg0-1);\n\t}", "public String getColumnType(int column_id) {\n\t\t// Start of user code for method getColumnType\n\t\tString getColumnType = \"\";\n\t\treturn getColumnType;\n\t\t// End of user code\n\t}", "public Class<?> getColumnClass(int columnIndex) {\n switch(columnIndex){\n case 0:\n return String.class;\n case 1:\n return Date.class;\n case 2:\n return String.class;\n case 3:\n return BigDecimal.class;\n }\n return super.getColumnClass(columnIndex);\n }", "public Class<?> getColumnClass(int column) {\r\n if (_debugTable == null) {\r\n return String.class ;\r\n } else {\r\n return getValueAt(0, column).getClass();\r\n }\r\n }", "public Class getColumnClass(int c) {\r\n return getValueAt(0, c).getClass();\r\n }", "public Class getColumnClass(int c)\n {\n\tif (c==0) {\n\t return String.class;\n\t} else {\n\t return Long.class;\n\t}\n }", "public String getSQLDataType(int displayType, String columnName, int fieldLength) {\n\t\treturn null;\n\t}", "public Class getColumnClass(int c) \n {\n return getValueAt(0, c).getClass();\n }", "public Class getColumnClass(int c) {\n return getValueAt(0, c).getClass();\n }", "public Class getColumnClass(int c) {\n return getValueAt(0, c).getClass();\n }", "public Class getColumnClass(int c) {\n return getValueAt(0, c).getClass();\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\t\tpublic Class getColumnClass(int c) {\n return getValueAt(0, c).getClass();\n }", "public Class getColumnClass(int c) {\r\n return getValueAt(0, c).getClass();\r\n }", "public Class getColumnClass(int c) {\r\n return getValueAt(0, c).getClass();\r\n }", "@Override\n public Class getColumnClass(int c) {\n // has any data ?\n // if not, return String class as default\n if (this.getRowCount()==0){\n return String.class;\n }\n \n return getValueAt(0, c).getClass();\n }", "public Class getColumnClass(int c) \r\n\t {\n\t \treturn getValueAt(0, c).getClass(); \r\n\t }", "public Class<?> getColumnClass(int column) {\r\n\tswitch (column){\r\n\t\tcase COLUMN_NAME:{\r\n\t\t\treturn String.class;\r\n\t\t}\r\n\t\tcase COLUMN_DESCRIPTION:{\r\n\t\t\treturn String.class;\r\n\t\t}\r\n\t\tcase COLUMN_UNIT:{\r\n\t\t\treturn String.class;\r\n\t\t}\r\n\t\tcase COLUMN_VALUE:{\r\n\t\t\treturn ScopedExpression.class;\r\n\t\t}\r\n\t\tdefault:{\r\n\t\t\treturn Object.class;\r\n\t\t}\r\n\t}\r\n}", "public Class getColumnClass(int c)\n {\n \treturn getValueAt(0,c).getClass();\n }", "@SuppressWarnings(\"unchecked\")\r\n\t\t\t\tpublic Class getColumnClass(int c) {\r\n\t\t \treturn getValueAt(0, c).getClass();\r\n\t\t \r\n\t\t }", "public Class<?> getColumnClass(int columnIndex) {\n if (columnIndex == 0) {\n return Boolean.class;\n } else {\n return String.class;\n }\n }", "@Override\r\n\t@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\tpublic Class getColumnClass(int columna) {\r\n\t\treturn getValueAt(0, columna).getClass();\r\n\t}", "public Class getColumnClass(int c) {\n \t\treturn getValueAt(0, c).getClass();\n \t}", "@Override\n public Class<?> getColumnClass(int aColumn) {\n return model.getColumnClass(aColumn); \n }", "@SuppressWarnings(\"unchecked\")\r\n\t\t\tpublic Class getColumnClass(int c) {\r\n\t \treturn getValueAt(0, c).getClass();\r\n\t \r\n\t }", "public Class getColumnClass(int c) {\n\t\treturn (c == 0) ? String.class : Integer.class;\n\t}", "protected abstract DTDataTypes52 getDataType(C column);", "public Class getColumnClass(int c) {\n\t\t\t\t\treturn getValueAt(0, c).getClass();\n\t\t\t\t}", "private static String getColumnClassDataType (String windowName2) {\n\r\n\t\tString classType = \"@Override \\n public Class getColumnClass(int column) { \\n switch (column) {\\n\";\r\n\t\tVector<WindowTableModelMapping> maps = getMapColumns(windowName2);\r\n\t\tfor (int i = 0; i < maps.size(); i++) {\r\n\t\t\tWindowTableModelMapping mp = maps.get(i);\r\n\t\t\tclassType = classType + \" case \" + i + \":\\n\";\r\n\t\t\tif(mp.getColumnDataType().equalsIgnoreCase(\"Boolean\")) {\r\n\t\t\t\tclassType = classType + \" return Boolean.class; \\n\";\r\n\t\t\t} else \tif(mp.getColumnDataType().equalsIgnoreCase(\"Integer\")) {\r\n\t\t\t\tclassType = classType + \" return Integer.class; \\n\";\r\n\t\t\t} else \t\t\tif(mp.getColumnDataType().equalsIgnoreCase(\"Double\")) {\r\n\t\t\t\tclassType = classType + \" return Double.class; \\n\";\r\n\t\t\t} else {\r\n\t\t\t\tclassType = classType + \" return String.class; \\n\";\r\n\t\t\t}\r\n\t\t\r\n \r\n\r\n\t\t}\r\n\t\tclassType = classType + \" default: \\n return String.class;\\n }\\n}\";\r\n\t\treturn classType;\r\n\t}", "public int getType() throws SQLException\n {\n return m_rs.getType();\n }", "public static PDataType getIndexColumnDataType(PColumn dataColumn) throws SQLException {\n PDataType type = getIndexColumnDataType(dataColumn.isNullable(),dataColumn.getDataType());\n if (type == null) {\n throw new SQLExceptionInfo.Builder(SQLExceptionCode.CANNOT_INDEX_COLUMN_ON_TYPE).setColumnName(dataColumn.getName().getString())\n .setMessage(\"Type=\"+dataColumn.getDataType()).build().buildException();\n }\n return type;\n }", "public int getSqlType() { return _type; }", "public String getSqlType() {\n\t\treturn this.sqlType;\n\t}", "public Object getExtensionType(String columnName) {\n FieldVector vector = table.getVector(columnName);\n return vector.getObject(rowNumber);\n }", "@Override public Class<?> getColumnClass(int iColumnIndex)\r\n {\r\n Class<?> cReturn = String.class;\r\n\r\n return cReturn;\r\n }", "public String getDataType()\n {\n String v = (String)this.getFieldValue(FLD_dataType);\n return StringTools.trim(v);\n }", "java.lang.String getDataType();", "public Class getColumnClass(int c)\n\t{\n\t\treturn getValueAt(0, c).getClass();\n\t}", "public abstract Map<String, Integer> getColumnTypes(String tableName);", "public static int getColumnType(String colClassName) {\n\t\tint type = 0;\n\n\t\tif (colClassName.equals(\"java.util.Date\")) {\n\t\t\treturn 3;\n\t\t}\n\t\tif (colClassName.equals(\"java.sql.Date\")) {\n\t\t\treturn 3;\n\t\t}\n\t\tif (colClassName.equals(\"java.sql.Timestamp\")) {\n\t\t\treturn 3;\n\t\t}\n\t\tif (colClassName.equals(\"java.sql.Time\")) {\n\t\t\treturn 3;\n\t\t}\n\n\t\tif (colClassName.equals(\"java.lang.Number\")) {\n\t\t\treturn 1;\n\t\t}\n\t\tif (colClassName.equals(\"java.math.BigDecimal\")) {\n\t\t\treturn 1;\n\t\t}\n\t\tif (colClassName.equals(\"java.math.BigInteger\")) {\n\t\t\treturn 1;\n\t\t}\n\t\tif (colClassName.equals(\"java.lang.Byte\")) {\n\t\t\treturn 1;\n\t\t}\n\t\tif (colClassName.equals(\"java.lang.Double\")) {\n\t\t\treturn 1;\n\t\t}\n\t\tif (colClassName.equals(\"java.lang.Float\")) {\n\t\t\treturn 1;\n\t\t}\n\t\tif (colClassName.equals(\"java.lang.Integer\")) {\n\t\t\treturn 1;\n\t\t}\n\t\tif (colClassName.equals(\"java.lang.Long\")) {\n\t\t\treturn 1;\n\t\t}\n\t\tif (colClassName.equals(\"java.lang.Short\")) {\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn type;\n\t}", "public int getType() throws SQLException {\n\n try {\n debugCodeCall(\"getType\");\n checkClosed();\n return stat == null ? ResultSet.TYPE_FORWARD_ONLY : stat.resultSetType;\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "public String getFinancialDocumentColumnTypeCode() {\r\n return financialDocumentColumnTypeCode;\r\n }", "@Override\n public Class getColumnClass(int columnIndex) {\n Class clase = Object.class;\n\n Object aux = getValueAt(0, columnIndex);\n if (aux != null) {\n clase = aux.getClass();\n }\n\n return clase;\n }", "public Class getColumnClass(int c) {\r\n\t\treturn this.getValueAt(0, c).getClass();\r\n\t}", "@Override\n public Class<?> getColumnClass(int columnIndex) {\n switch(columnTypes[columnIndex]) {\n case TEXT_COL:\n return String.class;\n\n case CURR0_COL:\n case CURR2_COL:\n return Double.class;\n\n case PERCENT_COL:\n return Double.class;\n\n default:\n return String.class;\n }\n }", "@Override\n\tpublic java.lang.String getTypeSettings() {\n\t\treturn _expandoColumn.getTypeSettings();\n\t}", "public Map<String, Integer> getColumnTypesForQuery(String query) {\n LOG.error(\"This database does not support free-form query column types.\");\n return null;\n }", "ResultColumn getTypeIdColumn(TableReference tableReference);", "String getSQLTypeName() throws SQLException;", "public String getDataType() ;", "public Class<?> getColumnClass(int column) {\n return String.class;\n }", "public String getDatatype()\n {\n return mDatatype;\n }", "public int getResultSetType() throws SQLException {\n return currentPreparedStatement.getResultSetType();\n }", "int getDataType();", "public String datatype() {\n\t\treturn datatype;\n\t}", "public StrColumn getClazz() {\n return delegate.getColumn(\"class\", DelegatingStrColumn::new);\n }", "public java.lang.String getFieldDBType() {\n return fieldDBType;\n }", "@Override final public Class<?> getColumnClass( int columnIndex ) { return fColumnClasses[ columnIndex ]; }", "public Class getDataType() {\n return datatype;\n }", "public static PDataType getIndexColumnDataType(boolean isNullable, PDataType dataType) {\n if (dataType == null || !isNullable || !dataType.isFixedWidth()) {\n return dataType;\n }\n // for fixed length numeric types and boolean\n if (dataType.isCastableTo(PDecimal.INSTANCE)) {\n return PDecimal.INSTANCE;\n }\n // for CHAR\n if (dataType.isCoercibleTo(PVarchar.INSTANCE)) {\n return PVarchar.INSTANCE;\n }\n\n if (PBinary.INSTANCE.equals(dataType)) {\n return PVarbinary.INSTANCE;\n }\n throw new IllegalArgumentException(\"Unsupported non nullable type \" + dataType);\n }", "public DataType getType() {\n return type;\n }", "fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType getType();", "public SqlType getSqlType() {\n \t\t\treturn SqlType.BYTE;\n \t\t}", "public Class<?> getColumnClass(int columnIndex)\r\n {\r\n return String.class;\r\n }", "public static int getDataType(int nColIndex)\r\n\t{\r\n\t\treturn m_nDataType[nColIndex];\r\n\t}", "public int getDataType();", "public void setColType(String colType) {\r\n\t\tthis.colType = colType == null ? null : colType.trim();\r\n\t}", "public int getJdbcType();", "com.google.cloud.datacatalog.FieldType getType();", "public String getCellType() {\n return this.cellType;\n }", "@Override\n public Class getColumnClass(int columnIndex) {\n if (columnIndex == COL_ID) {\n return String.class;\n } else if (columnIndex == COL_NAME) {\n return String.class;\n }\n return String.class;\n }", "@Override\n public Class<?> getColumnClass(int column) {\n return columnClasses[column];\n }", "@Override\n public Class<?> getColumnClass(int column) {\n return columnClasses[column];\n }" ]
[ "0.87619525", "0.8252957", "0.7915561", "0.78373665", "0.7707074", "0.7707074", "0.7682978", "0.7575122", "0.7504132", "0.7492486", "0.7448752", "0.7437147", "0.7423709", "0.736951", "0.73069245", "0.7288481", "0.728828", "0.72829115", "0.7261002", "0.72545284", "0.7208923", "0.7199584", "0.7198025", "0.71267825", "0.7112075", "0.7112075", "0.7112075", "0.7112075", "0.7041835", "0.7031819", "0.70204395", "0.7000326", "0.6979348", "0.69554186", "0.6931307", "0.692463", "0.6910243", "0.6910243", "0.6910243", "0.69080275", "0.6881322", "0.6881322", "0.6821776", "0.67764634", "0.6745005", "0.674371", "0.67393655", "0.6736954", "0.673129", "0.6724657", "0.671883", "0.6717754", "0.67115045", "0.67086226", "0.6702487", "0.6694836", "0.66810566", "0.667986", "0.66701883", "0.66598266", "0.6649186", "0.66315323", "0.6630601", "0.66221803", "0.6620892", "0.6611988", "0.66073596", "0.65828294", "0.6576589", "0.65505165", "0.65406287", "0.6510629", "0.6485279", "0.64470565", "0.64439183", "0.64265025", "0.6409969", "0.6399144", "0.6379708", "0.6357714", "0.634574", "0.6345693", "0.6342118", "0.63396645", "0.6335331", "0.63144195", "0.6314358", "0.6309897", "0.63054395", "0.6304572", "0.629431", "0.62863237", "0.6277754", "0.62696934", "0.6264423", "0.6255144", "0.6239623", "0.62201136", "0.62193644", "0.62193644" ]
0.754088
8
TODO Autogenerated method stub
@Override public ActionForward execute(HttpServletRequest request, HttpServletResponse response) throws Exception { int no = Integer.parseInt (request.getParameter("no")); /* dao 메서드 호출 */ BoardDAO dao = new BoardDAO(); // 삭제 레코드 가져오기 BoardBean bean = dao.getCont(no); // key 생성 request.setAttribute("bean", bean); // view page 포워딩 ActionForward forward = new ActionForward(); forward.setRedirect(false); forward.setPath("./board/board_del.jsp"); return forward; }
{ "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
Run the Collection retrieve() method test.
@Test public void testRetrieve_1() throws Exception { VictimsResourceImpl fixture = new VictimsResourceImpl(); Collection<VictimDTO> result = fixture.retrieve(); // add additional test code here // An unexpected exception was thrown in user code while executing this test: // java.lang.NullPointerException // at org.agetac.server.resources.VictimsResourceImpl.retrieve(VictimsResourceImpl.java:18) assertNotNull(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"rawtypes\")\n\t@Test\n\tpublic void retrieveCollections() {\n\t\t// We can also query for the collections themselves, since they are\n\t\t// first class objects.\n\n\t\tObjectSet result = db.queryByExample(new ArrayList());\n\t\tlistResult(result);\n\n\t\t// as we are initializing readouts\n\t\tassertEquals(2, result.size());\n\n\t}", "@Test\n public void testGet() {\n System.out.println(\"get\");\n PubMedInitialCollection result = PubMedInitialCollection.get();\n assertNotNull(result);\n }", "@Test\n\tpublic void testRetrieve_2()\n\t\tthrows Exception {\n\t\tVictimsResourceImpl fixture = new VictimsResourceImpl();\n\n\t\tCollection<VictimDTO> result = fixture.retrieve();\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.NullPointerException\n\t\t// at org.agetac.server.resources.VictimsResourceImpl.retrieve(VictimsResourceImpl.java:18)\n\t\tassertNotNull(result);\n\t}", "@Test\n public void testLoad() {\n System.out.println(\"load\");\n PubMedInitialCollection instance = PubMedInitialCollection.get();\n\n Collection<OpenAccessPaper> resultC = instance.getMyPapers();\n int result = resultC.size();\n int expResult = 40;\n assertEquals(expResult, result);\n\n }", "public void MockForRetrieveCollectionList(){\n try {\n Mockito.when(clsProperties.getPropertyByPlatform(CLSInterfaceProperties.COMMON_TIMEOUT)).thenReturn(\"30000\");\n HashMap credentialsMap = new HashMap();\n credentialsMap.put(\"sAppID\", \"paperlessNAR\");\n credentialsMap.put(\"sPassword\", \"95fs6521fa\");\n \n PowerMockito.doReturn(credentialsMap).when(clsFacade, \"getCredentials\", CLSInterfaceProperties.APP_PAPERLESS_COLLECTION_RETRIEVAL);\n URL url = new URL(\"http://ixservice.ete.cathaypacific.com:80/ixClsNARPortal/PaperlessCollectionRetrievalServlet\");\n PowerMockito.doReturn(url).when(clsFacade, \"getURLForApp\", CLSInterfaceProperties.APP_PAPERLESS_COLLECTION_RETRIEVAL);\n \n } catch (CLSException e) {\n System.out.println(\"Retrieve Collection List take CLSException: \" + e);\n } catch (MalformedURLException e) {\n System.out.println(\"Retrieve Collection List take MalformedURLException: \" + e);\n } catch (Exception e) {\n System.out.println(\"Retrieve Collection List take Exception: \" + e);\n }\n }", "@Test\r\n public void testSearchCollection() throws Exception {\r\n LOG.info(\"searchCollection\");\r\n String query = \"batman\";\r\n int page = 0;\r\n List<Collection> result = tmdb.searchCollection(query, LANGUAGE_DEFAULT, page);\r\n assertFalse(\"No collections found\", result == null);\r\n assertTrue(\"No collections found\", result.size() > 0);\r\n }", "@Test\n public void testRetrieve() {\n System.out.println(\"---retrieve---\");\n //Test1: Method returns -1 if the list is empty\n ADTList instance = ADTList.create();\n int expResult = -1;\n int result = instance.retrieve(3);\n assertEquals(expResult, result);\n System.out.println(\"Test1 OK\");\n \n //Test2: Method returns -1 if the specified position is not valid\n ADTList instance2 = createTestADTListIns(3);\n int expResult2 = -1;\n int result2 = instance2.retrieve(4);\n assertEquals(expResult2, result2);\n System.out.println(\"Test2 OK\");\n \n //Test3: Method returns the element at the specified position\n ADTList instance3 = createTestADTListIns(3);\n int expResult3 = 2;\n int result3 = instance3.retrieve(2);\n assertEquals(expResult3, result3);\n System.out.println(\"Test3 OK\");\n }", "@Test\r\n public void testRetrieve() {\r\n\r\n PaymentDetailPojo expResult = instance.save(paymentDetail1);\r\n assertEquals(expResult, instance.retrieve(paymentDetail1));\r\n }", "@Test\r\n public void testGetCollectionInfo() throws MovieDbException {\r\n LOG.info(\"getCollectionInfo\");\r\n String language = \"\";\r\n CollectionInfo result = tmdb.getCollectionInfo(ID_MOVIE_STAR_WARS_COLLECTION, language);\r\n assertFalse(\"No collection information\", result.getParts().isEmpty());\r\n }", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "interface Retrieve {}", "@Test\n public void getAllTest() {\n Mockito.when(this.repo.findAll()).thenReturn(publisherList);\n Iterable<Publisher> resultFromService = this.publisherService.findAll();\n Publisher resultFromIterator = resultFromService.iterator().next();\n assertThat(resultFromIterator.getName()).isEqualTo(\"What The What\");\n Mockito.verify(this.repo, Mockito.times(1)).findAll();\n }", "@Test\n public void testStoreAndRetrieve() throws Exception {\n PipelineDefinition actualPipelineDef = null;\n\n try {\n\n PipelineDefinition expectedPipelineDef = populateObjects();\n\n // clear the cache , detach the objects\n databaseService.closeCurrentSession();\n\n // Retrieve\n databaseService.beginTransaction();\n\n actualPipelineDef = pipelineDefinitionCrud.retrieveLatestVersionForName(TEST_PIPELINE_NAME_1);\n\n databaseService.commitTransaction();\n\n ReflectionEquals comparer = new ReflectionEquals();\n comparer.excludeField(\".*\\\\.lastChangedTime\");\n comparer.excludeField(\".*\\\\.lastChangedUser.created\");\n comparer.excludeField(\".*\\\\.uowProperties.instance\");\n comparer.assertEquals(\"PipelineDefinition\", expectedPipelineDef,\n actualPipelineDef);\n\n List<PipelineDefinition> latestVersions = pipelineDefinitionCrud.retrieveLatestVersions();\n assertEquals(\"latestVersions count\", 1, latestVersions.size());\n comparer.assertEquals(\"latest version\", expectedPipelineDef,\n latestVersions.get(0));\n\n assertEquals(\"PipelineDefinitionNode count\", 2, pipelineNodeCount());\n assertEquals(\"PipelineModuleDefinition count\", 3,\n pipelineModuleDefinitionCount());\n assertEquals(\"ParameterSet count\", 1, pipelineModuleParamSetCount());\n } finally {\n databaseService.rollbackTransactionIfActive();\n }\n }", "@Test\n public void getAllRecipes_RecipeInfo(){\n int returned = testDatabase.addRecipe(testRecipe);\n ArrayList<Recipe> allRecipes = testDatabase.getAllRecipes();\n Recipe retrieved = allRecipes.get(allRecipes.size()-1);\n //Retrieved should now contain all the same information as testRecipe\n assertEquals(\"getAllRecipes - Correct Title\", recipeTitle, retrieved.getTitle());\n assertEquals(\"getAllRecipes - Correct Servings\", 1, retrieved.getServings(), 0);\n assertEquals(\"getAllRecipes - Correct Prep Time\", 30, retrieved.getPrep_time(), 0);\n assertEquals(\"getAllRecipes - Correct Total Time\", 60, retrieved.getTotal_time(), 0);\n assertEquals(\"getAllRecipes - Correct Favorited\", false, retrieved.getFavorited());\n }", "public void testGetValue() {\n TaskSeriesCollection c = createCollection1();\n }", "@Test\n public void add() {\n\n collection.add(\"test\");\n assertEquals(collection.getLast(),\"test\");\n }", "@Test\n public void testGetCars() {\n System.out.println(\"getCars\");\n CarController instance = new CarController();\n List<Car> expResult = null;\n List<Car> result = instance.getCars();\n for(Car car: result) {\n System.out.println(car);\n }\n assertTrue(true);\n }", "@Test\n public void testRetrieve() throws Exception {\n Citation entity = getSampleCitation();\n when(Service.retrieveCitation(any(String.class))).thenReturn(entity);\n\n // test to see that the correct view is returned\n ModelAndView mav = Controller.retrieve(\"\");\n Assert.assertEquals(\"result\", mav.getViewName());\n\n // test to see that Service at least makes a call to get a Citation object\n verify(Service, atLeastOnce()).retrieveCitation(any(String.class));\n\n // test to see that Json is formated properly\n Map<String, Object> map = mav.getModel();\n String jsonObject = (String) map.get(\"message\");\n testJsonObject(jsonObject, entity);\n }", "@Test \n\tpublic void get() \n\t{\n\t\tassertTrue(true);\n\t}", "@Test\n public void findByTripTest() {\n Set<Reservation> expected = new HashSet<>();\n expected.add(reservation2);\n expected.add(reservation4);\n Mockito.when(reservationDao.findByTripId(Mockito.anyLong())).thenReturn(expected);\n Collection<Reservation> result = reservationService.findByTrip(25L);\n Assert.assertEquals(result.size(), 2);\n Assert.assertTrue(result.contains(reservation2));\n Assert.assertTrue(result.contains(reservation4));\n }", "@Test\r\n\tpublic void testGet() {\r\n\t\tAssert.assertTrue(list.get(2).equals(new Munitions(2, 3, \"iron\")));\r\n\t}", "@Test\r\n public void testA0Get_0args() {\r\n System.out.println(\"get all\");\r\n \r\n UsuarioDao instance = new UsuarioDao();\r\n List<Usuario> expResult = new ArrayList<>();\r\n List<Usuario> result = instance.get();\r\n \r\n assertEquals(expResult, result);\r\n }", "private static void getListTest() {\n\t\tList<CartVo> list=new CartDao().getList();\r\n\t\t\r\n\t\tfor(CartVo cartVo : list) {\r\n\t\t\tSystem.out.println(cartVo);\r\n\t\t}\r\n\t}", "@Test\r\n public void testFind() {\r\n Grocery entry1 = new Grocery(\"Mayo\", \"Dressing / Mayo\", 1, 2.99f, 1);\r\n\r\n // Test empty collection exception\r\n try {\r\n instance.find(0);\r\n fail(\"Should throw ECE - testFind\");\r\n } catch (EmptyCollectionException | IndexOutOfBoundsException e) {\r\n assertTrue(e instanceof EmptyCollectionException);\r\n }\r\n\r\n instance.add(entry1);\r\n\r\n // Test element not found exception\r\n try {\r\n instance.find(1);\r\n fail(\"Should throw IOOBE - testFind\");\r\n } catch (EmptyCollectionException | IndexOutOfBoundsException e) {\r\n assertTrue(e instanceof IndexOutOfBoundsException);\r\n }\r\n\r\n // Test element exists case\r\n assertTrue(instance.contains(entry1));\r\n try {\r\n assertEquals(entry1, instance.find(0));\r\n\r\n } catch (EmptyCollectionException | IndexOutOfBoundsException e) {\r\n fail(\"Should not throw exception - testFind\");\r\n }\r\n }", "@Test\n public void getAllCustomer() {\n Customer customer1 = new Customer();\n customer1.setFirstName(\"Dominick\");\n customer1.setLastName(\"DeChristofaro\");\n customer1.setEmail(\"[email protected]\");\n customer1.setCompany(\"Omni\");\n customer1.setPhone(\"999-999-9999\");\n customer1 = service.saveCustomer(customer1);\n\n // Add a second Customer to the mock database (customer2)\n Customer customer2 = new Customer();\n customer2.setFirstName(\"Michael\");\n customer2.setLastName(\"Stuckey\");\n customer2.setEmail(\"[email protected]\");\n customer2.setCompany(\"NuclearFuelServices\");\n customer2.setPhone(\"222-222-2222\");\n customer2 = service.saveCustomer(customer2);\n\n // Collect all the customers into a list using the Customer API\n List<Customer> customerList = service.findAllCustomers();\n\n // Test the getAllCustomer() API method\n TestCase.assertEquals(2,customerList.size());\n TestCase.assertEquals(customer1, customerList.get(0));\n TestCase.assertEquals(customer2, customerList.get(1));\n }", "@Test\r\n public void UserServiceTest_RetrieveProducer()\r\n {\r\n UserService service = new UserService(); \r\n List<User> users = null;\r\n try {\r\n users = service.getProducerList();\r\n } catch (SQLException e) {\r\n fail();\r\n System.out.println(e);\r\n } \r\n }", "@Test\n public void others(){\n Item item = itemService.getItem(50);\n System.out.println(item);\n\n }", "@Test\n public void testGetProductsByPurcher() throws Exception {\n System.out.println(\"getProductsByPurcher\");\n Customer c = new Customer();\n c.setId(1l);\n prs = dao.getProductsByPurcher(c);\n assertTrue(prs.contains(p3));\n assertTrue(prs.size() == 1);\n c.setId(2l);\n prs = dao.getProductsByPurcher(c);\n assertTrue(prs.contains(p1));\n assertTrue(prs.size() == 1);\n \n c.setId(3l);\n prs = dao.getProductsByPurcher(c);\n assertTrue(prs.isEmpty());\n }", "@Test \n\t public void testRetrieveAll(){\n\t\t try{\n\t\t\t List<Users> users = new ArrayList<Users>();\n\t\t\t users.add( BaseData.getUsers());\n\t\t\t\tusers.add(BaseData.getDBUsers());\n\t\t\t\tQuery mockQuery = mock(Query.class);\n\t\t\t\twhen(entityManager.createQuery(Mockito.anyString())).thenReturn(mockQuery);\n\t\t\t\twhen(mockQuery.getResultList()).thenReturn(users);\n\t\t\t\tList<Users> loadedUsers = (List<Users>)userDao.retrieveAll();\n\t\t\t\tassertNotNull(loadedUsers);\n\t\t\t\tassertTrue(loadedUsers.size() > 1);\n\t\t }catch(DataAcessException se){\n\t\t\t logger.error(\"error at service layer while testing retrieveAll:.\",se);\n\t\t }\n\t }", "@Test\n void getByIdSuccess() {\n RunCategory retrievedCat = (RunCategory)dao.getById(1);\n assertEquals(\"A Ending, New Game\", retrievedCat.getCategoryName());\n }", "@Test\r\n public void UserServiceTest_Retrieve()\r\n {\r\n UserService service = new UserService(); \r\n List<User> users = null;\r\n try {\r\n users = service.getUserList();\r\n } catch (SQLException e) {\r\n fail();\r\n System.out.println(e);\r\n } \r\n }", "@Test\n public void shouldRetrieveACollectionOfPayments() throws Exception {\n for (int i = 0; i < 10; i++) {\n postTestPaymentAndGetResponse();\n }\n\n //when: the collection of payments is fetched:\n ResponseEntity response = restTemplate.exchange(paymentsUrl, HttpMethod.GET, null, new ParameterizedTypeReference<PagedResources<Payment>>() {\n });\n //then: there should be at least 10 payments in the collection ( remember there may be more there from a previous test ):\n Collection<Payment> payments = ((PagedResources) response.getBody()).getContent();\n assertTrue(payments.size() >= 10);\n //and: the response status code should be OK:\n assertEquals(HttpStatus.OK, response.getStatusCode());\n }", "@Test\n public void employeeRetrieveTest() {\n Mockito.when(this.rolService.getRoles()).thenReturn(Arrays.asList(new Rol()));\n Assert.assertNotNull(this.rolController.retrieve(new HttpHeaders()));\n }", "void testCanGetList();", "public abstract boolean retrieve();", "void loadTests(final AsyncCallback<List<TestInstance>> callback) {\n GetCollectionRequest request;\n\n request = new GetCollectionRequest(ClientUtils.INSTANCE.getCommandContext(), \"collections\", getTestCollectionCode());\n\n new GetCollectionMembersCommand() {\n @Override\n public void onComplete(List<TestInstance> result) {\n callback.onSuccess(result);\n launchedFromMenu = false;\n }\n }.run(request);\n }", "public Collection<T> getResults();", "@Test\n public void findAllTest() {\n Set<Reservation> expected = new HashSet<>();\n expected.add(reservation1);\n expected.add(reservation2);\n expected.add(reservation3);\n expected.add(reservation4);\n Mockito.when(reservationDao.findAll()).thenReturn(expected);\n Collection<Reservation> result = reservationService.findAll();\n Assert.assertEquals(result.size(), 4);\n Assert.assertTrue(result.contains(reservation1));\n Assert.assertTrue(result.contains(reservation2));\n }", "@Test\n public void findByCustomerTest() {\n Set<Reservation> expected = new HashSet<>();\n expected.add(reservation1);\n expected.add(reservation2);\n Mockito.when(reservationDao.findByCustomerId(Mockito.anyLong())).thenReturn(expected);\n Collection<Reservation> result = reservationService.findByCustomer(10L);\n Assert.assertEquals(result.size(), 2);\n Assert.assertTrue(result.contains(reservation1));\n Assert.assertTrue(result.contains(reservation2));\n }", "@Test\n void userStory1() throws ValidationException, NoShoppingListExist {\n ShoppingListFactory factory = api.createShoppingList();\n factory.setName(\"My Shoopping List\");\n factory.setDescription(\"A short description\");\n ShoppingList list = factory.validateAndCommit();\n\n // Times go on\n\n ShoppingList list2 = api.find(list.getId());\n\n // Test\n\n assertEquals(list.getId(), list2.getId());\n assertEquals(list.getName(), list2.getName());\n assertEquals(list.getDescription(), list2.getDescription());\n }", "@Test\n public void getAllRecipeCategories_RecipeInfo(){\n int returned = testDatabase.addRecipe(testRecipe);\n ArrayList<RecipeCategory> allCategories = testDatabase.getAllRecipeCategories(returned);\n RecipeCategory retrieved = allCategories.get(allCategories.size()-1);\n //Retrieved should now contain all the same information as testRecipe\n assertEquals(\"getAllRecipeCategories - Correct Recipe ID\", returned, retrieved.getRecipeID());\n assertEquals(\"getAllRecipeCategories - Correct Category ID\", categoryID, retrieved.getCategoryID());\n }", "@Test\n\tpublic void getAllMovies() throws Exception {\n\t\tfinal ImmutableList<Movie> movies = ImmutableList.of(this.movie);\n\t\twhen(DAO.findAll()).thenReturn(movies);\n\n\t\tfinal Map<String, Object> paramMap = new HashMap<String, Object>();\n\t\tfinal RPCMessage req = new RPCMessage(MovieRPCServer.GET_ACTION, paramMap, null);\n\n\t\tfinal String response = this.RESOURCE.getValue(req.toString());\n\n\t\tfinal RPCMessage responseObj = RPCMessage.fromString(response);\n\t\tassertThat(responseObj).isNotNull();\n\t\tassertThat(responseObj.getObj()).isEqualTo(MovieBusterUtils.serializeMovieList(movies));\n\n\t\tverify(DAO).findAll();\n\t\tassertThat(MovieBusterUtils.movieFromStringArray(responseObj.getObj())).containsAll(movies);\n\t}", "@Test\n public void getItem() {\n Item item = new Item();\n item.setName(\"Drill\");\n item.setDescription(\"Power Tool\");\n item.setDaily_rate(new BigDecimal(\"24.99\"));\n item = service.saveItem(item);\n\n // Copy the Item added to the mock database using the Item API method\n Item itemCopy = service.findItem(item.getItem_id());\n\n // Test the getItem() API method\n verify(itemDao, times(1)).getItem(item.getItem_id());\n TestCase.assertEquals(itemCopy, item);\n }", "private Collection<?> retrieveAll(Example example) {\n final QueryDescriptor descriptor =\n queryDescriptionExtractor.extract(repositoryMetadata, configuration, example);\n final Invocation invocation = createInvocation(descriptor, example);\n final SelectDataStoreOperation<Object, Object> select =\n new SelectDataStoreOperation<>(descriptor);\n return select.execute(dataStore, repositoryConfiguration, invocation);\n }", "@Test\r\n public void UserServiceTest_RetrievePresenter()\r\n {\r\n UserService service = new UserService(); \r\n List<User> users = null;\r\n try {\r\n users = service.getPresenterList();\r\n } catch (SQLException e) {\r\n fail();\r\n System.out.println(e);\r\n } \r\n }", "@Test\n void getAllSuccess() {\n List<RunCategory> categories = dao.getAll();\n assertEquals(13, categories.size());\n }", "@Test\n public void createAndRetrieveRecipe() {\n User trex = new User(\"[email protected]\", \"password\", \"T. Rex\").save();\n\n //Create ingredients and steps\n List<String> ingredients = new ArrayList<String>();\n ingredients.add(\"1 piece Bread\");\n ingredients.add(\"20g Marmite\");\n String steps = (\"Toast Bread. Spread Marmite on toasted bread\");\n\n //Create and save the new recipe\n new Recipe(trex, \"Marmite on Toast\", ingredients, steps).save();\n\n //Retrieve the recipe by title\n Recipe marmiteOnToast = Recipe.find(\"byTitle\", \"Marmite on Toast\").first();\n\n //Assert the recipe has been retrieved and that the author is the same as the one we saved\n assertNotNull(marmiteOnToast);\n assertEquals(trex, marmiteOnToast.author);\n }", "@Test\n void getAllSuccess(){\n\n List<CompositionInstrument> compositionInstruments = genericDao.getAll();\n assertEquals(4, compositionInstruments.size());\n }", "@Test\n public void testGetSelectedBooks() {\n System.out.println(\"getSelectedBooks\");\n List expResult = new ArrayList();\n List result = testLibraryTable.getSelectedBooks();\n assertEquals(expResult, result);\n\n }", "@Test\r\n\tpublic void retrieveAll() {\r\n\t\tList<Opinion> opinions = IntStream.range(0, BATCH_SIZE).mapToObj(i -> {\r\n\t\t\tOpinion currentOpinion = new Opinion(\"Student B\", \"B is for batch\");\r\n\t\t\tservice.save(currentOpinion);\r\n\t\t\treturn currentOpinion;\r\n\t\t}).collect(Collectors.toList());\r\n\r\n\t\tassertEquals(service.count(), BATCH_SIZE);\r\n\r\n\t\topinions.forEach(op -> service.delete(op));\r\n\t}", "@Test\n\tpublic void testFindCustomerByGuidWithOneReturn() {\n\t\tfinal List<Customer> customers = new ArrayList<Customer>();\n\t\tCustomer customer = new CustomerImpl();\n\t\tcustomers.add(customer);\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(getMockPersistenceEngine()).retrieveByNamedQuery(with(any(String.class)), with(any(Object[].class)));\n\t\t\t\twill(returnValue(customers));\n\t\t\t}\n\t\t});\n\t\tassertSame(customer, importGuidHelper.findCustomerByGuid(SOME_GUID));\n\t}", "@Test\n public void getCustomer() {\n Customer customer = new Customer();\n customer.setFirstName(\"Dominick\");\n customer.setLastName(\"DeChristofaro\");\n customer.setEmail(\"[email protected]\");\n customer.setCompany(\"Omni\");\n customer.setPhone(\"999-999-9999\");\n customer = service.saveCustomer(customer);\n\n // Copy the customer added to the mock database using the CustomerAPI\n Customer customerCopy = service.findCustomer(customer.getCustomerId());\n\n // Test getCustomer() API method\n verify(customerDao, times(1)).getCustomer(customer.getCustomerId());\n TestCase.assertEquals(customerCopy, customer);\n }", "@Test\n\t public void testRetrieveById(){\n\t\t try{\n\t\t\t Users user = BaseData.getUsers();\n\t\t\t\twhen(entityManager.find(Users.class,\"a1234567\")).thenReturn(user);\n\t\t\t\tUsers savedUser = userDao.retrieveById(\"a1234567\");\n\t\t\t\tassertNotNull(savedUser);\n\t\t\t\tassertTrue(savedUser.getFirstName().equals(\"MerchandisingUI\"));\n\t\t }catch(DataAcessException se){\n\t\t\t logger.error(\"error at service layer while testing retrieveById:.\",se);\n\t\t }\n\t }", "@Test\n public void listAll_200() throws Exception {\n\n // PREPARE THE DATABASE\n // Fill in the workflow db\n List<Workflow> wfList = new ArrayList<>();\n wfList.add(addMOToDb(1));\n wfList.add(addMOToDb(2));\n wfList.add(addMOToDb(3));\n\n // PREPARE THE TEST\n // Fill in the workflow db\n\n // DO THE TEST\n Response response = callAPI(VERB.GET, \"/mo/\", null);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(200, status);\n\n List<Workflow> readWorkflowList = response.readEntity(new GenericType<List<Workflow>>() {\n });\n assertEquals(wfList.size(), readWorkflowList.size());\n for (int i = 0; i < wfList.size(); i++) {\n assertEquals(wfList.get(i).getId(), readWorkflowList.get(i).getId());\n assertEquals(wfList.get(i).getName(), readWorkflowList.get(i).getName());\n assertEquals(wfList.get(i).getDescription(), readWorkflowList.get(i).getDescription());\n }\n\n\n }", "@Ignore\r\n @Test\r\n public void testContainsCollection() {\r\n System.out.println(\"containsCollection\");\r\n NumberCollection nc = null;\r\n NumberCollection instance = new NumberCollection();\r\n boolean expResult = false;\r\n boolean result = instance.containsCollection(nc);\r\n assertEquals(expResult, result);\r\n \r\n }", "@Test\n void getAllCarsSuccess() {\n List<Car> cars = carDao.getAll();\n assertNotNull(cars);\n assertEquals(1, cars.size());\n }", "@Test\n public void testGet() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n Integer expResult = 7;\n Integer result = instance.get(2);\n assertEquals(expResult, result);\n\n }", "@Test\r\n public void testGetList() throws Exception {\r\n LOG.info(\"getList\");\r\n String listId = \"509ec17b19c2950a0600050d\";\r\n MovieDbList result = tmdb.getList(listId);\r\n assertFalse(\"List not found\", result.getItems().isEmpty());\r\n }", "@org.junit.Test\r\n public void listAll() throws Exception {\r\n System.out.println(\"listAll\");\r\n Review review = new Review(new Long(0), \"Max\", 9, \"It's excellent\");\r\n int size1 = service.listAll().size();\r\n assertEquals(size1, 0);\r\n service.insertReview(review);\r\n int size2 = service.listAll().size();\r\n assertEquals(size2, 1);\r\n }", "public ODataRetrieve addRetrieve() {\n closeCurrentItem();\n\n // stream dash boundary\n streamDashBoundary();\n\n final ODataRetrieveResponseItem expectedResItem = new ODataRetrieveResponseItem();\n currentItem = new ODataRetrieve(req, expectedResItem);\n\n expectedResItems.add(expectedResItem);\n\n return (ODataRetrieve) currentItem;\n }", "@Test\r\n public void testGetCollectionImages() throws Exception {\r\n LOG.info(\"getCollectionImages\");\r\n List<Artwork> result = tmdb.getCollectionImages(ID_MOVIE_STAR_WARS_COLLECTION, LANGUAGE_DEFAULT);\r\n assertFalse(\"No artwork found\", result.isEmpty());\r\n }", "@Test\n public void testGetListItems() {\n System.out.println(\"getListItems\");\n DataModel instance = new DataModel();\n List expResult = null;\n List result = instance.getListItems();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void testGetNotesTaken() {\n System.out.println(\"getNotesTaken\");\n CharterDto instance = new CharterDto(\"Test name\");\n ArrayList<Note> expResult = new ArrayList<>();\n instance.setNotesTaken(expResult);\n ArrayList<Note> result = instance.getNotesTaken();\n assertEquals(expResult, result);\n \n }", "public void testTypedCollection()\r\n\t{\r\n broker.beginTransaction();\r\n for (int i = 1; i < 4; i++)\r\n {\r\n ProductGroupWithTypedCollection example = new ProductGroupWithTypedCollection();\r\n example.setId(i);\r\n ProductGroupWithTypedCollection group =\r\n (ProductGroupWithTypedCollection) broker.getObjectByQuery(\r\n new QueryByIdentity(example));\r\n assertEquals(\"should be equal\", i, group.getId());\r\n //System.out.println(group + \"\\n\\n\");\r\n\r\n broker.delete(group);\r\n broker.store(group);\r\n }\r\n broker.commitTransaction();\r\n\t}", "@Test\n public void getAllRecipes_ReturnsList(){\n ArrayList<Recipe> allRecipes = testDatabase.getAllRecipes();\n assertNotEquals(\"getAllRecipes - Non-empty List Returned\", 0, allRecipes.size());\n }", "public static void main(String[] args) {\n ListTest lt = new ListTest();\n lt.testAdd();\n// lt.testGet();\n lt.testIterator();\n lt.testListContains();\n }", "@Test\n public void retriveAllTest() throws SQLException {\n manager = new TableServizioManager(mockDb);\n List<Servizio> lista = manager.retriveAll();\n assertEquals(7,lista.size(),\"It should return a list of length 7\");\n }", "private void retrieve() {\r\n\t\ttry {\r\n\t\t\tif (store == null) {\r\n\t\t\t\tstore = Store.retrieve();\r\n\t\t\t\tif (store != null) {\r\n\t\t\t\t\tSystem.out.println(\" The store has been successfully retrieved from the file StoreData. \\n\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tstore = Store.instance();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception cnfe) {\r\n\t\t\tcnfe.printStackTrace();\r\n\t\t}\r\n\t}", "public ImmutableRetrieve() {\n super();\n }", "@Test\n void getByPropertyExactSuccess() {\n List<Car> carList = carDao.getByPropertyEqual(\"make\", \"Jeep\");\n assertEquals(1, carList.size());\n }", "@Test\n void getAllSuccess() {\n List<User> Users = dao.getAll();\n assertEquals(2, Users.size());\n }", "@Test\n public void testViewRawMaterialWithSelectType1() throws Exception {\n System.out.println(\"viewRawMaterialWithSelectType\");\n Long factoryId = 1L;\n Collection<FactoryRawMaterialEntity> result = PurchaseOrderManagementModule.viewRawMaterialWithSelectType(factoryId);\n assertFalse(result.isEmpty());\n }", "public static void main(String[] args) {\n\t\tCollection testCol = new Collection();\n\t\t\n\t\t// Basic Test #2: Creating a song & adding to empty collection\n\t\tSong testSong = new Song();\n\t\tSong testSong2 = new Song(\"000035\", \"FakeArtist\", \"Pop\", \"Track1\", \"Album1\", 2020, 0.0);\n\t\ttestCol.addSong(testSong);\n\t\ttestCol.addSong(testSong2);\n\t\tSystem.out.println(\"Test Song Collection:\\n\" + testCol);\n\t\t\n\t\t\n\t\t// Main Test: Get collection from the .csv\n\t\tCollection SongCol = new Collection(\"./projectBackEnd/finalTracks.csv\");\n\t\t\n\t\t\n\t\t/* Note: Main functionalities tested on a TEST COLLECTION in\n\t\t * order to show case methods without having to print a giant text\n\t\t * file every time. */\n\t\t// Remove Test: Remove a song based on ID\n\t\ttestCol.removeSong(\"000000\");\n\t\tSystem.out.println(\"Song Removed:\\n\" + testCol);\n\t\tSongCol.removeSong(\"000002\"); // Removes from actual SongCol! \n\t\t\n\t\t\n\t\t// Edit Tests: Getters & Setters using SongCol.\n\t\tSong editTest = SongCol.getSong(\"000005\");\n\t\t\n\t\t// Before Edits\n\t\tSystem.out.println(\"Before Edits:\\n\" + editTest + \"\\n\");\n\t\t\n\t\teditTest.setAlbum(\"NewAlb\");\t\t\t\t\t\t\t\t\t// SetAlbum\n\t\tSystem.out.print(\"Changes: \" + editTest.getAlbum() + \" \"); \t\t// GetAlbum\n\t\t\n\t\teditTest.setId(\"000005\");\t\t\t\t\t\t\t\t\t\t// SetId\n\t\tSystem.out.print(editTest.getId() + \" \");\t\t\t\t\t\t// GetId\n\n\t\teditTest.setGenre(\"Indie\");\t\t\t\t\t\t\t\t\t\t// SetGenre\n\t\tSystem.out.print(editTest.getGenre() + \" \");\t\t\t\t\t// GetGenre\n\t\t\n\t\teditTest.setArtist(\"NEW Artist\");\t\t\t\t\t\t\t\t// SetArtist\n\t\tSystem.out.print(editTest.getArtist() + \" \");\t\t\t\t\t// GetArtist\n\t\t\n\t\teditTest.setLong(-73.2);\t\t\t\t\t\t\t\t\t\t// SetLong\n\t\tSystem.out.print(editTest.getLong() + \" \"); \t\t\t\t\t// GetLong\n\t\t\n\t\teditTest.setTrack(\"TRACK NAME\");\t\t\t\t\t\t\t\t// SetTrack\n\t\tSystem.out.print(editTest.getTrack() + \" \");\t\t\t\t\t// GetTrack\n\t\t\n\t\teditTest.setYear(2004);\t\t\t\t\t\t\t\t\t\t\t// SetYear\n\t\tSystem.out.println(editTest.getYear() + \"\\n\");\t\t\t\t\t// GetYear\n\t\t\n\t\t// After Edits\n\t\tSystem.out.println(\"After Edits:\\n\" + SongCol.getSong(\"000005\") + \"\\n\");\n\n\t\t\n\t\t// Iterator Test: Checks that the iterator works\n\t\tIterator<Song> itr = testCol.getIterator();\n\t\tSystem.out.println(\"Iterator Test:\");\n\t\twhile (itr.hasNext()) {\n\t\t\tSystem.out.println(itr.next());\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t// Query Tests using the actual SongCol\n\t\t// Query Test #1: Get a song based on artist \n\t\tSystem.out.println(\"Query Test #1:\\n\" + SongCol.InputOneToOne(\"AWOL\") + \"\\n\");\n\t\t\n\t\t// Query Test #2: Get a song based on artist and album\n\t\tSystem.out.println(\"Query Test #2:\\n\" + SongCol.InputManyToOne(\"Fósforo\", \"Macondo\") + \"\\n\");\n\t\t\n\t\t// Query Test #3: Get a variety of songs based on genre\n\t\tSystem.out.println(\"Query Test #3:\\n\" + SongCol.InputOneToMany(\"Latin America\") + \"\\n\");\n\t\t\n\t\t// Query Test #4: Get a variety of songs based on genre and year\n\t\tSystem.out.println(\"Query Test #4:\\n\" + SongCol.InputManyToMany(\"Psych-Folk\", 2008) + \"\\n\");\n\t\t\n\t\t\n\t\t// End Test: Write to same file\n\t\tSongCol.writeFile(\"./projectBackEnd/finalTracks.csv\");\n\t}", "@Test\n void getByIdSuccess() {\n User retrievedUser = (User) dao.getById(1);\n //User retrievedUser = dao.getById(1);\n assertEquals(\"Dave\", retrievedUser.getFirstName());\n assertEquals(\"Queiser\", retrievedUser.getLastName());\n }", "@Test\n public void testRead() {\n\n List<JDBCDataObject> classList = new ArrayList<>();\n\n classList = manageClass.read(new EnrollmentDTO(1, 0, 0, null));\n\n assertNotNull(classList);\n }", "@Override\n\tpublic void run(String... args) throws Exception {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Test collection found with findAll():\");\n\n\t\t\tfor (TestColle testCollection : repository.findAll()) {\n\t\t\t\tSystem.out.println(testCollection);\n\t\t\t\tSystem.out.println(\"--Thread Sleep start, insert new document by mongo shell---------------\");\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.println(\" Sleep start \");\n\t\t\t\t\tThread.sleep(5000);\n\t\t\t\t\tSystem.out.println(\" Sleep end \");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\" Exception : \" + e);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\" Exception_2 : \" + e);\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Test\n public void testFindall() {\n\n System.out.println(\"findall\"); \n PrioridadRest rest = mokPrioridadRest;\n List<Prioridad> result = rest.findall();\n Prioridad prioridad = new Prioridad(1, \"1\");\n assertThat(result, CoreMatchers.hasItems(prioridad));\n }", "@SuppressWarnings(\"serial\")\n\t@Test\n\tpublic void updateCollection() {\n\t\tdb.close();\n\t\tEmbeddedConfiguration config = Db4oEmbedded.newConfiguration();\n\t\tconfig.common().objectClass(Car.class).cascadeOnUpdate(true);\n\t\tdb = Db4oEmbedded.openFile(config, DB4OFILENAME);\n\t\tObjectSet<Car> results = db.query(new Predicate<Car>() {\n\t\t\tpublic boolean match(Car candidate) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t});\n\n\t\tAssert.assertTrue(results.hasNext());\n\n\t\tCar car = results.next();\n\n\t\tcar.getHistory().remove(0);\n\t\tdb.store(car.getHistory());\n\t\tresults = db.query(new Predicate<Car>() {\n\t\t\tpublic boolean match(Car candidate) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t});\n\n\t\twhile (results.hasNext()) {\n\t\t\tcar = results.next();\n\t\t\tfor (int idx = 0; idx < car.getHistory().size(); idx++) {\n\t\t\t\tSystem.out.println(car.getHistory().get(idx));\n\t\t\t}\n\t\t}\n\n\t}", "@Test\r\n\tpublic void itemRetTest() {\r\n\t\tItem item = new Item();\r\n\t\ttry {\r\n\t\t\tint k = 0;\r\n\t\t\tk = item.getNumberOfItems(SELLER);\r\n\t\t\tassertNotSame(k, 0);\r\n\t\t\tItem tempSet[] = item.getAllForUser(SELLER);\r\n\t\t\tassertEquals(tempSet.length, k);\t\t\t// Retrieves correct number of items\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to get number of items for seller id \" + SELLER + \": SQLException\");\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tint k = 0;\r\n\t\t\tk = item.getNumberOfItemsInOrder(ORDER);\r\n\t\t\tassertNotSame(k, 0);\r\n\t\t\tItem tempSet[] = item.getAllByOrder(ORDER);\r\n\t\t\tassertEquals(tempSet.length, k);\t\t\t// Retrieves correct number of items\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to get number of items for order id \" + ORDER + \": SQLException\");\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tItem tempSet[] = item.getAllByOrder(ORDER);\r\n\t\t\tfor (int i = 0; i < tempSet.length; i++) {\r\n\t\t\t\tassertNotNull(tempSet[i]);\r\n\t\t\t\tassertNotNull(tempSet[i].getId());\r\n\t\t\t\tassertNotSame(tempSet[i].getId(), 0);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to load items for order id \" + ORDER + \": SQLException\");\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t}", "@Test\n public void test1(){\n PageInfo<User> page = iUserService.selectWithPage(new User(),new Page(1,10,null));\n List<User> list = page.getList();\n\n System.out.println(list.toString());\n\n\n List<User> user = new ArrayList<User>();\n User user1 = new User();\n user1.setId(1);\n user.add(user1);\n System.out.println(user.toString());\n }", "@SuppressWarnings(\"unchecked\")\n\t\t@Test\n\t\tpublic void testGetMakeData(){\n\t\t\tList<Make> expected = new ArrayList<Make>();\n\t\t\tTypedQuery<Make> mockedTypedQuery = mock(TypedQuery.class);\n\t\t\t\n\t\t\twhen(mockEm.createQuery(anyString(), eq(Make.class))).thenReturn(mockedTypedQuery);\n\t\t\twhen(mockedTypedQuery.getResultList()).thenReturn(expected);\n\t\t\t\n\t\t\ttarget.getMakeData();\n\t\t\t\n\t\t\tverify(mockedTypedQuery, times(1)).getResultList();\t\t\n\t\t}", "@Test\n public void getListOfSavedTransformers() {\n\tassertTrue(service.getAllTransformers().isEmpty());\n\tTransformer transformer = initialize();\n\n\tList<Transformer> transformers = new ArrayList<>();\n\ttransformers.add(transformer);\n\twhen(repository.findAll()).thenReturn(transformers);\n\n\t// checking list after adding transformers\n\tassertFalse(service.getAllTransformers().isEmpty());\n }", "@Test\n public void test_getAll_1() throws Exception {\n clearDB();\n\n List<User> res = instance.getAll();\n\n assertEquals(\"'getAll' should be correct.\", 0, res.size());\n }", "@Test\n void getByIdSuccess() {\n //Get User\n GenericDao<User> userDao = new GenericDao(User.class);\n User user = userDao.getById(2);\n\n //Create Test Car\n Car testCar = new Car(1,user,\"2016\",\"Jeep\",\"Wrangler\",\"1C4BJWFG2GL133333\");\n\n //Ignore Create/Update times\n testCar.setCreateTime(null);\n testCar.setUpdateTime(null);\n\n //Get Existing Car\n Car retrievedCar = carDao.getById(1);\n assertNotNull(retrievedCar);\n\n //Compare Cars\n assertEquals(testCar,retrievedCar);\n }", "@Test\n\tpublic void testFindCustomerByGuidWithMoreThanOneReturn() {\n\t\tfinal List<Customer> customers = new ArrayList<Customer>();\n\t\tCustomer customer = new CustomerImpl();\n\t\tcustomers.add(customer);\n\t\tcustomers.add(customer);\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(getMockPersistenceEngine()).retrieveByNamedQuery(with(any(String.class)), with(any(Object[].class)));\n\t\t\t\twill(returnValue(customers));\n\t\t\t}\n\t\t});\n\t\ttry {\n\t\t\timportGuidHelper.findCustomerByGuid(SOME_GUID);\n\t\t\tfail(EP_SERVICE_EXCEPTION_EXPECTED);\n\t\t} catch (EpServiceException e) {\n\t\t\tassertNotNull(e);\n\t\t}\n\t}", "@Test\n void getAllSuccess() {\n List<UserRoles> roles = genericDAO.getAll();\n assertEquals(3, roles.size());\n }", "@Test\n\t\tpublic void listBeers() {\n\t\t\tCollection<Beer> allBeers = beerSvc.getAll();\n\t\t\tAssert.assertNotNull(allBeers);\n\t\t}", "@Test\n public void testGetEntries() {\n System.out.println(\"getEntries\");\n \n Date TestDate = new Date();\n Entry E1=new Entry(123,123,123,\"TestTitle\",\"TestContent\",\"TestFlag\",TestDate);\n Entries EntriesTest = new Entries();\n Entries instance = EntriesTest;\n EntriesTest.addEntry(E1);\n \n ArrayList<Entry> entryList = new ArrayList<Entry>();\n entryList.add(E1);\n ArrayList<Entry> result = instance.getEntries();\n \n assertEquals(result,entryList);\n \n }", "@Test\r\n public void testGetFood() throws Exception\r\n {\r\n System.out.println(\"getFood\");\r\n int memberId = 5;\r\n FoodBean instance = new FoodBean();\r\n ArrayList<FoodBean> result = instance.getFood(memberId);\r\n assertNotNull(result);\r\n assertTrue(!result.isEmpty());\r\n }", "@Test\n public void testGetAll() {\n List<Allocation> cc = allocationCollection.getAll();\n assertNotNull(cc);\n assertFalse(cc.isEmpty());\n }", "@Test\n void getByIdSuccess() {\n UserRoles retrievedRole = (UserRoles)genericDAO.getByID(1);\n assertEquals(\"administrator\", retrievedRole.getRoleName());\n assertEquals(1, retrievedRole.getUserRoleId());\n assertEquals(\"admin\", retrievedRole.getUserName());\n }", "@Test\r\n\tpublic void testGetRecords() {\r\n\t\tAssert.assertNull(oic.getRecords(\"a\"));\r\n\r\n\t\tList<ObstetricsInit> list;\r\n\t\ttry {\r\n\t\t\tlist = oiData.getRecords(1);\r\n\t\t\tAssert.assertEquals(list, oic.getRecords(\"1\"));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\t//TODO: Maybe test sorting\r\n\t}", "@Test\n public void testFind() {\n System.out.println(\"find\");\n int id = 0;\n Resource expResult = null;\n Resource result = Resource.find(id);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "protected T retrieve() {\n return _result;\n }", "@Test\r\n public void testGet() {\r\n System.out.println(\"get\");\r\n Long codigoCliente = null;\r\n ClienteDAO instance = new ClienteDAO();\r\n ClienteEmpresa expResult = null;\r\n ClienteEmpresa result = instance.get(codigoCliente);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\n public void testQueryList(){\n }", "@Test\n void getUserBy() {\n List<Role> users = (List<Role>) roleDAO.getEntityBy(\"roleName\", \"o\");\n assertEquals(1, users.size());\n }", "@Test\r\n public void testloadCustomer() throws Exception {\r\n List<Server.Customer> lesClients = DAOCustomer.loadCustomer(Con());\r\n assertNotNull(lesClients);\r\n }", "@Test\n public void getAllItem() {\n Item item1 = new Item();\n item1.setName(\"Drill\");\n item1.setDescription(\"Power Tool\");\n item1.setDaily_rate(new BigDecimal(\"24.99\"));\n item1 = service.saveItem(item1);\n\n // Add an Item to the mock database using the Item API method (item2)\n Item item2 = new Item();\n item2.setName(\"Screwdriver\");\n item2.setDescription(\"Hand Tool\");\n item2.setDaily_rate(new BigDecimal(\"4.99\"));\n item2 = service.saveItem(item2);\n\n // Add all the Item's in the mock database to a list of Items using the Item API method\n List<Item> itemList = service.findAllItems();\n\n // Test the getAllItem() API method\n TestCase.assertEquals(2, itemList.size());\n TestCase.assertEquals(item1, itemList.get(0));\n TestCase.assertEquals(item2, itemList.get(1));\n }", "public RetrieveModel retrieveDetail(RetrieveModel retrieve) throws StoreException {\r\n Connection con = null;\r\n try{\r\n con = DBUtils.getConnection(Construct.DB_POOL_NAME);\r\n PopExpectedProfitSvc svc = new PopExpectedProfitSvc();\r\n\r\n retrieve = svc.retrieveDetail(con, retrieve);\r\n\r\n }catch(StoreException se){\r\n retrieve.put(\"ERROR_MESSAGE\",se.getMessage());\r\n }catch(Exception e){\r\n retrieve.put(\"ERROR_MESSAGE\",e.getMessage());\r\n }finally {\r\n DBUtils.freeConnection(con);\r\n }\r\n return retrieve;\r\n }" ]
[ "0.7037779", "0.6967554", "0.6502156", "0.6247481", "0.6158225", "0.6148105", "0.6129199", "0.6013065", "0.5880206", "0.58799446", "0.58614576", "0.5859197", "0.58239394", "0.5822321", "0.57760406", "0.57205915", "0.56801796", "0.5679982", "0.5656073", "0.56448954", "0.5634106", "0.56249875", "0.5615101", "0.56001467", "0.5593981", "0.5588373", "0.5570603", "0.5569951", "0.5568766", "0.55641264", "0.55226696", "0.5519149", "0.5513436", "0.55015063", "0.5484819", "0.5484474", "0.5481439", "0.5476842", "0.5476049", "0.5447285", "0.5430005", "0.5426041", "0.54239845", "0.5420554", "0.5416566", "0.5412704", "0.5412339", "0.54112685", "0.54095095", "0.5402506", "0.53989875", "0.5384779", "0.53821445", "0.53690845", "0.53689337", "0.536328", "0.5359725", "0.5357908", "0.53527707", "0.53487414", "0.53415316", "0.5335802", "0.53343606", "0.53324145", "0.53313977", "0.5320375", "0.5318743", "0.53152853", "0.5313001", "0.5306529", "0.5287947", "0.5277952", "0.5275465", "0.52750224", "0.52743953", "0.527133", "0.52681744", "0.52680385", "0.5263796", "0.5261209", "0.52581286", "0.5258031", "0.52579755", "0.525115", "0.52505416", "0.52474934", "0.5245632", "0.5242686", "0.524192", "0.5239719", "0.52349627", "0.5231066", "0.52212346", "0.5219799", "0.52189183", "0.5212848", "0.52098024", "0.5207932", "0.5207582", "0.52053076" ]
0.67454064
2
Run the Collection retrieve() method test.
@Test public void testRetrieve_2() throws Exception { VictimsResourceImpl fixture = new VictimsResourceImpl(); Collection<VictimDTO> result = fixture.retrieve(); // add additional test code here // An unexpected exception was thrown in user code while executing this test: // java.lang.NullPointerException // at org.agetac.server.resources.VictimsResourceImpl.retrieve(VictimsResourceImpl.java:18) assertNotNull(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"rawtypes\")\n\t@Test\n\tpublic void retrieveCollections() {\n\t\t// We can also query for the collections themselves, since they are\n\t\t// first class objects.\n\n\t\tObjectSet result = db.queryByExample(new ArrayList());\n\t\tlistResult(result);\n\n\t\t// as we are initializing readouts\n\t\tassertEquals(2, result.size());\n\n\t}", "@Test\n public void testGet() {\n System.out.println(\"get\");\n PubMedInitialCollection result = PubMedInitialCollection.get();\n assertNotNull(result);\n }", "@Test\n\tpublic void testRetrieve_1()\n\t\tthrows Exception {\n\t\tVictimsResourceImpl fixture = new VictimsResourceImpl();\n\n\t\tCollection<VictimDTO> result = fixture.retrieve();\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.NullPointerException\n\t\t// at org.agetac.server.resources.VictimsResourceImpl.retrieve(VictimsResourceImpl.java:18)\n\t\tassertNotNull(result);\n\t}", "@Test\n public void testLoad() {\n System.out.println(\"load\");\n PubMedInitialCollection instance = PubMedInitialCollection.get();\n\n Collection<OpenAccessPaper> resultC = instance.getMyPapers();\n int result = resultC.size();\n int expResult = 40;\n assertEquals(expResult, result);\n\n }", "public void MockForRetrieveCollectionList(){\n try {\n Mockito.when(clsProperties.getPropertyByPlatform(CLSInterfaceProperties.COMMON_TIMEOUT)).thenReturn(\"30000\");\n HashMap credentialsMap = new HashMap();\n credentialsMap.put(\"sAppID\", \"paperlessNAR\");\n credentialsMap.put(\"sPassword\", \"95fs6521fa\");\n \n PowerMockito.doReturn(credentialsMap).when(clsFacade, \"getCredentials\", CLSInterfaceProperties.APP_PAPERLESS_COLLECTION_RETRIEVAL);\n URL url = new URL(\"http://ixservice.ete.cathaypacific.com:80/ixClsNARPortal/PaperlessCollectionRetrievalServlet\");\n PowerMockito.doReturn(url).when(clsFacade, \"getURLForApp\", CLSInterfaceProperties.APP_PAPERLESS_COLLECTION_RETRIEVAL);\n \n } catch (CLSException e) {\n System.out.println(\"Retrieve Collection List take CLSException: \" + e);\n } catch (MalformedURLException e) {\n System.out.println(\"Retrieve Collection List take MalformedURLException: \" + e);\n } catch (Exception e) {\n System.out.println(\"Retrieve Collection List take Exception: \" + e);\n }\n }", "@Test\r\n public void testSearchCollection() throws Exception {\r\n LOG.info(\"searchCollection\");\r\n String query = \"batman\";\r\n int page = 0;\r\n List<Collection> result = tmdb.searchCollection(query, LANGUAGE_DEFAULT, page);\r\n assertFalse(\"No collections found\", result == null);\r\n assertTrue(\"No collections found\", result.size() > 0);\r\n }", "@Test\n public void testRetrieve() {\n System.out.println(\"---retrieve---\");\n //Test1: Method returns -1 if the list is empty\n ADTList instance = ADTList.create();\n int expResult = -1;\n int result = instance.retrieve(3);\n assertEquals(expResult, result);\n System.out.println(\"Test1 OK\");\n \n //Test2: Method returns -1 if the specified position is not valid\n ADTList instance2 = createTestADTListIns(3);\n int expResult2 = -1;\n int result2 = instance2.retrieve(4);\n assertEquals(expResult2, result2);\n System.out.println(\"Test2 OK\");\n \n //Test3: Method returns the element at the specified position\n ADTList instance3 = createTestADTListIns(3);\n int expResult3 = 2;\n int result3 = instance3.retrieve(2);\n assertEquals(expResult3, result3);\n System.out.println(\"Test3 OK\");\n }", "@Test\r\n public void testRetrieve() {\r\n\r\n PaymentDetailPojo expResult = instance.save(paymentDetail1);\r\n assertEquals(expResult, instance.retrieve(paymentDetail1));\r\n }", "@Test\r\n public void testGetCollectionInfo() throws MovieDbException {\r\n LOG.info(\"getCollectionInfo\");\r\n String language = \"\";\r\n CollectionInfo result = tmdb.getCollectionInfo(ID_MOVIE_STAR_WARS_COLLECTION, language);\r\n assertFalse(\"No collection information\", result.getParts().isEmpty());\r\n }", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "interface Retrieve {}", "@Test\n public void getAllTest() {\n Mockito.when(this.repo.findAll()).thenReturn(publisherList);\n Iterable<Publisher> resultFromService = this.publisherService.findAll();\n Publisher resultFromIterator = resultFromService.iterator().next();\n assertThat(resultFromIterator.getName()).isEqualTo(\"What The What\");\n Mockito.verify(this.repo, Mockito.times(1)).findAll();\n }", "@Test\n public void testStoreAndRetrieve() throws Exception {\n PipelineDefinition actualPipelineDef = null;\n\n try {\n\n PipelineDefinition expectedPipelineDef = populateObjects();\n\n // clear the cache , detach the objects\n databaseService.closeCurrentSession();\n\n // Retrieve\n databaseService.beginTransaction();\n\n actualPipelineDef = pipelineDefinitionCrud.retrieveLatestVersionForName(TEST_PIPELINE_NAME_1);\n\n databaseService.commitTransaction();\n\n ReflectionEquals comparer = new ReflectionEquals();\n comparer.excludeField(\".*\\\\.lastChangedTime\");\n comparer.excludeField(\".*\\\\.lastChangedUser.created\");\n comparer.excludeField(\".*\\\\.uowProperties.instance\");\n comparer.assertEquals(\"PipelineDefinition\", expectedPipelineDef,\n actualPipelineDef);\n\n List<PipelineDefinition> latestVersions = pipelineDefinitionCrud.retrieveLatestVersions();\n assertEquals(\"latestVersions count\", 1, latestVersions.size());\n comparer.assertEquals(\"latest version\", expectedPipelineDef,\n latestVersions.get(0));\n\n assertEquals(\"PipelineDefinitionNode count\", 2, pipelineNodeCount());\n assertEquals(\"PipelineModuleDefinition count\", 3,\n pipelineModuleDefinitionCount());\n assertEquals(\"ParameterSet count\", 1, pipelineModuleParamSetCount());\n } finally {\n databaseService.rollbackTransactionIfActive();\n }\n }", "@Test\n public void getAllRecipes_RecipeInfo(){\n int returned = testDatabase.addRecipe(testRecipe);\n ArrayList<Recipe> allRecipes = testDatabase.getAllRecipes();\n Recipe retrieved = allRecipes.get(allRecipes.size()-1);\n //Retrieved should now contain all the same information as testRecipe\n assertEquals(\"getAllRecipes - Correct Title\", recipeTitle, retrieved.getTitle());\n assertEquals(\"getAllRecipes - Correct Servings\", 1, retrieved.getServings(), 0);\n assertEquals(\"getAllRecipes - Correct Prep Time\", 30, retrieved.getPrep_time(), 0);\n assertEquals(\"getAllRecipes - Correct Total Time\", 60, retrieved.getTotal_time(), 0);\n assertEquals(\"getAllRecipes - Correct Favorited\", false, retrieved.getFavorited());\n }", "public void testGetValue() {\n TaskSeriesCollection c = createCollection1();\n }", "@Test\n public void add() {\n\n collection.add(\"test\");\n assertEquals(collection.getLast(),\"test\");\n }", "@Test\n public void testGetCars() {\n System.out.println(\"getCars\");\n CarController instance = new CarController();\n List<Car> expResult = null;\n List<Car> result = instance.getCars();\n for(Car car: result) {\n System.out.println(car);\n }\n assertTrue(true);\n }", "@Test\n public void testRetrieve() throws Exception {\n Citation entity = getSampleCitation();\n when(Service.retrieveCitation(any(String.class))).thenReturn(entity);\n\n // test to see that the correct view is returned\n ModelAndView mav = Controller.retrieve(\"\");\n Assert.assertEquals(\"result\", mav.getViewName());\n\n // test to see that Service at least makes a call to get a Citation object\n verify(Service, atLeastOnce()).retrieveCitation(any(String.class));\n\n // test to see that Json is formated properly\n Map<String, Object> map = mav.getModel();\n String jsonObject = (String) map.get(\"message\");\n testJsonObject(jsonObject, entity);\n }", "@Test \n\tpublic void get() \n\t{\n\t\tassertTrue(true);\n\t}", "@Test\n public void findByTripTest() {\n Set<Reservation> expected = new HashSet<>();\n expected.add(reservation2);\n expected.add(reservation4);\n Mockito.when(reservationDao.findByTripId(Mockito.anyLong())).thenReturn(expected);\n Collection<Reservation> result = reservationService.findByTrip(25L);\n Assert.assertEquals(result.size(), 2);\n Assert.assertTrue(result.contains(reservation2));\n Assert.assertTrue(result.contains(reservation4));\n }", "@Test\r\n\tpublic void testGet() {\r\n\t\tAssert.assertTrue(list.get(2).equals(new Munitions(2, 3, \"iron\")));\r\n\t}", "@Test\r\n public void testA0Get_0args() {\r\n System.out.println(\"get all\");\r\n \r\n UsuarioDao instance = new UsuarioDao();\r\n List<Usuario> expResult = new ArrayList<>();\r\n List<Usuario> result = instance.get();\r\n \r\n assertEquals(expResult, result);\r\n }", "private static void getListTest() {\n\t\tList<CartVo> list=new CartDao().getList();\r\n\t\t\r\n\t\tfor(CartVo cartVo : list) {\r\n\t\t\tSystem.out.println(cartVo);\r\n\t\t}\r\n\t}", "@Test\r\n public void testFind() {\r\n Grocery entry1 = new Grocery(\"Mayo\", \"Dressing / Mayo\", 1, 2.99f, 1);\r\n\r\n // Test empty collection exception\r\n try {\r\n instance.find(0);\r\n fail(\"Should throw ECE - testFind\");\r\n } catch (EmptyCollectionException | IndexOutOfBoundsException e) {\r\n assertTrue(e instanceof EmptyCollectionException);\r\n }\r\n\r\n instance.add(entry1);\r\n\r\n // Test element not found exception\r\n try {\r\n instance.find(1);\r\n fail(\"Should throw IOOBE - testFind\");\r\n } catch (EmptyCollectionException | IndexOutOfBoundsException e) {\r\n assertTrue(e instanceof IndexOutOfBoundsException);\r\n }\r\n\r\n // Test element exists case\r\n assertTrue(instance.contains(entry1));\r\n try {\r\n assertEquals(entry1, instance.find(0));\r\n\r\n } catch (EmptyCollectionException | IndexOutOfBoundsException e) {\r\n fail(\"Should not throw exception - testFind\");\r\n }\r\n }", "@Test\n public void getAllCustomer() {\n Customer customer1 = new Customer();\n customer1.setFirstName(\"Dominick\");\n customer1.setLastName(\"DeChristofaro\");\n customer1.setEmail(\"[email protected]\");\n customer1.setCompany(\"Omni\");\n customer1.setPhone(\"999-999-9999\");\n customer1 = service.saveCustomer(customer1);\n\n // Add a second Customer to the mock database (customer2)\n Customer customer2 = new Customer();\n customer2.setFirstName(\"Michael\");\n customer2.setLastName(\"Stuckey\");\n customer2.setEmail(\"[email protected]\");\n customer2.setCompany(\"NuclearFuelServices\");\n customer2.setPhone(\"222-222-2222\");\n customer2 = service.saveCustomer(customer2);\n\n // Collect all the customers into a list using the Customer API\n List<Customer> customerList = service.findAllCustomers();\n\n // Test the getAllCustomer() API method\n TestCase.assertEquals(2,customerList.size());\n TestCase.assertEquals(customer1, customerList.get(0));\n TestCase.assertEquals(customer2, customerList.get(1));\n }", "@Test\r\n public void UserServiceTest_RetrieveProducer()\r\n {\r\n UserService service = new UserService(); \r\n List<User> users = null;\r\n try {\r\n users = service.getProducerList();\r\n } catch (SQLException e) {\r\n fail();\r\n System.out.println(e);\r\n } \r\n }", "@Test\n public void others(){\n Item item = itemService.getItem(50);\n System.out.println(item);\n\n }", "@Test\n public void testGetProductsByPurcher() throws Exception {\n System.out.println(\"getProductsByPurcher\");\n Customer c = new Customer();\n c.setId(1l);\n prs = dao.getProductsByPurcher(c);\n assertTrue(prs.contains(p3));\n assertTrue(prs.size() == 1);\n c.setId(2l);\n prs = dao.getProductsByPurcher(c);\n assertTrue(prs.contains(p1));\n assertTrue(prs.size() == 1);\n \n c.setId(3l);\n prs = dao.getProductsByPurcher(c);\n assertTrue(prs.isEmpty());\n }", "@Test \n\t public void testRetrieveAll(){\n\t\t try{\n\t\t\t List<Users> users = new ArrayList<Users>();\n\t\t\t users.add( BaseData.getUsers());\n\t\t\t\tusers.add(BaseData.getDBUsers());\n\t\t\t\tQuery mockQuery = mock(Query.class);\n\t\t\t\twhen(entityManager.createQuery(Mockito.anyString())).thenReturn(mockQuery);\n\t\t\t\twhen(mockQuery.getResultList()).thenReturn(users);\n\t\t\t\tList<Users> loadedUsers = (List<Users>)userDao.retrieveAll();\n\t\t\t\tassertNotNull(loadedUsers);\n\t\t\t\tassertTrue(loadedUsers.size() > 1);\n\t\t }catch(DataAcessException se){\n\t\t\t logger.error(\"error at service layer while testing retrieveAll:.\",se);\n\t\t }\n\t }", "@Test\n void getByIdSuccess() {\n RunCategory retrievedCat = (RunCategory)dao.getById(1);\n assertEquals(\"A Ending, New Game\", retrievedCat.getCategoryName());\n }", "@Test\r\n public void UserServiceTest_Retrieve()\r\n {\r\n UserService service = new UserService(); \r\n List<User> users = null;\r\n try {\r\n users = service.getUserList();\r\n } catch (SQLException e) {\r\n fail();\r\n System.out.println(e);\r\n } \r\n }", "@Test\n public void shouldRetrieveACollectionOfPayments() throws Exception {\n for (int i = 0; i < 10; i++) {\n postTestPaymentAndGetResponse();\n }\n\n //when: the collection of payments is fetched:\n ResponseEntity response = restTemplate.exchange(paymentsUrl, HttpMethod.GET, null, new ParameterizedTypeReference<PagedResources<Payment>>() {\n });\n //then: there should be at least 10 payments in the collection ( remember there may be more there from a previous test ):\n Collection<Payment> payments = ((PagedResources) response.getBody()).getContent();\n assertTrue(payments.size() >= 10);\n //and: the response status code should be OK:\n assertEquals(HttpStatus.OK, response.getStatusCode());\n }", "@Test\n public void employeeRetrieveTest() {\n Mockito.when(this.rolService.getRoles()).thenReturn(Arrays.asList(new Rol()));\n Assert.assertNotNull(this.rolController.retrieve(new HttpHeaders()));\n }", "void testCanGetList();", "public abstract boolean retrieve();", "void loadTests(final AsyncCallback<List<TestInstance>> callback) {\n GetCollectionRequest request;\n\n request = new GetCollectionRequest(ClientUtils.INSTANCE.getCommandContext(), \"collections\", getTestCollectionCode());\n\n new GetCollectionMembersCommand() {\n @Override\n public void onComplete(List<TestInstance> result) {\n callback.onSuccess(result);\n launchedFromMenu = false;\n }\n }.run(request);\n }", "public Collection<T> getResults();", "@Test\n public void findAllTest() {\n Set<Reservation> expected = new HashSet<>();\n expected.add(reservation1);\n expected.add(reservation2);\n expected.add(reservation3);\n expected.add(reservation4);\n Mockito.when(reservationDao.findAll()).thenReturn(expected);\n Collection<Reservation> result = reservationService.findAll();\n Assert.assertEquals(result.size(), 4);\n Assert.assertTrue(result.contains(reservation1));\n Assert.assertTrue(result.contains(reservation2));\n }", "@Test\n public void findByCustomerTest() {\n Set<Reservation> expected = new HashSet<>();\n expected.add(reservation1);\n expected.add(reservation2);\n Mockito.when(reservationDao.findByCustomerId(Mockito.anyLong())).thenReturn(expected);\n Collection<Reservation> result = reservationService.findByCustomer(10L);\n Assert.assertEquals(result.size(), 2);\n Assert.assertTrue(result.contains(reservation1));\n Assert.assertTrue(result.contains(reservation2));\n }", "@Test\n void userStory1() throws ValidationException, NoShoppingListExist {\n ShoppingListFactory factory = api.createShoppingList();\n factory.setName(\"My Shoopping List\");\n factory.setDescription(\"A short description\");\n ShoppingList list = factory.validateAndCommit();\n\n // Times go on\n\n ShoppingList list2 = api.find(list.getId());\n\n // Test\n\n assertEquals(list.getId(), list2.getId());\n assertEquals(list.getName(), list2.getName());\n assertEquals(list.getDescription(), list2.getDescription());\n }", "@Test\n public void getAllRecipeCategories_RecipeInfo(){\n int returned = testDatabase.addRecipe(testRecipe);\n ArrayList<RecipeCategory> allCategories = testDatabase.getAllRecipeCategories(returned);\n RecipeCategory retrieved = allCategories.get(allCategories.size()-1);\n //Retrieved should now contain all the same information as testRecipe\n assertEquals(\"getAllRecipeCategories - Correct Recipe ID\", returned, retrieved.getRecipeID());\n assertEquals(\"getAllRecipeCategories - Correct Category ID\", categoryID, retrieved.getCategoryID());\n }", "@Test\n\tpublic void getAllMovies() throws Exception {\n\t\tfinal ImmutableList<Movie> movies = ImmutableList.of(this.movie);\n\t\twhen(DAO.findAll()).thenReturn(movies);\n\n\t\tfinal Map<String, Object> paramMap = new HashMap<String, Object>();\n\t\tfinal RPCMessage req = new RPCMessage(MovieRPCServer.GET_ACTION, paramMap, null);\n\n\t\tfinal String response = this.RESOURCE.getValue(req.toString());\n\n\t\tfinal RPCMessage responseObj = RPCMessage.fromString(response);\n\t\tassertThat(responseObj).isNotNull();\n\t\tassertThat(responseObj.getObj()).isEqualTo(MovieBusterUtils.serializeMovieList(movies));\n\n\t\tverify(DAO).findAll();\n\t\tassertThat(MovieBusterUtils.movieFromStringArray(responseObj.getObj())).containsAll(movies);\n\t}", "@Test\n public void getItem() {\n Item item = new Item();\n item.setName(\"Drill\");\n item.setDescription(\"Power Tool\");\n item.setDaily_rate(new BigDecimal(\"24.99\"));\n item = service.saveItem(item);\n\n // Copy the Item added to the mock database using the Item API method\n Item itemCopy = service.findItem(item.getItem_id());\n\n // Test the getItem() API method\n verify(itemDao, times(1)).getItem(item.getItem_id());\n TestCase.assertEquals(itemCopy, item);\n }", "private Collection<?> retrieveAll(Example example) {\n final QueryDescriptor descriptor =\n queryDescriptionExtractor.extract(repositoryMetadata, configuration, example);\n final Invocation invocation = createInvocation(descriptor, example);\n final SelectDataStoreOperation<Object, Object> select =\n new SelectDataStoreOperation<>(descriptor);\n return select.execute(dataStore, repositoryConfiguration, invocation);\n }", "@Test\r\n public void UserServiceTest_RetrievePresenter()\r\n {\r\n UserService service = new UserService(); \r\n List<User> users = null;\r\n try {\r\n users = service.getPresenterList();\r\n } catch (SQLException e) {\r\n fail();\r\n System.out.println(e);\r\n } \r\n }", "@Test\n void getAllSuccess() {\n List<RunCategory> categories = dao.getAll();\n assertEquals(13, categories.size());\n }", "@Test\n public void createAndRetrieveRecipe() {\n User trex = new User(\"[email protected]\", \"password\", \"T. Rex\").save();\n\n //Create ingredients and steps\n List<String> ingredients = new ArrayList<String>();\n ingredients.add(\"1 piece Bread\");\n ingredients.add(\"20g Marmite\");\n String steps = (\"Toast Bread. Spread Marmite on toasted bread\");\n\n //Create and save the new recipe\n new Recipe(trex, \"Marmite on Toast\", ingredients, steps).save();\n\n //Retrieve the recipe by title\n Recipe marmiteOnToast = Recipe.find(\"byTitle\", \"Marmite on Toast\").first();\n\n //Assert the recipe has been retrieved and that the author is the same as the one we saved\n assertNotNull(marmiteOnToast);\n assertEquals(trex, marmiteOnToast.author);\n }", "@Test\n void getAllSuccess(){\n\n List<CompositionInstrument> compositionInstruments = genericDao.getAll();\n assertEquals(4, compositionInstruments.size());\n }", "@Test\n public void testGetSelectedBooks() {\n System.out.println(\"getSelectedBooks\");\n List expResult = new ArrayList();\n List result = testLibraryTable.getSelectedBooks();\n assertEquals(expResult, result);\n\n }", "@Test\r\n\tpublic void retrieveAll() {\r\n\t\tList<Opinion> opinions = IntStream.range(0, BATCH_SIZE).mapToObj(i -> {\r\n\t\t\tOpinion currentOpinion = new Opinion(\"Student B\", \"B is for batch\");\r\n\t\t\tservice.save(currentOpinion);\r\n\t\t\treturn currentOpinion;\r\n\t\t}).collect(Collectors.toList());\r\n\r\n\t\tassertEquals(service.count(), BATCH_SIZE);\r\n\r\n\t\topinions.forEach(op -> service.delete(op));\r\n\t}", "@Test\n\tpublic void testFindCustomerByGuidWithOneReturn() {\n\t\tfinal List<Customer> customers = new ArrayList<Customer>();\n\t\tCustomer customer = new CustomerImpl();\n\t\tcustomers.add(customer);\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(getMockPersistenceEngine()).retrieveByNamedQuery(with(any(String.class)), with(any(Object[].class)));\n\t\t\t\twill(returnValue(customers));\n\t\t\t}\n\t\t});\n\t\tassertSame(customer, importGuidHelper.findCustomerByGuid(SOME_GUID));\n\t}", "@Test\n public void getCustomer() {\n Customer customer = new Customer();\n customer.setFirstName(\"Dominick\");\n customer.setLastName(\"DeChristofaro\");\n customer.setEmail(\"[email protected]\");\n customer.setCompany(\"Omni\");\n customer.setPhone(\"999-999-9999\");\n customer = service.saveCustomer(customer);\n\n // Copy the customer added to the mock database using the CustomerAPI\n Customer customerCopy = service.findCustomer(customer.getCustomerId());\n\n // Test getCustomer() API method\n verify(customerDao, times(1)).getCustomer(customer.getCustomerId());\n TestCase.assertEquals(customerCopy, customer);\n }", "@Test\n\t public void testRetrieveById(){\n\t\t try{\n\t\t\t Users user = BaseData.getUsers();\n\t\t\t\twhen(entityManager.find(Users.class,\"a1234567\")).thenReturn(user);\n\t\t\t\tUsers savedUser = userDao.retrieveById(\"a1234567\");\n\t\t\t\tassertNotNull(savedUser);\n\t\t\t\tassertTrue(savedUser.getFirstName().equals(\"MerchandisingUI\"));\n\t\t }catch(DataAcessException se){\n\t\t\t logger.error(\"error at service layer while testing retrieveById:.\",se);\n\t\t }\n\t }", "@Test\n public void listAll_200() throws Exception {\n\n // PREPARE THE DATABASE\n // Fill in the workflow db\n List<Workflow> wfList = new ArrayList<>();\n wfList.add(addMOToDb(1));\n wfList.add(addMOToDb(2));\n wfList.add(addMOToDb(3));\n\n // PREPARE THE TEST\n // Fill in the workflow db\n\n // DO THE TEST\n Response response = callAPI(VERB.GET, \"/mo/\", null);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(200, status);\n\n List<Workflow> readWorkflowList = response.readEntity(new GenericType<List<Workflow>>() {\n });\n assertEquals(wfList.size(), readWorkflowList.size());\n for (int i = 0; i < wfList.size(); i++) {\n assertEquals(wfList.get(i).getId(), readWorkflowList.get(i).getId());\n assertEquals(wfList.get(i).getName(), readWorkflowList.get(i).getName());\n assertEquals(wfList.get(i).getDescription(), readWorkflowList.get(i).getDescription());\n }\n\n\n }", "@Ignore\r\n @Test\r\n public void testContainsCollection() {\r\n System.out.println(\"containsCollection\");\r\n NumberCollection nc = null;\r\n NumberCollection instance = new NumberCollection();\r\n boolean expResult = false;\r\n boolean result = instance.containsCollection(nc);\r\n assertEquals(expResult, result);\r\n \r\n }", "@Test\n void getAllCarsSuccess() {\n List<Car> cars = carDao.getAll();\n assertNotNull(cars);\n assertEquals(1, cars.size());\n }", "@Test\n public void testGet() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n Integer expResult = 7;\n Integer result = instance.get(2);\n assertEquals(expResult, result);\n\n }", "@Test\r\n public void testGetList() throws Exception {\r\n LOG.info(\"getList\");\r\n String listId = \"509ec17b19c2950a0600050d\";\r\n MovieDbList result = tmdb.getList(listId);\r\n assertFalse(\"List not found\", result.getItems().isEmpty());\r\n }", "@org.junit.Test\r\n public void listAll() throws Exception {\r\n System.out.println(\"listAll\");\r\n Review review = new Review(new Long(0), \"Max\", 9, \"It's excellent\");\r\n int size1 = service.listAll().size();\r\n assertEquals(size1, 0);\r\n service.insertReview(review);\r\n int size2 = service.listAll().size();\r\n assertEquals(size2, 1);\r\n }", "public ODataRetrieve addRetrieve() {\n closeCurrentItem();\n\n // stream dash boundary\n streamDashBoundary();\n\n final ODataRetrieveResponseItem expectedResItem = new ODataRetrieveResponseItem();\n currentItem = new ODataRetrieve(req, expectedResItem);\n\n expectedResItems.add(expectedResItem);\n\n return (ODataRetrieve) currentItem;\n }", "@Test\r\n public void testGetCollectionImages() throws Exception {\r\n LOG.info(\"getCollectionImages\");\r\n List<Artwork> result = tmdb.getCollectionImages(ID_MOVIE_STAR_WARS_COLLECTION, LANGUAGE_DEFAULT);\r\n assertFalse(\"No artwork found\", result.isEmpty());\r\n }", "@Test\n public void testGetListItems() {\n System.out.println(\"getListItems\");\n DataModel instance = new DataModel();\n List expResult = null;\n List result = instance.getListItems();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void testGetNotesTaken() {\n System.out.println(\"getNotesTaken\");\n CharterDto instance = new CharterDto(\"Test name\");\n ArrayList<Note> expResult = new ArrayList<>();\n instance.setNotesTaken(expResult);\n ArrayList<Note> result = instance.getNotesTaken();\n assertEquals(expResult, result);\n \n }", "public void testTypedCollection()\r\n\t{\r\n broker.beginTransaction();\r\n for (int i = 1; i < 4; i++)\r\n {\r\n ProductGroupWithTypedCollection example = new ProductGroupWithTypedCollection();\r\n example.setId(i);\r\n ProductGroupWithTypedCollection group =\r\n (ProductGroupWithTypedCollection) broker.getObjectByQuery(\r\n new QueryByIdentity(example));\r\n assertEquals(\"should be equal\", i, group.getId());\r\n //System.out.println(group + \"\\n\\n\");\r\n\r\n broker.delete(group);\r\n broker.store(group);\r\n }\r\n broker.commitTransaction();\r\n\t}", "@Test\n public void getAllRecipes_ReturnsList(){\n ArrayList<Recipe> allRecipes = testDatabase.getAllRecipes();\n assertNotEquals(\"getAllRecipes - Non-empty List Returned\", 0, allRecipes.size());\n }", "public static void main(String[] args) {\n ListTest lt = new ListTest();\n lt.testAdd();\n// lt.testGet();\n lt.testIterator();\n lt.testListContains();\n }", "@Test\n public void retriveAllTest() throws SQLException {\n manager = new TableServizioManager(mockDb);\n List<Servizio> lista = manager.retriveAll();\n assertEquals(7,lista.size(),\"It should return a list of length 7\");\n }", "private void retrieve() {\r\n\t\ttry {\r\n\t\t\tif (store == null) {\r\n\t\t\t\tstore = Store.retrieve();\r\n\t\t\t\tif (store != null) {\r\n\t\t\t\t\tSystem.out.println(\" The store has been successfully retrieved from the file StoreData. \\n\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tstore = Store.instance();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception cnfe) {\r\n\t\t\tcnfe.printStackTrace();\r\n\t\t}\r\n\t}", "public ImmutableRetrieve() {\n super();\n }", "@Test\n void getByPropertyExactSuccess() {\n List<Car> carList = carDao.getByPropertyEqual(\"make\", \"Jeep\");\n assertEquals(1, carList.size());\n }", "@Test\n void getAllSuccess() {\n List<User> Users = dao.getAll();\n assertEquals(2, Users.size());\n }", "@Test\n public void testViewRawMaterialWithSelectType1() throws Exception {\n System.out.println(\"viewRawMaterialWithSelectType\");\n Long factoryId = 1L;\n Collection<FactoryRawMaterialEntity> result = PurchaseOrderManagementModule.viewRawMaterialWithSelectType(factoryId);\n assertFalse(result.isEmpty());\n }", "public static void main(String[] args) {\n\t\tCollection testCol = new Collection();\n\t\t\n\t\t// Basic Test #2: Creating a song & adding to empty collection\n\t\tSong testSong = new Song();\n\t\tSong testSong2 = new Song(\"000035\", \"FakeArtist\", \"Pop\", \"Track1\", \"Album1\", 2020, 0.0);\n\t\ttestCol.addSong(testSong);\n\t\ttestCol.addSong(testSong2);\n\t\tSystem.out.println(\"Test Song Collection:\\n\" + testCol);\n\t\t\n\t\t\n\t\t// Main Test: Get collection from the .csv\n\t\tCollection SongCol = new Collection(\"./projectBackEnd/finalTracks.csv\");\n\t\t\n\t\t\n\t\t/* Note: Main functionalities tested on a TEST COLLECTION in\n\t\t * order to show case methods without having to print a giant text\n\t\t * file every time. */\n\t\t// Remove Test: Remove a song based on ID\n\t\ttestCol.removeSong(\"000000\");\n\t\tSystem.out.println(\"Song Removed:\\n\" + testCol);\n\t\tSongCol.removeSong(\"000002\"); // Removes from actual SongCol! \n\t\t\n\t\t\n\t\t// Edit Tests: Getters & Setters using SongCol.\n\t\tSong editTest = SongCol.getSong(\"000005\");\n\t\t\n\t\t// Before Edits\n\t\tSystem.out.println(\"Before Edits:\\n\" + editTest + \"\\n\");\n\t\t\n\t\teditTest.setAlbum(\"NewAlb\");\t\t\t\t\t\t\t\t\t// SetAlbum\n\t\tSystem.out.print(\"Changes: \" + editTest.getAlbum() + \" \"); \t\t// GetAlbum\n\t\t\n\t\teditTest.setId(\"000005\");\t\t\t\t\t\t\t\t\t\t// SetId\n\t\tSystem.out.print(editTest.getId() + \" \");\t\t\t\t\t\t// GetId\n\n\t\teditTest.setGenre(\"Indie\");\t\t\t\t\t\t\t\t\t\t// SetGenre\n\t\tSystem.out.print(editTest.getGenre() + \" \");\t\t\t\t\t// GetGenre\n\t\t\n\t\teditTest.setArtist(\"NEW Artist\");\t\t\t\t\t\t\t\t// SetArtist\n\t\tSystem.out.print(editTest.getArtist() + \" \");\t\t\t\t\t// GetArtist\n\t\t\n\t\teditTest.setLong(-73.2);\t\t\t\t\t\t\t\t\t\t// SetLong\n\t\tSystem.out.print(editTest.getLong() + \" \"); \t\t\t\t\t// GetLong\n\t\t\n\t\teditTest.setTrack(\"TRACK NAME\");\t\t\t\t\t\t\t\t// SetTrack\n\t\tSystem.out.print(editTest.getTrack() + \" \");\t\t\t\t\t// GetTrack\n\t\t\n\t\teditTest.setYear(2004);\t\t\t\t\t\t\t\t\t\t\t// SetYear\n\t\tSystem.out.println(editTest.getYear() + \"\\n\");\t\t\t\t\t// GetYear\n\t\t\n\t\t// After Edits\n\t\tSystem.out.println(\"After Edits:\\n\" + SongCol.getSong(\"000005\") + \"\\n\");\n\n\t\t\n\t\t// Iterator Test: Checks that the iterator works\n\t\tIterator<Song> itr = testCol.getIterator();\n\t\tSystem.out.println(\"Iterator Test:\");\n\t\twhile (itr.hasNext()) {\n\t\t\tSystem.out.println(itr.next());\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t// Query Tests using the actual SongCol\n\t\t// Query Test #1: Get a song based on artist \n\t\tSystem.out.println(\"Query Test #1:\\n\" + SongCol.InputOneToOne(\"AWOL\") + \"\\n\");\n\t\t\n\t\t// Query Test #2: Get a song based on artist and album\n\t\tSystem.out.println(\"Query Test #2:\\n\" + SongCol.InputManyToOne(\"Fósforo\", \"Macondo\") + \"\\n\");\n\t\t\n\t\t// Query Test #3: Get a variety of songs based on genre\n\t\tSystem.out.println(\"Query Test #3:\\n\" + SongCol.InputOneToMany(\"Latin America\") + \"\\n\");\n\t\t\n\t\t// Query Test #4: Get a variety of songs based on genre and year\n\t\tSystem.out.println(\"Query Test #4:\\n\" + SongCol.InputManyToMany(\"Psych-Folk\", 2008) + \"\\n\");\n\t\t\n\t\t\n\t\t// End Test: Write to same file\n\t\tSongCol.writeFile(\"./projectBackEnd/finalTracks.csv\");\n\t}", "@Test\n void getByIdSuccess() {\n User retrievedUser = (User) dao.getById(1);\n //User retrievedUser = dao.getById(1);\n assertEquals(\"Dave\", retrievedUser.getFirstName());\n assertEquals(\"Queiser\", retrievedUser.getLastName());\n }", "@Test\n public void testRead() {\n\n List<JDBCDataObject> classList = new ArrayList<>();\n\n classList = manageClass.read(new EnrollmentDTO(1, 0, 0, null));\n\n assertNotNull(classList);\n }", "@Override\n\tpublic void run(String... args) throws Exception {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Test collection found with findAll():\");\n\n\t\t\tfor (TestColle testCollection : repository.findAll()) {\n\t\t\t\tSystem.out.println(testCollection);\n\t\t\t\tSystem.out.println(\"--Thread Sleep start, insert new document by mongo shell---------------\");\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.println(\" Sleep start \");\n\t\t\t\t\tThread.sleep(5000);\n\t\t\t\t\tSystem.out.println(\" Sleep end \");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\" Exception : \" + e);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\" Exception_2 : \" + e);\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Test\n public void testFindall() {\n\n System.out.println(\"findall\"); \n PrioridadRest rest = mokPrioridadRest;\n List<Prioridad> result = rest.findall();\n Prioridad prioridad = new Prioridad(1, \"1\");\n assertThat(result, CoreMatchers.hasItems(prioridad));\n }", "@SuppressWarnings(\"serial\")\n\t@Test\n\tpublic void updateCollection() {\n\t\tdb.close();\n\t\tEmbeddedConfiguration config = Db4oEmbedded.newConfiguration();\n\t\tconfig.common().objectClass(Car.class).cascadeOnUpdate(true);\n\t\tdb = Db4oEmbedded.openFile(config, DB4OFILENAME);\n\t\tObjectSet<Car> results = db.query(new Predicate<Car>() {\n\t\t\tpublic boolean match(Car candidate) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t});\n\n\t\tAssert.assertTrue(results.hasNext());\n\n\t\tCar car = results.next();\n\n\t\tcar.getHistory().remove(0);\n\t\tdb.store(car.getHistory());\n\t\tresults = db.query(new Predicate<Car>() {\n\t\t\tpublic boolean match(Car candidate) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t});\n\n\t\twhile (results.hasNext()) {\n\t\t\tcar = results.next();\n\t\t\tfor (int idx = 0; idx < car.getHistory().size(); idx++) {\n\t\t\t\tSystem.out.println(car.getHistory().get(idx));\n\t\t\t}\n\t\t}\n\n\t}", "@Test\r\n\tpublic void itemRetTest() {\r\n\t\tItem item = new Item();\r\n\t\ttry {\r\n\t\t\tint k = 0;\r\n\t\t\tk = item.getNumberOfItems(SELLER);\r\n\t\t\tassertNotSame(k, 0);\r\n\t\t\tItem tempSet[] = item.getAllForUser(SELLER);\r\n\t\t\tassertEquals(tempSet.length, k);\t\t\t// Retrieves correct number of items\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to get number of items for seller id \" + SELLER + \": SQLException\");\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tint k = 0;\r\n\t\t\tk = item.getNumberOfItemsInOrder(ORDER);\r\n\t\t\tassertNotSame(k, 0);\r\n\t\t\tItem tempSet[] = item.getAllByOrder(ORDER);\r\n\t\t\tassertEquals(tempSet.length, k);\t\t\t// Retrieves correct number of items\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to get number of items for order id \" + ORDER + \": SQLException\");\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tItem tempSet[] = item.getAllByOrder(ORDER);\r\n\t\t\tfor (int i = 0; i < tempSet.length; i++) {\r\n\t\t\t\tassertNotNull(tempSet[i]);\r\n\t\t\t\tassertNotNull(tempSet[i].getId());\r\n\t\t\t\tassertNotSame(tempSet[i].getId(), 0);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to load items for order id \" + ORDER + \": SQLException\");\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t}", "@Test\n public void test1(){\n PageInfo<User> page = iUserService.selectWithPage(new User(),new Page(1,10,null));\n List<User> list = page.getList();\n\n System.out.println(list.toString());\n\n\n List<User> user = new ArrayList<User>();\n User user1 = new User();\n user1.setId(1);\n user.add(user1);\n System.out.println(user.toString());\n }", "@SuppressWarnings(\"unchecked\")\n\t\t@Test\n\t\tpublic void testGetMakeData(){\n\t\t\tList<Make> expected = new ArrayList<Make>();\n\t\t\tTypedQuery<Make> mockedTypedQuery = mock(TypedQuery.class);\n\t\t\t\n\t\t\twhen(mockEm.createQuery(anyString(), eq(Make.class))).thenReturn(mockedTypedQuery);\n\t\t\twhen(mockedTypedQuery.getResultList()).thenReturn(expected);\n\t\t\t\n\t\t\ttarget.getMakeData();\n\t\t\t\n\t\t\tverify(mockedTypedQuery, times(1)).getResultList();\t\t\n\t\t}", "@Test\n public void getListOfSavedTransformers() {\n\tassertTrue(service.getAllTransformers().isEmpty());\n\tTransformer transformer = initialize();\n\n\tList<Transformer> transformers = new ArrayList<>();\n\ttransformers.add(transformer);\n\twhen(repository.findAll()).thenReturn(transformers);\n\n\t// checking list after adding transformers\n\tassertFalse(service.getAllTransformers().isEmpty());\n }", "@Test\n public void test_getAll_1() throws Exception {\n clearDB();\n\n List<User> res = instance.getAll();\n\n assertEquals(\"'getAll' should be correct.\", 0, res.size());\n }", "@Test\n void getByIdSuccess() {\n //Get User\n GenericDao<User> userDao = new GenericDao(User.class);\n User user = userDao.getById(2);\n\n //Create Test Car\n Car testCar = new Car(1,user,\"2016\",\"Jeep\",\"Wrangler\",\"1C4BJWFG2GL133333\");\n\n //Ignore Create/Update times\n testCar.setCreateTime(null);\n testCar.setUpdateTime(null);\n\n //Get Existing Car\n Car retrievedCar = carDao.getById(1);\n assertNotNull(retrievedCar);\n\n //Compare Cars\n assertEquals(testCar,retrievedCar);\n }", "@Test\n\tpublic void testFindCustomerByGuidWithMoreThanOneReturn() {\n\t\tfinal List<Customer> customers = new ArrayList<Customer>();\n\t\tCustomer customer = new CustomerImpl();\n\t\tcustomers.add(customer);\n\t\tcustomers.add(customer);\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(getMockPersistenceEngine()).retrieveByNamedQuery(with(any(String.class)), with(any(Object[].class)));\n\t\t\t\twill(returnValue(customers));\n\t\t\t}\n\t\t});\n\t\ttry {\n\t\t\timportGuidHelper.findCustomerByGuid(SOME_GUID);\n\t\t\tfail(EP_SERVICE_EXCEPTION_EXPECTED);\n\t\t} catch (EpServiceException e) {\n\t\t\tassertNotNull(e);\n\t\t}\n\t}", "@Test\n void getAllSuccess() {\n List<UserRoles> roles = genericDAO.getAll();\n assertEquals(3, roles.size());\n }", "@Test\n\t\tpublic void listBeers() {\n\t\t\tCollection<Beer> allBeers = beerSvc.getAll();\n\t\t\tAssert.assertNotNull(allBeers);\n\t\t}", "@Test\n public void testGetEntries() {\n System.out.println(\"getEntries\");\n \n Date TestDate = new Date();\n Entry E1=new Entry(123,123,123,\"TestTitle\",\"TestContent\",\"TestFlag\",TestDate);\n Entries EntriesTest = new Entries();\n Entries instance = EntriesTest;\n EntriesTest.addEntry(E1);\n \n ArrayList<Entry> entryList = new ArrayList<Entry>();\n entryList.add(E1);\n ArrayList<Entry> result = instance.getEntries();\n \n assertEquals(result,entryList);\n \n }", "@Test\r\n public void testGetFood() throws Exception\r\n {\r\n System.out.println(\"getFood\");\r\n int memberId = 5;\r\n FoodBean instance = new FoodBean();\r\n ArrayList<FoodBean> result = instance.getFood(memberId);\r\n assertNotNull(result);\r\n assertTrue(!result.isEmpty());\r\n }", "@Test\n public void testGetAll() {\n List<Allocation> cc = allocationCollection.getAll();\n assertNotNull(cc);\n assertFalse(cc.isEmpty());\n }", "@Test\n void getByIdSuccess() {\n UserRoles retrievedRole = (UserRoles)genericDAO.getByID(1);\n assertEquals(\"administrator\", retrievedRole.getRoleName());\n assertEquals(1, retrievedRole.getUserRoleId());\n assertEquals(\"admin\", retrievedRole.getUserName());\n }", "@Test\r\n\tpublic void testGetRecords() {\r\n\t\tAssert.assertNull(oic.getRecords(\"a\"));\r\n\r\n\t\tList<ObstetricsInit> list;\r\n\t\ttry {\r\n\t\t\tlist = oiData.getRecords(1);\r\n\t\t\tAssert.assertEquals(list, oic.getRecords(\"1\"));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\t//TODO: Maybe test sorting\r\n\t}", "@Test\n public void testFind() {\n System.out.println(\"find\");\n int id = 0;\n Resource expResult = null;\n Resource result = Resource.find(id);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "protected T retrieve() {\n return _result;\n }", "@Test\r\n public void testGet() {\r\n System.out.println(\"get\");\r\n Long codigoCliente = null;\r\n ClienteDAO instance = new ClienteDAO();\r\n ClienteEmpresa expResult = null;\r\n ClienteEmpresa result = instance.get(codigoCliente);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\n public void testQueryList(){\n }", "@Test\n void getUserBy() {\n List<Role> users = (List<Role>) roleDAO.getEntityBy(\"roleName\", \"o\");\n assertEquals(1, users.size());\n }", "@Test\r\n public void testloadCustomer() throws Exception {\r\n List<Server.Customer> lesClients = DAOCustomer.loadCustomer(Con());\r\n assertNotNull(lesClients);\r\n }", "@Test\n public void getAllItem() {\n Item item1 = new Item();\n item1.setName(\"Drill\");\n item1.setDescription(\"Power Tool\");\n item1.setDaily_rate(new BigDecimal(\"24.99\"));\n item1 = service.saveItem(item1);\n\n // Add an Item to the mock database using the Item API method (item2)\n Item item2 = new Item();\n item2.setName(\"Screwdriver\");\n item2.setDescription(\"Hand Tool\");\n item2.setDaily_rate(new BigDecimal(\"4.99\"));\n item2 = service.saveItem(item2);\n\n // Add all the Item's in the mock database to a list of Items using the Item API method\n List<Item> itemList = service.findAllItems();\n\n // Test the getAllItem() API method\n TestCase.assertEquals(2, itemList.size());\n TestCase.assertEquals(item1, itemList.get(0));\n TestCase.assertEquals(item2, itemList.get(1));\n }", "public RetrieveModel retrieveDetail(RetrieveModel retrieve) throws StoreException {\r\n Connection con = null;\r\n try{\r\n con = DBUtils.getConnection(Construct.DB_POOL_NAME);\r\n PopExpectedProfitSvc svc = new PopExpectedProfitSvc();\r\n\r\n retrieve = svc.retrieveDetail(con, retrieve);\r\n\r\n }catch(StoreException se){\r\n retrieve.put(\"ERROR_MESSAGE\",se.getMessage());\r\n }catch(Exception e){\r\n retrieve.put(\"ERROR_MESSAGE\",e.getMessage());\r\n }finally {\r\n DBUtils.freeConnection(con);\r\n }\r\n return retrieve;\r\n }" ]
[ "0.7037779", "0.6967554", "0.67454064", "0.6247481", "0.6158225", "0.6148105", "0.6129199", "0.6013065", "0.5880206", "0.58799446", "0.58614576", "0.5859197", "0.58239394", "0.5822321", "0.57760406", "0.57205915", "0.56801796", "0.5679982", "0.5656073", "0.56448954", "0.5634106", "0.56249875", "0.5615101", "0.56001467", "0.5593981", "0.5588373", "0.5570603", "0.5569951", "0.5568766", "0.55641264", "0.55226696", "0.5519149", "0.5513436", "0.55015063", "0.5484819", "0.5484474", "0.5481439", "0.5476842", "0.5476049", "0.5447285", "0.5430005", "0.5426041", "0.54239845", "0.5420554", "0.5416566", "0.5412704", "0.5412339", "0.54112685", "0.54095095", "0.5402506", "0.53989875", "0.5384779", "0.53821445", "0.53690845", "0.53689337", "0.536328", "0.5359725", "0.5357908", "0.53527707", "0.53487414", "0.53415316", "0.5335802", "0.53343606", "0.53324145", "0.53313977", "0.5320375", "0.5318743", "0.53152853", "0.5313001", "0.5306529", "0.5287947", "0.5277952", "0.5275465", "0.52750224", "0.52743953", "0.527133", "0.52681744", "0.52680385", "0.5263796", "0.5261209", "0.52581286", "0.5258031", "0.52579755", "0.525115", "0.52505416", "0.52474934", "0.5245632", "0.5242686", "0.524192", "0.5239719", "0.52349627", "0.5231066", "0.52212346", "0.5219799", "0.52189183", "0.5212848", "0.52098024", "0.5207932", "0.5207582", "0.52053076" ]
0.6502156
3
Created by winstone on 2017/8/18.
public interface ExecutorService { /** * beat 心跳 * @return */ public ReturnT<String> beat(); public ReturnT<String> idleBeat(int jobId); /** * kill 掉某个job * @param jobId * @return */ public ReturnT<String> kill(int jobId); /** * 记录掉某个日志 * @param logDateTim * @param logId * @param fromLineNum * @return */ public ReturnT<LogResult> log(long logDateTim, int logId, int fromLineNum); /** * 执行某个任务 * @param triggerParam * @return */ public ReturnT<String> run(TriggerParam triggerParam); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n void init() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n public void init() {}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void sacrifier() {\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 public void initialize() { \n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void 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 initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n protected void init() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void init() {}", "@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\r\n\tpublic void rozmnozovat() {\n\t}", "private void init() {\n\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n public void initialize() {\n \n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@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 memoria() {\n \n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "private void poetries() {\n\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void init() {\n\t}", "public void mo38117a() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "Petunia() {\r\n\t\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void init() {\n }", "@Override\n public void initialize() {\n\n }", "@Override\n public void initialize() {\n\n }", "protected MetadataUGWD() {/* intentionally empty block */}", "Consumable() {\n\t}", "private TMCourse() {\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "public void mo4359a() {\n }" ]
[ "0.6224642", "0.6165619", "0.58269244", "0.5825099", "0.5821704", "0.5821704", "0.5821704", "0.5821704", "0.5821704", "0.5821704", "0.58130234", "0.5784401", "0.57565993", "0.574882", "0.5745014", "0.5741957", "0.5741957", "0.57407075", "0.56434107", "0.5642389", "0.5628028", "0.5619212", "0.5619212", "0.5618467", "0.56127775", "0.560457", "0.5603555", "0.56016195", "0.56012493", "0.56012493", "0.56012493", "0.56012493", "0.56012493", "0.5598052", "0.5598052", "0.5598052", "0.55859005", "0.5583374", "0.5583374", "0.5578701", "0.5573314", "0.55698776", "0.55649096", "0.55591583", "0.55587244", "0.55410093", "0.55410093", "0.5537429", "0.5533888", "0.5522323", "0.55194896", "0.55141574", "0.55141574", "0.55141574", "0.54919857", "0.5489101", "0.5477825", "0.5477825", "0.547489", "0.547489", "0.547489", "0.54712653", "0.54712653", "0.54712653", "0.54617643", "0.5458069", "0.5458069", "0.5458069", "0.5458069", "0.5458069", "0.5458069", "0.5458069", "0.5458069", "0.5458069", "0.5458069", "0.545746", "0.5454958", "0.54540706", "0.5452043", "0.5449436", "0.54467887", "0.54304224", "0.542301", "0.5419941", "0.541855", "0.54155296", "0.54148614", "0.54114646", "0.54092824", "0.5400029", "0.5398668", "0.53879625", "0.5379727", "0.5378759", "0.53649724", "0.53649724", "0.5362229", "0.5361819", "0.5357345", "0.5356855", "0.5338785" ]
0.0
-1
obtenemos el porcentaje a mostrar
@SuppressLint("DefaultLocale") @Override public void onSeriesItemAnimationProgress(float percentComplete, float currentPosition) { float percentFilled = ((currentPosition - seriesItem1.getMinValue()) / (seriesItem1.getMaxValue() - seriesItem1.getMinValue())); //se lo pasamos al TextView tvPorciento.setText(String.format("%.0f%%", percentFilled * 100f)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic double porcentajeDelComercio() {\n\t\treturn 0.25;\r\n\t}", "@Override\n\tpublic void muestraInfo() {\n\t\tSystem.out.println(\"Adivina un número par: Es un juego en el que el jugador\" +\n\t\t\t\t\" deberá acertar un número PAR comprendido entre el 0 y el 10 mediante un número limitado de intentos(vidas)\");\n\t}", "public int precioFinal(){\r\n int monto=super.PrecioFinal();\r\n\t \t \r\n\t if (pulgadas>40){\r\n\t monto+=precioBase*0.3;\r\n\t }\r\n\t if (sintonizador){\r\n\t monto+=50;\r\n\t }\r\n\t \r\n\t return monto;\r\n\t }", "public static float mostrarCredito(){\n JOptionPane.showMessageDialog(null,\"Actualmente hay \"+Monedero.getCredito());\n return Monedero.getCredito();\n }", "public void sacarPaseo(){\r\n\t\t\tSystem.out.println(\"Por las tardes me saca de paseo mi dueño\");\r\n\t\t\t\r\n\t\t}", "public void showValor() {\n String out = new String();\n this.setText(Integer.toString(valor));\n }", "@Override\n\tpublic void display() {\n\t\tSystem.out.println(\"Pasos dados por \" + a.nombre + \" \" + a.distancia + \" m = \" + pasosActividad + \" / Pasos en total = \" + pasosTotal);\n\t}", "public float carga(){\n return (this.capacidade/this.tamanho);\n }", "public void formatoTiempo() {\n String segundos, minutos, hora;\n\n hora = hrs < 10 ? String.valueOf(\"0\" + hrs) : String.valueOf(hrs);\n\n minutos = min < 10 ? String.valueOf(\"0\" + min) : String.valueOf(min);\n\n jLabel3.setText(hora + \" : \" + minutos + \" \" + tarde);\n }", "public void inicio(){\n d.display(\"Para un calcular conversiones de grados Farenheit y Celsius\\n\"\n + \"o viceversa\");\n //System.out.println(\"Para un nadaro que ha ganado medallas en 5 competencias\");\n }", "public void calcPrecioTotal() {\n try {\n float result = precioUnidad * Float.parseFloat(unidades.getText().toString());\n prTotal.setText(String.valueOf(result) + \"€\");\n }catch (Exception e){\n prTotal.setText(\"0.0€\");\n }\n }", "private void peso(){\r\n if(getPeso()>80){\r\n precioBase+=100;\r\n }\r\n else if ((getPeso()<=79)&&(getPeso()>=50)){\r\n precioBase+=80;\r\n }\r\n else if ((getPeso()<=49)&&(getPeso()>=20)){\r\n precioBase+=50;\r\n }\r\n else if ((getPeso()<=19)&&(getPeso()>=0)){\r\n precioBase+=10;\r\n }\r\n }", "private void sonucYazdir() {\n\t\talinanPuan = (int)(((float)alinanPuan / (float)toplamPuan) * 100);\n\t\tSystem.out.println(\"\\nSınav Bitti..!\\n\" + soruSayisi + \" sorudan \" + dogruSayaci + \" tanesine\"\n\t\t\t\t\t\t+ \" doğru cevap verdiniz.\\nPuan: \" + alinanPuan + \"/\" + toplamPuan);\n\t}", "@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }", "public static void Promedio(){\n int ISumaNotas=0;\n int IFila=0,ICol=0;\n int INota;\n float FltPromedio;\n for(IFila=0;IFila<10;IFila++)\n {\n ISumaNotas+=Integer.parseInt(StrNotas[IFila][1]);\n }\n FltPromedio=ISumaNotas/10;\n System.out.println(\"El promedio de la clase es:\"+FltPromedio);\n }", "public int getPrecio(){\n return precio;\n }", "public void ex() {\n int inches = 86; \n int pie = 12; //1 pie = 12 inches \n //Operaciones para obtener la cantidad de pies e inches\n int cant = inches / pie; \n int res = inches % pie;\n //Muestra de resultados\n System.out.println(inches + \" pulgadas es equivalente a\\n \" + \n cant + \" pies \\n \" + res + \" pulgadas \");\n }", "public void mostrarJet(){\r\n \r\n System.out.println(\"clase hija jet de vehiculo con motor \");\r\n System.out.println(\"LA CANTIDAD DE MOTORES ES : \" + this.cantidaddeMotores);\r\n\r\n\r\n System.out.println(\"***************************************************\");\r\n System.out.println(\"*************H**E**R**E**D**A**********************\");\r\n System.out.println(\"|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|\");\r\n }", "String getPrecio();", "@Override\n public void mostrar(){\n super.mostrar(); //Para evitar que este metodo se prefiera antes que el de padre(por que tienen el mismo nombre)\n //lo llamamos con super\n System.out.println(\"Nro de Paginas: \" + this.nroPag);\n }", "private void actualizaPuntuacion() {\n if(cambiosFondo <= 10){\n puntos+= 1*0.03f;\n }\n if(cambiosFondo > 10 && cambiosFondo <= 20){\n puntos+= 1*0.04f;\n }\n if(cambiosFondo > 20 && cambiosFondo <= 30){\n puntos+= 1*0.05f;\n }\n if(cambiosFondo > 30 && cambiosFondo <= 40){\n puntos+= 1*0.07f;\n }\n if(cambiosFondo > 40 && cambiosFondo <= 50){\n puntos+= 1*0.1f;\n }\n if(cambiosFondo > 50) {\n puntos += 1 * 0.25f;\n }\n }", "public int contaPercorre() {\n\t\tint contaM = 0;\n\t\tCampusModel aux = inicio;\n\t\tString r = \" \";\n\t\twhile (aux != null) {\n\t\t\tr = r + \"\\n\" + aux.getNomeCampus();\n\t\t\taux = aux.getProx();\n\t\t\tcontaM++;\n\t\t}\n\t\treturn contaM;\n\t}", "public void calcular() {\n int validar, c, d, u;\n int contrasena = 246;\n c = Integer.parseInt(spiCentenas.getValue().toString());\n d = Integer.parseInt(spiDecenas.getValue().toString());\n u = Integer.parseInt(spiUnidades.getValue().toString());\n validar = c * 100 + d * 10 + u * 1;\n //Si es igual se abre.\n if (contrasena == validar) {\n etiResultado.setText(\"Caja Abierta\");\n }\n //Si es menor nos indica que es mas grande\n if (validar < contrasena) {\n etiResultado.setText(\"El número secreto es mayor\");\n }\n //Si es mayot nos indica que es mas pequeño.\n if (validar > contrasena) {\n etiResultado.setText(\"El número secreto es menor\");\n }\n }", "public void carroPulando() {\n\t\tpulos++;\n\t\tpulo = (int) (PULO_MAXIMO/10);\n\t\tdistanciaCorrida += pulo;\n\t\tif (distanciaCorrida > distanciaTotalCorrida) {\n\t\t\tdistanciaCorrida = distanciaTotalCorrida;\n\t\t}\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null,\"El precio a pagar por el alquiler de las peliculas es: \" + totalc + \"€\");\n\t\t\t}", "public String dimeTuTiempo()\n {\n String cadResultado=\"\";\n if (horas<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+horas;\n cadResultado=cadResultado+\":\";\n if(minutos<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+minutos;\n \n return cadResultado;\n }", "public java.lang.Double getPorcentaje() {\n return porcentaje;\n }", "public void TesteCompleto() {\n\n\n TectoySunmiPrint.getInstance().initPrinter();\n TectoySunmiPrint.getInstance().setSize(24);\n\n // Alinhamento do texto\n\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printText(\"Alinhamento\\n\");\n TectoySunmiPrint.getInstance().printText(\"--------------------------------\\n\");\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_LEFT);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_RIGTH);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n\n // Formas de impressão\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printText(\"Formas de Impressão\\n\");\n TectoySunmiPrint.getInstance().printText(\"--------------------------------\\n\");\n TectoySunmiPrint.getInstance().setSize(28);\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_LEFT);\n TectoySunmiPrint.getInstance().printStyleBold(true);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n TectoySunmiPrint.getInstance().printStyleReset();\n TectoySunmiPrint.getInstance().printStyleAntiWhite(true);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n TectoySunmiPrint.getInstance().printStyleReset();\n TectoySunmiPrint.getInstance().printStyleDoubleHeight(true);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n TectoySunmiPrint.getInstance().printStyleReset();\n TectoySunmiPrint.getInstance().printStyleDoubleWidth(true);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n TectoySunmiPrint.getInstance().printStyleReset();\n TectoySunmiPrint.getInstance().printStyleInvert(true);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n TectoySunmiPrint.getInstance().printStyleReset();\n TectoySunmiPrint.getInstance().printStyleItalic(true);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n TectoySunmiPrint.getInstance().printStyleReset();\n TectoySunmiPrint.getInstance().printStyleStrikethRough(true);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n TectoySunmiPrint.getInstance().printStyleReset();\n TectoySunmiPrint.getInstance().printStyleUnderLine(true);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n TectoySunmiPrint.getInstance().printStyleReset();\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_LEFT);\n TectoySunmiPrint.getInstance().printTextWithSize(\"TecToy Automação\\n\", 35);\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printTextWithSize(\"TecToy Automação\\n\", 28);\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_RIGTH);\n TectoySunmiPrint.getInstance().printTextWithSize(\"TecToy Automação\\n\",50);\n // TectoySunmiPrint.getInstance().feedPaper();\n TectoySunmiPrint.getInstance().setSize(24);\n\n\n // Impressão de BarCode\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printText(\"Imprime BarCode\\n\");\n TectoySunmiPrint.getInstance().printText(\"--------------------------------\\n\");\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_LEFT);\n TectoySunmiPrint.getInstance().printBarCode(\"7894900700046\", TectoySunmiPrint.BarCodeModels_EAN13, 162, 2,\n TectoySunmiPrint.BarCodeTextPosition_INFORME_UM_TEXTO);\n TectoySunmiPrint.getInstance().printAdvanceLines(2);\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printBarCode(\"7894900700046\", TectoySunmiPrint.BarCodeModels_EAN13, 162, 2,\n TectoySunmiPrint.BarCodeTextPosition_ABAIXO_DO_CODIGO_DE_BARRAS);\n TectoySunmiPrint.getInstance().printAdvanceLines(2);\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_RIGTH);\n TectoySunmiPrint.getInstance().printBarCode(\"7894900700046\", TectoySunmiPrint.BarCodeModels_EAN13, 162, 2,\n TectoySunmiPrint.BarCodeTextPosition_ACIMA_DO_CODIGO_DE_BARRAS_BARCODE);\n TectoySunmiPrint.getInstance().printAdvanceLines(2);\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printBarCode(\"7894900700046\", TectoySunmiPrint.BarCodeModels_EAN13, 162, 2,\n TectoySunmiPrint.BarCodeTextPosition_ACIMA_E_ABAIXO_DO_CODIGO_DE_BARRAS);\n //TectoySunmiPrint.getInstance().feedPaper();\n TectoySunmiPrint.getInstance().print3Line();\n // Impressão de BarCode\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printText(\"Imprime QrCode\\n\");\n TectoySunmiPrint.getInstance().printText(\"--------------------------------\\n\");\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_LEFT);\n TectoySunmiPrint.getInstance().printQr(\"www.tectoysunmi.com.br\", 8, 1);\n //TectoySunmiPrint.getInstance().feedPaper();\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printQr(\"www.tectoysunmi.com.br\", 8, 1);\n //TectoySunmiPrint.getInstance().feedPaper();\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_RIGTH);\n TectoySunmiPrint.getInstance().printQr(\"www.tectoysunmi.com.br\", 8, 1);\n //TectoySunmiPrint.getInstance().feedPaper();\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_LEFT);\n TectoySunmiPrint.getInstance().printDoubleQRCode(\"www.tectoysunmi.com.br\",\"tectoysunmi\", 7, 1);\n //TectoySunmiPrint.getInstance().feedPaper();\n\n\n // Impresão Imagem\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printText(\"Imprime Imagem\\n\");\n TectoySunmiPrint.getInstance().printText(\"-------------------------------\\n\");\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inTargetDensity = 160;\n options.inDensity = 160;\n Bitmap bitmap1 = null;\n Bitmap bitmap = null;\n if (bitmap == null) {\n bitmap = BitmapFactory.decodeResource(getResources(), test, options);\n }\n if (bitmap1 == null) {\n bitmap1 = BitmapFactory.decodeResource(getResources(), test1, options);\n bitmap1 = scaleImage(bitmap1);\n }\n TectoySunmiPrint.getInstance().printBitmap(bitmap1);\n //TectoySunmiPrint.getInstance().feedPaper();\n TectoySunmiPrint.getInstance().print3Line();\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_LEFT);\n TectoySunmiPrint.getInstance().printBitmap(bitmap1);\n //TectoySunmiPrint.getInstance().feedPaper();\n TectoySunmiPrint.getInstance().print3Line();\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_RIGTH);\n TectoySunmiPrint.getInstance().printBitmap(bitmap1);\n //TectoySunmiPrint.getInstance().feedPaper();\n TectoySunmiPrint.getInstance().print3Line();\n\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printText(\"Imprime Tabela\\n\");\n TectoySunmiPrint.getInstance().printText(\"--------------------------------\\n\");\n\n String[] prod = new String[3];\n int[] width = new int[3];\n int[] align = new int[3];\n\n width[0] = 100;\n width[1] = 50;\n width[2] = 50;\n\n align[0] = TectoySunmiPrint.Alignment_LEFT;\n align[1] = TectoySunmiPrint.Alignment_CENTER;\n align[2] = TectoySunmiPrint.Alignment_RIGTH;\n\n prod[0] = \"Produto 001\";\n prod[1] = \"10 und\";\n prod[2] = \"3,98\";\n TectoySunmiPrint.getInstance().printTable(prod, width, align);\n\n prod[0] = \"Produto 002\";\n prod[1] = \"10 und\";\n prod[2] = \"3,98\";\n TectoySunmiPrint.getInstance().printTable(prod, width, align);\n\n prod[0] = \"Produto 003\";\n prod[1] = \"10 und\";\n prod[2] = \"3,98\";\n TectoySunmiPrint.getInstance().printTable(prod, width, align);\n\n prod[0] = \"Produto 004\";\n prod[1] = \"10 und\";\n prod[2] = \"3,98\";\n TectoySunmiPrint.getInstance().printTable(prod, width, align);\n\n prod[0] = \"Produto 005\";\n prod[1] = \"10 und\";\n prod[2] = \"3,98\";\n TectoySunmiPrint.getInstance().printTable(prod, width, align);\n\n prod[0] = \"Produto 006\";\n prod[1] = \"10 und\";\n prod[2] = \"3,98\";\n TectoySunmiPrint.getInstance().printTable(prod, width, align);\n\n TectoySunmiPrint.getInstance().print3Line();\n TectoySunmiPrint.getInstance().openCashBox();\n TectoySunmiPrint.getInstance().cutpaper();\n\n }", "public void mainkan(){\n System.out.println();\n //System.out.printf(\"Waktu: %1.2f\\n\", this.oPlayer.getWaktu());\n System.out.println(\"Nama : \" + this.oPlayer.nama);\n System.out.println(\"Senjata : \" + this.oPlayer.getNamaSenjataDigunakan());\n System.out.println(\"Kesehatan : \" + this.oPlayer.getKesehatan());\n// System.out.println(\"Daftar Efek : \" + this.oPlayer.getDaftarEfekDiri());\n System.out.println(\"Nama Tempat : \" + this.namaTempat);\n System.out.println(\"Narasi : \" + this.narasi);\n }", "public void cambiarPrecio(Float porcent) {\r\n\t\tmodelo.cambiarPrecio(porcent);\r\n\t}", "public int MostrarUltimoValorIngresado() {\r\n return UltimoValorIngresado.informacion;\r\n }", "double getPerimetro();", "@Override\n public double perimetro() {\n return 4 * this.lado;\n }", "@Override\n public void display(String numeroPantalla) {\n debug (\"display\", \"numeroPantalla\", numeroPantalla);\n TextView display = (TextView) findViewById(R.id.numberRolled);\n display.setText(numeroPantalla);\n }", "@Override\r\n\tpublic float chekearDatos(){\r\n\t\t\r\n\t\tfloat monto = 0f;\r\n\t\tfloat montoPorMes = creditoSolicitado/plazoEnMeses;\r\n\t\tdouble porcentajeDeSusIngesosMensuales = (cliente.getIngresosMensuales()*0.7);\r\n\t\t\r\n\t\tif(cliente.getIngresoAnual()>=15000f && montoPorMes<=porcentajeDeSusIngesosMensuales){\r\n\t\t\t\r\n\t\t\tmonto = this.creditoSolicitado;\r\n\t\t\tsetEstadoDeSolicitud(true);\r\n\t\t}\t\r\n\t\t\r\n\t\t\r\n\t\treturn monto;\r\n\t}", "@Override\n public String toString(){\n return \" Vuelo \"+this.getTipo()+\" \" +this.getIdentificador() +\"\\t \"+ this.getDestino()+ \"\\t salida prevista en \" + timeToHour(this.getTiemposal())+\" y su combustible es de \"+this.getCombustible()+\" litros.( \"+ String.format(\"%.2f\", this.getCombustible()/this.getTankfuel()*100) + \"%).\"; \n }", "@Override\r\n public void ingresarCapacidad(){\r\n double capacidad = Math.pow(alto, 3);\r\n int capacidadInt = Double.valueOf(capacidad).intValue();\r\n super.capacidad = capacidadInt;\r\n super.cantidadRestante = capacidadInt;\r\n System.out.println(capacidadInt);\r\n }", "private void calcularResultado() {\r\n\tdouble dinero=0;\r\n\tdinero=Double.parseDouble(pantalla.getText());\r\n\tresultado=dinero/18.5;\r\n\t\tpantalla.setText(\"\" + resultado);\r\n\t\toperacion = \"\";\r\n\t}", "private String peso(long peso,int i)\n {\n DecimalFormat df=new DecimalFormat(\"#.##\");\n //aux para calcular el peso\n float aux=peso;\n //string para guardar el formato\n String auxPeso;\n //verificamos si el peso se puede seguir dividiendo\n if(aux/1024>1024)\n {\n //variable para decidir que tipo es \n i=i+1;\n //si aun se puede seguir dividiendo lo mandamos al mismo metodo\n auxPeso=peso(peso/1024,i);\n }\n else\n {\n //si no se puede dividir devolvemos el formato\n auxPeso=df.format(aux/1024)+\" \"+pesos[i];\n }\n return auxPeso;\n }", "public String toString(){\n\t\tString s = \"\";\n\t\ts += \"El deposito de la moneda \"+nombreMoneda+\" (\" +valor+ \" centimos) contiene \"+cantidad+\" monedas\\n\";\n\t\treturn s;\n\t}", "@Override\n public void affiche(){\n System.out.println(\"Loup : \\n points de vie : \"+this.ptVie+\"\\n pourcentage d'attaque : \"+this.pourcentageAtt+\n \"\\n dégâts d'attaque : \"+this.degAtt+\"\\n pourcentage de parade :\"+this.pourcentagePar+\n \"\\n position : \"+this.pos.toString());\n\n }", "public void mostrarTotales() { \n // Inicializacion de los atributos en 0\n totalPCs = 0;\n totalLaptops = 0;\n totalDesktops = 0; \n /* Recorrido de la lista de computadores para acumular el precio usar instanceof para comparar el tipo de computador */ \n for (Computador pc : computadores){\n if (pc instanceof PCLaptop) {\n totalLaptops += pc.calcularPrecio(); \n } else if (pc instanceof PCDesktop){\n totalDesktops += pc.calcularPrecio();\n }\n }\n totalPCs = totalLaptops + totalDesktops;\n System.out.println(\"El precio total de los computadores es de \" + totalPCs); \n System.out.println(\"La suma del precio de los Laptops es de \" + totalLaptops); \n System.out.println(\"La suma del precio de los Desktops es de \" + totalDesktops);\n }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Juros=\" + juros*100 + \"% a.m.\\n \" + \r\n\t\t\t\t\"CartaoCredito=\" + cartaoCredito + \"\\n \" +\r\n\t\t\t\tsuper.toString();\r\n\t}", "private static void print(Test29 ob) {\n\t\tSystem.out.printf(\"원의 넓이 : %f\",ob.area(3));\n\t\tSystem.out.printf(\"\\n사각형의 넓이 : %.2f\",ob.area(4,5));\n\t\tSystem.out.printf(\"\\n사다리꼴의 넓이 : %.2f\",ob.area(3,4,7));\n\t}", "private void funcaoTotalPedido() {\n\n ClassSale.paymentCoupon(codeCoupon);\n BigDecimal smallCash = PaymentCoupon.getSmallCash();\n\n jTextValueTotalCoupon.setText(v.format(PaymentCoupon.getTotalCoupon()));\n \n jTextSmallCash.setText(v.format(smallCash.setScale(2, BigDecimal.ROUND_HALF_UP)));\n //jTextValueTotalDiscontCoupon.setText(v.format(PagamentoPedido.getDesconto_pagamento()));\n\n if (smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue() < 0) {\n valor_devido = smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();\n jTextCash.setText(\"0,00\");\n jTextValueDiscontCoupon.setText(\"0,00\");\n jTextCash.requestFocus(true);\n } else {\n\n if (last_cod_tipo_pagamento != null && smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue() > 0) {\n\n if (JOptionPane.showConfirmDialog(this, \"Não é permitido troco para pagamento com cartão.\\nDeseja emitir um contra vale?\", \"Mensagem\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, icon) == 0) {\n\n JOptionPane.showMessageDialog(this, \"Emitindo contra vale...\");\n\n fechouVenda = true;\n //BeanConsulta.setVenda_fechada(fechouVenda);\n this.dispose();\n\n } else {\n\n funcaoLimpaPag();\n }\n } else {\n \n \n valor_devido = smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); \n jButtonFinalizaCalculoPagameto.setEnabled(true);\n jButtonFinalizaCalculoPagameto.requestFocus(true);\n\n }\n }\n\n }", "public void mostrarVideojuegosNumeradosPorOrdenDeRegistro()\n {\n int posicActual = 0;\n while (posicActual < listaDeVideojuegos.size()) {\n System.out.println((posicActual+1) + \". \" + listaDeVideojuegos.get(posicActual).getDatosVideojuego());\n posicActual++;\n }\n }", "private void setPresText(double pascals){\n String text;\n Formatter fmt = new Formatter();\n\n if (!((Double)pascals).isNaN()) {\n text = fmt.format(\"%4.2f mb\", pascals/100).out().toString();\n enableView(presText, true);\n }\n else {\n text = \"-- mb\";\n enableView(presText, false);\n }\n\n presText.setText(text);\n }", "public static void dormir(){\n System.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n System.out.flush();\n int restoDeMana; //variables locales a utilizar\n int restoDeVida;\n if(oro>=30){ //condicion de oro para recuperar vida y mana\n restoDeMana=10-puntosDeMana;\n puntosDeMana=puntosDeMana+restoDeMana;\n restoDeVida=150-puntosDeVida;\n puntosDeVida=puntosDeVida+restoDeVida;\n //descotando oro al jugador\n oro=oro-30;\n System.out.println(\"\\nrecuperacion satisfactoria\");\n }\n else{\n System.out.println(\"no cuentas con 'Oro' para recuperarte\");\n }\n }", "void verEnPantalla() {\r\n\t\tSystem.out.println( numEnPantalla );\r\n\t}", "public int readDisplay() {\n\t\treturn payStation.getTimeBoughtInMinutes();\n\t}", "public static void visualizarVueltaCompletado(float a){\n JOptionPane.showMessageDialog(null,\"Aqui tiene su vuelta \"+a+\" €\");\n }", "private int toScreenP(double x)\n\t\t{\n\t\tint h=getHeight();\n\t\treturn (int)(h*0.9 + x*scaleP*h);\n\t\t}", "@Override\n\tpublic float getPrecio() {\n\t\treturn 60.2f;\n\t}", "public void output() {\n System.out.printf(\"Dien tich: %.2f \\n\", getArea());\n System.out.printf(\"Chu vi: %.2f \\n\", getPeripheral());\n }", "public static void pocetniMeni() {\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"***********************************************\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 1 ako zelite vidjeti kalendar(za dati mjesec i godinu)\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 2 za pregled podsjetnika za dati mjesec i godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 3 da pregledate podsjetnik za datu godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 4 ako zelite da pogledate sve podsjetnike!\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 5 ako zelite da upisete neki podsjetnik!\\n\"\r\n\t\t\t\t\t\t+ \":::::::::::::::::::::::::::::::::::::::::::::::\");\r\n\t}", "private void actualizarVisor()\n {\n visor.setText(\"\" + calc.getValorEnVisor());\n }", "public void report_number_zone(){\n\n JLabel lbl_num = new JLabel(\"Num\\u00E9ro du Rapport :\");\n lbl_num.setBounds(40, 10, 129, 16);\n add(lbl_num);\n\n num_content = new JTextField();\n num_content.setHorizontalAlignment(SwingConstants.RIGHT);\n num_content.setEditable(false);\n num_content.setBounds(200, 7, 116, 22);\n num_content.setColumns(10);\n num_content.setText(rapport_visite.elementAt(DAO_Rapport.indice)[0]);\n add(num_content);\n\n\n\n\n }", "public void setDisplay (int iloscMin){\n display.setText(\"Miny = \" + new Integer(controller.iloscMin).toString());\n }", "public float calcularPerimetro(){\n return baseMayor+baseMenor+(medidaLado*2);\n }", "public void calculateAndDisplay() {\n fromUnitString = fromUnitEditText.getText().toString();\r\n if (fromUnitString.equals(\"\")) {\r\n fromValue = 0;\r\n }\r\n else {\r\n fromValue = Float.parseFloat(fromUnitString);\r\n }\r\n\r\n // calculate the \"to\" value\r\n toValue = fromValue * ratio;\r\n\r\n // display the results with formatting\r\n NumberFormat number = NumberFormat.getNumberInstance();\r\n number.setMaximumFractionDigits(2);\r\n number.setMinimumFractionDigits(2);\r\n toUnitTextView.setText(number.format(toValue));\r\n }", "public void calculoPersonal(){\n ayudantes = getAyudantesNecesarios();\n responsables = getResponsablesNecesarios();\n \n //Calculo atencion al cliente (30% total trabajadores) y RRPP (10% total trabajadores):\n \n int total = ayudantes + responsables;\n \n atencion_al_cliente = (total * 30) / 100;\n \n RRPP = (total * 10) / 100;\n \n //Creamos los trabajadores\n \n gestor_trabajadores.crearTrabajadores(RRPP, ayudantes,responsables,atencion_al_cliente);\n \n }", "@Override\r\n public void hallarPerimetro() {\r\n this.perimetro = this.ladoA*3;\r\n }", "public int getLargeur() {\n return getWidth();\n }", "public static void main(String[] args){\n float w = 11.56E2f;\n int hh = (int)w;\n System.out.println(hh);\n \n System.out.println((int)11.56);\n int cents = (int)(11.56 * 100);\n System.out.println(cents);\n System.out.println(4/7.0);\n System.out.println(Math.random());\n \n System.out.println(Toolkit.getDefaultToolkit().getScreenSize());\n int width=1366,height=768;\n Toolkit.getDefaultToolkit().getScreenSize();\n System.out.println(\"Loop to print first 10 numbers\");\n \n int [] number = {1,2,3,4,5,6,7,8,9,10};\n int total = 0;\n for(int n:number){\n total = total + n;\n }\n System.out.println(total);\n\n System.out.println(\"Loop to print first 10 numbers without arrays\");\n int counter = 0;\n for(int i = 0; i<=10; i++){\n counter = counter + i;\n }\n System.out.println(counter);\n }", "private void setTxtTimeTotal()\n {\n SimpleDateFormat dinhDangGio= new SimpleDateFormat(\"mm:ss\");\n txtTimeTotal.setText(dinhDangGio.format(mediaPlayer.getDuration()));\n //\n skSong.setMax(mediaPlayer.getDuration());\n }", "public void hallarPerimetroEscaleno() {\r\n this.perimetro = this.ladoA+this.ladoB+this.ladoC;\r\n }", "public void correr(int km){\r\n\t\tdouble pesoPerdido = 0.05*km;\r\n\t\tthis.peso = this.peso - pesoPerdido;\r\n\t\tSystem.out.println(\"He corrido \" + km + \" y he perdido \" + pesoPerdido + \" kg-s\");\r\n\t}", "private void displayQuantity(int numOfCoffeee) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + numOfCoffeee);\n }", "public void mostrarPorcentajeRangos(int porcentaje) {\n \t//Las parejas a colorear seran todas las cartas\n \tint numParejas = ((NUMCARTAS*NUMCARTAS) * porcentaje)/100;\n \tArrayList <String> parejasOrdenadas = new ArrayList<String>();\n \tfor (int i = 0; i < numParejas; i++)\n \t\tparejasOrdenadas.add(slanskyTable.devuelveCarta(i));\n \n \tfor (int i = 0; i < NUMCARTAS; i++) \n \t\tfor (int j = 0; j < NUMCARTAS; j++) {\n \t\t\tif(tablero[i][j].isSelected()) toggle(i,j);\n \t\t\tif (parejasOrdenadas.contains(tablero[i][j].getText())) {\n \t\t\t\ttoggle(i,j);\n \t\t\t\ttablero[i][j].setBackground(colorPorcentajes);\n \t\t\t}\n \t\t}\t\n }", "public int getProteksi(){\n\t\treturn (getTotal() - getPromo()) * protectionCost / 100;\n\t}", "@Override\r\n\tpublic Double precio() {\n\t\treturn this.combo.precio() + 50;\r\n\t}", "@Override\n\tpublic void mostrarDeposito() {\n\t\tSystem.out.println(\"Depósito: \"+depositoActual+\"litros\");\n\t}", "@Override\r\n\tpublic double recargoImpuesto() {\n\t\treturn 0.03;\r\n\t}", "public static void poder(){\n System.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n System.out.flush();\n if(experiencia>=100){ //condicion de aumento de nivel\n nivel=nivel+1;\n System.out.println(\"Aumento de nivel exitoso\");\n }\n else{\n System.out.println(\"carece de experiencia para subir su nivel\");\n }\n }", "public void formatPrint() {\n\t\tSystem.out.printf(\"%8d \", codigo);\n\t\tSystem.out.printf(\"%5.5s \", clase);\n\t\tSystem.out.printf(\"%5.5s \", par);\n\t\tSystem.out.printf(\"%5.5s \", nombre);\n\t\tSystem.out.printf(\"%8d \", comienza);\n\t\tSystem.out.printf(\"%8d\", termina);\n\t}", "public void showPosicoes() {\n this.print(\"\\n\");\n for (int i = 0; i < listaJogadores.size(); i++) {\n // System.out.print(posicoes[i] + \"\\t\");\n }\n }", "public String toPrint() {\n if (respuesta) {\n return \"La respuesta es: \" + String.valueOf(monto) + \"\\n\";\n }\n else {\n return \"La solicitud es: \" + String.valueOf(valor) + \",\" + String.valueOf(porcentaje) + \",\" + String.valueOf(peso) + \"\\n\";\n }\n }", "public void jumlahgajianggota(){\n \n jmlha = Integer.valueOf(txtha.getText());\n jmlharga = Integer.valueOf(txtharga.getText());\n jmlanggota = Integer.valueOf(txtanggota.getText());\n \n if (jmlanggota == 0){\n txtgajianggota.setText(\"0\");\n }else{\n jmltotal = jmlharga * jmlha;\n hasil = jmltotal / jmlanggota;\n txtgajianggota.setText(Integer.toString(hasil)); \n }\n\n \n }", "@Override\n\tpublic void acelerar() {\n\t\t// TODO Auto-generated method stub\n\t\t\t\tvelocidadActual += 40;\n\t\t\t\tif(velocidadActual>250) {\n\t\t\t\t\tvelocidadActual = 250;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdepositoActual -= 10;\n\t\t\t\tSystem.out.println(\"Velocidad del ferrari: \"+velocidadActual);\n\t}", "public void sueldo(){\n if(horas <= 40){\n sueldo = horas * cuota;\n }else {\n if (horas <= 50) {\n sueldo = (40 * cuota) + ((horas - 40) * (cuota * 2));\n } else {\n sueldo = ((40 * cuota) + (10 * cuota * 2)) + ((horas - 50) + (cuota * 3));\n }\n }\n\n }", "@Override\n public String toString() {\n return \"Ultima Manutencao em: \"+this.ultimaManun+\" km's.\";\n }", "public void calculateScore(){\n\n score.setText(Integer.toString(80));\n\n\n }", "private void giveScords(){\n \t//bingo 題數, seconds花費秒數\n \tint totalSec = (int)seconds;\n \t\n \tif(correct){\n \t\tif(totalSec<=5){\n \t\t\tuserPoints = userPoints + 150;\n \t\t}else if(totalSec<=10){\n \t\t\tuserPoints = userPoints + 125;\n \t\t}else if(totalSec<=15){\n \t\t\tuserPoints = userPoints + 100;\n \t\t}else if(totalSec<=20){\n \t\t\tuserPoints = userPoints + 80;\n \t\t}\n \t}\n }", "private void displaySatistics()\r\n {\r\n DecimalFormat df = new DecimalFormat(\"#.##\");\r\n df.setRoundingMode(RoundingMode.FLOOR);\r\n double goodVal = ((double)this.good / (double)this.attemps) * 100;\r\n double reachVal = ((double)this.reachable / (double)this.attemps) * 100;\r\n double unreachVal = ((double)this.unreachable / (double)this.attemps) * 100;\r\n \r\n this.goodLabel.setText(df.format(goodVal)+ \" %\");\r\n this.reachableLabel.setText(df.format(reachVal) + \" %\");\r\n this.unreachableLabel.setText(df.format(unreachVal) + \" %\");\r\n \r\n }", "private void displayCount() {\n\t\tlabel.setText(String.format(\"%2d\", game.getCount()));\n\t}", "public void setPorcentaje(java.lang.Double porcentaje) {\n this.porcentaje = porcentaje;\n }", "public double precioFinal() {\r\n double aumento = 0;\r\n switch (consumoEnergetico) {\r\n case 'A':\r\n aumento = 100;\r\n break;\r\n case 'B':\r\n aumento = 80;\r\n break;\r\n case 'C':\r\n aumento = 60;\r\n break;\r\n case 'D':\r\n aumento = 50;\r\n break;\r\n case 'E':\r\n aumento = 30;\r\n break;\r\n case 'F':\r\n aumento = 10; \r\n break;\r\n }\r\n if (peso >= 0 && peso <= 19) {\r\n aumento += 10;\r\n }else if ( peso >= 20 && peso <= 49) {\r\n aumento += 50;\r\n }else if ( peso >= 50 && peso <=79 ) {\r\n aumento += 80;\r\n }else if ( peso >= 80 ){\r\n aumento += 100;\r\n }\r\n \r\n double precioFinal = aumento + this.precioBase;\r\n return precioFinal;\r\n }", "public static void sueldoTotal(int hora, int sueldo){\n int resultado = 0;\r\n if(hora<=40){\r\n resultado = hora*sueldo;\r\n }\r\n if(hora>40 || hora<48){\r\n resultado = (40*sueldo)+(hora-40)*(sueldo*2);\r\n }\r\n if (hora>=48){\r\n resultado =(40*sueldo)+8*(sueldo*2)+(hora-48)*(sueldo*3);\r\n }\r\n System.out.println(\"El sueldo es de \"+ resultado);//Se muestra el sueldo total\r\n \r\n \r\n \r\n }", "public double calcularPortes() {\n\t\tif (this.pulgadas <= 40) {\n\t\t\tif (this.getPrecioBase() > 500)\n\t\t\t\treturn 0;\n\t\t\telse\n\t\t\t\treturn 35;\n\t\t} else\n\t\t\treturn 35 + (this.pulgadas - 40);\n\t}", "public double getPorcentajeAdyacencia() {\n\t\treturn porcentAdy;\n\t}", "@Override\n public double salario() {\n return 2600 * 1.10;\n }", "public logicaEnemigos(){\n\t\t//le damos una velocidad inicial al enemigo\n\t\tsuVelocidad = 50;\n\t\tsuDireccionActual = 0.0;\n\t\tposX = 500 ;\n\t\tposY = 10;\n\t}", "@Override // prekrytie danej metody predka\r\n public String toString() {\r\n return super.toString()\r\n + \" vaha: \" + String.format(\"%.1f kg,\", dajVahu())\r\n + \" farba: \" + dajFarbu() + \".\";\r\n }", "public float perimetro() {\n return (lado * 2 + base);\r\n }", "public void jugar_con_el() {\n System.out.println(nombre + \" esta jugando contigo :D\");\n }", "private void iniciarTela() {\n\t\tsetValorPagar(getValorTotal());\n\t\tgetjPanelVendasProsseguir().getjTFieldValorTotCompra().setText(String.format(\" R$ %.2f\", getValorTotal()));\n\t\tgetjPanelVendasProsseguir().getjTFieldValorPagar().setText(String.format(\" R$ %.2f\", getValorPagar()));\n\t\tgetjPanelVendasProsseguir().getjTFieldDesconto().requestFocus();\n\t}", "public void calcular(View view) {\n int quilos = Integer.valueOf(editTextQuantidade.getText().toString());\n int total = (quilos *1000)/500;\n \n String message = \"Com \" + quilos + \"kg de chocolate da para fazer \" + total + \" ovos de 500g.\";\n textViewTotal.setText(message);\n }", "void putdata()\n {\n System.out.printf(\"\\nCD Title \\\"%s\\\", is of %d minutes length and of %d rupees.\",title,length,price);\n }", "public float getPrecio() {\r\n return precio;\r\n }", "public int usaAtaque() {\n\t\treturn dano;\n\t}", "public void mostraDados() {\n System.out.println(\"O canal atual é: \" + tv.getCanal());\n System.out.println(\"O volume atual é: \" + tv.getVolume());\n System.out.println(\"--------------------------------------\");\n }" ]
[ "0.6413971", "0.6238947", "0.6222149", "0.6200611", "0.61922115", "0.6117707", "0.60889834", "0.6002488", "0.5977447", "0.5956696", "0.5926875", "0.59170043", "0.5902582", "0.5898862", "0.58930403", "0.58924305", "0.58692473", "0.5827909", "0.58262026", "0.58229667", "0.5789645", "0.57866853", "0.5785944", "0.57683986", "0.5761331", "0.5749761", "0.5742238", "0.5741484", "0.57154346", "0.5707085", "0.57007784", "0.5696129", "0.5694469", "0.5685416", "0.56845355", "0.56825876", "0.5676882", "0.5676274", "0.56751597", "0.56720024", "0.5666963", "0.5659801", "0.56577885", "0.56533605", "0.565088", "0.5649543", "0.5644532", "0.56256306", "0.56208843", "0.56131333", "0.5611559", "0.56074566", "0.56012684", "0.55622435", "0.5557054", "0.5554434", "0.55499226", "0.55439055", "0.55412936", "0.5541042", "0.5540612", "0.553651", "0.55355275", "0.55297023", "0.55269533", "0.5525979", "0.55247813", "0.55202", "0.5508955", "0.5508885", "0.55078727", "0.5506206", "0.55029917", "0.5495731", "0.5491222", "0.5471288", "0.5470658", "0.5466726", "0.5466697", "0.5460093", "0.5455302", "0.54519075", "0.5449808", "0.5448937", "0.54445", "0.5441571", "0.544155", "0.5432374", "0.5417476", "0.54174656", "0.5416601", "0.54117316", "0.54099935", "0.54075193", "0.5404631", "0.5399074", "0.53946096", "0.5392858", "0.5392001", "0.53833723", "0.53807724" ]
0.0
-1
TODO: Rename method, update argument and hook method into UI event
public void onButtonPressed(Uri uri) { if (mListener != null) { mListener.onFragmentInteraction(uri); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t}", "public abstract void update(UIReader event);", "@Override\r\n\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t}", "@Override\n\tpublic void handle(ActionEvent event) {\n\t\t\n\t}", "@Override\n\tpublic void handle(ActionEvent event) {\n\n\t}", "@Override\n\tpublic void handleUpdateUI(String text, int code) {\n\t\t\n\t}", "@Override\n\tpublic void update(Event e) {\n\t}", "public abstract void onInvoked(CommandSender sender, String[] args);", "@Override\r\n public void updateUI() {\r\n }", "@Override\r\n\tpublic void handle(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tpublic void processEvent(Event e) {\n\n\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\tpublic void processCommand(JMVCommandEvent arg0) {\n\t}", "@Override\n\tpublic void inputChanged( Viewer arg0, Object arg1, Object arg2 ) {\n\t}", "@Override\n\tpublic void handleEvent(Event arg0) {\n\t\t\n\t}", "@Override\r\n\tpublic void onCustomUpdate() {\n\t\t\r\n\t}", "public void updateUI(){}", "private synchronized void updateScreen(String arg){\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n setChanged();\n notifyObservers(arg);\n }\n });\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override\r\n public void actionPerformed( ActionEvent e )\r\n {\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\r\n\tpublic void updateObjectListener(ActionEvent e) {\n\t\t\r\n\t}", "void onArgumentsChanged();", "Event () {\n // Nothing to do here.\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "void eventChanged();", "@Override public void handle(ActionEvent e)\n\t {\n\t }", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override //se repita\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "public abstract CommandResponse onCommand(CommandSender sender, String label, String[] args);", "@Override\n public void actionPerformed(ActionEvent actionEvent) {\n }", "@Override\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t}", "@Override\r\n public void actionPerformed(ActionEvent e) {\n \r\n }", "public abstract void onCommand(MessageEvent context) throws Exception;", "@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}", "private void addParameterEventHandler(){\n\t\t\n\t\tgetParameterNameListBox().addDoubleClickHandler(new DoubleClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onDoubleClick(DoubleClickEvent event) {\n\t\t\t\tparameterAceEditor.clearAnnotations();\n\t\t\t\tparameterAceEditor.removeAllMarkers();\n\t\t\t\tparameterAceEditor.redisplay();\n\t\t\t\tSystem.out.println(\"In addParameterEventHandler on DoubleClick isPageDirty = \" + getIsPageDirty() + \" selectedIndex = \" + getParameterNameListBox().getSelectedIndex());\n\t\t\t\tsetIsDoubleClick(true);\n\t\t\t\tsetIsNavBarClick(false);\n\t\t\t\tif (getIsPageDirty()) {\n\t\t\t\t\tshowUnsavedChangesWarning();\n\t\t\t\t} else {\n\t\t\t\t\tint selectedIndex = getParameterNameListBox().getSelectedIndex();\n\t\t\t\t\tif (selectedIndex != -1) {\n\t\t\t\t\t\tfinal String selectedParamID = getParameterNameListBox().getValue(selectedIndex);\n\t\t\t\t\t\tcurrentSelectedParamerterObjId = selectedParamID;\n\t\t\t\t\t\tif(getParameterMap().get(selectedParamID) != null){\n\t\t\t\t\t\t\tgetParameterNameTxtArea().setText(getParameterMap().get(selectedParamID).getParameterName());\n\t\t\t\t\t\t\tgetParameterAceEditor().setText(getParameterMap().get(selectedParamID).getParameterLogic());\n\t\t\t\t\t\t\tSystem.out.println(\"In Parameter DoubleClickHandler, doing setText()\");\n\t\t\t\t\t\t\t//disable parameterName and Logic fields for Default Parameter\n\t\t\t\t\t\t\tboolean isReadOnly = getParameterMap().get(selectedParamID).isReadOnly();\n\t\t\t\t\t\t\tgetParameterButtonBar().getDeleteButton().setTitle(\"Delete\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(MatContext.get().getMeasureLockService()\n\t\t\t\t\t\t\t\t\t.checkForEditPermission()){\n\t\t\t\t\t\t\t\tsetParameterWidgetReadOnly(!isReadOnly);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// load most recent used cql artifacts\n\t\t\t\t\t\t\tMatContext.get().getMeasureService().getUsedCQLArtifacts(MatContext.get().getCurrentMeasureId(), new AsyncCallback<GetUsedCQLArtifactsResult>() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\t\t\t\tWindow.alert(MatContext.get().getMessageDelegate().getGenericErrorMessage());\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onSuccess(GetUsedCQLArtifactsResult result) {\n\t\t\t\t\t\t\t\t\tif(result.getUsedCQLParameters().contains(getParameterMap().get(selectedParamID).getParameterName())) {\n\t\t\t\t\t\t\t\t\t\tgetParameterButtonBar().getDeleteButton().setEnabled(false);\n\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t\tsuccessMessageAlert.clearAlert();\n\t\t\t\t\terrorMessageAlert.clearAlert();\n\t\t\t\t\twarningMessageAlert.clearAlert();\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n public void handle(Event event) {\n }", "@Override\n public void actionPerformed(AnActionEvent e) {\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\r\n\tpublic void handleEvent(Event event) {\n\r\n\t}", "public void ImageView(ActionEvent event) {\n\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n public void delta() {\n \n }", "@Override\n\tpublic void onClick(ClickEvent arg0) {\n\t\t\n\t}", "public void runInUi(ElexisEvent ev){}", "@Override\n public void actionPerformed(ActionEvent e) {\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n }", "@Override\n\tprotected void OnClick() {\n\t\t\n\t}", "@Override\n public void actionPerformed(ActionEvent ev) {\n }", "@Override\n public void actionPerformed(ActionEvent e)\n {\n \n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n\n }", "@Override\n public void update(Observable o, Object arg)\n {\n \n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tupdate();\n\t\t\t}", "@Override\n\tpublic void onCommand(CommandSender sender, String[] args) {\n\t\t\n\t}" ]
[ "0.66181237", "0.6523692", "0.6472287", "0.6472287", "0.64342374", "0.63220537", "0.623621", "0.6188402", "0.6157599", "0.61416775", "0.61220664", "0.61074245", "0.6096379", "0.6092019", "0.6045935", "0.6045935", "0.6043641", "0.6039026", "0.6039026", "0.6007256", "0.5999497", "0.5984256", "0.59766734", "0.59540635", "0.59365225", "0.592607", "0.592607", "0.5921747", "0.5915926", "0.5914503", "0.5914503", "0.5914503", "0.5914503", "0.5914503", "0.5908604", "0.5895626", "0.5894244", "0.5893148", "0.588722", "0.588722", "0.588722", "0.5867559", "0.5867559", "0.5867559", "0.5862392", "0.5862392", "0.5862363", "0.58605236", "0.58561546", "0.58469635", "0.58469635", "0.58469635", "0.58469635", "0.5837576", "0.58371013", "0.58205307", "0.58072406", "0.5803012", "0.57728016", "0.5771874", "0.577073", "0.57656515", "0.5764946", "0.5754716", "0.5754716", "0.5753399", "0.57452464", "0.5744186", "0.5744186", "0.5744186", "0.5741162", "0.57389647", "0.57382417", "0.57339144", "0.57339144", "0.57339144", "0.57339144", "0.57339144", "0.57339144", "0.57339144", "0.57320434", "0.57320434", "0.57320434", "0.57243276", "0.5721519", "0.5720175", "0.5720084", "0.5720084", "0.5719701", "0.57179326", "0.57135665", "0.5711438", "0.5711438", "0.5711438", "0.5711438", "0.5711438", "0.5711438", "0.5707858", "0.5707185", "0.5703864", "0.5701054" ]
0.0
-1
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
public interface OnFragmentInteractionListener { // TODO: Update argument type and name void onFragmentInteraction(Uri uri); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}", "public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}", "public interface IFragmentView {\n public Activity getActivity();\n public void onItemClick(int position);\n}", "public interface OnFragmentInteractionListener {\n void onMainFragmentInteraction(String string);\n }", "@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n if (context instanceof RequestFragmentInterface) {\n mInterface = (RequestFragmentInterface) context;\n } else {\n throw new RuntimeException(context.toString()\n + \" must implement OnFragmentInteractionListener\");\n }\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onCallBellPressed(MessageReason reason);\n }", "void onFragmentInteraction();", "void onFragmentInteraction();", "void onFragmentInteraction();", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n\n\n void onFragmentInteraction(String mId, String mProductName, String mItemRate, int minteger, int update);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onComidaSelected(int comidaId);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Qualification q);\n }", "public interface OnFragmentInteractionListener {\n void onReceiverAcceptRequest(int nextState, String requestId);\n }", "public interface FragMainLife\n{\n\tpublic void onResumeFragMainLife();\n}", "public interface OnFragmentListener {\n\n void onAction(Intent intent);\n}", "public interface IBaseFragmentActivity {\n void onFragmentExit(BaseFragment fragment);\n\n void onFragmentStartLoading(BaseFragment fragment);\n\n void onFragmentFinishLoad(BaseFragment fragment);\n}", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(String string);\n }", "void onFragmentInteraction(Object ref);", "public interface OnParametersFragmentInteractionListener {\n public void startTask();\n }", "public interface OnFragmentInteractionListener {\n // Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Parcelable selectedItem);\n }", "public interface FragmentInterface {\r\n void fragmentBecameVisible();\r\n}", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(String key);\n }", "public interface OnFragmentInteractionListener {\n void newList();\n\n void searchList();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void pasarALista();\n }", "public interface MainGameActivityCallBacks {\n public void onMsgFromFragmentToMainGame(String sender, String strValue);\n}", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n\n /**\n * This interface's single method. The hosting Activity must implement this interface and\n * provide an implementation of this method so that this Fragment can communicate with the\n * Activity.\n *\n * @param spotId\n */\n// void onFragmentInteraction(Uri uri);\n void onFragmentInteraction(int spotId);\n// void onFragmentInteraction(LatLng spotPosition);\n\n }", "public interface IFragment {\n void onFragmentRefresh();\n\n void onMenuClick();\n}", "public interface FragmentInterface {\n\n void onCreate();\n\n void initLayout();\n\n void updateLayout();\n\n void sendInitialRequest();\n}", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(String accessToken, String network);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(View v);\n }", "public interface OnFragmentInteractionListener {\n void swapFragments(SetupActivity.SetupActivityFragmentType type);\n\n void addServer(String name, String ipAddress, String port);\n }", "public interface OnFragmentInteractionListener {\n\t\tvoid restUp(IGameState gameState);\n\t\tvoid restartGame();\n\t}", "public interface OnFragmentInteractionListener\n {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface PersonalFragmentView extends BaseMvpView {\n\n}", "public interface OnFragmentInteractionListener {\n void onFinishCreatingRequest();\n }", "void onFragmentInteraction(View v);", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(ArrayList<Recepie> recepieList);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(String id);\n }", "void onFragmentInteractionMain();", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void showRestaurantDetail(Map<String, Object> objectMap);\n\n public void showAddRestaurantFragment(String location);\n }", "public interface FragmentNavigator {\n\n void SwitchFragment(Fragment fragment);\n}", "public interface FragmentModellnt {\n void FragmentM(OnFinishListener onFinishListener,String dataId);\n}", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n //void onFragmentInteraction(Uri uri);\n }", "void onFragmentInteraction(String id);", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(ArrayList naleznosci, String KLUCZ);\n }", "public interface OnFragmentInteractionListener {\n void onStartFragmentStarted();\n\n void onStartFragmentStartTracking();\n\n void onStartFragmentStopTracking();\n }", "public interface OnFragmentInteractionListener {\r\n // TODO: Update argument type and name\r\n void onEditFragmentInteraction(Student student);\r\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n Long onFragmentInteraction();\n }", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Uri uri);\n void onFragmentInteraction(String id);\n}", "public interface IBaseFragment extends IBaseView {\n /**\n * 出栈到目标fragment\n * @param targetFragmentClass 目标fragment\n * @param includeTargetFragment 是否包涵目标fragment\n * true 目标fragment也出栈\n * false 出栈到目标fragment,目标fragment不出栈\n */\n void popToFragment(Class<?> targetFragmentClass, boolean includeTargetFragment);\n\n /**\n * 跳转到新的fragment\n * @param supportFragment 新的fragment继承SupportFragment\n */\n void startNewFragment(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并出栈当前fragment\n * @param supportFragment\n */\n void startNewFragmentWithPop(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并返回结果\n * @param supportFragment\n * @param requestCode\n */\n void startNewFragmentForResult(@NonNull SupportFragment supportFragment,int requestCode);\n\n /**\n * 设置fragment返回的result\n * @param requestCode\n * @param bundle\n */\n void setOnFragmentResult(int requestCode, Bundle bundle);\n\n /**\n * 跳转到新的Activity\n * @param clz\n */\n void startNewActivity(@NonNull Class<?> clz);\n\n /**\n * 携带数据跳转到新的Activity\n * @param clz\n * @param bundle\n */\n void startNewActivity(@NonNull Class<?> clz,Bundle bundle);\n\n /**\n * 携带数据跳转到新的Activity并返回结果\n * @param clz\n * @param bundle\n * @param requestCode\n */\n void startNewActivityForResult(@NonNull Class<?> clz,Bundle bundle,int requestCode);\n\n /**\n * 当前Fragment是否可见\n * @return true 可见,false 不可见\n */\n boolean isVisiable();\n\n /**\n * 获取当前fragment绑定的activity\n * @return\n */\n Activity getBindActivity();\n\n}", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onSocialLoginInteraction();\n }", "public interface OnFragmentInteractionListener {\n /**\n * On fragment interaction.\n *\n * @param uri the uri\n */\n// TODO: Update argument type and name\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentListener {\n void onClick(Fragment fragment);\n}", "public interface LoginFragmentListener {\n public void OnRegisterClicked();\n public void OnLoginClicked(String User, String Pass);\n}", "public interface OnFragmentInteractionListener {\n void playGame(Uri location);\n }", "public interface MoveFragment {\n\n\n public void moveFragment(Fragment selectedFragment);\n\n}", "public interface ChangeFragmentListener {\n void changeFragment();\n}", "public interface FragmentInterface {\n public void fragmentResult(Fragment fragment, String title);\n}", "public interface OnProductItemFragmentInteraction{\r\n public void itemSelected(Producto product);\r\n }", "@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n //this registers this fragment to recieve any EventBus\n EventBus.getDefault().register(this);\n }", "public interface AddFarmFragmentView extends BaseView {\n\n\n}", "void onFragmentInteraction(int position);", "void OpenFragmentInteraction();", "public interface OnFragmentInteractionListener {\n\t\t// TODO: Update argument type and name\n\t\tpublic void onFragmentInteraction(Uri uri);\n\t}", "public interface FragmentDataObserver {\n void getDataFromActivity(String data);\n\n}", "public interface OnFragInteractionListener {\n\n // replace top fragment with this fragment\n interface OnMainFragInteractionListener {\n void onWifiFragReplace();\n void onHistoryFragReplace();\n void onHistoryWithOsmMapFragReplace();\n void onMainFragReplace();\n }\n\n // interface for WifiPresenterFragment\n interface OnWifiScanFragInteractionListener {\n void onGetDataAfterScanWifi(ArrayList<WifiLocationModel> list);\n void onAllowToSaveWifiHotspotToDb(String ssid, String pass, String encryption, String bssid);\n }\n\n // interface for HistoryPresenterFragment\n interface OnHistoryFragInteractionListener {\n // get wifi info\n void onGetWifiHistoryCursor(Cursor cursor);\n // get mobile network generation\n void onGetMobileHistoryCursor(Cursor cursor);\n // get wifi state and date\n void onGetWifiStateAndDateCursor(Cursor cursor);\n }\n\n interface OnMapFragInteractionListerer {\n void onGetWifiLocationCursor(Cursor cursor);\n }\n}", "public interface PesonageFragmentView extends MvpView {\n\n}", "public interface OnUsersFragmentInteractionListener {\n void onListFragmentInteraction(User item);\n }", "public interface MainScreeInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteractionMain();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onClickNextTurn();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction();\n\n void changeBottomNavSelection(int menuItem);\n }", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Uri uri);\n}", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentInteractionListener {\n void onSignoutClicked();\n\n void onExtraScopeRequested();\n }", "interface OnMainFragInteractionListener {\n void onWifiFragReplace();\n void onHistoryFragReplace();\n void onHistoryWithOsmMapFragReplace();\n void onMainFragReplace();\n }", "public interface OnListFragmentInteractionListener {\n void onListFragmentInteraction(Note note);\n}" ]
[ "0.7325234", "0.72088116", "0.7135504", "0.7124427", "0.7122146", "0.7014861", "0.6976295", "0.6976295", "0.6976295", "0.69739693", "0.6967686", "0.6965429", "0.6960378", "0.6953495", "0.6944161", "0.6934473", "0.69304806", "0.692841", "0.69227284", "0.6910248", "0.69029653", "0.68967634", "0.68939304", "0.68826556", "0.68813246", "0.68752366", "0.68637174", "0.68612", "0.6861044", "0.68589544", "0.6856267", "0.68442994", "0.6839365", "0.68305", "0.6817591", "0.6816465", "0.6810575", "0.67868036", "0.6769277", "0.67690593", "0.67690593", "0.67690593", "0.67690593", "0.67690593", "0.67690593", "0.67690593", "0.67690593", "0.67690593", "0.6765929", "0.6761123", "0.67556894", "0.6753357", "0.66996276", "0.66818047", "0.6673535", "0.6670592", "0.6669066", "0.6661467", "0.66607255", "0.6654984", "0.6652564", "0.66449505", "0.664357", "0.664357", "0.664357", "0.664357", "0.664357", "0.664357", "0.664357", "0.664357", "0.664357", "0.664357", "0.664357", "0.6638428", "0.6636158", "0.6631892", "0.6625781", "0.66252494", "0.6618384", "0.6610401", "0.6609388", "0.6609088", "0.6606278", "0.65976244", "0.65974677", "0.6587284", "0.6572267", "0.657011", "0.6561316", "0.6560489", "0.6554971", "0.6549199", "0.6548424", "0.65429777", "0.65394855", "0.65342176", "0.65342176", "0.65342176", "0.6519624", "0.6517836", "0.6517338" ]
0.0
-1
TODO: Update argument type and name
void onFragmentInteraction(Uri uri);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String getFirstArg() {\n return name;\r\n }", "@Override\n public int getNumberArguments() {\n return 1;\n }", "java.lang.String getArg();", "@Override\n public int getArgLength() {\n return 4;\n }", "Argument createArgument();", "@Override\r\n\tpublic String getFirstArg() {\n\t\treturn null;\r\n\t}", "@Override\n protected PacketArgs.ArgumentType[] getArgumentTypes() {\n return new PacketArgs.ArgumentType[] { PacketArgs.ArgumentType.String };\n }", "@Override\n\tpublic void traverseArg(UniArg node) {\n\t}", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FArgument src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "Object[] getArguments();", "Object[] getArguments();", "String getArguments();", "@Override\n\tpublic void handleArgument(ArrayList<String> argument) {\n\t\t\n\t}", "@Override\n public final int parseArguments(Parameters params) {\n return 1;\n }", "ArgList createArgList();", "public Object[] getArguments() { return args;}", "@Override\n public String getInputArg(String argName) {\n Log.w(TAG, \"Test input args is not supported.\");\n return null;\n }", "@Override\n protected String getName() {return _parms.name;}", "private static AbstractType<?>[] argumentsType(@Nullable StringType algorithmArgumentType)\n {\n return algorithmArgumentType == null\n ? DEFAULT_ARGUMENTS\n : new AbstractType<?>[]{ algorithmArgumentType };\n }", "uicargs createuicargs();", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();", "public static void main(String[] args) {\n\t\t\tmeth(args);\r\n\t\t\targument_test:meth(args);\r\n\t}", "@Override\r\n\tpublic int getSecondArg() {\n\t\treturn 0;\r\n\t}", "public getType_args(getType_args other) {\n }", "Object[] args();", "protected void validateArguments( Object[] args ) throws ActionExecutionException {\n\n Annotation[][] annotations = method.getParameterAnnotations();\n for (int i = 0; i < annotations.length; i++) {\n\n Annotation[] paramAnnotations = annotations[i];\n\n for (Annotation paramAnnotation : paramAnnotations) {\n if (paramAnnotation instanceof Parameter) {\n Parameter paramDescriptionAnnotation = (Parameter) paramAnnotation;\n ValidationType validationType = paramDescriptionAnnotation.validation();\n\n String[] validationArgs;\n\n // if we are checking for valid constants, then the\n // args array should contain\n // the name of the array holding the valid constants\n if (validationType == ValidationType.STRING_CONSTANT\n || validationType == ValidationType.NUMBER_CONSTANT) {\n try {\n String arrayName = paramDescriptionAnnotation.args()[0];\n\n // get the field and set access level if\n // necessary\n Field arrayField = method.getDeclaringClass().getDeclaredField(arrayName);\n if (!arrayField.isAccessible()) {\n arrayField.setAccessible(true);\n }\n Object arrayValidConstants = arrayField.get(null);\n\n // convert the object array to string array\n String[] arrayValidConstatnsStr = new String[Array.getLength(arrayValidConstants)];\n for (int j = 0; j < Array.getLength(arrayValidConstants); j++) {\n arrayValidConstatnsStr[j] = Array.get(arrayValidConstants, j).toString();\n }\n\n validationArgs = arrayValidConstatnsStr;\n\n } catch (IndexOutOfBoundsException iobe) {\n // this is a fatal error\n throw new ActionExecutionException(\"You need to specify the name of the array with valid constants in the 'args' field of the Parameter annotation\");\n } catch (Exception e) {\n // this is a fatal error\n throw new ActionExecutionException(\"Could not get array with valid constants - action annotations are incorrect\");\n }\n } else {\n validationArgs = paramDescriptionAnnotation.args();\n }\n\n List<BaseType> typeValidators = createBaseTypes(paramDescriptionAnnotation.validation(),\n paramDescriptionAnnotation.name(),\n args[i], validationArgs);\n //perform validation\n for (BaseType baseType : typeValidators) {\n if (baseType != null) {\n try {\n baseType.validate();\n } catch (TypeException e) {\n throw new InvalidInputArgumentsException(\"Validation failed while validating argument \"\n + paramDescriptionAnnotation.name()\n + e.getMessage());\n }\n } else {\n log.warn(\"Could not perform validation on argument \"\n + paramDescriptionAnnotation.name());\n }\n }\n }\n }\n }\n }", "@Test\n void getArgString() {\n }", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerator src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "int getArgIndex();", "@Override\n\tpublic void addArg(FormulaElement arg){\n\t}", "public Type[] getArgumentTypes() {\n/* 236 */ return Type.getArgumentTypes(this.desc);\n/* */ }", "@Override\n public Object[] getArguments() {\n return null;\n }", "public login_1_argument() {\n }", "Optional<String[]> arguments();", "private Main(String... arguments) {\n this.operations = new ArrayDeque<>(List.of(arguments));\n }", "@Override\n\tprotected GATKArgumentCollection getArgumentCollection() {\n\t\treturn argCollection;\n\t}", "protected void sequence_Argument(ISerializationContext context, Argument semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, TdlPackage.Literals.ARGUMENT__NAME) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TdlPackage.Literals.ARGUMENT__NAME));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getArgumentAccess().getNameSTRINGTerminalRuleCall_0_0(), semanticObject.getName());\n\t\tfeeder.finish();\n\t}", "void setArguments(String arguments);", "@Override\n\tpublic List<String> getArgumentDesc() {\n\t\treturn desc;\n\t}", "OpFunctionArgAgregate createOpFunctionArgAgregate();", "protected abstract Feature<T,?> convertArgument(Class<?> parameterType, Feature<T,?> originalArgument);", "void visitArgument(Argument argument);", "public Thaw_args(Thaw_args other) {\r\n }", "@Override\r\n\tpublic List<String> getArguments()\r\n\t{\n\t\treturn null;\r\n\t}", "private static String getArgumentString(Object arg) {\n if (arg instanceof String) {\n return \"\\\\\\\"\"+arg+\"\\\\\\\"\";\n }\n else return arg.toString();\n }", "public interface Param {\n\n int[] args();\n String exec(ExecutePack pack);\n String label();\n}", "@Override\n public void verifyArgs(ArrayList<String> args) throws ArgumentFormatException {\n super.checkNumArgs(args);\n _args = true;\n }", "public abstract ValidationResults validArguments(String[] arguments);", "public ArgumentException() {\n super(\"Wrong arguments passed to function\");\n }", "public String getArgumentString() {\n\t\treturn null;\n\t}", "@Override\n public String kind() {\n return \"@param\";\n }", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerationType src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "public void addArgumentTypeSerialization(String functionName, String argumentName, TensorType type) {\n wrappedSerializationContext.addArgumentTypeSerialization(functionName, argumentName, type);\n }", "void setArgument(int idx,int v) \t\t{ setArgument(idx,Integer.valueOf(v)); }", "@Override\n\tprotected byte[] getArgByte() {\n\t\treturn paramsJson.getBytes();\n\t}", "void onArgumentsChanged();", "com.google.protobuf.ByteString\n\t\tgetArgBytes();", "@Override public int getNumArguments()\t\t\t{ return arg_list.size(); }", "MyArg(int value){\n this.value = value;\n }", "public ArgList(Object arg1) {\n super(1);\n addElement(arg1);\n }", "public Clear_args(Clear_args other) {\r\n }", "private ParameterInformation processArgumentReference(Argument argument,\n List<NameDescriptionType> argTypeSet,\n SequenceEntryType seqEntry,\n int seqIndex)\n {\n ParameterInformation argumentInfo = null;\n\n // Initialize the argument's attributes\n String argName = argument.getName();\n String dataType = null;\n String arraySize = null;\n String bitLength = null;\n BigInteger argBitSize = null;\n String enumeration = null;\n String description = null;\n UnitSet unitSet = null;\n String units = null;\n String minimum = null;\n String maximum = null;\n\n // Step through each command argument type\n for (NameDescriptionType argType : argTypeSet)\n {\n // Check if this is the same command argument referenced in the argument list (by\n // matching the command and argument names between the two)\n if (argument.getArgumentTypeRef().equals(argType.getName()))\n {\n boolean isInteger = false;\n boolean isUnsigned = false;\n boolean isFloat = false;\n boolean isString = false;\n\n // Check if this is an array parameter\n if (seqEntry instanceof ArrayParameterRefEntryType)\n {\n arraySize = \"\";\n\n // Store the reference to the array parameter type\n ArrayDataTypeType arrayType = (ArrayDataTypeType) argType;\n argType = null;\n\n // Step through each dimension for the array variable\n for (Dimension dim : ((ArrayParameterRefEntryType) seqEntry).getDimensionList().getDimension())\n {\n // Check if the fixed value exists\n if (dim.getEndingIndex().getFixedValue() != null)\n {\n // Build the array size string\n arraySize += String.valueOf(Integer.valueOf(dim.getEndingIndex().getFixedValue()) + 1)\n + \",\";\n }\n }\n\n arraySize = CcddUtilities.removeTrailer(arraySize, \",\");\n\n // The array parameter type references a non-array parameter type that\n // describes the individual array members. Step through each data type in the\n // parameter type set in order to locate this data type entry\n for (NameDescriptionType type : argTypeSet)\n {\n // Check if the array parameter's array type reference matches the data\n // type name\n if (arrayType.getArrayTypeRef().equals(type.getName()))\n {\n // Store the reference to the array parameter's data type and stop\n // searching\n argType = type;\n break;\n }\n }\n }\n\n // Check if a data type entry for the parameter exists in the parameter type set\n // (note that if the parameter is an array the steps above locate the data type\n // entry for the individual array members)\n if (argType != null)\n {\n long dataTypeBitSize = 0;\n\n // Check if the argument is an integer data type\n if (argType instanceof IntegerArgumentType)\n {\n IntegerArgumentType icmd = (IntegerArgumentType) argType;\n\n // Get the number of bits occupied by the argument\n argBitSize = icmd.getSizeInBits();\n\n // Get the argument units reference\n unitSet = icmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (icmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n // Get the argument alarm\n IntegerArgumentType.ValidRangeSet alarmType = icmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<IntegerRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Store the minimum alarm value\n minimum = alarmRange.get(0).getMinInclusive();\n\n // Store the maximum alarm value\n maximum = alarmRange.get(0).getMaxInclusive();\n }\n }\n\n isInteger = true;\n }\n // Check if the argument is a floating point data type\n else if (argType instanceof FloatArgumentType)\n {\n // Get the float argument attributes\n FloatArgumentType fcmd = (FloatArgumentType) argType;\n dataTypeBitSize = fcmd.getSizeInBits().longValue();\n unitSet = fcmd.getUnitSet();\n\n // Get the argument alarm\n FloatArgumentType.ValidRangeSet alarmType = fcmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<FloatRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Get the minimum value\n Double min = alarmRange.get(0).getMinInclusive();\n\n // Check if a minimum value exists\n if (min != null)\n {\n // Get the minimum alarm value\n minimum = String.valueOf(min);\n }\n\n // Get the maximum value\n Double max = alarmRange.get(0).getMaxInclusive();\n\n // Check if a maximum value exists\n if (max != null)\n {\n // Get the maximum alarm value\n maximum = String.valueOf(max);\n }\n }\n }\n\n isFloat = true;\n }\n // Check if the argument is a string data type\n else if (argType instanceof StringDataType)\n {\n // Get the string argument attributes\n StringDataType scmd = (StringDataType) argType;\n dataTypeBitSize = Integer.valueOf(scmd.getStringDataEncoding()\n .getSizeInBits()\n .getFixed()\n .getFixedValue());\n unitSet = scmd.getUnitSet();\n isString = true;\n }\n // Check if the argument is an enumerated data type\n else if (argType instanceof EnumeratedDataType)\n {\n EnumeratedDataType ecmd = (EnumeratedDataType) argType;\n EnumerationList enumList = ecmd.getEnumerationList();\n\n // Check if any enumeration parameters are defined\n if (enumList != null)\n {\n // Step through each enumeration parameter\n for (ValueEnumerationType enumType : enumList.getEnumeration())\n {\n // Check if this is the first parameter\n if (enumeration == null)\n {\n // Initialize the enumeration string\n enumeration = \"\";\n }\n // Not the first parameter\n else\n {\n // Add the separator for the enumerations\n enumeration += \", \";\n }\n\n // Begin building this enumeration\n enumeration += enumType.getValue() + \" | \" + enumType.getLabel();\n }\n\n argBitSize = ecmd.getIntegerDataEncoding().getSizeInBits();\n unitSet = ecmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (ecmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n isInteger = true;\n }\n }\n\n // Get the name of the data type from the data type table that matches the base\n // type and size of the parameter\n dataType = getMatchingDataType(dataTypeBitSize / 8,\n isInteger,\n isUnsigned,\n isFloat,\n isString,\n dataTypeHandler);\n\n // Check if the description exists\n if (argType.getLongDescription() != null)\n {\n // Store the description\n description = argType.getLongDescription();\n }\n\n // Check if the argument bit size exists\n if (argBitSize != null && argBitSize.longValue() != dataTypeBitSize)\n {\n // Store the bit length\n bitLength = argBitSize.toString();\n }\n\n // Check if the units exists\n if (unitSet != null)\n {\n List<UnitType> unitType = unitSet.getUnit();\n\n // Check if the units is set\n if (!unitType.isEmpty())\n {\n // Store the units\n units = unitType.get(0).getContent();\n }\n }\n\n argumentInfo = new ParameterInformation(argName,\n dataType,\n arraySize,\n bitLength,\n enumeration,\n units,\n minimum,\n maximum,\n description,\n 0,\n seqIndex);\n }\n\n break;\n }\n }\n\n return argumentInfo;\n }", "public abstract interface QueryArgs {\n\n /** Return the catalog associated with this object */\n public Catalog getCatalog();\n\n /** Set the value for the ith parameter */\n public void setParamValue(int i, Object value);\n\n /** Set the value for the parameter with the given label */\n public void setParamValue(String label, Object value);\n\n /** Set the min and max values for the parameter with the given label */\n public void setParamValueRange(String label, Object minValue, Object maxValue);\n\n /** Set the int value for the parameter with the given label */\n public void setParamValue(String label, int value);\n\n /** Set the double value for the parameter with the given label */\n public void setParamValue(String label, double value);\n\n /** Set the double value for the parameter with the given label */\n public void setParamValueRange(String label, double minValue, double maxValue);\n\n /** Set the array of parameter values directly. */\n public void setParamValues(Object[] values);\n\n /** Get the value of the ith parameter */\n public Object getParamValue(int i);\n\n /** Get the value of the named parameter\n *\n * @param label the parameter name or id\n * @return the value of the parameter, or null if not specified\n */\n public Object getParamValue(String label);\n\n /**\n * Get the value of the named parameter as an integer.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public int getParamValueAsInt(String label, int defaultValue);\n\n /**\n * Get the value of the named parameter as a double.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public double getParamValueAsDouble(String label, double defaultValue);\n\n /**\n * Get the value of the named parameter as a String.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public String getParamValueAsString(String label, String defaultValue);\n\n\n /**\n * Return the object id being searched for, or null if none was defined.\n */\n public String getId();\n\n /**\n * Set the object id to search for.\n */\n public void setId(String id);\n\n\n /**\n * Return an object describing the query region (center position and\n * radius range), or null if none was defined.\n */\n public CoordinateRadius getRegion();\n\n /**\n * Set the query region (center position and radius range) for\n * the search.\n */\n public void setRegion(CoordinateRadius region);\n\n\n /**\n * Return an array of SearchCondition objects indicating the\n * values or range of values to search for.\n */\n public SearchCondition[] getConditions();\n\n /** Returns the max number of rows to be returned from a table query */\n public int getMaxRows();\n\n /** Set the max number of rows to be returned from a table query */\n public void setMaxRows(int maxRows);\n\n\n /** Returns the query type (an optional string, which may be interpreted by some catalogs) */\n public String getQueryType();\n\n /** Set the query type (an optional string, which may be interpreted by some catalogs) */\n public void setQueryType(String queryType);\n\n /**\n * Returns a copy of this object\n */\n public QueryArgs copy();\n\n /**\n * Optional: If not null, use this object for displaying the progress of the background query\n */\n public StatusLogger getStatusLogger();\n}", "@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }", "@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }", "@Override\n\tprotected Collection<ArgumentTypeDescriptor> getArgumentTypeDescriptors() {\n\t\treturn Arrays.asList(new VCFWriterArgumentTypeDescriptor(engine, System.out, bisulfiteArgumentSources), new SAMReaderArgumentTypeDescriptor(engine),\n\t\t\t\tnew SAMFileWriterArgumentTypeDescriptor(engine, System.out), new OutputStreamArgumentTypeDescriptor(engine, System.out));\n\t}", "@Override\n public int getArgent() {\n return _argent;\n }", "private static @NonNull String resolveInputName(@NonNull Argument<?> argument) {\n String inputName = argument.getAnnotationMetadata().stringValue(Bindable.NAME).orElse(null);\n if (StringUtils.isEmpty(inputName)) {\n inputName = argument.getName();\n }\n return inputName;\n }", "private Object[] getArguments (String className, Object field)\n\t{\n\t\treturn ((field == null) ? new Object[]{className} : \n\t\t\tnew Object[]{className, field});\n\t}", "PermissionSerializer (GetArg arg) throws IOException, ClassNotFoundException {\n\tthis( \n\t create(\n\t\targ.get(\"targetType\", null, Class.class),\n\t\targ.get(\"type\", null, String.class),\n\t\targ.get(\"targetName\", null, String.class),\n\t\targ.get(\"targetActions\", null, String.class) \n\t )\n\t);\n }", "public Type getArgumentDirection() {\n return direction;\n }", "public String argTypes() {\n return \"I\";//NOI18N\n }", "public static void main(String arg[]) {\n\n }", "godot.wire.Wire.Value getArgs(int index);", "@Override\n protected String[] getArguments() {\n String[] args = new String[1];\n args[0] = _game_file_name;\n return args;\n }", "public void setArgs(java.lang.String value) {\n this.args = value;\n }", "private Argument(Builder builder) {\n super(builder);\n }", "@Override\n public void execute(String[] args) {\n\n }", "@Override\n\tprotected final void setFromArgument(CommandContext<ServerCommandSource> context, String name) {\n\t}", "UUID createArgument(ArgumentCreateRequest request);", "@Override\n public void initialise(String[] arguments) {\n\n }", "public static ParameterExpression parameter(Class type, String name) { throw Extensions.todo(); }", "protected abstract void parseArgs() throws IOException;" ]
[ "0.7164074", "0.6946075", "0.6714363", "0.65115863", "0.63969076", "0.6375468", "0.63481104", "0.63162106", "0.6260299", "0.6208487", "0.6208487", "0.62070644", "0.6197276", "0.61806154", "0.6177103", "0.61530507", "0.61472267", "0.61243707", "0.60771817", "0.6054482", "0.59906125", "0.59906125", "0.5984017", "0.59791875", "0.5977681", "0.59532714", "0.5946838", "0.59457266", "0.59452903", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.5909717", "0.5889277", "0.588111", "0.5871162", "0.5866624", "0.58613646", "0.58519953", "0.58381283", "0.58083445", "0.58059824", "0.5795826", "0.57816726", "0.57670826", "0.57556796", "0.57471323", "0.57418406", "0.5729463", "0.57291526", "0.5716928", "0.5713024", "0.56974274", "0.56782854", "0.56723106", "0.5664594", "0.5664104", "0.5660337", "0.5652865", "0.5647883", "0.5642134", "0.5635645", "0.5634968", "0.562251", "0.56210977", "0.56167537", "0.56138444", "0.56044126", "0.56044126", "0.5602371", "0.56012225", "0.55986875", "0.55893147", "0.5588273", "0.5583255", "0.5582767", "0.55681497", "0.55626017", "0.55577534", "0.55524325", "0.5549442", "0.55378276", "0.5536797", "0.5527675", "0.5511817", "0.55099154", "0.550257" ]
0.0
-1
Constructs a new plane from the three points with a random color
public Plane(Point a, Point b, Point c) { this(a, b, c, new Color((int) (Math.random() * 256), (int) (Math.random() * 256), (int) (Math.random() * 256))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Plane(Point origin, Vector normal) {\n\t\tthis(origin, normal, new Color((int) (Math.random() * 256),\n\t\t\t\t(int) (Math.random() * 256), (int) (Math.random() * 256)));\n\t}", "public Plane(Point a, Point b, Point c, Color colour) {\n\t\torigin = a;\n\t\tnormal = new Vector(a, b).crossProduct(new Vector(a, c));\n\n\t\tthis.c = colour;\n\t}", "public Plane(Point origin, Vector normal, Color c) {\n\t\tthis.origin = origin;\n\t\tthis.normal = normal;\n\n\t\tthis.c = c;\n\t}", "public Plane() {\r\n\t\tvecX = new Vector3D();\r\n\t\tvecY = new Vector3D();\r\n\t\tnorm = new Vector3D();\r\n\t\tthis.setD(0);\r\n\t\tpos = new Position3D();\r\n\t}", "public Plane(double a, double b, double c, double d) {\n this.a = a;\n this.b = b;\n this.c = c;\n this.d = d;\n }", "public Plane3(Plane3 p) {\n this.a = p.a; this.b = p.b; this.c = p.c; this.v = p.v; this.d = p.d;\n }", "private void init() {\r\n\t\tx = (float) (Math.random() * 2 - 1);\r\n\t\ty = (float) (Math.random() * 2 - 1);\r\n\t\tz[0] = (float) (Math.random() * 3f);\r\n\t\tz[1] = z[0];\r\n\t}", "private void init(Point[] points, int color) {\n // Set paint\n paint = new Paint(Paint.ANTI_ALIAS_FLAG);\n paint.setColor(color);\n\n setPadding(50,50,50,50);\n setBackgroundColor(Color.TRANSPARENT);\n\n // Create path for triangle\n path = new Path();\n path.setFillType(Path.FillType.EVEN_ODD);\n // Draw triangle\n path.moveTo(points[0].x, points[0].y);\n path.lineTo(points[1].x,points[1].y);\n path.lineTo(points[2].x,points[2].y);\n path.lineTo(points[0].x,points[0].y);\n path.close();\n }", "protected Patch generatePatch(Point2D[] points, float[][] color) {\n/* 52 */ return new TensorPatch(points, color);\n/* */ }", "Point getRandomPoint() {\n\t\t\t\t\tdouble val = Math.random() * 3;\n\t\t\t\t\tif (val >=0.0 && val <1.0)\n\t\t\t\t\t\treturn p1;\n\t\t\t\t\telse if (val >=1.0 && val <2.0)\n\t\t\t\t\t\t\treturn p2;\n\t\t\t\t\telse\n\t\t\t\t\t\t\treturn p3;\n\t\t\t\t\t}", "@Test\n public void Constructor_test() \n {\n // ============ Equivalence Partitions Tests ==============\n\n // TC01: creating the Plane: x + y + z = 1 with the constructor\n\t // that get 3 Point3D that contain in the Plane\n try \n {\n new Plane(new Point3D(1,0,0), new Point3D(0,1,0), new Point3D(0,0,1));\n } \n catch (IllegalArgumentException e) \n {\n fail(\"Failed constructing a correct Plane\");\n }\n \n // TC02: creating the Plane: x + y + z = 1 with the constructor\n \t // that get Point3D that contain in the Plane and Vector- the normal of the Plane.\n try \n {\n new Plane(new Point3D(1,0,0), new Vector(1,1,1));\n } \n catch (IllegalArgumentException e) \n {\n fail(\"Failed constructing a correct Plane\");\n }\n \n // =============== Boundary Values Tests ==================\n \n // TC03: creating the Plane: z = 0 with the constructor\n \t // that get 3 Point3D that contain in the Plane\n try \n {\n new Plane(new Point3D(1,0,0), new Point3D(0,1,0), new Point3D(2,3,0));\n } \n catch (IllegalArgumentException e) \n {\n fail(\"Failed constructing a correct Plane\");\n }\n \n // TC04: creating the Plane: x + y + z = 1 with the constructor\n \t // that get Point3D that contain in the Plane and Vector- the normal of the Plane.\n try \n {\n new Plane(new Point3D(1,0,0), new Vector(0,0,1));\n } \n catch (IllegalArgumentException e) \n {\n fail(\"Failed constructing a correct Plane\");\n }\n }", "public static Vector4f randomColor() {\n return new Vector4f(RANDOM.nextFloat(), RANDOM.nextFloat(), RANDOM.nextFloat(), 1);\n }", "public Vec3D(Point3D point) {\n\t\tx = point.x;\n\t\ty = point.y;\n\t\tz = point.z;\n\t}", "Obj(double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3){\t// CAMBIAR LAS COORDENADAS X,Y,Z CON 0,1 PARA CONSTRUIR PRISMA, CILINDRO, PIRAMIDE, CONO Y ESFERA.\n w\t= new Point3D[4];\n\tvScr\t= new Point2D[4];\n \n w[0]\t= new Point3D(0, 0, 0); // desde la base\n\tw[1]\t= new Point3D(x1, y1, z1);\n\tw[2]\t= new Point3D(x2, y2, z2);\n\tw[3]\t= new Point3D(x3, y3, z3);\n \n\tobjSize = (float) Math.sqrt(12F); \n rho\t= 5 * objSize;\n }", "protected abstract BaseVector3d createBaseVector3d(double x, double y, double z);", "public City(){\n this.x = (int)(Math.random()*200);\n this.y = (int)(Math.random()*200);\n }", "public Pj3dPlane Pj3dPlane(int x, int z)\r\n\t{\r\n \tPj3dPlane plane = new Pj3dPlane(this, x, z);\r\n\t\treturn plane;\r\n\t}", "Maze3d generate(int x, int y, int z) throws Exception;", "private Vec3 calculateRandomValues(){\n\n Random rand1 = new Random();\n float randX = (rand1.nextInt(2000) - 1000) / 2000f;\n float randZ = (rand1.nextInt(2000) - 1000) / 2000f;\n float randY = rand1.nextInt(1000) / 1000f;\n\n return new Vec3(randX, randY, randZ).normalize();\n }", "public void makeRandColor(){}", "City(){\n x_coordinate = (int)(Math.random()*200);\n y_coordinate = (int)(Math.random()*200);\n }", "public Point3D(Point3D point) {\n\t this.x = point.x;\n\t this.y = point.y;\n\t this.z = point.z;\n }", "public CheckPlane( Vector p, Vector n, Vector o )\n\t{\n\t\tsuper(p,n,new Color());\n\t\tsetOrientation(o);\n\t\tsetColor( new Color(0.01,0.01,0.01), new Color(0.99,0.99,0.99) );\n\t}", "public point(int a, int b, int c) {\n\t\t\t\tx = a;\n\t\t\t\ty = b;\n\t\t\t\tz = c;\n\t\t\t}", "RedSphere() {\n Random random = new Random();\n for (int i = 0; i < 6; i++) {\n value[i] = random.nextInt(33) + 1;\n }\n }", "private void generarColor() {\r\n\t\tthis.color = COLORES[(int) (Math.random() * COLORES.length)];\r\n\t}", "public Point3D(double x,double y,double z)\n {\n _x=x;\n _y=y;\n _z=z;\n }", "static Vector4d computePlane(Vector3d a, Vector3d b, Vector3d c)\n\t{\n\t\tVector4d plane = new Vector4d();\n\t\t\n\t\tVector3d ab = new Vector3d();\n\t\tab.sub(b, a);\n\t\t\n\t\tVector3d ac = new Vector3d();\n\t\tac.sub(c, a);\n\t\t\n\t\tVector3d n = new Vector3d();\n\t\tn.cross(ab, ac);\n\t\tn.normalize();\n\t\t\n\t\tplane.set(n);\n\t\tplane.w = - a.dot(n);\n\t\t\n\t\treturn plane;\n\t}", "public\n\tVector3( Point3 point )\n\t{\n\t\tdata = new double[3];\n\t\tcopy( point );\n\t}", "@Override\r\n\tpublic WB_Normal3d addAndCopy(final WB_Point3d p) {\r\n\t\treturn new WB_Normal3d(x + p.x, y + p.y, z + p.z);\r\n\t}", "@Override\n\tpublic Color getColor(Vector point)\n\t{\n\t\tVector d = point.sub(position);\n\t\t\n\t\tdouble\tlenx = Math.floor( d.dot(oX) ),\n\t\t\t\tleny = Math.floor( d.dot(oY) );\n\t\t\n\t\t//int ModularDistance = Math.abs( (int) (lenx + leny) ) % 2;\n\t\tif ( 0 == Math.abs( (int) (lenx + leny) ) % 2)\n\t\t{\n\t\t\treturn c1.dup();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn c2.dup();\n\t\t}\n\t}", "private static Point[] generateRandomPointArray(final int quantity) {\n\t\tfinal int min = -200;\n\t\tfinal int max = 200;\n\t\tfinal Random random = new Random();\n\t\tPoint[] pointArray = new Point[quantity];\n\t\t\n\t\tSystem.out.println(\"Using \" + quantity + \" of random co-linear points.\");\n\t\t\n\t\tfor(int i = 0; i < quantity; i++) {\n\t\t\tint x = random.nextInt(max + 1 - min) + min;\n\t\t\tint y = random.nextInt(max + 1 - min) + min;\n\t\t\tpointArray[i] = new Point(x, y);\n\t\t}\n\t\t\n\t\treturn pointArray;\n\t}", "Point3D (double x, double y, double z) {\n this.x = x;\n this.y = y;\n this.z = z;\n }", "public Point()\n {\n x = -100 + (int) (Math.random() * ((100 - (-100)) + 1)); \n y = -100 + (int) (Math.random() * ((100 - (-100)) + 1));\n //x = (int) (Math.random()); \n //y =(int) (Math.random());\n pointArr[0] = 1;\n pointArr[1] = x;\n pointArr[2] = y;\n //If the point is on the line, is it accepted? I counted it as accepted for now\n if(y >= 3*x){\n desiredOut = 1;\n }\n else\n {\n desiredOut = 0;\n }\n }", "public static void posToPlane(Vector3 result, Vector3 pos, Vector3 normal)\n\t{\n\t\tfloat dp_n_n = normal.dot(normal);\n\t\tif (dp_n_n == 0) {\n\t\t\tthrow new IllegalArgumentException(\"Normal is too small!\");\n\t\t}\n\t\tfloat dp_p_n = pos.dot(normal);\n\t\tfloat pos_x = pos.x;\n\t\tfloat pos_y = pos.y;\n\t\tfloat pos_z = pos.z;\n\t\tresult.set(normal);\n\t\tresult.scl(-dp_p_n);\n\t\tresult.scl(1f / dp_n_n);\n\t\tresult.add(pos_x, pos_y, pos_z);\n\t}", "public Color newColor(){\n\t\tRandom random = new Random();\n\n\t\tint red;\n\t\tint green;\n\t\tint blue;\n\n\t\tint counter = 0;\n\n\t\tdo {\n\t\t\tred = random.nextInt(255);\n\t\t\tgreen = random.nextInt(255);\n\t\t\tblue = random.nextInt(255);\n\t\t\tcounter++;\n\t\t\t\n\t\t}while(red + green + blue < 400 && counter < 20);\n\n\t\treturn Color.rgb(red, green, blue,1);\n\t}", "public void createPlane(Group planeGroup, String id, float latitude, float longitude, float angle, PhongMaterial material, double scale) {\n // Load geometry\n ObjModelImporter planeImporter = new ObjModelImporter();\n try {\n URL modelUrl = getClass().getResource(\"/flightlive/res/Plane/plane.obj\");\n planeImporter.read(modelUrl);\n } catch(ImportException e) {\n System.err.println(e.getMessage());\n }\n MeshView[] planeMeshViews = planeImporter.getImport();\n\n // Setting the material\n for (MeshView mv : planeMeshViews)\n mv.setMaterial(material);\n\n Fx3DGroup planeScale = new Fx3DGroup(planeMeshViews);\n Fx3DGroup planeOffset = new Fx3DGroup(planeScale);\n Fx3DGroup plane = new Fx3DGroup(planeOffset);\n\n Point3D position = geoCoordTo3dCoord(latitude, longitude);\n // Transformations on the object\n planeScale.set3DScale(0.015);\n planeOffset.set3DTranslate(0, -0.01, 0);\n planeOffset.set3DRotate(0, 180 + angle, 0);\n\n plane.set3DTranslate(position.getX(),position.getY(),position.getZ());\n plane.set3DRotate(\n -java.lang.Math.toDegrees(java.lang.Math.asin(position.getY())) - 90,\n java.lang.Math.toDegrees(java.lang.Math.atan2(position.getX(), position.getZ())),\n 0);\n plane.set3DScale(scale);\n plane.setId(id);\n\n planeGroup.getChildren().add(plane);\n }", "public Point3(Point3 p) {\n this.x = p.x; this.y = p.y; this.z = p.z;\n }", "public Planet (double x, double y, double r, double m, double vx, double vy, Color c) {\n this.xCoor = x;\n this.yCoor = y;\n this.rad = r;\n this.mass = m;\n this.xVel = vx;\n this.yVel = vy;\n this.col = c; \n \n }", "private static void randomPlane(){\n\n\t\t// your code goes there\n LinearRegression linG;\n linG = new LinearRegression(2,5000);\n double la,lb,lc;\n la = generator.nextDouble();\n lb = generator.nextDouble();\n lc = generator.nextDouble();\n double a,b,c;\n a = (200.0*(la)) + -100.0;\n b = (200.0*(lb)) + -100.0;\n c = (200.0*(lc)) + -100.0;\n\n for (int i = 0; i < 5000; i++)\n {\n double lx,ly,lnoise;\n double x,y,noise;\n lx = generator.nextDouble();\n ly = generator.nextDouble();\n lnoise = generator.nextDouble();\n\n x = (3950.0*(lx)) + 50.0;\n y = (3950.0*(ly)) + 50.0;\n noise = (40.0*(lnoise)) + -20.0;\n\n double[] tmp;\n tmp = new double[2];\n tmp[0] = x;\n tmp[1] = y;\n\n linG.addSample(tmp,a*x + b*y + c + noise);\n\n }\n\n System.out.println(\"Current hypothesis :\" + linG.currentHypothesis());\n System.out.println(\"Current cost :\" + linG.currentCost());\n System.out.println(\"Aiming for : x_3 = \"+ a+\"x_1 + \"+b+\"x_2 + \"+c+\"\\n\");\n\n for(int i = 0; i < 10; i++)\n {\n linG.gradientDescent(0.00000004,666);\n\n System.out.println(\"Current hypothesis :\" + linG.currentHypothesis());\n System.out.println(\"Current cost :\" + linG.currentCost());\n System.out.println(\"Aiming for : x_3 = \"+ a+\"x_1 + \"+b+\"x_2 + \"+c+\"\\n\");\n }\n\n\t}", "@Override\n protected void createMesh() {\n rayLight.getScope().add(camera);\n\n light = new PointLight(Color.GAINSBORO);\n light.setTranslateX(-300);\n light.setTranslateY(300);\n light.setTranslateZ(-2000);\n\n light2 = new PointLight(Color.ALICEBLUE);\n light2.setTranslateX(300);\n light2.setTranslateY(-300);\n light2.setTranslateZ(2000);\n\n light3 = new PointLight(Color.SPRINGGREEN);\n light3.setTranslateY(-2000);\n //create a target\n target1 = new Sphere(180);\n target1.setId(\"t1\");\n target1.setDrawMode(DrawMode.LINE);\n target1.setCullFace(CullFace.NONE);\n target1.setTranslateX(500);\n target1.setTranslateY(500);\n target1.setTranslateZ(500);\n target1.setMaterial(red);\n // create another target\n target2 = new Sphere(150);\n target2.setId(\"t2\");\n target2.setDrawMode(DrawMode.LINE);\n target2.setCullFace(CullFace.NONE);\n target2.setTranslateX(-500);\n target2.setTranslateY(-500);\n target2.setTranslateZ(-500);\n target2.setMaterial(blue);\n\n origin = new Box(20, 20, 20);\n origin.setDrawMode(DrawMode.LINE);\n origin.setCullFace(CullFace.NONE);\n \n model = new Group(target1, target2, origin, light, light2, light3, rayLight);\n }", "public void reset() {\n x = random(-2*width, 3*width); // set the x position\n y = random(-height, 2*height); // set the y position\n c[0] = color(random(150, 255), random(150, 255), random(150, 255)); // set the top color (a bit lighter)\n // randomly set the 4 colors in the base of the shape\n for (int i=1; i<5; i++) {\n c[i] = color(random(255), random(255), random(255)); // random RGB color\n }\n }", "BlueSphere() {\n Random random = new Random();\n value[0] = random.nextInt(16) + 1;\n }", "public abstract Color3f calcColor(Vector3f pos, Vector3f normal, Material m);", "public static Vect3 mkXYZ(double x, double y, double z) {\n\t\treturn new Vect3(x,y,z);\n\t}", "int randomPoint() { return 1 + (int)Math.round((Math.random()*20) % (size - 2)); }", "public Vector(Coordinate x1, Coordinate y1, Coordinate z1) {\n Point3D p = new Point3D(x1, y1, z1);\n if (p.equals(Point3D.ZERO))\n throw new IllegalArgumentException(\"no meaning to the vector\");\n head=new Point3D(p);\n }", "public Point3(float x, float y, float z) {\r\n\t\tsuper(x, y);\r\n\t\tthis.z = z;\r\n\t}", "public Vector(double x1, double y1, double z1) {\n Point3D p = new Point3D(x1, y1, z1);\n if (p.equals(Point3D.ZERO))\n throw new IllegalArgumentException(\"no meaning to the vector\");\n head=new Point3D(p);\n }", "private TetrisPiece randomPiece() {\n\t\tint rand = Math.abs(random.nextInt());\n\t\treturn new TetrisPiece(rand % (PIECE_COLORS.length));\n\t}", "public Polyhedron (Transform t, String filename, boolean active, boolean cull, String color)\n\t{\n\t\tsuper (t, cull);\n\t\tsuper.setActive(active);\n\t\tReadFile(filename);\n\t\tFileName = filename;\n\t\ttry {\n\t\t\tField f = Color.class.getField(color);\n\t\t\tthis.setColor((Color)f.get(null));\n\t\t}\n\t\tcatch (Exception e1)\n\t\t{\n\t\t\ttry {\n\t\t\t\tthis.color = Color.decode(color);\n\t\t\t}\n\t\t\tcatch (Exception e2) {\n\t\t\t\te1.printStackTrace();\n\t\t\t\te2.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public Plane(Vector3D vecX, Vector3D vecY, Position3D pos) {\r\n\t\tthis.vecX = vecX.normalize();\r\n\t\tthis.vecY = this.vecX.perp(vecY).normalize();\r\n\t\tthis.norm = this.vecX.cross(this.vecY);\r\n\t\tthis.pos = pos;\r\n\t\tthis.setD(norm.dot(this.pos.toVec()));\r\n\t}", "public Point() {\n this.x = Math.random();\n this.y = Math.random();\n }", "public Triangle(Context context, Point[] points, int color) {\n super(context);\n init(points, color);\n }", "public Triangle(Point a, Point b, Point c){\n this.a=a;\n this.b=b;\n this.c=c;\n }", "public void init( int pointDimension, long randomSeed );", "public Polyhedron (Transform t, String filename, boolean active, boolean cull, Color color)\n\t{\n\t\tsuper (t, cull);\n\t\tsuper.setActive(active);\n\t\tReadFile(filename);\n\t\tFileName = filename;\n\t\tthis.color = color;\n\t}", "public static DeformableMesh3D createTestBlock(double w, double h, double depth){\n ArrayList<double[]> pts = new ArrayList<double[]>();\n ArrayList<int[]> connections = new ArrayList<int[]>();\n ArrayList<int[]> triangles = new ArrayList<int[]>();\n\n pts.add(new double[]{-w/2, -h/2, depth/2});\n pts.add(new double[]{-w/2, h/2, depth/2});\n pts.add(new double[]{w/2, h/2, depth/2});\n pts.add(new double[]{w/2, -h/2, depth/2});\n\n pts.add(new double[]{-w/2, -h/2, -depth/2});\n pts.add(new double[]{-w/2, h/2, -depth/2});\n pts.add(new double[]{w/2, h/2, -depth/2});\n pts.add(new double[]{w/2, -h/2, -depth/2});\n\n //back face\n connections.add(new int[]{0, 4});\n connections.add(new int[]{0, 1});\n connections.add(new int[]{1, 5});\n connections.add(new int[]{5, 4});\n\n //front face\n connections.add(new int[]{3, 7});\n connections.add(new int[]{2, 3});\n connections.add(new int[]{2, 6});\n connections.add(new int[]{6, 7});\n\n //front-back connections.\n connections.add(new int[]{3, 0});\n connections.add(new int[]{1, 2});\n connections.add(new int[]{5, 6});\n connections.add(new int[]{7, 4});\n\n //top\n triangles.add(new int[]{0, 2, 1});\n triangles.add(new int[]{0,3,2});\n //top-diagonal\n connections.add(new int[]{0, 2});\n\n //back\n triangles.add(new int[]{0, 1, 5});\n triangles.add(new int[]{0,5,4});\n connections.add(new int[]{0, 5});\n\n //right\n triangles.add(new int[]{1,2,5});\n triangles.add(new int[]{5,2,6});\n connections.add(new int[]{5, 2});\n\n //front\n triangles.add(new int[]{2,3,6});\n triangles.add(new int[]{6,3,7});\n connections.add(new int[]{3, 6});\n\n //left\n triangles.add(new int[]{3,0,4});\n triangles.add(new int[]{3,4,7});\n connections.add(new int[]{3, 4});\n\n //bottom\n triangles.add(new int[]{4,5,6});\n triangles.add(new int[]{4,6,7});\n connections.add(new int[]{4, 6});\n return new DeformableMesh3D(pts, connections, triangles);\n\n }", "void createPlanetSurface(int width, int height) {\r\n\t\trenderer.surface = new PlanetSurface();\r\n\t\trenderer.surface.width = width;\r\n\t\trenderer.surface.height = height;\r\n\t\trenderer.surface.computeRenderingLocations();\r\n\t\tui.allocationPanel.buildings = renderer.surface.buildings;\r\n\t}", "private void generateCube() {\n\t\tverts = new Vector[] {new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3)};\n\t\tverts[0].setElement(0, -1);\n\t\tverts[0].setElement(1, -1);\n\t\tverts[0].setElement(2, -1);\n\t\t\n\t\tverts[1].setElement(0, 1);\n\t\tverts[1].setElement(1, -1);\n\t\tverts[1].setElement(2, -1);\n\t\t\n\t\tverts[2].setElement(0, -1);\n\t\tverts[2].setElement(1, -1);\n\t\tverts[2].setElement(2, 1);\n\t\t\n\t\tverts[3].setElement(0, 1);\n\t\tverts[3].setElement(1, -1);\n\t\tverts[3].setElement(2, 1);\n\t\t\n\t\tverts[4].setElement(0, -1);\n\t\tverts[4].setElement(1, 1);\n\t\tverts[4].setElement(2, -1);\n\t\t\n\t\tverts[5].setElement(0, 1);\n\t\tverts[5].setElement(1, 1);\n\t\tverts[5].setElement(2, -1);\n\t\t\n\t\tverts[6].setElement(0, -1);\n\t\tverts[6].setElement(1, 1);\n\t\tverts[6].setElement(2, 1);\n\t\t\n\t\tverts[7].setElement(0, 1);\n\t\tverts[7].setElement(1, 1);\n\t\tverts[7].setElement(2, 1);\n\t\t\n\t\tfaces = new int[][] {{0, 3, 2}, {0, 1, 3}, {0, 4, 5}, {0, 5, 1}, {0, 2, 6}, {0, 6, 4}, {2, 7, 6}, {2, 3, 7}, {3, 1, 5}, {3, 5, 7}, {4, 7, 5}, {4, 6, 7}}; // List the vertices of each face by index in verts. Vertices must be listed in clockwise order from outside of the shape so that the faces pointing away from the camera can be culled or shaded differently\n\t}", "private static SbVec4f \ngenerateCoord(Object userData,\n final SbVec3f point,\n final SbVec3f normal )\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoTextureCoordinateBundle tcb = (SoTextureCoordinateBundle ) userData;\n\n final SbVec4f result = new SbVec4f();\n\n // The S and T coordinates of the result are the dot products of\n // the point with sVector and tVector. Since this computation is\n // done very frequently (during primitive generation for picking\n // on vertex-based shapes), we can avoid some operations that\n // result in 0 by doing the dot products explicitly.\n int sDim = tcb.coordS, tDim = tcb.coordT;\n\n\n result.setValue(point.getValueRead()[sDim] * tcb.sVector.getValueRead()[sDim] + tcb.sVector.getValueRead()[3],\n point.getValueRead()[tDim] * tcb.tVector.getValueRead()[tDim] + tcb.tVector.getValueRead()[3],\n 0.0f,\n 1.0f);\n\n return result;\n}", "public static DeformableMesh3D createTestBlock(){\n return createTestBlock(2, 2, 2);\n }", "public float[] makeVertices(float radius, float[] color)\n {\n int noOfComponents = 3 + 3 + 3; // 3 position coordinates, 3 color coordinates, 3 normal coordinates\n float[] vertices = new float[(verticalResolution+1) * horizontalResolution * noOfComponents];\n int vertexNumberInc = 3 + 3 + 3; // three position coordinates, three color values, three normal coordinates\n int vertexNumber = 0;\n\n float elevation = 0;\n float elevationInc = (float) (Math.PI / verticalResolution);\n float azimuth = 0;\n float azimuthInc = (float) (2* Math.PI / horizontalResolution);\n for(int elevationIndex = 0; elevationIndex <= verticalResolution; elevationIndex++) {\n azimuth = 0;\n for(int azimuthIndex = 0; azimuthIndex < horizontalResolution; azimuthIndex++) {\n // position coordinates in spherical coordinates\n float xPos = radius * (float) (Math.sin(elevation) * Math.cos(azimuth));\n float yPos = radius * (float) (Math.sin(elevation) * Math.sin(azimuth));\n float zPos = radius * (float) Math.cos(elevation);\n vertices[vertexNumber] = xPos;\n vertices[vertexNumber+1] = yPos;\n vertices[vertexNumber+2] = zPos;\n // color coordinates (for all vertices the same)\n vertices[vertexNumber+3] = color[0];\n vertices[vertexNumber+4] = color[1];\n vertices[vertexNumber+5] = color[2];\n // coordinates of normal vector\n // for a sphere this vector is identical to the normalizes position vector\n float normalizationFactor = 1 / (float) Math.sqrt((xPos * xPos) + (yPos * yPos) + (zPos * zPos));\n vertices[vertexNumber+6] = xPos * normalizationFactor;\n vertices[vertexNumber+7] = yPos * normalizationFactor;\n vertices[vertexNumber+8] = zPos * normalizationFactor;\n\n vertexNumber += vertexNumberInc;\n azimuth += azimuthInc;\n }\n elevation += elevationInc;\n }\n return vertices;\n }", "public Triangle (int x, int y, int z){ \r\n \r\n \r\n }", "public Light(double xPos, double yPos, double zPos){\n this(xPos, yPos, zPos, 1.0, 1.0, 1.0, 1);\n }", "public Triangle (double x1,double y1,double x2, double y2,double x3,double y3)\r\n {\r\n v1 = new Point(x1,y1);\r\n v2 = new Point(x2,y2);\r\n v3 = new Point(x3,y3);\r\n }", "public Sphere(Point3D c, double r, Color color)\r\n\t{\r\n\t\tthis(c, r);\r\n\t\tsuper._emission = color;\r\n\t}", "public void generateColor() {\n if (army < 0)\n color = Color.getHSBColor(0f, 1 - (float) Math.random() * 0.2f, 0.5f + (float) Math.random() * 0.5f);\n else if (army > 0)\n color = Color.getHSBColor(0.7f - (float) Math.random() * 0.2f, 1 - (float) Math.random() * 0.2f, 0.4f + (float) Math.random() * 0.25f);\n else color = Color.getHSBColor(0f, 0, 0.55f + (float) Math.random() * 0.25f);\n }", "public Triangle (double x1,double y1,double x2, double y2)\r\n {\r\n v1 = new Point(x1,y1);\r\n v2 = new Point(x2,y2);\r\n v3 = new Point(0,0);\r\n }", "public ColorVector(float red, float green, float blue) {\n this.red = red;\n this.green = green;\n this.blue = blue;\n }", "@Override\n protected void createCreature() {\n Sphere sphere = new Sphere(32,32, 0.4f);\n pacman = new Geometry(\"Pacman\", sphere);\n Material mat = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n mat.setColor(\"Color\", ColorRGBA.Yellow);\n pacman.setMaterial(mat);\n this.attachChild(pacman); \n }", "private void createMiniTriangles(int[] xPoints, int[] yPoints, int[] color) {\n\t\tint[] xMidpoints = new int[NUM_TRIANGLE_SIDES];\n\t\tint[] yMidpoints = new int[NUM_TRIANGLE_SIDES];\n\n\t\tfor (int i = 0; i < NUM_TRIANGLE_SIDES; i++) {\n\t\t\txMidpoints[i] = avg(xPoints[i], xPoints[(i + 1) % NUM_TRIANGLE_SIDES]);\n\t\t\tyMidpoints[i] = avg(yPoints[i], yPoints[(i + 1) % NUM_TRIANGLE_SIDES]);\n\t\t}\n\n\t\t// midpoint i, midpoint i+1, point i\n\t\tfor (int i = 0; i < NUM_TRIANGLE_SIDES; i++) {\n\t\t\tint[] xMini = {xMidpoints[i], xMidpoints[(i + TRI_TYPE) % NUM_TRIANGLE_SIDES], xPoints[i]};\n\t\t\tint[] yMini = {yMidpoints[i], yMidpoints[(i + TRI_TYPE) % NUM_TRIANGLE_SIDES], yPoints[i]};\n\t\t\tint colorVal = (i + this.rotateOffset) % NUM_TRIANGLE_SIDES;\n\t\t\tthis.drawMiniTriangle(xMini, yMini, color[colorVal], colorVal);\n\t\t}\n\t\tif (IS_ROT_ON) {\n\t\t\tthis.rotateOffset += ROT_OFFSET_BY;\n\t\t}\n\t}", "public void generete() {\n int minQuantFig = 1,\r\n maxQuantFig = 10,\r\n minNum = 1,\r\n maxNum = 100,\r\n minColor = 0,\r\n maxColor = (int)colors.length - 1,\r\n\r\n // Initialize figures property for random calculations\r\n randomColor = 0,\r\n randomFigure = 0,\r\n\r\n // Squere property\r\n randomSideLength = 0,\r\n\r\n // Circle property\r\n randomRadius = 0,\r\n \r\n // IsoscelesRightTriangle property \r\n randomHypotenus = 0,\r\n \r\n // Trapizoid properties\r\n randomBaseA = 0,\r\n randomBaseB = 0,\r\n randomAltitude = 0;\r\n\r\n // Generate random number to set figueres's quantaty\r\n setFigureQuantaty( generateWholoeNumInRange(minQuantFig, maxQuantFig) );\r\n\r\n for( int i = 0; i < getFigureQuantaty(); i++ ) {\r\n\r\n // Convert double random value to int and close it in range from 1 to number of elements in array\r\n randomFigure = (int)( Math.random() * figures.length );\r\n \r\n randomColor = generateWholoeNumInRange( minColor, maxColor ); // Get random color's index from colors array\r\n\r\n // Create new figure depending on randomFigure \r\n switch (figures[randomFigure]) {\r\n\r\n case \"Circle\":\r\n\r\n randomRadius = generateWholoeNumInRange( minNum, maxNum ); // Get random value of circle's radius;\r\n\r\n Circle newCircle = new Circle( colors[randomColor], randomRadius ); // Initialize Circle with random parameters\r\n\r\n newCircle.drawFigure();\r\n \r\n break;\r\n\r\n case \"Squere\":\r\n\r\n randomSideLength = generateWholoeNumInRange( minNum, maxNum ); // Get random value of side length;\r\n\r\n Squere newSquere = new Squere( colors[randomColor], randomSideLength ); // Initialize Circle with random parameters\r\n\r\n newSquere.drawFigure();\r\n\r\n break;\r\n\r\n case \"Triangle\":\r\n\r\n randomSideLength = generateWholoeNumInRange( minNum, maxNum ); // Get random value of side length;\r\n\r\n randomHypotenus = generateWholoeNumInRange( minNum, maxNum ); // Get random value of hypotenus;\r\n\r\n IsoscelesRightTriangle newTriangle = new IsoscelesRightTriangle( colors[randomColor], randomSideLength, randomHypotenus ); // Initialize Circle with random parameters\r\n\r\n newTriangle.drawFigure();\r\n\r\n break;\r\n\r\n case \"Trapezoid\":\r\n\r\n randomBaseA = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's side A;\r\n\r\n randomBaseB = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's side B;\r\n\r\n randomAltitude = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's altitude;\r\n\r\n Trapezoid newTrapezoid = new Trapezoid( colors[randomColor], randomBaseA, randomBaseB, randomAltitude ); // Create new Trapezoid with random parameters\r\n\r\n newTrapezoid.drawFigure();\r\n\r\n break;\r\n\r\n };\r\n };\r\n }", "public Bitmap3DColor(float red, float green, float blue, float alpha) {\n this(red, green, blue, alpha, red, green, blue, alpha, red, green, blue, alpha, red, green, blue, alpha);\n }", "public City() {\r\n\t\tthis.x = (int) (Math.random() * 200);\r\n\t\tthis.y = (int) (Math.random() * 200);\r\n\t}", "public Vec3D() {\n\t\tx = y = z = 0.0f;\n\t}", "public Bitmap3DColor(\n float v1Red, float v1Green, float v1Blue, float v1Alpha,\n float v2Red, float v2Green, float v2Blue, float v2Alpha,\n float v3Red, float v3Green, float v3Blue, float v3Alpha,\n float v4Red, float v4Green, float v4Blue, float v4Alpha\n ) {\n if(\n v1Red < 0 || v1Red > 1 || v2Red < 0 || v2Red > 1 || v3Red < 0 || v3Red > 1 || v4Red < 0 || v4Red > 1 ||\n v1Green < 0 || v1Green > 1 || v2Green < 0 || v2Green > 1 || v3Green < 0 || v3Green > 1 || v4Green < 0 || v4Green > 1 ||\n v1Blue < 0 || v1Blue > 1 || v2Blue < 0 || v2Blue > 1 || v3Blue < 0 || v3Blue > 1 || v4Blue < 0 || v4Blue > 1 ||\n v1Alpha < 0 || v1Alpha > 1 || v2Alpha < 0 || v2Alpha> 1 || v3Alpha < 0 || v3Alpha > 1 || v4Alpha < 0 || v4Alpha > 1\n ) {\n throw new IllegalArgumentException(\"Values should be between 0 and 1\");\n }\n\n float[] colors = {\n v1Red, v1Green, v1Blue, v1Alpha,\n v2Red, v2Green, v2Blue, v2Alpha,\n v3Red, v3Green, v3Blue, v3Alpha,\n v4Red, v4Green, v4Blue, v4Alpha\n };\n\n ByteBuffer clb = ByteBuffer.allocateDirect(colors.length * 4);\n clb.order(ByteOrder.nativeOrder());\n this.colorBuffer = clb.asFloatBuffer();\n this.colorBuffer.put(colors);\n this.colorBuffer.position(0);\n }", "public Vec3(){\n\t\tthis(0,0,0);\n\t}", "public Point3(double x_, double y_, double z_) {\n x = x_; y = y_; z = z_;\n }", "public void createWall() { // make case statement?\n\t\tRandom ran = new Random();\n\t\tint range = 6 - 1 + 1; // max - min + min\n\t\tint random = ran.nextInt(range) + 1; // add min\n\n\t\t//each wall is a 64 by 32 chunk \n\t\t//which stack to create different structures.\n\t\t\n\t\tWall w; \n\t\tPoint[] points = new Point[11];\n\t\tpoints[0] = new Point(640, -32);\n\t\tpoints[1] = new Point(640, 0);\n\t\tpoints[2] = new Point(640, 32); // top\n\t\tpoints[3] = new Point(640, 384);\n\t\tpoints[4] = new Point(640, 416);\n\n\t\tif (random == 1) {\n\t\t\tpoints[5] = new Point(640, 64);\n\t\t\tpoints[6] = new Point(640, 96);\n\t\t\tpoints[7] = new Point(640, 128); // top\n\t\t\tpoints[8] = new Point(640, 288);\n\t\t\tpoints[9] = new Point(640, 320);\n\t\t\tpoints[10] = new Point(640, 352); // bottom\n\t\t} else if (random == 2) {\n\t\t\tpoints[5] = new Point(640, 64);\n\t\t\tpoints[6] = new Point(640, 96); // top\n\t\t\tpoints[7] = new Point(640, 256);\n\t\t\tpoints[8] = new Point(640, 288); // bottom\n\t\t\tpoints[9] = new Point(640, 320);\n\t\t\tpoints[10] = new Point(640, 352); // bottom\n\t\t} else if (random == 3) {\n\t\t\tpoints[5] = new Point(640, 64);\n\t\t\tpoints[6] = new Point(640, 96);\n\t\t\tpoints[7] = new Point(640, 128); // top\n\t\t\tpoints[8] = new Point(640, 160);\n\t\t\tpoints[9] = new Point(640, 192); // top\n\t\t\tpoints[10] = new Point(640, 352); // bottom\n\t\t} else if (random == 4) {\n\t\t\tpoints[5] = new Point(640, 64);\n\t\t\tpoints[6] = new Point(640, 96);\n\t\t\tpoints[7] = new Point(640, 128); // top\n\t\t\tpoints[8] = new Point(640, 160);\n\t\t\tpoints[9] = new Point(640, 192);\n\t\t\tpoints[10] = new Point(640, 224); // top\n\t\t} else if (random == 5) {\n\t\t\tpoints[5] = new Point(640, 64); // top\n\t\t\tpoints[6] = new Point(640, 224);\n\t\t\tpoints[7] = new Point(640, 256);\n\t\t\tpoints[8] = new Point(640, 288); // bottom\n\t\t\tpoints[9] = new Point(640, 320);\n\t\t\tpoints[10] = new Point(640, 352); // bottom\n\t\t} else if (random == 6) {\n\t\t\tpoints[5] = new Point(640, 192);\n\t\t\tpoints[6] = new Point(640, 224);\n\t\t\tpoints[7] = new Point(640, 256); // bottom\n\t\t\tpoints[8] = new Point(640, 288);\n\t\t\tpoints[9] = new Point(640, 320);\n\t\t\tpoints[10] = new Point(640, 352); // bottom\n\t\t}\n\n\t\tfor (int i = 0; i < points.length; i++) { // adds walls\n\t\t\tw = new Wall();\n\t\t\tw.setBounds(new Rectangle(points[i].x, points[i].y, 64, 32));\n\t\t\twalls.add(w);\n\t\t}\n\t\tWall c; // adds a single checkpoint\n\t\tc = new Wall();\n\t\tcheckPoints.add(c);\n\t\tc.setBounds(new Rectangle(640, 320, 32, 32));\n\t}", "private Geometry buildCube(ColorRGBA color) {\n Geometry cube = new Geometry(\"Box\", new Box(0.5f, 0.5f, 0.5f));\n Material mat = new Material(assetManager, \"TestMRT/MatDefs/ExtractRGB.j3md\");\n mat.setColor(\"Albedo\", color);\n cube.setMaterial(mat);\n return cube;\n }", "private Color randomColor() {\r\n Random rand = new Random();\r\n float r = rand.nextFloat();\r\n float g = rand.nextFloat();\r\n float b = rand.nextFloat();\r\n\r\n randomColor = new Color(r, g, b, 1);\r\n return randomColor;\r\n }", "Builder(final Plane plane) {\n this.plane = plane;\n }", "public Plane(Point spawnPoint, boolean flyingHorizontally, Level parentLevel){\n // Initialize the variables for the plane\n this.flyingHorizontally = flyingHorizontally;\n this.drawOps = new DrawOptions();\n this.planeImage = new Image(\"res/images/airsupport.png\");\n this.parentLevel = parentLevel;\n this.isFinished = false;\n this.bombs = new ArrayList<>();\n\n // Initialize the timekeeper that will control when a bomb should be dropped\n // '1' is added to the RNG here as the upper bound is not inclusive\n int initialDropTime = ThreadLocalRandom.current().nextInt(DROP_TIME_LOWER_BOUND,DROP_TIME_UPPER_BOUND + 1);\n this.bombDropper = new Timekeeper(initialDropTime);\n this.justDropped = false;\n // The Plane can either fly horizontally or vertically, which is specified in its constructor\n if (flyingHorizontally){\n // Set the plane facing to the right, at the leftmost point of the window and at the correct\n // height given by the spawn position\n this.currPos = new Point(0, spawnPoint.y);\n this.drawOps.setRotation(Math.PI/2);\n this.flyingHorizontally = true;\n }\n else {\n // Set the plane facing downward, at the top of the window and at the correct\n // x co-ordinate given by the spawn position\n this.currPos = new Point(spawnPoint.x, 0);\n this.drawOps.setRotation(Math.PI);\n this.flyingHorizontally = false;\n }\n }", "private Pair<Integer, Integer> getRandomColor(int level) {\n int red = (int)(Math.random() * 255);\n int green = (int)(Math.random() * 255);\n int blue = (int)(Math.random() * 255);\n\n // TODO: Improve the formula for alphas\n int alpha1 = 200 + (int)(Math.random() * 55);\n int delta = (10 - level) * 2;\n int alpha2 = alpha1 + delta * (alpha1 > 227 ? -1 : 1);\n\n int color1 = Color.argb(alpha1, red, green, blue);\n int color2 = Color.argb(alpha2, red, green, blue);\n\n return new Pair(color1, color2);\n }", "public CMLVector3(CMLPoint3 p) {\r\n Vector3 v = new Vector3(p.getEuclidPoint3());\r\n this.setXYZ3(v.getArray());\r\n }", "public void create () {\n // TODO random generation of a ~100 x 100 x 100 world\n }", "public Point3F(float x, float y, float z) {\n this.x = x;\n this.y = y;\n this.z = z;\n }", "public static Polyline randomPolyline() {\r\n\t\t// Create an empty polyline and add vertices\r\n\t\tPolyline polyline = new Polyline();\r\n\t\tint nofVertices = 2 + rand.nextInt(7);\r\n\r\n\t\tint nofSelectedVertices = 0;\r\n\t\tboolean[] selectedNames = new boolean[26];\r\n\t\t// Two vertices can not have the same name\r\n\t\tPoint chosenPoint = null;\r\n\t\tchar chosenChar = 0;\r\n\r\n\t\t// first point will always be ok\r\n\r\n\t\twhile (nofSelectedVertices < nofVertices) {\r\n\t\t\tchosenPoint = randomPoint();\r\n\t\t\tchosenChar = chosenPoint.getName().charAt(0);\r\n\t\t\tif (selectedNames[((int) chosenChar) - 65] != true) {\r\n\t\t\t\tpolyline.addLast(chosenPoint);\r\n\t\t\t\tnofSelectedVertices += 1;\r\n\t\t\t\tselectedNames[((int) chosenChar) - 65] = true;\r\n\t\t\t} else\r\n\t\t\t\tcontinue;\r\n\r\n\t\t}\r\n\t\t// Assign a colour\r\n\t\tint selectColour = rand.nextInt(3);\r\n\t\tString colour = \"\";\r\n\t\tswitch (selectColour) {\r\n\t\tcase 0:\r\n\t\t\tcolour = \"blue\";\r\n\t\t\tbreak;\r\n\r\n\t\tcase 1:\r\n\t\t\tcolour = \"red\";\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tcolour = \"yellow\";\r\n\t\t\tbreak;\r\n\r\n\t\t}\r\n\r\n\t\tpolyline.setColour(colour);\r\n\t\treturn polyline;\r\n\t}", "private Ray constructReflectedRay(Point3D point, Ray inRay, Vector n) {\n Vector v = inRay.getDir();\n /**If crossProduct with v from camera to n normal=0\n * so the camera eny way will not see the color because the ray goes to the side*/\n double vn = v.dotProduct(n);\n if (vn == 0) {\n return null;\n }\n /**will calculate the r*/\n Vector r = v.subtract(n.scale(2 * vn)); //𝒓=𝒗−𝟐∙𝒗∙𝒏∙𝒏\n return new Ray(point, r, n);\n }", "@Override\n public void drawPointCloud(PVector[] depthMap) {\n\n ArrayList<QuickHull3D> hulls = new ArrayList<QuickHull3D>();\n ArrayList<Point3d> points = new ArrayList<Point3d>();\n PVector oldVector = depthMap[0];\n QuickHull3D myHull = new QuickHull3D();\n\n for (int i = 1; i < depthMap.length; i++) {\n PVector myVector = depthMap[i];\n\n if (myVector.dist(oldVector) > 500) {\n if (points.size() > 10) {\n try {\n myHull.build(points.toArray(new Point3d[points.size()]));\n } catch(IllegalArgumentException e) {\n\n }\n hulls.add(myHull);\n myHull = new QuickHull3D();\n }\n points.clear();\n }\n\n if (myVector.z < 3000) {\n points.add(new Point3d(myVector.x, myVector.y, myVector.z));\n\n oldVector = myVector;\n }\n }\n\n// Point3d[] points = new Point3d[depthMap.length];\n// for (int i = 0; i < depthMap.length; i++) {\n// PVector vector = depthMap[i];\n// points[i] = new Point3d(vector.x, vector.y, vector.z);\n// }\n// hull.build(points);\n\n p5.fill(255, 50);\n p5.stroke(255, 70);\n\n for (QuickHull3D hull : hulls) {\n int[][] faceIndices = hull.getFaces();\n for (int i = 0; i < faceIndices.length; i++) {\n p5.beginShape();\n for (int k = 0; k < faceIndices[i].length; k++) {\n Point3d point = hull.getVertices()[faceIndices[i][k]];\n p5.vertex((float) point.x, (float) point.y, (float) point.z);\n }\n p5.endShape();\n }\n }\n\n// PApplet.println(hull.getNumFaces());\n }", "public Vector(Point3D p) {\n if (p.equals(Point3D.ZERO))\n throw new IllegalArgumentException(\"no meaning to the vector\");\n head = new Point3D(p);\n }", "Plane getPlane();", "private static List<Point> genererPointsAlea(int nbPoints) {\n /*List<Point> points = new ArrayList<>();\n Random rand = new Random(0);\n for(int i=0; i<nbPoints; i++) {\n Point p = new Point(rand.nextDouble(), rand.nextDouble());\n points.add(p);\n }\n return points;*/\n return null;\n }", "public Vector3 (double x, double y, double z) {\n set(x, y, z);\n }", "public static float distanceToPlane(float point_x, float point_y, float point_z, float normal_x, float normal_y, float normal_z)\n\t{\n\t\tfloat dp_nn = dotProduct(normal_x, normal_y, normal_z, normal_x, normal_y, normal_z);\n\t\tassert Math.abs(dp_nn) > 0.0001;\n\t\treturn (dotProduct(normal_x, normal_y, normal_z, point_x, point_y, point_z)) / dp_nn;\n\t}", "private void randomNormal(Vector3f v)\n // Create a unit vector. The x- and y- values can be +ve or -ve.\n // The z-value is positive, so facing towards the viewer.\n {\n float z = (float) Math.random(); // between 0-1\n float x = (float) (Math.random() * 2.0 - 1.0); // -1 to 1\n float y = (float) (Math.random() * 2.0 - 1.0); // -1 to 1\n v.set(x, y, z);\n v.normalize();\n }", "public static Vect3 mk(double x, double y, double z) {\n\t\treturn new Vect3(x,y,z);\n\t}", "@Test\n public void bonusTMoveCamera2() {\n Scene scene = new Scene(\"Test scene\");\n scene.setCamera(new Camera(new Point3D(3100, -3100, -2600), new Vector(-2, 2, 2), new Vector(-1, -2, 1)));\n scene.setDistance(600);\n scene.setBackground(Color.BLACK);\n scene.setAmbientLight(new AmbientLight(new Color(java.awt.Color.WHITE), 0.15));\n\n scene.addGeometries( //\n new Plane(new Material(0.4, 0.1, 60, 0, 0), new Color(java.awt.Color.DARK_GRAY),\n new Point3D(0, 400, 100), new Vector(0, -1, 0)),\n new Polygon(Color.BLACK, new Material(0.2, 0.3, 200, 0.5, 0),\n new Point3D(-1, -300, 500), new Point3D(-1, -140, 500), new Point3D(1, -140, 500), new Point3D(1, -300, 500)),\n new Sphere(new Color(java.awt.Color.yellow), new Material(0.2, 0.2, 200, 0, 0.6), // )\n 80, new Point3D(-1, -120, 500)),\n new Polygon(Color.BLACK, new Material(0.2, 0.2, 200, 0.9, 0),\n new Point3D(-150, -150, 1999), new Point3D(-150, 200, 1999), new Point3D(150, 200, 1999), new Point3D(150, -150, 1999)),\n new Sphere(new Color(800, 0, 0), new Material(0.3, 0.5, 200, 0.2, 0), // )\n 140, new Point3D(300, 260, 600)),\n new Sphere(new Color(0, 0, 200), new Material(0.25, 0.25, 20, 0, 0.25), // )\n 140, new Point3D(-260, 260, 0)),\n new Sphere(new Color(400, 20, 20), new Material(0.2, 0.5, 200, 0, 0.3), // )\n 100, new Point3D(-600, 300, 1300)),\n new Triangle(new Color(100, 300, 100), new Material(0.25, 0.5, 100, 0.25, 0),\n new Point3D(-100, 400, 150), new Point3D(100, 400, 350), new Point3D(0, 200, 250)));\n\n scene.addLights(new SpotLight(new Color(700, 400, 400), //no. 1\n new Point3D(0, 0, -1500), 1, 4E-5, 2E-7, new Vector(0, 0, 1)).setRadius(15),\n new PointLight(new Color(200, 400, 200), new Point3D(0.001, -100, 499), 1, 4E-5, 2E-7).setRadius(15),//no.2\n new PointLight(new Color(200, 200, 400), new Point3D(0.001, -50, 1000), 1, 4E-5, 2E-7).setRadius(25));//no.3\n\n ImageWriter imageWriter = new ImageWriter(\"The magical room moving camera to right - soft shadow 5\", 200, 200, 1000, 1000);\n Render render = new Render(imageWriter, scene).setSuperSampling(400).setMultithreading(3).setDebugPrint();\n\n render.renderImage();\n render.writeToImage();\n }", "public static void main(String[] args){\n Mesh3D box = Mesh3D.box(10, 20, 60);\n \n Line3D lineX = box.getLineX();\n Line3D lineY = box.getLineY();\n Line3D lineZ = box.getLineZ();\n lineX.show();\n lineY.show();\n lineZ.show();\n box.translateXYZ(100, 0.0, 0.0); \n box.show();\n Line3D line = new Line3D(); \n List<Point3D> intersects = new ArrayList<Point3D>();\n \n for(int p = 0; p < 100; p++){\n double r = 600;\n double theta = Math.toRadians(90.0);//Math.toRadians(Math.random()*180.0);\n double phi = Math.toRadians(Math.random()*360.0-180.0);\n line.set(0.0,0.0,0.0, \n Math.sin(theta)*Math.cos(phi)*r,\n Math.sin(theta)*Math.sin(phi)*r,\n Math.cos(theta)*r\n );\n intersects.clear();\n box.intersectionRay(line, intersects);\n System.out.println(\"theta/phi = \" + Math.toDegrees(theta) + \" \"\n + Math.toDegrees(phi) + \" intersects = \" + intersects.size());\n \n }\n }" ]
[ "0.67413217", "0.6714998", "0.61964524", "0.6093654", "0.59089005", "0.5862528", "0.58178437", "0.55666804", "0.55534023", "0.54172254", "0.53945047", "0.5372887", "0.5359668", "0.5356643", "0.5343029", "0.53212047", "0.53153926", "0.53046894", "0.5304168", "0.53025776", "0.52693975", "0.5257124", "0.5246412", "0.5204056", "0.5199655", "0.51993316", "0.5182396", "0.5155315", "0.51533157", "0.51476634", "0.51354104", "0.5111882", "0.5099855", "0.50869787", "0.50848955", "0.50785345", "0.5067416", "0.50541586", "0.50471634", "0.50297844", "0.5020651", "0.50130993", "0.5006636", "0.50057596", "0.50023186", "0.5001312", "0.4998715", "0.499643", "0.49892733", "0.4975303", "0.49745134", "0.49710664", "0.496978", "0.49685058", "0.4956475", "0.49537474", "0.49533966", "0.49493805", "0.4945844", "0.49456885", "0.4939777", "0.49277323", "0.49254882", "0.4924376", "0.49172375", "0.49153775", "0.4909827", "0.49014342", "0.48823386", "0.4880841", "0.4876892", "0.48718014", "0.48694587", "0.4868847", "0.48617044", "0.4860118", "0.48527968", "0.4851961", "0.48453218", "0.48447755", "0.48443347", "0.4843151", "0.48411936", "0.48347598", "0.48060414", "0.48055708", "0.4804154", "0.48018926", "0.48011786", "0.47966063", "0.47878098", "0.4787768", "0.47865856", "0.4785894", "0.4784501", "0.47844514", "0.47772443", "0.4772855", "0.47704694", "0.47702336" ]
0.73527175
0
Constructs a new plane from the three points with the given color
public Plane(Point a, Point b, Point c, Color colour) { origin = a; normal = new Vector(a, b).crossProduct(new Vector(a, c)); this.c = colour; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Plane(Point a, Point b, Point c) {\n\t\tthis(a, b, c, new Color((int) (Math.random() * 256),\n\t\t\t\t(int) (Math.random() * 256), (int) (Math.random() * 256)));\n\t}", "public Plane(Point origin, Vector normal, Color c) {\n\t\tthis.origin = origin;\n\t\tthis.normal = normal;\n\n\t\tthis.c = c;\n\t}", "public Plane(Point origin, Vector normal) {\n\t\tthis(origin, normal, new Color((int) (Math.random() * 256),\n\t\t\t\t(int) (Math.random() * 256), (int) (Math.random() * 256)));\n\t}", "private void init(Point[] points, int color) {\n // Set paint\n paint = new Paint(Paint.ANTI_ALIAS_FLAG);\n paint.setColor(color);\n\n setPadding(50,50,50,50);\n setBackgroundColor(Color.TRANSPARENT);\n\n // Create path for triangle\n path = new Path();\n path.setFillType(Path.FillType.EVEN_ODD);\n // Draw triangle\n path.moveTo(points[0].x, points[0].y);\n path.lineTo(points[1].x,points[1].y);\n path.lineTo(points[2].x,points[2].y);\n path.lineTo(points[0].x,points[0].y);\n path.close();\n }", "public Plane(double a, double b, double c, double d) {\n this.a = a;\n this.b = b;\n this.c = c;\n this.d = d;\n }", "public Plane3(Plane3 p) {\n this.a = p.a; this.b = p.b; this.c = p.c; this.v = p.v; this.d = p.d;\n }", "protected Patch generatePatch(Point2D[] points, float[][] color) {\n/* 52 */ return new TensorPatch(points, color);\n/* */ }", "public Polyhedron (Transform t, String filename, boolean active, boolean cull, String color)\n\t{\n\t\tsuper (t, cull);\n\t\tsuper.setActive(active);\n\t\tReadFile(filename);\n\t\tFileName = filename;\n\t\ttry {\n\t\t\tField f = Color.class.getField(color);\n\t\t\tthis.setColor((Color)f.get(null));\n\t\t}\n\t\tcatch (Exception e1)\n\t\t{\n\t\t\ttry {\n\t\t\t\tthis.color = Color.decode(color);\n\t\t\t}\n\t\t\tcatch (Exception e2) {\n\t\t\t\te1.printStackTrace();\n\t\t\t\te2.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public Triangle(Context context, Point[] points, int color) {\n super(context);\n init(points, color);\n }", "public Plane() {\r\n\t\tvecX = new Vector3D();\r\n\t\tvecY = new Vector3D();\r\n\t\tnorm = new Vector3D();\r\n\t\tthis.setD(0);\r\n\t\tpos = new Position3D();\r\n\t}", "public ColorVector(float red, float green, float blue) {\n this.red = red;\n this.green = green;\n this.blue = blue;\n }", "public abstract Color3f calcColor(Vector3f pos, Vector3f normal, Material m);", "public Bitmap3DColor(float red, float green, float blue, float alpha) {\n this(red, green, blue, alpha, red, green, blue, alpha, red, green, blue, alpha, red, green, blue, alpha);\n }", "public Bitmap3DColor(\n float v1Red, float v1Green, float v1Blue, float v1Alpha,\n float v2Red, float v2Green, float v2Blue, float v2Alpha,\n float v3Red, float v3Green, float v3Blue, float v3Alpha,\n float v4Red, float v4Green, float v4Blue, float v4Alpha\n ) {\n if(\n v1Red < 0 || v1Red > 1 || v2Red < 0 || v2Red > 1 || v3Red < 0 || v3Red > 1 || v4Red < 0 || v4Red > 1 ||\n v1Green < 0 || v1Green > 1 || v2Green < 0 || v2Green > 1 || v3Green < 0 || v3Green > 1 || v4Green < 0 || v4Green > 1 ||\n v1Blue < 0 || v1Blue > 1 || v2Blue < 0 || v2Blue > 1 || v3Blue < 0 || v3Blue > 1 || v4Blue < 0 || v4Blue > 1 ||\n v1Alpha < 0 || v1Alpha > 1 || v2Alpha < 0 || v2Alpha> 1 || v3Alpha < 0 || v3Alpha > 1 || v4Alpha < 0 || v4Alpha > 1\n ) {\n throw new IllegalArgumentException(\"Values should be between 0 and 1\");\n }\n\n float[] colors = {\n v1Red, v1Green, v1Blue, v1Alpha,\n v2Red, v2Green, v2Blue, v2Alpha,\n v3Red, v3Green, v3Blue, v3Alpha,\n v4Red, v4Green, v4Blue, v4Alpha\n };\n\n ByteBuffer clb = ByteBuffer.allocateDirect(colors.length * 4);\n clb.order(ByteOrder.nativeOrder());\n this.colorBuffer = clb.asFloatBuffer();\n this.colorBuffer.put(colors);\n this.colorBuffer.position(0);\n }", "public Polyhedron (Transform t, String filename, boolean active, boolean cull, Color color)\n\t{\n\t\tsuper (t, cull);\n\t\tsuper.setActive(active);\n\t\tReadFile(filename);\n\t\tFileName = filename;\n\t\tthis.color = color;\n\t}", "@Override\n\tpublic Color getColor(Vector point)\n\t{\n\t\tVector d = point.sub(position);\n\t\t\n\t\tdouble\tlenx = Math.floor( d.dot(oX) ),\n\t\t\t\tleny = Math.floor( d.dot(oY) );\n\t\t\n\t\t//int ModularDistance = Math.abs( (int) (lenx + leny) ) % 2;\n\t\tif ( 0 == Math.abs( (int) (lenx + leny) ) % 2)\n\t\t{\n\t\t\treturn c1.dup();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn c2.dup();\n\t\t}\n\t}", "public Planet (double x, double y, double r, double m, double vx, double vy, Color c) {\n this.xCoor = x;\n this.yCoor = y;\n this.rad = r;\n this.mass = m;\n this.xVel = vx;\n this.yVel = vy;\n this.col = c; \n \n }", "public Pj3dPlane Pj3dPlane(int x, int z)\r\n\t{\r\n \tPj3dPlane plane = new Pj3dPlane(this, x, z);\r\n\t\treturn plane;\r\n\t}", "public CheckPlane( Vector p, Vector n, Vector o )\n\t{\n\t\tsuper(p,n,new Color());\n\t\tsetOrientation(o);\n\t\tsetColor( new Color(0.01,0.01,0.01), new Color(0.99,0.99,0.99) );\n\t}", "public float[] makeVertices(float radius, float[] color)\n {\n int noOfComponents = 3 + 3 + 3; // 3 position coordinates, 3 color coordinates, 3 normal coordinates\n float[] vertices = new float[(verticalResolution+1) * horizontalResolution * noOfComponents];\n int vertexNumberInc = 3 + 3 + 3; // three position coordinates, three color values, three normal coordinates\n int vertexNumber = 0;\n\n float elevation = 0;\n float elevationInc = (float) (Math.PI / verticalResolution);\n float azimuth = 0;\n float azimuthInc = (float) (2* Math.PI / horizontalResolution);\n for(int elevationIndex = 0; elevationIndex <= verticalResolution; elevationIndex++) {\n azimuth = 0;\n for(int azimuthIndex = 0; azimuthIndex < horizontalResolution; azimuthIndex++) {\n // position coordinates in spherical coordinates\n float xPos = radius * (float) (Math.sin(elevation) * Math.cos(azimuth));\n float yPos = radius * (float) (Math.sin(elevation) * Math.sin(azimuth));\n float zPos = radius * (float) Math.cos(elevation);\n vertices[vertexNumber] = xPos;\n vertices[vertexNumber+1] = yPos;\n vertices[vertexNumber+2] = zPos;\n // color coordinates (for all vertices the same)\n vertices[vertexNumber+3] = color[0];\n vertices[vertexNumber+4] = color[1];\n vertices[vertexNumber+5] = color[2];\n // coordinates of normal vector\n // for a sphere this vector is identical to the normalizes position vector\n float normalizationFactor = 1 / (float) Math.sqrt((xPos * xPos) + (yPos * yPos) + (zPos * zPos));\n vertices[vertexNumber+6] = xPos * normalizationFactor;\n vertices[vertexNumber+7] = yPos * normalizationFactor;\n vertices[vertexNumber+8] = zPos * normalizationFactor;\n\n vertexNumber += vertexNumberInc;\n azimuth += azimuthInc;\n }\n elevation += elevationInc;\n }\n return vertices;\n }", "public Sphere(Point3D c, double r, Color color)\r\n\t{\r\n\t\tthis(c, r);\r\n\t\tsuper._emission = color;\r\n\t}", "static Vector4d computePlane(Vector3d a, Vector3d b, Vector3d c)\n\t{\n\t\tVector4d plane = new Vector4d();\n\t\t\n\t\tVector3d ab = new Vector3d();\n\t\tab.sub(b, a);\n\t\t\n\t\tVector3d ac = new Vector3d();\n\t\tac.sub(c, a);\n\t\t\n\t\tVector3d n = new Vector3d();\n\t\tn.cross(ab, ac);\n\t\tn.normalize();\n\t\t\n\t\tplane.set(n);\n\t\tplane.w = - a.dot(n);\n\t\t\n\t\treturn plane;\n\t}", "private Geometry buildCube(ColorRGBA color) {\n Geometry cube = new Geometry(\"Box\", new Box(0.5f, 0.5f, 0.5f));\n Material mat = new Material(assetManager, \"TestMRT/MatDefs/ExtractRGB.j3md\");\n mat.setColor(\"Albedo\", color);\n cube.setMaterial(mat);\n return cube;\n }", "public Point3D(Point3D point) {\n\t this.x = point.x;\n\t this.y = point.y;\n\t this.z = point.z;\n }", "public abstract Color3f colorOf(SoftwareMaterial kMaterial,\r\n SoftwareVertexProperty kVertexProperty,\r\n Point3f kEye);", "public Vec3D(Point3D point) {\n\t\tx = point.x;\n\t\ty = point.y;\n\t\tz = point.z;\n\t}", "public point(int a, int b, int c) {\n\t\t\t\tx = a;\n\t\t\t\ty = b;\n\t\t\t\tz = c;\n\t\t\t}", "Color3b colorAt(int xIndex, int yIndex);", "protected abstract BaseVector3d createBaseVector3d(double x, double y, double z);", "public static native GPolyline create(JavaScriptObject points, String color)/*-{\r\n\t\treturn new $wnd.GPolyline(points, color);\r\n\t}-*/;", "public Piece(Color color) {\r\n this.type = Type.SINGLE;\r\n this.color = color;\r\n }", "public Light(Vector3f position, Vector3f color) {\n\t\tthis.position = position;\n\t\tthis.color = color;\n\t}", "public void build_buffers(float[] color /*RGBA*/) {\n int i;\n int offset = 0;\n final float[] vertexData = new float[\n mVertices.size() / 3\n * STRIDE_IN_FLOATS];\n\n float vx, vy, vz;\n\n /*\n * loop to generate vertices.\n */\n for (i = 0; i < mVertices.size(); i += 3) {\n\n vertexData[offset++] = mVertices.get(i + 0);\n vertexData[offset++] = mVertices.get(i + 1);\n vertexData[offset++] = mVertices.get(i + 2);\n\n vertexData[offset++] = 0.0f; // set normal to zero for now\n vertexData[offset++] = 0.0f;\n vertexData[offset++] = 0.0f;\n\n if (mHaveMaterialColor) {\n vertexData[offset++] = mColors.get(i + 0);\n vertexData[offset++] = mColors.get(i + 1);\n vertexData[offset++] = mColors.get(i + 2);\n vertexData[offset++] = 1.0f; // TODO: unwire the alpha?\n } else {\n // color value\n vertexData[offset++] = color[0];\n vertexData[offset++] = color[1];\n vertexData[offset++] = color[2];\n vertexData[offset++] = color[3];\n }\n }\n\n // calculate the normal,\n // set it in the packed VBO.\n // If current normal is non-zero, average it with previous value.\n\n int v1i, v2i, v3i;\n for (i = 0; i < mIndices.size(); i += 3) {\n v1i = mIndices.get(i + 0) - 1;\n v2i = mIndices.get(i + 1) - 1;\n v3i = mIndices.get(i + 2) - 1;\n\n v1[0] = mVertices.get(v1i * 3 + 0);\n v1[1] = mVertices.get(v1i * 3 + 1);\n v1[2] = mVertices.get(v1i * 3 + 2);\n\n v2[0] = mVertices.get(v2i * 3 + 0);\n v2[1] = mVertices.get(v2i * 3 + 1);\n v2[2] = mVertices.get(v2i * 3 + 2);\n\n v3[0] = mVertices.get(v3i * 3 + 0);\n v3[1] = mVertices.get(v3i * 3 + 1);\n v3[2] = mVertices.get(v3i * 3 + 2);\n\n n = XYZ.getNormal(v1, v2, v3);\n\n vertexData[v1i * STRIDE_IN_FLOATS + 3 + 0] = n[0] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v1i * STRIDE_IN_FLOATS + 3 + 1] = n[1] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v1i * STRIDE_IN_FLOATS + 3 + 2] = n[2] * NORMAL_BRIGHTNESS_FACTOR;\n\n vertexData[v2i * STRIDE_IN_FLOATS + 3 + 0] = n[0] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v2i * STRIDE_IN_FLOATS + 3 + 1] = n[1] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v2i * STRIDE_IN_FLOATS + 3 + 2] = n[2] * NORMAL_BRIGHTNESS_FACTOR;\n\n vertexData[v3i * STRIDE_IN_FLOATS + 3 + 0] = n[0] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v3i * STRIDE_IN_FLOATS + 3 + 1] = n[1] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v3i * STRIDE_IN_FLOATS + 3 + 2] = n[2] * NORMAL_BRIGHTNESS_FACTOR;\n\n }\n\n /*\n * debug - print out list of formated vertex data\n */\n// for (i = 0; i < vertexData.length; i+= STRIDE_IN_FLOATS) {\n// vx = vertexData[i + 0];\n// vy = vertexData[i + 1];\n// vz = vertexData[i + 2];\n// String svx = String.format(\"%6.2f\", vx);\n// String svy = String.format(\"%6.2f\", vy);\n// String svz = String.format(\"%6.2f\", vz);\n//\n// Log.w(\"data \", i + \" x y z \"\n// + svx + \" \" + svy + \" \" + svz + \" and color = \"\n// + vertexData[i + 6] + \" \" + vertexData[i + 7] + \" \" + vertexData[i + 8]);\n// }\n\n final FloatBuffer vertexDataBuffer = ByteBuffer\n .allocateDirect(vertexData.length * BYTES_PER_FLOAT)\n .order(ByteOrder.nativeOrder())\n .asFloatBuffer();\n vertexDataBuffer.put(vertexData).position(0);\n\n if (vbo[0] > 0) {\n GLES20.glDeleteBuffers(1, vbo, 0);\n }\n GLES20.glGenBuffers(1, vbo, 0);\n\n if (vbo[0] > 0) {\n GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, vbo[0]);\n GLES20.glBufferData(GLES20.GL_ARRAY_BUFFER, vertexDataBuffer.capacity() * BYTES_PER_FLOAT,\n vertexDataBuffer, GLES20.GL_STATIC_DRAW);\n\n // GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, 0);\n } else {\n // errorHandler.handleError(ErrorHandler.ErrorType.BUFFER_CREATION_ERROR, \"glGenBuffers\");\n throw new RuntimeException(\"error on buffer gen\");\n }\n\n /*\n * create the buffer for the indices\n */\n offset = 0;\n int x;\n final short[] indexData = new short[mIndices.size()];\n for (x = 0; x < mIndices.size(); x++) {\n\n short index = mIndices.get(x).shortValue();\n indexData[offset++] = --index;\n }\n mTriangleIndexCount = indexData.length;\n\n /*\n * debug - print out list of formated vertex data\n */\n// short ix, iy, iz;\n// for (i = 0; i < indexData.length; i += 3) {\n// ix = indexData[i + 0];\n// iy = indexData[i + 1];\n// iz = indexData[i + 2];\n//\n// Log.w(\"data \", i + \" i1 i2 i3 \"\n// + ix + \" \" + iy + \" \" + iz );\n// }\n\n final ShortBuffer indexDataBuffer = ByteBuffer\n .allocateDirect(indexData.length * BYTES_PER_SHORT).order(ByteOrder.nativeOrder())\n .asShortBuffer();\n indexDataBuffer.put(indexData).position(0);\n\n if (ibo[0] > 0) {\n GLES20.glDeleteBuffers(1, ibo, 0);\n }\n GLES20.glGenBuffers(1, ibo, 0);\n if (ibo[0] > 0) {\n GLES20.glBindBuffer(GLES20.GL_ELEMENT_ARRAY_BUFFER, ibo[0]);\n GLES20.glBufferData(GLES20.GL_ELEMENT_ARRAY_BUFFER,\n indexDataBuffer.capacity()\n * BYTES_PER_SHORT, indexDataBuffer, GLES20.GL_STATIC_DRAW);\n GLES20.glBindBuffer(GLES20.GL_ELEMENT_ARRAY_BUFFER, 0);\n GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, 0);\n } else {\n // errorHandler.handleError(ErrorHandler.ErrorType.BUFFER_CREATION_ERROR, \"glGenBuffers\");\n throw new RuntimeException(\"error on buffer gen\");\n }\n }", "public Point(int x, int y, Color color) {\r\n this.x = x;\r\n this.y = y;\r\n this.color = color;\r\n }", "public\n\tVector3( Point3 point )\n\t{\n\t\tdata = new double[3];\n\t\tcopy( point );\n\t}", "public Light(Vec3f pos, Vec3f color, float intensity, float constant, float linear, float exponent)\n\t{\n\t\tm_light_type = Config.g_light_types.POINT;\n\t\tm_pos = pos;\n\t\tm_color = color;\n\t\tm_intensity = intensity;\n\t\tm_constant = constant;\n\t\tm_linear = linear;\n\t\tm_exponent = exponent;\n\t}", "public Triangle(Point a, Point b, Point c){\n this.a=a;\n this.b=b;\n this.c=c;\n }", "public Piezas(String color) {\r\n this.color = color;\r\n }", "public Point3(Point3 p) {\n this.x = p.x; this.y = p.y; this.z = p.z;\n }", "void setColor(Vector color);", "Point3D (double x, double y, double z) {\n this.x = x;\n this.y = y;\n this.z = z;\n }", "public Point3D(double x,double y,double z)\n {\n _x=x;\n _y=y;\n _z=z;\n }", "private void createMiniTriangles(int[] xPoints, int[] yPoints, int[] color) {\n\t\tint[] xMidpoints = new int[NUM_TRIANGLE_SIDES];\n\t\tint[] yMidpoints = new int[NUM_TRIANGLE_SIDES];\n\n\t\tfor (int i = 0; i < NUM_TRIANGLE_SIDES; i++) {\n\t\t\txMidpoints[i] = avg(xPoints[i], xPoints[(i + 1) % NUM_TRIANGLE_SIDES]);\n\t\t\tyMidpoints[i] = avg(yPoints[i], yPoints[(i + 1) % NUM_TRIANGLE_SIDES]);\n\t\t}\n\n\t\t// midpoint i, midpoint i+1, point i\n\t\tfor (int i = 0; i < NUM_TRIANGLE_SIDES; i++) {\n\t\t\tint[] xMini = {xMidpoints[i], xMidpoints[(i + TRI_TYPE) % NUM_TRIANGLE_SIDES], xPoints[i]};\n\t\t\tint[] yMini = {yMidpoints[i], yMidpoints[(i + TRI_TYPE) % NUM_TRIANGLE_SIDES], yPoints[i]};\n\t\t\tint colorVal = (i + this.rotateOffset) % NUM_TRIANGLE_SIDES;\n\t\t\tthis.drawMiniTriangle(xMini, yMini, color[colorVal], colorVal);\n\t\t}\n\t\tif (IS_ROT_ON) {\n\t\t\tthis.rotateOffset += ROT_OFFSET_BY;\n\t\t}\n\t}", "public ColorVector multiple(PropertyVector c) {\n return new ColorVector(c.getRedParameter() * red, c.getGreenParameter() * green, c.getBlueParameter() * blue);\n }", "private static Color newColor(int red, int green, int blue) {\n return new Color(red / 255.0, green / 255.0, blue / 255.0);\n }", "public PieceView(Color color, Type type) {\n this.color = color;\n this.type = type;\n }", "public static void posToPlane(Vector3 result, Vector3 pos, Vector3 normal)\n\t{\n\t\tfloat dp_n_n = normal.dot(normal);\n\t\tif (dp_n_n == 0) {\n\t\t\tthrow new IllegalArgumentException(\"Normal is too small!\");\n\t\t}\n\t\tfloat dp_p_n = pos.dot(normal);\n\t\tfloat pos_x = pos.x;\n\t\tfloat pos_y = pos.y;\n\t\tfloat pos_z = pos.z;\n\t\tresult.set(normal);\n\t\tresult.scl(-dp_p_n);\n\t\tresult.scl(1f / dp_n_n);\n\t\tresult.add(pos_x, pos_y, pos_z);\n\t}", "Obj(double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3){\t// CAMBIAR LAS COORDENADAS X,Y,Z CON 0,1 PARA CONSTRUIR PRISMA, CILINDRO, PIRAMIDE, CONO Y ESFERA.\n w\t= new Point3D[4];\n\tvScr\t= new Point2D[4];\n \n w[0]\t= new Point3D(0, 0, 0); // desde la base\n\tw[1]\t= new Point3D(x1, y1, z1);\n\tw[2]\t= new Point3D(x2, y2, z2);\n\tw[3]\t= new Point3D(x3, y3, z3);\n \n\tobjSize = (float) Math.sqrt(12F); \n rho\t= 5 * objSize;\n }", "public PointDetails setColor(Color color){\n\t\t\treturn setColor(color.getRGB());\n\t\t}", "protected Vertex(int color) {\n\t\tthis.color = color;\n\t\tthis.familyColorList = new LinkedList<Integer>();\n\t\tthis.nextColorList = new LinkedList<Integer>();\n\t\tthis.familyColorList.add(color);\n\t\tthis.width = 1;\n\t\tthis.nextWidth = 0;\n\t\tupdateMap(color, color); // vertex is not mapped yet\n\t}", "@Test\n public void Constructor_test() \n {\n // ============ Equivalence Partitions Tests ==============\n\n // TC01: creating the Plane: x + y + z = 1 with the constructor\n\t // that get 3 Point3D that contain in the Plane\n try \n {\n new Plane(new Point3D(1,0,0), new Point3D(0,1,0), new Point3D(0,0,1));\n } \n catch (IllegalArgumentException e) \n {\n fail(\"Failed constructing a correct Plane\");\n }\n \n // TC02: creating the Plane: x + y + z = 1 with the constructor\n \t // that get Point3D that contain in the Plane and Vector- the normal of the Plane.\n try \n {\n new Plane(new Point3D(1,0,0), new Vector(1,1,1));\n } \n catch (IllegalArgumentException e) \n {\n fail(\"Failed constructing a correct Plane\");\n }\n \n // =============== Boundary Values Tests ==================\n \n // TC03: creating the Plane: z = 0 with the constructor\n \t // that get 3 Point3D that contain in the Plane\n try \n {\n new Plane(new Point3D(1,0,0), new Point3D(0,1,0), new Point3D(2,3,0));\n } \n catch (IllegalArgumentException e) \n {\n fail(\"Failed constructing a correct Plane\");\n }\n \n // TC04: creating the Plane: x + y + z = 1 with the constructor\n \t // that get Point3D that contain in the Plane and Vector- the normal of the Plane.\n try \n {\n new Plane(new Point3D(1,0,0), new Vector(0,0,1));\n } \n catch (IllegalArgumentException e) \n {\n fail(\"Failed constructing a correct Plane\");\n }\n }", "RGB getNewColor();", "private Ray constructReflectedRay(Point3D point, Ray inRay, Vector n) {\n Vector v = inRay.getDir();\n /**If crossProduct with v from camera to n normal=0\n * so the camera eny way will not see the color because the ray goes to the side*/\n double vn = v.dotProduct(n);\n if (vn == 0) {\n return null;\n }\n /**will calculate the r*/\n Vector r = v.subtract(n.scale(2 * vn)); //𝒓=𝒗−𝟐∙𝒗∙𝒏∙𝒏\n return new Ray(point, r, n);\n }", "public ColorPaletteBuilder color3(Color color)\n {\n if (color3 == null) colorsCount++;\n this.color3 = color;\n return this;\n }", "public Point3(float x, float y, float z) {\r\n\t\tsuper(x, y);\r\n\t\tthis.z = z;\r\n\t}", "public Sphere(Point3D c, double r, Color color, Material material)\r\n\t{\r\n\t\tthis(c,r, color);\r\n\t\tsuper._material = material;\r\n\t}", "public PointSetOverlay createPointSetOverlay(int width, Color color);", "public int colorVertices();", "public List<Point> getPieces(Color pColor){\r\n List<Point> result = new LinkedList<>();\r\n Point pos = new Point();\r\n for (int i = 0; i < 8; i++){\r\n pos.setFirst(i);\r\n for (int j = 0; j < 8; j++){\r\n pos.setSecond(j);\r\n if((isBlack(pColor) && isBlack(pos)) || (isRed(pColor) && isRed(pos))){\r\n result.add(pos.clone());\r\n }\r\n }\r\n } \r\n return result;\r\n }", "public static native GPolyline create(JavaScriptObject points, String color, int weight, double opacity)/*-{\r\n \treturn new $wnd.GPolyline(points, color, weight, opacity);\r\n }-*/;", "public PieceView2D(PieceEnum pieceType, Color color) {\n super(pieceType, color);\n\n setColor(color);\n\n }", "public Shape (int x, int y, Color color)\r\n {\r\n\tthis.x = x;\r\n\tthis.y = y;\r\n\tthis.color = color;\r\n }", "public Shape(Color c) {\n\t\tcolor = c;\n\t}", "public static Vect3 mkXYZ(double x, double y, double z) {\n\t\treturn new Vect3(x,y,z);\n\t}", "public CMLVector3(CMLPoint3 p) {\r\n Vector3 v = new Vector3(p.getEuclidPoint3());\r\n this.setXYZ3(v.getArray());\r\n }", "public Plate(boolean visible, Color3f color, float transp) \r\n {\r\n setA(1f); setB(1f);\r\n this.setGeometry(createGeometry (getA(), getB()));\r\n this.setAppearance(createAppearance(visible,color, transp));\r\n \r\n }", "public Vertex3D(Vertex3D c) {\n this(c.x, c.y, c.z);\n }", "public LineElement(\n final double firstPointX, final double firstPointY,\n final double secondPointX, final double secondPointY,\n final double width, final Color color) {\n this.firstPointX = firstPointX;\n this.firstPointY = firstPointY;\n this.secondPointX = secondPointX;\n this.secondPointY = secondPointY;\n this.width = width;\n this.color = color;\n }", "public Light(double xPos, double yPos, double zPos){\n this(xPos, yPos, zPos, 1.0, 1.0, 1.0, 1);\n }", "public void createPlane(Group planeGroup, String id, float latitude, float longitude, float angle, PhongMaterial material, double scale) {\n // Load geometry\n ObjModelImporter planeImporter = new ObjModelImporter();\n try {\n URL modelUrl = getClass().getResource(\"/flightlive/res/Plane/plane.obj\");\n planeImporter.read(modelUrl);\n } catch(ImportException e) {\n System.err.println(e.getMessage());\n }\n MeshView[] planeMeshViews = planeImporter.getImport();\n\n // Setting the material\n for (MeshView mv : planeMeshViews)\n mv.setMaterial(material);\n\n Fx3DGroup planeScale = new Fx3DGroup(planeMeshViews);\n Fx3DGroup planeOffset = new Fx3DGroup(planeScale);\n Fx3DGroup plane = new Fx3DGroup(planeOffset);\n\n Point3D position = geoCoordTo3dCoord(latitude, longitude);\n // Transformations on the object\n planeScale.set3DScale(0.015);\n planeOffset.set3DTranslate(0, -0.01, 0);\n planeOffset.set3DRotate(0, 180 + angle, 0);\n\n plane.set3DTranslate(position.getX(),position.getY(),position.getZ());\n plane.set3DRotate(\n -java.lang.Math.toDegrees(java.lang.Math.asin(position.getY())) - 90,\n java.lang.Math.toDegrees(java.lang.Math.atan2(position.getX(), position.getZ())),\n 0);\n plane.set3DScale(scale);\n plane.setId(id);\n\n planeGroup.getChildren().add(plane);\n }", "public PointDetails setColor(IntSupplier color){\n\t\t\tthis.color = color;\n\t\t\treturn this;\n\t\t}", "public static Shader createFixedShader( final String name, Color color ) {\n final float[] fixedRgba = color.getRGBComponents( new float[ 4 ] );\n return new BasicShader( name ) {\n public void adjustRgba( float[] rgba, float value ) {\n for ( int i = 0; i < 4; i++ ) {\n rgba[ i ] = fixedRgba[ i ];\n }\n }\n };\n }", "@Override\r\n\tpublic WB_Normal3d addAndCopy(final WB_Point3d p) {\r\n\t\treturn new WB_Normal3d(x + p.x, y + p.y, z + p.z);\r\n\t}", "public static native GPolyline create(JavaScriptObject points, String color, int weight)/*-{\r\n\t\treturn new $wnd.GPolyline(points, color, weight);\r\n\t}-*/;", "public PencilPen(final Color color, final double segmentLength) {\n super(new Color(color.getRGB() | 0x40000000, true), segmentLength);\n }", "public Player(int startR ,int endR , int startC ,int endC , String color) { // constractor\n // startR - start row for creating the pieces , startC - start colomn for creating the pieces\n // endR - End row for creating the pieces , endC - END colomn for creating the pieces\n this.color=color;\n \n for(int i = startR; i <= endR; i++){\n for(int j = startC ; j <= endC ;j++){\n pieces.put(new Integer (j*Board.N+i), new Piece(i,j, color)); // new piece\n teritory.add(j* Board.N +i); // saving index of teritory base \n }\n }\n }", "public Vector(Coordinate x1, Coordinate y1, Coordinate z1) {\n Point3D p = new Point3D(x1, y1, z1);\n if (p.equals(Point3D.ZERO))\n throw new IllegalArgumentException(\"no meaning to the vector\");\n head=new Point3D(p);\n }", "public Polytope(PolytopePoint a, PolytopePoint b, PolytopePoint c, PolytopePoint d){\n\t\tfaces = new ArrayList<PolytopeTriangle>();//construct array list to hold the faces of the polytope\n\t\t//construct the initial faces of the polytope using the given vertices that are from the simplex\n\t\t//GJK terminated with\n\t\tfaces.add(new PolytopeTriangle(a,b,c));\n\t\tfaces.add(new PolytopeTriangle(a,c,d));\n\t\tfaces.add(new PolytopeTriangle(a,d,b));\n\t\tfaces.add(new PolytopeTriangle(b,d,c));\n\t}", "public Pellets(Color c, int num)\n {\n color = c;\n \n for (int i=0; i<num; i++)\n {\n Point p = new Point(gen.nextInt(MunchGame.BOARD_WIDTH-1)+1,\n gen.nextInt(MunchGame.BOARD_HEIGHT-1)+1);\n pellets.add(p);\n }\n }", "public void _draw(Transform t, Vector3f color) {\n\t\t// Bounds\n\t\tfor (int i = 0; i < points.length; i++) {\n\t\t\tVector2f a = points[i].clone().add(center);\n\t\t\tVector2f b = points[(i+1) % points.length].clone().add(center);\n\t\t\t\n\t\t\t// Scale\n\t\t\ta.x *= t.scale.x;\n\t\t\ta.y *= t.scale.y;\n\t\t\t// Rotate\n\t\t\ta = Vector2f.rotate(a, (float) t.rotation, null);\n\t\t\t// Translate\n\t\t\ta.add(t.position);\n\t\t\t\n\t\t\t// Scale\n\t\t\tb.x *= t.scale.x;\n\t\t\tb.y *= t.scale.y;\n\t\t\t// Rotate\n\t\t\tb = Vector2f.rotate(b, (float) t.rotation, null);\n\t\t\t// Translate\n\t\t\tb.add(t.position);\n\t\t\t\n\t\t\tsk.debug.Debug.drawLine(a, b, color);\n\t\t}\n\t\t\n\t\t// Normals\n\t\tfor (Vector2f n : normals) {\n\t\t\tVector2f a = getCenter(t);\n\t\t\tVector2f b = getCenter(t).clone().add(n.clone().rotate(t.rotation));\n\t\t\t\t\t\n\t\t\tsk.debug.Debug.drawLine(a, b, (Vector3f) color.scale(0.5f));\t\t;\n\t\t}\n\t\t\n\t\t// The broadphase check\n\t\tsk.debug.Debug.drawCircle(getCenter(t), getBP(t));\n\t}", "public TriangleElt3D(Point3D point1, Point3D point2, Point3D point3,\n\t\t\tScalarOperator sop) {\n\t\tthis(new Point3D[] { point1, point2, point3 }, sop);\n\t}", "colorChoice(Vec3 color) {\n this.color = color;\n }", "public TriangleElt3D(Point3D point, Segment3D seg, ScalarOperator sop) {\n\t\tthis(new Point3D[] { point, seg.getPoint(0), seg.getPoint(1) }, sop);\n\t}", "public Plane(Vector3D vecX, Vector3D vecY, Position3D pos) {\r\n\t\tthis.vecX = vecX.normalize();\r\n\t\tthis.vecY = this.vecX.perp(vecY).normalize();\r\n\t\tthis.norm = this.vecX.cross(this.vecY);\r\n\t\tthis.pos = pos;\r\n\t\tthis.setD(norm.dot(this.pos.toVec()));\r\n\t}", "protected Color createColor(int red, int green, int blue, int alpha) {\n if ((red <= 1) && (green <= 1) && (blue <= 1) && ((alpha <= 1) || (alpha == 255))) {\n // rgba either 0 or 1\n Color c = new Color((float)red, (float)green, (float)blue, (alpha == 255) ? 1.0f : (float)alpha);\n// System.out.println(c);\n return c;\n }\n return super.createColor(red, green, blue, alpha);\n }", "public Point3F(float x, float y, float z) {\n this.x = x;\n this.y = y;\n this.z = z;\n }", "public MyCone(int color, int id) {\n\t\tsuper();\n\t\tthis.color = color;\n\t\tthis.id = id;\n\t}", "public Vector(double x1, double y1, double z1) {\n Point3D p = new Point3D(x1, y1, z1);\n if (p.equals(Point3D.ZERO))\n throw new IllegalArgumentException(\"no meaning to the vector\");\n head=new Point3D(p);\n }", "public WB_Normal3d(final WB_Point3d v) {\r\n\t\tsuper(v);\r\n\t}", "public Sphere (final Point3 c, final double r, final Material material) {\n super(material);\n\n this.c = c;\n this.r = r;\n }", "public ColorVector multiple(ColorVector c) {\n return new ColorVector(c.getRed() * red, c.getGreen() * green, c.getBlue() * blue);\n }", "public ColorField(int rStart, int gStart, int bStart, int alphaStart, int rEnd, int gEnd, int bEnd, int alphaEnd) {\n this.rStart = rStart;\n this.gStart = gStart;\n this.bStart = bStart;\n this.alphaStart = alphaStart;\n this.rEnd = rEnd;\n this.gEnd = gEnd;\n this.bEnd = bEnd;\n this.alphaEnd = alphaEnd;\n int r = Math.abs(rStart - rEnd) / (colors.length);\n int g = Math.abs(gStart - gEnd) / (colors.length);\n int b = Math.abs(bStart - bEnd) / (colors.length);\n int alpha = Math.abs(alphaStart - alphaEnd) / (colors.length);\n for (int i = 0; i < colors.length; i++) {\n colors[i] = new Color(rStart + r * i, gStart + g * i, bStart + b * i, alphaStart + alpha * i);\n // System.out.println(colors[i].alpha);\n }\n }", "static double DistancePointPlane(double x, double y, double z, double a, double b, double c, double d) {\r\n\t\treturn Math.abs(a * x + b * y + c * z - d) / Math.sqrt(a * a + b * b + c * c);\r\n\t}", "public Vect3(double xx, double yy, double zz) {\n\t\tx = xx;\n\t\ty = yy;\n\t\tz = zz;\n\t}", "public Vector(Point3D p) {\n if (p.equals(Point3D.ZERO))\n throw new IllegalArgumentException(\"no meaning to the vector\");\n head = new Point3D(p);\n }", "@Override\n protected void createMesh() {\n rayLight.getScope().add(camera);\n\n light = new PointLight(Color.GAINSBORO);\n light.setTranslateX(-300);\n light.setTranslateY(300);\n light.setTranslateZ(-2000);\n\n light2 = new PointLight(Color.ALICEBLUE);\n light2.setTranslateX(300);\n light2.setTranslateY(-300);\n light2.setTranslateZ(2000);\n\n light3 = new PointLight(Color.SPRINGGREEN);\n light3.setTranslateY(-2000);\n //create a target\n target1 = new Sphere(180);\n target1.setId(\"t1\");\n target1.setDrawMode(DrawMode.LINE);\n target1.setCullFace(CullFace.NONE);\n target1.setTranslateX(500);\n target1.setTranslateY(500);\n target1.setTranslateZ(500);\n target1.setMaterial(red);\n // create another target\n target2 = new Sphere(150);\n target2.setId(\"t2\");\n target2.setDrawMode(DrawMode.LINE);\n target2.setCullFace(CullFace.NONE);\n target2.setTranslateX(-500);\n target2.setTranslateY(-500);\n target2.setTranslateZ(-500);\n target2.setMaterial(blue);\n\n origin = new Box(20, 20, 20);\n origin.setDrawMode(DrawMode.LINE);\n origin.setCullFace(CullFace.NONE);\n \n model = new Group(target1, target2, origin, light, light2, light3, rayLight);\n }", "public Pellet(int xLoc, int yLoc, Color someColor) {\n\t\tx = xLoc;\n\t\ty = yLoc;\n\t\tcolor = someColor;\n\t}", "public Vec3(){\n\t\tthis(0,0,0);\n\t}", "public DrawComponent(int color) {\n this.color = color;\n }", "public Sphere(Point3 c, double r, Material material) {\n\t\tsuper(material);\n\t\tthis.c = c;\n\t\tthis.r = r;\n\t}" ]
[ "0.7167025", "0.6653327", "0.6391286", "0.6076664", "0.60256064", "0.5963214", "0.5746177", "0.57371134", "0.5698221", "0.5681377", "0.55967206", "0.55358857", "0.5519174", "0.54741573", "0.5451158", "0.5432711", "0.5417545", "0.5417051", "0.5406363", "0.54053265", "0.5386918", "0.5384692", "0.5373179", "0.53659266", "0.53578323", "0.535443", "0.5300638", "0.52786976", "0.52343124", "0.52129966", "0.52109253", "0.5208954", "0.52006924", "0.5171719", "0.5167213", "0.51567566", "0.51539314", "0.51403576", "0.51262724", "0.5118482", "0.5111843", "0.5109095", "0.5097624", "0.50865084", "0.5084701", "0.50800014", "0.5057512", "0.5031679", "0.5029819", "0.5024256", "0.5013532", "0.50106436", "0.50080264", "0.5007947", "0.5004222", "0.49910364", "0.49842995", "0.49838132", "0.4976603", "0.49749538", "0.49463993", "0.49420762", "0.49387896", "0.49360272", "0.4931404", "0.49244753", "0.49224368", "0.4921857", "0.49180835", "0.4918002", "0.49081308", "0.48813826", "0.48800778", "0.4870208", "0.48663533", "0.48623928", "0.4847681", "0.48452115", "0.48404196", "0.48355418", "0.4833417", "0.4827736", "0.48231557", "0.48089847", "0.47959426", "0.47925127", "0.47912353", "0.47895408", "0.4779424", "0.47776654", "0.47726196", "0.47558206", "0.47475803", "0.4744557", "0.47433868", "0.47407976", "0.47383544", "0.47338608", "0.47334436", "0.4733008" ]
0.74245304
0
Constructs a new plane with the given origin and normal with a random color
public Plane(Point origin, Vector normal) { this(origin, normal, new Color((int) (Math.random() * 256), (int) (Math.random() * 256), (int) (Math.random() * 256))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Plane(Point origin, Vector normal, Color c) {\n\t\tthis.origin = origin;\n\t\tthis.normal = normal;\n\n\t\tthis.c = c;\n\t}", "public Plane() {\r\n\t\tvecX = new Vector3D();\r\n\t\tvecY = new Vector3D();\r\n\t\tnorm = new Vector3D();\r\n\t\tthis.setD(0);\r\n\t\tpos = new Position3D();\r\n\t}", "public Plane(Point a, Point b, Point c, Color colour) {\n\t\torigin = a;\n\t\tnormal = new Vector(a, b).crossProduct(new Vector(a, c));\n\n\t\tthis.c = colour;\n\t}", "public Plane(Point a, Point b, Point c) {\n\t\tthis(a, b, c, new Color((int) (Math.random() * 256),\n\t\t\t\t(int) (Math.random() * 256), (int) (Math.random() * 256)));\n\t}", "public static void posToPlane(Vector3 result, Vector3 pos, Vector3 normal)\n\t{\n\t\tfloat dp_n_n = normal.dot(normal);\n\t\tif (dp_n_n == 0) {\n\t\t\tthrow new IllegalArgumentException(\"Normal is too small!\");\n\t\t}\n\t\tfloat dp_p_n = pos.dot(normal);\n\t\tfloat pos_x = pos.x;\n\t\tfloat pos_y = pos.y;\n\t\tfloat pos_z = pos.z;\n\t\tresult.set(normal);\n\t\tresult.scl(-dp_p_n);\n\t\tresult.scl(1f / dp_n_n);\n\t\tresult.add(pos_x, pos_y, pos_z);\n\t}", "public Plane(double a, double b, double c, double d) {\n this.a = a;\n this.b = b;\n this.c = c;\n this.d = d;\n }", "private void randomNormal(Vector3f v)\n // Create a unit vector. The x- and y- values can be +ve or -ve.\n // The z-value is positive, so facing towards the viewer.\n {\n float z = (float) Math.random(); // between 0-1\n float x = (float) (Math.random() * 2.0 - 1.0); // -1 to 1\n float y = (float) (Math.random() * 2.0 - 1.0); // -1 to 1\n v.set(x, y, z);\n v.normalize();\n }", "@Test\n void getNormal() {\n Plane pl = new Plane(new Point3D(-1,2,1), new Point3D(0,-3,2), new Point3D(1,1,-4)\n );\n\n assertEquals(new Vector(26,7,9).normalize(),\n pl.getNormal(),\n \"Bad normal to trinagle\");\n\n }", "public Plane(Vector3D vecX, Vector3D vecY, Position3D pos) {\r\n\t\tthis.vecX = vecX.normalize();\r\n\t\tthis.vecY = this.vecX.perp(vecY).normalize();\r\n\t\tthis.norm = this.vecX.cross(this.vecY);\r\n\t\tthis.pos = pos;\r\n\t\tthis.setD(norm.dot(this.pos.toVec()));\r\n\t}", "private Ray constructReflectedRay(Vector normal, Point3D point, Ray inRay){\n Vector R = inRay.get_direction();\n normal.scale(2*inRay.get_direction().dotProduct(normal));\n R.subtract(normal);\n Vector epsV = new Vector(normal);\n if (normal.dotProduct(R) < 0) {\n epsV.scale(-2);\n }\n else {\n epsV.scale(2);\n }\n //Vector epsV = new Vector(EPS, EPS, EPS);\n Point3D eps = new Point3D(point);\n\n eps.add(epsV);\n R.normalize();\n return new Ray(eps, R);\n }", "@Override\n protected void createCreature() {\n Sphere sphere = new Sphere(32,32, 0.4f);\n pacman = new Geometry(\"Pacman\", sphere);\n Material mat = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n mat.setColor(\"Color\", ColorRGBA.Yellow);\n pacman.setMaterial(mat);\n this.attachChild(pacman); \n }", "private Ray constructReflectedRay(Point3D point, Ray inRay, Vector n) {\n Vector v = inRay.getDir();\n /**If crossProduct with v from camera to n normal=0\n * so the camera eny way will not see the color because the ray goes to the side*/\n double vn = v.dotProduct(n);\n if (vn == 0) {\n return null;\n }\n /**will calculate the r*/\n Vector r = v.subtract(n.scale(2 * vn)); //𝒓=𝒗−𝟐∙𝒗∙𝒏∙𝒏\n return new Ray(point, r, n);\n }", "@NotNull\r\n static Ray3 fromOD(Vector3 origin, Vector3 dir) {\r\n return new Ray3Impl(origin, dir);\r\n }", "public Ray(Point3D head, Vector direction, Vector normal) {\n\t\tthis(head, direction);\n\t\tdouble nv = normal.dotProduct(_dir);\n\t\tif (!Util.isZero(nv)) {\n\t\t\tVector epsVector = normal.scale(nv > 0 ? DELTA : -DELTA);\n\t\t\t_p0 = head.add(epsVector);\n\t\t}\n\t}", "Builder(final Plane plane) {\n this.plane = plane;\n }", "public UniformVector() {\n super(3);\n this.min = new VectorN(3);\n this.max = new VectorN(1.0, 1.0, 1.0);\n this.idum = -1;\n this.rn = new RandomNumber(this.idum);\n fillVector();\n }", "private Vector3f getPlaneNormal(Vector3f directionVector) {\n\t\tVector3f up = new Vector3f(0, 0, 1);\n\t\tif (directionVector.z == 1 || directionVector.z == -1)\n\t\t\tup.set(0, 1, 0);\n\n\t\tfloat dirX = directionVector.x;\n\t\tfloat dirY = directionVector.y;\n\t\tfloat dirZ = directionVector.z;\n\t\tfloat upX = up.x;\n\t\tfloat upY = up.y;\n\t\tfloat upZ = up.z;\n\n\t\t// right = direction x up\n\t\tfloat rightX, rightY, rightZ;\n\t\trightX = dirY * upZ - dirZ * upY;\n\t\trightY = dirZ * upX - dirX * upZ;\n\t\trightZ = dirX * upY - dirY * upX;\n\t\t// normalize right\n\t\tfloat invRightLength = 1.0f / (float) Math.sqrt(rightX * rightX + rightY * rightY + rightZ * rightZ);\n\t\trightX *= invRightLength;\n\t\trightY *= invRightLength;\n\t\trightZ *= invRightLength;\n\n\t\treturn new Vector3f(rightX, rightY, rightZ);\n\t}", "public VectorA normal()\n {\n return new VectorA(this.x/this.mag(), this.y/this.mag());\n }", "private static SbVec4f \ngenerateCoord(Object userData,\n final SbVec3f point,\n final SbVec3f normal )\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoTextureCoordinateBundle tcb = (SoTextureCoordinateBundle ) userData;\n\n final SbVec4f result = new SbVec4f();\n\n // The S and T coordinates of the result are the dot products of\n // the point with sVector and tVector. Since this computation is\n // done very frequently (during primitive generation for picking\n // on vertex-based shapes), we can avoid some operations that\n // result in 0 by doing the dot products explicitly.\n int sDim = tcb.coordS, tDim = tcb.coordT;\n\n\n result.setValue(point.getValueRead()[sDim] * tcb.sVector.getValueRead()[sDim] + tcb.sVector.getValueRead()[3],\n point.getValueRead()[tDim] * tcb.tVector.getValueRead()[tDim] + tcb.tVector.getValueRead()[3],\n 0.0f,\n 1.0f);\n\n return result;\n}", "public Plane(Point spawnPoint, boolean flyingHorizontally, Level parentLevel){\n // Initialize the variables for the plane\n this.flyingHorizontally = flyingHorizontally;\n this.drawOps = new DrawOptions();\n this.planeImage = new Image(\"res/images/airsupport.png\");\n this.parentLevel = parentLevel;\n this.isFinished = false;\n this.bombs = new ArrayList<>();\n\n // Initialize the timekeeper that will control when a bomb should be dropped\n // '1' is added to the RNG here as the upper bound is not inclusive\n int initialDropTime = ThreadLocalRandom.current().nextInt(DROP_TIME_LOWER_BOUND,DROP_TIME_UPPER_BOUND + 1);\n this.bombDropper = new Timekeeper(initialDropTime);\n this.justDropped = false;\n // The Plane can either fly horizontally or vertically, which is specified in its constructor\n if (flyingHorizontally){\n // Set the plane facing to the right, at the leftmost point of the window and at the correct\n // height given by the spawn position\n this.currPos = new Point(0, spawnPoint.y);\n this.drawOps.setRotation(Math.PI/2);\n this.flyingHorizontally = true;\n }\n else {\n // Set the plane facing downward, at the top of the window and at the correct\n // x co-ordinate given by the spawn position\n this.currPos = new Point(spawnPoint.x, 0);\n this.drawOps.setRotation(Math.PI);\n this.flyingHorizontally = false;\n }\n }", "private void init() {\r\n\t\tx = (float) (Math.random() * 2 - 1);\r\n\t\ty = (float) (Math.random() * 2 - 1);\r\n\t\tz[0] = (float) (Math.random() * 3f);\r\n\t\tz[1] = z[0];\r\n\t}", "private Ray constructReflectedRay(Vector n, Point3D p, Ray l) { // hish\r\n\t\tVector _n = n;// normal at point\r\n\t\tVector _v = l.get_dir(); // direction of vector camera ->geometry\r\n\t\tdouble vn = _v.dotProduct(_n);\r\n\t\tif (vn == 0)\r\n\t\t\treturn null;\r\n\r\n\t\tVector _r = _v.add(_n.scale(-2 * vn));\r\n\t\treturn new Ray(p, _r, _n);\r\n\t}", "@Override\n protected void createMesh() {\n rayLight.getScope().add(camera);\n\n light = new PointLight(Color.GAINSBORO);\n light.setTranslateX(-300);\n light.setTranslateY(300);\n light.setTranslateZ(-2000);\n\n light2 = new PointLight(Color.ALICEBLUE);\n light2.setTranslateX(300);\n light2.setTranslateY(-300);\n light2.setTranslateZ(2000);\n\n light3 = new PointLight(Color.SPRINGGREEN);\n light3.setTranslateY(-2000);\n //create a target\n target1 = new Sphere(180);\n target1.setId(\"t1\");\n target1.setDrawMode(DrawMode.LINE);\n target1.setCullFace(CullFace.NONE);\n target1.setTranslateX(500);\n target1.setTranslateY(500);\n target1.setTranslateZ(500);\n target1.setMaterial(red);\n // create another target\n target2 = new Sphere(150);\n target2.setId(\"t2\");\n target2.setDrawMode(DrawMode.LINE);\n target2.setCullFace(CullFace.NONE);\n target2.setTranslateX(-500);\n target2.setTranslateY(-500);\n target2.setTranslateZ(-500);\n target2.setMaterial(blue);\n\n origin = new Box(20, 20, 20);\n origin.setDrawMode(DrawMode.LINE);\n origin.setCullFace(CullFace.NONE);\n \n model = new Group(target1, target2, origin, light, light2, light3, rayLight);\n }", "public Light(Vec3f pos, Vec3f color, float intensity, float constant, float linear, float exponent)\n\t{\n\t\tm_light_type = Config.g_light_types.POINT;\n\t\tm_pos = pos;\n\t\tm_color = color;\n\t\tm_intensity = intensity;\n\t\tm_constant = constant;\n\t\tm_linear = linear;\n\t\tm_exponent = exponent;\n\t}", "public void normal(PointType n)\r\n {\r\n\t //System.out.println(\"norm: \"+n.x+\", \"+n.y+\", \"+n.z);\r\n\t\tgl.glNormal3d(n.x, n.y, n.z);\t\t\r\n\t}", "public abstract Color3f calcColor(Vector3f pos, Vector3f normal, Material m);", "public Vec3D tangentPlaneNormalAt(Vec3D q) {\n\t\tVec3D p = this.sub(q);\n\t\t// float xr2 = eR.x * eR.x;\n\t\t// float yr2 = eR.y * eR.y;\n\t\t// float zr2 = eR.z * eR.z;\n\t\tfloat r2 = 1f / (radius * radius);\n\t\treturn p.scaleSelf(r2).normalize();\n\t}", "public GeometryRay(final Vec3 origin, final Vec3 direction) {\n super(origin, direction);\n }", "public Light(double xPos, double yPos, double zPos){\n this(xPos, yPos, zPos, 1.0, 1.0, 1.0, 1);\n }", "public CheckPlane( Vector p, Vector n, Vector o )\n\t{\n\t\tsuper(p,n,new Color());\n\t\tsetOrientation(o);\n\t\tsetColor( new Color(0.01,0.01,0.01), new Color(0.99,0.99,0.99) );\n\t}", "public void createPlane(Group planeGroup, String id, float latitude, float longitude, float angle, PhongMaterial material, double scale) {\n // Load geometry\n ObjModelImporter planeImporter = new ObjModelImporter();\n try {\n URL modelUrl = getClass().getResource(\"/flightlive/res/Plane/plane.obj\");\n planeImporter.read(modelUrl);\n } catch(ImportException e) {\n System.err.println(e.getMessage());\n }\n MeshView[] planeMeshViews = planeImporter.getImport();\n\n // Setting the material\n for (MeshView mv : planeMeshViews)\n mv.setMaterial(material);\n\n Fx3DGroup planeScale = new Fx3DGroup(planeMeshViews);\n Fx3DGroup planeOffset = new Fx3DGroup(planeScale);\n Fx3DGroup plane = new Fx3DGroup(planeOffset);\n\n Point3D position = geoCoordTo3dCoord(latitude, longitude);\n // Transformations on the object\n planeScale.set3DScale(0.015);\n planeOffset.set3DTranslate(0, -0.01, 0);\n planeOffset.set3DRotate(0, 180 + angle, 0);\n\n plane.set3DTranslate(position.getX(),position.getY(),position.getZ());\n plane.set3DRotate(\n -java.lang.Math.toDegrees(java.lang.Math.asin(position.getY())) - 90,\n java.lang.Math.toDegrees(java.lang.Math.atan2(position.getX(), position.getZ())),\n 0);\n plane.set3DScale(scale);\n plane.setId(id);\n\n planeGroup.getChildren().add(plane);\n }", "@Override\r\n\tprotected Ray normalAt(double xx, double yy, double zz) {\n\t\treturn null;\r\n\t}", "public Ray(Point3D point, Vector lightDirection, Vector n, double DELTA) {\n /**\n * if n.dotProduct(lightDirection) it`s positive (bigger then zero)\n * then add DELTA , else minus DELTA\n */\n Vector delta = n.scale(n.dotProduct(lightDirection) > 0 ? DELTA : - DELTA);\n _p0 = point.add(delta);\n _dir= lightDirection.normalized();\n }", "public Sphere(Point3D c, double r, Color color)\r\n\t{\r\n\t\tthis(c, r);\r\n\t\tsuper._emission = color;\r\n\t}", "public Sphere (final Material material) {\n super(material);\n\n this.c = new Point3(0,0,0);\n this.r = 1;\n }", "final public Normal3 asNormal(){\n return new Normal3(x, y, z);\n }", "@Test\n public void getNormal_test() \n {\n\t // ============ Equivalence Partitions Tests ==============\n\t // TC01\n\t Plane pln= new Plane(new Point3D(1,0,0), new Vector(1,1,1));\n\t assertEquals(pln.getNormal(new Point3D(0,1,0)), new Vector(0.5773502691896258, 0.5773502691896258, 0.5773502691896258));\n }", "public Plane3(Plane3 p) {\n this.a = p.a; this.b = p.b; this.c = p.c; this.v = p.v; this.d = p.d;\n }", "public static float distanceToPlane(float point_x, float point_y, float point_z, float normal_x, float normal_y, float normal_z)\n\t{\n\t\tfloat dp_nn = dotProduct(normal_x, normal_y, normal_z, normal_x, normal_y, normal_z);\n\t\tassert Math.abs(dp_nn) > 0.0001;\n\t\treturn (dotProduct(normal_x, normal_y, normal_z, point_x, point_y, point_z)) / dp_nn;\n\t}", "public Light(Vec3f dir, Vec3f color, float intensity)\n\t{\n\t\tm_light_type = Config.g_light_types.DIRECTIONAL;\n\t\tm_dir = dir.normalize();\n\t\tm_color = color;\n\t\tm_intensity = intensity;\n\t}", "public WB_Normal3d() {\r\n\t\tsuper();\r\n\t}", "public Point4 getNormal();", "public Sphere(Point3D c, double r, Color color, Material material)\r\n\t{\r\n\t\tthis(c,r, color);\r\n\t\tsuper._material = material;\r\n\t}", "RedSphere() {\n Random random = new Random();\n for (int i = 0; i < 6; i++) {\n value[i] = random.nextInt(33) + 1;\n }\n }", "public WB_Normal3d(final WB_Point3d v) {\r\n\t\tsuper(v);\r\n\t}", "public static float distanceToPlane(float point_x, float point_y, float normal_x, float normal_y)\n\t{\n\t\tfloat dp_nn = dotProduct(normal_x, normal_y, normal_x, normal_y);\n\t\tassert Math.abs(dp_nn) > 0.0001;\n\t\treturn (dotProduct(normal_x, normal_y, point_x, point_y)) / dp_nn;\n\t}", "private float[] calculatePlaneTransform(double[] point, double normal[],\n float[] openGlTdepth) {\n // Vector aligned to gravity.\n float[] openGlUp = new float[]{0, 1, 0, 0};\n float[] depthTOpenGl = new float[16];\n Matrix.invertM(depthTOpenGl, 0, openGlTdepth, 0);\n\n float[] depthUp = new float[4];\n Matrix.multiplyMV(depthUp, 0, depthTOpenGl, 0, openGlUp, 0);\n\n // Create the plane matrix transform in depth frame from a point,\n // the plane normal and the up vector.\n float[] depthTplane = matrixFromPointNormalUp(point, normal, depthUp);\n float[] openGlTplane = new float[16];\n Matrix.multiplyMM(openGlTplane, 0, openGlTdepth, 0, depthTplane, 0);\n\n return openGlTplane;\n }", "@Override\n\tpublic Simplex2v3d getTangentPlane(float xPos, float zPos) {\n\t\treturn new Simplex2v3d(func.evaluateDerivative(new float[] {xPos, zPos}, 0), func.evaluateDerivative(new float[] {xPos, zPos}, 1), new Vector3f(xPos, getHeight(xPos, zPos), zPos));\n\t}", "BlueSphere() {\n Random random = new Random();\n value[0] = random.nextInt(16) + 1;\n }", "public void setOrigin(Vec4df origin) {\n this.origin = origin;\n }", "public Camera(float loc[],float dir[]){\n this.loc=loc;\n this.dir=normalize(dir);\n }", "@Test\n public void Constructor_test() \n {\n // ============ Equivalence Partitions Tests ==============\n\n // TC01: creating the Plane: x + y + z = 1 with the constructor\n\t // that get 3 Point3D that contain in the Plane\n try \n {\n new Plane(new Point3D(1,0,0), new Point3D(0,1,0), new Point3D(0,0,1));\n } \n catch (IllegalArgumentException e) \n {\n fail(\"Failed constructing a correct Plane\");\n }\n \n // TC02: creating the Plane: x + y + z = 1 with the constructor\n \t // that get Point3D that contain in the Plane and Vector- the normal of the Plane.\n try \n {\n new Plane(new Point3D(1,0,0), new Vector(1,1,1));\n } \n catch (IllegalArgumentException e) \n {\n fail(\"Failed constructing a correct Plane\");\n }\n \n // =============== Boundary Values Tests ==================\n \n // TC03: creating the Plane: z = 0 with the constructor\n \t // that get 3 Point3D that contain in the Plane\n try \n {\n new Plane(new Point3D(1,0,0), new Point3D(0,1,0), new Point3D(2,3,0));\n } \n catch (IllegalArgumentException e) \n {\n fail(\"Failed constructing a correct Plane\");\n }\n \n // TC04: creating the Plane: x + y + z = 1 with the constructor\n \t // that get Point3D that contain in the Plane and Vector- the normal of the Plane.\n try \n {\n new Plane(new Point3D(1,0,0), new Vector(0,0,1));\n } \n catch (IllegalArgumentException e) \n {\n fail(\"Failed constructing a correct Plane\");\n }\n }", "void createPlanetSurface(int width, int height) {\r\n\t\trenderer.surface = new PlanetSurface();\r\n\t\trenderer.surface.width = width;\r\n\t\trenderer.surface.height = height;\r\n\t\trenderer.surface.computeRenderingLocations();\r\n\t\tui.allocationPanel.buildings = renderer.surface.buildings;\r\n\t}", "public Light(Vector3f position, Vector3f color) {\n\t\tthis.position = position;\n\t\tthis.color = color;\n\t}", "private Ray constructRefractedRay(Point3D point, Ray inRay, Vector n) {\n return new Ray(point, inRay.getDir(), n);\n }", "public Sphere (final Point3 c, final double r, final Material material) {\n super(material);\n\n this.c = c;\n this.r = r;\n }", "private Ray constructReflectedRay(Vector n, Point3D point, Ray ray) {\n Vector v = ray.getDirection();\n Vector r = null;\n try {\n r = v.subtract(n.scale(v.dotProduct(n)).scale(2)).normalized();\n }\n catch (Exception e) {\n return null;\n }\n return new Ray(point, r, n);\n }", "public Sphere(final Material m) {\n super(m);\n this.c = new Point3(0,0,0);\n this.r = 1;\n }", "Plane getPlane();", "protected abstract BaseVector3d createBaseVector3d(double x, double y, double z);", "public DirectionalLight(Vector3D position, Vector3D direction, Color color, double intensity){\n super(position, color, intensity,0,0,0,0, 0,0);\n setDirection(Vector3D.normalize(direction));\n }", "public Sphere(String name, Material m, double radius, Vector3D pos){\n super();\n p = pos;\n r = radius;\n this.name = name;\n this.material = m;\n light = false;\n }", "public void newCoord() {\n\t\tx = Data.generateRandomX();\n\t\ty = Data.generateRandomY();\n\t}", "public SbVec3f getNormal() { return worldNormal; }", "public Material create();", "public static Location genRandomSpawn() {\n final Random r = new Random();\n\n final World world = Bukkit.getWorld(\"Normal_tmp\");\n\n final int half = WIDTH / 2,\n x = randomBetween(r, -half + CENTERX, half + CENTERX),\n z = randomBetween(r, -half + CENTERZ, half + CENTERZ);\n\n return permutateLocation(new Location(world, x, 0, z));\n }", "final public Vector3 reflectedOn(final Normal3 n){\n if(n == null){\n throw new IllegalArgumentException(\"n must not be null\");\n }\n\n Normal3 normal = n.mul(this.dot(n)).mul(2);\n //-l + 2(l * n)n\n return new Vector3(-x + normal.x, -y + normal.y, -z + normal.z);\n \n }", "public Plane(double in, boolean isD) {\n\t\tisFlying = isD;\n\t\tinQ = in;\n\t}", "public static Vector4f randomColor() {\n return new Vector4f(RANDOM.nextFloat(), RANDOM.nextFloat(), RANDOM.nextFloat(), 1);\n }", "godot.wire.Wire.Vector3 getNormal();", "public Point4 getNormal(int pointNr);", "Obj(double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3){\t// CAMBIAR LAS COORDENADAS X,Y,Z CON 0,1 PARA CONSTRUIR PRISMA, CILINDRO, PIRAMIDE, CONO Y ESFERA.\n w\t= new Point3D[4];\n\tvScr\t= new Point2D[4];\n \n w[0]\t= new Point3D(0, 0, 0); // desde la base\n\tw[1]\t= new Point3D(x1, y1, z1);\n\tw[2]\t= new Point3D(x2, y2, z2);\n\tw[3]\t= new Point3D(x3, y3, z3);\n \n\tobjSize = (float) Math.sqrt(12F); \n rho\t= 5 * objSize;\n }", "public WB_Normal3d(final double x, final double y) {\r\n\t\tsuper(x, y);\r\n\t}", "private Ray constructRefractedRay(Geometry geometry, Point3D point, Ray inRay){\n Vector N = geometry.getNormal(point);\n Vector direct = inRay.get_direction();\n double cosOi = N.dotProduct(direct);\n if (cosOi < 0) {\n N.scale(-2);\n }\n else{\n N.scale(2);\n }\n Point3D pointEps = new Point3D(point);\n pointEps.add(N);\n return new Ray(pointEps, direct);\n }", "public Vector(double x1, double y1, double z1) {\n Point3D p = new Point3D(x1, y1, z1);\n if (p.equals(Point3D.ZERO))\n throw new IllegalArgumentException(\"no meaning to the vector\");\n head=new Point3D(p);\n }", "public void\nsetObjectNormal(final SbVec3f normal)\n//\n////////////////////////////////////////////////////////////////////////\n{\n // Transform the object space normal by the current modeling\n // matrix o get the world space normal. Use the inverse transpose\n // of the odel matrix so that normals are not scaled incorrectly.\n SbMatrix normalMatrix =\n SoModelMatrixElement.get(state).inverse().transpose();\n\n normalMatrix.multDirMatrix(normal, worldNormal);\n worldNormal.normalize();\n}", "public Sphere(Point3D c, double r)\r\n\t{\r\n\t\tsuper(r);\r\n\t\t_center = c;\r\n\t}", "public Sphere(Point3 c, double r, Material material) {\n\t\tsuper(material);\n\t\tthis.c = c;\n\t\tthis.r = r;\n\t}", "@Override\n\tpublic Vector3D findNormalAt(Point3D point) {\n\t\treturn plane.findNormalAt(point);\n\t}", "public Vector3fc origin(Vector3f origin) {\n origin.x = cx;\n origin.y = cy;\n origin.z = cz;\n return origin;\n }", "public Vector(Coordinate x1, Coordinate y1, Coordinate z1) {\n Point3D p = new Point3D(x1, y1, z1);\n if (p.equals(Point3D.ZERO))\n throw new IllegalArgumentException(\"no meaning to the vector\");\n head=new Point3D(p);\n }", "public City(){\n this.x = (int)(Math.random()*200);\n this.y = (int)(Math.random()*200);\n }", "public Shape(Vector2f[] points, Vector2f[] normals) {\n\t\tthis.points = points.clone();\n\t\tthis.normals = normals.clone();\n\t\n\t\tcalculateBPRange();\n\t}", "public void makeRandColor(){}", "private void initMesh() {\n\t\tfloat[] vertices = { -1, -1, 0, 1, -1, 0, -1, 1, 0, 1, 1, 0 };\n\t\tfloat[] texCoords = { 0, 0, 1, 0, 0, 1, 1, 1 };\n\t\tint[] indices = { 0, 1, 2, 3 };\n\t\tmesh = new StaticMesh(gl, vertices, null, texCoords, indices);\n\t\tmesh.setPositionIndex(shader.getAttributeLocation(\"aVertexPosition\"));\n\t\tmesh.setNormalIndex(-1);\n\t\tmesh.setTexCoordIndex(shader.getAttributeLocation(\"aTextureCoord\"));\n\t\tmesh.setBeginMode(BeginMode.TRIANGLE_STRIP);\n\t}", "public void create () {\n // TODO random generation of a ~100 x 100 x 100 world\n }", "@Override\r\n\tpublic void surfaceCreated(GL10 gl) {\n\t\tgl.glDisable(GL10.GL_DITHER);\r\n\t\t\r\n\t\t// One-time OpenGL initialization based on context...\r\n gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT,\r\n GL10.GL_NICEST);\r\n\t\t\r\n gl.glClearColor(0, 0, 0, 1); \r\n gl.glEnable(GL10.GL_CULL_FACE);\r\n gl.glCullFace(GL10.GL_BACK);\r\n gl.glEnable(GL10.GL_DEPTH_TEST);\r\n gl.glEnable(GL10.GL_LIGHTING);\r\n gl.glDepthFunc(GL10.GL_LEQUAL);\r\n gl.glShadeModel(GL10.GL_SMOOTH);\r\n \r\n if(scene != null && use_vbos) {\r\n \t\t// TODO messy...\r\n \t\tscene.forgetHardwareBuffers();\r\n \t\tscene.generateHardwareBuffers(gl);\r\n }\r\n }", "public Ray(Point3D p0, Vector dir) {\n _p0 = p0;\n _dir = dir.normalized();\n }", "public Sphere( double radius, Point3d center, Material material ) {\n \tsuper();\n \tthis.radius = radius;\n \tthis.center = center;\n \tthis.material = material;\n }", "public UniformVector(VectorN mn, VectorN mx, long seed){\n super(mn.length);\n mx.checkVectorDimensions(mn);\n this.min = new VectorN(mn);\n this.max = new VectorN(mx);\n if (seed > 0) seed = -seed;\n this.idum = seed;\n this.rn = new RandomNumber(this.idum); \n fillVector();\n }", "private Material(float[] diffuse, float[] specular, float shininess) {\n this.diffuse = diffuse;\n this.specular = specular;\n this.shininess = shininess;\n }", "private Material(float[] diffuse, float[] specular, float shininess) {\n this.diffuse = diffuse;\n this.specular = specular;\n this.shininess = shininess;\n }", "public int createNode(Vec3f normal, float sampleX, float sampleY, float sampleZ)\n {\n final int newNodeAddress = nextNodeAddress;\n nextNodeAddress += NODE_STRIDE;\n \n nodeStream.set(newNodeAddress + NODE_FRONT_NODE_ADDRESS, NO_NODE_ADDRESS);\n nodeStream.set(newNodeAddress + NODE_BACK_NODE_ADDRESS, NO_NODE_ADDRESS);\n nodeStream.setFloat(newNodeAddress + NODE_PLANE_DIST, normal.dotProduct(sampleX, sampleY, sampleZ));\n nodeStream.setFloat(newNodeAddress + NODE_PLANE_NORMAL_X, normal.x());\n nodeStream.setFloat(newNodeAddress + NODE_PLANE_NORMAL_Y, normal.y());\n nodeStream.setFloat(newNodeAddress + NODE_PLANE_NORMAL_Z, normal.z());\n return newNodeAddress;\n }", "public Vector3d getOrigin() { return mOrigin; }", "public Particle(Point[] landmarks, int width, int height) {\r\n this.landmarks = landmarks;\r\n this.worldWidth = width;\r\n this.worldHeight = height;\r\n random = new Random();\r\n x = random.nextFloat() * width;\r\n y = random.nextFloat() * height;\r\n orientation = random.nextFloat() * 2f * ((float)Math.PI);\r\n forwardNoise = 0f;\r\n turnNoise = 0f;\r\n senseNoise = 0f; \r\n }", "City(){\n x_coordinate = (int)(Math.random()*200);\n y_coordinate = (int)(Math.random()*200);\n }", "public UniformVector(VectorN mn, VectorN mx){\n super(mn.length);\n mx.checkVectorDimensions(mn);\n this.min = new VectorN(mn);\n this.max = new VectorN(mx);\n this.idum = -1;\n this.rn = new RandomNumber(this.idum); \n fillVector();\n }", "private Vec3 calculateRandomValues(){\n\n Random rand1 = new Random();\n float randX = (rand1.nextInt(2000) - 1000) / 2000f;\n float randZ = (rand1.nextInt(2000) - 1000) / 2000f;\n float randY = rand1.nextInt(1000) / 1000f;\n\n return new Vec3(randX, randY, randZ).normalize();\n }", "private void generateSurface(World world, Random random, int x, int z) \n\t{\n\t\tthis.addOreSpawn(blocks.blockGemOres, 0, world, random, x, z, 16, 16, 4 + random.nextInt(50), 25, 50, 128);\n\t\t\n\t\tBiomeGenBase biome = world.getWorldChunkManager().getBiomeGenAt(x, z);\n\t\t\n\t\tif ((biome == BiomeGenBase.plains || biome == BiomeGenBase.desert))\n\t\t{\n\t\t\tfor(int a = 0; a < 1; a++)\n\t\t\t{\n\t\t\t\tint i = x + random.nextInt(10);\n\t\t\t\tint k = random.nextInt(200);\n\t\t\t\tint j = z + random.nextInt(10);\n\t\t\t\t\n\t\t\t\tnew StructureSmallHouse().generate(world, random, i, j, k);\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public DiscMesh() {\n this(1f, 25);\n }" ]
[ "0.7536452", "0.64689916", "0.63228476", "0.6106272", "0.5890181", "0.5656907", "0.5580675", "0.55643827", "0.55190694", "0.5478607", "0.54432493", "0.53762865", "0.53714854", "0.53354365", "0.5315421", "0.52816176", "0.52680165", "0.5262296", "0.525489", "0.5167214", "0.51476985", "0.5139308", "0.5134708", "0.51205873", "0.5095883", "0.50731134", "0.50579095", "0.5051589", "0.5045734", "0.5029114", "0.4998992", "0.49866143", "0.49658024", "0.49633107", "0.49421236", "0.49392065", "0.49180147", "0.49165952", "0.4904766", "0.4897922", "0.48973298", "0.48972857", "0.48942396", "0.48791695", "0.48631877", "0.48590317", "0.48415422", "0.4837434", "0.48354703", "0.48255247", "0.48248866", "0.48243502", "0.48215845", "0.482012", "0.48179764", "0.4814626", "0.48019785", "0.47922385", "0.47911257", "0.4790472", "0.47885978", "0.47880906", "0.47824275", "0.47777185", "0.47665492", "0.47598585", "0.47584346", "0.47536975", "0.47497663", "0.47469103", "0.47365808", "0.4726588", "0.47231644", "0.47201917", "0.47142202", "0.47132218", "0.4701513", "0.46963435", "0.46959037", "0.46831542", "0.46638632", "0.46524888", "0.46184754", "0.4613307", "0.46060294", "0.4604684", "0.46031457", "0.4600642", "0.45908937", "0.4590567", "0.45889324", "0.45889324", "0.45839188", "0.45838064", "0.45830086", "0.45785373", "0.45737326", "0.45634928", "0.45582145", "0.4557948" ]
0.82314014
0
Constructs a new plane with the given origin and normal with the given color
public Plane(Point origin, Vector normal, Color c) { this.origin = origin; this.normal = normal; this.c = c; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Plane(Point origin, Vector normal) {\n\t\tthis(origin, normal, new Color((int) (Math.random() * 256),\n\t\t\t\t(int) (Math.random() * 256), (int) (Math.random() * 256)));\n\t}", "public Plane(Point a, Point b, Point c, Color colour) {\n\t\torigin = a;\n\t\tnormal = new Vector(a, b).crossProduct(new Vector(a, c));\n\n\t\tthis.c = colour;\n\t}", "public Plane() {\r\n\t\tvecX = new Vector3D();\r\n\t\tvecY = new Vector3D();\r\n\t\tnorm = new Vector3D();\r\n\t\tthis.setD(0);\r\n\t\tpos = new Position3D();\r\n\t}", "public Plane(Point a, Point b, Point c) {\n\t\tthis(a, b, c, new Color((int) (Math.random() * 256),\n\t\t\t\t(int) (Math.random() * 256), (int) (Math.random() * 256)));\n\t}", "public Plane(double a, double b, double c, double d) {\n this.a = a;\n this.b = b;\n this.c = c;\n this.d = d;\n }", "public static void posToPlane(Vector3 result, Vector3 pos, Vector3 normal)\n\t{\n\t\tfloat dp_n_n = normal.dot(normal);\n\t\tif (dp_n_n == 0) {\n\t\t\tthrow new IllegalArgumentException(\"Normal is too small!\");\n\t\t}\n\t\tfloat dp_p_n = pos.dot(normal);\n\t\tfloat pos_x = pos.x;\n\t\tfloat pos_y = pos.y;\n\t\tfloat pos_z = pos.z;\n\t\tresult.set(normal);\n\t\tresult.scl(-dp_p_n);\n\t\tresult.scl(1f / dp_n_n);\n\t\tresult.add(pos_x, pos_y, pos_z);\n\t}", "public Light(Vec3f pos, Vec3f color, float intensity, float constant, float linear, float exponent)\n\t{\n\t\tm_light_type = Config.g_light_types.POINT;\n\t\tm_pos = pos;\n\t\tm_color = color;\n\t\tm_intensity = intensity;\n\t\tm_constant = constant;\n\t\tm_linear = linear;\n\t\tm_exponent = exponent;\n\t}", "private Ray constructReflectedRay(Point3D point, Ray inRay, Vector n) {\n Vector v = inRay.getDir();\n /**If crossProduct with v from camera to n normal=0\n * so the camera eny way will not see the color because the ray goes to the side*/\n double vn = v.dotProduct(n);\n if (vn == 0) {\n return null;\n }\n /**will calculate the r*/\n Vector r = v.subtract(n.scale(2 * vn)); //𝒓=𝒗−𝟐∙𝒗∙𝒏∙𝒏\n return new Ray(point, r, n);\n }", "public abstract Color3f calcColor(Vector3f pos, Vector3f normal, Material m);", "private Ray constructReflectedRay(Vector normal, Point3D point, Ray inRay){\n Vector R = inRay.get_direction();\n normal.scale(2*inRay.get_direction().dotProduct(normal));\n R.subtract(normal);\n Vector epsV = new Vector(normal);\n if (normal.dotProduct(R) < 0) {\n epsV.scale(-2);\n }\n else {\n epsV.scale(2);\n }\n //Vector epsV = new Vector(EPS, EPS, EPS);\n Point3D eps = new Point3D(point);\n\n eps.add(epsV);\n R.normalize();\n return new Ray(eps, R);\n }", "public Light(Vector3f position, Vector3f color) {\n\t\tthis.position = position;\n\t\tthis.color = color;\n\t}", "public Light(Vec3f dir, Vec3f color, float intensity)\n\t{\n\t\tm_light_type = Config.g_light_types.DIRECTIONAL;\n\t\tm_dir = dir.normalize();\n\t\tm_color = color;\n\t\tm_intensity = intensity;\n\t}", "public Plane(Vector3D vecX, Vector3D vecY, Position3D pos) {\r\n\t\tthis.vecX = vecX.normalize();\r\n\t\tthis.vecY = this.vecX.perp(vecY).normalize();\r\n\t\tthis.norm = this.vecX.cross(this.vecY);\r\n\t\tthis.pos = pos;\r\n\t\tthis.setD(norm.dot(this.pos.toVec()));\r\n\t}", "public Sphere(Point3D c, double r, Color color)\r\n\t{\r\n\t\tthis(c, r);\r\n\t\tsuper._emission = color;\r\n\t}", "public Sphere(Point3D c, double r, Color color, Material material)\r\n\t{\r\n\t\tthis(c,r, color);\r\n\t\tsuper._material = material;\r\n\t}", "public CheckPlane( Vector p, Vector n, Vector o )\n\t{\n\t\tsuper(p,n,new Color());\n\t\tsetOrientation(o);\n\t\tsetColor( new Color(0.01,0.01,0.01), new Color(0.99,0.99,0.99) );\n\t}", "@NotNull\r\n static Ray3 fromOD(Vector3 origin, Vector3 dir) {\r\n return new Ray3Impl(origin, dir);\r\n }", "public DirectionalLight(Vector3D position, Vector3D direction, Color color, double intensity){\n super(position, color, intensity,0,0,0,0, 0,0);\n setDirection(Vector3D.normalize(direction));\n }", "public Ray(Point3D point, Vector lightDirection, Vector n, double DELTA) {\n /**\n * if n.dotProduct(lightDirection) it`s positive (bigger then zero)\n * then add DELTA , else minus DELTA\n */\n Vector delta = n.scale(n.dotProduct(lightDirection) > 0 ? DELTA : - DELTA);\n _p0 = point.add(delta);\n _dir= lightDirection.normalized();\n }", "Builder(final Plane plane) {\n this.plane = plane;\n }", "public Polyhedron (Transform t, String filename, boolean active, boolean cull, String color)\n\t{\n\t\tsuper (t, cull);\n\t\tsuper.setActive(active);\n\t\tReadFile(filename);\n\t\tFileName = filename;\n\t\ttry {\n\t\t\tField f = Color.class.getField(color);\n\t\t\tthis.setColor((Color)f.get(null));\n\t\t}\n\t\tcatch (Exception e1)\n\t\t{\n\t\t\ttry {\n\t\t\t\tthis.color = Color.decode(color);\n\t\t\t}\n\t\t\tcatch (Exception e2) {\n\t\t\t\te1.printStackTrace();\n\t\t\t\te2.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private Ray constructReflectedRay(Vector n, Point3D p, Ray l) { // hish\r\n\t\tVector _n = n;// normal at point\r\n\t\tVector _v = l.get_dir(); // direction of vector camera ->geometry\r\n\t\tdouble vn = _v.dotProduct(_n);\r\n\t\tif (vn == 0)\r\n\t\t\treturn null;\r\n\r\n\t\tVector _r = _v.add(_n.scale(-2 * vn));\r\n\t\treturn new Ray(p, _r, _n);\r\n\t}", "public Ray(Point3D head, Vector direction, Vector normal) {\n\t\tthis(head, direction);\n\t\tdouble nv = normal.dotProduct(_dir);\n\t\tif (!Util.isZero(nv)) {\n\t\t\tVector epsVector = normal.scale(nv > 0 ? DELTA : -DELTA);\n\t\t\t_p0 = head.add(epsVector);\n\t\t}\n\t}", "public Plane3(Plane3 p) {\n this.a = p.a; this.b = p.b; this.c = p.c; this.v = p.v; this.d = p.d;\n }", "public Light(double xPos, double yPos, double zPos){\n this(xPos, yPos, zPos, 1.0, 1.0, 1.0, 1);\n }", "public ColorVector(float red, float green, float blue) {\n this.red = red;\n this.green = green;\n this.blue = blue;\n }", "public DirectionalLight(Vector3f color, float intensity) {\n\t\tsuper(color, intensity);\n\n\t\t// super.setShader(ForwardDirectionalShader.getInstance());\n\t\tsuper.setShader(new Shader(\"forward-directional\"));\n\t}", "public Sphere (final Material material) {\n super(material);\n\n this.c = new Point3(0,0,0);\n this.r = 1;\n }", "@Override\n protected void createMesh() {\n rayLight.getScope().add(camera);\n\n light = new PointLight(Color.GAINSBORO);\n light.setTranslateX(-300);\n light.setTranslateY(300);\n light.setTranslateZ(-2000);\n\n light2 = new PointLight(Color.ALICEBLUE);\n light2.setTranslateX(300);\n light2.setTranslateY(-300);\n light2.setTranslateZ(2000);\n\n light3 = new PointLight(Color.SPRINGGREEN);\n light3.setTranslateY(-2000);\n //create a target\n target1 = new Sphere(180);\n target1.setId(\"t1\");\n target1.setDrawMode(DrawMode.LINE);\n target1.setCullFace(CullFace.NONE);\n target1.setTranslateX(500);\n target1.setTranslateY(500);\n target1.setTranslateZ(500);\n target1.setMaterial(red);\n // create another target\n target2 = new Sphere(150);\n target2.setId(\"t2\");\n target2.setDrawMode(DrawMode.LINE);\n target2.setCullFace(CullFace.NONE);\n target2.setTranslateX(-500);\n target2.setTranslateY(-500);\n target2.setTranslateZ(-500);\n target2.setMaterial(blue);\n\n origin = new Box(20, 20, 20);\n origin.setDrawMode(DrawMode.LINE);\n origin.setCullFace(CullFace.NONE);\n \n model = new Group(target1, target2, origin, light, light2, light3, rayLight);\n }", "public 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 Sphere (final Point3 c, final double r, final Material material) {\n super(material);\n\n this.c = c;\n this.r = r;\n }", "private Vector3f getPlaneNormal(Vector3f directionVector) {\n\t\tVector3f up = new Vector3f(0, 0, 1);\n\t\tif (directionVector.z == 1 || directionVector.z == -1)\n\t\t\tup.set(0, 1, 0);\n\n\t\tfloat dirX = directionVector.x;\n\t\tfloat dirY = directionVector.y;\n\t\tfloat dirZ = directionVector.z;\n\t\tfloat upX = up.x;\n\t\tfloat upY = up.y;\n\t\tfloat upZ = up.z;\n\n\t\t// right = direction x up\n\t\tfloat rightX, rightY, rightZ;\n\t\trightX = dirY * upZ - dirZ * upY;\n\t\trightY = dirZ * upX - dirX * upZ;\n\t\trightZ = dirX * upY - dirY * upX;\n\t\t// normalize right\n\t\tfloat invRightLength = 1.0f / (float) Math.sqrt(rightX * rightX + rightY * rightY + rightZ * rightZ);\n\t\trightX *= invRightLength;\n\t\trightY *= invRightLength;\n\t\trightZ *= invRightLength;\n\n\t\treturn new Vector3f(rightX, rightY, rightZ);\n\t}", "public WB_Normal3d(final WB_Point3d v) {\r\n\t\tsuper(v);\r\n\t}", "public void createPlane(Group planeGroup, String id, float latitude, float longitude, float angle, PhongMaterial material, double scale) {\n // Load geometry\n ObjModelImporter planeImporter = new ObjModelImporter();\n try {\n URL modelUrl = getClass().getResource(\"/flightlive/res/Plane/plane.obj\");\n planeImporter.read(modelUrl);\n } catch(ImportException e) {\n System.err.println(e.getMessage());\n }\n MeshView[] planeMeshViews = planeImporter.getImport();\n\n // Setting the material\n for (MeshView mv : planeMeshViews)\n mv.setMaterial(material);\n\n Fx3DGroup planeScale = new Fx3DGroup(planeMeshViews);\n Fx3DGroup planeOffset = new Fx3DGroup(planeScale);\n Fx3DGroup plane = new Fx3DGroup(planeOffset);\n\n Point3D position = geoCoordTo3dCoord(latitude, longitude);\n // Transformations on the object\n planeScale.set3DScale(0.015);\n planeOffset.set3DTranslate(0, -0.01, 0);\n planeOffset.set3DRotate(0, 180 + angle, 0);\n\n plane.set3DTranslate(position.getX(),position.getY(),position.getZ());\n plane.set3DRotate(\n -java.lang.Math.toDegrees(java.lang.Math.asin(position.getY())) - 90,\n java.lang.Math.toDegrees(java.lang.Math.atan2(position.getX(), position.getZ())),\n 0);\n plane.set3DScale(scale);\n plane.setId(id);\n\n planeGroup.getChildren().add(plane);\n }", "public Planet (double x, double y, double r, double m, double vx, double vy, Color c) {\n this.xCoor = x;\n this.yCoor = y;\n this.rad = r;\n this.mass = m;\n this.xVel = vx;\n this.yVel = vy;\n this.col = c; \n \n }", "private float[] calculatePlaneTransform(double[] point, double normal[],\n float[] openGlTdepth) {\n // Vector aligned to gravity.\n float[] openGlUp = new float[]{0, 1, 0, 0};\n float[] depthTOpenGl = new float[16];\n Matrix.invertM(depthTOpenGl, 0, openGlTdepth, 0);\n\n float[] depthUp = new float[4];\n Matrix.multiplyMV(depthUp, 0, depthTOpenGl, 0, openGlUp, 0);\n\n // Create the plane matrix transform in depth frame from a point,\n // the plane normal and the up vector.\n float[] depthTplane = matrixFromPointNormalUp(point, normal, depthUp);\n float[] openGlTplane = new float[16];\n Matrix.multiplyMM(openGlTplane, 0, openGlTdepth, 0, depthTplane, 0);\n\n return openGlTplane;\n }", "@Test\n void getNormal() {\n Plane pl = new Plane(new Point3D(-1,2,1), new Point3D(0,-3,2), new Point3D(1,1,-4)\n );\n\n assertEquals(new Vector(26,7,9).normalize(),\n pl.getNormal(),\n \"Bad normal to trinagle\");\n\n }", "public Plane(Point spawnPoint, boolean flyingHorizontally, Level parentLevel){\n // Initialize the variables for the plane\n this.flyingHorizontally = flyingHorizontally;\n this.drawOps = new DrawOptions();\n this.planeImage = new Image(\"res/images/airsupport.png\");\n this.parentLevel = parentLevel;\n this.isFinished = false;\n this.bombs = new ArrayList<>();\n\n // Initialize the timekeeper that will control when a bomb should be dropped\n // '1' is added to the RNG here as the upper bound is not inclusive\n int initialDropTime = ThreadLocalRandom.current().nextInt(DROP_TIME_LOWER_BOUND,DROP_TIME_UPPER_BOUND + 1);\n this.bombDropper = new Timekeeper(initialDropTime);\n this.justDropped = false;\n // The Plane can either fly horizontally or vertically, which is specified in its constructor\n if (flyingHorizontally){\n // Set the plane facing to the right, at the leftmost point of the window and at the correct\n // height given by the spawn position\n this.currPos = new Point(0, spawnPoint.y);\n this.drawOps.setRotation(Math.PI/2);\n this.flyingHorizontally = true;\n }\n else {\n // Set the plane facing downward, at the top of the window and at the correct\n // x co-ordinate given by the spawn position\n this.currPos = new Point(spawnPoint.x, 0);\n this.drawOps.setRotation(Math.PI);\n this.flyingHorizontally = false;\n }\n }", "public static Shader createFixedShader( final String name, Color color ) {\n final float[] fixedRgba = color.getRGBComponents( new float[ 4 ] );\n return new BasicShader( name ) {\n public void adjustRgba( float[] rgba, float value ) {\n for ( int i = 0; i < 4; i++ ) {\n rgba[ i ] = fixedRgba[ i ];\n }\n }\n };\n }", "public Light(Vector3f position, Vector3f colour) {\r\n\t\tthis.position = position;\r\n\t\tthis.colour = colour;\r\n\t}", "public GeometryRay(final Vec3 origin, final Vec3 direction) {\n super(origin, direction);\n }", "@Override\n protected void createCreature() {\n Sphere sphere = new Sphere(32,32, 0.4f);\n pacman = new Geometry(\"Pacman\", sphere);\n Material mat = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n mat.setColor(\"Color\", ColorRGBA.Yellow);\n pacman.setMaterial(mat);\n this.attachChild(pacman); \n }", "public Polyhedron (Transform t, String filename, boolean active, boolean cull, Color color)\n\t{\n\t\tsuper (t, cull);\n\t\tsuper.setActive(active);\n\t\tReadFile(filename);\n\t\tFileName = filename;\n\t\tthis.color = color;\n\t}", "public float[] makeVertices(float radius, float[] color)\n {\n int noOfComponents = 3 + 3 + 3; // 3 position coordinates, 3 color coordinates, 3 normal coordinates\n float[] vertices = new float[(verticalResolution+1) * horizontalResolution * noOfComponents];\n int vertexNumberInc = 3 + 3 + 3; // three position coordinates, three color values, three normal coordinates\n int vertexNumber = 0;\n\n float elevation = 0;\n float elevationInc = (float) (Math.PI / verticalResolution);\n float azimuth = 0;\n float azimuthInc = (float) (2* Math.PI / horizontalResolution);\n for(int elevationIndex = 0; elevationIndex <= verticalResolution; elevationIndex++) {\n azimuth = 0;\n for(int azimuthIndex = 0; azimuthIndex < horizontalResolution; azimuthIndex++) {\n // position coordinates in spherical coordinates\n float xPos = radius * (float) (Math.sin(elevation) * Math.cos(azimuth));\n float yPos = radius * (float) (Math.sin(elevation) * Math.sin(azimuth));\n float zPos = radius * (float) Math.cos(elevation);\n vertices[vertexNumber] = xPos;\n vertices[vertexNumber+1] = yPos;\n vertices[vertexNumber+2] = zPos;\n // color coordinates (for all vertices the same)\n vertices[vertexNumber+3] = color[0];\n vertices[vertexNumber+4] = color[1];\n vertices[vertexNumber+5] = color[2];\n // coordinates of normal vector\n // for a sphere this vector is identical to the normalizes position vector\n float normalizationFactor = 1 / (float) Math.sqrt((xPos * xPos) + (yPos * yPos) + (zPos * zPos));\n vertices[vertexNumber+6] = xPos * normalizationFactor;\n vertices[vertexNumber+7] = yPos * normalizationFactor;\n vertices[vertexNumber+8] = zPos * normalizationFactor;\n\n vertexNumber += vertexNumberInc;\n azimuth += azimuthInc;\n }\n elevation += elevationInc;\n }\n return vertices;\n }", "private Geometry buildCube(ColorRGBA color) {\n Geometry cube = new Geometry(\"Box\", new Box(0.5f, 0.5f, 0.5f));\n Material mat = new Material(assetManager, \"TestMRT/MatDefs/ExtractRGB.j3md\");\n mat.setColor(\"Albedo\", color);\n cube.setMaterial(mat);\n return cube;\n }", "public Sphere(Point3 c, double r, Material material) {\n\t\tsuper(material);\n\t\tthis.c = c;\n\t\tthis.r = r;\n\t}", "public Camera(float loc[],float dir[]){\n this.loc=loc;\n this.dir=normalize(dir);\n }", "public Light(Vector3f position, Vector3f colour, Vector3f attenuation) {\r\n\t\tthis.position = position;\r\n\t\tthis.colour = colour;\r\n\t\tthis.attenuation = attenuation;\r\n\t}", "final public Vector3 reflectedOn(final Normal3 n){\n if(n == null){\n throw new IllegalArgumentException(\"n must not be null\");\n }\n\n Normal3 normal = n.mul(this.dot(n)).mul(2);\n //-l + 2(l * n)n\n return new Vector3(-x + normal.x, -y + normal.y, -z + normal.z);\n \n }", "public static void negativeColor(Vector4f color, Vector4f dest) {\n dest.zero().set(1).sub(color);\n dest.w = color.w;\n }", "public Sphere(final Material m) {\n super(m);\n this.c = new Point3(0,0,0);\n this.r = 1;\n }", "public static float distanceToPlane(float point_x, float point_y, float point_z, float normal_x, float normal_y, float normal_z)\n\t{\n\t\tfloat dp_nn = dotProduct(normal_x, normal_y, normal_z, normal_x, normal_y, normal_z);\n\t\tassert Math.abs(dp_nn) > 0.0001;\n\t\treturn (dotProduct(normal_x, normal_y, normal_z, point_x, point_y, point_z)) / dp_nn;\n\t}", "protected abstract BaseVector3d createBaseVector3d(double x, double y, double z);", "private static SbVec4f \ngenerateCoord(Object userData,\n final SbVec3f point,\n final SbVec3f normal )\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoTextureCoordinateBundle tcb = (SoTextureCoordinateBundle ) userData;\n\n final SbVec4f result = new SbVec4f();\n\n // The S and T coordinates of the result are the dot products of\n // the point with sVector and tVector. Since this computation is\n // done very frequently (during primitive generation for picking\n // on vertex-based shapes), we can avoid some operations that\n // result in 0 by doing the dot products explicitly.\n int sDim = tcb.coordS, tDim = tcb.coordT;\n\n\n result.setValue(point.getValueRead()[sDim] * tcb.sVector.getValueRead()[sDim] + tcb.sVector.getValueRead()[3],\n point.getValueRead()[tDim] * tcb.tVector.getValueRead()[tDim] + tcb.tVector.getValueRead()[3],\n 0.0f,\n 1.0f);\n\n return result;\n}", "private Ray constructRefractedRay(Point3D point, Ray inRay, Vector n) {\n return new Ray(point, inRay.getDir(), n);\n }", "public void normal(PointType n)\r\n {\r\n\t //System.out.println(\"norm: \"+n.x+\", \"+n.y+\", \"+n.z);\r\n\t\tgl.glNormal3d(n.x, n.y, n.z);\t\t\r\n\t}", "Ogre(int xPos, int yPos, String color,int deltaX,int deltaY) {\n this.xPos = xPos;\n this.yPos = yPos;\n this.color = color;\n this.deltaX = deltaX;\n this.deltaY = deltaY;\n }", "public VectorA normal()\n {\n return new VectorA(this.x/this.mag(), this.y/this.mag());\n }", "public Vec3D tangentPlaneNormalAt(Vec3D q) {\n\t\tVec3D p = this.sub(q);\n\t\t// float xr2 = eR.x * eR.x;\n\t\t// float yr2 = eR.y * eR.y;\n\t\t// float zr2 = eR.z * eR.z;\n\t\tfloat r2 = 1f / (radius * radius);\n\t\treturn p.scaleSelf(r2).normalize();\n\t}", "private Ray constructReflectedRay(Vector n, Point3D point, Ray ray) {\n Vector v = ray.getDirection();\n Vector r = null;\n try {\n r = v.subtract(n.scale(v.dotProduct(n)).scale(2)).normalized();\n }\n catch (Exception e) {\n return null;\n }\n return new Ray(point, r, n);\n }", "static Vector4d computePlane(Vector3d a, Vector3d b, Vector3d c)\n\t{\n\t\tVector4d plane = new Vector4d();\n\t\t\n\t\tVector3d ab = new Vector3d();\n\t\tab.sub(b, a);\n\t\t\n\t\tVector3d ac = new Vector3d();\n\t\tac.sub(c, a);\n\t\t\n\t\tVector3d n = new Vector3d();\n\t\tn.cross(ab, ac);\n\t\tn.normalize();\n\t\t\n\t\tplane.set(n);\n\t\tplane.w = - a.dot(n);\n\t\t\n\t\treturn plane;\n\t}", "final public Normal3 asNormal(){\n return new Normal3(x, y, z);\n }", "public Plane(double in, boolean isD) {\n\t\tisFlying = isD;\n\t\tinQ = in;\n\t}", "public Sphere(Point3D c, double r)\r\n\t{\r\n\t\tsuper(r);\r\n\t\t_center = c;\r\n\t}", "Plane getPlane();", "private Ray constructRefractedRay(Geometry geometry, Point3D point, Ray inRay){\n Vector N = geometry.getNormal(point);\n Vector direct = inRay.get_direction();\n double cosOi = N.dotProduct(direct);\n if (cosOi < 0) {\n N.scale(-2);\n }\n else{\n N.scale(2);\n }\n Point3D pointEps = new Point3D(point);\n pointEps.add(N);\n return new Ray(pointEps, direct);\n }", "public WB_Normal3d() {\r\n\t\tsuper();\r\n\t}", "public Car(int floor, String color){\n\t\tthis.carPosition = floor;\n\t\tthis.carColor = color;\n\t}", "void createPlanetSurface(int width, int height) {\r\n\t\trenderer.surface = new PlanetSurface();\r\n\t\trenderer.surface.width = width;\r\n\t\trenderer.surface.height = height;\r\n\t\trenderer.surface.computeRenderingLocations();\r\n\t\tui.allocationPanel.buildings = renderer.surface.buildings;\r\n\t}", "@Override\r\n\tprotected Ray normalAt(double xx, double yy, double zz) {\n\t\treturn null;\r\n\t}", "public void\nsetSpecularElt( SbColor color )\n//\n{\n this.coinstate.specular.copyFrom(color);\n}", "protected Patch generatePatch(Point2D[] points, float[][] color) {\n/* 52 */ return new TensorPatch(points, color);\n/* */ }", "public UniformVector() {\n super(3);\n this.min = new VectorN(3);\n this.max = new VectorN(1.0, 1.0, 1.0);\n this.idum = -1;\n this.rn = new RandomNumber(this.idum);\n fillVector();\n }", "void setColor(Vector color);", "@Override\n\tpublic Color getColor(Vector point)\n\t{\n\t\tVector d = point.sub(position);\n\t\t\n\t\tdouble\tlenx = Math.floor( d.dot(oX) ),\n\t\t\t\tleny = Math.floor( d.dot(oY) );\n\t\t\n\t\t//int ModularDistance = Math.abs( (int) (lenx + leny) ) % 2;\n\t\tif ( 0 == Math.abs( (int) (lenx + leny) ) % 2)\n\t\t{\n\t\t\treturn c1.dup();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn c2.dup();\n\t\t}\n\t}", "public static float distanceToPlane(float point_x, float point_y, float normal_x, float normal_y)\n\t{\n\t\tfloat dp_nn = dotProduct(normal_x, normal_y, normal_x, normal_y);\n\t\tassert Math.abs(dp_nn) > 0.0001;\n\t\treturn (dotProduct(normal_x, normal_y, point_x, point_y)) / dp_nn;\n\t}", "public Vector(double x1, double y1, double z1) {\n Point3D p = new Point3D(x1, y1, z1);\n if (p.equals(Point3D.ZERO))\n throw new IllegalArgumentException(\"no meaning to the vector\");\n head=new Point3D(p);\n }", "public Vector(Coordinate x1, Coordinate y1, Coordinate z1) {\n Point3D p = new Point3D(x1, y1, z1);\n if (p.equals(Point3D.ZERO))\n throw new IllegalArgumentException(\"no meaning to the vector\");\n head=new Point3D(p);\n }", "public Plate(boolean visible, Color3f color, float transp) \r\n {\r\n setA(1f); setB(1f);\r\n this.setGeometry(createGeometry (getA(), getB()));\r\n this.setAppearance(createAppearance(visible,color, transp));\r\n \r\n }", "@Override\n\tpublic LightTank create(Enum<?> model, Enum<?> color) {\n\t\treturn new LightTank(GameContext.getGameContext(), model, color);\n\t}", "Obj(double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3){\t// CAMBIAR LAS COORDENADAS X,Y,Z CON 0,1 PARA CONSTRUIR PRISMA, CILINDRO, PIRAMIDE, CONO Y ESFERA.\n w\t= new Point3D[4];\n\tvScr\t= new Point2D[4];\n \n w[0]\t= new Point3D(0, 0, 0); // desde la base\n\tw[1]\t= new Point3D(x1, y1, z1);\n\tw[2]\t= new Point3D(x2, y2, z2);\n\tw[3]\t= new Point3D(x3, y3, z3);\n \n\tobjSize = (float) Math.sqrt(12F); \n rho\t= 5 * objSize;\n }", "public Vector3fc origin(Vector3f origin) {\n origin.x = cx;\n origin.y = cy;\n origin.z = cz;\n return origin;\n }", "public DiscMesh() {\n this(1f, 25);\n }", "public static Vector4f negativeColor(Vector4f color) {\n Vector4f dest = new Vector4f(1).sub(color);\n dest.w = color.w;\n return dest;\n }", "@Override\n\tpublic Simplex2v3d getTangentPlane(float xPos, float zPos) {\n\t\treturn new Simplex2v3d(func.evaluateDerivative(new float[] {xPos, zPos}, 0), func.evaluateDerivative(new float[] {xPos, zPos}, 1), new Vector3f(xPos, getHeight(xPos, zPos), zPos));\n\t}", "public three_d_object(int ob_x, int ob_y, int ob_z, int new_ob_size, int new_ob_rotation_X,\n\t\t\t\t\tint new_ob_rotation_Y) {\n\t\t\t\tx = ob_x;\n\t\t\t\ty = ob_y;\n\t\t\t\tz = ob_z;\n\t\t\t\tob_size = new_ob_size;\n\t\t\t\trotation_X = new_ob_rotation_X;\n\t\t\t\trotation_Y = new_ob_rotation_Y;\n\n\t\t\t}", "public SpotLight(final Color color, final Point3 position, final Vector3 direction, final double halfAngle, final boolean castsShadow) {\n super(color, castsShadow);\n if (position == null || direction == null) throw new IllegalArgumentException(\"Parameters must not be null.\");\n if (halfAngle <= 0 || halfAngle > Math.PI) {\n throw new IllegalArgumentException(\"halfAngle must be in the range ]0,PI]\");\n }\n this.position = position;\n this.direction = direction;\n this.halfAngle = halfAngle;\n }", "@Test\n public void Constructor_test() \n {\n // ============ Equivalence Partitions Tests ==============\n\n // TC01: creating the Plane: x + y + z = 1 with the constructor\n\t // that get 3 Point3D that contain in the Plane\n try \n {\n new Plane(new Point3D(1,0,0), new Point3D(0,1,0), new Point3D(0,0,1));\n } \n catch (IllegalArgumentException e) \n {\n fail(\"Failed constructing a correct Plane\");\n }\n \n // TC02: creating the Plane: x + y + z = 1 with the constructor\n \t // that get Point3D that contain in the Plane and Vector- the normal of the Plane.\n try \n {\n new Plane(new Point3D(1,0,0), new Vector(1,1,1));\n } \n catch (IllegalArgumentException e) \n {\n fail(\"Failed constructing a correct Plane\");\n }\n \n // =============== Boundary Values Tests ==================\n \n // TC03: creating the Plane: z = 0 with the constructor\n \t // that get 3 Point3D that contain in the Plane\n try \n {\n new Plane(new Point3D(1,0,0), new Point3D(0,1,0), new Point3D(2,3,0));\n } \n catch (IllegalArgumentException e) \n {\n fail(\"Failed constructing a correct Plane\");\n }\n \n // TC04: creating the Plane: x + y + z = 1 with the constructor\n \t // that get Point3D that contain in the Plane and Vector- the normal of the Plane.\n try \n {\n new Plane(new Point3D(1,0,0), new Vector(0,0,1));\n } \n catch (IllegalArgumentException e) \n {\n fail(\"Failed constructing a correct Plane\");\n }\n }", "public PencilPen(final Color color, final double segmentLength) {\n super(new Color(color.getRGB() | 0x40000000, true), segmentLength);\n }", "public Material create();", "public SpotLight(Color intensity, Point3D position, Vector direction) {\n super(intensity, position);\n this.direction = direction.normalized();\n }", "public Room(String color) {\n\t\tthis.wall = color;\n\t\tthis.floor =\"\";\n\t\tthis.windows=0;\n\t}", "public InhomogeneousPlanarImagingSurface(\n\t\t\tVector3D pointOnPlane, Vector3D u, Vector3D v, Vector3D n,\n\t\t\tVector3D objectPosition, Vector3D imagePosition,\n\t\t\tParameterCalculationMethod parameterCalculation,\n\t\t\tdouble parameterValue\n\t\t)\n\t{\n\t\t// copy the parameters that can simply be copied\n\t\tthis.pointOnPlane = pointOnPlane;\n\t\tsetUVN(u, v, n);\n\t\t\n\t\t// now calculate everything else, following the Mathematica notebook \"gCLAsMapping.nb\"\n\t\t\n\t\t// calculate the parameters of the object and image position in the uvn coordinates (pointOnPlane is origin)\n\t\tVector3D o = Vector3D.difference(objectPosition, pointOnPlane).toBasis(uHat, vHat, nHat);\n\t\tVector3D i = Vector3D.difference(imagePosition, pointOnPlane).toBasis(uHat, vHat, nHat);\n\t\t\n\t\tswitch(parameterCalculation)\n\t\t{\n\t\tcase SET_ETA:\n\t\t\teta = parameterValue;\n\t\t\t\n\t\t\t// the focal length\n\t\t\tf = i.z*o.z/(o.z*eta - i.z);\n\t\t\t\n\t\t\t// the coordinates of the lens centre\n\t\t\tuCOverF = (i.x*o.z*eta - i.z*o.x)/i.z*o.z;\n\t\t\tvCOverF = (i.y*o.z*eta - i.z*o.y)/i.z*o.z;\n\t\t\t\n\t\t\tbreak;\n\t\tcase SET_F:\n\t\tdefault:\n\t\t\tf = parameterValue;\n\t\t\t\n\t\t\t// the other parameters\n\t\t\tuCOverF = (i.x*o.z/f + i.x - o.x)/o.z;\n\t\t\tvCOverF = (i.y*o.z/f + i.y - o.y)/o.z;\n\t\t\teta = (i.z*o.z/f + i.z )/o.z;\n\t\t}\n\t}", "public Sphere(String name, Material m, double radius, Vector3D pos){\n super();\n p = pos;\n r = radius;\n this.name = name;\n this.material = m;\n light = false;\n }", "public void setNormalOvalSolidColor(@ColorInt int color) {\n this.mNormalOvalSolidColor = color;\n }", "private Plane(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Move(boolean placing, boolean color, boolean shade) {\n this.placing = placing;\n this.color = color;\n this.shade = shade;\n }", "private Color calcSpecularComp(double ks, Vector v, Vector normal, Vector l, double shininess, Color lightIntensity){\n Vector R = new Vector(l);\n normal.scale(2*l.dotProduct(normal));\n R.subtract(normal);\n v.normalize();\n R.normalize();\n double KsVdotR = ks * Math.pow(v.dotProduct(R), shininess);\n int red = Math.min(255,(int)(lightIntensity.getRed() * KsVdotR));\n red = Math.max(red, 0);\n int green = Math.min(255,(int)(lightIntensity.getGreen() * KsVdotR));\n green = Math.max(green, 0);\n int blue = Math.min(255,(int)(lightIntensity.getBlue() * KsVdotR));\n blue = Math.max(blue, 0);\n return new Color(red, green, blue);\n }", "public SpotLight(Color color, Point3D position, double kc, double kl, double kq, Vector direction) {\n super(position, kc, kl, kq, color);\n setDirection(direction);\n }", "@Override\n\tpublic void onSurfaceCreated(GL10 gl, EGLConfig arg1) {\n\t\tcirculo = new Circulo(0.8f, 360, false);\n\t\tcruz = new cruz();\n\t\tray = new ray();\n\t\tgl.glClearColor(235f / 255, 124f / 255, 20f / 255, 0); // color de fondo\n\t}" ]
[ "0.7860739", "0.7003232", "0.6233673", "0.6131693", "0.5877436", "0.58109605", "0.56634074", "0.5595013", "0.5592479", "0.55649436", "0.5564483", "0.54769665", "0.5437558", "0.5372597", "0.52455795", "0.52371746", "0.5226411", "0.5184509", "0.5183352", "0.5176723", "0.5174544", "0.5159254", "0.5146907", "0.5141609", "0.513755", "0.51276606", "0.51204675", "0.51003146", "0.50796443", "0.5059267", "0.5053853", "0.50461257", "0.50198984", "0.5019157", "0.5000872", "0.4993448", "0.49835157", "0.49784923", "0.49697796", "0.49661553", "0.4961802", "0.4942659", "0.4937177", "0.49368215", "0.49250358", "0.49166387", "0.48913345", "0.48544294", "0.48389912", "0.48353457", "0.48330793", "0.4818361", "0.48012066", "0.47935784", "0.47888705", "0.4784735", "0.4773498", "0.47730175", "0.47683847", "0.47630364", "0.47433284", "0.47378957", "0.4733904", "0.47170055", "0.47126722", "0.4712312", "0.47087428", "0.47075227", "0.47045785", "0.46949562", "0.46928006", "0.4688218", "0.46792728", "0.46786782", "0.46764836", "0.46703082", "0.46650326", "0.46642202", "0.4653456", "0.46485946", "0.46307406", "0.46219158", "0.462187", "0.46034175", "0.45957994", "0.45889342", "0.45802236", "0.45779252", "0.45777836", "0.4570523", "0.45653135", "0.4561196", "0.45594454", "0.45526105", "0.45445484", "0.45417598", "0.45362544", "0.45316988", "0.45283675", "0.45255986" ]
0.78973603
0
Call this with three values, the two you wish to plug in and a NaN that you wish to solve for. remember, if you give two values that are not part of the plane, you will get NaN back
public Point evaluate(double x, double y, double z) { // x=(-(yn(y-y0)+zn(z-z0))+xn*x0)/xn if (x != x) { x = (-(normal.y * (y - origin.y) + normal.z * (z - origin.z)) + normal.x * origin.x) / normal.x; return new Point(x, y, z); } else if (y != y) { y = (-(normal.x * (x - origin.x) + normal.z * (z - origin.z)) + normal.y * origin.y) / normal.y; return new Point(x, y, z); } else if (z != z) { z = (-(normal.y * (y - origin.y) + normal.x * (x - origin.x)) + normal.z * origin.z) / normal.z; return new Point(x, y, z); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void test09() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Tanh tanh0 = new Tanh();\n AllowedSolution allowedSolution0 = AllowedSolution.LEFT_SIDE;\n // Undeclared exception!\n try { \n illinoisSolver0.solve(16, (UnivariateRealFunction) tanh0, (-1672.701), (-4.26431539230972), (-8.575998569792264E-17), allowedSolution0);\n } catch(IllegalArgumentException e) {\n //\n // function values at endpoints do not have different signs, endpoints: [-1,672.701, -4.264], values: [-1, -1]\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils\", e);\n }\n }", "@Test\n public void test11() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.0, 0.0);\n // Undeclared exception!\n try { \n regulaFalsiSolver0.solve((-1144), (UnivariateRealFunction) null, 0.0, 0.0, 0.0);\n } catch(IllegalArgumentException e) {\n //\n // null is not allowed\n //\n assertThrownBy(\"org.apache.commons.math.util.MathUtils\", e);\n }\n }", "@Test\n public void test22() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Tanh tanh0 = new Tanh();\n AllowedSolution allowedSolution0 = AllowedSolution.BELOW_SIDE;\n double double0 = illinoisSolver0.solve(16, (UnivariateRealFunction) tanh0, (-0.5), (double) 16, (-0.5), allowedSolution0);\n }", "@Test\n public void test23() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver(1.0);\n Floor floor0 = new Floor();\n AllowedSolution allowedSolution0 = AllowedSolution.RIGHT_SIDE;\n double double0 = illinoisSolver0.solve(2297949, (UnivariateRealFunction) floor0, 0.5, 1.0, allowedSolution0);\n double double1 = illinoisSolver0.doSolve();\n }", "@Test\n public void test06() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Tanh tanh0 = new Tanh();\n AllowedSolution allowedSolution0 = AllowedSolution.RIGHT_SIDE;\n // Undeclared exception!\n try { \n illinoisSolver0.solve(16, (UnivariateRealFunction) tanh0, 4.833322802454349E-9, 2.384185791015625E-7, allowedSolution0);\n } catch(IllegalArgumentException e) {\n //\n // function values at endpoints do not have different signs, endpoints: [0, 0], values: [0, 0]\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils\", e);\n }\n }", "@Test\n public void test03() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.0, (-2623.33457), 0.0);\n Gaussian gaussian0 = new Gaussian();\n AllowedSolution allowedSolution0 = AllowedSolution.BELOW_SIDE;\n double double0 = regulaFalsiSolver0.solve(1253, (UnivariateRealFunction) gaussian0, (-979.1), (-347.4), 0.0, allowedSolution0);\n double double1 = regulaFalsiSolver0.doSolve();\n }", "public static void solve(double a, double b, double c) {\n double d = Math.pow(b, 2) - 4 * a * c;\n if (Double.isInfinite(1 / d)) {\n System.out.println(\"x1,2 = \" + (-b + Math.sqrt(d)) / (2 * a));\n } else if (d > 0) {\n System.out.println(\"x1 = \" + (-b + Math.sqrt(d)) / (2 * a));\n System.out.println(\"x2 = \" + (-b - Math.sqrt(d)) / (2 * a));\n } else {\n System.out.println(\"Error! Discriminant is less than zero!\");\n }\n }", "public void solve(int x, int y, int number)\r\n\t{\r\n\t\t\r\n\t}", "@Test\n public void test15() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Tanh tanh0 = new Tanh();\n AllowedSolution allowedSolution0 = AllowedSolution.LEFT_SIDE;\n double double0 = illinoisSolver0.solve(22, (UnivariateRealFunction) tanh0, (-0.5), (double) 22, (-0.5), allowedSolution0);\n }", "public void i(double paramDouble1, double paramDouble2, double paramDouble3)\r\n/* 104: */ {\r\n/* 105:116 */ this.v = paramDouble1;\r\n/* 106:117 */ this.w = paramDouble2;\r\n/* 107:118 */ this.x = paramDouble3;\r\n/* 108:119 */ if ((this.B == 0.0F) && (this.A == 0.0F))\r\n/* 109: */ {\r\n/* 110:120 */ float f1 = uv.a(paramDouble1 * paramDouble1 + paramDouble3 * paramDouble3);\r\n/* 111:121 */ this.A = (this.y = (float)(Math.atan2(paramDouble1, paramDouble3) * 180.0D / 3.141592741012573D));\r\n/* 112:122 */ this.B = (this.z = (float)(Math.atan2(paramDouble2, f1) * 180.0D / 3.141592741012573D));\r\n/* 113: */ }\r\n/* 114: */ }", "@Test\n public void test26() throws Throwable {\n PegasusSolver pegasusSolver0 = new PegasusSolver();\n Log log0 = new Log();\n pegasusSolver0.setup(44, log0, 44, 894.245407657248, 44);\n // Undeclared exception!\n try { \n pegasusSolver0.doSolve();\n } catch(IllegalArgumentException e) {\n //\n // function values at endpoints do not have different signs, endpoints: [44, 894.245], values: [3.784, 6.796]\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils\", e);\n }\n }", "public void testSolve2() {\n test = new Location(0, 1);\n maze2.setCell(test, MazeCell.WALL);\n test = new Location(1, 0);\n maze2.setCell(test, MazeCell.WALL);\n assertEquals(null, maze2.solve());\n }", "@Test\n public void test05() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.0, 0.0);\n Exp exp0 = new Exp();\n AllowedSolution allowedSolution0 = AllowedSolution.ABOVE_SIDE;\n // Undeclared exception!\n try { \n regulaFalsiSolver0.solve(1626, (UnivariateRealFunction) exp0, (double) 1626, 0.0, allowedSolution0);\n } catch(IllegalArgumentException e) {\n //\n // endpoints do not specify an interval: [1,626, 0]\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils\", e);\n }\n }", "@Test\n public void test00() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Abs abs0 = new Abs();\n AllowedSolution allowedSolution0 = AllowedSolution.BELOW_SIDE;\n double double0 = illinoisSolver0.solve(1166, (UnivariateRealFunction) abs0, 0.0, 0.0, allowedSolution0);\n }", "@Test\n public void test10() throws Throwable {\n UnivariateRealFunction univariateRealFunction0 = null;\n double double0 = 0.0;\n // Undeclared exception!\n try { \n UnivariateRealSolverUtils.bracket((UnivariateRealFunction) null, 0.0, (-2444.9), 0.0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // function is null\n //\n assertThrownBy(\"org.apache.commons.math.MathRuntimeException\", e);\n }\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tfloat a, b, c;\r\n\t\tSystem.out.println(\"Fill a, b, c: \");\r\n\t\ta = sc.nextFloat();\r\n\t\tb = sc.nextFloat();\r\n\t\tc = sc.nextFloat();\r\n\t\tfloat delta = (float) (Math.pow(b, 2) - 4 * a * c);\r\n\t\tif (delta < 0) {\r\n\t\t\tSystem.out.println(\"The equation has no solution!\");\r\n\t\t} else {\r\n\t\t\tif (delta == 0) {\r\n\t\t\t\tfloat x = -b / 2 * a;\r\n\t\t\t\tSystem.out.println(\"Solution x = \" + x);\r\n\t\t\t} else {\r\n\t\t\t\tdouble x1 = (-b - Math.sqrt(delta)) / 2 * a;\r\n\t\t\t\tdouble x2 = (-b + Math.sqrt(delta)) / 2 * a;\r\n\t\t\t\tSystem.out.println(\"Solution X1 = \" + x1);\r\n\t\t\t\tSystem.out.println(\"Solution X2 = \" + x2);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "@Test\n public void test23() throws Throwable {\n Complex complex0 = new Complex(Double.POSITIVE_INFINITY, 268.6624661985);\n Complex complex1 = complex0.tanh();\n Complex complex2 = complex1.sin();\n try { \n complex0.subtract((Complex) null);\n } catch(IllegalArgumentException e) {\n //\n // null is not allowed\n //\n assertThrownBy(\"org.apache.commons.math.util.MathUtils\", e);\n }\n }", "public void linearEquation(double a, double b, double c){\n //if a = b = 0; x can be any real value\n this.a = a;\n this.b = b;\n this.c = c;\n if(a == 0 && b==0 && c==0) {\n System.out.println(\"Infinite solution\");\n\n }\n\n else {\n x = (c-b)/a;\n\n //if a = 0, x is undefined\n System.out.println(x);\n if(a==0){\n System.out.println(\"No solution\");\n }\n\n\n }\n }", "public double getValue(double x, double y){\n\n\tint i,j;\n\tdouble fracX,fracY;\n\tdouble Wxm, Wx0, Wxp, Wym, Wy0, Wyp;\n\tdouble Vm, V0, Vp;\n\n\n\tif(x < x_min || y < y_min || x > x_max || y > y_max){\n\t return z_min;\n\t}\n\n i = (int) ((x-x_min)/x_step + 0.5);\n j = (int) ((y-y_min)/y_step + 0.5);\n\n if( i < 1) i = 1;\n if( i > (nX-2)) i = nX-2;\n if( j < 1) j = 1;\n if( j > (nY-2)) j = nY-2;\t \n\n fracX = (x - x_min - i*x_step)/x_step;\n fracY = (y - y_min - j*y_step)/y_step;\n\n\tWxm = 0.5*(0.5 - fracX)*(0.5 - fracX);\n\tWxp = 0.5*(0.5 + fracX)*(0.5 + fracX);\n\tWx0 = 0.75 - fracX*fracX;\n\n\tWym = 0.5*(0.5 - fracY)*(0.5 - fracY);\n\tWyp = 0.5*(0.5 + fracY)*(0.5 + fracY);\n\tWy0 = 0.75 - fracY*fracY;\n\n\tVm = Wxm*gridData[i-1][j-1]+Wx0*gridData[i][j-1]+Wxp*gridData[i+1][j-1];\n\tV0 = Wxm*gridData[i-1][j] +Wx0*gridData[i][j] +Wxp*gridData[i+1][j];\n\tVp = Wxm*gridData[i-1][j+1]+Wx0*gridData[i][j+1]+Wxp*gridData[i+1][j+1];\n\n return Wym*Vm + Wy0*V0 + Wyp*Vp;\n }", "@Test\n public void test17() throws Throwable {\n Complex complex0 = new Complex(0.0, 0.0);\n Complex complex1 = complex0.tan();\n Complex complex2 = complex0.multiply(Double.POSITIVE_INFINITY);\n Complex complex3 = complex0.sqrt();\n try { \n complex0.pow((Complex) null);\n } catch(IllegalArgumentException e) {\n //\n // null is not allowed\n //\n assertThrownBy(\"org.apache.commons.math.util.MathUtils\", e);\n }\n }", "@Override\n public PDEResults1D solve(final ConvectionDiffusionPDEDataBundle pdeData, final PDEGrid1D grid, final BoundaryCondition lowerBoundary, final BoundaryCondition upperBoundary,\n final Surface<Double, Double, Double> freeBoundary) { PDEGrid1D doubleTimeStep = new PDEGrid1D(grid., null)\n // res1 = _bas\n //\n return null;\n }", "public VariableUnit solve() {\n LinkedList<VariableUnit> processor = new LinkedList<VariableUnit>();\n\n VariableUnit vu1 = new VariableUnit(250.0, 'x');\n VariableUnit vu2 = new VariableUnit('+');\n VariableUnit vu3 = new VariableUnit(250.0, 'x');\n VariableUnit vu4 = new VariableUnit(501.0, 'x');\n VariableUnit vu5 = new VariableUnit('y');\n VariableUnit vu6 = new VariableUnit('-');\n alpha_arr.get(('x' - 'a')).addLast(vu1);\n alpha_arr.get(('x' - 'a')).addLast(vu2);\n alpha_arr.get(('x' - 'a')).addLast(vu3);\n op_order.add(vu1); op_order.add(vu2); op_order.add(vu3); op_order.add(vu6);\n op_order.add(vu4); op_order.add(vu6); op_order.add(vu5);\n assignValue(2.0, 'x');\n \n System.out.print(vu1); System.out.print(vu2); System.out.print(vu3);\n System.out.print(vu6); System.out.print(vu4); System.out.print(vu6);\n System.out.print(vu5);\n System.out.println();\n System.out.println(\"------------------------------\");\n \n VariableUnit temp, temp1;\n for (int i = 0; i < op_order.size(); i++) {\n \ttemp = op_order.pollFirst();\n \t\n \t\tswitch (temp.getVariable()) {\n \tcase '+':\n \t\t//if processor.isEmpty(): throw an exception\n \t\ttemp1 = processor.pop().add(op_order.pollFirst());\n \t\tprocessor.push(temp1);\n \t\tbreak;\n \tcase '-':\n \t\t//if processor.isEmpty(): throw an exception\n \t\ttemp1 = processor.pop().subtract(op_order.pollFirst());\n \t\tprocessor.push(temp1);\n \t\tbreak;\n \tdefault:\n \t\tprocessor.push(temp);\n \t\t}\n }\n\n /*\n * System.out.println(\"This equation is currently unsolvable.\");\n \tSystem.out.println(\"Try assigning values to some of the variables.\");\n */\n while (!processor.isEmpty()) {\n \top_order.addFirst(processor.pop());\n }\n \n ListIterator<VariableUnit> iter = op_order.listIterator();\n \n while ( iter.hasNext() ) {\n \tVariableUnit iter_temp = iter.next();\n \t//System.out.print(iter_temp.hasValue());\n \tif (iter_temp.hasValue()) {\n \t\tSystem.out.print( Double.toString(iter_temp.subValue()) );\n \t}\n \telse {\n \t\tSystem.out.print(iter_temp);\n \t}\n };\n System.out.println();\n \n return new VariableUnit(Double.NaN, ' ');\n }", "@Test\n public void test02() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(4956.642689288169, 1711.029259737);\n Log1p log1p0 = new Log1p();\n AllowedSolution allowedSolution0 = AllowedSolution.LEFT_SIDE;\n double double0 = regulaFalsiSolver0.solve(2044, (UnivariateRealFunction) log1p0, (-517.825700479), (double) 0, 1711.029259737, allowedSolution0);\n double double1 = regulaFalsiSolver0.doSolve();\n }", "@Test\n public void test21() throws Throwable {\n // Undeclared exception!\n try { \n UnivariateRealSolverUtils.bracket((UnivariateRealFunction) null, 0.0, (-739.1424394318773), 0.0, 1267);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // function is null\n //\n assertThrownBy(\"org.apache.commons.math.MathRuntimeException\", e);\n }\n }", "@Test\n public void test23() throws Throwable {\n double double0 = UnivariateRealSolverUtils.midpoint((-1052.8959089), (-1052.8959089));\n assertEquals((-1052.8959089), double0, 0.01D);\n }", "@Test\n public void test10() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(1601.9);\n Acos acos0 = new Acos();\n // Undeclared exception!\n try { \n regulaFalsiSolver0.solve(1023, (UnivariateRealFunction) acos0, (double) 1023, (double) 1023, 0.0);\n } catch(IllegalArgumentException e) {\n //\n // endpoints do not specify an interval: [1,023, 1,023]\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils\", e);\n }\n }", "@Test\n public void test12() throws Throwable {\n Complex complex0 = new Complex(Double.NaN, Double.NaN);\n Complex complex1 = complex0.sin();\n Complex complex2 = complex0.cosh();\n Complex complex3 = complex2.createComplex(0.0, Double.NaN);\n boolean boolean0 = complex2.isNaN();\n }", "@Override\r\n\tpublic Double raizQuadrada(String n1, String n2) {\n\t\treturn null;\r\n\t}", "public abstract TrajectoryInfo solve();", "public double getValue( Coordinate[] controlPoints, Coordinate interpolated );", "@Test\n public void test15() throws Throwable {\n // Undeclared exception!\n try { \n UnivariateRealSolverUtils.solve((UnivariateRealFunction) null, 0.0, 0.0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // function is null\n //\n assertThrownBy(\"org.apache.commons.math.MathRuntimeException\", e);\n }\n }", "@Test\n public void test19() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Tanh tanh0 = new Tanh();\n AllowedSolution allowedSolution0 = AllowedSolution.LEFT_SIDE;\n double double0 = illinoisSolver0.solve(16, (UnivariateRealFunction) tanh0, (-0.5), (double) 16, (-0.5), allowedSolution0);\n }", "public abstract Point_3 evaluate(double u, double v);", "private void xCubed()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.cubed ();\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}", "@Test\n public void test12() throws Throwable {\n double[] doubleArray0 = new double[2];\n PolynomialFunctionLagrangeForm polynomialFunctionLagrangeForm0 = new PolynomialFunctionLagrangeForm(doubleArray0, doubleArray0);\n // Undeclared exception!\n try { \n UnivariateRealSolverUtils.solve((UnivariateRealFunction) polynomialFunctionLagrangeForm0, 1273.765, 768.9227086541, 2.220446049250313E-16);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // endpoints do not specify an interval: [1,273.765, 768.923]\n //\n assertThrownBy(\"org.apache.commons.math.MathRuntimeException\", e);\n }\n }", "protected void doDeduction() {\n\n boolean narrowed= false;\n\n unit=false;\n isInconclusive=false;\n\n int newXL;\n int newYU;\n\n Variable x = null;\n Variable y = null;\n\n for(Variable var : csp.getVars()){\n if(var.getPosition() == unitSB.getX().getPosition()){\n x = var;\n } else if(var.getPosition() == unitSB.getY().getPosition()){\n y = var;\n }\n }\n\n int xU = x.getUpperDomainBound();\n int yL = y.getLowerDomainBound();\n\n newXL = yL + unitSB.getCright();\n newYU = xU - unitSB.getCright();\n\n if(newXL>x.getLowerDomainBound()){\n Variable newX = new Variable(newXL, xU);\n newX.setPosition(x.getPosition());\n changeVariable(newX);\n narrowed= true;\n }\n if (newYU< y.getUpperDomainBound()){\n Variable newY = new Variable(yL, newYU);\n newY.setPosition(y.getPosition());\n changeVariable(newY);\n narrowed =true;\n }\n\n if(narrowed){\n doAlgorithmA1();\n }else {\n doAlgorithmA3();\n }\n\n }", "@Test\n public void test46() throws Throwable {\n Line2D.Double line2D_Double0 = new Line2D.Double(2311.413146901308, 662.8367878068987, 2311.413146901308, Double.NaN);\n Point2D.Double point2D_Double0 = new Point2D.Double();\n Point2D.Double point2D_Double1 = (Point2D.Double)point2D_Double0.clone();\n double double0 = point2D_Double0.getX();\n CategoryAxis3D categoryAxis3D0 = new CategoryAxis3D(\"\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) categoryAxis3D0);\n ValueAxis valueAxis0 = combinedDomainCategoryPlot0.getRangeAxisForDataset(372);\n ValueAxis valueAxis1 = combinedDomainCategoryPlot0.getRangeAxis(1189);\n CategoryAxis3D categoryAxis3D1 = (CategoryAxis3D)combinedDomainCategoryPlot0.getDomainAxis();\n }", "public interface One2OneParametrisedObject extends ParametrisedObject\n{\n\t/**\n\t * Calculate the point on the surface that corresponds to the two surface coordinates p.\n\t * Inverse parametrisation, in a sense.\n\t * @param u\tfirst surface coordinate\n\t * @param v\tsecond surface coordinate\n\t * @return the point on the surface\n\t * @author Johannes\n\t */\n\tpublic abstract Vector3D getPointForSurfaceCoordinates(double u, double v);\n}", "@Test\n public void test18() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Tanh tanh0 = new Tanh();\n AllowedSolution allowedSolution0 = AllowedSolution.RIGHT_SIDE;\n double double0 = illinoisSolver0.solve(16, (UnivariateRealFunction) tanh0, (-0.9631727196538443), (double) 16, (-0.9631727196538443), allowedSolution0);\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Unesite koordinatu prve tacke x1: \");\r\n\t\tdouble x1=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite koordinatu prve tacke y1: \");\r\n\t\tdouble y1=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite koordinatu druge tacke x2: \");\r\n\t\tdouble x2=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite koordinatu druge tacke y2: \");\r\n\t\tdouble y2=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite koordinatu trece tacke x3: \");\r\n\t\tdouble x3=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite koordinatu trece tacke y3: \");\r\n\t\tdouble y3=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite koordinatu cetvrte tacke x4: \");\r\n\t\tdouble x4=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite koordinatu cetvrte tacke x4: \");\r\n\t\tdouble y4=provjera();\r\n\t\t\r\n\t\t//kreiranje objekata\r\n\t\tLinearEquation linear= LinearEquation.getIntersectingPoint(x1, y1, x2, y2, x3, y3, x4, y4);\r\n\t\t\r\n\t\t//ispis rezultata\r\n\t\tif(linear.isSolvable()){\r\n\t\t\tSystem.out.print(\"Presjek dvije prave je u tacki sa koordinatama x=\" + linear.getX()+ \" i y=\" + linear.getY());\r\n\t\t}else{\r\n\t\t\tSystem.out.print(\"Prave su paralelne!!!\");\r\n\t\t}\r\n\t\t\r\n\t\tunos.close();\r\n\t}", "private void correctParameter(){\n \tint ifObtuse;\r\n \tif(initialState.v0_direction>90)ifObtuse=1;\r\n \telse ifObtuse=0;\r\n \tdouble v0=initialState.v0_val;\r\n \tdouble r0=initialState.r0_val;\r\n \tdouble sintheta2=Math.sin(Math.toRadians(initialState.v0_direction))*Math.sin(Math.toRadians(initialState.v0_direction));\r\n \tdouble eccentricityMG=Math.sqrt(center.massG*center.massG-2*center.massG*v0*v0*r0*sintheta2+v0*v0*v0*v0*r0*r0*sintheta2);\r\n \tdouble cosmiu0=-(v0*v0*r0*sintheta2-center.massG)/eccentricityMG;\r\n \tpe=(v0*v0*r0*r0*sintheta2)/(center.massG+eccentricityMG);\r\n \tap=(v0*v0*r0*r0*sintheta2)/(center.massG-eccentricityMG);\r\n \tsemimajorAxis=(ap+pe)/2;\r\n \tsemiminorAxis=Math.sqrt(ap*pe);\r\n \tsemifocallength=(ap-pe)/2;\r\n \tSystem.out.println(semimajorAxis+\",\"+semiminorAxis+\",\"+semifocallength);\r\n \teccentricity=eccentricityMG/center.massG;\r\n \tperiod=2*Math.PI*Math.sqrt(semimajorAxis*semimajorAxis*semimajorAxis/(center.massG));\r\n \trotate=(360-Math.toDegrees(Math.acos(cosmiu0)));\r\n \torbitCalculator.angleDelta=(Math.toDegrees(Math.acos(cosmiu0))+360);\r\n \trotate=rotate+initialState.r0_direction;\r\n \t\r\n \tif(ifObtuse==1) {\r\n \t\tdouble rbuf=rotate;\r\n \t\trotate=initialState.r0_direction-rotate;\r\n \t\torbitCalculator.angleDelta+=(2*rbuf-initialState.r0_direction);\r\n \t}\r\n \tfor(;;) {\r\n \t\tif(rotate>360)rotate=rotate-360;\r\n \t\telse break;\r\n \t}\r\n \tfor(;;) {\r\n \t\tif(rotate<0)rotate=rotate+360;\r\n \t\telse break;\r\n \t}\r\n \t/*\r\n \tpe=initialState.r0_val;\r\n rotate=initialState.r0_direction;\r\n ap=(initialState.v0_val*initialState.v0_val*pe*pe)/(2*center.massG-initialState.v0_val*initialState.v0_val*pe);\r\n peSpeed=initialState.v0_val;\r\n apSpeed=(2*center.massG-initialState.v0_val*initialState.v0_val*pe)/(initialState.v0_val*pe);\r\n if(ap<pe){\r\n double lf=ap;ap=pe;pe=lf;\r\n lf=apSpeed;apSpeed=peSpeed;peSpeed=lf;\r\n }\r\n semimajorAxis=(ap+pe)/2;\r\n semifocallength=(ap-pe)/2;\r\n semiminorAxis=Math.sqrt(ap*pe);\r\n eccentricity=semifocallength/semimajorAxis;\r\n period=2*Math.PI*Math.sqrt(semimajorAxis*semimajorAxis*semimajorAxis/(center.massG));*/\r\n }", "Function<RealMatrix, T> getErrorValueNaNProcessor();", "public static void main(String[] args) {\n try {\n Scanner sr = new Scanner(System.in);\n System.out.println(\"Enter a = \");\n double a = sr.nextDouble();\n System.out.println(\"Enter b = \");\n double b = sr.nextDouble();\n System.out.println(\"Enter c = \");\n double c = sr.nextDouble();\n if (check(a) && check(b) && check(c)) {\n solve(a, b, c);\n }\n } catch (Exception e) {\n System.out.println(\"You entered not a number!\");\n }\n }", "@Test\n public void test17() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Tanh tanh0 = new Tanh();\n AllowedSolution allowedSolution0 = AllowedSolution.LEFT_SIDE;\n double double0 = illinoisSolver0.solve(16, (UnivariateRealFunction) tanh0, (-8.575998569792264E-17), 2.384185791015625E-7, allowedSolution0);\n }", "public void solve_linear(double a,double b, MutableDouble t, MutableLong num)\r\n\t{\r\n\t\t\r\n\t\tif (a==0.0) { //\r\n\t\t\tnum.setValue(0);\r\n\t return;\r\n\t } else {\r\n\t\tnum.setValue(1);\r\n\t t.setValue(-b/a);\r\n\t return;\r\n\t }\r\n\t}", "public void MUL( ){\n String tipo1 = pilhaVerificacaoTipos.pop().toString();\n String tipo2 = pilhaVerificacaoTipos.pop().toString();\n String val1 = dads.pop().toString();\n float fresult = -1;\n int iresult = -1;\n String val2 = dads.pop().toString();\n if(val1 != null && val2 != null){\n if (tipo1 != null && tipo2 != null){\n if(tipo1 == \"inteiro\" && tipo2 == \"real\"){\n fresult = Integer.parseInt(val1) * Float.parseFloat(val2);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"real\" && tipo2 ==\"inteiro\"){\n fresult = Integer.parseInt(val2) * Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"real\" && tipo2 ==\"real\"){\n fresult = Float.parseFloat(val2) * Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"inteiro\" && tipo2 ==\"inteiro\"){\n iresult = Integer.parseInt(val2) * Integer.parseInt(val1);\n dads.push(iresult);\n pilhaVerificacaoTipos.push(\"inteiro\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(1): essa instrução é válida apenas para valores inteiros ou reais.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(2): não foi possível executar a instrução, tipo null encontrado.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(3): não foi possível executar a instrução, valor null encontrado.\";\n numErrVM += 1;\n return;\n }\n\n\n\n topo += -1;\n ponteiro += 1;\n }", "@Test\n public void test16() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Tanh tanh0 = new Tanh();\n AllowedSolution allowedSolution0 = AllowedSolution.RIGHT_SIDE;\n double double0 = illinoisSolver0.solve(16, (UnivariateRealFunction) tanh0, (-0.5), (double) 16, (-0.5), allowedSolution0);\n }", "public Complex Minus (Complex z) {\n\nreturn new Complex(u-z.u,v-z.v);\n\n}", "public static void main(String[] args) {\n double a, b, c, delta, x1, x2, x0;\n System.out.println(\"Proszę podać współczynnik a\");\n Scanner scanner = new Scanner(System.in);\n a = scanner.nextDouble();\n System.out.println(\"Proszę podać współczynnik b\");\n b = scanner.nextDouble();\n System.out.println(\"Proszę podać współczynnik c\");\n c = scanner.nextDouble();\n delta = b * b - 4 * a * c;\n if (delta > 0) //jeśli delta jest większa od 0 to mamy dwa miejsca zerowe\n {\n x1 = (-b - Math.sqrt(delta)) / (2 * a); //wyznaczamy 1 miejsce zerowe\n x2 = (-b + Math.sqrt(delta)) / (2 * a); //wyznaczamy 2 miejsce zerowe\n System.out.println(\"Delta jest wiesza od zera dlatego funkcja ma dwa miejsca zerowe: x1 = \" + x1 + \" a x2 = \" + x2);\n }\n else if (delta == 0)\n {\n x0 = -b / (2 * a); //wyznaczamy jedno miejsce zerowe\n System.out.println(\"Delta jest równa zero dlatego funkcja ma jedno miejsce zerowe: x0 = \" + x0);\n }\n else\n System.out.println(\"Delta jest mniejsza od zera dlatego funkcja nie ma miejsc zerowych\");\n }", "private void showResult(int z1, int n2) {\n\t\tif (n2 < 0){\n \tresultZ.setText(\"\" + (-1*z1) );\n \tresultN.setText(\"\" + (-1*n2) );\n\t\t} else {\n \tresultZ.setText(\"\" + z1 );\n \tresultN.setText(\"\" + n2 );\n }\t\n\t}", "@Test\n public void test21() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Minus minus0 = new Minus();\n double double0 = illinoisSolver0.solve(4037, (UnivariateRealFunction) minus0, (double) 4037, 0.0, (double) 4037);\n }", "public static void main(String[] args)\r\n\t{\n\t\tdouble[] x = increment(-1.0, 0.2, 1.2); // INCREMENTS X = [-1.0, 1.2) BY 0.2\r\n\t\tdouble[] y = increment(-2.0, 0.2, 2.2); // INCREMENTS Y = [-2.0, 2.2) BY 0.2\r\n\t\t\r\n\t\t// THE increment METHOD OF THE DoubleArray CLASS GIVES INCREMENTED \r\n\t\t// DOUBLE VALUES THAT AREN'T ENTIRELY ACCURATE DUE TO THE FORMULA USED.\r\n\t\t// THIS FIXES THAT FOR THIS PROGRAM WHERE WE ONLY NEED 1 DECIMAL PLACE.\r\n\t\tDecimalFormat df = new DecimalFormat(\"#.#\");\r\n\t\tfor (int i = 0; i < x.length; i++)\r\n\t\t{\r\n\t\t\tx[i] = Double.valueOf(df.format(x[i]));\r\n\t\t\ty[i] = Double.valueOf(df.format(y[i]));\r\n\t\t}\r\n\t\t\r\n\t\t// PLOT DATA FOR z(x,y)\r\n\t\tdouble[][] z = function(x, y);\r\n\t\t\r\n \r\n\t\t// PANEL THAT SHOWS THE PLOT WITH A LEGEND AT THE BOTTOM\r\n\t\tPlot3DPanel plot = new Plot3DPanel(\"SOUTH\");\r\n \r\n\t\t// ADD THE VALUES OF X, Y, Z TO THE PANEL WITH LEGEND\r\n\t\tplot.addGridPlot(\"z(x,y) = (1-cos(PI*x))*((1.23456+cos(1.06512*y))^2)*e^(-x^2-y^2)\", x, y, z);\r\n \r\n\t\t// PUT THE PANEL INTO A JFrame\r\n\t\tJFrame frame = new JFrame(\"A Plot\");\r\n\t\tframe.setSize(600, 600);\r\n\t\tframe.setContentPane(plot);\r\n\t\tframe.setVisible(true);\r\n\t\t\r\n\t\t// FIND THE GRADIENTS\r\n\t\thighest[3] = gradient(partialX(highest[0], highest[1]), \r\n\t\t\t\tpartialY(highest[0], highest[1]));\r\n\t\tsecondHighest[3] = gradient(partialX(secondHighest[0], secondHighest[0]), \r\n\t\t\t\tpartialY(secondHighest[0], secondHighest[0]));\r\n\t\tlowest[3] = gradient(partialX(lowest[0], lowest[1]), \r\n\t\t\t\tpartialY(lowest[0], lowest[1]));\r\n\t\tsecondLowest[3] = gradient(partialX(secondLowest[0], secondLowest[1]), \r\n\t\t\t\tpartialY(secondLowest[0], secondLowest[1]));\r\n\t\t\r\n\t\t// PRINT A TABLE IN THE CONSOLE\r\n\t\tDecimalFormat out = new DecimalFormat(\"#.####\");\r\n\t\tSystem.out.println(\"\\t\\tX\\t|\\tY\\t|\\tZ\\t|\\tGrad\");\r\n\t\tSystem.out.println(\"Highest:\\t\" + highest[0] + \"\\t|\\t\" + highest[1] + \r\n\t\t\t\t\"\\t|\\t\" + out.format(highest[2]) + \"\\t|\\t\" + out.format(highest[3]));\r\n\t\tSystem.out.println(\"2nd Highest:\\t\" + secondHighest[0] + \"\\t|\\t\" + \r\n\t\t\t\tsecondHighest[1] + \"\\t|\\t\" + out.format(secondHighest[2]) + \r\n\t\t\t\t\"\\t|\\t\" + out.format(secondHighest[3]));\r\n\t\tSystem.out.println(\"Lowest: \\t\" + lowest[0] + \"\\t|\\t\" + lowest[1] + \r\n\t\t\t\t\"\\t|\\t\" + out.format(lowest[2]) + \"\\t|\\t\" + out.format(lowest[3]));\r\n\t\tSystem.out.println(\"2nd Lowest:\\t\" + secondLowest[0] + \"\\t|\\t\" + \r\n\t\t\t\tsecondLowest[1] + \"\\t|\\t\" + out.format(secondLowest[2]) + \r\n\t\t\t\t\"\\t|\\t\" + out.format(secondLowest[3]));\r\n\t}", "@Test\n public void test08() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(152.236924);\n Sinc sinc0 = new Sinc();\n AllowedSolution allowedSolution0 = AllowedSolution.BELOW_SIDE;\n // Undeclared exception!\n try { \n regulaFalsiSolver0.solve(3, (UnivariateRealFunction) sinc0, 152.236924, 152.236924, 0.0, allowedSolution0);\n } catch(IllegalArgumentException e) {\n //\n // endpoints do not specify an interval: [152.237, 152.237]\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils\", e);\n }\n }", "@Test\n public void test27() throws Throwable {\n Complex complex0 = new Complex(0.9999997615814209, 0.9999997615814209);\n try { \n complex0.multiply((Complex) null);\n } catch(IllegalArgumentException e) {\n //\n // null is not allowed\n //\n assertThrownBy(\"org.apache.commons.math.util.MathUtils\", e);\n }\n }", "public void testSolve1() {\n test = new Location(0, 1);\n maze2.setCell(test, MazeCell.WALL);\n test = new Location(1, 1);\n maze2.setStartLocation(test);\n test = new Location(0, 0);\n maze2.setGoalLocation(test);\n assertEquals(\"(0, 0) (1, 0) (1, 1) \", maze2.solve());\n }", "@Test\n public void test24() throws Throwable {\n Complex complex0 = new Complex((-0.5), (-0.5));\n try { \n complex0.add((Complex) null);\n } catch(IllegalArgumentException e) {\n //\n // null is not allowed\n //\n assertThrownBy(\"org.apache.commons.math.util.MathUtils\", e);\n }\n }", "public void PerspektivischeProjektion(){\n /**\n * Abrufen der Koordinaten aus den einzelnen\n * Point Objekten des Objekts Tetraeder.\n */\n double[] A = t1.getTetraeder()[0].getPoint();\n double[] B = t1.getTetraeder()[1].getPoint();\n double[] C = t1.getTetraeder()[2].getPoint();\n double[] D = t1.getTetraeder()[3].getPoint();\n\n /*\n * Aufrufen der Methode sortieren\n */\n double[][] sP = cls_berechnen.sortieren(A, B, C, D);\n\n A = sP[0];\n B = sP[1];\n C = sP[2];\n D = sP[3];\n\n /*Wenn alle z Koordinaten gleich sind, ist es kein Tetraeder. */\n if (A[2] == D[2]) {\n System.out.println(\"kein Tetraeder\");\n return;\n }\n\n //Entfernung vom 'Center of projection' zur 'Projectoin plane'\n double d=5;\n\n /*\n * Transformiert x|y|z Koordinaten in x|y Koordinaten\n * mithilfer der perspektivischen Projektion\n */\n\n A[0]=A[0]/((A[2]+d)/d);\n A[1]=A[1]/((A[2]+d)/d);\n B[0]=B[0]/((B[2]+d)/d);\n B[1]=B[1]/((B[2]+d)/d);\n C[0]=C[0]/((C[2]+d)/d);\n C[1]=C[1]/((C[2]+d)/d);\n D[0]=D[0]/((D[2]+d)/d);\n D[1]=D[1]/((D[2]+d)/d);\n\n\n double ax, ay, bx, by, cx, cy, dx, dy;\n ax=A[0];\n ay=A[1];\n bx=B[0];\n by=B[1];\n cx=C[0];\n cy=C[1];\n dx=D[0];\n dy=D[1];\n\n tetraederzeichnen(ax, ay, bx, by, cx, cy, dx, dy);\n }", "public static double solve(UnivariateFunction function, double x0, double x1, double absoluteAccuracy)\r\n/* 23: */ {\r\n/* 24: 73 */ if (function == null) {\r\n/* 25: 74 */ throw new NullArgumentException(LocalizedFormats.FUNCTION, new Object[0]);\r\n/* 26: */ }\r\n/* 27: 76 */ UnivariateSolver solver = new BrentSolver(absoluteAccuracy);\r\n/* 28: 77 */ return solver.solve(2147483647, function, x0, x1);\r\n/* 29: */ }", "public void displace( double xi, double eta, double[] xyz1 ) {\n dtp2v( xi, eta, x0_, y0_, z0_, xyz1 );\n assert Math.abs( ( xyz1[ 0 ] * xyz1[ 0 ] +\n xyz1[ 1 ] * xyz1[ 1 ] +\n xyz1[ 2 ] * xyz1[ 2 ] ) - 1 ) < 1e-8;\n }", "@Test\n public void addEntry_nan_ignored() {\n variance.addEntry(NaN);\n // Add any values (let's say 7 and 9). Verify that the result is equal to their variance.\n variance.addEntry(7);\n variance.addEntry(9);\n assertThat(variance.computeResult()).isEqualTo(1.0);\n }", "@Test\n public void test03() throws Throwable {\n double[] doubleArray0 = new double[5];\n doubleArray0[0] = (-752.3);\n doubleArray0[1] = (-3311.34);\n doubleArray0[2] = (-1.0);\n doubleArray0[4] = (-3693.989241);\n PolynomialFunctionLagrangeForm polynomialFunctionLagrangeForm0 = new PolynomialFunctionLagrangeForm(doubleArray0, doubleArray0);\n double double0 = UnivariateRealSolverUtils.solve((UnivariateRealFunction) polynomialFunctionLagrangeForm0, (-628.8590785579964), 32.3197224);\n assertEquals(0.0, double0, 0.01D);\n }", "@Test\n public void test22() throws Throwable {\n Complex complex0 = new Complex((-1233.7737927341), (-1233.7737927341));\n Complex complex1 = complex0.createComplex((-1233.7737927341), (-1233.7737927341));\n int int0 = complex0.hashCode();\n try { \n complex0.pow((Complex) null);\n } catch(IllegalArgumentException e) {\n //\n // null is not allowed\n //\n assertThrownBy(\"org.apache.commons.math.util.MathUtils\", e);\n }\n }", "public void circulo(){\n JOptionPane.showMessageDialog(null,\"Bienvenido\\nA continuacion sabra el Area y Perimetro de un Circulo\");\n texto = JOptionPane.showInputDialog(\"Ingrese el radio\");\n l = Double.parseDouble(texto);\n if (l<=0){\n JOptionPane.showMessageDialog(null,\"Valor Invalido\\nA continuacion ingrese un valor positivo\");\n texto = JOptionPane.showInputDialog(\"Ingrese el radio\");\n l = Double.parseDouble(texto);\n }\n a = 3.1416*(l*l);\n p = 3.1416*(l*2);\n JOptionPane.showMessageDialog(null,\"El Area es de \"+a+\" u^2 y un Perimetro un de \"+p+\" u\");\n \n }", "private void prac(int n, int[] x, int[] z, int[] xT, int[] zT, int[] xT2, int[] zT2) {\r\n\t\tint d, e, r, i;\r\n\t\tint[] t;\r\n\t\tint[] xA = x, zA = z;\r\n\t\tint[] xB = fieldAux1, zB = fieldAux2;\r\n\t\tint[] xC = fieldAux3, zC = fieldAux4;\r\n\t\tdouble v[] = { 1.61803398875, 1.72360679775, 1.618347119656, 1.617914406529, 1.612429949509, 1.632839806089, 1.620181980807, 1.580178728295,\r\n\t\t\t\t1.617214616534, 1.38196601125 };\r\n\r\n\t\t/* chooses the best value of v */\r\n\t\tr = lucas_cost(n, v[0]);\r\n\t\ti = 0;\r\n\t\tfor (d = 1; d < 10; d++) {\r\n\t\t\te = lucas_cost(n, v[d]);\r\n\t\t\tif (e < r) {\r\n\t\t\t\tr = e;\r\n\t\t\t\ti = d;\r\n\t\t\t}\r\n\t\t}\r\n\t\td = n;\r\n\t\tr = (int) ((double) d / v[i] + 0.5);\r\n\t\t/* first iteration always begins by Condition 3, then a swap */\r\n\t\td = n - r;\r\n\t\te = 2 * r - n;\r\n\t\tSystem.arraycopy(xA, 0, xB, 0, NumberLength); // B = A\r\n\t\tSystem.arraycopy(zA, 0, zB, 0, NumberLength);\r\n\t\tSystem.arraycopy(xA, 0, xC, 0, NumberLength); // C = A\r\n\t\tSystem.arraycopy(zA, 0, zC, 0, NumberLength);\r\n\t\tduplicate(xA, zA, xA, zA); /* A=2*A */\r\n\t\twhile (d != e) {\r\n\t\t\tif (d < e) {\r\n\t\t\t\tr = d;\r\n\t\t\t\td = e;\r\n\t\t\t\te = r;\r\n\t\t\t\tt = xA;\r\n\t\t\t\txA = xB;\r\n\t\t\t\txB = t;\r\n\t\t\t\tt = zA;\r\n\t\t\t\tzA = zB;\r\n\t\t\t\tzB = t;\r\n\t\t\t}\r\n\t\t\t/* do the first line of Table 4 whose condition qualifies */\r\n\t\t\tif (4 * d <= 5 * e && ((d + e) % 3) == 0) { /* condition 1 */\r\n\t\t\t\tr = (2 * d - e) / 3;\r\n\t\t\t\te = (2 * e - d) / 3;\r\n\t\t\t\td = r;\r\n\t\t\t\tadd3(xT, zT, xA, zA, xB, zB, xC, zC); /* T = f(A,B,C) */\r\n\t\t\t\tadd3(xT2, zT2, xT, zT, xA, zA, xB, zB); /* T2 = f(T,A,B) */\r\n\t\t\t\tadd3(xB, zB, xB, zB, xT, zT, xA, zA); /* B = f(B,T,A) */\r\n\t\t\t\tt = xA;\r\n\t\t\t\txA = xT2;\r\n\t\t\t\txT2 = t;\r\n\t\t\t\tt = zA;\r\n\t\t\t\tzA = zT2;\r\n\t\t\t\tzT2 = t; /* swap A and T2 */\r\n\t\t\t} else if (4 * d <= 5 * e && (d - e) % 6 == 0) { /* condition 2 */\r\n\t\t\t\td = (d - e) / 2;\r\n\t\t\t\tadd3(xB, zB, xA, zA, xB, zB, xC, zC); /* B = f(A,B,C) */\r\n\t\t\t\tduplicate(xA, zA, xA, zA); /* A = 2*A */\r\n\t\t\t} else if (d <= (4 * e)) { /* condition 3 */\r\n\t\t\t\td -= e;\r\n\t\t\t\tadd3(xT, zT, xB, zB, xA, zA, xC, zC); /* T = f(B,A,C) */\r\n\t\t\t\tt = xB;\r\n\t\t\t\txB = xT;\r\n\t\t\t\txT = xC;\r\n\t\t\t\txC = t;\r\n\t\t\t\tt = zB;\r\n\t\t\t\tzB = zT;\r\n\t\t\t\tzT = zC;\r\n\t\t\t\tzC = t; /* circular permutation (B,T,C) */\r\n\t\t\t} else if ((d + e) % 2 == 0) { /* condition 4 */\r\n\t\t\t\td = (d - e) / 2;\r\n\t\t\t\tadd3(xB, zB, xB, zB, xA, zA, xC, zC); /* B = f(B,A,C) */\r\n\t\t\t\tduplicate(xA, zA, xA, zA); /* A = 2*A */\r\n\t\t\t} else if (d % 2 == 0) { /* condition 5 */\r\n\t\t\t\td /= 2;\r\n\t\t\t\tadd3(xC, zC, xC, zC, xA, zA, xB, zB); /* C = f(C,A,B) */\r\n\t\t\t\tduplicate(xA, zA, xA, zA); /* A = 2*A */\r\n\t\t\t} else if (d % 3 == 0) { /* condition 6 */\r\n\t\t\t\td = d / 3 - e;\r\n\t\t\t\tduplicate(xT, zT, xA, zA); /* T1 = 2*A */\r\n\t\t\t\tadd3(xT2, zT2, xA, zA, xB, zB, xC, zC); /* T2 = f(A,B,C) */\r\n\t\t\t\tadd3(xA, zA, xT, zT, xA, zA, xA, zA); /* A = f(T1,A,A) */\r\n\t\t\t\tadd3(xT, zT, xT, zT, xT2, zT2, xC, zC); /* T1 = f(T1,T2,C) */\r\n\t\t\t\tt = xC;\r\n\t\t\t\txC = xB;\r\n\t\t\t\txB = xT;\r\n\t\t\t\txT = t;\r\n\t\t\t\tt = zC;\r\n\t\t\t\tzC = zB;\r\n\t\t\t\tzB = zT;\r\n\t\t\t\tzT = t; /* circular permutation (C,B,T) */\r\n\t\t\t} else if ((d + e) % 3 == 0) { /* condition 7 */\r\n\t\t\t\td = (d - 2 * e) / 3;\r\n\t\t\t\tadd3(xT, zT, xA, zA, xB, zB, xC, zC); /* T1 = f(A,B,C) */\r\n\t\t\t\tadd3(xB, zB, xT, zT, xA, zA, xB, zB); /* B = f(T1,A,B) */\r\n\t\t\t\tduplicate(xT, zT, xA, zA);\r\n\t\t\t\tadd3(xA, zA, xA, zA, xT, zT, xA, zA); /* A = 3*A */\r\n\t\t\t} else if ((d - e) % 3 == 0) { /* condition 8 */\r\n\t\t\t\td = (d - e) / 3;\r\n\t\t\t\tadd3(xT, zT, xA, zA, xB, zB, xC, zC); /* T1 = f(A,B,C) */\r\n\t\t\t\tadd3(xC, zC, xC, zC, xA, zA, xB, zB); /* C = f(A,C,B) */\r\n\t\t\t\tt = xB;\r\n\t\t\t\txB = xT;\r\n\t\t\t\txT = t;\r\n\t\t\t\tt = zB;\r\n\t\t\t\tzB = zT;\r\n\t\t\t\tzT = t; /* swap B and T */\r\n\t\t\t\tduplicate(xT, zT, xA, zA);\r\n\t\t\t\tadd3(xA, zA, xA, zA, xT, zT, xA, zA); /* A = 3*A */\r\n\t\t\t} else if (e % 2 == 0) { /* condition 9 */\r\n\t\t\t\te /= 2;\r\n\t\t\t\tadd3(xC, zC, xC, zC, xB, zB, xA, zA); /* C = f(C,B,A) */\r\n\t\t\t\tduplicate(xB, zB, xB, zB); /* B = 2*B */\r\n\t\t\t}\r\n\t\t}\r\n\t\tadd3(x, z, xA, zA, xB, zB, xC, zC);\r\n\t}", "Function<RealMatrix, T> getJacobianNaNProcessor();", "private static void dtp2v( double xi, double eta,\n double x, double y, double z,\n double[] v ) {\n double f = Math.sqrt( 1 + xi * xi + eta * eta );\n double r = Math.hypot( x, y );\n if ( r == 0 ) {\n r = 1d-20;\n x = r;\n }\n double f1 = 1.0 / f;\n double r1 = 1.0 / r;\n v[ 0 ] = ( x - ( xi * y + eta * x * z ) * r1 ) * f1;\n v[ 1 ] = ( y + ( xi * x - eta * y * z ) * r1 ) * f1;\n v[ 2 ] = ( z + eta * r ) * f1;\n }", "@Test\n public void Constructor_test() \n {\n // ============ Equivalence Partitions Tests ==============\n\n // TC01: creating the Plane: x + y + z = 1 with the constructor\n\t // that get 3 Point3D that contain in the Plane\n try \n {\n new Plane(new Point3D(1,0,0), new Point3D(0,1,0), new Point3D(0,0,1));\n } \n catch (IllegalArgumentException e) \n {\n fail(\"Failed constructing a correct Plane\");\n }\n \n // TC02: creating the Plane: x + y + z = 1 with the constructor\n \t // that get Point3D that contain in the Plane and Vector- the normal of the Plane.\n try \n {\n new Plane(new Point3D(1,0,0), new Vector(1,1,1));\n } \n catch (IllegalArgumentException e) \n {\n fail(\"Failed constructing a correct Plane\");\n }\n \n // =============== Boundary Values Tests ==================\n \n // TC03: creating the Plane: z = 0 with the constructor\n \t // that get 3 Point3D that contain in the Plane\n try \n {\n new Plane(new Point3D(1,0,0), new Point3D(0,1,0), new Point3D(2,3,0));\n } \n catch (IllegalArgumentException e) \n {\n fail(\"Failed constructing a correct Plane\");\n }\n \n // TC04: creating the Plane: x + y + z = 1 with the constructor\n \t // that get Point3D that contain in the Plane and Vector- the normal of the Plane.\n try \n {\n new Plane(new Point3D(1,0,0), new Vector(0,0,1));\n } \n catch (IllegalArgumentException e) \n {\n fail(\"Failed constructing a correct Plane\");\n }\n }", "float wyznaczCeneActual2(Boolean debug)\n\t{\n\t\tBoolean welcome = false && debug;\n\t\tBoolean funkcjaRynku = false && debug;\n\t\tBoolean bisectionStep = false && debug;\n\t\tBoolean bisectionEnd = true && debug;\n\t\tBoolean rownomienryPodzial = true && debug;\n\n\n\t\t\n\t\t//printListaFunkcjiUzytecznosci(1);\n\t\t//printListaFunkcjiUzytecznosci(2);\n\t\t\n\t\t//wszystkie ceny sa tkaie same wiec mozna wziac pierwszego prosumenta i od neigo pobrac cene\n\t\tArrayList<Point> L1 =listaFunkcjiUzytecznosci.get(0);\n\t\t\n\t\tfloat leftBound = L1.get(0).getPrice();\n\t\tfloat rightBound = L1.get(L1.size()-1).getPrice();\n\t\t\n\n\t\t\n\t\tif (welcome)\n\t\t{\n\t\t\tprint (\"Welcome to wyznaczCeneActual\");\n\t\t\tprint (\"leftBound \"+leftBound+\" \");\n\t\t\tprint (\"rightBound \"+rightBound+\" \");\n\t\t\tgetInput();\n\t\t}\n\t\t\n\t\t\t\t\n\t\tfloat valueToBeReturned = wyznaczCeneRownomiernyPodzial(leftBound,rightBound,rownomienryPodzial,false);\n\t\t\n\t\tif (bisectionEnd)\n\t\t{\n\t\t\tprint(\"Bisection end #2\");\n\t\t\tprint (\"return \" +valueToBeReturned);\n\n\t\t\tgetInput();\n\t\t}\n\t\t\n\t\treturn valueToBeReturned;\n\t}", "public float solveEqun(float[][] values, int uf, int eq) {\n float sol=0;\n float v=0,u=0,a=0,t=0,s=0;\n for (int i=0;i<3;i++) {\n for (int j=0;j<2;j++) {\n if (values[i][1] == 1)\n v = values[i][0];\n else if (values[i][1] == 2)\n u = values[i][0];\n else if (values[i][1] == 3)\n a = values[i][0];\n else if (values[i][1] == 4)\n t = values[i][0];\n else if (values[i][1] == 5)\n s = values[i][0];\n }\n }\n\n if (eq == 1) {\n if (uf == 1) {\n sol = u+(a*t);\n //System.out.println(\"u:\"+u);\n }\n else if (uf == 2) {\n sol = v - (a*t);\n //System.out.println(\"V:\"+v);\n }\n\n else if (uf == 3)\n sol = (v-u)/t;\n else if (uf == 4)\n sol = (v-u)/a;\n }\n\n else if (eq == 2) {\n if (uf == 5)\n sol = (float) ((u*t) + (0.5*a*t*t));\n else if (uf == 2)\n sol = (float) ((s-(0.5*a*t*t))/t);\n else if (uf == 3)\n sol = (float) ((s-(u*t))/(0.5*t*t));\n else if (uf == 4) {\n float sol1 = (float) ((-u+Math.sqrt(u*u+(4*0.5*a*t*t*s)))/(2*u));\n float sol2 = (float) ((-u-Math.sqrt(u*u+(4*0.5*a*t*t*s)))/(2*u));\n if (sol1<0)\n sol = sol2;\n else\n sol = sol1;\n }\n }\n\n else if (eq == 3) {\n if (uf == 1)\n sol = (float) Math.sqrt((2*a*s)-(u*u));\n else if (uf == 2)\n sol = (float) Math.sqrt((v*v)-(2*a*s));\n else if (uf == 3)\n sol = ((v*v)-(u*u))/(2*s);\n else if (uf == 5)\n sol = ((v*v)-(u*u))/(2*a);\n }\n\n return sol;\n }", "public void MOD( ){\n String tipo1 = pilhaVerificacaoTipos.pop().toString();\n String tipo2 = pilhaVerificacaoTipos.pop().toString();\n String val1 = dads.pop().toString();\n float fresult = -1;\n String val2 = dads.pop().toString();\n if(val1 != null && val2 != null){\n if (tipo1 != null && tipo2 != null){\n if(tipo1 == \"inteiro\" && tipo2 == \"real\"){\n if(Float.parseFloat(val2) != 0){\n fresult = Integer.parseInt(val1) % Float.parseFloat(val2);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n }\n }else if(tipo1 == \"real\" && tipo2 ==\"inteiro\"){\n if(Float.parseFloat(val1) != 0){\n fresult = Integer.parseInt(val2) % Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n }\n }else if(tipo1 == \"real\" && tipo2 ==\"real\"){\n if(Float.parseFloat(val1) != 0){\n fresult = Float.parseFloat(val2) % Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n }\n }else if(tipo1 == \"inteiro\" && tipo2 ==\"inteiro\"){\n if(Integer.parseInt(val1) != 0){\n fresult = Integer.parseInt(val2) % Integer.parseInt(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n return;\n }\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(1): essa instrução é válida apenas para valores inteiros ou reais.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(2): não foi possível executar a instrução, tipo null encontrado.\";\n numErrVM += 1;\n return;\n }\n }else {\n mensagensErrosVM += \"\\nRUNTIME ERROR(3): não foi possível executar a instrução, valor null encontrado.\";\n numErrVM += 1;\n return;\n }\n\n\n topo += -1;\n ponteiro += 1;\n }", "public void solveIt() {\n\t\tfirstFreeSquare.setNumberMeAndTheRest();\n\t}", "@Test\n public void test28() throws Throwable {\n Complex complex0 = new Complex(0.0, 0.0);\n double double0 = complex0.abs();\n Complex complex1 = (Complex)complex0.readResolve();\n try { \n complex0.nthRoot((-504));\n } catch(IllegalArgumentException e) {\n //\n // cannot compute nth root for null or negative n: -504\n //\n assertThrownBy(\"org.apache.commons.math.MathRuntimeException\", e);\n }\n }", "public static void main(String[] args) {\n double numA;\n double numB;\n double numC;\n double delta;\n\n Scanner sc = new Scanner(System.in);\n System.out.print(\"Enter number a: \");\n numA = sc.nextDouble();\n System.out.print(\"Enter number b: \");\n numB = sc.nextDouble();\n System.out.print(\"Enter number c: \");\n numC = sc.nextDouble();\n delta = Math.pow(numB,2) - (4*numA*numC);\n\n if (numA == 0){\n if (numB == 0){\n if (numC == 0){\n System.out.println(\"Equation countless solutions\");\n }else {\n System.out.println(\"Equation has no solution\");;\n }\n }else {\n System.out.println(\"Equation has 1 solution x = \" + (-numB/numA));\n }\n }else {\n if (delta < 0){\n System.out.println(\"Equation has no solution\");\n }else if (delta == 0){\n System.out.println(\"Equation has 1 solution x = \" + (-numB/(2*numA)));\n }else {\n System.out.println(\"Equation has 2 solutions x1 = \" + (-numB+Math.sqrt(delta))/(2*numA));\n System.out.println(\"Equation has 2 solutions x2 = \" + (-numB-Math.sqrt(delta))/(2*numA));\n }\n }\n }", "public static void solveQuadraticEquation() {\n }", "public void solucion() {\r\n System.out.println(\"Intervalo : [\" + a + \", \" + b + \"]\");\r\n System.out.println(\"Error : \" + porce);\r\n System.out.println(\"decimales : \"+ deci);\r\n System.out.println(\"Iteraciones : \" + iteraciones);\r\n System.out\r\n .println(\"------------------------------------------------ \\n\");\r\n \r\n double c = 0;\r\n double fa = 0;\r\n double fb = 0;\r\n double fc = 0;\r\n int iteracion = 1;\r\n \r\n do {\r\n // Aqui esta la magia\r\n c = (a + b) / 2; \r\n System.out.println(\"Iteracion (\" + iteracion + \") : \" + c);\r\n fa = funcion(a);\r\n fb = funcion(b);\r\n fc = funcion(c);\r\n if (fa * fc == 0) {\r\n if (fa == 0) {\r\n JOptionPane.showMessageDialog(null, \"Felicidades la raíz es: \"+a);\r\n System.out.println(a);\r\n System.exit(0);\r\n } else {\r\n JOptionPane.showMessageDialog(null, \"Felicidades la raíz es: \"+c);\r\n System.out.println(c);\r\n System.exit(0);\r\n }}\r\n \r\n if (fc * fa < 0) {\r\n b = c;\r\n fa = funcion(a);\r\n fb = funcion(b);\r\n c = (a+b) / 2;\r\n \r\n x=c;\r\n fc = funcion(c);\r\n } else {\r\n a = c;\r\n fa = funcion(a);\r\n fb = funcion(b);\r\n c = (a+b) / 2;\r\n \r\n x=c;\r\n fc = funcion(c);\r\n }\r\n iteracion++;\r\n // Itera mientras se cumpla la cantidad de iteraciones establecidas\r\n // y la funcion se mantenga dentro del margen de error\r\n \r\n er = Math.abs(((c - x) / c)* 100);\r\n BigDecimal bd = new BigDecimal(aux1);\r\n bd = bd.setScale(deci, RoundingMode.HALF_UP);\r\n BigDecimal bdpm = new BigDecimal(pm);\r\n bdpm = bdpm.setScale(deci, RoundingMode.HALF_UP);\r\n cont++;\r\n fc=c ;\r\n JOptionPane.showMessageDialog(null, \"conteos: \" + cont + \" Pm: \" + bd.doubleValue() + \" Funcion: \" + bdpm.doubleValue() + \" Error: \" + er +\"%\"+ \"\\n\");\r\n } while (er <=porce);\r\n \r\n \r\n }", "@Override\n\tpublic IVector mutiraj(IVector jedinka, Double p) {\n\t\treturn null;\n\t}", "@Test\n public void test16() throws Throwable {\n double[] doubleArray0 = new double[4];\n doubleArray0[0] = (-1600.0035307559176);\n doubleArray0[1] = 1149.7346327967;\n doubleArray0[2] = (-1608.690170583074);\n PolynomialFunctionLagrangeForm polynomialFunctionLagrangeForm0 = new PolynomialFunctionLagrangeForm(doubleArray0, doubleArray0);\n try { \n UnivariateRealSolverUtils.bracket((UnivariateRealFunction) polynomialFunctionLagrangeForm0, 0.8868335868819226, 0.8868335868819226, 1.0, 4761);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // number of iterations=1, maximum iterations=4,761, initial=0.887, lower bound=0.887, upper bound=1, final a value=0.887, final b value=1, f(a)=0.887, f(b)=1\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils\", e);\n }\n }", "@Test\n public void test13() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Asin asin0 = new Asin();\n illinoisSolver0.setup(5, asin0, 907.1500599825578, 16, 16);\n // Undeclared exception!\n try { \n illinoisSolver0.doSolve();\n } catch(IllegalArgumentException e) {\n //\n // endpoints do not specify an interval: [907.15, 16]\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils\", e);\n }\n }", "public void c(double paramDouble1, double paramDouble2, double paramDouble3, float paramFloat1, float paramFloat2)\r\n/* 77: */ {\r\n/* 78: 89 */ float f1 = uv.a(paramDouble1 * paramDouble1 + paramDouble2 * paramDouble2 + paramDouble3 * paramDouble3);\r\n/* 79: */ \r\n/* 80: 91 */ paramDouble1 /= f1;\r\n/* 81: 92 */ paramDouble2 /= f1;\r\n/* 82: 93 */ paramDouble3 /= f1;\r\n/* 83: */ \r\n/* 84: 95 */ paramDouble1 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 85: 96 */ paramDouble2 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 86: 97 */ paramDouble3 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 87: */ \r\n/* 88: 99 */ paramDouble1 *= paramFloat1;\r\n/* 89:100 */ paramDouble2 *= paramFloat1;\r\n/* 90:101 */ paramDouble3 *= paramFloat1;\r\n/* 91: */ \r\n/* 92:103 */ this.v = paramDouble1;\r\n/* 93:104 */ this.w = paramDouble2;\r\n/* 94:105 */ this.x = paramDouble3;\r\n/* 95: */ \r\n/* 96:107 */ float f2 = uv.a(paramDouble1 * paramDouble1 + paramDouble3 * paramDouble3);\r\n/* 97: */ \r\n/* 98:109 */ this.A = (this.y = (float)(Math.atan2(paramDouble1, paramDouble3) * 180.0D / 3.141592741012573D));\r\n/* 99:110 */ this.B = (this.z = (float)(Math.atan2(paramDouble2, f2) * 180.0D / 3.141592741012573D));\r\n/* 100:111 */ this.i = 0;\r\n/* 101: */ }", "@Test\n public void test24() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Asin asin0 = new Asin();\n // Undeclared exception!\n try { \n illinoisSolver0.solve((-2213), (UnivariateRealFunction) asin0, 0.008336750013465571, (-2468.32548668046), 0.008336750013465571);\n } catch(IllegalStateException e) {\n //\n // illegal state: maximal count (-2,213) exceeded: evaluations\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.BaseAbstractUnivariateRealSolver\", e);\n }\n }", "public static void solve(String question)\n\t{\n\t\t\n\t\tint add_function = 0;\n\t\tint sub_function = 0;\n\t\t\n\t\tString string_alpha = find_a(question); //finds the value of first input including x\n\t\tString string_beta = find_b(question); //finds the value of second input including x\n\t\t\n\t\tint var_alpha = find_a_num(question); //finds value as integer not including x, of first function\n\t\tint var_beta = find_b_num(question); //finds value as integer not including x, of second function\n\t\t\n\t\tSystem.out.println((find_par(2,question) + find_par(3,question)));\n\t\t\n\t\tString function_1 = function_1(question); //finds just the trig operator of the first function only used to check what type of equation\n\t\tString function_2 = function_2(question); //finds just the trig operator of the second function\n\t\t\n\t\t//check to make sure question is valid if not will start over\n\t\tif (!((function_1.equalsIgnoreCase(\"sin\") && function_1.equalsIgnoreCase(\"cos\") && function_1.equalsIgnoreCase(\"tan\")) || (function_2.equalsIgnoreCase(\"sin\") || function_2.equalsIgnoreCase(\"cos\") || function_2.equalsIgnoreCase(\"tan\"))))\n\t\t{\n\t\t\terror();\n\t\t}\n\t\t\n\t\t//checking to see what equation to use\n\t\t\n\t\tif (function_1.equalsIgnoreCase(\"sin\") && function_2.equalsIgnoreCase(\"sin\"))\n\t\t{\n\t\t\t\n\t\t\tsin_sin(string_alpha,string_beta,var_alpha,var_beta);\n\t\t\t/*System.out.println(\"Step 1: (1/2)[(cos(\" + string_alpha + \"-\" + string_beta + \")) - (cos(\" + string_alpha + \"+\" + string_beta +\"))]\"); //prints first step\n\t\t\t\n\t\t\tadd_function = var_alpha + var_beta; //adds the two values as integer\n\t\t\tsub_function = var_alpha - var_beta;\t//substracts the two values as integers\n\t\t\t\n\t\t\tString string_alpha2 = add_function +\"x\"; //reasigns string including x after substracting two values\n\t\t\tString string_beta2 = sub_function +\"x\";\t//reasigns string including x after substracting two values\n\n\t\t\tSystem.out.println(\"\\nStep 2: (1/2)[cos(\" + string_beta2 + \") - cos(\" + string_alpha2 + \")]\"); // uses x a literal instead of from string because they are always there and substracts both halfs\n\t\t\t\n\t\t\tSystem.out.println(\"\\nStep 3: (1/2)cos(\" + string_beta2 + \") - (1/2)cos(\" + string_alpha2 + \")\");\n\t\t\t\n\t\t\tfinished();*/\n\t\t\t\n\t\t}\n\t\t\n\t\tif (function_1.equalsIgnoreCase(\"sin\") && function_2.equalsIgnoreCase(\"cos\"))\n\t\t{\n\t\t\tSystem.out.println(\"Step 1: (1/2)[(cos(\" + string_alpha + \"+\" + string_beta + \")) - (cos(\" + string_alpha + \"-\" + string_beta +\"))]\\t\\tenter values into equation\"); //prints first step\n\t\t\t\n\t\t\tadd_function = var_alpha + var_beta; //adds the two values as integer\n\t\t\tsub_function = var_alpha - var_beta;\t//substracts the two values as integers\n\t\t\t\n\t\t\tString string_alpha2 = add_function +\"x\"; //reasigns string including x after substracting two values\n\t\t\tString string_beta2 = sub_function +\"x\";\t//reasigns string including x after substracting two values\n\n\t\t\tSystem.out.println(\"\\nStep 2: (1/2)[cos(\" + string_alpha2 + \") + cos(\" + string_beta2 + \")]\\t\\tsimplify values\"); // uses x a literal instead of from string because they are always there and substracts both halfs\n\t\t\t\n\t\t\tSystem.out.println(\"\\nStep 3: (1/2)cos(\" + string_alpha2 + \") + (1/2)cos(\" + string_beta2 + \") t\\tdistribute 1/2\");\n\t\t\t\n\t\t\tfinished();\n\t\t\t\n\t\t}\n\t\t//not done\n\t\tif (function_1.equalsIgnoreCase(\"cos\") && function_2.equalsIgnoreCase(\"cos\"))\n\t\t{\n\t\t\tSystem.out.println(\"Step 1: (1/2)[(cos(\" + string_alpha + \"+\" + string_beta + \")) - (cos(\" + string_alpha + \"-\" + string_beta +\"))]\\t\\tenter values into equation\"); //prints first step\n\t\t\t\n\t\t\tadd_function = var_alpha + var_beta; //adds the two values as integer\n\t\t\tsub_function = var_alpha - var_beta;\t//substracts the two values as integers\n\t\t\t\n\t\t\tString string_alpha2 = add_function +\"x\"; //reasigns string including x after substracting two values\n\t\t\tString string_beta2 = sub_function +\"x\";\t//reasigns string including x after substracting two values\n\n\t\t\tSystem.out.println(\"\\nStep 2: (1/2)[cos(\" + string_alpha2 + \") + cos(\" + string_beta2 + \")]\\t\\tsimplify values\"); // uses x a literal instead of from string because they are always there and substracts both halfs\n\t\t\t\n\t\t\tSystem.out.println(\"\\nStep 3: (1/2)cos(\" + string_alpha2 + \") + (1/2)cos(\" + string_beta2 + \") t\\tdistribute 1/2\");\n\t\t\t\n\t\t\tfinished();\n\t\t\t\n\t\t}\n\t\t\n\t\t////////////\n\t\t//System.out.println(function_1 + \" \" + function_2);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//find_b(question);\n\t}", "@Test\n public void test20() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.0);\n Asinh asinh0 = new Asinh();\n AllowedSolution allowedSolution0 = AllowedSolution.ANY_SIDE;\n double double0 = regulaFalsiSolver0.solve(937, (UnivariateRealFunction) asinh0, (-3537.8), 1704.8188, allowedSolution0);\n }", "public void get_InputValues(){\r\n\tA[1]=-0.185900;\r\n\tA[2]=-0.85900;\r\n\tA[3]=-0.059660;\r\n\tA[4]=-0.077373;\r\n\tB[1]=30.0;\r\n\tB[2]=19.2;\r\n\tB[3]=13.8;\r\n\tB[4]=22.5;\r\n\tC[1]=4.5;\r\n\tC[2]=12.5;\r\n\tC[3]=27.5;\r\n\tD[1]=16.0;\r\n\tD[2]=10.0;\r\n\tD[3]=7.0;\r\n\tD[4]=5.0;\r\n\tD[5]=4.0;\r\n\tD[6]=3.0;\r\n\t\r\n}", "@Test\n public void test04() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(4956.642689288169, 1711.029259737);\n Log1p log1p0 = new Log1p();\n AllowedSolution allowedSolution0 = AllowedSolution.LEFT_SIDE;\n // Undeclared exception!\n try { \n regulaFalsiSolver0.solve(0, (UnivariateRealFunction) log1p0, 4956.642689288169, 636.6, allowedSolution0);\n } catch(IllegalStateException e) {\n //\n // illegal state: maximal count (0) exceeded: evaluations\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.BaseAbstractUnivariateRealSolver\", e);\n }\n }", "public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n double x = s.nextDouble();\n double y = s.nextDouble();\n double a = s.nextDouble();\n double b = s.nextDouble();\n \n DecimalFormat df = new DecimalFormat(\"#.000000000000\");\n double dp = x*a + y*b;\n double el =Math.sqrt(a*a + b*b);\n //double mel = dp/Double.valueOf(df.format(el*el));\n double mel = dp/(el*el);\n double as = mel*a;\n double bs = mel*b;\n double n = (x-mel*a)/(-1*b);\n //System.out.println(dp + \" \" + el + \" \" + mel + \" \" + as + \" \" + bs + \" \" + n);\n System.out.println(mel);\n System.out.println(n);\n }", "public void interpolateMissing() {\n if (keyframes.size()==1)\n return;\n fillTrans();\n fillRots();\n fillScales();\n for (int objIndex=0;objIndex<numObjects;objIndex++)\n pivots[objIndex].applyToSpatial(toChange[objIndex]);\n }", "public static void main(String[] args) {\nSystem.out.println(\"enter the t and v\");\ndouble t=Util.readdouble();\ndouble v=Util.readdouble();\nUtil.wind(t, v);\n}", "public void nullValues() {\r\n\t\tJOptionPane.showMessageDialog(null,\r\n\t\t\t\t\"Null values ​​are not allowed or incorrect values\");\r\n\t}", "private DoubleMatrix solve33(DoubleMatrix A, DoubleMatrix rhs) {\n \n DoubleMatrix result = DoubleMatrix.zeros(3, 1);\n \n // if (A.lines() != 3 || A.pixels() != 3){\n // throw \"solve33: input: size of A not 33.\")\n // }\n // if (rhs.lines() != 3 || rhs.pixels() != 1) {\n // throw \"solve33: input: size rhs not 3x1.\")\n // }\n \n // ______ real8 L10, L20, L21: used lower matrix elements\n // ______ real8 U11, U12, U22: used upper matrix elements\n // ______ real8 b0, b1, b2: used Ux=b\n final double L10 = A.get(1, 0) / A.get(0, 0);\n final double L20 = A.get(2, 0) / A.get(0, 0);\n final double U11 = A.get(1, 1) - L10 * A.get(0, 1);\n final double L21 = (A.get(2, 1) - (A.get(0, 1) * L20)) / U11;\n final double U12 = A.get(1, 2) - L10 * A.get(0, 2);\n final double U22 = A.get(2, 2) - L20 * A.get(0, 2) - L21 * U12;\n \n // ______ Solution: forward substitution ______\n final double b0 = rhs.get(0, 0);\n final double b1 = rhs.get(1, 0) - b0 * L10;\n final double b2 = rhs.get(2, 0) - b0 * L20 - b1 * L21;\n \n // ______ Solution: backwards substitution ______\n result.put(2, 0, b2 / U22);\n result.put(1, 0, (b1 - U12 * result.get(2, 0)) / U11);\n result.put(0, 0, (b0 - A.get(0, 1) * result.get(1, 0) - A.get(0, 2) * result.get(2, 0)) / A.get(0, 0));\n \n return result;\n \n }", "void imprimeValores(){\n System.out.println(\"coordenada del raton:(\"+pratonl[0][0]+\",\"+pratonl[0][1]+\")\");\n System.out.println(\"coordenada del queso:(\"+pquesol[0][0]+\",\"+pquesol[0][1]+\")\");\n imprimeCalculos();//imprime la diferencia entre las X y las Y de las coordenadas\n movimiento();\n }", "private void solveIntersectionPoints() {\n\t\tRadialGauge gauge = getMetricsPath().getBody().getGauge();\n\n\t\t// define first circle which is gauge outline circle\n\t\tx0 = gauge.getCenterDevice().getX();\n\t\ty0 = gauge.getCenterDevice().getY();\n\t\tr0 = gauge.getRadius();\n\t\tarc0 = new Arc2D.Double(x0 - r0, y0 - r0, 2 * r0, 2 * r0, 0, 360, Arc2D.OPEN);\n\n\t\t// define the second circle with given parameters\n\t\tx1 = x0 + polarRadius * Math.cos(Math.toRadians(polarDegree));\n\t\ty1 = y0 - polarRadius * Math.sin(Math.toRadians(polarDegree));\n\t\tr1 = radius;\n\n\t\tarc1 = new Arc2D.Double(x1 - r1, y1 - r1, 2 * r1, 2 * r1, 0, 360, Arc2D.OPEN);\n\n\t\tif (polarDegree != 0 && polarDegree != 180) {\n\t\t\t// Ax²+Bx+B = 0\n\t\t\tdouble N = (r1 * r1 - r0 * r0 - x1 * x1 + x0 * x0 - y1 * y1 + y0 * y0) / (2 * (y0 - y1));\n\t\t\tdouble A = Math.pow((x0 - x1) / (y0 - y1), 2) + 1;\n\t\t\tdouble B = 2 * y0 * (x0 - x1) / (y0 - y1) - 2 * N * (x0 - x1) / (y0 - y1) - 2 * x0;\n\t\t\tdouble C = x0 * x0 + y0 * y0 + N * N - r0 * r0 - 2 * y0 * N;\n\t\t\tdouble delta = Math.sqrt(B * B - 4 * A * C);\n\n\t\t\tif (delta < 0) {\n\t\t\t\t//System.out.println(\"no solution\");\n\t\t\t} else if (delta >= 0) {\n\n\t\t\t\t// p1\n\t\t\t\tdouble p1x = (-B - delta) / (2 * A);\n\t\t\t\tdouble p1y = N - p1x * (x0 - x1) / (y0 - y1);\n\t\t\t\tintersectionPointStart = new Point2D.Double(p1x, p1y);\n\n\t\t\t\t// p2\n\t\t\t\tdouble p2x = (-B + delta) / (2 * A);\n\t\t\t\tdouble p2y = N - p2x * (x0 - x1) / (y0 - y1);\n\t\t\t\tintersectionPointEnd = new Point2D.Double(p2x, p2y);\n\n\t\t\t\ttheta1Radian1 = getPolarAngle(x1, y1, p1x, p1y);\n\t\t\t\ttheta1Radian2 = getPolarAngle(x1, y1, p2x, p2y);\n\n\t\t\t}\n\t\t} else if (polarDegree == 0 || polarDegree == 180) {\n\t\t\t// polar degree = 0|180 -> y0=y1\n\t\t\t// Ay²+By + C = 0;\n\t\t\tdouble x = (r1 * r1 - r0 * r0 - x1 * x1 + x0 * x0) / (2 * (x0 - x1));\n\t\t\tdouble A = 1;\n\t\t\tdouble B = -2 * y1;\n\t\t\tdouble C = x1 * x1 + x * x - 2 * x1 * x + y1 * y1 - r1 * r1;\n\t\t\tdouble delta = Math.sqrt(B * B - 4 * A * C);\n\n\t\t\tif (delta < 0) {\n\t\t\t\t//System.out.println(\"no solution\");\n\t\t\t} else if (delta >= 0) {\n\n\t\t\t\t// p1\n\t\t\t\tdouble p1x = x;\n\t\t\t\tdouble p1y = (-B - delta) / 2 * A;\n\t\t\t\tintersectionPointStart = new Point2D.Double(p1x, p1y);\n\n\t\t\t\t// p2\n\t\t\t\tdouble p2x = x;\n\t\t\t\tdouble p2y = (-B + delta) / 2 * A;\n\t\t\t\tintersectionPointEnd = new Point2D.Double(p2x, p2y);\n\n\t\t\t\ttheta1Radian1 = getPolarAngle(x1, y1, p1x, p1y);\n\t\t\t\ttheta1Radian2 = getPolarAngle(x1, y1, p2x, p2y);\n\n\t\t\t}\n\t\t}\n\t}", "public void solve() {\r\n\t\t//This needs to be overloaded by a child Class\r\n\t\t//By default, assume a point to line projection, which is essentially an intersection violation\r\n\t\t//\tsolve.\r\n\t\tVec2 norm;\r\n\t\tif (refB != null) {\r\n\t\t\t//Position to Line constraint to solve\r\n\t\t\tnorm = Vec2.perpendicularNormal(refA, refB);\r\n\t\t\t//Commenting out the below -- this will need a more thorough analysis, such by\r\n\t\t\t//\tadding the reference objects center (origin) to determine which side of a line is the\r\n\t\t\t//\tmost appropriate normal vector for separation.\r\n\t\t\t/*if (Vec2.dot(norm, inc) > 0) {\r\n\t\t\t\t//Flip signs to ensure the normal is the direction the reference object needs to move along.\r\n\t\t\t\tnorm.x *= -1.0;\r\n\t\t\t\tnorm.y *= -1.0;\r\n\t\t\t}*/\r\n\t\t\t//Get the violation from the incident point to the reference line (just a point to plane distance problem).\r\n\t\t\tdouble violation = Vec2.dot(norm, new Vec2(inc.x - refA.x, inc.y - refA.y));// - 5.0;\r\n\t\t\tdouble jWeight = incMass + refMass;\r\n\t\t\tdouble j = incMass / jWeight;\r\n\t\t\t//Not worrying about solving this a linear complementary problem, just enforcing positive change\r\n\t\t\tif (violation <= 0.03)return;\r\n\t\t\tinc.x -= (violation * norm.x) * j;\r\n\t\t\tinc.y -= (violation * norm.y) * j;\r\n\t\t\tif (refMass != 0.0) {\r\n\t\t\t\t//Ignore the reference positions if it has infinite mass\r\n\t\t\t\tj = -refMass / jWeight;//negated because the normal is currently representing the solve direction for inc not ref\r\n\t\t\t\t//need to distribute the solve between the two positions, check via barycentric coordinates\r\n\t\t\t\t//Not implementing here, only worried about getting the basic dynamic versus static object test working against gravity.\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//Position to Position constraint to solve\r\n\t\t}\r\n\t}", "public Point3 intersects(Plane3 p) {\n // All the constants will be the position vector, i.e., some point on the line\n if (intersect.DEBUG) System.out.println(\"Constant Terms: <\" + this.pt + \">\");\n\n // λ coefficients will be all those in the direction vector of the line\n if (intersect.DEBUG) System.out.println(\"λ coefficients: \" + this);\n\n // Plane equation is each component multiplied by the respective normal\n // vector of the plane\n if (intersect.DEBUG) System.out.printf(\"Plane equation: %.1f(%.1f + %.1fλ) + %.1f(%.1f + %.1fλ) + %.1f(%.1f + %.1fλ) = %.3f\\n\", p.v.x, pt.x, this.x, p.v.y, pt.y, this.y, p.v.z, pt.z, this.z, p.d);\n\n // Gather all constant terms from the plane equation\n double constantTerm = (p.v.x * pt.x) + (p.v.y * pt.y) + (p.v.z * pt.z);\n if (intersect.DEBUG) System.out.printf(\"K: %.2f\\t\", constantTerm);\n\n // Gather all λ terms\n double lambdaCoefficient = (p.v.x * this.x) + (p.v.y * this.y) + (p.v.z * this.z);\n if (intersect.DEBUG) System.out.printf(\"K_λ: %.1f\\n\", lambdaCoefficient);\n\n // If the coefficient for lambda is zero, we have a degenerate case\n if (lambdaCoefficient == 0) {\n // If the constant is the same as the actual magnitude of the plane's\n // normal vector, the line lies on the plane\n // Within a margin of error because rounding is a pain in the ass\n if (Math.abs(constantTerm - p.d) < 1e-6)\n intersect.overlapFlag = true;\n\n return null;\n }\n\n // Solve for the unknown, λ.\n double lambda = (p.d - constantTerm) / lambdaCoefficient;\n if (intersect.DEBUG) System.out.printf(\"λ: %.2f\\n\", lambda);\n\n // Plug in λ into the parametric equations for the line to find\n // point of intersection\n double newX = lambda * this.x + pt.x;\n double newY = lambda * this.y + pt.y;\n double newZ = lambda * this.z + pt.z;\n return new Point3(newX, newY, newZ);\n }", "public static void main(String[] args) {\n\n Scanner tc = new Scanner(System.in);\n\n double a, b, c = 0;\n String soma = \"+\";\n String subtração = \"-\";\n String multiplicação = \"*\";\n String divisão = \"/\";\n String potência = \"^\";\n String raiz = \"~\";\n String operação = \"\";\n System.out.println(\"Qual operação deseja fazer ?\");\n operação = tc.nextLine();\n System.out.println(\"insira um numero ó mortal\");\n a = tc.nextDouble();\n System.out.println(\"insira um numero ó mortal\");\n b = tc.nextDouble();\n ;\n if (operação == null ? soma == null : operação.equals(soma)) {\n c = a + b;\n System.out.println(\"o resultado é \" + c);\n } else if (operação == null ? subtração == null : operação.equals(subtração)) {\n c = a - b;\n System.out.println(\"o resultado é \" + c);\n } else if (operação == null ? multiplicação == null : operação.equals(multiplicação)) {\n c = a * b;\n System.out.println(\"o resultado é \" + c);\n }\n else \n c = a/b;\n \n System.out.println(\"o resultado é \" + c);\n }", "@Test\n public void test22() throws Throwable {\n double[] doubleArray0 = new double[5];\n PolynomialFunctionLagrangeForm polynomialFunctionLagrangeForm0 = new PolynomialFunctionLagrangeForm(doubleArray0, doubleArray0);\n try { \n UnivariateRealSolverUtils.solve((UnivariateRealFunction) polynomialFunctionLagrangeForm0, (-79.6956205713495), 0.5, 1.0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Abscissa 0 is duplicated at both indices 1 and 1\n //\n assertThrownBy(\"org.apache.commons.math.analysis.polynomials.PolynomialFunctionLagrangeForm\", e);\n }\n }", "public static void main(String[] args) {\n try{\n //Peticion de datos al usuario\n System.out.println(\"Resolución de la ecuación cuadrática\");\n System.out.println(\"------------------------------------\");\n System.out.println();\n System.out.println(\"Indique el valor de A: \");\n a = input.nextDouble();\n System.out.println(\"Indique el valor de B: \");\n b = input.nextDouble();\n System.out.println(\"Indique el valor de C: \");\n c = input.nextDouble();\n \n //Resolucion de la ecuacion y obtencion de los dos posibles resultados\n resultado1 = (-b + Math.sqrt(Math.pow(b, 2) - (4*a*c))) / (2*a);\n resultado2 = (-b - Math.sqrt(Math.pow(b, 2) - (4*a*c))) / (2*a);\n \n //Se muestra por consola los valores obtenidos de X\n System.out.println(\"Resolución #1: \\n\" + \"X = \" + resultado1);\n System.out.println(\"Resolución #2: \\n\" + \"X = \" + resultado2);\n }catch(InputMismatchException ex){\n System.out.println(\"ERROR. Los valores introducidos han de ser numéricos\");\n }\n \n \n }", "Place getNextPlace(Place next)\n{\n if (!visited.contains(next.goNorth()) && !(next.goNorth()).isWall()){\n soln.append(\"N\");\n visited.add(next.goNorth());\n //nearby.clear();\n return next.goNorth();\n }\n else if (!visited.contains(next.goEast()) && !next.goEast().isWall()){\n soln.append(\"E\");\n visited.add(next.goEast());\n //nearby.clear();\n return next.goEast();\n }\n else if (!visited.contains(next.goNorth()) && !next.goNorth().isWall()){\n soln.append(\"N\");\n visited.add(next.goNorth());\n //nearby.clear();\n return next.goNorth();\n }\n else if (!visited.contains(next.goNorth()) && !next.goNorth().isWall()){\n soln.append(\"N\");\n visited.add(next.goNorth());\n //nearby.clear();\n return next.goNorth();\n \n //nearby.clear();\n return null;\n} \n}", "private void reciprocal()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.reciprocal ( );\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tint x1=1, y1=1, z1=1;\n\t\tint x2=8, y2=-7, z2=1;\n\t\t//Points describing the plane\n\t\tint x3=3, y3=9, z3=0;\n\t\tint x4=-1, y4=3, z4=0;\n\t\tint x5=4, y5=5, z5=0;\n\t\t//No intersection with this co-ords\n\t\tintersect(x1,y1,z1,x2,y2,z2,x3,y3,z3,x4,y4,z4,x5,y5,z5);\n\t}", "public static void main(String args[]) {\n\t\t\n\t\t//declare the variables of equation ax*x + b*x + c = 0 \n\t\tdouble a,b,c;\n\t\t\n\t\t//define scanner variable x as\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\t//initiate the value to command line input\n\t\tSystem.out.println (\"give value of x^2 coefficient\");\n\t\t\n\t\t//now add input to variable a \n\t\ta = scan.nextDouble();\n\n //initiate the value to command line input\n\t\tSystem.out.println (\"give value of x coefficient\");\n\t\t\n\t\t//now add input to variable a \n\t\tb = scan.nextDouble();\n\n //initiate the value to command line input\n\t\tSystem.out.println (\"give value of contant\");\n\t\t\n\t\t//now add input to variable a \n\t\tc = scan.nextDouble();\n \n //declare discriminant of the equation as b^2 - 4*a*c\n double d = Math.pow(b, 2.0) - 4.0*a*c;\n \n //apply the rules for quadratic equations\n //if d =0.0 then roots are equal\n if (d == 0.0) {\n \t\n \t//the root in these situation is -b/2a\n \tSystem.out.println(\"the equation has \"+(-1.0*b/(2.0*a)) + \" as only real root\");\n }\n else if (d >=0.0) {\n \t\n \t//the root in this situation is (-b +- d^0.5)/2a\n \t//the first root is x1\n \tdouble x1 = (-1.0*b + Math.pow(d, 0.5))/(2.0*a);\n \t\n \t//the second root is x2\n \tdouble x2 = (-1.0*b - Math.pow(d, 0.5))/(2.0*a);\n \tSystem.out.println(\"the equation has \"+(x1) + \" and \"+(x2) +\" as two real roots\");\n }\n else {\n \t\n \t//the root in this situation are complex (-b +- d^0.5i)/2a\n \t//the real part of root is r\n \tdouble real = (-1.0*b)/(2.0*a);\n \t\n \t//the complex part of root is c\n \tdouble com = (Math.pow(-1.0*d, 0.5))/(2.0*a);\n \tSystem.out.println(\"the equation has \"+(real) + \"+\"+(com) +\"i and \"+real+\"-\"+com+\"i as two complex root\" );\n }\n\t}" ]
[ "0.53521156", "0.523527", "0.51880866", "0.51795465", "0.5150209", "0.51287013", "0.50962895", "0.50800854", "0.5066566", "0.5041392", "0.49863732", "0.49751016", "0.4962002", "0.49393168", "0.49366426", "0.4907872", "0.4901512", "0.48827124", "0.48771697", "0.48380473", "0.48351872", "0.48337558", "0.4832863", "0.48325026", "0.48178008", "0.48154095", "0.47970837", "0.47606206", "0.47586137", "0.4754403", "0.47411436", "0.47398585", "0.47398457", "0.47368696", "0.4724472", "0.47107467", "0.4710096", "0.4702801", "0.4696995", "0.46965346", "0.4690154", "0.46850887", "0.46847355", "0.46829095", "0.46821237", "0.46808943", "0.46808743", "0.46786055", "0.46754947", "0.4668976", "0.46633792", "0.46577278", "0.46490836", "0.46462992", "0.46388507", "0.46331158", "0.46253565", "0.4604527", "0.46008122", "0.45965332", "0.45852903", "0.4580093", "0.45780885", "0.4565725", "0.4561246", "0.45603976", "0.45446962", "0.45393988", "0.45287547", "0.4527309", "0.45263606", "0.45236763", "0.45129564", "0.45112133", "0.45014414", "0.45005438", "0.45002165", "0.4498248", "0.44977048", "0.44966462", "0.4494132", "0.44904047", "0.44886786", "0.4487194", "0.44835588", "0.4477552", "0.44679618", "0.4463216", "0.44525737", "0.44496447", "0.44397676", "0.44396228", "0.4437294", "0.44352198", "0.44350728", "0.44214752", "0.44016808", "0.4400824", "0.44008029", "0.43985844" ]
0.4974179
12
Sets the color of this plane
public void setC(Color c) { this.c = c; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setColor(Vector color);", "public void setColor(float r, float g, float b, float a);", "public void setSurfaceColor(int color){\r\n\r\n this.surface.setColor(color);\r\n }", "public void setColor(Color c) { color.set(c); }", "public void setColor(Color color);", "public void setColor(int color);", "public void setColor(int color);", "public void setColor(Color c);", "void setColor(){\n this.objectColour = new Color(rValue,gValue,bValue,timeToLive).brighter();\n }", "public void setColor( GraphColor newVal ) {\n color = newVal;\n }", "public void setColor(Color color) {\n this.color = color;\n }", "public void setColor(int value);", "void setColor(final java.awt.Color color);", "public void setColor(Color color) {\n this.color = color;\r\n }", "@Override\r\n public void setColor(Llama.Color color) {\r\n this.color = color;\r\n }", "public void setColor()\n {\n if (wall != null) // only if it's painted already...\n {\n wall.changeColor(\"red\");\n window.changeColor(\"black\");\n roof.changeColor(\"green\");\n sun.changeColor(\"yellow\");\n }\n }", "public void setColor()\n {\n if(wall != null) // only if it's painted already...\n {\n wall.changeColor(\"red\");\n window.changeColor(\"black\");\n roof.changeColor(\"green\");\n sun.changeColor(\"yellow\");\n }\n }", "public void setColor(Color c) {\n color = c;\n }", "public void setColor(int r, int g, int b);", "public void setColor(Color newColor) ;", "public void setColor()\n {\n if(wall != null) // only if it's painted already...\n {\n wall.changeColor(\"yellow\");\n window.changeColor(\"black\");\n roof.changeColor(\"red\");\n sun.changeColor(\"yellow\");\n }\n }", "public void setColor(int color){\n this.color = color;\n }", "public void setColor(Color c) {\n this.color = c;\n }", "public void setColor(int color) {\n/* 77 */ this.color = color;\n/* 78 */ this.paint.setColor(this.color);\n/* */ }", "public void setColor(Color color) {\n this.color = color;\n }", "public void setColor(Color clr){\n color = clr;\n }", "@Override\n public void setColor(Color color) {\n this.color = color;\n }", "void setColor(int r, int g, int b);", "public void setShadingColor(int color){\r\n this.shading.setColor(color);\r\n }", "public void setColor(Color color_) {\r\n\t\tcolor = color_;\r\n\t}", "public void setColor(int color){\r\n\t\tthis.color=color;\r\n\t}", "public void setColor(RGBColor color){\r\n this._color = new RGBColor(color);\r\n }", "public void setColor(int color) {\n this.color = color;\n }", "public void setColor( Color color ) {\n\t\tgraphics.setColor( color );\n\t}", "public void setColor(Color color) \n\t{\n\t\tthis.color = color;\n\t}", "public FontRenderer setColor(Vector3f color) {\n\t\tthis.color = new Vector4f(color.getX(), color.getY(), color.getZ(), 1);\n\t\treturn this;\n\t}", "public void setColor(float[] color){\n GLES20.glUniform4fv(mColorHandle, 1, color, 0);\n }", "public void setColor(Color c)\n\t{\n\t\tthis.color = c;\n\t}", "public void setColor(Color color) {\r\n changeColor(color);\r\n oldSwatch.setForeground(currentColor);\r\n newSwatch.setForeground(currentColor);\r\n colorCanvas.setColor(currentColor);\r\n repaint();\r\n }", "public void setFillColor(Color color);", "public void setColor(int color){\n\t\tthis.color = color;\n\t}", "public void setColor(final Color theColor) {\n myColor = theColor;\n }", "public void setColor(String c)\n { \n color = c;\n draw();\n }", "protected void setColor(Color color) {\r\n\t\tthis.color = color;\r\n\t}", "public void setColor (Color color)\n {\n this.color = color;\n repaint();\n }", "public void setColor(Color c) {\n\t\tthis.color = c;\n\t}", "public void setColor(int color) {\r\n\t\tthis.color = color;\r\n\t}", "public void setColor(Color color) {\n\t\tthis.color = color;\n\t}", "public void setColor(Color color) {\n\t\tthis.color = color;\n\t}", "void setColorDepth(int colorDepth);", "public void setColor()\n {\n if(eyeL != null) // only if it's painted already...\n {\n eyeL.changeColor(\"yellow\");\n eyeR.changeColor(\"yellow\");\n nose.changeColor(\"green\");\n mouthM.changeColor(\"red\");\n mouthL.changeColor(\"red\");\n mouthR.changeColor(\"red\");\n }\n }", "public void setColor(Color color)\n\t{\n\t\tif(color != null)\n\t\t{\n\t\t\tthis.particleColor.setA(color.getA());\n\t\t\tthis.particleColor.setR(color.getR());\n\t\t\tthis.particleColor.setG(color.getG());\n\t\t\tthis.particleColor.setB(color.getB());\n\t\t}\n\t}", "public void setColor(Color color) {\r\n\t\tthis.color = ColorUtil.convertColorToColorRGBA(color);\r\n\t}", "public void setColor(Color color) {\n\t\t_color = color;\n\t\tnotifyObs(this);\n\t}", "public FontRenderer setColor(Vector4f color) {\n\t\tthis.color = color;\n\t\treturn this;\n\t}", "public void setColor(int red, int green, int blue){\r\n this.red = red;\r\n this.green = green;\r\n this.blue = blue;\r\n }", "public void setColor(int c) {\n paint.setColor(c);\n invalidate();\n }", "public PointDetails setColor(Color color){\n\t\t\treturn setColor(color.getRGB());\n\t\t}", "public void setAreaColor(Color c)\r\n/* 53: */ {\r\n/* 54: 37 */ this.areaColor = c;repaint();\r\n/* 55: */ }", "public void setColor(final float red, final float green, final float blue, final float alpha) {\n hasColor = true;\n color = new GLColor(red, green, blue, alpha);\n }", "public Renderable setColor(int color)\n\t{\n\t\tfloat a = color & 0xFF;\n\t\tfloat b = (color >>> 8) & 0xFF;\n\t\tfloat g = (color >>> 16) & 0xFF;\n\t\tfloat r = (color >>> 24) & 0xFF;\n\t\t\n\t\t// Normalize the channels.\n\t\tr /= 255f;\n\t\tg /= 255f;\n\t\tb /= 255f;\n\t\ta /= 255f;\n\t\t\n\t\treturn setColor(r, g, b, a);\n\t}", "@Override\n public void setColor(Color color) {\n super.setEdgeColor(color);\n }", "@NoProxy\n @NoWrap\n public void setColor(final String val) {\n color = val;\n }", "public void setColor(Color newColor)\n {\n this.color = newColor;\n conditionallyRepaint();\n }", "private void setColor() {\n cell.setStroke(Color.GRAY);\n\n if (alive) {\n cell.setFill(aliveColor);\n } else {\n cell.setFill(deadColor);\n }\n }", "public void setColor(int color) {\n mColor = color;\n mPaint.setColor(mColor);\n }", "public void setColor(String c);", "public void set(Color inColor) {\n\n\t\tthis.r = inColor.r;\n\t\tthis.g = inColor.g;\n\t\tthis.b = inColor.b;\n\n\t}", "public void setColor(int gnum, Color col);", "public void setColor(Color newColor) {\n\tcolor = newColor;\n }", "public void setColor(Color newColor) {\n color = newColor;\n Canvas.getInstance().repaint();\n }", "void setCor(Color cor);", "public abstract void setColor(Color color);", "public abstract void setColor(Color color);", "public void setColor(RMColor aColor)\n{\n // Set color\n if(aColor==null) setFill(null);\n else if(getFill()==null) setFill(new RMFill(aColor));\n else getFill().setColor(aColor);\n}", "public void setColor(java.awt.Color color1) {\r\n this.color = color1;\r\n }", "public void setColor(Color another)\r\n {\r\n currentColor = another;\r\n }", "@Override public void setColor(Color c) \n\t{\n\t\tc2 = c1; c1 = c.dup();\n\t}", "public void setRrColor(Color value) {\n rrColor = value;\n }", "void setColor(@ColorInt int color);", "public void setStrokeColor(Color color);", "public void setDrawingColor(int color){\n mPaintLine.setColor(color);\n }", "public void setColor(String color) {\n this.color=color; //el this se coloca a la propiedad de la clase \n // para diferenciarla del parametro\n }", "public void setColor(Color that){\r\n \t//set this to that\r\n this.theColor = that;\r\n if(this.theColor.getRed() == 255 && this.theColor.getGreen() == 0 && this.theColor.getBlue() == 0){\r\n this.theColor = Color.red;\r\n }\r\n if(this.theColor.getRed() == 0 && this.theColor.getGreen() == 0 && this.theColor.getBlue() == 255){\r\n this.theColor = Color.black;\r\n }\r\n if(this.theColor.getRed() == 0 && this.theColor.getGreen() == 255 && this.theColor.getBlue() == 0){\r\n this.theColor = Color.green;\r\n }\r\n }", "public void setColor(String color){\n this.color = color;\n }", "public void setColor(@ColorInt int color) {\n Color.colorToHSV(color, mColorHSV);\n mColorHSV[1] = 1F;\n mColorHSV[2] = 1F;\n invalidate();\n }", "private native void setModelColor(float r,float g,float b);", "@Override // Override GameObject setColor\n @Deprecated // Deprecated so developer does not accidentally use\n public void setColor(int color) {\n }", "public void setValue(Color value) {\n _color = value;\n _updateField(value);\n }", "@Override\n public void setColorFilter(ColorFilter colorFilter) {}", "public void setColor(String color) {\r\n this.color = color;\r\n }", "public void setColor(Color c){\n\t\t//do nothing\n\t}", "public void setColor(String pColor){\n this._color=pColor;\n }", "public void changeColor(Color color) {\n this.color = color;\n }", "public void setDataColor(Color c)\r\n/* 48: */ {\r\n/* 49: 36 */ this.ballColor = c;repaint();\r\n/* 50: */ }", "public void setColor(int r, int g, int b, int a) {\n color[0] = r / 255f;\n color[1] = g / 255f;\n color[2] = b / 255f;\n color[3] = a / 255f;\n }", "public PointDetails setColor(int color){\n\t\t\treturn setColor(()->color);\n\t\t}", "public void setColour(Colour colour);", "public void setvColor(float red, float green, float blue)\n {\n GLES20.glUniform4f(uColor, red, green, blue, 1.0f);\n }", "public void setColor(Integer color) {\n\t\tthis.color = color;\n\t}", "public void setColor(short color) {\n\t\tthis.color = color;\n\t}" ]
[ "0.71088594", "0.6868377", "0.6828661", "0.6772461", "0.6724811", "0.6708614", "0.6708614", "0.6700198", "0.6587144", "0.65782094", "0.6562059", "0.6544648", "0.65120864", "0.6482825", "0.64787453", "0.6471864", "0.64666116", "0.6460901", "0.64302254", "0.64242595", "0.6407045", "0.63980854", "0.63677496", "0.6347094", "0.6334203", "0.6333012", "0.6330633", "0.6302097", "0.63015723", "0.63013625", "0.62967235", "0.6292552", "0.62683827", "0.6262845", "0.62601167", "0.62549984", "0.6251102", "0.6246603", "0.62431526", "0.6239699", "0.62119377", "0.6196058", "0.61875236", "0.61854154", "0.618142", "0.617958", "0.61757964", "0.6143887", "0.6143887", "0.6135764", "0.6127831", "0.61089987", "0.60960203", "0.60947967", "0.60926336", "0.6050813", "0.6045443", "0.6044148", "0.60341674", "0.6004566", "0.6004428", "0.6002804", "0.6002212", "0.59898573", "0.59889245", "0.5988524", "0.5983828", "0.5980164", "0.59676856", "0.5964837", "0.59647804", "0.596445", "0.5963398", "0.5963398", "0.59607327", "0.5954439", "0.59438413", "0.5906906", "0.5904333", "0.58907044", "0.5879834", "0.58787245", "0.587225", "0.5872141", "0.58505106", "0.58213526", "0.58189607", "0.58150923", "0.5802966", "0.5793548", "0.57902354", "0.5777846", "0.5775231", "0.5771786", "0.5763302", "0.57631624", "0.5760448", "0.57594275", "0.5755682", "0.57489496", "0.57476205" ]
0.0
-1
Creates capabilities specific to seleniumGrid For example, Appium needs PLATFORM_NAME and PLATFORM_VERSION capabilities, but seleniumGrid matcher (default seleniumGrid) looks at PLATFORM and VERSION capabilities. This method adds them OS version is only updated for mobile. It has no real sense on desktop
private DesiredCapabilities createSpecificGridCapabilities(DriverConfig webDriverConfig) { DesiredCapabilities capabilities = new DesiredCapabilities(); if (SeleniumTestsContextManager.isMobileTest()) { capabilities.setCapability(CapabilityType.VERSION, webDriverConfig.getMobilePlatformVersion()); } else { capabilities.setCapability(CapabilityType.PLATFORM, webDriverConfig.getPlatform().toLowerCase()); if (webDriverConfig.getBrowserVersion() != null) { capabilities.setCapability(CapabilityType.VERSION, webDriverConfig.getBrowserVersion()); } } return capabilities; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(groups={\"ut\"})\r\n\tpublic void testCreateCapabilitiesWithUserDefined() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setBrowser(BrowserType.CHROME.toString());\r\n\t\tcontext.setMobilePlatformVersion(\"8.0\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S8\");\r\n\t\tcontext.setApp(\"\");\r\n\t\tcontext.setAppiumCapabilities(\"key1=value1;key2=value2\");\r\n\t\t\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(\"key1\"), \"value1\");\r\n\t\tAssert.assertEquals(capa.getCapability(\"key2\"), \"value2\");\r\n\r\n\t}", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateCapabilitiesWithUserDefinedOverride() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setBrowser(BrowserType.CHROME.toString());\r\n\t\tcontext.setMobilePlatformVersion(\"8.0\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S8\");\r\n\t\tcontext.setApp(\"\");\r\n\t\tcontext.setAppiumCapabilities(\"browserName=firefox;key2=value2\");\r\n\t\t\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(CapabilityType.BROWSER_NAME), \"firefox\");\r\n\t\t\r\n\t}", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateCapabilitiesWithApplicationOldAndroid2() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setMobilePlatformVersion(\"5.0\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S5\");\r\n\t\tcontext.setAppPackage(\"appPackage\");\r\n\t\tcontext.setAppActivity(\"appActivity\");\r\n\t\tcontext.setFullReset(true);\r\n\t\tcontext.setApp(\"com.covea.mobileapp\");\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.AUTOMATION_NAME), \"UiAutomator1\");\r\n\t}", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateCapabilitiesWithApplicationOldAndroid() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setMobilePlatformVersion(\"2.3\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S1\");\r\n\t\tcontext.setAppPackage(\"appPackage\");\r\n\t\tcontext.setAppActivity(\"appActivity\");\r\n\t\tcontext.setFullReset(true);\r\n\t\tcontext.setApp(\"com.covea.mobileapp\");\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.AUTOMATION_NAME), \"Selendroid\");\r\n\t}", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateCapabilitiesWithApplication() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setMobilePlatformVersion(\"8.0\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S8\");\r\n\t\tcontext.setAppPackage(\"appPackage\");\r\n\t\tcontext.setAppActivity(\"appActivity\");\r\n\t\tcontext.setApp(\"com.covea.mobileapp\");\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(CapabilityType.BROWSER_NAME), \"\");\r\n\t\tAssert.assertEquals(capa.getCapability(\"app\"), \"com.covea.mobileapp\");\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.AUTOMATION_NAME), \"Appium\");\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.PLATFORM_NAME), \"android\");\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.PLATFORM_VERSION), \"8.0\");\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.DEVICE_NAME), \"Samsung Galasy S8\");\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.FULL_RESET), true);\r\n\t\tAssert.assertEquals(capa.getCapability(AndroidMobileCapabilityType.APP_PACKAGE), \"appPackage\");\r\n\t\tAssert.assertEquals(capa.getCapability(AndroidMobileCapabilityType.APP_ACTIVITY), \"appActivity\");\r\n\t}", "public static DesiredCapabilities setAppCapabilities() {\n\t\tDesiredCapabilities capabilities = new DesiredCapabilities();\n\t\tString appID = PropertyFileHandler.getPropertyFromConfig(ConfigPropertyKeys.appID);\n\t\tcapabilities.setCapability(\"app\", appID + \"!App\");\n\t\treturn capabilities;\n\t}", "public AndroidDriver<AndroidElement> Capabilities() throws MalformedURLException {\n\t\t\n\t\t\n\t\t\n\t\tDesiredCapabilities cap = new DesiredCapabilities();\n\t\tcap.setCapability(MobileCapabilityType.PLATFORM_NAME, \"Andriod\");\n\t\t//cap.setCapability(MobileCapabilityType.PLATFORM_VERSION, \"9\");\n\t\tcap.setCapability(MobileCapabilityType.DEVICE_NAME, \"Android Device\");\n\t\tcap.setCapability(MobileCapabilityType.BROWSER_NAME, \"chrome\");\n\t\tcap.setCapability(MobileCapabilityType.BROWSER_VERSION, \"76.0\");\n\t\tcap.setCapability(MobileCapabilityType.AUTOMATION_NAME, \"uiautomator2\");\n\t\t\n\t\t//connection to server\n\t\t//AndroidDriver driver = new AndroidDriver(IPaddressOfserver,capabilities); // This will invokes android object. see below\n\t\t\n\t\tAndroidDriver<AndroidElement> driver = new AndroidDriver<AndroidElement>(new URL(\"http://0.0.0.0:4723/wd/hub\"),cap); // IP address of every local host in any machine is http://127.0.0.1\n\t\treturn driver;\n\t\t\n\t}", "protected DesiredCapabilities getCapabilitiesForChrome(ExtentTest currentTest, ExtentReportGenerator extentReportGenerator){ //local physical device support for android still pending\n\t\tDesiredCapabilities desCap = new DesiredCapabilities();\n\t\t//desired caps go here\n\t\treturn desCap;\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}", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateDefaultCapabilitiesWithAutomationName() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setBrowser(BrowserType.CHROME.toString());\r\n\t\tcontext.setMobilePlatformVersion(\"8.0\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S8\");\r\n\t\tcontext.setAutomationName(\"UiAutomator1\");\r\n\t\tcontext.setApp(\"\");\r\n\t\t\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(CapabilityType.BROWSER_NAME), BrowserType.CHROME.toString().toLowerCase());\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.AUTOMATION_NAME), \"UiAutomator1\");\r\n\t\tAssert.assertNull(capa.getCapability(MobileCapabilityType.FULL_RESET));\r\n\t}", "public void setCapabilities(String capabilities) {\n this.capabilities = capabilities;\n }", "public static WindowsDriver<WebElement> createWindowsDriverSession(DesiredCapabilities capabilities) {\n\t\tWindowsDriver<WebElement> appSession = null;\n\t\ttry {\n\t\t\tString WinAppDriverURL = PropertyFileHandler.getPropertyFromConfig(ConfigPropertyKeys.WinAppDriverURL);\n\t\t\tappSession = new WindowsDriver<WebElement>(new URL(WinAppDriverURL), capabilities);\n\t\t} catch (MalformedURLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn appSession;\n\t}", "Capabilities getCapabilities();", "public ImageInformation withCapabilities(List<String> capabilities) {\n this.capabilities = capabilities;\n return this;\n }", "public boolean setBrowserCapability(String key, String value) {\n if (Boolean.valueOf(System.getProperty(\"LOCAL_DRIVER\"))) {\n return false;\n } else if (Boolean.valueOf(System.getProperty(\"REMOTE_DRIVER\"))) {\n extraCapabilities.setCapability(key, value);\n return true;\n } else if (Boolean.valueOf(System.getProperty(\"SAUCE_DRIVER\"))) {\n extraCapabilities.setCapability(key, value);\n return true;\n } else {\n throw new WebDriverException(\"Type of driver not specified!!!\");\n }\n }", "private static DesiredCapabilities setCommon(DesiredCapabilities capabilities, String deviceType) {\r\n if (deviceType == \"mobile\") {\r\n\r\n } else if (deviceType == \"pc\") {\r\n capabilities.setCapability(\"browserstack.debug\", \"true\");\r\n\r\n } else if (deviceType == \"tab\") {\r\n\r\n } else if (deviceType == \"mac\") {\r\n\r\n } else if (deviceType == \"android\") {\r\n\r\n } else if (deviceType == \"iphone\") {\r\n\r\n } else if (deviceType == \"ipad\") {\r\n\r\n }\r\n return capabilities;\r\n }", "private static DesiredCapabilities getBrowserCapabilities(String browserType, DesiredCapabilities capability) {\r\n\t\tDesiredCapabilities cap = new DesiredCapabilities();\r\n\t\tswitch (browserType) {\r\n\t\tcase \"firefox\":\r\n\t\t\tSystem.out.println(\"Opening firefox driver\");\r\n\t\t\tcap = DesiredCapabilities.firefox();\r\n\t\t\tcap.merge(capability);\r\n\t\t\tbreak;\r\n\t\tcase \"chrome\":\r\n\t\t\tSystem.out.println(\"Opening chrome driver\");\r\n\t\t\tcap = DesiredCapabilities.chrome();\r\n\t\t\tcap.merge(capability);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"browser : \" + browserType + \" is invalid, Launching Firefox as browser of choice..\");\r\n\t\t\tcap = DesiredCapabilities.firefox();\r\n\t\t\tcap.merge(capability);\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn cap;\r\n\t}", "public abstract List<AbstractCapability> getCapabilities();", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateDefaultCapabilitiesWithNodeTagsInGridMode() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setBrowser(BrowserType.CHROME.toString());\r\n\t\tcontext.setNodeTags(\"foo,bar\");\r\n\t\tcontext.setRunMode(\"grid\");\r\n\t\tcontext.setMobilePlatformVersion(\"8.0\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S8\");\r\n\t\tcontext.setApp(\"\");\r\n\t\t\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(SeleniumRobotCapabilityType.NODE_TAGS), Arrays.asList(\"foo\", \"bar\"));\r\n\t}", "@DataProvider(name = \"browserProviderWithoutVersions\", parallel = true)\n public Object[][] getDriversWithoutVersion() {\n\n //if no version is set, then latest browser version is used\n DesiredCapabilities firefox1 = DesiredCapabilities.firefox();\n\n //use n-1, n-1 etc. to specify non-hardcoded browserversions (sliding window)\n DesiredCapabilities firefox2 = DesiredCapabilities.firefox();\n firefox1.setCapability(\"version\", \"n-1\");\n\n DesiredCapabilities firefox3 = DesiredCapabilities.firefox();\n firefox1.setCapability(\"version\", \"n-2\");\n\n DesiredCapabilities chrome1 = DesiredCapabilities.chrome();\n\n DesiredCapabilities chrome2 = DesiredCapabilities.chrome();\n chrome2.setCapability(\"version\", \"n-1\");\n\n DesiredCapabilities chrome3 = DesiredCapabilities.chrome();\n chrome3.setCapability(\"version\", \"n-2\");\n\n return new Object[][]{\n {firefox1},\n {firefox2},\n {firefox3},\n {chrome1},\n {chrome2},\n {chrome3},\n };\n }", "NegotiableCapabilitySet getServerCapabilities() throws RemoteException;", "private static DesiredCapabilities getBrowserCapabilities(String browserType) {\r\n\t\tDesiredCapabilities cap = new DesiredCapabilities();\r\n\t\tswitch (browserType) {\r\n\t\tcase \"firefox\":\r\n\t\t\tSystem.out.println(\"Opening firefox driver\");\r\n\t\t\tcap = DesiredCapabilities.firefox();\r\n\t\t\tbreak;\r\n\t\tcase \"chrome\":\r\n\t\t\tSystem.out.println(\"Opening chrome driver\");\r\n\t\t\tcap = DesiredCapabilities.chrome();\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"browser : \" + browserType + \" is invalid, Launching Firefox as browser of choice..\");\r\n\t\t\tcap = DesiredCapabilities.firefox();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn cap;\r\n\t}", "public Capabilities getCapabilities() {\n Capabilities result = super.getCapabilities();\n\n // attributes\n result.enable(Capability.NOMINAL_ATTRIBUTES);\n result.enable(Capability.NUMERIC_ATTRIBUTES);\n result.enable(Capability.DATE_ATTRIBUTES);\n result.enable(Capability.MISSING_VALUES);\n\n // class\n result.enable(Capability.NOMINAL_CLASS);\n result.enable(Capability.MISSING_CLASS_VALUES);\n\n // instances\n result.setMinimumNumberInstances(0);\n \n return result;\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 }", "RemoteWebDriver getDriver(String appName, String platformName) {\n\t\tDesiredCapabilities androidDcap = new DesiredCapabilities();\n\t\tandroidDcap.setCapability(MobileCapabilityType.AUTOMATION_NAME, \"UIAutomator2\");\n\t\tandroidDcap.setCapability(MobileCapabilityType.PLATFORM_NAME, platformName);\n\t\t//androidDcap.setCapability(AndroidMobileCapabilityType.AUTO_GRANT_PERMISSIONS, true);\n\t\tandroidDcap.setCapability(MobileCapabilityType.NO_RESET, true);\n\t\tandroidDcap.setCapability(MobileCapabilityType.FULL_RESET, false);\n\t\tandroidDcap.setCapability(AndroidMobileCapabilityType.NO_SIGN, true);\n\t\tandroidDcap.setCapability(AndroidMobileCapabilityType.APP_WAIT_DURATION, 120);\n\t\tandroidDcap.setCapability(\"newCommandTimeout\", 1500);\n\t\tandroidDcap.setCapability(\"app\", System.getProperty(\"user.dir\") +\"\\\\apk\\\\\"+appName+\".apk\");\n\t\tandroidDcap.setCapability(\"autoGrantPermissions\", true);\n\t\tandroidDcap.setCapability(\"appPackage\", PropertyHelper.getProperties(appName+\"_PACKAGE\"));\n\t\tandroidDcap.setCapability(\"appActivity\", PropertyHelper.getProperties(appName+\"_ACTIVITY\"));\n\t\tandroidDcap.setCapability(\"deviceName\", \"Android\");\n\t\t\n\t\ttry {\n\t\t\tif (System.getProperty(\"location\").equalsIgnoreCase(\"local\")) {\n\t\t\t\tdriver = new AndroidDriver<>(new URL(\"http://127.0.0.1:4651/wd/hub\"), androidDcap);\n\t\t\t\tlogger.info(\"Session ID of Android: \" + driver.getSessionId());\n\t\t\t} else if (System.getProperty(\"location\").equalsIgnoreCase(\"remote\")) {\n\t\t\t\tdriver = new AndroidDriver<>(new URL(PropertyHelper.getProperties(\"REMOTE_HUB_URL\")), androidDcap);\n\t\t\t\tlogger.info(\"Session ID of Android: \" + driver.getSessionId());\n\t\t\t}\n\t\t} catch (WebDriverException e) {\n\t\t\tlogger.error(\"Driver instantiating failed or app is not installed\", e);\n\t\t} catch (MalformedURLException e) {\n\t\t\tlogger.error(e);\n\t\t}\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\n\t\tDriverFactory.getDriverPool().put(appName, driver);\n\t\treturn driver;\n\t}", "public static KAppiumDriver getDriver(String driverType, String seleniuGridUrl) {\n WebDriver driver = null;\n AppiumDriver appiumDriver = null;\n KAppiumDriver kAppiumDriver = null;\n //for specify download folder\n //String downloadFilepath = ConfigHelper.getDownloadFolder();\n switch (driverType) {\n case \"android\": {\n String appPath = ConfigHelper.getAppPath();\n\n String url = ConfigHelper.getAppiumServerURL();\n DesiredCapabilities capabilities = new DesiredCapabilities();\n\n capabilities.setCapability(MobileCapabilityType.APPIUM_VERSION, ConfigHelper.getAppiumVersion());\n //capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, ConfigHelper.getPlatformVersion());\n capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, ConfigHelper.getDeviceName());\n capabilities.setCapability(MobileCapabilityType.APP, appPath);\n if (!ConfigHelper.getAutomationName().isEmpty()) {\n capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, ConfigHelper.getAutomationName());\n }\n try {\n appiumDriver = new AndroidDriver(new URL(url), capabilities);\n kAppiumDriver = new KAppiumDriver(appiumDriver);\n logger.info(\"AndroidDriver is \" + driverType + \" driver, pointing \" + \" is generated on\" + url);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n break;\n }\n case \"ios\": {\n String appPath = ConfigHelper.getAppPath();\n\n String url = ConfigHelper.getAppiumServerURL();\n DesiredCapabilities capabilities = new DesiredCapabilities();\n //capabilities.setCapability(MobileCapabilityType.BROWSER_NAME, ConfigHelper.getDriverType());\n capabilities.setCapability(MobileCapabilityType.APPIUM_VERSION, ConfigHelper.getAppiumVersion());\n capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, ConfigHelper.getPlatformVersion());\n capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, ConfigHelper.getDeviceName());\n capabilities.setCapability(MobileCapabilityType.APP, appPath);\n if (!ConfigHelper.getAutomationName().isEmpty()) {\n capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, ConfigHelper.getAutomationName());\n }\n try {\n appiumDriver = new IOSDriver(new URL(url), capabilities);\n kAppiumDriver = new KAppiumDriver(appiumDriver);\n logger.info(\"IOSDriver is \" + driverType + \" driver, pointing \" + \" is generated on\" + url);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n break;\n }\n case \"browserstack\":\n String USERNAME = \"a user name\";\n String AUTOMATE_KEY = \"a password\";\n // final String URL = \"http://otis8:[email protected]:80/wd/hub\";\n String URL = \"http://\" + USERNAME + \":\" + AUTOMATE_KEY + \"@hub.browserstack.com:80/wd/hub\";\n if (!ConfigHelper.getString(\"browserstack.url\").isEmpty()) {\n URL = ConfigHelper.getString(\"browserstack.url\");\n logger.info(URL);\n }\n\n //browserstack.debug=true\n DesiredCapabilities caps = new DesiredCapabilities();\n if (!ConfigHelper.getString(\"browserstack.os\").isEmpty()) {\n caps.setCapability(\"os\", ConfigHelper.getString(\"browserstack.os\"));\n logger.info(\"browserstack.os\" + ConfigHelper.getString(\"browserstack.os\"));\n }\n if (!ConfigHelper.getString(\"browserstack.debug\").isEmpty()) {\n caps.setCapability(\"browserstack.debug\", ConfigHelper.getString(\"browserstack.debug\"));\n logger.info(\"browserstack.debug\" + ConfigHelper.getString(\"browserstack.debug\"));\n }\n if (!ConfigHelper.getString(\"browserstack.os_version\").isEmpty()) {\n caps.setCapability(\"os_version\", ConfigHelper.getString(\"browserstack.os_version\"));\n logger.info(\"browserstack.os_version\" + ConfigHelper.getString(\"browserstack.os_version\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserName\").isEmpty()) {\n caps.setCapability(\"browserName\", ConfigHelper.getString(\"browserstack.browserName\"));\n logger.info(\"browserstack.browserName\" + ConfigHelper.getString(\"browserstack.browserName\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browser_version\").isEmpty()) {\n caps.setCapability(\"browser_version\", ConfigHelper.getString(\"browserstack.browser_version\"));\n logger.info(\"browserstack.browser_version\" + ConfigHelper.getString(\"browserstack.browser_version\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserstack.local\").isEmpty()) {\n caps.setCapability(\"browserstack.local\", ConfigHelper.getString(\"browserstack.browserstack.local\"));\n logger.info(\"browserstack.local\" + ConfigHelper.getString(\"browserstack.browserstack.local\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserstack.debug\").isEmpty()) {\n caps.setCapability(\"browserstack.debug\", ConfigHelper.getString(\"browserstack.browserstack.debug\"));\n logger.info(\"browserstack.debug\" + ConfigHelper.getString(\"browserstack.browserstack.debug\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserstack.console\").isEmpty()) {\n caps.setCapability(\"browserstack.console\", ConfigHelper.getString(\"browserstack.browserstack.console\"));\n logger.info(\"browserstack.console\" + ConfigHelper.getString(\"browserstack.browserstack.console\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserstack.networkLogs\").isEmpty()) {\n caps.setCapability(\"browserstack.networkLogs\", ConfigHelper.getString(\"browserstack.browserstack.networkLogs\"));\n logger.info(\"browserstack.networkLogs\" + ConfigHelper.getString(\"browserstack.browserstack.networkLogs\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserstack.video\").isEmpty()) {\n caps.setCapability(\"browserstack.video\", ConfigHelper.getString(\"browserstack.browserstack.video\"));\n logger.info(\"browserstack.video\" + ConfigHelper.getString(\"browserstack.browserstack.video\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserstack.timezone\").isEmpty()) {\n caps.setCapability(\"browserstack.timezone\", ConfigHelper.getString(\"browserstack.browserstack.timezone\"));\n logger.info(\"browserstack.timezone\" + ConfigHelper.getString(\"browserstack.browserstack.timezone\"));\n }\n if (!ConfigHelper.getString(\"browserstack.resolution\").isEmpty()) {\n caps.setCapability(\"resolution\", ConfigHelper.getString(\"browserstack.resolution\"));\n\n logger.info(\"resolution\" + ConfigHelper.getString(\"browserstack.resolution\"));\n }\n if (!ConfigHelper.getString(\"browserstack.selenium_version\").isEmpty()) {\n caps.setCapability(\"selenium_version\", ConfigHelper.getString(\"browserstack.selenium_version\"));\n logger.info(\"selenium_version\" + ConfigHelper.getString(\"browserstack.selenium_version\"));\n }\n if (!ConfigHelper.getString(\"browserstack.device\").isEmpty()) {\n caps.setCapability(\"device\", ConfigHelper.getString(\"browserstack.device\"));\n logger.info(\"device\" + ConfigHelper.getString(\"browserstack.device\"));\n }\n if (!ConfigHelper.getString(\"browserstack.realMobile\").isEmpty()) {\n caps.setCapability(\"realMobile\", ConfigHelper.getString(\"browserstack.realMobile\"));\n logger.info(\"realMobile\" + ConfigHelper.getString(\"browserstack.realMobile\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserstack.appium_version\").isEmpty()) {\n caps.setCapability(\"browserstack.appium_version\", ConfigHelper.getString(\"browserstack.browserstack.appium_version\"));\n logger.info(\"browserstack.appium_version\" + ConfigHelper.getString(\"browserstack.browserstack.appium_version\"));\n }\n if (!ConfigHelper.getString(\"browserstack.deviceOrientation\").isEmpty()) {\n caps.setCapability(\"deviceOrientation\", ConfigHelper.getString(\"browserstack.deviceOrientation\"));\n logger.info(\"deviceOrientation\" + ConfigHelper.getString(\"browserstack.deviceOrientation\"));\n\n }\n // WebDriver driver = null;\n try {\n driver = new RemoteWebDriver(new URL(URL), caps);\n logger.info(\"browserStack is \" + driverType + \" driver, pointing \" + seleniuGridUrl, caps + \" is generated\");\n } catch (MalformedURLException malformedURLException) {\n logger.info(malformedURLException.toString());\n return null;\n }\n break;\n case \"chrome\":\n //final ChromeOptions chromeOptions = new ChromeOptions();\n HashMap<String, Object> chromePrefs = new HashMap<String, Object>();\n chromePrefs.put(\"profile.default_content_settings.popups\", 0);\n chromePrefs.put(\"download.prompt_for_download\", \"false\");\n chromePrefs.put(\"download.directory_upgrade\", \"true\");\n chromePrefs.put(\"plugins.always_open_pdf_externally\", \"true\");\n chromePrefs.put(\"download.default_directory\", ConfigHelper.getDownloadFolder());\n chromePrefs.put(\"plugins.plugins_disabled\", new String[]{\n \"Adobe Flash Player\",\n \"Chrome PDF Viewer\"\n });\n chromePrefs.put(\"pdfjs.disabled\", true);\n ChromeOptions chromeOptions = new ChromeOptions();\n chromeOptions.setExperimentalOption(\"prefs\", chromePrefs);\n chromeOptions.addArguments(\"start-maximized\");\n chromeOptions.addArguments(\"disable-infobars\");\n chromeOptions.addArguments(\"--test-type\");\n DesiredCapabilities cap = DesiredCapabilities.chrome();\n cap.setCapability(CapabilityType.UNEXPECTED_ALERT_BEHAVIOUR, UnexpectedAlertBehaviour.IGNORE);\n cap.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n cap.setCapability(ChromeOptions.CAPABILITY, chromeOptions);\n\n if (ConfigHelper.getString(\"chrome.headless\").toLowerCase().contains(\"t\") || ConfigHelper.getString(\"chrome.headless\").toLowerCase().contains(\"y\")) {\n chromeOptions.addArguments(\"--headless\");\n logger.info(\"chrome headless mode adopted\");\n }\n\n if ((null == seleniuGridUrl) || (seleniuGridUrl.equals(\"\") || seleniuGridUrl.equals(\"127.0.0.1\"))) {\n //remove later, should be a better way - Kris\n //System.setProperty(\"webdriver.chrome.driver\", \"c:/source/chromedriver.exe\");\n driver = new ChromeDriver(cap);\n\n logger.info(driverType + \" driver is generated locally\");\n } else {\n try {\n\n driver = new RemoteWebDriver(new URL(ConfigHelper.getString(\"selenium.grid.url\")), cap);\n logger.info(\"remoteWebdriver is \" + driverType + \" driver, pointing \" + seleniuGridUrl, cap + \" is generated\");\n } catch (MalformedURLException malformedURLException) {\n logger.info(malformedURLException.toString());\n return null;\n }\n }\n break;\n case \"firefox\":\n if ((null == seleniuGridUrl) || (seleniuGridUrl.equals(\"\"))) {\n FirefoxOptions options = new FirefoxOptions();\n driver = new FirefoxDriver(options);\n logger.info(driverType + \" driver is generated locally\");\n } else {\n try {\n DesiredCapabilities capability = DesiredCapabilities.firefox();\n driver = new RemoteWebDriver(new URL(ConfigHelper.getString(\"selenium.grid.url\")), capability);\n logger.info(\"remoteWebdriver is \" + driverType + \" driver, pointing \" + seleniuGridUrl, capability + \" is generated\");\n } catch (MalformedURLException malformedURLException) {\n logger.info(malformedURLException.toString());\n return null;\n }\n }\n break;\n case \"edge\":\n if ((null == seleniuGridUrl) || (seleniuGridUrl.equals(\"\"))) {\n EdgeOptions options = new EdgeOptions();\n driver = new EdgeDriver(options);\n logger.info(driverType + \" driver is generated locally\");\n } else {\n try {\n DesiredCapabilities capability = DesiredCapabilities.edge();\n driver = new RemoteWebDriver(new URL(ConfigHelper.getString(\"selenium.grid.url\")), capability);\n logger.info(\"remoteWebdriver is \" + driverType + \" driver, pointing \" + seleniuGridUrl, capability + \" is generated\");\n } catch (MalformedURLException malformedURLException) {\n logger.info(malformedURLException.toString());\n return null;\n }\n }\n break;\n case \"phantomjs\":\n if ((null == seleniuGridUrl) || (seleniuGridUrl.equals(\"\"))) {\n driver = new PhantomJSDriver();\n logger.info(driverType + \" driver is generated locally\");\n } else {\n try {\n DesiredCapabilities capability = DesiredCapabilities.edge();\n driver = new RemoteWebDriver(new URL(ConfigHelper.getString(\"selenium.grid.url\")), capability);\n logger.info(\"remoteWebdriver is \" + driverType + \" driver, pointing \" + seleniuGridUrl, capability + \" is generated\");\n } catch (MalformedURLException malformedURLException) {\n logger.info(malformedURLException.toString());\n return null;\n }\n }\n driver = new PhantomJSDriver();\n break;\n case \"ie\":\n if ((null == seleniuGridUrl) || (seleniuGridUrl.equals(\"\"))) {\n InternetExplorerOptions options = new InternetExplorerOptions();\n driver = new InternetExplorerDriver();\n logger.info(driverType + \" driver is generated locally\");\n } else {\n try {\n DesiredCapabilities capability = DesiredCapabilities.internetExplorer();\n driver = new RemoteWebDriver(new URL(ConfigHelper.getString(\"selenium.grid.url\")), capability);\n logger.info(\"remoteWebdriver is \" + driverType + \" driver, pointing \" + seleniuGridUrl, capability + \" is generated\");\n } catch (MalformedURLException malformedURLException) {\n logger.info(malformedURLException.toString());\n return null;\n }\n }\n\n break;\n case \"safari\":\n if ((null == seleniuGridUrl) || (seleniuGridUrl.equals(\"\"))) {\n SafariOptions options = new SafariOptions();\n driver = new SafariDriver(options);\n logger.info(driverType + \" driver is generated locally\");\n } else {\n try {\n DesiredCapabilities capability = DesiredCapabilities.safari();\n driver = new RemoteWebDriver(new URL(ConfigHelper.getString(\"selenium.grid.url\")), capability);\n logger.info(\"remoteWebdriver is \" + driverType + \" driver, pointing \" + seleniuGridUrl, capability + \" is generated\");\n } catch (MalformedURLException malformedURLException) {\n logger.info(malformedURLException.toString());\n return null;\n }\n }\n break;\n default:\n throw new IllegalArgumentException(\"the browser type is not defined\");\n }\n\n if (kAppiumDriver != null) {\n return kAppiumDriver;\n }\n return (KAppiumDriver) driver;\n }", "protected DesiredCapabilities getCapabilitiesForFirefox(String currentIOSSimulatorUDID, ExtentTest currentTest, ExtentReportGenerator extentReportGenerator, Integer wdaLocalPort, String scenarioName, String testRunName, String appVersionBeingTested){\n\t\tDesiredCapabilities desCap = new DesiredCapabilities();\n\t\t//desired caps go here\n\t\treturn desCap;\n\t}", "public String getCapabilities() {\n return this.capabilities;\n }", "public Map<Class<?>, Class<?>[]> getCapabilities();", "CapabilitiesType createCapabilitiesType();", "public boolean connectToDriverForVersionOnAt(String browser, String version, String platformName, String url)\n throws MalformedURLException {\n Platform platform = Platform.valueOf(platformName);\n URL remoteUrl = new URL(url);\n DesiredCapabilities desiredCapabilities = new DesiredCapabilities(browser, version, platform);\n RemoteWebDriver remoteWebDriver = new RemoteWebDriver(remoteUrl, desiredCapabilities);\n setDriver(remoteWebDriver);\n return true;\n }", "void getCapabilties(Browser browser, DesiredCapabilities caps);", "@DataProvider(name = \"sBoxBrowsersProvider\", parallel=true)\n public Object[][] getRemoteDrivers() throws MalformedURLException {\n DesiredCapabilities firefoxCapabs = DesiredCapabilities.firefox();\n\n //firefoxCapabs.setPlatform(Platform.LINUX);\n //firefoxCapabs.setCapability(\"e34:auth\", \"sjej35po2vgxd7yg\");\n //firefoxCapabs.setCapability(\"e34:video\", true);\n //firefoxCapabs.setCapability(\"acceptInsecureCerts\", true);\n\n\n // Return Chrome capabilities object\n DesiredCapabilities chromeCaps = DesiredCapabilities.chrome();\n\n chromeCaps.setPlatform(Platform.LINUX);\n chromeCaps.setCapability(\"e34:auth\", \"sjej35po2vgxd7yg\");\n chromeCaps.setCapability(\"e34:video\", true);\n chromeCaps.setCapability(\"acceptInsecureCerts\", true);\n\n\n return new Object[][]{\n {firefoxCapabs},\n //{chromeCaps}\n };\n\n }", "@Override\r\n public WebDriver createWebDriver() {\n MutableCapabilities capabilities = createSpecificGridCapabilities(webDriverConfig);\r\n capabilities.merge(driverOptions);\r\n \r\n // \r\n gridConnector.uploadMobileApp(capabilities);\r\n\r\n // connection to grid is made here\r\n driver = getDriver(gridConnector.getHubUrl(), capabilities);\r\n\r\n setImplicitWaitTimeout(webDriverConfig.getImplicitWaitTimeout());\r\n if (webDriverConfig.getPageLoadTimeout() >= 0 && SeleniumTestsContextManager.isWebTest()) {\r\n setPageLoadTimeout(webDriverConfig.getPageLoadTimeout());\r\n }\r\n\r\n this.setWebDriver(driver);\r\n\r\n runWebDriver();\r\n\r\n ((RemoteWebDriver)driver).setFileDetector(new LocalFileDetector());\r\n\r\n return driver;\r\n }", "public List<String> getCapabilities() {\n if (capabilities == null) {\n return new ArrayList<>();\n }\n return capabilities;\n }", "private static Element appendExtendedCapabilities( OWSCapabilitiesBaseType_1_0 capabilities,\n Element root, URI namespace, String prefix ) {\n LOG.entering();\n Element cap = XMLTools.appendElement( root, namespace, prefix + \"Capability\" );\n Element sams = XMLTools.appendElement( cap, namespace,\n prefix + \"SupportedAuthenticationMethodList\" );\n\n ArrayList<SupportedAuthenticationMethod> methods = capabilities.getAuthenticationMethods();\n for ( SupportedAuthenticationMethod method : methods )\n appendSupportedAuthenticationMethod( sams, method );\n\n LOG.exiting();\n return cap;\n }", "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 }", "@Override\r\n\tpublic void buildDriver() throws DriverException\r\n\t{\r\n\t\tif(ConfigUtil.isLocalEnv())\r\n\t\t{\r\n\t\t\t// if it is a Selenium tool, then create selenium ChromeDriver\r\n\t\t\tif(ConfigUtil.isSelenium()){\r\n\t\t\t\t\r\n\t\t\t\tFile chromeDriverFile=getChromeDriverFile();\r\n\t\t\t\tSystem.out.println(\" Found Driver file\");\r\n\t\t\t\tdriver =SeleniumDriver.buildChromeDriver(chromeDriverFile);\r\n\t\t\t\t //new org.openqa.selenium.chrome.ChromeDriver();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\telse if(ConfigUtil.isRemoteEnv())\r\n\t\t{\r\n\t\t\tif(ConfigUtil.isSelenium()){\r\n\t\t\t\tcapabilities = DesiredCapabilities.chrome();\t\r\n\t\t\t\tdriver = SeleniumDriver.buildRemoteDriver(capabilities);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\telse if(ConfigUtil.isBrowserStackEnv())\r\n\t\t{\r\n\t\t\tcapabilities = DesiredCapabilities.chrome();\r\n\t\t\tbuildBrowserstackCapabilities();\r\n\r\n\t\t}\r\n\r\n\t}", "@BeforeTest\n\t\tpublic void setUp() throws MalformedURLException {\n\t\t\t DesiredCapabilities capabilities = new DesiredCapabilities();\n\t\t\t // Set android deviceName desired capability. Set your device name.\n\t\t\t capabilities.setCapability(\"deviceName\", \"Custom Phone - 4.2.2 API 17 - 768*1280\");\n\t\t\t // Set BROWSER_NAME desired capability. It's Android in our case here.\n\t\t\t capabilities.setCapability(\"browserName\", \"Android\");\n\n\t\t\t // Set android VERSION desired capability. Set your mobile device's OS version.\n\t\t\t capabilities.setCapability(\"platformVersion\", \"4.2.2\");\n\n\t\t\t // Set android platformName desired capability. It's Android in our case here.\n\t\t\t capabilities.setCapability(\"platformName\", \"Android\");\n\t\t\t // Created object of RemoteWebDriver will all set capabilities.\n\t\t\t // Set appium server address and port number in URL string.\n\t\t\t // It will launch calculator app in android device.\n\t\t\t // capabilities.setCapability(\"unicodeKeyboard\", true);\n\t\t\t // capabilities.setCapability(\"resetKeyboard\", true);\n\t\t\t driver = new RemoteWebDriver(new URL(\"http://127.0.0.1:4723/wd/hub\"), capabilities);\n\t\t\t driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);\n\t\t\t }", "public Capabilities getCapabilities() {\n Capabilities result = super.getCapabilities();\n\n // attributes\n result.enable(Capability.NOMINAL_ATTRIBUTES);\n\n // class\n result.enable(Capability.NOMINAL_CLASS);\n result.enable(Capability.MISSING_CLASS_VALUES);\n \n return result;\n }", "private void setOsVersion() {\n addToMobileContext(Parameters.OS_VERSION, android.os.Build.VERSION.RELEASE);\n }", "DeviceCapabilitiesProvider getDeviceCapabilitiesProvider();", "@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}", "public Capabilities getCapabilities() {\n Capabilities result = super.getCapabilities();\n result.disableAll();\n\n // attributes\n result.enable(Capability.NOMINAL_ATTRIBUTES);\n result.enable(Capability.NUMERIC_ATTRIBUTES);\n result.enable(Capability.DATE_ATTRIBUTES);\n result.enable(Capability.MISSING_VALUES);\n\n // class\n result.enable(Capability.NOMINAL_CLASS);\n result.enable(Capability.NUMERIC_CLASS);\n result.enable(Capability.DATE_CLASS);\n result.enable(Capability.MISSING_CLASS_VALUES);\n\n return result;\n }", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateCapabilitiesWithRelativeApplicationPath() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setMobilePlatformVersion(\"8.0\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S8\");\r\n\t\tcontext.setAppPackage(\"appPackage\");\r\n\t\tcontext.setAppActivity(\"appActivity\");\r\n\t\tcontext.setApp(\"data/core/app.apk\");\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(CapabilityType.BROWSER_NAME), \"\");\r\n\t\tlogger.info(\"app path: \" + capa.getCapability(\"app\"));\r\n\t\tAssert.assertTrue(capa.getCapability(\"app\").toString().contains(\"/data/core/app.apk\"));\r\n\t}", "private void setIEDriver() throws Exception {\n\t\tcapabilities = DesiredCapabilities.internetExplorer();\n\t\t// capabilities.setCapability(\"ignoreProtectedModeSettings\", true);\n\t\t// capabilities.setCapability(\"ignoreZoomSetting\", true);\n\t\t// capabilities.setCapability(InternetExplorerDriver.IE_ENSURE_CLEAN_SESSION,\n\t\t// true);\n\t\tcapabilities.setJavascriptEnabled(true);\n\n\t\tInternetExplorerOptions ieOptions = new InternetExplorerOptions();\n\t\tieOptions.destructivelyEnsureCleanSession();\n\t\tieOptions.ignoreZoomSettings();\n\t\tieOptions.setCapability(\"ignoreProtectedModeSettings\", true);\n\t\tieOptions.merge(capabilities);\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.ie.driver\", ieDriverLocation);\n\t\t\tmyDriver = new InternetExplorerDriver(ieOptions);\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 = defaultIEVersion;\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\trcDriver.setFileDetector(new LocalFileDetector());\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 = defaultIEVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\t//capabilities.setCapability(\"name\", testMethod.get());\n\t\t\tcapabilities.setCapability(\"build\", testProperties.getString(TEST_ENV)+\" IE-\"+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.ie.driver\", ieDriverLocation);\n\t\t\tmyDriver = new InternetExplorerDriver(ieOptions);\n\t\t\tbreak;\n\t\t}\n\t\tdriver.set(myDriver);\n\t}", "@BeforeClass\n\tpublic void appLaunch() throws IOException\n\t{\n\n\t\t/*String Appium_Node_Path=\"C:/Program Files (x86)/Appium/node.exe\"; \n\t\tString Appium_JS_Path=\"C:/Program Files (x86)/Appium/node_modules/appium/bin/appium.js\"; \n\t\tappiumService = AppiumDriverLocalService.buildService(new AppiumServiceBuilder().usingPort(4723).usingDriverExecutable(new File(Appium_Node_Path)).withAppiumJS(new File(Appium_JS_Path))); \n\t\tappiumService.start();\n\t\t */\t\t\t\n\t\tcapabilities.setCapability(MobileCapabilityType.PLATFORM,Platform.ANDROID);\n\t\tcapabilities.setCapability(MobileCapabilityType.NEW_COMMAND_TIMEOUT,3000);\n\t\tcapabilities.setCapability(MobileCapabilityType.PLATFORM,Horoscope_GenericLib.readConfigPropFile(sPropFileName, \"PLATFORMNAME\"));\n\t\tcapabilities.setCapability(MobileCapabilityType.DEVICE_NAME,Horoscope_GenericLib.readConfigPropFile(sPropFileName, \"DeviceName\"));\n\t\tcapabilities.setCapability(MobileCapabilityType.VERSION,Horoscope_GenericLib.readConfigPropFile(sPropFileName, \"PLATFORMVERSION\"));\n//\t\tcapabilities.setCapability(\"appPackage\", Horoscope_GenericLib.readConfigPropFile(sPropFileName, \"packageName\"));\n//\t\tcapabilities.setCapability(\"appActivity\",Horoscope_GenericLib.readConfigPropFile(sPropFileName, \"activityName\"));\n\t\t\n\t\t// for testing\n\t\tcapabilities.setCapability(\"appPackage\", \"in.amazon.mShop.android.shopping\");\n\t\tcapabilities.setCapability(\"appActivity\", \"com.amazon.mShop.home.HomeActivity\");;\n\n\n\t\tURL url= new URL(\"http://0.0.0.0:4723/wd/hub\");\n\t\tdriver = new AndroidDriver<WebElement>(url, capabilities);\n\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\t// testing purpose\n\t\tbackButton(driver);\n\t\tbackButton(driver);\n\t\t\n// in.amazon.mShop.android.shopping\n//\tcom.amazon.mShop.sso.SigninPromptActivity\n\n\t}", "private static boolean isSupportedPlatform(String versionString) {\n boolean isSupportedPlatform = true;\n Matcher pre223Matcher = PRE_223_PATTERN.matcher(versionString);\n if (pre223Matcher.matches()) {\n int majorVersion = Integer.parseInt(pre223Matcher.group(\"major\"));\n int updateVersion = Integer.parseInt(pre223Matcher.group(\"update\"));\n if (majorVersion != 8) {\n logger.warn(\"Skipping tests because JDK is unsupported: \" + versionString);\n isSupportedPlatform = false;\n }\n if (updateVersion < 272) {\n logger.warn(\"Skipping tests because JDK is unsupported: \" + versionString);\n isSupportedPlatform = false;\n }\n } else {\n int majorVersion = 0;\n /* Handle versions like 11.0.9, 16-internal, 16 */\n int dotIndex = versionString.indexOf('.');\n if (dotIndex > 0) {\n majorVersion = Integer.parseInt(versionString.substring(0, dotIndex));\n } else {\n int dashIndex = versionString.indexOf('-');\n if (dashIndex > 0) {\n majorVersion = Integer.parseInt(versionString.substring(0, dashIndex));\n } else {\n majorVersion = Integer.parseInt(versionString);\n }\n }\n if (majorVersion < 11) {\n logger.warn(\"Skipping tests because JDK is unsupported: \" + versionString);\n isSupportedPlatform = false;\n }\n }\n return isSupportedPlatform;\n }", "Set<String> listCapabilities();", "public void addToUsermetaCapabilities(Users users, int countUsers) {\n Connection connection = connectionDB.openConnection();\n PreparedStatement preparedStatement;\n try {\n preparedStatement = connection.prepareStatement(WP_USERMETA_CAPABILITIES);\n preparedStatement.setInt(1, countUsers);\n preparedStatement.setString(2, users.getWp_capabilities());\n preparedStatement.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n connectionDB.closeConnection(connection);\n }\n }", "@Before\n public void setUp() throws Exception {\n\n DesiredCapabilities capabilities = new DesiredCapabilities();\n capabilities.setCapability(\"deviceName\", \"Google Nexus 5\");\n capabilities.setCapability(\"platformVersion\", \"4.4.4\");\n capabilities.setCapability(\"udid\", \"192.168.27.101:5555\");\n capabilities.setCapability(\"app\", \"D:\\\\Projects\\\\Zappy\\\\ZappyBuilds\\\\app-release.apk\");\n// capabilities.setCapability(\"appPackage\", \"com.example.android.contactmanager\");//packageName\n capabilities.setCapability(\"appActivity\", \"com.compareking.zappy.ui.activity.UnauthorizedActivity\"); //activi\n driver = new AndroidDriver<>(new URL(\"http://127.0.0.1:4723/wd/hub\"), capabilities);\n }", "public DeviceDescription setCapabilities(List<DeviceDescriptionCapability> capabilities) {\n this.capabilities = capabilities;\n return this;\n }", "public interface ICapabilityProvider {\n\n /**\n * Unique ID for this Provider\n *\n * @return\n */\n String getId();\n\n /**\n * Get a list of Capability IDs found by the provider\n *\n * @return\n */\n Set<String> listCapabilities();\n\n /**\n * Get a Capability by ID\n *\n * @param id\n * @return\n */\n ICapability getCapabilityById( String id );\n\n\n /**\n * Returns true if capability exists, if not return false\n *\n * @param id\n * @return\n */\n boolean capabilityExist( String id );\n\n /**\n * Get a set containing all ICapabilities\n *\n * @return\n */\n Set<ICapability> getAllCapabilities();\n}", "@BeforeTest\n public void appiumBrowserTestSetup() throws Exception{\n DesiredCapabilities capabilities = DesiredCapabilities.android();\n\n // set the capability to execute test in chrome browser\n capabilities.setCapability(MobileCapabilityType.BROWSER_NAME, BrowserType.CHROME);\n\n // set the capability to execute our test in Android Platform\n capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, Platform.ANDROID);\n\n // Set the device name as well (you can give any name)\n capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, \"emulator-5554\");\n\n // set the android version as well\n capabilities.setCapability(MobileCapabilityType.VERSION, \"9\");\n\n // set the chromedriver\n capabilities.setCapability(\"chromedriverExecutable\",\"C:\\\\drivers\\\\chromedriver.exe\");\n\n // Create object of URL class and specify the appium server address\n URL url = new URL(\"http://127.0.0.1:4723/wd/hub\");\n\n // Create object of AndroidDriver class and pass the url and capability that we\n // created\n driver = new AppiumDriver(url, capabilities);\n\n driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);\n driver.get(\"https://www.amazon.co.uk/\");\n Thread.sleep(5000);\n }", "@Override\n public Capabilities getCapabilities() {\n Capabilities result = super.getCapabilities();\n\n // attributes\n result.enable(Capability.NOMINAL_ATTRIBUTES);\n result.enable(Capability.RELATIONAL_ATTRIBUTES);\n result.disable(Capability.MISSING_VALUES);\n\n // class\n result.disableAllClasses();\n result.disableAllClassDependencies();\n result.enable(Capability.BINARY_CLASS);\n\n // Only multi instance data\n result.enable(Capability.ONLY_MULTIINSTANCE);\n\n return result;\n }", "private WebDriver createDriver() {\r\n\t\tlogger.info(\"Environment Type is \" + environmentType);\r\n\t\tswitch (environmentType) {\r\n\t\tcase LOCAL:\r\n\t\t\tdriver = createLocalDriver();\r\n\t\t\tbreak;\r\n\t\tcase REMOTE:\r\n\t\t\tdriver = createRemoteDriver();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn driver;\r\n\t}", "void setWindowsVersion(java.lang.String windowsVersion);", "@BeforeClass\npublic void setUp() throws MalformedURLException{\n\tDesiredCapabilities capabilities = new DesiredCapabilities();\n\t//capabilities.setCapability(\"BROWSER_NAME\", \"Android\");\n//\tcapabilities.setCapability(\"VERSION\", \"4.4.2\"); \n\tcapabilities.setCapability(\"deviceName\",\"NSM3Y18206000488\");\n\tcapabilities.setCapability(\"udid\",\"NSM3Y18206000488\");\n\tcapabilities.setCapability(\"platformName\",\"Android\");\n capabilities.setCapability(\"appPackage\", \"com.android.chrome\");\n// This package name of your app (you can get it from apk info app)\n\tcapabilities.setCapability(\"appActivity\",\"com.google.android.apps.chrome.Main\"); // This is Launcher activity of your app (you can get it from apk info app)\n//Create RemoteWebDriver instance and connect to the Appium server\n //It will launch the Calculator App in Android Device using the configurations specified in Desired Capabilities\n driver = new AndroidDriver<MobileElement>(new URL(\"http://localhost:4723/wd/hub\"), capabilities);\n \n // PageFactory.initElements(driver, this);\n}", "public Capabilities getCapabilities(WebDriver driver) {\n return ((RemoteWebDriver) driver).getCapabilities();\n }", "private static void appendBaseCapabilities( OWSCapabilitiesBaseType_1_0 capabilities,\n Element root ) {\n LOG.entering();\n root.setAttribute( \"version\", capabilities.getVersion() );\n root.setAttribute( \"updateSequence\", capabilities.getUpdateSequence() );\n\n // may have to be changed/overwritten (?)\n ServiceIdentification serviceIdentification = capabilities.getServiceIdentification();\n if ( serviceIdentification != null )\n appendServiceIdentification( root, serviceIdentification );\n\n ServiceProvider serviceProvider = capabilities.getServiceProvider();\n if ( serviceProvider != null )\n appendServiceProvider( root, serviceProvider );\n\n OperationsMetadata_1_0 metadata = capabilities.getOperationsMetadata();\n if ( metadata != null )\n appendOperationsMetadata_1_0( root, metadata );\n LOG.exiting();\n }", "@SuppressWarnings(\"deprecation\")\n\tpublic DesiredCapabilities getDesiredCapabilitiesCloud(BrowserType browserType, String suiteName) {\n\t\tDesiredCapabilities desiredCapabilities = new DesiredCapabilities();\n\t\tswitch(browserType) {\n\t\tcase InternetExplorer:\n\t\t\tdesiredCapabilities = DesiredCapabilities.internetExplorer();\n\t\t\tdesiredCapabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);\n\t\t\tdesiredCapabilities.setCapability(\"ignoreProtectedModeSettings\", true);\n\t\t\tdesiredCapabilities.setCapability(CapabilityType.ENABLE_PERSISTENT_HOVERING, false);\n\t\t\tdesiredCapabilities.setCapability(\"javascriptEnabled\",true);\n\t\t\tdesiredCapabilities.setCapability(\"autoAcceptAlerts\",true);\n\t\t\tdesiredCapabilities.setCapability(\"unexpectedAlertBehaviour\", UnexpectedAlertBehaviour.DISMISS);\n\t\t\tdesiredCapabilities.setCapability(\"handlesAlerts\", \"dismissAlerts\");\n\t\t\tdesiredCapabilities.setCapability(\"requireWindowFocus\", true);\n\t\t\tdesiredCapabilities.setCapability(\"ie.ensureCleanSession\", true);\n\t\t\tdesiredCapabilities.setCapability(CapabilityType.PLATFORM, \"Windows 8.1\");\n\t\t\tdesiredCapabilities.setCapability(CapabilityType.VERSION, \"11.0\");\n\t\t\tdesiredCapabilities.setCapability(CapabilityType.BROWSER_NAME, \"internet explorer\");\t\t\t\n\t\t\tbreak;\n\t\tcase Chrome:\n\t\t\tdesiredCapabilities = DesiredCapabilities.chrome();\t\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\toptions.addArguments(\"test-type\");\n\t\t\toptions.addArguments(\"allow-running-insecure-content\");\n\t\t\toptions.addArguments(\"ignore-certificate-errors\");\n\t\t\t//desiredCapabilities.setCapability(ChromeOptions.CAPABILITY, options);\n\t\t\tdesiredCapabilities.setCapability(CapabilityType.PLATFORM, \"Windows 8.1\");\n\t\t\tdesiredCapabilities.setCapability(CapabilityType.VERSION, \"43.0\");\n\t\t\tdesiredCapabilities.setCapability(CapabilityType.BROWSER_NAME, \"chrome\");\n\t\t\tbreak;\n\t\tcase Safari:\n\t\t\tdesiredCapabilities = DesiredCapabilities.safari();\t\n\t\t\tdesiredCapabilities.setCapability(\"javascriptEnabled\",true);\n\t\t\tdesiredCapabilities.setCapability(\"autoAcceptAlerts\",true);\n\t\t\tdesiredCapabilities.setCapability(\"unexpectedAlertBehaviour\", UnexpectedAlertBehaviour.DISMISS);\n\t\t\tdesiredCapabilities.setCapability(\"handlesAlerts\", \"dismissAlerts\");\n\t\t\tdesiredCapabilities.setCapability(\"safari.options.dataDir\", System.getProperty(\"user.home\")+File.separator+\"Downloads\");\n\t\t\tdesiredCapabilities.setCapability(CapabilityType.PLATFORM, \"OS X 10.10\");\n\t\t\tdesiredCapabilities.setCapability(CapabilityType.VERSION, \"8.0\");\n\t\t\tdesiredCapabilities.setCapability(CapabilityType.BROWSER_NAME, \"safari\");\n\t\t\tbreak;\n\t\tcase Firefox:\n\t\t\tFirefoxProfile profile = new FirefoxProfile();\n\t\t\tprofile.setAcceptUntrustedCertificates(true);\n\t\t\tprofile.setAssumeUntrustedCertificateIssuer(false);\n\t\t\tprofile.setEnableNativeEvents(true);\n\n\t\t\tprofile.setPreference(\"browser.download.folderList\", 1);\n\t\t\tprofile.setPreference(\"browser.download.manager.showWhenStarting\", false);\n\t\t\tprofile.setPreference(\"browser.download.manager.focusWhenStarting\", false);\n\t\t\tprofile.setPreference(\"browser.download.useDownloadDir\", true);\n\t\t\tprofile.setPreference(\"browser.helperApps.alwaysAsk.force\", false);\n\t\t\tprofile.setPreference(\"browser.download.manager.alertOnEXEOpen\", false);\n\t\t\tprofile.setPreference(\"browser.download.manager.closeWhenDone\", true);\n\t\t\tprofile.setPreference(\"browser.download.manager.showAlertOnComplete\", false);\n\t\t\tprofile.setPreference(\"browser.download.manager.useWindow\", false);\n\t\t\tprofile.setPreference(\"plugin.disable_full_page_plugin_for_types\", \"application/pdf\");\n\t\t\tprofile.setPreference(\"pdfjs.disabled\", true);\n\t\t\tprofile.setPreference(\"browser.helperApps.neverAsk.saveToDisk\", \"application/pdf,application/vnd.ms-powerpoint,application/octet-stream,application/msword,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.openxmlformats-officedocument.spreadsheetml.template,application/vnd.openxmlformats-officedocument.presentationml.template,application/vnd.openxmlformats-officedocument.presentationml.slideshow,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/vnd.openxmlformats-officedocument.presentationml.slide,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.wordprocessingml.template,application/vnd.ms-excel.addin.macroEnabled.12,application/vnd.ms-excel.sheet.binary.macroEnabled.12,application/vnd.ms-word.document.macroEnabled.12,application/vnd.ms-word.template.macroEnabled.12,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.template,application/vnd.ms-excel.sheet.macroEnabled.12,application/vnd.ms-excel.template.macroEnabled.12,application/vnd.openxmlformats-officedocument.presentationml.template,application/vnd.ms-powerpoint.addin.macroEnabled.12,application/vnd.ms-powerpoint.presentation.macroEnabled.12,application/vnd.ms-powerpoint.template.macroEnabled.12,application/vnd.ms-powerpoint.slideshow.macroEnabled.12\");\n\t\t\tprofile.setPreference(\"security.mixed_content.block_active_content\", false);\n\t\t\tprofile.setPreference(\"security.mixed_content.block_display_content\", true);\n\t\t\tprofile.setPreference(\"capability.policy.default.Window.QueryInterface\", \"allAccess\"); \n\t\t\tprofile.setPreference(\"capability.policy.default.Window.frameElement.get\",\"allAccess\");\n\n\t\t\tdesiredCapabilities = DesiredCapabilities.firefox();\n\t\t\tdesiredCapabilities.setCapability(FirefoxDriver.PROFILE, profile);\n\t\t\tdesiredCapabilities.setCapability(CapabilityType.PLATFORM, \"Windows 8.1\");\n\t\t\tdesiredCapabilities.setCapability(CapabilityType.VERSION, \"28.0\");\n\t\t\tdesiredCapabilities.setCapability(CapabilityType.BROWSER_NAME, \"firefox\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tdesiredCapabilities = DesiredCapabilities.chrome();\t\n\t\t\tdesiredCapabilities.setCapability(CapabilityType.PLATFORM, \"Windows 8.1\");\n\t\t\tdesiredCapabilities.setCapability(CapabilityType.VERSION, \"43.0\");\n\t\t\tdesiredCapabilities.setCapability(CapabilityType.BROWSER_NAME, \"chrome\");\n\t\t\tbreak;\n\t\t}\n\t\tdesiredCapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\tdesiredCapabilities.setCapability(CapabilityType.ELEMENT_SCROLL_BEHAVIOR, 1);\n\t\tdesiredCapabilities.setCapability(\"screenResolution\", \"1024x768\");\n\t\tdesiredCapabilities.setCapability(\"name\", suiteName);\n\t\tdesiredCapabilities.setCapability(\"seleniumVersion\",\"2.45.0\");\n\t\tdesiredCapabilities.setCapability(\"chromedriverVersion\",\"2.15\");\n\t\tdesiredCapabilities.setCapability(\"iedriverVersion\",\"2.45.0\");\n\t\treturn desiredCapabilities;\n\t}", "public String getImagePlatformString() {\n\t\tMap<Short, List<DevicePropertyAttrOptionObj>> optionMap = DevicePropertyManage.getInstance().getDeviceModelOptionsMapping(DeviceInfo.SPT_IMAGE_INTERNAL_NAME);\r\n\t\tString imageVerNum = getImageVersionNum();\r\n\t\t\r\n//\t\t//version map\r\n//\t\tIterator<Entry<Short, String>> latestVerItem = latestVerMap.entrySet().iterator();\r\n//\t\twhile(latestVerItem.hasNext()){\r\n//\t\t\tEntry<Short, String> latestVerEntry = latestVerItem.next();\r\n//\t\t\tif(NmsUtil.compareSoftwareVersion(imageVerNum, latestVerEntry.getValue()) < 0){\r\n//\t\t\t\tlatestVerItem.remove();\r\n//\t\t\t}\r\n//\t\t}\r\n\t\t\r\n\t\t//filter platform\r\n\t\tIterator<Entry<Short, List<DevicePropertyAttrOptionObj>>> optionIterator = optionMap.entrySet().iterator();\r\n\t\twhile(optionIterator.hasNext()){\r\n\t\t\tEntry<Short, List<DevicePropertyAttrOptionObj>> optionEntry = optionIterator.next();\r\n//\t\t\tif(!latestVerMap.containsKey(optionEntry.getKey())){\r\n//\t\t\t\toptionIterator.remove();\r\n//\t\t\t\tcontinue;\r\n//\t\t\t}\r\n\t\t\tif(optionEntry.getValue() == null || optionEntry.getValue().isEmpty()){\r\n\t\t\t\toptionIterator.remove();\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tboolean pFound = false;\r\n\t\t\tfor(DevicePropertyAttrOptionObj optObj : optionEntry.getValue()){\r\n\t\t\t\tif(optObj.getValue().equals(this.productName)){\r\n\t\t\t\t\tpFound = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(!pFound){\r\n\t\t\t\toptionIterator.remove();\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tString[] supportVersions = (String[])AhConstantUtil.getEnumValues(Device.SUPPORTED_HIVEOS_VERSIONS, optionEntry.getKey());\r\n\t\t\tif(supportVersions == null){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tpFound = false;\r\n\t\t\tfor(String versionNum : supportVersions){\r\n\t\t\t\tif(NmsUtil.compareSoftwareVersion(versionNum, imageVerNum) == 0){\r\n\t\t\t\t\tpFound = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(!pFound){\r\n\t\t\t\toptionIterator.remove();\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tString pName = null;\r\n\t\tfor (Short apModel : optionMap.keySet()) {\r\n\t\t\tpName = AhConstantUtil.getString(Device.NAME, apModel);\r\n\t\t\tif(StringUtils.isEmpty(pName) || \"null\".equalsIgnoreCase(pName)){\r\n\t\t\t\tcontinue;\r\n\t\t\t}else if (sb.length() == 0) {\r\n\t\t\t\tsb.append(pName);\r\n\t\t\t} else {\r\n\t\t\t\tsb.append(\", \").append(pName);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn sb.toString();\r\n\t}", "@BeforeClass\n public void classLevelSetup() {\n\t\t \t\tcaps = new DesiredCapabilities();\n \t\t\tcaps.setCapability(\"deviceName\", \"My Phone\");\n \t\t\tcaps.setCapability(\"udid\", \"8f81d4e2\"); //Give Device ID of your mobile phone\n \t\t\tcaps.setCapability(\"platformName\", \"Android\");\n \t\t\tcaps.setCapability(\"platformVersion\", \"9\"); // The version of Android on your device\n \t\t\tcaps.setCapability(\"browserName\", \"Chrome\");\n \t\t\tcaps.setCapability(\"noReset\", true);\n \t\t\tcaps.setCapability(MobileCapabilityType.PLATFORM_NAME, MobilePlatform.ANDROID);\n \t\t\tcaps.setCapability(\"chromedriverExecutable\", \"C:\\\\SeleniumGecko\\\\chromedriver78.exe\"); // Set ChromeDriver location\n \t\t\t\n\n \t\t\t//Instantiate Appium Driver or AndroidDriver\n \t\t\ttry {\n \t\t\t\tdriver = new AppiumDriver<>(new URL(appium_node), caps);\n \t\t\t\t\n \t\t\t} catch (MalformedURLException e) {\n \t\t\t\tSystem.out.println(e.getMessage());\n \t\t\t}\n \t\t\t\t\t\n\n\t\t\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}", "@Before\n\t public void setUp() throws Exception {\n\t \n\t DesiredCapabilities capabilities = new DesiredCapabilities();\n\t capabilities.setCapability(\"platformName\", \"Android\");\n\t //capabilities.setCapability(\"deviceName\", \"192.168.249.101:5555\");\n\t capabilities.setCapability(\"deviceName\", \"192.168.249.101:5555\");\n\t //capabilities.setCapability(\"deviceName\", \"f97f0457d73\");\n\t //capabilities.setCapability(\"platformVersion\", \"4.3\");\n\t //capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, \"emulator-5554\");\n\t capabilities.setCapability(\"noReset\", \"true\");\n\t capabilities.setCapability(\"unicodeKeyboard\",\"true\"); //输入中文\n\t capabilities.setCapability(\"resetKeyboard\",\"true\"); //输入中文\n\t capabilities.setCapability(\"appPackage\", \"com.worktile\"); //worktile的包\n\t capabilities.setCapability(\"appActivity\", \".ui.external.WelcomeActivity\"); //启动的activity .ui.external.WelcomeActivity\n\t try {\n\t\t\t\t//driver = new AndroidDriver<MobileElement>(new URL(\"http://192.168.31.225:4723/wd/hub\"), capabilities);\n\t\t\t\t//driver = new AndroidDriver<MobileElement>(new URL(\"http://127.0.0.1:4723/wd/hub\"), capabilities);\n\t\t\t\tdriver = new AndroidDriver<MobileElement>(new URL(\"http://192.168.1.104:4723/wd/hub\"), capabilities);\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS); \n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tdriver.quit();\n\t\t\t\tSystem.err.println(\"launch Android driver fail!\"+e.toString());\n\t\t\t}\n\t }", "Set<Capability> getAvailableCapability();", "private List<String> initializeRequiredCapabilities() {\n // Required device capabilities\n\n String[] capabilityEntries = {V3PO_CAPABILITY, INTERFACES_CAPABILITY};\n return Arrays.asList(capabilityEntries);\n }", "@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}", "private void intializeAppiumDriver() {\n File app = new File(\"src/main/resources\", CommonUtils.getCentralData(\"App\"));\n\n DesiredCapabilities capabilities = new DesiredCapabilities();\n capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, CommonUtils.getCentralData(\"PlatformName\"));\n capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, CommonUtils.getCentralData(\"PlatformVersion\"));\n capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, CommonUtils.getCentralData(\"DeviceName\"));\n if (IS_ANDROID) {\n capabilities.setCapability(APPLICATION_NAME, app.getAbsolutePath());\n capabilities.setCapability(APP_PACKAGE, CommonUtils.getCentralData(\"AppPackage\"));\n capabilities.setCapability(APP_ACTIVITY, CommonUtils.getCentralData(\"AppActivity\"));\n }\n if (IS_IOS) {\n capabilities.setCapability(AUTOMATION_NAME, IOS_XCUI_TEST);\n capabilities.setCapability(\"app\", app.getAbsolutePath());\n }\n capabilities.setCapability(FULL_RESET, CommonUtils.getCentralData(\"FullReset\"));\n capabilities.setCapability(NO_RESET, CommonUtils.getCentralData(\"NoReset\"));\n capabilities.setCapability(\"udid\", CommonUtils.getCentralData(\"UDID\"));\n capabilities.setCapability(MobileCapabilityType.NEW_COMMAND_TIMEOUT, CommonUtils.getCentralData(\"WaitTimeoutInSeconds\"));\n\n try {\n driver = new AppiumDriver(new URL(CommonUtils.getCentralData(\"URL\")), capabilities);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n }", "@Before\n public void setUp() throws Exception {\n DesiredCapabilities capabillities = DesiredCapabilities.firefox();\n capabillities.setCapability(\"version\", \"17\");\n capabillities.setCapability(\"platform\", Platform.XP);\n this.driver = new RemoteWebDriver(\n new URL(\"http://mzazam07:[email protected]:80/wd/hub\"),\n capabillities);\n }", "public List<String> capabilities() {\n return this.capabilities;\n }", "private void findOsVersion() {\n\t\tisGBOrLower = AppUtility.isAndroidGBOrLower();\n\t\tisICSOrHigher = AppUtility.isAndroidICSOrHigher();\n\t}", "public String getSoftwareDriverVersion();", "public static final BaseRemoteWebDriver getDriver() {\r\n\t\tString browser = ConfigProperties.BROWSER;\r\n\t\tif (driver == null) {\r\n\r\n\t\t\tif (browser.equalsIgnoreCase(FIREFOX)) {\r\n\r\n\t\t\t\tlog.info(\"initializing 'firefox' driver...\");\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities\r\n\t\t\t\t\t\t.firefox();\r\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdriver = new BaseRemoteWebDriver(new URL(\r\n\t\t\t\t\t\t\tConfigProperties.HUBURL), capabilities);\r\n\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (browser.equalsIgnoreCase(CHROME)) {\r\n\r\n\t\t\t\tif (isPlatformWindows())\r\n\r\n\t\t\t\t\tlog.info(\"initializing 'chrome' driver...\");\r\n\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\r\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\tcapabilities.setCapability(\r\n\t\t\t\t\t\tCapabilityType.UNEXPECTED_ALERT_BEHAVIOUR, \"ignore\");\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdriver = new BaseRemoteWebDriver(new URL(\r\n\t\t\t\t\t\t\tConfigProperties.HUBURL), capabilities);\r\n\r\n\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (browser.equalsIgnoreCase(INTERNET_EXPLORER)) {\r\n\r\n\t\t\t\tAssert.assertTrue(isPlatformWindows(),\r\n\t\t\t\t\t\t\"Internet Explorer is not supporting in this OS\");\r\n\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities\r\n\t\t\t\t\t\t.internetExplorer();\r\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdriver = new BaseRemoteWebDriver(new URL(\r\n\t\t\t\t\t\t\tConfigProperties.HUBURL), capabilities);\r\n\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tlog.info(\"initializing 'internet explorer' driver...\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (browser.equalsIgnoreCase(SAFARI)) {\r\n\r\n\t\t\t\tAssert.assertTrue(isPlatformWindows() || isPlatformMac(),\r\n\t\t\t\t\t\t\"Safari is not supporting in this OS\");\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.safari();\r\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdriver = new BaseRemoteWebDriver(new URL(\r\n\t\t\t\t\t\t\tConfigProperties.HUBURL), capabilities);\r\n\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (browser.equalsIgnoreCase(\"html\")) {\r\n\r\n\t\t\t\tlog.info(\"initializing 'html' driver...\");\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities\r\n\t\t\t\t\t\t.htmlUnit();\r\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdriver = new BaseRemoteWebDriver(new URL(\r\n\t\t\t\t\t\t\tConfigProperties.HUBURL), capabilities);\r\n\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn driver;\r\n\t}", "public boolean writeToCapabilityFile(Capability cap) {\n\n try {\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n Document doc = docBuilder.newDocument();\n Element rootElement = doc.createElement(\"Sifeb\");\n doc.appendChild(rootElement);\n Element capability = doc.createElement(\"Capability\");\n rootElement.appendChild(capability);\n Element id = doc.createElement(\"Id\");\n id.appendChild(doc.createTextNode(cap.getCapID()));\n capability.appendChild(id);\n Element names = doc.createElement(\"Names\");\n capability.appendChild(names);\n\n for (Map.Entry<Locale, String> entry : cap.getCapNames().entrySet()) {\n Element name = doc.createElement(\"Name\");\n Element locale = doc.createElement(\"Locale\");\n Element nameStr = doc.createElement(\"Value\");\n locale.appendChild(doc.createTextNode(entry.getKey().toString()));\n nameStr.appendChild(doc.createTextNode(entry.getValue()));\n name.appendChild(locale);\n name.appendChild(nameStr);\n names.appendChild(name);\n }\n\n Element type = doc.createElement(\"Type\");\n type.appendChild(doc.createTextNode(cap.getType()));\n capability.appendChild(type);\n\n Element testCmd = doc.createElement(\"TestCommand\");\n testCmd.appendChild(doc.createTextNode(cap.getTestCommand()));\n capability.appendChild(testCmd);\n\n Element button = doc.createElement(\"HasTestButton\");\n button.appendChild(doc.createTextNode(Boolean.toString(cap.isHasTest())));\n capability.appendChild(button);\n\n Element exeCmd = doc.createElement(\"ExeCommand\");\n exeCmd.appendChild(doc.createTextNode(cap.getExeCommand()));\n capability.appendChild(exeCmd);\n\n Element stopCmd = doc.createElement(\"StopCommand\");\n stopCmd.appendChild(doc.createTextNode(cap.getStopCommand()));\n capability.appendChild(stopCmd);\n\n Element compType = doc.createElement(\"Comparator\");\n compType.appendChild(doc.createTextNode(cap.getCompType()));\n capability.appendChild(compType);\n\n Element respSize = doc.createElement(\"Response\");\n respSize.appendChild(doc.createTextNode(cap.getRespSize()));\n capability.appendChild(respSize);\n\n Element refVal = doc.createElement(\"Reference\");\n refVal.appendChild(doc.createTextNode(cap.getRefValue()));\n capability.appendChild(refVal);\n\n Element image = doc.createElement(\"Image\");\n image.appendChild(doc.createTextNode(cap.getImageName()));\n capability.appendChild(image);\n\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource source = new DOMSource(doc);\n File file = new File(SifebUtil.CAP_FILE_DIR + cap.getCapID() + \".xml\");\n StreamResult result = new StreamResult(file);\n transformer.transform(source, result);\n return true;\n\n } catch (ParserConfigurationException | TransformerException pce) {\n return false;\n }\n }", "private void generateTestCapabilityFiles() {\n\n String[] ids = {\"cap_1_001\", \"cap_1_002\", \"cap_1_003\", \"cap_1_004\", \"cap_1_005\", \"cap_3_001\", \"cap_3_002\", \"cap_2_001\", \"cap_2_002\"};\n String[] actionNames_en = {\"Go Forward\", \"Reverse\", \"Turn Left\", \"Turn Right\", \"Stop\", \"Light ON\", \"Light OFF\", \"No Object\", \"See Object\"};\n String[] actionNames_si = {\"ඉදිරියට යන්න\", \"පසුපසට යන්න\", \"වමට හැරෙන්න\", \"දකුණට හැරෙන්න\", \"නවතින්න\", \"Light ON\", \"Light OFF\", \"No Object\", \"See Object\"};\n String[] actionCmd = {\"1\", \"2\", \"3\", \"4\", \"5\", \"1\", \"2\", \"3\", \"4\"};\n String[] comparaters = {\"\", \"\", \"\", \"\", \"\", \"\", \"\", \">\", \"<\"};\n String[] response = {\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"1\", \"1\"};\n String[] reference = {\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"100\", \"100\"};\n String[] buttonList = {\"true\", \"true\", \"true\", \"true\", \"false\", \"true\", \"false\", \"false\", \"false\"};\n //String[] imageList = {\"forward\", \"reverse\", \"left\", \"right\", \"stop\", \"true\", \"false\"};\n\n for (int i = 0; i < 9; i++) {\n\n String types;\n\n if (i >= 7) {\n types = Capability.CAP_SENSE;\n } else if (i < 2 || i > 5) {\n types = Capability.CAP_ACTION_C;\n } else {\n types = Capability.CAP_ACTION;\n }\n\n Map<String, String> nameList = new HashMap<>();\n nameList.put(\"en_US\", actionNames_en[i]);\n nameList.put(\"si_LK\", actionNames_si[i]);\n\n try {\n\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\n // root elements\n Document doc = docBuilder.newDocument();\n Element rootElement = doc.createElement(\"Sifeb\");\n doc.appendChild(rootElement);\n\n Element capability = doc.createElement(\"Capability\");\n rootElement.appendChild(capability);\n\n Element id = doc.createElement(\"Id\");\n id.appendChild(doc.createTextNode(ids[i]));\n capability.appendChild(id);\n\n Element names = doc.createElement(\"Names\");\n capability.appendChild(names);\n\n for (Map.Entry<String, String> entry : nameList.entrySet()) {\n Element name = doc.createElement(\"Name\");\n Element locale = doc.createElement(\"Locale\");\n Element nameStr = doc.createElement(\"Value\");\n\n locale.appendChild(doc.createTextNode(entry.getKey()));\n nameStr.appendChild(doc.createTextNode(entry.getValue()));\n\n name.appendChild(locale);\n name.appendChild(nameStr);\n names.appendChild(name);\n }\n\n Element type = doc.createElement(\"Type\");\n type.appendChild(doc.createTextNode(types));\n capability.appendChild(type);\n\n Element testCmd = doc.createElement(\"TestCommand\");\n testCmd.appendChild(doc.createTextNode(\"t\" + actionCmd[i]));\n capability.appendChild(testCmd);\n\n Element button = doc.createElement(\"HasTestButton\");\n button.appendChild(doc.createTextNode(buttonList[i]));\n capability.appendChild(button);\n\n Element exeCmd = doc.createElement(\"ExeCommand\");\n exeCmd.appendChild(doc.createTextNode(\"a\" + actionCmd[i]));\n capability.appendChild(exeCmd);\n\n Element stopCmd = doc.createElement(\"StopCommand\");\n stopCmd.appendChild(doc.createTextNode(\"a5\"));\n capability.appendChild(stopCmd);\n\n Element compType = doc.createElement(\"Comparator\");\n compType.appendChild(doc.createTextNode(comparaters[i]));\n capability.appendChild(compType);\n\n Element respSize = doc.createElement(\"Response\");\n respSize.appendChild(doc.createTextNode(response[i]));\n capability.appendChild(respSize);\n\n Element refVal = doc.createElement(\"Reference\");\n refVal.appendChild(doc.createTextNode(reference[i]));\n capability.appendChild(refVal);\n\n Element image = doc.createElement(\"Image\");\n image.appendChild(doc.createTextNode(ids[i]));\n capability.appendChild(image);\n\n // write the content into xml file\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource source = new DOMSource(doc);\n File file = new File(SifebUtil.CAP_FILE_DIR + ids[i] + \".xml\");\n StreamResult result = new StreamResult(file); //new File(\"C:\\\\file.xml\"));\n\n transformer.transform(source, result);\n\n System.out.println(\"File saved!\");\n\n } catch (ParserConfigurationException | TransformerException pce) {\n pce.printStackTrace();\n }\n\n }\n }", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateCapabilitiesWithApplicationOverrideFullReset() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setMobilePlatformVersion(\"8.0\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S8\");\r\n\t\tcontext.setAppPackage(\"appPackage\");\r\n\t\tcontext.setAppActivity(\"appActivity\");\r\n\t\tcontext.setFullReset(false);\r\n\t\tcontext.setApp(\"com.covea.mobileapp\");\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.FULL_RESET), false);\r\n\t}", "String getCapability_name();", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateCapabilitiesWithAbsoluteApplicationPath() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setMobilePlatformVersion(\"8.0\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S8\");\r\n\t\tcontext.setAppPackage(\"appPackage\");\r\n\t\tcontext.setAppActivity(\"appActivity\");\r\n\t\tString path = new File(\"data/core/app.apk\").getAbsolutePath();\r\n\t\tcontext.setApp(path);\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(CapabilityType.BROWSER_NAME), \"\");\r\n\t\tAssert.assertEquals(capa.getCapability(\"app\"), path.replace(\"\\\\\", \"/\"));\r\n\t}", "public static AppiumDriver getDriver(String platformtype, AppiumDriverLocalService service) throws IOException, TimeoutException, URISyntaxException {\n AppiumDriver driver;\n /* List<InterceptedMessage> messages = new ArrayList<InterceptedMessage>();\n\n\n MitmproxyJava proxy = new MitmproxyJava(\"/usr/local/bin/mitmdump\", (InterceptedMessage m) -> {\n System.out.println(\"intercepted request for \" + m.requestURL.toString());\n messages.add(m);\n return m;\n });\n //System.out.println(\"Hello World\");\n proxy.start();*/\n if (platformtype== \"Android\") {\n DesiredCapabilities options = new DesiredCapabilities();\n options.setCapability(\"deviceName\", propertyManager.getInstance().getdevicename()); //Pixel_XL_API_29\n options.setCapability(\"udid\",propertyManager.getInstance().getdeviceUDID());\n //options.setCapability(\"avd\",\"Pixel_XL_API_29\");\n options.setCapability(\"platformName\", propertyManager.getInstance().getplatformName());\n options.setCapability(\"platformVersion\", propertyManager.getInstance().getplatformVersion()); //emulator: 10.0.0\n options.setCapability(\"automationName\", \"UiAutomator2\");\n options.setCapability(\"autoGrantPermissions\",\"true\");\n options.setCapability(\"noReset\",\"true\");\n options.setCapability(\"autoAcceptAlerts\",\"true\");\n options.setCapability(\"app\",propertyManager.getInstance().getAndroidapp());\n options.setCapability(\"uiautomator2ServerInstallTimeout\", \"60000\");\n options.setCapability(\"abdExecTimeout\", \"60000\");\n options.setCapability(\"ACCEPT_SSL_CERTS\",true);\n options.setCapability(\"clearDeviceLogsOnStart\",\"true\");\n //options.setCapability(\"--set ssl_version_client\",\"all\");\n //options.setCapability(\"--proxy-server\",\"localhost:8080\");\n //options.setCapability(\"appWaitPackage\", \"com.clearchannel.iheartradio.controller.debug\");\n //options.setCapability(\"appWaitActivity\", \"com.clearchannel.iheartradio.controller.activities.NavDrawerActivity\");\n //options.setCapability(\"appPackage\", \"com.clearchannel.iheartradio.controller.debug\");\n //options.setCapability(\"appActivity\", \"com.clearchannel.iheartradio.controller.activities.NavDrawerActivity\");\n\n\n driver = new AndroidDriver<MobileElement>(service, options);\n return driver;\n }\n else if(platformtype== \"iOS\"){\n DesiredCapabilities options = new DesiredCapabilities();\n\n options.setCapability(\"platformName\", \"iOS\");\n options.setCapability(\"platformVersion\", propertyManager.getInstance().getiOSplatformVersion());\n options.setCapability(\"deviceName\", propertyManager.getInstance().getiOSdevicename());\n options.setCapability(\"udid\",propertyManager.getInstance().getiOSUDID());\n //options.setCapability(CapabilityType.BROWSER_NAME,\"safari\");\n //options.setCapability(\"automationName\", \"XCUITest\");\n options.setCapability(\"bundleId\",\"com.clearchannel.iheartradio.enterprise\");\n options.setCapability(\"startIWDP\",\"true\");\n options.setCapability(\"noReset\",\"true\");\n options.setCapability(\"useNewWDA\",\"false\");\n //options.setCapability(\"showIOSLog\",\"true\");\n //options.setCapability(\"app\",\"/Users/Shruti/Desktop/untitled folder/iHRiOSAppCenter/iHeartRadio.ipa\"); // /Users/Shruti/Downloads/iHeartRadio.ipa\n options.setCapability(\"xcodeOrgId\",\"BCN32U332R\");\n options.setCapability(\"xcodeSigningId\",\"iPhone Developer\");\n options.setCapability(\"autoAcceptAlerts\",\"true\");\n options.setCapability(\"SHOW_XCODE_LOG\",\"true\");\n //options.setCapability(\"updatedWDABundleId\",\"com.Shruti7505.WebDriverAgentRunner\");\n driver = new IOSDriver<MobileElement>(service,options);\n return driver;\n }\n return driver=null;\n\n }", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateDefaultCapabilitiesWithNodeTagsInLocalMode() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setBrowser(BrowserType.CHROME.toString());\r\n\t\tcontext.setNodeTags(\"foo,bar\");\r\n\t\tcontext.setRunMode(\"local\");\r\n\t\tcontext.setMobilePlatformVersion(\"8.0\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S8\");\r\n\t\tcontext.setApp(\"\");\r\n\t\t\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\r\n\t\tAssert.assertFalse(capa.is(SeleniumRobotCapabilityType.NODE_TAGS));\r\n\t}", "public static String getCurrentBrowserVersion() {\r\n\t\tCapabilities c = ((RemoteWebDriver) driver).getCapabilities();\r\n\t\treturn c.getVersion();\r\n\t}", "public ArrayList getCapabilities() {\n\treturn _capabilities;\n }", "GetCapabilitiesType createGetCapabilitiesType();", "List<ResourceSkuCapabilities> capabilities();", "private static boolean isNewDriverSupported(DockerImageName dockerImageName) {\n return new ComparableVersion(dockerImageName.getVersionPart()).isGreaterThanOrEqualTo(\"20.7\");\n }", "private void createNewDriverInstance() {\n String browser = props.getProperty(\"browser\");\n if (browser.equals(\"firefox\")) {\n FirefoxProfile profile = new FirefoxProfile();\n profile.setPreference(\"intl.accept_languages\", language);\n driver = new FirefoxDriver();\n } else if (browser.equals(\"chrome\")) {\n ChromeOptions options = new ChromeOptions();\n options.setBinary(new File(chromeBinary));\n options.addArguments(\"--lang=\" + language);\n driver = new ChromeDriver(options);\n } else {\n System.out.println(\"can't read browser type\");\n }\n }", "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}", "public ReflectiveCapabilitiesFactory(String name, String capabilitiesClassName, Object... args) {\n this.name = name;\n this.capabilitiesClassName = capabilitiesClassName;\n this.args = args;\n try {\n capabilitiesClass = (Class<? extends Capabilities>) Class.forName(capabilitiesClassName);\n available = Capabilities.class.isAssignableFrom(capabilitiesClass);\n } catch (ClassNotFoundException e) {\n available = false;\n }\n }", "public URL capabilitiesURL(String service, String version) throws MalformedURLException {\n String externalForm = _url.toExternalForm();\n String versionParam = version == null ? \"\" : \"&VERSION=\" + version;\n \n String query = \"REQUEST=GETCAPABILITIES&SERVICE=\" + service + versionParam ;\n \n if (externalForm.endsWith(\"?\")) {\n return new URL(externalForm + query);\n } else if (externalForm.contains(\"?\")) {\n return new URL(externalForm + \"&\" + query);\n } else {\n return new URL(externalForm + \"?\" + query);\n }\n }", "private static void buildDriverMap() {\n\t\tdriverMap = new HashMap<>();\n\t\t// Web Browser class\n\t\tdriverMap.put(TestBedType.CHROME.toString(), ChromeDriver.class);\n\t\tdriverMap.put(TestBedType.SAFARI.toString(), SafariDriver.class);\n\t\tdriverMap.put(TestBedType.FIREFOX.toString(), FirefoxDriver.class);\n\t\tdriverMap.put(TestBedType.INTERNETEXPLORER.toString(), IEDriver.class);\n\t\tdriverMap.put(TestBedType.EDGE.toString(), EdgeDriver.class);\n\n\t\t// Mobile Browser class\n\t\tdriverMap.put(TestBedType.ANDROID.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.ANDROIDBROWSER.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.ANDROIDCHROME.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.AndroidMotoG.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.AndroidMicromax.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.AndroidLenovo.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.ANDROIDNATIVE.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.ANDROIDHYBRIDAPP.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.MOTOROLA.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.KARBONN.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.LENOVO.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.MICROMAX.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.AndroidSAMSUNG.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.ANDROID1.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.IPHONENATIVESIM.toString(), IOSDriver.class);\n\t\tdriverMap.put(TestBedType.IPHONENATIVE.toString(), IOSDriver.class);\n\t\tdriverMap.put(TestBedType.IPADNATIVE.toString(), IOSDriver.class);\n\t\tdriverMap.put(TestBedType.IPADWEB.toString(), IOSDriver.class);\n\t\tdriverMap.put(TestBedType.IPADSIMULATOR.toString(), IOSDriver.class);\n\t\tdriverMap.put(TestBedType.AndroidNexusTab.toString(), AndroidDriver.class);\n\t}", "public WebDriver getDriverInstance() throws Exception {\n\t\tDesiredCapabilities caps = new DesiredCapabilities();\n\n\t\tString browser = (System.getProperty(\"browser\") != null\n\t\t\t\t&& !(System.getProperty(\"browser\").equals(\"${browser}\"))) ? (System.getProperty(\"browser\"))\n\t\t\t\t\t\t: (getConfiguration().getBrowserName());\n\t\tthis.browser = browser;\n\n\t\tbaseUrl = (System.getProperty(\"instanceUrl\") != null\n\t\t\t\t&& !(System.getProperty(\"instanceUrl\").equals(\"${instanceUrl}\"))) ? System.getProperty(\"instanceUrl\")\n\t\t\t\t\t\t: getConfiguration().getURL();\n\n\t\tboolean isBrowserStackExecution = (System.getProperty(\"isBrowserstackExecution\") != null\n\t\t\t\t&& !(System.getProperty(\"isBrowserstackExecution\").equals(\"${isBrowserstackExecution}\")))\n\t\t\t\t\t\t? (System.getProperty(\"isBrowserstackExecution\").equals(\"true\"))\n\t\t\t\t\t\t: getConfiguration().isBrowserStackExecution();\n\t\tSystem.out.println(\"Is Browser Stack execution: \" + System.getProperty(\"isBrowserstackExecution\") + \" : \"\n\t\t\t\t+ isBrowserStackExecution);\n\n\t\tboolean isRemoteExecution = (System.getProperty(\"isRemoteExecution\") != null\n\t\t\t\t&& !(System.getProperty(\"isRemoteExecution\").equals(\"${isRemoteExecution}\")))\n\t\t\t\t\t\t? (System.getProperty(\"isRemoteExecution\").equals(\"true\"))\n\t\t\t\t\t\t: getConfiguration().isRemoteExecution();\n\t\tSystem.out\n\t\t\t\t.println(\"Is Remote execution: \" + System.getProperty(\"isRemoteExecution\") + \" : \" + isRemoteExecution);\n\n\t\tif (isBrowserStackExecution) {\n\t\t\tString browserVersion, os, osVersion, platform, device, browserStackUserName = \"\", browserStackAuthKey = \"\",\n\t\t\t\t\tisEmulator = \"false\";\n\n\t\t\tif (System.getProperty(\"isJenkinsJob\") != null && System.getProperty(\"isJenkinsJob\").equals(\"true\")) {\n\t\t\t\t// isBrowserStackExecution=((System.getProperty(\"isBrowserstackExecution\")!=null)&&(System.getProperty(\"isBrowserstackExecution\").equals(\"true\")));\n\t\t\t\tReporter.log(\"starting from is jenkins job\", true);\n\t\t\t\tbaseUrl = System.getProperty(\"instanceUrl\");\n\t\t\t\tReporter.log(baseUrl + \"\", true);\n\n\t\t\t\tbrowserVersion = System.getProperty(\"browserVersion\");\n\t\t\t\tReporter.log(browserVersion + \"\", true);\n\n\t\t\t\tos = System.getProperty(\"os\");\n\t\t\t\t;\n\t\t\t\tReporter.log(os + \"\", true);\n\n\t\t\t\tosVersion = System.getProperty(\"osVersion\");\n\t\t\t\tReporter.log(osVersion + \"\", true);\n\n\t\t\t\tplatform = System.getProperty(\"platform\");\n\t\t\t\tReporter.log(platform + \"\", true);\n\n\t\t\t\tdevice = System.getProperty(\"device\");\n\t\t\t\tReporter.log(device + \"\", true);\n\n\t\t\t\tbrowser = System.getProperty(\"browser\");\n\t\t\t\tReporter.log(browser + \"\", true);\n\n\t\t\t\tbrowserStackUserName = System.getProperty(\"broswerStackUserName\").trim();\n\t\t\t\tReporter.log(browserStackUserName + \"\", true);\n\n\t\t\t\tbrowserStackAuthKey = System.getProperty(\"broswerStackAuthKey\").trim();\n\t\t\t\tReporter.log(browserStackAuthKey + \"\", true);\n\n\t\t\t\tisEmulator = System.getProperty(\"isEmulator\").trim();\n\t\t\t\tReporter.log(isEmulator + \"\", true);\n\n\t\t\t\tReporter.log(\"stopping from is jenkins job\", true);\n\t\t\t} else {\n\n\t\t\t\tbrowserVersion = (System.getProperty(\"browserVersion\") != null\n\t\t\t\t\t\t&& !(System.getProperty(\"browserVersion\").equals(\"${browserVersion}\")))\n\t\t\t\t\t\t\t\t? (System.getProperty(\"browserVersion\"))\n\t\t\t\t\t\t\t\t: getConfiguration().getBrowserStackBrowserVersion();\n\t\t\t\tos = getConfiguration().getBrowserStackOS();\n\t\t\t\tosVersion = getConfiguration().getBrowserStackOSVersion();\n\t\t\t\tplatform = getConfiguration().getBrowserStackPlatform();\n\t\t\t\tdevice = getConfiguration().getBrowserStackDevice();\n\t\t\t\tisEmulator = getConfiguration().getBrowserStackIsEmulator();\n\t\t\t}\n\n\t\t\tif (browser.equalsIgnoreCase(\"IE\")) {\n\t\t\t\tcaps.setCapability(\"browser\", \"IE\");\n\t\t\t} else if (browser.equalsIgnoreCase(\"GCH\") || browser.equalsIgnoreCase(\"chrome\")) {\n\t\t\t\tcaps.setCapability(\"browser\", \"Chrome\");\n\t\t\t} else if (browser.equalsIgnoreCase(\"safari\")) {\n\t\t\t\tcaps.setCapability(\"browser\", \"Safari\");\n\t\t\t} else if (browser.equalsIgnoreCase(\"android\") || browser.equalsIgnoreCase(\"iphone\")\n\t\t\t\t\t|| browser.equalsIgnoreCase(\"ipad\")) {\n\t\t\t\tcaps.setCapability(\"browserName\", browser);\n\t\t\t\tcaps.setCapability(\"platform\", platform);\n\t\t\t\tcaps.setCapability(\"device\", device);\n\t\t\t\tif (isEmulator.equals(\"true\")) {\n\t\t\t\t\tcaps.setCapability(\"emulator\", isEmulator);\n\t\t\t\t}\n\t\t\t\tcaps.setCapability(\"autoAcceptAlerts\", \"true\");\n\t\t\t} else {\n\t\t\t\tcaps.setCapability(\"browser\", \"Firefox\");\n\t\t\t}\n\t\t\tif (!(browser.equalsIgnoreCase(\"android\"))) {\n\t\t\t\tif (browserVersion != null && !browserVersion.equals(\"\") && !browserVersion.equals(\"latest\")) {\n\t\t\t\t\tcaps.setCapability(\"browser_version\", browserVersion);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (osVersion != null && !(browser.equalsIgnoreCase(\"android\"))) {\n\t\t\t\tcaps.setCapability(\"os\", os);\n\t\t\t\tif (os.toLowerCase().startsWith(\"win\")) {\n\t\t\t\t\tcaps.setCapability(\"os\", \"Windows\");\n\t\t\t\t} else if (os.toLowerCase().startsWith(\"mac-\") || os.toLowerCase().startsWith(\"os x-\")) {\n\t\t\t\t\tcaps.setCapability(\"os\", \"OS X\");\n\t\t\t\t}\n\n\t\t\t\tif (os.equalsIgnoreCase(\"win7\")) {\n\t\t\t\t\tosVersion = \"7\";\n\t\t\t\t} else if (os.equalsIgnoreCase(\"win8\")) {\n\t\t\t\t\tosVersion = \"8\";\n\t\t\t\t} else if (os.equalsIgnoreCase(\"win8.1\") || os.equalsIgnoreCase(\"win8_1\")) {\n\t\t\t\t\tosVersion = \"8.1\";\n\t\t\t\t} else if (os.toLowerCase().startsWith(\"mac-\") || os.toLowerCase().startsWith(\"os x-\")) {\n\t\t\t\t\tosVersion = os.split(\"-\")[1];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"OS Version:\" + osVersion);\n\t\t\t\tcaps.setCapability(\"os_version\", osVersion);\n\t\t\t}\n\t\t\tcaps.setCapability(\"resolution\", \"1920x1080\");\n\t\t\tcaps.setCapability(\"browserstack.debug\", \"true\");\n\n\t\t\tSystem.out.println(\"AppLibrary Build: \" + System.getProperty(\"Build\"));\n\t\t\tSystem.out.println(\"AppLibrary Project: \" + System.getProperty(\"Suite\"));\n\t\t\tSystem.out.println(\"AppLibrary Name: \" + currentTestName);\n\t\t\tcaps.setCapability(\"build\", System.getProperty(\"Build\"));\n\t\t\tcaps.setCapability(\"project\", System.getProperty(\"Suite\"));\n\t\t\tcaps.setCapability(\"name\", currentTestName);\n\n\t\t\ttry {\n\t\t\t\tdriver = new RemoteWebDriver(new URL(\"http://\"\n\t\t\t\t\t\t+ (browserStackUserName.equals(\"\") ? getConfiguration().getBrowserStackUserName()\n\t\t\t\t\t\t\t\t: browserStackUserName)\n\t\t\t\t\t\t+ \":\" + (browserStackAuthKey.equals(\"\") ? getConfiguration().getBrowserStackAuthKey()\n\t\t\t\t\t\t\t\t: browserStackAuthKey)\n\t\t\t\t\t\t+ \"@hub.browserstack.com/wd/hub\"), caps);\n\t\t\t\t((RemoteWebDriver) driver).setFileDetector(new LocalFileDetector());\n\t\t\t} catch (Exception e) {\n\t\t\t\tReporter.log(\"Issue creating new driver instance due to following error: \" + e.getMessage() + \"\\n\"\n\t\t\t\t\t\t+ e.getStackTrace(), true);\n\t\t\t\tthrow e;\n\t\t\t}\n\n\t\t\tcurrentSessionID = ((RemoteWebDriver) driver).getSessionId().toString();\n\n\t\t} else if (isRemoteExecution) {\n\t\t\tSystem.out.println(\"Remote execution set up\");\n\t\t\tString remoteGridUrl = (System.getProperty(\"remoteGridUrl\") != null\n\t\t\t\t\t&& !(System.getProperty(\"remoteGridUrl\").equals(\"${remoteGridUrl}\")))\n\t\t\t\t\t\t\t? (System.getProperty(\"remoteGridUrl\"))\n\t\t\t\t\t\t\t: getConfiguration().getRemoteGridUrl();\n\t\t\tString os = (System.getProperty(\"os\") != null && !(System.getProperty(\"os\").equals(\"${os}\")))\n\t\t\t\t\t? (System.getProperty(\"os\"))\n\t\t\t\t\t: getConfiguration().getOS();\n\t\t\tString deviceName = (System.getProperty(\"deviceName\") != null\n\t\t\t\t\t&& !(System.getProperty(\"deviceName\").equals(\"${deviceName}\"))) ? (System.getProperty(\"deviceName\"))\n\t\t\t\t\t\t\t: getConfiguration().getDeviceName();\n\t\t\tString deviceVersion = (System.getProperty(\"deviceVersion\") != null\n\t\t\t\t\t&& !(System.getProperty(\"deviceVersion\").equals(\"${deviceVersion}\")))\n\t\t\t\t\t\t\t? (System.getProperty(\"deviceVersion\"))\n\t\t\t\t\t\t\t: getConfiguration().getDeviceVersion();\n\t\t\tString version = (System.getProperty(\"browserVersion\") != null\n\t\t\t\t\t&& !(System.getProperty(\"browserVersion\").equals(\"${browserVersion}\")))\n\t\t\t\t\t\t\t? (System.getProperty(\"browserVersion\"))\n\t\t\t\t\t\t\t: getConfiguration().getBrowserVersion();\n\t\t\tbrowser = (browser.equalsIgnoreCase(\"ie\") || browser.equalsIgnoreCase(\"internet explorer\")\n\t\t\t\t\t|| browser.equalsIgnoreCase(\"iexplore\")) ? \"internet explorer\" : browser;\n\t\t\tcaps.setBrowserName(browser.toLowerCase());\n\n\t\t\tif (os.equalsIgnoreCase(\"win7\") || os.equalsIgnoreCase(\"vista\")) {\n\t\t\t\tcaps.setPlatform(Platform.VISTA);\n\t\t\t} else if (os.equalsIgnoreCase(\"win8\")) {\n\t\t\t\tcaps.setPlatform(Platform.WIN8);\n\t\t\t} else if (os.equalsIgnoreCase(\"win8.1\") || os.equalsIgnoreCase(\"win8_1\")) {\n\t\t\t\tcaps.setPlatform(Platform.WIN8_1);\n\t\t\t} else if (os.equalsIgnoreCase(\"mac\")) {\n\t\t\t\tcaps.setPlatform(Platform.MAC);\n\t\t\t} else if (os.equalsIgnoreCase(\"android\")) {\n\t\t\t\tcaps.setCapability(\"platformName\", \"ANDROID\");\n\t\t\t\tcaps.setBrowserName(StringUtils.capitalize(browser.toLowerCase()));\n\t\t\t\tcaps.setCapability(\"deviceName\", deviceName);\n\t\t\t\tcaps.setCapability(\"platformVersion\", deviceVersion);\n\t\t\t} else if (os.equalsIgnoreCase(\"ios\")) {\n\t\t\t\tcaps.setCapability(\"platformName\", \"iOS\");\n\t\t\t\tcaps.setCapability(\"deviceName\", deviceName);\n\t\t\t\tcaps.setCapability(\"platformVersion\", deviceVersion);\n\t\t\t\tif (browser.equalsIgnoreCase(\"safari\")) {\n\t\t\t\t\tcaps.setBrowserName(\"Safari\");\n\t\t\t\t} else {\n\t\t\t\t\tcaps.setCapability(\"app\", \"safari\");\n\t\t\t\t\tcaps.setBrowserName(\"iPhone\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcaps.setPlatform(Platform.ANY);\n\t\t\t}\n\n\t\t\tif (version != null && !(version.equalsIgnoreCase(\"\") && !(version.equalsIgnoreCase(\"null\")))) {\n\t\t\t\t// caps.setVersion(version);\n\t\t\t}\n\t\t\tSystem.out.println(caps.asMap());\n\t\t\tdriver = new RemoteWebDriver(new URL(remoteGridUrl), caps);\n\t\t\t((RemoteWebDriver) driver).setFileDetector(new LocalFileDetector());\n\t\t\tSystem.out.println(\"Session ID: \" + ((RemoteWebDriver) driver).getSessionId());\n\t\t} else {\n\t\t\tif (browser.equalsIgnoreCase(\"IE\")) {\n\t\t\t\tString driverPath = getConfiguration().getIEDriverPath();\n\t\t\t\tif ((driverPath == null) || (driverPath.trim().length() == 0)) {\n\t\t\t\t\tdriverPath = \"IEDriverServer.exe\";\n\t\t\t\t}\n\t\t\t\tSystem.setProperty(\"webdriver.ie.driver\", driverPath);\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();\n\t\t\t\tcapabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n\t\t\t\t\t\tfalse);\n\t\t\t\tcapabilities.setCapability(InternetExplorerDriver.REQUIRE_WINDOW_FOCUS, false);\n\t\t\t\tcapabilities.setCapability(InternetExplorerDriver.ENABLE_PERSISTENT_HOVERING, true);\n\t\t\t\tcapabilities.setCapability(InternetExplorerDriver.NATIVE_EVENTS, false);\n\t\t\t\tcapabilities.setCapability(InternetExplorerDriver.IGNORE_ZOOM_SETTING, true);\n\t\t\t\tdriver = new InternetExplorerDriver(capabilities);\n\n\t\t\t} else if (browser.equalsIgnoreCase(\"GCH\") || browser.equalsIgnoreCase(\"chrome\")) {\n\t\t\t\tString driverPath = getConfiguration().getChromeDriverPath();\n\t\t\t\tif ((driverPath == null) || (driverPath.trim().length() == 0)) {\n\t\t\t\t\tdriverPath = \"chromedriver.exe\";\n\t\t\t\t}\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", driverPath);\n\t\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\t\toptions.addArguments(\"--test-type\");\n\t\t\t\toptions.addArguments(\"chrome.switches\", \"--disable-extensions\");\n\t\t\t\toptions.addArguments(\"start-maximized\");\n\t\t\t\tdriver = new ChromeDriver();\n\t\t\t} else if (browser.equalsIgnoreCase(\"safari\")) {\n\t\t\t\tdriver = new SafariDriver();\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\tSystem.setProperty(\"webdriver.firefox.profile\", \"default\");\n\t\t\t\tdriver = new FirefoxDriver();\n\t\t\t}\n\n\t\t}\n\n\t\tdriver.manage().timeouts().implicitlyWait(GLOBALTIMEOUT, TimeUnit.SECONDS);\n\t\t// isExecutionOnMobile = this.browser.equalsIgnoreCase(\"iPhone\") ||\n\t\t// this.browser.equalsIgnoreCase(\"android\");\n\t\t// if (!isExecutionOnMobile) {\n\t\t// driver.manage().window().maximize();\n\t\t// }\n\t\treturn driver;\n\n\t}", "public void addCapability(Object o) {\n\tif (!_capabilities.contains(o)) {\n\t _capabilities.add(o);\n\t _log.addedCapability(o);\n\t}\n }", "@BeforeMethod\n public void beforeTest() throws MalformedURLException {\n DesiredCapabilities caps = new DesiredCapabilities();\n caps.setCapability(\"deviceId\", \"2fb5cf35\");\n caps.setCapability(\"deviceName\", \"OnePlus 6\");\n caps.setCapability(\"platformName\", \"Android\");\n caps.setCapability(\"appPackage\", \"com.oneplus.calculator\");\n caps.setCapability(\"appActivity\", \"Calculator\");\n caps.setCapability(\"noReset\", true);\n\n // Initialize driver\n URL appServer = new URL(\"http://0.0.0.0:4723/wd/hub\");\n driver = new AndroidDriver<MobileElement>(appServer, caps);\n }", "public static WebDriver setupDriver(String platform, String url, String browser) {\n if (platform.equalsIgnoreCase(\"mac\") && browser.equalsIgnoreCase(\"chrome\")) {\n System.setProperty(\"webdriver.chrome.driver\", \"src/main/resources/drivers/chromedriver\");\n } else if (platform.equalsIgnoreCase(\"windows\") && browser.equalsIgnoreCase(\"chrome\")) {\n System.setProperty(\"webdriver.chrome.driver\", \"src/main/resources/drivers/chromedriver.exe\");\n }\n driver = new ChromeDriver();\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n driver.manage().timeouts().pageLoadTimeout(20, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n driver.get(url);\n return driver;\n }", "@BeforeClass\npublic void beforeClass() throws MalformedURLException {\n DesiredCapabilities caps = new DesiredCapabilities();\n caps.setCapability(\"deviceName\", \"Xiaomi Redmi Note 5 Pro\");\n caps.setCapability(\"platformName\", \"android\");\n caps.setCapability(\"automationName\", \"UiAutomator2\");\n caps.setCapability(\"appPackage\", \"com.google.android.keep\");\n caps.setCapability(\"appActivity\", \".activities.BrowseActivity\");\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}", "public void init() throws MalformedURLException {\n\n capabilities = new DesiredCapabilities();\n\n capabilities.setCapability(\"deviceName\", \"Nex5\");\n capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, \"Android\");\n capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, \"8.0\");\n capabilities.setCapability(\"appPackage\", \"com.trello\");\n capabilities.setCapability(\"appActivity\", \".home.HomeActivity\");\n\n capabilities.setCapability(\"automationName\", \"Appium\");\n capabilities.setCapability(\"app\", \"C:/Users/Study/APK/trello_new.apk\");\n driver = new AppiumDriver<MobileElement>(new URL(\"http://127.0.0.1:4723/wd/hub\"), capabilities);\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n welcomeActivity = new WelcomePage(driver);\n loginActivity = new LoginPage(driver);\n\n }", "public static AppiumDriver<MobileElement> setUp() {\n\t\ttry {\t\t\n\t\t\t\n\t\tDesiredCapabilities cap=new DesiredCapabilities();\n\t\tcap.setCapability(MobileCapabilityType.PLATFORM_NAME,\"ANDROID\");\n\t\tcap.setCapability(MobileCapabilityType.PLATFORM_VERSION, \"10 QKQ1.190915.002\");\n\t\tcap.setCapability(MobileCapabilityType.DEVICE_NAME, \"Redmi Note 7 Pro\");\n\t\tcap.setCapability(MobileCapabilityType.UDID, \"d9b3ca47\");\n//\t\tcap.setCapability(MobileCapabilityType.APP, \"\");\n\t\tcap.setCapability(\"appPackage\", \"com.swaglabsmobileapp\");\n\t\tcap.setCapability(\"appActivity\", \"com.swaglabsmobileapp.SplashActivity\");\n\t\t\n\t\tURL url=new URL(\"http://127.0.0.1:4723/wd/hub\");\n\t\tdriver =new AppiumDriver<MobileElement>(url, cap);\n\t\tdriver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\n//\t\tlog.info(\"Launching the app\");\n//\t\tMobileElement loginbutton = driver.findElement(MobileBy.AccessibilityId(\"test-LOGIN\"));\n// loginbutton.click();\n\t\t\t\treturn driver;\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn driver;\n\t\t}\n\t}", "public static void main(String[] args) throws MalformedURLException, InterruptedException {\n\t\t\t\tDesiredCapabilities capabilities= new DesiredCapabilities();\r\n\t\t\t\t\t\t\r\n\t\t\t\t//device details\r\n\t\t\t\tcapabilities.setCapability(\"deviceName\",\"GT-I9300I\");\r\n\t\t\t\tcapabilities.setCapability(\"platformName\",\"Android\");\r\n\t\t\t\tcapabilities.setCapability(\"platformVersion\",\"4.4.4\");\t\t\r\n\t\t\t\t\r\n\t\t\t\t//app details\r\n\t\t\t\tcapabilities.setCapability(\"appPackage\",\"com.emn8.mobilem8.nativeapp.bk\");\r\n\t\t\t\tcapabilities.setCapability(\"appActivity\",\"com.emn8.mobilem8.nativeapp.bk.BKNativeMobileApp\");\r\n\t\t\t\t\r\n\t\t\t\t//Appium Server details\r\n\t\t\t\tAndroidDriver driver= new AndroidDriver(new URL(\"http://127.0.0.1:4723/wd/hub\"), capabilities);\r\n\t\t\t\t\r\n\t\t\t\t//wait\r\n\t\t\t\tThread.sleep(4000);\r\n\t\t\t\t\r\n\t\t\t\tSet<String> contextHandles = driver.getContextHandles();\r\n\t\t\t\tint size = contextHandles.size();\r\n\t\t\t\tSystem.out.println(size);\r\n\t\t\t\t\r\n\t\t\t\t//****************************************************\r\n\t\t\t\tfor(String contextname:contextHandles)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"First Page\");\r\n\t\t\t\t\tSystem.out.println(contextname);\r\n\t\t\t\t\tSystem.out.println(\"-------------------\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(contextname.contains(\"NATIVE\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdriver.context(contextname);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tWebDriverWait wait= new WebDriverWait(driver, 50);\r\n\t\t\t\tWebElement ele_voucher = wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//*[@index='9'][@content-desc='VOUCHERS'][@class='android.view.View']\")));\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Voucher is displayed \"+ele_voucher.isDisplayed());\r\n\t\t\t\t\r\n\t\t\t\tele_voucher.click();\r\n\t\t\t\t\r\n\t\t\t\t//**************************************************************\r\n\t\t\t\t//Second page\r\n\t\t\t\tThread.sleep(4000);\r\n\t\t\t\tfor(String contextname:contextHandles)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Second Page\");\r\n\t\t\t\t\tSystem.out.println(contextname);\r\n\t\t\t\t\tSystem.out.println(\"-------------------\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(contextname.contains(\"NATIVE\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdriver.context(contextname);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tWebDriverWait wait2= new WebDriverWait(driver, 50);\r\n\t\t\t\tWebElement ele_redeem = wait2.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//*[@index='17'][@content-desc='REDEEM'][@class='android.view.View']\")));\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Redeem is displayed \"+ele_redeem.isDisplayed());\r\n\t\t\t\t\r\n\t\t\t\tele_redeem.click();\r\n\t\t\t\t//**************************************************************\r\n\t\t\t\t//Third page\r\n\t\t\t\tThread.sleep(4000);\r\n\t\t\t\tfor(String contextname:contextHandles)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Third Page\");\r\n\t\t\t\t\tSystem.out.println(contextname);\r\n\t\t\t\t\tSystem.out.println(\"-------------------\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(contextname.contains(\"WEBVIEW\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdriver.context(contextname);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tdriver.findElementByName(\"email\").sendKeys(\"[email protected]\");\r\n\t\t\t\tWebElement ele_pwd = driver.findElementByName(\"password\");\r\n\t\t\t\tele_pwd.click();\r\n\t\t\t\t\r\n\t\t\t\tThread.sleep(4000);\r\n\t\t\t\tele_pwd.sendKeys(\"1234\");\r\n\t\t\t\t\r\n\t\t\t\t//********************************************************\r\n\t\t\t\t\r\n\t\t\t\tThread.sleep(4000);\r\n\t\t\t\t\r\n\t\t\t\tfor(String contextname:contextHandles)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Third Page\");\r\n\t\t\t\t\tSystem.out.println(contextname);\r\n\t\t\t\t\tSystem.out.println(\"-------------------\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(contextname.contains(\"NATIVE\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdriver.context(contextname);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tWebDriverWait wait3= new WebDriverWait(driver, 50);\r\n\t\t\t\tWebElement ele_Signin = wait3.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//*[@index='33'][@content-desc='SIGN IN'][@class='android.view.View']\")));\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Signin is displayed \"+ele_Signin.isDisplayed());\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\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\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\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\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\r\n\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\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t}", "private static void attachCapabilities(AttachCapabilitiesEvent<World> event) {\n if (event.getObject().isClientSide) {\n return;\n }\n ServerWorld world = (ServerWorld) event.getObject();\n if (world.dimension() != World.OVERWORLD) {\n return;\n }\n event.addCapability(KEY, new SimpleCapProviderSerializable<>(HANDLER_CAPABILITY, new ChunkLoaderHandler(world.getServer())));\n }" ]
[ "0.680432", "0.64266527", "0.62633705", "0.60793334", "0.59496844", "0.5805807", "0.5795599", "0.5752584", "0.5715164", "0.5587008", "0.55035925", "0.5500022", "0.5473278", "0.54484946", "0.5409432", "0.5388558", "0.53728604", "0.5349527", "0.53389615", "0.5315255", "0.52422166", "0.5213823", "0.51733816", "0.5151656", "0.5133638", "0.5072329", "0.5052186", "0.5021287", "0.5013582", "0.49909618", "0.4986251", "0.49846426", "0.49803245", "0.49453405", "0.49404263", "0.4939434", "0.492928", "0.49283695", "0.49159425", "0.49033684", "0.4903097", "0.48693517", "0.4843907", "0.4837614", "0.47826296", "0.47749403", "0.47541183", "0.47517565", "0.47337925", "0.47328848", "0.4716601", "0.47045177", "0.46873307", "0.46868485", "0.4682478", "0.4672065", "0.4662859", "0.464256", "0.46424732", "0.46324733", "0.46276656", "0.4625659", "0.46253058", "0.46089953", "0.45964333", "0.4594574", "0.4589681", "0.45847943", "0.45828584", "0.45747426", "0.4553404", "0.45495304", "0.45474562", "0.45353812", "0.45306438", "0.45277295", "0.45223513", "0.45212418", "0.45202228", "0.45112255", "0.45106682", "0.44949225", "0.44743526", "0.4469792", "0.4467953", "0.44426775", "0.44324616", "0.44306248", "0.44096333", "0.44044536", "0.44030863", "0.43979964", "0.4386695", "0.43741733", "0.43614605", "0.43564248", "0.4346339", "0.43374765", "0.4329612", "0.43073165" ]
0.69582003
0
create capabilities, specific to OS
@Override public WebDriver createWebDriver() { MutableCapabilities capabilities = createSpecificGridCapabilities(webDriverConfig); capabilities.merge(driverOptions); // gridConnector.uploadMobileApp(capabilities); // connection to grid is made here driver = getDriver(gridConnector.getHubUrl(), capabilities); setImplicitWaitTimeout(webDriverConfig.getImplicitWaitTimeout()); if (webDriverConfig.getPageLoadTimeout() >= 0 && SeleniumTestsContextManager.isWebTest()) { setPageLoadTimeout(webDriverConfig.getPageLoadTimeout()); } this.setWebDriver(driver); runWebDriver(); ((RemoteWebDriver)driver).setFileDetector(new LocalFileDetector()); return driver; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Capabilities getCapabilities();", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateCapabilitiesWithUserDefined() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setBrowser(BrowserType.CHROME.toString());\r\n\t\tcontext.setMobilePlatformVersion(\"8.0\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S8\");\r\n\t\tcontext.setApp(\"\");\r\n\t\tcontext.setAppiumCapabilities(\"key1=value1;key2=value2\");\r\n\t\t\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(\"key1\"), \"value1\");\r\n\t\tAssert.assertEquals(capa.getCapability(\"key2\"), \"value2\");\r\n\r\n\t}", "public void setCapabilities(String capabilities) {\n this.capabilities = capabilities;\n }", "CapabilitiesType createCapabilitiesType();", "public abstract List<AbstractCapability> getCapabilities();", "DeviceCapabilitiesProvider getDeviceCapabilitiesProvider();", "public Map<Class<?>, Class<?>[]> getCapabilities();", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateCapabilitiesWithUserDefinedOverride() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setBrowser(BrowserType.CHROME.toString());\r\n\t\tcontext.setMobilePlatformVersion(\"8.0\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S8\");\r\n\t\tcontext.setApp(\"\");\r\n\t\tcontext.setAppiumCapabilities(\"browserName=firefox;key2=value2\");\r\n\t\t\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(CapabilityType.BROWSER_NAME), \"firefox\");\r\n\t\t\r\n\t}", "void getCapabilties(Browser browser, DesiredCapabilities caps);", "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}", "protected DesiredCapabilities getCapabilitiesForChrome(ExtentTest currentTest, ExtentReportGenerator extentReportGenerator){ //local physical device support for android still pending\n\t\tDesiredCapabilities desCap = new DesiredCapabilities();\n\t\t//desired caps go here\n\t\treturn desCap;\n\t}", "GetCapabilitiesType createGetCapabilitiesType();", "private List<String> initializeRequiredCapabilities() {\n // Required device capabilities\n\n String[] capabilityEntries = {V3PO_CAPABILITY, INTERFACES_CAPABILITY};\n return Arrays.asList(capabilityEntries);\n }", "private static Element appendExtendedCapabilities( OWSCapabilitiesBaseType_1_0 capabilities,\n Element root, URI namespace, String prefix ) {\n LOG.entering();\n Element cap = XMLTools.appendElement( root, namespace, prefix + \"Capability\" );\n Element sams = XMLTools.appendElement( cap, namespace,\n prefix + \"SupportedAuthenticationMethodList\" );\n\n ArrayList<SupportedAuthenticationMethod> methods = capabilities.getAuthenticationMethods();\n for ( SupportedAuthenticationMethod method : methods )\n appendSupportedAuthenticationMethod( sams, method );\n\n LOG.exiting();\n return cap;\n }", "public String getCapabilities() {\n return this.capabilities;\n }", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateDefaultCapabilitiesWithAutomationName() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setBrowser(BrowserType.CHROME.toString());\r\n\t\tcontext.setMobilePlatformVersion(\"8.0\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S8\");\r\n\t\tcontext.setAutomationName(\"UiAutomator1\");\r\n\t\tcontext.setApp(\"\");\r\n\t\t\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(CapabilityType.BROWSER_NAME), BrowserType.CHROME.toString().toLowerCase());\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.AUTOMATION_NAME), \"UiAutomator1\");\r\n\t\tAssert.assertNull(capa.getCapability(MobileCapabilityType.FULL_RESET));\r\n\t}", "Set<String> listCapabilities();", "private static DesiredCapabilities getBrowserCapabilities(String browserType, DesiredCapabilities capability) {\r\n\t\tDesiredCapabilities cap = new DesiredCapabilities();\r\n\t\tswitch (browserType) {\r\n\t\tcase \"firefox\":\r\n\t\t\tSystem.out.println(\"Opening firefox driver\");\r\n\t\t\tcap = DesiredCapabilities.firefox();\r\n\t\t\tcap.merge(capability);\r\n\t\t\tbreak;\r\n\t\tcase \"chrome\":\r\n\t\t\tSystem.out.println(\"Opening chrome driver\");\r\n\t\t\tcap = DesiredCapabilities.chrome();\r\n\t\t\tcap.merge(capability);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"browser : \" + browserType + \" is invalid, Launching Firefox as browser of choice..\");\r\n\t\t\tcap = DesiredCapabilities.firefox();\r\n\t\t\tcap.merge(capability);\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn cap;\r\n\t}", "private void generateTestCapabilityFiles() {\n\n String[] ids = {\"cap_1_001\", \"cap_1_002\", \"cap_1_003\", \"cap_1_004\", \"cap_1_005\", \"cap_3_001\", \"cap_3_002\", \"cap_2_001\", \"cap_2_002\"};\n String[] actionNames_en = {\"Go Forward\", \"Reverse\", \"Turn Left\", \"Turn Right\", \"Stop\", \"Light ON\", \"Light OFF\", \"No Object\", \"See Object\"};\n String[] actionNames_si = {\"ඉදිරියට යන්න\", \"පසුපසට යන්න\", \"වමට හැරෙන්න\", \"දකුණට හැරෙන්න\", \"නවතින්න\", \"Light ON\", \"Light OFF\", \"No Object\", \"See Object\"};\n String[] actionCmd = {\"1\", \"2\", \"3\", \"4\", \"5\", \"1\", \"2\", \"3\", \"4\"};\n String[] comparaters = {\"\", \"\", \"\", \"\", \"\", \"\", \"\", \">\", \"<\"};\n String[] response = {\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"1\", \"1\"};\n String[] reference = {\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"100\", \"100\"};\n String[] buttonList = {\"true\", \"true\", \"true\", \"true\", \"false\", \"true\", \"false\", \"false\", \"false\"};\n //String[] imageList = {\"forward\", \"reverse\", \"left\", \"right\", \"stop\", \"true\", \"false\"};\n\n for (int i = 0; i < 9; i++) {\n\n String types;\n\n if (i >= 7) {\n types = Capability.CAP_SENSE;\n } else if (i < 2 || i > 5) {\n types = Capability.CAP_ACTION_C;\n } else {\n types = Capability.CAP_ACTION;\n }\n\n Map<String, String> nameList = new HashMap<>();\n nameList.put(\"en_US\", actionNames_en[i]);\n nameList.put(\"si_LK\", actionNames_si[i]);\n\n try {\n\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\n // root elements\n Document doc = docBuilder.newDocument();\n Element rootElement = doc.createElement(\"Sifeb\");\n doc.appendChild(rootElement);\n\n Element capability = doc.createElement(\"Capability\");\n rootElement.appendChild(capability);\n\n Element id = doc.createElement(\"Id\");\n id.appendChild(doc.createTextNode(ids[i]));\n capability.appendChild(id);\n\n Element names = doc.createElement(\"Names\");\n capability.appendChild(names);\n\n for (Map.Entry<String, String> entry : nameList.entrySet()) {\n Element name = doc.createElement(\"Name\");\n Element locale = doc.createElement(\"Locale\");\n Element nameStr = doc.createElement(\"Value\");\n\n locale.appendChild(doc.createTextNode(entry.getKey()));\n nameStr.appendChild(doc.createTextNode(entry.getValue()));\n\n name.appendChild(locale);\n name.appendChild(nameStr);\n names.appendChild(name);\n }\n\n Element type = doc.createElement(\"Type\");\n type.appendChild(doc.createTextNode(types));\n capability.appendChild(type);\n\n Element testCmd = doc.createElement(\"TestCommand\");\n testCmd.appendChild(doc.createTextNode(\"t\" + actionCmd[i]));\n capability.appendChild(testCmd);\n\n Element button = doc.createElement(\"HasTestButton\");\n button.appendChild(doc.createTextNode(buttonList[i]));\n capability.appendChild(button);\n\n Element exeCmd = doc.createElement(\"ExeCommand\");\n exeCmd.appendChild(doc.createTextNode(\"a\" + actionCmd[i]));\n capability.appendChild(exeCmd);\n\n Element stopCmd = doc.createElement(\"StopCommand\");\n stopCmd.appendChild(doc.createTextNode(\"a5\"));\n capability.appendChild(stopCmd);\n\n Element compType = doc.createElement(\"Comparator\");\n compType.appendChild(doc.createTextNode(comparaters[i]));\n capability.appendChild(compType);\n\n Element respSize = doc.createElement(\"Response\");\n respSize.appendChild(doc.createTextNode(response[i]));\n capability.appendChild(respSize);\n\n Element refVal = doc.createElement(\"Reference\");\n refVal.appendChild(doc.createTextNode(reference[i]));\n capability.appendChild(refVal);\n\n Element image = doc.createElement(\"Image\");\n image.appendChild(doc.createTextNode(ids[i]));\n capability.appendChild(image);\n\n // write the content into xml file\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource source = new DOMSource(doc);\n File file = new File(SifebUtil.CAP_FILE_DIR + ids[i] + \".xml\");\n StreamResult result = new StreamResult(file); //new File(\"C:\\\\file.xml\"));\n\n transformer.transform(source, result);\n\n System.out.println(\"File saved!\");\n\n } catch (ParserConfigurationException | TransformerException pce) {\n pce.printStackTrace();\n }\n\n }\n }", "public List<String> getCapabilities() {\n if (capabilities == null) {\n return new ArrayList<>();\n }\n return capabilities;\n }", "public AndroidDriver<AndroidElement> Capabilities() throws MalformedURLException {\n\t\t\n\t\t\n\t\t\n\t\tDesiredCapabilities cap = new DesiredCapabilities();\n\t\tcap.setCapability(MobileCapabilityType.PLATFORM_NAME, \"Andriod\");\n\t\t//cap.setCapability(MobileCapabilityType.PLATFORM_VERSION, \"9\");\n\t\tcap.setCapability(MobileCapabilityType.DEVICE_NAME, \"Android Device\");\n\t\tcap.setCapability(MobileCapabilityType.BROWSER_NAME, \"chrome\");\n\t\tcap.setCapability(MobileCapabilityType.BROWSER_VERSION, \"76.0\");\n\t\tcap.setCapability(MobileCapabilityType.AUTOMATION_NAME, \"uiautomator2\");\n\t\t\n\t\t//connection to server\n\t\t//AndroidDriver driver = new AndroidDriver(IPaddressOfserver,capabilities); // This will invokes android object. see below\n\t\t\n\t\tAndroidDriver<AndroidElement> driver = new AndroidDriver<AndroidElement>(new URL(\"http://0.0.0.0:4723/wd/hub\"),cap); // IP address of every local host in any machine is http://127.0.0.1\n\t\treturn driver;\n\t\t\n\t}", "public Capabilities getCapabilities() {\n Capabilities result = super.getCapabilities();\n\n // attributes\n result.enable(Capability.NOMINAL_ATTRIBUTES);\n\n // class\n result.enable(Capability.NOMINAL_CLASS);\n result.enable(Capability.MISSING_CLASS_VALUES);\n \n return result;\n }", "List<ResourceSkuCapabilities> capabilities();", "private static DesiredCapabilities getBrowserCapabilities(String browserType) {\r\n\t\tDesiredCapabilities cap = new DesiredCapabilities();\r\n\t\tswitch (browserType) {\r\n\t\tcase \"firefox\":\r\n\t\t\tSystem.out.println(\"Opening firefox driver\");\r\n\t\t\tcap = DesiredCapabilities.firefox();\r\n\t\t\tbreak;\r\n\t\tcase \"chrome\":\r\n\t\t\tSystem.out.println(\"Opening chrome driver\");\r\n\t\t\tcap = DesiredCapabilities.chrome();\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"browser : \" + browserType + \" is invalid, Launching Firefox as browser of choice..\");\r\n\t\t\tcap = DesiredCapabilities.firefox();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn cap;\r\n\t}", "public Capabilities getCapabilities() {\n Capabilities result = super.getCapabilities();\n\n // attributes\n result.enable(Capability.NOMINAL_ATTRIBUTES);\n result.enable(Capability.NUMERIC_ATTRIBUTES);\n result.enable(Capability.DATE_ATTRIBUTES);\n result.enable(Capability.MISSING_VALUES);\n\n // class\n result.enable(Capability.NOMINAL_CLASS);\n result.enable(Capability.MISSING_CLASS_VALUES);\n\n // instances\n result.setMinimumNumberInstances(0);\n \n return result;\n }", "NegotiableCapabilitySet getServerCapabilities() throws RemoteException;", "public static DesiredCapabilities setAppCapabilities() {\n\t\tDesiredCapabilities capabilities = new DesiredCapabilities();\n\t\tString appID = PropertyFileHandler.getPropertyFromConfig(ConfigPropertyKeys.appID);\n\t\tcapabilities.setCapability(\"app\", appID + \"!App\");\n\t\treturn capabilities;\n\t}", "public Capabilities() {\n super();\n this.caps = new HashSet<ICapability>();\n }", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateCapabilitiesWithApplicationOldAndroid2() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setMobilePlatformVersion(\"5.0\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S5\");\r\n\t\tcontext.setAppPackage(\"appPackage\");\r\n\t\tcontext.setAppActivity(\"appActivity\");\r\n\t\tcontext.setFullReset(true);\r\n\t\tcontext.setApp(\"com.covea.mobileapp\");\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.AUTOMATION_NAME), \"UiAutomator1\");\r\n\t}", "public boolean writeToCapabilityFile(Capability cap) {\n\n try {\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n Document doc = docBuilder.newDocument();\n Element rootElement = doc.createElement(\"Sifeb\");\n doc.appendChild(rootElement);\n Element capability = doc.createElement(\"Capability\");\n rootElement.appendChild(capability);\n Element id = doc.createElement(\"Id\");\n id.appendChild(doc.createTextNode(cap.getCapID()));\n capability.appendChild(id);\n Element names = doc.createElement(\"Names\");\n capability.appendChild(names);\n\n for (Map.Entry<Locale, String> entry : cap.getCapNames().entrySet()) {\n Element name = doc.createElement(\"Name\");\n Element locale = doc.createElement(\"Locale\");\n Element nameStr = doc.createElement(\"Value\");\n locale.appendChild(doc.createTextNode(entry.getKey().toString()));\n nameStr.appendChild(doc.createTextNode(entry.getValue()));\n name.appendChild(locale);\n name.appendChild(nameStr);\n names.appendChild(name);\n }\n\n Element type = doc.createElement(\"Type\");\n type.appendChild(doc.createTextNode(cap.getType()));\n capability.appendChild(type);\n\n Element testCmd = doc.createElement(\"TestCommand\");\n testCmd.appendChild(doc.createTextNode(cap.getTestCommand()));\n capability.appendChild(testCmd);\n\n Element button = doc.createElement(\"HasTestButton\");\n button.appendChild(doc.createTextNode(Boolean.toString(cap.isHasTest())));\n capability.appendChild(button);\n\n Element exeCmd = doc.createElement(\"ExeCommand\");\n exeCmd.appendChild(doc.createTextNode(cap.getExeCommand()));\n capability.appendChild(exeCmd);\n\n Element stopCmd = doc.createElement(\"StopCommand\");\n stopCmd.appendChild(doc.createTextNode(cap.getStopCommand()));\n capability.appendChild(stopCmd);\n\n Element compType = doc.createElement(\"Comparator\");\n compType.appendChild(doc.createTextNode(cap.getCompType()));\n capability.appendChild(compType);\n\n Element respSize = doc.createElement(\"Response\");\n respSize.appendChild(doc.createTextNode(cap.getRespSize()));\n capability.appendChild(respSize);\n\n Element refVal = doc.createElement(\"Reference\");\n refVal.appendChild(doc.createTextNode(cap.getRefValue()));\n capability.appendChild(refVal);\n\n Element image = doc.createElement(\"Image\");\n image.appendChild(doc.createTextNode(cap.getImageName()));\n capability.appendChild(image);\n\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource source = new DOMSource(doc);\n File file = new File(SifebUtil.CAP_FILE_DIR + cap.getCapID() + \".xml\");\n StreamResult result = new StreamResult(file);\n transformer.transform(source, result);\n return true;\n\n } catch (ParserConfigurationException | TransformerException pce) {\n return false;\n }\n }", "private static DesiredCapabilities setCommon(DesiredCapabilities capabilities, String deviceType) {\r\n if (deviceType == \"mobile\") {\r\n\r\n } else if (deviceType == \"pc\") {\r\n capabilities.setCapability(\"browserstack.debug\", \"true\");\r\n\r\n } else if (deviceType == \"tab\") {\r\n\r\n } else if (deviceType == \"mac\") {\r\n\r\n } else if (deviceType == \"android\") {\r\n\r\n } else if (deviceType == \"iphone\") {\r\n\r\n } else if (deviceType == \"ipad\") {\r\n\r\n }\r\n return capabilities;\r\n }", "public List<String> capabilities() {\n return this.capabilities;\n }", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateCapabilitiesWithApplicationOldAndroid() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setMobilePlatformVersion(\"2.3\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S1\");\r\n\t\tcontext.setAppPackage(\"appPackage\");\r\n\t\tcontext.setAppActivity(\"appActivity\");\r\n\t\tcontext.setFullReset(true);\r\n\t\tcontext.setApp(\"com.covea.mobileapp\");\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.AUTOMATION_NAME), \"Selendroid\");\r\n\t}", "public ArrayList getCapabilities() {\n\treturn _capabilities;\n }", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateCapabilitiesWithApplication() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setMobilePlatformVersion(\"8.0\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S8\");\r\n\t\tcontext.setAppPackage(\"appPackage\");\r\n\t\tcontext.setAppActivity(\"appActivity\");\r\n\t\tcontext.setApp(\"com.covea.mobileapp\");\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(CapabilityType.BROWSER_NAME), \"\");\r\n\t\tAssert.assertEquals(capa.getCapability(\"app\"), \"com.covea.mobileapp\");\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.AUTOMATION_NAME), \"Appium\");\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.PLATFORM_NAME), \"android\");\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.PLATFORM_VERSION), \"8.0\");\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.DEVICE_NAME), \"Samsung Galasy S8\");\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.FULL_RESET), true);\r\n\t\tAssert.assertEquals(capa.getCapability(AndroidMobileCapabilityType.APP_PACKAGE), \"appPackage\");\r\n\t\tAssert.assertEquals(capa.getCapability(AndroidMobileCapabilityType.APP_ACTIVITY), \"appActivity\");\r\n\t}", "public ImageInformation withCapabilities(List<String> capabilities) {\n this.capabilities = capabilities;\n return this;\n }", "public ReflectiveCapabilitiesFactory(String name, String capabilitiesClassName, Object... args) {\n this.name = name;\n this.capabilitiesClassName = capabilitiesClassName;\n this.args = args;\n try {\n capabilitiesClass = (Class<? extends Capabilities>) Class.forName(capabilitiesClassName);\n available = Capabilities.class.isAssignableFrom(capabilitiesClass);\n } catch (ClassNotFoundException e) {\n available = false;\n }\n }", "public interface ICapabilityProvider {\n\n /**\n * Unique ID for this Provider\n *\n * @return\n */\n String getId();\n\n /**\n * Get a list of Capability IDs found by the provider\n *\n * @return\n */\n Set<String> listCapabilities();\n\n /**\n * Get a Capability by ID\n *\n * @param id\n * @return\n */\n ICapability getCapabilityById( String id );\n\n\n /**\n * Returns true if capability exists, if not return false\n *\n * @param id\n * @return\n */\n boolean capabilityExist( String id );\n\n /**\n * Get a set containing all ICapabilities\n *\n * @return\n */\n Set<ICapability> getAllCapabilities();\n}", "private DesiredCapabilities createSpecificGridCapabilities(DriverConfig webDriverConfig) {\r\n \tDesiredCapabilities capabilities = new DesiredCapabilities();\r\n \t\r\n \tif (SeleniumTestsContextManager.isMobileTest()) {\r\n \t\tcapabilities.setCapability(CapabilityType.VERSION, webDriverConfig.getMobilePlatformVersion());\r\n \t} else {\r\n \t\tcapabilities.setCapability(CapabilityType.PLATFORM, webDriverConfig.getPlatform().toLowerCase());\r\n \t\tif (webDriverConfig.getBrowserVersion() != null) {\r\n \t\t\tcapabilities.setCapability(CapabilityType.VERSION, webDriverConfig.getBrowserVersion());\r\n \t\t}\r\n \t}\r\n \t\r\n \treturn capabilities;\r\n }", "public static WindowsDriver<WebElement> createWindowsDriverSession(DesiredCapabilities capabilities) {\n\t\tWindowsDriver<WebElement> appSession = null;\n\t\ttry {\n\t\t\tString WinAppDriverURL = PropertyFileHandler.getPropertyFromConfig(ConfigPropertyKeys.WinAppDriverURL);\n\t\t\tappSession = new WindowsDriver<WebElement>(new URL(WinAppDriverURL), capabilities);\n\t\t} catch (MalformedURLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn appSession;\n\t}", "public interface Capability\n{\n String BUNDLE = \"bundle\";\n String FRAGMENT = \"fragment\";\n String PACKAGE = \"package\";\n String SERVICE = \"service\";\n String EXECUTIONENVIRONMENT = \"ee\";\n\n /**\n * Return the name of the capability.\n *\n */\n String getName();\n\n /**\n * Return the properties of this capability\n *\n * @return\n */\n Property[] getProperties();\n\n /**\n * Return the map of properties.\n *\n * @return a Map<String,Object>\n */\n Map<String, Object> getPropertiesAsMap();\n\n /**\n * Return the directives of this capability. The returned map\n * can not be modified.\n *\n * @return a Map of directives or an empty map there are no directives.\n */\n Map<String, String> getDirectives();\n}", "private void writeCapabilities( DataOutput out ) throws IOException {\n\tlong capabilities = 0;\n\tlong frequentCapabilities = 0;\n\n\tfor ( int i=0;i<64;i++ ) {\n\t if ( node.getCapability( i ) ) capabilities |= (1L << i);\n\t if ( !(node.getCapabilityIsFrequent( i )) ) frequentCapabilities |= (1L << i);\n\t}\n out.writeLong( capabilities );\n out.writeLong( frequentCapabilities );\n }", "String getCapability_name();", "public Capabilities getCapabilities() {\n Capabilities result = super.getCapabilities();\n result.disableAll();\n\n // attributes\n result.enable(Capability.NOMINAL_ATTRIBUTES);\n result.enable(Capability.NUMERIC_ATTRIBUTES);\n result.enable(Capability.DATE_ATTRIBUTES);\n result.enable(Capability.MISSING_VALUES);\n\n // class\n result.enable(Capability.NOMINAL_CLASS);\n result.enable(Capability.NUMERIC_CLASS);\n result.enable(Capability.DATE_CLASS);\n result.enable(Capability.MISSING_CLASS_VALUES);\n\n return result;\n }", "WithCreate withOsType(OperatingSystemTypes osType);", "@Override\n public Capabilities getCapabilities() {\n Capabilities result = super.getCapabilities();\n\n // attributes\n result.enable(Capability.NOMINAL_ATTRIBUTES);\n result.enable(Capability.RELATIONAL_ATTRIBUTES);\n result.disable(Capability.MISSING_VALUES);\n\n // class\n result.disableAllClasses();\n result.disableAllClassDependencies();\n result.enable(Capability.BINARY_CLASS);\n\n // Only multi instance data\n result.enable(Capability.ONLY_MULTIINSTANCE);\n\n return result;\n }", "@Override\n protected void startDriver(IOSCapabilities caps) {\n }", "public List<DeviceDescriptionCapability> getCapabilities() {\n return capabilities;\n }", "Set<ICapability> getAllCapabilities();", "@Override\n public void prepareAMResourceRequirements(ClusterDescription clusterSpec,\n Resource capability) {\n\n }", "Set<Capability> getAvailableCapability();", "public DeviceDescription setCapabilities(List<DeviceDescriptionCapability> capabilities) {\n this.capabilities = capabilities;\n return this;\n }", "public void addCapability(Object o) {\n\tif (!_capabilities.contains(o)) {\n\t _capabilities.add(o);\n\t _log.addedCapability(o);\n\t}\n }", "private static void appendBaseCapabilities( OWSCapabilitiesBaseType_1_0 capabilities,\n Element root ) {\n LOG.entering();\n root.setAttribute( \"version\", capabilities.getVersion() );\n root.setAttribute( \"updateSequence\", capabilities.getUpdateSequence() );\n\n // may have to be changed/overwritten (?)\n ServiceIdentification serviceIdentification = capabilities.getServiceIdentification();\n if ( serviceIdentification != null )\n appendServiceIdentification( root, serviceIdentification );\n\n ServiceProvider serviceProvider = capabilities.getServiceProvider();\n if ( serviceProvider != null )\n appendServiceProvider( root, serviceProvider );\n\n OperationsMetadata_1_0 metadata = capabilities.getOperationsMetadata();\n if ( metadata != null )\n appendOperationsMetadata_1_0( root, metadata );\n LOG.exiting();\n }", "public FastProvisioningEditionCapability() {\n }", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateDefaultCapabilitiesWithNodeTagsInGridMode() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setBrowser(BrowserType.CHROME.toString());\r\n\t\tcontext.setNodeTags(\"foo,bar\");\r\n\t\tcontext.setRunMode(\"grid\");\r\n\t\tcontext.setMobilePlatformVersion(\"8.0\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S8\");\r\n\t\tcontext.setApp(\"\");\r\n\t\t\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(SeleniumRobotCapabilityType.NODE_TAGS), Arrays.asList(\"foo\", \"bar\"));\r\n\t}", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateDefaultCapabilitiesWithNodeTagsInLocalMode() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setBrowser(BrowserType.CHROME.toString());\r\n\t\tcontext.setNodeTags(\"foo,bar\");\r\n\t\tcontext.setRunMode(\"local\");\r\n\t\tcontext.setMobilePlatformVersion(\"8.0\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S8\");\r\n\t\tcontext.setApp(\"\");\r\n\t\t\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\r\n\t\tAssert.assertFalse(capa.is(SeleniumRobotCapabilityType.NODE_TAGS));\r\n\t}", "public GenMercuryCapabilities() {\n }", "public MmTelFeature.MmTelCapabilities convertCapabilities(int[] enabledFeatures) {\n boolean[] featuresEnabled = new boolean[enabledFeatures.length];\n int i = 0;\n while (i <= 5 && i < enabledFeatures.length) {\n if (enabledFeatures[i] == i) {\n featuresEnabled[i] = true;\n } else if (enabledFeatures[i] == -1) {\n featuresEnabled[i] = false;\n }\n i++;\n }\n MmTelFeature.MmTelCapabilities capabilities = new MmTelFeature.MmTelCapabilities();\n if (featuresEnabled[0] || featuresEnabled[2]) {\n capabilities.addCapabilities(1);\n }\n if (featuresEnabled[1] || featuresEnabled[3]) {\n capabilities.addCapabilities(2);\n }\n if (featuresEnabled[4] || featuresEnabled[5]) {\n capabilities.addCapabilities(4);\n }\n Log.i(TAG, \"convertCapabilities - capabilities: \" + capabilities);\n return capabilities;\n }", "public ReflectiveCapabilitiesFactory(String name, Class<? extends Capabilities> capabilitiesClass, Object... args) {\n this.name = name;\n this.capabilitiesClass = capabilitiesClass;\n this.args = args;\n capabilitiesClassName = capabilitiesClass.getName();\n available = Capabilities.class.isAssignableFrom(this.capabilitiesClass);\n }", "@Override\n\tpublic Capabilities getCapabilities() {\n\t\treturn null;\n\t}", "public interface PlatformOS {\n\t\n\tpublic class TaskDescription {\n\t\tpublic final String processName;\n\t\tpublic final String windowTitle;\n\t\tpublic TaskDescription(String processName, String windowTitle) {\n\t\t\tthis.processName = processName;\n\t\t\tthis.windowTitle = windowTitle;\n\t\t}\n\t\t@Override\n\t\tpublic String toString() {\n\t\t\treturn processName+(windowTitle!=null ? \" (\"+windowTitle+\")\" : \"\");\n\t\t}\n\t};\n\t\n\t/**\n\t * Should return a list of \"applications\" currently running.\n\t * This is intended to be a list of tasks running for the current user.\n\t * @return\n\t */\n\tpublic List<TaskDescription> getActiveTasks();\n\t\n\t/**\n\t * Will return the path to the java virtual machine executable on this platform.\n\t * @return\n\t */\n\tpublic String getJVMExecutablePath();\n}", "protected DesiredCapabilities getCapabilitiesForFirefox(String currentIOSSimulatorUDID, ExtentTest currentTest, ExtentReportGenerator extentReportGenerator, Integer wdaLocalPort, String scenarioName, String testRunName, String appVersionBeingTested){\n\t\tDesiredCapabilities desCap = new DesiredCapabilities();\n\t\t//desired caps go here\n\t\treturn desCap;\n\t}", "boolean has(String capability);", "public static WPSGetCapabilities create( String id, Element element )\n throws OGCWebServiceException {\n throw new OperationNotSupportedException(\n \"HTTP post transfer of XML encoded get capabilities request not supported.\" );\n\n }", "public boolean setBrowserCapability(String key, String value) {\n if (Boolean.valueOf(System.getProperty(\"LOCAL_DRIVER\"))) {\n return false;\n } else if (Boolean.valueOf(System.getProperty(\"REMOTE_DRIVER\"))) {\n extraCapabilities.setCapability(key, value);\n return true;\n } else if (Boolean.valueOf(System.getProperty(\"SAUCE_DRIVER\"))) {\n extraCapabilities.setCapability(key, value);\n return true;\n } else {\n throw new WebDriverException(\"Type of driver not specified!!!\");\n }\n }", "public static void main(String[] args) {\n\t\tOSFactory osFactory = new OSFactory();\n\t\tOS os = osFactory.getOs(\"windows\");\n\t\tos.spec();\n\t\t\n\t\t\n\t}", "Architecture createArchitecture();", "boolean capabilityExist( String id );", "ICapability getCapabilityById( String id );", "public static WPSGetCapabilities create( String id, String version, String updateSequence, String[] acceptVersions,\n String[] sections, String[] acceptFormats, Map<String, String> vendoreSpec ) {\n return new WPSGetCapabilities( id, version, updateSequence, acceptVersions, sections, acceptFormats,\n vendoreSpec );\n }", "public static AppiumDriver getDriver(String platformtype, AppiumDriverLocalService service) throws IOException, TimeoutException, URISyntaxException {\n AppiumDriver driver;\n /* List<InterceptedMessage> messages = new ArrayList<InterceptedMessage>();\n\n\n MitmproxyJava proxy = new MitmproxyJava(\"/usr/local/bin/mitmdump\", (InterceptedMessage m) -> {\n System.out.println(\"intercepted request for \" + m.requestURL.toString());\n messages.add(m);\n return m;\n });\n //System.out.println(\"Hello World\");\n proxy.start();*/\n if (platformtype== \"Android\") {\n DesiredCapabilities options = new DesiredCapabilities();\n options.setCapability(\"deviceName\", propertyManager.getInstance().getdevicename()); //Pixel_XL_API_29\n options.setCapability(\"udid\",propertyManager.getInstance().getdeviceUDID());\n //options.setCapability(\"avd\",\"Pixel_XL_API_29\");\n options.setCapability(\"platformName\", propertyManager.getInstance().getplatformName());\n options.setCapability(\"platformVersion\", propertyManager.getInstance().getplatformVersion()); //emulator: 10.0.0\n options.setCapability(\"automationName\", \"UiAutomator2\");\n options.setCapability(\"autoGrantPermissions\",\"true\");\n options.setCapability(\"noReset\",\"true\");\n options.setCapability(\"autoAcceptAlerts\",\"true\");\n options.setCapability(\"app\",propertyManager.getInstance().getAndroidapp());\n options.setCapability(\"uiautomator2ServerInstallTimeout\", \"60000\");\n options.setCapability(\"abdExecTimeout\", \"60000\");\n options.setCapability(\"ACCEPT_SSL_CERTS\",true);\n options.setCapability(\"clearDeviceLogsOnStart\",\"true\");\n //options.setCapability(\"--set ssl_version_client\",\"all\");\n //options.setCapability(\"--proxy-server\",\"localhost:8080\");\n //options.setCapability(\"appWaitPackage\", \"com.clearchannel.iheartradio.controller.debug\");\n //options.setCapability(\"appWaitActivity\", \"com.clearchannel.iheartradio.controller.activities.NavDrawerActivity\");\n //options.setCapability(\"appPackage\", \"com.clearchannel.iheartradio.controller.debug\");\n //options.setCapability(\"appActivity\", \"com.clearchannel.iheartradio.controller.activities.NavDrawerActivity\");\n\n\n driver = new AndroidDriver<MobileElement>(service, options);\n return driver;\n }\n else if(platformtype== \"iOS\"){\n DesiredCapabilities options = new DesiredCapabilities();\n\n options.setCapability(\"platformName\", \"iOS\");\n options.setCapability(\"platformVersion\", propertyManager.getInstance().getiOSplatformVersion());\n options.setCapability(\"deviceName\", propertyManager.getInstance().getiOSdevicename());\n options.setCapability(\"udid\",propertyManager.getInstance().getiOSUDID());\n //options.setCapability(CapabilityType.BROWSER_NAME,\"safari\");\n //options.setCapability(\"automationName\", \"XCUITest\");\n options.setCapability(\"bundleId\",\"com.clearchannel.iheartradio.enterprise\");\n options.setCapability(\"startIWDP\",\"true\");\n options.setCapability(\"noReset\",\"true\");\n options.setCapability(\"useNewWDA\",\"false\");\n //options.setCapability(\"showIOSLog\",\"true\");\n //options.setCapability(\"app\",\"/Users/Shruti/Desktop/untitled folder/iHRiOSAppCenter/iHeartRadio.ipa\"); // /Users/Shruti/Downloads/iHeartRadio.ipa\n options.setCapability(\"xcodeOrgId\",\"BCN32U332R\");\n options.setCapability(\"xcodeSigningId\",\"iPhone Developer\");\n options.setCapability(\"autoAcceptAlerts\",\"true\");\n options.setCapability(\"SHOW_XCODE_LOG\",\"true\");\n //options.setCapability(\"updatedWDABundleId\",\"com.Shruti7505.WebDriverAgentRunner\");\n driver = new IOSDriver<MobileElement>(service,options);\n return driver;\n }\n return driver=null;\n\n }", "@Test\n public void determine_provider_capabilities() {\n Provider bouncyCastleProvider = Security.getProvider(\"BC\");\n assertThat(bouncyCastleProvider, is(notNullValue()));\n /**\n * Get the KeySet where the provider keep a list of it's\n * capabilities\n */\n Iterator<Object> capabilitiesIterator = bouncyCastleProvider.keySet().iterator();\n while(capabilitiesIterator.hasNext()){\n String capability = (String) capabilitiesIterator.next();\n\n if(capability.startsWith(\"Alg.Alias.\")) {\n capability = capability.substring(\"Alg.Alias.\".length());\n }\n\n String factoryClass = capability.substring(0, capability.indexOf(\".\"));\n String name = capability.substring(factoryClass.length() + 1);\n\n assertThat(factoryClass, is(not(isEmptyOrNullString())));\n assertThat(name, is(not(isEmptyOrNullString())));\n\n System.out.println(String.format(\"%s : %s\", factoryClass, name));\n }\n }", "private void addAutoStartupswitch() {\n\n try {\n Intent intent = new Intent();\n String manufacturer = android.os.Build.MANUFACTURER .toLowerCase();\n\n switch (manufacturer){\n case \"xiaomi\":\n intent.setComponent(new ComponentName(\"com.miui.securitycenter\", \"com.miui.permcenter.autostart.AutoStartManagementActivity\"));\n break;\n case \"oppo\":\n intent.setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startup.StartupAppListActivity\"));\n break;\n case \"vivo\":\n intent.setComponent(new ComponentName(\"com.vivo.permissionmanager\", \"com.vivo.permissionmanager.activity.BgStartUpManagerActivity\"));\n break;\n case \"Letv\":\n intent.setComponent(new ComponentName(\"com.letv.android.letvsafe\", \"com.letv.android.letvsafe.AutobootManageActivity\"));\n break;\n case \"Honor\":\n intent.setComponent(new ComponentName(\"com.huawei.systemmanager\", \"com.huawei.systemmanager.optimize.process.ProtectActivity\"));\n break;\n case \"oneplus\":\n intent.setComponent(new ComponentName(\"com.oneplus.security\", \"com.oneplus.security.chainlaunch.view.ChainLaunchAppListAct‌​ivity\"));\n break;\n }\n\n List<ResolveInfo> list = getPackageManager().queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY);\n if (list.size() > 0) {\n startActivity(intent);\n }\n } catch (Exception e) {\n Log.e(\"exceptionAutostarti2pd\" , String.valueOf(e));\n }\n\n }", "private void createNewDriverInstance() {\n String browser = props.getProperty(\"browser\");\n if (browser.equals(\"firefox\")) {\n FirefoxProfile profile = new FirefoxProfile();\n profile.setPreference(\"intl.accept_languages\", language);\n driver = new FirefoxDriver();\n } else if (browser.equals(\"chrome\")) {\n ChromeOptions options = new ChromeOptions();\n options.setBinary(new File(chromeBinary));\n options.addArguments(\"--lang=\" + language);\n driver = new ChromeDriver(options);\n } else {\n System.out.println(\"can't read browser type\");\n }\n }", "SystemPropertiesType createSystemPropertiesType();", "@DataProvider(name = \"sBoxBrowsersProvider\", parallel=true)\n public Object[][] getRemoteDrivers() throws MalformedURLException {\n DesiredCapabilities firefoxCapabs = DesiredCapabilities.firefox();\n\n //firefoxCapabs.setPlatform(Platform.LINUX);\n //firefoxCapabs.setCapability(\"e34:auth\", \"sjej35po2vgxd7yg\");\n //firefoxCapabs.setCapability(\"e34:video\", true);\n //firefoxCapabs.setCapability(\"acceptInsecureCerts\", true);\n\n\n // Return Chrome capabilities object\n DesiredCapabilities chromeCaps = DesiredCapabilities.chrome();\n\n chromeCaps.setPlatform(Platform.LINUX);\n chromeCaps.setCapability(\"e34:auth\", \"sjej35po2vgxd7yg\");\n chromeCaps.setCapability(\"e34:video\", true);\n chromeCaps.setCapability(\"acceptInsecureCerts\", true);\n\n\n return new Object[][]{\n {firefoxCapabs},\n //{chromeCaps}\n };\n\n }", "RemoteWebDriver getDriver(String appName, String platformName) {\n\t\tDesiredCapabilities androidDcap = new DesiredCapabilities();\n\t\tandroidDcap.setCapability(MobileCapabilityType.AUTOMATION_NAME, \"UIAutomator2\");\n\t\tandroidDcap.setCapability(MobileCapabilityType.PLATFORM_NAME, platformName);\n\t\t//androidDcap.setCapability(AndroidMobileCapabilityType.AUTO_GRANT_PERMISSIONS, true);\n\t\tandroidDcap.setCapability(MobileCapabilityType.NO_RESET, true);\n\t\tandroidDcap.setCapability(MobileCapabilityType.FULL_RESET, false);\n\t\tandroidDcap.setCapability(AndroidMobileCapabilityType.NO_SIGN, true);\n\t\tandroidDcap.setCapability(AndroidMobileCapabilityType.APP_WAIT_DURATION, 120);\n\t\tandroidDcap.setCapability(\"newCommandTimeout\", 1500);\n\t\tandroidDcap.setCapability(\"app\", System.getProperty(\"user.dir\") +\"\\\\apk\\\\\"+appName+\".apk\");\n\t\tandroidDcap.setCapability(\"autoGrantPermissions\", true);\n\t\tandroidDcap.setCapability(\"appPackage\", PropertyHelper.getProperties(appName+\"_PACKAGE\"));\n\t\tandroidDcap.setCapability(\"appActivity\", PropertyHelper.getProperties(appName+\"_ACTIVITY\"));\n\t\tandroidDcap.setCapability(\"deviceName\", \"Android\");\n\t\t\n\t\ttry {\n\t\t\tif (System.getProperty(\"location\").equalsIgnoreCase(\"local\")) {\n\t\t\t\tdriver = new AndroidDriver<>(new URL(\"http://127.0.0.1:4651/wd/hub\"), androidDcap);\n\t\t\t\tlogger.info(\"Session ID of Android: \" + driver.getSessionId());\n\t\t\t} else if (System.getProperty(\"location\").equalsIgnoreCase(\"remote\")) {\n\t\t\t\tdriver = new AndroidDriver<>(new URL(PropertyHelper.getProperties(\"REMOTE_HUB_URL\")), androidDcap);\n\t\t\t\tlogger.info(\"Session ID of Android: \" + driver.getSessionId());\n\t\t\t}\n\t\t} catch (WebDriverException e) {\n\t\t\tlogger.error(\"Driver instantiating failed or app is not installed\", e);\n\t\t} catch (MalformedURLException e) {\n\t\t\tlogger.error(e);\n\t\t}\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\n\t\tDriverFactory.getDriverPool().put(appName, driver);\n\t\treturn driver;\n\t}", "@Before\n public void setUp() throws Exception {\n\n DesiredCapabilities capabilities = new DesiredCapabilities();\n capabilities.setCapability(\"deviceName\", \"Google Nexus 5\");\n capabilities.setCapability(\"platformVersion\", \"4.4.4\");\n capabilities.setCapability(\"udid\", \"192.168.27.101:5555\");\n capabilities.setCapability(\"app\", \"D:\\\\Projects\\\\Zappy\\\\ZappyBuilds\\\\app-release.apk\");\n// capabilities.setCapability(\"appPackage\", \"com.example.android.contactmanager\");//packageName\n capabilities.setCapability(\"appActivity\", \"com.compareking.zappy.ui.activity.UnauthorizedActivity\"); //activi\n driver = new AndroidDriver<>(new URL(\"http://127.0.0.1:4723/wd/hub\"), capabilities);\n }", "private void initHardware(){\n }", "protected boolean isOsSupportingHotPlug() {\n String vmOs = getVm().getos().name();\n String[] unsupportedOSs = Config.<String> GetValue(ConfigValues.HotPlugUnsupportedOsList).split(\",\");\n for (String os : unsupportedOSs) {\n if (os.equalsIgnoreCase(vmOs)) {\n addCanDoActionMessage(VdcBllMessages.ACTION_TYPE_FAILED_GUEST_OS_VERSION_IS_NOT_SUPPORTED);\n return false;\n }\n }\n return true;\n }", "@BeforeClass\n public void classLevelSetup() {\n\t\t \t\tcaps = new DesiredCapabilities();\n \t\t\tcaps.setCapability(\"deviceName\", \"My Phone\");\n \t\t\tcaps.setCapability(\"udid\", \"8f81d4e2\"); //Give Device ID of your mobile phone\n \t\t\tcaps.setCapability(\"platformName\", \"Android\");\n \t\t\tcaps.setCapability(\"platformVersion\", \"9\"); // The version of Android on your device\n \t\t\tcaps.setCapability(\"browserName\", \"Chrome\");\n \t\t\tcaps.setCapability(\"noReset\", true);\n \t\t\tcaps.setCapability(MobileCapabilityType.PLATFORM_NAME, MobilePlatform.ANDROID);\n \t\t\tcaps.setCapability(\"chromedriverExecutable\", \"C:\\\\SeleniumGecko\\\\chromedriver78.exe\"); // Set ChromeDriver location\n \t\t\t\n\n \t\t\t//Instantiate Appium Driver or AndroidDriver\n \t\t\ttry {\n \t\t\t\tdriver = new AppiumDriver<>(new URL(appium_node), caps);\n \t\t\t\t\n \t\t\t} catch (MalformedURLException e) {\n \t\t\t\tSystem.out.println(e.getMessage());\n \t\t\t}\n \t\t\t\t\t\n\n\t\t\n }", "public static void main(String[] args) throws MalformedURLException, InterruptedException {\n\t\t\nDesiredCapabilities capabilities= new DesiredCapabilities();\n\t\t\n\t\tcapabilities.setCapability(\"deviceName\", \"GT-I9300I\");\n\t\tcapabilities.setCapability(\"platformName\", \"Android\");\n\t\tcapabilities.setCapability(\"platformVersion\", \"4.4.4\");\n\t\t\n\t\tcapabilities.setCapability(\"appPackage\", \"org.khanacademy.android\");\n\t\tcapabilities.setCapability(\"appActivity\", \"org.khanacademy.android.ui.library.MainActivity\");\n\t\t\n\t\tAndroidDriver driver = new AndroidDriver(new URL(\"http://127.0.0.1:4723/wd/hub\"), capabilities);\n\t\n\t\tThread.sleep(20000);\n\t\tSystem.out.println(driver.getContext());\n\t\t\n\t\tSet<String> contextNames = driver.getContextHandles();\n\t\tSystem.out.println(contextNames.size());\n\t\t //You can prints out something like NATIVE_APP , WEBVIEW_1 \n\t\t for (String contextName : contextNames) { \n\t\t System.out.println(contextName);\n//\t\t if (contextName.contains(\"WEBVIEW\")){\n//\t driver.context(contextName);\n//\t }\n\t\t }\n\n\t\t \n\n\t}", "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 }", "System createSystem();", "Device createDevice();", "UsabilityRequirement createUsabilityRequirement();", "public interface Windows { \n\n\t/**\n\t * Alter this object properties\n\t * Facultative parameters ? false\n\t * @param null New object properties\n\t * @param serviceName The name of your Windows license\n\t*/\n\tvoid putServiceNameServiceInfos(net.zyuiop.ovhapi.api.objects.services.Service param0, java.lang.String serviceName) throws java.io.IOException;\n\n\t/**\n\t * Get this object properties\n\t * Facultative parameters ? false\n\t * @param serviceName The name of your Windows license\n\t*/\n\tnet.zyuiop.ovhapi.api.objects.license.windows.Windows getServiceName(java.lang.String serviceName) throws java.io.IOException;\n\n\t/**\n\t * Terminate your service\n\t * Facultative parameters ? false\n\t * @param serviceName The name of your Windows license\n\t*/\n\tjava.lang.String postServiceNameTerminate(java.lang.String serviceName) throws java.io.IOException;\n\n\t/**\n\t * release this Option\n\t * Facultative parameters ? false\n\t * @param serviceName The name of your Windows license\n\t * @param label This option designation\n\t*/\n\tnet.zyuiop.ovhapi.api.objects.license.Task deleteServiceNameOptionLabel(java.lang.String serviceName, java.lang.String label) throws java.io.IOException;\n\n\t/**\n\t * List available services\n\t * Facultative parameters ? false\n\t*/\n\tjava.lang.String[] getLicenseWindows() throws java.io.IOException;\n\n\t/**\n\t * Get the orderable Windows versions\n\t * Facultative parameters ? false\n\t * @param ip Your license Ip\n\t*/\n\tnet.zyuiop.ovhapi.api.objects.license.WindowsOrderConfiguration[] getOrderableVersions(java.lang.String ip) throws java.io.IOException;\n\n\t/**\n\t * Get this object properties\n\t * Facultative parameters ? false\n\t * @param serviceName The name of your Windows license\n\t*/\n\tnet.zyuiop.ovhapi.api.objects.services.Service getServiceNameServiceInfos(java.lang.String serviceName) throws java.io.IOException;\n\n\t/**\n\t * tasks linked to this license\n\t * Facultative parameters ? true\n\t * @param serviceName The name of your Windows license\n\t * @param status Filter the value of status property (=)\n\t * @param action Filter the value of action property (=)\n\t*/\n\tlong[] getServiceNameTasks(java.lang.String serviceName, java.lang.String status, java.lang.String action) throws java.io.IOException;\n\n\t/**\n\t * tasks linked to this license\n\t * Facultative parameters ? false\n\t * @param serviceName The name of your Windows license\n\t*/\n\tlong[] getServiceNameTasks(java.lang.String serviceName) throws java.io.IOException;\n\n\t/**\n\t * Get this object properties\n\t * Facultative parameters ? false\n\t * @param serviceName The name of your Windows license\n\t * @param taskId This Task id\n\t*/\n\tnet.zyuiop.ovhapi.api.objects.license.Task getServiceNameTasksTaskId(java.lang.String serviceName, long taskId) throws java.io.IOException;\n\n\t/**\n\t * options attached to this license\n\t * Facultative parameters ? false\n\t * @param serviceName The name of your Windows license\n\t*/\n\tjava.lang.String[] getServiceNameOption(java.lang.String serviceName) throws java.io.IOException;\n\n\t/**\n\t * Link your own sql server license to this Windows license\n\t * Facultative parameters ? false\n\t * @param licenseId Your license serial number\n\t * @param version Your license version\n\t * @param serviceName The name of your Windows license\n\t*/\n\tnet.zyuiop.ovhapi.api.objects.license.Task postServiceNameSqlServer(java.lang.String licenseId, java.lang.String version, java.lang.String serviceName) throws java.io.IOException;\n\n\t/**\n\t * Alter this object properties\n\t * Facultative parameters ? false\n\t * @param null New object properties\n\t * @param serviceName The name of your Windows license\n\t*/\n\tvoid putServiceName(net.zyuiop.ovhapi.api.objects.license.windows.Windows param0, java.lang.String serviceName) throws java.io.IOException;\n\n\t/**\n\t * Get this object properties\n\t * Facultative parameters ? false\n\t * @param serviceName The name of your Windows license\n\t * @param label This option designation\n\t*/\n\tnet.zyuiop.ovhapi.api.objects.license.Option getServiceNameOptionLabel(java.lang.String serviceName, java.lang.String label) throws java.io.IOException;\n\n}", "public interface PlexusIoResourceAttributes\n{\n boolean isOwnerReadable();\n \n boolean isOwnerWritable();\n \n boolean isOwnerExecutable();\n \n boolean isGroupReadable();\n\n boolean isGroupWritable();\n \n boolean isGroupExecutable();\n \n boolean isWorldReadable();\n\n boolean isWorldWritable();\n \n boolean isWorldExecutable();\n\n /**\n * Gets the unix user id.\n * @return The unix user id, may be null (\"not set\"), even on unix\n */\n Integer getUserId();\n \n /**\n * Gets the unix group id.\n * @return The unix group id, may be null (\"not set\"), even on unix\n */\n Integer getGroupId();\n\n String getUserName();\n \n String getGroupName();\n \n int getOctalMode();\n \n String getOctalModeString();\n \n PlexusIoResourceAttributes setOwnerReadable( boolean flag );\n\n PlexusIoResourceAttributes setOwnerWritable( boolean flag );\n\n PlexusIoResourceAttributes setOwnerExecutable( boolean flag );\n\n PlexusIoResourceAttributes setGroupReadable( boolean flag );\n\n PlexusIoResourceAttributes setGroupWritable( boolean flag );\n\n PlexusIoResourceAttributes setGroupExecutable( boolean flag );\n\n PlexusIoResourceAttributes setWorldReadable( boolean flag );\n\n PlexusIoResourceAttributes setWorldWritable( boolean flag );\n\n PlexusIoResourceAttributes setWorldExecutable( boolean flag );\n\n PlexusIoResourceAttributes setUserId( Integer uid );\n\n PlexusIoResourceAttributes setGroupId( Integer gid );\n\n PlexusIoResourceAttributes setUserName( String name );\n\n PlexusIoResourceAttributes setGroupName( String name );\n \n PlexusIoResourceAttributes setOctalMode( int mode );\n \n PlexusIoResourceAttributes setOctalModeString( String mode );\n}", "protected abstract void initHardwareCriteria();", "public Capabilities getCapabilities(WebDriver driver) {\n return ((RemoteWebDriver) driver).getCapabilities();\n }", "public void setCapability(Capability value) {\n\t\tthis._capability = value;\n\t}", "private void setOs() {\n\t\tthis.os = System.getProperty(\"os.name\");\n\t}", "@BeforeTest\n\t\tpublic void setUp() throws MalformedURLException {\n\t\t\t DesiredCapabilities capabilities = new DesiredCapabilities();\n\t\t\t // Set android deviceName desired capability. Set your device name.\n\t\t\t capabilities.setCapability(\"deviceName\", \"Custom Phone - 4.2.2 API 17 - 768*1280\");\n\t\t\t // Set BROWSER_NAME desired capability. It's Android in our case here.\n\t\t\t capabilities.setCapability(\"browserName\", \"Android\");\n\n\t\t\t // Set android VERSION desired capability. Set your mobile device's OS version.\n\t\t\t capabilities.setCapability(\"platformVersion\", \"4.2.2\");\n\n\t\t\t // Set android platformName desired capability. It's Android in our case here.\n\t\t\t capabilities.setCapability(\"platformName\", \"Android\");\n\t\t\t // Created object of RemoteWebDriver will all set capabilities.\n\t\t\t // Set appium server address and port number in URL string.\n\t\t\t // It will launch calculator app in android device.\n\t\t\t // capabilities.setCapability(\"unicodeKeyboard\", true);\n\t\t\t // capabilities.setCapability(\"resetKeyboard\", true);\n\t\t\t driver = new RemoteWebDriver(new URL(\"http://127.0.0.1:4723/wd/hub\"), capabilities);\n\t\t\t driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);\n\t\t\t }", "public static List<String> GetDriverOnSystem() {\n\t\tOSType osType = Utils.getOperatingSystemType();\n\t\tswitch (osType) {\n\t\tcase Windows:\n\t\t\treturn GetDriverOnWindows();\n\t\tcase MacOS:\n\t\t\treturn GetDriverOnMacOS();\n\t\tcase Linux:\n\t\t\treturn GetDriverOnMacOS();\n\t\tdefault:\n\t\t\treturn null;\n\t\t}\n\t\t\n\t}", "public void setFeatureCapabilitiesSupported(java.lang.Boolean featureCapabilitiesSupported) {\r\n this.featureCapabilitiesSupported = featureCapabilitiesSupported;\r\n }", "public static Capabilities fromJson(String json) {\n Gson gson = new Gson();\n return gson.fromJson(json, Capabilities.class);\n }", "public BusinessCapability createBusinessCapability (BusinessCapability body) throws ApiException\n\t{\n\t\tString path = \"/businessCapabilities\".replaceAll(\"\\\\{format\\\\}\",\"json\");\n\n\t\t// query params\n\t\tMap<String, String> queryParams = new HashMap<String, String>();\n\t\tMap<String, String> headerParams = new HashMap<String, String>();\n\n\t\ttry\n\t\t{\n\t\t\tString response = apiClient.invokeAPI(path, \"POST\", queryParams, body, headerParams);\n\t\t\tif (response != null)\n\t\t\t{\n\t\t\t\treturn (BusinessCapability) ApiClient.deserialize(response, \"\", BusinessCapability.class);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\tcatch (ApiException ex)\n\t\t{\n\t\t\tif(ex.getCode() == 404)\n\t\t\t{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow ex;\n\t\t\t}\n\t\t}\n\t}", "public static WPSGetCapabilities create( String id, String request )\n throws InvalidParameterValueException, MissingParameterValueException {\n Map<String, String> map = KVP2Map.toMap( request );\n map.put( \"ID\", id );\n return create( map );\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 int getSupportedCapabilities(Transport transport) {\n Integer capabilities = supportedCapabilities.get(transport);\n return capabilities == null ? 0 : capabilities;\n }" ]
[ "0.67962295", "0.6614985", "0.64215916", "0.6391442", "0.63791025", "0.6060252", "0.6008574", "0.594452", "0.59278023", "0.5917573", "0.58423936", "0.5837598", "0.58174676", "0.5807316", "0.579125", "0.57777584", "0.57728523", "0.5762043", "0.5742611", "0.57275206", "0.57263815", "0.5712315", "0.5698588", "0.56559944", "0.5616069", "0.560758", "0.5601891", "0.55964863", "0.5590163", "0.5581761", "0.5498319", "0.5497786", "0.54784864", "0.54723424", "0.5452018", "0.5450457", "0.54452056", "0.53997564", "0.5386677", "0.5372438", "0.53693026", "0.53631693", "0.5352985", "0.53514236", "0.5341291", "0.5298972", "0.52849054", "0.52763736", "0.5261084", "0.52596253", "0.5253302", "0.5244419", "0.5243627", "0.5237291", "0.5214938", "0.51866347", "0.5149006", "0.5139551", "0.5135648", "0.5111231", "0.5055258", "0.5053156", "0.5035783", "0.49810967", "0.4978838", "0.49761412", "0.49588642", "0.493001", "0.49020007", "0.4895855", "0.48750517", "0.48664397", "0.48605132", "0.48523855", "0.48266184", "0.48218685", "0.4809643", "0.47992912", "0.4798392", "0.47928146", "0.47901976", "0.4766457", "0.4761536", "0.47424945", "0.47387484", "0.47232336", "0.47173896", "0.47137144", "0.47117785", "0.47104394", "0.46969017", "0.4685271", "0.46823147", "0.4666328", "0.46312997", "0.46128675", "0.4591786", "0.4587609", "0.45875606", "0.45841435", "0.45730433" ]
0.0
-1
Connect to grid using RemoteWebDriver
private WebDriver getDriver(URL url, MutableCapabilities capability){ driver = null; SystemClock clock = new SystemClock(); long end = clock.laterBy(retryTimeout * 1000L); Exception currentException = null; while (clock.isNowBefore(end)) { try { driver = new RemoteWebDriver(url, capability); break; } catch (WebDriverException e) { logger.warn("Error creating driver, retrying: " + e.getMessage()); currentException = e; continue; } } if (driver == null) { throw new SeleniumGridException("Cannot create driver on grid, it may be fully used", currentException); } return driver; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public WebDriver createWebDriver() {\n MutableCapabilities capabilities = createSpecificGridCapabilities(webDriverConfig);\r\n capabilities.merge(driverOptions);\r\n \r\n // \r\n gridConnector.uploadMobileApp(capabilities);\r\n\r\n // connection to grid is made here\r\n driver = getDriver(gridConnector.getHubUrl(), capabilities);\r\n\r\n setImplicitWaitTimeout(webDriverConfig.getImplicitWaitTimeout());\r\n if (webDriverConfig.getPageLoadTimeout() >= 0 && SeleniumTestsContextManager.isWebTest()) {\r\n setPageLoadTimeout(webDriverConfig.getPageLoadTimeout());\r\n }\r\n\r\n this.setWebDriver(driver);\r\n\r\n runWebDriver();\r\n\r\n ((RemoteWebDriver)driver).setFileDetector(new LocalFileDetector());\r\n\r\n return driver;\r\n }", "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 }", "public void setUpDriver(final String browser) throws MalformedURLException{\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString gridUrl=System.getProperty(\"gridurl\");\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//check if parameter passed from TestNg is 'firefox'\r\n\t\t\r\n//\t\tif (BrowserLib.FIREFOX.equalsIgnoreCase(browser)){\r\n//\t\t DesiredCapabilities capabilities =DesiredCapabilities.firefox();\r\n//\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n//\t\t if(StringUtils.isNotEmpty(gridUrl)){\r\n//\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n//\t\t }\r\n//\t\t else{\r\n//\t\t\t driver =new FirefoxDriver(capabilities);\r\n//\t\t }\r\n\t\t \r\n\t\t\r\n\t\tif(BrowserLib.FIREFOX.equalsIgnoreCase(browser)){\r\n\t\t\t\r\n\t\t\t DesiredCapabilities capabilities =DesiredCapabilities.firefox();\r\n//\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n\t\t\t \r\n\t\t\t final String firebugpath1=\"src//main//resource//firepath-0.9.7.1-fx.xpi\";\r\n\t\t\t final String firebugpath =\"src//main//resource//firebug-1.12.8.xpi\";\r\n\t\t\t FirefoxProfile profile=new FirefoxProfile();\r\n//\t\t System.setProperty(\"webdriver.firefox.driver\", \"C:\\\\Program Files\\\\MozillaFirefox\\\\firefox.exe\");\r\n\r\n\t\t\t \r\n\t\t\t try{\r\n\t\t\t\t profile.addExtension(new File(firebugpath));\r\n\t\t\t\t profile.addExtension(new File(firebugpath1));\t \r\n\t\t\t }catch (IOException e){\r\n\t\t\t\t logger.error(\"Exception:\",e);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t profile.setPreference(\"extensions.firebug.allpagesActivation\", \"on\");\r\n//\t\t\t capabilities.setCapability(FirefoxDriver.PROFILE,profile);\r\n\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n\t\t\t System.setProperty(\"webdriver.firefox.driver\", \"C:\\\\Program Files\\\\MozillaFirefox\\\\firefox.exe\");\r\n\t\t\t //if (StringUtils.isNotEmpty(gridUrl)){\r\n\t\t\t if(gridUrl==null){\r\n\t\t\t\t driver =new FirefoxDriver(capabilities); \r\n \t\t\t \r\n\t\t\t }else{\r\n\t\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n\t\t\t }\r\n\t\t}else if(BrowserLib.CHROME.equalsIgnoreCase(browser)){\r\n\t\t\t DesiredCapabilities capabilities =DesiredCapabilities.chrome();\r\n\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n\t\t\t if(gridUrl==null){\r\n\t\t\t\t driver =new ChromeDriver();\t \r\n\t\t\t }else{\r\n\t\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t \r\n\t\t}else if(BrowserLib.INTERNET_EXP.equalsIgnoreCase(browser)){\r\n//\t\t\tset path to iedriver.exe you may need to download it from 32 bits\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.setProperty(\"webDriver.ie.driver\", System.getProperty(\"user.dir\")+\"/src/main/resource/\"+ \"IEDriverserver.exe\");\r\n//\t\t\t create ie instance\r\n\t\t\t DesiredCapabilities capabilities =DesiredCapabilities.internetExplorer();\r\n\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n//\t\t\t if (StringUtils.isNotEmpty(gridUrl)){\r\n// \t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n//\t\t\t }else{\r\n//\t\t\t\t driver =new FirefoxDriver(capabilities); \r\n//\t\t\t }\r\n\t\t\t if(gridUrl.isEmpty()){\r\n\t\t\t\t driver =new InternetExplorerDriver(capabilities); \r\n \t\t\t \r\n\t\t\t }else{\r\n\t\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t}else{\r\n//\t\t\tif no browser passed throw exception\r\n\t\t\tthrow new UnsupportBrowserException();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tthis.driver.manage().deleteAllCookies();\r\n\t\tthis.browserMaximize();\r\n\t\tthis.driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\t\r\n\t\t\r\n\t}", "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}", "@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}", "@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}", "@BeforeEach\n void setUp() {\n chromeDriver.get(\"localhost:8080/login\");\n\n chromeDriver.findElementById(\"username\").sendKeys(ADMIN_LOGIN);\n chromeDriver.findElementById(\"password\").sendKeys(ADMIN_PASSWORD);\n chromeDriver.findElementById(\"submit\").click();\n\n chromeDriver.get(\"localhost:8080/monitor\");\n chromeDriver.findElementById(\"connect\").click();\n\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\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}", "@Before\n public void setUp() {\n gridClient = new GridClient(\"admin\", \"Experitest2012\", \"\", \"http://localhost:8090\");\n client = gridClient.lockDeviceForExecution(\"Untitled\", \"@serialnumber='HT71C0200017'\", 120, TimeUnit.MINUTES.toMillis(2));\n client.setReporter(\"xml\", \"reports\" , \"Untitled\");\n }", "public void setUp() throws Exception {\n // Choose the browser, version, and platform to test\n DesiredCapabilities capabilities = DesiredCapabilities.firefox();\n capabilities.setCapability(\"version\", \"5\");\n capabilities.setCapability(\"platform\", Platform.XP);\n // Create the connection to Sauce Labs to run the tests\n this.driver = new RemoteWebDriver(\n new URL(\"http://mtest1:[email protected]:80/wd/hub\"),\n capabilities);\n\n //driver = new FirefoxDriver();\n baseUrl = \"https://www.linkedin.com\";\n //driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n }", "@Before\n public void setUp() throws Exception {\n DesiredCapabilities capabillities = DesiredCapabilities.firefox();\n capabillities.setCapability(\"version\", \"17\");\n capabillities.setCapability(\"platform\", Platform.XP);\n this.driver = new RemoteWebDriver(\n new URL(\"http://mzazam07:[email protected]:80/wd/hub\"),\n capabillities);\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:[email protected]: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 }", "@DataProvider(name = \"sBoxBrowsersProvider\", parallel=true)\n public Object[][] getRemoteDrivers() throws MalformedURLException {\n DesiredCapabilities firefoxCapabs = DesiredCapabilities.firefox();\n\n //firefoxCapabs.setPlatform(Platform.LINUX);\n //firefoxCapabs.setCapability(\"e34:auth\", \"sjej35po2vgxd7yg\");\n //firefoxCapabs.setCapability(\"e34:video\", true);\n //firefoxCapabs.setCapability(\"acceptInsecureCerts\", true);\n\n\n // Return Chrome capabilities object\n DesiredCapabilities chromeCaps = DesiredCapabilities.chrome();\n\n chromeCaps.setPlatform(Platform.LINUX);\n chromeCaps.setCapability(\"e34:auth\", \"sjej35po2vgxd7yg\");\n chromeCaps.setCapability(\"e34:video\", true);\n chromeCaps.setCapability(\"acceptInsecureCerts\", true);\n\n\n return new Object[][]{\n {firefoxCapabs},\n //{chromeCaps}\n };\n\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}", "@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}", "public void open() {\n setWebDriver();\n }", "public WebDriver getDriver() 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));\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 options = new FirefoxOptions();\r\n\t\t\t\toptions.setProfile(firefoxProfile());\r\n\t\t\t\treturn new FirefoxDriver(options);\r\n\r\n\t\t\tcase \"chrome\":\r\n\t\t\t\tstartChromeDriver();\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\toptions = new FirefoxOptions();\r\n\t\t\t\toptions.setProfile(firefoxProfile());\r\n\t\t\t\treturn new FirefoxDriver(options);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "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}", "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}", "public void connect(String url){\n seleniumDriver.get(url);\n }", "@Given(\"I open a browser and launch the application\")\n public void open_a_browser_and_launch_the_application() throws MalformedURLException\n {\n try {\n if(System.getProperty(\"exemode\").equals(\"remote\")) {\n if(System.getProperty(\"browser\").equals(\"firefox\")){\n System.setProperty(\"webdriver.gecko.driver\", \"./drivers/geckodriver\");\n DesiredCapabilities dc = DesiredCapabilities.firefox();\n dc.setBrowserName(\"firefox\");\n dc.setPlatform(Platform.LINUX);\n driver = new RemoteWebDriver(new URL(UtilConstants.ENDPOINT_SELENIUM_HUB), dc);\n }\n else if(System.getProperty(\"browser\").equals(\"chrome\")){\n System.setProperty(\"webdriver.chrome.driver\", \"./drivers/chromedriver\");\n DesiredCapabilities dc = DesiredCapabilities.chrome();\n dc.setBrowserName(\"chrome\");\n dc.setPlatform(Platform.LINUX);\n driver = new RemoteWebDriver(new URL(UtilConstants.ENDPOINT_SELENIUM_HUB), dc);\n }\n }\n else{\n if(System.getProperty(\"browser\").equals(\"firefox\")){\n System.setProperty(\"webdriver.gecko.driver\", \"./drivers/geckodriver\");\n driver = new FirefoxDriver();\n }\n else if(System.getProperty(\"browser\").equals(\"chrome\")){\n System.setProperty(\"webdriver.chrome.driver\", \"./drivers/chromedriver\");\n driver = new ChromeDriver();\n }\n }\n\n if(driver!=null){\n driver.manage().window().maximize();\n driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n //driver.manage().timeouts().pageLoadTimeout(5, TimeUnit.SECONDS);\n driver.get(ENDPOINT_PHPTRAVELS);\n }\n }\n catch(Exception e){\n e.printStackTrace();\n// System.exit(1);\n }\n }", "public void testRun() throws Exception {\r\n SeleniumTestBase mySeleniumTestBase = new SeleniumTestBase(selenium);\r\n mySeleniumTestBase.loginToUI(\"admin\", \"admin\");\r\n }", "@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 }", "@BeforeClass\n @Parameters({ \"browser\", \"url\" })\n public void startDriver(@Optional(\"chrome\") String WindowBrowser, @Optional(\"http://computer-database.herokuapp.com/computers\") String URL) {\n\n final String os = System.getProperty(\"os.name\");\n userDirectory = System.getProperty(\"user.dir\");\n Log.info(\"Starting to intialise driver\");\n Log.info(\"OS environment: \" + os);\n Log.info(\"Browser: \" + WindowBrowser);\n if (WindowBrowser.equalsIgnoreCase(BROWSERS.FIREFOX.getBrowserName())) {\n final StringBuilder geckoDriverPath = new StringBuilder();\n geckoDriverPath.append(userDirectory + File.separator + \"src\" + File.separator + \"test\" + File.separator + \"resources\");\n if (os.contains(OS.MAC.getOsName())) {\n geckoDriverPath.append(File.separator + \"mac\" + File.separator + \"geckodriver\");\n } else if (os.contains(OS.WIN.getOsName())) {\n geckoDriverPath.append(File.separator + \"win\" + File.separator + \"geckodriver.exe\");\n }\n System.setProperty(\"webdriver.gecko.driver\", geckoDriverPath.toString());\n driver = new FirefoxDriver();\n } else if (WindowBrowser.equalsIgnoreCase(BROWSERS.CHROME.getBrowserName())) {\n final StringBuilder chromeDriverPath = new StringBuilder();\n System.out.println(userDirectory);\n chromeDriverPath.append(userDirectory + File.separator + \"src\" + File.separator + \"test\" + File.separator + \"resources\");\n if (os.contains(OS.MAC.getOsName())) {\n chromeDriverPath.append(File.separator + \"mac\" + File.separator + \"chromedriver\");\n } else if (os.contains(OS.WIN.getOsName())) {\n chromeDriverPath.append(File.separator + \"win\" + File.separator + \"chromedriver.exe\");\n }\n System.setProperty(\"webdriver.chrome.driver\", chromeDriverPath.toString());\n driver = new ChromeDriver();\n } else if (WindowBrowser.equalsIgnoreCase(BROWSERS.SAFARI.getBrowserName())) {\n driver = new SafariDriver();\n }\n driver.manage().window().setSize(new Dimension(1440, 844));\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n BaseURl = URL;\n Log.info(\"Driver initialised successfully\");\n driver.get(BaseURl);\n Log.info(\"Opening URl: \" + URL);\n }", "public static void establishConnection() {\n try {\n PropertiesLoader loader = new PropertiesLoader();\n String sshUser = loader.loadProperty().getProperty(\"sshUser\");\n String sshPassword = loader.loadProperty().getProperty(\"sshPassword\");\n String sshHost = loader.loadProperty().getProperty(\"sshHost\");\n int sshPort = Integer.parseInt(loader.loadProperty().getProperty(\"sshPort\"));\n String remoteHost = loader.loadProperty().getProperty(\"remoteHost\");\n int localPort = Integer.parseInt(loader.loadProperty().getProperty(\"localPort\"));\n int remotePort = Integer.parseInt(loader.loadProperty().getProperty(\"remotePort\"));\n\n String dbUrl = loader.loadProperty().getProperty(\"dbUrl\");\n String dbUser = loader.loadProperty().getProperty(\"dbUser\");\n String dbPassword = loader.loadProperty().getProperty(\"dbPassword\");\n\n DatabaseManager.doSshTunnel(sshUser, sshPassword, sshHost, sshPort, remoteHost, localPort, remotePort);\n connection = DriverManager.getConnection(dbUrl, dbUser, dbPassword);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\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 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}", "private void setIEDriver() throws Exception {\n\t\tcapabilities = DesiredCapabilities.internetExplorer();\n\t\t// capabilities.setCapability(\"ignoreProtectedModeSettings\", true);\n\t\t// capabilities.setCapability(\"ignoreZoomSetting\", true);\n\t\t// capabilities.setCapability(InternetExplorerDriver.IE_ENSURE_CLEAN_SESSION,\n\t\t// true);\n\t\tcapabilities.setJavascriptEnabled(true);\n\n\t\tInternetExplorerOptions ieOptions = new InternetExplorerOptions();\n\t\tieOptions.destructivelyEnsureCleanSession();\n\t\tieOptions.ignoreZoomSettings();\n\t\tieOptions.setCapability(\"ignoreProtectedModeSettings\", true);\n\t\tieOptions.merge(capabilities);\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.ie.driver\", ieDriverLocation);\n\t\t\tmyDriver = new InternetExplorerDriver(ieOptions);\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 = defaultIEVersion;\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\trcDriver.setFileDetector(new LocalFileDetector());\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 = defaultIEVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\t//capabilities.setCapability(\"name\", testMethod.get());\n\t\t\tcapabilities.setCapability(\"build\", testProperties.getString(TEST_ENV)+\" IE-\"+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.ie.driver\", ieDriverLocation);\n\t\t\tmyDriver = new InternetExplorerDriver(ieOptions);\n\t\t\tbreak;\n\t\t}\n\t\tdriver.set(myDriver);\n\t}", "@BeforeMethod\n public void setUp() throws MalformedURLException {\n\n if (DRIVER.get() == null) {\n final String localAppiumServerURL = \"http://127.0.0.1:4723/wd/hub\";\n\n DRIVER.set(new AndroidDriver(new URL(localAppiumServerURL), CapabilitiesEmulator.TWITTER_CAPABILITIES()));\n\n WebDriverRunner.setWebDriver(getDriver());\n }\n\n //For google tests \"https://www.google.com\"\n // For twitter tests U should commit 'open' section\n\n// open(\"https://www.google.com\");\n\n// getDriver()\n// .get(\"https://www.google.com\");\n\n// getDriver()\n// .manage()\n// .timeouts()\n// .implicitlyWait(20, TimeUnit.SECONDS);\n }", "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 }", "@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 }", "@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 }", "@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}", "@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}", "@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 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 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}", "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}", "@BeforeMethod(alwaysRun = true)\n public static void setUp(){\n // ConfigReader.readProperties(Constants.CONFIGURATION_FILEPATH);\n ConfigReader.readProperties(Constants.CONFIGURATION_FILE);\n switch (ConfigReader.getPropertyValue(\"browser\")){\n case \"chrome\":\n //System.setProperty(\"webdriver.chrome.driver\", \"Drivers/chromedriver.exe\");\n WebDriverManager.chromedriver().setup();\n driver=new ChromeDriver();\n break;\n case \"firefox\":\n //System.setProperty(\"webdriver.gecko.driver\", \"Drivers/geckodriver.exe\");\n WebDriverManager.firefoxdriver().setup();\n driver=new FirefoxDriver();\n break;\n default:\n throw new RuntimeException(\"Invalid name of browser\");\n }\n driver.get(ConfigReader.getPropertyValue(\"url\"));\n driver.manage().window().maximize();\n //driver.manage().timeouts().implicitlyWait(Constants.IMPLICIT_WAIT, TimeUnit.SECONDS);\n }", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateDefaultCapabilitiesWithNodeTagsInGridMode() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setBrowser(BrowserType.CHROME.toString());\r\n\t\tcontext.setNodeTags(\"foo,bar\");\r\n\t\tcontext.setRunMode(\"grid\");\r\n\t\tcontext.setMobilePlatformVersion(\"8.0\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S8\");\r\n\t\tcontext.setApp(\"\");\r\n\t\t\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(SeleniumRobotCapabilityType.NODE_TAGS), Arrays.asList(\"foo\", \"bar\"));\r\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 }", "@BeforeTest\n\t\tpublic void setUp() throws MalformedURLException {\n\t\t\t DesiredCapabilities capabilities = new DesiredCapabilities();\n\t\t\t // Set android deviceName desired capability. Set your device name.\n\t\t\t capabilities.setCapability(\"deviceName\", \"Custom Phone - 4.2.2 API 17 - 768*1280\");\n\t\t\t // Set BROWSER_NAME desired capability. It's Android in our case here.\n\t\t\t capabilities.setCapability(\"browserName\", \"Android\");\n\n\t\t\t // Set android VERSION desired capability. Set your mobile device's OS version.\n\t\t\t capabilities.setCapability(\"platformVersion\", \"4.2.2\");\n\n\t\t\t // Set android platformName desired capability. It's Android in our case here.\n\t\t\t capabilities.setCapability(\"platformName\", \"Android\");\n\t\t\t // Created object of RemoteWebDriver will all set capabilities.\n\t\t\t // Set appium server address and port number in URL string.\n\t\t\t // It will launch calculator app in android device.\n\t\t\t // capabilities.setCapability(\"unicodeKeyboard\", true);\n\t\t\t // capabilities.setCapability(\"resetKeyboard\", true);\n\t\t\t driver = new RemoteWebDriver(new URL(\"http://127.0.0.1:4723/wd/hub\"), capabilities);\n\t\t\t driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);\n\t\t\t }", "public static void openConnection() {\n\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.cj.jdbc.Driver\");\n\t\t\tconexion = DriverManager.getConnection(\"jdbc:mysql://192.168.1.51:9090?useTimeone=true&serverTimezone=UTC\",\n\t\t\t\t\t\"remote\", \"Password123\");// credenciales temporales\n\t\t\tSystem.out.print(\"Server Connected\");\n\n\t\t} catch (SQLException | ClassNotFoundException ex) {\n\t\t\tSystem.out.print(\"No se ha podido conectar con mi base de datos\");\n\t\t\tSystem.out.println(ex.getMessage());\n\n\t\t}\n\n\t}", "@Before\n public void setUp() throws MalformedURLException {\n dc.setCapability(MobileCapabilityType.UDID, Main.devicesArrayList.get(Integer.parseInt(Thread.currentThread().getName())).getSerialNumber());\n\n if(Main.cloud){\n dc.setCapability(\"accessKey\", Main.accessKey);\n driver = new AndroidDriver<>(new URL(Main.ServerIP), dc);\n }\n else {\n driver = new AndroidDriver<>(new URL(\"http://localhost:4723/wd/hub\"), dc);\n }\n\n driver.setLogLevel(Level.INFO);\n client = new SeeTestClient(driver);\n }", "@BeforeTest\r\n\r\n\tpublic void setUp() throws Exception {\r\n\t\t// PropertyConfigurator.configure(\"log4j.properties\");\r\n\t\tdriver = new FirefoxDriver();\r\n\t\tbaseUrl = \"https://pghvm-vr7-www1.omnyx.com/Omnyx.Web/login\";\r\n\r\n\t\t// Maximize the browser's window\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\tdriver.manage().timeouts().pageLoadTimeout(15, TimeUnit.SECONDS);\r\n\r\n\t}", "public void openConnection(){\r\n try {\r\n Driver dr = new FabricMySQLDriver();\r\n DriverManager.registerDriver(dr);\r\n log.info(\"registrable driver\");\r\n } catch (SQLException e) {\r\n log.error(e.getMessage());\r\n e.printStackTrace();\r\n }\r\n try {\r\n connection = DriverManager.getConnection(URL, USERNAME, PASSWORD);\r\n log.info(\"get connection\");\r\n } catch (SQLException e) {\r\n log.error(e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }", "public void driverStart(String baseURL) {\n// FirefoxDriverManager.getInstance().setup();\n// driver = new FirefoxDriver();\n// driver.manage().window().maximize();\n// webDriverWait = new WebDriverWait(driver, 10);\n//\n//// ChromeDriverManager.getInstance().setup();\n//// driver = new ChromeDriver();\n//// driver.manage().window().maximize();\n//// webDriverWait = new WebDriverWait(driver, 5);\n//\n// driver.get(baseURL);\n\n FirefoxDriverManager.getInstance().setup();\n WebDriver driver = new FirefoxDriver();\n driver.get(\"http://localhost/litecart/\");\n\n\n }", "public Nexus_HomeLocators(WebDriver driver){\n this.driver = driver;\n }", "@BeforeMethod\n public void acilis() {\n// WebDriverManager.chromedriver().setup();\n// driver = new ChromeDriver();\n Driver.getDriver().manage().window().maximize();\n Driver.getDriver().manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n System.out.println(\"TestNG\");\n actions = new Actions(Driver.getDriver());\n }", "@Override\n protected RemoteWebDriver createLocalDriver() {\n return new FirefoxDriver();\n }", "public static void main(String[] args) throws MalformedURLException {\n\t\t\n\t\t String USERNAME = \"skbasha_F5ElKd\";\n\t\t String AUTOMATE_KEY = \"cmagQMTZkagUR19ygptM\";\n\t\t String url = \"https://\" + USERNAME + \":\" + AUTOMATE_KEY + \"@hub-cloud.browserstack.com/wd/hub\";\n\t\t \n\t\t \n\t\t System.out.println(\"Hello world\");\n\t\t\n\t\tDesiredCapabilities dc = new DesiredCapabilities();\n\t\tdc.setCapability(\"os\", \"Windows\");\n\t\tdc.setCapability(\"os_version\", \"10\");\n\t\tdc.setCapability(\"browser\", \"Chrome\");\n\t\tdc.setCapability(\"browser_version\", \"89\");\n\t\tdc.setCapability(\"name\", \"Basha's First Test\");\n\t\t\n\t\tRemoteWebDriver driver = new RemoteWebDriver(new URL(url), dc);\n\t\t\n\t\tdriver.get(\"https://irctc.co.in\");\n\t\t\n\t\tSystem.out.println(driver.getTitle());\n\n\t}", "public void setUp() throws Exception {\n System.setProperty(\"webdriver.chrome.driver\", \"./chromedriver.exe\");\n ChromeOptions options = new ChromeOptions();\n options.addArguments(\"--start-maximized\");\n options.addArguments(\"--disable-notifications\");\n\n _driver = new ChromeDriver(options);\n _driver.get(\"https://staging.snaptravel.com/search?encrypted_user_id=BZ18EE-j_XQAPEzGzj91cQ\");\n _driver.manage().window().maximize();\n _driver.navigate().refresh();\n _driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n new Page(_driver);\n\n }", "public MyProfileScreenObject(RemoteWebDriver remoteWebDriver) {\n\t\tthis.remoteWebDriver = remoteWebDriver;\n\t\tPageFactory.initElements(remoteWebDriver, this);\n\t}", "private void connect() throws Exception {\n\t\tConnection c = DriverManager.getConnection(\"jdbc:mysql://\" + details[0] + \":3306/\" + details[3], details[1], details[2]);\n\t\tsetConnection(c);\n\t}", "@BeforeClass\n public static void setup() throws Exception {\n print(false, true, \"setup with %d drivers and %d nodes\", nbDrivers, nbNodes);\n ConfigurationHelper.setLoggerLevels(\"classes/tests/config/log4j-embedded-grid.properties\");\n final Map<String, Object> bindings = new HashMap<>();\n bindings.put(\"$nbDrivers\", nbDrivers);\n bindings.put(\"$nbNodes\", nbNodes);\n\n bindings.put(\"$n\", 1);\n String path = \"classes/tests/config/driver.template.properties\";\n Assert.assertTrue(new File(path).exists());\n final TypedProperties driverConfig = ConfigurationHelper.createConfigFromTemplate(path, bindings).set(DEADLOCK_DETECTOR_ENABLED, false);\n print(false, false, \">>> starting the JPPF driver\");\n driver = new JPPFDriver(driverConfig);\n print(false, false, \">>> calling JPPFDriver.start()\");\n driver.start();\n\n runners = new NodeRunner[nbNodes];\n path = \"classes/tests/config/node.template.properties\";\n Assert.assertTrue(new File(path).exists());\n for (int i=0; i<nbNodes; i++) {\n bindings.put(\"$n\", i + 1);\n final TypedProperties nodeConfig = ConfigurationHelper.createConfigFromTemplate(path, bindings).set(DEADLOCK_DETECTOR_ENABLED, false);\n print(false, false, \">>> starting the JPPF node \" + (i + 1));\n runners[i] = new NodeRunner(nodeConfig);\n final NodeRunner runner = runners[i];\n new Thread(() -> runner.start(), String.format(\"[node-%03d]\", i + 1)).start();\n }\n\n final TypedProperties clientConfig = getClientConfig();\n clientConfig.remove(\"jppf.node.uuid\");\n client = new JPPFClient(clientConfig);\n final JMXDriverConnectionWrapper jmx = BaseSetup.getJMXConnection(client);\n print(false, false, \">>> initializing %s\", jmx);\n Assert.assertTrue(jmx.connectAndWait(5000L));\n print(false, false, \">>> JMX connection established\");\n assertTrue(ConcurrentUtils.awaitCondition((ConditionFalseOnException) () -> jmx.nbIdleNodes() >= nbNodes, 5000L, 250L, false));\n print(false, false, \">>> checked JMX connection\");\n }", "@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 }", "@BeforeMethod\n\tpublic void setUpMethod() {\n//\t\tDrivers.setChrome();\n//\t\tthis.driver = Drivers.getDriver();\n\t\tdriver.get(DataReaders.projectProperty(\"baseURL\"));\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 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 }", "public static WebDriver launchOpencart(WebDriver driver) throws MalformedURLException\n\t{\n\t\t\n\t\t/*DesiredCapabilities capability = DesiredCapabilities.chrome();\n capability.setBrowserName(\"chrome\");\n capability.setPlatform(Platform.WIN10);\n driver = new RemoteWebDriver(new URL(Node), capability);*/\n \t\t\n\t\tdriver.get(pro.getProperty(\"OpenCart.URL\"));\n\t\tSystem.out.println(\"Step01: Opencart Application Launched Successfully\");\n\t\t//logger.log(LogStatus.PASS, \"Step 1 : Opencart Application Launched..\");\n\t\tAssert.assertEquals(driver.getTitle(), \"Your Store\");\n\t\tdriver.manage().window().maximize();\n\t\treturn driver;\n\t}", "public void connectObject(Remote remoteObj)\n\tthrows RemoteException\n {\n StubAdapter.connect\n (remoteObj, (com.sun.corba.ee.spi.orb.ORB)ORBManager.getORB()); \n }", "@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 RemoteWebDriver browserProfileConfigurationRemote(BrowserType browser, String host, String phantomJSDriverBinary){\n\t\tLogger.info(\"Starting \"+browser+\" browser in remote configuration\");\n\n\t\tRemoteWebDriver driver = null;\n\t\tString huburl = \"http://\"+host+\"/wd/hub\";\n\n\t\ttry {\n\t\t\tdriver = new RemoteWebDriver(new URL(huburl), getDesiredCapabilities(browser, phantomJSDriverBinary));\n\t\t} catch (Exception e) {\n\t\t\tLogger.error(\"Fail to start browser in remote configuration\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tLogger.info(\"Started \"+browser+\" browser in remote configuration\");\n\t\treturn driver;\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 }", "public static void main(String[] args) throws Exception \n\t{\n\t\tString sRow = \"0\";\n\t\t String sCol = \"0\";\n\t\tWebDriverManager.chromedriver().setup();\n\t\tChromeDriver driver=new ChromeDriver();\n\t\tdriver.get(\"https://www.globalsqa.com/angularJs-protractor/BankingProject/#/login\");\n\t\tThread.sleep(5000);\n\t\tdriver.findElement(By.xpath(\"//button[text()='Bank Manager Login']\")).click();\n\t\tThread.sleep(5000);\n\t\tdriver.findElement(By.xpath(\"//button[contains(text(),'Customers')]\")).click();\n\t\tThread.sleep(5000);\n\t\tFluentWait<ChromeDriver>w=new FluentWait<ChromeDriver>(driver);\n\t\tw.withTimeout(Duration.ofSeconds(50));\n\t\tw.pollingEvery(Duration.ofMillis(1000));\n\t\t\n\t\t/*\n\t\ts=s+e1.size();\n\t\tSystem.out.println(s);\n\t\t\n\t\tfor(WebElement e:e1)\n\t\t{\n\t\t\tSystem.out.println(e.getText());\n\t\t}*/\n\t\t//Heading for columns\n\t\tList<WebElement>heading=driver.findElements(By.xpath(\"//td/child::a\"));\n\t\tfor(WebElement h:heading)\n\t\t{\n\t\t\tSystem.out.print(h.getText());\n\t\t}\n\t\t\n\t\t//get total number of row and test\n\t\ttry\n\t\t{\n\t\t\tList<WebElement> e1=driver.findElements(By.xpath(\"//table/tbody/tr[@class='ng-scope']/td[@class='ng-binding']\"));\n\t\t\tint s=0;\n\t\t\ts=s+e1.size();\n\t\t\tSystem.out.println(s);\n\t\t\tThread.sleep(2000);\n\t\t\tSystem.out.println(\"Table Data is: \");\n\t\t\tfor(int i=1;i<=s;i++)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Row number \"+(i)+\" is\");\n\t\t\t\t\n\t\t\t\tfor(int j=1;j<=3;j++)\n\t\t\t\t{\n\t\t\t\t\tString r=driver.findElement(By.xpath(\"//table/tbody/tr[@class='ng-scope'][\"+i+\"]/td[@class='ng-binding'][\"+j+\"]\")).getText();\n\t\t\t\t\tSystem.out.println(\"Data at Cell with Row \"+ (i) + \" Column \"+(j)+\"is\" +\":\"+r);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tcatch(NoSuchElementException ex)\n\t\t{\n\t\t\t\n\t\t}\n\t\n\t\tString acc=driver.findElement(By.xpath(\"(//tr/td)[4]\")).getText();\n\t\tSystem.out.println(acc);\n\t\t\n\t\tList<WebElement>acc1=driver.findElements(By.xpath(\"(//td)/span[text()]\"));\n\t\tfor(int i=0;i<acc1.size();i++)\n\t\t{\n\t\t\tSystem.out.println(acc1.get(i).getText());\n\t\t}\n\t\t\n\t\t//dymanic scearch content \n\t\tList<WebElement>elem=driver.findElements(By.xpath(\"//tbody/tr[@class='ng-scope']/td[@class='ng-binding']\"));\n\t\telem.size();\n\t\tWebElement x=driver.findElement(By.xpath(\"//input[@ng-model='searchCustomer']\"));\n\t\tx.sendKeys(\"he\");\n\t\tList<WebElement> search=driver.findElements(By.xpath(\"//table/tbody/tr/td[@class='ng-binding'][1]\"));\n\t\tsearch.size();\n\t\tfor(WebElement s:search)\n\t\t{\n\t\t\tSystem.out.println(s.getText());\n\t\t}\n\t\t/*List<WebElement> ro=driver.findElements(By.xpath(\"//tbody/tr[@class='ng-scope']\"));\n\t\tint s=0;\n\t\ts=s+ro.size();\n\t\tSystem.out.println(s);\n\t\tfor(WebElement e:ro)\n\t\t{\n\t\t\tSystem.out.println(e.getText());\n\t\t}*/\n\t\tExpectedCondition<List<WebElement>>ec=ExpectedConditions.numberOfElementsToBeMoreThan(By.xpath(\"//tbody/tr[@class='ng-scope']\"),3);\n\t\tList<WebElement>rows=w.until(ec);\n\t\tint s=0;\n\t\ts=s+rows.size();\n\t\tSystem.out.println(s);\n\t\tfor(WebElement e:rows)\n\t\t{\n\t\t\tSystem.out.println(e.getText());\n\t\t}\n\t\tList<WebElement> e=driver.findElements(By.xpath(\"//td[not(@class='ng-binding')]\"));\n\t\tfor(int i=0;i<=4;i++)\n\t\t{\n\t\t\tSystem.out.println(e.get(i).getText());\n\t\t}\n\t\tString x3=driver.findElement(By.xpath(\"//tbody/tr/td[@class='ng-binding']\")).getText();\n\t\tSystem.out.println(x3);\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}", "@BeforeClass\n @Parameters({\"browser\", \"url\"})\n // Step 2: create a method with appropriate params\n void setup(String mBrowser, String mUrl){\n // Step 3: make use of the parameters\n if(mBrowser.equalsIgnoreCase(\"chrome\")){\n System.setProperty(\"webdriver.chrome.driver\",\"C:/chromedriver_win32/chromedriver.exe\");\n driver = new ChromeDriver();\n }else if(mBrowser.equalsIgnoreCase(\"firefox\")){\n System.setProperty(\"webdriver.chrome.driver\",\"C:/firefox_win32/firefoxdriver.exe\");\n driver = new FirefoxDriver();\n }\n // Step 3: make use of the parameters\n driver.get(mUrl);\n }", "@BeforeTest\n\n public void setup() {\n\n \t System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\Lenovo 1\\\\eclipse-workspace\\\\firstTestProject\\\\src\\\\test\\\\resources\\\\chromedriver.exe\");\n driver = new ChromeDriver();\n\n /* System.setProperty(\"webdriver.gecko.driver\", \"C:\\\\Users\\\\Lenovo 1\\\\eclipseprojects\\\\seleniumTestProject\\\\src\\\\test\\\\resources\\\\geckodriver.exe\");\n driver = new FirefoxDriver();*/\n\n\n// System.setProperty(\"webdriver.chrome.driver\", \"/home/ushani/Selenium_ProjectWS/TwoBulls/seleniumTestProject/src/test/resources/chromedriver\");\n// WebDriver driver = new ChromeDriver();\n\n driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\n driver.get(\"http://www.google.com\");\n }", "public static final BaseRemoteWebDriver getDriver() {\r\n\t\tString browser = ConfigProperties.BROWSER;\r\n\t\tif (driver == null) {\r\n\r\n\t\t\tif (browser.equalsIgnoreCase(FIREFOX)) {\r\n\r\n\t\t\t\tlog.info(\"initializing 'firefox' driver...\");\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities\r\n\t\t\t\t\t\t.firefox();\r\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdriver = new BaseRemoteWebDriver(new URL(\r\n\t\t\t\t\t\t\tConfigProperties.HUBURL), capabilities);\r\n\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (browser.equalsIgnoreCase(CHROME)) {\r\n\r\n\t\t\t\tif (isPlatformWindows())\r\n\r\n\t\t\t\t\tlog.info(\"initializing 'chrome' driver...\");\r\n\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\r\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\tcapabilities.setCapability(\r\n\t\t\t\t\t\tCapabilityType.UNEXPECTED_ALERT_BEHAVIOUR, \"ignore\");\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdriver = new BaseRemoteWebDriver(new URL(\r\n\t\t\t\t\t\t\tConfigProperties.HUBURL), capabilities);\r\n\r\n\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (browser.equalsIgnoreCase(INTERNET_EXPLORER)) {\r\n\r\n\t\t\t\tAssert.assertTrue(isPlatformWindows(),\r\n\t\t\t\t\t\t\"Internet Explorer is not supporting in this OS\");\r\n\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities\r\n\t\t\t\t\t\t.internetExplorer();\r\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdriver = new BaseRemoteWebDriver(new URL(\r\n\t\t\t\t\t\t\tConfigProperties.HUBURL), capabilities);\r\n\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tlog.info(\"initializing 'internet explorer' driver...\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (browser.equalsIgnoreCase(SAFARI)) {\r\n\r\n\t\t\t\tAssert.assertTrue(isPlatformWindows() || isPlatformMac(),\r\n\t\t\t\t\t\t\"Safari is not supporting in this OS\");\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.safari();\r\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdriver = new BaseRemoteWebDriver(new URL(\r\n\t\t\t\t\t\t\tConfigProperties.HUBURL), capabilities);\r\n\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (browser.equalsIgnoreCase(\"html\")) {\r\n\r\n\t\t\t\tlog.info(\"initializing 'html' driver...\");\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities\r\n\t\t\t\t\t\t.htmlUnit();\r\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdriver = new BaseRemoteWebDriver(new URL(\r\n\t\t\t\t\t\t\tConfigProperties.HUBURL), capabilities);\r\n\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn driver;\r\n\t}", "public RemoteWebDriver browserProfileConfigurationCloud(BrowserType browser, String host, String suiteName){\n\t\tLogger.info(\"Starting \"+browser+\" browser in cloud configuration\");\n\n\t\tRemoteWebDriver driver = null;\n\t\tString huburl = \"http://\"+host+\"@ondemand.saucelabs.com:80/wd/hub\";\n\n\t\ttry {\n\t\t\tdriver = new RemoteWebDriver(new URL(huburl), getDesiredCapabilitiesCloud(browser,suiteName));\n\t\t} catch (Exception e) {\n\t\t\tLogger.error(\"Fail to start browser in cloud configuration\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tLogger.info(\"Started \"+browser+\" browser in cloud configuration\");\n\t\treturn driver;\n\t}", "private void getRemoteConnection() {\n String databaseURL = \"jdbc:mysql://insulin-pump-db.ccywbop2kswa.ap-southeast-2.rds.amazonaws.com:3306/insulinpumpdb\";\n String user = \"master\";\n String password = \"Master1234\";\n try {\n conn = DriverManager.getConnection(databaseURL, user, password);\n if (conn != null) {\n java.lang.System.out.println(\"Connected to the database\");\n }\n } catch (SQLException ex) {\n java.lang.System.out.println(\"An error occurred. Maybe user/password is invalid\");\n ex.printStackTrace();\n }\n }", "@BeforeMethod\r\n public void setUp() {\n WebDriver driver = new FirefoxDriver();\r\n driver.get(\"http://selenium.polteq.com/testshop/index.php\");\r\n }", "@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}", "public static void robotInAGrid(int[][] grid) {\n\n }", "private void connectToMaster(int masterPort) throws Exception {\n // Getting the registry \n Registry registry = LocateRegistry.getRegistry(null, masterPort); \n \n // Looking up the registry for the remote object \n this.master = (Master) registry.lookup(\"master\"); \n }", "private void setWebDriver() {\n if (Boolean.valueOf(System.getProperty(\"LOCAL_DRIVER\"))) {\n setLocalWebdriver();\n } else if (Boolean.valueOf(System.getProperty(\"REMOTE_DRIVER\"))) {\n setRemoteWebdriver();\n } else if (Boolean.valueOf(System.getProperty(\"SAUCE_DRIVER\"))) {\n setSauceWebdriver();\n } else {\n throw new WebDriverException(\"Type of driver not specified!!!\");\n }\n this.driver.get().manage().timeouts()\n .implicitlyWait(10, TimeUnit.SECONDS);\n if (browser.equalsIgnoreCase(\"internet explorer\")|browser.equalsIgnoreCase(\"firefox\")|browser.equalsIgnoreCase(\"chrome\")|browser.equalsIgnoreCase(\"safari\")) {\n\t\t\t//we only want to maximise the browser window for desktop browser, not devices.\n \tthis.driver.get().manage().window().maximize();\n\t\t}\n }", "public static KAppiumDriver getDriver(String driverType, String seleniuGridUrl) {\n WebDriver driver = null;\n AppiumDriver appiumDriver = null;\n KAppiumDriver kAppiumDriver = null;\n //for specify download folder\n //String downloadFilepath = ConfigHelper.getDownloadFolder();\n switch (driverType) {\n case \"android\": {\n String appPath = ConfigHelper.getAppPath();\n\n String url = ConfigHelper.getAppiumServerURL();\n DesiredCapabilities capabilities = new DesiredCapabilities();\n\n capabilities.setCapability(MobileCapabilityType.APPIUM_VERSION, ConfigHelper.getAppiumVersion());\n //capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, ConfigHelper.getPlatformVersion());\n capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, ConfigHelper.getDeviceName());\n capabilities.setCapability(MobileCapabilityType.APP, appPath);\n if (!ConfigHelper.getAutomationName().isEmpty()) {\n capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, ConfigHelper.getAutomationName());\n }\n try {\n appiumDriver = new AndroidDriver(new URL(url), capabilities);\n kAppiumDriver = new KAppiumDriver(appiumDriver);\n logger.info(\"AndroidDriver is \" + driverType + \" driver, pointing \" + \" is generated on\" + url);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n break;\n }\n case \"ios\": {\n String appPath = ConfigHelper.getAppPath();\n\n String url = ConfigHelper.getAppiumServerURL();\n DesiredCapabilities capabilities = new DesiredCapabilities();\n //capabilities.setCapability(MobileCapabilityType.BROWSER_NAME, ConfigHelper.getDriverType());\n capabilities.setCapability(MobileCapabilityType.APPIUM_VERSION, ConfigHelper.getAppiumVersion());\n capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, ConfigHelper.getPlatformVersion());\n capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, ConfigHelper.getDeviceName());\n capabilities.setCapability(MobileCapabilityType.APP, appPath);\n if (!ConfigHelper.getAutomationName().isEmpty()) {\n capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, ConfigHelper.getAutomationName());\n }\n try {\n appiumDriver = new IOSDriver(new URL(url), capabilities);\n kAppiumDriver = new KAppiumDriver(appiumDriver);\n logger.info(\"IOSDriver is \" + driverType + \" driver, pointing \" + \" is generated on\" + url);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n break;\n }\n case \"browserstack\":\n String USERNAME = \"a user name\";\n String AUTOMATE_KEY = \"a password\";\n // final String URL = \"http://otis8:[email protected]:80/wd/hub\";\n String URL = \"http://\" + USERNAME + \":\" + AUTOMATE_KEY + \"@hub.browserstack.com:80/wd/hub\";\n if (!ConfigHelper.getString(\"browserstack.url\").isEmpty()) {\n URL = ConfigHelper.getString(\"browserstack.url\");\n logger.info(URL);\n }\n\n //browserstack.debug=true\n DesiredCapabilities caps = new DesiredCapabilities();\n if (!ConfigHelper.getString(\"browserstack.os\").isEmpty()) {\n caps.setCapability(\"os\", ConfigHelper.getString(\"browserstack.os\"));\n logger.info(\"browserstack.os\" + ConfigHelper.getString(\"browserstack.os\"));\n }\n if (!ConfigHelper.getString(\"browserstack.debug\").isEmpty()) {\n caps.setCapability(\"browserstack.debug\", ConfigHelper.getString(\"browserstack.debug\"));\n logger.info(\"browserstack.debug\" + ConfigHelper.getString(\"browserstack.debug\"));\n }\n if (!ConfigHelper.getString(\"browserstack.os_version\").isEmpty()) {\n caps.setCapability(\"os_version\", ConfigHelper.getString(\"browserstack.os_version\"));\n logger.info(\"browserstack.os_version\" + ConfigHelper.getString(\"browserstack.os_version\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserName\").isEmpty()) {\n caps.setCapability(\"browserName\", ConfigHelper.getString(\"browserstack.browserName\"));\n logger.info(\"browserstack.browserName\" + ConfigHelper.getString(\"browserstack.browserName\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browser_version\").isEmpty()) {\n caps.setCapability(\"browser_version\", ConfigHelper.getString(\"browserstack.browser_version\"));\n logger.info(\"browserstack.browser_version\" + ConfigHelper.getString(\"browserstack.browser_version\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserstack.local\").isEmpty()) {\n caps.setCapability(\"browserstack.local\", ConfigHelper.getString(\"browserstack.browserstack.local\"));\n logger.info(\"browserstack.local\" + ConfigHelper.getString(\"browserstack.browserstack.local\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserstack.debug\").isEmpty()) {\n caps.setCapability(\"browserstack.debug\", ConfigHelper.getString(\"browserstack.browserstack.debug\"));\n logger.info(\"browserstack.debug\" + ConfigHelper.getString(\"browserstack.browserstack.debug\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserstack.console\").isEmpty()) {\n caps.setCapability(\"browserstack.console\", ConfigHelper.getString(\"browserstack.browserstack.console\"));\n logger.info(\"browserstack.console\" + ConfigHelper.getString(\"browserstack.browserstack.console\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserstack.networkLogs\").isEmpty()) {\n caps.setCapability(\"browserstack.networkLogs\", ConfigHelper.getString(\"browserstack.browserstack.networkLogs\"));\n logger.info(\"browserstack.networkLogs\" + ConfigHelper.getString(\"browserstack.browserstack.networkLogs\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserstack.video\").isEmpty()) {\n caps.setCapability(\"browserstack.video\", ConfigHelper.getString(\"browserstack.browserstack.video\"));\n logger.info(\"browserstack.video\" + ConfigHelper.getString(\"browserstack.browserstack.video\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserstack.timezone\").isEmpty()) {\n caps.setCapability(\"browserstack.timezone\", ConfigHelper.getString(\"browserstack.browserstack.timezone\"));\n logger.info(\"browserstack.timezone\" + ConfigHelper.getString(\"browserstack.browserstack.timezone\"));\n }\n if (!ConfigHelper.getString(\"browserstack.resolution\").isEmpty()) {\n caps.setCapability(\"resolution\", ConfigHelper.getString(\"browserstack.resolution\"));\n\n logger.info(\"resolution\" + ConfigHelper.getString(\"browserstack.resolution\"));\n }\n if (!ConfigHelper.getString(\"browserstack.selenium_version\").isEmpty()) {\n caps.setCapability(\"selenium_version\", ConfigHelper.getString(\"browserstack.selenium_version\"));\n logger.info(\"selenium_version\" + ConfigHelper.getString(\"browserstack.selenium_version\"));\n }\n if (!ConfigHelper.getString(\"browserstack.device\").isEmpty()) {\n caps.setCapability(\"device\", ConfigHelper.getString(\"browserstack.device\"));\n logger.info(\"device\" + ConfigHelper.getString(\"browserstack.device\"));\n }\n if (!ConfigHelper.getString(\"browserstack.realMobile\").isEmpty()) {\n caps.setCapability(\"realMobile\", ConfigHelper.getString(\"browserstack.realMobile\"));\n logger.info(\"realMobile\" + ConfigHelper.getString(\"browserstack.realMobile\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserstack.appium_version\").isEmpty()) {\n caps.setCapability(\"browserstack.appium_version\", ConfigHelper.getString(\"browserstack.browserstack.appium_version\"));\n logger.info(\"browserstack.appium_version\" + ConfigHelper.getString(\"browserstack.browserstack.appium_version\"));\n }\n if (!ConfigHelper.getString(\"browserstack.deviceOrientation\").isEmpty()) {\n caps.setCapability(\"deviceOrientation\", ConfigHelper.getString(\"browserstack.deviceOrientation\"));\n logger.info(\"deviceOrientation\" + ConfigHelper.getString(\"browserstack.deviceOrientation\"));\n\n }\n // WebDriver driver = null;\n try {\n driver = new RemoteWebDriver(new URL(URL), caps);\n logger.info(\"browserStack is \" + driverType + \" driver, pointing \" + seleniuGridUrl, caps + \" is generated\");\n } catch (MalformedURLException malformedURLException) {\n logger.info(malformedURLException.toString());\n return null;\n }\n break;\n case \"chrome\":\n //final ChromeOptions chromeOptions = new ChromeOptions();\n HashMap<String, Object> chromePrefs = new HashMap<String, Object>();\n chromePrefs.put(\"profile.default_content_settings.popups\", 0);\n chromePrefs.put(\"download.prompt_for_download\", \"false\");\n chromePrefs.put(\"download.directory_upgrade\", \"true\");\n chromePrefs.put(\"plugins.always_open_pdf_externally\", \"true\");\n chromePrefs.put(\"download.default_directory\", ConfigHelper.getDownloadFolder());\n chromePrefs.put(\"plugins.plugins_disabled\", new String[]{\n \"Adobe Flash Player\",\n \"Chrome PDF Viewer\"\n });\n chromePrefs.put(\"pdfjs.disabled\", true);\n ChromeOptions chromeOptions = new ChromeOptions();\n chromeOptions.setExperimentalOption(\"prefs\", chromePrefs);\n chromeOptions.addArguments(\"start-maximized\");\n chromeOptions.addArguments(\"disable-infobars\");\n chromeOptions.addArguments(\"--test-type\");\n DesiredCapabilities cap = DesiredCapabilities.chrome();\n cap.setCapability(CapabilityType.UNEXPECTED_ALERT_BEHAVIOUR, UnexpectedAlertBehaviour.IGNORE);\n cap.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n cap.setCapability(ChromeOptions.CAPABILITY, chromeOptions);\n\n if (ConfigHelper.getString(\"chrome.headless\").toLowerCase().contains(\"t\") || ConfigHelper.getString(\"chrome.headless\").toLowerCase().contains(\"y\")) {\n chromeOptions.addArguments(\"--headless\");\n logger.info(\"chrome headless mode adopted\");\n }\n\n if ((null == seleniuGridUrl) || (seleniuGridUrl.equals(\"\") || seleniuGridUrl.equals(\"127.0.0.1\"))) {\n //remove later, should be a better way - Kris\n //System.setProperty(\"webdriver.chrome.driver\", \"c:/source/chromedriver.exe\");\n driver = new ChromeDriver(cap);\n\n logger.info(driverType + \" driver is generated locally\");\n } else {\n try {\n\n driver = new RemoteWebDriver(new URL(ConfigHelper.getString(\"selenium.grid.url\")), cap);\n logger.info(\"remoteWebdriver is \" + driverType + \" driver, pointing \" + seleniuGridUrl, cap + \" is generated\");\n } catch (MalformedURLException malformedURLException) {\n logger.info(malformedURLException.toString());\n return null;\n }\n }\n break;\n case \"firefox\":\n if ((null == seleniuGridUrl) || (seleniuGridUrl.equals(\"\"))) {\n FirefoxOptions options = new FirefoxOptions();\n driver = new FirefoxDriver(options);\n logger.info(driverType + \" driver is generated locally\");\n } else {\n try {\n DesiredCapabilities capability = DesiredCapabilities.firefox();\n driver = new RemoteWebDriver(new URL(ConfigHelper.getString(\"selenium.grid.url\")), capability);\n logger.info(\"remoteWebdriver is \" + driverType + \" driver, pointing \" + seleniuGridUrl, capability + \" is generated\");\n } catch (MalformedURLException malformedURLException) {\n logger.info(malformedURLException.toString());\n return null;\n }\n }\n break;\n case \"edge\":\n if ((null == seleniuGridUrl) || (seleniuGridUrl.equals(\"\"))) {\n EdgeOptions options = new EdgeOptions();\n driver = new EdgeDriver(options);\n logger.info(driverType + \" driver is generated locally\");\n } else {\n try {\n DesiredCapabilities capability = DesiredCapabilities.edge();\n driver = new RemoteWebDriver(new URL(ConfigHelper.getString(\"selenium.grid.url\")), capability);\n logger.info(\"remoteWebdriver is \" + driverType + \" driver, pointing \" + seleniuGridUrl, capability + \" is generated\");\n } catch (MalformedURLException malformedURLException) {\n logger.info(malformedURLException.toString());\n return null;\n }\n }\n break;\n case \"phantomjs\":\n if ((null == seleniuGridUrl) || (seleniuGridUrl.equals(\"\"))) {\n driver = new PhantomJSDriver();\n logger.info(driverType + \" driver is generated locally\");\n } else {\n try {\n DesiredCapabilities capability = DesiredCapabilities.edge();\n driver = new RemoteWebDriver(new URL(ConfigHelper.getString(\"selenium.grid.url\")), capability);\n logger.info(\"remoteWebdriver is \" + driverType + \" driver, pointing \" + seleniuGridUrl, capability + \" is generated\");\n } catch (MalformedURLException malformedURLException) {\n logger.info(malformedURLException.toString());\n return null;\n }\n }\n driver = new PhantomJSDriver();\n break;\n case \"ie\":\n if ((null == seleniuGridUrl) || (seleniuGridUrl.equals(\"\"))) {\n InternetExplorerOptions options = new InternetExplorerOptions();\n driver = new InternetExplorerDriver();\n logger.info(driverType + \" driver is generated locally\");\n } else {\n try {\n DesiredCapabilities capability = DesiredCapabilities.internetExplorer();\n driver = new RemoteWebDriver(new URL(ConfigHelper.getString(\"selenium.grid.url\")), capability);\n logger.info(\"remoteWebdriver is \" + driverType + \" driver, pointing \" + seleniuGridUrl, capability + \" is generated\");\n } catch (MalformedURLException malformedURLException) {\n logger.info(malformedURLException.toString());\n return null;\n }\n }\n\n break;\n case \"safari\":\n if ((null == seleniuGridUrl) || (seleniuGridUrl.equals(\"\"))) {\n SafariOptions options = new SafariOptions();\n driver = new SafariDriver(options);\n logger.info(driverType + \" driver is generated locally\");\n } else {\n try {\n DesiredCapabilities capability = DesiredCapabilities.safari();\n driver = new RemoteWebDriver(new URL(ConfigHelper.getString(\"selenium.grid.url\")), capability);\n logger.info(\"remoteWebdriver is \" + driverType + \" driver, pointing \" + seleniuGridUrl, capability + \" is generated\");\n } catch (MalformedURLException malformedURLException) {\n logger.info(malformedURLException.toString());\n return null;\n }\n }\n break;\n default:\n throw new IllegalArgumentException(\"the browser type is not defined\");\n }\n\n if (kAppiumDriver != null) {\n return kAppiumDriver;\n }\n return (KAppiumDriver) driver;\n }", "private void connectDebugger(IProgressMonitor monitor) throws CoreException {\n\n ILaunch launch = findLaunch();\n if (launch == null) {\n return;\n }\n\n try {\n List<ConfigurationSettingsDescription> settings = environment.getCurrentSettings();\n\n String debugPort = Environment.getDebugPort(settings);\n if ( !confirmSecurityGroupIngress(debugPort, settings) ) {\n return;\n }\n\n IVMConnector debuggerConnector = JavaRuntime.getDefaultVMConnector();\n\n Map<String, String> arguments = new HashMap<String, String>();\n arguments.put(\"timeout\", \"60000\");\n arguments.put(\"hostname\", getEc2InstanceHostname());\n arguments.put(\"port\", debugPort);\n\n debuggerConnector.connect(arguments, monitor, launch);\n } catch (Exception e) {\n AwsToolkitCore.getDefault().logException(\"Unable to connect debugger: \" + e.getMessage(), e);\n }\n }", "public void setUp()\n\t{\n\t\tif (driver == null){\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSystem.out.println(System.getProperty(\"user.dir\")+ \"\\\\src\\\\test\\\\resources\\\\properties\\\\Config.properties\");\n\t\t\t\tfis = new FileInputStream(System.getProperty(\"user.dir\")+ \"\\\\src\\\\test\\\\resources\\\\properties\\\\Config.properties\");\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t\t\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconfig.load(fis);\n\t\t\t\tSystem.out.println(\"config file loaded\");\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tfis = new FileInputStream(System.getProperty(\"user.dir\")+\"\\\\src\\\\test\\\\resources\\\\properties\\\\OR.properties\");\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tOR.load(fis);\n\t\t\t\t//config.load(fis);\n\t\t\t\tSystem.out.println(\"OR file loaded\");\n\t\t\t\tSystem.out.println(System.getenv(\"browser\"));\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tif (System.getenv(\"browser\")!= null)\n\t\t\t\t{\n\t\t\t\t\tbrowser = System.getenv(\"browser\");\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\telse{\n\t\t\t\t\t\n\t\t\t\t\tbrowser = config.getProperty(\"browser\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\tconfig.setProperty(browser, browser);\n\t\tif (config.getProperty(\"browser\").equals(\"chrome\"))\n\t\t\t\n\t\t{\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",System.getProperty(\"user.dir\") + \"\\\\src\\\\test\\\\resources\\\\executables\\\\chromedriver.exe\");\n\t\t\tdriver = new ChromeDriver();\n\t\t\tSystem.out.println(\"Chrome Launched !!!\");\n\t\t}\n\t\t//System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Program Files (x86)\\\\chromedriver_win32\\\\chromedriver.exe\");\n\t\t//driver = new ChromeDriver();\n\t\tSystem.out.println(System.getProperty(\"TestEnv\"));\n\t\tdriver.get(config.getProperty(\"testsiteurl\").replace(\"{TestEnv}\", System.getProperty(\"TestEnv\")));\n\t\tSystem.out.println(\"Navigated to : \" + config.getProperty(\"testsiteurl\"));\n\t\tdriver.manage().window().maximize();\n\t\t\n\t}", "@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}", "public static void loginToSmartBear(WebDriver driver) throws InterruptedException, IOException {\n Properties properties = new Properties();\n FileInputStream file = new FileInputStream(\"configuration.properties\");\n properties.load(file);\n String url = properties.getProperty(\"smartbearUrl\");\n\n\n //#3- This method simply logs in to SmartBear when you call it.\n //#4- Accepts WebDriver type as parameter\n driver.get(url);\n\n Thread.sleep(3000);\n driver.findElement(By.id(\"ctl00_MainContent_username\")).sendKeys(\"Tester\");\n //4. Enter password: “com.cybertek.extrapractice.test”\n driver.findElement(By.id(\"ctl00_MainContent_password\")).sendKeys(\"com/cybertek/extrapractice/test\");\n\n //5. Click to Login button\n driver.findElement(By.id(\"ctl00_MainContent_login_button\")).click();\n\n }", "public PGShowHomePage(AppiumDriver driver) throws MalformedURLException {\r\n\t\tthis.driver = driver;\r\n\t\tlstTestData = db.getTestDataObject(\"Select * from PGShowHomePage\", \"Input\");\r\n\t\tlstObject = db.getTestDataObject(\"Select * from PGShowHomePage\", \"ObjectRepository\");\r\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}", "@Test\n\tpublic void launchSite()\t{\n\t\t\n\t\tSystem.setProperty(EdgeDriverService.EDGE_DRIVER_EXE_PROPERTY, \"D:\\\\Selenium Drivers\\\\MicrosoftWebDriver.exe\");\n\t\tEdgeDriver driver = new EdgeDriver();\n\t\tdriver.get(\"http://google.com\");\n\t\t\n\t}", "@When(\"^I see Giphy grid preview$\")\n public void ISeeGiphyGridPreview() throws Exception {\n Assert.assertTrue(\"Giphy grid is not shown\", getGiphyPreviewPage().isGridVisible());\n }", "@BeforeSuite\n\tpublic void initialize(){\n\t\t\n\t\t// loading all the configuration values\n\t\ttry{\n\t\t\tconfig = new Properties();\n\t\t\tFileInputStream fp = new FileInputStream(System.getProperty(\"user.dir\")+\"\\\\src\\\\com\\\\hybridsec\\\\telepath\\\\config\\\\config.properties\");\n\t\t\tconfig.load(fp);\n\t\t\t\n\t\t\t// loading Objects Repository\n\t\t\tOR = new Properties();\n\t\t\tfp = new FileInputStream(System.getProperty(\"user.dir\")+\"\\\\src\\\\com\\\\hybridsec\\\\telepath\\\\config\\\\OR.properties\");\n\t\t\tOR.load(fp);\n\t\t\t\n\t\t\tdatatable = new Xls_Reader(System.getProperty(\"user.dir\")+\"\\\\src\\\\com\\\\hybridsec\\\\telepath\\\\xls\\\\Controller.xlsx\");\n\t\t\t\n\t\t\t// checking the type of browser and launching the browser\n\t\t\tif(config.getProperty(\"browserType\").equalsIgnoreCase(\"Firefox\")){\n\t\t\t\t\n\t\t\t\twbDv = new FirefoxDriver();\n\t\t\t\t\n\t\t\t}else if(config.getProperty(\"browserType\").equalsIgnoreCase(\"IE\")){\n\t\t\t\t\n\t\t\t\tSystem.setProperty(\"webdriver.ie.driver\", System.getProperty(\"user.dir\")+\"\\\\OtherUtilities\\\\IEDriverServer.exe\");\n\t\t\t\twbDv = new InternetExplorerDriver();\n\t\t\t\t\n\t\t\t}else if(config.getProperty(\"browserType\").equalsIgnoreCase(\"Chrome\")){\n\t\t\t\t\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\")+\"\\\\OtherUtilities\\\\chromedriver.exe\");\n\t\t\t\twbDv = new ChromeDriver();\n\t\t\t}\n\t\t\t\n\t\t\tdriver = new EventFiringWebDriver(wbDv);\n\t\t\t\n\t\t\t// Putting an implicit wait after every Action or Event\n\t\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\t\t\n\t\t\t// Maximize the browser window\n\t\t\tdriver.manage().window().maximize();\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@BeforeTest\r\n\tpublic void setup()throws InterruptedException, MalformedURLException, IOException {\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t// Stream the data from the config properties file and store in the object input\r\n\t\t\tinput = new FileInputStream(\"./config.properties\");\r\n\t\t\tProperties prop = new Properties();\r\n\t\t\t\r\n\t\t\t// Load the data into prop object\r\n\t\t\tprop.load(input);\r\n\t\t\t\r\n\t\t\t//Assign the values into the variables taken from config properties file\r\n\t\t\tstrBrowser = prop.getProperty(\"BROWSER\");\r\n\t\t\tstrBaseUrl = prop.getProperty(\"BASE_URL\");\r\n\t\t\t\r\n\t\t\t//Choose the browser and launch by getting the values from config properties file\r\n\t\t\tif(strBrowser.equalsIgnoreCase(\"chrome\")) {\r\n\t\t\t\t\r\n\t\t\t\t//Sets the property of the chrome driver\r\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./Drivers/chromedriver.exe\");\r\n\t\t\t\t\r\n\t\t\t\tdriver = new ChromeDriver();\r\n\t\t\t\t\r\n\t\t\t\t// Yet to provide the details for both IE and firefox below\r\n\t\t\t} else if(strBrowser.equalsIgnoreCase(\"ie\")) {\r\n\t\t\t\tSystem.setProperty(\"\", \"\");\r\n\t\t\t\tdriver = new InternetExplorerDriver();\r\n\t\t\t} else if(strBrowser.equalsIgnoreCase(\"firefox\")) {\r\n\t\t\t\tSystem.setProperty(\"\", \"\");\r\n\t\t\t\tdriver = new FirefoxDriver();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdriver.get(strBaseUrl);\r\n\t\t\tdriver.manage().window().maximize();\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tSystem.out.println(\"Provide a valid data for driver\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "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 }", "@Test(dataProvider = \"dp\")\r\n\t public void DataInfo(String user,String pwd,String confpwd) {\nString chromePath=(\"C:\\\\Users\\\\Training_b6b.01.07\\\\Desktop\\\\Selenium\\\\jars\\\\ChromeDriver.exe\");\r\nSystem.setProperty(\"webdriver.chrome.driver\",chromePath);\r\nWebDriver driver=new ChromeDriver();\r\ndriver.get(\"http://www.demoaut.com/\");\r\ndriver.findElement(By.partialLinkText(\"REGISTER\")).click();\r\n \r\n\r\n\r\ndriver.findElement(By.name(\"email\")).sendKeys(user);\r\n\r\ndriver.findElement(By.name(\"password\")).sendKeys(pwd);\r\n\r\ndriver.findElement(By.name(\"confirmPassword\")).sendKeys(confpwd);\r\n\r\n\r\ndriver.close();\r\n}", "@Test\n\t@BeforeSuite\n\tpublic void OpenBrowser() throws InterruptedException {\n\t\t\n\t\tdriver = new FirefoxDriver();\n\t\tdriver.get(\"https://www.gmail.com\");\n\t\tmanageInit();\n\t\n\t}", "@BeforeSuite\n\tpublic void initialize(){\n\t\t\n\t\ttry{\n\t\t\t\n\t\t\t// loading config Repositories\n\t\t\tconfig = new Properties();\n\t\t\tFileInputStream fp = new FileInputStream(System.getProperty(\"user.dir\")+\"\\\\src\\\\com\\\\hrm\\\\config\\\\config.properties\");\n\t\t\tconfig.load(fp);\n\t\t\t\n\t\t\t\n\t\t\t// checking the type of browser\n\t\t\tif(config.getProperty(\"browserType\").equalsIgnoreCase(\"Firefox\")){\n\t\n\t\t\t\twbDv = new FirefoxDriver();\n\t\t\t\t\n\t\t\t}else if(config.getProperty(\"browserType\").equalsIgnoreCase(\"IE\")){\n\t\t\t\t\n\t\t\t\twbDv = new InternetExplorerDriver();\n\t\t\t\tDesiredCapabilities ieCapabilities = DesiredCapabilities.internetExplorer();\n\t\t\t\tieCapabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);\n\t\t\t\twbDv = new InternetExplorerDriver(ieCapabilities);\n\t\t\t}else if(config.getProperty(\"browserType\").equalsIgnoreCase(\"Chrome\")){\n\t\t\t\t\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\")+\"\\\\OtherUtility\\\\chromedriver.exe\");\n\t\t\t wbDv = new ChromeDriver();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tdriver = new EventFiringWebDriver(wbDv);\n\t\t\t\n\t\t\t// putting an implicit wait after every Action or Event\n\t\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\t\t\n\t\t\t// Loading the browser\n\t\t\tdriver.get(\"http://croissanceservices.com/hrm\");\n\t\t\t\n\t\t\t// opening the browser\n\t\t\tdriver.manage().window().maximize();\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\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}", "public void connect() throws IOException {\r\n \t\t \r\n \t\t \tClassLoader saved = Thread.currentThread().getContextClassLoader();\r\n\t\t\ttry {\r\n\t\t\t\t // Parse url (rsuite:/http://host/user/session/moId)\r\n\t\t\t\t log.println(\"INCOMING URL IS: \" + url);\r\n\t\t\t\t log.println(\"PARSING URL TO GET PARAMETERS...\");\r\n\t\t\t\t \r\n\t\t\t\t // url initially comes through with extension to avoid dialog window\r\n\t\t\t\t docURL = RSuiteProtocolUtils.parseRSuiteProtocolURL(url);\r\n\t\t\t\t host = docURL.getHost();\r\n\t\t\t\t protocol = docURL.getProtocol().concat(\"//\");\r\n\t\t\t\t username = docURL.getUserName();\r\n\t\t\t\t sessionKey = docURL.getSessionKey();\r\n\t\t\t\t moId = docURL.getMoId();\r\n\t\t\t\t // set the connection so we have it later\r\n\t\t\t\t _connection = this;\r\n\r\n\t\t\t\t log.println(\"HOST: \" + host);\r\n\t\t\t\t log.println(\"USERNAME: \" + username);\r\n\t\t\t\t log.println(\"SESSION KEY: \" + sessionKey);\r\n\t\t\t\t log.println(\"MOID: \" + moId);\r\n\t\t\t\t \r\n\t\t\t\t Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());\r\n\t\t\t\t \r\n\t\t\t\t // CONNECT TO RSUITE IF SESSION NOT PRESENT\t\t\t\t \r\n\t\t\t\t log.println(\"CONNECTION TO RSUITE...\");\r\n\t\t\t\t if(sessionKey == null){\r\n\t\t\t\t\t log.println(\"SESSION DOES NOT EXIST, PROMPT FOR LOGIN\");\r\n\t\t\t\t\t RSuiteLoginDialog login = new RSuiteLoginDialog();\r\n\t\t\t\t\t login.setLocationRelativeTo(null);\r\n\t\t\t\t\t login.setVisible(true);\r\n\t\t\t\t }\r\n\t\t\t\t \r\n\t\t\t\t // SESSION WAS PASSED IN, INITIALIZE REPOSITORY\r\n\t\t\t\t if(repository == null){\r\n\t\t\t\t\t log.println(\"SESSION PASSED IN BY URL, INITIALIZE REPOSITORY\");\r\n\t\t\t\t\t repository = new RsuiteRepositoryImpl(username, \"\", host);\r\n\t\t\t\t\t log.println(\"REPOSITORY INITIALIZED.\");\r\n\t\t\t\t\t \r\n\t\t\t\t\t // NO NEED TO LOGIN SINCE WE HAVE SESSION KEY ALREADY\r\n\t\t\t\t\t log.println(\"SETTING THE REPOSITORY SESSION KEY...\");\r\n\t\t\t\t\t repository.sessionKey = sessionKey;\r\n\t\t\t\t\t log.println(\"SESSION KEY SET. NO NEED FOR LOGIN\");\r\n\t\t\t\t }\t\t\t\t \r\n\t\t\t}\r\n\t\t\tcatch (Throwable t) {\r\n\t\t\t if (log != null) {\r\n\t\t\t t.printStackTrace(log);\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t\tfinally{\r\n\t\t\t\tThread.currentThread().setContextClassLoader(saved);\r\n\t\t\t}\r\n\t\t}", "public static void launchRallyUrl(WebDriver driver)\n\t{\n\n\t\tNavigate.get(driver, Directory.Rally_Url);\n\t}", "private void initDriver(){\r\n String browserToBeUsed = (String) jsonConfig.get(\"browserToBeUsed\");\r\n switch (browserToBeUsed) {\r\n case \"FF\":\r\n System.setProperty(\"webdriver.gecko.driver\", (String) jsonConfig.get(\"fireFoxDriverPath\"));\r\n FirefoxProfile ffProfile = new FirefoxProfile();\r\n // ffProfile.setPreference(\"javascript.enabled\", false);\r\n ffProfile.setPreference(\"intl.accept_languages\", \"en-GB\");\r\n\r\n FirefoxOptions ffOptions = new FirefoxOptions();\r\n ffOptions.setProfile(ffProfile);\r\n driver = new FirefoxDriver(ffOptions);\r\n break;\r\n case \"CH\":\r\n String driverPath = (String) jsonConfig.get(\"chromeDriverPath\");\r\n System.setProperty(\"webdriver.chrome.driver\", driverPath);\r\n\r\n Map<String, Object> prefs = new HashMap<String, Object>();\r\n prefs.put(\"profile.default_content_setting_values.notifications\", 2);\r\n\r\n ChromeOptions options = new ChromeOptions();\r\n options.setExperimentalOption(\"prefs\", prefs);\r\n options.addArguments(\"--lang=en-GB\");\r\n driver = new ChromeDriver(options);\r\n break;\r\n case \"IE\":\r\n System.setProperty(\"webdriver.ie.driver\", (String) jsonConfig.get(\"ieDriverPath\"));\r\n\r\n InternetExplorerOptions ieOptions = new InternetExplorerOptions();\r\n ieOptions.disableNativeEvents();\r\n ieOptions.requireWindowFocus();\r\n ieOptions.introduceFlakinessByIgnoringSecurityDomains();\r\n driver = new InternetExplorerDriver(ieOptions);\r\n }\r\n\r\n driver.manage().window().maximize();\r\n }", "@Before\n\t public void setUp() throws Exception {\n\t \n\t DesiredCapabilities capabilities = new DesiredCapabilities();\n\t capabilities.setCapability(\"platformName\", \"Android\");\n\t //capabilities.setCapability(\"deviceName\", \"192.168.249.101:5555\");\n\t capabilities.setCapability(\"deviceName\", \"192.168.249.101:5555\");\n\t //capabilities.setCapability(\"deviceName\", \"f97f0457d73\");\n\t //capabilities.setCapability(\"platformVersion\", \"4.3\");\n\t //capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, \"emulator-5554\");\n\t capabilities.setCapability(\"noReset\", \"true\");\n\t capabilities.setCapability(\"unicodeKeyboard\",\"true\"); //输入中文\n\t capabilities.setCapability(\"resetKeyboard\",\"true\"); //输入中文\n\t capabilities.setCapability(\"appPackage\", \"com.worktile\"); //worktile的包\n\t capabilities.setCapability(\"appActivity\", \".ui.external.WelcomeActivity\"); //启动的activity .ui.external.WelcomeActivity\n\t try {\n\t\t\t\t//driver = new AndroidDriver<MobileElement>(new URL(\"http://192.168.31.225:4723/wd/hub\"), capabilities);\n\t\t\t\t//driver = new AndroidDriver<MobileElement>(new URL(\"http://127.0.0.1:4723/wd/hub\"), capabilities);\n\t\t\t\tdriver = new AndroidDriver<MobileElement>(new URL(\"http://192.168.1.104:4723/wd/hub\"), capabilities);\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS); \n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tdriver.quit();\n\t\t\t\tSystem.err.println(\"launch Android driver fail!\"+e.toString());\n\t\t\t}\n\t }", "private void openConnection () {\n String[] labels = {\"Host :\", \"Port :\"};\n String[] initialValues = {\"localhost\", \"1111\"};\n StandardDialogClient openHandler = new StandardDialogClient () {\n\t@Override\n\tpublic void dialogDismissed (StandardDialog d, int code) {\n\t try {\n\t InputDialog inputD = (InputDialog)d;\n\t if (inputD.wasCancelled ()) return;\n\t String[] results = inputD.getResults ();\n\t String host = results[0];\n\t String port = results[1];\n\t TwGateway connection =\n\t (TwGateway)TwGateway.openConnection (host, port);\n\t // The following call will fail if the G2 is secure.\n\t connection.login();\n\t setConnection (connection);\n\t } catch (Exception e) {\n\t new WarningDialog (null, \"Error During Connect\", true, e.toString (), null).setVisible (true);\n\t }\n\t}\n };\t \n\n new ConnectionInputDialog (getCurrentFrame (), \"Open Connection\",\n\t\t\t\t true, labels, initialValues,\n\t\t\t\t (StandardDialogClient) openHandler).setVisible (true);\n }", "@Parameters(\"browser\")\n\t@BeforeMethod (groups= {\"smoke\"})\n\tpublic void setUp(@Optional String browser) {//name of the parameter from xml\n\t\tdriver=Driver.getDriver(browser);\n\t\tdriver.get(ConfigurationReader.getProperty(\"url\"));\n\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\t}", "public GridDataset openAsGridDataset(HttpServletRequest request, HttpServletResponse response) throws IOException {\n return isRemote ? ucar.nc2.dt.grid.GridDataset.open(path) : datasetManager.openGridDataset(request, response, path);\n }", "public Assignment4SwingClient() {\n buildGUI();\n remoteTuna = getRemoteSession();\n }" ]
[ "0.65274", "0.646047", "0.63609356", "0.6066724", "0.59509987", "0.59421045", "0.58814055", "0.5789115", "0.5758093", "0.5756172", "0.57369095", "0.5707279", "0.5696787", "0.5664401", "0.56523824", "0.56397504", "0.5604741", "0.5566931", "0.5547055", "0.55371857", "0.54513514", "0.54424846", "0.54100764", "0.5409419", "0.5407993", "0.5368461", "0.53261214", "0.529952", "0.52907896", "0.52876174", "0.5283285", "0.5275353", "0.527391", "0.52590215", "0.5250817", "0.5247234", "0.52331394", "0.5198506", "0.5194357", "0.51895994", "0.51834476", "0.51800853", "0.5178965", "0.5156988", "0.515221", "0.5148676", "0.5132693", "0.51232946", "0.50880826", "0.5086503", "0.50835127", "0.5083096", "0.50717026", "0.50694597", "0.5055457", "0.50500494", "0.5041254", "0.5039682", "0.5033591", "0.5028713", "0.5024598", "0.5020001", "0.50180817", "0.5012365", "0.50115764", "0.5005602", "0.5001963", "0.4996608", "0.49900055", "0.49885586", "0.49878025", "0.49854425", "0.49835974", "0.49774513", "0.49745592", "0.49728927", "0.49679017", "0.49665102", "0.4952833", "0.49519932", "0.49496412", "0.4949317", "0.49408373", "0.49401143", "0.49396396", "0.4932934", "0.49310827", "0.4930551", "0.4929169", "0.49270907", "0.4917728", "0.49094632", "0.4900516", "0.48985946", "0.48967642", "0.4896216", "0.4896205", "0.4895832", "0.4894811", "0.4888481" ]
0.5313283
27
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 openStackRequestEClass = createEClass(OPEN_STACK_REQUEST); createEAttribute(openStackRequestEClass, OPEN_STACK_REQUEST__PROJECT_NAME); openstackRequestDeleteEClass = createEClass(OPENSTACK_REQUEST_DELETE); createEAttribute(openstackRequestDeleteEClass, OPENSTACK_REQUEST_DELETE__OBJECT_TYPE); createEAttribute(openstackRequestDeleteEClass, OPENSTACK_REQUEST_DELETE__OBJECT_NAME); openstackRequestPollEClass = createEClass(OPENSTACK_REQUEST_POLL); virtualMachineTypeEClass = createEClass(VIRTUAL_MACHINE_TYPE); createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__DESCRIPTION); createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__NUMBER_OF_CORES); createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__MEMORY_SIZE_MB); createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__ROOT_DISK_SIZE_GB); createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__DISK_SIZE_GB); createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__VOLUME_SIZE_GB); createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__IMAGE_NAME); createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__FLAVOR_NAME); createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__NEED_PUBLIC_IP); createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__DEPLOYMENT_STATUS); createEReference(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__INCOMING_SECURITY_RULES); createEReference(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__OUTBOUND_SECURITY_RULES); securityRuleEClass = createEClass(SECURITY_RULE); createEAttribute(securityRuleEClass, SECURITY_RULE__PORT_RANGE_START); createEAttribute(securityRuleEClass, SECURITY_RULE__PORT_RANGE_END); createEAttribute(securityRuleEClass, SECURITY_RULE__PREFIX); createEAttribute(securityRuleEClass, SECURITY_RULE__IP_PROTOCOL); // Create enums securityRuleProtocolEEnum = createEEnum(SECURITY_RULE_PROTOCOL); }
{ "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\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttableEClass = createEClass(TABLE);\n\t\tcreateEReference(tableEClass, TABLE__DATABASE);\n\t\tcreateEReference(tableEClass, TABLE__COLUMNS);\n\t\tcreateEReference(tableEClass, TABLE__CONSTRAINTS);\n\n\t\ttableConstraintEClass = createEClass(TABLE_CONSTRAINT);\n\t\tcreateEAttribute(tableConstraintEClass, TABLE_CONSTRAINT__NAME);\n\t\tcreateEReference(tableConstraintEClass, TABLE_CONSTRAINT__TABLE);\n\n\t\tprimaryKeyTableConstraintEClass = createEClass(PRIMARY_KEY_TABLE_CONSTRAINT);\n\t\tcreateEReference(primaryKeyTableConstraintEClass, PRIMARY_KEY_TABLE_CONSTRAINT__COLUMNS);\n\n\t\tuniqueTableConstraintEClass = createEClass(UNIQUE_TABLE_CONSTRAINT);\n\t\tcreateEReference(uniqueTableConstraintEClass, UNIQUE_TABLE_CONSTRAINT__COLUMNS);\n\n\t\tcheckTableConstraintEClass = createEClass(CHECK_TABLE_CONSTRAINT);\n\t\tcreateEReference(checkTableConstraintEClass, CHECK_TABLE_CONSTRAINT__EXPRESSION);\n\n\t\tforeignKeyTableConstraintEClass = createEClass(FOREIGN_KEY_TABLE_CONSTRAINT);\n\t\tcreateEReference(foreignKeyTableConstraintEClass, FOREIGN_KEY_TABLE_CONSTRAINT__COLUMNS);\n\t\tcreateEReference(foreignKeyTableConstraintEClass, FOREIGN_KEY_TABLE_CONSTRAINT__FOREIGN_TABLE);\n\t\tcreateEReference(foreignKeyTableConstraintEClass, FOREIGN_KEY_TABLE_CONSTRAINT__FOREIGN_COLUMNS);\n\t}", "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() {\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.6877726", "0.68018657", "0.66866565", "0.6660327", "0.66462505", "0.6617749", "0.66074246", "0.6604812", "0.6577536", "0.6568153", "0.6551695", "0.654932", "0.6540275", "0.65352243", "0.6533547", "0.65299624", "0.6515062", "0.6512313", "0.65005076", "0.64886785", "0.64818054", "0.64536816", "0.64476013", "0.64388007", "0.6433241", "0.64143586", "0.63952285", "0.6394239", "0.63939583", "0.63837516", "0.63719606", "0.63698995", "0.6366496", "0.63615704", "0.6359413", "0.63446915", "0.6340836", "0.6336876", "0.63188744", "0.63164055", "0.63113296", "0.63079935", "0.6289994", "0.62885064", "0.6271569", "0.6271324", "0.6262291", "0.62564903", "0.62494504", "0.6244918", "0.6235221", "0.6232699", "0.62305844", "0.62240714", "0.6221737", "0.6217706", "0.61807674", "0.61689985", "0.6167388", "0.61629903", "0.61587816", "0.615673", "0.6130884", "0.61305153", "0.61184084", "0.6112628", "0.6097538", "0.60923475", "0.6084375", "0.6076549", "0.602972", "0.59990114", "0.59771097", "0.59768105", "0.5922306", "0.59020674", "0.5885248", "0.58333117", "0.5820197", "0.5802179", "0.5782683", "0.5759218", "0.5757263", "0.5739832", "0.57198054", "0.5711279", "0.5703", "0.5693914", "0.5665279", "0.56328386", "0.5629433", "0.55986077", "0.55967766", "0.5585369", "0.5582735", "0.55790603", "0.5575687", "0.5570412", "0.5556817", "0.5553028" ]
0.6090449
68
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 EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); org.openecomp.ncomp.core.CorePackage theCorePackage_1 = (org.openecomp.ncomp.core.CorePackage)EPackage.Registry.INSTANCE.getEPackage(org.openecomp.ncomp.core.CorePackage.eNS_URI); // Create type parameters // Set bounds for type parameters // Add supertypes to classes openstackRequestDeleteEClass.getESuperTypes().add(this.getOpenStackRequest()); openstackRequestPollEClass.getESuperTypes().add(this.getOpenStackRequest()); virtualMachineTypeEClass.getESuperTypes().add(theCorePackage_1.getNamedEntity()); securityRuleEClass.getESuperTypes().add(theCorePackage_1.getNamedEntity()); // Initialize classes, features, and operations; add parameters initEClass(openStackRequestEClass, OpenStackRequest.class, "OpenStackRequest", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(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); initEClass(openstackRequestDeleteEClass, OpenstackRequestDelete.class, "OpenstackRequestDelete", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(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); initEAttribute(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); initEClass(openstackRequestPollEClass, OpenstackRequestPoll.class, "OpenstackRequestPoll", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEClass(virtualMachineTypeEClass, VirtualMachineType.class, "VirtualMachineType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(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); initEAttribute(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); initEAttribute(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); initEAttribute(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); initEAttribute(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); initEAttribute(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); initEAttribute(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); initEAttribute(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); initEAttribute(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); initEAttribute(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); initEReference(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); initEReference(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); initEClass(securityRuleEClass, SecurityRule.class, "SecurityRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(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); initEAttribute(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); initEAttribute(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); initEAttribute(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); // Initialize enums and add enum literals initEEnum(securityRuleProtocolEEnum, SecurityRuleProtocol.class, "SecurityRuleProtocol"); addEEnumLiteral(securityRuleProtocolEEnum, SecurityRuleProtocol.NONE); addEEnumLiteral(securityRuleProtocolEEnum, SecurityRuleProtocol.TCP); addEEnumLiteral(securityRuleProtocolEEnum, SecurityRuleProtocol.UDP); addEEnumLiteral(securityRuleProtocolEEnum, SecurityRuleProtocol.IMCP); // Create resource createResource(eNS_URI); }
{ "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() {\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}", "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 }", "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}", "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// 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 {\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() {\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() {\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 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 void 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 }", "private void initialize() {\n }", "@Override\n public void autonomousInit() {\n }", "@Override\n public void autonomousInit() {\n }", "public void autonomousInit() {\n \n }" ]
[ "0.65655035", "0.6462492", "0.643739", "0.64189833", "0.6408949", "0.640807", "0.64031535", "0.6398402", "0.63814086", "0.63639367", "0.6354103", "0.6342191", "0.6340288", "0.63216865", "0.6318471", "0.6312058", "0.6308946", "0.6304751", "0.62934965", "0.62846047", "0.62699497", "0.6258356", "0.6231759", "0.62272877", "0.6225476", "0.62232476", "0.62201416", "0.6216404", "0.61996907", "0.6198199", "0.61965835", "0.6186124", "0.61819184", "0.6173841", "0.6171722", "0.6159353", "0.6145445", "0.61237985", "0.61138076", "0.61092114", "0.6095475", "0.6094716", "0.6084499", "0.6061946", "0.6047374", "0.6046444", "0.6046392", "0.6045278", "0.60386926", "0.6030107", "0.6029803", "0.6028831", "0.6025087", "0.6019951", "0.60156703", "0.6000817", "0.5997234", "0.5993988", "0.59856266", "0.5985556", "0.5964507", "0.5962723", "0.5953268", "0.59421736", "0.5907546", "0.58894885", "0.58765715", "0.58642685", "0.58276296", "0.5821475", "0.5803826", "0.5803448", "0.5753004", "0.5732535", "0.57126313", "0.5662231", "0.56518406", "0.56404144", "0.5633326", "0.56230164", "0.5602775", "0.5599336", "0.5563233", "0.5561413", "0.5546201", "0.5538423", "0.55301017", "0.55223215", "0.5519889", "0.55055475", "0.5483688", "0.5482696", "0.5447041", "0.54407114", "0.54354995", "0.5434886", "0.53960764", "0.53871506", "0.53871506", "0.53816104" ]
0.5765858
72
A diagnostic indicating that a metaprogram as assigned as a child to a node when another node was already listed as its parent.
@Generated(value={"edu.jhu.cs.bsj.compiler.utils.generator.SourceGenerator"}) public interface MultipleParentNodeDiagnostic extends MetaprogramDetectedErrorDiagnostic<MultipleParentNodeException> { /** The code for this diagnostic. */ public static final String CODE = "bsj.compiler.metaprogram.node.parent.multiple"; /** * Retrieves the node which was attempting to become the parent of the child. * @return The node which was attempting to become the parent of the child. */ public Node getParent(); /** * Retrieves the child node which already had a parent. * @return The child node which already had a parent. */ public Node getChild(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setChild(Knoten child) {\n\n\t}", "public void setORM_Parent(orm.Nomenclature value) {\r\n\t\tthis.parent = value;\r\n\t}", "public boolean isChild();", "public boolean isChild() {\n\t\treturn false;\n\t}", "public boolean isChild(){\n return false;\n }", "public boolean isChild(){\n return child;\n }", "public boolean isChild(){\n return child;\n }", "@Override\n public void childAdded(Node child) {\n }", "public void removeFromParent(TXSemanticTag child);", "public void setParent(Concept _parent) { parent = _parent; }", "private TypeNode addNode (String parentName, TypeDescription childTypeMetadata) \n {\t\n // Find \"parent\" node\n if (parentName != null && parentName.trim().length() == 0) {\n parentName = null;\n }\n TypeNode nodeParent = null;\n if (parentName != null) {\n nodeParent = (TypeNode) _nodesHashtable.get(parentName);\n }\n \n // Find \"child\" node\n String childName = childTypeMetadata.getName();\n \tTypeNode node = (TypeNode) _nodesHashtable.get(childName);\n\n \t// System.err.println(\" parentName: \" + parentName + \" ; childName: \" + childName);\n \n // NEW type definition ?\n \tif ( node == null ) {\t\t\n \t\t// Not found \"child\". NEW type definition.\n \t\tif ( nodeParent == null ) {\n // Parent is NEW\n // TOP has null parent\n if (parentName != null) {\n TypeDescription typeParent = getBuiltInType(parentName);\n if (typeParent != null) {\n // Built-in Type as Parent\n nodeParent = addNode (typeParent.getSupertypeName(), typeParent);\n // Trace.trace(\" -- addNode: \" + childName + \" has New Built-in Parent: \" + parentName);\n } else { \n \t\t\t// NEW parent also.\n // \"parentName\" is FORWARD Reference Node\n \t\t\tnodeParent = insertForwardedReferenceNode(_rootSuper, parentName); \n // Trace.trace(\" -- addNode: \" + childName + \" has New FORWARD Parent: \" + parentName);\n }\n }\n \t\t}\n \t\t// System.out.println(\" -- addNode: New child\");\t\t\n \t\treturn insertNewNode (nodeParent, childTypeMetadata);\n \t}\n \t\n //\n // childTypeMetadata is ALREADY in Hierarchy\n //\n \n \t// This node can be a Forwarded Reference type\n \tif (node.getObject() == null) {\n \t\t// Set Object for type definition\n \t\t// Reset label.\n \t\t// Trace.trace(\"Update and define previously forwarded reference type: \"\n \t\t//\t\t+ node.getLabel() + \" -> \" + parentName);\n // Need to \"remove\" and \"put\" back for TreeMap (no modification is allowed ?)\n node.getParent().removeChild(node);\n \t\tnode.setObject(childTypeMetadata);\n node.setLabel(childTypeMetadata.getName());\n node.getParent().addChild(node);\n \n // Remove from undefined types\n // Trace.trace(\"Remove forward ref: \" + childTypeMetadata.getName());\n _undefinedTypesHashtable.remove(childTypeMetadata.getName());\n \t}\n \t\n \tif (parentName == null) {\n \t\t// NO Parent\n if (childTypeMetadata.getName().compareTo(UIMA_CAS_TOP) != 0) {\n Trace.err(\"??? Possible BUG ? parentName==null for type: \"\n + childTypeMetadata.getName());\n }\n \t\treturn node;\n \t}\n \t\n \t// Found \"child\".\n \t// This node can be the \"parent\" of some nodes \n \t// and it own parent is \"root\" OR node of \"parentName\".\n \tif ( node.getParent() == _rootSuper ) {\n \t\t// Current parent is SUPER which may not be the right parent\n \t\t// if \"node\" has a previously forward referenced parent of some type.\n \t\t// Find the real \"parent\".\n \t\tif ( nodeParent != null ) {\n \t\t // Parent node exists. \n \t\t\tif ( nodeParent != _rootSuper ) {\n \t\t\t // Move \"node\" from \"root\" and put it as child of \"nodeParent\"\n \t\t\t\t// Also, remove \"node\" from \"root\"\n \t\t\t // _rootSuper.getChildren().remove(node.getLabel());\n // System.out.println(\"B remove\");\n \t\t\t if (_rootSuper.removeChild(node) == null) {\n System.out.println(\"??? [.addNode] Possible BUG 1 ? cannot remove \"\n + node.getLabel() + \" from SUPER\");\n System.out.println(\" node: \" + ((Object)node).toString()); \n Object[] objects = _rootSuper.getChildrenArray();\n for (int i=0; i<objects.length; ++i) {\n System.out.println(\" \" + objects[i].toString()); \n } \n }\n // System.out.println(\"E remove\");\n \t\t\t} else {\n \t\t\t\t// \"nodeParent\" is \"SUPER\".\n \t\t\t\treturn node;\n \t\t\t}\n \t\t} else {\n \t\t\t// NEW parent\n\t\t\t\t// Remove \"node\" from \"SUPER\" and insert it as child of \"nodeParent\"\n\t\t\t // _rootSuper.getChildren().remove(node);\n if (_rootSuper.removeChild(node) == null) {\n System.err.println(\"??? [.addNode] Possible BUG 2 ? cannot remove \"\n + node.getLabel() + \" from SUPER\");\n }\t\t\t \n TypeDescription typeParent = getBuiltInType(parentName);\n if (typeParent != null) {\n // Built-in Type as Parent\n nodeParent = addNode (typeParent.getSupertypeName(), typeParent);\n // Trace.trace(\" -- addNode 2: \" + childName + \" has New Built-in Parent: \" + parentName);\n } else { \n \t\t\t // It is a NEW parent and this parent is forwarded reference (not defined yet). \n \t\t\t // Insert this parent as child of \"SUPER\"\n \t\t\t\tnodeParent = insertForwardedReferenceNode(_rootSuper, parentName);\n // Trace.trace(\" -- addNode 2: \" + childName + \" has New FORWARD Parent: \" + parentName);\n }\n \t\t}\t\t\t\t\n \t\tTypeNode tempNode;\n \t\tif ( (tempNode = nodeParent.insertChild(node)) != null && tempNode != node) {\n \t\t\t// Duplicate Label\n Trace.err(\"Duplicate Label 1\");\n// \t\t\tnode.setShowFullName(true);\n \t\t\tif (node.getObject() != null) {\n \t\t\t\tnode.setLabel(((TypeDescription)node.getObject()).getName());\n \t\t\t}\t\t\t\t\n \t\t\tnodeParent.insertChild(node);\n \t\t}\n \t} else if ( node.getParent() != null ) {\n \t //\n \t //\tERROR !!!\n \t\t// \"duplicate definition\" or \"have different parents\"\n \t //\n \t \n \t // \"nodeParent\" should be non-null and be the same as \"node.getParent\"\n \t // In this case, it is duplicate definition\n \t if ( nodeParent != null ) {\n \t if (nodeParent == node.getParent()) {\n \t\t\t\t// Error in descriptor\n \t\t // Duplicate definition\n \t\t\t\t// System.err.println(\"[TypeSystemHierarchy - addNode] Duplicate type: child=\" + childName + \" ; parent =\" + parentName);\n \t } else {\n \t // Error: \"node\" has different parents\n \t // Both parents are registered\n \t\t\t\tSystem.err.println(\"[TypeSystemHierarchy - addNode] Different registered parents: child=\" + childName \n \t\t\t\t + \" ; old node.getParent() =\" + node.getParent().getLabel()\n \t\t\t\t + \" ; new parent =\" + parentName);\n \t }\n \t } else {\n \t // Error \n // Error: \"node\" has different parents\n // Old parent is registered\n \t // New parent is NOT registered\n \t\t\tSystem.err.println(\"[TypeSystemHierarchy - addNode] Different parents: child=\" + childName \n \t\t\t + \" ; old registered node.getParent() =\" + node.getParent().getLabel()\n \t\t\t + \" ; new NON-registered parent =\" + parentName);\n \t }\n \t return null; // ERROR\n \n \t} else {\n \t\t//\n \t // Program BUG !!!\n \t\t// since Parent of \"registered\" node cannot be null.\n // if (childTypeMetadata.getName().compareTo(UIMA_CAS_TOP) != 0) {\n System.err.println(\"[TypeSystemHierarchy - addNode] Program BUG !!! (node.getParent() == null): child=\" + childName + \" ; parent =\" + parentName);\n return null;\n // }\n \t}\n \t\t\n \treturn node;\n }", "@Override\r\n\tpublic void makeChildcare() {\n\t\t\r\n\t}", "void depend(int parentID, int childID){\n check(parentID, childID);\n nodes_[childID].parent_ = parentID;\n nodes_[parentID].addChild(childID);\n }", "protected TreeChild (TreeChild child) {\n super (child);\n }", "@Override\n\tpublic boolean allowsTwoChildren() {\n\t\treturn false;\n\t}", "public void setChild(String child) {\n this.child = child;\n }", "public void \n validateChildColumn\n (\n int col\n ) \n throws ParseException \n {\n if((pChildColumn != null) && (pChildColumn != col)) \n throw new ParseException\n (\"Attempting to add a child from column (\" + col + \"), yet existing children are \" + \n \"from column (\" + pChildColumn + \")!\"); \n }", "boolean coreHasParent();", "public boolean isParent();", "protected abstract T parentElementFor(T child) throws SAXException;", "protected void checkState()\n {\n if (getParentNode() != null)\n {\n throw new IllegalStateException(\n \"Node cannot be modified when added to a parent!\");\n }\n }", "public void setChild(int position, Node n) {\r\n System.out.println(\"Attempt to add child to Variable\");\r\n }", "public void changeChild(Node oldChild, Node newChild) {\r\n System.out.println(\"Variable.changeChild() should never be called!\");\r\n }", "public void addChild( ChildType child );", "public Concept getParent() { return parent; }", "@objid (\"808e6a8a-1dec-11e2-8cad-001ec947c8cc\")\n @SuppressWarnings (\"static-method\")\n protected boolean isValidChild(GmNodeModel node) {\n return true;\n }", "public boolean isChild(){\r\n return(leftleaf == null) && (rightleaf == null)); \r\n }", "protected void notifyChildRemoval(FONode node) {\n //nop\n }", "public Boolean getIsChild() {\n return isChild;\n }", "public interface CoreChildNode extends CoreNode {\n /**\n * Get the parent of this node.\n * \n * @return the parent of this node\n */\n CoreParentNode coreGetParent();\n \n /**\n * Check if this node has a parent.\n * \n * @return <code>true</code> if and only if this node currently has a parent\n */\n boolean coreHasParent();\n \n /**\n * Get the parent element of this node.\n * \n * @return the parent element of this node or <code>null</code> if the node has no parent or if\n * the parent is not an element\n */\n CoreElement coreGetParentElement();\n \n CoreChildNode coreGetNextSibling() throws DeferredBuildingException;\n CoreChildNode coreGetPreviousSibling() throws DeferredParsingException;\n \n /**\n * \n * @param sibling\n * @param policy\n * the policy to apply if the new sibling already has a parent or belongs to a\n * different document\n * @throws NoParentException\n * if this node has no parent\n * @throws SelfRelationshipException\n * if this node and the new sibling are the same\n * @throws CyclicRelationshipException\n * if the sibling to be inserted is an ancestor of this node\n * @throws ChildNotAllowedException\n * if the new sibling is of a type that is not allowed in this position in the\n * document\n */\n void coreInsertSiblingAfter(CoreChildNode sibling, NodeMigrationPolicy policy) throws HierarchyException, NodeMigrationException, DeferredParsingException;\n \n void coreInsertSiblingsAfter(CoreDocumentFragment fragment) throws HierarchyException, NodeMigrationException, DeferredBuildingException;\n \n /**\n * \n * @param sibling\n * @param policy\n * the policy to apply if the new sibling already has a parent or belongs to a\n * different document\n * @throws NoParentException\n * if this node has no parent\n * @throws SelfRelationshipException\n * if this node and the new sibling are the same\n * @throws CyclicRelationshipException\n * if the sibling to be inserted is an ancestor of this node\n * @throws ChildNotAllowedException\n * if the new sibling is of a type that is not allowed in this position in the\n * document\n */\n void coreInsertSiblingBefore(CoreChildNode sibling, NodeMigrationPolicy policy) throws HierarchyException, NodeMigrationException, DeferredParsingException;\n \n // TODO: document that NodeConsumedException may occur because the fragment needs to be built\n void coreInsertSiblingsBefore(CoreDocumentFragment fragment) throws HierarchyException, NodeMigrationException, DeferredBuildingException;\n \n /**\n * Detach this node from its parent. The node will keep its current owner document. If the node\n * has no parent, then this method does nothing.\n * \n * @throws DeferredParsingException\n */\n void coreDetach() throws DeferredParsingException;\n \n /**\n * Detach this node from its parent and assign it to a new owner document. The owner document\n * will always be changed, even if the node has no parent.\n * \n * @param document\n * the new owner document, or <code>null</code> if the node will have its own owner\n * document (which may be created lazily at a later moment)\n * @throws DeferredParsingException\n */\n void coreDetach(CoreDocument document) throws DeferredParsingException;\n \n /**\n * Replace this node by another node. If the replacing node has a parent, it will be detached\n * from its parent. If both nodes are the same, then this method does nothing.\n * \n * @param newNode\n * the replacing node\n * @throws CoreModelException\n * TODO\n */\n void coreReplaceWith(CoreChildNode newNode) throws CoreModelException;\n \n void coreReplaceWith(CoreDocumentFragment newNodes) throws CoreModelException;\n}", "public final boolean hasChild ()\r\n {\r\n return _value.hasChild();\r\n }", "@Override\n\tpublic void setParent(ASTNode node) {\n\t\tthis.parent = node;\n\t\t\n\t}", "boolean hasParent();", "boolean hasParent();", "void propagate_childs_with_no_calls(Element element, Feature feature_to_assign, Fact factInf, Feature parent_feature){\n\t\tfor(Element elem : element.getRefToThis()){\n\t\t\tif( elem.getParentName()!= null \n\t\t\t\t\t&& elem.getParentName().equals(element.getIdentifier()) \n\t\t\t\t\t&& elem.getRefToThis().size() == 0\n\t\t\t\t\t&& elem.getRefFromThis().size() == 1\n\t\t\t\t\t&& elem.getRefFromThis().get(0).equals(elem.getParentName())\n\t\t\t\t\t&& elem.getFeature() == parent_feature){\n\t\t\t\tfactInf.addInference(elem.getIdentifier() + \", BttF says it's a child of \" + element.getIdentifier() + \n\t\t\t\t\t\t\" with no callers and only calls its parent THEN it also belongs to \" + feature_to_assign.getFeature_name(), elem, feature_to_assign);\n\t\t\t\tadd_element_to_feature(factInf, feature_to_assign, elem, false, false, parent_feature, true);\n\t\t\t}\n\t\t}\n\t}", "public void childAdder(Character ch)\n {\n node.put(ch,new Node());\n }", "protected void append_child(AstNode child) throws Exception {\r\n\t\tif (child == null)\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid child: null\");\r\n\t\telse {\r\n\t\t\tif (child instanceof AstNodeImpl)\r\n\t\t\t\t((AstNodeImpl) child).set_parent(this);\r\n\t\t\tthis.children.add(child);\r\n\t\t\tthis.update_location(); /* automatically update */\r\n\t\t}\r\n\t}", "@Override\n\tpublic void onParentSet() {\n\t\t\n\t}", "public boolean containsChild() {\n return !(getChildList().isEmpty());\n }", "public void relationParentChanged(RelationInstance ri, int signal)\r\n\t{\n\r\n\t\tm_flags |= REFILL_FLAG;\r\n\t}", "public String getChild() {\n return child;\n }", "@Override\n\tpublic void setLeftChild(WhereNode leftChild) {\n\n\t}", "public boolean isChildnode() {\r\n\t\treturn isChildnode;\r\n\t}", "@Override\n\t\tpublic void findChild(ITargetNode child, ITargetNode parent) {\n\n\t\t}", "public void testInheritanceEditMetadataCreateChildWithParent()\r\n\t{\r\n\r\n\t\tEntityManagerInterface entityManagerInterface = EntityManager.getInstance();\r\n\t\tDomainObjectFactory factory = DomainObjectFactory.getInstance();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tEntityInterface specimen = factory.createEntity();\r\n\t\t\tspecimen.setName(\"specimen\");\r\n\t\t\tspecimen.setAbstract(true);\r\n\t\t\tAttributeInterface barcode = factory.createStringAttribute();\r\n\t\t\tbarcode.setName(\"barcode\");\r\n\t\t\tspecimen.addAbstractAttribute(barcode);\r\n\r\n\t\t\tspecimen = entityManagerInterface.persistEntity(specimen);\r\n\r\n\t\t\tEntityInterface tissueSpecimen = factory.createEntity();\r\n\t\t\ttissueSpecimen.setName(\"tissueSpecimen\");\r\n\t\t\tAttributeInterface quantityInCellCount = factory.createIntegerAttribute();\r\n\t\t\tquantityInCellCount.setName(\"quantityInCellCount\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(quantityInCellCount);\r\n\r\n\t\t\ttissueSpecimen.setParentEntity(specimen);\r\n\r\n\t\t\tEntityInterface savedTissueSpecimen = entityManagerInterface\r\n\t\t\t\t\t.persistEntity(tissueSpecimen);\r\n\r\n\t\t\tsavedTissueSpecimen = entityManagerInterface.getEntityByIdentifier(savedTissueSpecimen\r\n\t\t\t\t\t.getId().toString());\r\n\t\t\tassertEquals(savedTissueSpecimen.getParentEntity(), specimen);\r\n\r\n\t\t\tEntityInterface savedSpecimen = entityManagerInterface.getEntityByIdentifier(specimen\r\n\t\t\t\t\t.getId());\r\n\t\t\tCollection childColelction = entityManagerInterface.getChildrenEntities(savedSpecimen);\r\n\t\t\tassertEquals(childColelction.size(), 1);\r\n\t\t\tchildColelction.contains(savedTissueSpecimen);\r\n\r\n\t\t\tResultSetMetaData metaData = executeQueryForMetadata(\"select * from \"\r\n\t\t\t\t\t+ specimen.getTableProperties().getName());\r\n\t\t\tassertEquals(noOfDefaultColumns + 1, metaData.getColumnCount());\r\n\r\n\t\t\tmetaData = executeQueryForMetadata(\"select * from \"\r\n\t\t\t\t\t+ tissueSpecimen.getTableProperties().getName());\r\n\t\t\tassertEquals(noOfDefaultColumns + 1, metaData.getColumnCount());\r\n\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tLogger.out.debug(DynamicExtensionsUtility.getStackTrace(e));\r\n\t\t\te.printStackTrace();\r\n\t\t\tfail();\r\n\t\t}\r\n\t}", "private void attachChildToParentControl(XMLTag child, Control incomingParent)\n {\n Iterator<Control> it = null;\n \n if (incomingParent == null)\n it = mControlState.iterator();\n else\n it = incomingParent.children.iterator();\n \n while (it.hasNext()) {\n Control parent = it.next();\n \n if (child.getCurrentTagLocation().split(\"/\").length - parent.getLocation().split(\"/\").length == 1 &&\n parent.getLocation().equals(child.getCurrentTagLocation().substring(0, parent.getLocation().length())))\n parent.children.add(new Control(child, parent, mInstanceRoot, mBindState)); \n \n if (!parent.children.isEmpty())\n attachChildToParentControl(child, parent);\n }\n }", "private void addChild(Content child) {\n/* 238 */ this.tail.setNext(this.document, child);\n/* 239 */ this.tail = child;\n/* */ }", "@Test\n\tpublic void testReferencingExistingChild() {\n\t\tChild existingChild = new Child();\n\t\tthis.session.save(existingChild);\n\t\tthis.session.flush();\n\t\tthis.session.evict(existingChild);\n\t\t\n\t\tParent parent = new Parent();\n\t\tparent.addChild(existingChild);\n\t\t\n\t\tthis.session.save(parent);\n\t\tthis.session.flush();\n\t}", "@Override\n public void setParent(IStatement _statement) {\n\t this._parent = _statement;\n }", "public boolean can_replace( Individual child, Individual parent ){\n// return (child.getFitness() > parent.getFitness());\n return (child.evalFitness( environment ) > parent.evalFitness( environment ));\n }", "public void testInheritanceEditMetadataEditChildWithUnsavedParent()\r\n\t{\r\n\r\n\t\tEntityManagerInterface entityManagerInterface = EntityManager.getInstance();\r\n\t\tDomainObjectFactory factory = DomainObjectFactory.getInstance();\r\n\t\tEntityInterface specimen = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Step 1 \r\n\t\t\tspecimen = factory.createEntity();\r\n\t\t\tspecimen.setName(\"specimen\");\r\n\t\t\tspecimen.setAbstract(true);\r\n\t\t\tAttributeInterface barcode = factory.createStringAttribute();\r\n\t\t\tbarcode.setName(\"barcode\");\r\n\t\t\tspecimen.addAbstractAttribute(barcode);\r\n\r\n\t\t\t//Step 2\r\n\t\t\tEntityInterface tissueSpecimen = factory.createEntity();\r\n\t\t\ttissueSpecimen.setName(\"tissueSpecimen\");\r\n\t\t\tAttributeInterface quantityInCellCount = factory.createIntegerAttribute();\r\n\t\t\tquantityInCellCount.setName(\"quantityInCellCount\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(quantityInCellCount);\r\n\r\n\t\t\t//Step 3\r\n\t\t\tEntityInterface savedTissueSpecimen = entityManagerInterface\r\n\t\t\t\t\t.persistEntity(tissueSpecimen);\r\n\t\t\t//Step 4\r\n\t\t\tsavedTissueSpecimen.setParentEntity(specimen);\r\n\t\t\t//Step 5\r\n\t\t\tsavedTissueSpecimen = entityManagerInterface.persistEntity(tissueSpecimen);\r\n\r\n\t\t}\r\n\t\tcatch (DynamicExtensionsApplicationException e1)\r\n\t\t{\r\n\t\t\tLogger.out.info(\"Application exception is expected to be thrown here\");\r\n\t\t\tassertNull(specimen.getTableProperties());\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tLogger.out.debug(DynamicExtensionsUtility.getStackTrace(e));\r\n\t\t\te.printStackTrace();\r\n\t\t\tfail();\r\n\t\t}\r\n\t}", "protected void addChild(PafDimMember childNode) throws PafException {\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// Create a new ArrayList of child nodes, if this is the first child\r\n\t\t\tif (children == null) \r\n\t\t\t\tchildren = new ArrayList<PafDimMember>();\r\n\t\t\t\r\n\t\t\t// Set parent of child node to current PafBaseMember node\r\n\t\t\tchildNode.parent = this;\r\n\r\n\t\t\t// Add child node to PafBaseTree\r\n\t\t\tchildren.add(childNode);\r\n\r\n\t\t} catch (Exception ex) {\r\n\t\t\t// throw Paf Exception\r\n\t\t\tString errMsg = \"Java Exception: \" + ex.getMessage();\r\n\t\t\tlogger.error(errMsg);\r\n\t\t\tPafException pfe = new PafException(errMsg, PafErrSeverity.Error, ex);\t\r\n\t\t\tthrow pfe;\r\n\t\t}\r\n\t}", "public Boolean isParentable();", "public void addChild(Node child)\n\t{\n\t\tchild.parent = this;\n\t\t//if (!children.contains(child))\n\t\t//{\t\n\t\tchildren.add(child);\n\t\t//children.get(children.indexOf(child)-1).setBro(child);\n\t\t//}\n\t}", "public String getHaschild() {\n return haschild;\n }", "T childValue(T parentValue) {\n throw new UnsupportedOperationException();\n }", "public void setChild(boolean isLeft, Node value) {\r\n \t// System.out.println(this + \", \" + value + \", \" + leftChild + \", \" + rightChild);\r\n if (isLeft) {\r\n leftChild = value;\r\n if (value != null) leftChild.parent = this;\r\n }\r\n else {\r\n rightChild = value;\r\n if (value != null) rightChild.parent = this;\r\n }\r\n }", "public abstract boolean canAdvanceOver(QueryTree child);", "public Operator getChild() {\r\n\t\treturn child;\r\n\t}", "public ChildNode() {\r\n\t\tsuper();\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "private boolean isChild(Slot current, Slot toCheck, HashMap<Slot, Slot> parents) {\n if (parents.get(current) != null) {\n if (parents.get(current).equals(toCheck)) {\n return true;\n }\n }\n\n return false;\n }", "public void setChildExists(String value) {\r\n setAttributeInternal(CHILDEXISTS, value);\r\n }", "private boolean setChild(TreeNode parent, TreeNode newChild, boolean isRightChild) {\n\t\tif(isRightChild) {\n\t\t\tparent.setRightChild(newChild);\n\t\t\tlength--;\n\t\t\treturn true;\n\t\t} else {\n\t\t\tparent.setLeftChild(newChild);\n\t\t\tlength--; \n\t\t\treturn true;\n\t\t}\n\t}", "public Node getChild();", "public void extractFromParent() {\n this.parent.extractChild(this);\n }", "@Override\npublic boolean getIncrementalChildAddition() {\n\treturn false;\n}", "public boolean isParent(T anItem) { return false; }", "public boolean isChildOf(Loop child, Loop parent) {\n\t\treturn ((parent.start <= child.start) && (parent.stop >= child.stop) && (parent != child));\n\t}", "public boolean hasParent() {\r\n if (parent == null) \r\n return false;\r\n \r\n return true;\r\n }", "public void assignment(Node n_parent) {\r\n System.out.println(\":: assignment:\"+n_parent.getData());\r\n if(token.get(lookAheadPossition).contains(\"ident(\")){\r\n System.out.println(\":: assignment::if::1\");\r\n String identifier=\"\";\r\n System.out.println(\":: assignment::if::2\");\r\n identifier = token.get(lookAheadPossition).substring(6, token.get(lookAheadPossition).length() - 1);\r\n System.out.println(\":: assignment::if -id \"+identifier);\r\n String type=\"\";\r\n type = (String) symbolTable.get(identifier);\r\n type = type.toLowerCase();\r\n System.out.println(\":: assignment::if -type \"+type);\r\n\r\n n_parent.setChildren(identifier+\":\"+type);\r\n this.CheckError(token.get(lookAheadPossition));\r\n this.CheckError(\"ASGN\");\r\n this.restAssignment(n_parent);\r\n }\r\n }", "@Test\r\n public void moveChildToParent() {\r\n command.executeCommand(\"/parent/child/\", \"/\", root, currentDirectory);\r\n assertTrue(root.getDirectoryByAbsolutePath(\"/child\") != null);\r\n }", "void validateNode(IQTree child) throws InvalidIntermediateQueryException;", "@Override\npublic void setIncrementalChildAddition(boolean newVal) {\n\t\n}", "public abstract boolean hasLeftChild(Position<E> p);", "public NodeDeleteCommand(IQNM parent, INode child)\r\n\t\tthrows Exception\r\n\t\t{\r\n\t\tif (parent == null || child == null) \r\n\t\t\t{\r\n\t\t\tFinestra.mostraIE(\"parent is null\");\r\n\t\t\t}\r\n\t\tif (child == null)\r\n\t\t\t{\r\n\t\t\tFinestra.mostraIE(\"child is null\");\r\n\t\t\t}\r\n\t\tsetLabel(\"node deletion\");\r\n\t\tthis.parent = parent;\r\n\t\tthis.child = child;\r\n\t\t}", "public void addChild(XMLElement child)\n/* */ {\n/* 398 */ if (child == null) {\n/* 399 */ throw new IllegalArgumentException(\"child must not be null\");\n/* */ }\n/* 401 */ if ((child.getLocalName() == null) && (!this.children.isEmpty())) {\n/* 402 */ XMLElement lastChild = (XMLElement)this.children.lastElement();\n/* */ \n/* 404 */ if (lastChild.getLocalName() == null) {\n/* 405 */ lastChild.setContent(lastChild.getContent() + \n/* 406 */ child.getContent());\n/* 407 */ return;\n/* */ }\n/* */ }\n/* 410 */ child.parent = this;\n/* 411 */ this.children.addElement(child);\n/* */ }", "@Override\n public void addChild(ConfigurationNode child)\n {\n children.addNode(child);\n child.setAttribute(false);\n child.setParentNode(this);\n }", "public void setIsChild(Boolean isChild) {\n this.isChild = isChild;\n }", "default boolean isChild(@NotNull Type type, @NotNull Meta element, @NotNull List<Object> parents) {\r\n return false;\r\n }", "@DISPID(8)\n\t// = 0x8. The runtime will prefer the VTID if present\n\t@VTID(17)\n\tboolean canAddChild();", "public abstract boolean isParent(T anItem);", "protected void addToParent(RuleDirectedParser parser, IScriptToken token)\n {\n IScriptToken parent = (IScriptToken) parser.peek();\n \n parent.addToken(token);\n }", "@Override\n public IQTree liftIncompatibleDefinitions(Variable variable, IQTree child, VariableGenerator variableGenerator) {\n return iqFactory.createUnaryIQTree(this, child);\n }", "private Node caseOneChild(Node deleteThis) {\r\n\r\n Node child, parent;\r\n if (deleteThis.getLeft() != null) {\r\n child = deleteThis.getLeft();\r\n } else {\r\n child = deleteThis.getRight();\r\n }\r\n parent = deleteThis.getParent();\r\n child.setParent(parent);\r\n\r\n\r\n if (parent == null) {\r\n this.root = child; // Poistettava on juuri\r\n return deleteThis;\r\n }\r\n if (deleteThis == parent.getLeft()) {\r\n parent.setLeft(child);\r\n } else {\r\n parent.setRight(child);\r\n }\r\n return deleteThis;\r\n }", "@Override\n public String dataLabel() {\n return STR_LBL_PARENT;\n }", "public Edge(N child, L label) {\n\t\tthis.child = child;\n\t\tthis.label = label;\n\t\tcheckRep();\n\t}", "@Override\n\t\tpublic boolean isSetParentInfo() {\n\t\t\treturn false;\n\t\t}", "@Override\n\tpublic void AddChild (Rule_ child) {\n\t\tchildRuleData.add(child);\n\t}", "@Override\n\tprotected void nodesInserted ( TreeModelEvent event ) {\n\t\tif ( this.jumpNode != null ) {\n\t\t\treturn;\n\t\t}\n\n\t\tObject[] children = event.getChildren ( );\n\n\t\tif ( children != null ) {\n\n\t\t\t// only problem with this could occure when\n\t\t\t// then children[0] element isn't the topmost element\n\t\t\t// in the tree that has been inserted. at this condition \n\t\t\t// that behaviour is undefined\n\t\t\tthis.jumpNode = ( ProofNode ) children[0];\n\t\t} else {\n\t\t\tthis.jumpNode = null;\n\t\t}\n\t}", "private boolean _hasChild() {\r\n boolean ret = false;\r\n if (_childs != null && _childs.size() > 0) {\r\n ret = true;\r\n }\r\n\r\n return ret;\r\n }", "public void setParentable(Boolean parentable);", "public void testSetChild() {\n GeneralizableElement mockChild = EasyMock.createMock(GeneralizableElement.class);\n instance.setChild(mockChild);\n assertSame(\"same value expected.\", mockChild, instance.getChild());\n\n mockChild = EasyMock.createMock(GeneralizableElement.class);\n instance.setChild(mockChild);\n assertSame(\"same value expected.\", mockChild, instance.getChild());\n }", "@Override\n\tpublic RecVarNode leaveDisambiguation(ScribNode child,\n\t\t\tNameDisambiguator disamb, ScribNode visited) throws ScribException\n\t{\n\t\tRecVarNode rn = (RecVarNode) visited;\n\t\tRecVar rv = rn.toName();\n\t\tif (!disamb.isBoundRecVar(rv))\n\t\t{\n\t\t\tthrow new ScribException(rn.getSource(),\n\t\t\t\t\t\"Rec variable not bound: \" + rn);\n\t\t}\n\t\treturn (RecVarNode) super.leaveDisambiguation(child, disamb, rn);\n\t}", "public void moveInterest(TXSemanticTag parent, TXSemanticTag child);", "@Override\r\n\tpublic void setParent(Tag arg0) {\n\t}", "@Override \n public boolean shouldTraverse(Traversal traversal, Exp e, Exp parent) {\n return true; \n }", "private void changeParent(Node item, Parent newParent) {\n Parent oldParent = item.getParent();\n try {\n Method oldNode = oldParent.getClass().getMethod(\"getChildren\");\n Object ob = oldNode.invoke(oldParent);\n Collection<Node> cnOld = ((Collection<Node>) ob);\n cnOld.remove(item);\n Method newNode = newParent.getClass().getMethod(\"getChildren\");\n Object nb = newNode.invoke(newParent);\n Collection<Node> cnNew = ((Collection<Node>) nb);\n cnNew.add(item);\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n } catch (NoSuchMethodException e) {\n e.printStackTrace();\n }\n }", "protected final void addChild(final XmlAntTask child) {\n\t\tchilds.add(child);\n\t\tchild.setParent(this);\n\t}", "public boolean hasParent() {\n return getParent() != null;\n }", "default boolean isParent(@NotNull Type type, @NotNull Meta meta, @NotNull List<Object> children) {\r\n return false;\r\n }" ]
[ "0.59262294", "0.59251976", "0.5882821", "0.5875842", "0.5845912", "0.58097655", "0.58097655", "0.5747304", "0.57231456", "0.5719985", "0.57002455", "0.5620973", "0.56143486", "0.5587163", "0.5552329", "0.55446", "0.5496113", "0.54877764", "0.54748017", "0.54738605", "0.5438179", "0.54368025", "0.5436302", "0.5416621", "0.5388645", "0.5387797", "0.53877044", "0.53819585", "0.5370858", "0.53612345", "0.5336672", "0.5335454", "0.53293645", "0.53293645", "0.5322004", "0.5321419", "0.5316018", "0.52931964", "0.52907646", "0.5272992", "0.5268497", "0.5268204", "0.5268112", "0.52627045", "0.52526146", "0.524959", "0.5248794", "0.5227139", "0.5226022", "0.52206755", "0.52139896", "0.5200863", "0.5198689", "0.51985806", "0.51963896", "0.5192172", "0.5190964", "0.5189216", "0.51875013", "0.51854503", "0.5184196", "0.5182394", "0.51745105", "0.51602626", "0.51562816", "0.51500577", "0.51455027", "0.51417124", "0.51334435", "0.51313215", "0.5129997", "0.5128357", "0.510759", "0.51070565", "0.5105686", "0.5105237", "0.5104383", "0.5100726", "0.50977856", "0.5090424", "0.50683117", "0.5067118", "0.50666237", "0.5066022", "0.5055763", "0.50535816", "0.5052541", "0.50475127", "0.50474244", "0.5045126", "0.50449145", "0.5040798", "0.5034547", "0.5023285", "0.5019791", "0.50148517", "0.5009495", "0.50078654", "0.5005339", "0.50039184" ]
0.5920309
2
Retrieves the node which was attempting to become the parent of the child.
public Node getParent();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TreeNode getParentNode();", "public TreeNode getParent() {\n\t\treturn null;\n\t}", "@Pure\n\tpublic TreeNode<?, ?> getParentNode() {\n\t\treturn (TreeNode<?, ?>) getSource();\n\t}", "Node<T> parent();", "public ParseTreeNode getParent() {\r\n return _parent;\r\n }", "public TreeNode getParent ()\r\n {\r\n return parent;\r\n }", "public RBNode<T> parentOf(RBNode<T> node) {\n return node != null? node.parent : null;\r\n }", "public Node getParentNode() {\n return parentNode;\n }", "public Node getParent() {\n return parent;\n }", "public Node getParent() {\n return parent;\n }", "public Node getParent() {\r\n\t\t\treturn parent;\r\n\t\t}", "public Node getParent() {\r\n\t\t\treturn parent;\r\n\t\t}", "TreeNode<T> getParent();", "public TreeNode getParent()\n {\n return mParent;\n }", "public Node<T> getParent() {\n return this.parent;\n }", "public TreeNode getParent() { return par; }", "public TreeNode getParent()\r\n\t{\r\n\t\treturn m_parent;\r\n\t}", "@Override\r\n\t\tpublic Node getParentNode()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "@Override\r\n\tpublic TreeNode getParent() {\n\t\treturn parent;\r\n\t}", "@Override\r\n\tpublic TreeNode getParent() {\n\t\treturn this.parent;\r\n\t}", "CoreParentNode coreGetParent();", "public XMLElement getParent()\n/* */ {\n/* 323 */ return this.parent;\n/* */ }", "public Node getParent(){\n return parent;\n }", "protected void findNewParent() {\n\t\t\tif (parent != null)\n\t\t\t\tparent.children.remove(this);\n\t\t\tNodeLayout[] predecessingNodes = node.getPredecessingNodes();\n\t\t\tparent = null;\n\t\t\tfor (int i = 0; i < predecessingNodes.length; i++) {\n\t\t\t\tTreeNode potentialParent = (TreeNode) owner.layoutToTree\n\t\t\t\t\t\t.get(predecessingNodes[i]);\n\t\t\t\tif (!children.contains(potentialParent)\n\t\t\t\t\t\t&& isBetterParent(potentialParent))\n\t\t\t\t\tparent = potentialParent;\n\t\t\t}\n\t\t\tif (parent == null)\n\t\t\t\tparent = owner.superRoot;\n\n\t\t\tparent.addChild(this);\n\t\t}", "public PageTreeNode getParent() {\n return parent;\n }", "public SearchTreeNode getParent() { return parent; }", "public @Nullable Node<@Nullable T> getParent() {\n return this.parent;\n }", "@Override\n\tpublic TreeNode getParent() {\n\t\treturn this.parent;\n\t}", "@Override\n public Node getParentNode() {\n return null;\n }", "public BSTNode getParentNode() {\n\t\treturn parentNode;\n\t}", "@JsProperty\n Node getParentNode();", "public int getParentNode(){\n\t\treturn parentNode;\n\t}", "@Override\n\tpublic TreeNode getParent() {\n\t\treturn this.parent ;\n\t}", "public XMLPath getParent() {\r\n return this.parent == null ? null : this.parent.get();\r\n }", "public IRNode getParent(IRNode node);", "public EventNode getParent() {\n\t\treturn parent;\n\t}", "public String getParent() {\n return _theParent;\n }", "private Node getGrandparent(Node n) {\n return n.mParent.mParent;\n }", "public Object getParent(Object child) {\r\n \t\treturn graph.getModel().getParent(child);\r\n \t}", "RegistryNode getParentNode() {\n return parentNode;\n }", "Object getParent();", "public String getParentNode()\r\n\t{\r\n\t\tif (roadBelongingType.equals(\"inbound\"))\r\n\t\t{\r\n\t\t\treturn endNode;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn startNode;\r\n\t\t}\r\n\t}", "public Tree<T> getParent()\n {\n return this.parent;\n }", "public Integer getParent(Integer e){\n\t\ttry{\n\t\t\treturn searchNodeRef(e).father.element;\n\t\t} catch (Exception exc) {\n\t\t\treturn null;\n\t\t}\n\t}", "public Object getParent()\n {\n return traversalStack.get(traversalStack.size() - 2);\n }", "@Override\n\tpublic WhereNode getParent() {\n\t\treturn parent;\n\t}", "public UpTreeNode<E> getParent() {\n\t\t\treturn parent;\n\t\t}", "public VisualLexiconNode getParent() {\n \t\treturn parent;\n \t}", "public TreeNode getPreviousSibling ()\r\n {\r\n if (parent != null) {\r\n int index = parent.children.indexOf(this);\r\n\r\n if (index > 0) {\r\n return parent.children.get(index - 1);\r\n }\r\n }\r\n\r\n return null;\r\n }", "DendrogramNode<T> getParent();", "public SearchNode<S, A> getParent() {\r\n\t\treturn parent;\r\n\t}", "public String getParent() {\n return _parent;\n }", "public int getParent();", "public TestResultTable.TreeNode getParent() {\n return parent;\n }", "TMNodeModelComposite getParent() {\n return parent;\n }", "public String getParent() {\n return parent;\n }", "public String getParent() {\r\n return parent;\r\n }", "public Optional<Cause> getParent() {\n return this.parent;\n }", "public HuffmanNode getParentNode()\n\t{\n\t\treturn parent;\n\t}", "public PlanNode getParent() {\n return parent;\n }", "public String getParent() {\r\n return this.parent;\r\n }", "public Entity getParent() {\n return parent;\n }", "public Foo getParent() {\n return parent;\n }", "public Object getParent() {\r\n return this.parent;\r\n }", "@Override\n\tpublic ASTNode getParent() {\n\t\treturn this.parent;\n\t}", "public String getParentId() {\n return getParent() != null ? getParent().getId() : null;\n }", "public CompositeObject getParent(\n )\n {return (parentLevel == null ? null : (CompositeObject)parentLevel.getCurrent());}", "public Object getParent() {\n return this.parent;\n }", "public Object getParent() {\n return this.parent;\n }", "public Object getParent() {\n return this.parent;\n }", "public TeachersDomainStandardsNode getParent() {\n\t\treturn parent;\n\t}", "public IAVLNode getParent() {\n\t\t\treturn this.parent; // to be replaced by student code\n\t\t}", "@VTID(7)\r\n void getParent();", "public Comment getParent () {\n return parentComment;\n }", "public CommitNode parent() {\r\n\t\treturn parentCommit;\r\n\t}", "public VNode getParent() throws VlException\n {\n VRL pvrl=getParentLocation(); \n \n if (pvrl==null)\n \treturn null; \n \n return vrsContext.openLocation(getParentLocation());\n }", "public IPSComponent peekParent();", "public final Cause<?> getParent() {\n return parent;\n }", "public SqlFromSubSelect getParent() {\n return parent;\n }", "public GitCommit getParent() { return _par!=null? _par : (_par=getParentImpl()); }", "@DerivedProperty\n\tCtElement getParent() throws ParentNotInitializedException;", "public String getParentElement() {\n return ROOT_NO_ELEMENT_DEFAULT;\n }", "private int parent ( int pos )\n\t{\n\t\treturn -1; // replace this with working code\n\t}", "public FileNode getParent() {\r\n return this.parent;\r\n }", "MenuEntry getParent();", "public Instance getParent() {\r\n \t\treturn parent;\r\n \t}", "@NoProxy\n @NoWrap\n @NoDump\n public BwEvent getParent() {\n return parent;\n }", "public String getParent(String child) {\n \tif ( child.equals(TreeConstants.Object_.getString())) {\n \t\treturn TreeConstants.No_class.toString();\n \t}\n \tfor (String parent : adjacencyList.keySet()) {\n \t\tArrayList<String> listOfChildren = adjacencyList.get(parent);\n \t\tif (listOfChildren.indexOf(child) != -1) {\n \t\t\treturn parent;\n \t\t}\n \t}\n \t// This shouldn't happen\n \treturn null;\n }", "public E getParentEntity() {\n return parentEntity;\n }", "public CompoundExpression getParent()\r\n\t\t{\r\n\t\t\treturn _parent;\r\n\t\t}", "public BinomialTree<KEY, ITEM> parent()\n\t{\n\t\treturn _parent;\n\t}", "public Optional<NamespaceId> getParentId() {\n return parentId;\n }", "@Override\n\tpublic Node getPreviousChild(Node existing) {\n\t\treturn null;\n\t}", "java.lang.String getParent();", "java.lang.String getParent();", "public int Parent() { return this.Parent; }", "public Cause getParent() {\n\t\tif (this.equals(this.rcaCase.problem)) {\n\t\t\treturn null;\n\t\t} else if (this.effectRelations.size() > 0) {\n\t\t\treturn ((Relation) this.effectRelations.toArray()[0]).causeTo;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "@JsProperty\n Element getParentElement();", "public VRL getParentLocation()\n {\n \tif (this.getVRL()==null)\n \t\treturn null; \n \t\n \treturn this._nodeVRL.getParent();\n }", "private int parent(int child) {\n\t\treturn (child-1)/2;\n\t}" ]
[ "0.75141823", "0.74134386", "0.736369", "0.73424166", "0.73119706", "0.7307072", "0.72970706", "0.72914255", "0.72910196", "0.72910196", "0.7244387", "0.7244387", "0.7238138", "0.721678", "0.71822375", "0.717924", "0.7169158", "0.71685743", "0.71589464", "0.7152551", "0.71309966", "0.7123401", "0.71213716", "0.7109664", "0.7098558", "0.70914847", "0.70816153", "0.70761716", "0.70714587", "0.7069453", "0.7063793", "0.7051814", "0.704456", "0.70264405", "0.7025354", "0.6992668", "0.6991339", "0.69601357", "0.69297236", "0.691698", "0.6900966", "0.68865126", "0.6885317", "0.68802345", "0.6871016", "0.68693215", "0.6859214", "0.68363214", "0.68248314", "0.6800802", "0.6781649", "0.6777852", "0.6774155", "0.67535347", "0.6742526", "0.67168254", "0.6714976", "0.6701093", "0.6691823", "0.66749173", "0.66701376", "0.6652426", "0.6651908", "0.66295666", "0.6616052", "0.6612526", "0.66001636", "0.6598046", "0.6598046", "0.6598046", "0.6566875", "0.6565501", "0.6562266", "0.65533036", "0.65519714", "0.65510124", "0.65501916", "0.6521302", "0.6519472", "0.6513956", "0.65050715", "0.65036833", "0.64981854", "0.6488393", "0.6484615", "0.64766836", "0.6464421", "0.6460026", "0.6439996", "0.64203346", "0.64165777", "0.64135516", "0.64039636", "0.64018273", "0.64018273", "0.6399858", "0.63994205", "0.63901246", "0.6385846", "0.6385346" ]
0.75714564
0
Retrieves the child node which already had a parent.
public Node getChild();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Node getParent();", "private TreeNode getOnlyChild() {\n return templateRoot.getChildren().get(0);\n }", "public N getChild() {\n\t\tcheckRep();\n\t\treturn this.child;\n\t}", "public XMLPath getParent() {\r\n return this.parent == null ? null : this.parent.get();\r\n }", "public Object getParent(Object child) {\r\n \t\treturn graph.getModel().getParent(child);\r\n \t}", "@Override\n\tpublic Node getPreviousChild(Node existing) {\n\t\treturn null;\n\t}", "public TreeNode getParent() {\n\t\treturn null;\n\t}", "private Node getGrandparent(Node n) {\n return n.mParent.mParent;\n }", "Node<T> parent();", "public XMLElement getParent()\n/* */ {\n/* 323 */ return this.parent;\n/* */ }", "public Node getParent() {\n return parent;\n }", "public Node getParent() {\n return parent;\n }", "public Node<T> getParent() {\n return this.parent;\n }", "public TreeNode getParentNode();", "public Node getParent() {\r\n\t\t\treturn parent;\r\n\t\t}", "public Node getParent() {\r\n\t\t\treturn parent;\r\n\t\t}", "public TreeNode getParent ()\r\n {\r\n return parent;\r\n }", "public child getChild() {\n return this.child;\n }", "public Node popLeftChild() {\n if (leftChild == null) {\n return null;\n }\n else {\n Node tmp = leftChild;\n leftChild = null;\n return tmp;\n }\n }", "public Node getParent(){\n return parent;\n }", "public @Nullable Node<@Nullable T> getParent() {\n return this.parent;\n }", "public SearchTreeNode getParent() { return parent; }", "@Pure\n\tpublic TreeNode<?, ?> getChild() {\n\t\treturn this.child;\n\t}", "CoreParentNode coreGetParent();", "public Node getLeftChild() {\r\n \treturn getChild(true);\r\n }", "@Override\n\tpublic WhereNode getParent() {\n\t\treturn parent;\n\t}", "public PageTreeNode getParent() {\n return parent;\n }", "TreeNode<T> getParent();", "public TreeNode getParent()\n {\n return mParent;\n }", "@Pure\n\tpublic TreeNode<?, ?> getParentNode() {\n\t\treturn (TreeNode<?, ?>) getSource();\n\t}", "@Override\r\n\tpublic TreeNode getParent() {\n\t\treturn this.parent;\r\n\t}", "public TreeNode getPreviousSibling ()\r\n {\r\n if (parent != null) {\r\n int index = parent.children.indexOf(this);\r\n\r\n if (index > 0) {\r\n return parent.children.get(index - 1);\r\n }\r\n }\r\n\r\n return null;\r\n }", "public ParseTreeNode getParent() {\r\n return _parent;\r\n }", "DendrogramNode<T> getParent();", "public Object getParent()\n {\n return traversalStack.get(traversalStack.size() - 2);\n }", "public Node getParentNode() {\n return parentNode;\n }", "public Integer getParent(Integer e){\n\t\ttry{\n\t\t\treturn searchNodeRef(e).father.element;\n\t\t} catch (Exception exc) {\n\t\t\treturn null;\n\t\t}\n\t}", "public IBiNode getChild() {\n return this.child;\n }", "public TreeNode getParent()\r\n\t{\r\n\t\treturn m_parent;\r\n\t}", "public String getChild() {\n return child;\n }", "@JsProperty\n Node getParentNode();", "@Override\r\n\tpublic TreeNode getParent() {\n\t\treturn parent;\r\n\t}", "public RBNode<T> parentOf(RBNode<T> node) {\n return node != null? node.parent : null;\r\n }", "@Override\r\n\t\tpublic Node getParentNode()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public Node returnNextChild(){\n try{\n return children.get(counter);\n }catch(Exception ex){\n return null;\n }\n }", "Object getParent();", "@Override\n\tpublic TreeNode getParent() {\n\t\treturn this.parent;\n\t}", "@Override\n\tpublic TreeNode getParent() {\n\t\treturn this.parent ;\n\t}", "public TreeNode getParent() { return par; }", "@Override\n public Node getParentNode() {\n return null;\n }", "public int getParent();", "public EventNode getParent() {\n\t\treturn parent;\n\t}", "public SearchNode<S, A> getParent() {\r\n\t\treturn parent;\r\n\t}", "@Pure\n public QuadTreeNode<D> getUpperLeftChild() {\n QuadTreeNode<D>[] _children = this.children;\n QuadTreeNode<D> _get = null;\n if (_children!=null) {\n _get=_children[1];\n }\n return _get;\n }", "public Tree<T> getParent()\n {\n return this.parent;\n }", "private Node getChild(K key) {\r\n\r\n // binarySearch for the correct index\r\n int correct_place = Collections.binarySearch(keys, key);\r\n int child_indexing;\r\n if (correct_place >= 0) {\r\n child_indexing = correct_place + 1;\r\n } else {\r\n child_indexing = -correct_place - 1;\r\n }\r\n\r\n return children.get(child_indexing);\r\n }", "public Foo getParent() {\n return parent;\n }", "public SaveGameNode getFirstChild() {\r\n SaveGameNode node;\r\n node = this.children.get(0);\r\n return node;\r\n }", "public Object getParent() {\r\n return this.parent;\r\n }", "Node getChild(K key) {\r\n\t\t\tint loc = Collections.binarySearch(keys, key);\r\n\t\t\tint childIndex = loc >= 0 ? loc + 1 : -loc - 1;\r\n\t\t\treturn children.get(childIndex);\r\n\t\t}", "public CompositeObject getParent(\n )\n {return (parentLevel == null ? null : (CompositeObject)parentLevel.getCurrent());}", "public String getParent(String child) {\n \tif ( child.equals(TreeConstants.Object_.getString())) {\n \t\treturn TreeConstants.No_class.toString();\n \t}\n \tfor (String parent : adjacencyList.keySet()) {\n \t\tArrayList<String> listOfChildren = adjacencyList.get(parent);\n \t\tif (listOfChildren.indexOf(child) != -1) {\n \t\t\treturn parent;\n \t\t}\n \t}\n \t// This shouldn't happen\n \treturn null;\n }", "protected void findNewParent() {\n\t\t\tif (parent != null)\n\t\t\t\tparent.children.remove(this);\n\t\t\tNodeLayout[] predecessingNodes = node.getPredecessingNodes();\n\t\t\tparent = null;\n\t\t\tfor (int i = 0; i < predecessingNodes.length; i++) {\n\t\t\t\tTreeNode potentialParent = (TreeNode) owner.layoutToTree\n\t\t\t\t\t\t.get(predecessingNodes[i]);\n\t\t\t\tif (!children.contains(potentialParent)\n\t\t\t\t\t\t&& isBetterParent(potentialParent))\n\t\t\t\t\tparent = potentialParent;\n\t\t\t}\n\t\t\tif (parent == null)\n\t\t\t\tparent = owner.superRoot;\n\n\t\t\tparent.addChild(this);\n\t\t}", "public Object getParent() {\n return this.parent;\n }", "public Object getParent() {\n return this.parent;\n }", "public Object getParent() {\n return this.parent;\n }", "private E findLargestChild(Node<E> parent) {\r\n\t\t//if the right child has no right child, it is the inorder predecessor(ip)\r\n\t\tif(parent.right.right == null) {\r\n\t\t\tE returnValue = parent.right.right.data;\r\n\t\t\tparent.right = parent.right.left;\r\n\t\t\treturn returnValue;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn findLargestChild(parent.right);\r\n\t\t}\r\n\t}", "public String getParent() {\n return _theParent;\n }", "@Override\r\n\t\tpublic Node getLastChild()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public IRNode getParent(IRNode node);", "public Ent getParent(){\n\t\treturn (Ent)bound.getParent();\n\t}", "public TreeNode getNextSibling ()\r\n {\r\n if (parent != null) {\r\n int index = parent.children.indexOf(this);\r\n\r\n if (index < (parent.children.size() - 1)) {\r\n return parent.children.get(index + 1);\r\n }\r\n }\r\n\r\n return null;\r\n }", "@Override\n\tpublic WhereNode getLeftChild() {\n\t\treturn null;\n\t}", "@Pure\n public QuadTreeNode<D> getLowerRightChild() {\n QuadTreeNode<D>[] _children = this.children;\n QuadTreeNode<D> _get = null;\n if (_children!=null) {\n _get=_children[2];\n }\n return _get;\n }", "public BSTNode getParentNode() {\n\t\treturn parentNode;\n\t}", "public BinaryTreeNode getLeftChild() { \n\t\t\treturn null;\n\t\t}", "Node getChild(String childID) throws IllegalAccessException;", "@Pure\n public QuadTreeNode<D> getLowerLeftChild() {\n QuadTreeNode<D>[] _children = this.children;\n QuadTreeNode<D> _get = null;\n if (_children!=null) {\n _get=_children[0];\n }\n return _get;\n }", "public int getParentNode(){\n\t\treturn parentNode;\n\t}", "public Entity getParent() {\n return parent;\n }", "public FileNode getParent() {\r\n return this.parent;\r\n }", "public Resource getParent()\n {\n if(parent == null)\n {\n if(parentId != -1)\n {\n try\n {\n parent = new ResourceRef(coral.getStore().getResource(parentId), coral);\n }\n catch(EntityDoesNotExistException e)\n {\n throw new BackendException(\"corrupted data parent resource #\"+parentId+\n \" does not exist\", e);\n }\n }\n else\n {\n parent = new ResourceRef(null, coral);\n }\n }\n try\n {\n return parent.get();\n }\n catch(EntityDoesNotExistException e)\n {\n throw new BackendException(\"in-memory data incosistency\", e);\n }\n }", "public PSNode getChildIfExists(int parentPcr, QNm name, byte kind,\n\t\t\tNsMapping nsMapping) throws DocumentException;", "public Object getParent(Object element) {\n\t\treturn null;\r\n\t}", "TMNodeModelComposite getParent() {\n return parent;\n }", "private Node deepestChild(String gestureSequence)\n {\n Node currNode;\n String seqToCheck;\n for(int startInd=0; startInd < gestureSequence.length(); startInd++)\n {\n currNode = root;\n seqToCheck = gestureSequence.substring(startInd);\n for(int charInd = 0; charInd < seqToCheck.length(); charInd++)\n {\n currNode = currNode.getChild(Gestures.getGestureByChar(seqToCheck.charAt(charInd)));\n if(currNode == null)\n break;\n }\n if(currNode != null)\n {\n return currNode;\n }\n }\n return null; // Should not happen\n }", "public Node getChild(boolean isLeft) {\r\n if (isLeft) {\r\n return leftChild;\r\n }\r\n else {\r\n return rightChild;\r\n }\r\n }", "public String getParentElement() {\n return ROOT_NO_ELEMENT_DEFAULT;\n }", "public void extractFromParent() {\n this.parent.extractChild(this);\n }", "@Override\n public Node getImmediateChild(ChildKey name) {\n if (name.isPriorityChildName() && !this.priority.isEmpty()) {\n return this.priority;\n } else if (children.containsKey(name)) {\n return children.get(name);\n } else {\n return EmptyNode.Empty();\n }\n }", "private Node getChild(char key) {\n for (Node child : children) {\n if (child.getKey() == key) {\n return child;\n }\n }\n return null;\n }", "public Object getParent(Object element) {\n\t\treturn null;\n\t}", "public SqlFromSubSelect getParent() {\n return parent;\n }", "public Jode first() {\n return children().first();\n }", "public BinomialTree<KEY, ITEM> parent()\n\t{\n\t\treturn _parent;\n\t}", "public T getParent(T anItem) { return null; }", "RegistryNode getParentNode() {\n return parentNode;\n }", "public Node getChild(int childNum) {\r\n\t\t\tif (childNum > children.size()) return null;\r\n\t\t\treturn children.get(childNum);\r\n\t\t}", "public Comment getParent () {\n return parentComment;\n }", "private int parent(int child) {\n\t\treturn (child-1)/2;\n\t}" ]
[ "0.6853779", "0.68295413", "0.6827413", "0.6701595", "0.66924584", "0.66381335", "0.66099745", "0.66022545", "0.65954816", "0.6589906", "0.6583704", "0.6583704", "0.657302", "0.6528379", "0.6508368", "0.6508368", "0.649355", "0.64835835", "0.6475636", "0.64511156", "0.64462924", "0.6442191", "0.64231855", "0.64166427", "0.6407913", "0.6397917", "0.6369027", "0.63686866", "0.63633054", "0.63614964", "0.6359177", "0.63543564", "0.63497883", "0.63382584", "0.6323915", "0.63090307", "0.6302648", "0.6299911", "0.6297553", "0.6295043", "0.6289981", "0.62752885", "0.62633437", "0.6259825", "0.62549305", "0.62389624", "0.62336904", "0.62297267", "0.622537", "0.62213707", "0.6206742", "0.6202256", "0.61996084", "0.61954653", "0.61887", "0.61824286", "0.6172342", "0.61489546", "0.61331546", "0.61237663", "0.6107706", "0.6095734", "0.6092317", "0.60921854", "0.60921854", "0.60921854", "0.609192", "0.60802996", "0.607345", "0.6072095", "0.6067875", "0.6064961", "0.6057862", "0.6055495", "0.6052372", "0.6042256", "0.6034685", "0.60295296", "0.60157585", "0.6011522", "0.6005022", "0.600502", "0.59960485", "0.5993903", "0.5992482", "0.5986976", "0.5984367", "0.5977957", "0.5971967", "0.59575397", "0.59533024", "0.59505093", "0.59429795", "0.59245616", "0.59229684", "0.5922266", "0.5922135", "0.59210646", "0.59190774", "0.59178776" ]
0.7121442
0
/ === Constractor ===
public BluetoothManager( Activity activity ) { mActivity = activity; mContext = activity; mPreferences = PreferenceManager.getDefaultSharedPreferences( mContext ); mByteUtility = new ByteUtility(); mDebugMsg = new DebugMsg(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean equal() {\n\t\treturn false;\n\t}", "String getEqual();", "private Equals() {}", "Equality createEquality();", "protected boolean isEqual( Object lhs, Object rhs ){\r\n\t\tboolean x = lhs==null;\r\n\t\tboolean y = rhs == null;\r\n\t\t//XOR OPERATOR, only one is null\r\n\t\tif ((x || y) && !(x && y))\r\n\t\t\treturn false;\r\n\t\tif (lhs.equals(rhs))\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "private boolean equals() {\r\n return MARK(EQUALS) && CHAR('=') && gap();\r\n }", "private static boolean equalityTest1(String a, String b)\n {\n return a == b;\n }", "@Test\n\tpublic void testEqualsVerdadeiro() {\n\t\t\n\t\tassertTrue(contato1.equals(contato3));\n\t}", "@Test\r\n public void testEquals() {\r\n Articulo art = new Articulo();\r\n articuloPrueba.setCodigo(1212);\r\n art.setCodigo(1212);\r\n boolean expResult = true;\r\n boolean result = articuloPrueba.equals(art);\r\n assertEquals(expResult, result);\r\n }", "@Test\n public void testEquals_2() {\n LOGGER.info(\"testEquals_2\");\n final AtomString atomString = new AtomString(\"Hello\");\n final Atom atom = new AtomString(\"Hej\");\n final boolean actual = atomString.equals(atom);\n assertFalse(actual);\n }", "@Override\r\n\tpublic boolean isEqual(Node node) {\n\t\treturn false;\r\n\t}", "@Test\n\tpublic void testEqualityCheck() {\n\t\tadd(\"f(x)=x^3\");\n\t\tadd(\"g(x)=-x^3\");\n\t\tt(\"f==g\", \"false\");\n\t\tt(\"f!=g\", \"true\");\n\t\tt(\"f==-g\", \"true\");\n\t\tt(\"f!=-g\", \"false\");\n\t}", "@Override\r\n\t\tpublic boolean isEqualNode(Node arg)\r\n\t\t\t{\n\t\t\t\treturn false;\r\n\t\t\t}", "@Test\n\tpublic void testEqualsFalso() {\n\t\t\n\t\tassertFalse(contato1.equals(contato2));\n\t}", "@Test\n\tpublic void test_equals1() {\n\tTennisPlayer c1 = new TennisPlayer(11,\"Joe Tsonga\");\n\tTennisPlayer c2 = new TennisPlayer(11,\"Joe Tsonga\");\n\tassertTrue(c1.equals(c2));\n }", "@Test\n public void testEquals() {\n System.out.println(\"equals\");\n Commissioner instance = new Commissioner();\n Commissioner instance2 = new Commissioner();\n instance.setLogin(\"genie\");\n instance2.setLogin(\"genie\");\n boolean expResult = true;\n boolean result = instance.equals(instance2);\n assertEquals(expResult, result);\n }", "private static final boolean equal(Object a, Object b) {\n if (a == b)\n return true;\n if (a == null)\n return false;\n if (b == null)\n return false;\n return a.equals(b);\n }", "@Test\r\n\tpublic void testEquality(){\n\t\t assertEquals(object1, object2);\r\n\t}", "public static BinaryExpression equal(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "@Override\n protected boolean runInEQ() {\n return true;\n }", "public boolean isEqual(Heaper anObject) {\n\treturn anObject.getCategory() == getCategory();\n/*\nudanax-top.st:15781:SequenceSpace methodsFor: 'testing'!\n{BooleanVar} isEqual: anObject {Heaper}\n\t\"is equal to any basic space on the same category of positions\"\n\t^anObject getCategory == self getCategory!\n*/\n}", "@Test\n\tvoid testeEquals() \n\t{\n\t\tContato outro = new Contato(\"Matheus\", \"Gaudencio\", \"1234\");\n\t\tassertTrue(outro.equals(contatoBasico));\n\t}", "@Test\n public void testEquals_1() {\n LOGGER.info(\"testEquals_1\");\n final AtomString atomString = new AtomString(\"Hello\");\n final Atom atom = new AtomString(\"Hello\");\n final boolean actual = atomString.equals(atom);\n assertTrue(actual);\n }", "public abstract String representInequality();", "public T caseOperation_Less_Equals(Operation_Less_Equals object)\r\n {\r\n return null;\r\n }", "private static boolean equalityTest3(String a, String b)\n {\n return System.identityHashCode(a) == System.identityHashCode(b);\n }", "@Test\n public void testEquals() {\n System.out.println(\"equals\");\n Receta instance = new Receta();\n instance.setNombre(\"nom1\");\n Receta instance2 = new Receta();\n instance.setNombre(\"nom2\");\n boolean expResult = false;\n boolean result = instance.equals(instance2);\n assertEquals(expResult, result);\n }", "public T caseOperation_Equals(Operation_Equals object)\r\n {\r\n return null;\r\n }", "public interface Equality extends Clause {}", "private static boolean equalityTest2(String a, String b)\n {\n return a.equals(b);\n }", "@Test\n\tpublic void testEquals1() {\n\t\tDistance d1 = new Distance(0, 0);\n\t\tDistance d2 = new Distance();\n\t\tassertEquals(false, d1.equals(d2));\n\t}", "@Test\n public void testEquals() {\n \n Beneficiaire instance = ben2;\n Beneficiaire unAutreBeneficiaire = ben3;\n boolean expResult = false;\n boolean result = instance.equals(unAutreBeneficiaire);\n assertEquals(expResult, result);\n\n unAutreBeneficiaire = ben2;\n expResult = true;\n result = instance.equals(unAutreBeneficiaire);\n assertEquals(expResult, result);\n }", "@Test\n public void testEquals() {\n Coctail c1 = new Coctail(\"coctail\", new Ingredient[]{ \n new Ingredient(\"ing1\"), new Ingredient(\"ing2\")});\n Coctail c2 = new Coctail(\"coctail\", new Ingredient[]{ \n new Ingredient(\"ing1\"), new Ingredient(\"ing2\")});\n assertEquals(c1, c2);\n }", "@Test\n public void equals() {\n Command commandCopy = new McqInputCommand(\"a\", mcqTest);\n assertTrue(G_MCQ_COMMAND.equals(commandCopy));\n\n // same object -> returns true\n assertTrue(commandCopy.equals(commandCopy));\n\n assertFalse(commandCopy.equals(null));\n\n // different type -> returns false\n assertFalse(commandCopy.equals(10));\n assertFalse(commandCopy.equals(\"TestString\"));\n }", "boolean equivalent(Concept x, Concept y);", "@Test\n\tpublic void test_equals2() {\n\tTennisPlayer c1 = new TennisPlayer(11,\"Joe Tsonga\");\n\tTennisPlayer c2 = new TennisPlayer(521,\"Joe Tsonga\");\n\tassertFalse(c1.equals(c2));\n }", "@Test\n void equals1() {\n Student s1=new Student(\"emina\",\"milanovic\",18231);\n Student s2=new Student(\"emina\",\"milanovic\",18231);\n assertEquals(true,s1.equals(s2));\n }", "boolean hasSameAs();", "public T caseOperation_Not_Equals(Operation_Not_Equals object)\r\n {\r\n return null;\r\n }", "@Override // com.google.common.base.Equivalence\n public boolean doEquivalent(Object a, Object b) {\n return false;\n }", "public void testObjEqual()\n {\n assertEquals( true, Util.objEqual(null,null) );\n assertEquals( false,Util.objEqual(this,null) );\n assertEquals( false,Util.objEqual(null,this) );\n assertEquals( true, Util.objEqual(this,this) );\n assertEquals( true, Util.objEqual(\"12\",\"12\") );\n }", "default boolean ne(int lhs, int rhs) {\r\n return !eq(lhs,rhs);\r\n }", "@Test\n public void Test13_1() {\n component = new DamageEffectComponent(EffectEnum.DAMAGE_BUFF, 3, 40);\n DamageEffectComponent another = new DamageEffectComponent(EffectEnum.DAMAGE_DEBUFF, 3, -40);\n // Then test the method\n assertFalse(component.equals(another));\n }", "@Override\n public boolean equals(Object other) {\n return super.equals(other);\n }", "boolean canEqual(Object obj);", "@Test\r\n public void testEquals() {\r\n System.out.println(\"equals\");\r\n Object obj = null;\r\n RevisorParentesis instance = null;\r\n boolean expResult = false;\r\n boolean result = instance.equals(obj);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\n public void testEqualsMethodDifferentObjects() {\n String name = \"A modifier\";\n int cost = 12;\n\n Modifier m1 = new Modifier(name, cost) {\n @Override\n public int getValue() {\n return 0;\n }\n };\n\n assertFalse(m1.equals(new Object()));\n }", "boolean hasIsEquivalent();", "@Test\n\tpublic void test_TCM__boolean_equals_Object() {\n\t\tfinal Attribute attribute = new Attribute(\"test\", \"value\");\n\n assertFalse(\"attribute equal to null\", attribute.equals(null));\n\n final Object object = attribute;\n assertTrue(\"object not equal to attribute\", attribute.equals(object));\n assertTrue(\"attribute not equal to object\", object.equals(attribute));\n\n // current implementation checks only for identity\n// final Attribute clonedAttribute = (Attribute) attribute.clone();\n// assertTrue(\"attribute not equal to its clone\", attribute.equals(clonedAttribute));\n// assertTrue(\"clone not equal to attribute\", clonedAttribute.equals(attribute));\n\t}", "@Test\n public void testEqualsMethodDifferentCost() {\n String name = \"A modifier\";\n int cost1 = 12;\n int cost2 = 14;\n\n Modifier m1 = new Modifier(name, cost1) {\n @Override\n public int getValue() {\n return 0;\n }\n };\n Modifier m2 = new Modifier(name, cost2) {\n @Override\n public int getValue() {\n return 0;\n }\n };\n\n assertFalse(m1.equals(m2));\n }", "@Override\n public BL equal(final ANY that) {\n\t\tif (that instanceof TS) {\n\t\t\tfinal TS thatTS = (TS) that;\n\t\t\treturn this.minus(thatTS).isZero();\n\t\t} else {\n\t\t\treturn BLimpl.FALSE;\n\t\t}\n\t}", "@Test\n public void testEquals02() {\n System.out.println(\"equals\");\n Object otherObject = new SocialNetwork();\n boolean result = sn10.equals(otherObject);\n assertFalse(result);\n }", "@Test\n\tpublic void test_equals1() {\n\tTvShow t1 = new TvShow(\"Sherlock\",\"BBC\");\n\tTvShow t2 = new TvShow(\"Sherlock\",\"BBC\");\n\tassertTrue(t1.equals(t2));\n }", "public boolean equals(java.lang.Object r2) {\n /*\n r1 = this;\n if (r1 == r2) goto L_0x0015\n boolean r0 = r2 instanceof com.bamtechmedia.dominguez.about.p052r.p053i.C2327c\n if (r0 == 0) goto L_0x0013\n com.bamtechmedia.dominguez.about.r.i.c r2 = (com.bamtechmedia.dominguez.about.p052r.p053i.C2327c) r2\n java.lang.String r0 = r1.f6488c\n java.lang.String r2 = r2.f6488c\n boolean r2 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r2)\n if (r2 == 0) goto L_0x0013\n goto L_0x0015\n L_0x0013:\n r2 = 0\n return r2\n L_0x0015:\n r2 = 1\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bamtechmedia.dominguez.about.p052r.p053i.C2327c.equals(java.lang.Object):boolean\");\n }", "@Test\n\tpublic void testEquals2() {\n\t\tDistance d2 = new Distance();\n\t\tDistance d4 = new Distance(1, 1);\n\t\tassertEquals(true, d2.equals(d4));\n\t}", "public String getName()\n {\n return \"equal\";\n }", "public abstract boolean doEquivalent(T t, T t2);", "@Test\n public void testEquals() {\n assertFalse(jesseOberstein.equals(nathanGoodman));\n assertTrue(kateHutchinson.equals(kateHutchinson));\n }", "@Override\n public abstract boolean equals(Object abc);", "@Test\n public void equal() {\n assertTrue(commandItem.equals(commandItemCopy));\n assertTrue(commandItem.isSameCommand(commandItemCopy));\n //not commanditem return false\n assertFalse(commandItem.equals(commandWord));\n }", "public abstract boolean equals(Object other);", "@Test\n public void testEquals() {\n System.out.println(\"Animal.equals\");\n Animal newAnimal = new Animal(252, \"Candid Chandelier\", 10, \"Cheetah\", 202);\n assertTrue(animal1.equals(newAnimal));\n assertFalse(animal2.equals(newAnimal));\n }", "@Test\n @DisplayName(\"Test should detect equality between equal states.\")\n public void testShouldResultInEquality() {\n ObjectBag os1 = new ObjectBag(null, \"Hi\");\n ObjectBag os2 = new ObjectBag(null, \"Hi\");\n\n Assertions.assertThat(os1).isEqualTo(os2);\n }", "@Test\n public void testEqualsMethodEqualObjects() {\n String name = \"A modifier\";\n int cost = 12;\n\n Modifier m1 = new Modifier(name, cost) {\n @Override\n public int getValue() {\n return 0;\n }\n };\n Modifier m2 = new Modifier(name, cost) {\n @Override\n public int getValue() {\n return 0;\n }\n };\n\n assertTrue(m1.equals(m2));\n }", "@Test\n public void testEquals() {\n\tSystem.out.println(\"equals\");\n\tObject obj = null;\n\tJenkinsBuild instance = new JenkinsBuild();\n\tboolean expResult = false;\n\tboolean result = instance.equals(obj);\n\tassertEquals(expResult, result);\n\tJenkinsBuild newObj = new JenkinsBuild();\n\tnewObj.setBuildNumber(0);\n\tnewObj.setSystemLoadId(\"\");\n\tnewObj.setJobName(\"\");\n\tassertEquals(expResult, instance.equals(newObj));\n }", "@Override\n\tpublic Object visit(ASTEquality node, Object data)\n\t{\n\t\treturn visitOperatorNode(node, data);\n\t}", "private void asserEquals(int esperado, int resultado) {\n\t\t\r\n\t}", "public void equal() {\n if (operatorAssigned != Operator.NON || operatorType != Operator.NON) {\n double subResult;\n if (numberStored[1] != 0) {\n subResult = basicCalculation(numberStored[1], Double.parseDouble(mainLabel.getText()), operatorType);\n numberStored[0] = basicCalculation(numberStored[0], subResult, operatorAssigned);\n numberStored[1] = 0;\n mainLabel.setText(Double.toString(numberStored[0]));\n } else {\n numberStored[0] = basicCalculation(numberStored[0], Double.parseDouble(mainLabel.getText()), operatorType);\n mainLabel.setText(Double.toString(numberStored[0]));\n }\n }\n operatorAssigned = Operator.NON;\n operatorType = Operator.NON;\n }", "@Test\n public void equals_DifferentObjects_Test() {\n Assert.assertFalse(bq1.equals(ONE));\n }", "@Test\n\tpublic void test_equals2() {\n\tTvShow t1 = new TvShow(\"Sherlock\",\"BBC\");\n\tTvShow t2 = new TvShow(\"NotSherlock\",\"BBC\");\n\tassertFalse(t1.equals(t2));\n }", "@Test\n void testEqualsTrue() {\n LoginRequest loginRequest1Copy = new LoginRequest(\"[email protected]\", \"pwd\");\n assertEquals(loginRequest1Copy, loginRequest1);\n }", "@Test\n public void Test13_2() {\n component = new DamageEffectComponent(EffectEnum.DAMAGE_BUFF, 3, 40);\n DamageEffectComponent another = new DamageEffectComponent(EffectEnum.DAMAGE_BUFF, 4, 40);\n // Then test the method\n assertFalse(component.equals(another));\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }" ]
[ "0.6738134", "0.6646298", "0.6496157", "0.6323362", "0.62319225", "0.61601883", "0.6115778", "0.60484564", "0.60470104", "0.6044388", "0.6008101", "0.6008035", "0.59953666", "0.59806347", "0.5957598", "0.5950826", "0.59299016", "0.5910255", "0.59092504", "0.58989966", "0.58960855", "0.5883004", "0.5882798", "0.58658385", "0.586232", "0.58599085", "0.5853437", "0.58526385", "0.5847771", "0.5846748", "0.5832281", "0.5830412", "0.5815126", "0.5808187", "0.57988185", "0.5787766", "0.57406014", "0.57237434", "0.57226527", "0.57194465", "0.57064843", "0.56752026", "0.56742907", "0.56635207", "0.56503737", "0.56476605", "0.56410515", "0.56322986", "0.5625117", "0.5621796", "0.56189346", "0.56170994", "0.5612375", "0.5606499", "0.5592865", "0.55863655", "0.5579792", "0.5579079", "0.55697924", "0.5565537", "0.55612206", "0.5558322", "0.55571383", "0.55561256", "0.55522513", "0.55427074", "0.55393696", "0.5538565", "0.5537001", "0.55348116", "0.5526715", "0.55263144", "0.5526055", "0.5526055", "0.5526055", "0.5526055", "0.5526055", "0.5526055", "0.5526055", "0.5526055", "0.5526055", "0.5526055", "0.5526055", "0.5526055", "0.5526055", "0.5526055", "0.5526055", "0.5526055", "0.5526055", "0.5526055", "0.5526055", "0.5526055", "0.5526055", "0.5526055", "0.5526055", "0.5526055", "0.5526055", "0.5526055", "0.5526055", "0.5526055", "0.5526055" ]
0.0
-1
ButtonConnect end Manager Control enabled BluetoothService when onStart
public boolean enableService() { log_d( "enabledService()" ); showTitleNotConnected(); // no action if debug if ( BT_DEBUG_SERVICE ) return false; // If BT is not on, request that it be enabled. // setupChat() will then be called during onActivityResult if ( !mBluetoothAdapter.isEnabled() ) { // startActivity Adapter Enable return true; // Otherwise, setup the chat session } else { initService(); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onStart(){ \r\n\t\t//ensure bluetooth is enabled \r\n\t\tensureBluetoothIsEnabled();\r\n\t\tsuper.onStart(); \t\r\n\t}", "void setBluetoothService(BluetoothService bluetoothService);", "void bluetoothDeactivated();", "@Override\n public void onClick(View v) {\n if (mBluetoothConnection.isConnected()) {\n mBluetoothConnection.changeState(BluetoothConnection.STATE_IMAGE_RECEIVING);\n mBluetoothConnection.write(\"open_settings\");\n buttonSettings.setEnabled(false);\n } else {\n Toast.makeText(getBaseContext(), \"Device not connected\", Toast.LENGTH_SHORT).show();\n }\n }", "private void setScanButton() {\n if (!mConnected) {\n if (mAbleBLEService == null) {\n Toast.makeText(getActivity(), \"this should not happen, as this object is static\", Toast.LENGTH_SHORT).show();\n }\n mAbleBLEService.connect(mDeviceAddress);\n sConnectButton.setText(R.string.menu_disconnect);\n sConnectButton.setBackgroundColor(Color.rgb(237, 34, 34));\n } else {\n mAbleBLEService.disconnect();\n sConnectButton.setText(R.string.menu_connect);\n sConnectButton.setBackgroundColor(Color.rgb(42, 42, 42));\n }\n }", "public void connectButtonListener()\n {\n final Context context = Monitoring.this;\n btnConnectDisconnect = (Button) findViewById(R.id.btn_select);\n\n btnConnectDisconnect.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View arg0)\n {\n if (!mBtAdapter.isEnabled())\n {\n Log.i(TAG, \"onClick - Bluetooth not enabled yet\");\n Intent enableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableIntent, REQUEST_ENABLE_BT);\n }\n else\n {\n if (btnConnectDisconnect.getText().toString().equals(\"Connect\"))\n {\n //Connect button pressed, open DeviceListActivity class,\n // with popup windows that scan for devices...\n Intent newIntent = new Intent(context, Scanner.class);\n startActivityForResult(newIntent, REQUEST_SELECT_DEVICE);\n }\n else\n {\n //Disconnect button pressed\n if (mDevice != null)\n {\n mService.disconnect();\n }\n }\n }\n }\n });\n }", "private void resetBluetooth() {\n if (mBtAdapter != null) {\n mBtAdapter.disable();\n mHandler.postDelayed(new Runnable() {\n\n @Override\n public void run() {\n checkEnableBt();\n }\n }, 200);\n\n }\n }", "private void connect() {\n // after 10 seconds its connected\n new Handler().postDelayed(\n new Runnable() {\n public void run() {\n Log.d(TAG, \"Bluetooth Low Energy device is connected!!\");\n // Toast.makeText(getApplicationContext(),\"Connected!\",Toast.LENGTH_SHORT).show();\n stateService = Constants.STATE_SERVICE.CONNECTED;\n startForeground(Constants.NOTIFICATION_ID_FOREGROUND_SERVICE, prepareNotification());\n }\n }, 10000);\n\n }", "private void CheckBtIsOn() {\n mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n\n if (!mBluetoothAdapter.isEnabled()) {\n Toast.makeText(getApplicationContext(), \"Bluetooth Disabled!\",\n Toast.LENGTH_SHORT).show();\n\n // Start activity to show bluetooth options\n Intent enableBtIntent = new Intent(mBluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n }\n }", "@Override\n public IBinder onBind(Intent intent) {\n\n AppConstants.RebootHF_reader = false;\n if (mBluetoothLeService != null) {\n final boolean result = mBluetoothLeService.connect(mDeviceAddress);\n Log.d(TAG, \"Connect request result=\" + result);\n }\n\n\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n setContentView(R.layout.activity_main);\n btnOn = findViewById(R.id.bluetoothStart); // кнопка включения\n btnOff = findViewById(R.id.bluetoothStop); // кнопка выключения\n statusText = findViewById(R.id.statusBluetooth); // для вывода текста, полученного\n btState = findViewById(R.id.bluetoothIm);\n workState = findViewById(R.id.workStatIm);\n\n h = new Handler() {\n public void handleMessage(android.os.Message msg) {\n switch (msg.what) {\n case RECIEVE_MESSAGE:\n statusText.setText(\"msg\");// если приняли сообщение в Handler\n byte[] readBuf = (byte[]) msg.obj;\n String strIncom = new String(readBuf, 0, msg.arg1);\n sb.append(strIncom); // формируем строку\n int endOfLineIndex = sb.indexOf(\"\\r\\n\"); // определяем символы конца строки\n if (endOfLineIndex > 0) { // если встречаем конец строки,\n String sbprint = sb.substring(0, endOfLineIndex); // то извлекаем строку\n sb.delete(0, sb.length()); // и очищаем sb\n statusText.setText(\"Ответ от датчика: \" + sbprint); // обновляем TextView\n String[] step_data = sbprint.split(\" \");\n writeFile(step_data[0]);\n writeFile(\";\");\n writeFile(step_data[1]);\n writeFile(\";\");\n writeFile(step_data[2]);\n writeFile(\";\\n\");\n btnOff.setEnabled(true);\n btnOn.setEnabled(true);\n }\n //Log.d(TAG, \"...Строка:\"+ sb.toString() + \"Байт:\" + msg.arg1 + \"...\");\n break;\n }\n };\n };\n\n btAdapter = BluetoothAdapter.getDefaultAdapter(); // получаем локальный Bluetooth адаптер\n\n if (btAdapter.isEnabled()) {\n SharedPreferences prefs_btdev = getSharedPreferences(\"btdev\", 0);\n String btdevaddr=prefs_btdev.getString(\"btdevaddr\",\"?\");\n\n if (btdevaddr != \"?\") {\n BluetoothDevice device = btAdapter.getRemoteDevice(btdevaddr);\n UUID SERIAL_UUID = UUID.fromString(\"0000f00d-1212-afde-1523-785fef13d123\"); // bluetooth serial port service\n //UUID SERIAL_UUID = device.getUuids()[0].getUuid(); //if you don't know the UUID of the bluetooth device service, you can get it like this from android cache\n try {\n btSocket = device.createRfcommSocketToServiceRecord(SERIAL_UUID);\n } catch (Exception e) {\n Log.e(\"\",\"Error creating socket\");\n }\n\n try {\n btSocket.connect();\n Log.e(\"\",\"Connected\");\n } catch (IOException e) {\n Log.e(\"\",e.getMessage());\n try {\n Log.e(\"\",\"trying fallback...\");\n btSocket =(BluetoothSocket) device.getClass().getMethod(\"createRfcommSocket\", new Class[] {int.class}).invoke(device,1);\n btSocket.connect();\n Log.e(\"\",\"Connected\");\n } catch (Exception e2) {\n Log.e(\"\", \"Couldn't establish Bluetooth connection!\");\n }\n }\n } else {\n Log.e(\"\",\"BT device not selected\");\n }\n }\n\n checkBTState();\n\n btnOn.setOnClickListener(new OnClickListener() { // определяем обработчик при нажатии на кнопку\n public void onClick(View v) {\n //btnOn.setEnabled(false);\n workState.setImageResource(R.drawable.ic_action_work_on);\n mConnectedThread.run();\n // TODO start writing in file\n }\n });\n\n btnOff.setOnClickListener(new OnClickListener() {\n public void onClick(View v) {\n //btnOff.setEnabled(false);\n workState.setImageResource(R.drawable.ic_action_work_off);\n mConnectedThread.cancel();\n // TODO stop writing in file\n }\n });\n }", "private void onEnableBluetoothResponse(int resultCode) {\n\t\tif (resultCode == RESULT_OK) {\n\t\t\tlogger.debug(\"onEnableBluetoothResponse(): Bluetooth enabled. Starting Workout Service.\");\n\t\t\tworkoutServiceIntent = new Intent(this, WorkoutService.class);\n\t\t\tstartService(workoutServiceIntent);\n\t\t\tbindService(workoutServiceIntent, workoutServiceConn, BIND_AUTO_CREATE);\n\t\t}\n\n\t\telse {\n\t\t\tlogger.warn(\"onEnableBluetoothResponse(): User elected not to enable Bluetooth. Activity will now finish.\");\n\t\t\tfinish();\n\t\t}\n\t}", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n mSecondService = ISecondary.Stub.asInterface(service);\n mKillBtn.setEnabled(true);\n }", "public void buttonClick_connect(View view)\n\t{\n\t\tAppSettings.showConnectionLost = false;\n\t\tLog.i(TAG, \"showConnectionLost = false\");\n\t\t\n\t\tAppSettings.bluetoothConnection = new BluetoothConnection(this.getApplicationContext(), this.btConnectionHandler);\n\t\tBluetoothAdapter btAdapter = AppSettings.bluetoothConnection.getBluetoothAdapter();\n\t\t\n\t\t// If the adapter is null, then Bluetooth is not supported\n if (btAdapter == null) {\n \tToast.makeText(getApplicationContext(), R.string.bt_not_available, Toast.LENGTH_LONG).show();\n }\n else {\n \t// If Bluetooth is not on, request that it be enabled.\n if (!btAdapter.isEnabled()) {\n Intent enableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableIntent, REQUEST_ENABLE_BT);\n }\n else {\n \t// Launch the DeviceListActivity to see devices and do scan\n Intent serverIntent = new Intent(getApplicationContext(), DeviceListActivity.class);\n startActivityForResult(serverIntent, REQUEST_CONNECT_DEVICE);\n }\n }\n\t}", "@Override\n public void onClick(View v) {\n BluetoothAdapter myBleAdapter = BluetoothAdapter.getDefaultAdapter();\n myBleAdapter.enable();\n\n if (myBleWrapper.isBtEnabled() == true) {\n tV1.setTextColor(Color.parseColor(\"#000000\"));\n tV1.setText(\"Yo ble is on\");\n }\n// else\n// {\n// tV1.setText(\"ble is off\");\n// }\n }", "public void connectService() {\n log_d( \"connectService()\" );\n\t\t// no action if debug\n if ( BT_DEBUG_SERVICE ) {\n\t\t\ttoast_short( \"No Action in debug\" );\n \treturn;\n }\n\t\t// connect the BT device at once\n\t\t// if there is a device address. \n\t\tString address = getPrefAddress();\n\t\tif ( isPrefUseDevice() && ( address != null) && !address.equals(\"\") ) {\n\t \tBluetoothDevice device = mBluetoothAdapter.getRemoteDevice( address );\n\t \tif ( mBluetoothService != null ) {\n\t \t log_d( \"connect \" + address );\n\t \tmBluetoothService.connect( device );\n\t }\n\t\t// otherwise\n\t\t// send message for the intent of the BT device list\n\t\t} else {\n\t\t\tnotifyDeviceList();\n\t\t}\n\t}", "private void turnOnBT() {\n\t\tIntent intent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n\t\tstartActivityForResult(intent, 1);\n\t}", "@Override\r\n\tprotected void onHandleIntent(Intent intent) {\n\t\tfinal BluetoothManager bluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);\r\n\t\tmBluetoothAdapter = bluetoothManager.getAdapter();\r\n\r\n\t\t// Checks if Bluetooth is supported on the device.\r\n\t\tif (mBluetoothAdapter == null) {\r\n\t\t\tLog.i(TAG, \"Bluetooth is not supported\");\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\tLog.i(TAG, \"mBluetoothAdapter = \" + mBluetoothAdapter);\r\n\t\t}\r\n\r\n\t\t//启用蓝牙\r\n\t\t//mBluetoothAdapter.enable();\r\n\t\t//Log.i(TAG, \"mBluetoothAdapter.enable\");\r\n\t\t\r\n\t\tmBLE = new BluetoothLeClass(this);\r\n\t\t\r\n\t\tif (!mBLE.initialize()) {\r\n\t\t\tLog.e(TAG, \"Unable to initialize Bluetooth\");\r\n\t\t}\r\n\t\tLog.i(TAG, \"mBLE = e\" + mBLE);\r\n\r\n\t\t// 发现BLE终端的Service时回调\r\n\t\tmBLE.setOnServiceDiscoverListener(mOnServiceDiscover);\r\n\r\n\t\t// 收到BLE终端数据交互的事件\r\n\t\tmBLE.setOnDataAvailableListener(mOnDataAvailable);\r\n\t\t\r\n\t\t//开始扫描\r\n\t\tmBLE.scanLeDevice(true);\r\n\t\t\r\n\t\t/*\r\n\t\tMRBluetoothManage.Init(this, new MRBluetoothEvent() {\r\n\t\t\t@Override\r\n\t\t\tpublic void ResultStatus(int result) {\r\n\t\t\t\tswitch (result) {\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_NOT_OPEN:\r\n\t\t\t\t\t//Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\r\n\t\t\t\t\t//startActivityForResult(enableBtIntent, 100);\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_NOT_OPEN\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_INIT_OK:\r\n\t\t\t\t\tMRBluetoothManage.scanAndConnect();\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_INIT_OK\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_SCAN_START:\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_SCAN_START\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_SCAN_END:\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_SCAN_END\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_CONNECT_START:\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_CONNECT_START\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_CONNECT_OK:\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_CONNECT_OK\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_CONNECT_CLOSE:\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_CONNECT_CLOSE\");\r\n\t\t\t\t\tMRBluetoothManage.stop();\r\n\t\t\t\t\tMRBluetoothManage.scanAndConnect();\r\n\t\t\t\t\t//MRBluetoothManage.Init(BluetoothService.this, this);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void ResultDevice(ArrayList<BluetoothDevice> deviceList) {\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void ResultData(byte[] data) {\r\n\t\t\t\tLog.i(TAG, data.toString());\r\n\t\t\t\tbyte[] wenDuByte = new byte[2];\r\n\t\t\t\tbyte[] shiDuByte = new byte[2];\r\n\t\t\t\tbyte[] shuiFenByte = new byte[2];\r\n\t\t\t\tbyte[] ziWaiXianByte = new byte[2];\r\n\t\t\t\tSystem.arraycopy(data, 4, wenDuByte, 0, 2);\r\n\t\t\t\tSystem.arraycopy(data, 6, shiDuByte, 0, 2);\r\n\t\t\t\tSystem.arraycopy(data, 8, shuiFenByte, 0, 2);\r\n\t\t\t\tSystem.arraycopy(data, 10, ziWaiXianByte, 0, 2);\r\n\t\t\t\tTestModel model = new TestModel();\r\n\t\t\t\tmodel.wenDu = BitConverter.toShort(wenDuByte);\r\n\t\t\t\tmodel.shiDu = BitConverter.toShort(shiDuByte);\r\n\t\t\t\tmodel.shuiFen = BitConverter.toShort(shuiFenByte);\r\n\t\t\t\tmodel.ziWaiXian = BitConverter.toShort(ziWaiXianByte);\r\n\t\t\t\t//Log.d(TAG, model.toString());\r\n\t\t\t\tsendData(model);\r\n\t\t\t}\r\n\t\t});\r\n\t\t*/\r\n\t}", "@Override\n public void onServiceConnected(ComponentName componentName, IBinder service) {\n mNanoBLEService = ((NanoBLEService.LocalBinder) service).getService();\n\n //initialize bluetooth, if BLE is not available, then finish\n if (!mNanoBLEService.initialize()) {\n finish();\n }\n\n //Start scanning for devices that match DEVICE_NAME\n final BluetoothManager bluetoothManager =\n (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);\n mBluetoothAdapter = bluetoothManager.getAdapter();\n mBluetoothLeScanner = mBluetoothAdapter.getBluetoothLeScanner();\n if(mBluetoothLeScanner == null){\n finish();\n Toast.makeText(NewScanActivity.this, \"Please ensure Bluetooth is enabled and try again\", Toast.LENGTH_SHORT).show();\n }\n mHandler = new Handler();\n if (SettingsManager.getStringPref(mContext, SettingsManager.SharedPreferencesKeys.preferredDevice, null) != null) {\n preferredDevice = SettingsManager.getStringPref(mContext, SettingsManager.SharedPreferencesKeys.preferredDevice, null);\n scanPreferredLeDevice(true);\n } else {\n scanLeDevice(true);\n }\n }", "public void connect()\n {\n \tLog.d(TAG, \"connect\");\n \t\n \tif(!this.isConnected ) {\n mContext.bindService(new Intent(\"com.google.tungsten.LedService\"), mServiceConnection, \n \t\tContext.BIND_AUTO_CREATE);\n \t}\n }", "@Override\n protected void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n m_tts = new TextToSpeech(this, this);\n\n Intent newint = getIntent();\n //receive the address of the bluetooth device\n address = newint.getStringExtra(MainActivity.EXTRA_ADDRESS);\n\n //view of the ledControl\n setContentView(R.layout.activity_game_play);\n\n btnEnd = (Button)findViewById(R.id.btnEnd);\n\n new ConnectBT().execute(); //Call the class to connect\n\n btnEnd.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Disconnect(); //close connection\n }\n });\n\n }", "@SuppressLint(\"NewApi\")\n @Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n bleService = ((BleService.LocalBinder) service).getService();\n if (!bleService.init()) {\n finish();\n }\n bleService.connect(Home_Fragment.Device_Address);\n mpd = ProgressDialog.show(Dialog_Activity.this, null, \"正在连接设备...\");\n Log.i(\"DeviceConnect\", \"onServiceConnected: \");\n }", "private void setupBTService(){\n btService = new BluetoothService(this, mHandler);\n\n // Initialize the buffer for outgoing messages\n outStringBuffer = new StringBuffer(\"\");\n\t}", "void onStateChange(BluetoothService.BTState state);", "public void initBT() {\n\n\t\tStatusBox.setText(\"Connecting...\");\n\t\tLog.e(TAG, \"Connecting...\");\n\t\t\n\t\tif (D) {\n\t\t\tLog.e(TAG, \"+ ON RESUME +\");\n\t\t\tLog.e(TAG, \"+ ABOUT TO ATTEMPT CLIENT CONNECT +\");\n\t\t}\n\t\t\n\t\t//If Mac Address is null then stop this process and display message\n\t\tif(MAC_ADDRESS == \"\"){\n\t\t\tLog.e(TAG,\"No MAC Address Found...\");\n\t\t\tToast.makeText(getApplicationContext(), \"No Mac Address found. Please Enter using button.\",Toast.LENGTH_SHORT );\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// When this returns, it will 'know' about the server,\n\t\t// via it's MAC address.\n\t\tBluetoothDevice device = null;\n\t\ttry {\n\t\t\tdevice = mBluetoothAdapter.getRemoteDevice(MAC_ADDRESS);\n\t\t} catch (Exception e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tToast.makeText(getApplicationContext(), \"NOT Valid BT MAC Address\", Toast.LENGTH_SHORT);\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t\t// returns firefly e350\n\t\tLog.e(TAG, \"device name: \" + device.getName());\n\n\t\t// We need two things before we can successfully connect\n\t\t// (authentication issues aside): a MAC address, which we\n\t\t// already have, and an RFCOMM channel.\n\t\t// Because RFCOMM channels (aka ports) are limited in\n\t\t// number, Android doesn't allow you to use them directly;\n\t\t// instead you request a RFCOMM mapping based on a service\n\t\t// ID. In our case, we will use the well-known SPP Service\n\t\t// ID. This ID is in UUID (GUID to you Microsofties)\n\t\t// format. Given the UUID, Android will handle the\n\t\t// mapping for you. Generally, this will return RFCOMM 1,\n\t\t// but not always; it depends what other BlueTooth services\n\t\t// are in use on your Android device.\n\t\ttry {\n\t\t\t\n\t\t\tint currentapiVersion = android.os.Build.VERSION.SDK_INT;\n\t\t\t\n\t\t\t//RFCOMM connection varies depending on android version. Fixes bug in Gingerbread and newer where always asks for BT Pairing code.\n\t\t\tif (currentapiVersion >= android.os.Build.VERSION_CODES.GINGERBREAD_MR1){\n\t\t\t\t//used in android >= 2.3.3\n\t\t\t\tbtSocket = device.createInsecureRfcommSocketToServiceRecord(MY_UUID);\n\t\t\t} else if (currentapiVersion < android.os.Build.VERSION_CODES.GINGERBREAD_MR1){\n\t\t\t\t//used in android < 2.3.3\n\t\t\t\tbtSocket = device.createRfcommSocketToServiceRecord(MY_UUID);\n\t\t\t}\n\t\t\t\n\t\t\tLog.e(TAG, \"ON RESUME: Socket created!\");\n\t\t\n\t\t\n\t\t\t// Discovery may be going on, e.g., if you're running a\n\t\t\t// 'scan for devices' search from your handset's Bluetooth\n\t\t\t// settings, so we call cancelDiscovery(). It doesn't hurt\n\t\t\t// to call it, but it might hurt not to... discovery is a\n\t\t\t// heavyweight process; you don't want it in progress when\n\t\t\t// a connection attempt is made.\n\t\t\tmBluetoothAdapter.cancelDiscovery();\n\n\t\t\tmyBT = new ConnectedThread(btSocket);\n\t\t\t\n\t\t\t\n\t\t\t// don't write to the streams unless they are created\n\t\t\tif (myBT.BTconnStatus) {\n\t\t\t\t\n\t\t\t\tStatusBox.setText(\"CONNECTED\");\n\t\t\t\tLog.e(TAG, \"CONNECTED\");\n\t\t\t\t\n\t\t\t\t// ST,255 enables remote configuration forever...need this if\n\t\t\t\t// resetting\n\t\t\t\t// PIO4 is held high on powerup then toggled 3 times to reset\n\n\t\t\t\t// GPIO Commands to BT device page 15 of commands datasheet\n\t\t\t\tbyte[] cmdMode = { '$', '$', '$' };\n\t\t\t\tmyBT.write(cmdMode);\n\t\t\t\tmyBT.run();\n\n\t\t\t\t// S@,8080 temp sets GPIO-7 to an output\n\t\t\t\tbyte[] cmd1 = { 'S', '@', ',', '8', '0', '8', '0', 13 };\n\n\t\t\t\t// S%,8080 perm sets GPIO-7 to an output on powerup. only done once\n\t\t\t\t// byte [] cmd1 = {'S','%',',','8','0','8','0',13};\n\n\t\t\t\tmyBT.write(cmd1);\n\t\t\t\tmyBT.run();\n\n\t\t\t\t// S&,8000 drives GPIO-7 low\n\t\t\t\t// byte [] cmd2 = {'S','^',',','8','0','0','0',13};\n\n\t\t\t\t// make it so cmd mode won't timeout even after factory reset\n\t\t\t\tbyte[] cmd3 = { 'S', 'T', ',', '2', '5', '5', 13 };\n\t\t\t\tmyBT.write(cmd3);\n\t\t\t\tmyBT.run();\n\n\t\t\t} else {\n\t\t\t\t//StatusBox.setText(\"NOT Connected\");\t\n\t\t\t\tLog.e(TAG, \"NOT Connected\");\n\t\t\t}\n\t\t\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\tif (D)\n\t\t\t\tLog.e(TAG, \"ON RESUME: Socket creation failed.\", e);\n\t\t}\n\n\t\t\n\t\t\n\t}", "public void registerCallback() {\n if (mLocalManager == null) {\n Log.e(TAG, \"registerCallback() Bluetooth is not supported on this device\");\n return;\n }\n mLocalManager.setForegroundActivity(mFragment.getContext());\n mLocalManager.getEventManager().registerCallback(this);\n mLocalManager.getProfileManager().addServiceListener(this);\n forceUpdate();\n }", "private void turnOn(View v) {\n bluetoothAdapter.enable();\n }", "public void setStatus(int status){\n Log.d(TAG, \"-- SET STATUS --\");\n switch(status){\n //connecting to remote device\n case BluetoothClientService.STATE_CONNECTING:{\n Toast.makeText(this, \"Connecting to remote bluetooth device...\", Toast.LENGTH_SHORT).show();\n ToggleButton statusButton = (ToggleButton) this.findViewById(R.id.status_button);\n statusButton.setBackgroundResource(R.drawable.connecting_button);\n break;\n }\n //not connected\n case BluetoothClientService.STATE_NONE:{\n Toast.makeText(this, \"Unable to connect to remote device\", Toast.LENGTH_SHORT).show();\n ToggleButton statusButton = (ToggleButton) this.findViewById(R.id.status_button);\n statusButton.setBackgroundResource(R.drawable.disconnect_button);\n statusButton.setTextOff(getString(R.string.disconnected));\n statusButton.setChecked(false);\n break;\n }\n //established connection to remote device\n case BluetoothClientService.STATE_CONNECTED:{\n Toast.makeText(this, \"Connection established with remote bluetooth device...\", Toast.LENGTH_SHORT).show();\n ToggleButton statusButton = (ToggleButton) this.findViewById(R.id.status_button);\n statusButton.setBackgroundResource(R.drawable.connect_button);\n statusButton.setTextOff(getString(R.string.connected));\n statusButton.setChecked(true);\n //start motion monitor\n motionMonitor = new MotionMonitor(this, mHandler);\n motionMonitor.start();\n break;\n }\n }\n }", "@Override\r\n public void onCreate() {\n intent = new Intent(BROADCAST_ACTION);\r\n startBTService();\r\n// try{\r\n// mConnectedThread.write(\"2\".getBytes());\r\n// }catch(Exception e){\r\n//\r\n// }\r\n }", "private boolean isBtConnected(){\n \treturn false;\n }", "void activateBlue(BluetoothAdapter bluetoothAdapter){\r\n if (!bluetoothAdapter.isEnabled()) {\r\n Intent enableBlueTooth = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\r\n startActivityForResult(enableBlueTooth, REQUEST_CODE_ENABLE_BLUETOOTH);\r\n }\r\n }", "@Override\n\t\tpublic void onClick(View arg0) {\n\t\t\t\n\t\t\t\n\t\t\tif(deviceTab==true && shakeTab==false) // device service tab\n\t\t\t{\t\t\t\n\t\t\t\t\n\t\t\t\tif(deviceStatus) // on ache off kora lagbe\n\t\t\t\t{\n\t\t\t\t\tdeviceStatus=false;\n\t\t\t\t\tstatusButton.setChecked(deviceStatus);\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//-----------saving service------------------------\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tSharedPreferences pref=getSharedPreferences(\"service_status\",0);\n\t\t\t\t\tSharedPreferences.Editor editor=pref.edit();\n\t\t\t\t\t\n\t\t\t\t\teditor.putString(\"device\",deviceStatus+\"\");\n\t\t\t\t\teditor.putString(\"shake\",shakeStatus+\"\");\n\t\t\t\t\teditor.commit();\n\t\t\t\t\t//--------------------------------------\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//-----------------Akhane baki code korte hobe----Device service off korte hobe-----------------\n\t\t\t\t\t\n\t\t\t\t//\tToast.makeText(getApplicationContext(), \"Device service is off\", Toast.LENGTH_LONG).show();\n\t\t\t\t\tIntent in=new Intent(EmergencyActivity.this,BluetoothService.class);\n\t\t\t\t\tstopService(in);\n\t\t\t\t\t\n\t\t\t\t\t//--------------------------------------------------------------------\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse // off ache on kora lagbe\n\t\t\t\t{\n\t\t\t\t\tif(shakeStatus==false) // jodi shake service bondho thake tahole device service on kora jabe ta na hole age shake ta bondho korte hobe pore device ta on korte hobe\n\t\t\t\t\t{\n\t\t\t\t\tdeviceStatus=true;\n\t\t\t\t\tstatusButton.setChecked(deviceStatus);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//------------- saving the service status\n\t\t\t\t\t\n\t\t\t\t\tSharedPreferences pref=getSharedPreferences(\"service_status\",0);\n\t\t\t\t\tSharedPreferences.Editor editor=pref.edit();\n\t\t\t\t\t\n\t\t\t\t\teditor.putString(\"device\",deviceStatus+\"\");\n\t\t\t\t\teditor.putString(\"shake\",shakeStatus+\"\");\n\t\t\t\t\teditor.commit();\n\t\t\t\t\t//--------------------------------------\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n //-----------------Akhane baki code korte hobe---device service on korte hobe------------------\n\t\t\t\t\t\n\t\t\t\t\t//Toast.makeText(getApplicationContext(), \"Device service is On\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\n\t\t\t\t\tIntent in=new Intent(EmergencyActivity.this,BluetoothService.class);\n\t\t\t\t\tstartService(in);\n\t\t\t\t\t//--------------------------------------------------------------------\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"Your shake service is ON. Please turn it OFF. Then try again\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t statusButton.setChecked(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse // shake service tab\n\t\t\t{\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(shakeStatus) // on ache off kora lagbe\n\t\t\t\t{\n\t\t\t\t\tshakeStatus=false;\n\t\t\t\t\tstatusButton.setChecked(shakeStatus);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//---------------- saving service status----------------\n\t\t\t\t\t\n\t\t\t\t\tSharedPreferences pref=getSharedPreferences(\"service_status\",0);\n\t\t\t\t\tSharedPreferences.Editor editor=pref.edit();\n\t\t\t\t\t\n\t\t\t\t\teditor.putString(\"device\",deviceStatus+\"\");\n\t\t\t\t\teditor.putString(\"shake\",shakeStatus+\"\");\n\t\t\t\t\teditor.commit();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//-----------------------------------------------------\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//-----------------Akhane baki code korte hobe----shake service off korte hobe-----------------\n\t\t\t\t\t\n\t\t\t\t\t//Toast.makeText(getApplicationContext(), \"Shake service is Off\", Toast.LENGTH_LONG).show();\n\t\t\t\t\tIntent in=new Intent(EmergencyActivity.this,ShakeService.class);\n\t\t\t\t\tstopService(in);\n\t\t\t\t\t\n\t\t\t\t\t//--------------------------------------------------------------------\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse // off ache on kora lagbe\n\t\t\t\t{\n\t\t\t\t\tif(deviceStatus==false) // jodi shake service bondho thake tahole device service on kora jabe ta na hole age shake ta bondho korte hobe pore device ta on korte hobe\n\t\t\t\t\t{\n\t\t\t\t\tshakeStatus=true;\n\t\t\t\t\tstatusButton.setChecked(shakeStatus);\n //-----------------Akhane baki code korte hobe---device service on korte hobe------------------\n\n\t\t\t\t\tSharedPreferences pref=getSharedPreferences(\"service_status\",0);\n\t\t\t\t\tSharedPreferences.Editor editor=pref.edit();\n\t\t\t\t\t\n\t\t\t\t\teditor.putString(\"device\",deviceStatus+\"\");\n\t\t\t\t\teditor.putString(\"shake\",shakeStatus+\"\");\n\t\t\t\t\teditor.commit();\n\t\t\t\t\t\n\t\t\t\t//\tToast.makeText(getApplicationContext(), \"Shake service is on\", Toast.LENGTH_LONG).show();\n\t\t\t\t\tIntent in=new Intent(EmergencyActivity.this,ShakeService.class);\n\t\t\t\t\tstartService(in);\n\t\t\t\t\t\n\t\t\t\t\t//--------------------------------------------------------------------\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"Your device service is ON. Please turn it OFF. Then try again\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t statusButton.setChecked(false);\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}", "private void connectBluetooth() {\n try {\n if (blueTooth == null && macSet) {\n Log.d(\"lol\", \"macSet connect bluetooootooththoth\");\n blueTooth = new BluetoothConnection(macAddress, this, listener);\n blueTooth.connect();\n }\n } catch (Exception e) {\n Log.d(\"lol\", \"Failed connection: \" + e.getMessage() + \" \" + e.getClass());\n }\n }", "@Override\n public void onClick(View v)\n {\n if (!mBluetoothAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n }\n\n if (clicked) {\n registerDevicesBtn.setText(\"Register Devices\");\n clicked = false;\n mBluetoothAdapter.cancelDiscovery();\n Log.d(\"BT\", \"Cancelled task.\");\n } else {\n registerDevicesBtn.setText(\"Stop Registering Devices\");\n clicked = true;\n devices = new ArrayList<>();\n mBluetoothAdapter.startDiscovery();\n Log.d(\"BT\", \"Started task.\");\n }\n }", "@Override\n public void onClick(View v) {\n if (mBluetoothAdapter.isEnabled()) {\n\n }\n }", "public void onClick(View v) {\n mConnectedThread.write(\"1\"); // Send \"1\" via Bluetooth\n Toast.makeText(getBaseContext(), \"Turn on LED\", Toast.LENGTH_SHORT).show();\n }", "@Override\r\n public void onStart() {\n super.onStart();\r\n Carteasy cs = new Carteasy();\r\n Map<String, String> data = cs.ViewData(String.valueOf(1), getApplicationContext());\r\n for (Map.Entry<String, String> entry : data.entrySet()) {\r\n //get the Id\r\n Log.d(\"Key: \",entry.getKey());\r\n Log.d(\"Value: \",entry.getValue());\r\n }\r\n if (!BTAdapter.isEnabled()) {\r\n // IT NEEDS BLUETOOTH PERMISSION\r\n // Intent to enable bluetooth, it will show the enable bluetooth\r\n // dialog\r\n Intent enableIntent = new Intent(\r\n BluetoothAdapter.ACTION_REQUEST_ENABLE);\r\n // this is to get a result if bluetooth was enabled or not\r\n startActivityForResult(enableIntent, REQUEST_ENABLE_BT);\r\n // It will call onActivityResult method to determine if Bluetooth\r\n // was enabled or not\r\n } else {\r\n // Bluetooth is enabled\r\n }\r\n }", "public void onServiceConnected(ComponentName className, IBinder service) {\n\t\t\tmBoundService = ((LocalService.LocalBinder) service).getService();\r\n\r\n\t\t\t// Wenn während des Setups der Service noch nicht fertig geladen\r\n\t\t\t// ist, wird solange Warte-Overlay angezeigt\r\n\t\t\t// Wenn der Service fertig ist wird das Overlay ausgeblendet\r\n\r\n\t\t\t// if (OverlayActivity.isCreated) {\r\n\t\t\t// OverlayActivity.getInstance().dismiss();\r\n\t\t\t// }\r\n\t\t\tSetupSearchDevicesFragment fragment = (SetupSearchDevicesFragment) getFragmentById(\"SetupSearchDevicesFragment\");\r\n\t\t\tif (fragment.isVisible()) {\r\n\t\t\t\tfragment.initViewBluetooth();\r\n\t\t\t}\r\n\r\n\t\t\t// Tell the user about this for our demo.\r\n\t\t\tLog.i(TAG, \"Service connected with app...\");\r\n\t\t\t// Toast.makeText(MainActivity.this, \"Service connected.\", Toast.LENGTH_SHORT).show();\r\n\r\n\t\t\t// Verbinde mit gespeichertem Device (falls noch keine Verbindung\r\n\t\t\t// besteht)\r\n\t\t\tif (mSharedPrefs.getConnectivityType() == 1) { // BEI BT\r\n\r\n\t\t\t\tfinal ConnectionInterface connection = mBoundService.getConnection();\r\n\t\t\t\tif (connection != null) {\r\n\t\t\t\t\tif (!connection.isConnected()) {\r\n\r\n\t\t\t\t\t\t// OnConnectedListener\r\n\t\t\t\t\t\tconnection.setOnConnectedListener(new OnConnectedListener() {\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onConnectedListener(String deviceName) {\r\n\r\n\t\t\t\t\t\t\t\tconnection.registerDisconnectHandler();\r\n\r\n\t\t\t\t\t\t\t\tif (mSharedPrefs.getDeviceMode() == 1) { // ELTERN\r\n\t\t\t\t\t\t\t\t\t// HELLO Nachricht senden\r\n\t\t\t\t\t\t\t\t\tString msg = mContext.getString(R.string.BABYFON_MSG_CONNECTION_HELLO) + \";\"\r\n\t\t\t\t\t\t\t\t\t\t\t+ mSharedPrefs.getHostAddress() + \";\" + mSharedPrefs.getPassword();\r\n\t\t\t\t\t\t\t\t\tconnection.sendMessage(msg);\r\n\r\n\t\t\t\t\t\t\t\t\tmSharedPrefs.setRemoteOnlineState(true);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tif (mSharedPrefs.getDeviceMode() == 1) { // ELTERN\r\n\t\t\t\t\t\t\tif (mSharedPrefs.getRemoteAddress() != null) { // Gespeichertes Gerät\r\n\t\t\t\t\t\t\t\t// Verbinde\r\n\t\t\t\t\t\t\t\tmBoundService.connectTo(mSharedPrefs.getRemoteAddress());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else if (mSharedPrefs.getDeviceMode() == 0) { // BABY\r\n\t\t\t\t\t\t\t// Warte auf Verbindung\r\n\t\t\t\t\t\t\tmBoundService.startServer();\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\r\n\t\t}", "public void startBluetooth(){\n mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n if (!mBluetoothAdapter.isEnabled()) {\n Intent btIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n //btIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(btIntent);\n }\n mBluetoothAdapter.startDiscovery();\n System.out.println(\"@ start\");\n IntentFilter filter = new IntentFilter(BluetoothDevice.ACTION_FOUND);\n getActivity().registerReceiver(mReceiver, filter);\n }", "@Override\r\n public void disconnected(SyncEvent e) {\n btFechar.setEnabled(true);\r\n }", "private void enableBT() {\n if (bluetoothAdapter == null) {\n Log.e(LOG_TAG, \"Bluetooth is not supported\");\n } else if (!bluetoothAdapter.isEnabled()) {\n bluetoothAdapter.enable();\n }\n }", "private void ensureBluetoothEnabled() {\n if (!mBluetoothAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(\n BluetoothAdapter.ACTION_REQUEST_ENABLE);\n main.startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n } else {\n connectToBluetoothDevice(\"00:06:66:64:42:97\"); // Hard coded MAC of the BT-device.\n Log.i(tag, \"Connected to device!\");\n }\n }", "public void onCreate() {\n\t\tSystem.out.println(\"This service is called!\");\n\t\tmyBluetoothAdapter= BluetoothAdapter.getDefaultAdapter();\n\t\tmyBluetoothAdapter.enable();\n\t\tSystemClock.sleep(5000);\n\t\tif (myBluetoothAdapter.isEnabled()){\n\t\t\tSystem.out.println(\"BT is enabled...\");\n\t\t\tdiscover = myBluetoothAdapter.startDiscovery();\n\t\t}\n\t\tSystem.out.println(myBluetoothAdapter.getScanMode());\n\t\t\n\t\tSystem.out.println(\"Discovering: \"+myBluetoothAdapter.isDiscovering());\n\t\t//registerReceiver(bReceiver, new IntentFilter(BluetoothDevice.ACTION_FOUND));\n\t\tIntentFilter filter1 = new IntentFilter(BluetoothDevice.ACTION_FOUND);\n\t\tIntentFilter filter2 = new IntentFilter(BluetoothAdapter.ACTION_DISCOVERY_FINISHED);\n\t\tthis.registerReceiver(bReceiver, filter1);\n\t\tthis.registerReceiver(bReceiver, filter2);\n\t\t//registerReceiver(bReceiver, new IntentFilter(BluetoothAdapter.ACTION_DISCOVERY_FINISHED));\n\t}", "@Override\n public void onConnectionStateChange(BluetoothGatt gatt, int status,\n int newState) {\n Log.i(\"onConnectionStateChange\", \"The connection status has changed. status:\" + status + \" newState:\" + newState + \"\");\n try {\n if(status == BluetoothGatt.GATT_SUCCESS) {\n switch (newState) {\n // Has been connected to the device\n case BluetoothProfile.STATE_CONNECTED:\n Log.i(\"onConnectionStateChange\", \"Has been connected to the device\");\n if(_ConnectionStatus == ConnectionStatus.Connecting) {\n _ConnectionStatus = ConnectionStatus.Connected;\n try {\n if (_PeripheryBluetoothServiceCallBack != null)\n _PeripheryBluetoothServiceCallBack.OnConnected();\n if (gatt.getDevice().getBondState() == BluetoothDevice.BOND_BONDED){\n //Url : https://github.com/NordicSemiconductor/Android-DFU-Library/blob/release/dfu/src/main/java/no/nordicsemi/android/dfu/DfuBaseService.java\n Log.i(\"onConnectionStateChange\",\"Waiting 1600 ms for a possible Service Changed indication...\");\n // Connection successfully sleep 1600ms, the connection success rate will increase\n Thread.sleep(1600);\n }\n } catch (Exception e){}\n // Discover service\n gatt.discoverServices();\n }\n break;\n // The connection has been disconnected\n case BluetoothProfile.STATE_DISCONNECTED:\n Log.i(\"onConnectionStateChange\", \"The connection has been disconnected\");\n if(_ConnectionStatus == ConnectionStatus.Connected) {\n if (_PeripheryBluetoothServiceCallBack != null)\n _PeripheryBluetoothServiceCallBack.OnDisConnected();\n }\n Close();\n _ConnectionStatus = ConnectionStatus.DisConnected;\n break;\n /*case BluetoothProfile.STATE_CONNECTING:\n Log.i(\"onConnectionStateChange\", \"Connecting ...\");\n _ConnectionStatus = ConnectionStatus.Connecting;\n break;\n case BluetoothProfile.STATE_DISCONNECTING:\n Log.i(\"onConnectionStateChange\", \"Disconnecting ...\");\n _ConnectionStatus = ConnectionStatus.DisConnecting;\n break;*/\n default:\n Log.e(\"onConnectionStateChange\", \"newState:\" + newState);\n break;\n }\n }else {\n Log.i(\"onConnectionStateChange\", \"GATT error\");\n Close();\n if(_ConnectionStatus == ConnectionStatus.Connecting\n && _Timeout - (new Date().getTime() - _ConnectStartTime.getTime()) > 0) {\n Log.i(\"Connect\", \"Gatt Error! Try to reconnect (\"+_ConnectIndex+\")...\");\n _ConnectionStatus = ConnectionStatus.DisConnected;\n Connect(); // Connect\n }else {\n _ConnectionStatus = ConnectionStatus.DisConnected;\n if (_PeripheryBluetoothServiceCallBack != null)\n _PeripheryBluetoothServiceCallBack.OnDisConnected();\n }\n }\n }catch (Exception ex){\n Log.e(\"onConnectionStateChange\", ex.toString());\n }\n super.onConnectionStateChange(gatt, status, newState);\n }", "@Override\n public void onStart()\n {\n super.onStart();\n // setBTMenus( mApp.mBTAdapter.isEnabled() );\n }", "private void checkBTState() {\n\n if(btAdapter==null) {\n Toast.makeText(getContext(), \"El dispositivo no soporta bluetooth\", Toast.LENGTH_LONG).show();\n } else {\n if (btAdapter.isEnabled()) {\n } else {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "void onCloseBleComplete();", "private void bluetoothConnect() {\n\n btDevice = btAdapter.getRemoteDevice(EDISON_ADDRESS);\n if (btDevice == null) {\n Log.d(TAG,\"get remote device fail!\");\n finish();\n }\n\n try {\n btSocket = btDevice.createRfcommSocketToServiceRecord(SSP_UUID);\n } catch (IOException e) {\n Log.d(TAG,\"bluetooth socket create fail.\");\n }\n //save resource by cancel discovery\n btAdapter.cancelDiscovery();\n\n //connect\n try {\n btSocket.connect();\n Log.d(TAG,\"Connection established.\");\n } catch ( IOException e) {\n try {\n btSocket.close();\n }catch (IOException e2) {\n Log.d(TAG,\"unable to close socket after connect fail.\");\n }\n }\n\n //prepare outStream to send message\n try {\n outStream = btSocket.getOutputStream();\n } catch (IOException e) {\n Log.d(TAG,\"output stream init fail!\");\n }\n\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onFinish() {\n\t\t\t\t\t\t\t\t\tmDelegateConnected.onConnect(false);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif (mBluetoothGatt != null) {\n\t\t\t\t\t\t\t\t\t\tmBluetoothGatt.close();\n\t\t\t\t\t\t\t\t\t\tmBluetoothGatt = null;\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// Let the user launch a new connection request\n\t\t\t\t\t\t\t\t\twaitingForConnResp = false;\n\t\t\t\t\t\t\t\t}", "@Override\n\tpublic void completeDeviceConnectService(BTController cbtController) {\n\t\tsuper.completeDeviceConnectService(cbtController);\n\t\tsetDeviceName();\n\t\tsetShowHideConnAnimation();\n\t\tif(view != null){\n\t\t\timageView_to.setVisibility(View.VISIBLE);\n\t\t\timageView_phone.setVisibility(View.VISIBLE);\n\t\t}\n\t\t\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n mCheckBt = false;\n if (requestCode == REQUEST_ENABLE_BT && resultCode != RESULT_OK) {\n// mScanButton.setEnabled(false);\n Toast.makeText(this, getString(R.string.bluetooth_not_enabled), Toast.LENGTH_LONG).show();\n }\n }", "private void ensureBluetoothIsEnabled(){\r\n\t\t//if Bluetooth is not enabled, enable it now\r\n\t\tif (!mBtAdapter.isEnabled()) { \t\t\r\n \t enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\r\n \t startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\r\n \t}\r\n\t}", "public void startConnection(){\n startBTConnection(mBTDevice,MY_UUID_INSECURE);\n }", "@Override\n public void checkBluetoothInteface() {\n if (!isConnected) {\n checkForBluetooth();\n }\n }", "private void checkBTState() {\n if(btAdapter==null) {\n btState.setImageResource(R.drawable.ic_action_off);\n errorExit(\"Fatal Error\", \"Bluetooth не поддерживается\");\n\n } else {\n if (btAdapter.isEnabled()) {\n Log.d(TAG, \"...Bluetooth включен...\");\n btState.setImageResource(R.drawable.ic_action_on);\n } else {\n //Prompt user to turn on Bluetooth\n Intent enableBtIntent = new Intent(btAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n }\n }\n }", "public BlueMeshServiceBuilder bluetooth( boolean enabled ){\n bluetoothEnabled = enabled;\n return this;\n }", "abstract BtServiceListener getBtListener();", "@Override\n public void onCheckedChanged(CompoundButton compoundButton, boolean b) {\n if (b) {\n // Toast.makeText(getContext(), \"on\", Toast.LENGTH_LONG).show();\n\n context.startService(in);\n\n } else {\n //Toast.makeText(getContext(), \"of\", Toast.LENGTH_LONG).show();\n //in = new Intent(getContext(), HorizantelShake.class);\n context.stopService(in);\n }\n prefs = PreferenceManager.getDefaultSharedPreferences(getContext());\n SharedPreferences.Editor prefEditor = prefs.edit();\n prefEditor.putBoolean(\"service_status\", b);\n prefEditor.commit();\n }", "public void onClickStart(View view) {\n\n HashMap<String, UsbDevice> usbDevices = usbManager.getDeviceList();\n if (!usbDevices.isEmpty()) {\n boolean keep = true;\n for (Map.Entry<String, UsbDevice> entry : usbDevices.entrySet()) {\n device = entry.getValue();\n int deviceVID = device.getVendorId();\n if (deviceVID == 0x2341)//Arduino Vendor ID\n {\n PendingIntent pi = PendingIntent.getBroadcast(this, 0, new Intent(ACTION_USB_PERMISSION), 0);\n usbManager.requestPermission(device, pi);\n keep = false;\n } else {\n connection = null;\n device = null;\n }\n\n if (!keep)\n break;\n }\n }\n\n\n }", "private void checkBTState() {\n\n if (btAdapter == null) {\n Toast.makeText(getBaseContext(), \"Device does not support bluetooth\", Toast.LENGTH_LONG).show();\n } else {\n if (btAdapter.isEnabled()) {\n } else {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "@Override\n public void run() {\n super.run();\n Log.i(TAG, \"BlueTooth Start\");\n _BluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n\n if (_BluetoothAdapter != null){\n if(!_BluetoothAdapter.isEnabled())\n _BluetoothAdapter.enable();\n else{\n _BluetoothDevice = _BluetoothAdapter.getRemoteDevice(strAddress_BT_UART);\n if (_BluetoothDevice != null){\n Log.i(TAG, \"Starting BtConnect\");\n BtConnect BC = new BtConnect(_BluetoothDevice);\n BC.start();\n }\n }\n }\n }", "private void enableBtmon() {\n System.out.println(\"Starting Btmon Service...\");\n try {\n btmonProcess = new ProcessBuilder(\"/usr/bin/btmon\").start();\n InputStreamReader inputStream = new InputStreamReader(btmonProcess.getInputStream());\n int size;\n char buffer[] = new char[1024];\n while ((size = inputStream.read(buffer, 0, 1024)) != -1) {\n // System.out.println(\" --- Read ----\");\n String data = String.valueOf(buffer, 0, size);\n processBeaconMessage(data);\n // Thread.sleep(1000);\n }\n } catch (IOException ex ) {\n ex.printStackTrace();\n } catch (Exception ex ) {\n ex.printStackTrace();\n } finally {\n if (btmonProcess != null)\n btmonProcess.destroy();\n }\n }", "private void checkBTState() {\n\n if(btAdapter==null) {\n Toast.makeText(getBaseContext(), \"Device does not support bluetooth\", Toast.LENGTH_LONG).show();\n } else {\n if (btAdapter.isEnabled()) {\n } else {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "@Override\n\t\tpublic void run() {\n\t\t\ttry{\n//\t\t\t\tdevAddr = devices.get(position).split(\"\\\\|\")[1];\n//\t\t\t\tbtAdapt.cancelDiscovery();\n//\t\t\t\t\n//\t\t\t\tbtSocket = btAdapt.getRemoteDevice(devAddr).createRfcommSocketToServiceRecord(uuid);\n//\t\t\t\tbtSocket.connect();Log.e(tag, \"connected\");\n\t\t\t\tInetAddress severInetAddr=InetAddress.getByName(\"120.105.129.108\");\n\t\t\t\tWifisocket = new Socket(severInetAddr, 8101);\n\t\t\t\t\n\t\t\t\tsynchronized (this) {\n//\t\t\t\t\tbtIn = btSocket.getInputStream();\n//\t\t\t\t\tbtOut = btSocket.getOutputStream();\n\t\t\t\t\tbtIn = Wifisocket.getInputStream();\n\t\t\t\t\tbtOut = Wifisocket.getOutputStream();\n\t\t\t\t\tLog.e(tag, \"connected\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tThread.sleep(100);\n\t\t\t\tsetUpAsForeground(\"Wifi已連線\");\n\t\t\t} catch( IOException | InterruptedException e ){\n\t\t\t\te.printStackTrace();\n\t\t\t\ttry{\n//\t\t\t\t\tbtSocket.close();\n//\t\t\t\t\tWifisocket.close();\n\t\t\t\t\tThread.sleep(1500);\n\t\t\t\t\tsetUpAsForeground(\"Wifi未連線\");\n\t\t\t\t\tLog.i(\"exiconne\", \"bluetoohservice bye!;\");\n\t\t\t\t} catch(InterruptedException e1){\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\tLog.i(\"exiconne\", \"bluetoohservice bye!;\");\n\t\t\t\t}\n//\t\t\t\tbtSocket = null;\n\t\t\t\tWifisocket = null;\n\t\t\t\tmBTState = BTState.stopped;\n\t\t\t\tBluetoothConnect.mBTstate = BTstate.opened;\n\t\t\t}\n\n\t\t}", "@Override\n public void onReceive(Context context, Intent intent) {\n Bluetooth_14_feb receiveObj = (Bluetooth_14_feb) context.getApplicationContext();\n boolean appActive = receiveObj.isActivityVisible();\n //int appActive = receiveObj.getActivityCount();\n //Log.d(TAG,\"onReceive:receiver\");\n String action = intent.getAction(); // Get intent's action string\n Bundle extras = intent.getExtras();\n\n if (extras == null) return; // All intents of interest have extras.\n\n\n switch (action) {\n case \"android.bluetooth.adapter.action.STATE_CHANGED\": {\n\n int state = extras.getInt(\"android.bluetooth.adapter.extra.STATE\", FAIL);\n switch (state) {\n case BluetoothAdapter.STATE_OFF: \n if (!appActive) {\n\n Toast.makeText(context,\"Bluetooth:OFF\",Toast.LENGTH_SHORT).show();\n\n }\n else{\n\n Intent inten = new Intent(context,ConnectivityDialog.class);\n inten.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(inten);\n //num=1;\n\n }\n\n break;\n \n case BluetoothAdapter.STATE_ON:\n\n\n if(!appActive) {\n Log.d(TAG,\"state-on-appactive\");\n Toast.makeText(context, \"Bluetooth:ON\", Toast.LENGTH_SHORT).show();\n }\n else{\n\n Intent i = new Intent(\"FINISH\");\n //i.setAction(\"FINISH\");\n context.sendBroadcast(i);\n Toast.makeText(context, \"Bluetooth:ON\", Toast.LENGTH_SHORT).show();\n }\n\n\n\n break;\n\n }\n\n }\n }\n }", "public void sendBtMsg(final String msg2send) {\n UUID uuid = UUID.fromString(\"94f39d29-7d6d-437d-973b-fba39e49d4ee\"); //Standard SerialPortService ID\n try {\n\n if (mmDevice != null) {\n mmSocket = mmDevice.createRfcommSocketToServiceRecord(uuid);\n if (!mmSocket.isConnected()) {\n try {\n mmSocket.connect();\n Handler handler = new Handler(Looper.getMainLooper());\n handler.post(new Runnable() {\n @Override\n public void run() {\n\n toastMsg(\"Connection Established\");\n\n String msg = msg2send;\n //msg += \"\\n\";\n OutputStream mmOutputStream = null;\n try {\n mmOutputStream = mmSocket.getOutputStream();\n mmOutputStream.write(msg.getBytes());\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n });\n\n } catch (IOException e) {\n Log.e(\"\", e.getMessage());\n mmSocket.close();\n Handler handler = new Handler(Looper.getMainLooper());\n handler.post(new Runnable() {\n @Override\n public void run() {\n toastMsg(\"Connection not Established\");\n\n\n }\n });\n\n /*try {\n Log.e(\"\", \"trying fallback\");\n mmSocket =(BluetoothSocket) mmDevice.getClass().getMethod(\"createRfcommSocket\", new Class[] {int.class}).invoke(mmDevice,1);\n mmSocket.connect();\n Log.e(\"\", \"Connected\");\n }\n catch (Exception e2){\n Log.e(\"\", \"Couldn't establish Bluetooth connection!\");\n toastMsg(\"Couldn't establish Bluetooth connection!\");\n }*/\n }\n }\n\n\n/*\n if (mmOutputStream == null)\n try {\n mmOutputStream = mmSocket.getOutputStream();\n } catch (IOException e) {\n errorExit(\"Fatal Error\", \"In onResume(), input and output stream creation failed:\" + e.getMessage() + \".\");\n }*/\n\n } else {\n if (mBluetoothAdapter != null) {\n\n\n Set<BluetoothDevice> pairedDevices = mBluetoothAdapter.getBondedDevices();\n if (pairedDevices.size() > 0) {\n for (BluetoothDevice device : pairedDevices) {\n if (device.getName().matches(\".*\")) //Note, you will need to change this to match the name of your device\n {\n Log.e(\"Aquarium\", device.getName());\n mmDevice = device;\n sendBtMsg(msg2send);\n break;\n }\n }\n }\n }\n }\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n }", "public void setBluetoothService(BluetoothService bluetoothService) {\n this.bluetoothService = bluetoothService;\n }", "public void checkBTState() {\n if(mAdapter==null) {\n errorExit(\"Fatal Error\", \"Bluetooth not support\");\n } else {\n if (mAdapter.isEnabled()) {\n Log.d(TAG, \"...Bluetooth ON...\");\n } else {\n //Prompt user to turn on Bluetooth\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n ((Activity) mContext).startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "private void initPlugin() {\n if (bluetoothAdapter == null) {\n Log.e(LOG_TAG, \"Bluetooth is not supported\");\n } else {\n Log.e(LOG_TAG, \"Bluetooth is supported\");\n\n sendJS(\"javascript:cordova.plugins.BluetoothStatus.hasBT = true;\");\n\n //test if BLE supported\n if (!mcordova.getActivity().getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\n Log.e(LOG_TAG, \"BluetoothLE is not supported\");\n } else {\n Log.e(LOG_TAG, \"BluetoothLE is supported\");\n sendJS(\"javascript:cordova.plugins.BluetoothStatus.hasBTLE = true;\");\n }\n \n // test if BT is connected to a headset\n \n if (bluetoothAdapter.getProfileConnectionState(BluetoothProfile.HEADSET) == BluetoothProfile.STATE_CONNECTED ) {\n Log.e(LOG_TAG, \" Bluetooth connected to headset\");\n sendJS(\"javascript:cordova.fireWindowEvent('BluetoothStatus.connected');\");\n } else {\n Log.e(LOG_TAG, \"Bluetooth is not connected to a headset \" + bluetoothAdapter.getProfileConnectionState(BluetoothProfile.HEADSET));\n }\n\n //test if BT enabled\n if (bluetoothAdapter.isEnabled()) {\n Log.e(LOG_TAG, \"Bluetooth is enabled\");\n\n sendJS(\"javascript:cordova.plugins.BluetoothStatus.BTenabled = true;\");\n sendJS(\"javascript:cordova.fireWindowEvent('BluetoothStatus.enabled');\");\n } else {\n Log.e(LOG_TAG, \"Bluetooth is not enabled\");\n }\n }\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n \n Log.d(TAG, \"onActivityResult \" + resultCode);\n switch (requestCode) {\n //for now, only dealiing with insecure connection\n //i don't think its possible to have secure connections with a serial profile\n case REQUEST_CONNECT_DEVICE_INSECURE:\n if(resultCode == Activity.RESULT_OK){\n setupBluetooth();//since BT is enabled, setup client service\n connectToDevice(data, false);\n }\n else\n setStatus(BluetoothClientService.STATE_NONE);\n break;\n case REQUEST_ENABLE_BT:\n // When the request to enable Bluetooth returns\n if (resultCode == Activity.RESULT_OK) {\n Toast.makeText(this, \"Bluetooth is now enabled\", Toast.LENGTH_SHORT).show();\n }\n else {\n // User did not enable Bluetooth or an error occurred\n Log.d(TAG, \"BT not enabled\");\n Toast.makeText(this, R.string.bt_not_enabled_leaving, Toast.LENGTH_SHORT).show();\n finish();\n }\n }\n }", "@Override\n public void onResume() {\n super.onResume();\n mAbleBLEService = AbleDeviceScanActivity.getmBluetoothLeService();\n setScanButton();\n }", "@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.button_scan: {\n Intent serverIntent = new Intent(Main_Activity.this, DeviceListActivity.class);\n startActivityForResult(serverIntent, REQUEST_CONNECT_DEVICE);\n break;\n }\n case R.id.btn_close: {\n mService.stop();\n editText.setEnabled(false);\n imageViewPicture.setEnabled(false);\n width_58mm.setEnabled(false);\n width_80.setEnabled(false);\n hexBox.setEnabled(false);\n sendButton.setEnabled(false);\n\n testButton.setEnabled(false);\n printbmpButton.setEnabled(false);\n btnClose.setEnabled(false);\n btn_BMP.setEnabled(false);\n btn_ChoseCommand.setEnabled(false);\n btn_prtcodeButton.setEnabled(false);\n btn_prtsma.setEnabled(false);\n btn_prttableButton.setEnabled(false);\n btn_camer.setEnabled(false);\n btn_scqrcode.setEnabled(false);\n btnScanButton.setEnabled(true);\n Simplified.setEnabled(false);\n Korean.setEnabled(false);\n big5.setEnabled(false);\n thai.setEnabled(false);\n btnScanButton.setText(getText(R.string.connect));\n break;\n }\n case R.id.btn_test: {\n BluetoothPrintTest();\n ;\n break;\n }\n case R.id.Send_Button: {\n if (menuIdTextView.getText().equals(\"\") || menuIdTextView.getText() == null || menuIdTextView.getText().equals(\"0\")) {\n Toast.makeText(getBaseContext(), \"لاتوجد قائمة\", Toast.LENGTH_LONG).show();\n return;\n }\n\n if (btnScanButton.getText().equals(\"تم الاتصال\")) {\n\n } else {\n Toast.makeText(getBaseContext(), \"يرجى الاتصال بالطابعة\", Toast.LENGTH_LONG).show();\n return;\n }\n// printmenu\n sendToDB();\n String msg = msgPrintFormat();\n if (msg.length() > 0) {\n try {\n SharedPreferences sharedPreferences =\n PreferenceManager.getDefaultSharedPreferences(getBaseContext());\n String hello = sharedPreferences.getString(\"hello\", \"\");\n SendDataByte(PrinterCommand.POS_Print_Text(\" \", ARBIC, 22, 0, 0, 0));\n SendDataByte(Command.ESC_Align);\n byte[] code = PrinterCommand.getCodeBarCommand(sellMenuId, 73, 3, 140, 1, 2);\n Command.ESC_Align[2] = 0x01;\n SendDataByte(Command.ESC_Align);\n SendDataByte(code);\n\n SendDataByte(PrinterCommand.POS_Print_Text(hello + \"\\n\", ARBIC, 22, 0, 0, 0));\n\n SendDataByte(Command.ESC_Align);\n SendDataByte(PrinterCommand.POS_Print_Text(msg, ARBIC, 22, 0, 0, 0));\n SendDataByte(Command.ESC_Align);\n\n SendDataByte(PrinterCommand.POS_Print_Text(\"\\n\\n\\n\\n\\n\", ARBIC, 22, 0, 0, 0));\n\n\n String copys = sharedPreferences.getString(\"copys\", \"1\");\n if (copys.equals(\"2\")) {\n SendDataByte(PrinterCommand.POS_Print_Text(\"----------\", ARBIC, 22, 2, 2, 0));\n\n SendDataByte(PrinterCommand.POS_Print_Text(\"\\n\\n\\n\\n\\n\", ARBIC, 22, 0, 0, 0));\n SendDataByte(Command.ESC_Align);\n\n byte[] code3 = PrinterCommand.getCodeBarCommand(sellMenuId, 73, 3, 140, 1, 2);\n Command.ESC_Align[2] = 0x01;\n SendDataByte(Command.ESC_Align);\n SendDataByte(code3);\n SendDataByte(PrinterCommand.POS_Print_Text(hello + \"\\n\", ARBIC, 22, 1, 1, 3));\n\n SendDataByte(Command.ESC_Align);\n SendDataByte(PrinterCommand.POS_Print_Text(msg, ARBIC, 22, 0, 0, 0));\n SendDataByte(Command.ESC_Align);\n SendDataByte(PrinterCommand.POS_Print_Text(\"\\n\\n\\n\\n\\n\", ARBIC, 22, 0, 0, 0));\n SendDataByte(Command.ESC_Align);\n }\n\n } catch (Exception ex) {\n\n }\n\n\n }\n clearItemData();\n break;\n }\n case R.id.save_Button: {\n if (menuIdTextView.getText().equals(\"\") || menuIdTextView.getText() == null || menuIdTextView.getText().equals(\"0\")) {\n Toast.makeText(getBaseContext(), \"لاتوجد قائمة\", Toast.LENGTH_LONG).show();\n return;\n }\n\n\n// printmenu\n try {\n sendToDB();\n\n clearItemData();\n } catch (Exception ex) {\n Toast.makeText(getBaseContext(), \"لم يتم الحفظ\" + ex.getMessage(), Toast.LENGTH_LONG).show();\n }\n\n break;\n }\n case R.id.width_58mm:\n case R.id.width_80mm: {\n is58mm = v == width_58mm;\n width_58mm.setChecked(is58mm);\n width_80.setChecked(!is58mm);\n break;\n }\n case R.id.btn_printpicture: {\n GraphicalPrint();\n break;\n }\n case R.id.imageViewPictureUSB: {\n Intent loadpicture = new Intent(\n Intent.ACTION_PICK,\n MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(loadpicture, REQUEST_CHOSE_BMP);\n break;\n }\n case R.id.btn_prtbmp: {\n Print_BMP();\n break;\n }\n case R.id.btn_prtcommand: {\n CommandTest();\n break;\n }\n case R.id.btn_prtsma: {\n SendDataByte(Command.ESC_Init);\n SendDataByte(Command.LF);\n Print_Ex();\n break;\n }\n case R.id.btn_prttable: {\n SendDataByte(Command.ESC_Init);\n SendDataByte(Command.LF);\n PrintTable();\n break;\n }\n case R.id.btn_prtbarcode: {\n printBarCode();\n break;\n }\n case R.id.btn_scqr: {\n createImage();\n break;\n }\n case R.id.btn_dyca: {\n dispatchTakePictureIntent(REQUEST_CAMER);\n break;\n }\n default:\n break;\n }\n }", "private void checkBTState() {\n if(bluetoothAdapter==null) {\n errorExit(\"Fatal Error\", \"Bluetooth not supported\");\n } else {\n if (!bluetoothAdapter.isEnabled()) {\n //Prompt user to turn on Bluetooth\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "public interface BluetoothListener {\n\t/**\n\t * Get a description of the game, to be displayed on the BluetoothFragment layout.\n\t * @return\n\t */\n\tString getHelpString();\n\t\n\t/**\n\t * @see #onConnectedAsServer(String)\n\t */\n\tvoid onConnectedAsClient(String deviceName);\n\t\n\t/**\n\t * The 2 devices have established a bluetooth connection.\n\t * The typical action at this point is to hide the bluetooth\n\t * fragment and show the game fragment. From now on the\n\t * communication between client and server is symmetrical:\n\t * both devices can equally send and receive messages.\n\t * \n\t * Sometimes it is useful to know which device requested the\n\t * connection (the client) and which side accepted that\n\t * connection (the server).\n\t * \n\t * @param deviceName the name of the remote device\n\t */\n\tvoid onConnectedAsServer(String deviceName);\n\t\n\t/**\n\t * Typically the Activity will hide the game fragment and show\n\t * the BluetoothFragment, to allow the user to re-connect.\n\t */\n\tvoid onConnectionLost();\n\t\n\tvoid onError(String message);\n\t\n\t/**\n\t * A data message has been received from the remote device.\n\t * This corresponds to the other device performing a write().\n\t * @see BluetoothService#write(byte[] data)\n\t * \n\t * @param data\n\t */\n\tvoid onMessageRead(byte[] data);\n\t\n\t/**\n\t * A status message sent by the bluetooth service to be displayed\n\t * by the activity using Toast.\n\t * @param string\n\t */\n\tvoid onMessageToast(String string);\n\t\n\t/**\n\t * Called when the state of the bluetooth service has changed.\n\t * @see class BluetoothService.BTState for possible values.\n\t * @param state\n\t */\n\tvoid onStateChange(BluetoothService.BTState state);\n\t\n\t/**\n\t * Pass the object that will handle bluetooth communication.\n\t * Null if bluetooth not available on this device.\n\t * The main method to use in communication is write(byte[] data)\n\t * \n\t * @see BluetoothService#write(byte[] data)\n\t * @param bluetoothService\n\t */\n\tvoid setBluetoothService(BluetoothService bluetoothService);\n\n\t/**\n\t * A status message sent by the bluetooth service to be displayed\n\t * somewhere.\n\t * @param message\n\t */\n\tvoid setStatusMessage(String message);\n}", "@Override\n\tpublic void onStop() {\n\t\tsuper.onStop();\n\n\t\tif (D)\n\t\t\tLog.e(TAG, \"-- ON STOP --\");\n\n\t\t// don't do anything bluetooth if debugging the user interface\n\t\tif (BTconnect)\n\t\t\tmyBT.cancel();\n\n\t\t// kill bt pitter and bump timer\n\t\tkillHandlers();\n\n\t\t// unregister the sensor listener\n\t\tmSensorManager.unregisterListener(mSensorListener);\n\n\t\t// shutoff bluetooth\n\t\tif (turnOffBluetoothShutdown) {\n\t\t\tmBluetoothAdapter.disable();\n\t\t}\n\t\t\n\t\t// save the checkbox states for the next run\n\t\t// We need an Editor object to make preference changes.\n\t\t// All objects are from android.context.Context\n\t\tSharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);\n\t\tSharedPreferences.Editor editor = settings.edit();\n\t\teditor.putBoolean(\"ScreenOnOffEnable\", ScreenOnOffCheckBox.isChecked());\n\t\teditor.putBoolean(\"RetryConnEnable\", RetryConnBox.isChecked());\n\t\teditor.putString(\"MacAddress\", MAC_ADDRESS);\n\t\t// Commit the edits!\n\t\teditor.commit();\n\n\t}", "private void checkBTState() {\n if(btAdapter==null) {\n errorExit(\"Fatal Error\", \"Bluetooth not support\");\n } else {\n if (btAdapter.isEnabled()) {\n Log.d(TAG, \"...Bluetooth ON...\");\n } else {\n //Prompt user to turn on Bluetooth\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "public interface IBlueToothService {\n\n\n boolean initialize();\n\n void function_data(byte[] data);\n\n void enable_JDY_ble(int p);\n\n\n void disconnect();\n\n /**\n * 执行指令\n * @param g\n * @param string_or_hex_data\n * @return\n */\n int command(String g, boolean string_or_hex_data);\n\n\n void Delay_ms(int ms);\n\n /**\n * 设置密码\n * @param pss\n */\n void set_APP_PASSWORD(String pss);\n\n\n boolean connect(String address);\n\n\n /**\n * 获取连接的ble设备所提供的服务列表\n * @return\n */\n List<BluetoothGattService> getSupportedGattServices();\n\n\n int get_connected_status(List<BluetoothGattService> gattServices);\n\n\n}", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\tString action = intent.getAction();\n\t\tLog.i(\"Service\", \"onStartCommand\"+action);\n\t\tif( action.equals(ACTION_CONNECT) ){\n//\t\t\tposition = intent.getIntExtra(Tag_Position, 0);\n\t\t\tstartConnect();\t\n\t\t}\n\t\telse if( action.equals(ACTION_STOP) ){\n\t\t\tstopConnect();\n\t\t}\n\t\telse if( action.equals(ACTION_WORK) ){\n\t\t\tsetBluetoothRearch();\n\t\t}\n\t\treturn super.onStartCommand(intent, flags, startId);\n\t}", "@Override public void onClick(View v) {\n startActivity(new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE));\n }", "public void connect(View v) {\n turnOn(v);\n startActivity(new Intent(Settings.ACTION_BLUETOOTH_SETTINGS));\n Toast.makeText(getApplicationContext(), \"Select device\", Toast.LENGTH_LONG).show();\n System.err.println(bluetoothAdapter.getBondedDevices());\n }", "@Override\n public int onStartCommand(Intent intent, int flags, int startID)\n {\n // Initial Check of Action Packet to make sure it contains the device address and Action\n if (intent == null || intent.getAction() == null) {\n Log.w(TAG, \"Invalid Action Packet Received\");\n return INTENT_RETURN_POLICY;\n }\n\n // Action to be performed on the TexTronics Device\n Action action = Action.getAction(intent.getAction());\n\n\n // String deviceAddress = intent.getStringExtra(BluetoothLeConnectionService.INTENT_DEVICE);\n // Find out the exercise mode (i.e what type of data we are collecting)\n TexTronicsDevice device = mTexTronicsList.get(deviceAddress);\n// ExerciseMode exerciseMode1 = null;\n// if(device != null)\n// exerciseMode1 = device.getExerciseMode();\n\n // Make sure it is a valid Action\n if(action == null) {\n Log.w(TAG, \"Invalid Action Packet Received\");\n return INTENT_RETURN_POLICY;\n }\n\n String exerciseID = (String) intent.getSerializableExtra(EXTRA_EX_ID);\n String routineID = (String) intent.getSerializableExtra(EXTRA_ROUTINE_ID);\n\n\n // Device Address of the BLE Device corresponding to this Action Packet\n String deviceAddress = intent.getStringExtra(EXTRA_DEVICE);\n\n\n // Execute Action Packet (this can be done with multi-threading to be able to Service multiple Action Packets at once)\n switch (action)\n {\n case connect:\n {\n // Attempt to connect to BLE Device (Device Type and Transmitting Mode should be obtained during scan)\n if (!intent.hasExtra(EXTRA_TYPE) || !intent.hasExtra(EXTRA_MODE))\n {\n Log.w(TAG, \"Invalid connect Action Packet Received\");\n return INTENT_RETURN_POLICY;\n }\n // Get all connection info from the intent\n ExerciseMode exerciseMode = (ExerciseMode) intent.getSerializableExtra(EXTRA_MODE);\n DeviceType deviceType = (DeviceType) intent.getSerializableExtra(EXTRA_TYPE);\n Choice choice = (Choice) intent.getSerializableExtra(EXTRA_CHOICE);\n\n // Use data to connect to device\n connect(deviceAddress, exerciseMode, deviceType, choice, exerciseID, routineID);\n //transmit_flags();\n create_datalog(deviceAddress, MainActivity.exercise_mode, deviceType, choice, exerciseID, routineID);\n\n // publish(deviceAddress);\n //\n }\n break;\n case disconnect:\n // Attempt to disconnect from a currently connected BLE Device\n disconnect(deviceAddress);\n break;\n case publish:\n\n //connect(deviceAddress, exerciseMode, deviceType, choice, exerciseID, routineID);\n create_datalog(deviceAddress, MainActivity.exercise_mode, deviceType, choice, exerciseID, routineID);\n publish(deviceAddress);\n\n // transmit_flags();\n\n\n break;\n case stop:\n // Disconnect from each device, then stop services\n if(MainActivity.getmDeviceAddressList() != null &&\n MainActivity.getmDeviceAddressList().length != 0)\n {\n for(String address : MainActivity.getmDeviceAddressList())\n disconnect(address);\n }\n stopSelf();\n }\n\n return INTENT_RETURN_POLICY;\n }", "private void bluetoothClientProcessing(){\n\n\t\tif( client != null ){\n\t\t\tbyte keyReceive = client.receiveByte() ;\n\n\t\t\tif( keyReceive == DataTransmiting.SOFTKEY_RIGHT ||\n\t\t\t\tkeyReceive == DataTransmiting.KEY_FIRE\t){\n \n\t\t\t\tshouldStop=true;\n\t // midlet.setCurrLevel(currlevel);+\n\t midlet.playGameAgain( currlevel ,isBluetoothMode );\n\n\t\t\t}\n\t\t\telse if( keyReceive == DataTransmiting.MESSAGE_EXIT_GAME ){\n\t\t\t\tmidlet.setAlert(\"The device disconnected\") ;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcurrlevel = keyReceive ;\n\t\t\t}\n\t\t\t\n\n\t\t}\n\t}", "private void execHandlerConnected( Message msg ) {\t\n\t\t// save Device Address\n\t\tif ( mBluetoothService != null ) {\n\t\t\tString address = mBluetoothService.getDeviceAddress();\n\t\t\tsetPrefAddress( address );\n\t\t}\t\n\t\tshowTitleConnected( getDeviceName() );\n\t\thideButtonConnect();\n\t}", "@Override\n public void onScanFinished() {\n Log.d(TAG, \"Scan Finished\");\n if(dicePlus == null){\n BluetoothManipulator.startScan();\n }\n }", "private void checkEnableBt() {\n if (mBtAdapter == null || !mBtAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n }\n }", "@Override\n public void onClick(View control) {\n switch (control.getId()) {\n\n // Initiate bluetooth connection\n case R.id.connect:\n // Only make BT connection if device id was entered\n String id = deviceId.getText().toString();\n if (id.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the bluetooth receiver ID into the text field.\",\n Toast.LENGTH_SHORT).show();\n }\n else {\n connect(id);\n }\n break;\n\n // Stop the motors\n case R.id.stopMotors: {\n // Send stop message over bluetooth\n writeData(\"stop x\");\n break;\n }\n }\n }", "public synchronized BluetoothService getBluetoothService(){\n\t\treturn bluetoothService;\n\t}", "public boolean mBT_PickDevice2(){ //Will change sRemoteDeviceName\n if (oBTadapter==null) return false;\n bDevicePickerActive=true;\n oBTadapter.startDiscovery();\n {\n Intent intent = new Intent(\"android.bluetooth.devicepicker.action.LAUNCH\");\n mContext.startActivity(intent); //startActivityForResult\n }\n mSleep(1000);\n return true;\n }", "public void onDeviceDisconnected() {\n btButton.setText(\"Disconnnected\");\n }", "private void checkBluetoothEnabled()\r\n {\r\n if (!mBluetoothAdapter.isEnabled())\r\n {\r\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\r\n startActivityForResult(enableBtIntent, BLUETOOTH_ENABLE_REQUEST_ID);\r\n } else\r\n checkNfcEnabled();\r\n }", "public void openBluetooth() throws IOException {\n UUID uuid = UUID.fromString(\"00001101-0000-1000-8000-00805f9b34fb\"); //Standard SerialPortService ID\n mmSocket = mmDevice.createRfcommSocketToServiceRecord(uuid);\n mmSocket.connect();\n mmOutputStream = mmSocket.getOutputStream();\n mmInputStream = mmSocket.getInputStream();\n\n beginListenForData();\n\n btStatusDisplay.setText(\"Bluetooth Connection Opened\");\n }", "private void getBluetoothState() {\r\n\r\n\t\t if (bluetoothAdapter == null) {\r\n\t\t\t bluetoothStatusSetup.setText(\"Bluetooth NOT supported\");\r\n\t\t } else if (!(bluetoothAdapter.isEnabled())) {\r\n\t\t\t bluetoothStatusSetup.setText(\"Bluetooth is NOT Enabled!\");\r\n\t\t\t Intent enableBtIntent = new Intent(\r\n\t\t\t\t\t BluetoothAdapter.ACTION_REQUEST_ENABLE);\r\n\t\t\t startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\r\n\t\t\t getBluetoothState();\r\n\t\t }\r\n\r\n\t\t if (bluetoothAdapter.isEnabled()) {\r\n\r\n\t\t\t if (bluetoothAdapter.isDiscovering()) {\r\n\t\t\t\t bluetoothStatusSetup.setText(\"Bluetooth is currently in device discovery process.\");\r\n\t\t\t } else {\r\n\t\t\t\t bluetoothStatusSetup.setText(\"Bluetooth is Enabled.\");\r\n\t\t\t }\r\n\t\t }\r\n\t }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.ble_button) {\n enableDisableBT();\n return true;\n }\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n return true;\n }\n\n if (id == R.id.ble_button_startConnection) {\n //startConnection();\n return true;\n }\n\n if (id == R.id.btnDiscoverable_on_off) {\n Log.d(TAG, \"btnEnableDisable_Discoverable: Making device discoverable for 300 seconds.\");\n\n Intent discoverableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);\n discoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, 300);\n startActivity(discoverableIntent);\n\n IntentFilter intentFilter = new IntentFilter(mBluetoothAdapter.ACTION_SCAN_MODE_CHANGED);\n registerReceiver(mBroadcastReceiver2,intentFilter);\n }\n\n return super.onOptionsItemSelected(item);\n }", "private void enable_buttons() {\n\n\n btnInicio.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //Utilizamos dos botones, una para iniciar y otro para detener. Comprueba cual\n // Se ha pulsado\n switch (view.getId()) {\n //Login\n case R.id.buttonLogin:\n //Comprueba la conexion\n if (comprobarConexion()) {\n //Comprueba si ya hay un servicio iniciado\n if(!servicioIniciado) {\n Intent i = new Intent(getApplicationContext(), Localitzacio.class);\n i.putExtra(\"matricula\", matriculaEditText.getText().toString());\n Log.i(\"SI \", \"se abre el servicio\");\n startService(i);\n servicioIniciado = true;\n }\n } else {\n Log.i(\"NO \", \"se abre el servicio\");\n }\n break;\n //Salir\n case R.id.buttonSortir:\n Intent i = new Intent(getApplicationContext(), Localitzacio.class);\n stopService(i);\n btnStop.setEnabled(true);\n Log.i(\"CERRAR\",\"Se cierra el servicio\");\n break;\n }\n }\n });\n\n\n\n }", "private void connectToAdapter() {\n if (chosen) {\n BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter();\n BluetoothDevice device = btAdapter.getRemoteDevice(deviceAddress);\n UUID uuid = UUID.fromString(\"00001101-0000-1000-8000-00805F9B34FB\");\n // creation and connection of a bluetooth socket\n try {\n BluetoothSocket socket = device.createInsecureRfcommSocketToServiceRecord(uuid);\n socket.connect();\n setBluetoothSocket(socket);\n connected = true;\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n connect.setText(\"Disconnect\");\n connect.setTextColor(Color.RED);\n }\n });\n } catch (IOException e) {\n Log.d(\"Exception\", \"Bluetooth IO Exception c\");\n connected = false;\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(currContext, R.string.cannotConnect, Toast.LENGTH_SHORT).show();\n connect.setText(\"Connect\");\n connect.setTextColor(Color.BLACK);\n mode.setEnabled(true);\n }\n });\n }\n }\n if (bluetoothSocket.getRemoteDevice().getAddress() != null)\n Log.d(TAG, \"Bluetooth connected\");\n Log.d(TAG, \"Device address: \" + bluetoothSocket.getRemoteDevice().getAddress());\n initializeCom();\n }", "public interface OnBluetoothConnectListener {\n\t\tvoid onConnect(boolean connected);\n\t}", "@Override\n public void onDismiss(DialogInterface dialogInterface) {\n if(socket!=null)\n if(Bluetooth.isStillConnected()) {\n rtButton.setVisibility(View.VISIBLE); //Only show the button if we're connected\n }\n }", "public void stopService() {\n \tlog_d( \"stopService()\" );\n\t\t// no action if debug\n if ( BT_DEBUG_SERVICE ) return;\n\t\t// Stop the Bluetooth chat services\n\t\tif ( mBluetoothService != null ) {\n\t\t log_d( \"BluetoothService stop\" );\n\t\t\tmBluetoothService.stop();\n\t\t}\n\t\tshowButtonConnect();\n\t}", "void onConnected() {\n closeFab();\n\n if (pendingConnection != null) {\n // it'd be null for dummy connection\n historian.connect(pendingConnection);\n }\n\n connections.animate().alpha(1);\n ButterKnife.apply(allViews, ENABLED, true);\n startActivity(new Intent(this, ControlsActivity.class));\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tmsgText.setText(null);\n\t\t\tsendEdit.setText(null);\n\t\t\tif(sppConnected || devAddr == null)\n\t\t\t\treturn;\n\t\t\ttry{\n\t\t\t btSocket = btAdapt.getRemoteDevice(devAddr).createRfcommSocketToServiceRecord(uuid);\n\t\t\t btSocket.connect();\n\t\t\t Log.d(tag,\"BT_Socket connect\");\n\t\t\t synchronized (MainActivity.this) {\n\t\t\t\tif(sppConnected)\n\t\t\t\t\treturn;\n\t\t\t\tbtServerSocket.close();\n\t\t\t\tbtIn = btSocket.getInputStream();\n\t\t\t\tbtOut = btSocket.getOutputStream();\n\t\t\t\tconected();\n\t\t\t}\n\t\t\t Toast.makeText(MainActivity.this,\"藍牙裝置已開啟:\" + devAddr, Toast.LENGTH_LONG).show();\n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t\tsppConnected =false;\n\t\t\t\ttry{\n\t\t\t\t\tbtSocket.close();\n\t\t\t\t}catch(IOException e1){\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tbtSocket = null;\n\t\t\t\tToast.makeText(MainActivity.this, \"連接異常\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t}" ]
[ "0.73794585", "0.6936647", "0.68609226", "0.68069834", "0.6738965", "0.6707041", "0.6681654", "0.66603446", "0.6620691", "0.6612107", "0.6609926", "0.6583182", "0.65749013", "0.65699583", "0.65691215", "0.65432185", "0.6533566", "0.6516124", "0.6515503", "0.6506929", "0.64997804", "0.6496704", "0.6489692", "0.6477826", "0.6458947", "0.6457362", "0.64508635", "0.64350355", "0.6415678", "0.6408087", "0.6402147", "0.6374719", "0.63612366", "0.6361183", "0.6354592", "0.6350885", "0.63495857", "0.63446355", "0.6338366", "0.6333238", "0.6329671", "0.63030016", "0.6297118", "0.62940675", "0.6292829", "0.62748903", "0.6270682", "0.6267409", "0.62382984", "0.62321234", "0.62256706", "0.6197321", "0.61923826", "0.6169959", "0.6169091", "0.6159137", "0.6155622", "0.61523867", "0.6137827", "0.61357397", "0.613181", "0.61291337", "0.61188316", "0.6108466", "0.6104981", "0.6100253", "0.60990584", "0.6085762", "0.6084285", "0.6084066", "0.6068351", "0.6060155", "0.6050974", "0.60448176", "0.60216993", "0.6020104", "0.6017561", "0.5996405", "0.59962326", "0.59959686", "0.5992778", "0.5981537", "0.5978207", "0.5973351", "0.5947233", "0.59363425", "0.5933566", "0.593165", "0.5928563", "0.5928283", "0.59237957", "0.5921826", "0.59215677", "0.59182584", "0.5917208", "0.59154475", "0.59143883", "0.59059817", "0.5900246", "0.5890479" ]
0.6091153
67
Initialization of Bluetooth service
private void initService() { log_d( "initService()" ); // no action if debug if ( BT_DEBUG_SERVICE ) return; // Initialize the BluetoothChatService to perform bluetooth connections if ( mBluetoothService == null ) { log_d( "new BluetoothService" ); mBluetoothService = new BluetoothService( mContext ); } if ( mBluetoothService != null ) { log_d( "set Handler" ); mBluetoothService.setHandler( sendHandler ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupBTService(){\n btService = new BluetoothService(this, mHandler);\n\n // Initialize the buffer for outgoing messages\n outStringBuffer = new StringBuffer(\"\");\n\t}", "private void initializeBLEService(IBinder service) {\n mBluetoothLeService = ((BluetoothLeService.LocalBinder) service).getService();\n if (!mBluetoothLeService.initialize()) {\n Log.e(TAG, \"Unable to initialize Bluetooth\");\n }\n\n mActivity.registerReceiver(mGattUpdateReceiver, makeGattUpdateIntentFilter());\n // Automatically connects to the device upon successful start-up initialization.\n// mActivity.runOnUiThread(new Runnable() {\n// @Override\n// public void run() {\n// mBluetoothLeService.connect(mDeviceAddress);\n//\n// }\n// });\n mBluetoothLeService.connect(mDeviceAddress);\n }", "private void initBluetooth() {\n IntentFilter filter = new IntentFilter(BluetoothDevice.ACTION_FOUND);\n this.registerReceiver(mReceiver, filter);\n\n // Register for broadcasts when discovery has finished\n filter = new IntentFilter(BluetoothAdapter.ACTION_DISCOVERY_FINISHED);\n this.registerReceiver(mReceiver, filter);\n\n // Get the local Bluetooth adapter\n mBtAdapter = BluetoothAdapter.getDefaultAdapter();\n\n // Get a set of currently paired devices\n Set<BluetoothDevice> pairedDevices = mBtAdapter.getBondedDevices();\n\n // Initialize the BluetoothChatService to perform bluetooth connections\n mChatService = new BluetoothChatService(this, mHandler);\n }", "private Bluetooth() {}", "void setBluetoothService(BluetoothService bluetoothService);", "private void initService() {\n connection = new AppServiceConnection();\n Intent i = new Intent(this, AppService.class);\n boolean ret = bindService(i, connection, Context.BIND_AUTO_CREATE);\n Log.d(TAG, \"initService() bound with \" + ret);\n }", "public void initBT() {\n\n\t\tStatusBox.setText(\"Connecting...\");\n\t\tLog.e(TAG, \"Connecting...\");\n\t\t\n\t\tif (D) {\n\t\t\tLog.e(TAG, \"+ ON RESUME +\");\n\t\t\tLog.e(TAG, \"+ ABOUT TO ATTEMPT CLIENT CONNECT +\");\n\t\t}\n\t\t\n\t\t//If Mac Address is null then stop this process and display message\n\t\tif(MAC_ADDRESS == \"\"){\n\t\t\tLog.e(TAG,\"No MAC Address Found...\");\n\t\t\tToast.makeText(getApplicationContext(), \"No Mac Address found. Please Enter using button.\",Toast.LENGTH_SHORT );\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// When this returns, it will 'know' about the server,\n\t\t// via it's MAC address.\n\t\tBluetoothDevice device = null;\n\t\ttry {\n\t\t\tdevice = mBluetoothAdapter.getRemoteDevice(MAC_ADDRESS);\n\t\t} catch (Exception e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tToast.makeText(getApplicationContext(), \"NOT Valid BT MAC Address\", Toast.LENGTH_SHORT);\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t\t// returns firefly e350\n\t\tLog.e(TAG, \"device name: \" + device.getName());\n\n\t\t// We need two things before we can successfully connect\n\t\t// (authentication issues aside): a MAC address, which we\n\t\t// already have, and an RFCOMM channel.\n\t\t// Because RFCOMM channels (aka ports) are limited in\n\t\t// number, Android doesn't allow you to use them directly;\n\t\t// instead you request a RFCOMM mapping based on a service\n\t\t// ID. In our case, we will use the well-known SPP Service\n\t\t// ID. This ID is in UUID (GUID to you Microsofties)\n\t\t// format. Given the UUID, Android will handle the\n\t\t// mapping for you. Generally, this will return RFCOMM 1,\n\t\t// but not always; it depends what other BlueTooth services\n\t\t// are in use on your Android device.\n\t\ttry {\n\t\t\t\n\t\t\tint currentapiVersion = android.os.Build.VERSION.SDK_INT;\n\t\t\t\n\t\t\t//RFCOMM connection varies depending on android version. Fixes bug in Gingerbread and newer where always asks for BT Pairing code.\n\t\t\tif (currentapiVersion >= android.os.Build.VERSION_CODES.GINGERBREAD_MR1){\n\t\t\t\t//used in android >= 2.3.3\n\t\t\t\tbtSocket = device.createInsecureRfcommSocketToServiceRecord(MY_UUID);\n\t\t\t} else if (currentapiVersion < android.os.Build.VERSION_CODES.GINGERBREAD_MR1){\n\t\t\t\t//used in android < 2.3.3\n\t\t\t\tbtSocket = device.createRfcommSocketToServiceRecord(MY_UUID);\n\t\t\t}\n\t\t\t\n\t\t\tLog.e(TAG, \"ON RESUME: Socket created!\");\n\t\t\n\t\t\n\t\t\t// Discovery may be going on, e.g., if you're running a\n\t\t\t// 'scan for devices' search from your handset's Bluetooth\n\t\t\t// settings, so we call cancelDiscovery(). It doesn't hurt\n\t\t\t// to call it, but it might hurt not to... discovery is a\n\t\t\t// heavyweight process; you don't want it in progress when\n\t\t\t// a connection attempt is made.\n\t\t\tmBluetoothAdapter.cancelDiscovery();\n\n\t\t\tmyBT = new ConnectedThread(btSocket);\n\t\t\t\n\t\t\t\n\t\t\t// don't write to the streams unless they are created\n\t\t\tif (myBT.BTconnStatus) {\n\t\t\t\t\n\t\t\t\tStatusBox.setText(\"CONNECTED\");\n\t\t\t\tLog.e(TAG, \"CONNECTED\");\n\t\t\t\t\n\t\t\t\t// ST,255 enables remote configuration forever...need this if\n\t\t\t\t// resetting\n\t\t\t\t// PIO4 is held high on powerup then toggled 3 times to reset\n\n\t\t\t\t// GPIO Commands to BT device page 15 of commands datasheet\n\t\t\t\tbyte[] cmdMode = { '$', '$', '$' };\n\t\t\t\tmyBT.write(cmdMode);\n\t\t\t\tmyBT.run();\n\n\t\t\t\t// S@,8080 temp sets GPIO-7 to an output\n\t\t\t\tbyte[] cmd1 = { 'S', '@', ',', '8', '0', '8', '0', 13 };\n\n\t\t\t\t// S%,8080 perm sets GPIO-7 to an output on powerup. only done once\n\t\t\t\t// byte [] cmd1 = {'S','%',',','8','0','8','0',13};\n\n\t\t\t\tmyBT.write(cmd1);\n\t\t\t\tmyBT.run();\n\n\t\t\t\t// S&,8000 drives GPIO-7 low\n\t\t\t\t// byte [] cmd2 = {'S','^',',','8','0','0','0',13};\n\n\t\t\t\t// make it so cmd mode won't timeout even after factory reset\n\t\t\t\tbyte[] cmd3 = { 'S', 'T', ',', '2', '5', '5', 13 };\n\t\t\t\tmyBT.write(cmd3);\n\t\t\t\tmyBT.run();\n\n\t\t\t} else {\n\t\t\t\t//StatusBox.setText(\"NOT Connected\");\t\n\t\t\t\tLog.e(TAG, \"NOT Connected\");\n\t\t\t}\n\t\t\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\tif (D)\n\t\t\t\tLog.e(TAG, \"ON RESUME: Socket creation failed.\", e);\n\t\t}\n\n\t\t\n\t\t\n\t}", "public void onCreate() {\n\t\tSystem.out.println(\"This service is called!\");\n\t\tmyBluetoothAdapter= BluetoothAdapter.getDefaultAdapter();\n\t\tmyBluetoothAdapter.enable();\n\t\tSystemClock.sleep(5000);\n\t\tif (myBluetoothAdapter.isEnabled()){\n\t\t\tSystem.out.println(\"BT is enabled...\");\n\t\t\tdiscover = myBluetoothAdapter.startDiscovery();\n\t\t}\n\t\tSystem.out.println(myBluetoothAdapter.getScanMode());\n\t\t\n\t\tSystem.out.println(\"Discovering: \"+myBluetoothAdapter.isDiscovering());\n\t\t//registerReceiver(bReceiver, new IntentFilter(BluetoothDevice.ACTION_FOUND));\n\t\tIntentFilter filter1 = new IntentFilter(BluetoothDevice.ACTION_FOUND);\n\t\tIntentFilter filter2 = new IntentFilter(BluetoothAdapter.ACTION_DISCOVERY_FINISHED);\n\t\tthis.registerReceiver(bReceiver, filter1);\n\t\tthis.registerReceiver(bReceiver, filter2);\n\t\t//registerReceiver(bReceiver, new IntentFilter(BluetoothAdapter.ACTION_DISCOVERY_FINISHED));\n\t}", "private void initService() {\r\n\t}", "public void InitService() {\n\t\ttry {\r\n\t\t\tgetCommManager().register(this); \r\n\t\t} catch (CommunicationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void onStart(){ \r\n\t\t//ensure bluetooth is enabled \r\n\t\tensureBluetoothIsEnabled();\r\n\t\tsuper.onStart(); \t\r\n\t}", "private void setupBluetooth() throws NullPointerException{\n if( Utils.isOS( Utils.OS.ANDROID ) ){\n \t\n // Gets bluetooth hardware from phone and makes sure that it is\n // non-null;\n BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();\n \n // If bluetooth hardware does not exist...\n if (adapter == null) {\n Log.d(TAG, \"BluetoothAdapter is is null\");\n throw new NullPointerException(\"BluetoothAdapter is null\");\n } else {\n Log.d(TAG, \"BluetoothAdapter is is non-null\");\n }\n \n bluetoothName = adapter.getName();\n \n //TODO: restart bluetooth?\n \t\n try {\n bluetoothConnectionThreads.add( new ServerThread(adapter, router, uuid) );\n } catch (NullPointerException e) {\n throw e;\n }\n if (Constants.DEBUG)\n Log.d(TAG, \"Sever Thread Created\");\n // Create a new clientThread\n bluetoothConnectionThreads.add( new ClientThread(adapter, router, uuid) );\n if (Constants.DEBUG)\n Log.d(TAG, \"Client Thread Created\");\n }\n else if( Utils.isOS( Utils.OS.WINDOWS ) ){\n //TODO: implement this\n }\n else if( Utils.isOS( Utils.OS.LINUX ) ){\n //TODO: implement this\n }\n else if( Utils.isOS( Utils.OS.OSX ) ){\n //TODO: implement this\n }\n else{\n //TODO: throw exception?\n }\n \n }", "private void setupApp() {\n Log.d(TAG, \"setupApp()\");\n\n // Initialize the BluetoothService to perform bluetooth connections\n mBTService = new BTService(getActivity(), mHandler);\n\n // Initialize the buffer for outgoing messages\n mOutStringBuffer = new StringBuffer(\"\");\n }", "public void service_INIT(){\n }", "public void initDevice() {\n myBluetoothAdapter = android.bluetooth.BluetoothAdapter.getDefaultAdapter();\n pairedDevices = myBluetoothAdapter.getBondedDevices();\n }", "@Override\n public void onServiceConnected(ComponentName componentName, IBinder service) {\n mNanoBLEService = ((NanoBLEService.LocalBinder) service).getService();\n\n //initialize bluetooth, if BLE is not available, then finish\n if (!mNanoBLEService.initialize()) {\n finish();\n }\n\n //Start scanning for devices that match DEVICE_NAME\n final BluetoothManager bluetoothManager =\n (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);\n mBluetoothAdapter = bluetoothManager.getAdapter();\n mBluetoothLeScanner = mBluetoothAdapter.getBluetoothLeScanner();\n if(mBluetoothLeScanner == null){\n finish();\n Toast.makeText(NewScanActivity.this, \"Please ensure Bluetooth is enabled and try again\", Toast.LENGTH_SHORT).show();\n }\n mHandler = new Handler();\n if (SettingsManager.getStringPref(mContext, SettingsManager.SharedPreferencesKeys.preferredDevice, null) != null) {\n preferredDevice = SettingsManager.getStringPref(mContext, SettingsManager.SharedPreferencesKeys.preferredDevice, null);\n scanPreferredLeDevice(true);\n } else {\n scanLeDevice(true);\n }\n }", "private BluetoothSettings() {\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t\tbtAdapt = BluetoothAdapter.getDefaultAdapter(); //初始化藍牙\n\t\t// 用BroadcastReceiver來取得搜尋結果\n\t\tIntentFilter intent = new IntentFilter();\n\t\tintent.addAction(BluetoothDevice.ACTION_FOUND);\n\t\tintent.addAction(BluetoothDevice.ACTION_BOND_STATE_CHANGED);\n\t\tintent.addAction(BluetoothAdapter.ACTION_SCAN_MODE_CHANGED);\n\t\tintent.addAction(BluetoothAdapter.ACTION_STATE_CHANGED);\n\t\tregisterReceiver(searchDevices, intent); //註冊廣播接收器\n\t\tsm = (SensorManager) getSystemService(SENSOR_SERVICE);\n\t\tsm.registerListener(BluetoothService.this, \n sm.getDefaultSensor(Sensor.TYPE_ORIENTATION), \n SensorManager.SENSOR_DELAY_FASTEST); \n\t}", "public BluetoothService(Activity activity){\n mActivity = activity;\n\n mUserWarningService = new UserWarningService(mActivity.getApplicationContext());\n\n\n/*\n float [][] testdata ={{1},{2},{6},{4},{5},{6},{7},{8},{9},{10}};\n float f1 = Mean(testdata, 0,10);\n float f2 = Var(testdata, 0,10);\n float f3 = Rms(testdata, 0,10);\n float f4 = Skew(testdata, 0,10);\n int x = 1;\n\n */\n }", "private void initPairBluetoothDevice(BluetoothDevice btDevice) {\n Log.i(DEBUG.TAG, \"BTDevicesActivity - initPairBluetoothDevice - start\");\n\n try {\n Method method = btDevice.getClass().getMethod(\"createBond\", (Class[]) null);\n method.invoke(btDevice, (Object[]) null);\n } catch (Exception e) {\n }\n\n Log.i(DEBUG.TAG, \"BTDevicesActivity - initPairBluetoothDevice - start\");\n }", "private void setupBluetooth() {\n if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\n Toast.makeText(this, R.string.ble_not_supported, Toast.LENGTH_SHORT).show();\n finish();\n }\n\n // Initializes Bluetooth adapter.\n final BluetoothManager bluetoothManager =\n (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);\n bluetoothAdapter = bluetoothManager.getAdapter();\n\n // Ensures Bluetooth is available on the device and it is enabled. If not,\n // displays a dialog requesting user permission to enable Bluetooth.\n if (bluetoothAdapter == null || !bluetoothAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n\n Set<BluetoothDevice> pairedDevices = bluetoothAdapter.getBondedDevices();\n\n if (pairedDevices.size() > 0) {\n // There are paired devices. Get the name and address of each paired device.\n for (BluetoothDevice device : pairedDevices) {\n String deviceName = device.getName();\n String deviceHardwareAddress = device.getAddress(); // MAC address\n String deviceType = device.getBluetoothClass().getDeviceClass() + \"\";\n\n Movie movie = new Movie(deviceName, deviceHardwareAddress, deviceType);\n movieList.add(movie);\n\n }\n\n mAdapter.notifyDataSetChanged();\n }\n }", "public void onServiceConnected(ComponentName className, IBinder service) {\n\t\t\tmBoundService = ((LocalService.LocalBinder) service).getService();\r\n\r\n\t\t\t// Wenn während des Setups der Service noch nicht fertig geladen\r\n\t\t\t// ist, wird solange Warte-Overlay angezeigt\r\n\t\t\t// Wenn der Service fertig ist wird das Overlay ausgeblendet\r\n\r\n\t\t\t// if (OverlayActivity.isCreated) {\r\n\t\t\t// OverlayActivity.getInstance().dismiss();\r\n\t\t\t// }\r\n\t\t\tSetupSearchDevicesFragment fragment = (SetupSearchDevicesFragment) getFragmentById(\"SetupSearchDevicesFragment\");\r\n\t\t\tif (fragment.isVisible()) {\r\n\t\t\t\tfragment.initViewBluetooth();\r\n\t\t\t}\r\n\r\n\t\t\t// Tell the user about this for our demo.\r\n\t\t\tLog.i(TAG, \"Service connected with app...\");\r\n\t\t\t// Toast.makeText(MainActivity.this, \"Service connected.\", Toast.LENGTH_SHORT).show();\r\n\r\n\t\t\t// Verbinde mit gespeichertem Device (falls noch keine Verbindung\r\n\t\t\t// besteht)\r\n\t\t\tif (mSharedPrefs.getConnectivityType() == 1) { // BEI BT\r\n\r\n\t\t\t\tfinal ConnectionInterface connection = mBoundService.getConnection();\r\n\t\t\t\tif (connection != null) {\r\n\t\t\t\t\tif (!connection.isConnected()) {\r\n\r\n\t\t\t\t\t\t// OnConnectedListener\r\n\t\t\t\t\t\tconnection.setOnConnectedListener(new OnConnectedListener() {\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onConnectedListener(String deviceName) {\r\n\r\n\t\t\t\t\t\t\t\tconnection.registerDisconnectHandler();\r\n\r\n\t\t\t\t\t\t\t\tif (mSharedPrefs.getDeviceMode() == 1) { // ELTERN\r\n\t\t\t\t\t\t\t\t\t// HELLO Nachricht senden\r\n\t\t\t\t\t\t\t\t\tString msg = mContext.getString(R.string.BABYFON_MSG_CONNECTION_HELLO) + \";\"\r\n\t\t\t\t\t\t\t\t\t\t\t+ mSharedPrefs.getHostAddress() + \";\" + mSharedPrefs.getPassword();\r\n\t\t\t\t\t\t\t\t\tconnection.sendMessage(msg);\r\n\r\n\t\t\t\t\t\t\t\t\tmSharedPrefs.setRemoteOnlineState(true);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tif (mSharedPrefs.getDeviceMode() == 1) { // ELTERN\r\n\t\t\t\t\t\t\tif (mSharedPrefs.getRemoteAddress() != null) { // Gespeichertes Gerät\r\n\t\t\t\t\t\t\t\t// Verbinde\r\n\t\t\t\t\t\t\t\tmBoundService.connectTo(mSharedPrefs.getRemoteAddress());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else if (mSharedPrefs.getDeviceMode() == 0) { // BABY\r\n\t\t\t\t\t\t\t// Warte auf Verbindung\r\n\t\t\t\t\t\t\tmBoundService.startServer();\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\r\n\t\t}", "public interface IBlueToothService {\n\n\n boolean initialize();\n\n void function_data(byte[] data);\n\n void enable_JDY_ble(int p);\n\n\n void disconnect();\n\n /**\n * 执行指令\n * @param g\n * @param string_or_hex_data\n * @return\n */\n int command(String g, boolean string_or_hex_data);\n\n\n void Delay_ms(int ms);\n\n /**\n * 设置密码\n * @param pss\n */\n void set_APP_PASSWORD(String pss);\n\n\n boolean connect(String address);\n\n\n /**\n * 获取连接的ble设备所提供的服务列表\n * @return\n */\n List<BluetoothGattService> getSupportedGattServices();\n\n\n int get_connected_status(List<BluetoothGattService> gattServices);\n\n\n}", "private void setupChat() {\n chatService = new BluetoothChatService(NavigationDrawerActivity.this, mHandler);\n\n }", "public boolean initialize() {\n // For API level 18 and above, get a reference to BluetoothAdapter through\n // BluetoothManager.\n if (mBluetoothManager == null) {\n mBluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);\n if (mBluetoothManager == null) {\n Log.e(TAG, \"Unable to initialize BluetoothManager.\");\n return false;\n }\n }\n\n mBluetoothAdapter = mBluetoothManager.getAdapter();\n if (mBluetoothAdapter == null) {\n Log.e(TAG, \"Unable to obtain a BluetoothAdapter.\");\n return false;\n }\n\n return true;\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n final BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n if (mBluetoothAdapter == null) {\n // Device does not support Bluetooth\n }\n\n if (!mBluetoothAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n }\n\n BluetoothDevice mmDevice = null;\n\n List<String> mArray = new ArrayList<String>();\n Set<BluetoothDevice> pairedDevices = mBluetoothAdapter.getBondedDevices();\n // If there are paired devices\n if (pairedDevices.size() > 0) {\n // Loop through paired devices\n for (BluetoothDevice device : pairedDevices) {\n // Add the name and address to an array adapter to show in a ListView\n if(device.getName().equals(deviceName))\n mmDevice = device;\n mArray.add(device.getName() + \"\\n\" + device.getAddress());\n }\n }\n\n //Creating the socket.\n BluetoothSocket mmSocket;\n BluetoothSocket tmp = null;\n\n UUID myUUID = UUID.fromString(mUUID);\n try {\n // MY_UUID is the app's UUID string, also used by the server code\n tmp = mmDevice.createRfcommSocketToServiceRecord(myUUID);\n } catch (IOException e) { }\n mmSocket = tmp;\n\n //socket created, try to connect\n\n try {\n mmSocket.connect();\n } catch (IOException e) {\n e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n }\n\n // Run the example\n JArduino arduino = new BlinkAndAnalog(mmSocket);\n arduino.runArduinoProcess();\n\n Log.i(TAG, \"onCreate\");\n setContentView(R.layout.main);\n }", "public Bluetooth(Context context, Logger logger)\n\t{\n\t\tthis.context = context;\n\t\tthis.logger = logger;\n\t\t//this.type = SensorType.Bluetooth;\n\t\tthis.isEnabled = false;\n\t\tthis.scanIntervalInSec = 0;\n\t\tthis.debugStatus = \"no status\";\n\t\tthis.bluetoothHandler = new Handler();\n\t\tthis.originalState = -1;\n\t\t\n // default setting\n changeSettings(type + FieldDelimiter + \"1\" + FieldDelimiter + \"10\");\n\t}", "public void setBluetoothService(BluetoothService bluetoothService) {\n this.bluetoothService = bluetoothService;\n }", "private void checkBleSupportAndInitialize() {\n Log.d(TAG, \"checkBleSupportAndInitialize: \");\n // Use this check to determine whether BLE is supported on the device.\n if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\n Log.d(TAG,\"device_ble_not_supported \");\n Toast.makeText(this, R.string.device_ble_not_supported,Toast.LENGTH_SHORT).show();\n return;\n }\n // Initializes a Blue tooth adapter.\n final BluetoothManager bluetoothManager = (BluetoothManager) context.getSystemService(Context.BLUETOOTH_SERVICE);\n mBluetoothAdapter = bluetoothManager.getAdapter();\n\n if (mBluetoothAdapter == null) {\n // Device does not support Blue tooth\n Log.d(TAG, \"device_ble_not_supported \");\n Toast.makeText(this,R.string.device_ble_not_supported, Toast.LENGTH_SHORT).show();\n return;\n }\n\n //打开蓝牙\n if (!mBluetoothAdapter.isEnabled()) {\n Log.d(TAG, \"open bluetooth \");\n bluetoothUtils.openBluetooth();\n }\n }", "public void connectService() {\n log_d( \"connectService()\" );\n\t\t// no action if debug\n if ( BT_DEBUG_SERVICE ) {\n\t\t\ttoast_short( \"No Action in debug\" );\n \treturn;\n }\n\t\t// connect the BT device at once\n\t\t// if there is a device address. \n\t\tString address = getPrefAddress();\n\t\tif ( isPrefUseDevice() && ( address != null) && !address.equals(\"\") ) {\n\t \tBluetoothDevice device = mBluetoothAdapter.getRemoteDevice( address );\n\t \tif ( mBluetoothService != null ) {\n\t \t log_d( \"connect \" + address );\n\t \tmBluetoothService.connect( device );\n\t }\n\t\t// otherwise\n\t\t// send message for the intent of the BT device list\n\t\t} else {\n\t\t\tnotifyDeviceList();\n\t\t}\n\t}", "@SuppressLint(\"NewApi\")\n @Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n bleService = ((BleService.LocalBinder) service).getService();\n if (!bleService.init()) {\n finish();\n }\n bleService.connect(Home_Fragment.Device_Address);\n mpd = ProgressDialog.show(Dialog_Activity.this, null, \"正在连接设备...\");\n Log.i(\"DeviceConnect\", \"onServiceConnected: \");\n }", "private void initBLESetup() {\n // Initializes Bluetooth adapter.\n final BluetoothManager bluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);\n mBluetoothAdapter = bluetoothManager.getAdapter();\n //Beginning in Android 6.0 (API level 23), users grant permissions to apps while the app is running, not when they install the app.\n //Obtaining dynamic permissions from the user\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { //23\n if (this.checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"This app needs location access.\");\n builder.setMessage(\"Please grant location access to this app.\");\n builder.setPositiveButton(android.R.string.ok, null);\n builder.setOnDismissListener(new DialogInterface.OnDismissListener() {\n public void onDismiss(DialogInterface dialog) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)\n requestPermissions(new String[]{Manifest.permission.ACCESS_COARSE_LOCATION}, PERMISSION_REQUEST_COARSE_LOCATION);\n }\n\n });// See onRequestPermissionsResult callback method for negative behavior\n builder.show();\n }\n }\n // Create callback methods\n if (Build.VERSION.SDK_INT >= 21) //LOLLIPOP\n newerVersionScanCallback = new ScanCallback() {\n @Override\n public void onScanResult(int callbackType, ScanResult result) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n BluetoothDevice btDevice = result.getDevice();\n ScanRecord mScanRecord = result.getScanRecord();\n int rssi = result.getRssi();\n// Log.i(TAG, \"Address: \"+ btDevice.getAddress());\n// Log.i(TAG, \"TX Power Level: \" + result.getScanRecord().getTxPowerLevel());\n// Log.i(TAG, \"RSSI in DBm: \" + rssi);\n// Log.i(TAG, \"Manufacturer data: \"+ mScanRecord.getManufacturerSpecificData());\n// Log.i(TAG, \"device name: \"+ mScanRecord.getDeviceName());\n// Log.i(TAG, \"Advertise flag: \"+ mScanRecord.getAdvertiseFlags());\n// Log.i(TAG, \"service uuids: \"+ mScanRecord.getServiceUuids());\n// Log.i(TAG, \"Service data: \"+ mScanRecord.getServiceData());\n byte[] recordBytes = mScanRecord.getBytes();\n\n iBeacon ib = parseBLERecord(recordBytes);\n\n if (ib != null) {\n setLog(ib.getUuid(), ib.getMajor(), ib.getMinor(), rssi);\n\n }\n }\n }\n\n @Override\n public void onScanFailed(int errorCode) {\n Log.e(\"Scan Failed\", \"Error Code: \" + errorCode);\n }\n };\n else\n olderVersionScanCallback =\n new BluetoothAdapter.LeScanCallback() {\n @Override\n public void onLeScan(final BluetoothDevice device, final int rssi,\n final byte[] scanRecord) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Log.i(\"onLeScan\", device.toString());\n\n iBeacon ib = parseBLERecord(scanRecord);\n\n if (ib != null) {\n setLog(ib.getUuid(), ib.getMajor(), ib.getMinor(), rssi);\n\n }\n }\n });\n }\n };\n }", "private void init()\n {\n SystrayActivator.bundleContext\n .addServiceListener(new ProtocolProviderServiceListener());\n \n ServiceReference[] protocolProviderRefs = null;\n try\n {\n protocolProviderRefs\n = SystrayActivator.bundleContext.getServiceReferences(\n ProtocolProviderService.class.getName(),null);\n }\n catch (InvalidSyntaxException ex)\n {\n // this shouldn't happen since we're providing no parameter string\n // but let's log just in case.\n logger .error(\"Error while retrieving service refs\", ex);\n return;\n }\n \n // in case we found any\n if (protocolProviderRefs != null)\n {\n \n for (int i = 0; i < protocolProviderRefs.length; i++)\n {\n ProtocolProviderService provider\n = (ProtocolProviderService) SystrayActivator.bundleContext\n .getService(protocolProviderRefs[i]);\n \n this.addAccount(provider);\n }\n }\n }", "private void initPlugin() {\n if (bluetoothAdapter == null) {\n Log.e(LOG_TAG, \"Bluetooth is not supported\");\n } else {\n Log.e(LOG_TAG, \"Bluetooth is supported\");\n\n sendJS(\"javascript:cordova.plugins.BluetoothStatus.hasBT = true;\");\n\n //test if BLE supported\n if (!mcordova.getActivity().getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\n Log.e(LOG_TAG, \"BluetoothLE is not supported\");\n } else {\n Log.e(LOG_TAG, \"BluetoothLE is supported\");\n sendJS(\"javascript:cordova.plugins.BluetoothStatus.hasBTLE = true;\");\n }\n \n // test if BT is connected to a headset\n \n if (bluetoothAdapter.getProfileConnectionState(BluetoothProfile.HEADSET) == BluetoothProfile.STATE_CONNECTED ) {\n Log.e(LOG_TAG, \" Bluetooth connected to headset\");\n sendJS(\"javascript:cordova.fireWindowEvent('BluetoothStatus.connected');\");\n } else {\n Log.e(LOG_TAG, \"Bluetooth is not connected to a headset \" + bluetoothAdapter.getProfileConnectionState(BluetoothProfile.HEADSET));\n }\n\n //test if BT enabled\n if (bluetoothAdapter.isEnabled()) {\n Log.e(LOG_TAG, \"Bluetooth is enabled\");\n\n sendJS(\"javascript:cordova.plugins.BluetoothStatus.BTenabled = true;\");\n sendJS(\"javascript:cordova.fireWindowEvent('BluetoothStatus.enabled');\");\n } else {\n Log.e(LOG_TAG, \"Bluetooth is not enabled\");\n }\n }\n }", "public InitService() {\n super(\"InitService\");\n }", "@Inject\n public BluetoothProbeFactory() {\n }", "private void initMSDPService() {\n // Connect to DvKit service\n DvKit.getInstance().connect(getApplicationContext(), new IDvKitConnectCallback() {\n // When the DvKit service is successfully connected\n @Override\n public void onConnect(int i) {\n addLog(\"init MSDPService done\");\n // Get Virtual Device Service Instance\n mVirtualDeviceManager = (VirtualDeviceManager) DvKit.getInstance().getKitService(VIRTUAL_DEVICE_CLASS);\n // Register virtual appliance observer\n mVirtualDeviceManager.subscribe(EnumSet.of(VIRTUALDEVICE), observer);\n }\n\n @Override\n public void onDisconnect() {\n\n }\n });\n }", "public void bluetooth_setup_client()\r\n {\n\r\n\t\tIntentFilter filter = new IntentFilter();\r\n\t\tfilter.addAction(BluetoothDevice.ACTION_FOUND);\r\n\t\tfilter.addAction(BluetoothAdapter.ACTION_DISCOVERY_FINISHED);\r\n\t\tif(client_receiver != null) {\r\n\t\t\tLoaderActivity.m_Activity.unregisterReceiver(client_receiver);\r\n\t\t}\r\n\t\tclient_receiver = new Bluetooth_Device_Found_Revicer();\r\n\t\tLoaderActivity.m_Activity.registerReceiver(client_receiver, filter);\r\n\t\tbluetooth_adapter.startDiscovery();\r\n\t\tmessages.clear();\r\n }", "public BluetoothServiceUtilities(Context theContext)\r\n\t{\r\n\t\t// -------------------------------------------------------------------------\r\n\t\t// 14/10/2015 ECU main constructor\r\n\t\t// -------------------------------------------------------------------------\r\n\t\t// 14/10/2015 ECU create the handler that will be used for communicating with\r\n\t\t// the bluetooth service\r\n\t\t// -------------------------------------------------------------------------\r\n\t\tblueToothHandler\t= new BluetoothHandler(theContext);\r\n\t\t// -------------------------------------------------------------------------\r\n\t\t// 14/10/2015 ECU set the initial remote device and create the meanings\r\n\t\t// list\r\n\t\t// -------------------------------------------------------------------------\r\n\t\tsetRemoteDevice (Television.REMOTE_SAMSUNG_TV);\r\n\t\t// -------------------------------------------------------------------------\r\n\t}", "DiscoverServicesCommand(BluetoothGatt mBluetoothGatt) {\n this.mBluetoothGatt = mBluetoothGatt;\n }", "private void bluetoothConnect() {\n\n btDevice = btAdapter.getRemoteDevice(EDISON_ADDRESS);\n if (btDevice == null) {\n Log.d(TAG,\"get remote device fail!\");\n finish();\n }\n\n try {\n btSocket = btDevice.createRfcommSocketToServiceRecord(SSP_UUID);\n } catch (IOException e) {\n Log.d(TAG,\"bluetooth socket create fail.\");\n }\n //save resource by cancel discovery\n btAdapter.cancelDiscovery();\n\n //connect\n try {\n btSocket.connect();\n Log.d(TAG,\"Connection established.\");\n } catch ( IOException e) {\n try {\n btSocket.close();\n }catch (IOException e2) {\n Log.d(TAG,\"unable to close socket after connect fail.\");\n }\n }\n\n //prepare outStream to send message\n try {\n outStream = btSocket.getOutputStream();\n } catch (IOException e) {\n Log.d(TAG,\"output stream init fail!\");\n }\n\n }", "@Override\n public IBinder onBind(Intent intent) {\n\n AppConstants.RebootHF_reader = false;\n if (mBluetoothLeService != null) {\n final boolean result = mBluetoothLeService.connect(mDeviceAddress);\n Log.d(TAG, \"Connect request result=\" + result);\n }\n\n\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }", "@Override\n\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\t\tmBinder = (Stub) service;\n\t\t\tLog.d(TAG, \"mBinder init\");\n\t\t}", "public synchronized BluetoothService getBluetoothService(){\n\t\treturn bluetoothService;\n\t}", "private void connectBluetooth() {\n try {\n if (blueTooth == null && macSet) {\n Log.d(\"lol\", \"macSet connect bluetooootooththoth\");\n blueTooth = new BluetoothConnection(macAddress, this, listener);\n blueTooth.connect();\n }\n } catch (Exception e) {\n Log.d(\"lol\", \"Failed connection: \" + e.getMessage() + \" \" + e.getClass());\n }\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n if (bluetoothAdapter == null) {\n //Display a toast notifying the user that their device doesn’t support Bluetooth//\n Toast.makeText(getApplicationContext(), \"This device doesn’t support Bluetooth\", Toast.LENGTH_LONG).show();\n } else {\n //If BluetoothAdapter doesn’t return null, then the device does support Bluetooth//\n Toast.makeText(getApplicationContext(), \"This device does support Bluetooth\", Toast.LENGTH_LONG).show();\n }\n }", "private void startServer() {\n mBluetoothGattServer = mBluetoothManager.openGattServer(this, mGattServerCallback);\n if (mBluetoothGattServer == null) {\n Log.w(TAG, \"Unable to create GATT server\");\n return;\n }\n\n mBluetoothGattServer.addService(TimeProfile.createTimeService());\n\n // Initialize the local UI\n updateLocalUi(System.currentTimeMillis());\n mBluetoothGattServer.addService(SecurityProfile.createSecurityService());\n //mBluetoothGattServer.addService(ConfigurationProfile.createConfigurationService());\n\n }", "public void registerCallback() {\n if (mLocalManager == null) {\n Log.e(TAG, \"registerCallback() Bluetooth is not supported on this device\");\n return;\n }\n mLocalManager.setForegroundActivity(mFragment.getContext());\n mLocalManager.getEventManager().registerCallback(this);\n mLocalManager.getProfileManager().addServiceListener(this);\n forceUpdate();\n }", "public void connect()\n {\n \tLog.d(TAG, \"connect\");\n \t\n \tif(!this.isConnected ) {\n mContext.bindService(new Intent(\"com.google.tungsten.LedService\"), mServiceConnection, \n \t\tContext.BIND_AUTO_CREATE);\n \t}\n }", "@Override\n protected void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_monitoring);\n\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n\n Bundle bundle = getIntent().getExtras();\n filename = bundle.getString(\"fn\");\n\n mBtAdapter = BluetoothAdapter.getDefaultAdapter();\n\n if (mBtAdapter == null)\n {\n Toast.makeText(Monitoring.this, \"Bluetooth is not available\", Toast.LENGTH_LONG).show();\n finish();\n return;\n }\n\n parameters = new float[11];\n\n rate = (TextView) findViewById(R.id.heartrate);\n rate.setText(\"Heart Rate: -\");\n\n level = (TextView) findViewById(R.id.stresslevel);\n level.setText(\"Stress Level: -\");\n\n connectButtonListener(); //Connect/Disconnect button listener\n startButtonListener(); //Start/Stop button listener\n shareButtonListener(); //Share button listener\n infoButtonListener(); //Info button listener\n\n service_init();\n initPPG();\n initGSR();\n }", "private void connect() {\n // after 10 seconds its connected\n new Handler().postDelayed(\n new Runnable() {\n public void run() {\n Log.d(TAG, \"Bluetooth Low Energy device is connected!!\");\n // Toast.makeText(getApplicationContext(),\"Connected!\",Toast.LENGTH_SHORT).show();\n stateService = Constants.STATE_SERVICE.CONNECTED;\n startForeground(Constants.NOTIFICATION_ID_FOREGROUND_SERVICE, prepareNotification());\n }\n }, 10000);\n\n }", "public void initialisation() throws Exception{\n\t\t\t\tSystem.out.println(\"Wow much wait...\");\n\t\t\t\tBTConnection connection = Bluetooth.waitForConnection();\n\t\t\t\tif (connection == null)\n\t\t\t\t\tthrow new IOException(\"Epic fail connexion\");\n\t\t\t\tSystem.out.println(\"Wow very connexion !\");\n\t\t\t\t\n\t\t\t\t//si pas d'échec, on active les I/O bluetooth\n\t\t\t\tthis.recepteur.setInput(connection.openDataInputStream());\n\t\t\t\tthis.recepteur.setOutput(connection.openDataOutputStream());\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tthis.recepteur.getOutput().writeByte((byte)0);\n\t\t\t\t\tthis.recepteur.getOutput().flush();\n\t\t\t\t} catch (IOException e3) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te3.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t}", "@Override\r\n public void onStart() {\n super.onStart();\r\n Carteasy cs = new Carteasy();\r\n Map<String, String> data = cs.ViewData(String.valueOf(1), getApplicationContext());\r\n for (Map.Entry<String, String> entry : data.entrySet()) {\r\n //get the Id\r\n Log.d(\"Key: \",entry.getKey());\r\n Log.d(\"Value: \",entry.getValue());\r\n }\r\n if (!BTAdapter.isEnabled()) {\r\n // IT NEEDS BLUETOOTH PERMISSION\r\n // Intent to enable bluetooth, it will show the enable bluetooth\r\n // dialog\r\n Intent enableIntent = new Intent(\r\n BluetoothAdapter.ACTION_REQUEST_ENABLE);\r\n // this is to get a result if bluetooth was enabled or not\r\n startActivityForResult(enableIntent, REQUEST_ENABLE_BT);\r\n // It will call onActivityResult method to determine if Bluetooth\r\n // was enabled or not\r\n } else {\r\n // Bluetooth is enabled\r\n }\r\n }", "public BluetoothManager(Context context, Handler handler) { //비티서비스가 context고 비티서비스핸들러가 핸들러다\n mAdapter = BluetoothAdapter.getDefaultAdapter();\n mState = STATE_NONE; //가진코드에서는 함수를 썻지만 여기는 그냥이군..\n //setState(STATE_NONE); //가진코드처럼해보겠다.//이거쓰면 안드로이드 죽어요 ㅋㅋㅋㅋㅋ생성자니까..함수는 ㄴㄴ해\n mHandler = handler;\n }", "@Override\n public void run() {\n super.run();\n Log.i(TAG, \"BlueTooth Start\");\n _BluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n\n if (_BluetoothAdapter != null){\n if(!_BluetoothAdapter.isEnabled())\n _BluetoothAdapter.enable();\n else{\n _BluetoothDevice = _BluetoothAdapter.getRemoteDevice(strAddress_BT_UART);\n if (_BluetoothDevice != null){\n Log.i(TAG, \"Starting BtConnect\");\n BtConnect BC = new BtConnect(_BluetoothDevice);\n BC.start();\n }\n }\n }\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.heat_wenkong_setup);\n\t\tInitView();\n\t\t//启动Service\n\t\tIntent intent = new Intent(HeatWenkongActivity.this,LinkService.class);\n\t bindService(intent, connection, BIND_AUTO_CREATE);\n\t\tonClick(easy_model_bt);\n\t\t\n\t}", "public void startBluetooth(){\n mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n if (!mBluetoothAdapter.isEnabled()) {\n Intent btIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n //btIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(btIntent);\n }\n mBluetoothAdapter.startDiscovery();\n System.out.println(\"@ start\");\n IntentFilter filter = new IntentFilter(BluetoothDevice.ACTION_FOUND);\n getActivity().registerReceiver(mReceiver, filter);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.test_service_activity);\n\n\t\tIntent intent = new Intent(\n\t\t\t\t\"com.demo.androidontheway.testservice.MSG_ACTION\");\n\t\tbindService(intent, conn, Context.BIND_AUTO_CREATE);\n\n\t\tmProgressBar = (ProgressBar) findViewById(R.id.pro_service);\n\t\tButton mButton = (Button) findViewById(R.id.btn_start_service);\n\t\tmButton.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// start download at service\n\t\t\t\tmsgService.startDownLoad();\n\t\t\t}\n\t\t});\n\t}", "protected void setup(){\n setupRouter();\n \n if( bluetoothEnabled ){\n setupBluetooth();\n }\n }", "public BluetoothCommandService(Context context, Handler handler) {\n \tmAdapter = BluetoothAdapter.getDefaultAdapter();\n \tmState = STATE_NONE;\n \t//mConnectionLostCount = 0;\n \tmHandler = handler;\n }", "public void openBluetooth() throws IOException {\n UUID uuid = UUID.fromString(\"00001101-0000-1000-8000-00805f9b34fb\"); //Standard SerialPortService ID\n mmSocket = mmDevice.createRfcommSocketToServiceRecord(uuid);\n mmSocket.connect();\n mmOutputStream = mmSocket.getOutputStream();\n mmInputStream = mmSocket.getInputStream();\n\n beginListenForData();\n\n btStatusDisplay.setText(\"Bluetooth Connection Opened\");\n }", "public BlueMeshServiceBuilder bluetooth( boolean enabled ){\n bluetoothEnabled = enabled;\n return this;\n }", "public BluetoothManager( Activity activity ) {\n\t\tmActivity = activity;\n\t\tmContext = activity;\n\t\tmPreferences = PreferenceManager.getDefaultSharedPreferences( mContext );\n\t\tmByteUtility = new ByteUtility();\n\t\tmDebugMsg = new DebugMsg();\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n final ActionBar actionBar = getActionBar();\n \n mHandler = new UiHandler(this);\n\n if(actionBar == null){Log.e(TAG, \"There is no ACTIONBAR\");}\n actionBar.setDisplayShowTitleEnabled(false);\n\n // Get local Bluetooth adapter\n mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n\n // If the adapter is null, then Bluetooth is not supported\n if (mBluetoothAdapter == null) {\n Toast.makeText(this, \"Bluetooth is not available\", Toast.LENGTH_LONG).show();\n finish(); //destroy activity\n }\n }", "public void startConnection(){\n startBTConnection(mBTDevice,MY_UUID_INSECURE);\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tmContext = this;\n\t\tLogUtils.i(\"tr069Service onCreate is in >>>>>\");\n\t\tLogUtils.writeSystemLog(\"tr069Service\", \"onCreate\", \"tr069\");\n\t\tinitService();\n\t\tinitData();\n\t\tregisterReceiver();\n\t\t\t\t\n\t\tif(JNILOAD){\n\t\t\tTr069ServiceInit();\n\t\t}\n\t}", "@Override\n public void onServicesDiscovered(BluetoothGatt gatt, int status) {\n Log.i(\"onServicesDiscovered\", \"Obtaining device service information ......\");\n if (status == BluetoothGatt.GATT_SUCCESS) {\n try{\n String messages = \"-------------- (\"+Periphery.getAddress()+\")Service Services information : --------------------\\n\";\n List<BluetoothGattService> serviceList = gatt.getServices();\n messages += \"Total:\"+serviceList.size()+\"\\n\";\n for (int i = 0; i < serviceList.size(); i++) {\n BluetoothGattService theService = serviceList.get(i);\n BLEGattServiceList.add(new BLEGattService(theService));\n\n String serviceName = theService.getUuid().toString();\n String msg = \"---- Service UUID:\"+serviceName+\" -----\\n\";\n // Each Service contains multiple features\n List<BluetoothGattCharacteristic> characterList = theService.getCharacteristics();\n msg += \"Characteristic UUID List:\\n\";\n for (int j = 0; j < characterList.size(); j++) {\n BluetoothGattCharacteristic theCharacter = characterList.get(j);\n msg += \"(\"+(j+1)+\"):\"+theCharacter.getUuid()+\"\\n\";\n //msg += \" --> Value:\"+ StringConvertUtil.bytesToHexString(theCharacter.getValue())+\"\\n\";\n }\n msg += \"\\n\\n\";\n messages += msg;\n }\n messages += \"-------------- (\"+Periphery.getAddress()+\")--------------------\\n\";\n Log.i(\"onServicesDiscovered\", messages);\n }catch (Exception ex){\n Log.e(\"onServicesDiscovered\", \"Exception:\" + ex.toString());\n }\n }\n if (_PeripheryBluetoothServiceCallBack!=null){\n _PeripheryBluetoothServiceCallBack.OnServicesed(BLEGattServiceList);\n }\n super.onServicesDiscovered(gatt, status);\n }", "@Override\r\n public void onCreate() {\n intent = new Intent(BROADCAST_ACTION);\r\n startBTService();\r\n// try{\r\n// mConnectedThread.write(\"2\".getBytes());\r\n// }catch(Exception e){\r\n//\r\n// }\r\n }", "public void initial(){\t\t\r\n\t\tfundRateService=new FundRateService();\r\n\t}", "public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_bluetooth_handler);\n final Button back=(Button) findViewById(R.id.button_back);\n bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n checkBTState();\n\n try {\n serverSocket=bluetoothAdapter.listenUsingInsecureRfcommWithServiceRecord(label, MY_UUID);\n } catch (IOException e){}\n\n try{\n bluetoothSocket=serverSocket.accept();\n }catch (IOException e) {}\n\n try{\n outputStream=MainActivity1.bluetoothSocket.getOutputStream();\n }catch (IOException e){\n Log.d(MainActivity1.label,\"Output stream connection failed.\");\n }\n\n receiver=new BroadcastReceiver() {\n @Override\n public void onReceive(Context context, Intent intent)\n {\n String a=intent.getAction();\n\n if(BluetoothDevice.ACTION_FOUND.equals(a))\n {\n BluetoothDevice device=intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);\n\n bluetoothItems.add(device.getName());\n }\n }\n };\n IntentFilter filter=new IntentFilter(BluetoothDevice.ACTION_FOUND);\n registerReceiver(receiver, filter);\n\n //searching();\n\n ListView bluetoothList=(ListView) findViewById(R.id.listView_bluetoothItems);\n\n bluetoothList.setAdapter(new ArrayAdapter<String>(this,R.layout.abc_list_menu_item_layout));\n\n back.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n startActivity(new Intent(getApplicationContext(), ControllerHomeScreen.class));\n }\n });\n }", "@Override\r\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\r\n\t\tbinder = new CaroBinder();\r\n\t\tbinder.service = this;\t\t\r\n\t}", "void connectServiceUnknownThread() {\n mMainHandler.post(() -> {\n try {\n final IAccessibilityServiceClient serviceInterface;\n final IBinder service;\n synchronized (mLock) {\n serviceInterface = mServiceInterface;\n mService = (serviceInterface == null) ? null : mServiceInterface.asBinder();\n service = mService;\n }\n // If the serviceInterface is null, the UiAutomation has been shut down on\n // another thread.\n if (serviceInterface != null) {\n service.linkToDeath(this, 0);\n serviceInterface.init(this, mId, mOverlayWindowToken);\n }\n } catch (RemoteException re) {\n Slog.w(LOG_TAG, \"Error initialized connection\", re);\n destroyUiAutomationService();\n }\n });\n }", "@Override\r\n\tprotected void onHandleIntent(Intent intent) {\n\t\tfinal BluetoothManager bluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);\r\n\t\tmBluetoothAdapter = bluetoothManager.getAdapter();\r\n\r\n\t\t// Checks if Bluetooth is supported on the device.\r\n\t\tif (mBluetoothAdapter == null) {\r\n\t\t\tLog.i(TAG, \"Bluetooth is not supported\");\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\tLog.i(TAG, \"mBluetoothAdapter = \" + mBluetoothAdapter);\r\n\t\t}\r\n\r\n\t\t//启用蓝牙\r\n\t\t//mBluetoothAdapter.enable();\r\n\t\t//Log.i(TAG, \"mBluetoothAdapter.enable\");\r\n\t\t\r\n\t\tmBLE = new BluetoothLeClass(this);\r\n\t\t\r\n\t\tif (!mBLE.initialize()) {\r\n\t\t\tLog.e(TAG, \"Unable to initialize Bluetooth\");\r\n\t\t}\r\n\t\tLog.i(TAG, \"mBLE = e\" + mBLE);\r\n\r\n\t\t// 发现BLE终端的Service时回调\r\n\t\tmBLE.setOnServiceDiscoverListener(mOnServiceDiscover);\r\n\r\n\t\t// 收到BLE终端数据交互的事件\r\n\t\tmBLE.setOnDataAvailableListener(mOnDataAvailable);\r\n\t\t\r\n\t\t//开始扫描\r\n\t\tmBLE.scanLeDevice(true);\r\n\t\t\r\n\t\t/*\r\n\t\tMRBluetoothManage.Init(this, new MRBluetoothEvent() {\r\n\t\t\t@Override\r\n\t\t\tpublic void ResultStatus(int result) {\r\n\t\t\t\tswitch (result) {\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_NOT_OPEN:\r\n\t\t\t\t\t//Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\r\n\t\t\t\t\t//startActivityForResult(enableBtIntent, 100);\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_NOT_OPEN\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_INIT_OK:\r\n\t\t\t\t\tMRBluetoothManage.scanAndConnect();\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_INIT_OK\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_SCAN_START:\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_SCAN_START\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_SCAN_END:\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_SCAN_END\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_CONNECT_START:\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_CONNECT_START\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_CONNECT_OK:\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_CONNECT_OK\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_CONNECT_CLOSE:\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_CONNECT_CLOSE\");\r\n\t\t\t\t\tMRBluetoothManage.stop();\r\n\t\t\t\t\tMRBluetoothManage.scanAndConnect();\r\n\t\t\t\t\t//MRBluetoothManage.Init(BluetoothService.this, this);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void ResultDevice(ArrayList<BluetoothDevice> deviceList) {\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void ResultData(byte[] data) {\r\n\t\t\t\tLog.i(TAG, data.toString());\r\n\t\t\t\tbyte[] wenDuByte = new byte[2];\r\n\t\t\t\tbyte[] shiDuByte = new byte[2];\r\n\t\t\t\tbyte[] shuiFenByte = new byte[2];\r\n\t\t\t\tbyte[] ziWaiXianByte = new byte[2];\r\n\t\t\t\tSystem.arraycopy(data, 4, wenDuByte, 0, 2);\r\n\t\t\t\tSystem.arraycopy(data, 6, shiDuByte, 0, 2);\r\n\t\t\t\tSystem.arraycopy(data, 8, shuiFenByte, 0, 2);\r\n\t\t\t\tSystem.arraycopy(data, 10, ziWaiXianByte, 0, 2);\r\n\t\t\t\tTestModel model = new TestModel();\r\n\t\t\t\tmodel.wenDu = BitConverter.toShort(wenDuByte);\r\n\t\t\t\tmodel.shiDu = BitConverter.toShort(shiDuByte);\r\n\t\t\t\tmodel.shuiFen = BitConverter.toShort(shuiFenByte);\r\n\t\t\t\tmodel.ziWaiXian = BitConverter.toShort(ziWaiXianByte);\r\n\t\t\t\t//Log.d(TAG, model.toString());\r\n\t\t\t\tsendData(model);\r\n\t\t\t}\r\n\t\t});\r\n\t\t*/\r\n\t}", "public boolean mBTInit1(){\n //Initialize the bluetooth adapter\n if (oBTadapter !=null) return true ;\n oBTadapter = BluetoothAdapter.getDefaultAdapter();\n return (oBTadapter != null);\n }", "void doAccelBindService() {\n\t\tbindService(accelIntentDelay, accelConnection, Context.BIND_AUTO_CREATE);\n\t\taccelIsBound = true;\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t/* BINDER LAB: Create a new instance of the Binder service */\n\t}", "private void ensureBluetoothEnabled() {\n if (!mBluetoothAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(\n BluetoothAdapter.ACTION_REQUEST_ENABLE);\n main.startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n } else {\n connectToBluetoothDevice(\"00:06:66:64:42:97\"); // Hard coded MAC of the BT-device.\n Log.i(tag, \"Connected to device!\");\n }\n }", "public void startBTConnection(BluetoothDevice device, UUID uuid){\n Log.d(TAG, \"startBTConnection: Initializing RFCOM Bluetooth Connection.\");\n mBluetoothConnection.startClient(device,uuid);\n }", "@Override\n\t\tpublic void run() {\n\t\t\ttry{\n//\t\t\t\tdevAddr = devices.get(position).split(\"\\\\|\")[1];\n//\t\t\t\tbtAdapt.cancelDiscovery();\n//\t\t\t\t\n//\t\t\t\tbtSocket = btAdapt.getRemoteDevice(devAddr).createRfcommSocketToServiceRecord(uuid);\n//\t\t\t\tbtSocket.connect();Log.e(tag, \"connected\");\n\t\t\t\tInetAddress severInetAddr=InetAddress.getByName(\"120.105.129.108\");\n\t\t\t\tWifisocket = new Socket(severInetAddr, 8101);\n\t\t\t\t\n\t\t\t\tsynchronized (this) {\n//\t\t\t\t\tbtIn = btSocket.getInputStream();\n//\t\t\t\t\tbtOut = btSocket.getOutputStream();\n\t\t\t\t\tbtIn = Wifisocket.getInputStream();\n\t\t\t\t\tbtOut = Wifisocket.getOutputStream();\n\t\t\t\t\tLog.e(tag, \"connected\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tThread.sleep(100);\n\t\t\t\tsetUpAsForeground(\"Wifi已連線\");\n\t\t\t} catch( IOException | InterruptedException e ){\n\t\t\t\te.printStackTrace();\n\t\t\t\ttry{\n//\t\t\t\t\tbtSocket.close();\n//\t\t\t\t\tWifisocket.close();\n\t\t\t\t\tThread.sleep(1500);\n\t\t\t\t\tsetUpAsForeground(\"Wifi未連線\");\n\t\t\t\t\tLog.i(\"exiconne\", \"bluetoohservice bye!;\");\n\t\t\t\t} catch(InterruptedException e1){\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\tLog.i(\"exiconne\", \"bluetoohservice bye!;\");\n\t\t\t\t}\n//\t\t\t\tbtSocket = null;\n\t\t\t\tWifisocket = null;\n\t\t\t\tmBTState = BTState.stopped;\n\t\t\t\tBluetoothConnect.mBTstate = BTstate.opened;\n\t\t\t}\n\n\t\t}", "private void initWirelessCommunication() {\n if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\n showToast(\"BLE is not supported\");\n finish();\n } else {\n showToast(\"BLE is supported\");\n // Access Location is a \"dangerous\" permission\n int hasAccessLocation = ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION);\n if (hasAccessLocation != PackageManager.PERMISSION_GRANTED) {\n // ask the user for permission\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},\n REQUEST_ACCESS_LOCATION);\n // the callback method onRequestPermissionsResult gets the result of this request\n }\n }\n // enable wireless communication alternative\n if (communicationAdapter == null || !communicationAdapter.isReadyToBeUsed()) {\n assert communicationAdapter != null;\n Intent enableWirelessCommunicationIntent = new Intent(communicationAdapter.actionRequestEnable());\n startActivityForResult(enableWirelessCommunicationIntent, REQUEST_ENABLE_BT);\n }\n }", "@Override\n\tprotected void initAsService() {\n\t\tif (log.isDebugEnabled()) {\n\t\t\tlog.debug(\"Initiating service...\");\n\t\t}\n\t\trunnerFuture = activityRunner.schedule(this::scanModulesHealth, 500, TimeUnit.MILLISECONDS);\n\t}", "public void onCreate() {\n super.onCreate();\n LogUtil.d(DownloadService.class, \"Service onCreate\");\n\n if (mSystemFacade == null) {\n mSystemFacade = new SystemFacade(this);\n }\n\n dao = DownloadInfoDao.getInstace(getApplication());\n\n mSystemFacade.cancelAllNotifications();\n\n mNetReceiver = new NetworkConnectionChangeReceiver();\n mNetReceiver.regist(this);\n\n updateFromProvider();\n }", "@Override\r\n public void onCreate() {\r\n Log.d(TAG, \"on service create\");\r\n }", "private void setupCentral() {\n bleHandler = new BLEHandler(this, BLEHandler.SENDER, BLEHandler.EXPERIMENT);\n bleHandler.connect();\n }", "public void advertiseNow() {\n if (btLeAdv == null) {\r\n \tLog.v(TAG, \"btLeAdv is null!\");\r\n \tisAdvertising = false;\r\n \treturn;\r\n }\r\n\t\t\r\n\t\t// make our Base UUID the service UUID\r\n UUID serviceUUID = UUID.fromString(theBaseUUID);\r\n\t\t\r\n // make a new service\r\n theService = new BluetoothGattService(serviceUUID, BluetoothGattService.SERVICE_TYPE_PRIMARY);\r\n\t\t\r\n\t\t// loop over all the characteristics and add them to the service\r\n for (Entry<UUID, BluetoothGattCharacteristic> entry : myBGCs.entrySet()) {\r\n \t//entry.getKey();\r\n \ttheService.addCharacteristic(entry.getValue());\r\n }\r\n \r\n // make sure we're all cleared out before we add new stuff\r\n gattServices.clear();\r\n gattServiceIDs.clear();\r\n \r\n \tgattServices.add(theService);\r\n gattServiceIDs.add(new ParcelUuid(theService.getUuid()));\r\n\r\n \t// if we're already advertising, just quit here\r\n // TODO: if we get this far and advertising is already started, we may want reset everything!\r\n if(isAdvertising) return;\r\n\r\n // - calls bluetoothManager.openGattServer(activity, whatever_the_callback_is) as gattServer\r\n // --- this callback needs to override: onCharacteristicWriteRequest, onCharacteristicReadRequest,\r\n // ---- onServiceAdded, and onConnectionStateChange\r\n // then iterates over an ArrayList<BluetoothGattService> and calls .addService for each\r\n \r\n\r\n // start the gatt server and get a handle to it\r\n btGattServer = btMgr.openGattServer(thisContext, gattServerCallback);\r\n\r\n // loop over the ArrayList of BluetoothGattService(s) and add each to the gatt server \r\n for(int i = 0; i < gattServices.size(); i++) {\r\n \tbtGattServer.addService(gattServices.get(i));\r\n }\r\n \r\n\r\n // the AdvertiseData and AdvertiseSettings are both required\r\n //AdvertiseData.Builder dataBuilder = new AdvertiseData.Builder();\r\n AdvertisementData.Builder dataBuilder = new AdvertisementData.Builder();\r\n AdvertiseSettings.Builder settingsBuilder = new AdvertiseSettings.Builder();\r\n \r\n // allows us to fit in a 31 byte advertisement\r\n dataBuilder.setIncludeTxPowerLevel(false);\r\n \r\n // this is the operative call which gives the parceluuid info to our advertiser to link to our gatt server\r\n // dataBuilder.setServiceUuids(gattServiceIDs); // correspond to the advertisingServices UUIDs as ParcelUUIDs\r\n \r\n // API 5.0\r\n /*\r\n for (ParcelUuid pu: gattServiceIDs) {\r\n \tdataBuilder.addServiceUuid(pu);\r\n }\r\n */\r\n // API L\r\n dataBuilder.setServiceUuids(gattServiceIDs);\r\n \r\n // this spells FART, and right now apparently doesn't do anything\r\n byte[] serviceData = {0x46, 0x41, 0x52, 0x54}; \r\n \r\n UUID tUID = new UUID((long) 0x46, (long) 0x41);\r\n ParcelUuid serviceDataID = new ParcelUuid(tUID);\r\n \r\n // API 5.0\r\n // dataBuilder.addServiceData(serviceDataID, serviceData);\r\n \r\n // API L\r\n dataBuilder.setServiceData(serviceDataID, serviceData);\r\n \r\n // i guess we need all these things for our settings\r\n settingsBuilder.setAdvertiseMode(AdvertiseSettings.ADVERTISE_MODE_LOW_LATENCY);\r\n settingsBuilder.setTxPowerLevel(AdvertiseSettings.ADVERTISE_TX_POWER_HIGH);\r\n \r\n // API L\r\n settingsBuilder.setType(AdvertiseSettings.ADVERTISE_TYPE_CONNECTABLE);\r\n \r\n // API 5.0 \r\n //settingsBuilder.setConnectable(true);\r\n \r\n // API L\r\n \r\n \r\n\r\n //settingsBuilder.setType(AdvertiseSettings.ADVERTISE_TYPE_CONNECTABLE);\r\n\r\n // we created this earlier with bluetoothAdapter.getBluetoothLeAdvertiser();\r\n // - looks like we also need to have an advertiseCallback\r\n // --- this needs to override onSuccess and onFailure, and really those are just for debug messages\r\n // --- but it looks like you HAVE to do this\r\n // set our boolean so we don't try to re-advertise\r\n isAdvertising = true;\r\n \r\n try {\r\n \tbtLeAdv.startAdvertising(settingsBuilder.build(), dataBuilder.build(), advertiseCallback);\r\n } catch (Exception ex) {\r\n \tisAdvertising = false;\t\r\n }\r\n \r\n\r\n\r\n\t}", "@Override\n public void init() {\n\n stevens_IMU = new AdafruitBNO055IMU(hardwareMap.i2cDeviceSynch.get(\"IMU\"));\n\n parameters = new BNO055IMU.Parameters();\n\n success = stevens_IMU.initialize(parameters);\n telemetry.addData(\"Success: \", success);\n\n doDaSleep(500);\n\n }", "public BluetoothService getService() {\n return _service;\n }", "@Override\n\tprotected void onCreate (Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tAndroidApplicationConfiguration config = new AndroidApplicationConfiguration();\n\t\tinitialize(new MainClass(), config);\n\t\tstartService(new Intent(getBaseContext(),MyServices.class));\n\t}", "@Override\n\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\t\tib = service;\n\t\t\tSystem.out.println(\"DEBUG>>>ServiceConnection.\");\n\t\t}", "public void connect_bt(String deviceAddress) {\n Intent intent = new Intent(\"OBDStatus\");\n intent.putExtra(\"message\", \"Trying to connect with device\");\n context.sendBroadcast(intent);\n disconnect();\n BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter();\n btAdapter.cancelDiscovery();\n if (deviceAddress == null || deviceAddress.isEmpty()) {\n intent.putExtra(\"message\", \"Device not found\");\n context.sendBroadcast(intent);\n return;\n }\n\n if (!btAdapter.isEnabled()) {\n intent.putExtra(\"message\", \"Bluetooth is disabled\");\n context.sendBroadcast(intent);\n return;\n }\n\n BluetoothDevice device = btAdapter.getRemoteDevice(deviceAddress);\n\n UUID uuid = UUID.fromString(\"00001101-0000-1000-8000-00805F9B34FB\");\n\n try {\n socket = device.createInsecureRfcommSocketToServiceRecord(uuid);\n socket.connect();\n isConnected = true;\n intent.putExtra(\"message\", \"OBD connected\");\n context.sendBroadcast(intent);\n } catch (IOException e) {\n Log.e(\"gping2\", \"There was an error while establishing Bluetooth connection. Falling back..\", e);\n Class<?> clazz = socket.getRemoteDevice().getClass();\n Class<?>[] paramTypes = new Class<?>[]{Integer.TYPE};\n BluetoothSocket sockFallback = null;\n try {\n Method m = clazz.getMethod(\"createInsecureRfcommSocket\", paramTypes);\n Object[] params = new Object[]{Integer.valueOf(1)};\n sockFallback = (BluetoothSocket) m.invoke(socket.getRemoteDevice(), params);\n sockFallback.connect();\n isConnected = true;\n socket = sockFallback;\n intent.putExtra(\"message\", \"OBD connected\");\n context.sendBroadcast(intent);\n } catch (Exception e2) {\n intent.putExtra(\"message\", \"OBD Connection error\");\n context.sendBroadcast(intent);\n Log.e(\"gping2\", \"BT connect error\");\n }\n }\n this.deviceAddress = deviceAddress;\n saveNewAddress();\n }", "private void initializeRecallServiceManager() {\n\n }", "private void bindAudioService() {\n if (audioServiceBinder == null) {\n Intent intent = new Intent(MainActivity.this, AudioService.class);\n\n // Below code will invoke serviceConnection's onServiceConnected method.\n bindService(intent, serviceConnection, Context.BIND_AUTO_CREATE);\n }\n }", "private void initService() {\n\t\tavCommentService = new AvCommentService(getApplicationContext());\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tLog.e(\"androidtalk\", \"service created\") ;\n\t\tSystem.out.println(\"androidtalk-service created\") ;\n\t\t\n\t}", "public void startBTConnection(BluetoothDevice device, UUID uuid){\n Log.d(TAG, \"startBTConnection: Initializing RFCOM Bluetooth Connection.\");\n\n mBluetoothConnection.startClient(device,uuid);\n }", "private void enableBtmon() {\n System.out.println(\"Starting Btmon Service...\");\n try {\n btmonProcess = new ProcessBuilder(\"/usr/bin/btmon\").start();\n InputStreamReader inputStream = new InputStreamReader(btmonProcess.getInputStream());\n int size;\n char buffer[] = new char[1024];\n while ((size = inputStream.read(buffer, 0, 1024)) != -1) {\n // System.out.println(\" --- Read ----\");\n String data = String.valueOf(buffer, 0, size);\n processBeaconMessage(data);\n // Thread.sleep(1000);\n }\n } catch (IOException ex ) {\n ex.printStackTrace();\n } catch (Exception ex ) {\n ex.printStackTrace();\n } finally {\n if (btmonProcess != null)\n btmonProcess.destroy();\n }\n }", "private void bluetooth_connect_device() throws IOException\n {\n try\n {\n myBluetooth = BluetoothAdapter.getDefaultAdapter();\n address = myBluetooth.getAddress();\n pairedDevices = myBluetooth.getBondedDevices();\n if (pairedDevices.size()>0)\n {\n for(BluetoothDevice bt : pairedDevices)\n {\n address=bt.getAddress().toString();name = bt.getName().toString();\n Toast.makeText(getApplicationContext(),\"Connected\", Toast.LENGTH_SHORT).show();\n\n }\n }\n\n }\n catch(Exception we){}\n myBluetooth = BluetoothAdapter.getDefaultAdapter();//get the mobile bluetooth device\n BluetoothDevice dispositivo = myBluetooth.getRemoteDevice(address);//connects to the device's address and checks if it's available\n btSocket = dispositivo.createInsecureRfcommSocketToServiceRecord(myUUID);//create a RFCOMM (SPP) connection\n btSocket.connect();\n try { t1.setText(\"BT Name: \"+name+\"\\nBT Address: \"+address); }\n catch(Exception e){}\n }", "public void initDevice() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void initializeService(String input) throws Exception\r\n\t{\n\t\t\r\n\t}", "public void initialize() {\n service = Executors.newCachedThreadPool();\n }" ]
[ "0.799972", "0.7850334", "0.7655771", "0.7571509", "0.73666006", "0.73236966", "0.7301614", "0.72123474", "0.70977724", "0.7038776", "0.7033042", "0.6966895", "0.6962287", "0.69233763", "0.6911639", "0.67317086", "0.66205573", "0.659089", "0.65770465", "0.65565413", "0.6525897", "0.65057456", "0.6497798", "0.6492671", "0.64811075", "0.6443266", "0.6423321", "0.6411864", "0.6386608", "0.6381101", "0.6361626", "0.635222", "0.63220143", "0.6296172", "0.62878674", "0.62843734", "0.6283942", "0.6281876", "0.6272601", "0.6268024", "0.62644434", "0.62635136", "0.62286156", "0.6226823", "0.62253493", "0.61990577", "0.619119", "0.6178195", "0.6165662", "0.61542726", "0.61507756", "0.6142251", "0.61420923", "0.6137912", "0.61256945", "0.60899234", "0.60781276", "0.6069182", "0.60626924", "0.6055119", "0.60383016", "0.60305774", "0.6028991", "0.6024101", "0.5993329", "0.59890485", "0.5975383", "0.59748733", "0.5968486", "0.5964292", "0.5944453", "0.5921213", "0.5915796", "0.59102875", "0.59054273", "0.5904836", "0.58919466", "0.5890876", "0.5885741", "0.58828795", "0.5873107", "0.58672434", "0.58591306", "0.5858088", "0.5841885", "0.5836076", "0.58357096", "0.5834504", "0.58285874", "0.5815107", "0.5814107", "0.5813403", "0.58115405", "0.5810705", "0.5809715", "0.580392", "0.5802993", "0.57850856", "0.5773328", "0.5763615" ]
0.8386258
0
connect Bluetooth Device when touch button
public void connectService() { log_d( "connectService()" ); // no action if debug if ( BT_DEBUG_SERVICE ) { toast_short( "No Action in debug" ); return; } // connect the BT device at once // if there is a device address. String address = getPrefAddress(); if ( isPrefUseDevice() && ( address != null) && !address.equals("") ) { BluetoothDevice device = mBluetoothAdapter.getRemoteDevice( address ); if ( mBluetoothService != null ) { log_d( "connect " + address ); mBluetoothService.connect( device ); } // otherwise // send message for the intent of the BT device list } else { notifyDeviceList(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buttonClick_connect(View view)\n\t{\n\t\tAppSettings.showConnectionLost = false;\n\t\tLog.i(TAG, \"showConnectionLost = false\");\n\t\t\n\t\tAppSettings.bluetoothConnection = new BluetoothConnection(this.getApplicationContext(), this.btConnectionHandler);\n\t\tBluetoothAdapter btAdapter = AppSettings.bluetoothConnection.getBluetoothAdapter();\n\t\t\n\t\t// If the adapter is null, then Bluetooth is not supported\n if (btAdapter == null) {\n \tToast.makeText(getApplicationContext(), R.string.bt_not_available, Toast.LENGTH_LONG).show();\n }\n else {\n \t// If Bluetooth is not on, request that it be enabled.\n if (!btAdapter.isEnabled()) {\n Intent enableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableIntent, REQUEST_ENABLE_BT);\n }\n else {\n \t// Launch the DeviceListActivity to see devices and do scan\n Intent serverIntent = new Intent(getApplicationContext(), DeviceListActivity.class);\n startActivityForResult(serverIntent, REQUEST_CONNECT_DEVICE);\n }\n }\n\t}", "private void bluetooth_connect_device() throws IOException\n {\n try\n {\n myBluetooth = BluetoothAdapter.getDefaultAdapter();\n address = myBluetooth.getAddress();\n pairedDevices = myBluetooth.getBondedDevices();\n if (pairedDevices.size()>0)\n {\n for(BluetoothDevice bt : pairedDevices)\n {\n address=bt.getAddress().toString();name = bt.getName().toString();\n Toast.makeText(getApplicationContext(),\"Connected\", Toast.LENGTH_SHORT).show();\n\n }\n }\n\n }\n catch(Exception we){}\n myBluetooth = BluetoothAdapter.getDefaultAdapter();//get the mobile bluetooth device\n BluetoothDevice dispositivo = myBluetooth.getRemoteDevice(address);//connects to the device's address and checks if it's available\n btSocket = dispositivo.createInsecureRfcommSocketToServiceRecord(myUUID);//create a RFCOMM (SPP) connection\n btSocket.connect();\n try { t1.setText(\"BT Name: \"+name+\"\\nBT Address: \"+address); }\n catch(Exception e){}\n }", "public void onClick(View v) {\n mConnectedThread.write(\"1\"); // Send \"1\" via Bluetooth\n Toast.makeText(getBaseContext(), \"Turn on LED\", Toast.LENGTH_SHORT).show();\n }", "private void bluetoothConnect() {\n\n btDevice = btAdapter.getRemoteDevice(EDISON_ADDRESS);\n if (btDevice == null) {\n Log.d(TAG,\"get remote device fail!\");\n finish();\n }\n\n try {\n btSocket = btDevice.createRfcommSocketToServiceRecord(SSP_UUID);\n } catch (IOException e) {\n Log.d(TAG,\"bluetooth socket create fail.\");\n }\n //save resource by cancel discovery\n btAdapter.cancelDiscovery();\n\n //connect\n try {\n btSocket.connect();\n Log.d(TAG,\"Connection established.\");\n } catch ( IOException e) {\n try {\n btSocket.close();\n }catch (IOException e2) {\n Log.d(TAG,\"unable to close socket after connect fail.\");\n }\n }\n\n //prepare outStream to send message\n try {\n outStream = btSocket.getOutputStream();\n } catch (IOException e) {\n Log.d(TAG,\"output stream init fail!\");\n }\n\n }", "private void connectBluetooth() {\n try {\n if (blueTooth == null && macSet) {\n Log.d(\"lol\", \"macSet connect bluetooootooththoth\");\n blueTooth = new BluetoothConnection(macAddress, this, listener);\n blueTooth.connect();\n }\n } catch (Exception e) {\n Log.d(\"lol\", \"Failed connection: \" + e.getMessage() + \" \" + e.getClass());\n }\n }", "public void connectButtonListener()\n {\n final Context context = Monitoring.this;\n btnConnectDisconnect = (Button) findViewById(R.id.btn_select);\n\n btnConnectDisconnect.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View arg0)\n {\n if (!mBtAdapter.isEnabled())\n {\n Log.i(TAG, \"onClick - Bluetooth not enabled yet\");\n Intent enableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableIntent, REQUEST_ENABLE_BT);\n }\n else\n {\n if (btnConnectDisconnect.getText().toString().equals(\"Connect\"))\n {\n //Connect button pressed, open DeviceListActivity class,\n // with popup windows that scan for devices...\n Intent newIntent = new Intent(context, Scanner.class);\n startActivityForResult(newIntent, REQUEST_SELECT_DEVICE);\n }\n else\n {\n //Disconnect button pressed\n if (mDevice != null)\n {\n mService.disconnect();\n }\n }\n }\n }\n });\n }", "public void connect(View v) {\n turnOn(v);\n startActivity(new Intent(Settings.ACTION_BLUETOOTH_SETTINGS));\n Toast.makeText(getApplicationContext(), \"Select device\", Toast.LENGTH_LONG).show();\n System.err.println(bluetoothAdapter.getBondedDevices());\n }", "private void connectToAdapter() {\n if (chosen) {\n BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter();\n BluetoothDevice device = btAdapter.getRemoteDevice(deviceAddress);\n UUID uuid = UUID.fromString(\"00001101-0000-1000-8000-00805F9B34FB\");\n // creation and connection of a bluetooth socket\n try {\n BluetoothSocket socket = device.createInsecureRfcommSocketToServiceRecord(uuid);\n socket.connect();\n setBluetoothSocket(socket);\n connected = true;\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n connect.setText(\"Disconnect\");\n connect.setTextColor(Color.RED);\n }\n });\n } catch (IOException e) {\n Log.d(\"Exception\", \"Bluetooth IO Exception c\");\n connected = false;\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(currContext, R.string.cannotConnect, Toast.LENGTH_SHORT).show();\n connect.setText(\"Connect\");\n connect.setTextColor(Color.BLACK);\n mode.setEnabled(true);\n }\n });\n }\n }\n if (bluetoothSocket.getRemoteDevice().getAddress() != null)\n Log.d(TAG, \"Bluetooth connected\");\n Log.d(TAG, \"Device address: \" + bluetoothSocket.getRemoteDevice().getAddress());\n initializeCom();\n }", "public void connect_bt(String deviceAddress) {\n Intent intent = new Intent(\"OBDStatus\");\n intent.putExtra(\"message\", \"Trying to connect with device\");\n context.sendBroadcast(intent);\n disconnect();\n BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter();\n btAdapter.cancelDiscovery();\n if (deviceAddress == null || deviceAddress.isEmpty()) {\n intent.putExtra(\"message\", \"Device not found\");\n context.sendBroadcast(intent);\n return;\n }\n\n if (!btAdapter.isEnabled()) {\n intent.putExtra(\"message\", \"Bluetooth is disabled\");\n context.sendBroadcast(intent);\n return;\n }\n\n BluetoothDevice device = btAdapter.getRemoteDevice(deviceAddress);\n\n UUID uuid = UUID.fromString(\"00001101-0000-1000-8000-00805F9B34FB\");\n\n try {\n socket = device.createInsecureRfcommSocketToServiceRecord(uuid);\n socket.connect();\n isConnected = true;\n intent.putExtra(\"message\", \"OBD connected\");\n context.sendBroadcast(intent);\n } catch (IOException e) {\n Log.e(\"gping2\", \"There was an error while establishing Bluetooth connection. Falling back..\", e);\n Class<?> clazz = socket.getRemoteDevice().getClass();\n Class<?>[] paramTypes = new Class<?>[]{Integer.TYPE};\n BluetoothSocket sockFallback = null;\n try {\n Method m = clazz.getMethod(\"createInsecureRfcommSocket\", paramTypes);\n Object[] params = new Object[]{Integer.valueOf(1)};\n sockFallback = (BluetoothSocket) m.invoke(socket.getRemoteDevice(), params);\n sockFallback.connect();\n isConnected = true;\n socket = sockFallback;\n intent.putExtra(\"message\", \"OBD connected\");\n context.sendBroadcast(intent);\n } catch (Exception e2) {\n intent.putExtra(\"message\", \"OBD Connection error\");\n context.sendBroadcast(intent);\n Log.e(\"gping2\", \"BT connect error\");\n }\n }\n this.deviceAddress = deviceAddress;\n saveNewAddress();\n }", "public void initBT() {\n\n\t\tStatusBox.setText(\"Connecting...\");\n\t\tLog.e(TAG, \"Connecting...\");\n\t\t\n\t\tif (D) {\n\t\t\tLog.e(TAG, \"+ ON RESUME +\");\n\t\t\tLog.e(TAG, \"+ ABOUT TO ATTEMPT CLIENT CONNECT +\");\n\t\t}\n\t\t\n\t\t//If Mac Address is null then stop this process and display message\n\t\tif(MAC_ADDRESS == \"\"){\n\t\t\tLog.e(TAG,\"No MAC Address Found...\");\n\t\t\tToast.makeText(getApplicationContext(), \"No Mac Address found. Please Enter using button.\",Toast.LENGTH_SHORT );\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// When this returns, it will 'know' about the server,\n\t\t// via it's MAC address.\n\t\tBluetoothDevice device = null;\n\t\ttry {\n\t\t\tdevice = mBluetoothAdapter.getRemoteDevice(MAC_ADDRESS);\n\t\t} catch (Exception e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tToast.makeText(getApplicationContext(), \"NOT Valid BT MAC Address\", Toast.LENGTH_SHORT);\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t\t// returns firefly e350\n\t\tLog.e(TAG, \"device name: \" + device.getName());\n\n\t\t// We need two things before we can successfully connect\n\t\t// (authentication issues aside): a MAC address, which we\n\t\t// already have, and an RFCOMM channel.\n\t\t// Because RFCOMM channels (aka ports) are limited in\n\t\t// number, Android doesn't allow you to use them directly;\n\t\t// instead you request a RFCOMM mapping based on a service\n\t\t// ID. In our case, we will use the well-known SPP Service\n\t\t// ID. This ID is in UUID (GUID to you Microsofties)\n\t\t// format. Given the UUID, Android will handle the\n\t\t// mapping for you. Generally, this will return RFCOMM 1,\n\t\t// but not always; it depends what other BlueTooth services\n\t\t// are in use on your Android device.\n\t\ttry {\n\t\t\t\n\t\t\tint currentapiVersion = android.os.Build.VERSION.SDK_INT;\n\t\t\t\n\t\t\t//RFCOMM connection varies depending on android version. Fixes bug in Gingerbread and newer where always asks for BT Pairing code.\n\t\t\tif (currentapiVersion >= android.os.Build.VERSION_CODES.GINGERBREAD_MR1){\n\t\t\t\t//used in android >= 2.3.3\n\t\t\t\tbtSocket = device.createInsecureRfcommSocketToServiceRecord(MY_UUID);\n\t\t\t} else if (currentapiVersion < android.os.Build.VERSION_CODES.GINGERBREAD_MR1){\n\t\t\t\t//used in android < 2.3.3\n\t\t\t\tbtSocket = device.createRfcommSocketToServiceRecord(MY_UUID);\n\t\t\t}\n\t\t\t\n\t\t\tLog.e(TAG, \"ON RESUME: Socket created!\");\n\t\t\n\t\t\n\t\t\t// Discovery may be going on, e.g., if you're running a\n\t\t\t// 'scan for devices' search from your handset's Bluetooth\n\t\t\t// settings, so we call cancelDiscovery(). It doesn't hurt\n\t\t\t// to call it, but it might hurt not to... discovery is a\n\t\t\t// heavyweight process; you don't want it in progress when\n\t\t\t// a connection attempt is made.\n\t\t\tmBluetoothAdapter.cancelDiscovery();\n\n\t\t\tmyBT = new ConnectedThread(btSocket);\n\t\t\t\n\t\t\t\n\t\t\t// don't write to the streams unless they are created\n\t\t\tif (myBT.BTconnStatus) {\n\t\t\t\t\n\t\t\t\tStatusBox.setText(\"CONNECTED\");\n\t\t\t\tLog.e(TAG, \"CONNECTED\");\n\t\t\t\t\n\t\t\t\t// ST,255 enables remote configuration forever...need this if\n\t\t\t\t// resetting\n\t\t\t\t// PIO4 is held high on powerup then toggled 3 times to reset\n\n\t\t\t\t// GPIO Commands to BT device page 15 of commands datasheet\n\t\t\t\tbyte[] cmdMode = { '$', '$', '$' };\n\t\t\t\tmyBT.write(cmdMode);\n\t\t\t\tmyBT.run();\n\n\t\t\t\t// S@,8080 temp sets GPIO-7 to an output\n\t\t\t\tbyte[] cmd1 = { 'S', '@', ',', '8', '0', '8', '0', 13 };\n\n\t\t\t\t// S%,8080 perm sets GPIO-7 to an output on powerup. only done once\n\t\t\t\t// byte [] cmd1 = {'S','%',',','8','0','8','0',13};\n\n\t\t\t\tmyBT.write(cmd1);\n\t\t\t\tmyBT.run();\n\n\t\t\t\t// S&,8000 drives GPIO-7 low\n\t\t\t\t// byte [] cmd2 = {'S','^',',','8','0','0','0',13};\n\n\t\t\t\t// make it so cmd mode won't timeout even after factory reset\n\t\t\t\tbyte[] cmd3 = { 'S', 'T', ',', '2', '5', '5', 13 };\n\t\t\t\tmyBT.write(cmd3);\n\t\t\t\tmyBT.run();\n\n\t\t\t} else {\n\t\t\t\t//StatusBox.setText(\"NOT Connected\");\t\n\t\t\t\tLog.e(TAG, \"NOT Connected\");\n\t\t\t}\n\t\t\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\tif (D)\n\t\t\t\tLog.e(TAG, \"ON RESUME: Socket creation failed.\", e);\n\t\t}\n\n\t\t\n\t\t\n\t}", "private void connect() {\n // after 10 seconds its connected\n new Handler().postDelayed(\n new Runnable() {\n public void run() {\n Log.d(TAG, \"Bluetooth Low Energy device is connected!!\");\n // Toast.makeText(getApplicationContext(),\"Connected!\",Toast.LENGTH_SHORT).show();\n stateService = Constants.STATE_SERVICE.CONNECTED;\n startForeground(Constants.NOTIFICATION_ID_FOREGROUND_SERVICE, prepareNotification());\n }\n }, 10000);\n\n }", "@Override\n public void onClick(View v) {\n BluetoothAdapter myBleAdapter = BluetoothAdapter.getDefaultAdapter();\n myBleAdapter.enable();\n\n if (myBleWrapper.isBtEnabled() == true) {\n tV1.setTextColor(Color.parseColor(\"#000000\"));\n tV1.setText(\"Yo ble is on\");\n }\n// else\n// {\n// tV1.setText(\"ble is off\");\n// }\n }", "private void setScanButton() {\n if (!mConnected) {\n if (mAbleBLEService == null) {\n Toast.makeText(getActivity(), \"this should not happen, as this object is static\", Toast.LENGTH_SHORT).show();\n }\n mAbleBLEService.connect(mDeviceAddress);\n sConnectButton.setText(R.string.menu_disconnect);\n sConnectButton.setBackgroundColor(Color.rgb(237, 34, 34));\n } else {\n mAbleBLEService.disconnect();\n sConnectButton.setText(R.string.menu_connect);\n sConnectButton.setBackgroundColor(Color.rgb(42, 42, 42));\n }\n }", "public boolean mBT_PickDevice2(){ //Will change sRemoteDeviceName\n if (oBTadapter==null) return false;\n bDevicePickerActive=true;\n oBTadapter.startDiscovery();\n {\n Intent intent = new Intent(\"android.bluetooth.devicepicker.action.LAUNCH\");\n mContext.startActivity(intent); //startActivityForResult\n }\n mSleep(1000);\n return true;\n }", "public void onDeviceConnected(String name, String address) {\n btButton.setText(\"Connected\");\n }", "public void connect(View view) {\n if (phoneNum.getText().toString().equals(\"\")) {\n Toast.makeText(getApplication(), \"Please enter a phone number\", Toast.LENGTH_SHORT).show();\n } else {\n phoneNum.setEnabled(false);\n HashMap<String, UsbDevice> usbDevices = usbManager.getDeviceList();\n if (!usbDevices.isEmpty()) {\n boolean keep = true;\n for (Map.Entry<String, UsbDevice> entry : usbDevices.entrySet()) {\n device = entry.getValue();\n int deviceVID = device.getVendorId();\n if (deviceVID == 0x2341)//Arduino Vendor ID\n {\n PendingIntent pi = PendingIntent.getBroadcast(this, 0, new Intent(ACTION_USB_PERMISSION), 0);\n usbManager.requestPermission(device, pi);\n keep = false;\n } else {\n connection = null;\n device = null;\n }\n\n if (!keep)\n break;\n }\n }\n }\n }", "void bluetoothDeactivated();", "void userPressConnectButton();", "public void onClickStart(View view) {\n\n HashMap<String, UsbDevice> usbDevices = usbManager.getDeviceList();\n if (!usbDevices.isEmpty()) {\n boolean keep = true;\n for (Map.Entry<String, UsbDevice> entry : usbDevices.entrySet()) {\n device = entry.getValue();\n int deviceVID = device.getVendorId();\n if (deviceVID == 0x2341)//Arduino Vendor ID\n {\n PendingIntent pi = PendingIntent.getBroadcast(this, 0, new Intent(ACTION_USB_PERMISSION), 0);\n usbManager.requestPermission(device, pi);\n keep = false;\n } else {\n connection = null;\n device = null;\n }\n\n if (!keep)\n break;\n }\n }\n\n\n }", "public void startConnection(){\n startBTConnection(mBTDevice,MY_UUID_INSECURE);\n }", "private void connectDevice(String address) {\n// // Get the device MAC address\n BluetoothDevice device = mBtAdapter.getRemoteDevice(address);\n// // Attempt to connect to the device\n mChatService.connect(device, true);\n }", "public void sendBluetooth()\n {\n Intent startBluetooth = new Intent(this, Main2Activity.class);\n startActivity(startBluetooth);\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tmsgText.setText(null);\n\t\t\tsendEdit.setText(null);\n\t\t\tif(sppConnected || devAddr == null)\n\t\t\t\treturn;\n\t\t\ttry{\n\t\t\t btSocket = btAdapt.getRemoteDevice(devAddr).createRfcommSocketToServiceRecord(uuid);\n\t\t\t btSocket.connect();\n\t\t\t Log.d(tag,\"BT_Socket connect\");\n\t\t\t synchronized (MainActivity.this) {\n\t\t\t\tif(sppConnected)\n\t\t\t\t\treturn;\n\t\t\t\tbtServerSocket.close();\n\t\t\t\tbtIn = btSocket.getInputStream();\n\t\t\t\tbtOut = btSocket.getOutputStream();\n\t\t\t\tconected();\n\t\t\t}\n\t\t\t Toast.makeText(MainActivity.this,\"藍牙裝置已開啟:\" + devAddr, Toast.LENGTH_LONG).show();\n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t\tsppConnected =false;\n\t\t\t\ttry{\n\t\t\t\t\tbtSocket.close();\n\t\t\t\t}catch(IOException e1){\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tbtSocket = null;\n\t\t\t\tToast.makeText(MainActivity.this, \"連接異常\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t}", "public void onPickDevice(ConnectDevice device);", "@Override\n public void onClick(View v) {\n if (mBluetoothConnection.isConnected()) {\n mBluetoothConnection.changeState(BluetoothConnection.STATE_IMAGE_RECEIVING);\n mBluetoothConnection.write(\"open_settings\");\n buttonSettings.setEnabled(false);\n } else {\n Toast.makeText(getBaseContext(), \"Device not connected\", Toast.LENGTH_SHORT).show();\n }\n }", "public void connectToAccessory() {\n\t\tif (mConnection != null)\n\t\t\treturn;\n\n\t\tif (getIntent().hasExtra(BTDeviceListActivity.EXTRA_DEVICE_ADDRESS)) {\n\t\t\tString address = getIntent().getStringExtra(\n\t\t\t\t\tBTDeviceListActivity.EXTRA_DEVICE_ADDRESS);\n\t\t\tLog.i(ADK.TAG, \"want to connect to \" + address);\n\t\t\tmConnection = new BTConnection(address);\n\t\t\tperformPostConnectionTasks();\n\t\t} else {\n\t\t\t// assume only one accessory (currently safe assumption)\n\t\t\tUsbAccessory[] accessories = mUSBManager.getAccessoryList();\n\t\t\tUsbAccessory accessory = (accessories == null ? null\n\t\t\t\t\t: accessories[0]);\n\t\t\tif (accessory != null) {\n\t\t\t\tif (mUSBManager.hasPermission(accessory)) {\n\t\t\t\t\topenAccessory(accessory);\n\t\t\t\t} else {\n\t\t\t\t\t// synchronized (mUsbReceiver) {\n\t\t\t\t\t// if (!mPermissionRequestPending) {\n\t\t\t\t\t// mUsbManager.requestPermission(accessory,\n\t\t\t\t\t// mPermissionIntent);\n\t\t\t\t\t// mPermissionRequestPending = true;\n\t\t\t\t\t// }\n\t\t\t\t\t// }\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Log.d(TAG, \"mAccessory is null\");\n\t\t\t}\n\t\t}\n\n\t}", "private void setupBluetooth() {\n if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\n Toast.makeText(this, R.string.ble_not_supported, Toast.LENGTH_SHORT).show();\n finish();\n }\n\n // Initializes Bluetooth adapter.\n final BluetoothManager bluetoothManager =\n (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);\n bluetoothAdapter = bluetoothManager.getAdapter();\n\n // Ensures Bluetooth is available on the device and it is enabled. If not,\n // displays a dialog requesting user permission to enable Bluetooth.\n if (bluetoothAdapter == null || !bluetoothAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n\n Set<BluetoothDevice> pairedDevices = bluetoothAdapter.getBondedDevices();\n\n if (pairedDevices.size() > 0) {\n // There are paired devices. Get the name and address of each paired device.\n for (BluetoothDevice device : pairedDevices) {\n String deviceName = device.getName();\n String deviceHardwareAddress = device.getAddress(); // MAC address\n String deviceType = device.getBluetoothClass().getDeviceClass() + \"\";\n\n Movie movie = new Movie(deviceName, deviceHardwareAddress, deviceType);\n movieList.add(movie);\n\n }\n\n mAdapter.notifyDataSetChanged();\n }\n }", "public void openBluetooth() throws IOException {\n UUID uuid = UUID.fromString(\"00001101-0000-1000-8000-00805f9b34fb\"); //Standard SerialPortService ID\n mmSocket = mmDevice.createRfcommSocketToServiceRecord(uuid);\n mmSocket.connect();\n mmOutputStream = mmSocket.getOutputStream();\n mmInputStream = mmSocket.getInputStream();\n\n beginListenForData();\n\n btStatusDisplay.setText(\"Bluetooth Connection Opened\");\n }", "public void sendBtMsg(final String msg2send) {\n UUID uuid = UUID.fromString(\"94f39d29-7d6d-437d-973b-fba39e49d4ee\"); //Standard SerialPortService ID\n try {\n\n if (mmDevice != null) {\n mmSocket = mmDevice.createRfcommSocketToServiceRecord(uuid);\n if (!mmSocket.isConnected()) {\n try {\n mmSocket.connect();\n Handler handler = new Handler(Looper.getMainLooper());\n handler.post(new Runnable() {\n @Override\n public void run() {\n\n toastMsg(\"Connection Established\");\n\n String msg = msg2send;\n //msg += \"\\n\";\n OutputStream mmOutputStream = null;\n try {\n mmOutputStream = mmSocket.getOutputStream();\n mmOutputStream.write(msg.getBytes());\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n });\n\n } catch (IOException e) {\n Log.e(\"\", e.getMessage());\n mmSocket.close();\n Handler handler = new Handler(Looper.getMainLooper());\n handler.post(new Runnable() {\n @Override\n public void run() {\n toastMsg(\"Connection not Established\");\n\n\n }\n });\n\n /*try {\n Log.e(\"\", \"trying fallback\");\n mmSocket =(BluetoothSocket) mmDevice.getClass().getMethod(\"createRfcommSocket\", new Class[] {int.class}).invoke(mmDevice,1);\n mmSocket.connect();\n Log.e(\"\", \"Connected\");\n }\n catch (Exception e2){\n Log.e(\"\", \"Couldn't establish Bluetooth connection!\");\n toastMsg(\"Couldn't establish Bluetooth connection!\");\n }*/\n }\n }\n\n\n/*\n if (mmOutputStream == null)\n try {\n mmOutputStream = mmSocket.getOutputStream();\n } catch (IOException e) {\n errorExit(\"Fatal Error\", \"In onResume(), input and output stream creation failed:\" + e.getMessage() + \".\");\n }*/\n\n } else {\n if (mBluetoothAdapter != null) {\n\n\n Set<BluetoothDevice> pairedDevices = mBluetoothAdapter.getBondedDevices();\n if (pairedDevices.size() > 0) {\n for (BluetoothDevice device : pairedDevices) {\n if (device.getName().matches(\".*\")) //Note, you will need to change this to match the name of your device\n {\n Log.e(\"Aquarium\", device.getName());\n mmDevice = device;\n sendBtMsg(msg2send);\n break;\n }\n }\n }\n }\n }\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n }", "public void connect()\n\t{\n\t\tUUID uuid = UUID.fromString(\"00001101-0000-1000-8000-00805f9b34fb\"); //Standard SerialPortService ID\n\t\ttry\n\t\t{\n\t sock = dev.createRfcommSocketToServiceRecord(uuid); \n\t sock.connect();\n\t connected = true;\n\t dev_out = sock.getOutputStream();\n\t dev_in = sock.getInputStream();\n\t write(0);\n\t write(0);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\n\t}", "@Override\n public void onBluetoothDeviceFound(BluetoothDevice btDevice) {\n }", "@Override\n public void onClick(View v)\n {\n if (!mBluetoothAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n }\n\n if (clicked) {\n registerDevicesBtn.setText(\"Register Devices\");\n clicked = false;\n mBluetoothAdapter.cancelDiscovery();\n Log.d(\"BT\", \"Cancelled task.\");\n } else {\n registerDevicesBtn.setText(\"Stop Registering Devices\");\n clicked = true;\n devices = new ArrayList<>();\n mBluetoothAdapter.startDiscovery();\n Log.d(\"BT\", \"Started task.\");\n }\n }", "private void turnOnBT() {\n\t\tIntent intent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n\t\tstartActivityForResult(intent, 1);\n\t}", "private void bluetoothSelected(JSONArray data, final CallbackContext callbackContext) throws JSONException {\n String arrayList = data.getString(0);\n\n String[] parts = arrayList.split(\"_\");\n\n String name = parts[0];\n String macAddress = parts[1];\n\n PinpadObject pinpad = new PinpadObject(name, macAddress, false);\n\n // Passa o pinpad selecionado para o provider de conexao bluetooth.\n BluetoothConnectionProvider bluetoothConnectionProvider = new BluetoothConnectionProvider(StoneSDK.this.cordova.getActivity(), pinpad);\n bluetoothConnectionProvider.setDialogMessage(\"Criando conexao com o pinpad selecionado\"); // Mensagem exibida do dialog.\n bluetoothConnectionProvider.setWorkInBackground(false); // Informa que havera um feedback para o usuario.\n bluetoothConnectionProvider.setConnectionCallback(new StoneCallbackInterface() {\n\n public void onSuccess() {\n Toast.makeText(StoneSDK.this.cordova.getActivity(), \"Pinpad conectado\", Toast.LENGTH_SHORT).show();\n callbackContext.success();\n }\n\n public void onError() {\n Toast.makeText(StoneSDK.this.cordova.getActivity(), \"Erro durante a conexao. Verifique a lista de erros do provider para mais informacoes\", Toast.LENGTH_SHORT).show();\n callbackContext.error(\"Erro durante a conexao. Verifique a lista de erros do provider para mais informacoes\");\n }\n\n });\n bluetoothConnectionProvider.execute(); // Executa o provider de conexao bluetooth.\n }", "@Override\r\n public void onCreate() {\n intent = new Intent(BROADCAST_ACTION);\r\n startBTService();\r\n// try{\r\n// mConnectedThread.write(\"2\".getBytes());\r\n// }catch(Exception e){\r\n//\r\n// }\r\n }", "void activateBlue(BluetoothAdapter bluetoothAdapter){\r\n if (!bluetoothAdapter.isEnabled()) {\r\n Intent enableBlueTooth = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\r\n startActivityForResult(enableBlueTooth, REQUEST_CODE_ENABLE_BLUETOOTH);\r\n }\r\n }", "private void connectToBluetoothDevice(String mac) {\n if (BluetoothAdapter.checkBluetoothAddress(mac)) {\n BluetoothDevice mBluetoothDevice = mBluetoothAdapter\n .getRemoteDevice(mac);\n mConnectThread = new ConnectThread(mBluetoothDevice);\n mConnectThread.start();\n }\n }", "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\t\tcase R.id.bConnect:\n\t\t\t\tstartActivity(new Intent(\"android.intent.action.BT1\"));\n\t\t\t\tbreak;\n\t\t\tcase R.id.bDisconnect:\n\t\t\t\tBluetooth.disconnect();\n\t\t\t\tbreak;\n\t\t\tcase R.id.bXminus:\n\t\t\t\tif (Xview > 1) Xview--;\n\t\t\t\tbreak;\n\t\t\tcase R.id.bXplus:\n\t\t\t\tif (Xview < 100) Xview++;\n\t\t\t\tbreak;\n\t\t\tcase R.id.tbLock:\n\t\t\t\tif (tbLock.isChecked()) {\n\t\t\t\t\tLock = true;\n\t\t\t\t} else {\n\t\t\t\t\tLock = false;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase R.id.tbScroll:\n\t\t\t\tif (tbScroll.isChecked()) {\n\t\t\t\t\tAutoScrollX = true;\n\t\t\t\t} else {\n\t\t\t\t\tAutoScrollX = false;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase R.id.tbStream:\n\t\t\t\tif (tbStream.isChecked()) {\n\t\t\t\t\tif (Bluetooth.connectedThread != null)\n\t\t\t\t\t\tBluetooth.connectedThread.write(Character.toString((char) 5));\n\t\t\t\t} else {\n\t\t\t\t\tif (Bluetooth.connectedThread != null)\n\t\t\t\t\t\tBluetooth.connectedThread.write(\"0\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t/*\n\t\tcase R.id.tbRecord:\n\t\t\tif (tbRecord.isChecked()){\n\t\t\t\tRecord = true;\n\n\t\t\t}else{\n\t\t\t\tRecord = false;\n\t\t\t}\n\t\t\tbreak;\n\t*/\n\t\t}\n\t}", "public void run() {\r\n BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();\r\n adapter.cancelDiscovery();\r\n try {\r\n btSocket.connect();\r\n Log.d(\"TAG\", \"Device connected\");\r\n isConnected = true;\r\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);\r\n SharedPreferences.Editor edit = preferences.edit();\r\n edit.putBoolean(\"Connection\", isConnected);\r\n edit.apply();\r\n handler.obtainMessage(CONNECTING_STATUS, 1, -1).sendToTarget();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n try {\r\n isConnected = false;\r\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);\r\n SharedPreferences.Editor edit = preferences.edit();\r\n edit.putBoolean(\"Connection\", isConnected);\r\n edit.apply();\r\n btSocket.close();\r\n handler.obtainMessage(CONNECTING_STATUS, -1,-1).sendToTarget();\r\n } catch (IOException f) {\r\n f.printStackTrace();\r\n }\r\n return;\r\n }\r\n //Perform work from connection in a separate thread\r\n connectedThread = new ConnectedThread(btSocket);\r\n connectedThread.run();\r\n }", "@Override\n public void onClick(View v) {\n if (mBluetoothAdapter.isEnabled()) {\n\n }\n }", "@Override\n public void run() {\n super.run();\n Log.i(TAG, \"BlueTooth Start\");\n _BluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n\n if (_BluetoothAdapter != null){\n if(!_BluetoothAdapter.isEnabled())\n _BluetoothAdapter.enable();\n else{\n _BluetoothDevice = _BluetoothAdapter.getRemoteDevice(strAddress_BT_UART);\n if (_BluetoothDevice != null){\n Log.i(TAG, \"Starting BtConnect\");\n BtConnect BC = new BtConnect(_BluetoothDevice);\n BC.start();\n }\n }\n }\n }", "private boolean mConnect2Device1(BluetoothDevice oDevice1){\n mStateSet(kBT_Connecting); //Connecting to a server\n if (mIsAndroidDevice(oDevice1)) {\n if (mConnect2Device_Sub(UUID_ANDROID_INSECURE, oDevice1)) {\n mStateSet(kBT_Connected1);\n mMsgLog(\"ANDROID Connected: \" +oDevice1.getName());\n oDevice=oDevice1;\n return true;\n }\n } else if (mIsClassic(oDevice1)) { // Classic bluetoot device\n if ( mConnect2Device_Sub(UUID_LMDEVICE_INSECURE, oDevice1)) {\n mStateSet(kBT_Connected1);\n mMsgLog(9,\"Classic bluetooth Connected: \" +oDevice1.getName() );\n oDevice=oDevice1;\n return true;\n }\n }\n mMsgDebug(\"Could not connect\");\n // mBTClose1();\n return false;\n}", "@Override\n public void onConnectBLEDeviceClick(final BLEDevice bleDevice)\n {\n if ( currentBLEDevice != null )\n {\n //---------------------------------------------------------\n // If we're trying to connect to the device we're already\n // connected to... do nothing\n if ( currentBLEDevice.getAddress().equals(bleDevice.getAddress())\n && currentBLEDevice.getState() == BLEDevice.STATE_CONNECTED )\n {\n Toolbox.toast(getContext(), \"Nothing changed. Same device selected...\");\n return;\n }\n\n // Disconnect from existing BLE Device (if applicable)\n Toolbox.toast(getContext(), \"Disconnecting from: \" + currentBLEDevice.getName());\n currentBLEDevice.disconnect();\n }\n\n //---------------------------------------------------------\n // Point the current device to the selected device and\n // setup the listener\n currentBLEDevice = bleDevice;\n currentBLEDevice.setBLEDeviceListener(this);\n\n Toolbox.toast(getContext(), \"Connecting to: \" + bleDevice.getName());\n bleDevice.connect(getContext());\n }", "@Override\n\tpublic void onClick(View v) {\n\t\tswitch(v.getId()){\n\t\tcase R.id.bConnect:\n\t\t\tstartActivity(new Intent(\"android.intent.action.BT1\"));\n\t\t\tbreak;\n\t\tcase R.id.bDisconnect:\n\t\t\tBluetooth.disconnect();\n\t\t\tbreak;\n\t\tcase R.id.bXminus:\n\t\t\tif (Xview>1) Xview--;\n\t\t\tbreak;\n\t\tcase R.id.bXplus:\n\t\t\tif (Xview<30) Xview++;\n\t\t\tbreak;\n\t\tcase R.id.tbLock:\n\t\t\tif (tbLock.isChecked()){\n\t\t\t\tLock = true;\n\t\t\t}else{\n\t\t\t\tLock = false;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase R.id.tbScroll:\n\t\t\tif (tbScroll.isChecked()){\n\t\t\t\tAutoScrollX = true;\n\t\t\t}else{\n\t\t\t\tAutoScrollX = false;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase R.id.tbStream:\n\n\t\t\tif (tbStream.isChecked()){\n\t\t\t\tif (Bluetooth.connectedThread != null) {\n Bluetooth.connectedThread.write(\"E\");\n DBdata= \"INSERT INTO light VALUES\" ;\n }\n\t\t\t}else{\n \tif (Bluetooth.connectedThread != null) {\n Bluetooth.connectedThread.write(\"Q\");\n\n String i=\"\";\n DBdata=DBdata.substring(0,DBdata.length()-1);\n DBdata += \";\";\n i=DBconnect.db(DBdata);\n Count=0;//歸零\n Toast.makeText(getApplicationContext(),DBdata+\"upload...\"+i,Toast.LENGTH_SHORT).show();\n\n }\n\n\t\t\t}\n\n\n\t\t\tbreak;\n\t\t}\n\t}", "public void onStart(){ \r\n\t\t//ensure bluetooth is enabled \r\n\t\tensureBluetoothIsEnabled();\r\n\t\tsuper.onStart(); \t\r\n\t}", "public void findBluetooth() {\n BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n if (mBluetoothAdapter == null) {\n // Device does not support Bluetooth\n btStatusDisplay.setText(\"Device does not support Bluetooth\");\n }\n btStatusDisplay.setText(\"Trying to connect...\");\n\n /** Pops up request to enable if found not enabled */\n if (!mBluetoothAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n }\n /** Get reference to scale as Bluetooth device \"mmDevice\" */\n Set<BluetoothDevice> pairedDevices = mBluetoothAdapter.getBondedDevices();\n if (pairedDevices.size() > 0) {\n for (BluetoothDevice device : pairedDevices) {\n if (device.getName().equals(\"BLUE\")) {\n mmDevice = device;\n btStatusDisplay.setText(\"Bluetooth device found\");\n break;\n }\n }\n }\n }", "public void selectBluetoothDevice(String selectedItem) {\n String[] stringParts = selectedItem.split(\"\\n\");\n\n if (stringParts.length == 2) {\n\n // The Bluetooth ID is: stringParts[1]\n\n // Activate the Bluetooth Input/Output steams\n if (activateBluetoothStreams(stringParts[1])) {\n\n // The device was selected successfully. Start the Robot Activity\n startControlRobotActivity();\n\n }\n else{\n Toast.makeText(getApplicationContext(), \"Selected Bluetooth device was not enabled.\",\n Toast.LENGTH_LONG).show();\n }\n\n }\n else\n {\n Toast.makeText(getApplicationContext(), \"There was a problem selecting a Device.\",\n Toast.LENGTH_LONG).show();\n }\n\n\n }", "@Override\n public void onClick(View control) {\n switch (control.getId()) {\n\n // Initiate bluetooth connection\n case R.id.connect:\n // Only make BT connection if device id was entered\n String id = deviceId.getText().toString();\n if (id.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the bluetooth receiver ID into the text field.\",\n Toast.LENGTH_SHORT).show();\n }\n else {\n connect(id);\n }\n break;\n\n // Stop the motors\n case R.id.stopMotors: {\n // Send stop message over bluetooth\n writeData(\"stop x\");\n break;\n }\n }\n }", "private void CheckBtIsOn() {\n mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n\n if (!mBluetoothAdapter.isEnabled()) {\n Toast.makeText(getApplicationContext(), \"Bluetooth Disabled!\",\n Toast.LENGTH_SHORT).show();\n\n // Start activity to show bluetooth options\n Intent enableBtIntent = new Intent(mBluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n }\n }", "@Override\n\t\tpublic void run() {\n\t\t\ttry{\n//\t\t\t\tdevAddr = devices.get(position).split(\"\\\\|\")[1];\n//\t\t\t\tbtAdapt.cancelDiscovery();\n//\t\t\t\t\n//\t\t\t\tbtSocket = btAdapt.getRemoteDevice(devAddr).createRfcommSocketToServiceRecord(uuid);\n//\t\t\t\tbtSocket.connect();Log.e(tag, \"connected\");\n\t\t\t\tInetAddress severInetAddr=InetAddress.getByName(\"120.105.129.108\");\n\t\t\t\tWifisocket = new Socket(severInetAddr, 8101);\n\t\t\t\t\n\t\t\t\tsynchronized (this) {\n//\t\t\t\t\tbtIn = btSocket.getInputStream();\n//\t\t\t\t\tbtOut = btSocket.getOutputStream();\n\t\t\t\t\tbtIn = Wifisocket.getInputStream();\n\t\t\t\t\tbtOut = Wifisocket.getOutputStream();\n\t\t\t\t\tLog.e(tag, \"connected\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tThread.sleep(100);\n\t\t\t\tsetUpAsForeground(\"Wifi已連線\");\n\t\t\t} catch( IOException | InterruptedException e ){\n\t\t\t\te.printStackTrace();\n\t\t\t\ttry{\n//\t\t\t\t\tbtSocket.close();\n//\t\t\t\t\tWifisocket.close();\n\t\t\t\t\tThread.sleep(1500);\n\t\t\t\t\tsetUpAsForeground(\"Wifi未連線\");\n\t\t\t\t\tLog.i(\"exiconne\", \"bluetoohservice bye!;\");\n\t\t\t\t} catch(InterruptedException e1){\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\tLog.i(\"exiconne\", \"bluetoohservice bye!;\");\n\t\t\t\t}\n//\t\t\t\tbtSocket = null;\n\t\t\t\tWifisocket = null;\n\t\t\t\tmBTState = BTState.stopped;\n\t\t\t\tBluetoothConnect.mBTstate = BTstate.opened;\n\t\t\t}\n\n\t\t}", "public void connect(String id) {\n // Android bluetooth API code\n BluetoothDevice device = null;\n try {\n device = mBluetoothAdapter.getRemoteDevice(id);\n mBluetoothAdapter.cancelDiscovery();\n }\n catch (Exception e) {\n // Show user error message\n // i.e. \"333 is not a valid bluetooth address\"\n Toast.makeText(getApplicationContext(), e.getMessage(),\n Toast.LENGTH_SHORT).show();\n }\n\n // If getRemoteDevice did not throw and device was set, connect to client\n // getRemoteDevice throws if its parameter is not a valid bluetooth address\n if (device != null) {\n try {\n btSocket = device.createRfcommSocketToServiceRecord(MY_UUID);\n btSocket.connect();\n Toast.makeText(getApplicationContext(), \"Connection made\",\n Toast.LENGTH_SHORT).show();\n connectedStatus.setText(R.string.connection_connected);\n } catch (IOException e) {\n try {\n btSocket.close();\n } catch (IOException e2) {\n Log.d(TAG, \"Unable to end the connection\");\n }\n Log.d(TAG, \"Socket creation failed\");\n }\n }\n }", "public void startBTConnection(BluetoothDevice device, UUID uuid){\n Log.d(TAG, \"startBTConnection: Initializing RFCOM Bluetooth Connection.\");\n mBluetoothConnection.startClient(device,uuid);\n }", "private void ensureBluetoothEnabled() {\n if (!mBluetoothAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(\n BluetoothAdapter.ACTION_REQUEST_ENABLE);\n main.startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n } else {\n connectToBluetoothDevice(\"00:06:66:64:42:97\"); // Hard coded MAC of the BT-device.\n Log.i(tag, \"Connected to device!\");\n }\n }", "@Override\n protected void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n m_tts = new TextToSpeech(this, this);\n\n Intent newint = getIntent();\n //receive the address of the bluetooth device\n address = newint.getStringExtra(MainActivity.EXTRA_ADDRESS);\n\n //view of the ledControl\n setContentView(R.layout.activity_game_play);\n\n btnEnd = (Button)findViewById(R.id.btnEnd);\n\n new ConnectBT().execute(); //Call the class to connect\n\n btnEnd.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Disconnect(); //close connection\n }\n });\n\n }", "private void setupBluetooth() throws NullPointerException{\n if( Utils.isOS( Utils.OS.ANDROID ) ){\n \t\n // Gets bluetooth hardware from phone and makes sure that it is\n // non-null;\n BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();\n \n // If bluetooth hardware does not exist...\n if (adapter == null) {\n Log.d(TAG, \"BluetoothAdapter is is null\");\n throw new NullPointerException(\"BluetoothAdapter is null\");\n } else {\n Log.d(TAG, \"BluetoothAdapter is is non-null\");\n }\n \n bluetoothName = adapter.getName();\n \n //TODO: restart bluetooth?\n \t\n try {\n bluetoothConnectionThreads.add( new ServerThread(adapter, router, uuid) );\n } catch (NullPointerException e) {\n throw e;\n }\n if (Constants.DEBUG)\n Log.d(TAG, \"Sever Thread Created\");\n // Create a new clientThread\n bluetoothConnectionThreads.add( new ClientThread(adapter, router, uuid) );\n if (Constants.DEBUG)\n Log.d(TAG, \"Client Thread Created\");\n }\n else if( Utils.isOS( Utils.OS.WINDOWS ) ){\n //TODO: implement this\n }\n else if( Utils.isOS( Utils.OS.LINUX ) ){\n //TODO: implement this\n }\n else if( Utils.isOS( Utils.OS.OSX ) ){\n //TODO: implement this\n }\n else{\n //TODO: throw exception?\n }\n \n }", "public void startBluetooth(){\n mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n if (!mBluetoothAdapter.isEnabled()) {\n Intent btIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n //btIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(btIntent);\n }\n mBluetoothAdapter.startDiscovery();\n System.out.println(\"@ start\");\n IntentFilter filter = new IntentFilter(BluetoothDevice.ACTION_FOUND);\n getActivity().registerReceiver(mReceiver, filter);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tif(!usbfactory.is_connecusb())\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\tprobe();\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tToast_Util.ToastString(getApplicationContext(),\"printer_connected\");//打印机已连接 printer connected\n\t\t\t\t}\n\n\n\t\t\t}", "public boolean mConnect(String s) { //Find and mConnect to the bluetooth\n if (isBtOpen()==false)\n return false;\n if (isConnected(s))\n return true;\n if (bDevicePickerActive) return false; //Don't connect while picking device\n if (oDevice!=mBTDeviceByName(s)) mDisconnect();\n mDisconnect();\n oDevice=mBTDeviceByName(s);\n sDeviceName = s; //Set new device name\n oParent.mDeviceNameSet(s);\n if (mConnect2Device1(oDevice))\n return true;\n\n mStateSet(kBT_ConnectReq1);\n if (mBTOpen1()==false) { //If BT cannot be opened\n mStateSet(kBT_InvalidBT1);\n mErrMsg(\"No bluetooth port available\");\n return false;\n }\n if (mIsState(kBT_Connecting)) {\n mSleep(1000);\n if (oInput!=null)\n mStateSet(kBT_Connected1);\n else\n mStateSet(kBT_InvalidDevice1);\n return false;\n }\n if (oDevice==null) { //Device not found,\n oDevice=mBTDeviceByName(sDeviceName);\n if (oDevice==null){\n mStateSet(kBT_InvalidDevice1);\n mSleep(2000);\n }\n return false;\n }\n //set by mConnectDeviceWithName, mRequestConnection\n if (mIsState(kBT_ConnectReq1)) { //Try to connect first time\n if (mConnect2Device1(oDevice)==false) //mConnect sets mStateSet(kBT_DeviceConnected);\n mSleep(10);\n } else if (mIsState(cKonst.eSerial.kBT_BrokenConnection)) { //Try to reconnect\n mSleep(2000);\n bDoRedraw=true;\n return false;\n } else if (mIsState(kOverflow)){ //Fatal, overflow, donno what to do\n mConnectionStateClear();\n return false;\n } else {\n mSleep(2000); //Do nothing while connection was interrupted\n }\n return false;\n }", "private void enableBT() {\n if (bluetoothAdapter == null) {\n Log.e(LOG_TAG, \"Bluetooth is not supported\");\n } else if (!bluetoothAdapter.isEnabled()) {\n bluetoothAdapter.enable();\n }\n }", "public void bind(BluetoothDevice device){\n tv_blue_list_name.setText(device.getName());\n tv_blue_list_address.setText(device.getAddress());\n\n }", "public void startBTConnection(BluetoothDevice device, UUID uuid){\n Log.d(TAG, \"startBTConnection: Initializing RFCOM Bluetooth Connection.\");\n\n mBluetoothConnection.startClient(device,uuid);\n }", "@Override\r\n\tprotected void onHandleIntent(Intent intent) {\n\t\tfinal BluetoothManager bluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);\r\n\t\tmBluetoothAdapter = bluetoothManager.getAdapter();\r\n\r\n\t\t// Checks if Bluetooth is supported on the device.\r\n\t\tif (mBluetoothAdapter == null) {\r\n\t\t\tLog.i(TAG, \"Bluetooth is not supported\");\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\tLog.i(TAG, \"mBluetoothAdapter = \" + mBluetoothAdapter);\r\n\t\t}\r\n\r\n\t\t//启用蓝牙\r\n\t\t//mBluetoothAdapter.enable();\r\n\t\t//Log.i(TAG, \"mBluetoothAdapter.enable\");\r\n\t\t\r\n\t\tmBLE = new BluetoothLeClass(this);\r\n\t\t\r\n\t\tif (!mBLE.initialize()) {\r\n\t\t\tLog.e(TAG, \"Unable to initialize Bluetooth\");\r\n\t\t}\r\n\t\tLog.i(TAG, \"mBLE = e\" + mBLE);\r\n\r\n\t\t// 发现BLE终端的Service时回调\r\n\t\tmBLE.setOnServiceDiscoverListener(mOnServiceDiscover);\r\n\r\n\t\t// 收到BLE终端数据交互的事件\r\n\t\tmBLE.setOnDataAvailableListener(mOnDataAvailable);\r\n\t\t\r\n\t\t//开始扫描\r\n\t\tmBLE.scanLeDevice(true);\r\n\t\t\r\n\t\t/*\r\n\t\tMRBluetoothManage.Init(this, new MRBluetoothEvent() {\r\n\t\t\t@Override\r\n\t\t\tpublic void ResultStatus(int result) {\r\n\t\t\t\tswitch (result) {\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_NOT_OPEN:\r\n\t\t\t\t\t//Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\r\n\t\t\t\t\t//startActivityForResult(enableBtIntent, 100);\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_NOT_OPEN\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_INIT_OK:\r\n\t\t\t\t\tMRBluetoothManage.scanAndConnect();\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_INIT_OK\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_SCAN_START:\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_SCAN_START\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_SCAN_END:\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_SCAN_END\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_CONNECT_START:\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_CONNECT_START\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_CONNECT_OK:\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_CONNECT_OK\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_CONNECT_CLOSE:\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_CONNECT_CLOSE\");\r\n\t\t\t\t\tMRBluetoothManage.stop();\r\n\t\t\t\t\tMRBluetoothManage.scanAndConnect();\r\n\t\t\t\t\t//MRBluetoothManage.Init(BluetoothService.this, this);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void ResultDevice(ArrayList<BluetoothDevice> deviceList) {\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void ResultData(byte[] data) {\r\n\t\t\t\tLog.i(TAG, data.toString());\r\n\t\t\t\tbyte[] wenDuByte = new byte[2];\r\n\t\t\t\tbyte[] shiDuByte = new byte[2];\r\n\t\t\t\tbyte[] shuiFenByte = new byte[2];\r\n\t\t\t\tbyte[] ziWaiXianByte = new byte[2];\r\n\t\t\t\tSystem.arraycopy(data, 4, wenDuByte, 0, 2);\r\n\t\t\t\tSystem.arraycopy(data, 6, shiDuByte, 0, 2);\r\n\t\t\t\tSystem.arraycopy(data, 8, shuiFenByte, 0, 2);\r\n\t\t\t\tSystem.arraycopy(data, 10, ziWaiXianByte, 0, 2);\r\n\t\t\t\tTestModel model = new TestModel();\r\n\t\t\t\tmodel.wenDu = BitConverter.toShort(wenDuByte);\r\n\t\t\t\tmodel.shiDu = BitConverter.toShort(shiDuByte);\r\n\t\t\t\tmodel.shuiFen = BitConverter.toShort(shuiFenByte);\r\n\t\t\t\tmodel.ziWaiXian = BitConverter.toShort(ziWaiXianByte);\r\n\t\t\t\t//Log.d(TAG, model.toString());\r\n\t\t\t\tsendData(model);\r\n\t\t\t}\r\n\t\t});\r\n\t\t*/\r\n\t}", "private Bluetooth() {}", "private boolean isBtConnected(){\n \treturn false;\n }", "private void BTKies() {\n Set<BluetoothDevice> pairedDevices;\n ArrayAdapter<String> BTArrayAdapter;\n final Dialog dialog = new Dialog(this);\n dialog.setContentView(R.layout.devicedialog);\n dialog.setTitle(\"Kies een verbinding\");\n BTListView = (ListView) dialog.findViewById(R.id.listView1);\n BTListView.setVisibility(View.VISIBLE);\n\n BTArrayAdapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_list_item_1);\n BTListView.setAdapter(BTArrayAdapter);\n pairedDevices = BT.getBondedDevices();\n for (BluetoothDevice device : pairedDevices)\n BTArrayAdapter.add(device.getName() + \"\\n\" + device.getAddress());\n\n dialog.show();\n\n // Pick het item uit de list\n BTListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n long arg3) {\n ListView lv = (ListView) arg0;\n TextView tv = (TextView) lv.getChildAt(arg2);\n String s = tv.getText().toString();\n\n Connect(s); // Make connection\n }\n\n private void Connect(String s) {\n int i = s.length();\n address = s.substring(i - 17);\n BluetoothDevice device = BT.getRemoteDevice(address);\n Log.d(TAG, \"Connecting to ... \" + device);\n BT.cancelDiscovery();\n try { // omgaan met exeptions\n btSocket = device\n .createRfcommSocketToServiceRecord(MY_UUID);\n btSocket.connect();\n // hier de comunicatie invullen ***********************************************\n writeData(\"c#\"); // vraag om een bevestiging van de verbinding\n BTListView.setVisibility(View.INVISIBLE);\n dialog.dismiss();\n beginListenForData();\n } catch (IOException e) {\n try {\n btSocket.close();\n } catch (IOException e2) {\n DisplayToast(\"Unable to end the connection\");\n }\n DisplayToast(\"Ontvanger niet beschikbaar. Kies opnieuw\");\n }\n }\t// einde connect\n\n });\t// einde onClick\n }", "private void turnOn(View v) {\n bluetoothAdapter.enable();\n }", "public void connectDevice(String address) {\n try {\n device = bluetoothAdapter.getRemoteDevice(address);\n }catch(IllegalArgumentException e){\n Toast.makeText(NavigationDrawerActivity.this, \"Mac Address is not available!\", Toast.LENGTH_SHORT).show();\n }\n // Attempt to connect to the device\n chatService.connect(device);\n\n // replaceFragment(AnalysisFragment.NewInstance(),\"analysisfragment\");\n listViewNavDrawer.performItemClick(null,2,0);\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\tif(true/*listAdapter.getItem(arg2).contains(\"Paired\")*/){\n\t\t\tBluetoothDevice selectedDevice = devices.get(arg2);\n\t\t\tToast.makeText(getApplicationContext(), \"device is paired\", Toast.LENGTH_SHORT).show();\n\t\t\tConnectThread connect = new ConnectThread(selectedDevice);\n\t\t\tconnect.start();\n\t\t} else {\n\t\t\tToast.makeText(getApplicationContext(), \"device is not paired\", Toast.LENGTH_SHORT).show();\n\t\t\tIntent intentOpenBluetoothSettings = new Intent();\n\t\t\tintentOpenBluetoothSettings.setAction(android.provider.Settings.ACTION_BLUETOOTH_SETTINGS); \n\t\t\tstartActivity(intentOpenBluetoothSettings); \n\t\t}\n\t}", "public interface OnDeviceSelectedListener {\n\n /**\n * Method used to send the address of a selected bluetooth device.\n * @param address the MAC address of the bluetooth device.\n */\n void onDeviceSelected(String address);\n}", "private void checkBTState() {\n\n if (btAdapter == null) {\n Toast.makeText(getBaseContext(), \"Device does not support bluetooth\", Toast.LENGTH_LONG).show();\n } else {\n if (btAdapter.isEnabled()) {\n } else {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "private void checkBTState() {\n\n if(btAdapter==null) {\n Toast.makeText(getBaseContext(), \"Device does not support bluetooth\", Toast.LENGTH_LONG).show();\n } else {\n if (btAdapter.isEnabled()) {\n } else {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "@Override\n public boolean connect(BluetoothDevice bluetoothDevice) throws RemoteException {\n Parcel parcel = Parcel.obtain();\n Parcel parcel2 = Parcel.obtain();\n try {\n parcel.writeInterfaceToken(Stub.DESCRIPTOR);\n boolean bl = true;\n if (bluetoothDevice != null) {\n parcel.writeInt(1);\n bluetoothDevice.writeToParcel(parcel, 0);\n } else {\n parcel.writeInt(0);\n }\n if (!this.mRemote.transact(8, parcel, parcel2, 0) && Stub.getDefaultImpl() != null) {\n bl = Stub.getDefaultImpl().connect(bluetoothDevice);\n parcel2.recycle();\n parcel.recycle();\n return bl;\n }\n parcel2.readException();\n int n = parcel2.readInt();\n if (n == 0) {\n bl = false;\n }\n parcel2.recycle();\n parcel.recycle();\n return bl;\n }\n catch (Throwable throwable) {\n parcel2.recycle();\n parcel.recycle();\n throw throwable;\n }\n }", "private void initPlugin() {\n if (bluetoothAdapter == null) {\n Log.e(LOG_TAG, \"Bluetooth is not supported\");\n } else {\n Log.e(LOG_TAG, \"Bluetooth is supported\");\n\n sendJS(\"javascript:cordova.plugins.BluetoothStatus.hasBT = true;\");\n\n //test if BLE supported\n if (!mcordova.getActivity().getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\n Log.e(LOG_TAG, \"BluetoothLE is not supported\");\n } else {\n Log.e(LOG_TAG, \"BluetoothLE is supported\");\n sendJS(\"javascript:cordova.plugins.BluetoothStatus.hasBTLE = true;\");\n }\n \n // test if BT is connected to a headset\n \n if (bluetoothAdapter.getProfileConnectionState(BluetoothProfile.HEADSET) == BluetoothProfile.STATE_CONNECTED ) {\n Log.e(LOG_TAG, \" Bluetooth connected to headset\");\n sendJS(\"javascript:cordova.fireWindowEvent('BluetoothStatus.connected');\");\n } else {\n Log.e(LOG_TAG, \"Bluetooth is not connected to a headset \" + bluetoothAdapter.getProfileConnectionState(BluetoothProfile.HEADSET));\n }\n\n //test if BT enabled\n if (bluetoothAdapter.isEnabled()) {\n Log.e(LOG_TAG, \"Bluetooth is enabled\");\n\n sendJS(\"javascript:cordova.plugins.BluetoothStatus.BTenabled = true;\");\n sendJS(\"javascript:cordova.fireWindowEvent('BluetoothStatus.enabled');\");\n } else {\n Log.e(LOG_TAG, \"Bluetooth is not enabled\");\n }\n }\n }", "void onConnectDeviceComplete();", "protected void connectBluetooth(int i) {\n Intent intent = new Intent(this, MainActivity.class);\n // Try top 3 devices\n ArrayList<BluetoothDevice> devices = new ArrayList<>();\n// for (int i = 0; i < mScanResults.size() && i < 3; i++) {\n ScanInfo info = mScanResults.get(i);\n devices.add(mBtAdapter.getRemoteDevice(info.address)); //getRemoteDevice()返回相应的被指定蓝牙连接的远端设备。\n// }\n intent.putParcelableArrayListExtra(BluetoothDevice.EXTRA_DEVICE, devices);\n Log.i(TAG, \"Devices : \" + intent.putParcelableArrayListExtra(BluetoothDevice.EXTRA_DEVICE, devices));\n\n this.startActivity(intent);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_recorder);\n\n //points = new ArrayList<TGEegPower>();\n //db = new frequencyTable(this);\n //Bundle extras = getIntent().getExtras();\n //thought = extras.getString(\"thought\");\n //current = new EEGPoint(thought);\n\n assignVariables();\n btSelect.setChecked(false);\n\n if (mBluetoothAdapter == null) {\n // Device does not support Bluetooth\n btSelect.setClickable(false);\n pairedIndicator.setText(\"Bluetooth not supported.\");\n\n }\n\n else{\n btSelect.setChecked(true);\n tgDevice = new TGDevice(mBluetoothAdapter, handler);\n Toast.makeText(getApplicationContext(), \"The handler shit is done...\",Toast.LENGTH_SHORT).show();\n\n list = new ArrayList<>(); //The '<>' indicates String. No need of explicit declaration, it seems.\n\n pairedDevices = mBluetoothAdapter.getBondedDevices();\n\n if (pairedDevices.size() > 0)\n {\n for (BluetoothDevice device : pairedDevices)\n {\n list.add(device.getName() + \",\" + device.getAddress());\n if(device.getName().startsWith(\"Mind\")){\n pairedIndicator.setText(\"MindWave Mobile is paired.\");\n pairedFlag=1;\n }\n }\n\n if(pairedFlag==0){\n pairedIndicator.setText(\"MindWave Mobile is not paired.\");\n }\n }\n\n /*\n if (mBluetoothAdapter.isEnabled()) {\n btSelect.setChecked(true);\n tgDevice = new TGDevice(mBluetoothAdapter, handler);\n Toast.makeText(getApplicationContext(), \"The handler shit is done...\",Toast.LENGTH_SHORT).show();\n }*/\n\n if(tgDevice.getState() != TGDevice.STATE_CONNECTING && tgDevice.getState() != TGDevice.STATE_CONNECTED)\n tgDevice.connect(rawEnabled);\n\n\n\n btSelect.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton buttonView,boolean isChecked){\n\n if(isChecked){\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n }\n\n else{\n mBluetoothAdapter.disable();\n }\n\n }\n });\n\n recordNow.setOnClickListener(\n new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // get an image from the camera\n if (mBluetoothAdapter.isEnabled()) {\n\n }\n }\n }\n );\n }\n }", "@Override\n public void onItemClick(int position) {\n Sensor s = mDeviceList.get(position);\n if(s.isConnected){\n if(s.name.equals(\"Vital Jacket\")){\n BluetoothService.sendTo(client.address,\"turnOffVj\");\n }\n else if(s.name.equals(\"Video\")){\n BluetoothService.sendTo(client.address,\"turnOffVideo\");\n }\n }\n else {\n if (s.name.equals(\"Vital Jacket\")) {\n Intent i = new Intent(getBaseContext(), ChooseVJ.class);\n i.putExtra(\"message\", client.address);\n startActivity(i);\n }\n else if(s.name.equals(\"Video\")){\n BluetoothService.sendTo(client.address,\"turnOnVideo\");\n }\n }\n }", "@Override\n\tpublic void onClick(View v) {\n\t \tswitch (v.getId()) {\n\t \t\n\t\tcase R.id.btn_start:\n\t\t BroadCastAction.broadcastUpdate(this.appContext, \"com.ainia.ble.ACTION_BLE_START_SCAN\");\t\t\t\n\t\t\tbreak;\n\t\t\t\n\t\tcase R.id.btn_back:\n\t\t\tBroadCastAction.broadcastUpdate(this.appContext, \"com.ainia.ble.ACTION_BLE_STOP_SCAN\");\n\t\t\tDeviceListActivity.this.finish();\n\t\t\tbreak;\n\t\t\t\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n public void onConnect(BluetoothDevice device) {\n Display(\"Vehicle Connected!\");\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n String car = \"DRIVING: \" + name;\n vehicle.setText(car);\n SharedPreferences wheels = getSharedPreferences(\"MyApp\", MODE_PRIVATE);\n wheels.edit().putString(\"vehicle\", name).apply();\n }\n });\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n setContentView(R.layout.activity_main);\n btnOn = findViewById(R.id.bluetoothStart); // кнопка включения\n btnOff = findViewById(R.id.bluetoothStop); // кнопка выключения\n statusText = findViewById(R.id.statusBluetooth); // для вывода текста, полученного\n btState = findViewById(R.id.bluetoothIm);\n workState = findViewById(R.id.workStatIm);\n\n h = new Handler() {\n public void handleMessage(android.os.Message msg) {\n switch (msg.what) {\n case RECIEVE_MESSAGE:\n statusText.setText(\"msg\");// если приняли сообщение в Handler\n byte[] readBuf = (byte[]) msg.obj;\n String strIncom = new String(readBuf, 0, msg.arg1);\n sb.append(strIncom); // формируем строку\n int endOfLineIndex = sb.indexOf(\"\\r\\n\"); // определяем символы конца строки\n if (endOfLineIndex > 0) { // если встречаем конец строки,\n String sbprint = sb.substring(0, endOfLineIndex); // то извлекаем строку\n sb.delete(0, sb.length()); // и очищаем sb\n statusText.setText(\"Ответ от датчика: \" + sbprint); // обновляем TextView\n String[] step_data = sbprint.split(\" \");\n writeFile(step_data[0]);\n writeFile(\";\");\n writeFile(step_data[1]);\n writeFile(\";\");\n writeFile(step_data[2]);\n writeFile(\";\\n\");\n btnOff.setEnabled(true);\n btnOn.setEnabled(true);\n }\n //Log.d(TAG, \"...Строка:\"+ sb.toString() + \"Байт:\" + msg.arg1 + \"...\");\n break;\n }\n };\n };\n\n btAdapter = BluetoothAdapter.getDefaultAdapter(); // получаем локальный Bluetooth адаптер\n\n if (btAdapter.isEnabled()) {\n SharedPreferences prefs_btdev = getSharedPreferences(\"btdev\", 0);\n String btdevaddr=prefs_btdev.getString(\"btdevaddr\",\"?\");\n\n if (btdevaddr != \"?\") {\n BluetoothDevice device = btAdapter.getRemoteDevice(btdevaddr);\n UUID SERIAL_UUID = UUID.fromString(\"0000f00d-1212-afde-1523-785fef13d123\"); // bluetooth serial port service\n //UUID SERIAL_UUID = device.getUuids()[0].getUuid(); //if you don't know the UUID of the bluetooth device service, you can get it like this from android cache\n try {\n btSocket = device.createRfcommSocketToServiceRecord(SERIAL_UUID);\n } catch (Exception e) {\n Log.e(\"\",\"Error creating socket\");\n }\n\n try {\n btSocket.connect();\n Log.e(\"\",\"Connected\");\n } catch (IOException e) {\n Log.e(\"\",e.getMessage());\n try {\n Log.e(\"\",\"trying fallback...\");\n btSocket =(BluetoothSocket) device.getClass().getMethod(\"createRfcommSocket\", new Class[] {int.class}).invoke(device,1);\n btSocket.connect();\n Log.e(\"\",\"Connected\");\n } catch (Exception e2) {\n Log.e(\"\", \"Couldn't establish Bluetooth connection!\");\n }\n }\n } else {\n Log.e(\"\",\"BT device not selected\");\n }\n }\n\n checkBTState();\n\n btnOn.setOnClickListener(new OnClickListener() { // определяем обработчик при нажатии на кнопку\n public void onClick(View v) {\n //btnOn.setEnabled(false);\n workState.setImageResource(R.drawable.ic_action_work_on);\n mConnectedThread.run();\n // TODO start writing in file\n }\n });\n\n btnOff.setOnClickListener(new OnClickListener() {\n public void onClick(View v) {\n //btnOff.setEnabled(false);\n workState.setImageResource(R.drawable.ic_action_work_off);\n mConnectedThread.cancel();\n // TODO stop writing in file\n }\n });\n }", "public boolean connect() {\n try {\n this.bluetoothSocket = this.device.createRfcommSocketToServiceRecord(this.device.getUuids()[0].getUuid());\n this.bluetoothSocket.connect();\n return true;\n } catch (IOException ex) {\n try {\n this.bluetoothSocket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n this.bluetoothSocket = null;\n }\n return false;\n }", "public void initDevice() {\n myBluetoothAdapter = android.bluetooth.BluetoothAdapter.getDefaultAdapter();\n pairedDevices = myBluetoothAdapter.getBondedDevices();\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n if (intent.getAction().equals(ACTION_USB_PERMISSION)) {\n boolean granted = intent.getExtras().getBoolean(UsbManager.EXTRA_PERMISSION_GRANTED);\n if (granted) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR1) {\n connection = usbManager.openDevice(device);\n }\n serialPort = UsbSerialDevice.createUsbSerialDevice(device, connection);\n if (serialPort != null) {\n if (serialPort.open()) { //Set Serial Connection Parameters.\n serialPort.setBaudRate(115200); //was 9600\n serialPort.setDataBits(UsbSerialInterface.DATA_BITS_8);\n serialPort.setStopBits(UsbSerialInterface.STOP_BITS_1);\n serialPort.setParity(UsbSerialInterface.PARITY_NONE);\n serialPort.setFlowControl(UsbSerialInterface.FLOW_CONTROL_OFF);\n serialPort.read(mCallback);\n //tvAppend(textView,\"Serial Connection Opened!\\n\");\n\n } else {\n Log.d(\"SERIAL\", \"PORT NOT OPEN\");\n Toast.makeText(getParent(), \"port not open\", Toast.LENGTH_LONG).show();\n }\n } else {\n Log.d(\"SERIAL\", \"PORT IS NULL\");\n Toast.makeText(getParent(), \"port is NULL\", Toast.LENGTH_LONG).show();\n }\n } else {\n Log.d(\"SERIAL\", \"PERM NOT GRANTED\");\n Toast.makeText(getParent(), \"perm not granted\", Toast.LENGTH_LONG).show();\n }\n } else if (intent.getAction().equals(UsbManager.ACTION_USB_DEVICE_ATTACHED)) {\n //onClickStart(startButton);\n System.out.println(\"onclick start startbutton\");\n } else if (intent.getAction().equals(UsbManager.ACTION_USB_DEVICE_DETACHED)) {\n //onClickStop(stopButton);\n System.out.println(\"onclick stop stopbutton\");\n }\n }", "@Override\n public IBinder onBind(Intent intent) {\n\n AppConstants.RebootHF_reader = false;\n if (mBluetoothLeService != null) {\n final boolean result = mBluetoothLeService.connect(mDeviceAddress);\n Log.d(TAG, \"Connect request result=\" + result);\n }\n\n\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }", "private void checkBTState() {\n\n if(btAdapter==null) {\n Toast.makeText(getContext(), \"El dispositivo no soporta bluetooth\", Toast.LENGTH_LONG).show();\n } else {\n if (btAdapter.isEnabled()) {\n } else {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\trequestWindowFeature(Window.FEATURE_CUSTOM_TITLE);\n\t\tsetContentView(R.layout.activity_main);\n\t\tgetWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE,\n\t\t\t\tR.layout.actionbar);\n\t\tname = (EditText) (findViewById(R.id.bluetoothName));\n\t\tButton ok = (Button) (findViewById(R.id.button1));\n\t\tButton connect = (Button) findViewById(R.id.button2);\n\n\t\tok.setOnClickListener(new View.OnClickListener() {\n\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent openList = new Intent(MainActivity.this,\n\t\t\t\t\t\tListDivices.class);\n\t\t\t\tstartActivityForResult(openList, APPLY_CONNECTION);\n\t\t\t}\n\t\t});\n\t\tconnect.setOnClickListener(new View.OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tnameb = name.getText();\n\t\t\t\tblname = nameb.toString();\n\t\t\t\ttry {\n\t\t\t\t\tfindBT();\n\t\t\t\t\tstat = 1;\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tstat = 0;\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t\tfinal ToggleButton fan = (ToggleButton) findViewById(R.id.toggleButton1);\n\t\tfan.setOnClickListener(new View.OnClickListener() {\n\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (fan.isChecked()) {\n\t\t\t\t\tif (stat == 1) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tmmOutputStream.write('1');\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\tToast.makeText(\n\t\t\t\t\t\t\t\t\tMainActivity.this,\n\t\t\t\t\t\t\t\t\t\"Connection not established with your home\",\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else\n\t\t\t\t\t\tToast.makeText(MainActivity.this,\n\t\t\t\t\t\t\t\t\"Connection not established with your home\",\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t} else {\n\t\t\t\t\tif (stat == 1) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tmmOutputStream.write('2');\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\tToast.makeText(\n\t\t\t\t\t\t\t\t\tMainActivity.this,\n\t\t\t\t\t\t\t\t\t\"Connection not established with your home\",\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else\n\t\t\t\t\t\tToast.makeText(MainActivity.this,\n\t\t\t\t\t\t\t\t\"Connection not established with your home\",\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tfinal ToggleButton light1 = (ToggleButton) findViewById(R.id.toggleButton2);\n\t\tlight1.setOnClickListener(new View.OnClickListener() {\n\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (light1.isChecked()) {\n\t\t\t\t\tif (stat == 1) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tmmOutputStream.write('3');\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\tToast.makeText(\n\t\t\t\t\t\t\t\t\tMainActivity.this,\n\t\t\t\t\t\t\t\t\t\"Connection not established with your home\",\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else\n\t\t\t\t\t\tToast.makeText(MainActivity.this,\n\t\t\t\t\t\t\t\t\"Connection not established with your home\",\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t} else {\n\t\t\t\t\tif (stat == 1) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tmmOutputStream.write('4');\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\tToast.makeText(\n\t\t\t\t\t\t\t\t\tMainActivity.this,\n\t\t\t\t\t\t\t\t\t\"Connection not established with your home\",\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else\n\t\t\t\t\t\tToast.makeText(MainActivity.this,\n\t\t\t\t\t\t\t\t\"Connection not established with your home\",\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tfinal ToggleButton light2 = (ToggleButton) findViewById(R.id.toggleButton3);\n\t\tlight2.setOnClickListener(new View.OnClickListener() {\n\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (light2.isChecked()) {\n\t\t\t\t\tif (stat == 1) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tmmOutputStream.write('5');\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\tToast.makeText(\n\t\t\t\t\t\t\t\t\tMainActivity.this,\n\t\t\t\t\t\t\t\t\t\"Connection not established with your home\",\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else\n\t\t\t\t\t\tToast.makeText(MainActivity.this,\n\t\t\t\t\t\t\t\t\"Connection not established with your home\",\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t} else {\n\t\t\t\t\tif (stat == 1) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tmmOutputStream.write('6');\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\tToast.makeText(\n\t\t\t\t\t\t\t\t\tMainActivity.this,\n\t\t\t\t\t\t\t\t\t\"Connection not established with your home\",\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else\n\t\t\t\t\t\tToast.makeText(MainActivity.this,\n\t\t\t\t\t\t\t\t\"Connection not established with your home\",\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tfinal ToggleButton light3 = (ToggleButton) findViewById(R.id.toggleButton4);\n\t\tlight3.setOnClickListener(new View.OnClickListener() {\n\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (light3.isChecked()) {\n\t\t\t\t\tif (stat == 1) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tmmOutputStream.write('7');\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\tToast.makeText(\n\t\t\t\t\t\t\t\t\tMainActivity.this,\n\t\t\t\t\t\t\t\t\t\"Connection not established with your home\",\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else\n\t\t\t\t\t\tToast.makeText(MainActivity.this,\n\t\t\t\t\t\t\t\t\"Connection not established with your home\",\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t} else {\n\t\t\t\t\tif (stat == 1) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tmmOutputStream.write('8');\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\tToast.makeText(\n\t\t\t\t\t\t\t\t\tMainActivity.this,\n\t\t\t\t\t\t\t\t\t\"Connection not established with your home\",\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else\n\t\t\t\t\t\tToast.makeText(MainActivity.this,\n\t\t\t\t\t\t\t\t\"Connection not established with your home\",\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tfinal ToggleButton tv = (ToggleButton) findViewById(R.id.toggleButton5);\n\t\ttv.setOnClickListener(new View.OnClickListener() {\n\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (tv.isChecked()) {\n\t\t\t\t\tif (stat == 1) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tmmOutputStream.write('9');\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\tToast.makeText(\n\t\t\t\t\t\t\t\t\tMainActivity.this,\n\t\t\t\t\t\t\t\t\t\"Connection not established with your home\",\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else\n\t\t\t\t\t\tToast.makeText(MainActivity.this,\n\t\t\t\t\t\t\t\t\"Connection not established with your home\",\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t} else {\n\t\t\t\t\tif (stat == 1) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tmmOutputStream.write('0');\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\tToast.makeText(\n\t\t\t\t\t\t\t\t\tMainActivity.this,\n\t\t\t\t\t\t\t\t\t\"Connection not established with your home\",\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else\n\t\t\t\t\t\tToast.makeText(MainActivity.this,\n\t\t\t\t\t\t\t\t\"Connection not established with your home\",\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t}", "public boolean mBTOpen1() {\n if (oBTadapter == null){ //Prepare BT\n return mBTInit1();\n }else if (oBTadapter.isEnabled()) { //BT port is ready , Running return\n return true;\n }else { //Try to open BT port\n mMsgLog(\"Turning on the Bluetooth\");\n isOpenedByMe = true;\n oBTadapter.enable(); //Turn on bluetooth if not already active\n mSleep(1000);\n if (oBTadapter.isEnabled()) {\n return true;\n }\n }\n return false;\n }", "public void checkBTState() {\n if(mAdapter==null) {\n errorExit(\"Fatal Error\", \"Bluetooth not support\");\n } else {\n if (mAdapter.isEnabled()) {\n Log.d(TAG, \"...Bluetooth ON...\");\n } else {\n //Prompt user to turn on Bluetooth\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n ((Activity) mContext).startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "@Override\n public void checkBluetoothInteface() {\n if (!isConnected) {\n checkForBluetooth();\n }\n }", "public interface BluetoothListener {\n\t/**\n\t * Get a description of the game, to be displayed on the BluetoothFragment layout.\n\t * @return\n\t */\n\tString getHelpString();\n\t\n\t/**\n\t * @see #onConnectedAsServer(String)\n\t */\n\tvoid onConnectedAsClient(String deviceName);\n\t\n\t/**\n\t * The 2 devices have established a bluetooth connection.\n\t * The typical action at this point is to hide the bluetooth\n\t * fragment and show the game fragment. From now on the\n\t * communication between client and server is symmetrical:\n\t * both devices can equally send and receive messages.\n\t * \n\t * Sometimes it is useful to know which device requested the\n\t * connection (the client) and which side accepted that\n\t * connection (the server).\n\t * \n\t * @param deviceName the name of the remote device\n\t */\n\tvoid onConnectedAsServer(String deviceName);\n\t\n\t/**\n\t * Typically the Activity will hide the game fragment and show\n\t * the BluetoothFragment, to allow the user to re-connect.\n\t */\n\tvoid onConnectionLost();\n\t\n\tvoid onError(String message);\n\t\n\t/**\n\t * A data message has been received from the remote device.\n\t * This corresponds to the other device performing a write().\n\t * @see BluetoothService#write(byte[] data)\n\t * \n\t * @param data\n\t */\n\tvoid onMessageRead(byte[] data);\n\t\n\t/**\n\t * A status message sent by the bluetooth service to be displayed\n\t * by the activity using Toast.\n\t * @param string\n\t */\n\tvoid onMessageToast(String string);\n\t\n\t/**\n\t * Called when the state of the bluetooth service has changed.\n\t * @see class BluetoothService.BTState for possible values.\n\t * @param state\n\t */\n\tvoid onStateChange(BluetoothService.BTState state);\n\t\n\t/**\n\t * Pass the object that will handle bluetooth communication.\n\t * Null if bluetooth not available on this device.\n\t * The main method to use in communication is write(byte[] data)\n\t * \n\t * @see BluetoothService#write(byte[] data)\n\t * @param bluetoothService\n\t */\n\tvoid setBluetoothService(BluetoothService bluetoothService);\n\n\t/**\n\t * A status message sent by the bluetooth service to be displayed\n\t * somewhere.\n\t * @param message\n\t */\n\tvoid setStatusMessage(String message);\n}", "private void checkBTState() {\n if(bluetoothAdapter==null) {\n errorExit(\"Fatal Error\", \"Bluetooth not supported\");\n } else {\n if (!bluetoothAdapter.isEnabled()) {\n //Prompt user to turn on Bluetooth\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "private void checkBleSupportAndInitialize() {\n Log.d(TAG, \"checkBleSupportAndInitialize: \");\n // Use this check to determine whether BLE is supported on the device.\n if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\n Log.d(TAG,\"device_ble_not_supported \");\n Toast.makeText(this, R.string.device_ble_not_supported,Toast.LENGTH_SHORT).show();\n return;\n }\n // Initializes a Blue tooth adapter.\n final BluetoothManager bluetoothManager = (BluetoothManager) context.getSystemService(Context.BLUETOOTH_SERVICE);\n mBluetoothAdapter = bluetoothManager.getAdapter();\n\n if (mBluetoothAdapter == null) {\n // Device does not support Blue tooth\n Log.d(TAG, \"device_ble_not_supported \");\n Toast.makeText(this,R.string.device_ble_not_supported, Toast.LENGTH_SHORT).show();\n return;\n }\n\n //打开蓝牙\n if (!mBluetoothAdapter.isEnabled()) {\n Log.d(TAG, \"open bluetooth \");\n bluetoothUtils.openBluetooth();\n }\n }", "public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_bluetooth_handler);\n final Button back=(Button) findViewById(R.id.button_back);\n bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n checkBTState();\n\n try {\n serverSocket=bluetoothAdapter.listenUsingInsecureRfcommWithServiceRecord(label, MY_UUID);\n } catch (IOException e){}\n\n try{\n bluetoothSocket=serverSocket.accept();\n }catch (IOException e) {}\n\n try{\n outputStream=MainActivity1.bluetoothSocket.getOutputStream();\n }catch (IOException e){\n Log.d(MainActivity1.label,\"Output stream connection failed.\");\n }\n\n receiver=new BroadcastReceiver() {\n @Override\n public void onReceive(Context context, Intent intent)\n {\n String a=intent.getAction();\n\n if(BluetoothDevice.ACTION_FOUND.equals(a))\n {\n BluetoothDevice device=intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);\n\n bluetoothItems.add(device.getName());\n }\n }\n };\n IntentFilter filter=new IntentFilter(BluetoothDevice.ACTION_FOUND);\n registerReceiver(receiver, filter);\n\n //searching();\n\n ListView bluetoothList=(ListView) findViewById(R.id.listView_bluetoothItems);\n\n bluetoothList.setAdapter(new ArrayAdapter<String>(this,R.layout.abc_list_menu_item_layout));\n\n back.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n startActivity(new Intent(getApplicationContext(), ControllerHomeScreen.class));\n }\n });\n }", "void setBluetoothService(BluetoothService bluetoothService);", "private void connectDevice(Intent data, boolean secure) {\n String address = data.getExtras()\n .getString(EXTRA_DEVICE_ADDRESS);\n // Get the BluetoothDevice object\n BluetoothDevice device = bluetoothAdapter.getRemoteDevice(address);\n // Attempt to connect to the device\n btService.connect(device, secure);\n }", "private void checkBTState() {\n if(btAdapter==null) {\n errorExit(\"Fatal Error\", \"Bluetooth not support\");\n } else {\n if (btAdapter.isEnabled()) {\n Log.d(TAG, \"...Bluetooth ON...\");\n } else {\n //Prompt user to turn on Bluetooth\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "public void checkForBluetooth() {\n if (hasBluetoothSupport()) {\n ensureBluetoothEnabled();\n } else {\n showToast(\"Device does not support BlueTooth\");\n }\n }", "@Override public void onClick(View v) {\n startActivity(new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE));\n }", "public void discoverDevices(){\r\n \t// If we're already discovering, stop it\r\n if (mBtAdapter.isDiscovering()) {\r\n mBtAdapter.cancelDiscovery();\r\n }\r\n \r\n Toast.makeText(this, \"Listining for paired devices.\", Toast.LENGTH_LONG).show();\r\n \tmBtAdapter.startDiscovery(); \r\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n final BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n if (mBluetoothAdapter == null) {\n // Device does not support Bluetooth\n }\n\n if (!mBluetoothAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n }\n\n BluetoothDevice mmDevice = null;\n\n List<String> mArray = new ArrayList<String>();\n Set<BluetoothDevice> pairedDevices = mBluetoothAdapter.getBondedDevices();\n // If there are paired devices\n if (pairedDevices.size() > 0) {\n // Loop through paired devices\n for (BluetoothDevice device : pairedDevices) {\n // Add the name and address to an array adapter to show in a ListView\n if(device.getName().equals(deviceName))\n mmDevice = device;\n mArray.add(device.getName() + \"\\n\" + device.getAddress());\n }\n }\n\n //Creating the socket.\n BluetoothSocket mmSocket;\n BluetoothSocket tmp = null;\n\n UUID myUUID = UUID.fromString(mUUID);\n try {\n // MY_UUID is the app's UUID string, also used by the server code\n tmp = mmDevice.createRfcommSocketToServiceRecord(myUUID);\n } catch (IOException e) { }\n mmSocket = tmp;\n\n //socket created, try to connect\n\n try {\n mmSocket.connect();\n } catch (IOException e) {\n e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n }\n\n // Run the example\n JArduino arduino = new BlinkAndAnalog(mmSocket);\n arduino.runArduinoProcess();\n\n Log.i(TAG, \"onCreate\");\n setContentView(R.layout.main);\n }" ]
[ "0.77661043", "0.7468458", "0.7422976", "0.74047494", "0.73103094", "0.73025936", "0.7101166", "0.70917284", "0.70465237", "0.7027377", "0.7014398", "0.6969312", "0.68836665", "0.6877158", "0.6875312", "0.686895", "0.6857115", "0.6844093", "0.68382484", "0.68318456", "0.6819844", "0.68181396", "0.68100965", "0.67924833", "0.6778424", "0.6774218", "0.6761542", "0.6751689", "0.66857076", "0.6676483", "0.6675917", "0.6670937", "0.6658998", "0.66370577", "0.66268235", "0.6615745", "0.66076815", "0.65944993", "0.65905106", "0.6590019", "0.6589012", "0.65762055", "0.65686494", "0.6566933", "0.6565767", "0.65626234", "0.6543511", "0.6534714", "0.65338767", "0.6533039", "0.6522627", "0.6522137", "0.6513793", "0.6501692", "0.6484513", "0.6480587", "0.6469192", "0.64603597", "0.6456469", "0.64431787", "0.64389807", "0.64171016", "0.64155084", "0.64038956", "0.6400238", "0.63960725", "0.63796973", "0.63770616", "0.63561016", "0.6350559", "0.634846", "0.6342573", "0.6336198", "0.6335272", "0.63299966", "0.6305207", "0.6302434", "0.62912697", "0.62895715", "0.62878245", "0.62866735", "0.6279868", "0.6259957", "0.62568635", "0.6244512", "0.62432134", "0.6240249", "0.6236807", "0.6235682", "0.62292", "0.62125915", "0.62101835", "0.62088764", "0.620851", "0.62065035", "0.62037784", "0.61951435", "0.61951375", "0.61879635", "0.61827403" ]
0.654323
47
start Bluetooth Service when onResume
public void startService() { log_d( "startService()" ); int state = execStartService(); switch( state ) { case STATE_CONNECTED: showTitleConnected( getDeviceName() ); hideButtonConnect(); break; default: showTitleNotConnected(); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void onResume() {\n\n super.onResume();\n\n bindService(serviceIntent, connection, BIND_AUTO_CREATE);\n\n }", "public void onResume(){\r\n\t\t//necessary if bluetooth-enabling-dialog appears \r\n\t\taddPairedDevices();\r\n\t\tsuper.onResume();\r\n\t}", "@Override\n protected void onResume() {\n Log.d(TAG, \"MyTracks.onResume\");\n serviceConnection.bindIfRunning();\n super.onResume();\n }", "@Override\n public void onResume() {\n super.onResume();\n mAbleBLEService = AbleDeviceScanActivity.getmBluetoothLeService();\n setScanButton();\n }", "protected void onResume() {\n super.onResume();\n startServices();\n }", "@Override\n public void onResume(){\n Log.i(TAG, \"-- ON RESUME --\");\n super.onResume();\n // If BT is not on, request that it be enabled.false\n if (!mBluetoothAdapter.isEnabled()) {\n Intent enableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableIntent, REQUEST_ENABLE_BT);\n }\n }", "public void onStart(){ \r\n\t\t//ensure bluetooth is enabled \r\n\t\tensureBluetoothIsEnabled();\r\n\t\tsuper.onStart(); \t\r\n\t}", "@Override\n protected void onResume() {\n super.onResume();\n /**\n * 注册广播\n */\n registerReceiver(mGattUpdateReceiver, makeGattUpdateIntentFilter());\n if (mBluetoothLeService != null) {\n Log.e(\"a\", \"来了\");\n result = mBluetoothLeService.connect(mDeviceAddress);\n Log.e(\"a\", \"连接请求的结果=\" + result);\n\n }\n }", "@Override\n protected void onResume()\n {\n super.onResume();\n\n // Vuelvo a llamar a la tarea para que siga escuchando lo que llega por Bluetooth\n if(Bluetooth_Conectado == true && Bluetooth_Encendido == true)\n {\n Bluetooth_RX_aux = new AsyncTask_BT_RX(conexionBluetooth);\n Bluetooth_RX_aux.execute();\n }\n }", "public void onCreate() {\n\t\tSystem.out.println(\"This service is called!\");\n\t\tmyBluetoothAdapter= BluetoothAdapter.getDefaultAdapter();\n\t\tmyBluetoothAdapter.enable();\n\t\tSystemClock.sleep(5000);\n\t\tif (myBluetoothAdapter.isEnabled()){\n\t\t\tSystem.out.println(\"BT is enabled...\");\n\t\t\tdiscover = myBluetoothAdapter.startDiscovery();\n\t\t}\n\t\tSystem.out.println(myBluetoothAdapter.getScanMode());\n\t\t\n\t\tSystem.out.println(\"Discovering: \"+myBluetoothAdapter.isDiscovering());\n\t\t//registerReceiver(bReceiver, new IntentFilter(BluetoothDevice.ACTION_FOUND));\n\t\tIntentFilter filter1 = new IntentFilter(BluetoothDevice.ACTION_FOUND);\n\t\tIntentFilter filter2 = new IntentFilter(BluetoothAdapter.ACTION_DISCOVERY_FINISHED);\n\t\tthis.registerReceiver(bReceiver, filter1);\n\t\tthis.registerReceiver(bReceiver, filter2);\n\t\t//registerReceiver(bReceiver, new IntentFilter(BluetoothAdapter.ACTION_DISCOVERY_FINISHED));\n\t}", "@Override\n public void onServiceConnected(ComponentName componentName, IBinder service) {\n mNanoBLEService = ((NanoBLEService.LocalBinder) service).getService();\n\n //initialize bluetooth, if BLE is not available, then finish\n if (!mNanoBLEService.initialize()) {\n finish();\n }\n\n //Start scanning for devices that match DEVICE_NAME\n final BluetoothManager bluetoothManager =\n (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);\n mBluetoothAdapter = bluetoothManager.getAdapter();\n mBluetoothLeScanner = mBluetoothAdapter.getBluetoothLeScanner();\n if(mBluetoothLeScanner == null){\n finish();\n Toast.makeText(NewScanActivity.this, \"Please ensure Bluetooth is enabled and try again\", Toast.LENGTH_SHORT).show();\n }\n mHandler = new Handler();\n if (SettingsManager.getStringPref(mContext, SettingsManager.SharedPreferencesKeys.preferredDevice, null) != null) {\n preferredDevice = SettingsManager.getStringPref(mContext, SettingsManager.SharedPreferencesKeys.preferredDevice, null);\n scanPreferredLeDevice(true);\n } else {\n scanLeDevice(true);\n }\n }", "@Override\n protected void onResume() {\n super.onResume();\n registerReceiver(mReceiver, mIntentFilter);\n registerLocalService();\n }", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t\tsdPref.registerOnSharedPreferenceChangeListener(this);\r\n\t\tIntentFilter iFilter = new IntentFilter(BROADCAST_ACTION);\r\n\t\tregisterReceiver(br, iFilter);\r\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tmChatService.setHandler(mHandler);\n\t}", "public void startBluetooth(){\n mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n if (!mBluetoothAdapter.isEnabled()) {\n Intent btIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n //btIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(btIntent);\n }\n mBluetoothAdapter.startDiscovery();\n System.out.println(\"@ start\");\n IntentFilter filter = new IntentFilter(BluetoothDevice.ACTION_FOUND);\n getActivity().registerReceiver(mReceiver, filter);\n }", "@Override\n\tpublic void onResume() {\n\t\t\n\n\t\t// register sensor\n\t\tmSensorManager.registerListener(mSensorListener,\n\t\t\t\tmSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER),\n\t\t\t\tSensorManager.SENSOR_DELAY_FASTEST);\n\n\t\t// ONLY WHEN SCREEN TURNS ON\n if (ScreenReceiver.wasScreenOn) {\n // THIS IS WHEN ONRESUME() IS CALLED DUE TO A SCREEN STATE CHANGE\n \tLog.e(TAG, \"Screen ON\");\n \t\n \tif(ScreenOnOffEnable && screenOffFlag){\n \t\tflipSwitch();\n \t\tscreenOffFlag = false;\n \t\t\n \t\t//don't kill app unless it's actually connected when the screen comes back on\n \t\tif(myBT.BTconnStatus && killAppFlag)\n \t\t{\n \t\t\tLog.e(TAG, \"+++Killed APP+++\");\n \t\t\tthis.finish();\n \t\t}\n \t}\n \t\t\n } else {\n // THIS IS WHEN ONRESUME() IS CALLED WHEN THE SCREEN STATE HAS NOT CHANGED\n }\n\n \n \n\t\t\n\n\t\t// don't do anything bluetooth if debugging the user interface\n\t\t// if(BTconnect)\n\t\t// initBT();\n \n super.onResume();\n\t}", "@Override\n public void onResume() {\n super.onResume();\n androidcontrolinterfaceVariable = (androidcontrolinterface) getApplication();\n androidcontrolinterfaceVariable.setStandardIsRunning(false);\n androidcontrolinterfaceVariable.setMyoIsRunning(true);\n androidcontrolinterfaceVariable.setIsRunning(true);\n backgroundIntentService = new Intent(this, BackgroundIntentService.class);\n startService(backgroundIntentService);\n myoBackgroundService = new Intent(this, MyoBackgroundService.class);\n startService(myoBackgroundService);\n Log.d(\"Interface\", \"MyoControlActivity onResume\");\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY);\n\n textRcvDataThread();\n }", "@Override\n protected void onResume() {\n /**\n * Enable Bluetooth if it is not enabled. Create a new list of devices and attach\n * it to the list view so it will be shown; then start scanning for devices.\n */\n super.onResume();\n if(!mBluetoothAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n }\n\n mLeDeviceListAdapter = new LeDeviceListAdapter();\n mListView.setAdapter((mLeDeviceListAdapter));\n scanLeDevice(true);\n }", "public void registerCallback() {\n if (mLocalManager == null) {\n Log.e(TAG, \"registerCallback() Bluetooth is not supported on this device\");\n return;\n }\n mLocalManager.setForegroundActivity(mFragment.getContext());\n mLocalManager.getEventManager().registerCallback(this);\n mLocalManager.getProfileManager().addServiceListener(this);\n forceUpdate();\n }", "@Override\n\tprotected void onResume() {\n\t\tLog.d(\"qwe\", \"StatsActivity.onResume()\" + serviceMessenger);\n\t\tif (serviceMessenger == null) {\n\t\t\tisServiceBinded = bindService(new Intent(this,\n\t\t\t\t\tConnectionService.class), this, Context.BIND_AUTO_CREATE);\n\t\t}\n\t\tsendMessageToService(ConnectionService.GET_MESSENGER);\n\t\tsendMessageToService(ConnectionService.CONNECT, host, port, key,\n\t\t\t\tinterval);\n\t\tsuper.onResume();\n\t}", "@Override\n public void onResume()\n {\n super.onResume();\n mReceiver = new WiFiServerBroadCastReciever(mManager, mChannel, this);\n registerReceiver(mReceiver, mIntentFilter);\n\n searchDevices();\n\n }", "@Override\r\n public void onResume() {\r\n super.onResume();\r\n if (toggleButton1==true) {\r\n Intent intent = new Intent(MainActivity.this, MusicService.class);\r\n startService(intent);\r\n }else if(toggleButton==false){\r\n Intent intent = new Intent(MainActivity.this, MusicService.class);\r\n stopService(intent);\r\n }\r\n }", "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tStatService.onResume(context);\n\t}", "private void startService() {\n startService(new Intent(this, BackgroundMusicService.class));\n }", "@Override\n public void onResume() {\n super.onResume();\n Utility.setupForegroundDispatch(this);\n Utility.startConnectivityCheck(this);\n }", "@Override\r\n\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\r\n\t\t\tRestartAppService.MyBinder mBinder = (RestartAppService.MyBinder) service;\r\n\t\t\tmBinder.startRestartTask(App.this);\r\n\t\t}", "private void m6589F() {\n C1413m.f5712j = 1;\n this.f5402V = new Intent(this, RecordService.class);\n this.f5402V.putExtra(\"record_activity_type\", 101);\n this.f5403W = new C1291e(this, (C1296Ua) null);\n C0938a.m5002a(\"SR/SoundRecorder\", \"<initService> isAppForeground: \");\n try {\n if (Build.VERSION.SDK_INT >= 28) {\n startForegroundService(this.f5402V);\n } else {\n startService(this.f5402V);\n }\n } catch (Exception e) {\n C0938a.m5004b(\"SR/SoundRecorder\", \"initService\" + e);\n }\n bindService(this.f5402V, this.f5403W, 1);\n this.f5429m = true;\n m6600Q();\n m6599P();\n }", "@Override\n public IBinder onBind(Intent intent) {\n\n AppConstants.RebootHF_reader = false;\n if (mBluetoothLeService != null) {\n final boolean result = mBluetoothLeService.connect(mDeviceAddress);\n Log.d(TAG, \"Connect request result=\" + result);\n }\n\n\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }", "@Override \n protected void onResume() {\n\t super.onResume(); \n\t registerReceiver(mReceiver, mIntentFilter); \n }", "@Override\n public void onResume() {\n super.onResume();\n registerReceiver(manager, intentFilter);\n }", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t\tmNtApi.start();\r\n\t}", "@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1)\n @Override\n public int onStartCommand(Intent intent, int flags, int startId) {\n IntentFilter filter = new IntentFilter(Intent.ACTION_SCREEN_ON);\n filter.addAction(Intent.ACTION_SCREEN_OFF);\n filter.addAction(Intent.ACTION_BATTERY_CHANGED);\n filter.addAction(Intent.ACTION_AIRPLANE_MODE_CHANGED);\n filter.addAction(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION);\n filter.addAction(BluetoothAdapter.ACTION_STATE_CHANGED);\n filter.addAction(SettingsActivity.ACTION_WALLPAPER_CHANGED);\n lockReceiver = new LockReceiver();\n ((LockReceiver) lockReceiver).setDelegate(this);\n registerReceiver(lockReceiver, filter);\n\n // Register the boot receiver\n filter = new IntentFilter(Intent.ACTION_BOOT_COMPLETED);\n filter.addAction(Intent.ACTION_USER_PRESENT);\n filter.addAction(Intent.ACTION_USER_INITIALIZE); // Required API 17 :(\n bootReceiver = new BootReceiver();\n registerReceiver(bootReceiver, filter);\n\n // Register the time receiver\n filter = new IntentFilter(Intent.ACTION_TIME_TICK);\n filter.addAction(Intent.ACTION_TIME_CHANGED);\n filter.addAction(Intent.ACTION_DATE_CHANGED);\n timeReceiver = new TimeReceiver();\n ((TimeReceiver) timeReceiver).setDelegate(this);\n registerReceiver(timeReceiver, filter);\n\n MyPhoneStateListener phoneStateListener = new MyPhoneStateListener();\n TelephonyManager telephonyManager = (TelephonyManager) getSystemService(TELEPHONY_SERVICE);\n// telephonyManager.listen(phoneStateListener, PhoneStateListener.LISTEN_CALL_STATE);\n telephonyManager.listen(phoneStateListener, PhoneStateListener.LISTEN_SIGNAL_STRENGTHS);\n\n startForeground();\n\n // TODO: Should I start the activity here?\n startLockerActivity();\n\n return START_STICKY;\n }", "@Override\n protected void onResume() {\n super.onResume();\n MobclickAgent.onResume(this);\n // JPushInterface.onResume(this);\n isForeground = true;\n\n }", "public void onResume();", "@Override\r\n protected void onResume() {\n \tsuper.onResume();\r\n \tregisterReceiver(mReceiver, mIntentFilter);\r\n }", "@Override\n protected void onResume() {\n super.onResume();\n\n mNfcAdapter.enableForegroundDispatch(this, mPendingIntent, mFilters, null);\n checkPlayServices();\n // Check to see that the Activity started due to an Android Beam\n Log.i(TAG, \"resume\" + getIntent().getAction());\n if (NfcAdapter.ACTION_NDEF_DISCOVERED.equals(getIntent().getAction())) {\n\n processIntent(getIntent());\n }\n }", "private void connect() {\n // after 10 seconds its connected\n new Handler().postDelayed(\n new Runnable() {\n public void run() {\n Log.d(TAG, \"Bluetooth Low Energy device is connected!!\");\n // Toast.makeText(getApplicationContext(),\"Connected!\",Toast.LENGTH_SHORT).show();\n stateService = Constants.STATE_SERVICE.CONNECTED;\n startForeground(Constants.NOTIFICATION_ID_FOREGROUND_SERVICE, prepareNotification());\n }\n }, 10000);\n\n }", "@Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n startService(getIntent().setClass(this, MetronomeService.class));\n finish();\n }", "@Override\n protected void onResume() {\n super.onResume();\n active = true;\n }", "@Override\n protected void onResume() {\n super.onResume();\n active = true;\n }", "public void onResume() {\n }", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t\tupdateBt(BT_VIRUS);\r\n\t}", "@Override\n protected void onResume() {\n super.onResume();\n SharedPreferences sharedPreferences =\n getSharedPreferences(getString(R.string.keys_shared_prefs),\n Context.MODE_PRIVATE);\n // Check to see if the service should already be running\n if (sharedPreferences.getBoolean(getString(R.string.keys_sp_on), false)) {\n //stop the service from the background\n PullService.stopServiceAlarm(this);\n //restart but in the foreground\n PullService.startServiceAlarm(this, true);\n PullService.setUsername(mUsername);\n }\n\n //Look to see if the intent has a result string for us.\n //If true, then this Activity was started from the notification bar\n if (getIntent().hasExtra(getString(R.string.keys_chat_notification))) {\n //load new chat activity with this person\n onOpenChat(Integer.valueOf(getIntent().getStringExtra(getString(R.string.keys_chat_notification))));\n //loadFragment(new ChatManagerFragment());\n mIncomingMessages.clear();\n updateNotificationsUI();\n } else if (getIntent().hasExtra(getString(R.string.keys_connection_notification))) {\n loadFragment(new ConnectionsFragment());\n mIncomingConnectionRequests.clear();\n updateNotificationsUI();\n }\n\n if (mMessagesUpdateReceiver == null) {\n mMessagesUpdateReceiver = new MessageUpdateReceiver();\n }\n if (mConnectionsUpdateReceiver == null) {\n mConnectionsUpdateReceiver = new ConnectionUpdateReceiver();\n }\n IntentFilter iFilter = new IntentFilter(PullService.MESSAGE_UPDATE);\n registerReceiver(mMessagesUpdateReceiver, iFilter);\n\n IntentFilter iFilter2 = new IntentFilter(PullService.CONNECTION_UPDATE);\n registerReceiver(mConnectionsUpdateReceiver, iFilter2);\n\n updateNotificationsUI();\n }", "void onResume();", "@Override\n protected void onResume() {\n super.onResume();\n assert nfcAdapter != null;\n nfcAdapter.enableForegroundDispatch(this, pendingIntent, null, null);\n }", "public void onServiceConnected(ComponentName className, IBinder service) {\n\t\t\tmBoundService = ((LocalService.LocalBinder) service).getService();\r\n\r\n\t\t\t// Wenn während des Setups der Service noch nicht fertig geladen\r\n\t\t\t// ist, wird solange Warte-Overlay angezeigt\r\n\t\t\t// Wenn der Service fertig ist wird das Overlay ausgeblendet\r\n\r\n\t\t\t// if (OverlayActivity.isCreated) {\r\n\t\t\t// OverlayActivity.getInstance().dismiss();\r\n\t\t\t// }\r\n\t\t\tSetupSearchDevicesFragment fragment = (SetupSearchDevicesFragment) getFragmentById(\"SetupSearchDevicesFragment\");\r\n\t\t\tif (fragment.isVisible()) {\r\n\t\t\t\tfragment.initViewBluetooth();\r\n\t\t\t}\r\n\r\n\t\t\t// Tell the user about this for our demo.\r\n\t\t\tLog.i(TAG, \"Service connected with app...\");\r\n\t\t\t// Toast.makeText(MainActivity.this, \"Service connected.\", Toast.LENGTH_SHORT).show();\r\n\r\n\t\t\t// Verbinde mit gespeichertem Device (falls noch keine Verbindung\r\n\t\t\t// besteht)\r\n\t\t\tif (mSharedPrefs.getConnectivityType() == 1) { // BEI BT\r\n\r\n\t\t\t\tfinal ConnectionInterface connection = mBoundService.getConnection();\r\n\t\t\t\tif (connection != null) {\r\n\t\t\t\t\tif (!connection.isConnected()) {\r\n\r\n\t\t\t\t\t\t// OnConnectedListener\r\n\t\t\t\t\t\tconnection.setOnConnectedListener(new OnConnectedListener() {\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onConnectedListener(String deviceName) {\r\n\r\n\t\t\t\t\t\t\t\tconnection.registerDisconnectHandler();\r\n\r\n\t\t\t\t\t\t\t\tif (mSharedPrefs.getDeviceMode() == 1) { // ELTERN\r\n\t\t\t\t\t\t\t\t\t// HELLO Nachricht senden\r\n\t\t\t\t\t\t\t\t\tString msg = mContext.getString(R.string.BABYFON_MSG_CONNECTION_HELLO) + \";\"\r\n\t\t\t\t\t\t\t\t\t\t\t+ mSharedPrefs.getHostAddress() + \";\" + mSharedPrefs.getPassword();\r\n\t\t\t\t\t\t\t\t\tconnection.sendMessage(msg);\r\n\r\n\t\t\t\t\t\t\t\t\tmSharedPrefs.setRemoteOnlineState(true);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tif (mSharedPrefs.getDeviceMode() == 1) { // ELTERN\r\n\t\t\t\t\t\t\tif (mSharedPrefs.getRemoteAddress() != null) { // Gespeichertes Gerät\r\n\t\t\t\t\t\t\t\t// Verbinde\r\n\t\t\t\t\t\t\t\tmBoundService.connectTo(mSharedPrefs.getRemoteAddress());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else if (mSharedPrefs.getDeviceMode() == 0) { // BABY\r\n\t\t\t\t\t\t\t// Warte auf Verbindung\r\n\t\t\t\t\t\t\tmBoundService.startServer();\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\r\n\t\t}", "@Override\n public void onResume() {\n super.onResume();\n IntentFilter intentFilter = new IntentFilter(RESPONSE_SERVICE_ACTION);\n receiver = new ResponseReceiver();\n if (receiver != null) {//register receiver\n LocalBroadcastManager.getInstance(this).registerReceiver(receiver, intentFilter);\n }\n }", "@Override\n protected void onStart() {\n super.onStart();\n IntentFilter filter = new IntentFilter();\n filter.addAction(BluetoothAdapter.ACTION_STATE_CHANGED);\n filter.addAction(BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED);\n filter.addAction(BluetoothAdapter.ACTION_SCAN_MODE_CHANGED);\n registerReceiver(mStateReceiver, filter);\n }", "@SuppressLint(\"NewApi\")\n @Override\n protected void onResume() {\n super.onResume();\n if (nfcAdapter != null) {\n nfcAdapter.enableForegroundDispatch(this, mPendingIntent, null,\n null);\n }\n }", "@Override\n public void onStart(Intent intent, int startid) {\n }", "public void startService() {\r\n Log.d(LOG, \"in startService\");\r\n startService(new Intent(getBaseContext(), EventListenerService.class));\r\n startService(new Intent(getBaseContext(), ActionService.class));\r\n getListenerService();\r\n\r\n }", "private void initializeBLEService(IBinder service) {\n mBluetoothLeService = ((BluetoothLeService.LocalBinder) service).getService();\n if (!mBluetoothLeService.initialize()) {\n Log.e(TAG, \"Unable to initialize Bluetooth\");\n }\n\n mActivity.registerReceiver(mGattUpdateReceiver, makeGattUpdateIntentFilter());\n // Automatically connects to the device upon successful start-up initialization.\n// mActivity.runOnUiThread(new Runnable() {\n// @Override\n// public void run() {\n// mBluetoothLeService.connect(mDeviceAddress);\n//\n// }\n// });\n mBluetoothLeService.connect(mDeviceAddress);\n }", "@Override\r\n public void onStart(Intent intent, int startId) {\n }", "@SuppressLint(\"NewApi\")\n @Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n bleService = ((BleService.LocalBinder) service).getService();\n if (!bleService.init()) {\n finish();\n }\n bleService.connect(Home_Fragment.Device_Address);\n mpd = ProgressDialog.show(Dialog_Activity.this, null, \"正在连接设备...\");\n Log.i(\"DeviceConnect\", \"onServiceConnected: \");\n }", "@Override\n public void onStart(Intent intent, int nStartId)\n {\n if (Config.LOGD)\n {\n Log.d(TAG, \"Wiper Service Started \");\n }\n\n startForeground(1111, new Notification());\n\n mContext = this;\n // Call function to start background thread\n if ( bWiperConfigReadError != true)\n {\n startWiperService();\n }\n else\n {\n Log.e(TAG,\"Cannot start Wiper, wiperconfig read error\");\n }\n }", "@Override\n\tpublic void onStart(Intent intent, int startId) {\n\t\tnew RunnableService(new runCallBack(){\n\n\t\t\t@Override\n\t\t\tpublic void start() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tinitResource();\n\t\t\t\t//获取通讯录信息\n\t\t\t\tinitContactsData();\n\t\t\t\t//同步通讯录\n\t\t\t\tupLoadPhones();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void end() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}, true);\n\t\n\t\t\n\t\tsuper.onStart(intent, startId);\n\t}", "private void startServices(){\n\t\t\n\t\tIntent intent = new Intent(mContext, BatterySaverService.class);\n\t\tmContext.startService(intent);\n\t}", "private void initService() {\n \tlog_d( \"initService()\" );\n\t\t// no action if debug\n if ( BT_DEBUG_SERVICE ) return;\n // Initialize the BluetoothChatService to perform bluetooth connections\n if ( mBluetoothService == null ) {\n log_d( \"new BluetoothService\" );\n \t\tmBluetoothService = new BluetoothService( mContext );\n\t }\n\t\tif ( mBluetoothService != null ) {\n log_d( \"set Handler\" );\n \t\tmBluetoothService.setHandler( sendHandler );\n\t }\t\t\n }", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n RemoteControlService.LocalBinder binder = (RemoteControlService.LocalBinder) service;\n binder.getService( ).startIfNotStarted( );\n }", "private void serviceStartForeground() {\n\n //Main intent\n Intent intent = new Intent(getApplicationContext(), Main2Activity.class)\n .setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n intent.setAction(Intent.ACTION_RUN);\n intent.putExtra(RadioPlayerService.NOTIFY_RADIO_STATION, radioStation);\n\n //Pending intent\n PendingIntent pi = PendingIntent.getActivity(getApplicationContext(), 0,\n intent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n // Intents for action keys\n Intent playIntent = new Intent(this, RadioPlayerService.class);\n playIntent.setAction(RadioPlayerFragment.ACTION_START);\n PendingIntent pplayIntent = PendingIntent.getService(this, 0,\n playIntent, 0);\n\n Intent pauseIntent = new Intent(this, RadioPlayerService.class);\n pauseIntent.setAction(RadioPlayerFragment.ACTION_PAUSE);\n PendingIntent ppauseIntent = PendingIntent.getService(this, 0,\n pauseIntent, 0);\n\n Bitmap large_icon = BitmapFactory.decodeResource(this.getResources(),\n R.drawable.large_icon_bw);\n\n Resources res = this.getResources();\n int height = (int) res.getDimension(android.R.dimen.notification_large_icon_height);\n int width = (int) res.getDimension(android.R.dimen.notification_large_icon_width);\n large_icon = Bitmap.createScaledBitmap(large_icon, width, height, false);\n\n Notification notification = new Notification.Builder(this)\n .setSmallIcon(R.drawable.ic_stat_notification)\n .setLargeIcon(large_icon)\n .setContentTitle(\"BIR Player\")\n .setContentText(\"Playing \" + radioStation.getRadioStationName())\n .setContentIntent(pi)\n .addAction(android.R.drawable.ic_media_play, \"Play\", pplayIntent)\n .addAction(android.R.drawable.ic_media_pause, \"Pause\", ppauseIntent)\n .build();\n\n startForeground(NOTIFICATION_ID, notification);\n isForeground = true;\n }", "void setBluetoothService(BluetoothService bluetoothService);", "@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\t\tIntent intent = new Intent(getActivity(), DownloadService.class);\n\t\tgetActivity().bindService(intent, mServiceConnection,\n\t\t\t\tService.BIND_AUTO_CREATE);\n\t}", "@Override\n\tprotected void onResume() {\n\t\tisbackground=0;\n\t\tsuper.onResume();\n\t\t\n\t}", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n HomeActivityWatcherService.MyBinder binder = (HomeActivityWatcherService.MyBinder) service;\n mWatcherService = binder.getService();\n mBound = true;\n }", "@Override\n protected void onResume() {\n super.onResume();\n if(ringer != null){\n ringer.start();\n }\n }", "@Override\n protected void onResume() {\n super.onResume();\n Log.d(TAG, \"onResume begin\");\n mITel = ITelephony.Stub.asInterface(ServiceManager.getService(Context.TELEPHONY_SERVICE));\n if (!mHasGotPref)\n getPrefStatus();\n mHasGotPref = false;\n// mAddPosition = -1;\n// mPhotoLoader.clear();\n// mPhotoLoader.resume();\n startQuery();\n Log.d(TAG, \"onResume end\");\n }", "protected void onResume() {\n super.onResume();\n sensorManager.registerListener(this, accelerometer, SensorManager.SENSOR_DELAY_NORMAL);\n start = false;\n }", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tsubDomain = PreferencesUtils.getString(this, \"subDomain\",\n\t\t\t\tConfig.SUBDOMAIN);\n\t\tsendDataBle = new SendDataBle(subDomain, physicalDeviceId);\n\t}", "public void onResume() {\n super.onResume();\n LogAgentHelper.onActive();\n }", "@Override\n public void onResume() {\n }", "@Override\r\n\tprotected void onHandleIntent(Intent intent) {\n\t\tfinal BluetoothManager bluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);\r\n\t\tmBluetoothAdapter = bluetoothManager.getAdapter();\r\n\r\n\t\t// Checks if Bluetooth is supported on the device.\r\n\t\tif (mBluetoothAdapter == null) {\r\n\t\t\tLog.i(TAG, \"Bluetooth is not supported\");\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\tLog.i(TAG, \"mBluetoothAdapter = \" + mBluetoothAdapter);\r\n\t\t}\r\n\r\n\t\t//启用蓝牙\r\n\t\t//mBluetoothAdapter.enable();\r\n\t\t//Log.i(TAG, \"mBluetoothAdapter.enable\");\r\n\t\t\r\n\t\tmBLE = new BluetoothLeClass(this);\r\n\t\t\r\n\t\tif (!mBLE.initialize()) {\r\n\t\t\tLog.e(TAG, \"Unable to initialize Bluetooth\");\r\n\t\t}\r\n\t\tLog.i(TAG, \"mBLE = e\" + mBLE);\r\n\r\n\t\t// 发现BLE终端的Service时回调\r\n\t\tmBLE.setOnServiceDiscoverListener(mOnServiceDiscover);\r\n\r\n\t\t// 收到BLE终端数据交互的事件\r\n\t\tmBLE.setOnDataAvailableListener(mOnDataAvailable);\r\n\t\t\r\n\t\t//开始扫描\r\n\t\tmBLE.scanLeDevice(true);\r\n\t\t\r\n\t\t/*\r\n\t\tMRBluetoothManage.Init(this, new MRBluetoothEvent() {\r\n\t\t\t@Override\r\n\t\t\tpublic void ResultStatus(int result) {\r\n\t\t\t\tswitch (result) {\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_NOT_OPEN:\r\n\t\t\t\t\t//Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\r\n\t\t\t\t\t//startActivityForResult(enableBtIntent, 100);\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_NOT_OPEN\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_INIT_OK:\r\n\t\t\t\t\tMRBluetoothManage.scanAndConnect();\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_INIT_OK\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_SCAN_START:\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_SCAN_START\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_SCAN_END:\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_SCAN_END\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_CONNECT_START:\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_CONNECT_START\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_CONNECT_OK:\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_CONNECT_OK\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_CONNECT_CLOSE:\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_CONNECT_CLOSE\");\r\n\t\t\t\t\tMRBluetoothManage.stop();\r\n\t\t\t\t\tMRBluetoothManage.scanAndConnect();\r\n\t\t\t\t\t//MRBluetoothManage.Init(BluetoothService.this, this);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void ResultDevice(ArrayList<BluetoothDevice> deviceList) {\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void ResultData(byte[] data) {\r\n\t\t\t\tLog.i(TAG, data.toString());\r\n\t\t\t\tbyte[] wenDuByte = new byte[2];\r\n\t\t\t\tbyte[] shiDuByte = new byte[2];\r\n\t\t\t\tbyte[] shuiFenByte = new byte[2];\r\n\t\t\t\tbyte[] ziWaiXianByte = new byte[2];\r\n\t\t\t\tSystem.arraycopy(data, 4, wenDuByte, 0, 2);\r\n\t\t\t\tSystem.arraycopy(data, 6, shiDuByte, 0, 2);\r\n\t\t\t\tSystem.arraycopy(data, 8, shuiFenByte, 0, 2);\r\n\t\t\t\tSystem.arraycopy(data, 10, ziWaiXianByte, 0, 2);\r\n\t\t\t\tTestModel model = new TestModel();\r\n\t\t\t\tmodel.wenDu = BitConverter.toShort(wenDuByte);\r\n\t\t\t\tmodel.shiDu = BitConverter.toShort(shiDuByte);\r\n\t\t\t\tmodel.shuiFen = BitConverter.toShort(shuiFenByte);\r\n\t\t\t\tmodel.ziWaiXian = BitConverter.toShort(ziWaiXianByte);\r\n\t\t\t\t//Log.d(TAG, model.toString());\r\n\t\t\t\tsendData(model);\r\n\t\t\t}\r\n\t\t});\r\n\t\t*/\r\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tSalinlahiFour.getBgm().start();\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n//\t\tStatService.onPause(mContext);\n\t}", "@Override\n protected void onResume() {\n super.onResume();\n Log.i(\"LOG:\", \"ESTOY EN RESUME\");\n activarSensores();\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n\n Log.d(\"We are in the receiver.\", \"YAY!\");\n\n boolean switchToVibrate = intent.getExtras().getBoolean(\"switchToVibrate\");\n\n Intent service_intent = new Intent(context, ProfileChangeService.class);\n service_intent.putExtra(\"switchToVibrate\", switchToVibrate);\n context.startService(service_intent);\n }", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\tIntent i = new Intent(this, M_Service.class);\n\t\tbindService(i, mServiceConn, Context.BIND_AUTO_CREATE);\n\t}", "@Override\n public void onCheckedChanged(CompoundButton compoundButton, boolean b) {\n if (b) {\n // Toast.makeText(getContext(), \"on\", Toast.LENGTH_LONG).show();\n\n context.startService(in);\n\n } else {\n //Toast.makeText(getContext(), \"of\", Toast.LENGTH_LONG).show();\n //in = new Intent(getContext(), HorizantelShake.class);\n context.stopService(in);\n }\n prefs = PreferenceManager.getDefaultSharedPreferences(getContext());\n SharedPreferences.Editor prefEditor = prefs.edit();\n prefEditor.putBoolean(\"service_status\", b);\n prefEditor.commit();\n }", "@Override\n\tpublic void onReceive(final Context context, final Intent intent) {\n\t\t isService= AppData.getBool(AppData.service,context);\n\t\tLog.e(TAG,\"\"+isService);\n\t\tthis.context=context;\n\t\tLog.e(TAG, \"start sevicek\"+isService+\" \"+intent.getAction());\n\t\t//isIncomming=true;\n\t\tif(!isService)\n\t\t\treturn;\n\n\t\t String blockingMode=\"\";\n\t\tTelephonyManager telephony = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);\n\t\ttelephony.listen(new PhoneStateListener(){\n\t\t\t@Override\n\t\t\tpublic void onCallStateChanged(int state, String incomingNumber) {\n\t\t\t\tsuper.onCallStateChanged(state, incomingNumber);\n\t\t\t\tSystem.out.println(\"incomingNumber1 : \"+incomingNumber);\n\n//\t\t\t\tif(!Validation.isServiceRunning(context,RecordingService.class))\n//\t\t\t\t{\n//\t\t\t\t\tLog.e(TAG, \"start sevicek\");\n//\t\t\t\t\tIntent in = new Intent(context, RecordingService.class);\n//\t\t\t\t\tcontext.startService(in);\n//\t\t\t\t}\n\t\t\t\tif(incomingNumber!=null&&incomingNumber.length()>0)\n\t\t\t\tPhoneMunber=incomingNumber;\n\t\t\t\tLog.e(\"incomingNumber1\",state+intent.getAction()+ GetCurrentDateTime()+\" \"+incomingNumber);\n\n\t\t\t\tif(lastState == state)\n\t\t\t\t\treturn;\n\n\t\t\t\tswitch (state) {\n\t\t\t\t\tcase TelephonyManager.CALL_STATE_RINGING:\n\t\t\t\t\t\tisIncomming = true;\n\t\t\t\t\t\tin = new Intent(context, RecordingService.class);\n\t\t\t\t\t\tif(!Validation.isServiceRunning(context,RecordingService.class))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tLog.e(TAG, \"start sevicek\");\n\t\t\t\t\t\t\tcontext.stopService(in);\n\t\t\t\t\t\t\tcontext.startService(in);\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\tLog.e(TAG, \"start sevice after stop\");\n\t\t\t\t\t\t\tcontext.stopService(in);\n\t\t\t\t\t\t\tcontext.startService(in);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase TelephonyManager.CALL_STATE_OFFHOOK:\n\t\t\t\t\t\t//Transition of ringing->offhook are pickups of incoming calls. Nothing done on them\n\t\t\t\t\t\tif(lastState != TelephonyManager.CALL_STATE_RINGING){\n\t\t\t\t\t\t\tisIncomming = false;\n\t\t\t\t\t\t\tin = new Intent(context, RecordingService.class);\n\t\t\t\t\t\t\tif(!Validation.isServiceRunning(context,RecordingService.class))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tLog.e(TAG, \"start sevicek\");\n\t\t\t\t\t\t\t\tcontext.stopService(in);\n\t\t\t\t\t\t\t\tcontext.startService(in);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tLog.e(TAG, \"start sevice after stop\");\n\t\t\t\t\t\t\t\tcontext.stopService(in);\n\t\t\t\t\t\t\t\tcontext.startService(in);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase TelephonyManager.CALL_STATE_IDLE:\n\t\t\t\t\t\t//Went to idle- this is the end of a call. What type depends on previous state(s)\n\t\t\t\t\t\tif(lastState == TelephonyManager.CALL_STATE_RINGING){\n\t\t\t\t\t\t\t//Ring but no pickup- a miss\n\t\t\t\t\t\t\tcontext.stopService(in);\n\n\t\t\t\t\t\t\tLog.e(\"onMissedCall\",\"call\");\n\t\t\t\t\t\t\t//onMissedCall(context, savedNumber, callStartTime);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(isIncomming){\n\t\t\t\t\t\t\tLog.e(\"onMissedCall\",\"call\");\n\t\t\t\t\t\t\tEndTime=\tGetCurrentDateTime();\n\t\t\t\t\t\t\tLog.e(TAG, GetCurrentDateTime()+\" \"+lastState+\" \"+\"IDLE\"+isIncomming);\n\n\t\t\t\t\t\t\tCallType=\"Incomming\";\n\n\t\t\t\t\t\t\tSetDutyTime();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tEndTime=\tGetCurrentDateTime();\n\t\t\t\t\t\t\tCallType=\"Outgoing\";\n\t\t\t\t\t\t\tLog.e(TAG, GetCurrentDateTime()+\" \"+lastState+\" \"+\"IDLE\"+isIncomming);\n\n\t\t\t\t\t\t\tSetDutyTime();\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tlastState = state;\n\n\n\t\t\t}\n\t\t},PhoneStateListener.LISTEN_CALL_STATE);\n\n\t\t {\n\t\t\t Bundle b = intent.getExtras();\n\n\t\t\t String outGoingNumber = b.getString(Intent.EXTRA_PHONE_NUMBER);\n\t\t\t outGoingNumber=getContactDisplayNameByNumber(outGoingNumber, context);\n\t\t\t Log.e(\"outGoingNumber33\",\"\"+outGoingNumber);\n\t\t\t if(outGoingNumber!=null&&outGoingNumber.length()>0)\n\t\t\t\t PhoneMunber=outGoingNumber;\n\t\t\t //blockCall(context, b);\n\n\t\t }\n\n\n }", "@Override\n protected void onStart() {\n super.onStart();\n Intent intent = new Intent(this, PlayerService.class);\n bindService(intent, serviceConnection, Context.BIND_AUTO_CREATE);\n\n }", "@Override\n protected void onResume() {\n super.onResume();\n IntentFilter filter = new IntentFilter();\n filter.addAction(RSSService.REFRESH);\n registerReceiver(receiver, filter);\n }", "@Override\n\tpublic void onResume() \n\t{\n\t\tsuper.onResume();\n\t\tgyroscope.onResume();\n\t}", "@Override\n protected void onResume() {\n super.onResume();\n IntentFilter filter = new IntentFilter();\n filter.addAction(Intent.ACTION_SIM_STATE_CHANGED);\n\n if (mSimStateChanged == null) {\n mSimStateChanged = new SimStateChanged();\n } \n registerReceiver(mSimStateChanged,filter);\n }", "protected void startService() {\n\t\t//if (!isServiceRunning(Constants.SERVICE_CLASS_NAME))\n\t\tthis.startService(new Intent(this, LottoService.class));\n\t}", "@Override\n\tpublic void onStart(Intent intent, int startId) {\n\t\n\t\tsuper.onStart(intent, startId);\n\t}", "@Override\r\n protected void onResume() {\n super.onResume();\r\n mAdapter.enableForegroundDispatch(this, mPendingIntent, mFilters, mTechLists);\r\n }", "@Override\n protected void onResume() {\n super.onResume();\n nfcAdapter.enableForegroundDispatch(this,\n nfcPendingIntent,\n intentFiltersArray,\n null);\n }", "@Override\r\n public void onCreate() {\n intent = new Intent(BROADCAST_ACTION);\r\n startBTService();\r\n// try{\r\n// mConnectedThread.write(\"2\".getBytes());\r\n// }catch(Exception e){\r\n//\r\n// }\r\n }", "@Override\n public void onResume() {\n super.onResume();\n if (broad == null) {\n broad = new MyBroadcastReceiver();\n }\n\n IntentFilter intentFilter = new IntentFilter(Constant.REFRESH_FLAG);\n if (!StringUtil.isEmpty(mContext)) {\n mContext.registerReceiver(broad, intentFilter);\n }\n }", "public void InitListener()\n {\n Intent listener = new Intent(this, SmsListener.class);\n listener.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startService(listener);\n }", "@Override\n protected void onResume() {\n // TODO Auto-generated method stub\n super.onResume();\n startScan();\n }", "@Override\r\n public void onStart() {\n super.onStart();\r\n Carteasy cs = new Carteasy();\r\n Map<String, String> data = cs.ViewData(String.valueOf(1), getApplicationContext());\r\n for (Map.Entry<String, String> entry : data.entrySet()) {\r\n //get the Id\r\n Log.d(\"Key: \",entry.getKey());\r\n Log.d(\"Value: \",entry.getValue());\r\n }\r\n if (!BTAdapter.isEnabled()) {\r\n // IT NEEDS BLUETOOTH PERMISSION\r\n // Intent to enable bluetooth, it will show the enable bluetooth\r\n // dialog\r\n Intent enableIntent = new Intent(\r\n BluetoothAdapter.ACTION_REQUEST_ENABLE);\r\n // this is to get a result if bluetooth was enabled or not\r\n startActivityForResult(enableIntent, REQUEST_ENABLE_BT);\r\n // It will call onActivityResult method to determine if Bluetooth\r\n // was enabled or not\r\n } else {\r\n // Bluetooth is enabled\r\n }\r\n }", "@Override\n protected void onStart() {\n super.onStart();\n\n if (mBangingTunesItent == null) {\n mBangingTunesItent = new Intent(this, BangingTunes.class);\n final boolean bindIndicator = bindService(mBangingTunesItent, mServiceConnection, Context.BIND_AUTO_CREATE);\n final ComponentName componentName = startService(mBangingTunesItent);\n }\n }", "@Override\n protected void onResume() {\n super.onResume();\n writeLine(\"Connecting...\");\n uart.registerCallback(this);\n uart.connectFirstAvailable();\n }", "@Override\r\n\tpublic void onResume() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onResume() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onResume() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onResume() {\n\t\t\r\n\t}", "@Override\n protected void onResume() {\n super.onResume();\n mIccReader = new IccManager();\n }", "@Override\r\n public int onStartCommand(Intent intent, int flags, int startId) {\n Log.i(\"LZH\",\"start Service\");\r\n return Service.START_STICKY;\r\n }", "@Override\n public void onResume() {\n super.onResume();\n\t\t\n\t\tMessage msg = new Message();\n\t\tmsg.what = WIFI_START;\n\t\tmwifiHandler.sendMessage(msg); \n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tlogMessage(\"onCreate\");\n\t\tsetContentView(R.layout.main);\n\n\t\tCheckBox enableCheckBox = (CheckBox) findViewById(R.id.ServiceEnableCB);\n\t\t\n\t\t// Check Service Status\n\t\tboolean perfEnabled = AutoBTUtil.readPreference(this);\n\t\tif (perfEnabled) {\n\t\t\tenableCheckBox.setChecked(true);\n\t\t\tstartMainService();\n\t\t} else {\n\t\t\tenableCheckBox.setChecked(false);\n\t\t\tstopMainService();\n\t\t}\n\t\tenableCheckBox\n\t\t\t\t.setOnCheckedChangeListener(new ServiceEnableCheckBoxChangeListener());\n\t}" ]
[ "0.7533819", "0.7419701", "0.73492867", "0.7237773", "0.71651167", "0.7134133", "0.7127907", "0.69184715", "0.68828577", "0.68531245", "0.67647886", "0.6727133", "0.6695579", "0.667928", "0.66492504", "0.66249585", "0.66191524", "0.6615979", "0.65824664", "0.655051", "0.65038973", "0.6451512", "0.6450564", "0.6407945", "0.63923407", "0.63833237", "0.6363546", "0.6317934", "0.63076323", "0.63020754", "0.6299463", "0.6291758", "0.6291687", "0.6278248", "0.6268881", "0.62658817", "0.6257155", "0.62426674", "0.6232325", "0.6232325", "0.621047", "0.62069756", "0.62051386", "0.6205092", "0.6175371", "0.6175234", "0.61735165", "0.61721456", "0.6165649", "0.615934", "0.6156628", "0.614814", "0.61405414", "0.6138524", "0.6137386", "0.6124414", "0.6114594", "0.6113995", "0.6096942", "0.6093393", "0.6091594", "0.6085038", "0.6084501", "0.60763973", "0.6064904", "0.60630953", "0.60572225", "0.6055982", "0.605493", "0.60489637", "0.6046821", "0.60432106", "0.60284036", "0.602812", "0.60097164", "0.6006611", "0.6003465", "0.60026217", "0.59903985", "0.59843594", "0.59839445", "0.59782577", "0.59735125", "0.59663785", "0.5955217", "0.5949763", "0.5949483", "0.59423304", "0.59398746", "0.5927595", "0.5919879", "0.59166366", "0.5898691", "0.5897198", "0.5897198", "0.5897198", "0.5897198", "0.5895631", "0.58928776", "0.58905965", "0.5889266" ]
0.0
-1
stop Bluetooth Service when onDestroy
public void stopService() { log_d( "stopService()" ); // no action if debug if ( BT_DEBUG_SERVICE ) return; // Stop the Bluetooth chat services if ( mBluetoothService != null ) { log_d( "BluetoothService stop" ); mBluetoothService.stop(); } showButtonConnect(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void onDestroy() {\n super.onDestroy();\n\n unbindService(conn);\n unregisterReceiver(mbtBroadcastReceiver);\n }", "@Override\n public void onDestroy() {\n stopService();\n }", "@Override\n public void onDestroy() {\n super.onDestroy();\n mAbleBLEService = null;\n }", "@Override\n public void onDestroy() {\n unregisterReceiver(mBLEUpdateReceiver);\n unregisterReceiver(mMqttUpdateReceiver);\n unbindService(mBleServiceConnection);\n unbindService(mMqttServiceConnection);\n\n Log.d(TAG,\"Manager Service Destroyed\");\n\n super.onDestroy();\n }", "@Override\n protected void onDestroy() {\n super.onDestroy();\n try {\n if (mBluetoothSocket != null) {\n mBluetoothSocket.close();\n mBluetoothSocket = null;\n }\n } catch (Exception e) {\n Log.e(\"Tag\", \"Exe \", e);\n }\n }", "@Override\n\tpublic void onDestroy() {\n\t\tunbindService(serviceConnection);\n\t\tsuper.onDestroy();\n\t}", "@Override\n protected void onDestroy() {\n super.onDestroy();\n try {\n // Close bluetooth socket\n btSocket.close();\n } catch (IOException e) {\n }\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\t\n\t\ttry {\n\t\t\tstopService(mServiceIntent);\n\t\t} catch (Exception er) {\n\t\t\ter.printStackTrace();\n\t\t}\n\t}", "@Override\n public void onDestroy() {\n super.onDestroy();\n\n this.stopForeground(true);\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tunbindService(mServiceConn);\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tunbindService(connection);\n\t}", "@Override\n protected void onDestroy() {\n super.onDestroy();\n unbindService(connection);\n }", "@Override\n\tprotected void onDestroy() {\n\t\tif (isServiceBinded) {\n\t\t\tunbindService(this);\n\t\t\tisServiceBinded = false;\n\t\t\tserviceMessenger = null;\n\t\t}\n\t\tsuper.onDestroy();\n\t}", "@Override\n\tpublic void onDestroy() {\n\t\tLog.i(\"dservice\", \"stop!\");\n\t\tstopSelf();\n\t\tam.cancel(sender);\t\t// 알람 취소\n\t\tsuper.onDestroy();\n\t}", "public void onDestroy() {\n super.onDestroy();\n C0938a.m5006c(\"SR/SoundRecorder\", \"~~~~~~~~~~~~~~~~~~~~~~~~~~~~onDestroy\");\n m6659t();\n ServiceConnection serviceConnection = this.f5403W;\n if (serviceConnection != null) {\n unbindService(serviceConnection);\n }\n }", "@Override\n public void onDestroy() {\n Log.d(\"ServiceTest\", \"Service stopped\");\n }", "@Override\n\tpublic void onDestroy() {\n\t\tshutdown();\n\t\tLog.d(tag,\"service onDestroy\");\n\t\tsuper.onDestroy();\n\t}", "public void onStopButton(View view)\r\n {\n myService.onDestroy();\r\n //isBound=false;\r\n // Log.i(TAG, \"stop service\");\r\n }", "@Override\n\tpublic void onStop() {\n\t\tsuper.onStop();\n\t\tlock = true;\n\t\tgetActivity().unbindService(mServiceConnection);\n\t}", "@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tcleanDate() ;\n\t\t/*服务被杀死时发送广播重启服务 com.jumeng.repairmanager.receiver.BootReceiver*/\n\t\tIntent intent=new Intent(Consts.RESTART_SERVICE);\n\t\tsendBroadcast(intent);\n\t\tstopForeground(true);\n\t}", "@Override\n public void onDestroy() {\n\n thread.interrupt();\n\n Toast.makeText(this, \"Service Destroyed\", Toast.LENGTH_LONG).show();\n\n super.onDestroy();\n }", "@Override\n protected void onDestroy() {\n super.onDestroy();\n releaseService();\n }", "@Override\n protected void onDestroy() {\n mManager.clearLocalServices(mChannel, null);\n super.onDestroy();\n }", "@Override\n public void onDestroy() {\n\n stopService(new Intent(this, LocationMonitoringService.class));\n mAlreadyStartedService = false;\n //Ends................................................\n\n\n super.onDestroy();\n }", "@Override\n public void onDestroy() {\n Toast.makeText(this, \"Service stopped\", Toast.LENGTH_LONG).show();\n }", "@Override\n\tpublic void onDestroy() {\n\t\tLog.i(TAG, \"service on destory\");\n\t\tsuper.onDestroy();\n\t}", "@Override\n protected void onStop() {\n super.onStop();\n Log.d(TAG, \"onStop\");\n\n BluetoothManipulator.unregisterDiceScanningListener(scanningListener);\n DiceController.unregisterDiceConnectionListener(connectionListener);\n DiceController.unregisterDiceResponseListener(responseListener);\n\n DiceController.disconnectDie(dicePlus);\n dicePlus = null;\n }", "@Override\n protected void onStop() {\n super.onStop();\n if (isBounded) {\n unbindService(mConnection);\n isBounded = false;\n }\n }", "@Override\n\tprotected void onDestroy() {\n\t\tif(AccessibilityServiceUtils.isAccessibilitySettingsOn(this)){\n\t\t\tstopServer();\n\t\t}\n\t\tunregisterReceiver(mServiceReceiver);\n\t\tsuper.onDestroy();\n\t}", "public void onDestroy() {\n \twifiLock.release();\n \tstopForeground(true);\n \tradio.stop();\n \tradio.release();\n \tradio = null;\n }", "public void stopService();", "@Override\n\tprotected void onStop() {\n\t\tsendMessageToService(ConnectionService.STOP);\n\t\tsuper.onStop();\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tIntent Intent2=new Intent(UserActivity.this,MsgService.class);\n\t\tstopService(Intent2);\n\t\t\n\t\tIntent intent4=new Intent(UserActivity.this,FileLoadService.class);\n\t\tstopService(intent4);\n\t}", "@Override\n public void onDestroy() {\n // Cleanup service before destruction\n mHandlerThread.quit();\n }", "@Override\n public void onDestroy() {\n sensorManager.unregisterListener(SensorService.this, accelerometerSensor);\n unregisterReceiver(powerConnectionReceiver);\n notificationManager.cancel(1);\n super.onDestroy();\n }", "@Override\n public void onDestroy() {\n super.onDestroy();\n Toast.makeText(this, R.string.service_destoryed, Toast.LENGTH_LONG).show();\n\n // Disconnect Google Api to stop updating.\n mGoogleApiClient.disconnect();\n }", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\ttry {\r\n\t\t\tunregisterReceiver(newReceiver);\r\n\t\t} catch (Exception e) {\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tunregisterReceiver(userReceiver);\r\n\t\t} catch (Exception e) {\r\n\t\t}\r\n\t\tBmobChat.getInstance(this).stopPollService();\r\n\t}", "@Override\n protected void onStop ()\n {\n super.onStop();\n if (receiver != null)\n {\n cleanupReceiver();\n cleanupAccount();\n }\n }", "@Override\n\tpublic void onDestroy() {\n\t\tthis.unregisterReceiver(notifyServiceReceiver);\n\t\tsuper.onDestroy();\n\t}", "@Override\r\n public void onDestroy() {\r\n super.onDestroy();\r\n Log.d(TAG, \"on service destroy\");\r\n sendBroadcast(new Intent(Constants.INSTAG_SERVICE_DESTROYED));\r\n cancelTimer();\r\n }", "public void onDestroy() {\n LogUtil.d(DownloadService.class, \"Service onDestroy\");\n mNetReceiver.unRegist(this);\n\n super.onDestroy();\n }", "@Override\n protected void onDestroy() {\n super.onDestroy();\n if (mediaPlayer != null){\n setViewOnFinish();\n mediaPlayer.release();\n }\n\n Intent intent = new Intent(this, VoIpCallDetection.class);\n stopService(intent);\n log(\"VoIpCallDetection Service Stopped.\");\n }", "@Override\n public void onDestroy() {\n super.onDestroy();\n unbindService(mServiceConnection);\n LocalBroadcastManager.getInstance(mContext).unregisterReceiver(scanDataReadyReceiver);\n LocalBroadcastManager.getInstance(mContext).unregisterReceiver(refReadyReceiver);\n LocalBroadcastManager.getInstance(mContext).unregisterReceiver(notifyCompleteReceiver);\n LocalBroadcastManager.getInstance(mContext).unregisterReceiver(requestCalCoeffReceiver);\n LocalBroadcastManager.getInstance(mContext).unregisterReceiver(requestCalMatrixReceiver);\n LocalBroadcastManager.getInstance(mContext).unregisterReceiver(disconnReceiver);\n LocalBroadcastManager.getInstance(mContext).unregisterReceiver(scanConfReceiver);\n\n mHandler.removeCallbacksAndMessages(null);\n\n SettingsManager.storeBooleanPref(mContext, SettingsManager.SharedPreferencesKeys.saveOS, btn_os.isChecked());\n SettingsManager.storeBooleanPref(mContext, SettingsManager.SharedPreferencesKeys.saveSD, btn_sd.isChecked());\n SettingsManager.storeBooleanPref(mContext, SettingsManager.SharedPreferencesKeys.continuousScan, btn_continuous.isChecked());\n }", "@Override\n protected void onDestroy() {\n super.onDestroy();\n mTrackList.clear();\n\n if (isFinishing()) {\n unbindService(serviceConnection);\n mIsBound = false;\n mPlayerService.stopSelf();\n }\n }", "public void stopService() {\r\n Log.d(LOG, \"in stopService\");\r\n stopService(new Intent(getBaseContext(), EventListenerService.class));\r\n stopService(new Intent(getBaseContext(), ActionService.class));\r\n }", "@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\t\t// stop the service correctly stop the task\n\t\tmServiceHandler.stopTask();\n\t}", "@Override\n protected void onDestroy() {\n stopService(trackerServiceIntent);\n Log.d(\"Service\", \"ondestroy of activity!\");\n super.onDestroy();\n }", "@Override\r\n\tpublic void onDestroy() {\n\t\tSystem.out.println(\"Service onDestory\");\r\n\t\tsuper.onDestroy();\r\n\t}", "@Override\n public void onServiceDisconnected(ComponentName name) {\n bleService.disconnect();\n bleService = null;\n }", "public void stopService() {\n if (serviceRegistered) {\n Application application = getApplication();\n application.stopService(serviceIntent);\n application.unbindService(serviceConnection);\n recordingService.stopForeground(true);\n recordingService.stopSelf();\n serviceRegistered = false;\n }\n }", "private void serviceStopForeground() {\n\n if (isForeground) {\n stopForeground(true);\n isForeground = false;\n }\n }", "@Override\n public void onDestroy() {\n mBlockChainManager.onDestroy();\n\n if (resetBlockChainOnShutdown) {\n mBlockChainManager.removeBlockChainFile();\n }\n\n CoolApplication.getApplication().autoSaveWalletNow();\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n MyJobService.startUp();\n }\n stopForeground(true);\n super.onDestroy();\n mHandler.removeCallbacksAndMessages(null);\n\n long duration = System.currentTimeMillis() - serviceCreatedAt;\n log.info(String.format(\"service was up for %s minutes\", duration / 1000 / 60));\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tstop();\n\t}", "@Override\r\n public void onDestroy() {\r\n super.onDestroy();\r\n if (toggleButton1==true) {\r\n Intent intent = new Intent(MainActivity.this, MusicService.class);\r\n stopService(intent);\r\n }\r\n }", "@Override\n\tprotected void onStop() {\n\t\tsuper.onStop();\n\t\tthis.onDestroy();\n\t}", "@Override\n\tpublic void onDestroy(){\n\t\tmNotifMng.cancel(NOTIFICATION_ID);\n\t\tif(mConnectThread != null){\n\t\t\tmConnectThread.interrupt();\n\t\t\tmConnectThread.stopRunning();\n\t\t}\n\t\t//Unregister the phone receiver\n\t\tunregisterReceiver(mSmsListener);\n\t}", "@Override\r\n public void onDestroy() {\n\t if (accountChangedReceiver != null) {\r\n\t try {\r\n\t \tunregisterReceiver(accountChangedReceiver);\r\n\t } catch (IllegalArgumentException e) {\r\n\t \t// Nothing to do\r\n\t }\r\n\t }\r\n\r\n // Stop the core\r\n Thread t = new Thread() {\r\n /**\r\n * Processing\r\n */\r\n public void run() {\r\n stopCore();\r\n }\r\n };\r\n t.start();\r\n }", "public void unregisterCallback() {\n if (mLocalManager == null) {\n Log.e(TAG, \"unregisterCallback() Bluetooth is not supported on this device\");\n return;\n }\n mLocalManager.setForegroundActivity(null);\n mLocalManager.getEventManager().unregisterCallback(this);\n mLocalManager.getProfileManager().removeServiceListener(this);\n }", "@Override\n\tpublic void onDestroy() {\n\t\tContext context = this.getApplicationContext();\n\t\t//Toast.makeText(context, \"Avslutter service\", Toast.LENGTH_LONG).show();\n\n\t\t//Fjerner notification:\n\t\tnotificationManager.cancel(0); //.cancelAll();\n\t\tsuper.onDestroy();\n\t}", "@Override\n protected void onDestroy() {\n unBoundAudioService();\n super.onDestroy();\n }", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tmNtApi.stop();\r\n\t}", "@Override\r\npublic void onDestroy() {\n\tsuper.onDestroy();\r\n\tif(mIntent!=null){\r\n\t\tgetActivity().stopService(mIntent);\t\r\n\t}\r\n\t\r\n}", "@Override\n protected void onDestroy() {\n\tsuper.onDestroy ();\n\tstartService ( new Intent ( getBaseContext (), BackgroundService.class ) );\n }", "@Override\n\tpublic void onStop() {\n\t\tsuper.onStop();\n\n\t\tif (D)\n\t\t\tLog.e(TAG, \"-- ON STOP --\");\n\n\t\t// don't do anything bluetooth if debugging the user interface\n\t\tif (BTconnect)\n\t\t\tmyBT.cancel();\n\n\t\t// kill bt pitter and bump timer\n\t\tkillHandlers();\n\n\t\t// unregister the sensor listener\n\t\tmSensorManager.unregisterListener(mSensorListener);\n\n\t\t// shutoff bluetooth\n\t\tif (turnOffBluetoothShutdown) {\n\t\t\tmBluetoothAdapter.disable();\n\t\t}\n\t\t\n\t\t// save the checkbox states for the next run\n\t\t// We need an Editor object to make preference changes.\n\t\t// All objects are from android.context.Context\n\t\tSharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);\n\t\tSharedPreferences.Editor editor = settings.edit();\n\t\teditor.putBoolean(\"ScreenOnOffEnable\", ScreenOnOffCheckBox.isChecked());\n\t\teditor.putBoolean(\"RetryConnEnable\", RetryConnBox.isChecked());\n\t\teditor.putString(\"MacAddress\", MAC_ADDRESS);\n\t\t// Commit the edits!\n\t\teditor.commit();\n\n\t}", "@Override\n\tprotected void onStop() {\n\t\tsuper.onStop();\n\t\tunregisterReceiver(broadcastReceiver);\n\t}", "public void StopService() {\n\n\n TrackLisinterService tracklisiten = new TrackLisinterService(context, ((Activity) context).getApplication());\n tracklisiten.StopService();\n\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tmyhandler.removeCallbacks(mrunnable);\n\t\tsendWifiHandler.removeCallbacks(stopRunnable);\n\t\tmHelper.StopListen();\n\t\tif (!isSendWifiStop) {\n\t\t\tstopSendWifi();\n\t\t}\n\t\tif (!isTimerCancel) {\n\t\t\tcancleTimer();\n\t\t}\n\t\tlock.release();\n\t}", "@Override\n public void onDestroy() {\n\t\n \tif (mTts != null) {\n \t\tmTts.stop();\n \t\tmTts.shutdown();\n \t}\n\t \n \tsuper.onDestroy();\n \tToast.makeText(this, \"MyAlarmService.onDestroy()\", Toast.LENGTH_LONG).show();\n }", "void bluetoothDeactivated();", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tif(otgReceiver!=null){\n\t\t\tunregisterReceiver(otgReceiver);\n\t\t}\n\t\tif(finishReceiver!=null){\n\t\t\tunregisterReceiver(finishReceiver);\n\t\t}\n\t}", "@Override\n public void onDestroy() {\n //super.onDestroy();\n Utils.showToast(this, \"service done\");\n /*if(mediaPlayer.isPlaying()) {\n mediaPlayer.stop();\n }\n mediaPlayer.release();*/\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tbookCache.clear();\n\n stopService(new Intent(this , AudioService.class));\n\n Global.RemoveTmp();\n\t}", "@Override\n\tprotected void onStop() {\n\t\tsuper.onStop();\n\t\tthis.unregisterReceiver(battInfoRec);\n\t\tthis.finish();\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tunregisterReceiver(mDetailRev);\n\t\tif (PubDefine.g_Connect_Mode == PubDefine.SmartPlug_Connect_Mode.WiFi) {\n\t\t\tmTcpSocketThread.setRunning(false);\n\t\t}\n\t}", "@Override\n protected void onStop() {\n super.onStop();\n uart.unregisterCallback(this);\n uart.disconnect();\n }", "@Override\n public void onDestroy() {\n LocalBroadcastManager.getInstance(getContext()).unregisterReceiver(us);\n LocalBroadcastManager.getInstance(getContext()).unregisterReceiver(ud);\n super.onDestroy();\n }", "public void onStop();", "@Override\r\n public void closeBluetoothConnection() {\n final Intent stopMessageParserService = new Intent(this, MessageParserService.class);\r\n this.stopService(stopMessageParserService);\r\n }", "@Override\n protected void onDestroy() {\n if (mServiceHelp != null) {\n mServiceHelp.removeOnServiceCallBack();\n }\n\n super.onDestroy();\n }", "private void stop() {\n\t\t/*\n if (this.status != PedoListener.STOPPED) {\n this.sensorManager.unregisterListener(this);\n }\n this.setStatus(PedoListener.STOPPED);\n\t\t*/\t\t\t\t\n\t\t\t\n\t\tif (status != PedoListener.STOPPED) {\n\t\t uninitSensor();\n\t\t}\n\n\t\tDatabase db = Database.getInstance(getActivity());\n\t\tdb.setConfig(\"status_service\", \"stop\");\n\t\t//db.clear(); // delete all datas on table\n\t\tdb.close();\t\t\n\n\t\tgetActivity().stopService(new Intent(getActivity(), StepsService.class));\n\t\tstatus = PedoListener.STOPPED;\n\n\t\tcallbackContext.success();\n }", "protected void stopService() {\n\t\t//if (isServiceRunning(Constants.SERVICE_CLASS_NAME))\n\t\tthis.stopService(new Intent(this, LottoService.class));\n\t}", "@Override\n public void onDestroy() {\n if (tts != null) {\n tts.stop();\n tts.shutdown();\n }\n super.onDestroy();\n }", "@Override\n public void onDestroy() {\n if (tts != null) {\n tts.stop();\n tts.shutdown();\n }\n super.onDestroy();\n }", "@Override\n public void onDestroy() {\n if (tts != null) {\n tts.stop();\n tts.shutdown();\n }\n super.onDestroy();\n }", "@Override\n public void onDestroy() {\n if (tts != null) {\n tts.stop();\n tts.shutdown();\n }\n super.onDestroy();\n }", "public void onStop() {\n }", "public void deactivate() {\n serviceTracker.close();\n listenerSR.unregister();\n }", "public void onStop() {\n }", "public void onStop() {\n }", "@Override\n public void onDestroy() {\n unregisterReceiver(reciever);\n mp.pause();\n mp.stop();\n mp.release();\n wifiManager.disableNetwork(wifiManager.getConnectionInfo().getNetworkId());\n wifiManager.removeNetwork(wifiManager.getConnectionInfo().getNetworkId());\n wifiManager.disconnect();\n try {\n\n serverSocket.close();\n }catch (Exception ex)\n {\n\n }\n super.onDestroy();\n\n }", "public void onStop() {\n\n }", "private void stopAccelService() {\n\t\tstopService(new Intent(MainActivity.this, AccelService.class));\n\t\t// alarmManager_autoStop.cancel(pendindIntent_autStop);\n\t\tdoAccelUnbindService();\n\t\taccelService = null;\n\t\taccelConnection = null;\n\t\tif (accelSyncTask != null) {\n\t\t\taccelSyncTask.cancel(true);\n\t\t}\n\t}", "@Override\n public boolean onUnbind(Intent intent) {\n \tcloseBluetooth();\n return super.onUnbind(intent);\n }", "public void onServiceDisconnected(ComponentName className) {\n _boundService = null; \n Toast.makeText(TestServiceHolder.this, \"Service connected\", \n Toast.LENGTH_SHORT).show(); \n }", "private void releaseService() {\n unbindService(connection);\n connection = null;\n Log.d(TAG, \"releaseService() unbound.\");\n }", "@Override\n protected void onDestroy() {\n if (voiceCommandReceiver != null && myIntentReceiver != null) {\n voiceCommandReceiver.unregister();\n unregisterReceiver(myIntentReceiver);\n }\n\n super.onDestroy();\n }", "@Override\n public void onServiceDisconnected(ComponentName name) {\n mService = null;\n mKillBtn.setEnabled(false);\n mCallbackText.setText(\"Disconnected\");\n Log.i(TAG, \"Disconnected form remote service\");\n }", "protected void onStop() {\n if(scheduleClient != null)\n scheduleClient.doUnbindService();\n this.onStop();\n }", "private void StopService() {\n\n TrackLisinterService tracklisiten = new TrackLisinterService(context, getApplication());\n tracklisiten.StopService();\n\n }", "@Override\r\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tif (wt != null && !wt.isCancelled()) {\r\n\t\t\twt.cancel(true);\r\n\t\t}\r\n\t\t\r\n\t\tactivity.unregisterReceiver(receiver);\r\n\t}" ]
[ "0.7931839", "0.78975606", "0.7830911", "0.7829495", "0.7806286", "0.7771709", "0.7679922", "0.762894", "0.7622958", "0.76035917", "0.7592111", "0.7565034", "0.7523763", "0.75211966", "0.7456609", "0.7445137", "0.7400065", "0.73785555", "0.737134", "0.7359326", "0.7343899", "0.7340876", "0.7326175", "0.7316473", "0.7311542", "0.7283234", "0.7275777", "0.7255897", "0.72362965", "0.72281367", "0.7225793", "0.7223347", "0.7202549", "0.7198027", "0.7182208", "0.71686983", "0.715698", "0.7149962", "0.7130034", "0.71241117", "0.7124079", "0.71181196", "0.7106029", "0.71010256", "0.70996034", "0.7090989", "0.70786136", "0.70704216", "0.70631903", "0.70614123", "0.7054783", "0.7052872", "0.7047993", "0.7047803", "0.70296925", "0.7017428", "0.70167303", "0.70083797", "0.7007886", "0.6997971", "0.69973266", "0.69861877", "0.6958703", "0.69568807", "0.69483596", "0.6934544", "0.69260955", "0.6922376", "0.69075006", "0.690373", "0.6902496", "0.68950653", "0.68950266", "0.6891793", "0.6884918", "0.6866711", "0.6861298", "0.68554544", "0.68494314", "0.68306506", "0.68156517", "0.6813614", "0.6813614", "0.6813614", "0.6813614", "0.6813069", "0.68126476", "0.6808771", "0.6808771", "0.68084705", "0.68072504", "0.6806613", "0.68054974", "0.68049586", "0.6804673", "0.6804498", "0.6792417", "0.6792236", "0.67903006", "0.67864877" ]
0.7481632
14
check the status of BT service
public boolean isServiceConnected() { log_d( "isServiceConnected()" ); // true if debug if ( BT_DEBUG_SERVICE ) return true; // if connected if ( mBluetoothService != null ) { if ( mBluetoothService.getState() == STATE_CONNECTED ) { log_d( "true" ); return true; } } // otherwise log_d( "false" ); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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}", "@Test\n\tpublic void checkStatus() {\n\t\tclient.execute(\"1095C-16-111111\");\n\t}", "private void checkBTState() {\n\n if(btAdapter==null) {\n Toast.makeText(getContext(), \"El dispositivo no soporta bluetooth\", Toast.LENGTH_LONG).show();\n } else {\n if (btAdapter.isEnabled()) {\n } else {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "private void checkBTState() {\n\n if (btAdapter == null) {\n Toast.makeText(getBaseContext(), \"Device does not support bluetooth\", Toast.LENGTH_LONG).show();\n } else {\n if (btAdapter.isEnabled()) {\n } else {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "private void checkBTState() {\n\n if(btAdapter==null) {\n Toast.makeText(getBaseContext(), \"Device does not support bluetooth\", Toast.LENGTH_LONG).show();\n } else {\n if (btAdapter.isEnabled()) {\n } else {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "private void checkBTState() {\n if(btAdapter==null) {\n errorExit(\"Fatal Error\", \"Bluetooth not support\");\n } else {\n if (btAdapter.isEnabled()) {\n Log.d(TAG, \"...Bluetooth ON...\");\n } else {\n //Prompt user to turn on Bluetooth\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "private void checkBTState() {\n if(bluetoothAdapter==null) {\n errorExit(\"Fatal Error\", \"Bluetooth not supported\");\n } else {\n if (!bluetoothAdapter.isEnabled()) {\n //Prompt user to turn on Bluetooth\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "public void checkBTState() {\n if(mAdapter==null) {\n errorExit(\"Fatal Error\", \"Bluetooth not support\");\n } else {\n if (mAdapter.isEnabled()) {\n Log.d(TAG, \"...Bluetooth ON...\");\n } else {\n //Prompt user to turn on Bluetooth\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n ((Activity) mContext).startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "private void checkBTState() {\n\t\tif (btAdapter == null) {\n\t\t\terrorExit(\"Fatal Error\", \"Bluetooth not support\");\n\t\t} else {\n\t\t\tif (btAdapter.isEnabled()) {\n\t\t\t\tLog.d(TAG, \"...Bluetooth ON...\");\n\t\t\t} else {\n\t\t\t\t// Prompt user to turn on Bluetooth\n\t\t\t\tIntent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n\t\t\t\tstartActivityForResult(enableBtIntent, 1);\n\t\t\t}\n\t\t}\n\t}", "private void checkBTState() {\n if(btAdapter==null) {\n btState.setImageResource(R.drawable.ic_action_off);\n errorExit(\"Fatal Error\", \"Bluetooth не поддерживается\");\n\n } else {\n if (btAdapter.isEnabled()) {\n Log.d(TAG, \"...Bluetooth включен...\");\n btState.setImageResource(R.drawable.ic_action_on);\n } else {\n //Prompt user to turn on Bluetooth\n Intent enableBtIntent = new Intent(btAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n }\n }\n }", "private void CheckBtIsOn() {\n mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n\n if (!mBluetoothAdapter.isEnabled()) {\n Toast.makeText(getApplicationContext(), \"Bluetooth Disabled!\",\n Toast.LENGTH_SHORT).show();\n\n // Start activity to show bluetooth options\n Intent enableBtIntent = new Intent(mBluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n }\n }", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "com.polytech.spik.protocol.SpikMessages.Status getStatus();", "com.polytech.spik.protocol.SpikMessages.Status getStatus();", "public int getCBRStatus();", "private void getBluetoothState() {\r\n\r\n\t\t if (bluetoothAdapter == null) {\r\n\t\t\t bluetoothStatusSetup.setText(\"Bluetooth NOT supported\");\r\n\t\t } else if (!(bluetoothAdapter.isEnabled())) {\r\n\t\t\t bluetoothStatusSetup.setText(\"Bluetooth is NOT Enabled!\");\r\n\t\t\t Intent enableBtIntent = new Intent(\r\n\t\t\t\t\t BluetoothAdapter.ACTION_REQUEST_ENABLE);\r\n\t\t\t startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\r\n\t\t\t getBluetoothState();\r\n\t\t }\r\n\r\n\t\t if (bluetoothAdapter.isEnabled()) {\r\n\r\n\t\t\t if (bluetoothAdapter.isDiscovering()) {\r\n\t\t\t\t bluetoothStatusSetup.setText(\"Bluetooth is currently in device discovery process.\");\r\n\t\t\t } else {\r\n\t\t\t\t bluetoothStatusSetup.setText(\"Bluetooth is Enabled.\");\r\n\t\t\t }\r\n\t\t }\r\n\t }", "TransmissionProtocol.Status getStatus();", "@Override\n public int estado(){\n \n try {\n Process proceso;\n proceso = Runtime.getRuntime().exec(\"/etc/init.d/\"+nombreServicio+\" status\");\n InputStream is = proceso.getInputStream(); \n BufferedReader buffer = new BufferedReader (new InputStreamReader (is));\n \n //Se descartan las dos primeras lineas y se lee la tercera\n buffer.readLine();\n buffer.readLine();\n String resultado = buffer.readLine();\n \n if(resultado.contains(\"Active: active\")){\n return 1;\n }\n } \n catch (IOException ex) {\n Logger.getLogger(Servicio.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n return 0;\n }", "boolean getStatus();", "boolean getStatus();", "boolean getStatus();", "public void setStatus(int status){\n Log.d(TAG, \"-- SET STATUS --\");\n switch(status){\n //connecting to remote device\n case BluetoothClientService.STATE_CONNECTING:{\n Toast.makeText(this, \"Connecting to remote bluetooth device...\", Toast.LENGTH_SHORT).show();\n ToggleButton statusButton = (ToggleButton) this.findViewById(R.id.status_button);\n statusButton.setBackgroundResource(R.drawable.connecting_button);\n break;\n }\n //not connected\n case BluetoothClientService.STATE_NONE:{\n Toast.makeText(this, \"Unable to connect to remote device\", Toast.LENGTH_SHORT).show();\n ToggleButton statusButton = (ToggleButton) this.findViewById(R.id.status_button);\n statusButton.setBackgroundResource(R.drawable.disconnect_button);\n statusButton.setTextOff(getString(R.string.disconnected));\n statusButton.setChecked(false);\n break;\n }\n //established connection to remote device\n case BluetoothClientService.STATE_CONNECTED:{\n Toast.makeText(this, \"Connection established with remote bluetooth device...\", Toast.LENGTH_SHORT).show();\n ToggleButton statusButton = (ToggleButton) this.findViewById(R.id.status_button);\n statusButton.setBackgroundResource(R.drawable.connect_button);\n statusButton.setTextOff(getString(R.string.connected));\n statusButton.setChecked(true);\n //start motion monitor\n motionMonitor = new MotionMonitor(this, mHandler);\n motionMonitor.start();\n break;\n }\n }\n }", "public void receiveMyBtStatus(String status) {\n \t\n \tfinal String s = status;\n \t\n \t\n// \tLog.d(\"handler\", \"receiveMyBtStatus\"); \t\n mHandler.post(new Runnable() {\n @Override\n public void run() {\n // This gets executed on the UI thread so it can safely modify Views\n \tBTstatusTextView.setText(s);\n \t\n \tif(s.equals(\"BT-Ready\") && !(poll.getVisibility() == View.VISIBLE)){\n \t\tLog.d(\"poll buttion\", \"setting visible\");\n \t//Ready to poll\n \t\tpoll.setVisibility(View.VISIBLE);\n \t\n }\n }\n });\n }", "boolean isSetStatus();", "public boolean isServiceReady();", "private boolean takeBertyService() {\n Log.v(TAG, String.format(\"takeBertyService: called for device %s\", getMACAddress()));\n if (getBertyService() != null) {\n Log.d(TAG, String.format(\"Berty service already found for device %s\", getMACAddress()));\n return true;\n }\n\n setBertyService(getBluetoothGatt().getService(GattServer.SERVICE_UUID));\n\n if (getBertyService() == null) {\n Log.i(TAG, String.format(\"Berty service not found for device %s\", getMACAddress()));\n return false;\n }\n\n Log.d(TAG, String.format(\"Berty service found for device %s\", getMACAddress()));\n return true;\n }", "boolean hasStatusChanged();", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkBluetooth() {\n\t\tboolean flag = oTest.checkBluetooth();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "private boolean verifyBTConnected() {\n if (btSocket != null && btSocket.isConnected()) {\n return true;\n }\n\n sendConnectionMessage(EventMessage.EventType.HW_CONNECTING);\n try {\n if (btDevice == null) {\n btDevice = btAdapter.getRemoteDevice(btAddress);\n }\n\n btSocket = btDevice.createInsecureRfcommSocketToServiceRecord(uuid);\n btSocket.connect();\n\n mmInStream = btSocket.getInputStream();\n mmOutStream = btSocket.getOutputStream();\n sendConnectionMessage(EventMessage.EventType.HW_CONNECTED);\n return true;\n } catch (IOException e) {\n Log.d(TAG, \"Exception creating BT socket in BT thread: \" + e.toString());\n btDevice = null;\n return false;\n }\n }", "private boolean BluetoothAvailable()\n {\n if (BT == null)\n return false;\n else\n return true;\n }", "void checkForAccServices();", "public boolean getOnlineStatus(int status) throws android.os.RemoteException;", "@Override public boolean getOnlineStatus(int status) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\nboolean _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeInt(status);\nmRemote.transact(Stub.TRANSACTION_getOnlineStatus, _data, _reply, 0);\n_reply.readException();\n_result = (0!=_reply.readInt());\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}", "private void CheckIfServiceIsRunning() {\n\t\tLog.i(\"Convert\", \"At isRunning?.\");\n\t\tif (eidService.isRunning()) {\n//\t\t\tLog.i(\"Convert\", \"is.\");\n\t\t\tdoBindService();\n\t\t} else {\n\t\t\tLog.i(\"Convert\", \"is not, start it\");\n\t\t\tstartService(new Intent(IDManagement.this, eidService.class));\n\t\t\tdoBindService();\n\t\t}\n\t\tLog.i(\"Convert\", \"Done isRunning.\");\n\t}", "private boolean checkBatteryLevelOK() {\n return true;\n }", "void onStateChange(BluetoothService.BTState state);", "com.google.rpc.Status getStatus();", "com.google.rpc.Status getStatus();", "public void receiveResultcheckServerStatus(\n loadbalance.LoadBalanceStub.CheckServerStatusResponse result\n ) {\n }", "private void enableBtmon() {\n System.out.println(\"Starting Btmon Service...\");\n try {\n btmonProcess = new ProcessBuilder(\"/usr/bin/btmon\").start();\n InputStreamReader inputStream = new InputStreamReader(btmonProcess.getInputStream());\n int size;\n char buffer[] = new char[1024];\n while ((size = inputStream.read(buffer, 0, 1024)) != -1) {\n // System.out.println(\" --- Read ----\");\n String data = String.valueOf(buffer, 0, size);\n processBeaconMessage(data);\n // Thread.sleep(1000);\n }\n } catch (IOException ex ) {\n ex.printStackTrace();\n } catch (Exception ex ) {\n ex.printStackTrace();\n } finally {\n if (btmonProcess != null)\n btmonProcess.destroy();\n }\n }", "@Override\n public void checkBluetoothInteface() {\n if (!isConnected) {\n checkForBluetooth();\n }\n }", "private void displayStatus(final byte b) {\n\n\t\trunOnUiThread(new Runnable() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tbyte[] output = {b};\n Log.d(TAG, \"status: \" + Utils.bytesToHex2(output)); \n\t\t\t\tString currentTime = \"[\" + formater.format(new Date()) + \"] : \";\n\t\t\t\tif ((byte) (b & 0x01) == 0x01) {\n\t\t\t\t\tsynchronized (this) {\n\t\t\t\t\t\tisUsbDisconnected = false;\n\t\t\t\t\t}\n\t\t\t\t\tledUsb.setPressed(true);\n\t\t\t\t\tif ((byte) (mPreviousStatus & 0x01) == 0x00)\n\t\t\t\t\t\tlog(currentTime + \"usb connected\");\n\t\t\t\t} else {\n\t\t\t\t\tledUsb.setPressed(false);\n\t\t\t\t\tif ((byte) (mPreviousStatus & 0x01) == 0x01)\n\t\t\t\t\t\tlog(currentTime + \"usb disconnected\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif ((byte) (b & 0x02) == 0x02) {\n\t\t\t\t\tledWifi.setPressed(true);\n\t\t\t\t\tif ((byte) (mPreviousStatus & 0x02) == 0x00)\n\t\t\t\t\t log(currentTime + \"wifi connected\");\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tledWifi.setPressed(false);\n\t\t\t\t\tif ((byte) (mPreviousStatus & 0x02) == 0x02)\n\t\t\t\t\tlog(currentTime + \"wifi disconnected\");\n\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\tif ((byte) (b & 0x04) == 0x04) {\n\t\t\t\t\tledTelep.setPressed(true);\n\t\t\t\t\tif ((byte) (mPreviousStatus & 0x04) == 0x00)\n\t\t\t\t log(currentTime + \"telep. connected\");\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tledTelep.setPressed(false);\n\t\t\t\t\tif ((byte) (mPreviousStatus & 0x04) == 0x04)\n\t\t\t\t\tlog(currentTime + \"telep. disconnected\");\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\tmPreviousStatus = b;\n\n\t\t\t}\n\t\t});\n\n\t}", "@Test\n public void testGetStatus() throws Exception {\n System.out.println(\"getStatus\");\n \n this.bag_PembayaranServiceServer = new Bag_PembayaranServiceServer(tableModelLog);\n String Id_Pembayaran = \"BYR0002\";\n \n String instance = bag_PembayaranServiceServer.getStatus(Id_Pembayaran);\n System.out.println(instance);\n \n String expResult = \"LUNAS DEBIT\";\n \n assertEquals(expResult, instance);\n }", "private boolean isBtConnected(){\n \treturn false;\n }", "boolean hasChangeStatus();", "boolean hasServiceCmd();", "public static String check() {\n\t\ttry {\n\t\t\tString status = null;\n\t\t\t// Envia uma solicitacao de variavel para o ESP32\n\t\t\tSystem.out.print(\"Enviando Request ao ESP32... \");\n \t \tHttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder() // Request para atualizar a valor do sensor \n .uri(URI.create(\"http://\" + ESP32IP + \"/checkLight\")) \n .build();\n HttpRequest request2 = HttpRequest.newBuilder() // Request para retornar o valor do sensor\n .uri(URI.create(\"http://\" + ESP32IP + \"/Light\")) \n .build();\n HttpResponse<String> response = client.send(request,\n \t\t\tHttpResponse.BodyHandlers.ofString());\n HttpResponse<String> response2 = client.send(request2,\n \t\t\tHttpResponse.BodyHandlers.ofString());\n \n System.out.println(\"Pronto!\");\n \n // Organiza a resposta em JSON\n Gson gson = new Gson();\n ReturnValues Jresponse = gson.fromJson(response.body(), ReturnValues.class);\n \n // Verifica a variavel e exibe a resposta\n if(Jresponse.getLight()) {\n \tstatus = \"On\";\n \tSystem.out.println(\"A luz esta ligada\");\n } else if(!Jresponse.getLight()) {\n \tstatus = \"Off\";\n \tSystem.out.println(\"A luz esta desligada\");\n } else {\n \tstatus = \"Erro\";\n \tSystem.out.println(\"Nao foi possivel reconhecer o estado da luz\");\n }\n return status;\n } catch (Exception e) {\n \t System.out.printf(\"\\n Nao foi possivel conectar ao ESP32\");\n \t // e.printStackTrace();\n \t return \"Erro\";\n }\n\t}", "private boolean checkPhoneStatusOK() {\n return true;\n }", "@Override\n public void run() {\n try {\n ServiceInfo serviceInfo = this.getServiceStatus(url);\n this.saveServiceStatusInfo(serviceInfo);\n if(serviceInfo.getResponseTimeInMillis() > 200)\n log.warn(\"The service is taking too long to respond\");\n\n if(serviceInfo.getStatusCode()!=200)\n log.warn(\"The service did not respond OK\");\n\n\n } catch (IOException e) {\n log.error(\"Error while accessing the service\" ,e);\n }\n }", "private void getStatus() {\n\t\t\n\t}", "public void checkNetworkStatus() {\n if (this.mCheckNetworkStateTask == null) {\n this.mCheckNetworkStateTask = new CheckNetworkStateTask(this);\n this.mCheckNetworkStateTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, new ArrayList[]{this.mServerList});\n }\n }", "public boolean isATMReadyTOUse() throws java.lang.InterruptedException;", "boolean isAvailable();", "boolean isAvailable();", "boolean isAvailable();", "boolean isAvailable();", "boolean isValidStatus();", "SearchServiceStatus status();", "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}", "void transStatus()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif(passenger != null && status.equals(\"soon\"))\r\n\t\t\t{\r\n\t\t\t\tService s_temp = new Service(passenger);\r\n\t\t\t\tdes = passenger.loc;\r\n\t\t\t\tmakeService(loc.i*80+loc.j,des.i*80+des.j);\r\n\t\t\t\tstatus = \"stop\";\r\n\t\t\t\tThread.sleep(1000);\r\n\t\t\t\tstatus = \"serve\";\r\n\t\t\t\tdes = passenger.des;\r\n\t\t\t\ts_temp.path.add(loc);\r\n\t\t\t\tmakeService(loc.i*80+loc.j,des.i*80+des.j,s_temp.path);\r\n\t\t\t\tstatus = \"stop\";\r\n\t\t\t\tThread.sleep(1000);\r\n\t\t\t\tcredit += 3;\r\n\t\t\t\tser_times += 1;\r\n\t\t\t\tservices.add(s_temp);\r\n\t\t\t\t//refresh:\r\n\t\t\t\tstatus = \"wait\";\r\n\t\t\t\tpassenger = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Sorry to catch Exception!\");\r\n\t\t}\r\n\t}", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "public Boolean ping() throws CallError, InterruptedException {\n return (Boolean)service.call(\"ping\").get();\n }", "private boolean checkServiceIsRunning(){\r\n if (CurrentLocationUtil.isRunning()){\r\n doBindService();\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }", "Boolean isAvailable();", "public boolean isServiceRunning();", "boolean testConnection(RemoteService service);", "protected boolean statusIs(String state)\n { return call_state.equals(state); \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}", "public MojangServiceState getServiceStatus(@Nonnull MojangServiceType server) {\n try {\n HttpURLConnection connection = getGetConnection(\"https://status.mojang.com/check\");\n\n int status = connection.getResponseCode();\n\n Reader streamReader = null;\n\n if (status > 299) {\n return MojangServiceState.UNKNOWN;\n } else {\n streamReader = new InputStreamReader(connection.getInputStream());\n }\n\n BufferedReader reader = new BufferedReader(streamReader);\n\n MojangServiceState state = MojangServiceState.valueOf(StringUtils.substringBetween(StringUtils.substringBetween(reader.readLine(),\"[\",\"]\").split(\",\")[server.getIndex()],\"{\",\"}\").split(\":\")[1].replaceAll(\"\\\"\",\"\").toUpperCase(Locale.ROOT));\n\n\n\n reader.close();\n connection.disconnect();\n\n return state;\n } catch (IOException e) {\n return MojangServiceState.UNKNOWN;\n }\n }", "boolean hasService();" ]
[ "0.72282743", "0.69944227", "0.6982639", "0.6911073", "0.6867167", "0.6840873", "0.6811853", "0.68070656", "0.67493355", "0.66702276", "0.65807253", "0.65554", "0.65554", "0.65554", "0.65554", "0.65554", "0.65554", "0.65554", "0.65554", "0.65554", "0.65554", "0.65554", "0.65554", "0.65554", "0.65554", "0.65554", "0.65554", "0.65554", "0.65554", "0.65554", "0.65554", "0.65554", "0.65554", "0.64697474", "0.64697474", "0.64223707", "0.6416943", "0.64078146", "0.63978463", "0.639106", "0.639106", "0.639106", "0.63574433", "0.6324971", "0.6320567", "0.6242328", "0.62255305", "0.62232274", "0.62203455", "0.6201863", "0.6159284", "0.6151487", "0.61254245", "0.60612094", "0.60412127", "0.60387", "0.60217136", "0.6012015", "0.6012015", "0.6005226", "0.59982955", "0.5997042", "0.5994664", "0.59826857", "0.5972987", "0.5955753", "0.59546965", "0.5954222", "0.59416324", "0.59386045", "0.5934335", "0.5920489", "0.5913739", "0.5912476", "0.5912476", "0.5912476", "0.5912476", "0.59097546", "0.5899528", "0.58916783", "0.588798", "0.5864329", "0.5864329", "0.5864329", "0.5864329", "0.5864329", "0.5864329", "0.5864329", "0.5864329", "0.5864329", "0.5864329", "0.5864329", "0.5862751", "0.5859874", "0.58597445", "0.58566207", "0.5853373", "0.5853213", "0.584794", "0.5845539", "0.5832776" ]
0.0
-1
Manager Control end Command Sends a message.
public boolean writeString( String str ) { log_d( "writeString() " + str ); // Check that there's actually something to send if ( str.length() == 0 ) return false; // Get the message bytes and tell the BluetoothChatService to write return writeBytes( str.getBytes() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void endMessage()\n\t{\n\t}", "public void endGameMessage() {\n gameArena.addText(endGameMsg);\n }", "public void endCommand();", "void sendFinishMessage();", "public void sendEndGame (){\n connect();\n try{\n doStream.writeUTF(\"GAME_STOP\");\n doStream.writeUTF(currentUser.getUserName());\n } catch (IOException e){\n e.printStackTrace();\n }\n disconnect();\n }", "public abstract void displayEndMsg ();", "public abstract void systemActionEnds(long ms);", "void endSinglePlayerGame(String message);", "protected abstract String endActionString();", "@Override\n protected void end() {\n System.out.println(\"elevator down command ended\");\n }", "public int onEnd() {\n\t\t\t\tflushMessageQueue();\n\t\t\t\treturn 0;\n\t\t\t}", "public void sendToManager(){\n String receiveMessage;\n while((receiveMessage=receiveFrom(messageReader)) != null){\n manager.manage(receiveMessage);\n }\n }", "protected abstract void displayEndMsg(int resultGame);", "public void setEndAction(String anAction) { _endAction = anAction; }", "public abstract void userActionEnds(long ms);", "public void sendStop(){\n if (isNetworkGame()){\n sender.println(\"stop\");\n sender.flush();\n }\n }", "@Override\n public void notifyEndMove() {\n try {\n if (getClientInterface() != null)\n getClientInterface().notifyEndMove();\n }\n catch (RemoteException e) {\n System.out.println(\"remote sending end move error\");\n }\n }", "public void sendFinished(LinkLayerMessage message) {\n\t\t\n\t}", "void finish(Channel channel, Object msg);", "private void EndTalk() {\n this.mDeleteF = true;\n this.mReadingF = false;\n }", "public abstract void end();", "private void handleMangerKickUserOut() {\n String userName = EventMessageParser.extractUserName(this.message);\n SocketConnection targetConnection = SocketManager.getInstance()\n .getUserConnection(userName);\n targetConnection.send(this.message);\n }", "public String getEndAction() { return _endAction; }", "protected void end() {\n \tRobot.telemetry.setAutonomousStatus(\"Finishing \" + commandName + \": \" + distance);\n Robot.driveDistancePID.disable();\n \tRobot.drivetrain.arcadeDrive(0.0, 0.0);\n }", "public void operationEnd(BGMEvent e);", "@SideOnly(Side.CLIENT)\n private void channelEndClient()\n {\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tisExit = false;\n\t\t}", "public void endSale() {\r\n receipt.outputReceiptItems();\r\n System.out.println(\"\");\r\n System.out.println(\"Thanks for shopping at Java*Mart\");\r\n System.out.println(\"\");\r\n System.out.println(\"[CashRegister] endSale\");\r\n }", "public void sendIOTCloudShutDownMssg() {\n \tTextDataMessage message = new TextDataMessage();\n message.setText(IOTCloudShutDownMssg);\n \n sendPublicMessage(message);\n }", "public abstract void stopMsg();", "private void broadcastEndEvent(PresenceMessage message) {\n\t\t\n\t\tCollection<String> calls = gatewayStorageService.getCallsForNode(message.getFrom().toString());\n\t\tfor (String callId : calls) {\n\t\t\tJID fromJid = createInternalJid(callId, message);\n\t\t\tString target = gatewayStorageService.getclientJID(callId);\n\t\t\tJID targetJid = getXmppFactory().createJID(target);\n\t\t\tCoreDocumentImpl document = new CoreDocumentImpl(false);\n\t\t\torg.w3c.dom.Element endElement = document.createElementNS(\"urn:xmpp:rayo:1\", \"end\");\n\t\t\torg.w3c.dom.Element errorElement = document.createElement(\"error\");\n\t\t\tendElement.appendChild(errorElement);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tPresenceMessage presence = getXmppFactory().createPresence(\n\t\t\t\t\t\tfromJid, targetJid, null, endElement);\n\t\t\t\tpresence.send();\n\t\t\t\tgatewayStatistics.errorProcessed();\n\t\t\t} catch (Exception e) {\t \t\t\n\t\t\t\tlog.error(\"Could not send End event to Jid [%s]\", targetJid);\n\t\t\t\tlog.error(e.getMessage(),e);\n\t\t\t}\t \t\n\t\t}\n\t}", "public abstract void notifyEntityEnd();", "public void handleEndTurn(ActionEvent event){\n sender.sendInput(\"end turn\");\n }", "public void endOfWork() {\n\t\tClientCom clientCom = new ClientCom(RunParameters.ArrivalQuayHostName, RunParameters.ArrivalQuayPort);\n\t\twhile (!clientCom.open()) {\n\t\t\tSystem.out.println(\"Arrival Quay not active yet, sleeping for 1 seccond\");\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tThread.currentThread().interrupt();\n\t\t\t}\n\t\t}\n\t\t;\n\t\tPassenger passenger = (Passenger) Thread.currentThread();\n\t\tMessage pkt = new Message();\n\t\tpkt.setType(MessageType.SIM_ENDED);\n\t\tpkt.setId(passenger.getPassengerId());\n\n\t\tclientCom.writeObject(pkt);\n\t\tpkt = (Message) clientCom.readObject();\n\n\t\tpassenger.setCurrentState(pkt.getState());\n\t\tclientCom.close();\n\t}", "public void action() {\n MessageTemplate template = MessageTemplate.MatchPerformative(CommunicationHelper.GUI_MESSAGE);\n ACLMessage msg = myAgent.receive(template);\n\n if (msg != null) {\n\n /*-------- DISPLAYING MESSAGE -------*/\n try {\n\n String message = (String) msg.getContentObject();\n\n // TODO temporary\n if (message.equals(\"DistributorAgent - NEXT_SIMSTEP\")) {\n \tguiAgent.nextAutoSimStep();\n // wykorzystywane do sim GOD\n // startuje timer, zeby ten zrobil nextSimstep i statystyki\n // zaraz potem timer trzeba zatrzymac\n }\n\n guiAgent.displayMessage(message);\n\n } catch (UnreadableException e) {\n logger.error(this.guiAgent.getLocalName() + \" - UnreadableException \" + e.getMessage());\n }\n } else {\n\n block();\n }\n }", "protected void end() {\n \tlogger.info(\"Ending AutoMoveLiftUp Command, encoder inches = {}\", Robot.liftSubsystem.readEncoderInInches());\n \t\n }", "@Override\n\t\tpublic void endService() {\n\t\t\t\n\t\t}", "public abstract void systemTurnEnds(long ms);", "private void showFinishMsg() {}", "void endTurn(List<ICommand> commands) throws RpcException, StateMachineNotExpectedEventException, GameCommandException;", "@Override\n\tpublic void execute() {\n\t\tcmdReceiver.send();\n\t}", "public void sendMessage(String msg) {\n try {\n out.write(msg);\n out.newLine();\n out.flush();\n \n } catch (IOException e) {\n \tshutdown();\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void msgImDone(Customer customerAgent) {\n\t\t\n\t}", "@Override\n public void send() {\n System.out.println(\"send message by SMS\");\n }", "protected abstract boolean end();", "@Override\n\t\tpublic void end(Bundle msgData) {\n\t\t\tif (isSQ) {\n\t\t\t\tPaintSignatureActivity.saveImageToDB(false, currentWAP,\n\t\t\t\t\t\tworkOrder, null, image);\n\t\t\t} else if (image != null && workInfoConfig != null) {\n\t\t\t\t// 保存拍照\n\t\t\t\tImageUtils mImageUtils = new ImageUtils();\n\t\t\t\tmImageUtils.saveImage(workInfoConfig,\n\t\t\t\t\t\t(WorkApprovalPermission) currentWAP, mWorkOrder, image);\n\t\t\t}\n\t\t\tprgDialog.showMsg(\"成功!\");\n\t\t\tinitPage();\n\t\t\texamineListView.setCurrentEntity(currentWAP);\n\t\t\tprgDialog.dismiss();\n\t\t\t//\n\t\t\tisSaved = true;\n\t\t\tsetResult(BaseListBusActivity.PAUSE_SUCCESS_CODE);\n\t\t\t// ToastUtils.toast(getApplicationContext(), \"作业票暂停成功\");\n\t\t}", "void conversationEnding(Conversation conversation);", "public void end() {\n\n }", "public void end() {\n \t\ttry {\n \t\t\tnameServerClient.leave();\n \t\t} catch (Exception e) {\n \t\t\t__.fwdAbort__(e);\n \t\t}\n \t}", "@Override\n\tpublic void onMessage(CommandMessage msg) {\n\t}", "@Override\n public void handleMessage(Message msg) {\n Toast.makeText(context, \"complete!!!\", Toast.LENGTH_LONG);\n }", "@Override\n public void send(Message msg) {\n if (msg instanceof P1aMsg || msg instanceof P2aMsg) {\n timerLock.lock();\n if (timer == 0) {\n System.out.println(\"Shutdown Now!\");\n cleanShutDown();\n return;\n }\n if (timer > 0) {\n timer--;\n System.out.println(\"Shutdown timer: \" + timer);\n }\n timerLock.unlock();\n }\n ns.send(msg);\n }", "public void exit(int code, String msg, Object... args) {\n if (conn.isConnected()) {\n tellManagers(msg, args);\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n }\n }\n tournamentService.flush();\n userService.flush();\n System.exit(code);\n }", "private void showEndMessage()\n {\n showText(\"Time is up - you win!\", 390, 150);\n showText(\"Your final score: \" + healthLevel + \" points\", 390, 170);\n }", "public void End(int id);", "public abstract void endDXFEntity();", "public void youWinByAbandonment() {\n try {\n if (getClientInterface() != null)\n getClientInterface().gameEndedByAbandonment(\"YOU WON BECAUSE YOUR OPPONENTS HAVE ABANDONED!!\");\n }\n catch (RemoteException e) {\n System.out.println(\"remote sending ended by abandonment error\");\n }\n }", "private void sendBackToTermux(TermuxSessionBridgeEnd bridgeEnd, String command) {\n bridgeEnd.sendBackCommand(command);\n }", "public abstract void interactionEnds(long ms);", "public void sendMessage(String message){\n\t if (mOut != null && !mOut.checkError()) {\n\t mOut.println(message+\"\\n\");\n\t mOut.flush();\n\t }\n\t }", "@Override\n\tpublic void onEndGererCommande()\n\t{\n\t\t\n\t}", "@Override\n\tpublic void sendMessage() {\n\t\t\n\t}", "@Override\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tsendmes(e.getActionCommand());\r\n\t\t\t\t\t\tusertext.setText(\"\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "protected void end ()\n\t{\n\t\tSubsystems.transmission.drive(0.0, 0.0);\n\t\t\n \t//returning driver control.\n \tSubsystems.transmission.setLeftJoystickReversed(false);\n \tSubsystems.transmission.setRightJoystickReversed(false);\n\t}", "@Override\n\tpublic void msgFinishEating(Food food) {\n\t\t\n\t}", "public void handleDone( CommandDone done )\n {\n TTL_CIL_Message msg = null;\n //\tTTL_CIL_Message msg = translator.translate( done );\n\n try\n {\n cil.sendMessage( msg );\n }\n catch( IOException ioe )\n {\n\n }\n // remove msg from Hashtable(?) after dealt with\n return;\n }", "protected void end() {\r\n }", "protected void end() {\r\n }", "protected void end() {\r\n }", "protected void end() {\r\n }", "public void actionPerformed(ActionEvent e) {\n try {\r\n if (roomOrUser == 1) {\r\n // send message to a room\r\n sock.executeCommand(new RoomMessageCommand(new LongInteger(name), textArea_1.getText()\r\n .getBytes()));\r\n textArea_2.setText(textArea_2.getText() + textField.getText() + \": \" + textArea_1.getText()\r\n + \"\\n\");\r\n } else if (roomOrUser == 2) {\r\n // send message to a user\r\n sock.executeCommand(new UserMessageCommand(new LongInteger(name), textArea_1.getText()\r\n .getBytes(), true));\r\n textArea_2.setText(textArea_2.getText() + textField.getText() + \": \" + textArea_1.getText()\r\n + \"\\n\");\r\n }\r\n } catch (InvalidCommandException ex) {\r\n JOptionPane.showMessageDialog(null, \"Unable to join or leave room.\", \"alert\",\r\n JOptionPane.ERROR_MESSAGE);\r\n }\r\n }", "public static void endGame(){\n\t\tmainPanel.grid1.enabledGrid(false);\n\t\tif(speler.heleVlootKapot){\n\t\t\tmainPanel.melding2.setText(\"Helaas, de computer heeft gewonnen.\");\n\t\t}else{\n\t\t\tmainPanel.melding2.setText(\"Gefeliciteerd, u heeft gewonnen.\");\n\t\t}\n\t}", "@Override\n\tpublic void onSendChatDone(byte arg0) {\n\t\t\n\t}", "public void endContact(Contact contact) {\n\n }", "protected void end() {\n// \tSystem.out.println(\"In End \" + minElapsedTime + \" \" + maxElapsedTime);\n \tRobot.drive.setPower(0,0);\n \tnotifier.stop();\n \t//Robot.drive.setLeftOutput(ControlMode.PercentOutput, 0);\n \t//Robot.drive.setRightOutput(ControlMode.PercentOutput, 0);\n }", "public void end();", "void onSendMessageComplete(String message);", "protected void end() {\n \tRobot.m_elevator.disable();\n \tRobot.m_elevator.free();\n }", "@Override\n\tpublic void write() {\n\t\tSystem.out.println(\"Manager: Leave Approved\");\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 }", "void end(String roomId);", "public void sendMsg(){\r\n\t\tsuper.getPPMsg(send);\r\n\t}", "public void end() {\n\t\tend = System.currentTimeMillis();\n\t\t\n\t\tLogger.d(\"[Stopwatch] \" + msg + \" finished in : \" + duration() + \" milliseconds.\");\n\t}", "protected void end() {\r\n\t \tRobotMap.armarm_talon.changeControlMode(CANTalon.ControlMode.PercentVbus);\r\n\t }", "public void sendStopMessage() {\n // A default stop type message\n FirebaseMessage stopMessage = new FirebaseMessage(\"STOP\", null, \"STOP\");\n if (!messageQueue.offer(stopMessage)) {\n logger.error(\"The stop message could not be sent\");\n }\n }", "void sendMessage(ChatMessage msg) {\n\t\ttry {\n\t\t\tsOutput.writeObject(msg);\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tdisplay(\"Não foi possível enviar a mesagem !!!\");\n\t\t}\n\t}", "public void notifyEnd() {\n\n\t}", "void sendMessage() {\n\n\t}", "private void send() {\n Toast.makeText(this, getString(R.string.message_sent, mBody, Contact.byId(mContactId).getName()),\n Toast.LENGTH_LONG).show();\n finish(); // back to DirectShareActivity\n }", "@Override\r\n public void actionEnd() {\n robot.leftDrive.setPower(0);\r\n robot.rightDrive.setPower(0);\r\n\r\n robot.leftDrive.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\r\n robot.rightDrive.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\r\n }", "@Override\n\tpublic void informEnd(List<String> winners) {\n\t}", "protected void end()\n\t{\n\t}", "public void writeMassege() {\n m = ChatClient.message;\n jtaChatHistory.setText(\"You : \" + m);\n //writeMassageServer();\n }", "@Override\n\tpublic void msgAtDoor() {\n\t\t\n\t}", "@Override\n\tpublic void msgAtDoor() {\n\t\t\n\t}", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }" ]
[ "0.7157452", "0.687574", "0.6778826", "0.66281164", "0.63412523", "0.6273718", "0.6272835", "0.62237084", "0.6195902", "0.6063505", "0.6056345", "0.601375", "0.5947765", "0.5923447", "0.5891666", "0.5803307", "0.5798586", "0.57886076", "0.57282245", "0.57278085", "0.56970835", "0.5669363", "0.56642157", "0.5625618", "0.5617787", "0.5574045", "0.55614984", "0.55521107", "0.5525846", "0.55238724", "0.5494168", "0.5485418", "0.54748935", "0.54578835", "0.5438285", "0.5433005", "0.5416249", "0.5414123", "0.54135287", "0.53797954", "0.53757906", "0.5374757", "0.5374438", "0.5368552", "0.53677857", "0.53648424", "0.5339997", "0.53304946", "0.53226507", "0.5321529", "0.5315298", "0.5310372", "0.5292898", "0.52928096", "0.52866656", "0.5286266", "0.52849257", "0.528278", "0.5270179", "0.52632153", "0.5260156", "0.5256948", "0.5250937", "0.52451485", "0.5241584", "0.5233264", "0.522694", "0.522694", "0.522694", "0.522694", "0.5223403", "0.5220948", "0.521654", "0.5215275", "0.52152723", "0.52091897", "0.52068174", "0.52055657", "0.5201094", "0.51999694", "0.5198421", "0.51856244", "0.5181971", "0.5180426", "0.5178016", "0.51723224", "0.51667744", "0.51666206", "0.51657534", "0.51643056", "0.5158433", "0.5158155", "0.5158025", "0.5155985", "0.5155985", "0.51526535", "0.51526535", "0.51526535", "0.51526535", "0.51526535", "0.51526535" ]
0.0
-1
Command end onActivityResult Processing when ActivityResult
public boolean execActivityResult( int request, int result, Intent data ) { boolean ret = true; switch ( request) { case REQUEST_DEVICE_CONNECT: execActivityResultDevice( result, data ); break; case REQUEST_ADAPTER_ENABLE: ret = execActivityResultAdapter( result, data ); break; } return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void end(){\r\n\t\tsetResult( true ); \r\n\t}", "@Override\r\n\t\tprotected void onPostExecute(String result) {\n\t\t\tmDialog.cancel();\r\n\t\t\tIntent intent=new Intent();\r\n\t\t\tsetResult(11, intent);\r\n\t\t\tfinish();\r\n\t\t}", "@Override\n\tpublic void resultActivityCall(int requestCode, int resultCode, Intent data) {\n\n\t}", "@Override\n public void OnActivityResultReceived(int requestCode, int resultCode, Intent data) {\n\n }", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n if(resultCode == ACTIVITY_FOR_RESULT_ID){\r\n setResult(ACTIVITY_FOR_RESULT_ID);\r\n finish();\r\n }\r\n }", "@Override\r\n\tprotected void onActivityResult(int arg0, int arg1, Intent arg2) {\n\t\tsuper.onActivityResult(arg0, arg1, arg2);\r\n\t\tif(arg0 == REQUEST_CODE_SUCCESS && arg1 == RESULT_OK){\r\n\t\t\tthis.finish();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void finish() {\n\t\tIntent data = new Intent();\n\t\t// Activity finished ok, return the data\n\t\t\n\t\t// TODO 2 put the data with the id returnValue\n\t\tdata.putExtra(RATING_OPTION, \"\"+rating.getProgress());\n\t\t\n\t\t// TODO 3 use setResult(RESULT_OK, intent);\n\t\t// to return the Intent to the application\n\t\tsetResult(RESULT_OK, data);\n\n\t\tsuper.finish();\n\t}", "@Override\r\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tXSDK.getInstance().onActivityResult(requestCode, resultCode, data);\r\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\r\n\t}", "void finish(String result, int resultCode);", "@Override\n protected void onReceiveResult(int resultCode, Bundle resultData) {\n switch (resultCode) {\n case 1:\n Log.d(TAG,\"yay running\");\n break;\n case 0:\n Log.d(TAG,\"yay finish\");\n break;\n case -1:\n Log.d(TAG,\"yay error\");\n break;\n }\n }", "@Override\n public void handleResult(Intent data) {\n }", "@Override\n public void finish() {\n // Send the result or an error and clear out the response\n if (this.mAccountAuthenticatorResponse != null) {\n if (this.mResultBundle != null) {\n this.mAccountAuthenticatorResponse.onResult(this.mResultBundle);\n } else {\n this.mAccountAuthenticatorResponse.onError(AccountManager.ERROR_CODE_CANCELED, \"canceled\");\n }\n // Clear out the response\n this.mAccountAuthenticatorResponse = null;\n }\n super.finish();\n }", "void onComplete(ResultModel result);", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\t Session.getActiveSession().onActivityResult(this, requestCode, resultCode, data);\n\t}", "@Override\n\t\tprotected void onPostExecute(Integer result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\t\n\t\t\t\n\t\t\tif(result == 200){\n\t\t\t\tToast.makeText(EditSheep.this, \"Saving..\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t\t/*new Handler().postDelayed(new Runnable() {\n\t\t\t\t@SuppressLint(\"NewApi\")\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tIntent intent = getParentActivityIntent();\n\t\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t source.close();\n\t\t\t\t\tfinish();\n\t\t\t\t}\n\t\t\t}, 0);*/\n\t\t}", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if(resultCode!= Activity.RESULT_OK){\n return;\n }\n\n }", "@Override\n protected void onActivityResult(final int requestCode, final int resultCode, final Intent data)\n {\n super.onActivityResult(requestCode, resultCode, data);\n callbackManager.onActivityResult(requestCode, resultCode, data);\n }", "@Override\n\tpublic void finish() {\n\t\tif (_accountAuthenticatorResponse != null) {\n\t\t\t// send the result bundle back if set, otherwise send an error.\n\t\t\tif (_resultBundle != null)\n\t\t\t\t_accountAuthenticatorResponse.onResult(_resultBundle);\n\t\t\telse\n\t\t\t\t_accountAuthenticatorResponse.onError(AccountManager.ERROR_CODE_CANCELED, \"canceled\");\n\t\t\t_accountAuthenticatorResponse = null;\n\t\t}\n\t\tsuper.finish();\n\t}", "@Override\n public void completed(Integer result, String attachment)\n {\n }", "private void handleActivityStartFinish() {\n if (curState == 1) {\n curReclaimFailCount = 0;\n lastReclaimFailTime = -1;\n handler.removeMessages(13);\n setTargetBuffer();\n curState = 0;\n Slog.i(TAG, \"handle activity start finish, reset failCount, targetBuffer:\" + targetBuffer);\n return;\n }\n Slog.e(TAG, \"invalid activty start finish msg\");\n }", "@Override\n protected void onPostExecute(Void result) {\n Intent intent = new Intent(game_play.this, user_input.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK|Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n finish();\n }", "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n }", "@Override\r\n\t\tprotected void onPostExecute(Object result) {\n\t\t\tsuper.onPostExecute(result);\r\n\t\t\tif (result != null && (Boolean) result) {\r\n\t\t\t\tIntent intent = new Intent();\r\n\t\t\t\tBundle bundle = new Bundle();\r\n\t\t\t\tbundle.putString(MainActivity.TAG, \"1000\");\r\n\t\t\t\tintent.putExtras(bundle);\r\n\t\t\t\tintent.setAction(ReciverContents.PaySuccess);\r\n\t\t\t\tactivcty.sendBroadcast(intent);\r\n\t\t\t}\r\n\r\n\t\t}", "public void onFinish() {\n }", "@Override\n\t\t\tpublic void onComplete(Bundle values) {\n\n\t\t\t\tfinish();\n\t\t\t}", "public void onFinish() {\n\n }", "public abstract void onFinish();", "protected void onPostExecute(Intent result)\n\t{\t\t\n\t\tresult.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\tcontext.startActivity(result);\n\t\tif (executorToFinish != null)\n\t\t\texecutorToFinish.finish();\n\t}", "protected void onActivityResult(int requestCode, int resultCode, Intent data){\n finish();\n startActivity(getIntent());\n }", "@Override\n protected void onPostExecute(Boolean result)\n {\n // @todo: make an interface instead of a cast\n Update activity = (Update)m_ctx;\n activity.DeploymentFinished(result, m_ErrorCode);\n }", "@Override\r\n\tpublic void onFinish(ITestContext Result) {\n\t\tSystem.out.println(\"onFinish :\"+ Result.getName());\r\n\t}", "public void onFinish() {\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\t\n\t}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent arg2) {\n\t\tsuper.onActivityResult(requestCode, resultCode, arg2);\n\n\t\tswitch (resultCode) {\n\t\tcase 0:// finish\n\t\t\tCustomApplication.app\n\t\t\t\t\t.finishActivity(LessonFlashCardOpActivity.this);\n\t\t\tbreak;\n\t\tcase 1:// redo\n\t\t\tindex = 0;\n\t\t\tsetText();\n\t\t\tplay();\n\t\t\tgallery.setSelection(index);// 选中当前页面\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\r\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n\t\t// TODO - fill in here\r\n\r\n\r\n\r\n\t}", "@Override\n public void onFinish() {\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tif(requestCode == 1){\n\t\t\tif(resultCode == RESULT_OK){\n\t\t\t\tsetResult(RESULT_OK);\n\t\t\t\tfinish();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void onFinish(ITestContext result) {\n\t\t\n\t}", "@Override\r\n public void onFinish() {\n }", "@Override\n\tpublic void finish() {\n\t Intent data = new Intent();\n\t\t data.putExtra(\"returnKey1\",id );\n \t setResult(2, data);\n\t\t super.finish();\n\t}", "@Override\n public void onClick(View v) {\n setResult(Activity.RESULT_OK, new Intent());\n finish();\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == 4 && resultCode == 4) {\n setResult(4);\n finish();\n } else if (requestCode == 4 && resultCode == 3) {\n setResult(3);\n finish();\n }\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tIntent reintent = new Intent();\n\t\tsetResult(601, reintent);\n\t\tfinish();\n\t}", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent intent) {\n// switch (resultCode) { //resultCode为回传的标记,我在第二个Activity中回传的是RESULT_OK\n// case Activity.RESULT_OK:\n// Bundle b=intent.getExtras(); //data为第二个Activity中回传的Intent\n// barCode = b.getString(\"code\");//str即为回传的值\n// mCallbackContext.success(barCode);\n// break;\n// default:\n// break;\n// }\n }", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n ModelRuleAction action = RuleBuilder.instance().getChosenRuleAction();\r\n if (action != null) {\r\n finish();\r\n }\r\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "@Override\r\n\tpublic void finish() {\n\t\tIntent it = new Intent();\r\n\t\tit.putExtra(\"ROOM_ID\", roomID);\r\n\t\tit.putExtra(\"NAME_DEVICE\", nameDevice);\r\n\t\tit.putExtra(\"TYPE_DEVICE\", typeDevice);\r\n\t\tit.putExtra(\"PORT_DEVICE\", portDevice);\r\n\t\tit.putExtra(\"STATUS_DEVICE\", statusDevice);\r\n\t\tsetResult(RESULT_OK, it);\r\n\t\tsuper.finish();\r\n\t}", "@Override\n\t\tprotected void onPostExecute(String result) {\n\t\t\tsuper.onPostExecute(result);\n \t\t\n\t\t\t//close the dialog and the activity\n\t\t\tsave.dismiss();\n \t\tfinish();\n\t\t}", "public void onActivityResult(int requestCode, int resultCode, Intent intent) {\n Log.d(LOG_TAG, \"onActivityResult\");\n if (resultCode == Activity.RESULT_OK) {\n Log.d(LOG_TAG, \"requestCode: \" + requestCode);\n switch (requestCode) {\n case 300:\n AdobeSelection selection = getSelection(intent);\n\n Intent data = new Intent();\n data.putExtras(intent);\n setResult(Activity.RESULT_OK,data);\n finish();\n\n break;\n }\n } else if (resultCode == Activity.RESULT_CANCELED) {\n //this.callbackContext.error(\"Asset Browser Canceled\");\n Log.d(LOG_TAG, \"Asset Browser Canceled\");\n finish();\n }\n }", "@Override\n protected void onPostExecute(String result){\n finish();\n }", "@Override\n\t\t\t\t\tpublic void onFinish() {\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onFinish() {\n\t\t\t\t\t}", "@Override\n public void onClick(View view) {\n isFromResultActivity=false;\n finish();\n }", "@Override\r\n public void onClick(View v) {\n setResult(1);\r\n finish();\r\n }", "public void onComplete() {\r\n\r\n }", "public void onFinish() {\n\n\t}", "@Override\n public void onFinish() {\n }", "@Override\n public void run() {\n thisActivity.setResult(FROM_LOADINGSCREEN_NO_ADS_FOUND);\n thisActivity.finish();\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\ttry\n\t\t{\n\t\t\tif ( requestCode == Constants.REQUEST_CODE_COMMON &&\n\t\t\t\t\tresultCode == RESULT_OK )\n\t\t\t{\n\t\t\t\tsetResult(RESULT_OK);\n\t\t\t\tfinish();\n\t\t\t}\n\t\t\t\n\t\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\t}\n\t\tcatch( Exception ex )\n\t\t{\n\t\t\twriteLog( ex.getMessage());\n\t\t}\n\t}", "@Override\n public void onTaskComplete(String result) {\n\n //TODO\n\n }", "@Override\n public void onFinish() {\n }", "@Override\n\t\tprotected void onPostExecute(Void result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\tprogressDialog.dismiss();\n\t\t\tif(flag)\n\t\t\t{\n\t\t\tToast.makeText(getApplicationContext(),arr[1], Toast.LENGTH_LONG).show();\n\t\t\tsetResult(RESULT_OK);\n\t\t\tManualShareActivity.this.finish();\n\t\t\t}else\n\t\t\t{\n\t\t\t\tToast.makeText(getApplicationContext(),err , Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t}", "@Override\n public void onActivityResult(int requestCode, int resultCode,\n Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n uiHelper.onActivityResult(requestCode, resultCode, data);\n }", "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n finish(resultCode, data);\n }", "@Override\n public void onSuccess(Void unused) {\n finish();\n }", "@Override\n public void onSuccess(Void unused) {\n finish();\n }", "@Override\n\tpublic void finish() {\n\t\t\n\t\tIntent i=new Intent();\n\t\tBundle b=new Bundle();\n\t\tb.putString(\"Button\", ReturnString);\n\t\ti.putExtras(b);\n\t\t\n\t\tsetResult(RESULT_OK, i);\n\t\tsuper.finish();\n\t}", "public void finished(final boolean result) {\r\n\t\t\thandler.post(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\tif (result) {\r\n\t\t\t\t\tif (controller == MultiController.BLUETOOTH) {\r\n\t\t\t\t\t\tfinishActivity(BluetoothHandler.REQUEST_ADDRESS);\r\n\t\t\t\t\t\tfinReq = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tstartMultiPlayer();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfailedMultiPlayer();\r\n\t\t\t\t\tfinReq = false;\r\n\t\t\t\t}\t\t\r\n\t\t\t}});\r\n\t\t}", "@Override\n public void onClick(View v) {\n Intent returnIntent = new Intent();\n setResult(Activity.RESULT_OK, returnIntent);\n finish();\n }", "@Override\n\t\t\t\t\tpublic void onFinish() {\n\n\t\t\t\t\t}", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tResultActivity.this.finish();\r\n\t\t\t}", "public void finish(ServiceResult result);", "@Override\n public void onFinish() {\n\t\t\t\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n }", "@Override\n protected void onPostExecute(Boolean result) {\n \tsuper.onPostExecute(result);\n \ttry {\n \t\tthis.dialog.dismiss();\n \t} catch(Exception ex){\n \t\tex.printStackTrace();\n \t}\n \tif(result){\n \t\tif(!isEdit){\n \t\t\t//CreateAccountTask task = new CreateAccountTask(this._activity, apiHost, clinicCode, displayName, username, password, smUsername, smPassword);\n \t\t\t//task.execute();\n \t\t\tCreateAccountTask task = new CreateAccountTask(this._activity, apiHost, dictators, username, password);\n \t\t\ttask.execute();\n \t\t}else{\n \t\t\teditingAccount = AndroidState.getInstance().getUserState().getCurrentAccount();\n \t\t\t\n \t\t\tEditAccountTask task = new EditAccountTask(activity, editingAccount, apiHost, clinicCode, \n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisplayName, username, password, smUsername, smPassword, isCurrent, isChanged);\n \t task.execute();\n \t\t}\n \t} else {\n \t\tif(!authFailFlag){\n\t \tIntent i = new Intent(activity, JobListActivity.class);\n\t \ti.putExtra(\"qchanged\", true);\n\t \tactivity.startActivity(i);\n\t \tactivity.finish();\n \t\t}\n \t}\n }", "public interface IntentResultListener {\n void gotIntentResult(int requestCode, int resultCode, Intent resultData);\n}", "@Override\n protected void onPostExecute(String result) {\n Toast.makeText(context, \"Email Delivery: \"+result, Toast.LENGTH_SHORT).show();\n setResult(RESULT_OK);\n finish();\n }", "protected void finishExecution() {\r\n\r\n\t}", "@Override\r\n\t\t\tpublic void onComplete() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onComplete() {\n\t\t\t\t\r\n\t\t\t}", "void onFinish();", "public void finishActivity(String result_msg)\n {\n try {\n Toast.makeText(this,result_msg,Toast.LENGTH_SHORT).show();\n finish();\n }\n catch (Exception e)\n {\n Log.e(\"TAG:\",e.getMessage());\n Toast.makeText(this,e.getMessage(),Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "@Override\n\t\t\t\t\tpublic void onComplete() {\n\t\t\t\t\t}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tmediaManager.onActivityResult(requestCode, resultCode, data);\n\t}", "@Override\n protected void onPostExecute(Void result) {\n Toast.makeText(Intent_Test_Juego.this,\n \"tiempo acabado\", Toast.LENGTH_LONG).show();\n actividad.finish();\n }", "@Override\n\t\tpublic void onFinish() {\n\t\t}", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }" ]
[ "0.69068265", "0.68531114", "0.6851621", "0.68507254", "0.6847835", "0.68021625", "0.6791701", "0.67431664", "0.67327386", "0.66900665", "0.6678416", "0.6661554", "0.6660202", "0.6600704", "0.6565698", "0.656468", "0.6542877", "0.6530116", "0.6525045", "0.65198785", "0.6509829", "0.6447156", "0.64459705", "0.64425826", "0.64226377", "0.64206266", "0.640894", "0.63902646", "0.63856155", "0.6385037", "0.6374932", "0.63739604", "0.6362613", "0.63584065", "0.6351112", "0.63490134", "0.63329947", "0.6329441", "0.631105", "0.630512", "0.63047326", "0.63036984", "0.6301511", "0.62980044", "0.6289897", "0.62884027", "0.62884027", "0.6287306", "0.62723184", "0.62716675", "0.6262985", "0.6250995", "0.6250995", "0.6250228", "0.62474066", "0.6244271", "0.62294346", "0.622837", "0.6228234", "0.6226928", "0.62237513", "0.6223154", "0.6222451", "0.621792", "0.6212402", "0.62107015", "0.62107015", "0.6210272", "0.6203754", "0.62001216", "0.619983", "0.61990017", "0.61923", "0.6185132", "0.61849266", "0.61815614", "0.6173787", "0.61737484", "0.61684954", "0.6164511", "0.6164511", "0.6164002", "0.6159349", "0.61561", "0.61561", "0.61561", "0.6152899", "0.6149471", "0.61491114", "0.61466795", "0.6136297", "0.6136297", "0.6136297", "0.6136297", "0.6136297", "0.6136297", "0.6136297", "0.6136297", "0.6136297", "0.6136297", "0.6136297" ]
0.0
-1
Processing when connecting Bluetooth Device
public void execActivityResultDevice( int result, Intent data ) { log_d( "execActivityResultDevice()" ); // no action if debug if ( BT_DEBUG_SERVICE ) return; // When DeviceListActivity returns with a device to connect if ( result == Activity.RESULT_OK ) { log_d( "RESULT OK" ); // Get the device MAC address String address = data.getExtras().getString( BT_EXTRA_DEVICE_ADDRESS ); // Get the BluetoothDevice object BluetoothDevice device = mBluetoothAdapter.getRemoteDevice( address ); if ( mBluetoothService != null ) { log_d( "connect " + address ) ; // Attempt to connect to the device mBluetoothService.connect( device ); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void bluetoothConnect() {\n\n btDevice = btAdapter.getRemoteDevice(EDISON_ADDRESS);\n if (btDevice == null) {\n Log.d(TAG,\"get remote device fail!\");\n finish();\n }\n\n try {\n btSocket = btDevice.createRfcommSocketToServiceRecord(SSP_UUID);\n } catch (IOException e) {\n Log.d(TAG,\"bluetooth socket create fail.\");\n }\n //save resource by cancel discovery\n btAdapter.cancelDiscovery();\n\n //connect\n try {\n btSocket.connect();\n Log.d(TAG,\"Connection established.\");\n } catch ( IOException e) {\n try {\n btSocket.close();\n }catch (IOException e2) {\n Log.d(TAG,\"unable to close socket after connect fail.\");\n }\n }\n\n //prepare outStream to send message\n try {\n outStream = btSocket.getOutputStream();\n } catch (IOException e) {\n Log.d(TAG,\"output stream init fail!\");\n }\n\n }", "private void bluetooth_connect_device() throws IOException\n {\n try\n {\n myBluetooth = BluetoothAdapter.getDefaultAdapter();\n address = myBluetooth.getAddress();\n pairedDevices = myBluetooth.getBondedDevices();\n if (pairedDevices.size()>0)\n {\n for(BluetoothDevice bt : pairedDevices)\n {\n address=bt.getAddress().toString();name = bt.getName().toString();\n Toast.makeText(getApplicationContext(),\"Connected\", Toast.LENGTH_SHORT).show();\n\n }\n }\n\n }\n catch(Exception we){}\n myBluetooth = BluetoothAdapter.getDefaultAdapter();//get the mobile bluetooth device\n BluetoothDevice dispositivo = myBluetooth.getRemoteDevice(address);//connects to the device's address and checks if it's available\n btSocket = dispositivo.createInsecureRfcommSocketToServiceRecord(myUUID);//create a RFCOMM (SPP) connection\n btSocket.connect();\n try { t1.setText(\"BT Name: \"+name+\"\\nBT Address: \"+address); }\n catch(Exception e){}\n }", "public void initBT() {\n\n\t\tStatusBox.setText(\"Connecting...\");\n\t\tLog.e(TAG, \"Connecting...\");\n\t\t\n\t\tif (D) {\n\t\t\tLog.e(TAG, \"+ ON RESUME +\");\n\t\t\tLog.e(TAG, \"+ ABOUT TO ATTEMPT CLIENT CONNECT +\");\n\t\t}\n\t\t\n\t\t//If Mac Address is null then stop this process and display message\n\t\tif(MAC_ADDRESS == \"\"){\n\t\t\tLog.e(TAG,\"No MAC Address Found...\");\n\t\t\tToast.makeText(getApplicationContext(), \"No Mac Address found. Please Enter using button.\",Toast.LENGTH_SHORT );\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// When this returns, it will 'know' about the server,\n\t\t// via it's MAC address.\n\t\tBluetoothDevice device = null;\n\t\ttry {\n\t\t\tdevice = mBluetoothAdapter.getRemoteDevice(MAC_ADDRESS);\n\t\t} catch (Exception e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tToast.makeText(getApplicationContext(), \"NOT Valid BT MAC Address\", Toast.LENGTH_SHORT);\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t\t// returns firefly e350\n\t\tLog.e(TAG, \"device name: \" + device.getName());\n\n\t\t// We need two things before we can successfully connect\n\t\t// (authentication issues aside): a MAC address, which we\n\t\t// already have, and an RFCOMM channel.\n\t\t// Because RFCOMM channels (aka ports) are limited in\n\t\t// number, Android doesn't allow you to use them directly;\n\t\t// instead you request a RFCOMM mapping based on a service\n\t\t// ID. In our case, we will use the well-known SPP Service\n\t\t// ID. This ID is in UUID (GUID to you Microsofties)\n\t\t// format. Given the UUID, Android will handle the\n\t\t// mapping for you. Generally, this will return RFCOMM 1,\n\t\t// but not always; it depends what other BlueTooth services\n\t\t// are in use on your Android device.\n\t\ttry {\n\t\t\t\n\t\t\tint currentapiVersion = android.os.Build.VERSION.SDK_INT;\n\t\t\t\n\t\t\t//RFCOMM connection varies depending on android version. Fixes bug in Gingerbread and newer where always asks for BT Pairing code.\n\t\t\tif (currentapiVersion >= android.os.Build.VERSION_CODES.GINGERBREAD_MR1){\n\t\t\t\t//used in android >= 2.3.3\n\t\t\t\tbtSocket = device.createInsecureRfcommSocketToServiceRecord(MY_UUID);\n\t\t\t} else if (currentapiVersion < android.os.Build.VERSION_CODES.GINGERBREAD_MR1){\n\t\t\t\t//used in android < 2.3.3\n\t\t\t\tbtSocket = device.createRfcommSocketToServiceRecord(MY_UUID);\n\t\t\t}\n\t\t\t\n\t\t\tLog.e(TAG, \"ON RESUME: Socket created!\");\n\t\t\n\t\t\n\t\t\t// Discovery may be going on, e.g., if you're running a\n\t\t\t// 'scan for devices' search from your handset's Bluetooth\n\t\t\t// settings, so we call cancelDiscovery(). It doesn't hurt\n\t\t\t// to call it, but it might hurt not to... discovery is a\n\t\t\t// heavyweight process; you don't want it in progress when\n\t\t\t// a connection attempt is made.\n\t\t\tmBluetoothAdapter.cancelDiscovery();\n\n\t\t\tmyBT = new ConnectedThread(btSocket);\n\t\t\t\n\t\t\t\n\t\t\t// don't write to the streams unless they are created\n\t\t\tif (myBT.BTconnStatus) {\n\t\t\t\t\n\t\t\t\tStatusBox.setText(\"CONNECTED\");\n\t\t\t\tLog.e(TAG, \"CONNECTED\");\n\t\t\t\t\n\t\t\t\t// ST,255 enables remote configuration forever...need this if\n\t\t\t\t// resetting\n\t\t\t\t// PIO4 is held high on powerup then toggled 3 times to reset\n\n\t\t\t\t// GPIO Commands to BT device page 15 of commands datasheet\n\t\t\t\tbyte[] cmdMode = { '$', '$', '$' };\n\t\t\t\tmyBT.write(cmdMode);\n\t\t\t\tmyBT.run();\n\n\t\t\t\t// S@,8080 temp sets GPIO-7 to an output\n\t\t\t\tbyte[] cmd1 = { 'S', '@', ',', '8', '0', '8', '0', 13 };\n\n\t\t\t\t// S%,8080 perm sets GPIO-7 to an output on powerup. only done once\n\t\t\t\t// byte [] cmd1 = {'S','%',',','8','0','8','0',13};\n\n\t\t\t\tmyBT.write(cmd1);\n\t\t\t\tmyBT.run();\n\n\t\t\t\t// S&,8000 drives GPIO-7 low\n\t\t\t\t// byte [] cmd2 = {'S','^',',','8','0','0','0',13};\n\n\t\t\t\t// make it so cmd mode won't timeout even after factory reset\n\t\t\t\tbyte[] cmd3 = { 'S', 'T', ',', '2', '5', '5', 13 };\n\t\t\t\tmyBT.write(cmd3);\n\t\t\t\tmyBT.run();\n\n\t\t\t} else {\n\t\t\t\t//StatusBox.setText(\"NOT Connected\");\t\n\t\t\t\tLog.e(TAG, \"NOT Connected\");\n\t\t\t}\n\t\t\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\tif (D)\n\t\t\t\tLog.e(TAG, \"ON RESUME: Socket creation failed.\", e);\n\t\t}\n\n\t\t\n\t\t\n\t}", "@Override\n public void onBluetoothDeviceFound(BluetoothDevice btDevice) {\n }", "private void bluetoothSelected(JSONArray data, final CallbackContext callbackContext) throws JSONException {\n String arrayList = data.getString(0);\n\n String[] parts = arrayList.split(\"_\");\n\n String name = parts[0];\n String macAddress = parts[1];\n\n PinpadObject pinpad = new PinpadObject(name, macAddress, false);\n\n // Passa o pinpad selecionado para o provider de conexao bluetooth.\n BluetoothConnectionProvider bluetoothConnectionProvider = new BluetoothConnectionProvider(StoneSDK.this.cordova.getActivity(), pinpad);\n bluetoothConnectionProvider.setDialogMessage(\"Criando conexao com o pinpad selecionado\"); // Mensagem exibida do dialog.\n bluetoothConnectionProvider.setWorkInBackground(false); // Informa que havera um feedback para o usuario.\n bluetoothConnectionProvider.setConnectionCallback(new StoneCallbackInterface() {\n\n public void onSuccess() {\n Toast.makeText(StoneSDK.this.cordova.getActivity(), \"Pinpad conectado\", Toast.LENGTH_SHORT).show();\n callbackContext.success();\n }\n\n public void onError() {\n Toast.makeText(StoneSDK.this.cordova.getActivity(), \"Erro durante a conexao. Verifique a lista de erros do provider para mais informacoes\", Toast.LENGTH_SHORT).show();\n callbackContext.error(\"Erro durante a conexao. Verifique a lista de erros do provider para mais informacoes\");\n }\n\n });\n bluetoothConnectionProvider.execute(); // Executa o provider de conexao bluetooth.\n }", "void onConnectDeviceComplete();", "public void run() {\r\n BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();\r\n adapter.cancelDiscovery();\r\n try {\r\n btSocket.connect();\r\n Log.d(\"TAG\", \"Device connected\");\r\n isConnected = true;\r\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);\r\n SharedPreferences.Editor edit = preferences.edit();\r\n edit.putBoolean(\"Connection\", isConnected);\r\n edit.apply();\r\n handler.obtainMessage(CONNECTING_STATUS, 1, -1).sendToTarget();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n try {\r\n isConnected = false;\r\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);\r\n SharedPreferences.Editor edit = preferences.edit();\r\n edit.putBoolean(\"Connection\", isConnected);\r\n edit.apply();\r\n btSocket.close();\r\n handler.obtainMessage(CONNECTING_STATUS, -1,-1).sendToTarget();\r\n } catch (IOException f) {\r\n f.printStackTrace();\r\n }\r\n return;\r\n }\r\n //Perform work from connection in a separate thread\r\n connectedThread = new ConnectedThread(btSocket);\r\n connectedThread.run();\r\n }", "public void startConnection(){\n startBTConnection(mBTDevice,MY_UUID_INSECURE);\n }", "private void connectBluetooth() {\n try {\n if (blueTooth == null && macSet) {\n Log.d(\"lol\", \"macSet connect bluetooootooththoth\");\n blueTooth = new BluetoothConnection(macAddress, this, listener);\n blueTooth.connect();\n }\n } catch (Exception e) {\n Log.d(\"lol\", \"Failed connection: \" + e.getMessage() + \" \" + e.getClass());\n }\n }", "public void connect_bt(String deviceAddress) {\n Intent intent = new Intent(\"OBDStatus\");\n intent.putExtra(\"message\", \"Trying to connect with device\");\n context.sendBroadcast(intent);\n disconnect();\n BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter();\n btAdapter.cancelDiscovery();\n if (deviceAddress == null || deviceAddress.isEmpty()) {\n intent.putExtra(\"message\", \"Device not found\");\n context.sendBroadcast(intent);\n return;\n }\n\n if (!btAdapter.isEnabled()) {\n intent.putExtra(\"message\", \"Bluetooth is disabled\");\n context.sendBroadcast(intent);\n return;\n }\n\n BluetoothDevice device = btAdapter.getRemoteDevice(deviceAddress);\n\n UUID uuid = UUID.fromString(\"00001101-0000-1000-8000-00805F9B34FB\");\n\n try {\n socket = device.createInsecureRfcommSocketToServiceRecord(uuid);\n socket.connect();\n isConnected = true;\n intent.putExtra(\"message\", \"OBD connected\");\n context.sendBroadcast(intent);\n } catch (IOException e) {\n Log.e(\"gping2\", \"There was an error while establishing Bluetooth connection. Falling back..\", e);\n Class<?> clazz = socket.getRemoteDevice().getClass();\n Class<?>[] paramTypes = new Class<?>[]{Integer.TYPE};\n BluetoothSocket sockFallback = null;\n try {\n Method m = clazz.getMethod(\"createInsecureRfcommSocket\", paramTypes);\n Object[] params = new Object[]{Integer.valueOf(1)};\n sockFallback = (BluetoothSocket) m.invoke(socket.getRemoteDevice(), params);\n sockFallback.connect();\n isConnected = true;\n socket = sockFallback;\n intent.putExtra(\"message\", \"OBD connected\");\n context.sendBroadcast(intent);\n } catch (Exception e2) {\n intent.putExtra(\"message\", \"OBD Connection error\");\n context.sendBroadcast(intent);\n Log.e(\"gping2\", \"BT connect error\");\n }\n }\n this.deviceAddress = deviceAddress;\n saveNewAddress();\n }", "@Override\n\t\tpublic void run() {\n\t\t\ttry{\n//\t\t\t\tdevAddr = devices.get(position).split(\"\\\\|\")[1];\n//\t\t\t\tbtAdapt.cancelDiscovery();\n//\t\t\t\t\n//\t\t\t\tbtSocket = btAdapt.getRemoteDevice(devAddr).createRfcommSocketToServiceRecord(uuid);\n//\t\t\t\tbtSocket.connect();Log.e(tag, \"connected\");\n\t\t\t\tInetAddress severInetAddr=InetAddress.getByName(\"120.105.129.108\");\n\t\t\t\tWifisocket = new Socket(severInetAddr, 8101);\n\t\t\t\t\n\t\t\t\tsynchronized (this) {\n//\t\t\t\t\tbtIn = btSocket.getInputStream();\n//\t\t\t\t\tbtOut = btSocket.getOutputStream();\n\t\t\t\t\tbtIn = Wifisocket.getInputStream();\n\t\t\t\t\tbtOut = Wifisocket.getOutputStream();\n\t\t\t\t\tLog.e(tag, \"connected\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tThread.sleep(100);\n\t\t\t\tsetUpAsForeground(\"Wifi已連線\");\n\t\t\t} catch( IOException | InterruptedException e ){\n\t\t\t\te.printStackTrace();\n\t\t\t\ttry{\n//\t\t\t\t\tbtSocket.close();\n//\t\t\t\t\tWifisocket.close();\n\t\t\t\t\tThread.sleep(1500);\n\t\t\t\t\tsetUpAsForeground(\"Wifi未連線\");\n\t\t\t\t\tLog.i(\"exiconne\", \"bluetoohservice bye!;\");\n\t\t\t\t} catch(InterruptedException e1){\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\tLog.i(\"exiconne\", \"bluetoohservice bye!;\");\n\t\t\t\t}\n//\t\t\t\tbtSocket = null;\n\t\t\t\tWifisocket = null;\n\t\t\t\tmBTState = BTState.stopped;\n\t\t\t\tBluetoothConnect.mBTstate = BTstate.opened;\n\t\t\t}\n\n\t\t}", "private void connect() {\n // after 10 seconds its connected\n new Handler().postDelayed(\n new Runnable() {\n public void run() {\n Log.d(TAG, \"Bluetooth Low Energy device is connected!!\");\n // Toast.makeText(getApplicationContext(),\"Connected!\",Toast.LENGTH_SHORT).show();\n stateService = Constants.STATE_SERVICE.CONNECTED;\n startForeground(Constants.NOTIFICATION_ID_FOREGROUND_SERVICE, prepareNotification());\n }\n }, 10000);\n\n }", "public void openBluetooth() throws IOException {\n UUID uuid = UUID.fromString(\"00001101-0000-1000-8000-00805f9b34fb\"); //Standard SerialPortService ID\n mmSocket = mmDevice.createRfcommSocketToServiceRecord(uuid);\n mmSocket.connect();\n mmOutputStream = mmSocket.getOutputStream();\n mmInputStream = mmSocket.getInputStream();\n\n beginListenForData();\n\n btStatusDisplay.setText(\"Bluetooth Connection Opened\");\n }", "private void connectToAdapter() {\n if (chosen) {\n BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter();\n BluetoothDevice device = btAdapter.getRemoteDevice(deviceAddress);\n UUID uuid = UUID.fromString(\"00001101-0000-1000-8000-00805F9B34FB\");\n // creation and connection of a bluetooth socket\n try {\n BluetoothSocket socket = device.createInsecureRfcommSocketToServiceRecord(uuid);\n socket.connect();\n setBluetoothSocket(socket);\n connected = true;\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n connect.setText(\"Disconnect\");\n connect.setTextColor(Color.RED);\n }\n });\n } catch (IOException e) {\n Log.d(\"Exception\", \"Bluetooth IO Exception c\");\n connected = false;\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(currContext, R.string.cannotConnect, Toast.LENGTH_SHORT).show();\n connect.setText(\"Connect\");\n connect.setTextColor(Color.BLACK);\n mode.setEnabled(true);\n }\n });\n }\n }\n if (bluetoothSocket.getRemoteDevice().getAddress() != null)\n Log.d(TAG, \"Bluetooth connected\");\n Log.d(TAG, \"Device address: \" + bluetoothSocket.getRemoteDevice().getAddress());\n initializeCom();\n }", "public void buttonClick_connect(View view)\n\t{\n\t\tAppSettings.showConnectionLost = false;\n\t\tLog.i(TAG, \"showConnectionLost = false\");\n\t\t\n\t\tAppSettings.bluetoothConnection = new BluetoothConnection(this.getApplicationContext(), this.btConnectionHandler);\n\t\tBluetoothAdapter btAdapter = AppSettings.bluetoothConnection.getBluetoothAdapter();\n\t\t\n\t\t// If the adapter is null, then Bluetooth is not supported\n if (btAdapter == null) {\n \tToast.makeText(getApplicationContext(), R.string.bt_not_available, Toast.LENGTH_LONG).show();\n }\n else {\n \t// If Bluetooth is not on, request that it be enabled.\n if (!btAdapter.isEnabled()) {\n Intent enableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableIntent, REQUEST_ENABLE_BT);\n }\n else {\n \t// Launch the DeviceListActivity to see devices and do scan\n Intent serverIntent = new Intent(getApplicationContext(), DeviceListActivity.class);\n startActivityForResult(serverIntent, REQUEST_CONNECT_DEVICE);\n }\n }\n\t}", "private boolean mConnect2Device1(BluetoothDevice oDevice1){\n mStateSet(kBT_Connecting); //Connecting to a server\n if (mIsAndroidDevice(oDevice1)) {\n if (mConnect2Device_Sub(UUID_ANDROID_INSECURE, oDevice1)) {\n mStateSet(kBT_Connected1);\n mMsgLog(\"ANDROID Connected: \" +oDevice1.getName());\n oDevice=oDevice1;\n return true;\n }\n } else if (mIsClassic(oDevice1)) { // Classic bluetoot device\n if ( mConnect2Device_Sub(UUID_LMDEVICE_INSECURE, oDevice1)) {\n mStateSet(kBT_Connected1);\n mMsgLog(9,\"Classic bluetooth Connected: \" +oDevice1.getName() );\n oDevice=oDevice1;\n return true;\n }\n }\n mMsgDebug(\"Could not connect\");\n // mBTClose1();\n return false;\n}", "public void startBTConnection(BluetoothDevice device, UUID uuid){\n Log.d(TAG, \"startBTConnection: Initializing RFCOM Bluetooth Connection.\");\n mBluetoothConnection.startClient(device,uuid);\n }", "public void connect()\n\t{\n\t\tUUID uuid = UUID.fromString(\"00001101-0000-1000-8000-00805f9b34fb\"); //Standard SerialPortService ID\n\t\ttry\n\t\t{\n\t sock = dev.createRfcommSocketToServiceRecord(uuid); \n\t sock.connect();\n\t connected = true;\n\t dev_out = sock.getOutputStream();\n\t dev_in = sock.getInputStream();\n\t write(0);\n\t write(0);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\n\t}", "private Bluetooth() {}", "public void sendBtMsg(final String msg2send) {\n UUID uuid = UUID.fromString(\"94f39d29-7d6d-437d-973b-fba39e49d4ee\"); //Standard SerialPortService ID\n try {\n\n if (mmDevice != null) {\n mmSocket = mmDevice.createRfcommSocketToServiceRecord(uuid);\n if (!mmSocket.isConnected()) {\n try {\n mmSocket.connect();\n Handler handler = new Handler(Looper.getMainLooper());\n handler.post(new Runnable() {\n @Override\n public void run() {\n\n toastMsg(\"Connection Established\");\n\n String msg = msg2send;\n //msg += \"\\n\";\n OutputStream mmOutputStream = null;\n try {\n mmOutputStream = mmSocket.getOutputStream();\n mmOutputStream.write(msg.getBytes());\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n });\n\n } catch (IOException e) {\n Log.e(\"\", e.getMessage());\n mmSocket.close();\n Handler handler = new Handler(Looper.getMainLooper());\n handler.post(new Runnable() {\n @Override\n public void run() {\n toastMsg(\"Connection not Established\");\n\n\n }\n });\n\n /*try {\n Log.e(\"\", \"trying fallback\");\n mmSocket =(BluetoothSocket) mmDevice.getClass().getMethod(\"createRfcommSocket\", new Class[] {int.class}).invoke(mmDevice,1);\n mmSocket.connect();\n Log.e(\"\", \"Connected\");\n }\n catch (Exception e2){\n Log.e(\"\", \"Couldn't establish Bluetooth connection!\");\n toastMsg(\"Couldn't establish Bluetooth connection!\");\n }*/\n }\n }\n\n\n/*\n if (mmOutputStream == null)\n try {\n mmOutputStream = mmSocket.getOutputStream();\n } catch (IOException e) {\n errorExit(\"Fatal Error\", \"In onResume(), input and output stream creation failed:\" + e.getMessage() + \".\");\n }*/\n\n } else {\n if (mBluetoothAdapter != null) {\n\n\n Set<BluetoothDevice> pairedDevices = mBluetoothAdapter.getBondedDevices();\n if (pairedDevices.size() > 0) {\n for (BluetoothDevice device : pairedDevices) {\n if (device.getName().matches(\".*\")) //Note, you will need to change this to match the name of your device\n {\n Log.e(\"Aquarium\", device.getName());\n mmDevice = device;\n sendBtMsg(msg2send);\n break;\n }\n }\n }\n }\n }\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n }", "@Override\n protected Void doInBackground(Void... devices){\n try {\n if (btSocket == null || !isBtConnected) {\n //get the mobile bluetooth device\n m_Bluetooth = BluetoothAdapter.getDefaultAdapter();\n //connects to the device's address and checks if it's available\n BluetoothDevice bluetoothDevice = m_Bluetooth.getRemoteDevice(address);\n //create a RFCOMM (SPP) connection\n btSocket = bluetoothDevice.createInsecureRfcommSocketToServiceRecord(myUUID);\n BluetoothAdapter.getDefaultAdapter().cancelDiscovery();\n btSocket.connect();//start connection\n }\n }\n catch (IOException e) {\n ConnectSuccess = false;//if the try failed, you can check the exception here\n }\n return null;\n }", "public void startBTConnection(BluetoothDevice device, UUID uuid){\n Log.d(TAG, \"startBTConnection: Initializing RFCOM Bluetooth Connection.\");\n\n mBluetoothConnection.startClient(device,uuid);\n }", "private void bluetoothClientProcessing(){\n\n\t\tif( client != null ){\n\t\t\tbyte keyReceive = client.receiveByte() ;\n\n\t\t\tif( keyReceive == DataTransmiting.SOFTKEY_RIGHT ||\n\t\t\t\tkeyReceive == DataTransmiting.KEY_FIRE\t){\n \n\t\t\t\tshouldStop=true;\n\t // midlet.setCurrLevel(currlevel);+\n\t midlet.playGameAgain( currlevel ,isBluetoothMode );\n\n\t\t\t}\n\t\t\telse if( keyReceive == DataTransmiting.MESSAGE_EXIT_GAME ){\n\t\t\t\tmidlet.setAlert(\"The device disconnected\") ;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcurrlevel = keyReceive ;\n\t\t\t}\n\t\t\t\n\n\t\t}\n\t}", "@Override\n public void run() {\n super.run();\n Log.i(TAG, \"BlueTooth Start\");\n _BluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n\n if (_BluetoothAdapter != null){\n if(!_BluetoothAdapter.isEnabled())\n _BluetoothAdapter.enable();\n else{\n _BluetoothDevice = _BluetoothAdapter.getRemoteDevice(strAddress_BT_UART);\n if (_BluetoothDevice != null){\n Log.i(TAG, \"Starting BtConnect\");\n BtConnect BC = new BtConnect(_BluetoothDevice);\n BC.start();\n }\n }\n }\n }", "private void setupBluetooth() throws NullPointerException{\n if( Utils.isOS( Utils.OS.ANDROID ) ){\n \t\n // Gets bluetooth hardware from phone and makes sure that it is\n // non-null;\n BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();\n \n // If bluetooth hardware does not exist...\n if (adapter == null) {\n Log.d(TAG, \"BluetoothAdapter is is null\");\n throw new NullPointerException(\"BluetoothAdapter is null\");\n } else {\n Log.d(TAG, \"BluetoothAdapter is is non-null\");\n }\n \n bluetoothName = adapter.getName();\n \n //TODO: restart bluetooth?\n \t\n try {\n bluetoothConnectionThreads.add( new ServerThread(adapter, router, uuid) );\n } catch (NullPointerException e) {\n throw e;\n }\n if (Constants.DEBUG)\n Log.d(TAG, \"Sever Thread Created\");\n // Create a new clientThread\n bluetoothConnectionThreads.add( new ClientThread(adapter, router, uuid) );\n if (Constants.DEBUG)\n Log.d(TAG, \"Client Thread Created\");\n }\n else if( Utils.isOS( Utils.OS.WINDOWS ) ){\n //TODO: implement this\n }\n else if( Utils.isOS( Utils.OS.LINUX ) ){\n //TODO: implement this\n }\n else if( Utils.isOS( Utils.OS.OSX ) ){\n //TODO: implement this\n }\n else{\n //TODO: throw exception?\n }\n \n }", "void tryConnection(String mac)\n {\n if (outstanding_connect != null || open_connection != null) {\n return;\n }\n \n Log.d(Constants.LOG_TAG, \"Attempting to connect to \" + mac);\n \n BluetoothDevice dev = bt_adapter.getRemoteDevice(mac);\n outstanding_connect = new ConnectThread(dev, handler);\n outstanding_connect.start();\n \n }", "public void onStart(){ \r\n\t\t//ensure bluetooth is enabled \r\n\t\tensureBluetoothIsEnabled();\r\n\t\tsuper.onStart(); \t\r\n\t}", "private void execHandlerConnected( Message msg ) {\t\n\t\t// save Device Address\n\t\tif ( mBluetoothService != null ) {\n\t\t\tString address = mBluetoothService.getDeviceAddress();\n\t\t\tsetPrefAddress( address );\n\t\t}\t\n\t\tshowTitleConnected( getDeviceName() );\n\t\thideButtonConnect();\n\t}", "public interface BLEOADCallback {\n void onProgress(BluetoothDevice bluetoothDevice, int progress);\n void onCancel(BluetoothDevice bluetoothDevice);\n void onSuccess(BluetoothDevice bluetoothDevice);\n}", "private void connectDevice(String address) {\n// // Get the device MAC address\n BluetoothDevice device = mBtAdapter.getRemoteDevice(address);\n// // Attempt to connect to the device\n mChatService.connect(device, true);\n }", "@Override\n public boolean connect(BluetoothDevice bluetoothDevice) throws RemoteException {\n Parcel parcel = Parcel.obtain();\n Parcel parcel2 = Parcel.obtain();\n try {\n parcel.writeInterfaceToken(Stub.DESCRIPTOR);\n boolean bl = true;\n if (bluetoothDevice != null) {\n parcel.writeInt(1);\n bluetoothDevice.writeToParcel(parcel, 0);\n } else {\n parcel.writeInt(0);\n }\n if (!this.mRemote.transact(8, parcel, parcel2, 0) && Stub.getDefaultImpl() != null) {\n bl = Stub.getDefaultImpl().connect(bluetoothDevice);\n parcel2.recycle();\n parcel.recycle();\n return bl;\n }\n parcel2.readException();\n int n = parcel2.readInt();\n if (n == 0) {\n bl = false;\n }\n parcel2.recycle();\n parcel.recycle();\n return bl;\n }\n catch (Throwable throwable) {\n parcel2.recycle();\n parcel.recycle();\n throw throwable;\n }\n }", "private void setupBluetooth() {\n if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\n Toast.makeText(this, R.string.ble_not_supported, Toast.LENGTH_SHORT).show();\n finish();\n }\n\n // Initializes Bluetooth adapter.\n final BluetoothManager bluetoothManager =\n (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);\n bluetoothAdapter = bluetoothManager.getAdapter();\n\n // Ensures Bluetooth is available on the device and it is enabled. If not,\n // displays a dialog requesting user permission to enable Bluetooth.\n if (bluetoothAdapter == null || !bluetoothAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n\n Set<BluetoothDevice> pairedDevices = bluetoothAdapter.getBondedDevices();\n\n if (pairedDevices.size() > 0) {\n // There are paired devices. Get the name and address of each paired device.\n for (BluetoothDevice device : pairedDevices) {\n String deviceName = device.getName();\n String deviceHardwareAddress = device.getAddress(); // MAC address\n String deviceType = device.getBluetoothClass().getDeviceClass() + \"\";\n\n Movie movie = new Movie(deviceName, deviceHardwareAddress, deviceType);\n movieList.add(movie);\n\n }\n\n mAdapter.notifyDataSetChanged();\n }\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch(msg.what){\n\t\t\tcase Bluetooth.SUCCESS_CONNECT:\n\t\t\t\tBluetooth.connectedThread = new Bluetooth.ConnectedThread((BluetoothSocket)msg.obj);\n\t\t\t\tToast.makeText(getApplicationContext(), \"Connected!\", Toast.LENGTH_SHORT).show();\n\t\t\t\tString s = \"successfully connected\";\n\t\t\t\tBluetooth.connectedThread.start();\n\t\t\t\tbreak;\n\t\t\tcase Bluetooth.MESSAGE_READ:\n\n\t\t\t\tbyte[] readBuf = (byte[]) msg.obj;\n\t\t\t\tString strIncom = new String(readBuf, 0, 5); // create string from bytes array\n\n\t\t\t\tLog.d(\"strIncom\", strIncom);\n\t\t\t\tif (strIncom.indexOf('.')==2 && strIncom.indexOf('s')==0){\n\t\t\t\t\tstrIncom = strIncom.replace(\"s\", \"\");\n\t\t\t\t\tif (isFloatNumber(strIncom)){\n\t\t\t\t\t\tSeries.appendData(new GraphViewData(graph2LastXValue, Double.parseDouble(strIncom)), AutoScrollX);\n\n\n Count++;//算次數\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n Date dt=new Date();\n String dts=sdf.format(dt);\n DBdata+=\"(' \" + dts + \" ' , ' \" + Double.parseDouble(strIncom)*512 + \" ' ),\";\n\n\n if(Count==20)\n {\n\t\t\t\t\t\t\t//Bluetooth.connectedThread.write(\"Q\");\n Count=0;\n String i = \"\";\n //DBdata = DBdata.substring(0,DBdata.length()-1);\n //DBdata += \";\";\n //i = DBconnect.db(DBdata);\n //Bluetooth.connectedThread.write(\"E\");\n //DBdata = \"INSERT INTO light VALUES\" ;\n }\n\n\n\t\t\t\t\t\t//X-axis control\n\t\t\t\t\t\tif (graph2LastXValue >= Xview && Lock == true){\n\t\t\t\t\t\t\tSeries.resetData(new GraphViewData[] {});\n\t\t\t\t\t\t\tgraph2LastXValue = 0;\n\t\t\t\t\t\t}else graph2LastXValue += 0.1;\n\n\t\t\t\t\t\tif(Lock == true)\n\t\t\t\t\t\t\tgraphView.setViewPort(0, Xview);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tgraphView.setViewPort(graph2LastXValue-Xview, Xview);\n\n\t\t\t\t\t\t//refresh\n\t\t\t\t\t\tGraphView.removeView(graphView);\n\t\t\t\t\t\tGraphView.addView(graphView);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tint channel;\n\t\t\tdouble data;\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\t\tcase Bluetooth.SUCCESS_CONNECT:\n\t\t\t\t\tBluetooth.connectedThread = new Bluetooth.ConnectedThread((BluetoothSocket) msg.obj);\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"Conectado!\", 0).show();\n\t\t\t\t\tString s = \"successfully connected\";\n\t\t\t\t\tBluetooth.connectedThread.start();\n\t\t\t\t\tbreak;\n\t\t\t\tcase Bluetooth.MESSAGE_READ:\n\t\t\t\t\tif (!Record_Dialog_On) {\n\t\t\t\t\t\tbyte[] readBuf = (byte[]) msg.obj;\n\t\t\t\t\t\tfor (int i = 0; i < readBuf.length + cont ; i++) { //[LL]: Barrido del buffer de 1024 byte\n\t\t\t\t\t\t//\tLog.d(\"Cont.\", Integer.toString(cont));\n\t\t\t\t\t\t\tif (cont==3) {\n\t\t\t\t\t\t\t\tdata_aux[3]= (int) readBuf[i] & 0xff;\n\t\t\t\t\t\t\t\tcont=0;\n\n\t\t\t\t\t\t\tif ((data_aux[0] & 0x80) == 0x80 && (data_aux[1] & 0x80) == 0 && (data_aux[2] & 0x80) == 0 && (data_aux[3] & 0x80) == 0) {\n\t\t\t\t\t\t\t\tdata = ProcessData(data_aux); //Obtengo el valor a graficar segun el formato de los datos\n\t\t\t\t\t\t\t\tchannel = (data_aux[0] & 0x38) >> 3; //Obtengo el canal a graficar. Mascara= 0x38= 111000b\n\t\t\t\t\t\t\t\t//i = i + 3;\n\t\t\t\t\t\t\t\tif (Record == true && j < (1024 - 4)) {\n\t\t\t\t\t\t\t\t\trecording = true;\n\t\t\t\t\t\t\t\t\tif(canal_ant==-1)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(channel==0)\n\t\t\t\t\t\t\t\t\t\t\tcanal_ant= 1;\n\t\t\t\t\t\t\t\t\t\telse if(channel==1) {\n\t\t\t\t\t\t\t\t\t\t\tcanal_ant = 0;\n\t\t\t\t\t\t\t\t\t\t\tDataWrite = DataWrite.concat(Double.toString(data_channel_0_prev) + \",\");\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\tswitch(canal_ant) {\n\t\t\t\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\t\t\t\tif(channel==1) {\n\t\t\t\t\t\t\t\t\t\t\t\tDataWrite = DataWrite.concat(Double.toString(data) + \"\\n\");\n\t\t\t\t\t\t\t\t\t\t\t\tcanal_ant=1;\n\t\t\t\t\t\t\t\t\t\t\t\tdata_channel_1_prev= data;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse if(channel==0) {\n\t\t\t\t\t\t\t\t\t\t\t\tDataWrite = DataWrite.concat(Double.toString(data_channel_1_prev) + \"\\n\" + data + \",\");\n\t\t\t\t\t\t\t\t\t\t\t\tdata_channel_0_prev = data;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t\t\t\tif(channel==0) {\n\t\t\t\t\t\t\t\t\t\t\t\tDataWrite = DataWrite.concat(Double.toString(data) + \",\");\n\t\t\t\t\t\t\t\t\t\t\t\tcanal_ant = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t//DataWrite = DataWrite.concat(Double.toString(data_channel_1_prev) + \"\\n\" + data + \",\");\n\t\t\t\t\t\t\t\t\t\t\t\tdata_channel_0_prev = data;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse if(channel==1) {\n\t\t\t\t\t\t\t\t\t\t\t\tDataWrite = DataWrite.concat(Double.toString(data_channel_0_prev) + \",\" + data + \"\\n\");\n\t\t\t\t\t\t\t\t\t\t\t\t//DataWrite = DataWrite.concat(Double.toString(data_channel_1_prev) + \"\\n\" + data + \",\");\n\t\t\t\t\t\t\t\t\t\t\t\tdata_channel_1_prev = data;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tj++;\n\n\t\t\t\t\t\t\t\t} else if (recording == true) {\n\t\t\t\t\t\t\t\t\tLog.d(\"com.gibio.bt_graph\", \"grabando...\");\n\t\t\t\t\t\t\t\t\tString DirToSaveType;\n\t\t\t\t\t\t\t\t\tif (FileSaveDialog.Get_m_dir().equals(\"\") == false)\n\t\t\t\t\t\t\t\t\t\tDirToSaveType = FileSaveDialog.Get_m_dir();\n\t\t\t\t\t\t\t\t\telse DirToSaveType = FileSaveDialog.Get_m_sdcardDirectory();\n\t\t\t\t\t\t\t\t\tSaveData(DataWrite, DirToSaveType, FileSaveDialog.Get_Selected_File_Name()); //Guardo los datos en un archivo\n\t\t\t\t\t\t\t\t\tDataWrite = (String) \"\";\n\t\t\t\t\t\t\t\t\t//canal_ant = -1; // -1 == ningún canal\n\n\t\t\t\t\t\t\t\t\tif (Record == false) { //[LL]: si se presionó STOP dejo de grabar\n\t\t\t\t\t\t\t\t\t\trecording = false;\n\t\t\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"Grabación detenida!\", 0).show();j = 0;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tj = 0;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tswitch (channel) {\n\t\t\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\t\t\tif (Sereies_0_index < 10000){ //[LL]:Esto lo puse para evitar picos en la memoria\n\t\t\t\t\t\t\t\t\t\t\tif(data!=-2097152.0 && data!=0.0 && data!=409600.0 && data!=393216.0) { //[LL]:Por un error (picos) ver como resolver\n\t\t\t\t\t\t\t\t\t\t//Notar que todos los valores que dan error son multiplos de 1024\n\t\t\t\t\t\t\t\t\t\t//393216= 0x060000 = 0000 0110 00000000 00000000\n\t\t\t\t\t\t\t\t\t\t//409600= 0x064000 = 0000 0110 01000000 00000000\n\t\t\t\t\t\t\t\t\t\t//con el protocolo: 10001000 00110010 00000000 00000000\n\n\t\t\t\t\t\t\t\t\t\t// -2097152= 0xE00000 = 1110 0000 00000000 00000000\n\n\t\t\t\t\t\t\t\t\t\tSeries_0.appendData(new GraphViewData(graph2LastXValue_0, data), AutoScrollX);\n\t\t\t\t\t\t\t\t\t\tSereies_0_index++;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tSeries_0.resetData(new GraphViewData[]{});\n\t\t\t\t\t\t\t\t\t\t\tSereies_0_index = 0;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t//X-axis control\n\t\t\t\t\t\t\t\t\t\tif (graph2LastXValue_0 >= Xview && Lock == true) {\n\t\t\t\t\t\t\t\t\t\t\tSeries_0.resetData(new GraphViewData[]{});\n\t\t\t\t\t\t\t\t\t\t\tgraph2LastXValue_0 = 0;\n\t\t\t\t\t\t\t\t\t\t} else graph2LastXValue_0 += 0.1;\n\n\t\t\t\t\t\t\t\t\t\tif (Lock == true) {\n\t\t\t\t\t\t\t\t\t\t\tgraphView_0.setViewPort(0, Xview);\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tgraphView_0.setViewPort(graph2LastXValue_0 - Xview, Xview);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t//refresh\n\t\t\t\t\t\t\t\t\t\tGraphView_0.removeView(graphView_0);\n\t\t\t\t\t\t\t\t\t\tGraphView_0.addView(graphView_0);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t\t\tif (Sereies_1_index < 10000) {\n\t\t\t\t\t\t\t\t\t\tif(data!=-2097152.0 && data!=0.0 && data!=409600.0 && data!=393216.0 ) {\n\t\t\t\t\t\t\t\t\t\t//if(data!=-2097152.0 ) {\n\t\t\t\t\t\t\t\t\t\t\tSeries_1.appendData(new GraphViewData(graph2LastXValue_1, data), AutoScrollX);\n\t\t\t\t\t\t\t\t\t\t\t//Log.d(\"com.gibio.bt_graph\", \"data:\" + Double.toString(data));\n\t\t\t\t\t\t\t\t\t\t\tSereies_1_index++;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tSeries_1.resetData(new GraphViewData[]{});\n\t\t\t\t\t\t\t\t\t\t\tSereies_1_index = 0;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t//X-axis control\n\t\t\t\t\t\t\t\t\t\tif (graph2LastXValue_1 >= Xview && Lock == true) {\n\t\t\t\t\t\t\t\t\t\t\tSeries_1.resetData(new GraphViewData[]{});\n\t\t\t\t\t\t\t\t\t\t\tgraph2LastXValue_1 = 0;\n\t\t\t\t\t\t\t\t\t\t} else graph2LastXValue_1 += 0.1;\n\n\t\t\t\t\t\t\t\t\t\tif (Lock == true) {\n\t\t\t\t\t\t\t\t\t\t\tgraphView_1.setViewPort(0, Xview);\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tgraphView_1.setViewPort(graph2LastXValue_1 - Xview, Xview);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t//refresh\n\t\t\t\t\t\t\t\t\t\tGraphView_1.removeView(graphView_1);\n\t\t\t\t\t\t\t\t\t\tGraphView_1.addView(graphView_1);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tdata_aux[cont] = (int) readBuf[i] & 0xff;\n\t\t\t\t\t\t\t\tcont++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\t\t}", "public void findBluetooth() {\n BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n if (mBluetoothAdapter == null) {\n // Device does not support Bluetooth\n btStatusDisplay.setText(\"Device does not support Bluetooth\");\n }\n btStatusDisplay.setText(\"Trying to connect...\");\n\n /** Pops up request to enable if found not enabled */\n if (!mBluetoothAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n }\n /** Get reference to scale as Bluetooth device \"mmDevice\" */\n Set<BluetoothDevice> pairedDevices = mBluetoothAdapter.getBondedDevices();\n if (pairedDevices.size() > 0) {\n for (BluetoothDevice device : pairedDevices) {\n if (device.getName().equals(\"BLUE\")) {\n mmDevice = device;\n btStatusDisplay.setText(\"Bluetooth device found\");\n break;\n }\n }\n }\n }", "void bluetoothDeactivated();", "public void onClick(View v) {\n mConnectedThread.write(\"1\"); // Send \"1\" via Bluetooth\n Toast.makeText(getBaseContext(), \"Turn on LED\", Toast.LENGTH_SHORT).show();\n }", "public void initDevice() {\n myBluetoothAdapter = android.bluetooth.BluetoothAdapter.getDefaultAdapter();\n pairedDevices = myBluetoothAdapter.getBondedDevices();\n }", "private void connectToBluetoothDevice(String mac) {\n if (BluetoothAdapter.checkBluetoothAddress(mac)) {\n BluetoothDevice mBluetoothDevice = mBluetoothAdapter\n .getRemoteDevice(mac);\n mConnectThread = new ConnectThread(mBluetoothDevice);\n mConnectThread.start();\n }\n }", "public void connectToAccessory() {\n\t\tif (mConnection != null)\n\t\t\treturn;\n\n\t\tif (getIntent().hasExtra(BTDeviceListActivity.EXTRA_DEVICE_ADDRESS)) {\n\t\t\tString address = getIntent().getStringExtra(\n\t\t\t\t\tBTDeviceListActivity.EXTRA_DEVICE_ADDRESS);\n\t\t\tLog.i(ADK.TAG, \"want to connect to \" + address);\n\t\t\tmConnection = new BTConnection(address);\n\t\t\tperformPostConnectionTasks();\n\t\t} else {\n\t\t\t// assume only one accessory (currently safe assumption)\n\t\t\tUsbAccessory[] accessories = mUSBManager.getAccessoryList();\n\t\t\tUsbAccessory accessory = (accessories == null ? null\n\t\t\t\t\t: accessories[0]);\n\t\t\tif (accessory != null) {\n\t\t\t\tif (mUSBManager.hasPermission(accessory)) {\n\t\t\t\t\topenAccessory(accessory);\n\t\t\t\t} else {\n\t\t\t\t\t// synchronized (mUsbReceiver) {\n\t\t\t\t\t// if (!mPermissionRequestPending) {\n\t\t\t\t\t// mUsbManager.requestPermission(accessory,\n\t\t\t\t\t// mPermissionIntent);\n\t\t\t\t\t// mPermissionRequestPending = true;\n\t\t\t\t\t// }\n\t\t\t\t\t// }\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Log.d(TAG, \"mAccessory is null\");\n\t\t\t}\n\t\t}\n\n\t}", "public void selectBluetoothDevice(String selectedItem) {\n String[] stringParts = selectedItem.split(\"\\n\");\n\n if (stringParts.length == 2) {\n\n // The Bluetooth ID is: stringParts[1]\n\n // Activate the Bluetooth Input/Output steams\n if (activateBluetoothStreams(stringParts[1])) {\n\n // The device was selected successfully. Start the Robot Activity\n startControlRobotActivity();\n\n }\n else{\n Toast.makeText(getApplicationContext(), \"Selected Bluetooth device was not enabled.\",\n Toast.LENGTH_LONG).show();\n }\n\n }\n else\n {\n Toast.makeText(getApplicationContext(), \"There was a problem selecting a Device.\",\n Toast.LENGTH_LONG).show();\n }\n\n\n }", "public void handler(){\n bluetoothIn = new Handler() {\n boolean tempSound = true;\n\n /**\n * handle message received from bluetooth\n * @param msg message received\n */\n public void handleMessage(Message msg) {\n switch (msg.what) {\n case handlerState:\n String readMessage = (String) msg.obj; // msg.arg1 = bytes from connect thread\n ReceivedData.setData(readMessage);\n break;\n\n case handlerState1:\n tempSound = Boolean.parseBoolean((String) msg.obj);\n ReceivedData.setSound(tempSound);\n break;\n\n case handlerState5:\n if(\"ACK\".equals ((String) msg.obj ))\n ReceivedData.clearPPGwaveBuffer();\n break;\n\n }\n ReceivedData.Process();\n }\n };\n\n}", "@Override\n public void onConnectionStateChange(BluetoothGatt gatt, int status,\n int newState) {\n Log.i(\"onConnectionStateChange\", \"The connection status has changed. status:\" + status + \" newState:\" + newState + \"\");\n try {\n if(status == BluetoothGatt.GATT_SUCCESS) {\n switch (newState) {\n // Has been connected to the device\n case BluetoothProfile.STATE_CONNECTED:\n Log.i(\"onConnectionStateChange\", \"Has been connected to the device\");\n if(_ConnectionStatus == ConnectionStatus.Connecting) {\n _ConnectionStatus = ConnectionStatus.Connected;\n try {\n if (_PeripheryBluetoothServiceCallBack != null)\n _PeripheryBluetoothServiceCallBack.OnConnected();\n if (gatt.getDevice().getBondState() == BluetoothDevice.BOND_BONDED){\n //Url : https://github.com/NordicSemiconductor/Android-DFU-Library/blob/release/dfu/src/main/java/no/nordicsemi/android/dfu/DfuBaseService.java\n Log.i(\"onConnectionStateChange\",\"Waiting 1600 ms for a possible Service Changed indication...\");\n // Connection successfully sleep 1600ms, the connection success rate will increase\n Thread.sleep(1600);\n }\n } catch (Exception e){}\n // Discover service\n gatt.discoverServices();\n }\n break;\n // The connection has been disconnected\n case BluetoothProfile.STATE_DISCONNECTED:\n Log.i(\"onConnectionStateChange\", \"The connection has been disconnected\");\n if(_ConnectionStatus == ConnectionStatus.Connected) {\n if (_PeripheryBluetoothServiceCallBack != null)\n _PeripheryBluetoothServiceCallBack.OnDisConnected();\n }\n Close();\n _ConnectionStatus = ConnectionStatus.DisConnected;\n break;\n /*case BluetoothProfile.STATE_CONNECTING:\n Log.i(\"onConnectionStateChange\", \"Connecting ...\");\n _ConnectionStatus = ConnectionStatus.Connecting;\n break;\n case BluetoothProfile.STATE_DISCONNECTING:\n Log.i(\"onConnectionStateChange\", \"Disconnecting ...\");\n _ConnectionStatus = ConnectionStatus.DisConnecting;\n break;*/\n default:\n Log.e(\"onConnectionStateChange\", \"newState:\" + newState);\n break;\n }\n }else {\n Log.i(\"onConnectionStateChange\", \"GATT error\");\n Close();\n if(_ConnectionStatus == ConnectionStatus.Connecting\n && _Timeout - (new Date().getTime() - _ConnectStartTime.getTime()) > 0) {\n Log.i(\"Connect\", \"Gatt Error! Try to reconnect (\"+_ConnectIndex+\")...\");\n _ConnectionStatus = ConnectionStatus.DisConnected;\n Connect(); // Connect\n }else {\n _ConnectionStatus = ConnectionStatus.DisConnected;\n if (_PeripheryBluetoothServiceCallBack != null)\n _PeripheryBluetoothServiceCallBack.OnDisConnected();\n }\n }\n }catch (Exception ex){\n Log.e(\"onConnectionStateChange\", ex.toString());\n }\n super.onConnectionStateChange(gatt, status, newState);\n }", "public void connectService() {\n log_d( \"connectService()\" );\n\t\t// no action if debug\n if ( BT_DEBUG_SERVICE ) {\n\t\t\ttoast_short( \"No Action in debug\" );\n \treturn;\n }\n\t\t// connect the BT device at once\n\t\t// if there is a device address. \n\t\tString address = getPrefAddress();\n\t\tif ( isPrefUseDevice() && ( address != null) && !address.equals(\"\") ) {\n\t \tBluetoothDevice device = mBluetoothAdapter.getRemoteDevice( address );\n\t \tif ( mBluetoothService != null ) {\n\t \t log_d( \"connect \" + address );\n\t \tmBluetoothService.connect( device );\n\t }\n\t\t// otherwise\n\t\t// send message for the intent of the BT device list\n\t\t} else {\n\t\t\tnotifyDeviceList();\n\t\t}\n\t}", "private void manageConnectedSocket(BluetoothSocket acceptSocket) {\n\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n setContentView(R.layout.activity_main);\n btnOn = findViewById(R.id.bluetoothStart); // кнопка включения\n btnOff = findViewById(R.id.bluetoothStop); // кнопка выключения\n statusText = findViewById(R.id.statusBluetooth); // для вывода текста, полученного\n btState = findViewById(R.id.bluetoothIm);\n workState = findViewById(R.id.workStatIm);\n\n h = new Handler() {\n public void handleMessage(android.os.Message msg) {\n switch (msg.what) {\n case RECIEVE_MESSAGE:\n statusText.setText(\"msg\");// если приняли сообщение в Handler\n byte[] readBuf = (byte[]) msg.obj;\n String strIncom = new String(readBuf, 0, msg.arg1);\n sb.append(strIncom); // формируем строку\n int endOfLineIndex = sb.indexOf(\"\\r\\n\"); // определяем символы конца строки\n if (endOfLineIndex > 0) { // если встречаем конец строки,\n String sbprint = sb.substring(0, endOfLineIndex); // то извлекаем строку\n sb.delete(0, sb.length()); // и очищаем sb\n statusText.setText(\"Ответ от датчика: \" + sbprint); // обновляем TextView\n String[] step_data = sbprint.split(\" \");\n writeFile(step_data[0]);\n writeFile(\";\");\n writeFile(step_data[1]);\n writeFile(\";\");\n writeFile(step_data[2]);\n writeFile(\";\\n\");\n btnOff.setEnabled(true);\n btnOn.setEnabled(true);\n }\n //Log.d(TAG, \"...Строка:\"+ sb.toString() + \"Байт:\" + msg.arg1 + \"...\");\n break;\n }\n };\n };\n\n btAdapter = BluetoothAdapter.getDefaultAdapter(); // получаем локальный Bluetooth адаптер\n\n if (btAdapter.isEnabled()) {\n SharedPreferences prefs_btdev = getSharedPreferences(\"btdev\", 0);\n String btdevaddr=prefs_btdev.getString(\"btdevaddr\",\"?\");\n\n if (btdevaddr != \"?\") {\n BluetoothDevice device = btAdapter.getRemoteDevice(btdevaddr);\n UUID SERIAL_UUID = UUID.fromString(\"0000f00d-1212-afde-1523-785fef13d123\"); // bluetooth serial port service\n //UUID SERIAL_UUID = device.getUuids()[0].getUuid(); //if you don't know the UUID of the bluetooth device service, you can get it like this from android cache\n try {\n btSocket = device.createRfcommSocketToServiceRecord(SERIAL_UUID);\n } catch (Exception e) {\n Log.e(\"\",\"Error creating socket\");\n }\n\n try {\n btSocket.connect();\n Log.e(\"\",\"Connected\");\n } catch (IOException e) {\n Log.e(\"\",e.getMessage());\n try {\n Log.e(\"\",\"trying fallback...\");\n btSocket =(BluetoothSocket) device.getClass().getMethod(\"createRfcommSocket\", new Class[] {int.class}).invoke(device,1);\n btSocket.connect();\n Log.e(\"\",\"Connected\");\n } catch (Exception e2) {\n Log.e(\"\", \"Couldn't establish Bluetooth connection!\");\n }\n }\n } else {\n Log.e(\"\",\"BT device not selected\");\n }\n }\n\n checkBTState();\n\n btnOn.setOnClickListener(new OnClickListener() { // определяем обработчик при нажатии на кнопку\n public void onClick(View v) {\n //btnOn.setEnabled(false);\n workState.setImageResource(R.drawable.ic_action_work_on);\n mConnectedThread.run();\n // TODO start writing in file\n }\n });\n\n btnOff.setOnClickListener(new OnClickListener() {\n public void onClick(View v) {\n //btnOff.setEnabled(false);\n workState.setImageResource(R.drawable.ic_action_work_off);\n mConnectedThread.cancel();\n // TODO stop writing in file\n }\n });\n }", "@Override\r\n\t\tpublic void run() {\n\t\t\tLooper.prepare();\r\n\t\t\tbluetoothChat = new BluetoothChat(context);\r\n\t\t\tif (!BluetoothAdapter.checkBluetoothAddress(addr)) { // 检查蓝牙地址是否有效\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tBluetoothDevice device = bluetoothAdapter.getRemoteDevice(addr);\r\n\t\t\twhile (true) {\r\n\t\t\t\tif (count == LONG_TIME_CONNECTED) {\r\n\t\t\t\t\tLooper.loop();\r\n\t\t\t\t}\r\n\t\t\t\tif (device.getBondState() != BluetoothDevice.BOND_BONDED) {\r\n\t\t\t\t\t// 如果未匹配,则继续执行\r\n\t\t\t\t\t// handler.postDelayed(runnable, 5000);\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tClsUtils.setPin(device.getClass(), device, pin); // 手机和蓝牙采集器配对\r\n\t\t\t\t\t\tClsUtils.createBond(device.getClass(), device);\r\n\t\t\t\t\t\tremoteDevice = device; // 配对完毕就把这个设备对象传给全局的remoteDevice\r\n\t\t\t\t\t\tThread.sleep(5000);\r\n\t\t\t\t\t\tcount++;\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\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// 赋值至全局\r\n\t\t\t\t\tremoteDevice = device;\r\n\t\t\t\t\t// 移除线程后立即连接\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tbluetoothChat.goConnect(device);\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tLooper.loop();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n \n Log.d(TAG, \"onActivityResult \" + resultCode);\n switch (requestCode) {\n //for now, only dealiing with insecure connection\n //i don't think its possible to have secure connections with a serial profile\n case REQUEST_CONNECT_DEVICE_INSECURE:\n if(resultCode == Activity.RESULT_OK){\n setupBluetooth();//since BT is enabled, setup client service\n connectToDevice(data, false);\n }\n else\n setStatus(BluetoothClientService.STATE_NONE);\n break;\n case REQUEST_ENABLE_BT:\n // When the request to enable Bluetooth returns\n if (resultCode == Activity.RESULT_OK) {\n Toast.makeText(this, \"Bluetooth is now enabled\", Toast.LENGTH_SHORT).show();\n }\n else {\n // User did not enable Bluetooth or an error occurred\n Log.d(TAG, \"BT not enabled\");\n Toast.makeText(this, R.string.bt_not_enabled_leaving, Toast.LENGTH_SHORT).show();\n finish();\n }\n }\n }", "private void initPairBluetoothDevice(BluetoothDevice btDevice) {\n Log.i(DEBUG.TAG, \"BTDevicesActivity - initPairBluetoothDevice - start\");\n\n try {\n Method method = btDevice.getClass().getMethod(\"createBond\", (Class[]) null);\n method.invoke(btDevice, (Object[]) null);\n } catch (Exception e) {\n }\n\n Log.i(DEBUG.TAG, \"BTDevicesActivity - initPairBluetoothDevice - start\");\n }", "private void handleMessageBluetooth(Message msg) {\n\t\tToaster.doToastShort(context, \"Handle Bluetooth Mesage\");\n\t}", "public void onPickDevice(ConnectDevice device);", "@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tprocessBluetoothDeviceMessage(msg);\n\t\t\t}", "public boolean mConnect(String s) { //Find and mConnect to the bluetooth\n if (isBtOpen()==false)\n return false;\n if (isConnected(s))\n return true;\n if (bDevicePickerActive) return false; //Don't connect while picking device\n if (oDevice!=mBTDeviceByName(s)) mDisconnect();\n mDisconnect();\n oDevice=mBTDeviceByName(s);\n sDeviceName = s; //Set new device name\n oParent.mDeviceNameSet(s);\n if (mConnect2Device1(oDevice))\n return true;\n\n mStateSet(kBT_ConnectReq1);\n if (mBTOpen1()==false) { //If BT cannot be opened\n mStateSet(kBT_InvalidBT1);\n mErrMsg(\"No bluetooth port available\");\n return false;\n }\n if (mIsState(kBT_Connecting)) {\n mSleep(1000);\n if (oInput!=null)\n mStateSet(kBT_Connected1);\n else\n mStateSet(kBT_InvalidDevice1);\n return false;\n }\n if (oDevice==null) { //Device not found,\n oDevice=mBTDeviceByName(sDeviceName);\n if (oDevice==null){\n mStateSet(kBT_InvalidDevice1);\n mSleep(2000);\n }\n return false;\n }\n //set by mConnectDeviceWithName, mRequestConnection\n if (mIsState(kBT_ConnectReq1)) { //Try to connect first time\n if (mConnect2Device1(oDevice)==false) //mConnect sets mStateSet(kBT_DeviceConnected);\n mSleep(10);\n } else if (mIsState(cKonst.eSerial.kBT_BrokenConnection)) { //Try to reconnect\n mSleep(2000);\n bDoRedraw=true;\n return false;\n } else if (mIsState(kOverflow)){ //Fatal, overflow, donno what to do\n mConnectionStateClear();\n return false;\n } else {\n mSleep(2000); //Do nothing while connection was interrupted\n }\n return false;\n }", "@Override\n\tpublic void completeDeviceConnectService(BTController cbtController) {\n\t\tsuper.completeDeviceConnectService(cbtController);\n\t\tsetDeviceName();\n\t\tsetShowHideConnAnimation();\n\t\tif(view != null){\n\t\t\timageView_to.setVisibility(View.VISIBLE);\n\t\t\timageView_phone.setVisibility(View.VISIBLE);\n\t\t}\n\t\t\n\t}", "private void connect() throws Exception {\n\n Log.i(TAG, \"Attempting connection to \" + address + \"...\");\n\n // Get this device's Bluetooth adapter\n BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();\n if ((adapter == null) || (!adapter.isEnabled())){\n throw new Exception(\"Bluetooth adapter not found or not enabled!\");\n }\n\n // Find the remote device\n BluetoothDevice remoteDevice = adapter.getRemoteDevice(address);\n\n // Create a socket with the remote device using this protocol\n socket = remoteDevice.createRfcommSocketToServiceRecord(uuid);\n\n // Make sure Bluetooth adapter is not in discovery mode\n adapter.cancelDiscovery();\n\n // Connect to the socket\n socket.connect();\n\n\n // Get input and output streams from the socket\n outStream = socket.getOutputStream();\n inStream = socket.getInputStream();\n\n Log.i(TAG, \"Connected successfully to \" + address + \".\");\n }", "protected void sequence_Bluetooth(ISerializationContext context, Bluetooth semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, DrnPackage.Literals.CONNECTION_TYPE__NAME) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DrnPackage.Literals.CONNECTION_TYPE__NAME));\n\t\t\tif (transientValues.isValueTransient(semanticObject, DrnPackage.Literals.CONNECTION_TYPE__ADRESS) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DrnPackage.Literals.CONNECTION_TYPE__ADRESS));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getBluetoothAccess().getNameBLUETOOTHKeyword_0_0(), semanticObject.getName());\n\t\tfeeder.accept(grammarAccess.getBluetoothAccess().getAdressMACTerminalRuleCall_2_0(), semanticObject.getAdress());\n\t\tfeeder.finish();\n\t}", "void onCloseBleComplete();", "@Override\n public IBinder onBind(Intent intent) {\n\n AppConstants.RebootHF_reader = false;\n if (mBluetoothLeService != null) {\n final boolean result = mBluetoothLeService.connect(mDeviceAddress);\n Log.d(TAG, \"Connect request result=\" + result);\n }\n\n\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }", "@Override\n public void onScanFinished() {\n Log.d(TAG, \"Scan Finished\");\n if(dicePlus == null){\n BluetoothManipulator.startScan();\n }\n }", "private void ensureBluetoothEnabled() {\n if (!mBluetoothAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(\n BluetoothAdapter.ACTION_REQUEST_ENABLE);\n main.startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n } else {\n connectToBluetoothDevice(\"00:06:66:64:42:97\"); // Hard coded MAC of the BT-device.\n Log.i(tag, \"Connected to device!\");\n }\n }", "public void connect(View v) {\n turnOn(v);\n startActivity(new Intent(Settings.ACTION_BLUETOOTH_SETTINGS));\n Toast.makeText(getApplicationContext(), \"Select device\", Toast.LENGTH_LONG).show();\n System.err.println(bluetoothAdapter.getBondedDevices());\n }", "@Override\r\n public void onCreate() {\n intent = new Intent(BROADCAST_ACTION);\r\n startBTService();\r\n// try{\r\n// mConnectedThread.write(\"2\".getBytes());\r\n// }catch(Exception e){\r\n//\r\n// }\r\n }", "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\twait_time = 0;\r\n\t\t\t\t\t\t\twhile (true) {\r\n\t\t\t\t\t\t\t\tif (HomeView.ble_status == 0\r\n\t\t\t\t\t\t\t\t\t\t|| HomeView.ble_status == 1\r\n\t\t\t\t\t\t\t\t\t\t|| HomeView.ble_status == 2) {\r\n\r\n\t\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\t\tscanLeDevice(true);\r\n\t\t\t\t\t\t\t\t\t\tbluetoothSwitch = true;\r\n\t\t\t\t\t\t\t\t\t\tsetUI();\r\n\t\t\t\t\t\t\t\t\t\trunOnUiThread(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\t\tprogress.dismiss();\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t} catch (IllegalArgumentException e) {\r\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\twait_time++;\r\n\t\t\t\t\t\t\t\tif (wait_time > 5) {\r\n\t\t\t\t\t\t\t\t\trunOnUiThread(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\tprogress.dismiss();\r\n\t\t\t\t\t\t\t\t\t\t\twait_time = 0;\r\n\t\t\t\t\t\t\t\t\t\t\tbluetoothSwitch = false;\r\n\t\t\t\t\t\t\t\t\t\t\tsetUI();\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}", "public void onDeviceConnected(String name, String address) {\n btButton.setText(\"Connected\");\n }", "public void deviceDiscovered(RemoteDevice btDevice, DeviceClass cod) {\n devicesDiscovered.addElement(btDevice);\n }", "@Override\r\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\r\n switch(msg.what){\r\n case baglanti:\r\n\r\n ConnectedThread connectedThread = new ConnectedThread((BluetoothSocket)msg.obj);\r\n Toast.makeText(getApplicationContext(), \"Baglandi\",Toast.LENGTH_LONG).show();\r\n String s = \"successfully connected\";\r\n break;\r\n case mesajoku:\r\n byte[] readBuf = (byte[])msg.obj;\r\n String string = new String(readBuf);\r\n Toast.makeText(getApplicationContext(), string, Toast.LENGTH_LONG).show();\r\n break;\r\n }\r\n }", "public void deviceDiscovered(RemoteDevice btDevice, DeviceClass cod) {\n // add the device to the vector\n if (!vecDevices.contains(btDevice)) {\n vecDevices.addElement(btDevice);\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data)\n {\n switch (requestCode)\n {\n case ENABLE_BLUETOOTH:\n\n if (resultCode == RESULT_OK)\n {\n // Si entre aca es porque active el bluetooth y muestro la Activity con la lista de dispositivos emparejados\n Intent activityListaDispositivos = new Intent(MainActivity.this, ListaDispositivos.class);\n startActivityForResult(activityListaDispositivos, SOLICITA_CONEXION);\n }\n break;\n\n case SOLICITA_CONEXION:\n\n if(resultCode == RESULT_OK)\n {\n // Inicio una Async Task para iniciar el Bluetooth con una barra de estado\n pDialog = new ProgressDialog(MainActivity.this);\n pDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n pDialog.setMessage(\"Conectando dispositivo\");\n pDialog.setCancelable(true);\n pDialog.setMax(100);\n\n // Tomo la MAC de la lista de dispositivos aparejados para conectarme\n MAC = data.getExtras().getString(ListaDispositivos.ENDERECO_MAC);\n\n mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n\n mDevice = mBluetoothAdapter.getRemoteDevice(MAC);\n\n // Inicio la tarea para iniciar la comunicacion Bluetooth\n Bluetooth_init = new AsyncTask_BT_Dialog();\n Bluetooth_init.execute();\n }\n break;\n\n case 3:\n Toast.makeText(MainActivity.this, \"GPS encendido \" , Toast.LENGTH_SHORT).show();\n break;\n }\n }", "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if(requestCode == BluetoothState.REQUEST_CONNECT_DEVICE) {\n if(resultCode == Activity.RESULT_OK) {\n // TODO: 2016/3/30 should differ types of different devices\n DeviceCardData cardData = new DeviceCardData();\n cardData.setBluetoothName(data.getStringExtra(DeviceListActivity.EXTRA_DEVICE_NAME));\n cardData.setBluetoothAddress(data.getStringExtra(DeviceListActivity.EXTRA_DEVICE_ADDRESS));\n cardData.setCardKind(Constant.DEVICE_ECG);\n cardData.setName(\"我的心电设备\");\n cardData.setImageId(R.drawable.img_device_background);\n cardData.setState(Constant.DeviceState.DEVICE_OFF);\n adapter.addItem(cardData);\n }\n }\n }", "public interface OnBluetoothConnectionPendingListener {\n\t\tvoid onConnectionPending();\n\t}", "public interface OnDeviceSelectedListener {\n\n /**\n * Method used to send the address of a selected bluetooth device.\n * @param address the MAC address of the bluetooth device.\n */\n void onDeviceSelected(String address);\n}", "public interface ScanCallBack {\n void getDevices(final BluetoothDevice bluetoothDevice, final int rssi);\n}", "@Override\n public void onScannedBleDeviceAdded(BluetoothDevice device) {\n Log.d(TAG, \"onScannedBleDeviceAdded enter\");\n// Message msg = mHandler.obtainMessage();\n// msg.what = SCAN_DEVICE_ADD_FLAG;\n// msg.obj = device;\n// mHandler.sendMessage(msg);\n updateScanDialog(SCAN_DEVICE_ADD_FLAG, device);\n }", "@Override\n public void checkBluetoothInteface() {\n if (!isConnected) {\n checkForBluetooth();\n }\n }", "@Override\n public void onConnect(BluetoothDevice device) {\n Display(\"Vehicle Connected!\");\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n String car = \"DRIVING: \" + name;\n vehicle.setText(car);\n SharedPreferences wheels = getSharedPreferences(\"MyApp\", MODE_PRIVATE);\n wheels.edit().putString(\"vehicle\", name).apply();\n }\n });\n }", "public interface OnBluetoothConnectListener {\n\t\tvoid onConnect(boolean connected);\n\t}", "private void setupBTService(){\n btService = new BluetoothService(this, mHandler);\n\n // Initialize the buffer for outgoing messages\n outStringBuffer = new StringBuffer(\"\");\n\t}", "@Override\n protected Void doInBackground(Void... params) {\n if (bluetoothSocket.isConnected()) {\n testCommands();\n }\n\n return null;\n }", "public void connect(View view) {\n if (phoneNum.getText().toString().equals(\"\")) {\n Toast.makeText(getApplication(), \"Please enter a phone number\", Toast.LENGTH_SHORT).show();\n } else {\n phoneNum.setEnabled(false);\n HashMap<String, UsbDevice> usbDevices = usbManager.getDeviceList();\n if (!usbDevices.isEmpty()) {\n boolean keep = true;\n for (Map.Entry<String, UsbDevice> entry : usbDevices.entrySet()) {\n device = entry.getValue();\n int deviceVID = device.getVendorId();\n if (deviceVID == 0x2341)//Arduino Vendor ID\n {\n PendingIntent pi = PendingIntent.getBroadcast(this, 0, new Intent(ACTION_USB_PERMISSION), 0);\n usbManager.requestPermission(device, pi);\n keep = false;\n } else {\n connection = null;\n device = null;\n }\n\n if (!keep)\n break;\n }\n }\n }\n }", "protected void onConnect() {}", "public void sendBluetooth()\n {\n Intent startBluetooth = new Intent(this, Main2Activity.class);\n startActivity(startBluetooth);\n }", "public void connect(String id) {\n // Android bluetooth API code\n BluetoothDevice device = null;\n try {\n device = mBluetoothAdapter.getRemoteDevice(id);\n mBluetoothAdapter.cancelDiscovery();\n }\n catch (Exception e) {\n // Show user error message\n // i.e. \"333 is not a valid bluetooth address\"\n Toast.makeText(getApplicationContext(), e.getMessage(),\n Toast.LENGTH_SHORT).show();\n }\n\n // If getRemoteDevice did not throw and device was set, connect to client\n // getRemoteDevice throws if its parameter is not a valid bluetooth address\n if (device != null) {\n try {\n btSocket = device.createRfcommSocketToServiceRecord(MY_UUID);\n btSocket.connect();\n Toast.makeText(getApplicationContext(), \"Connection made\",\n Toast.LENGTH_SHORT).show();\n connectedStatus.setText(R.string.connection_connected);\n } catch (IOException e) {\n try {\n btSocket.close();\n } catch (IOException e2) {\n Log.d(TAG, \"Unable to end the connection\");\n }\n Log.d(TAG, \"Socket creation failed\");\n }\n }\n }", "private void turnOnBT() {\n\t\tIntent intent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n\t\tstartActivityForResult(intent, 1);\n\t}", "protected abstract void onConnect();", "private void selectAvailableDevices() {\n\n ArrayList deviceStrs = new ArrayList();\n final ArrayList<String> devices = new ArrayList();\n\n BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter();\n // checking and enabling bluetooth\n if (!btAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n } else {\n btAdapter = BluetoothAdapter.getDefaultAdapter();\n Set<BluetoothDevice> pairedDevices = btAdapter.getBondedDevices();\n if (pairedDevices.size() > 0) {\n for (BluetoothDevice device : pairedDevices) {\n deviceStrs.add(device.getName() + \"\\n\" + device.getAddress());\n devices.add(device.getAddress());\n }\n }\n\n // show a list of paired devices to connect with\n final AlertDialog.Builder alertDialog = new AlertDialog.Builder(this);\n ArrayAdapter adapter = new ArrayAdapter(this, android.R.layout.select_dialog_singlechoice,\n deviceStrs.toArray(new String[deviceStrs.size()]));\n alertDialog.setSingleChoiceItems(adapter, -1, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n int position = ((AlertDialog) dialog).getListView().getCheckedItemPosition();\n String deviceAddress = devices.get(position);\n setDeviceAddress(deviceAddress);\n chosen = true;\n //notify user for ongoing connection\n launchRingDialog();\n\n }\n });\n\n alertDialog.setTitle(R.string.blueChose);\n alertDialog.show();\n }\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tmsgText.setText(null);\n\t\t\tsendEdit.setText(null);\n\t\t\tif(sppConnected || devAddr == null)\n\t\t\t\treturn;\n\t\t\ttry{\n\t\t\t btSocket = btAdapt.getRemoteDevice(devAddr).createRfcommSocketToServiceRecord(uuid);\n\t\t\t btSocket.connect();\n\t\t\t Log.d(tag,\"BT_Socket connect\");\n\t\t\t synchronized (MainActivity.this) {\n\t\t\t\tif(sppConnected)\n\t\t\t\t\treturn;\n\t\t\t\tbtServerSocket.close();\n\t\t\t\tbtIn = btSocket.getInputStream();\n\t\t\t\tbtOut = btSocket.getOutputStream();\n\t\t\t\tconected();\n\t\t\t}\n\t\t\t Toast.makeText(MainActivity.this,\"藍牙裝置已開啟:\" + devAddr, Toast.LENGTH_LONG).show();\n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t\tsppConnected =false;\n\t\t\t\ttry{\n\t\t\t\t\tbtSocket.close();\n\t\t\t\t}catch(IOException e1){\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tbtSocket = null;\n\t\t\t\tToast.makeText(MainActivity.this, \"連接異常\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t}", "@Override\r\n\tprotected void onHandleIntent(Intent intent) {\n\t\tfinal BluetoothManager bluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);\r\n\t\tmBluetoothAdapter = bluetoothManager.getAdapter();\r\n\r\n\t\t// Checks if Bluetooth is supported on the device.\r\n\t\tif (mBluetoothAdapter == null) {\r\n\t\t\tLog.i(TAG, \"Bluetooth is not supported\");\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\tLog.i(TAG, \"mBluetoothAdapter = \" + mBluetoothAdapter);\r\n\t\t}\r\n\r\n\t\t//启用蓝牙\r\n\t\t//mBluetoothAdapter.enable();\r\n\t\t//Log.i(TAG, \"mBluetoothAdapter.enable\");\r\n\t\t\r\n\t\tmBLE = new BluetoothLeClass(this);\r\n\t\t\r\n\t\tif (!mBLE.initialize()) {\r\n\t\t\tLog.e(TAG, \"Unable to initialize Bluetooth\");\r\n\t\t}\r\n\t\tLog.i(TAG, \"mBLE = e\" + mBLE);\r\n\r\n\t\t// 发现BLE终端的Service时回调\r\n\t\tmBLE.setOnServiceDiscoverListener(mOnServiceDiscover);\r\n\r\n\t\t// 收到BLE终端数据交互的事件\r\n\t\tmBLE.setOnDataAvailableListener(mOnDataAvailable);\r\n\t\t\r\n\t\t//开始扫描\r\n\t\tmBLE.scanLeDevice(true);\r\n\t\t\r\n\t\t/*\r\n\t\tMRBluetoothManage.Init(this, new MRBluetoothEvent() {\r\n\t\t\t@Override\r\n\t\t\tpublic void ResultStatus(int result) {\r\n\t\t\t\tswitch (result) {\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_NOT_OPEN:\r\n\t\t\t\t\t//Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\r\n\t\t\t\t\t//startActivityForResult(enableBtIntent, 100);\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_NOT_OPEN\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_INIT_OK:\r\n\t\t\t\t\tMRBluetoothManage.scanAndConnect();\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_INIT_OK\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_SCAN_START:\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_SCAN_START\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_SCAN_END:\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_SCAN_END\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_CONNECT_START:\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_CONNECT_START\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_CONNECT_OK:\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_CONNECT_OK\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_CONNECT_CLOSE:\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_CONNECT_CLOSE\");\r\n\t\t\t\t\tMRBluetoothManage.stop();\r\n\t\t\t\t\tMRBluetoothManage.scanAndConnect();\r\n\t\t\t\t\t//MRBluetoothManage.Init(BluetoothService.this, this);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void ResultDevice(ArrayList<BluetoothDevice> deviceList) {\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void ResultData(byte[] data) {\r\n\t\t\t\tLog.i(TAG, data.toString());\r\n\t\t\t\tbyte[] wenDuByte = new byte[2];\r\n\t\t\t\tbyte[] shiDuByte = new byte[2];\r\n\t\t\t\tbyte[] shuiFenByte = new byte[2];\r\n\t\t\t\tbyte[] ziWaiXianByte = new byte[2];\r\n\t\t\t\tSystem.arraycopy(data, 4, wenDuByte, 0, 2);\r\n\t\t\t\tSystem.arraycopy(data, 6, shiDuByte, 0, 2);\r\n\t\t\t\tSystem.arraycopy(data, 8, shuiFenByte, 0, 2);\r\n\t\t\t\tSystem.arraycopy(data, 10, ziWaiXianByte, 0, 2);\r\n\t\t\t\tTestModel model = new TestModel();\r\n\t\t\t\tmodel.wenDu = BitConverter.toShort(wenDuByte);\r\n\t\t\t\tmodel.shiDu = BitConverter.toShort(shiDuByte);\r\n\t\t\t\tmodel.shuiFen = BitConverter.toShort(shuiFenByte);\r\n\t\t\t\tmodel.ziWaiXian = BitConverter.toShort(ziWaiXianByte);\r\n\t\t\t\t//Log.d(TAG, model.toString());\r\n\t\t\t\tsendData(model);\r\n\t\t\t}\r\n\t\t});\r\n\t\t*/\r\n\t}", "public interface BluetoothListener {\n\t/**\n\t * Get a description of the game, to be displayed on the BluetoothFragment layout.\n\t * @return\n\t */\n\tString getHelpString();\n\t\n\t/**\n\t * @see #onConnectedAsServer(String)\n\t */\n\tvoid onConnectedAsClient(String deviceName);\n\t\n\t/**\n\t * The 2 devices have established a bluetooth connection.\n\t * The typical action at this point is to hide the bluetooth\n\t * fragment and show the game fragment. From now on the\n\t * communication between client and server is symmetrical:\n\t * both devices can equally send and receive messages.\n\t * \n\t * Sometimes it is useful to know which device requested the\n\t * connection (the client) and which side accepted that\n\t * connection (the server).\n\t * \n\t * @param deviceName the name of the remote device\n\t */\n\tvoid onConnectedAsServer(String deviceName);\n\t\n\t/**\n\t * Typically the Activity will hide the game fragment and show\n\t * the BluetoothFragment, to allow the user to re-connect.\n\t */\n\tvoid onConnectionLost();\n\t\n\tvoid onError(String message);\n\t\n\t/**\n\t * A data message has been received from the remote device.\n\t * This corresponds to the other device performing a write().\n\t * @see BluetoothService#write(byte[] data)\n\t * \n\t * @param data\n\t */\n\tvoid onMessageRead(byte[] data);\n\t\n\t/**\n\t * A status message sent by the bluetooth service to be displayed\n\t * by the activity using Toast.\n\t * @param string\n\t */\n\tvoid onMessageToast(String string);\n\t\n\t/**\n\t * Called when the state of the bluetooth service has changed.\n\t * @see class BluetoothService.BTState for possible values.\n\t * @param state\n\t */\n\tvoid onStateChange(BluetoothService.BTState state);\n\t\n\t/**\n\t * Pass the object that will handle bluetooth communication.\n\t * Null if bluetooth not available on this device.\n\t * The main method to use in communication is write(byte[] data)\n\t * \n\t * @see BluetoothService#write(byte[] data)\n\t * @param bluetoothService\n\t */\n\tvoid setBluetoothService(BluetoothService bluetoothService);\n\n\t/**\n\t * A status message sent by the bluetooth service to be displayed\n\t * somewhere.\n\t * @param message\n\t */\n\tvoid setStatusMessage(String message);\n}", "public void bind(BluetoothDevice device){\n tv_blue_list_name.setText(device.getName());\n tv_blue_list_address.setText(device.getAddress());\n\n }", "private void sendConfiguration() {\r\n if (currentBluetoothGatt == null) {\r\n Toast.makeText(this, \"Non Connecté\", Toast.LENGTH_SHORT).show();\r\n return;\r\n }\r\n\r\n /*EditText ledGPIOPin = findViewById(R.id.editTextPin);\r\n EditText buttonGPIOPin = findViewById(R.id.editTextPin);\r\n final String pinLed = ledGPIOPin.getText().toString();\r\n final String pinButton = buttonGPIOPin.getText().toString();\r\n\r\n final BluetoothGattService service = currentBluetoothGatt.getService(BluetoothLEManager.DEVICE_UUID);\r\n if (service == null) {\r\n Toast.makeText(this, \"UUID Introuvable\", Toast.LENGTH_SHORT).show();\r\n return;\r\n }\r\n\r\n final BluetoothGattCharacteristic buttonCharact = service.getCharacteristic(BluetoothLEManager.CHARACTERISTIC_BUTTON_PIN_UUID);\r\n final BluetoothGattCharacteristic ledCharact = service.getCharacteristic(BluetoothLEManager.CHARACTERISTIC_LED_PIN_UUID);\r\n\r\n buttonCharact.setValue(pinButton);\r\n ledCharact.setValue(pinLed);\r\n\r\n currentBluetoothGatt.writeCharacteristic(buttonCharact); // async code, you cannot send 2 characteristics at the same time!\r\n charsStack.add(ledCharact); // stack the next write*/\r\n }", "@Override\n protected void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n m_tts = new TextToSpeech(this, this);\n\n Intent newint = getIntent();\n //receive the address of the bluetooth device\n address = newint.getStringExtra(MainActivity.EXTRA_ADDRESS);\n\n //view of the ledControl\n setContentView(R.layout.activity_game_play);\n\n btnEnd = (Button)findViewById(R.id.btnEnd);\n\n new ConnectBT().execute(); //Call the class to connect\n\n btnEnd.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Disconnect(); //close connection\n }\n });\n\n }", "public void deviceDiscovered(RemoteDevice btDevice, DeviceClass cod) {\n\t\ttry {\n\t\t\tif (isValidDevice(btDevice.getBluetoothAddress())) {\n\t\t\t\tNeighbors.getInstance().AddNeighbor(btDevice.getBluetoothAddress());\n\t\t\t\tdevList.addElement(btDevice.getBluetoothAddress());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t}\n\n\t}", "private void bluetoothList(CallbackContext callbackContext) throws JSONException {\n BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n Set<BluetoothDevice> pairedDevices = bluetoothAdapter.getBondedDevices();\n\n JSONArray arrayList = new JSONArray();\n\n // Lista todos os dispositivos pareados.\n if (pairedDevices.size() > 0) {\n for (BluetoothDevice device : pairedDevices) {\n String name = device.getName();\n String address = device.getAddress();\n arrayList.put(name + \"_\" + address);\n }\n callbackContext.success(arrayList);\n }\n }", "public void connectDevice(String address) {\n try {\n device = bluetoothAdapter.getRemoteDevice(address);\n }catch(IllegalArgumentException e){\n Toast.makeText(NavigationDrawerActivity.this, \"Mac Address is not available!\", Toast.LENGTH_SHORT).show();\n }\n // Attempt to connect to the device\n chatService.connect(device);\n\n // replaceFragment(AnalysisFragment.NewInstance(),\"analysisfragment\");\n listViewNavDrawer.performItemClick(null,2,0);\n }", "public void connectButtonListener()\n {\n final Context context = Monitoring.this;\n btnConnectDisconnect = (Button) findViewById(R.id.btn_select);\n\n btnConnectDisconnect.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View arg0)\n {\n if (!mBtAdapter.isEnabled())\n {\n Log.i(TAG, \"onClick - Bluetooth not enabled yet\");\n Intent enableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableIntent, REQUEST_ENABLE_BT);\n }\n else\n {\n if (btnConnectDisconnect.getText().toString().equals(\"Connect\"))\n {\n //Connect button pressed, open DeviceListActivity class,\n // with popup windows that scan for devices...\n Intent newIntent = new Intent(context, Scanner.class);\n startActivityForResult(newIntent, REQUEST_SELECT_DEVICE);\n }\n else\n {\n //Disconnect button pressed\n if (mDevice != null)\n {\n mService.disconnect();\n }\n }\n }\n }\n });\n }", "private void initBluetooth() {\n IntentFilter filter = new IntentFilter(BluetoothDevice.ACTION_FOUND);\n this.registerReceiver(mReceiver, filter);\n\n // Register for broadcasts when discovery has finished\n filter = new IntentFilter(BluetoothAdapter.ACTION_DISCOVERY_FINISHED);\n this.registerReceiver(mReceiver, filter);\n\n // Get the local Bluetooth adapter\n mBtAdapter = BluetoothAdapter.getDefaultAdapter();\n\n // Get a set of currently paired devices\n Set<BluetoothDevice> pairedDevices = mBtAdapter.getBondedDevices();\n\n // Initialize the BluetoothChatService to perform bluetooth connections\n mChatService = new BluetoothChatService(this, mHandler);\n }", "void onConnect( );", "protected void connectBluetooth(int i) {\n Intent intent = new Intent(this, MainActivity.class);\n // Try top 3 devices\n ArrayList<BluetoothDevice> devices = new ArrayList<>();\n// for (int i = 0; i < mScanResults.size() && i < 3; i++) {\n ScanInfo info = mScanResults.get(i);\n devices.add(mBtAdapter.getRemoteDevice(info.address)); //getRemoteDevice()返回相应的被指定蓝牙连接的远端设备。\n// }\n intent.putParcelableArrayListExtra(BluetoothDevice.EXTRA_DEVICE, devices);\n Log.i(TAG, \"Devices : \" + intent.putParcelableArrayListExtra(BluetoothDevice.EXTRA_DEVICE, devices));\n\n this.startActivity(intent);\n }", "@Override\r\n public void onDeviceConnecting(GenericDevice mDeviceHolder,\r\n PDeviceHolder innerDevice) {\n\r\n }", "public boolean mBT_PickDevice2(){ //Will change sRemoteDeviceName\n if (oBTadapter==null) return false;\n bDevicePickerActive=true;\n oBTadapter.startDiscovery();\n {\n Intent intent = new Intent(\"android.bluetooth.devicepicker.action.LAUNCH\");\n mContext.startActivity(intent); //startActivityForResult\n }\n mSleep(1000);\n return true;\n }", "private void connectDevice(Intent data, boolean secure) {\n String address = data.getExtras()\n .getString(EXTRA_DEVICE_ADDRESS);\n // Get the BluetoothDevice object\n BluetoothDevice device = bluetoothAdapter.getRemoteDevice(address);\n // Attempt to connect to the device\n btService.connect(device, secure);\n }" ]
[ "0.7481283", "0.74031913", "0.7366099", "0.69926757", "0.6954368", "0.6889281", "0.6879421", "0.687088", "0.68684745", "0.68463415", "0.67598575", "0.673858", "0.66980356", "0.66705596", "0.6659892", "0.6638189", "0.6633195", "0.66217893", "0.6615716", "0.6595033", "0.6557658", "0.65351415", "0.65306324", "0.65142465", "0.64991385", "0.64667916", "0.6465294", "0.6463139", "0.644792", "0.644637", "0.6431405", "0.6422031", "0.6421992", "0.6413941", "0.6410408", "0.6401066", "0.6373877", "0.63661003", "0.6331755", "0.6314153", "0.6313397", "0.6302308", "0.62824184", "0.6269508", "0.62610364", "0.6255705", "0.6255671", "0.62539124", "0.62429804", "0.62420434", "0.6230705", "0.6230609", "0.6217674", "0.62108254", "0.6197662", "0.61958134", "0.6184679", "0.6170876", "0.61622536", "0.61467165", "0.61412007", "0.6135885", "0.6126368", "0.6125761", "0.61191314", "0.6110145", "0.61066705", "0.61055523", "0.61006755", "0.6095686", "0.60913306", "0.60719734", "0.6069837", "0.60540277", "0.6051214", "0.60479015", "0.60379714", "0.6032275", "0.60307163", "0.60273623", "0.6027328", "0.60269886", "0.6025355", "0.60231805", "0.60214007", "0.60151917", "0.60076225", "0.6006726", "0.60057217", "0.6004217", "0.5997231", "0.5995646", "0.59805375", "0.5980343", "0.59724456", "0.59589785", "0.59564596", "0.59485835", "0.5948218", "0.5939043", "0.59355736" ]
0.0
-1
Processing when Bluetooth Adapter is enable
public boolean execActivityResultAdapter( int result, Intent data ) { log_d( "execActivityResultAdapter()" ); // no action if debug if ( BT_DEBUG_SERVICE ) return true; // When the request to enable Bluetooth returns if ( result == Activity.RESULT_OK ) { log_d( "RESULT OK" ); // Bluetooth is now enabled, so set up a chat session initService(); // If user did not enable Bluetooth or an error occured } else { log_d( "RESULT NG" ); return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void enableBT() {\n if (bluetoothAdapter == null) {\n Log.e(LOG_TAG, \"Bluetooth is not supported\");\n } else if (!bluetoothAdapter.isEnabled()) {\n bluetoothAdapter.enable();\n }\n }", "private void turnOnBT() {\n\t\tIntent intent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n\t\tstartActivityForResult(intent, 1);\n\t}", "private void checkBTState() {\n\n if(btAdapter==null) {\n Toast.makeText(getBaseContext(), \"Device does not support bluetooth\", Toast.LENGTH_LONG).show();\n } else {\n if (btAdapter.isEnabled()) {\n } else {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "private void checkBTState() {\n\n if (btAdapter == null) {\n Toast.makeText(getBaseContext(), \"Device does not support bluetooth\", Toast.LENGTH_LONG).show();\n } else {\n if (btAdapter.isEnabled()) {\n } else {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "@Override\n public void onClick(View v) {\n if (mBluetoothAdapter.isEnabled()) {\n\n }\n }", "private void checkBTState() {\n\n if(btAdapter==null) {\n Toast.makeText(getContext(), \"El dispositivo no soporta bluetooth\", Toast.LENGTH_LONG).show();\n } else {\n if (btAdapter.isEnabled()) {\n } else {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "private void CheckBtIsOn() {\n mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n\n if (!mBluetoothAdapter.isEnabled()) {\n Toast.makeText(getApplicationContext(), \"Bluetooth Disabled!\",\n Toast.LENGTH_SHORT).show();\n\n // Start activity to show bluetooth options\n Intent enableBtIntent = new Intent(mBluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n }\n }", "private void ensureBluetoothIsEnabled(){\r\n\t\t//if Bluetooth is not enabled, enable it now\r\n\t\tif (!mBtAdapter.isEnabled()) { \t\t\r\n \t enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\r\n \t startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\r\n \t}\r\n\t}", "public void onStart(){ \r\n\t\t//ensure bluetooth is enabled \r\n\t\tensureBluetoothIsEnabled();\r\n\t\tsuper.onStart(); \t\r\n\t}", "private void checkBluetoothEnabled()\r\n {\r\n if (!mBluetoothAdapter.isEnabled())\r\n {\r\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\r\n startActivityForResult(enableBtIntent, BLUETOOTH_ENABLE_REQUEST_ID);\r\n } else\r\n checkNfcEnabled();\r\n }", "public void checkBTState() {\n if(mAdapter==null) {\n errorExit(\"Fatal Error\", \"Bluetooth not support\");\n } else {\n if (mAdapter.isEnabled()) {\n Log.d(TAG, \"...Bluetooth ON...\");\n } else {\n //Prompt user to turn on Bluetooth\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n ((Activity) mContext).startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "private void checkBTState() {\n if(btAdapter==null) {\n errorExit(\"Fatal Error\", \"Bluetooth not support\");\n } else {\n if (btAdapter.isEnabled()) {\n Log.d(TAG, \"...Bluetooth ON...\");\n } else {\n //Prompt user to turn on Bluetooth\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "private void checkBTState() {\n if(bluetoothAdapter==null) {\n errorExit(\"Fatal Error\", \"Bluetooth not supported\");\n } else {\n if (!bluetoothAdapter.isEnabled()) {\n //Prompt user to turn on Bluetooth\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "private void checkBTState() {\n if(btAdapter==null) {\n btState.setImageResource(R.drawable.ic_action_off);\n errorExit(\"Fatal Error\", \"Bluetooth не поддерживается\");\n\n } else {\n if (btAdapter.isEnabled()) {\n Log.d(TAG, \"...Bluetooth включен...\");\n btState.setImageResource(R.drawable.ic_action_on);\n } else {\n //Prompt user to turn on Bluetooth\n Intent enableBtIntent = new Intent(btAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n }\n }\n }", "private void checkEnableBt() {\n if (mBtAdapter == null || !mBtAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n }\n }", "void activateBlue(BluetoothAdapter bluetoothAdapter){\r\n if (!bluetoothAdapter.isEnabled()) {\r\n Intent enableBlueTooth = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\r\n startActivityForResult(enableBlueTooth, REQUEST_CODE_ENABLE_BLUETOOTH);\r\n }\r\n }", "@Override\n public void onClick(View v) {\n BluetoothAdapter myBleAdapter = BluetoothAdapter.getDefaultAdapter();\n myBleAdapter.enable();\n\n if (myBleWrapper.isBtEnabled() == true) {\n tV1.setTextColor(Color.parseColor(\"#000000\"));\n tV1.setText(\"Yo ble is on\");\n }\n// else\n// {\n// tV1.setText(\"ble is off\");\n// }\n }", "private void getBluetoothState() {\r\n\r\n\t\t if (bluetoothAdapter == null) {\r\n\t\t\t bluetoothStatusSetup.setText(\"Bluetooth NOT supported\");\r\n\t\t } else if (!(bluetoothAdapter.isEnabled())) {\r\n\t\t\t bluetoothStatusSetup.setText(\"Bluetooth is NOT Enabled!\");\r\n\t\t\t Intent enableBtIntent = new Intent(\r\n\t\t\t\t\t BluetoothAdapter.ACTION_REQUEST_ENABLE);\r\n\t\t\t startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\r\n\t\t\t getBluetoothState();\r\n\t\t }\r\n\r\n\t\t if (bluetoothAdapter.isEnabled()) {\r\n\r\n\t\t\t if (bluetoothAdapter.isDiscovering()) {\r\n\t\t\t\t bluetoothStatusSetup.setText(\"Bluetooth is currently in device discovery process.\");\r\n\t\t\t } else {\r\n\t\t\t\t bluetoothStatusSetup.setText(\"Bluetooth is Enabled.\");\r\n\t\t\t }\r\n\t\t }\r\n\t }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n mCheckBt = false;\n if (requestCode == REQUEST_ENABLE_BT && resultCode != RESULT_OK) {\n// mScanButton.setEnabled(false);\n Toast.makeText(this, getString(R.string.bluetooth_not_enabled), Toast.LENGTH_LONG).show();\n }\n }", "private void turnOn(View v) {\n bluetoothAdapter.enable();\n }", "@Override\r\n\tprotected void onHandleIntent(Intent intent) {\n\t\tfinal BluetoothManager bluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);\r\n\t\tmBluetoothAdapter = bluetoothManager.getAdapter();\r\n\r\n\t\t// Checks if Bluetooth is supported on the device.\r\n\t\tif (mBluetoothAdapter == null) {\r\n\t\t\tLog.i(TAG, \"Bluetooth is not supported\");\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\tLog.i(TAG, \"mBluetoothAdapter = \" + mBluetoothAdapter);\r\n\t\t}\r\n\r\n\t\t//启用蓝牙\r\n\t\t//mBluetoothAdapter.enable();\r\n\t\t//Log.i(TAG, \"mBluetoothAdapter.enable\");\r\n\t\t\r\n\t\tmBLE = new BluetoothLeClass(this);\r\n\t\t\r\n\t\tif (!mBLE.initialize()) {\r\n\t\t\tLog.e(TAG, \"Unable to initialize Bluetooth\");\r\n\t\t}\r\n\t\tLog.i(TAG, \"mBLE = e\" + mBLE);\r\n\r\n\t\t// 发现BLE终端的Service时回调\r\n\t\tmBLE.setOnServiceDiscoverListener(mOnServiceDiscover);\r\n\r\n\t\t// 收到BLE终端数据交互的事件\r\n\t\tmBLE.setOnDataAvailableListener(mOnDataAvailable);\r\n\t\t\r\n\t\t//开始扫描\r\n\t\tmBLE.scanLeDevice(true);\r\n\t\t\r\n\t\t/*\r\n\t\tMRBluetoothManage.Init(this, new MRBluetoothEvent() {\r\n\t\t\t@Override\r\n\t\t\tpublic void ResultStatus(int result) {\r\n\t\t\t\tswitch (result) {\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_NOT_OPEN:\r\n\t\t\t\t\t//Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\r\n\t\t\t\t\t//startActivityForResult(enableBtIntent, 100);\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_NOT_OPEN\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_INIT_OK:\r\n\t\t\t\t\tMRBluetoothManage.scanAndConnect();\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_INIT_OK\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_SCAN_START:\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_SCAN_START\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_SCAN_END:\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_SCAN_END\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_CONNECT_START:\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_CONNECT_START\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_CONNECT_OK:\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_CONNECT_OK\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MRBluetoothManage.MRBLUETOOTHSTATUS_CONNECT_CLOSE:\r\n\t\t\t\t\tLog.d(TAG, \"MRBLUETOOTHSTATUS_CONNECT_CLOSE\");\r\n\t\t\t\t\tMRBluetoothManage.stop();\r\n\t\t\t\t\tMRBluetoothManage.scanAndConnect();\r\n\t\t\t\t\t//MRBluetoothManage.Init(BluetoothService.this, this);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void ResultDevice(ArrayList<BluetoothDevice> deviceList) {\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void ResultData(byte[] data) {\r\n\t\t\t\tLog.i(TAG, data.toString());\r\n\t\t\t\tbyte[] wenDuByte = new byte[2];\r\n\t\t\t\tbyte[] shiDuByte = new byte[2];\r\n\t\t\t\tbyte[] shuiFenByte = new byte[2];\r\n\t\t\t\tbyte[] ziWaiXianByte = new byte[2];\r\n\t\t\t\tSystem.arraycopy(data, 4, wenDuByte, 0, 2);\r\n\t\t\t\tSystem.arraycopy(data, 6, shiDuByte, 0, 2);\r\n\t\t\t\tSystem.arraycopy(data, 8, shuiFenByte, 0, 2);\r\n\t\t\t\tSystem.arraycopy(data, 10, ziWaiXianByte, 0, 2);\r\n\t\t\t\tTestModel model = new TestModel();\r\n\t\t\t\tmodel.wenDu = BitConverter.toShort(wenDuByte);\r\n\t\t\t\tmodel.shiDu = BitConverter.toShort(shiDuByte);\r\n\t\t\t\tmodel.shuiFen = BitConverter.toShort(shuiFenByte);\r\n\t\t\t\tmodel.ziWaiXian = BitConverter.toShort(ziWaiXianByte);\r\n\t\t\t\t//Log.d(TAG, model.toString());\r\n\t\t\t\tsendData(model);\r\n\t\t\t}\r\n\t\t});\r\n\t\t*/\r\n\t}", "private void checkBTState() {\n\t\tif (btAdapter == null) {\n\t\t\terrorExit(\"Fatal Error\", \"Bluetooth not support\");\n\t\t} else {\n\t\t\tif (btAdapter.isEnabled()) {\n\t\t\t\tLog.d(TAG, \"...Bluetooth ON...\");\n\t\t\t} else {\n\t\t\t\t// Prompt user to turn on Bluetooth\n\t\t\t\tIntent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n\t\t\t\tstartActivityForResult(enableBtIntent, 1);\n\t\t\t}\n\t\t}\n\t}", "private void ensureBluetoothEnabled() {\n if (!mBluetoothAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(\n BluetoothAdapter.ACTION_REQUEST_ENABLE);\n main.startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n } else {\n connectToBluetoothDevice(\"00:06:66:64:42:97\"); // Hard coded MAC of the BT-device.\n Log.i(tag, \"Connected to device!\");\n }\n }", "void bluetoothDeactivated();", "private void initPlugin() {\n if (bluetoothAdapter == null) {\n Log.e(LOG_TAG, \"Bluetooth is not supported\");\n } else {\n Log.e(LOG_TAG, \"Bluetooth is supported\");\n\n sendJS(\"javascript:cordova.plugins.BluetoothStatus.hasBT = true;\");\n\n //test if BLE supported\n if (!mcordova.getActivity().getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\n Log.e(LOG_TAG, \"BluetoothLE is not supported\");\n } else {\n Log.e(LOG_TAG, \"BluetoothLE is supported\");\n sendJS(\"javascript:cordova.plugins.BluetoothStatus.hasBTLE = true;\");\n }\n \n // test if BT is connected to a headset\n \n if (bluetoothAdapter.getProfileConnectionState(BluetoothProfile.HEADSET) == BluetoothProfile.STATE_CONNECTED ) {\n Log.e(LOG_TAG, \" Bluetooth connected to headset\");\n sendJS(\"javascript:cordova.fireWindowEvent('BluetoothStatus.connected');\");\n } else {\n Log.e(LOG_TAG, \"Bluetooth is not connected to a headset \" + bluetoothAdapter.getProfileConnectionState(BluetoothProfile.HEADSET));\n }\n\n //test if BT enabled\n if (bluetoothAdapter.isEnabled()) {\n Log.e(LOG_TAG, \"Bluetooth is enabled\");\n\n sendJS(\"javascript:cordova.plugins.BluetoothStatus.BTenabled = true;\");\n sendJS(\"javascript:cordova.fireWindowEvent('BluetoothStatus.enabled');\");\n } else {\n Log.e(LOG_TAG, \"Bluetooth is not enabled\");\n }\n }\n }", "public void checkBluetooth(BluetoothAdapter bluetoothAdapter){\n if(bluetoothAdapter == null || !bluetoothAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n }\n }", "@Override\n public void onResume(){\n Log.i(TAG, \"-- ON RESUME --\");\n super.onResume();\n // If BT is not on, request that it be enabled.false\n if (!mBluetoothAdapter.isEnabled()) {\n Intent enableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableIntent, REQUEST_ENABLE_BT);\n }\n }", "private boolean BTEnabled() {\n if (!BT.isEnabled()) { // Ask user's permission to switch the Bluetooth adapter On.\n Intent enableIntent = new Intent(\n BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableIntent, REQUEST_ENABLE_BT);\n return false;\n } else {\n DisplayToast(\"Bluetooth is already on\");\n return true;\n }\n }", "@Override\n public void onBluetoothDeviceFound(BluetoothDevice btDevice) {\n }", "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\twait_time = 0;\r\n\t\t\t\t\t\t\twhile (true) {\r\n\t\t\t\t\t\t\t\tif (HomeView.ble_status == 0\r\n\t\t\t\t\t\t\t\t\t\t|| HomeView.ble_status == 1\r\n\t\t\t\t\t\t\t\t\t\t|| HomeView.ble_status == 2) {\r\n\r\n\t\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\t\tscanLeDevice(true);\r\n\t\t\t\t\t\t\t\t\t\tbluetoothSwitch = true;\r\n\t\t\t\t\t\t\t\t\t\tsetUI();\r\n\t\t\t\t\t\t\t\t\t\trunOnUiThread(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\t\tprogress.dismiss();\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t} catch (IllegalArgumentException e) {\r\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\twait_time++;\r\n\t\t\t\t\t\t\t\tif (wait_time > 5) {\r\n\t\t\t\t\t\t\t\t\trunOnUiThread(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\tprogress.dismiss();\r\n\t\t\t\t\t\t\t\t\t\t\twait_time = 0;\r\n\t\t\t\t\t\t\t\t\t\t\tbluetoothSwitch = false;\r\n\t\t\t\t\t\t\t\t\t\t\tsetUI();\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}", "private void resetBluetooth() {\n if (mBtAdapter != null) {\n mBtAdapter.disable();\n mHandler.postDelayed(new Runnable() {\n\n @Override\n public void run() {\n checkEnableBt();\n }\n }, 200);\n\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n Log.d(TAG, \"onActivityResult called\");\n\n if (requestCode == REQUEST_ENABLE_BT && resultCode == Activity.RESULT_CANCELED) {\n\n // User choose NOT to enable Bluetooth.\n mAlertBlue = null;\n showNegativeDialog(getResources().getString(R.string.blue_error_title),\n getResources().getString(R.string.blue_error_msg)\n );\n\n } else {\n\n // User choose to enable Bluetooth.\n mAlertBlue = null;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)\n verifyPermissions(mActivity);\n else {\n mBluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);\n mBluetoothAdapter = mBluetoothManager.getAdapter();\n scanLeDevice(true);\n }\n }\n }", "@Override public void onClick(View v) {\n startActivity(new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE));\n }", "private void onEnableBluetoothResponse(int resultCode) {\n\t\tif (resultCode == RESULT_OK) {\n\t\t\tlogger.debug(\"onEnableBluetoothResponse(): Bluetooth enabled. Starting Workout Service.\");\n\t\t\tworkoutServiceIntent = new Intent(this, WorkoutService.class);\n\t\t\tstartService(workoutServiceIntent);\n\t\t\tbindService(workoutServiceIntent, workoutServiceConn, BIND_AUTO_CREATE);\n\t\t}\n\n\t\telse {\n\t\t\tlogger.warn(\"onEnableBluetoothResponse(): User elected not to enable Bluetooth. Activity will now finish.\");\n\t\t\tfinish();\n\t\t}\n\t}", "@Override\r\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n super.onActivityResult(requestCode, resultCode, data);\r\n Log.v(TAG, \"** onActivityResult **\");\r\n // determine from which activity\r\n switch (requestCode) {\r\n // if it was the request to enable Bluetooth:\r\n case REQUEST_ENABLE_BT:\r\n if (resultCode == Activity.RESULT_OK) {\r\n // Bluetooth is enabled now\r\n Log.v(TAG, \"** Bluetooth is now enabled**\");\r\n } else {\r\n // user decided not to enable Bluetooth so exit application\r\n Log.v(TAG, \"** Bluetooth is NOT enabled**\");\r\n Toast.makeText(this, \"Bluetooth not enabled\",\r\n Toast.LENGTH_LONG).show();\r\n finish();\r\n }\r\n }\r\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\t\n\t\tswitch (requestCode) {\n\t\tcase REQUEST_ENABLE_BT:\n\t\t\tif(resultCode != RESULT_OK){\n\t\t\t\tToast.makeText(this, \"An error occured while enabling BT.\", Toast.LENGTH_LONG).show();\n\t\t\t\thasBTenabled = false;\n\t\t\t\tfinish();\n\t\t\t}else{\n\t\t\t\tsetupBTService();\n\t\t\t\tupdateBluetoothList();\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\tcase BT_SETTINGS_RESULT:\n\t\t\tupdateBluetoothList();\n\t\t\tbreak;\n\t\t\t\n case REQUEST_CONNECT_DEVICE_SECURE:\n // When DeviceListActivity returns with a device to connect\n if (resultCode == Activity.RESULT_OK) {\n connectDevice(data, true);\n }\n break;\n\t\t}\n\t}", "void onStateChange(BluetoothService.BTState state);", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\twait_time = 0;\r\n\t\t\t\twhile (true) {\r\n\t\t\t\t\tif (HomeView.ble_status == 0 || HomeView.ble_status == 1\r\n\t\t\t\t\t\t\t|| HomeView.ble_status == 2) {\r\n\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tscanLeDevice(true);\r\n\r\n\t\t\t\t\t\t} catch (IllegalArgumentException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbluetoothSwitch = true;\r\n\t\t\t\t\t\tsetUI();\r\n\t\t\t\t\t\trunOnUiThread(new Runnable() {\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\tprogress.dismiss();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\twait_time++;\r\n\t\t\t\t\tif (wait_time > 5) {\r\n\t\t\t\t\t\trunOnUiThread(new Runnable() {\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\tprogress.dismiss();\r\n\t\t\t\t\t\t\t\twait_time = 0;\r\n\t\t\t\t\t\t\t\tbluetoothSwitch = false;\r\n\t\t\t\t\t\t\t\tsetUI();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "public void bluetooth_enable_discoverability()\r\n {\n\t\t\r\n Intent discoverableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);\r\n\t\tdiscoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, 300);\r\n\t\tLoaderActivity.m_Activity.startActivity(discoverableIntent);\r\n\t\tserver_connect_thread = new Server_Connect_Thread();\r\n\t\tserver_connect_thread.start();\r\n\t\tmessages.clear();\r\n }", "private void checkBleSupportAndInitialize() {\n Log.d(TAG, \"checkBleSupportAndInitialize: \");\n // Use this check to determine whether BLE is supported on the device.\n if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\n Log.d(TAG,\"device_ble_not_supported \");\n Toast.makeText(this, R.string.device_ble_not_supported,Toast.LENGTH_SHORT).show();\n return;\n }\n // Initializes a Blue tooth adapter.\n final BluetoothManager bluetoothManager = (BluetoothManager) context.getSystemService(Context.BLUETOOTH_SERVICE);\n mBluetoothAdapter = bluetoothManager.getAdapter();\n\n if (mBluetoothAdapter == null) {\n // Device does not support Blue tooth\n Log.d(TAG, \"device_ble_not_supported \");\n Toast.makeText(this,R.string.device_ble_not_supported, Toast.LENGTH_SHORT).show();\n return;\n }\n\n //打开蓝牙\n if (!mBluetoothAdapter.isEnabled()) {\n Log.d(TAG, \"open bluetooth \");\n bluetoothUtils.openBluetooth();\n }\n }", "static void toggle(Context context) {\n Log.i(TAG, \"toggle Bluetooth\");\n\n // Just toggle Bluetooth power, as long as we're not already in\n // an intermediate state.\n BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();\n int state = adapter.getState();\n if (state == BluetoothAdapter.STATE_OFF)\n adapter.enable();\n else if (state == BluetoothAdapter.STATE_ON)\n adapter.disable();\n }", "public void onCreate() {\n\t\tSystem.out.println(\"This service is called!\");\n\t\tmyBluetoothAdapter= BluetoothAdapter.getDefaultAdapter();\n\t\tmyBluetoothAdapter.enable();\n\t\tSystemClock.sleep(5000);\n\t\tif (myBluetoothAdapter.isEnabled()){\n\t\t\tSystem.out.println(\"BT is enabled...\");\n\t\t\tdiscover = myBluetoothAdapter.startDiscovery();\n\t\t}\n\t\tSystem.out.println(myBluetoothAdapter.getScanMode());\n\t\t\n\t\tSystem.out.println(\"Discovering: \"+myBluetoothAdapter.isDiscovering());\n\t\t//registerReceiver(bReceiver, new IntentFilter(BluetoothDevice.ACTION_FOUND));\n\t\tIntentFilter filter1 = new IntentFilter(BluetoothDevice.ACTION_FOUND);\n\t\tIntentFilter filter2 = new IntentFilter(BluetoothAdapter.ACTION_DISCOVERY_FINISHED);\n\t\tthis.registerReceiver(bReceiver, filter1);\n\t\tthis.registerReceiver(bReceiver, filter2);\n\t\t//registerReceiver(bReceiver, new IntentFilter(BluetoothAdapter.ACTION_DISCOVERY_FINISHED));\n\t}", "@Override\r\n\t\t\t\tpublic void run() {\n\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(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\r\n\t\t\t\t\twait_time = 0;\r\n\t\t\t\t\twhile (true) {\r\n\t\t\t\t\t\tif (HomeView.ble_status == 0\r\n\t\t\t\t\t\t\t\t|| HomeView.ble_status == 1\r\n\t\t\t\t\t\t\t\t|| HomeView.ble_status == 2) {\r\n\t\t\t\t\t\t\twait_time = -10;\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tscanLeDevice(bluetoothSwitch);\r\n\t\t\t\t\t\t\t\trunOnUiThread(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\tprogress.dismiss();\r\n\t\t\t\t\t\t\t\t\t\tsetUI();\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t} catch (IllegalArgumentException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\twait_time++;\r\n\t\t\t\t\t\tif (wait_time > 5) {\r\n\t\t\t\t\t\t\trunOnUiThread(new Runnable() {\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\tprogress.dismiss();\r\n\t\t\t\t\t\t\t\t\twait_time = 0;\r\n\t\t\t\t\t\t\t\t\tbluetoothSwitch = false;\r\n\t\t\t\t\t\t\t\t\tsetUI();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "@Override\n public IBinder onBind(Intent intent) {\n\n AppConstants.RebootHF_reader = false;\n if (mBluetoothLeService != null) {\n final boolean result = mBluetoothLeService.connect(mDeviceAddress);\n Log.d(TAG, \"Connect request result=\" + result);\n }\n\n\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }", "@Override\n public void onClick(View v) {\n if (mBluetoothConnection.isConnected()) {\n mBluetoothConnection.changeState(BluetoothConnection.STATE_IMAGE_RECEIVING);\n mBluetoothConnection.write(\"open_settings\");\n buttonSettings.setEnabled(false);\n } else {\n Toast.makeText(getBaseContext(), \"Device not connected\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public void onScanFinished() {\n Log.d(TAG, \"Scan Finished\");\n if(dicePlus == null){\n BluetoothManipulator.startScan();\n }\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n \n Log.d(TAG, \"onActivityResult \" + resultCode);\n switch (requestCode) {\n //for now, only dealiing with insecure connection\n //i don't think its possible to have secure connections with a serial profile\n case REQUEST_CONNECT_DEVICE_INSECURE:\n if(resultCode == Activity.RESULT_OK){\n setupBluetooth();//since BT is enabled, setup client service\n connectToDevice(data, false);\n }\n else\n setStatus(BluetoothClientService.STATE_NONE);\n break;\n case REQUEST_ENABLE_BT:\n // When the request to enable Bluetooth returns\n if (resultCode == Activity.RESULT_OK) {\n Toast.makeText(this, \"Bluetooth is now enabled\", Toast.LENGTH_SHORT).show();\n }\n else {\n // User did not enable Bluetooth or an error occurred\n Log.d(TAG, \"BT not enabled\");\n Toast.makeText(this, R.string.bt_not_enabled_leaving, Toast.LENGTH_SHORT).show();\n finish();\n }\n }\n }", "public boolean isBluetoothEnabled() {\n BluetoothAdapter bluetooth = BluetoothAdapter.getDefaultAdapter();\n if (bluetooth == null)\n return false;//\"device not BT capable\";\n return bluetooth.isEnabled();\n }", "@Override\n public void checkBluetoothInteface() {\n if (!isConnected) {\n checkForBluetooth();\n }\n }", "public void onEnabled() {\r\n }", "@Override\n public void onClick(View v)\n {\n if (!mBluetoothAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n }\n\n if (clicked) {\n registerDevicesBtn.setText(\"Register Devices\");\n clicked = false;\n mBluetoothAdapter.cancelDiscovery();\n Log.d(\"BT\", \"Cancelled task.\");\n } else {\n registerDevicesBtn.setText(\"Stop Registering Devices\");\n clicked = true;\n devices = new ArrayList<>();\n mBluetoothAdapter.startDiscovery();\n Log.d(\"BT\", \"Started task.\");\n }\n }", "private void enableBtmon() {\n System.out.println(\"Starting Btmon Service...\");\n try {\n btmonProcess = new ProcessBuilder(\"/usr/bin/btmon\").start();\n InputStreamReader inputStream = new InputStreamReader(btmonProcess.getInputStream());\n int size;\n char buffer[] = new char[1024];\n while ((size = inputStream.read(buffer, 0, 1024)) != -1) {\n // System.out.println(\" --- Read ----\");\n String data = String.valueOf(buffer, 0, size);\n processBeaconMessage(data);\n // Thread.sleep(1000);\n }\n } catch (IOException ex ) {\n ex.printStackTrace();\n } catch (Exception ex ) {\n ex.printStackTrace();\n } finally {\n if (btmonProcess != null)\n btmonProcess.destroy();\n }\n }", "public void checkForBluetooth() {\n if (hasBluetoothSupport()) {\n ensureBluetoothEnabled();\n } else {\n showToast(\"Device does not support BlueTooth\");\n }\n }", "private boolean BluetoothAvailable()\n {\n if (BT == null)\n return false;\n else\n return true;\n }", "public boolean mBTInit1(){\n //Initialize the bluetooth adapter\n if (oBTadapter !=null) return true ;\n oBTadapter = BluetoothAdapter.getDefaultAdapter();\n return (oBTadapter != null);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n setContentView(R.layout.activity_main);\n btnOn = findViewById(R.id.bluetoothStart); // кнопка включения\n btnOff = findViewById(R.id.bluetoothStop); // кнопка выключения\n statusText = findViewById(R.id.statusBluetooth); // для вывода текста, полученного\n btState = findViewById(R.id.bluetoothIm);\n workState = findViewById(R.id.workStatIm);\n\n h = new Handler() {\n public void handleMessage(android.os.Message msg) {\n switch (msg.what) {\n case RECIEVE_MESSAGE:\n statusText.setText(\"msg\");// если приняли сообщение в Handler\n byte[] readBuf = (byte[]) msg.obj;\n String strIncom = new String(readBuf, 0, msg.arg1);\n sb.append(strIncom); // формируем строку\n int endOfLineIndex = sb.indexOf(\"\\r\\n\"); // определяем символы конца строки\n if (endOfLineIndex > 0) { // если встречаем конец строки,\n String sbprint = sb.substring(0, endOfLineIndex); // то извлекаем строку\n sb.delete(0, sb.length()); // и очищаем sb\n statusText.setText(\"Ответ от датчика: \" + sbprint); // обновляем TextView\n String[] step_data = sbprint.split(\" \");\n writeFile(step_data[0]);\n writeFile(\";\");\n writeFile(step_data[1]);\n writeFile(\";\");\n writeFile(step_data[2]);\n writeFile(\";\\n\");\n btnOff.setEnabled(true);\n btnOn.setEnabled(true);\n }\n //Log.d(TAG, \"...Строка:\"+ sb.toString() + \"Байт:\" + msg.arg1 + \"...\");\n break;\n }\n };\n };\n\n btAdapter = BluetoothAdapter.getDefaultAdapter(); // получаем локальный Bluetooth адаптер\n\n if (btAdapter.isEnabled()) {\n SharedPreferences prefs_btdev = getSharedPreferences(\"btdev\", 0);\n String btdevaddr=prefs_btdev.getString(\"btdevaddr\",\"?\");\n\n if (btdevaddr != \"?\") {\n BluetoothDevice device = btAdapter.getRemoteDevice(btdevaddr);\n UUID SERIAL_UUID = UUID.fromString(\"0000f00d-1212-afde-1523-785fef13d123\"); // bluetooth serial port service\n //UUID SERIAL_UUID = device.getUuids()[0].getUuid(); //if you don't know the UUID of the bluetooth device service, you can get it like this from android cache\n try {\n btSocket = device.createRfcommSocketToServiceRecord(SERIAL_UUID);\n } catch (Exception e) {\n Log.e(\"\",\"Error creating socket\");\n }\n\n try {\n btSocket.connect();\n Log.e(\"\",\"Connected\");\n } catch (IOException e) {\n Log.e(\"\",e.getMessage());\n try {\n Log.e(\"\",\"trying fallback...\");\n btSocket =(BluetoothSocket) device.getClass().getMethod(\"createRfcommSocket\", new Class[] {int.class}).invoke(device,1);\n btSocket.connect();\n Log.e(\"\",\"Connected\");\n } catch (Exception e2) {\n Log.e(\"\", \"Couldn't establish Bluetooth connection!\");\n }\n }\n } else {\n Log.e(\"\",\"BT device not selected\");\n }\n }\n\n checkBTState();\n\n btnOn.setOnClickListener(new OnClickListener() { // определяем обработчик при нажатии на кнопку\n public void onClick(View v) {\n //btnOn.setEnabled(false);\n workState.setImageResource(R.drawable.ic_action_work_on);\n mConnectedThread.run();\n // TODO start writing in file\n }\n });\n\n btnOff.setOnClickListener(new OnClickListener() {\n public void onClick(View v) {\n //btnOff.setEnabled(false);\n workState.setImageResource(R.drawable.ic_action_work_off);\n mConnectedThread.cancel();\n // TODO stop writing in file\n }\n });\n }", "private void bluetoothClientProcessing(){\n\n\t\tif( client != null ){\n\t\t\tbyte keyReceive = client.receiveByte() ;\n\n\t\t\tif( keyReceive == DataTransmiting.SOFTKEY_RIGHT ||\n\t\t\t\tkeyReceive == DataTransmiting.KEY_FIRE\t){\n \n\t\t\t\tshouldStop=true;\n\t // midlet.setCurrLevel(currlevel);+\n\t midlet.playGameAgain( currlevel ,isBluetoothMode );\n\n\t\t\t}\n\t\t\telse if( keyReceive == DataTransmiting.MESSAGE_EXIT_GAME ){\n\t\t\t\tmidlet.setAlert(\"The device disconnected\") ;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcurrlevel = keyReceive ;\n\t\t\t}\n\t\t\t\n\n\t\t}\n\t}", "public void scanBleDevice(Boolean enable);", "public void onResume(){\r\n\t\t//necessary if bluetooth-enabling-dialog appears \r\n\t\taddPairedDevices();\r\n\t\tsuper.onResume();\r\n\t}", "@Override\n public void run() {\n super.run();\n Log.i(TAG, \"BlueTooth Start\");\n _BluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n\n if (_BluetoothAdapter != null){\n if(!_BluetoothAdapter.isEnabled())\n _BluetoothAdapter.enable();\n else{\n _BluetoothDevice = _BluetoothAdapter.getRemoteDevice(strAddress_BT_UART);\n if (_BluetoothDevice != null){\n Log.i(TAG, \"Starting BtConnect\");\n BtConnect BC = new BtConnect(_BluetoothDevice);\n BC.start();\n }\n }\n }\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t if(btAdapt.isEnabled()){\n\t\t \tbtAdapt.disable();\n\t\t }else {\n\t\t\t\tIntent intent =new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t}", "public void onEnable() {\n }", "@Override\n public void onScanFailed() {\n Log.d(TAG, \"Scan Failed\");\n BluetoothManipulator.startScan();\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n // if user chooses not to enable Bluetooth.\n if (requestCode == REQUEST_ENABLE_BT && resultCode == Activity.RESULT_CANCELED) {\n showToast(\"Bluetooth is required for this application to work\");\n return;\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "private void setupBluetooth() {\n if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\n Toast.makeText(this, R.string.ble_not_supported, Toast.LENGTH_SHORT).show();\n finish();\n }\n\n // Initializes Bluetooth adapter.\n final BluetoothManager bluetoothManager =\n (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);\n bluetoothAdapter = bluetoothManager.getAdapter();\n\n // Ensures Bluetooth is available on the device and it is enabled. If not,\n // displays a dialog requesting user permission to enable Bluetooth.\n if (bluetoothAdapter == null || !bluetoothAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n\n Set<BluetoothDevice> pairedDevices = bluetoothAdapter.getBondedDevices();\n\n if (pairedDevices.size() > 0) {\n // There are paired devices. Get the name and address of each paired device.\n for (BluetoothDevice device : pairedDevices) {\n String deviceName = device.getName();\n String deviceHardwareAddress = device.getAddress(); // MAC address\n String deviceType = device.getBluetoothClass().getDeviceClass() + \"\";\n\n Movie movie = new Movie(deviceName, deviceHardwareAddress, deviceType);\n movieList.add(movie);\n\n }\n\n mAdapter.notifyDataSetChanged();\n }\n }", "private void promptForBT() {\n Intent enableBTIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n mcordova.getActivity().startActivity(enableBTIntent);\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n // user didn't want to turn on BT\n if (requestCode == ENABLE_BT_REQUEST_ID) {\n if(resultCode == Activity.RESULT_CANCELED) {\n btDisabled();\n return;\n }\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "@Override\n public void onConnectionStateChange(BluetoothGatt gatt, int status,\n int newState) {\n Log.i(\"onConnectionStateChange\", \"The connection status has changed. status:\" + status + \" newState:\" + newState + \"\");\n try {\n if(status == BluetoothGatt.GATT_SUCCESS) {\n switch (newState) {\n // Has been connected to the device\n case BluetoothProfile.STATE_CONNECTED:\n Log.i(\"onConnectionStateChange\", \"Has been connected to the device\");\n if(_ConnectionStatus == ConnectionStatus.Connecting) {\n _ConnectionStatus = ConnectionStatus.Connected;\n try {\n if (_PeripheryBluetoothServiceCallBack != null)\n _PeripheryBluetoothServiceCallBack.OnConnected();\n if (gatt.getDevice().getBondState() == BluetoothDevice.BOND_BONDED){\n //Url : https://github.com/NordicSemiconductor/Android-DFU-Library/blob/release/dfu/src/main/java/no/nordicsemi/android/dfu/DfuBaseService.java\n Log.i(\"onConnectionStateChange\",\"Waiting 1600 ms for a possible Service Changed indication...\");\n // Connection successfully sleep 1600ms, the connection success rate will increase\n Thread.sleep(1600);\n }\n } catch (Exception e){}\n // Discover service\n gatt.discoverServices();\n }\n break;\n // The connection has been disconnected\n case BluetoothProfile.STATE_DISCONNECTED:\n Log.i(\"onConnectionStateChange\", \"The connection has been disconnected\");\n if(_ConnectionStatus == ConnectionStatus.Connected) {\n if (_PeripheryBluetoothServiceCallBack != null)\n _PeripheryBluetoothServiceCallBack.OnDisConnected();\n }\n Close();\n _ConnectionStatus = ConnectionStatus.DisConnected;\n break;\n /*case BluetoothProfile.STATE_CONNECTING:\n Log.i(\"onConnectionStateChange\", \"Connecting ...\");\n _ConnectionStatus = ConnectionStatus.Connecting;\n break;\n case BluetoothProfile.STATE_DISCONNECTING:\n Log.i(\"onConnectionStateChange\", \"Disconnecting ...\");\n _ConnectionStatus = ConnectionStatus.DisConnecting;\n break;*/\n default:\n Log.e(\"onConnectionStateChange\", \"newState:\" + newState);\n break;\n }\n }else {\n Log.i(\"onConnectionStateChange\", \"GATT error\");\n Close();\n if(_ConnectionStatus == ConnectionStatus.Connecting\n && _Timeout - (new Date().getTime() - _ConnectStartTime.getTime()) > 0) {\n Log.i(\"Connect\", \"Gatt Error! Try to reconnect (\"+_ConnectIndex+\")...\");\n _ConnectionStatus = ConnectionStatus.DisConnected;\n Connect(); // Connect\n }else {\n _ConnectionStatus = ConnectionStatus.DisConnected;\n if (_PeripheryBluetoothServiceCallBack != null)\n _PeripheryBluetoothServiceCallBack.OnDisConnected();\n }\n }\n }catch (Exception ex){\n Log.e(\"onConnectionStateChange\", ex.toString());\n }\n super.onConnectionStateChange(gatt, status, newState);\n }", "public void handler(){\n bluetoothIn = new Handler() {\n boolean tempSound = true;\n\n /**\n * handle message received from bluetooth\n * @param msg message received\n */\n public void handleMessage(Message msg) {\n switch (msg.what) {\n case handlerState:\n String readMessage = (String) msg.obj; // msg.arg1 = bytes from connect thread\n ReceivedData.setData(readMessage);\n break;\n\n case handlerState1:\n tempSound = Boolean.parseBoolean((String) msg.obj);\n ReceivedData.setSound(tempSound);\n break;\n\n case handlerState5:\n if(\"ACK\".equals ((String) msg.obj ))\n ReceivedData.clearPPGwaveBuffer();\n break;\n\n }\n ReceivedData.Process();\n }\n };\n\n}", "@Override\n public void onPrinterAvailable(int flag) {\n Logger.i(TAG, \"working till here printer available!\");\n\n if (flag == 2) {\n// btn_PrintBill.setEnabled(false);\n// btn_Reprint.setEnabled(false);\n SetPrinterAvailable(false);\n } else if (flag == 5) {\n// btn_PrintBill.setEnabled(true);\n// btn_Reprint.setEnabled(true);\n// feedPrinter();\n SetPrinterAvailable(true);\n } else if (flag == 0) {\n// btn_PrintBill.setEnabled(true);\n// btn_Reprint.setEnabled(true);\n SetPrinterAvailable(false);\n }\n }", "@Override\n public void onScannedBleDeviceAdded(BluetoothDevice device) {\n Log.d(TAG, \"onScannedBleDeviceAdded enter\");\n// Message msg = mHandler.obtainMessage();\n// msg.what = SCAN_DEVICE_ADD_FLAG;\n// msg.obj = device;\n// mHandler.sendMessage(msg);\n updateScanDialog(SCAN_DEVICE_ADD_FLAG, device);\n }", "private void updateBluetoothList(){\n\t\tif(bluetoothAdapter == null){\n\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\t\tbuilder.setTitle(R.string.no_bt_error_dialog_title);\n\t\t\tbuilder.setMessage(R.string.no_bt_error_dialog_message);\n\t\t\tbuilder.setNeutralButton(R.string.no_bt_error_dialog_btn, new OnClickListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\t\n\t\t//check if it is enabled\n//\t\tif (!bluetoothAdapter.isEnabled()) {\n//\t\t Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n//\t\t startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n//\t\t}\n\t\t\n\t\tSet<BluetoothDevice> pairedDevices = bluetoothAdapter\n\t\t\t\t.getBondedDevices();\n\t\t\n\t\tpairedlist = new ArrayList<BluetoothDevice>();\n\t\t\n\t\tif (pairedDevices.size() > 0) {\n\t\t\tfor (BluetoothDevice device : pairedDevices) {\n\t\t\t\tif (isDeviceUsefulForSMS(device.getBluetoothClass()\n\t\t\t\t\t\t.getMajorDeviceClass())) {\n\t\t\t\t\tpairedlist.add(device);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(pairedlist.size() <= 0){\n\t\t\tshowBTPairedDialog();\n\t\t}\n\t\t\n\t\tupdateBTListView();\n\t}", "@Override\n public void onReceive(Context context, Intent intent) {\n Bluetooth_14_feb receiveObj = (Bluetooth_14_feb) context.getApplicationContext();\n boolean appActive = receiveObj.isActivityVisible();\n //int appActive = receiveObj.getActivityCount();\n //Log.d(TAG,\"onReceive:receiver\");\n String action = intent.getAction(); // Get intent's action string\n Bundle extras = intent.getExtras();\n\n if (extras == null) return; // All intents of interest have extras.\n\n\n switch (action) {\n case \"android.bluetooth.adapter.action.STATE_CHANGED\": {\n\n int state = extras.getInt(\"android.bluetooth.adapter.extra.STATE\", FAIL);\n switch (state) {\n case BluetoothAdapter.STATE_OFF: \n if (!appActive) {\n\n Toast.makeText(context,\"Bluetooth:OFF\",Toast.LENGTH_SHORT).show();\n\n }\n else{\n\n Intent inten = new Intent(context,ConnectivityDialog.class);\n inten.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(inten);\n //num=1;\n\n }\n\n break;\n \n case BluetoothAdapter.STATE_ON:\n\n\n if(!appActive) {\n Log.d(TAG,\"state-on-appactive\");\n Toast.makeText(context, \"Bluetooth:ON\", Toast.LENGTH_SHORT).show();\n }\n else{\n\n Intent i = new Intent(\"FINISH\");\n //i.setAction(\"FINISH\");\n context.sendBroadcast(i);\n Toast.makeText(context, \"Bluetooth:ON\", Toast.LENGTH_SHORT).show();\n }\n\n\n\n break;\n\n }\n\n }\n }\n }", "private void connect() {\n // after 10 seconds its connected\n new Handler().postDelayed(\n new Runnable() {\n public void run() {\n Log.d(TAG, \"Bluetooth Low Energy device is connected!!\");\n // Toast.makeText(getApplicationContext(),\"Connected!\",Toast.LENGTH_SHORT).show();\n stateService = Constants.STATE_SERVICE.CONNECTED;\n startForeground(Constants.NOTIFICATION_ID_FOREGROUND_SERVICE, prepareNotification());\n }\n }, 10000);\n\n }", "private void btnFindDevicesClicked(Intent intent, int findDeviceRequest)\n {\n if (btAdapter.isEnabled()) startActivityForResult(intent, findDeviceRequest);\n // Else display error until bluetooth is enabled\n else\n {\n Toast.makeText(getApplicationContext(), \"Enable Bluetooth to continue\", Toast.LENGTH_SHORT).show();\n setUpBluetooth();\n }\n }", "public abstract void wgb_onEnable();", "private void connectToAdapter() {\n if (chosen) {\n BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter();\n BluetoothDevice device = btAdapter.getRemoteDevice(deviceAddress);\n UUID uuid = UUID.fromString(\"00001101-0000-1000-8000-00805F9B34FB\");\n // creation and connection of a bluetooth socket\n try {\n BluetoothSocket socket = device.createInsecureRfcommSocketToServiceRecord(uuid);\n socket.connect();\n setBluetoothSocket(socket);\n connected = true;\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n connect.setText(\"Disconnect\");\n connect.setTextColor(Color.RED);\n }\n });\n } catch (IOException e) {\n Log.d(\"Exception\", \"Bluetooth IO Exception c\");\n connected = false;\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(currContext, R.string.cannotConnect, Toast.LENGTH_SHORT).show();\n connect.setText(\"Connect\");\n connect.setTextColor(Color.BLACK);\n mode.setEnabled(true);\n }\n });\n }\n }\n if (bluetoothSocket.getRemoteDevice().getAddress() != null)\n Log.d(TAG, \"Bluetooth connected\");\n Log.d(TAG, \"Device address: \" + bluetoothSocket.getRemoteDevice().getAddress());\n initializeCom();\n }", "@Test\n public void testEnable() {\n Assert.assertFalse(mAdapterService.isEnabled());\n\n mAdapterService.enable();\n\n // Start GATT\n verify(mMockContext, timeout(CONTEXT_SWITCH_MS).times(1)).startService(any());\n milliSleep(CONTEXT_SWITCH_MS);\n mAdapterService.onProfileServiceStateChanged(GattService.class.getName(),\n BluetoothAdapter.STATE_ON);\n\n // Wait for the native initialization (remove when refactored)\n milliSleep(NATIVE_INIT_MS);\n\n mAdapterService.onLeServiceUp();\n milliSleep(ONE_SECOND_MS);\n\n // Start PBAP and PAN\n verify(mMockContext, timeout(ONE_SECOND_MS).times(3)).startService(any());\n mAdapterService.onProfileServiceStateChanged(PanService.class.getName(),\n BluetoothAdapter.STATE_ON);\n mAdapterService.onProfileServiceStateChanged(BluetoothPbapService.class.getName(),\n BluetoothAdapter.STATE_ON);\n\n milliSleep(CONTEXT_SWITCH_MS);\n\n Assert.assertTrue(mAdapterService.isEnabled());\n }", "@Override\n public void askPermission() {\n if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Uff\");\n builder.setMessage(\"This device does not support Bluetooth LE. Buy another phone.\");\n builder.setPositiveButton(android.R.string.ok, null);\n finish();\n }\n\n //Checking if the Bluetooth is on/off\n BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n if (mBluetoothAdapter == null) {\n // Device does not support Bluetooth\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Uff\");\n builder.setMessage(\"This device does not support Bluetooth.\");\n builder.setPositiveButton(android.R.string.ok, null);\n } else {\n if (!mBluetoothAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 2);\n }\n }\n\n }", "public void onActivityResult(int requestCode, int resultCode, Intent data){\r\n \tif(!mBtAdapter.isEnabled()){\r\n\t\t\tToast.makeText(this, \"Please ensure bluetooth is enabled!\", Toast.LENGTH_LONG).show();\r\n\r\n\t\t\tIntent finishIntent = new Intent();\r\n finishIntent.putExtra(EXTRA_DEVICE_ADDRESS, \"finish\");\r\n setResult(RESULT_BT_NOT_ENABLED, finishIntent);\r\n\t\t\tBluetoothActivity.this.finish();\r\n\t\t}\r\n }", "public abstract void onEnable();", "@Override\r\n public void onStart() {\n super.onStart();\r\n Carteasy cs = new Carteasy();\r\n Map<String, String> data = cs.ViewData(String.valueOf(1), getApplicationContext());\r\n for (Map.Entry<String, String> entry : data.entrySet()) {\r\n //get the Id\r\n Log.d(\"Key: \",entry.getKey());\r\n Log.d(\"Value: \",entry.getValue());\r\n }\r\n if (!BTAdapter.isEnabled()) {\r\n // IT NEEDS BLUETOOTH PERMISSION\r\n // Intent to enable bluetooth, it will show the enable bluetooth\r\n // dialog\r\n Intent enableIntent = new Intent(\r\n BluetoothAdapter.ACTION_REQUEST_ENABLE);\r\n // this is to get a result if bluetooth was enabled or not\r\n startActivityForResult(enableIntent, REQUEST_ENABLE_BT);\r\n // It will call onActivityResult method to determine if Bluetooth\r\n // was enabled or not\r\n } else {\r\n // Bluetooth is enabled\r\n }\r\n }", "@Override\n public void onStart()\n {\n super.onStart();\n // setBTMenus( mApp.mBTAdapter.isEnabled() );\n }", "@Override\n public void onWifiAdapterChanged(boolean enabled) {\n if (enabled && mWifiBeaconingState == WifiBeaconingState.ENABLING) {\n mWifiBeaconingState = WifiBeaconingState.ENABLED;\n mNetManager.initiateWifiScan();\n mWifiBeaconingState = WifiBeaconingState.SCANNING;\n }\n }", "public void registerCallback() {\n if (mLocalManager == null) {\n Log.e(TAG, \"registerCallback() Bluetooth is not supported on this device\");\n return;\n }\n mLocalManager.setForegroundActivity(mFragment.getContext());\n mLocalManager.getEventManager().registerCallback(this);\n mLocalManager.getProfileManager().addServiceListener(this);\n forceUpdate();\n }", "public boolean enableService() {\n \tlog_d( \"enabledService()\" );\n \tshowTitleNotConnected();\n\t\t// no action if debug\n if ( BT_DEBUG_SERVICE ) return false;\n // If BT is not on, request that it be enabled.\n // setupChat() will then be called during onActivityResult\n if ( !mBluetoothAdapter.isEnabled() ) {\n\t\t\t// startActivity Adapter Enable\n\t\t\treturn true;\n // Otherwise, setup the chat session\n } else {\n initService();\n }\n return false;\n }", "public void buzzer(boolean status){\r\n byte newSetting = 0;\r\n if (status){\r\n newSetting = 0x44;// bit 6=led, bit 2=buzzer\r\n }\r\n else { \r\n newSetting = 0; // all Off\r\n }\r\n cardReader.writeUserPort(handle,newSetting); \r\n }", "public void startBluetooth(){\n mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n if (!mBluetoothAdapter.isEnabled()) {\n Intent btIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n //btIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(btIntent);\n }\n mBluetoothAdapter.startDiscovery();\n System.out.println(\"@ start\");\n IntentFilter filter = new IntentFilter(BluetoothDevice.ACTION_FOUND);\n getActivity().registerReceiver(mReceiver, filter);\n }", "public void initBT() {\n\n\t\tStatusBox.setText(\"Connecting...\");\n\t\tLog.e(TAG, \"Connecting...\");\n\t\t\n\t\tif (D) {\n\t\t\tLog.e(TAG, \"+ ON RESUME +\");\n\t\t\tLog.e(TAG, \"+ ABOUT TO ATTEMPT CLIENT CONNECT +\");\n\t\t}\n\t\t\n\t\t//If Mac Address is null then stop this process and display message\n\t\tif(MAC_ADDRESS == \"\"){\n\t\t\tLog.e(TAG,\"No MAC Address Found...\");\n\t\t\tToast.makeText(getApplicationContext(), \"No Mac Address found. Please Enter using button.\",Toast.LENGTH_SHORT );\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// When this returns, it will 'know' about the server,\n\t\t// via it's MAC address.\n\t\tBluetoothDevice device = null;\n\t\ttry {\n\t\t\tdevice = mBluetoothAdapter.getRemoteDevice(MAC_ADDRESS);\n\t\t} catch (Exception e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tToast.makeText(getApplicationContext(), \"NOT Valid BT MAC Address\", Toast.LENGTH_SHORT);\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t\t// returns firefly e350\n\t\tLog.e(TAG, \"device name: \" + device.getName());\n\n\t\t// We need two things before we can successfully connect\n\t\t// (authentication issues aside): a MAC address, which we\n\t\t// already have, and an RFCOMM channel.\n\t\t// Because RFCOMM channels (aka ports) are limited in\n\t\t// number, Android doesn't allow you to use them directly;\n\t\t// instead you request a RFCOMM mapping based on a service\n\t\t// ID. In our case, we will use the well-known SPP Service\n\t\t// ID. This ID is in UUID (GUID to you Microsofties)\n\t\t// format. Given the UUID, Android will handle the\n\t\t// mapping for you. Generally, this will return RFCOMM 1,\n\t\t// but not always; it depends what other BlueTooth services\n\t\t// are in use on your Android device.\n\t\ttry {\n\t\t\t\n\t\t\tint currentapiVersion = android.os.Build.VERSION.SDK_INT;\n\t\t\t\n\t\t\t//RFCOMM connection varies depending on android version. Fixes bug in Gingerbread and newer where always asks for BT Pairing code.\n\t\t\tif (currentapiVersion >= android.os.Build.VERSION_CODES.GINGERBREAD_MR1){\n\t\t\t\t//used in android >= 2.3.3\n\t\t\t\tbtSocket = device.createInsecureRfcommSocketToServiceRecord(MY_UUID);\n\t\t\t} else if (currentapiVersion < android.os.Build.VERSION_CODES.GINGERBREAD_MR1){\n\t\t\t\t//used in android < 2.3.3\n\t\t\t\tbtSocket = device.createRfcommSocketToServiceRecord(MY_UUID);\n\t\t\t}\n\t\t\t\n\t\t\tLog.e(TAG, \"ON RESUME: Socket created!\");\n\t\t\n\t\t\n\t\t\t// Discovery may be going on, e.g., if you're running a\n\t\t\t// 'scan for devices' search from your handset's Bluetooth\n\t\t\t// settings, so we call cancelDiscovery(). It doesn't hurt\n\t\t\t// to call it, but it might hurt not to... discovery is a\n\t\t\t// heavyweight process; you don't want it in progress when\n\t\t\t// a connection attempt is made.\n\t\t\tmBluetoothAdapter.cancelDiscovery();\n\n\t\t\tmyBT = new ConnectedThread(btSocket);\n\t\t\t\n\t\t\t\n\t\t\t// don't write to the streams unless they are created\n\t\t\tif (myBT.BTconnStatus) {\n\t\t\t\t\n\t\t\t\tStatusBox.setText(\"CONNECTED\");\n\t\t\t\tLog.e(TAG, \"CONNECTED\");\n\t\t\t\t\n\t\t\t\t// ST,255 enables remote configuration forever...need this if\n\t\t\t\t// resetting\n\t\t\t\t// PIO4 is held high on powerup then toggled 3 times to reset\n\n\t\t\t\t// GPIO Commands to BT device page 15 of commands datasheet\n\t\t\t\tbyte[] cmdMode = { '$', '$', '$' };\n\t\t\t\tmyBT.write(cmdMode);\n\t\t\t\tmyBT.run();\n\n\t\t\t\t// S@,8080 temp sets GPIO-7 to an output\n\t\t\t\tbyte[] cmd1 = { 'S', '@', ',', '8', '0', '8', '0', 13 };\n\n\t\t\t\t// S%,8080 perm sets GPIO-7 to an output on powerup. only done once\n\t\t\t\t// byte [] cmd1 = {'S','%',',','8','0','8','0',13};\n\n\t\t\t\tmyBT.write(cmd1);\n\t\t\t\tmyBT.run();\n\n\t\t\t\t// S&,8000 drives GPIO-7 low\n\t\t\t\t// byte [] cmd2 = {'S','^',',','8','0','0','0',13};\n\n\t\t\t\t// make it so cmd mode won't timeout even after factory reset\n\t\t\t\tbyte[] cmd3 = { 'S', 'T', ',', '2', '5', '5', 13 };\n\t\t\t\tmyBT.write(cmd3);\n\t\t\t\tmyBT.run();\n\n\t\t\t} else {\n\t\t\t\t//StatusBox.setText(\"NOT Connected\");\t\n\t\t\t\tLog.e(TAG, \"NOT Connected\");\n\t\t\t}\n\t\t\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\tif (D)\n\t\t\t\tLog.e(TAG, \"ON RESUME: Socket creation failed.\", e);\n\t\t}\n\n\t\t\n\t\t\n\t}", "public void startConnection(){\n startBTConnection(mBTDevice,MY_UUID_INSECURE);\n }", "public void onClick(View v) {\n mConnectedThread.write(\"1\"); // Send \"1\" via Bluetooth\n Toast.makeText(getBaseContext(), \"Turn on LED\", Toast.LENGTH_SHORT).show();\n }", "public void transmit_flags(){\n BluetoothGattCharacteristic txChar = mBleService.getCharacteristic(deviceAddress, GattServices.UART_SERVICE, GattCharacteristics.TX_CHARACTERISTIC);/**---------------------------------------------------------------------------------------------------------*/\n /**\n * added to sent 1 or 2 or 3 to the bluetooth device\n */\n if(ExerciseInstructionFragment.flag==1)\n {mBleService.writeCharacteristic(deviceAddress, txChar, new byte[] {0x01});\n Log.d(TAG, \"Data sent via flex\");}\n else if(ExerciseInstructionFragment.flag==2)\n {mBleService.writeCharacteristic(deviceAddress, txChar, new byte[] {0x02});\n Log.d(TAG, \"Data sent via imu\");}\n else if(ExerciseInstructionFragment.flag==3)\n {mBleService.writeCharacteristic(deviceAddress, txChar, new byte[] {0x03});}\n\n }", "private void setListener2(BluetoothReader reader) {\n mBluetoothReader2\n .setOnAuthenticationCompleteListener(new OnAuthenticationCompleteListener() {\n\n @Override\n public void onAuthenticationComplete(\n BluetoothReader bluetoothReader, final int errorCode) {\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (errorCode == BluetoothReader.ERROR_SUCCESS) {\n mTxtAuthentication\n .setText(\"Authentication Success!\");\n mEditApdu.setText(\"FF CA 00 00 00\");\n mAuthentication.setEnabled(false);\n } else {\n mTxtAuthentication\n .setText(\"Authentication Failed!\");\n }\n }\n });\n }\n\n });\n\n /* Wait for receiving ATR string. */\n mBluetoothReader2\n .setOnAtrAvailableListener(new OnAtrAvailableListener() {\n\n @Override\n public void onAtrAvailable(BluetoothReader bluetoothReader,\n final byte[] atr, final int errorCode) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (atr == null) {\n mTxtATR.setText(getErrorString(errorCode));\n } else {\n mTxtATR.setText(Utils.toHexString(atr));\n }\n }\n });\n }\n\n });\n\n /* Wait for power off response. */\n mBluetoothReader2\n .setOnCardPowerOffCompleteListener(new OnCardPowerOffCompleteListener() {\n\n @Override\n public void onCardPowerOffComplete(\n BluetoothReader bluetoothReader, final int result) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mTxtATR.setText(getErrorString(result));\n }\n });\n }\n\n });\n\n /* Wait for response APDU. */\n mBluetoothReader2\n .setOnResponseApduAvailableListener(new OnResponseApduAvailableListener() {\n\n @Override\n public void onResponseApduAvailable(\n BluetoothReader bluetoothReader, final byte[] apdu,\n final int errorCode) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mTxtResponseApdu.setText(getResponseString(\n apdu, errorCode));\n // InnerTes(\"tes\");\n }\n });\n }\n\n });\n mBluetoothReader2\n .setOnResponseApduAvailableListener(new OnResponseApduAvailableListener() {\n\n @Override\n public void onResponseApduAvailable(\n BluetoothReader bluetoothReader, final byte[] apdu,\n final int errorCode) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mTxtScan.setText(getResponseString(\n apdu, errorCode));\n String uid = mTxtScan.getText().toString();\n uid_final= uid;\n final String uid2=mTxtScan.getText().toString();\n /*** Kirim Variabel String uid ke ChildviewHolder **/\n /** code start here **/\n Tes tes = new Tes() {\n\n\n @Override\n public String onClickTes(String uid) {\n return null;\n }\n\n @Override\n public String getUid() {\n return mTxtScan.getText().toString();\n\n }\n };\n tes.onClickTes(uid);\n uid_final = tes.getUid();\n Log.d(\"uidFinal_listener\",\" \"+uid_final);\n requestUid(tes);\n\n\n //uid_final=\"tes\";\n // InnerTes(\"tes\");\n// rvTxtScan.setText(getResponseString(\n// apdu, errorCode));\n getInfoCard(uid);\n }\n\n\n });\n\n\n\n }\n\n });\n\n\n /* Wait for escape command response. */\n mBluetoothReader2\n .setOnEscapeResponseAvailableListener(new OnEscapeResponseAvailableListener() {\n\n @Override\n public void onEscapeResponseAvailable(\n BluetoothReader bluetoothReader,\n final byte[] response, final int errorCode) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mTxtEscapeResponse.setText(getResponseString(\n response, errorCode));\n }\n });\n }\n\n });\n\n /* Wait for device info available. */\n mBluetoothReader2\n .setOnDeviceInfoAvailableListener(new OnDeviceInfoAvailableListener() {\n\n @Override\n public void onDeviceInfoAvailable(\n BluetoothReader bluetoothReader, final int infoId,\n final Object o, final int status) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (status != BluetoothGatt.GATT_SUCCESS) {\n Toast.makeText(ReaderActivity.this,\n \"Failed to read device info!\",\n Toast.LENGTH_SHORT).show();\n return;\n }\n switch (infoId) {\n case BluetoothReader.DEVICE_INFO_SYSTEM_ID: {\n // mTxtSystemId.setText(Utils.toHexString((byte[]) o));\n }\n break;\n case BluetoothReader.DEVICE_INFO_MODEL_NUMBER_STRING:\n // mTxtModelNo.setText((String) o);\n break;\n case BluetoothReader.DEVICE_INFO_SERIAL_NUMBER_STRING:\n // mTxtSerialNo.setText((String) o);\n break;\n case BluetoothReader.DEVICE_INFO_FIRMWARE_REVISION_STRING:\n // mTxtFirmwareRev.setText((String) o);\n break;\n case BluetoothReader.DEVICE_INFO_HARDWARE_REVISION_STRING:\n // mTxtHardwareRev.setText((String) o);\n break;\n case BluetoothReader.DEVICE_INFO_MANUFACTURER_NAME_STRING:\n //mTxtManufacturerName.setText((String) o);\n break;\n default:\n break;\n }\n }\n });\n }\n\n });\n\n /* Wait for battery level available. */\n if (mBluetoothReader2 instanceof Acr1255uj1Reader) {\n ((Acr1255uj1Reader) mBluetoothReader2)\n .setOnBatteryLevelAvailableListener(new OnBatteryLevelAvailableListener() {\n\n @Override\n public void onBatteryLevelAvailable(\n BluetoothReader bluetoothReader,\n final int batteryLevel, int status) {\n Log.i(TAG, \"mBatteryLevelListener data: \" + batteryLevel);\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n // mTxtBatteryLevel2.setText(getBatteryLevelString(batteryLevel));\n }\n });\n\n }\n\n });\n }\n\n /* Handle on battery status available. */\n if (mBluetoothReader2 instanceof Acr3901us1Reader) {\n ((Acr3901us1Reader) mBluetoothReader2)\n .setOnBatteryStatusAvailableListener(new OnBatteryStatusAvailableListener() {\n\n @Override\n public void onBatteryStatusAvailable(\n BluetoothReader bluetoothReader,\n final int batteryStatus, int status) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n // mTxtBatteryStatus2.setText(getBatteryStatusString(batteryStatus));\n }\n });\n }\n\n });\n }\n\n /* Handle on slot status available. */\n mBluetoothReader2\n .setOnCardStatusAvailableListener(new OnCardStatusAvailableListener() {\n\n @Override\n public void onCardStatusAvailable(\n BluetoothReader bluetoothReader,\n final int cardStatus, final int errorCode) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (errorCode != BluetoothReader.ERROR_SUCCESS) {\n mTxtSlotStatus\n .setText(getErrorString(errorCode));\n } else {\n mTxtSlotStatus\n .setText(getCardStatusString(cardStatus));\n }\n }\n });\n }\n\n });\n\n mBluetoothReader2\n .setOnEnableNotificationCompleteListener(new OnEnableNotificationCompleteListener() {\n\n @Override\n public void onEnableNotificationComplete(\n BluetoothReader bluetoothReader, final int result) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (result != BluetoothGatt.GATT_SUCCESS) {\n /* Fail */\n Toast.makeText(\n ReaderActivity.this,\n \"The device is unable to set notification!\",\n Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(ReaderActivity.this,\n \"The device is ready to use!\",\n Toast.LENGTH_SHORT).show();\n }\n }\n });\n }\n\n });\n }", "public void setStatus(int status){\n Log.d(TAG, \"-- SET STATUS --\");\n switch(status){\n //connecting to remote device\n case BluetoothClientService.STATE_CONNECTING:{\n Toast.makeText(this, \"Connecting to remote bluetooth device...\", Toast.LENGTH_SHORT).show();\n ToggleButton statusButton = (ToggleButton) this.findViewById(R.id.status_button);\n statusButton.setBackgroundResource(R.drawable.connecting_button);\n break;\n }\n //not connected\n case BluetoothClientService.STATE_NONE:{\n Toast.makeText(this, \"Unable to connect to remote device\", Toast.LENGTH_SHORT).show();\n ToggleButton statusButton = (ToggleButton) this.findViewById(R.id.status_button);\n statusButton.setBackgroundResource(R.drawable.disconnect_button);\n statusButton.setTextOff(getString(R.string.disconnected));\n statusButton.setChecked(false);\n break;\n }\n //established connection to remote device\n case BluetoothClientService.STATE_CONNECTED:{\n Toast.makeText(this, \"Connection established with remote bluetooth device...\", Toast.LENGTH_SHORT).show();\n ToggleButton statusButton = (ToggleButton) this.findViewById(R.id.status_button);\n statusButton.setBackgroundResource(R.drawable.connect_button);\n statusButton.setTextOff(getString(R.string.connected));\n statusButton.setChecked(true);\n //start motion monitor\n motionMonitor = new MotionMonitor(this, mHandler);\n motionMonitor.start();\n break;\n }\n }\n }", "@Override\r\n public void disconnected(SyncEvent e) {\n btFechar.setEnabled(true);\r\n }", "public S<T> bluetooth(Boolean enable){\n\t\t \t \n\t\t\t BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n\t\t\t boolean isEnabled = bluetoothAdapter.isEnabled();\n\t\t\t if (enable && !isEnabled) {\n\t\t\t bluetoothAdapter.enable(); \n\t\t\t }\n\t\t\t else if(!enable && isEnabled) {\n\t\t\t bluetoothAdapter.disable();\n\t\t\t }\n\n\t\t return this;\n\t }", "private void validateBleSupport() {\n if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\n Snackbar.make(txtStatus, \"No LE Support.\", Snackbar.LENGTH_LONG).show();\n } else {\n\n /*\n * We need to enforce that Bluetooth is first enabled, and take the\n * user to settings to enable it if they have not done so.\n */\n BluetoothAdapter mBluetoothAdapter = BluetoothAdapter\n .getDefaultAdapter();\n\n if (mBluetoothAdapter == null || !mBluetoothAdapter.isEnabled()) {\n Log.d(TAG, \"onResume: Bluetooth is disabled\");\n //Bluetooth is disabled, request enabling it\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivity(enableBtIntent);\n }\n }\n\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tif(resultCode == RESULT_CANCELED) {\n\t\t\tToast.makeText(getApplicationContext(), \"Bluetooth must be enabled to continue\", Toast.LENGTH_SHORT).show();\n\t\t\tfinish();\n\t\t}\n\t}", "private void scanLeDevice(boolean enabled) {\n\n if (enabled) {\n\n Log.v(TAG, \"SCANNING START\");\n\n // Stops scanning after a pre-defined scan period.\n mHandler.postDelayed(new Runnable() {\n @Override\n public void run() {\n\n // if scanning stop previous scanning operation\n if (mScanning) {\n mScanning = false;\n mSwipeRefreshLayout.setRefreshing(false);\n mSwipeRefreshLayout.setEnabled(true);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n Log.v(TAG, \"stopLeScan STOP scan is ended after SCAN_PERIOD\");\n mLeScanner.stopScan(mScanCallback);\n } else {\n mBluetoothAdapter.stopLeScan(mLeScanCallback);\n }\n\n mProgress.setVisibility(View.INVISIBLE);\n\n if (mLeDeviceListAdapter.getItemCount() == 0 && mAlertBlue == null && mAlertGps == null) {\n Log.v(TAG, \"NO DEVICES FOUND\");\n mNoDevice.setVisibility(View.VISIBLE);\n }\n }\n invalidateOptionsMenu();\n }\n }, SCAN_PERIOD);\n\n mScanning = true;\n mSwipeRefreshLayout.setRefreshing(true);\n mSwipeRefreshLayout.setEnabled(true);\n\n //setup the list of device and the adapter for the recycler view.\n bDevices = new ArrayList<>();\n mLeDeviceListAdapter = new LeDeviceAdapter(bDevices, R.layout.device_scan_row);\n mRecyclerView.setAdapter(mLeDeviceListAdapter);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n Log.d(TAG, \"StartLeScan START NEW SCAN\");\n mLeScanner.startScan(null, mSettings, mScanCallback);\n } else {\n mBluetoothAdapter.startLeScan(mLeScanCallback);\n }\n\n } else {\n\n //stop the scan\n mScanning = false;\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n Log.d(TAG, \"stopLeScan STOP scan is ended after SCAN_PERIOD\");\n //You can stop the scan only if the bluetooth is yet ON\n if (mBluetoothAdapter.getState() == BluetoothAdapter.STATE_ON)\n mLeScanner.stopScan(mScanCallback);\n } else {\n if (mBluetoothAdapter.getState() == BluetoothAdapter.STATE_ON)\n mBluetoothAdapter.stopLeScan(mLeScanCallback);\n }\n }\n invalidateOptionsMenu();\n }", "private boolean isBtConnected(){\n \treturn false;\n }" ]
[ "0.75552934", "0.7329292", "0.7272351", "0.72603494", "0.72107255", "0.72015464", "0.7140875", "0.7134927", "0.710149", "0.7055289", "0.6992043", "0.69535756", "0.6930251", "0.69231015", "0.69004613", "0.68934005", "0.6884545", "0.67729384", "0.6772903", "0.67345154", "0.671924", "0.67114794", "0.6705608", "0.6685487", "0.66634434", "0.6658306", "0.66335297", "0.66276765", "0.6563881", "0.65129805", "0.6505348", "0.64995015", "0.64796716", "0.6412013", "0.6411137", "0.63759404", "0.6368041", "0.63537776", "0.6347091", "0.6343375", "0.6304021", "0.6301083", "0.62914616", "0.62795866", "0.6271743", "0.6270908", "0.62706995", "0.62603056", "0.6258212", "0.6252876", "0.6231994", "0.6231188", "0.62290186", "0.621502", "0.62121093", "0.6211142", "0.6203433", "0.6194862", "0.619242", "0.61884487", "0.6186931", "0.6178612", "0.6168085", "0.6162988", "0.61447215", "0.6143645", "0.6143173", "0.6134176", "0.61308235", "0.61243016", "0.6113845", "0.610096", "0.60999066", "0.60871094", "0.6075259", "0.6072234", "0.60681146", "0.6059333", "0.6057838", "0.60564613", "0.604535", "0.60413355", "0.6039223", "0.60266995", "0.6022216", "0.600957", "0.6006799", "0.6005301", "0.5996845", "0.5995192", "0.59874076", "0.59815824", "0.59704393", "0.5960858", "0.59588605", "0.59546393", "0.59476954", "0.59463", "0.59374446", "0.5912838" ]
0.61359787
67
Message Handler ( handle message )
private void execServiceHandler( Message msg ) { switch ( msg.what ) { case BluetoothService.WHAT_READ: execHandlerRead( msg ); break; case BluetoothService.WHAT_WRITE: execHandlerWrite( msg ); break; case BluetoothService.WHAT_STATE_CHANGE: execHandlerChange( msg ); break; case BluetoothService.WHAT_DEVICE_NAME: execHandlerDevice( msg ); break; case BluetoothService.WHAT_FAILED: execHandlerFailed( msg ); break; case BluetoothService.WHAT_LOST: execHandlerLost( msg ); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void handleMessage(Message msg) {}", "public void handleMessage(Message message);", "@Override\r\n public void handleMessage(Message msg) {\n }", "@Override\n public void handleMessage(Message message) {}", "public abstract void msgHandler(Message msg);", "abstract public Object handleMessage(Object message) throws Exception;", "public void handle(int ID, Object message){}", "@Override\n\tpublic void handleMsg(String in) {\n\n\t}", "public void handleMessageFromClient(Object msg) {\n\n }", "void handleMessage(byte messageType, Object message);", "private void HandleMessage(Message message)\n\t{\n\t\tswitch (message.messageType) {\n\t\tcase disconnect: ApplicationManager.Instance().Disconnect();\n\t\t\tbreak;\n\t\tcase log: PrintLogMessageOnTextChat((String)message.message);\n\t\t\tbreak;\n\t\tcase message: PrintMessageOnTextChat((MessageWithTime)message.message);\n\t\t\tbreak;\n\t\tcase UserJoinChannel: UserJoinChannel((ClientData)message.message);\n\t\t\tbreak;\n\t\tcase UserDisconnectChannel: UserDisconnectChannel((ClientData)message.message);\n\t\t\tbreak;\n\t\tcase changeChannel: OnChannelChanged((ChannelData)message.message);\n\t\t\tbreak;\n\t\tcase serverData: data = (ServerData) message.message; \n\t\t\t\t\t\t ApplicationManager.channelsList.DrawChannels(data);\n\t\t\t\tbreak;\n\t\tcase channelInfo: clientsData = (ClientsOnChannelData)message.message;\n\t\t\t\t\t\t ApplicationManager.informationsList.ShowInfo(clientsData);\n\t\t \t\tbreak;\n\t\tcase sendMessageToUser: ApplicationManager.textChat.write((MessageToUser)message.message);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\tpublic void dispatchHandler(Message msg) {\n\t\t\n\t}", "@Override\n\tpublic void processMessage(Message message) {\n\t\t\n\t}", "@Override\n public void handleMessage(ACLMessage message) {\n try {\n onMessage(message);\n } catch (Exception e) {\n e.getMessage();\n }\n }", "@Override\n public void handleMessage(Message msg) {\n System.out.println(\"recibe mensajes ...\");\n System.out.println(msg.obj);\n }", "public void handleMessage(Message msg) {\n switch (msg.what) {\n case handlerState:\n String readMessage = (String) msg.obj; // msg.arg1 = bytes from connect thread\n ReceivedData.setData(readMessage);\n break;\n\n case handlerState1:\n tempSound = Boolean.parseBoolean((String) msg.obj);\n ReceivedData.setSound(tempSound);\n break;\n\n case handlerState5:\n if(\"ACK\".equals ((String) msg.obj ))\n ReceivedData.clearPPGwaveBuffer();\n break;\n\n }\n ReceivedData.Process();\n }", "public void handleMessage(Message msg) {\n\t\t\tLog.e(\"DownloaderManager \", \"newFrameHandler\");\n\t\t\tMessage msgg = new Message();\n\t\t\tmsgg.what=2;\n\t\t\tmsgg.obj = msg.obj;\n\t\t\t\n\t\t\t_replyTo.sendMessage(msgg);\n\t\t\t\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase SUCCESS:\n\t\t\t\tmCallback.onSuccess(mTag);\n\t\t\t\tbreak;\n\t\t\tcase FAIL:\n\t\t\t\tmCallback.onFail(mTag);\n\t\t\t}\n\t\t}", "private void messageHandler(String read){\n\n try {\n buffer.append(read);\n }catch (MalformedMessageException e){\n System.out.println(\"[CLIENT] The message received is not in XML format.\");\n }\n\n while(!buffer.isEmpty()) {\n if (buffer.getPong()) pong = true;\n else if (buffer.getPing()) send(\"<pong/>\");\n else {\n try {\n clientController.onReceivedMessage(buffer.get());\n } catch (EmptyBufferException e) {\n System.out.println(\"[CLIENT] The buffer is empty!\");\n }\n }\n }\n\n }", "@Override\n public void run() {\n Message message = new Message();\n message.what = 4;\n handler.sendMessage(message);\n }", "@Override\n\tpublic void onMessage(Object arg0) {\n\t\t\n\t}", "@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n Log.d(TAG,\"In Handler, Msg = \"+msg.arg1);\n }", "@Override\n public void run() {\n Message message = new Message();\n message.what=1;\n handler.sendMessage(message);\n }", "@Override\n public void run() {\n Message message = mHandler.obtainMessage(1);\n mHandler.sendMessage(message);\n }", "public void handleMessage(String message) {\n\t\tinternalHandleMessage(message);\n\t}", "void onMessageReceived(Message message);", "public void handleStringMessage(String message) {\n\n }", "private void handleMessage(EcologyMessage msg) {\n // Check the message type and route them accordingly.\n switch ((Integer) msg.fetchArgument()) {\n // A message destined for a room\n case ROOM_MESSAGE_ID:\n forwardRoomMessage(msg);\n break;\n\n // A message destined for ecology data sync\n case SYNC_DATA_MESSAGE_ID:\n getEcologyDataSync().onMessage(msg);\n break;\n }\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase 911:\n\t\t\t\tqueryMsg();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}", "@Override\n\tpublic void onMessageRecieved(Message arg0) {\n\t\t\n\t}", "public void handleMessageEvent(StunMessageEvent e) {\n delegate.processRequest(e);\n }", "public void handleMessage(Message message) {\r\n\r\n\t try { \r\n\t \t//only authenticate if you are trying to write to the db... \r\n\t \tHttpServletRequest req = (HttpServletRequest) message.get(\"HTTP.REQUEST\");\r\n\t \tString method = req.getMethod();\r\n\t \t\r\n\t \tif (method!=HttpMethod.GET && method!=HttpMethod.OPTIONS && method!=HttpMethod.HEAD){\r\n \t \r\n\t\t \tAuthorizationPolicy policy = apiUserService.getCurrentAuthPolicy();\r\n\t\t \tString accessKey = policy.getUserName();\r\n\t\t \tString secret = policy.getPassword();\r\n\t\t \r\n\t\t\t\tif (accessKey==null || accessKey.length()==0\r\n\t\t\t\t\t\t|| secret==null || secret.length()==0)\t{\r\n\t\t\t \tthrow new RMapTransformApiException(ErrorCode.ER_NO_USER_TOKEN_PROVIDED);\r\n\t\t\t\t}\t\t\r\n\t\t\t\r\n\t\t\t\tapiUserService.validateKey(accessKey, secret);\r\n\t \t}\r\n\t \t\r\n\t } catch (RMapTransformApiException ex){ \r\n\t \t//generate a response to intercept default message\r\n\t \tRMapTransformApiExceptionHandler exceptionhandler = new RMapTransformApiExceptionHandler();\r\n\t \tResponse response = exceptionhandler.toResponse(ex);\r\n\t \tmessage.getExchange().put(Response.class, response); \t\r\n\t }\r\n\t\t\r\n }", "abstract public boolean handleMessage(int what, int result, Object data, String message, boolean option);", "@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n switch (msg.what) {\n case 0x001:\n Bundle bundle1 = msg.getData();\n String result1 = bundle1.getString(\"result\");\n parseData(result1);\n break;\n default:\n break;\n }\n }", "public void OnMessageReceived(String msg);", "public void handleMessageEvent(StunMessageEvent e) {\n delegate.handleMessageEvent(e);\n }", "public void handleMessageEvent(StunMessageEvent e) {\n delegate.handleMessageEvent(e);\n }", "public void processMessage(String message);", "public void handleMessage(Message msg) {\n super.handleMessage(msg);\n switch (msg.what) {\n case 1:\n if (!isStop) {\n updateTimeSpent();\n mHandler.sendEmptyMessageDelayed(1, 1000);\n }\n break;\n case 0:\n break;\n }\n }", "public void handleMessage(Message message, Socket socket) throws IOException, HandlingException;", "boolean handleMessage(Controller handler, RemoteViewHandler view, User user);", "@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tint event = msg.arg1;\n\t\t\t\tint result = msg.arg2;\n\t\t\t\tObject data = msg.obj;\n\t\t\t\tif (result == SMSSDK.RESULT_COMPLETE) {\n\t\t\t\t\t\n\t\t\t\t\tif (event == SMSSDK.EVENT_SUBMIT_VERIFICATION_CODE) {\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"验证成功\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tRelativeUser.handleRegieter(handler1,edittext_phone.getText().toString(),edittext_pas.getText().toString());\n\t\t\t\t\t\t\n\t\t\t\t\t} else if (event == SMSSDK.EVENT_GET_VERIFICATION_CODE){\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"验证码已经发送\", Toast.LENGTH_SHORT).show();\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\tToast.makeText(getBaseContext(), \"请检查网络原因\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t//TODO\n\t\t\t\t\tRelativeUser.handleRegieter(handler1,edittext_phone.getText().toString(),edittext_pas.getText().toString());\n\t\t\t\t\t/*Toast.makeText(getBaseContext(), \"请检查网络原因\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t((Throwable) data).printStackTrace();*/\n\t\t\t\t}\t\t\t\t\n\t\t\t}", "public void onMessage(Message arg0) {\n\r\n\t}", "public abstract void handleMessage(Node node) throws Exception;", "@Override\n\t\tpublic void handleMessage(final Message msg) {\n\t\t\tswitch (msg.what) {\n\t\t\tcase 0:\n\t\t\t\ttry {\n\t\t\t\t\tHttpDataCallBackEntity entity = (HttpDataCallBackEntity) msg.obj;\n\t\t\t\t\tentity.HttpSuccessCallBack();\n\t\t\t\t} catch (Exception e) {\n\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\ttry {\n\t\t\t\t\tHttpDataCallBackEntity entity = (HttpDataCallBackEntity) msg.obj;\n\t\t\t\t\tentity.HttpFailCallBack();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// Looper.loop();\n\t\t}", "public boolean handleMessage(Message param1) {\n }", "@Override\n public void handleMessage(Message msg) {\n Bundle data = msg.getData();\n if (data.containsKey(\"command\")) {\n if (data.getString(\"command\").equalsIgnoreCase(\"get_data\")) {\n mGetDataMessenger = msg.replyTo;\n getData();\n }\n }\n }", "public abstract void messageReceived(String message);", "@Override\n\tpublic void msgReceived(Message msg) {\n\n\t}", "public void handleMessage(Message message, DatagramSocket socket, DatagramPacket packet) throws HandlingException, IOException, ClassNotFoundException;", "@Override\r\n public void handleMessage(Message message) \r\n {\r\n switch (message.what) \r\n {\r\n case BlueToothService.MESSAGE_REMOTE_CODE:\r\n Utilities.popToast (\"MESSAGE_REMOTE_CODE : \" + message.obj);\r\n break;\r\n case BlueToothService.MESSAGE_REQUEST:\r\n Utilities.popToast (\"MESSAGE_REQUEST : \" + message.obj);\r\n break;\r\n default:\r\n super.handleMessage(message);\r\n }\r\n }", "@Override\r\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\r\n\r\n\t\t\tjuhua.cancel();\r\n\r\n\t\t\tswitch (msg.what) {\r\n\t\t\tcase 0:\r\n\t\t\t\tToast.makeText(HuanKuan.this,\r\n\t\t\t\t\t\tmsg.getData().getString(\"errMsg\"), 1000).show();\r\n\r\n\t\t\t\tbreak;\r\n\t\t\tcase 1:\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\tToast.makeText(HuanKuan.this,\r\n\t\t\t\t\t\tmsg.getData().getString(\"msg\"), 1000).show();\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}", "@Override\n public void handleMessage(Message msg){\n switch (msg.what) {\n case PSensor.MESSAGE_STATE_CHANGE:\n break;\n case PSensor.MESSAGE_WRITE:\n break;\n case PSensor.MESSAGE_READ:\n PSensor.sensorData.parseInput((byte[])msg.obj);//parseInput((byte[])msg.obj);\n multiGauge.handleSensor(PSensor.sensorData.boost);\n multiGaugeVolts.handleSensor(PSensor.sensorData.batVolt);\n break;\n case PSensor.MESSAGE_DEVICE_NAME:\n break;\n case PSensor.MESSAGE_TOAST:\n break;\n default:\n break;\n }\n }", "private void incomingBT_handle()\n {\n if(BT_Message_Handle_Func != null)\n BT_Message_Handle_Func.run();\n\n }", "@Override\n\tpublic void requestHandle(IPlayer player, IMessage message) {\n\t\t\n\t}", "public void handleMessage(Message message, DatagramSocket socket) throws HandlingException, IOException, ClassNotFoundException;", "public void onMessage(String message) {\n\t\t\n\t}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tisExit = false;\n\t\t}", "public void handleMessage(Msg clientMsg) {\n switch (clientMsg.getMsgType()) {\n case ID_IS_SET:\n handle_id_is_set(clientMsg);\n break;\n\n case SHIPS_PLACED:\n handle_ships_placed(clientMsg);\n break;\n\n case WAITING:\n break;\n\n case SHOT_PERFORMED:\n handle_shot_performed(clientMsg);\n break;\n }\n }", "void onMessage(String message) throws IOException;", "@Override\n\tpublic void handleMessage(Message msg) {\n\t Message msgg=null;\n\t\tswitch (msg.what) {\n\t\tcase MSG_GET_RSS_DATA:\n\t\t\tif(null!=handler){\n//\t\t\t\tString keyword = (String)msg.obj;\n//\t\t\t\thandler.sendEmptyMessage(MSG_DIALOG_SHOW);\n//\t\t\t\tmsgg = handler.obtainMessage(MSG_UPDATE_RSS);\n//\t\t\t\tmsgg.obj = WeiDataTools.getWeiDataByGroup(null);\n//\t\t\t\thandler.sendEmptyMessage(MSG_DIALOG_DISMISS);\n//\t\t\t\thandler.sendMessage(msgg);\n\t\t\t}\n\t\t break;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "public void processMessage()\n {\n \tif(messageContents.getMessage().containsCommand())\n {\n \tCommand command = new Command(messageContents);\n CommandProcessor commandProcessor = new CommandProcessor(joeBot, command);\n commandProcessor.processCommand();\n }\n else\n {\n Speech speech = new Speech(messageContents);\n SpeechProcessor speechProcessor = new SpeechProcessor(joeBot, speech);\n speechProcessor.processSpeech();\n }\n }", "public void handleMessage(Message msg) {\n switch (msg.what) {\n case 1:\n Pair pair = (Pair) msg.obj;\n deliverResultCallback((ResultCallback) pair.first, (Result) pair.second);\n return;\n case 2:\n ((AbstractPendingResult) msg.obj).forceFailureUnlessReady(Status.zzXS);\n return;\n default:\n Log.wtf(\"AbstractPendingResult\", \"Don't know how to handle this message.\");\n return;\n }\n }", "@Override\r\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tswitch (msg.what) {\r\n\t\t\t// upload ok\r\n\t\t\tcase 0:\r\n\t\t\t\tToast.makeText(SendBroadcastMessage.this, \"上传语音成功\",\r\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\tbreak;\r\n\t\t\t// upload error\r\n\t\t\tcase 1:\t\t\t\r\n\t\t\t\tToast.makeText(SendBroadcastMessage.this, \"上传语音失败\",\r\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\tbreak;\r\n\t\t\t// update ok\r\n\t\t\tcase 2:\r\n\t\t\t\tif (dialog!=null) {\r\n\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t}\r\n\t\t\t\tToast.makeText(SendBroadcastMessage.this, \"发布成功\",\r\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\tTextSave();\r\n\t\t\t\tSendResultSave(true);\r\n\t\t\t\tif (bm != null) {\r\n\t\t\t\t\tbm.recycle();\r\n\t\t\t\t}\r\n\t\t\t\tSendBroadcastMessage.this.finish();\r\n\t\t\t\tbreak;\r\n\t\t\t// update error\r\n\t\t\tcase 3:\r\n\t\t\t\tif (dialog!=null) {\r\n\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t}\r\n\t\t\t\tTextSave();\r\n\t\t\t\tSendResultSave(false);\r\n\t\t\t\tToast.makeText(SendBroadcastMessage.this, \"发布失败\",\r\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\tif (bm != null) {\r\n\t\t\t\t\tbm.recycle();\r\n\t\t\t\t}\r\n\t\t\t\tSendBroadcastMessage.this.finish();\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t}", "public void onMessageReceived(String message) {\n\t\t\n\t\tILogger logger = LoggerFactory.getLoggerInstance();\n\t\t/** \n\t\t * Create instance of processing module handler and pass message to it. \n\t\t * Processing module handler perform corresponding operation and\n\t\t * compute the changes to be sent to UI\n\t\t */\n\t\tObjectHandler objectHandler = new ObjectHandler();\n\t\tobjectHandler.onMessageReceived(message);\n\t\tlogger.log(ModuleID.PROCESSING, \n\t\t\t\tLogLevel.INFO,\n\t\t\t\t\"Test: Passed the message to processing module ObjectHandler.\");\n\t}", "@Override\n\tpublic void onMessage( String message ) {\n\t\tlog.info(\"received: \" + message);\n\t}", "void handleMessage(String message){\n\t\tString[] parts = message.split(\" \");\n\t\tboolean prevFor = false;\n//\t\tSystem.out.println(\"parts0 = \" + parts[0]);\n\t\tswitch(parts[0]){\n\t\t\tcase \"#quit\":\n\t\t\t\tclient.handleMessageFromClientUI(\"#quit\" + \"---\" + client.getUID() + \"---\" + \" \" + \"---\" + \" \");\n\t\t\t\tbreak;\n\t\t\tcase \"#stop\":\n\t\t\t\tclient.handleMessageFromClientUI(\"#stop\" + \"---\" + client.getUID() + \"---\" + \" \" + \"---\" + \" \");\n\t\t\t\tbreak;\n\t\t\tcase \"#close\":\n\t\t\t\tclient.handleMessageFromClientUI(\"#close\" + \"---\" + client.getUID() + \"---\" + \" \" + \"---\" + \" \");\n\t\t\t\tbreak;\n\t\t\tcase \"#setport\":\n\t\t\t\tclient.handleMessageFromClientUI(\"#setport\" + \"---\" + client.getUID() + \"---\" + \" \" + \"---\" + parts[1]);\n\t\t\t\tbreak;\n\t\t\tcase \"#getport\":\n\t\t\t\tclient.handleMessageFromClientUI(\"#getport\" + \"---\" + client.getUID() + \"---\" + \" \" + \"---\" + \" \");\n\t\t\t\tbreak;\n\t\t\tcase \"#start\":\n\t\t\t\tclient.handleMessageFromClientUI(\"#start\" + \"---\" + client.getUID() + \"---\" + \" \" + \"---\" + \" \");\n\t\t\t\tbreak;\n\t\t\tcase \"#block\":\n\t\t\t\tif(parts.length>1){\n\t\t\t\t\tclient.handleMessageFromClientUI(\"#block\" + \"---\" + client.getUID() + \"---\" + parts[1] + \"---\" + \" \");\t//this sends the info to the server to check if it's a valid user_id\n\t\t\t\t}\n\t\t\t\telse System.out.println(\"You haven't specified a user to block!\");\n\t\t\t\tbreak;\n\t\t\tcase \"#unblock\":\n\t\t\t\tif(parts.length>0){\n\t\t\t\t\tclient.handleMessageFromClientUI(\"#unblock\" + \"---\" + client.getUID() + \"---\" + parts[1] + \"---\" + \" \");\t//this sends the info to the server to check if it's a valid user_id\n\t\t\t\t\t\t\t//this also needs to be sent to server to send to all consoles to update block lists\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase \"#whoiblock\":\t\t//simply prints out the arraylist of users that i block\n\t\t\t\tif(blockedList.size()>0){\n\t\t\t\t\tSystem.out.print(\"The list of people you block is: \");\n\t\t\t\t\tfor(int i=0;i<blockedList.size();i++){\n\t\t\t\t\t\tSystem.out.print(blockedList.get(i)+\", \");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t}\n\t\t\t\telse System.out.println(\"You are not blocking any users\");\n\t\t\t\tbreak;\n\t\t\tcase \"#whoblocksme\":\t//simply prints out the arraylist of users that block me\n\t\t\t\tif(whoBlocksMe.size()>0){\n\t\t\t\t\tSystem.out.print(\"The list of people who block me is: \");\n\t\t\t\t\tfor(int i=0;i<whoBlocksMe.size();i++){\n\t\t\t\t\t\tSystem.out.print(whoBlocksMe.get(i)+\", \");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t}\n\t\t\t\telse System.out.println(\"There are no users that are blocking you\");\n\t\t\t\tbreak;\n\t\t\tcase \"#startforwarding\":\n\t\t\t\tprevFor = false;\n\t\t\t\ttry {\n\t\t\t\t\tif(whoIForward.size()>0) {\n\t\t\t\t\t\tfor(int i=0; i<whoIForward.size(); i++){\n\t\t\t\t\t\t\tif(parts[1].equals(whoIForward.get(i))) prevFor = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(!prevFor) {\n\t\t\t\t\t\t\twhoIForward.add(parts[1]);\n\t\t\t\t\t\t\tSystem.out.println(\"You are now forwarding to user: \"+parts[1]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse System.out.println(\"You are already forwarding to that user!\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\twhoIForward.add(parts[1]);\n\t\t\t\t\t\tSystem.out.println(\"You are now forwarding all messages to user: \"+parts[1]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch(ArrayIndexOutOfBoundsException e){\n\t\t\t\t\tSystem.out.println(\"You need to specify a user to forward to!\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"cancelforwarding\":\n\t\t\t\tprevFor = false;\n\t\t\t\ttry {\n\t\t\t\t\tif(whoIForward.size()>0){\n\t\t\t\t\t\tfor(int i=0; i<whoIForward.size(); i++){\n\t\t\t\t\t\t\tif(parts[1].equals(whoIForward.get(i))){\n\t\t\t\t\t\t\t\tprevFor = true;\n\t\t\t\t\t\t\t\twhoIForward.remove(i);\n\t\t\t\t\t\t\t\tSystem.out.println(\"You are no longer forwarding to user: \"+parts[1]);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(!prevFor){\n\t\t\t\t\t\t\tSystem.out.println(\"You were not forwarding to that user!\");\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\telse System.out.println(\"You are not currently forwarding to anyone and connot stop forwarding to this user\");\n\t\t\t\t}\n\t\t\t\tcatch(ArrayIndexOutOfBoundsException e){\n\t\t\t\t\tSystem.out.println(\"You need to specify a user to stop forwarding to!\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase \"#private\":\n\t\t\t\tString[] messageArray = Arrays.copyOfRange(parts, 2, parts.length);\n\t\t\t\tStringBuilder builder = new StringBuilder();\n\t\t\t\tfor (String value : messageArray) {\n\t\t\t\t builder.append(value + \" \");\n\t\t\t\t}\n\t\t\t\tString messageToSend = builder.toString();\n\t\t\t\tclient.handleMessageFromClientUI(\"#private\" + \"---\" + client.getUID() + \"---\" + parts[1] + \"---\" + messageToSend);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tdefault: client.handleMessageFromClientUI(\" \" + \"---\" + client.getUID() + \"---\" + \"*\" + \"---\" + message);\n\t\t}\n\t}", "public synchronized void handleMessage(String message) {\n Log.d(TAG, \"incoming message:\" + message);\n OnMessageReceivedListener listener = listenerReference.get();\n if(listener != null) {\n Log.d(TAG, \"listener not null. Handling message..\");\n listener.handleMessage(message);\n }\n else {\n Log.d(TAG, \"listener null!!\");\n }\n }", "public void messageReceived(Message m) {\n\t\t\r\n\t}", "@Override\n\tpublic void onMessage(CommandMessage msg) {\n\t}", "@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tsuper.handleMessage(msg);\n\t\t\t\tString temp;\n\t\t\t\tswitch (msg.what) {\n\t\t\t\tcase MSG_SHOW_RESULT:\n\t\t\t\t\t temp = (String) msg.obj;\n\t\t\t\t\t Reader.writelog(temp,tvResult);\n\t\t\t\t\t break;\n\t\t\t\tcase MSG_SHOW_INFO:\n\t\t\t\t\t temp = (String) msg.obj;\n\t\t\t\t\treadContent.setText(temp);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "@Override\r\n\tpublic void messageReceived(Object obj) {\n\t\t\r\n\t}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase 0:\n\t\t\t\ttv_read.setText(msg.obj.toString());\n\t\t\t\tToast.makeText(N20PINPadControllerActivity.this, \"recv\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "abstract void onMessage(byte[] message);", "@Override\n\tpublic void handle(WxMaMessage message, Map<String, Object> context, WxMaService service, WxSessionManager sessionManager) throws WxErrorException {\n\t\t\n\t}", "public interface MessageHandler {\n void onMessage(final byte messageType, final int messageId, final byte[] buffer, final int startIndex, final int length);\n}", "@Override\r\n\tpublic boolean handleMessage(Message msg) {\n\t\treturn false;\r\n\t}", "@Handler\r\n public void onMessage(Message message, Session sessionI) throws Exception {\r\n log.info(\"inside generic message handler - message =: \" + message.toString());\r\n MsgType msgType = new MsgType();\r\n message.getHeader().getField(msgType);\r\n log.info(\"inside generic message handler - msgtype =: \" + msgType.toString());\r\n// log.info(\"inside generic message handler - message =: \"+ message.toString());\r\n }", "@Override\r\n public void handleMessage(Message inputMessage) {\n actualMainActivityInstance.putDataOnPage((String)inputMessage.obj);\r\n }", "void onNewMessage(String message);", "public interface MessageHandler {\n\n public void setMessage(TextMessage message,String msg);\n}", "@Override\n public void handleMessage(Message message) {\n stopProgressDialog();\n swipeRefreshLayout.setRefreshing(false);\n switch (message.what) {\n case Flinnt.SUCCESS:\n try {\n //Helper.showToast(\"Success\", Toast.LENGTH_SHORT);\n if (LogWriter.isValidLevel(Log.INFO))\n LogWriter.write(\"SUCCESS_RESPONSE : \" + message.obj.toString());\n if (message.obj instanceof WishResponse) {\n updateCourseList((WishResponse) message.obj);\n }\n } catch (Exception e) {\n LogWriter.err(e);\n }\n\n break;\n case Flinnt.FAILURE:\n try {\n if (LogWriter.isValidLevel(Log.INFO))\n LogWriter.write(\"FAILURE_RESPONSE : \" + message.obj.toString());\n } catch (Exception e) {\n LogWriter.err(e);\n }\n\n break;\n default:\n super.handleMessage(message);\n }\n }", "public boolean handleMessage(Message message)\n {\n return false;\n }", "@Override\n public void processMessage(int type, String receivedMsg) {\n }", "@Override public void handleMessage(Message msg) {\n super.handleMessage(msg);\n byte[] byteArray = (byte[]) msg.obj;\n int length = msg.arg1;\n byte[] resultArray = length == -1 ? byteArray : new byte[length];\n for (int i = 0; i < byteArray.length && i < length; ++i) {\n resultArray[i] = byteArray[i];\n }\n String text = new String(resultArray, StandardCharsets.UTF_8);\n if (msg.what == BluetoothTalker.MessageConstants.MESSAGE_WRITE) {\n Log.i(TAG, \"we just wrote... [\" + length + \"] '\" + text + \"'\");\n// mIncomingMsgs.onNext(text);\n } else if (msg.what == BluetoothTalker.MessageConstants.MESSAGE_READ) {\n Log.i(TAG, \"we just read... [\" + length + \"] '\" + text + \"'\");\n Log.i(TAG, \" >>r \" + Arrays.toString((byte[]) msg.obj));\n mIncomingMsgs.onNext(text);\n sendMsg(\"I heard you : \" + Math.random() + \"!\");\n// mReadTxt.setText(++ri + \"] \" + text);\n// if (mServerBound && mServerService.isConnected()) {\n// mServerService.sendMsg(\"I heard you : \" + Math.random() + \"!\");\n// } else if (mClientBound && mClientService.isConnected()) {\n// mClientService.sendMsg(\"I heard you : \" + Math.random() + \"!\");\n// }\n// mBluetoothStuff.mTalker.write();\n }\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase 1:\n\t\t\t\tToast.makeText(MydetialActivity.this, \"加载数据成功\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tfinish();\n\t\t\t\tbreak;\n\t\t\tcase 0:\n\t\t\t\tToast.makeText(MydetialActivity.this, \"加载数据失败\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "@Override\r\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tswitch (msg.what) {\r\n\t\t\t\tcase Constant.CONFERENCE_QUERY_SECCUESS:\r\n\t\t\t\t\tdismissProgressDialog();\r\n\t\t\t\t\tMeetingDetail.this.data = (ConferenceUpdateQueryResponseItem) msg.obj;\r\n\t\t\t\t\tiniParams();\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase Constant.CONFERENCE_QUERY_FAIL:\r\n\t\t\t\t\tdismissProgressDialog();\r\n\t\t\t\t\tshowLongToast(\"错误代码:\" + ((NormalServerResponse) msg.obj).getEc());\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tMessage msg = new Message();\n\t\t\t\t\tmsg.what = 100;\n\t\t\t\t\tmsg.obj = split[1]+\",\"+split[2];\n\t\t\t\t\tmHandler.sendMessage(msg);\n\t\t\t\t}", "@Override\n public void handle(Message<JsonObject> message) {\n logger.info(\"Handling event conjoiner.simplevertical\");\n\n // Start by deserializing the message back into a Object\n try {\n TransponderMessage msg = new TransponderMessage().messageToObject(message);\n logger.info(\"Decoded message: \" + msg.toJsonString());\n\n } catch (DataFormatException e) {\n e.printStackTrace();\n logger.warning(\"Unable to deserialize this\");\n }\n\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tisTaken = true;\n\t\t}", "@Override\n public void handleMessage(Message message) {\n super.handleMessage(message);\n\n ImportKeysActivity.this.handleMessage(message);\n }", "void processMessage(VoidMessage message);", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tString reslutInfo = (String) msg.obj;\n\t\t\tLog.d(App.LOG_TAG, reslutInfo);\n\t\t\tswitch (msg.what) {\n\t\t\tcase 200:\n\t\t\t\tpb.setProgress(7);\n\t\t\t\ttextState.append(\"\\n\");\n\t\t\t\ttextState.append(reslutInfo);\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tclearSign();\n\t\t\t\tsaveRecodes();\n\t\t\t\tbreak;\n\t\t\tcase 201:\n\t\t\t\ttextState.append(\"\\n\");\n\t\t\t\ttextState.append(reslutInfo);\n\t\t\t\tbreak;\n\t\t\tcase 501:\n\t\t\t\tpb.setProgress(7);\n\t\t\t\ttextState.append(\"\\n\");\n\t\t\t\ttextState.append(reslutInfo);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\ttextState.append(\"\\n\");\n\t\t\t\ttextState.append(reslutInfo);\n\t\t\t\tpb.setProgress(msg.what);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tsuper.handleMessage(msg);\n\t\t\t\tswitch(msg.what){\n\t\t\t\tcase COMMENT_OK:\n\t\t\t\t\tString[] operatStatus = (String[]) msg.obj;\n\t\t\t\t\tif (\"1\".equals(operatStatus[0])) {\n\t\t\t\t\t\tinputView.setText(\"\");\n\t\t\t\t\t\tToast.makeText(mContext,\"发布成功\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t\t\t.show();\n\t\t\t\t\t\tif(post_comment_list!=null){\n\t\t\t\t\t\t\tpost_comment_list.refresh();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tToast.makeText(mContext, \"发布失败\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t\t\t.show();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase WeibaBaseHelper.DATA_ERROR:\n\t\t\t\t\tToast.makeText(mContext, \"数据加载失败\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t\t.show();\n\t\t\t\t\tbreak;\n\t\t\t\tcase WeibaBaseHelper.NET_ERROR:\n\t\t\t\t\tToast.makeText(mContext, \"网络故障\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}", "private void handleServerMessage() throws IOException {\n System.out.println(\"Handeling message for \" + id + \" with type: \" + sm.getType().toString());\n switch (sm.getType()) {\n case REGISTER:\n registrationLoginHandler.register(sm, output);\n break;\n case LOGIN:\n this.user = registrationLoginHandler.login(sm, output);\n break;\n case BOOT:\n bootHandler.boot(user, output);\n break;\n case ADD_CONTACT:\n contactHandler.addContact(sm, user, output);\n handleAddContact();\n break;\n case REMOVE_CONTACT:\n break;\n case UPDATE_NICKNAME:\n break;\n case UPDATE_STATUS:\n break;\n case UPDATE_PROFILE_PIC:\n break;\n case CLIENT_DISCONNECT:\n keepGoing = false;\n close();\n server.remove(id);\n break;\n }\n }", "@Override\n\tpublic void onMessage(Message message) {\n\t\tTextMessage textMessage = (TextMessage) message;\n\t\ttry {\n\t\t\tString id = textMessage.getText();\n\t\t\tint i = Integer.parseInt(id);\n\t\t\tgoodsService.out(i);\n\t\t\tList<Goods> list = goodsService.findByZt();\n\t\t\tsolrTemplate.saveBeans(list);\n\t\t\tsolrTemplate.commit();\n\t\t} catch (JMSException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch(msg.what){\n\t\t\t\tcase SHOW_UPDATE_DIALOG:\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"准备升级中\", Toast.LENGTH_LONG).show();\n\t\t\t\t\tupdate();\n\t\t\t\t\tbreak;\n\t\t\t\tcase NET_ERROR:\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"网络异常\", Toast.LENGTH_LONG).show();\n\t\t\t\t\tgoHome();\n\t\t\t\t\tbreak;\n\t\t\t\tcase JSON_ERROR:\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"JSON解析出错\", Toast.LENGTH_LONG).show();\n\t\t\t\t\tbreak;\n\t\t\t\tcase URL_ERROR:\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"URL出错\", Toast.LENGTH_LONG).show();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault :\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t}\n\t\t}", "public abstract void message();", "@Override\n\tpublic void process(MessageStream<ServerMessage> message)\n\t{\n\t\t\n\t}", "void handleMessage(EndpointPort from, EndpointPort to, Object message);", "public void messageReceived(Message message) {\n\r\n\t\tLog.info(message.getMsg());\r\n\t}" ]
[ "0.8766197", "0.8731672", "0.8408875", "0.83957416", "0.8264594", "0.8104294", "0.79856867", "0.78030145", "0.7799257", "0.7768347", "0.7753449", "0.77254844", "0.76256686", "0.75947964", "0.75705546", "0.75335735", "0.75261295", "0.7515114", "0.7510012", "0.750214", "0.7498313", "0.74912405", "0.7477547", "0.74706936", "0.74683917", "0.74288464", "0.7414559", "0.74037725", "0.73955613", "0.7381997", "0.73757046", "0.7348918", "0.7325015", "0.72921956", "0.72872925", "0.723676", "0.723676", "0.7215923", "0.72117513", "0.7200857", "0.7170935", "0.7168401", "0.7168191", "0.7149906", "0.714847", "0.7145651", "0.71454406", "0.714352", "0.7139438", "0.7113701", "0.71082103", "0.71078795", "0.71006906", "0.70887804", "0.7084537", "0.7078844", "0.7069685", "0.7065933", "0.70434123", "0.7040924", "0.7037916", "0.7032814", "0.70285195", "0.701277", "0.7002884", "0.6993036", "0.6989005", "0.69883966", "0.69841397", "0.69816595", "0.69780475", "0.6966808", "0.69595766", "0.6946056", "0.6938697", "0.6931421", "0.69256854", "0.6925679", "0.6904264", "0.68948615", "0.6891065", "0.68899053", "0.68804646", "0.6875016", "0.68711376", "0.6862103", "0.68598866", "0.6859057", "0.6858822", "0.68564236", "0.6838683", "0.6816709", "0.68149996", "0.6807498", "0.6801664", "0.679451", "0.6793661", "0.6792579", "0.6788506", "0.67836696", "0.67816705" ]
0.0
-1
Message Handler ( state change )
private void execHandlerChange( Message msg ){ switch ( msg.arg1 ) { case STATE_CONNECTED: execHandlerConnected( msg ); break; case STATE_CONNECTING: execHandlerConnecting( msg ); break; default: execHandlerNotConnected( msg ); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void handleMessage(Message msg) {\n switch (msg.what) {\n case Constants.MESSAGE_STATE_CHANGE:\n\n break;\n\n }\n }", "void stateUpdate(String msg);", "@Override\n public void handleMessage(Message m) {\n int gameState = Integer.valueOf(m.getText());\n System.out.println(\"Got authoritative game state \" + gameState + \" from server. Updating local state now...\");\n this.gameState = gameState;\n }", "@Override\r\n public void handleMessage(Message msg) {\n }", "public void handleMessage(Message msg) {\n switch (msg.what) {\n case handlerState:\n String readMessage = (String) msg.obj; // msg.arg1 = bytes from connect thread\n ReceivedData.setData(readMessage);\n break;\n\n case handlerState1:\n tempSound = Boolean.parseBoolean((String) msg.obj);\n ReceivedData.setSound(tempSound);\n break;\n\n case handlerState5:\n if(\"ACK\".equals ((String) msg.obj ))\n ReceivedData.clearPPGwaveBuffer();\n break;\n\n }\n ReceivedData.Process();\n }", "void handle(S state, C command);", "protected void handleMessage(Message msg) {}", "@Override\n public void handleMessage(Message message) {}", "public abstract void msgHandler(Message msg);", "@Override\n\tpublic void globalState(LinphoneCore lc, GlobalState state, String message) {\n\t\t\n\t}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tswitch (msg.what) {\n\t\t\tcase STATEVIEW_SUCCESS:\n\t\t\t\tgetWeb(url);\n\t\t\t\tbreak;\n\t\t\tcase STATEVIEW_FALSE:\n\t\t\t\tToast.makeText(GetGrade.this, \"get ViewState false\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}", "public void handleMessage(Message message);", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tisExit = false;\n\t\t}", "public abstract void stateChanged(STATE state);", "@Override\n\t\tpublic boolean OnStatusChange(String msgId, int state) {\n\t\t\treturn false;\n\t\t}", "@Override\n public void handleMessage(Message pMsg) {\n\n TallyDeviceConnectionStatusActivity tempActivity = activity.get();\n if (tempActivity != null) {\n\n switch (pMsg.what) {\n\n case TallyDeviceService.MSG_CONNECTION_STATE:\n tempActivity.stateChanged(TallyDeviceService.State.values()[pMsg.arg1], pMsg);\n break;\n\n }\n\n }\n\n super.handleMessage(pMsg);\n\n }", "public IServerState changeState(ServerEvents serverEvent);", "public abstract void handlerCheckState(int status, Object attach);", "private void stateChanged(TallyDeviceService.State pNewState, Message pMsg) {\n\n state = pNewState;\n\n if (state == TallyDeviceService.State.CONNECTED) {\n tallyDeviceName = (String)pMsg.obj;\n handleConnectedState();\n } else if (state == TallyDeviceService.State.CONNECTING) {\n tallyDeviceName = (String)pMsg.obj;\n handleConnectingState();\n } else if (state == TallyDeviceService.State.DISCONNECTED) {\n handleDisconnectedState();\n }\n\n }", "void onUpdate(Message message);", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch(msg.what){\n\t\t\t\tcase SHOW_UPDATE_DIALOG:\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"准备升级中\", Toast.LENGTH_LONG).show();\n\t\t\t\t\tupdate();\n\t\t\t\t\tbreak;\n\t\t\t\tcase NET_ERROR:\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"网络异常\", Toast.LENGTH_LONG).show();\n\t\t\t\t\tgoHome();\n\t\t\t\t\tbreak;\n\t\t\t\tcase JSON_ERROR:\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"JSON解析出错\", Toast.LENGTH_LONG).show();\n\t\t\t\t\tbreak;\n\t\t\t\tcase URL_ERROR:\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"URL出错\", Toast.LENGTH_LONG).show();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault :\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t}\n\t\t}", "@Override\n\tpublic void dispatchHandler(Message msg) {\n\t\t\n\t}", "@Override\n\tpublic void msgReceived(Message msg) {\n\n\t}", "public void stateChanged (ChangeEvent e)\n {\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase SUCCESS:\n\t\t\t\tmCallback.onSuccess(mTag);\n\t\t\t\tbreak;\n\t\t\tcase FAIL:\n\t\t\t\tmCallback.onFail(mTag);\n\t\t\t}\n\t\t}", "public boolean handleMessage(Message msg) \r\n\t{\t\r\n\t\tswitch (msg.what)\r\n\t\t{\r\n\t\tcase TCPClient.MSG_COMSTATUSCHANGE:\r\n\t\tcase MSG_UIREFRESHCOM:\r\n\t\t\t{\r\n\t\t\t\tif (msg.arg2==uitoken)\r\n\t\t\t\t\tUI_RefreshConnStatus ();\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\tcase TCPClient.MSG_NEWSTATUSMESSAGE:\r\n\t\tcase MSG_NEWSTATUSMESSAGE:\t\r\n\t\t\t{\r\n\t\t\t\tif (msg.arg2==uitoken)\r\n\t\t\t\t{\r\n\t\t\t\t\tLog.e(TAG,\"Status Message ACCE : \" + (String)msg.obj);\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\tcase TCPClient.MSG_CONNECTIONSTART:\r\n\t\t\t{\r\n\t\t\t\tif (msg.arg2==uitoken)\r\n\t\t\t\t{\r\n\t\t\t\t\tonRobotConnect (true);\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\tcase TCPClient.MSG_CONNECTIONSTOP:\r\n\t\t\t{\r\n\t\t\t\tif (msg.arg2==uitoken)\r\n\t\t\t\t{\r\n\t\t\t\t\tboolean bbNotify;\r\n\t\t\t\t\tsynchronized (this)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tbbNotify=_bbCanSend;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tonRobotDisconnect (bbNotify);\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\tcase TCPClient.MSG_SENT:\r\n\t\t\t{\r\n\t\t\t\tif (msg.arg2==uitoken)\r\n\t\t\t\t\tlast_sent_msg = (String)msg.obj;\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\tcase MSG_CENTER:\r\n\t\t\t{\r\n\t\t\t\tif (isConnecting())\r\n\t\t\t\t{\r\n\t\t\t\t\tstopConnection(true);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tstartConnection();\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public void update(String state) {\n\t\tSystem.out.println(\"收到状态---\"+state);\n\t\tthis.state = state;\n\t}", "@Override\n\tpublic void onMessage(CommandMessage msg) {\n\t}", "@Override\n public void handleMessage(Message msg) {\n switch (msg.what) {\n case MSG_UPDATE_STOCK_NEWS:\n requestStockNews();\n break;\n case MSG_UPDATE_STOCK_ANNOUNCEMENT:\n requestStockAnnouncement();\n break;\n case MSG_UPDATE_STOCK_REPORT:\n requestStockReport();\n break;\n case MSG_UPDATE_STOCK_SUMMARY:\n requestStockSummary();\n break;\n case MSG_UPDATE_STOCK_FINANCE:\n requestStockFinance();\n break;\n default:\n break;\n }\n super.handleMessage(msg);\n }", "@Override\n public void handleMessage(Message msg){\n switch (msg.what) {\n case PSensor.MESSAGE_STATE_CHANGE:\n break;\n case PSensor.MESSAGE_WRITE:\n break;\n case PSensor.MESSAGE_READ:\n PSensor.sensorData.parseInput((byte[])msg.obj);//parseInput((byte[])msg.obj);\n multiGauge.handleSensor(PSensor.sensorData.boost);\n multiGaugeVolts.handleSensor(PSensor.sensorData.batVolt);\n break;\n case PSensor.MESSAGE_DEVICE_NAME:\n break;\n case PSensor.MESSAGE_TOAST:\n break;\n default:\n break;\n }\n }", "public void processMsg(Msg input) {\r\n\t\tSystem.out.println(\"INFO Received \"+input+\" in state \"+currentState);\r\n\t\tTransition trans = transition[currentState.ordinal()][input.ordinal()];\r\n\t\tif(trans != null){\r\n\t\t\tcurrentState = trans.execute(input);\r\n\t\t}\r\n\t\tSystem.out.println(\"INFO State: \"+ currentState);\r\n\t}", "private void\n processMsg(Msg input) throws IOException {\n assert Tracer.printConsoleLog(\"INFO Received \" + input + \" in state \" + currentState);\n\n Transition trans = transition[currentState.ordinal()][input.ordinal()];\n if (trans != null) {\n currentState = trans.execute(input);\n }\n assert Tracer.printConsoleLog(\"INFO New State: \" + currentState);\n }", "@Override\r\n\tprotected void handleMessage(Message msg) {\r\n\t\tswitch (msg.what) {\r\n\t\tcase SUCCESS_JSON_MESSAGE:\r\n\t\t\tStationState response = (StationState) msg.obj;\r\n\t\t\tonSuccess(response);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tsuper.handleMessage(msg);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void stateChanged() {\n\t\t\n\t}", "void onMessageReceived(Message message);", "@Override\n\tpublic void onMessage(Object arg0) {\n\t\t\n\t}", "protected void changeStatus(String state)\n { call_state=state;\n printLog(\"state: \"+call_state,Log.LEVEL_MEDIUM); \n }", "@Override\n public void run() {\n Message message = new Message();\n message.what=1;\n handler.sendMessage(message);\n }", "public void messageArrived(StatusMessage statusMessage);", "public void handleMessage(Message msg) {\n super.handleMessage(msg);\n switch (msg.what) {\n case 1:\n if (!isStop) {\n updateTimeSpent();\n mHandler.sendEmptyMessageDelayed(1, 1000);\n }\n break;\n case 0:\n break;\n }\n }", "public void handleMessageEvent(StunMessageEvent e) {\n delegate.processRequest(e);\n }", "public void onStateLeft();", "public void notifyStateChange(String str) {\n out.println(str); \n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tisTaken = true;\n\t\t}", "public void setState(GameState state, CharSequence message) {\n\t\tsynchronized (mSurfaceHolder) {\n\t\t\tmState = state;\n\n\t\t\tResources res = mContext.getResources();\n\t\t\tCharSequence str = \"\";\n\t\t\tint visibility = View.VISIBLE;\n\t\t\tswitch (mState) {\n\t\t\t\tcase READY :\n\t\t\t\t\tstr = res.getText(R.string.mode_ready);\n\t\t\t\t\tbreak;\n\t\t\t\tcase PAUSE :\n\t\t\t\t\tstr = res.getText(R.string.mode_pause);\n\t\t\t\t\tbreak;\n\t\t\t\tcase LOSE :\n\t\t\t\t\tstr = res.getText(R.string.mode_lose);\n\t\t\t\t\tbreak;\n\t\t\t\tcase WIN :\n\t\t\t\t\tstr = \"You win\";\n\t\t\t\t\tthis.mLvlNum++;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tstr = \"\";\n\t\t\t\t\tvisibility = View.INVISIBLE;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (message != null) {\n\t\t\t\tstr = message + \"\\n\" + str;\n\t\t\t}\n\n\t\t\tMessage msg = mHandler.obtainMessage();\n\t\t\tBundle b = new Bundle();\n\t\t\tb.putString(\"message\", str.toString());\n\t\t\tb.putInt(\"visible\", visibility);\n\t\t\tmsg.setData(b);\n\t\t\tmHandler.sendMessage(msg);\n\t\t}\n\t}", "public void handleMessageEvent(StunMessageEvent e) {\n delegate.handleMessageEvent(e);\n }", "public void handleMessageEvent(StunMessageEvent e) {\n delegate.handleMessageEvent(e);\n }", "@Override\n\tpublic void stateChanged(ChangeEvent arg0) {\n\t\t\n\t}", "public void stateChanged( ChangeEvent event )\n {\n \n }", "public void OnMessageReceived(String msg);", "@Override\n\tpublic void handleMsg(String in) {\n\n\t}", "public void stateChanged(ChangeEvent e) {\n }", "@Override\n public void run() {\n Message message = new Message();\n message.what = 4;\n handler.sendMessage(message);\n }", "public abstract void update(Message message);", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tString reslutInfo = (String) msg.obj;\n\t\t\tLog.d(App.LOG_TAG, reslutInfo);\n\t\t\tswitch (msg.what) {\n\t\t\tcase 200:\n\t\t\t\tpb.setProgress(7);\n\t\t\t\ttextState.append(\"\\n\");\n\t\t\t\ttextState.append(reslutInfo);\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tclearSign();\n\t\t\t\tsaveRecodes();\n\t\t\t\tbreak;\n\t\t\tcase 201:\n\t\t\t\ttextState.append(\"\\n\");\n\t\t\t\ttextState.append(reslutInfo);\n\t\t\t\tbreak;\n\t\t\tcase 501:\n\t\t\t\tpb.setProgress(7);\n\t\t\t\ttextState.append(\"\\n\");\n\t\t\t\ttextState.append(reslutInfo);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\ttextState.append(\"\\n\");\n\t\t\t\ttextState.append(reslutInfo);\n\t\t\t\tpb.setProgress(msg.what);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "public interface IPostListener {\n /**\n * The state message from the service.\n * @param msg\n */\n void stateUpdate(String msg);\n}", "protected abstract int newState();", "void onNewMessage(String message);", "private void sendCurrentState() {\n\ttry {\n\t channel.sendObject(getState());\n\t} catch (IOException e) {\n\t Log.e(\"423-client\", e.toString());\n\t}\n }", "@Override\n public void run() {\n Message message = mHandler.obtainMessage(1);\n mHandler.sendMessage(message);\n }", "void state_REQState(){\r\n eccState = INDEX_REQState;\r\n alg_REQAlg();\r\n CNF.serviceEvent(this);\r\n state_START();\r\n}", "void changed(State state, Exception e);", "private void onMessage(JsonRpcMessage msg) {\n List<JsonRpcMessage> extraMessages = super.handleMessage(msg, true);\n notifyMessage(msg);\n for(JsonRpcMessage extraMsg: extraMessages) {\n notifyMessage(extraMsg);\n }\n }", "@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tint event = msg.arg1;\n\t\t\t\tint result = msg.arg2;\n\t\t\t\tObject data = msg.obj;\n\t\t\t\tif (result == SMSSDK.RESULT_COMPLETE) {\n\t\t\t\t\t\n\t\t\t\t\tif (event == SMSSDK.EVENT_SUBMIT_VERIFICATION_CODE) {\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"验证成功\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tRelativeUser.handleRegieter(handler1,edittext_phone.getText().toString(),edittext_pas.getText().toString());\n\t\t\t\t\t\t\n\t\t\t\t\t} else if (event == SMSSDK.EVENT_GET_VERIFICATION_CODE){\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"验证码已经发送\", Toast.LENGTH_SHORT).show();\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\tToast.makeText(getBaseContext(), \"请检查网络原因\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t//TODO\n\t\t\t\t\tRelativeUser.handleRegieter(handler1,edittext_phone.getText().toString(),edittext_pas.getText().toString());\n\t\t\t\t\t/*Toast.makeText(getBaseContext(), \"请检查网络原因\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t((Throwable) data).printStackTrace();*/\n\t\t\t\t}\t\t\t\t\n\t\t\t}", "@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n switch (msg.what) {\n case 1:\n // 添加更新ui的代码\n if (!isstop) {\n if(currentNum==0){\n getNumberBtn.setClickable(true);\n getNumberBtn.setText(\"重新发送验证码\");\n }else{\n getNumberBtn.setText(\"发送验证码(\"+currentNum+\")\");\n currentNum--;\n mHandler.sendEmptyMessageDelayed(1, 1000);\n }\n }\n break;\n case 2:\n break;\n }\n }", "@Override\r\n\tpublic boolean handleMessage(Message msg) {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic void stateChanged(ChangeEvent e) {\n\t}", "@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n Log.d(TAG,\"In Handler, Msg = \"+msg.arg1);\n }", "@Override\n\tpublic void processMessage(Message message) {\n\t\t\n\t}", "@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tswitch(msg.what)\n\t\t\t\t{\n\t\t\t\tcase HANDLER_MSG_REFRESH_UNREADCOUNT:\n\t\t\t\t{\n\t\t\t\t\tif (mTVUnreadMsgCount != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (mUnreadCount > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmTVUnreadMsgCount.setText(\"\" + mUnreadCount);\n\t\t\t\t\t\t\tmTVUnreadMsgCount.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tmTVUnreadMsgCount.setVisibility(View.GONE);\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\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase HANDLER_MSG_REFRESHT_EXIT:\n\t\t\t\t{\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase 911:\n\t\t\t\tqueryMsg();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}", "public void handleMessage(Message msg) {\n \t\t\tif (msg.what < 0) {\n \t\t\t\tMyOrder.getFlaovorFromSetting();\n \t\t\t} else {\n \t\t\t\tMyOrder.saveFlavorToSetting();\n \t\t\t}\n \t\t}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase 0:\n\t\t\t\ttv_read.setText(msg.obj.toString());\n\t\t\t\tToast.makeText(N20PINPadControllerActivity.this, \"recv\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "@Override\n public void onChange(boolean selfChange) {\n super.onChange(selfChange);\n int[] bytesAndStatus = getBytesAndStatus(tag_id);\n if (bytesAndStatus[0] == -1 || bytesAndStatus[1] == -1) {\n hdHandler.sendMessage(hdHandler.obtainMessage(0, 0,\n -1));\n } else {\n hdHandler.sendMessage(hdHandler.obtainMessage(0,\n bytesAndStatus[0], bytesAndStatus[1]));\n }\n }", "@Override\n public boolean handleMessage(Message msg) {\n switch (msg.what){\n case 1:{\n initData();\n break;\n }\n default:\n break;\n }\n return false;\n }", "public void onMessage(Message arg0) {\n\r\n\t}", "@Override\n public void handleMessage(Message msg) {\n switch (msg.what) {\n case EVENT_VOICEMAIL_CHANGED:\n handleSetVMMessage((AsyncResult) msg.obj);\n break;\n default:\n // TODO: should never reach this, may want to throw exception\n }\n }", "@Override\r\n public void stateChanged(ChangeEvent e) {\n }", "com.polytech.spik.protocol.SpikMessages.StatusChanged getStatusChanged();", "void currentStateChanged();", "@Override\n\tpublic void onMessageRecieved(Message arg0) {\n\t\t\n\t}", "public void handle(int ID, Object message){}", "public void updateState();", "abstract void updateMessage(String msg);", "@Override\r\n\tpublic void messageReceived(Object obj) {\n\t\t\r\n\t}", "public void messageReceived(Message m) {\n\t\t\r\n\t}", "void setState(Object sender, ConditionT condition, Params params, StateT state);", "@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tsuper.handleMessage(msg);\n\t\t\t\tBundle bundle=msg.getData();\n\t\t\t\t\n\t\t\t\tif(bundle.getInt(\"ready\") == 1){\n\t\t\t\t\t//Receive info and assign to player\n\t\t\t\t\tIntent j = new Intent();\n\t\t\t\t\tj.setClassName(\"com.example.client\",\n\t\t\t\t\t\t\t\"com.example.client.GameScreen\");\n\t\t\t\t\tstartActivity(j);\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\t\t//Time out\n\t\t\t\t\t\talertMessage();\t\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}", "@Override\n\tpublic void onMessage(Message message, Object... data) {\n\t\tif(Messenger.is(Message.KEY_DOWN, message)){\n\t\t\tif((int)data[0] == KeyEvent.VK_W) Messenger.sendMessage(Message.Move);\n\t\t\telse if((int)data[0] == KeyEvent.VK_E) Messenger.sendMessage(Message.Scale);\n\t\t\telse if((int)data[0] == KeyEvent.VK_R) Messenger.sendMessage(Message.Rotate);\n\t\t\treturn;\n\t\t}\n\t\tEditorSystem.editingTypeStateMachine.changeState(Messenger.getStateFromMessage(this.getDeclaringClass(), message));\n\t}", "@Override\n \tpublic void handleMessage(Message msg) {\n \t\tswitch (msg.what) {\n\t\t\tcase MSG_BASE:\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase MSG_ONESECOND:\n\t onTimeChanged();\n\t invalidate();\n\t mHandler.sendEmptyMessageDelayed(MSG_ONESECOND, ONESECOND);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n \t\tsuper.handleMessage(msg);\n \t}", "@Override\n\t\tpublic void agentChangeStatus(String system_id, String state) {\n\t\t\tSystem.out.println(\"=======>Agent Change state: \" + state);\n\t\t\tif (system_id==null || !aCallback.containsKey(system_id))\n\t\t\t\t//Unknown agent changes from disconnect state to unassociated (system_id is not received yet)\n\t\t\t\treturn;\n\n\t\t\t// Send a agent Broadcast Event to all clients.\n\t\t\tfinal RemoteCallbackList<IAgentCallbackService> agentCallbacks = aCallback.get(system_id);\n final int N = agentCallbacks.beginBroadcast();\n for (int i=0; i<N; i++) {\n try {\n \tagentCallbacks.getBroadcastItem(i).agentStateChanged(state);\n } catch (RemoteException e) {\n // The RemoteCallbackList will take care of removing\n // the dead object for us.\n }\n }\n agentCallbacks.finishBroadcast();\n\t\t\t//System.out.println(\"agente \" + system_id + \" changed to: \" + state);\n\t\t}", "@Override\n public void onStatusChange(int status) {\n }", "public void handleMessageFromClient(Object msg) {\n\n }", "private void messageHandler(String read){\n\n try {\n buffer.append(read);\n }catch (MalformedMessageException e){\n System.out.println(\"[CLIENT] The message received is not in XML format.\");\n }\n\n while(!buffer.isEmpty()) {\n if (buffer.getPong()) pong = true;\n else if (buffer.getPing()) send(\"<pong/>\");\n else {\n try {\n clientController.onReceivedMessage(buffer.get());\n } catch (EmptyBufferException e) {\n System.out.println(\"[CLIENT] The buffer is empty!\");\n }\n }\n }\n\n }", "void notifyConnectionStateChanged(State state);", "public void handleMessage(Message msg) {\n\t\t\tLog.e(\"DownloaderManager \", \"newFrameHandler\");\n\t\t\tMessage msgg = new Message();\n\t\t\tmsgg.what=2;\n\t\t\tmsgg.obj = msg.obj;\n\t\t\t\n\t\t\t_replyTo.sendMessage(msgg);\n\t\t\t\n\t\t\t\n\t\t}", "public void onMessage(Message message) {\n lastMessage = message;\n\n }", "@Override\n public void handleMessage(Message msg) {\n\t \tif(mService.get() != null && inAllowedState(msg.what)){\n\t \n\t \t\t// Keep track of the current request\n\t \t\tif(msg.what != MSG_GETSTATE)\n\t \t\t\tmService.get().currentRequest = msg.what;\n\t \t\t\n\t \t\t// Send the message to the service\n\t \t\tswitch (msg.what) {\n case MSG_INITIALIZE:\n \tLog.v(TAG, \"initialize client request: \" + msg.obj.toString());\n \tif(!isInitialized() || msg.arg1 > 0){\n mService.get().initializeOCR(new WeakReference<Messenger> (msg.replyTo), msg.obj.toString());\n \t} else {\n \t\tmService.get().sendMessage(new WeakReference<Messenger> (msg.replyTo), MSG_REPLY, \n \t\t\t\tmsg.what, mService.get().getString(R.string.error_already_initialized));\n \t}\n break;\n case MSG_RELEASE:\n \tLog.v(TAG, \"release client request\");\n \tmService.get().releaseOCR();\t\n \tmService.get().sendMessage(new WeakReference<Messenger> (msg.replyTo), MSG_REPLY, \n \t\t\tmsg.what, mService.get().getString(R.string.success_release));\n break;\n case MSG_RECOGNIZE:\n case MSG_RECOGNIZE_TXT:\n \tLog.v(TAG, \"recognize client request\");\n \t\tmService.get().recognize(new WeakReference<Messenger> (msg.replyTo), \n \t\t\t\t(msg.obj instanceof Bitmap) ? (Bitmap) msg.obj : null);\n break;\n case MSG_GETSTATE:\n \tLog.v(TAG, \"get state client request\");\n \tmService.get().sendMessage(new WeakReference<Messenger> (msg.replyTo), MSG_REPLY, \n \t\t\tmsg.what, mService.get().mState.toString());\n \tbreak;\n case MSG_CANCEL:\n \tLog.v(TAG, \"cancel request\");\n \tmService.get().cancel();\n \tbreak;\n case MSG_INSTALL_CHECK:\n \tLog.v(TAG, \"check installation request\");\n \tmService.get().checkInstallation(new WeakReference<Messenger> (msg.replyTo));\n \tbreak;\n default:\n super.handleMessage(msg);\n\t }\t \t\t\n\t \t} else {\n\t try {\n\t \tif(mService.get() != null){\n\t \t\t// It is in an invalid state\n\t \t \t\tLog.e(TAG,\"IncomingHandler: Invalid state, namely: \" + mService.get().mState + \".\");\n\t \t\tmsg.replyTo.send(Message.obtain(null, MSG_ERROR, \n\t \t\t\t\tmService.get().getString(R.string.error_invalid_state)));\n\t \t} else {\n\t \t \t\t// The service does not exist\n\t \t \t\tLog.e(TAG,\"IncomingHandler: Service reference is null.\");\n\t \t\tmsg.replyTo.send(Message.obtain(null, MSG_ERROR, \"Service does not exist.\"));\n\t \t}\n\t } catch (RemoteException e) {\n\t // The client is dead. \n\t\t \t\tLog.e(TAG,\"IncomingHandler: The client is dead.\");\n\t } catch (NullPointerException e) {\n\t // The reply to client is does not exist. \n\t\t \t\tLog.e(TAG,\"IncomingHandler: msg.replyTo was null.\");\n\t }\n\t \t}\n\t }", "private int handleMessage (String msg)\n {\n \tif (state == STATE_CONNECTION_OPEN && msg.equals (expectedRequest))\n \t\t\treturn STATE_REQUEST_RECEIVED;\n \t\n \tif (state == STATE_REQUEST_RECEIVED && msg.matches (expectedUserAgent))\n \t\treturn STATE_AGENT_RECEIVED;\n \t\n \tif (state == STATE_AGENT_RECEIVED && msg.equals (expectedAuthorisation))\n \t\treturn STATE_AUTORISATION_RECEIVED;\n \t\n \tif (state == STATE_AUTORISATION_RECEIVED && msg.equals (\"\"))\n \t\treturn STATE_HEADER_COMPLETE;\n \t\n \tif (state == STATE_HEADER_COMPLETE && msg.equals (expectedLocation))\n \t\treturn STATE_LOCATION_RECEIVED;\n \t\n \treturn STATE_INVALID_HEADER;\n }", "public void run() {\n\t\t\t\tMessage msg = new Message();\n\t\t\t\tif (LoginActivity.netManager.getViewState(str, true) != null) {\n\t\t\t\t\tStateView = LoginActivity.netManager.getViewState(str, true);\n\t\t\t\t\tmsg.what = STATEVIEW_SUCCESS;\n\t\t\t\t} else\n\t\t\t\t\tmsg.what = STATEVIEW_FALSE;\n\t\t\t\thandler1.sendMessage(msg);\n\t\t\t}" ]
[ "0.83581805", "0.78306556", "0.73385453", "0.7060574", "0.69741315", "0.6962521", "0.69577795", "0.68880963", "0.68111634", "0.6796918", "0.6791733", "0.67510617", "0.6697017", "0.66935", "0.6683748", "0.66571563", "0.66302216", "0.66170263", "0.6599638", "0.6571435", "0.6570929", "0.65685135", "0.6555768", "0.65484935", "0.6547876", "0.65468156", "0.6525949", "0.65149945", "0.65127534", "0.6508555", "0.6506389", "0.6494029", "0.6489201", "0.64804786", "0.6479518", "0.6478489", "0.64663446", "0.64492536", "0.64271736", "0.6408374", "0.6396351", "0.6391932", "0.63874936", "0.63724244", "0.63705224", "0.6370467", "0.6370467", "0.6354435", "0.634788", "0.6338525", "0.6334784", "0.63238245", "0.6315843", "0.63116014", "0.630873", "0.62972915", "0.62911695", "0.628411", "0.62836814", "0.6283144", "0.6280503", "0.626431", "0.6262616", "0.6261649", "0.6250621", "0.6244846", "0.624438", "0.6242354", "0.62392336", "0.6238099", "0.6235267", "0.6232957", "0.6230077", "0.62282157", "0.6225633", "0.6224733", "0.6224015", "0.62206113", "0.62172", "0.62151843", "0.6214843", "0.6209488", "0.6205435", "0.620389", "0.6203276", "0.6197089", "0.618518", "0.6184858", "0.6183764", "0.618244", "0.6182258", "0.61815345", "0.6180299", "0.61792815", "0.6179091", "0.6172065", "0.6162619", "0.6162494", "0.61562526", "0.6149307" ]
0.7959315
1
Message Handler ( read )
public void execHandlerRead( Message msg ) { // create valid data bytes byte[] buffer = (byte[]) msg.obj; int length = (int) msg.arg1; byte[] bytes = new byte[ length ]; for ( int i=0; i < length; i++ ) { bytes[ i ] = buffer[ i ]; } // debug String read = buildMsgBytes( "r ", bytes ); log_d( read ); addAndShowTextViewDebug( read ); notifyRead( bytes ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void readMessage(Message message) {\n\t\t\n\t}", "private void messageHandler(String read){\n\n try {\n buffer.append(read);\n }catch (MalformedMessageException e){\n System.out.println(\"[CLIENT] The message received is not in XML format.\");\n }\n\n while(!buffer.isEmpty()) {\n if (buffer.getPong()) pong = true;\n else if (buffer.getPing()) send(\"<pong/>\");\n else {\n try {\n clientController.onReceivedMessage(buffer.get());\n } catch (EmptyBufferException e) {\n System.out.println(\"[CLIENT] The buffer is empty!\");\n }\n }\n }\n\n }", "void onMessageRead(byte[] data);", "@Override\n\tprotected void channelRead0(ChannelHandlerContext ctx, WsClientMessage msg) throws Exception {\n\t}", "@Override\n public void channelRead(ChannelHandlerContext ctx, Object msg) {\n try {\n // The incoming message should have been transformed to a CorfuMsg earlier in the pipeline.\n CorfuMsg m = ((CorfuMsg) msg);\n // We get the handler for this message from the map\n AbstractServer handler = handlerMap.get(m.getMsgType());\n if (handler == null) {\n // The message was unregistered, we are dropping it.\n log.warn(\"Received unregistered message {}, dropping\", m);\n } else {\n if (validateEpoch(m, ctx)) {\n // Route the message to the handler.\n log.trace(\"Message routed to {}: {}\", handler.getClass().getSimpleName(), msg);\n handlerWorkers.submit(() -> handler.handleMessage(m, ctx, this));\n }\n }\n } catch (Exception e) {\n log.error(\"Exception during read!\", e);\n }\n }", "protected void handleMessage(Message msg) {}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase 0:\n\t\t\t\ttv_read.setText(msg.obj.toString());\n\t\t\t\tToast.makeText(N20PINPadControllerActivity.this, \"recv\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "private void handleRead(SelectionKey key) throws IOException {\n\t\t\tSSLSocketChannel ssl_socket_channel = ((SSLClientSession)key.attachment()).getSSLSocketChannel();\n\t\t\tByteBuffer request = ssl_socket_channel.getAppRecvBuffer();\n\t\t\tint count = ssl_socket_channel.read();\n\t\t\t\n\t\t\tif (count < 0) {\n\t\t\t\t\n\t\t\t\tremoveKeyAndSession(key);\n\t\t\t\t\n\t\t\t} else if (request.position() > 0) {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tString message = new String(request.array(),0,request.position());\n\t\t\t\t\t\n//\t\t\t\t\tOutputHandler.println(\"Server: read \"+message);\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// Parse the JSON message\n\t\t\t\t\tJSONObject json = (JSONObject) parser.parse(message);\n\t\t\t\t\t\n\t\t\t\t\t// Process the message\n\t\t\t\t\tprocessNetworkMessage(json, key);\n\t\t\t\t\t\n\t\t\t\t\trequest.clear();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\tSystem.out.println(\"Invalid message format.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}", "private void readEvent() {\n\t\t\t\n\t\t\thandlePacket();\n\t\t\t\n\t\t}", "private void standByForMessages() throws IOException {\n if (reader.readLine() != null) {\n try {\n JSONObject j = (JSONObject) jps.parse(reader.readLine());\n sequence = Integer.valueOf(j.get(\"sequence\").toString());\n String cmd = (String) j.get(\"command\");\n JSONArray parameter = (JSONArray) j.get(\"parameter\");\n cmdHandler(parameter, cmd);\n } catch (ParseException ex) {\n }\n }\n }", "private void sendToReadHandler(String s) {\n\n Message msg = Message.obtain();\n msg.obj = s;\n readHandler.sendMessage(msg);\n Log.i(TAG, \"[RECV] \" + s);\n }", "public void handleMessage(Message msg) {\n switch (msg.what) {\n case handlerState:\n String readMessage = (String) msg.obj; // msg.arg1 = bytes from connect thread\n ReceivedData.setData(readMessage);\n break;\n\n case handlerState1:\n tempSound = Boolean.parseBoolean((String) msg.obj);\n ReceivedData.setSound(tempSound);\n break;\n\n case handlerState5:\n if(\"ACK\".equals ((String) msg.obj ))\n ReceivedData.clearPPGwaveBuffer();\n break;\n\n }\n ReceivedData.Process();\n }", "@Override\r\n public void handleMessage(Message msg) {\n }", "@Override\n\tpublic void read(ChannelHandlerContext ctx) throws Exception {\n\t\tLog.i(\"MySocketHandler\", \"read\");\n\t\tsuper.read(ctx);\n\t}", "@Override\n public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {\n\n log.info( ctx.channel().id().asLongText()+\"-> channelRead , msg={}\" , msg.getClass().getName());\n\n ctx.fireChannelRead( msg ) ;\n }", "@Override\n public void handleMessage(Message message) {}", "@Override\n\tpublic void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {\n\t\tString receiveData = (String)msg;\n\t\tSystem.out.println(receiveData);\n\t}", "public void handleMessage(Message message);", "@Override\n\tpublic void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {\n\t\tLog.i(\"channelRead\", ((String) msg));\n\t\tsuper.channelRead(ctx, msg);\n\t}", "@Override\n\tpublic void handleMsg(String in) {\n\n\t}", "@Override public void handleMessage(Message msg) {\n super.handleMessage(msg);\n byte[] byteArray = (byte[]) msg.obj;\n int length = msg.arg1;\n byte[] resultArray = length == -1 ? byteArray : new byte[length];\n for (int i = 0; i < byteArray.length && i < length; ++i) {\n resultArray[i] = byteArray[i];\n }\n String text = new String(resultArray, StandardCharsets.UTF_8);\n if (msg.what == BluetoothTalker.MessageConstants.MESSAGE_WRITE) {\n Log.i(TAG, \"we just wrote... [\" + length + \"] '\" + text + \"'\");\n// mIncomingMsgs.onNext(text);\n } else if (msg.what == BluetoothTalker.MessageConstants.MESSAGE_READ) {\n Log.i(TAG, \"we just read... [\" + length + \"] '\" + text + \"'\");\n Log.i(TAG, \" >>r \" + Arrays.toString((byte[]) msg.obj));\n mIncomingMsgs.onNext(text);\n sendMsg(\"I heard you : \" + Math.random() + \"!\");\n// mReadTxt.setText(++ri + \"] \" + text);\n// if (mServerBound && mServerService.isConnected()) {\n// mServerService.sendMsg(\"I heard you : \" + Math.random() + \"!\");\n// } else if (mClientBound && mClientService.isConnected()) {\n// mClientService.sendMsg(\"I heard you : \" + Math.random() + \"!\");\n// }\n// mBluetoothStuff.mTalker.write();\n }\n }", "@Override\n public void channelRead(final ChannelHandlerContext ctx, final Object msg) throws Exception {\n\n ByteBuf nettyBuffer = ((ByteBuf) msg);\n if (SYSTEM_OUT_DEBUG) {\n debugInput(nettyBuffer);\n }\n readFrame(nettyBuffer);\n\n if (SYSTEM_OUT_DEBUG) {\n System.out.println(\"performative:\" + currentPerformative);\n }\n\n switch (currentPerformative.getPerformativeType()) {\n case OPEN:\n handleOpen((Open) currentPerformative);\n break;\n case CLOSE:\n handleClose((Close) currentPerformative);\n break;\n case BEGIN:\n handleBegin((Begin) currentPerformative);\n break;\n case END:\n handleEnd((End) currentPerformative);\n break;\n case ATTACH:\n handleAttach((Attach) currentPerformative);\n break;\n default:\n System.out.println(\"Normative \" + currentPerformative + \" not implemented yet\");\n ctx.channel().writeAndFlush(nettyBuffer);\n }\n\n //parser.parse(new ProtonTransportHandlerContext(\"test\", null, null), buffer);\n\n //ctx.fireChannelRead(msg);\n\n //ctx.write(nettyBuffer.readerIndex(0).retain());\n //ctx.flush();\n }", "@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tsuper.handleMessage(msg);\n\t\t\t\tString temp;\n\t\t\t\tswitch (msg.what) {\n\t\t\t\tcase MSG_SHOW_RESULT:\n\t\t\t\t\t temp = (String) msg.obj;\n\t\t\t\t\t Reader.writelog(temp,tvResult);\n\t\t\t\t\t break;\n\t\t\t\tcase MSG_SHOW_INFO:\n\t\t\t\t\t temp = (String) msg.obj;\n\t\t\t\t\treadContent.setText(temp);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "static private void readMessage(){\r\n\t\t index = 0;\r\n\t\t code = 0;\r\n\t\t firstParam = \"\";\r\n\t\t secondParam = \"\";\r\n\t\t thirdParam = \"\";\r\n\t\t StringTokenizer st = new StringTokenizer(message, \"_\");\r\n\t\t String c = st.nextToken();\r\n\t\t index = Integer.parseInt(c);\r\n\t\t c = st.nextToken();\r\n\t\t code = Integer.parseInt(c);\r\n\t\t \t\tSystem.out.println(\"ClientMessageReader: il codice del messaggio ricevuto è \"+code);\r\n\t\t \t//\t||(code == Parameters.START_PLAYBACK) \r\n\t\t if((code == Parameters.START_OFF)|| (code == Parameters.FILES_RESPONSE))\r\n\t\t {\r\n\t\t\t firstParam = st.nextToken();\r\n\t\t }\r\n\t\t if(code == Parameters.CONFIRM_REQUEST)\r\n\t\t {\r\n\t\t\t firstParam = st.nextToken();\r\n\t\t\t \t\t\tSystem.out.println(\"CONFIRM_REQUEST firstParam: \"+firstParam);\r\n\t\t }\r\n\t }", "public abstract void msgHandler(Message msg);", "@Override\n public void channelRead0(ChannelHandlerContext ctx, String request) throws Exception {\n final JsonObject json = (JsonObject) parser.parse(request);\n if(json.has(\"operation\") && ((json.get(\"operation\").getAsString()).equals(\"data\"))) {\n final DataToProcess obj = GSON.fromJson(json, DataToProcess.class);\n QueuerManager.getInstance().pushPacket(ctx.channel().id().asShortText(), obj);\n// System.out.println(\"REC Data Received \" + ctx.channel().id().asShortText());\n }\n else {\n// System.out.println(\"REC hello packet\");\n }\n }", "@Override\n\tpublic void channelRead(ChannelHandlerContext ctx, Object msg)\n\t\t\tthrows Exception {\n\t\thandleRequestWithsingleThread(ctx, msg);\n\t}", "@Override\n public void handleMessage(Message msg) {\n Bundle data = msg.getData();\n if (data.containsKey(\"command\")) {\n if (data.getString(\"command\").equalsIgnoreCase(\"get_data\")) {\n mGetDataMessenger = msg.replyTo;\n getData();\n }\n }\n }", "abstract public Object handleMessage(Object message) throws Exception;", "@Override\n protected void channelRead0(ChannelHandlerContext ctx, Map<String, Object> msg) throws Exception {\n Object id = msg.get(IAdapter.TEMPLATE_ID);\n Validate.notNull(id);\n if ((int)id == SyncMessageDecoder.TEMPLATE_ID){\n //TODO do some business ,For example printout\n Object o = msg.get(SyncInfo.class.getSimpleName());\n Validate.notNull(o);\n if (o instanceof SyncInfo){\n System.out.println(((SyncInfo)o).toString());\n }\n }\n }", "@Override\n\tpublic void msgReceived(Message msg) {\n\n\t}", "void onMessageReceived(Message message);", "@Override\n\tpublic void onMessageRecieved(Message arg0) {\n\t\t\n\t}", "public void OnMessageReceived(String msg);", "public void receive(MessageHandler handler) {\n this.tokenizer = new StreamTokenizer(handler);\n channel.read(readBuffer, this, this.readCompletionHandler);\n }", "@Override\n\tpublic void read() {\n\n\t}", "@Override\n public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {\n String body = (String) msg;\n System.out.println(body);\n System.out.println(\"第\"+ ++count + \"次收到服务器回应\");\n }", "@Override\n public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {\n String body = msg.toString();\n System.out.println(\"返回值:\" + body + \", count = \" + counter.getAndIncrement());\n }", "public void handle(int ID, Object message){}", "@Override\n public void handleMessage(Message msg) {\n System.out.println(\"recibe mensajes ...\");\n System.out.println(msg.obj);\n }", "private void parseMessages() {\n\n // Find the first delimiter in the buffer\n int inx = rx_buffer.indexOf(DELIMITER);\n\n // If there is none, exit\n if (inx == -1)\n return;\n\n // Get the complete message\n String s = rx_buffer.substring(0, inx);\n\n // Remove the message from the buffer\n rx_buffer = rx_buffer.substring(inx + 1);\n\n // Send to read handler\n sendToReadHandler(s);\n\n // Look for more complete messages\n parseMessages();\n }", "@Override\r\n\tpublic void read() {\n\r\n\t}", "public void run()\n {\n \n try {\n String Msg = \"\";\n ArrayList<String> tokens=new ArrayList<String>();\n while ((Msg = this.reader.readLine())!=null)\n {\n if(!tokens.isEmpty())\n {\n //not empty,clear.\n tokens.clear();\n\n }\n //check the msg\n System.out.println(\"Inside while, Received msg in client handler:\"+Msg);\n //all the meta datas are separated using :\n tokens.addAll(Constants.tokens(Msg, \":\"));\n //if it's a login request\n if(tokens.contains(Constants.LOGIN_ID))\n {\n this.userID=tokens.get(1);//the 2nd string of this format LOGIN_ID:username:password\n this.password=tokens.get(2);\n this.client_delegate.validate(this);\n }\n //if it's a log out request.\n if(tokens.contains(Constants.LOGOUT_ID))\n {\n this.client_delegate.logout(this);\n }\n //public room message\n if(tokens.contains(Constants.PUBLIC_ROOM))\n {\n \n if(tokens.get(1).contains(\"file\"))\n {\n //there is smiley,but the parts were separated due to the presence of an internal : after word 'file'\n this.client_delegate.sendMessage(tokens.get(1)+\":\"+tokens.get(2));\n }\n else\n {\n //the message is without smiley...\n this.client_delegate.sendMessage(tokens.get(1));\n }\n \n }\n //private message\n if(tokens.contains(Constants.MESSAGE_ID))\n {\n //private message\n if(tokens.get(2).contains(\"file\"))\n {\n //there is smiley,but the parts were separated due to the presence of an internal : after word 'file'\n this.client_delegate.sendMessageFromThisTo(tokens.get(1), tokens.get(2)+\":\"+tokens.get(3), tokens.get(4));\n }\n else\n {\n //the message is without smiley...\n this.client_delegate.sendMessageFromThisTo(tokens.get(1), tokens.get(2), tokens.get(3));\n }\n }\n if(tokens.contains(Constants.FILE))\n {\n this.client_delegate.sendFileTo(tokens.get(1), Integer.parseInt(tokens.get(2)), tokens.get(3));\n }\n \n \n\n }\n } catch (Exception ex) {\n System.out.printf(\"Error parsing message from client:%s.\",this.userID);\n }\n }", "@Override\n public void handleMessage(Message msg){\n switch (msg.what) {\n case PSensor.MESSAGE_STATE_CHANGE:\n break;\n case PSensor.MESSAGE_WRITE:\n break;\n case PSensor.MESSAGE_READ:\n PSensor.sensorData.parseInput((byte[])msg.obj);//parseInput((byte[])msg.obj);\n multiGauge.handleSensor(PSensor.sensorData.boost);\n multiGaugeVolts.handleSensor(PSensor.sensorData.batVolt);\n break;\n case PSensor.MESSAGE_DEVICE_NAME:\n break;\n case PSensor.MESSAGE_TOAST:\n break;\n default:\n break;\n }\n }", "protected void mainTask() {\n\t logger.log(1, CLASS, \"-\", \"impl\",\n\t\t \"About to read command\");\n\t try { \n\t\tcommand = (COMMAND)connection.receive();\n\t\tlogger.log(1,CLASS, \"-\", \"impl\",\n\t\t\t \"Received command: \"+(command == null ? \"no-command\" : command.getClass().getName()));\n\t } catch (IOException e) {\n\t\tinitError(\"I/O error while reading command:[\"+e+\"]\",command);\n\t\treturn;\n\t } catch (ClassCastException ce) {\n\t\tinitError(\"Garbled command:[\"+ce+\"]\", command);\n\t\treturn;\n\t } \n\t \n\t // 2. Create a handler.\n\t if (command == null) {\n\t\tinitError(\"No command set\", null);\n\t\treturn;\n\t }\n\n\t if (handlerFactory != null) {\n\t\thandler = handlerFactory.createHandler(connection, command);\n\t\tif (handler == null) {\n\t\t initError(\"Unable to process command [\"+command.getClass().getName()+\"]: No known handler\", command);\n\t\t return;\n\t\t}\n\t \n\t\t// 3. Handle the request - handler may send multiple updates to client over long period\n\t\thandler.handleRequest();\n\t }\t \n\t}", "void onMessage(String message) throws IOException;", "public abstract void messageReceived(String message);", "@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n switch (msg.what) {\n case 0x001:\n Bundle bundle1 = msg.getData();\n String result1 = bundle1.getString(\"result\");\n parseData(result1);\n break;\n default:\n break;\n }\n }", "@Override\n \t public void run() {\n \t \tGetMessageUnreadFunc();\n \t }", "@Override\n\tpublic void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {\n\t\tctx.write(msg);\n\t}", "@Override\n protected void channelRead0(ChannelHandlerContext ctx, Message msg)\n {\n mDispatcher.dispatch(mPeer, msg);\n }", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "@Override\n public void run() {\n FILEPREFIX = \".//files\"+serverID + \"//\";\n ClientMessage = (Message) socketRead();\n ServerMessage = getReturnMessage(ClientMessage);\n //System.out.println(\"client\"+ClientMessage.getFrom()+\"message : \"+ClientMessage.getContent());\n File file = new File(FILEPREFIX + ClientMessage.getFileName());\n switch (ClientMessage.getType()){\n case \"enquiry\"://return the list of file\n ServerMessage.setContent(ListAllFile());\n break;\n case \"read\"://read the last line\n System.out.println(ClientMessage.getFrom() + \": Reading...\");\n ServerMessage.setContent(\"Reading: \"+ReadLastLine(file));\n System.out.println(\"Reading \"+ClientMessage.getContent());\n break;\n case \"write\"://write to the end of file\n System.out.println(ClientMessage.getFrom() + \": writing...\");\n try{\n WriteLastLine(file,ClientMessage.getContent());\n }catch (IOException e) {\n System.out.println(\"write error\");\n }\n\n ServerMessage.setContent(\"writing: \"+ReadLastLine(file));\n System.out.println(\"Writing \"+ClientMessage.getContent());\n break;\n default://unknown command\n System.out.println(ClientMessage.getType());\n ServerMessage.setContent(\"Error\");\n System.out.println(ClientMessage.getFrom() + \": Wrong type\");\n break;\n }\n socketWrite(ServerMessage);\n\n try {//close the socket connection\n client.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void run() {\n Message message = new Message();\n message.what=1;\n handler.sendMessage(message);\n }", "public void readMessages() {\n if (!this.isConnectedToClientServer){return;}\n String inputMessage = inputQueue.poll();\n if (inputMessage != null){\n try{\n ClientMessageType messageType = ClientMessageParser.parse(inputMessage);\n if (messageType == ClientMessageType.INCOMING_BALL){\n //parses the message to get a ball, which is then added to the board\n Ball ball = ClientMessageParser.parseIncomingBall(inputMessage);\n board.addBall(ball);\n }\n else if (messageType == ClientMessageType.WALL_INVISIBILITY){\n //parses the messages to find out which boundary to make invisible, and does so\n BoundarySide whichBoundary = ClientMessageParser.parseWallInvisibility(inputMessage, board.neighbors);\n board.makeInvisible(whichBoundary);\n }\n else if (messageType == ClientMessageType.WALL_VISIBILITY){\n //parses the messages to find out which boundary to make visible, and does so\n BoundarySide whichBoundary = ClientMessageParser.parseWallVisibility(inputMessage, board.neighbors);\n board.makeVisible(whichBoundary);\n }\n else if (messageType == ClientMessageType.DISCONNECT_CLIENT){\n disconnectFromClientAndServer();\n }\n } catch (IncorrectFormatException e){\n //don't do anything --> message is not parsed, but play on this board still continues\n }\n }\n }", "public void handleMessageFromClient(Object msg) {\n\n }", "@Override\n public void run() {\n Message message = new Message();\n message.what = 4;\n handler.sendMessage(message);\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase 911:\n\t\t\t\tqueryMsg();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}", "@Override\n\tprotected void channelRead0(ChannelHandlerContext ctx, RpcRequest msg) throws Exception {\n\t\tRpcResponse response = new RpcResponse();\n\t\tresponse.setRequestId(msg.getRequestId());\n\t\ttry {\n\t\t\tObject result = handle(msg);\n\t\t\tresponse.setResult(result);\n\t\t} catch (Throwable t) {\n\t\t\tLOGGER.debug(\"handle ocurred error ==> {}\", t);\n\t\t\tresponse.setError(t);\n\t\t}\n\t\tctx.writeAndFlush(response).addListener(ChannelFutureListener.CLOSE);//写完然后关闭channel\n\t}", "public void ownRead();", "protected synchronized void receiveHighLevel() throws Exception{\n\t\treceivedMsg = conn.receiveALine( ); \n//\t\tprintln(\"received \" + receivedMsg);\n\t\twhile( receivedMsg == null ){ //this means that the connection works in raw mode\n\t\t\t//System.out.println(\"ConnInputReceiver waiting ... \" + conn );\n\t\t\tmemo();\n \t\t\twait();\n \t\t\t//System.out.println(\"ConnInputReceiver resuming ... \" + conn );\n\t\t\treceivedMsg = conn.receiveALine( ); \n\t\t}\t\n\t\tunmemo();\t\n\t}", "private void handleReadable(@NotNull SelectionKey selectionKey) throws IOException, InvalidQueryException,\n InvalidMessageException {\n logger.debug(\"handling readable\");\n MessageReader reader = (MessageReader) selectionKey.attachment();\n\n if (reader.isDisconnected()) {\n logger.debug(\"Client {} was disconnected\", selectionKey.channel());\n selectionKey.channel().close();\n return;\n }\n\n Optional<Message> message = reader.readMessage();\n\n if (message.isPresent()) {\n logger.debug(\"Message is read\");\n SocketChannel userChannel = (SocketChannel) selectionKey.channel();\n Writer writer = handleUserTask(message.get(), userChannel);\n selectionKey.channel().register(selectionKey.selector(), SelectionKey.OP_WRITE);\n selectionKey.attach(writer);\n }\n }", "@Override\n\tprotected void channelRead0(ChannelHandlerContext ctx, TextWebSocketFrame frame) throws Exception\n\t{\n\t\tci.invoke(frame.text());\n\t}", "@Override\n protected void channelRead0(ChannelHandlerContext ctx, ByteBuf msg) {\n System.out.println(\"Client received: \" + ByteBufUtil.hexDump(msg.readBytes(msg.readableBytes())));\n }", "private void receiveAndDispatchMessage() {\n String response = null;\n try {\n while((response = bufferedReader.readLine()) != null) {\n System.out.println(\"received message from server: \" + response);\n String messageKind = \"\";\n if(response.contains(\":\")) {\n messageKind = response.substring(0, response.indexOf(\":\"));\n } else {\n messageKind = response;\n }\n Bundle bundle = new Bundle();\n bundle.putString(\"response\", response);\n switch (messageKind) {\n case ClientMessageKind.SIGNUPDENIED:\n case ClientMessageKind.SIGNUPOK:\n if(resultReceiverMap.keySet().contains(ActivityNames.COMMONSIGNUPACTIVITY)) {\n resultReceiverMap.get(ActivityNames.COMMONSIGNUPACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.SIGNINDENIED:\n case ClientMessageKind.SIGNINOK:\n if(resultReceiverMap.keySet().contains(ActivityNames.COMMONSIGNINACTIVITY)) {\n resultReceiverMap.get(ActivityNames.COMMONSIGNINACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.DRIVERLOC:\n if(resultReceiverMap.keySet().contains(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.PASSENGERLOC:\n if(resultReceiverMap.keySet().contains(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.CHATFROMDRIVER:\n if(resultReceiverMap.keySet().contains(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.CHATFROMPASSENGER:\n if(resultReceiverMap.keySet().contains(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.PASSENGERDEST:\n if(resultReceiverMap.containsKey(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.STARTRIDE:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n } else if(resultReceiverMap.containsKey(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.ENDRIDE:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERENDSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERENDSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.DRIVERCANCEL:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.PASSENGERCANCEL:\n if(resultReceiverMap.containsKey(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.UPDATEPASSENGERPROFILEDENIED:\n case ClientMessageKind.UPDATEPASSENGERPROFILEOKAY:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERUPDATEPROFILEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERUPDATEPROFILEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.UPDATEDRIVERPROFILEDENIED:\n case ClientMessageKind.UPDATEDRIVERPROFILEOKAY:\n if(resultReceiverMap.containsKey(ActivityNames.DRIVERUPDATEPROFILEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERUPDATEPROFILEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.DRIVERREQUESTLOC:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.PASSENGERREQUESTLOC:\n if(resultReceiverMap.containsKey(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n default:\n break;\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "@Override\n public void run() {\n\n startPingTimer();\n String read = \"\";\n\n try {\n while ((read = in.readLine()) != null){\n\n //System.out.println(\"[CLIENT] Received: \" + read);\n messageHandler(read);\n\n }\n closeConnection();\n\n }catch (IOException e){\n\n System.out.println(\"[CLIENT] \" + e.getMessage());\n System.out.println(\"[CLIENT] Connection closed.\");\n\n }\n\n }", "@Override\n public void channelReadComplete(ChannelHandlerContext ctx) throws Exception {\n }", "@Override\n\tpublic void dispatchHandler(Message msg) {\n\t\t\n\t}", "public void readInput(String msg){\n if(msg.startsWith(\"User:\")){\n msg = msg.substring(msg.indexOf(':') + 1);\n users.add(msg);\n notifyObservers(ObserverEnum.ADD, msg);\n }else if(msg.startsWith(\"Message:\")){\n msg = msg.substring(msg.indexOf(':') + 1);\n notifyObservers(ObserverEnum.MESSAGE, msg);\n }else if(msg.startsWith(\"Disconnect:\")){\n msg = msg.substring(msg.indexOf(':') + 1);\n users.remove(msg);\n notifyObservers(ObserverEnum.REMOVE, msg);\n }else if(msg.startsWith(\"IDisconnect:\")){\n users.clear();\n notifyObservers(ObserverEnum.DISCONNECTED, msg);\n }\n }", "@Override\n protected void channelRead0(ChannelHandlerContext ctx, String msg) throws Exception { // (4)\n Channel incoming = ctx.channel();\n\n String remoteAddress = incoming.remoteAddress().toString();\n logger.info(\"[BudsRpc ][Registry-server] receive data=[{}] from {}\", msg, remoteAddress);\n\n String[] cmd = msg.split(\"\\r\\n\");\n ActionEnum action = ActionEnum.getAction(cmd[0]);\n String service = cmd[1];\n String address = cmd[2];\n String port = cmd[3];\n\n switch (action) {\n case ACTION_REGISTRY:\n Set<Channel> channelSet = registryMap.get(service);\n if (channelSet == null) {\n channelSet = new HashSet<>();\n registryMap.put(service, channelSet);\n }\n channelSet.add(incoming);\n\n Set<String> serviceSet = providerMap.get(remoteAddress);\n if (serviceSet == null) {\n serviceSet = new HashSet<>();\n providerMap.put(remoteAddress, serviceSet);\n }\n serviceSet.add(service);\n\n // 通知订阅者\n notify(service);\n\n case ACTION_SUBSCRIBE:\n ChannelGroup channelGroup = subscribMap.get(service);\n if (channelGroup == null) {\n channelGroup = new DefaultChannelGroup(GlobalEventExecutor.INSTANCE);\n subscribMap.put(service, channelGroup);\n }\n channelGroup.add(incoming);\n break;\n\n }\n\n for (Channel channel : channels) {\n if (channel != incoming) {\n channel.writeAndFlush(\"[\" + incoming.remoteAddress() + \"]\" + msg + \"\\n\");\n } else {\n channel.writeAndFlush(\"[you]\" + msg + \"\\n\");\n }\n }\n }", "public synchronized String read() {\n\t\tString message = \"\";\n\n\t\tif(content.size() > 0 )\n\t\t\tmessage = content.get(0);\n\t\tnotify();\n\n\t\treturn message;\n }", "public void messageReceived(Message m) {\n\t\t\r\n\t}", "abstract void read();", "@Override\n\tpublic void readCB(CB cb) {\n\t\t\n\t}", "@Override\n\tpublic void processMessage(Message message) {\n\t\t\n\t}", "void read ();", "@Override\n public void channelRead(ChannelHandlerContext ctx, Object msg)\n {\n throw new IllegalStateException(\"InboundMessageHandler doesn't expect channelRead() to be invoked\");\n }", "@Override\n public void onReceive(Object msg) throws Exception {\n }", "@Override\n\tpublic void channelReadComplete(ChannelHandlerContext ctx) throws Exception {\n\t}", "protected void channelRead0(ChannelHandlerContext channelHandlerContext, CommandMessage command) throws Exception {\r\n\r\n final Op cmd = command.op;\r\n\r\n // now do the real work\r\n if (this.verbose) {\r\n final StringBuilder log = new StringBuilder(1024);\r\n log.append(cmd);\r\n if (command.element != null) {\r\n log.append(\" \").append(command.element.getKey());\r\n }\r\n log.append(\" \").append(command.key);\r\n logger.info(log.toString());\r\n }\r\n\r\n final Channel channel = channelHandlerContext.channel();\r\n if (cmd == null) {\r\n handleNoOp(command, channel);\r\n } else {\r\n switch (cmd) {\r\n case GET:\r\n handleGet(command, channel);\r\n break;\r\n case GETS:\r\n handleGets(command, channel);\r\n break;\r\n case APPEND:\r\n handleAppend(command, channel);\r\n break;\r\n case PREPEND:\r\n handlePrepend(command, channel);\r\n break;\r\n case DELETE:\r\n handleDelete(command, channel);\r\n break;\r\n case DECR:\r\n handleDecr(command, channel);\r\n break;\r\n case INCR:\r\n handleIncr(command, channel);\r\n break;\r\n case REPLACE:\r\n handleReplace(command, channel);\r\n break;\r\n case ADD:\r\n handleAdd(command, channel);\r\n break;\r\n case SET:\r\n handleSet(command, channel);\r\n break;\r\n case CAS:\r\n handleCas(command, channel);\r\n break;\r\n case STATS:\r\n handleStats(command, channel);\r\n break;\r\n case VERSION:\r\n handleVersion(command, channel);\r\n break;\r\n case QUIT:\r\n handleQuit(channel);\r\n break;\r\n case FLUSH_ALL:\r\n handleFlush(command, channel);\r\n break;\r\n case VERBOSITY:\r\n handleVerbosity(command, channel);\r\n break;\r\n default:\r\n throw new UnknownCommandException(\"unknown command\");\r\n }\r\n }\r\n }", "@Override\n public void run() {\n Message message = mHandler.obtainMessage(1);\n mHandler.sendMessage(message);\n }", "@Override\n\tpublic void receive_message(Message m) {\n\t\t\n\t}", "@Override\n public void receiveMessage(String message) {\n }", "Boolean isMessageRead(String msgId);", "@Override\n\tpublic void onMessage(Object arg0) {\n\t\t\n\t}", "void handleMessage(byte messageType, Object message);", "public void onReceive(Object message) {\r\n if (message instanceof End) {\r\n End end = (End) message;\r\n \r\n log.debug(\"Message End of file for : \"+end.getFilePath().toString()+\" received!\");\r\n \r\n count++;\r\n \r\n String path = end.getFilePath().toString();\r\n \r\n System.out.println(\"Words count of file : \" + path + \" is \" + wordCount.get(path) + \" words\");\r\n \r\n if (count >= numberOfFiles) {\r\n getContext().system().terminate();\r\n }\r\n } else if (message instanceof Line) {\r\n \t\r\n Line line = (Line) message;\r\n \r\n log.debug(\"Message Line of file for : \"+line.getFilePath().toString()+\" received!\");\r\n\r\n int lineWordsCounts = line.read.split(\" \").length;\r\n \r\n String path = line.getFilePath();\r\n \r\n if (wordCount.containsKey(path)) {\r\n \twordCount.put(path, wordCount.get(path) + lineWordsCounts);\r\n } else {\r\n \twordCount.put(path, lineWordsCounts);\r\n }\r\n \r\n } else if (message instanceof Start) {\r\n Start start = (Start) message;\r\n \r\n log.debug(\"Message Start of file for : \"+start.getFilePath().toString()+\" received!\");\r\n\r\n } else {\r\n\t\t\tlog.error(\"Unexpected object message received: \"+message);\r\n unhandled(message);\r\n }\r\n }", "@Override\n\tpublic void onMessageReceived(ACLMessage message) {\n\n\t}", "public <T> T readInbound() {\n/* 291 */ T message = (T)poll(this.inboundMessages);\n/* 292 */ if (message != null) {\n/* 293 */ ReferenceCountUtil.touch(message, \"Caller of readInbound() will handle the message from this point\");\n/* */ }\n/* 295 */ return message;\n/* */ }", "@Override\n\tpublic MessageVO readMessage(String userid, int mid) {\n\t\treturn null;\n\t}", "abstract protected void receiveMessage(Message m);", "@Override\r\n\tpublic void messageReceived(Object obj) {\n\t\t\r\n\t}", "public synchronized void listen() {\n// synchronized (this) {\n try {\n String input;\n if ((input = in.readLine()) != null) {\n parseCommand(input);\n }\n } catch (IOException ex) {\n Logger.getLogger(ClientIO.class.getName()).log(Level.SEVERE, null, ex);\n }\n// }\n }", "@Override\n protected void managedInputMessage(String message) throws IOException, ClassNotFoundException {\n Message objectResponse;\n try {\n objectResponse = (Message) ois.readObject();\n //System.out.println(\"(\" + ourNode.getName() + \") Object response from \" + connectedNode.getName() + \": \" + objectResponse.getSrc());\n callback.onMessageReceived(objectResponse);\n } catch (Exception e) {\n System.err.println(\"Excepcio en la lectura de l'objecte!\");\n e.printStackTrace();\n }\n }", "@Override\n public void run() {\n try {\n boolean busy = true;\n while (busy) {\n AbstractBasicMessage msg = readMsg();\n if (msg != null) {\n busy = msg.operate(this.persistor, this.pushServer);\n }\n }\n } catch (IOException e) {\n // Treat an IOException as a termination of the message\n // exchange, and let this message-processing thread die.\n\n // CODE VON DOZENTEN...\n } catch (OperationNotSupportedException ex) {\n System.out.println(\"Error while reading incoming message\");\n ex.printStackTrace();\n }\n }", "abstract void onMessage(byte[] message);", "public synchronized String read() {\n\n /* RULE: empty, eligible for WRITE only; !empty, eligible for READ only :\n for read process to proceed, need message tray to be full, so while empty,\n make this thread sleep (the READER thread) so the other thread will run\n and write/fill in the message tray */\n\n while(empty) { // loop til we got a msg to read (cant read without msg)\n // DEADLOCK FIX\n try {\n wait(); // an Object method, not Thread's\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n empty = true; // i read the msg, will be sending this to Reader afterwards so message tray is now empty\n notifyAll(); // executed only after we have updated 'empty'\n return message;\n }", "@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n Log.d(TAG,\"In Handler, Msg = \"+msg.arg1);\n }", "private void treatRead(SelectionKey key) throws IOException\n {\n EventHandler attach = (EventHandler) key.attachment();\n attach.processRead(key);\n }", "public void handleMessageEvent(StunMessageEvent e) {\n delegate.processRequest(e);\n }" ]
[ "0.7732359", "0.7504145", "0.7244303", "0.7200611", "0.71448874", "0.71405095", "0.71173126", "0.71027523", "0.7073241", "0.7058393", "0.7010969", "0.7010285", "0.6996081", "0.69955355", "0.697918", "0.692686", "0.692289", "0.6901084", "0.6888136", "0.68363744", "0.680746", "0.679779", "0.67663354", "0.675441", "0.67232937", "0.67227226", "0.6687236", "0.6685453", "0.66826475", "0.66700906", "0.6651823", "0.6631849", "0.6600794", "0.6591373", "0.6584703", "0.6569436", "0.6568603", "0.6568291", "0.65393674", "0.65355873", "0.6531019", "0.65263313", "0.6519231", "0.6516297", "0.6496731", "0.64888936", "0.64886475", "0.64689225", "0.6465485", "0.6455093", "0.64545745", "0.64468557", "0.643452", "0.642271", "0.6418487", "0.64166075", "0.64133346", "0.64079297", "0.63866657", "0.63679284", "0.6359171", "0.63561875", "0.6351446", "0.6348264", "0.6344189", "0.6340596", "0.63348466", "0.6332511", "0.6331052", "0.6330506", "0.62999225", "0.629922", "0.62974745", "0.6293333", "0.62785757", "0.6276309", "0.62635165", "0.625765", "0.6250014", "0.6247456", "0.624258", "0.6238234", "0.622799", "0.62278306", "0.6219641", "0.621897", "0.6217502", "0.62170845", "0.6208474", "0.62083983", "0.6204396", "0.6195041", "0.61933357", "0.619296", "0.6192201", "0.6191739", "0.6189936", "0.6188791", "0.6181002", "0.61664706" ]
0.8109057
0
Message Handler ( write )
private byte[] execHandlerWrite( Message msg ) { byte[] bytes = (byte[]) msg.obj; String data = mByteUtility.bytesToHexString( bytes ); log_d( "EventWrite " + data ); return bytes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void messageWriter(MessageWriter messageWriter);", "private void handleWrite(SelectionKey key, String message, SSLClientSession session) throws IOException {\n\t\t\tSSLSocketChannel ssl_socket_channel = session.getSSLSocketChannel();\n\t\t\t\n\t\t\tByteBuffer out_message = ssl_socket_channel.getAppSendBuffer();\n\t\t\t\n\t\t\tif(message != null) \n\t\t\t\tout_message.put(message.getBytes());\n\t\t\t\n//\t\t\tOutputHandler.println(\"Server: writing \"+new String(out_message.array(), 0, out_message.position()));\n\t\t\tint count = 0;\n\t\t\t\n\t\t\twhile (out_message.position() > 0) {\n\t\t\t\tcount = ssl_socket_channel.write();\n\t\t\t\tif (count == 0) {\n//\t\t\t\t\tOutputHandler.println(\"Count was 0.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n//\t\t\t\telse {\n//\t\t\t\t\tOutputHandler.println(\"Count was \"+count);\n//\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (out_message.position() > 0) {\n\t\t\t\t// short write:\n\t\t\t\t// Register for OP_WRITE and come back here when ready\n\t\t\t\tkey.interestOps(key.interestOps() | SelectionKey.OP_WRITE);\n\t\t\t\t\n\t\t\t\tsession.rewrite = true;\n\t\t\t} else {\n\t\t\t\tif(session.out_messages.isEmpty()) { \n\t\t\t\t\t// Write succeeded, don�t need OP_WRITE any more\n\t\t\t\t\tkey.interestOps(key.interestOps() & ~SelectionKey.OP_WRITE);\n\t\t\t\t} \n\t\t\t\t\n\t\t\t\tsession.rewrite = false;\n\t\t\t}\n\t\t}", "void write();", "public abstract void outWrite(final String msg);", "@Override\r\n\tpublic void write() {\n\t\t\r\n\t}", "void write(String message) {\n this.message = message;\n }", "void notifyWrite();", "@Override\n public void write() {\n\n }", "public abstract void msgHandler(Message msg);", "@Override\n\tpublic void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {\n\t\tctx.write(msg);\n\t}", "@Override\n public void onWrite() {\n onChannelPreWrite();\n }", "void messageSent();", "private void messageHandler(String read){\n\n try {\n buffer.append(read);\n }catch (MalformedMessageException e){\n System.out.println(\"[CLIENT] The message received is not in XML format.\");\n }\n\n while(!buffer.isEmpty()) {\n if (buffer.getPong()) pong = true;\n else if (buffer.getPing()) send(\"<pong/>\");\n else {\n try {\n clientController.onReceivedMessage(buffer.get());\n } catch (EmptyBufferException e) {\n System.out.println(\"[CLIENT] The buffer is empty!\");\n }\n }\n }\n\n }", "public void write(byte[] buffer) { //이건 보내주는거\n try {\n mmOutStream.write(buffer);\n\n // Disabled: Share the sent message back to the main thread\n mHandler.obtainMessage(MESSAGE_WRITE, -1, -1, buffer).sendToTarget(); //MH주석풀엇음 //what arg1, arg2 obj\n\n } catch (IOException e) {\n Log.e(TAG, \"Exception during write\");\n }\n }", "private void writeMessage(Message message) throws IOException {\n Message.Command temp = message.getCommand();\n if (temp != Message.Command.GET_RESERVED && temp != Message.Command.GET_AVAILABLE) {\n connectionLoggerService.add(\"Bank : \" + message.toString());\n }\n objectOutputStream.reset();\n objectOutputStream.writeObject(message);\n }", "void out( Object msg );", "void sendMessage(String message) {\n writer.println(message);\n }", "@Override\n public void run() {\n Message message = new Message();\n message.what=1;\n handler.sendMessage(message);\n }", "@Override\r\n public void writeMessage(Message msg) throws IOException {\n final StringBuilder buf = new StringBuilder();\r\n msg.accept(new DefaultVisitor() {\r\n\r\n @Override\r\n public void visitNonlocalizableTextFragment(VisitorContext ctx,\r\n NonlocalizableTextFragment fragment) {\r\n buf.append(fragment.getText());\r\n }\r\n\r\n @Override\r\n public void visitPlaceholder(VisitorContext ctx, Placeholder placeholder) {\r\n buf.append(placeholder.getTextRepresentation());\r\n }\r\n\r\n @Override\r\n public void visitTextFragment(VisitorContext ctx, TextFragment fragment) {\r\n buf.append(fragment.getText());\r\n }\r\n });\r\n out.write(buf.toString().getBytes(UTF8));\r\n }", "public void writeString(String message);", "@Override\n\tpublic void write(Message arg0) throws JMSException {\n\n\t}", "void onBytesWritten(int bytesWritten);", "@Override\n\tpublic void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception {\n\t\tLog.i(\"userEventTriggered\", ((String) msg));\n\t\tsuper.write(ctx, msg, promise);\n\t}", "@Override\n public void run() {\n Message message = new Message();\n message.what = 4;\n handler.sendMessage(message);\n }", "public void handle(int ID, Object message){}", "protected void handleMessage(Message msg) {}", "public void writeMassege() {\n m = ChatClient.message;\n jtaChatHistory.setText(\"You : \" + m);\n //writeMassageServer();\n }", "public void handleMessage(Message message);", "public void write(String message){\n this.write(message, false);\n }", "private void write( String what ) {\n\ttry {\n\t output.write( what );\n\t} catch ( IOException e ) {\n\t e.printStackTrace();\n\t}\n }", "@Override\n\tpublic void dispatchHandler(Message msg) {\n\t\t\n\t}", "@Override\r\n public void handleMessage(Message msg) {\n }", "void onMessage(String message) throws IOException;", "@Override\n public void handleMessage(Message message) {}", "public synchronized void write(String message) {\n\n /* RULE: empty, eligible for WRITE only; !empty, eligible for READ only :\n for write process to proceed, need message tray empty, so while !empty,\n make this thread sleep (the READER thread) so the other thread will run\n and read/empty out the message tray */\n\n while(!empty) { // loop while not empty (cant write)\n // DEADLOCK FIX\n try {\n wait(); // an Object method, not Thread's\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n empty = false; // i receive a msg from Writer, wrote it in my data, so now message tray is now not empty\n this.message = message;\n notifyAll(); // executed only after we have updated 'empty'\n }", "public interface MessageHandler {\n\n public void setMessage(TextMessage message,String msg);\n}", "@Override public void handleMessage(Message msg) {\n super.handleMessage(msg);\n byte[] byteArray = (byte[]) msg.obj;\n int length = msg.arg1;\n byte[] resultArray = length == -1 ? byteArray : new byte[length];\n for (int i = 0; i < byteArray.length && i < length; ++i) {\n resultArray[i] = byteArray[i];\n }\n String text = new String(resultArray, StandardCharsets.UTF_8);\n if (msg.what == BluetoothTalker.MessageConstants.MESSAGE_WRITE) {\n Log.i(TAG, \"we just wrote... [\" + length + \"] '\" + text + \"'\");\n// mIncomingMsgs.onNext(text);\n } else if (msg.what == BluetoothTalker.MessageConstants.MESSAGE_READ) {\n Log.i(TAG, \"we just read... [\" + length + \"] '\" + text + \"'\");\n Log.i(TAG, \" >>r \" + Arrays.toString((byte[]) msg.obj));\n mIncomingMsgs.onNext(text);\n sendMsg(\"I heard you : \" + Math.random() + \"!\");\n// mReadTxt.setText(++ri + \"] \" + text);\n// if (mServerBound && mServerService.isConnected()) {\n// mServerService.sendMsg(\"I heard you : \" + Math.random() + \"!\");\n// } else if (mClientBound && mClientService.isConnected()) {\n// mClientService.sendMsg(\"I heard you : \" + Math.random() + \"!\");\n// }\n// mBluetoothStuff.mTalker.write();\n }\n }", "@Override\n public void write(String text) {\n }", "public synchronized void write(String message) {\n\t\tcontent.add(message);\n\n\t\tnotify();\n }", "@Override\r\n\tpublic void writeObject(Object obj) throws IOException {\n\t\t\r\n\t\tif (obj instanceof HandShake ) {\r\n\t\t\t((HandShake) obj).write(this);\r\n\t\t} else if (obj instanceof Message){\r\n\t\t\t((Message) obj).write(this);\r\n\t\t} else {\r\n\t\t\tthrow new UnsupportedOperationException(\" Message is not supported to write \");\r\n\t\t}\r\n\t}", "public void writeMsg(MamaMsg msg, MamaDictionary dictionary, MamaSubscription subscription);", "public void writeSysCall() {\n clientChannel.write(writeBuffer, this, writeCompletionHandler);\n }", "public interface MessageWriter {\n /**\n * Generic \"send\" method takes an EventStore, which is used to lookup stored variables\n * and a Template, which describes what to put in the message.\n * @param es The EventStore to use to lookup variables.\n * @param template The key/value pairs to send\n */\n\tpublic void send(EventStore es, Template template);\n}", "public Handler getWriteHandler() {\n return writeHandler;\n }", "private void sendCmdToHandler(List<Object> out, AbstractMsg<?> msg) {\n out.add(msg);\n }", "protected void doWrite(Message<?> message) {\n\t\ttry {\n\t\t\tTcpConnection connection = getConnection();\n\t\t\tif (connection == null) {\n\t\t\t\tthrow new MessageMappingException(message, \"Failed to create connection\");\n\t\t\t}\n\t\t\tif (logger.isDebugEnabled()) {\n\t\t\t\tlogger.debug(\"Got Connection \" + connection.getConnectionId());\n\t\t\t}\n\t\t\tconnection.send(message);\n\t\t} catch (Exception e) {\n\t\t\tString connectionId = null; \n\t\t\tif (this.connection != null) {\n\t\t\t\tconnectionId = this.connection.getConnectionId();\n\t\t\t}\n\t\t\tthis.connection = null;\n\t\t\tif (e instanceof MessageMappingException) {\n\t\t\t\tthrow (MessageMappingException) e;\n\t\t\t}\n\t\t\tthrow new MessageMappingException(message, \"Failed to map message using \" + connectionId, e);\n\t\t}\n\t}", "@Override\n protected void sink(Message message) {\n }", "@Override\n\tpublic void SendMessage(String message) {\n\t\t\n\t\ttry\n\t\t{\n\t\tprintWriters.get(clients.get(0)).println(message);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\n\t}", "@Override\n\tpublic void handleMsg(String in) {\n\n\t}", "public abstract void emit(EventsHandler handler);", "protected void emit(Player p, String message) {\n }", "private void handleWritable(@NotNull SelectionKey selectionKey) throws IOException {\n logger.debug(\"handling writable\");\n Writer writer = (Writer) selectionKey.attachment();\n try {\n writer.sendMessage();\n if (writer.isCompleted()) {\n logger.debug(\"Writer wrote message\");\n\n selectionKey.channel().register(selector, SelectionKey.OP_READ);\n MessageReader reader = new MessageReader((SocketChannel) selectionKey.channel());\n selectionKey.attach(reader);\n }\n } catch (IOException e) {\n writer.close();\n logger.debug(\"Client {} was disconnected\", selectionKey.channel());\n }\n }", "void sendMessage(ChatMessage msg) {\n\t\ttry {\n\t\t\tsOutput.writeObject(msg);\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tdisplay(\"Não foi possível enviar a mesagem !!!\");\n\t\t}\n\t}", "public EchoClientHandler()\n {\n String data = \"hello zhang kylin \" ;\n firstMessage = Unpooled.buffer(2914) ;\n firstMessage.writeBytes(data.getBytes()) ;\n }", "private void write(String msg) throws IOException {\n if (connectedSwitch) {\n outStream.writeBytes(msg + \";\");\n outStream.flush();\n } else {\n Log.e(TAG, \"Socket disconnected\");\n }\n }", "@Override\n\tpublic void process(MessageStream<ServerMessage> message)\n\t{\n\t\t\n\t}", "public void write(String message) {\n Log.d(TAG, \"...Data to send: \" + message + \"...\");\n byte[] msgBuffer = message.getBytes();\n try {\n mmOutStream.write(msgBuffer);\n } catch (IOException e) {\n Log.d(TAG, \"...Error data send: \" + e.getMessage() + \"...\");\n }\n }", "public void write(String message) {\n Log.d(TAG, \"...Data to send: \" + message + \"...\");\n byte[] msgBuffer = message.getBytes();\n try {\n mmOutStream.write(msgBuffer);\n } catch (IOException e) {\n Log.d(TAG, \"...Error data send: \" + e.getMessage() + \"...\");\n }\n }", "public void write(String message) {\n\t Log.d(TAG, \"...Данные для отправки: \" + message + \"...\");\n\t byte[] msgBuffer = message.getBytes();\n\t try {\n\t mmOutStream.write(msgBuffer);\n\t } catch (IOException e) {\n\t Log.d(TAG, \"...Ошибка отправки данных: \" + e.getMessage() + \"...\"); \n\t }\n\t }", "@Override\n public void run() {\n FILEPREFIX = \".//files\"+serverID + \"//\";\n ClientMessage = (Message) socketRead();\n ServerMessage = getReturnMessage(ClientMessage);\n //System.out.println(\"client\"+ClientMessage.getFrom()+\"message : \"+ClientMessage.getContent());\n File file = new File(FILEPREFIX + ClientMessage.getFileName());\n switch (ClientMessage.getType()){\n case \"enquiry\"://return the list of file\n ServerMessage.setContent(ListAllFile());\n break;\n case \"read\"://read the last line\n System.out.println(ClientMessage.getFrom() + \": Reading...\");\n ServerMessage.setContent(\"Reading: \"+ReadLastLine(file));\n System.out.println(\"Reading \"+ClientMessage.getContent());\n break;\n case \"write\"://write to the end of file\n System.out.println(ClientMessage.getFrom() + \": writing...\");\n try{\n WriteLastLine(file,ClientMessage.getContent());\n }catch (IOException e) {\n System.out.println(\"write error\");\n }\n\n ServerMessage.setContent(\"writing: \"+ReadLastLine(file));\n System.out.println(\"Writing \"+ClientMessage.getContent());\n break;\n default://unknown command\n System.out.println(ClientMessage.getType());\n ServerMessage.setContent(\"Error\");\n System.out.println(ClientMessage.getFrom() + \": Wrong type\");\n break;\n }\n socketWrite(ServerMessage);\n\n try {//close the socket connection\n client.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "protected void handlerAdded0(ChannelHandlerContext ctx) throws Exception {}", "@Override\n\tpublic void sendMessage() {\n\t\t\n\t}", "public interface WriteOnlyChannel {\n /**\n * Write message packet\n * @param data message packet\n * @return True if success ele False\n */\n boolean write(byte[] data );\n}", "abstract public Object handleMessage(Object message) throws Exception;", "@Override\n public void send(String message) {\n\n out.println(message);\n out.flush();\n\n }", "public interface GameChatWriter {\n\t/**\n\t * Responds with a direct message.\n\t *\n\t * @param response the message to send\n\t * @param cause the event that caused the reaction\n\t */\n\tvoid message(String response, GameChatEvent cause) throws InterruptedException, IOException;\n\n\t/**\n\t * Responds with an \"action\", a special kind of direct message.\n\t *\n\t * @param response the action to send\n\t * @param cause the event that caused the reaction\n\t */\n\tvoid action(String response, GameChatEvent cause) throws InterruptedException, IOException;\n}", "@Override\n\tpublic void onMessage(Object arg0) {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tMessage msg = new Message();\n\t\t\t\t\tmsg.what = 100;\n\t\t\t\t\tmsg.obj = split[1]+\",\"+split[2];\n\t\t\t\t\tmHandler.sendMessage(msg);\n\t\t\t\t}", "private void writeMessageInDataFile(String message){\n try {\n String messageToWrite = \"\\n\" + this + message;\n messagesManager.add(messageToWrite); // adds last message to last 15 messages queue\n Files.write(Paths.get(\"messages.txt\"), messageToWrite.getBytes(), StandardOpenOption.APPEND); // writes last message in messages database\n }catch (IOException e) {\n System.err.println(\"*** ERROR ***\\nCouldn't write in data file.\");\n }\n }", "public interface MessageHandler {\n void onMessage(final byte messageType, final int messageId, final byte[] buffer, final int startIndex, final int length);\n}", "public void writeMessages () {\n try {\n ByteBuffer frame;\n while ((frame = _outq.peek()) != null) {\n // if we've been closed, stop trying to write\n if (!_chan.isOpen()) return;\n _chan.write(frame);\n if (frame.remaining() > 0) {\n // partial write, requeue ourselves and finish the job later\n _cmgr.requeueWriter(this);\n return;\n }\n _outq.poll(); // remove fully written frame\n }\n\n } catch (NotYetConnectedException nyce) {\n // this means that our async connection is not quite complete, just requeue ourselves\n // and try again later\n _cmgr.requeueWriter(this);\n\n } catch (IOException ioe) {\n // because we may still be lingering in the connection manager's writable queue, clear\n // out our outgoing queue so that any final calls to writeMessages NOOP\n _outq.clear();\n // now let the usual suspects know that we failed\n _input.onSendError(ioe);\n onClose(ioe);\n }\n }", "@Override\n\tpublic void messageSent(NextFilter nextFilter, IoSession session, WriteRequest writeRequest) throws Exception {\n\t\tnextFilter.messageSent(session, writeRequest);\n\t}", "protected void writeWrite ()\n {\n stream.println (\" public void _write (org.omg.CORBA.portable.OutputStream o)\");\n stream.println (\" {\");\n if (entry instanceof ValueBoxEntry)\n {\n TypedefEntry member = ((InterfaceState) ((ValueBoxEntry) entry).state ().elementAt (0)).entry;\n SymtabEntry mType = member.type ();\n if (mType instanceof StringEntry)\n stream.println (\" o.write_string (value);\");\n\n else if (mType instanceof PrimitiveEntry)\n {\n String name = entry.name ();\n stream.println (\" \" + name + \" vb = new \" + name + \" (value);\");\n stream.println (\" \" + helperClass + \".write (o, vb);\");\n }\n\n else\n stream.println (\" \" + helperClass + \".write (o, value);\");\n }\n else\n stream.println (\" \" + helperClass + \".write (o, value);\");\n stream.println (\" }\");\n stream.println ();\n }", "public void WriteMessage(byte[] message)\r\n {\r\n try {\r\n out.write(new Integer(message.length).byteValue());\r\n out.write(message);\r\n out.flush();\r\n }catch (Exception e){\r\n System.out.println(e);\r\n }\r\n }", "private void sendData(String message) {\n\t\t\ttry {\n\t\t\t\toutput.writeObject(message);\n\t\t\t\toutput.flush(); // flush output to client\n\t\t\t} catch (IOException ioException) {\n\t\t\t\tSystem.out.println(\"\\nError writing object\");\n\t\t\t}\n\t\t}", "@Override\r\n\tpublic int write() throws Exception {\n\t\treturn 0;\r\n\t}", "private void write(String command) throws IOException {\n if (connected) {\n try {\n writer.write(command);\n writer.newLine();\n writer.flush();\n } catch (IOException e) {\n System.out.println(\"Could not read from server -> ServerCommunication:write()\");\n System.out.println(e);\n }\n } else {\n throw new IOException(\"Not Connected\");\n }\n }", "private void sendMessage(ChatMessage msg) throws IOException {\n try {\n sOutput.writeObject(msg);\n } catch (IOException e) {\n sOutput.close();\n sInput.close();\n e.printStackTrace();\n }\n //sOutput.flush();\n }", "private void sendToReadHandler(String s) {\n\n Message msg = Message.obtain();\n msg.obj = s;\n readHandler.sendMessage(msg);\n Log.i(TAG, \"[RECV] \" + s);\n }", "private void write(String msg) {\n\t\tIterator<LogListener> listeners = this.eventListeners.iterator();\n\t\twhile (listeners.hasNext()) {\n\t\t\tlisteners.next().writeLog(msg);\n\t\t}\n\t}", "public ChannelFuture writeOneOutbound(Object msg, ChannelPromise promise) {\n/* 432 */ if (checkOpen(true)) {\n/* 433 */ return write(msg, promise);\n/* */ }\n/* 435 */ return checkException(promise);\n/* */ }", "void sendMessage() {\n\n\t}", "@Override\n\tpublic void processMessage(Message message) {\n\t\t\n\t}", "private void handleServerMessage() throws IOException {\n System.out.println(\"Handeling message for \" + id + \" with type: \" + sm.getType().toString());\n switch (sm.getType()) {\n case REGISTER:\n registrationLoginHandler.register(sm, output);\n break;\n case LOGIN:\n this.user = registrationLoginHandler.login(sm, output);\n break;\n case BOOT:\n bootHandler.boot(user, output);\n break;\n case ADD_CONTACT:\n contactHandler.addContact(sm, user, output);\n handleAddContact();\n break;\n case REMOVE_CONTACT:\n break;\n case UPDATE_NICKNAME:\n break;\n case UPDATE_STATUS:\n break;\n case UPDATE_PROFILE_PIC:\n break;\n case CLIENT_DISCONNECT:\n keepGoing = false;\n close();\n server.remove(id);\n break;\n }\n }", "public void write(String message) {\n System.out.println(\"Sent \" + message + \" to client \" + client + \".\");\n out.println(message);\n }", "private void sendMessage(ChatMessage msg) {\n try {\n sOutput.writeObject(msg);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "abstract void onMessage(byte[] message);", "public void onMessage(Session session, Object message) throws IOException {\n\t}", "public int write(byte[] buffer) {\n router.write(buffer, Constants.MESSAGE_ALL, null);\n return Constants.SUCCESS;\n }", "@Override\n\t\tpublic void write(byte[] buffer) throws IOException {\n\t\t\t// TODO Auto-generated method stub\n\t\t\tout.write(buffer);\n\t\t\tamount+=buffer.length;\n\t\t\tthis.listener.AmountTransferred(amount);\n\t\t}", "@Override\r\n\tpublic void sendMessage(String message) {\n\t\t\r\n\t}", "@Override\n public void handleMessage(Message msg) {\n System.out.println(\"recibe mensajes ...\");\n System.out.println(msg.obj);\n }", "@Override\n public void run() {\n Message message = mHandler.obtainMessage(1);\n mHandler.sendMessage(message);\n }", "@Override\n\tpublic void accept(MessageHandlerVisitor visitor) {\n\n\t\tvisitor.visit(this, null, null, null);\n\t}", "@SuppressWarnings(\"SameReturnValue\")\n private void writeVoid(@NotNull Consumer<BytesChronicleMap> process) {\n\n if (bytesChronicleMap == null) {\n LOG.error(\"no map for channelId.\");\n return;\n }\n\n\n try {\n outWire.bytes().mark();\n process.accept(bytesChronicleMap);\n\n } catch (Exception e) {\n outWire.writeDocument(false, out -> {\n // bytes.reset();\n // the idea of wire is that is platform independent,\n // so we wil have to send the exception as a String\n outWire.bytes().reset();\n out.write(reply)\n .type(e.getClass().getSimpleName())\n .writeValue().text(e.getMessage());\n LOG.error(\"\", e);\n });\n }\n\n\n }", "private void treatWrite(SelectionKey key) throws IOException\n {\n EventHandler attach = (EventHandler) key.attachment();\n attach.processWrite(key);\n }", "@Override\n public void run(){\n int status = 0;\n try{\n FileWriter writer = new FileWriter(file);\n writer.append(data);\n writer.flush();\n writer.close();\n Log.d(\"MainActivity\",\"File saved to \"+file.getAbsolutePath());\n //Log.v(\"DataActivity\", data);\n status = 1;\n }catch (IOException e){\n Log.e(\"Exception\", \"File write failed: \" + e.toString());\n }\n Message msg = new Message();\n msg.what = status;\n msg.obj = file.getAbsolutePath();\n msg.arg1 = type;\n Log.d(\"File\", file.getAbsolutePath());\n if (writeToFileHandler != null){\n writeToFileHandler.sendMessage(msg);\n }\n }", "public interface OnBluetoothWriteListener {\n\t\tvoid onWrite();\n\t}", "public void writeChatServerMessage(String message) {\n\t\tSystem.out.println(\"WRITING \" + message);\n\t\tif(m_chatSession != null)\n\t\t\tm_chatSession.write(message);\n\t}", "public abstract void message();" ]
[ "0.7009702", "0.69228053", "0.6837062", "0.6827622", "0.66970307", "0.66810924", "0.6619897", "0.6617286", "0.65846646", "0.6502596", "0.64891887", "0.64785326", "0.64583904", "0.6447227", "0.6441881", "0.6438981", "0.6394632", "0.6384914", "0.6375571", "0.6360822", "0.6359707", "0.6354882", "0.6353257", "0.6350049", "0.63498545", "0.63157856", "0.63134116", "0.62966144", "0.628507", "0.6267771", "0.62621105", "0.6248362", "0.6239456", "0.62392086", "0.6210502", "0.61841697", "0.6161873", "0.61568946", "0.61540824", "0.6145036", "0.61439115", "0.6141014", "0.61323", "0.61321807", "0.6103747", "0.6093322", "0.60662216", "0.6057132", "0.604751", "0.60299236", "0.6022395", "0.6011618", "0.59877646", "0.59813696", "0.597615", "0.5974353", "0.5970808", "0.5970808", "0.5957171", "0.59496784", "0.59460384", "0.59421355", "0.593011", "0.5919361", "0.59150517", "0.5914681", "0.59122074", "0.59098125", "0.5907473", "0.5903707", "0.58883286", "0.5886921", "0.5883402", "0.5871261", "0.58700347", "0.58698654", "0.5868196", "0.5863142", "0.58475536", "0.58443946", "0.5843875", "0.58417743", "0.5838239", "0.5826086", "0.5817531", "0.5816102", "0.5809828", "0.57976776", "0.57887596", "0.5785075", "0.57818186", "0.5778019", "0.5772165", "0.5771888", "0.57676715", "0.57674265", "0.5761327", "0.57600427", "0.5750651", "0.57496995" ]
0.68432426
2
Message Handler ( device name )
private void execHandlerDevice( Message msg ) { // get the connected device's name String name = msg.getData().getString( BUNDLE_DEVICE_NAME ); log_d( "EventDevice " + name ); hideButtonConnect(); String str = getTitleConnected( name ); showTitle( str ); toast_short( str ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getDeviceName();", "public String getDeviceName(){\n\t return deviceName;\n }", "public String getDeviceName() {\r\n return name_;\r\n }", "void onConnectedAsServer(String deviceName);", "@Override\n public void onDeviceNameChange(BluetoothDevice device, String name) {\n Log.d(TAG, \"[onDeviceNameChange] device : \" + device.getAddress()\n + \", name : \" + name);\n// sendHandlerMessage(UPDATE_UI_FLAG, 0);\n updateScanDialog(UPDATE_UI_FLAG, device);\n }", "public String getDeviceName(){\n\t\treturn deviceName;\n\t}", "java.lang.String getDeviceId();", "public String getName() {\n\t\treturn \"Device\";\r\n\t}", "public org.thethingsnetwork.management.proto.HandlerOuterClass.Device getDevice(org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceIdentifier request);", "void onDeviceSelected(String address);", "@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tprocessBluetoothDeviceMessage(msg);\n\t\t\t}", "private String getDeviceName() {\n String permission = \"android.permission.BLUETOOTH\";\n int res = context.checkCallingOrSelfPermission(permission);\n if (res == PackageManager.PERMISSION_GRANTED) {\n try {\n BluetoothAdapter myDevice = BluetoothAdapter.getDefaultAdapter();\n if (myDevice != null) {\n return myDevice.getName();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return \"Unknown\";\n }", "@Override\n\t\tpublic void onDeviceEventReceived(DeviceEvent ev, String client) {\n\t\t\t\n\t\t}", "public String getName()\r\n/* 23: */ {\r\n/* 24:20 */ return \"Wire demo receiver\";\r\n/* 25: */ }", "String getDeviceName() {\n return deviceName;\n }", "public String getDeviceName() {\n return deviceName;\n }", "public String getDeviceName() {\n return deviceName;\n }", "public void setDeviceName(String argDeviceName) {\n\t deviceName = argDeviceName;\n }", "@Override\r\n public void onDeviceDescription(GenericDevice dev, PDeviceHolder devh,\r\n String desc) {\n\r\n }", "public static String getDeviceName(){\n BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\r\n if (bluetoothAdapter == null){\r\n return \"\";\r\n }else{\r\n String deviceName = bluetoothAdapter.getName();\r\n return deviceName;\r\n }\r\n }", "public String getDeviceName() {\n\t\treturn deviceName;\n\t}", "public String getDeviceName() {\n return mUsbDevice.getDeviceName();\n }", "public void OnMessageReceived(String msg);", "public String getDevice() {\r\n return device;\r\n }", "@Override\n public String getDeviceName() {\n return null;\n }", "@Override\n\tpublic String getDeviceName() {\n\t\treturn null;\n\t}", "public String getMyDeviceName() {\n return bluetoothName;\n }", "abstract protected void setDeviceName(String deviceName);", "void handlePacket(String devReplyStr);", "@Override\n public void onDataRead(String deviceName, String data)\n {\n mTruconnectHandler.onRead(data);\n mTruconnectCallbacks.onDataRead(data);\n }", "public String getDeviceName() {\n return this.deviceName;\n }", "public abstract String getPeripheralStaticName();", "public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.Device> getDevice(\n org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceIdentifier request);", "public void setDeviceName(String deviceName) {\n this.deviceName = deviceName;\n }", "@Override\n\tpublic void SendMessage() {\n\t\tSystem.out.println( phoneName+\"'s SendMessage.\" );\n\t}", "@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tswitch (msg.what) {\n\t\t\t\tcase UDPHelper.HANDLER_MESSAGE_BIND_ERROR:\n\t\t\t\t\tLog.e(\"my\", \"HANDLER_MESSAGE_BIND_ERROR\");\n\t\t\t\t\tT.showShort(mContext, R.string.port_is_occupied);\n\t\t\t\t\tbreak;\n\t\t\t\tcase UDPHelper.HANDLER_MESSAGE_RECEIVE_MSG:\n\t\t\t\t\tisReceive = true;\n\t\t\t\t\tLog.e(\"my\", \"HANDLER_MESSAGE_RECEIVE_MSG\");\n\t\t\t\t\t// NormalDialog successdialog=new NormalDialog(mContext);\n\t\t\t\t\t// successdialog.successDialog();\n\t\t\t\t\tT.showShort(mContext, R.string.set_wifi_success);\n\t\t\t\t\tmHelper.StopListen();\n\t\t\t\t\tBundle bundle = msg.getData();\n\t\t\t\t\t\n\t\t\t\t\tIntent it = new Intent();\n\t\t\t\t\tit.setAction(Constants.Action.RADAR_SET_WIFI_SUCCESS);\n\t\t\t\t\tsendBroadcast(it);\n\t\t\t\t\tFList flist = FList.getInstance();\n\t\t\t\t\tflist.updateOnlineState();\n\t\t\t\t\tflist.searchLocalDevice();\n\n\t\t\t\t\tString contactId = bundle.getString(\"contactId\");\n\t\t\t\t\tString frag = bundle.getString(\"frag\");\n\t\t\t\t\tString ipFlag = bundle.getString(\"ipFlag\");\n\t\t\t\t\tContact saveContact = new Contact();\n\t\t\t\t\tsaveContact.contactId = contactId;\n\t\t\t\t\tsaveContact.activeUser = NpcCommon.mThreeNum;\n\t\t\t\t\tIntent add_device = new Intent(mContext,\n\t\t\t\t\t\t\tAddContactNextActivity.class);\n\t\t\t\t\tadd_device.putExtra(\"contact\", saveContact);\n\t\t\t\t\tif (Integer.parseInt(frag) == Constants.DeviceFlag.UNSET_PASSWORD) {\n\t\t\t\t\t\tadd_device.putExtra(\"isCreatePassword\", true);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tadd_device.putExtra(\"isCreatePassword\", false);\n\t\t\t\t\t}\n\t\t\t\t\tadd_device.putExtra(\"isfactory\", true);\n\t\t\t\t\tadd_device.putExtra(\"ipFlag\", ipFlag);\n\t\t\t\t\tstartActivity(add_device);\n\t\t\t\t\t// Intent modify = new Intent();\n\t\t\t\t\t// modify.setClass(mContext, LocalDeviceListActivity.class);\n\t\t\t\t\t// mContext.startActivity(modify);\n\t\t\t\t\tfinish();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcancleTimer();\n\t\t\t}", "public void setDeviceName(String dn) {\r\n \tthis.deviceName = dn;\r\n }", "public String deviceName() {\n\t\t String manufacturer = Build.MANUFACTURER;\n\t\t String model = Build.MODEL;\n\t\t if (model.startsWith(manufacturer)) {\n\t\t return capitalize(model);\n\t\t } else {\n\t\t return capitalize(manufacturer) + \" \" + model;\n\t\t }\n\t\t}", "String getReceiver();", "void setDeviceName(String newDeviceName) {\n deviceName = newDeviceName;\n }", "public void processMessage(DeviceMateMessage m);", "private void sendHelloMessage(String uName){\n HelloMessage hello = new HelloMessage(uName);\n ni.performSendHello(hello);\n Logger.log(\"Sending Hello to everyone \");\n\n }", "@Override\n public void onDeviceFound(BluetoothDevice device) {\n writeLine(\"Found device: \" + device.getAddress());\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase SearchBluetoothActivity.DEVICE_DISCOVERIED:\n\t\t\t\tbdApdater.notifyDataSetChanged();\n\t\t\t\tToast.makeText(SearchBluetoothActivity.this, \"发现新设备:\" + devices.get(devices.size() - 1).getName(),\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\tcase SearchBluetoothActivity.FINISH_DISCOVERIED:\n\t\t\t\tbt_searchBluetooth_searchBluetooth.setText(getResources().getString(R.string.bt_search_bluetooth_text));\n\t\t\t\tbreak;\n\t\t\tcase SearchBluetoothActivity.REFRESH_LISTVIEW:\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "@Override\r\n public void handleMessage(Message message) \r\n {\r\n switch (message.what) \r\n {\r\n case BlueToothService.MESSAGE_REMOTE_CODE:\r\n Utilities.popToast (\"MESSAGE_REMOTE_CODE : \" + message.obj);\r\n break;\r\n case BlueToothService.MESSAGE_REQUEST:\r\n Utilities.popToast (\"MESSAGE_REQUEST : \" + message.obj);\r\n break;\r\n default:\r\n super.handleMessage(message);\r\n }\r\n }", "@Override\r\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\r\n switch(msg.what){\r\n case baglanti:\r\n\r\n ConnectedThread connectedThread = new ConnectedThread((BluetoothSocket)msg.obj);\r\n Toast.makeText(getApplicationContext(), \"Baglandi\",Toast.LENGTH_LONG).show();\r\n String s = \"successfully connected\";\r\n break;\r\n case mesajoku:\r\n byte[] readBuf = (byte[])msg.obj;\r\n String string = new String(readBuf);\r\n Toast.makeText(getApplicationContext(), string, Toast.LENGTH_LONG).show();\r\n break;\r\n }\r\n }", "public String getRingerDevice();", "public String getName() {\n\t return this.device.getName() + \".\" + this.getType() + \".\"\n\t + this.getId();\n\t}", "@OnMessage\r\n public String helloMessage(String name) {\r\n return \"Hello \" + name + \" (from your server).\";\r\n }", "private void execHandlerConnected( Message msg ) {\t\n\t\t// save Device Address\n\t\tif ( mBluetoothService != null ) {\n\t\t\tString address = mBluetoothService.getDeviceAddress();\n\t\t\tsetPrefAddress( address );\n\t\t}\t\n\t\tshowTitleConnected( getDeviceName() );\n\t\thideButtonConnect();\n\t}", "@DSSink({DSSinkKind.SENSITIVE_UNCATEGORIZED})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.516 -0500\", hash_original_method = \"C8C31043DDFE26EC3BE146F1B2B418E3\", hash_generated_method = \"4278121A770EE39DDEB6E37D007DBBC8\")\n \npublic void sendMessage(int what) {\n Message msg = Message.obtain();\n msg.what = what;\n sendMessage(msg);\n }", "public interface Message {\n Device getTargetDevice();\n Device getSourceDevice();\n}", "protected void onPrivateMessage(String sender, String login, String hostname, String message) {}", "public void driverBaseDataReceivedProxy(PeripheralHardwareDataEvent oEvent);", "public void onDeviceConnected(String name, String address) {\n btButton.setText(\"Connected\");\n }", "@Override\n public void onDnsSdServiceAvailable(String instanceName, String registrationType, WifiP2pDevice sourceDevice) {\n Log.i(TAG, \"BonjourServiceAvailable: \\ninstanceName: \" + instanceName + \"\\n \" + sourceDevice.toString());\n }", "UUID getDeviceId();", "@Override\n public void onEmulatorMessage(int msg_type, ByteBuffer msg_data) {\n switch (msg_type) {\n case ProtocolConstants.SENSORS_START:\n Log.v(TAG, \"Starting sensors emulation.\");\n startSensors();\n break;\n case ProtocolConstants.SENSORS_STOP:\n Log.v(TAG, \"Stopping sensors emulation.\");\n stopSensors();\n break;\n case ProtocolConstants.SENSORS_ENABLE:\n String enable_name = new String(msg_data.array());\n Log.v(TAG, \"Enabling sensor: \" + enable_name);\n onEnableSensor(enable_name);\n break;\n case ProtocolConstants.SENSORS_DISABLE:\n String disable_name = new String(msg_data.array());\n Log.v(TAG, \"Disabling sensor: \" + disable_name);\n onDisableSensor(disable_name);\n break;\n default:\n Loge(\"Unknown message type \" + msg_type);\n break;\n }\n }", "void receivedDisplayName(String name, String displayName);", "public void setDeviceName(String deviceName) {\n\t\tthis.deviceName = deviceName;\n\t}", "String getSender();", "@Override\n\tpublic void onMessage(Object arg0) {\n\t\t\n\t}", "public com.google.protobuf.Empty setDevice(org.thethingsnetwork.management.proto.HandlerOuterClass.Device request);", "@Override\n public void onMessageReceived(MessageEvent messageEvent) {\n String path=messageEvent.getPath();\n Toast.makeText(this,\"Mensaje Recibido\",Toast.LENGTH_SHORT).show();\n this.controller.ControlKIT(path);\n\n }", "public interface ITransportHandler {\n\n /**\n * Processing device returned messages\n * \n * @author\n * @param devReplyStr Message information returned by the device\n */\n void handlePacket(String devReplyStr);\n\n /**\n * Error information processing apparatus returns <br>\n * \n * @author\n * @param devReplyErr Error messages returned by the device\n */\n void handleError(String devReplyErr);\n\n /**\n * Device interaction with the end of the glyph packets <br>\n * \n * @author\n * @return End glyph packets\n */\n String getPacketEndTag();\n\n /**\n * Encoding packets\n * \n * @author\n * @return Encoding packets\n */\n String getCharsetName();\n\n}", "private void execServiceHandler( Message msg ) {\n \tswitch ( msg.what ) {\n\t\t\tcase BluetoothService.WHAT_READ:\n\t\t\t\texecHandlerRead( msg );\n break;\n case BluetoothService.WHAT_WRITE:\n\t\t\t\texecHandlerWrite( msg );\n break;\n\t\t\tcase BluetoothService.WHAT_STATE_CHANGE:\n\t\t\t\texecHandlerChange( msg );\n break;\n case BluetoothService.WHAT_DEVICE_NAME:\n\t\t\t\texecHandlerDevice( msg );\n break;\n case BluetoothService.WHAT_FAILED:\n\t\t\t\texecHandlerFailed( msg );\n break;\n\t\t\tcase BluetoothService.WHAT_LOST:\n\t\t\t\texecHandlerLost( msg );\n break;\n }\n\t}", "private String getUserConfiguredDeviceName() {\n\t\tString nameFromSystemDevice = Settings.Secure.getString(getContentResolver(), \"device_name\");\n\t\tif (!isEmpty(nameFromSystemDevice)) return nameFromSystemDevice;\n\t\treturn null;\n\t}", "@Override\n\t\t\tpublic void onOne(String message) {\n\t\t\t\tSystem.out.println(\"One: \"+message);\n\t\t\t}", "public boolean handleDeviceData(Device device, DeviceCommandRequest request) throws IOException;", "public String getDeviceid() {\n return deviceid;\n }", "public static String getDeviceName() {\n\t\t\tString manufacturer = Build.MANUFACTURER;\n\t\t\tString model = Build.MODEL;\n\t\t\tif (model.startsWith(manufacturer)) {\n\t\t\t\treturn capitalize(model);\n\t\t\t}\n\t\t\treturn capitalize(manufacturer) + \" \" + model;\n\t\t}", "public void onGetName(String user,String name);", "public void setDevice(String device) {\r\n this.device = device;\r\n }", "public static String getDeviceName() {\n String manufacturer = Build.MANUFACTURER;\n String model = Build.MODEL;\n if (model.startsWith(manufacturer)) {\n return capitalize(model);\n } else {\n return capitalize(manufacturer) + \" \" + model;\n }\n }", "public static String getDeviceName() {\n String manufacturer = Build.MANUFACTURER;\n String model = Build.MODEL;\n if (model.startsWith(manufacturer)) {\n return capitalize(model);\n } else {\n return capitalize(manufacturer) + \" \" + model;\n }\n }", "public static String getDeviceName() {\n String manufacturer = Build.MANUFACTURER;\n String model = Build.MODEL;\n if (model.startsWith(manufacturer)) {\n return capitalize(model);\n }\n return capitalize(manufacturer) + \" \" + model;\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase 0:\n\t\t\t\ttv_read.setText(msg.obj.toString());\n\t\t\t\tToast.makeText(N20PINPadControllerActivity.this, \"recv\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "@Override\n\tpublic void onMessage(String arg0, String arg1) {\n\t\tSystem.out.print(arg0+arg1);\n\t}", "@Override\n public void run() {\n Message message = new Message();\n message.what = 4;\n handler.sendMessage(message);\n }", "public String getDeviceNameForMacro() {\r\n String name = getDeviceName();\r\n\r\n if(name.startsWith(\"PIC32\")) {\r\n return name.substring(3); // \"32MX795F512L\"\r\n } else if(name.startsWith(\"ATSAM\")) {\r\n return name.substring(2); // \"SAME70Q21\"\r\n } else {\r\n return name;\r\n }\r\n }", "@Override\n\tpublic void send(Message event) {\n\t\t// read and parse heyOOCSI message\n\t\tif (event.getRecipient().equals(\"heyOOCSI!\")) {\n\t\t\tsynchronized (clients) {\n\t\t\t\tevent.data.forEach((k, v) -> {\n\t\t\t\t\tif (v instanceof ObjectNode) {\n\t\t\t\t\t\tObjectNode on = ((ObjectNode) v);\n\n\t\t\t\t\t\t// seems we have an object, let's parse it\n\t\t\t\t\t\tOOCSIDevice od = new OOCSIDevice();\n\t\t\t\t\t\tod.name = k;\n\t\t\t\t\t\tod.deviceId = on.at(\"/properties/device_id\").asText(\"\");\n\t\t\t\t\t\ton.at(\"/components\").fields().forEachRemaining(e -> {\n\t\t\t\t\t\t\tDeviceEntity dc = new DeviceEntity();\n\t\t\t\t\t\t\tdc.name = e.getKey();\n\t\t\t\t\t\t\tJsonNode value = e.getValue();\n\t\t\t\t\t\t\tdc.channel = value.get(\"channel_name\").asText(\"\");\n\t\t\t\t\t\t\tdc.type = value.get(\"type\").asText(\"\");\n\t\t\t\t\t\t\tdc.icon = value.get(\"icon\").asText(\"\");\n\t\t\t\t\t\t\t// retrieve default value or state which are mutually exclusive\n\t\t\t\t\t\t\tif (value.has(\"value\")) {\n\t\t\t\t\t\t\t\tdc.value = value.get(\"value\").asText();\n\t\t\t\t\t\t\t} else if (value.has(\"state\")) {\n\t\t\t\t\t\t\t\tdc.value = value.get(\"state\").asText();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tod.components.add(dc);\n\t\t\t\t\t\t});\n\t\t\t\t\t\ton.at(\"/location\").fields().forEachRemaining(e -> {\n\t\t\t\t\t\t\tif (e.getValue().isArray()) {\n\t\t\t\t\t\t\t\tFloat[] locationComponents = new Float[2];\n\t\t\t\t\t\t\t\tlocationComponents[0] = new Float(((ArrayNode) e.getValue()).get(0).asDouble());\n\t\t\t\t\t\t\t\tlocationComponents[1] = new Float(((ArrayNode) e.getValue()).get(1).asDouble());\n\t\t\t\t\t\t\t\tod.locations.put(e.getKey(), locationComponents);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\ton.at(\"/properties\").fields().forEachRemaining(e -> {\n\t\t\t\t\t\t\tod.properties.put(e.getKey(), e.getValue().asText());\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\t// check contents of device\n\n\t\t\t\t\t\t// then add to clients\n\t\t\t\t\t\tclients.put(k, od);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t} else {\n\t\t\tif (event.data.containsKey(\"clientHandle\")) {\n\t\t\t\tString clientHandle = (String) event.data.get(\"clientHandle\");\n\t\t\t\tif (clients.containsKey(clientHandle)) {\n\t\t\t\t\tOOCSIDevice od = clients.get(clientHandle);\n\t\t\t\t\tClient c = server.getClient(event.getSender());\n\t\t\t\t\tif (c != null) {\n\t\t\t\t\t\tc.send(new Message(token, event.getSender()).addData(\"clientHandle\", clientHandle)\n\t\t\t\t\t\t .addData(\"location\", od.serializeLocations())\n\t\t\t\t\t\t .addData(\"components\", od.serializeComponents())\n\t\t\t\t\t\t .addData(\"properties\", od.serializeProperties()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (event.data.containsKey(\"x\") && event.data.containsKey(\"y\")\n\t\t\t && event.data.containsKey(\"distance\")) {\n\t\t\t\ttry {\n\t\t\t\t\tfinal float x = ((Number) event.data.get(\"x\")).floatValue();\n\t\t\t\t\tfinal float y = ((Number) event.data.get(\"y\")).floatValue();\n\t\t\t\t\tfinal float distance = ((Number) event.data.get(\"distance\")).floatValue();\n\n\t\t\t\t\t// check if we need to truncate the client list, according to the \"n closest clients\"\n\t\t\t\t\tfinal int closest;\n\t\t\t\t\tif (event.data.containsKey(\"closest\")) {\n\t\t\t\t\t\tclosest = ((Number) event.data.get(\"closest\")).intValue();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tclosest = 100;\n\t\t\t\t\t}\n\n\t\t\t\t\t// build list of all client within given distance\n\t\t\t\t\tMap<Double, String> clientNames = new HashMap<>();\n\t\t\t\t\tclients.values().stream().forEach(od -> {\n\t\t\t\t\t\tod.locations.entrySet().forEach(loc -> {\n\t\t\t\t\t\t\tFloat[] location = loc.getValue();\n\t\t\t\t\t\t\tdouble dist = Math.hypot(Math.abs(location[0] - x), Math.abs(location[1] - y));\n\t\t\t\t\t\t\tif (dist < distance) {\n\t\t\t\t\t\t\t\tclientNames.put(dist, od.deviceId);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\n\t\t\t\t\t// create sorted list of clients, potentially truncated by \"closest\"\n\t\t\t\t\tList<String> cns = clientNames.entrySet().stream().sorted(Map.Entry.comparingByKey()).limit(closest)\n\t\t\t\t\t .map(e -> e.getValue()).collect(Collectors.toList());\n\n\t\t\t\t\t// assemble the clients within distance from reference point and send back\n\t\t\t\t\tClient c = server.getClient(event.getSender());\n\t\t\t\t\tif (c != null) {\n\t\t\t\t\t\tc.send(new Message(token, event.getSender()).addData(\"x\", x).addData(\"y\", y)\n\t\t\t\t\t\t .addData(\"distance\", distance).addData(\"clients\", cns.toArray(new String[] {})));\n\t\t\t\t\t}\n\t\t\t\t} catch (NumberFormatException | ClassCastException e) {\n\t\t\t\t\t// could not parse the coordinates or distance, do nothing\n\t\t\t\t}\n\t\t\t} else if (event.data.containsKey(\"location\")) {\n\t\t\t\tString location = ((String) event.data.get(\"location\")).trim();\n\t\t\t\tSet<String> clientNames = new HashSet<>();\n\t\t\t\tclients.values().stream().forEach(od -> {\n\t\t\t\t\tod.locations.keySet().forEach(loc -> {\n\t\t\t\t\t\tif (loc.equalsIgnoreCase(location)) {\n\t\t\t\t\t\t\tclientNames.add(od.deviceId);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t});\n\n\t\t\t\t// assemble the clients within given location and send back\n\t\t\t\tClient c = server.getClient(event.getSender());\n\t\t\t\tif (c != null) {\n\t\t\t\t\tc.send(new Message(token, event.getSender()).addData(\"location\", location).addData(\"clients\",\n\t\t\t\t\t clientNames.toArray(new String[] {})));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected final String getManufacturerName() {\n return device.getManufacturerName();\n }", "public void onPickDevice(ConnectDevice device);", "public void handle(int ID, Object message){}", "private void sendToReadHandler(String s) {\n\n Message msg = Message.obtain();\n msg.obj = s;\n readHandler.sendMessage(msg);\n Log.i(TAG, \"[RECV] \" + s);\n }", "public String readDeviceSN(){\r\n return mFactoryBurnUtil.readDeviceSN();\r\n }", "@Override\n public int getDeviceId() {\n return 0;\n }", "public interface OnDeviceSelectedListener {\n\n /**\n * Method used to send the address of a selected bluetooth device.\n * @param address the MAC address of the bluetooth device.\n */\n void onDeviceSelected(String address);\n}", "protected void onMessage(String channel, String sender, String login, String realName, String message) {}", "public void getDevice(org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceIdentifier request,\n io.grpc.stub.StreamObserver<org.thethingsnetwork.management.proto.HandlerOuterClass.Device> responseObserver);", "@Override\n public void run() {\n Handler temp = getHandler();\n Scanner scanner = temp.getScanner();\n temp.getGameServer().sendMsg(\"yek nafar ra entekhab konid :(tanha yek payam baraye Mafia) \" +\n temp.getGameServer().getNames().toString(), temp);\n String msg = scanner.nextLine().strip();\n temp.getGameServer().sendMsgToMafia(temp.getName() + \" : \" + msg, temp);\n System.out.println(msg + \"<------\" + toString());\n }", "private void handleMessageBluetooth(Message msg) {\n\t\tToaster.doToastShort(context, \"Handle Bluetooth Mesage\");\n\t}", "public void mo1611c() {\r\n Message.obtain(this.f4603a.f4598n, 6, null).sendToTarget();\r\n }", "public static void main(String[] args) {\n String s = getUSBName();\n System.out.println(s);\n\t}", "@Override\n public void handleMessage(Message msg){\n switch (msg.what) {\n case PSensor.MESSAGE_STATE_CHANGE:\n break;\n case PSensor.MESSAGE_WRITE:\n break;\n case PSensor.MESSAGE_READ:\n PSensor.sensorData.parseInput((byte[])msg.obj);//parseInput((byte[])msg.obj);\n multiGauge.handleSensor(PSensor.sensorData.boost);\n multiGaugeVolts.handleSensor(PSensor.sensorData.batVolt);\n break;\n case PSensor.MESSAGE_DEVICE_NAME:\n break;\n case PSensor.MESSAGE_TOAST:\n break;\n default:\n break;\n }\n }", "public TrackClientPacketHandler() \n {\n super(Constants.DEVICE_CODE);\n }", "public final String getDeviceId(){\n return peripheralDeviceId;\n }", "private void parseSpecificDevice(final String name,\n final XMLStreamReader reader)\n throws ParsingException, XMLStreamException {\n if (Parameter.valueOf(name.toUpperCase())\n == Parameter.PERIPHERALDEVICE) {\n PeripheralDevice peripheralDevice\n = buildPeripheralDevice(reader);\n getDevices().add(peripheralDevice);\n } else {\n if (Parameter.valueOf(name.toUpperCase())\n == Parameter.INNERDEVICE) {\n InnerDevice innerDevice = buildInnerDevice(reader);\n getDevices().add(innerDevice);\n }\n }\n }", "public void sendMessage(int value, String uname, String msg) {\n\t\t\tif (value == 1) {\n\t\t\t\toutput.println(uname + \" : \" + msg);\n\t\t\t} else if (value == 3) {\n\t\t\t\toutput.println(\"Server: The User \" + msg + \" does not Exis!!\");\n\t\t\t} else if (value == 5) {\n\t\t\t\toutput.println(\"Server: Private Message to yourself!\");\n\t\t\t} else {\n\t\t\t\toutput.println(uname + \"(Private)\" + \" : \" + msg);\n\t\t\t}\n\t\t}", "public String getDeviceId() {\n return this.DeviceId;\n }" ]
[ "0.6871022", "0.67320323", "0.65895236", "0.6550978", "0.6496539", "0.6493788", "0.64606243", "0.64603686", "0.64492935", "0.6358623", "0.6337397", "0.63313717", "0.63198084", "0.63066894", "0.62640357", "0.62614566", "0.6260836", "0.6175647", "0.61551154", "0.6151739", "0.61438996", "0.6139165", "0.60495275", "0.60319203", "0.59975487", "0.59956497", "0.5985298", "0.5984006", "0.5920497", "0.5919137", "0.58980256", "0.58926725", "0.5889153", "0.5863639", "0.58631295", "0.584885", "0.58295745", "0.5820254", "0.5812292", "0.57968175", "0.5781589", "0.57802", "0.5767705", "0.5760281", "0.57582074", "0.5754239", "0.57533103", "0.5752646", "0.57488936", "0.57370937", "0.5726184", "0.57183754", "0.57182086", "0.5675209", "0.56444246", "0.5642425", "0.5639165", "0.56356233", "0.56249857", "0.5616135", "0.5610049", "0.5608814", "0.5607145", "0.56061226", "0.56044865", "0.5595577", "0.5593245", "0.5584321", "0.55834687", "0.55802685", "0.55800384", "0.5579927", "0.55727583", "0.5572584", "0.5572584", "0.557046", "0.5558543", "0.55560195", "0.5554279", "0.5553813", "0.5551125", "0.55308497", "0.5528575", "0.55234337", "0.552174", "0.5518597", "0.55159736", "0.55088925", "0.550514", "0.5504343", "0.5502569", "0.5498741", "0.54940873", "0.5470239", "0.54696983", "0.5464285", "0.5458061", "0.5455816", "0.5455101", "0.5451829" ]
0.7931074
0
Message Handler ( failed )
private void execHandlerFailed( Message msg ) { toast_short( mMsgFailed ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void fail(Handle msg) {\n\t\t\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\r\n\t\t\t\t\t\t\tpublic void onFail(String msg) {\n\t\t\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void failed(String message) {\n\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tMessage message = new Message(); \r\n\t\t\t\t\t\tmessage.what = LoginActivity.LOGIN_FAILURE;\r\n\t\t\t\t\t\tLoginActivity.mHandler.sendMessage(message);\r\n\t\t\t\t\t}", "public void onReceivedError();", "protected void handleMessage(Message msg) {}", "@Override\n\t\t\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\t\t\t\t\t\tLog.e(\"ee\", \"失败:\" + arg1);\n\t\t\t\t\t\thandler.sendEmptyMessage(HANDLER_NET_FAILURE);\n\t\t\t\t\t\t// handler.sendEmptyMessage(HANDLER_NET_FAILURE);\n\t\t\t\t\t}", "@Override\n public void OnFailed(String error)\n {\n\n }", "@Override\n\tpublic void onFailed(String status, String msg, Object result) {\n\t\tsuper.onFailed(status, msg, result);\n if(back!=null){\n \t back.fail(status, msg, result);\n\t\t}\n\t}", "@Override\n\tpublic void onFailed(String status, String msg, Object result) {\n\t\tsuper.onFailed(status, msg, result);\n if(back!=null){\n \t back.fail(status, msg, result);\n\t\t}\n\t}", "@Override\n\tpublic void onFailed(String status, String msg, Object result) {\n\t\tsuper.onFailed(status, msg, result);\n if(back!=null){\n \t back.fail(status, msg, result);\n\t\t}\n\t}", "@Override\n\t\t\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\t\t\t\t\t\thandler.sendEmptyMessage(HANDLER_NET_FAILURE);\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\t\t\t\t\t\thandler.sendEmptyMessage(HANDLER_NET_FAILURE);\n\t\t\t\t\t}", "abstract public Object handleMessage(Object message) throws Exception;", "@Override\n\tpublic void error(Message msg) {\n\n\t}", "@Override\n\t\t\tpublic void onFail(int code) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void errorReceived(Exception ex) {\n }", "@Override\n public void errorReceived(Exception ex) {\n }", "@Override\n\t\t\tpublic void onFailure(int code, String msg, Object object) {\n\n\t\t\t}", "public void onFailure();", "@Override\n\t\t\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\t\t\t\t\t\tLog.e(\"ee\", \"失败:\" + arg1);\n\t\t\t\t\t\thandler.sendEmptyMessage(HANDLER_NET_FAILURE);\n\t\t\t\t\t}", "@Override\n\t\tpublic void onFailure(HttpException error, String msg) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase SUCCESS:\n\t\t\t\tmCallback.onSuccess(mTag);\n\t\t\t\tbreak;\n\t\t\tcase FAIL:\n\t\t\t\tmCallback.onFail(mTag);\n\t\t\t}\n\t\t}", "void onFailure() {\n\t}", "@Override\n\t\t\tpublic void handleMessage(Message mesg) {\n\t\t\t\tthrow new RuntimeException();\n\t\t\t}", "@Override\r\n\tpublic void onFail() {\n\t\tif(bSendStatus)\r\n\t\t\tnativeadstatus(E_ONFAIL);\r\n\t}", "public void sendFailed(LinkLayerMessage message) {\n\t\t\n\t}", "@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onRequestFail() {\n\n\t\t\t\t\t\t\t\t\t\t}", "@Override\n\tpublic void error(Object message) {\n\n\t}", "void onFailure();", "void onFailure();", "void onFailure();", "@Override\n public void onFailure() {\n }", "RequestSender onFailure(Consumer<Message> consumer);", "public void onFailure(Throwable caught) {\n\t\t\t\t\n\t\t\t}", "@Override\n \t\t\t\tpublic void onFailure(Throwable caught) {\n \n \t\t\t\t}", "@Override\n public void onFailure(Throwable t) {\n isSucessful.compareAndSet(true, false);\n failedMessages.put(id.getName(), t.getMessage());\n handleIfFinished(t, isSucessful.get());\n }", "@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onFailure(Throwable caught) {\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}", "@Override\r\n public void handleMessage(Message msg) {\n }", "void failed (Exception e);", "public void onFailure(String method, Object data) {\n\t\t\t\t\n\t\t\t}", "public void onFailure(String method, Object data) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void onFailure(int arg0) {\n }", "public void processBlockwiseResponseTransferFailed() {\n //to be overridden by extending classes\n }", "@Override\r\n\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}", "@Override\n public void handleMessage(Message message) {}", "protected abstract void messageReceived(T obj, MyBoxException exception);", "public abstract void msgHandler(Message msg);", "@Override\n\tpublic void error(Message msg, Throwable t) {\n\n\t}", "@Override\r\n\t\t\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\r\n\t\t\t\t\t\t\t\t\t}", "@Override\n\tpublic void processErrorMessage(ProcessErrorMessageObjectEvent e, String message) {\n\t\t\n\t}", "public void onFailure(String arg0) {\n }", "public void onFailure(String arg0) {\n }", "public void onFailure(String arg0) {\n }", "@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\tWindow.alert(\"Failure : \" + caught.getMessage());\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\tWindow.alert(\"Failure : \" + caught.getMessage());\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onFailure(Object o) {\n\t\t\t\t\t}", "private void msgNoServerConnection() {\r\n\thandler.sendEmptyMessage(1); // enviar error al cargar\r\n }", "@Override\r\n \t\t\t\tpublic void onFailure(Throwable caught)\r\n \t\t\t\t{\n \t\t\t\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\r\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\n\t\t\t\t\t\t\t}", "protected void handleFailMessage(Request request, IOException e) {\n\t\tonRequestFailure(request, e);\n\t}", "@Override\n public void onError(int nResult, String MsgData) {\n String nReusl = String.format(\"%02x\", nResult);\n showLogMessage(\"错误提示:\" + nReusl + \":\" + MsgData);\n\n Message updateMessage = mMainMessageHandler.obtainMessage();\n updateMessage.obj = \"\";\n updateMessage.what = 0x94;\n updateMessage.sendToTarget();\n }", "@Override\n\t public void onFailure(Throwable caught) {\n\n\t }", "@Override\n\t\t\t\t\t\tpublic void onFailure(Throwable caught)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t}", "@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t}", "private void execHandlerLost( Message msg ) {\n\t\tshowButtonConnect();\n\t\ttoast_short( mMsgLost );\n\t}", "@Override\n\tpublic void messageBusErrorCallback() {\n\t}", "@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\n\t\t\t\t\t}", "void onFailure(String description);", "@Override\n\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t}", "@Override\n \t\t\tpublic void onFailure(Throwable arg0) {\n \t\t\t\tSystem.err.println(\"***failure:\" + arg0);\n \n \t\t\t}", "public void sendeFehlerHelo();", "@Override\r\n\tpublic void onError(String message) {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void onFailure(Throwable caught) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onFailure(Throwable caught) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onFailure(Throwable caught) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onFailure(Throwable caught) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onFailure(Throwable caught) {\n\r\n\t\t\t}", "@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\n\t\t\t}", "public void handleFailure(AndesMessageMetadata metadata) throws AndesException {\n long messageId = metadata.getMessageID();\n UUID channelId = metadata.getChannelId();\n if(log.isDebugEnabled()) {\n log.debug(\"message was rejected by client id= \" + messageId + \" channel= \" + channelId);\n }\n stampMessageAsRejected(channelId, messageId);\n //re-queue the message to send again\n reQueueMessage(metadata);\n }", "public void handleMessage(Message message);", "@Override\n public void onFailure(Throwable caught) {\n }", "@Override\n public void errorReceived(String msg, Exception t) {\n abort();\n // abort() calls sendError() which calls unregister()\n // so don't bother\n // unregister();\n }", "public abstract void OnError(int code);", "@Override\n\t\tpublic void onFailure(Throwable caught) {\n\t\t}" ]
[ "0.7387288", "0.7349048", "0.7349048", "0.7349048", "0.7238686", "0.7049957", "0.6835187", "0.683199", "0.6730331", "0.6650934", "0.66298693", "0.6629673", "0.6629673", "0.6629673", "0.6626149", "0.6626149", "0.66072965", "0.6579332", "0.6575883", "0.6573652", "0.6573652", "0.6541266", "0.65322304", "0.65279937", "0.65107566", "0.6495885", "0.6464524", "0.64620906", "0.6441876", "0.642956", "0.6413549", "0.6413455", "0.640767", "0.640767", "0.640767", "0.6394868", "0.6389858", "0.63797385", "0.63737816", "0.63687307", "0.6366268", "0.6366268", "0.6366268", "0.6366268", "0.63617206", "0.6356104", "0.6349575", "0.634922", "0.634922", "0.63445485", "0.6341791", "0.633915", "0.6334759", "0.63330567", "0.63309675", "0.6323134", "0.6319705", "0.6312877", "0.63099355", "0.63099355", "0.63099355", "0.6306168", "0.6306168", "0.6297519", "0.6291499", "0.6290224", "0.6287054", "0.6283278", "0.6275663", "0.6275663", "0.62752646", "0.627218", "0.62650514", "0.6263722", "0.625555", "0.62529737", "0.62529737", "0.6248512", "0.6247776", "0.62366736", "0.6233617", "0.62286305", "0.62286305", "0.62254006", "0.62247795", "0.622377", "0.62236273", "0.62236273", "0.62236273", "0.62236273", "0.62236273", "0.6218582", "0.6218582", "0.6218582", "0.6217285", "0.62015826", "0.6199471", "0.61963314", "0.6193944", "0.6191826" ]
0.7916404
0
Message Handler ( lost )
private void execHandlerLost( Message msg ) { showButtonConnect(); toast_short( mMsgLost ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void handleMessage(Message msg) {}", "@Override\r\n public void handleMessage(Message msg) {\n }", "@Override\n public void handleMessage(Message message) {}", "public abstract void msgHandler(Message msg);", "public void handleMessage(Message message);", "@Override\n\tpublic void dispatchHandler(Message msg) {\n\t\t\n\t}", "protected void handlerRemoved0(ChannelHandlerContext ctx) throws Exception {}", "@Override\n public void run() {\n Message message = new Message();\n message.what = 4;\n handler.sendMessage(message);\n }", "@Override\n\tpublic void onMessage(Object arg0) {\n\t\t\n\t}", "abstract public Object handleMessage(Object message) throws Exception;", "@Override\n public void run() {\n Message message = mHandler.obtainMessage(1);\n mHandler.sendMessage(message);\n }", "@Override\n\tpublic void onMessageRecieved(Message arg0) {\n\t\t\n\t}", "@Override\n public void run() {\n Message message = new Message();\n message.what=1;\n handler.sendMessage(message);\n }", "@Override\n\tpublic void handlerRemoved(ChannelHandlerContext ctx) throws Exception {\n\t\tLog.i(\"MySocketHandler\", \"handlerRemoved\");\n\t\tsuper.handlerRemoved(ctx);\n\t}", "@Override\r\n\tpublic boolean handleMessage(Message msg) {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic void msgReceived(Message msg) {\n\n\t}", "public void handleMessage(Message msg) {\n\t\t\tLog.e(\"DownloaderManager \", \"newFrameHandler\");\n\t\t\tMessage msgg = new Message();\n\t\t\tmsgg.what=2;\n\t\t\tmsgg.obj = msg.obj;\n\t\t\t\n\t\t\t_replyTo.sendMessage(msgg);\n\t\t\t\n\t\t\t\n\t\t}", "public void handleMessageEvent(StunMessageEvent e) {\n delegate.handleMessageEvent(e);\n }", "public void handleMessageEvent(StunMessageEvent e) {\n delegate.handleMessageEvent(e);\n }", "public void handleMessageEvent(StunMessageEvent e) {\n delegate.processRequest(e);\n }", "@Override\r\n\tpublic void messageReceived(Object obj) {\n\t\t\r\n\t}", "@Override\r\n\t\tpublic void handleMessage(Message msg) {\n\r\n\t\t\tsuper.handleMessage(msg);\r\n\r\n\t\t\twantToClose = false;\r\n\r\n\t\t}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tisExit = false;\n\t\t}", "@Override\n\tpublic void handlerRemoved(ChannelHandlerContext ctx) throws Exception {\n\t\tSystem.out.println(\"user leave:\" + ctx.name());\n\t}", "@Override\n public void receiveMessageShutdown() {\n \n }", "@Override\n public void handleMessage(Message message) {\n // ...\n // When needed, stop the service with\n // stopSelf();\n }", "public void OnMessageReceived(String msg);", "@Override\n\tpublic void handleMsg(String in) {\n\n\t}", "void onMessageReceived(Message message);", "@Override\n\t\t\tpublic void onEmsgClosedListener() {\n\t\t\t\t\n\t\t\t}", "protected void handlerAdded0(ChannelHandlerContext ctx) throws Exception {}", "public void handle(int ID, Object message){}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\thandler.sendEmptyMessage(0);\n\t\t\t}", "public void onMessage(Message arg0) {\n\r\n\t}", "@Override\n public void handleMessage(Message object) {\n int n = ((Message)object).what;\n int n2 = ((Message)object).arg2;\n if (n == 69632) {\n NsdManager.this.mAsyncChannel.sendMessage(69633);\n return;\n }\n if (n == 69634) {\n NsdManager.this.mConnected.countDown();\n return;\n }\n if (n == 69636) {\n Log.e(TAG, \"Channel lost\");\n return;\n }\n Object object2 = NsdManager.this.mMapLock;\n // MONITORENTER : object2\n Object object3 = NsdManager.this.mListenerMap.get(n2);\n NsdServiceInfo nsdServiceInfo = (NsdServiceInfo)NsdManager.this.mServiceMap.get(n2);\n // MONITOREXIT : object2\n if (object3 == null) {\n object2 = TAG;\n object3 = new StringBuilder();\n ((StringBuilder)object3).append(\"Stale key \");\n ((StringBuilder)object3).append(((Message)object).arg2);\n Log.d((String)object2, ((StringBuilder)object3).toString());\n return;\n }\n switch (n) {\n default: {\n object2 = TAG;\n object3 = new StringBuilder();\n ((StringBuilder)object3).append(\"Ignored \");\n ((StringBuilder)object3).append(object);\n Log.d((String)object2, ((StringBuilder)object3).toString());\n return;\n }\n case 393236: {\n NsdManager.this.removeListener(n2);\n ((ResolveListener)object3).onServiceResolved((NsdServiceInfo)((Message)object).obj);\n return;\n }\n case 393235: {\n NsdManager.this.removeListener(n2);\n ((ResolveListener)object3).onResolveFailed(nsdServiceInfo, ((Message)object).arg1);\n return;\n }\n case 393230: {\n NsdManager.this.removeListener(((Message)object).arg2);\n ((RegistrationListener)object3).onServiceUnregistered(nsdServiceInfo);\n return;\n }\n case 393229: {\n NsdManager.this.removeListener(n2);\n ((RegistrationListener)object3).onUnregistrationFailed(nsdServiceInfo, ((Message)object).arg1);\n return;\n }\n case 393227: {\n ((RegistrationListener)object3).onServiceRegistered((NsdServiceInfo)((Message)object).obj);\n return;\n }\n case 393226: {\n NsdManager.this.removeListener(n2);\n ((RegistrationListener)object3).onRegistrationFailed(nsdServiceInfo, ((Message)object).arg1);\n return;\n }\n case 393224: {\n NsdManager.this.removeListener(n2);\n ((DiscoveryListener)object3).onDiscoveryStopped(NsdManager.getNsdServiceInfoType(nsdServiceInfo));\n return;\n }\n case 393223: {\n NsdManager.this.removeListener(n2);\n ((DiscoveryListener)object3).onStopDiscoveryFailed(NsdManager.getNsdServiceInfoType(nsdServiceInfo), ((Message)object).arg1);\n return;\n }\n case 393221: {\n ((DiscoveryListener)object3).onServiceLost((NsdServiceInfo)((Message)object).obj);\n return;\n }\n case 393220: {\n ((DiscoveryListener)object3).onServiceFound((NsdServiceInfo)((Message)object).obj);\n return;\n }\n case 393219: {\n NsdManager.this.removeListener(n2);\n ((DiscoveryListener)object3).onStartDiscoveryFailed(NsdManager.getNsdServiceInfoType(nsdServiceInfo), ((Message)object).arg1);\n return;\n }\n case 393218: \n }\n object = NsdManager.getNsdServiceInfoType((NsdServiceInfo)((Message)object).obj);\n ((DiscoveryListener)object3).onDiscoveryStarted((String)object);\n }", "@Override\n protected void decode(ChannelHandlerContext ctx, Message msg, List<Object> out) throws Exception \n {\n GameAppContext context = ctx.channel().attr(GameAppContextKey.KEY).get();\n \n // and let the context decide what to do with the message\n context.handleMessage(msg);\n \n // we dont break the cycle here - maybe other handlers sit behind this one\n out.add(msg);\n }", "@Override\n public void onReceive(Object msg) throws Exception {\n }", "public void handleMessageFromClient(Object msg) {\n\n }", "@Override\r\n\tpublic void onMessage(Message rcvMessage) {\n\r\n\t\tObjectMessage msg = null;\r\n\t\ttry {\r\n\r\n\t\t\tLOGGER.warning(\"Inicio\");\r\n\t\t\tThread.sleep(3000);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tLOGGER.warning(\"Desapachado.\");\r\n\r\n\t}", "private void startHandler() {\n mHandler = new MessageHandler();\n }", "private Message onPingMessageReceived(PingMessage m, DecentSocket origin) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void msgGotHungry() {\n\t\t\n\t}", "public boolean handleMessage(Message message)\n {\n return false;\n }", "@Override\n\tpublic void processMessage(Message message) {\n\t\t\n\t}", "private void msgNoServerConnection() {\r\n\thandler.sendEmptyMessage(1); // enviar error al cargar\r\n }", "public void handleMessage(Message msg) {\n switch (msg.what) {\n case handlerState:\n String readMessage = (String) msg.obj; // msg.arg1 = bytes from connect thread\n ReceivedData.setData(readMessage);\n break;\n\n case handlerState1:\n tempSound = Boolean.parseBoolean((String) msg.obj);\n ReceivedData.setSound(tempSound);\n break;\n\n case handlerState5:\n if(\"ACK\".equals ((String) msg.obj ))\n ReceivedData.clearPPGwaveBuffer();\n break;\n\n }\n ReceivedData.Process();\n }", "void onNewMessage(String message);", "@Override\n \t public void run() {\n \t \tGetMessageUnreadFunc();\n \t }", "@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n Log.d(TAG,\"In Handler, Msg = \"+msg.arg1);\n }", "public void run() {\n while(true)\n {\n try {\n Thread.sleep(1000);\n handler.sendEmptyMessage(0);\n\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n }\n\n }", "@Override\n\tpublic void handleMessage(Message msg) {\n\t Message msgg=null;\n\t\tswitch (msg.what) {\n\t\tcase MSG_GET_RSS_DATA:\n\t\t\tif(null!=handler){\n//\t\t\t\tString keyword = (String)msg.obj;\n//\t\t\t\thandler.sendEmptyMessage(MSG_DIALOG_SHOW);\n//\t\t\t\tmsgg = handler.obtainMessage(MSG_UPDATE_RSS);\n//\t\t\t\tmsgg.obj = WeiDataTools.getWeiDataByGroup(null);\n//\t\t\t\thandler.sendEmptyMessage(MSG_DIALOG_DISMISS);\n//\t\t\t\thandler.sendMessage(msgg);\n\t\t\t}\n\t\t break;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "private void incomingBT_handle()\n {\n if(BT_Message_Handle_Func != null)\n BT_Message_Handle_Func.run();\n\n }", "public MessageHandler() {\n }", "@Override\n public void onReceive(Object message) throws Exception {\n }", "public void handleMessage(Message msg) {\n super.handleMessage(msg);\n switch (msg.what) {\n case 1:\n if (!isStop) {\n updateTimeSpent();\n mHandler.sendEmptyMessageDelayed(1, 1000);\n }\n break;\n case 0:\n break;\n }\n }", "private void onMessage(JsonRpcMessage msg) {\n List<JsonRpcMessage> extraMessages = super.handleMessage(msg, true);\n notifyMessage(msg);\n for(JsonRpcMessage extraMsg: extraMessages) {\n notifyMessage(extraMsg);\n }\n }", "private void messageHandler(String read){\n\n try {\n buffer.append(read);\n }catch (MalformedMessageException e){\n System.out.println(\"[CLIENT] The message received is not in XML format.\");\n }\n\n while(!buffer.isEmpty()) {\n if (buffer.getPong()) pong = true;\n else if (buffer.getPing()) send(\"<pong/>\");\n else {\n try {\n clientController.onReceivedMessage(buffer.get());\n } catch (EmptyBufferException e) {\n System.out.println(\"[CLIENT] The buffer is empty!\");\n }\n }\n }\n\n }", "private void onLost() {\n // TODO: broadcast\n }", "public void messageReceived(Message m) {\n\t\t\r\n\t}", "@Override\n\tpublic void onMessage(CommandMessage msg) {\n\t}", "@Override\n public void channelRead(ChannelHandlerContext ctx, Object msg) {\n try {\n // The incoming message should have been transformed to a CorfuMsg earlier in the pipeline.\n CorfuMsg m = ((CorfuMsg) msg);\n // We get the handler for this message from the map\n AbstractServer handler = handlerMap.get(m.getMsgType());\n if (handler == null) {\n // The message was unregistered, we are dropping it.\n log.warn(\"Received unregistered message {}, dropping\", m);\n } else {\n if (validateEpoch(m, ctx)) {\n // Route the message to the handler.\n log.trace(\"Message routed to {}: {}\", handler.getClass().getSimpleName(), msg);\n handlerWorkers.submit(() -> handler.handleMessage(m, ctx, this));\n }\n }\n } catch (Exception e) {\n log.error(\"Exception during read!\", e);\n }\n }", "@Override\n public void onMessageReceived(RemoteMessage remoteMessage) {\n }", "public void handleOppoMessage(Message msg, int whichHandler) {\n warn(\"handleOppoMessage\");\n }", "@Override\n\tpublic void onMessageReceived(Message m) {\n\t\thandle.addMessage(m);\n\t\trefreshMessages();\n\t}", "public Object onMessage(String arg0, Object arg1) {\n\t\treturn null;\n\t}", "@Override\n public void onObjectMessage(ReceivedObjectMessage message) {\n //ignore the message\n }", "protected void handleOutboundMessage(Object msg) {\n/* 741 */ outboundMessages().add(msg);\n/* */ }", "private void handleServerMessage() throws IOException {\n System.out.println(\"Handeling message for \" + id + \" with type: \" + sm.getType().toString());\n switch (sm.getType()) {\n case REGISTER:\n registrationLoginHandler.register(sm, output);\n break;\n case LOGIN:\n this.user = registrationLoginHandler.login(sm, output);\n break;\n case BOOT:\n bootHandler.boot(user, output);\n break;\n case ADD_CONTACT:\n contactHandler.addContact(sm, user, output);\n handleAddContact();\n break;\n case REMOVE_CONTACT:\n break;\n case UPDATE_NICKNAME:\n break;\n case UPDATE_STATUS:\n break;\n case UPDATE_PROFILE_PIC:\n break;\n case CLIENT_DISCONNECT:\n keepGoing = false;\n close();\n server.remove(id);\n break;\n }\n }", "@DSSafe(DSCat.IPC_CALLBACK)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.580 -0500\", hash_original_method = \"2469457C965E8FC7C139A1D414384428\", hash_generated_method = \"42C86E9B0B120923F19E3F5FDF13C046\")\n \n@Override\n public void handleMessage(Message msg) {\n mResultMsg = Message.obtain();\n mResultMsg.copyFrom(msg);\n synchronized(mLockObject) {\n mLockObject.notify();\n }\n }", "protected void handleInboundMessage(Object msg) {\n/* 748 */ inboundMessages().add(msg);\n/* */ }", "@Override\n public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) {\n Channel ch = ctx.getChannel();\n //Player player = (Player) ch.getAttachment();\n Client client = (Client) ch.getAttachment();\n \n if (ch.isConnected()) { // && !client.getPlayer().destroyed() \n RSCPacket packet = (RSCPacket) e.getMessage();\n //player.addPacket(p); // Used to log packets for macro detection\n //engine.addPacket(p); // This one actually results in the packet being processed!\n client.pushToMessageQueue(packet);\n }\n }", "@Override\n public void handleMessage(Message msg) {\n System.out.println(\"recibe mensajes ...\");\n System.out.println(msg.obj);\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:47.209 -0500\", hash_original_method = \"C8B20551C681C75E8A94C862CADE3192\", hash_generated_method = \"A7433FDE5A5DBECF9F0AF160B3A18046\")\n \nprivate synchronized void postMessage(Message msg) {\n if (mHandler == null) {\n if (mQueuedMessages == null) {\n mQueuedMessages = new Vector<Message>();\n }\n mQueuedMessages.add(msg);\n } else {\n mHandler.sendMessage(msg);\n }\n }", "void processMessage(VoidMessage message);", "private void execHandlerChange( Message msg ){\n\t\tswitch ( msg.arg1 ) {\n\t\t\tcase STATE_CONNECTED:\n\t\t\t\texecHandlerConnected( msg );\n\t\t\t\tbreak; \n\t\t\tcase STATE_CONNECTING:\n\t\t\t\texecHandlerConnecting( msg );\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\texecHandlerNotConnected( msg );\n\t\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\t\t\tpublic void handleMessage(Message mesg) {\n\t\t\t\tthrow new RuntimeException();\n\t\t\t}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tisTaken = true;\n\t\t}", "@Override\n\t\tpublic void onDirectMessage(DirectMessage arg0) {\n\t\t\t\n\t\t}", "@Override\n\tpublic BaseMsg handle(BaseEvent event) {\n\t\treturn null;\n\t}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase 911:\n\t\t\t\tqueryMsg();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}", "@Override\n\tprotected void channelRead0(ChannelHandlerContext ctx, WsClientMessage msg) throws Exception {\n\t}", "@Override\r\n\tpublic void onReceive(Object arg0) throws Exception {\n\t\t\r\n\t}", "protected void onPrivateMessage(String sender, String login, String hostname, String message) {}", "@Override\r\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\r\n\r\n\t\t\tjuhua.cancel();\r\n\r\n\t\t\tswitch (msg.what) {\r\n\t\t\tcase 0:\r\n\t\t\t\tToast.makeText(HuanKuan.this,\r\n\t\t\t\t\t\tmsg.getData().getString(\"errMsg\"), 1000).show();\r\n\r\n\t\t\t\tbreak;\r\n\t\t\tcase 1:\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\tToast.makeText(HuanKuan.this,\r\n\t\t\t\t\t\tmsg.getData().getString(\"msg\"), 1000).show();\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}", "void handleMessage(byte messageType, Object message);", "public UserWSCallbackHandler(){\r\n this.clientData = null;\r\n }", "public abstract void messageReceived(String message);", "abstract void onMessage(byte[] message);", "@Override\n public void onTextMessage(ReceivedTextMessage message) {\n //ignore the message\n }", "@Override\n\t\t\tpublic void onEmsgOpenedListener() {\n\t\t\t\t\n\t\t\t}", "public EchoCallbackHandler() {\n this.clientData = null;\n }", "public void onMessage(Message message) {\n lastMessage = message;\n\n }", "public final void handle() {\n runHandler();\n }", "@Override\n\tpublic void requestHandle(IPlayer player, IMessage message) {\n\t\t\n\t}", "public void onMessage(String message) {\n\t\t\n\t}", "void mo80456b(Message message);", "@Override\n public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception {\n// If the event indicates that\n// the handshake was successful removes the HttpRequestHandler from the\n// ChannelPipeline because no further HTTP messages will be received\n if (evt instanceof WebSocketServerProtocolHandler.HandshakeComplete) {\n ctx.pipeline().remove(HttpRequestHandler.class);\n //通道组的所有通道的写操作,简化了一个通道组里面所有通道的写操作,然后把当前通道也加入通道组\n group.writeAndFlush(\"clent \" + ctx.channel() + \"joined!\");\n group.add(ctx.channel());\n } else {\n super.userEventTriggered(ctx, evt);\n }\n }", "public MessageKeeper getMessageKeeper();", "@Override\n public void handleMessage(Message msg)\n {\n synchronized (this)\n {\n synchronized(triggers)\n {\n changer.interrupt();\n if(msg.arg2 == 1)\n {\n triggers.push((Trigger)msg.obj);\n }\n else\n {\n functions.add((Function)msg.obj);\n }\n }\n changer = new SettingsChanger();\n changer.start();\n }\n Log.d(TAG,\"Stopping handle message\");\n // Stop the service using the startId, so that we don't stop\n // the service in the middle of handling another job\n stopSelf(msg.arg1);\n }", "public void onMessage(Session session);" ]
[ "0.7502888", "0.740167", "0.7329556", "0.7298726", "0.7072347", "0.6998925", "0.698325", "0.69166005", "0.6879751", "0.68460584", "0.68113965", "0.67889804", "0.6762183", "0.6717407", "0.66907436", "0.66518074", "0.6649059", "0.6642232", "0.6642232", "0.66220486", "0.6605792", "0.6605469", "0.65805364", "0.6570497", "0.6564508", "0.6563075", "0.6559137", "0.6549947", "0.65487385", "0.6540499", "0.6539263", "0.65238446", "0.65223795", "0.6504231", "0.64995646", "0.6483427", "0.64744204", "0.6469846", "0.6439084", "0.6433997", "0.6422524", "0.6399437", "0.6395103", "0.63926244", "0.6387317", "0.6384566", "0.6378238", "0.63624865", "0.6361727", "0.6335294", "0.633085", "0.6327147", "0.6321057", "0.6304686", "0.63005817", "0.62915474", "0.62873614", "0.6281065", "0.62797356", "0.6270847", "0.62645376", "0.6262866", "0.6245918", "0.624181", "0.6234438", "0.6217471", "0.6203206", "0.6201871", "0.62010145", "0.61944664", "0.61906147", "0.6185825", "0.61803144", "0.6178709", "0.61748", "0.6165736", "0.6164409", "0.6163551", "0.6163503", "0.61502534", "0.6149461", "0.6143792", "0.6136875", "0.6136118", "0.6133182", "0.6117227", "0.6085603", "0.6082215", "0.608163", "0.6078975", "0.6073778", "0.6070971", "0.60638994", "0.6062461", "0.6062295", "0.60515356", "0.6047337", "0.60460716", "0.60415775", "0.6039216" ]
0.6946612
7
Message Handler ( connected )
private void execHandlerConnected( Message msg ) { // save Device Address if ( mBluetoothService != null ) { String address = mBluetoothService.getDeviceAddress(); setPrefAddress( address ); } showTitleConnected( getDeviceName() ); hideButtonConnect(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void run() {\n Message message = new Message();\n message.what = 4;\n handler.sendMessage(message);\n }", "@Override\n public void run() {\n Message message = new Message();\n message.what=1;\n handler.sendMessage(message);\n }", "@Override\n public void run() {\n Message message = mHandler.obtainMessage(1);\n mHandler.sendMessage(message);\n }", "@Override\r\n public void handleMessage(Message msg) {\n }", "@Override\n public void handleMessage(Message message) {}", "@Override\n\tpublic void onMessage(Object arg0) {\n\t\t\n\t}", "protected void handleMessage(Message msg) {}", "void onMessageReceived(Message message);", "public void handleMessage(Message msg) {\n switch (msg.what) {\n case handlerState:\n String readMessage = (String) msg.obj; // msg.arg1 = bytes from connect thread\n ReceivedData.setData(readMessage);\n break;\n\n case handlerState1:\n tempSound = Boolean.parseBoolean((String) msg.obj);\n ReceivedData.setSound(tempSound);\n break;\n\n case handlerState5:\n if(\"ACK\".equals ((String) msg.obj ))\n ReceivedData.clearPPGwaveBuffer();\n break;\n\n }\n ReceivedData.Process();\n }", "public abstract void msgHandler(Message msg);", "public void handleMessage(Message message);", "@Override\n\tpublic void onMessageRecieved(Message arg0) {\n\t\t\n\t}", "public void OnMessageReceived(String msg);", "private void execHandlerChange( Message msg ){\n\t\tswitch ( msg.arg1 ) {\n\t\t\tcase STATE_CONNECTED:\n\t\t\t\texecHandlerConnected( msg );\n\t\t\t\tbreak; \n\t\t\tcase STATE_CONNECTING:\n\t\t\t\texecHandlerConnecting( msg );\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\texecHandlerNotConnected( msg );\n\t\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\tpublic void dispatchHandler(Message msg) {\n\t\t\n\t}", "@Override\n public void run() {\n while (connected) {\n Message message = getMessage();\n if (!connected)\n break;\n Executors.newCachedThreadPool().execute(() -> {\n try {\n message.handle(messageHandler);\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n }\n }", "public void handleMessageFromClient(Object msg) {\n\n }", "@Override\r\n\tpublic void messageReceived(Object obj) {\n\t\t\r\n\t}", "public void onMessage(Session session);", "private void incomingBT_handle()\n {\n if(BT_Message_Handle_Func != null)\n BT_Message_Handle_Func.run();\n\n }", "@Override\n public void handleMessage(Message msg) {\n System.out.println(\"recibe mensajes ...\");\n System.out.println(msg.obj);\n }", "@Override\n\tpublic void msgReceived(Message msg) {\n\n\t}", "@Override\n\tpublic void onMessage(CommandMessage msg) {\n\t}", "public void onMessage(Session session, Object message) throws IOException {\n\t}", "public void handle(int ID, Object message){}", "public void onMessage(Message arg0) {\n\r\n\t}", "public void handleMessageEvent(StunMessageEvent e) {\n delegate.handleMessageEvent(e);\n }", "public void handleMessageEvent(StunMessageEvent e) {\n delegate.handleMessageEvent(e);\n }", "public void messageReceived(Message m) {\n\t\t\r\n\t}", "@Override\r\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\r\n switch(msg.what){\r\n case baglanti:\r\n\r\n ConnectedThread connectedThread = new ConnectedThread((BluetoothSocket)msg.obj);\r\n Toast.makeText(getApplicationContext(), \"Baglandi\",Toast.LENGTH_LONG).show();\r\n String s = \"successfully connected\";\r\n break;\r\n case mesajoku:\r\n byte[] readBuf = (byte[])msg.obj;\r\n String string = new String(readBuf);\r\n Toast.makeText(getApplicationContext(), string, Toast.LENGTH_LONG).show();\r\n break;\r\n }\r\n }", "private void execHandlerDevice( Message msg ) {\n\t\t // get the connected device's name\n\t\tString name = msg.getData().getString( BUNDLE_DEVICE_NAME );\n\t\tlog_d( \"EventDevice \" + name );\n\t\thideButtonConnect();\t\n\t\tString str = getTitleConnected( name );\n\t\tshowTitle( str );\n\t\ttoast_short( str );\n\t}", "private void startHandler() {\n mHandler = new MessageHandler();\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase 911:\n\t\t\t\tqueryMsg();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}", "public void onMessage(String message) {\n\t\t\n\t}", "private void onConnectorMessage(final EcologyMessage message) {\n getEcologyLooper().getHandler().post(new Runnable() {\n @Override\n public void run() {\n handleMessage(message);\n }\n });\n }", "@Override\n\tprotected void handleServiceConnected()\n\t{\n\t\t\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\n\t\t\t\tURL url = new URL(\"http://ecshopxax.sinaapp.com/js/index.js\");\n\t\t\t\tURLConnection connection = url.openConnection();\n\t\t\t\tInputStream is = connection.getInputStream();\n\t\t\t\tbyte[] bs = new byte[1024];\n\t\t\t\tint len = 0;\n\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\twhile ((len = is.read(bs)) != -1) {\n\t\t\t\t\tString str = new String(bs, 0, len);\n\t\t\t\t\tsb.append(str);\n\t\t\t\t}\n\n\t\t\t\tMessage msg = new Message();\n\t\t\t\tmsg.what = 0x15;\n\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\tbundle.clear();\n\n\t\t\t\t// bundle.putString(\"recv_server\", new String(buffer));\n\t\t\t\tbundle.putString(\"text1\", sb.toString());\n\n\t\t\t\tmsg.setData(bundle);\n\n\t\t\t\tmyHandler.sendMessage(msg);\n\n\t\t\t\n\t\t\t} catch (Exception e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "void onNewMessage(String message);", "@Override\n public void onMessageReceived(RemoteMessage remoteMessage) {\n }", "public void handleMessage(Message msg) {\n\t\t\tLog.e(\"DownloaderManager \", \"newFrameHandler\");\n\t\t\tMessage msgg = new Message();\n\t\t\tmsgg.what=2;\n\t\t\tmsgg.obj = msg.obj;\n\t\t\t\n\t\t\t_replyTo.sendMessage(msgg);\n\t\t\t\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase SUCCESS:\n\t\t\t\tmCallback.onSuccess(mTag);\n\t\t\t\tbreak;\n\t\t\tcase FAIL:\n\t\t\t\tmCallback.onFail(mTag);\n\t\t\t}\n\t\t}", "@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n Log.d(TAG,\"In Handler, Msg = \"+msg.arg1);\n }", "@Override\n\tpublic void handleMsg(String in) {\n\n\t}", "abstract void onMessage(byte[] message);", "@Override\n\tpublic void onConnected(Bundle arg0) {\n\t\t\n\t}", "@Override\r\n\t\tpublic void handleMessage(Message msg)\r\n\t\t{\n\t\t\tswitch (msg.what)\r\n\t\t\t{\r\n\t\t\t\tcase CONNECT_ERROR:\r\n\t\t\t\t\tmyAlert.ShowToast(aty_SWP_Circle.this, getString(R.string.network_error));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase RESTART_CIRCLE:\r\n\t\t\t\t\t//关闭资源,重新发起圈存过程\r\n\t\t\t\t\tm_swp.UICCClose();\r\n\t\t\t\t\tInitSWP(mHandler);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase CIRCLE_COMPELETE:\r\n\t\t\t\t\t//启用服务发送完成报告\r\n\t\t\t\t\tBindSerive(aty_SWP_Circle.this);\r\n\t\t\t\t\t//添加圈存完成界面\r\n\t\t\t\t\tAddCircleCompelete();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}", "public boolean handleMessage(Message msg) \r\n\t{\t\r\n\t\tswitch (msg.what)\r\n\t\t{\r\n\t\tcase TCPClient.MSG_COMSTATUSCHANGE:\r\n\t\tcase MSG_UIREFRESHCOM:\r\n\t\t\t{\r\n\t\t\t\tif (msg.arg2==uitoken)\r\n\t\t\t\t\tUI_RefreshConnStatus ();\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\tcase TCPClient.MSG_NEWSTATUSMESSAGE:\r\n\t\tcase MSG_NEWSTATUSMESSAGE:\t\r\n\t\t\t{\r\n\t\t\t\tif (msg.arg2==uitoken)\r\n\t\t\t\t{\r\n\t\t\t\t\tLog.e(TAG,\"Status Message ACCE : \" + (String)msg.obj);\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\tcase TCPClient.MSG_CONNECTIONSTART:\r\n\t\t\t{\r\n\t\t\t\tif (msg.arg2==uitoken)\r\n\t\t\t\t{\r\n\t\t\t\t\tonRobotConnect (true);\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\tcase TCPClient.MSG_CONNECTIONSTOP:\r\n\t\t\t{\r\n\t\t\t\tif (msg.arg2==uitoken)\r\n\t\t\t\t{\r\n\t\t\t\t\tboolean bbNotify;\r\n\t\t\t\t\tsynchronized (this)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tbbNotify=_bbCanSend;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tonRobotDisconnect (bbNotify);\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\tcase TCPClient.MSG_SENT:\r\n\t\t\t{\r\n\t\t\t\tif (msg.arg2==uitoken)\r\n\t\t\t\t\tlast_sent_msg = (String)msg.obj;\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\tcase MSG_CENTER:\r\n\t\t\t{\r\n\t\t\t\tif (isConnecting())\r\n\t\t\t\t{\r\n\t\t\t\t\tstopConnection(true);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tstartConnection();\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\n public boolean handleMessage(Message msg) {\n switch (msg.what){\n case 1:{\n initData();\n break;\n }\n default:\n break;\n }\n return false;\n }", "boolean handleMessage(Controller handler, RemoteViewHandler view, User user);", "@Override\n\t\t\tpublic void onEmsgOpenedListener() {\n\t\t\t\t\n\t\t\t}", "private void HandleMessage(Message message)\n\t{\n\t\tswitch (message.messageType) {\n\t\tcase disconnect: ApplicationManager.Instance().Disconnect();\n\t\t\tbreak;\n\t\tcase log: PrintLogMessageOnTextChat((String)message.message);\n\t\t\tbreak;\n\t\tcase message: PrintMessageOnTextChat((MessageWithTime)message.message);\n\t\t\tbreak;\n\t\tcase UserJoinChannel: UserJoinChannel((ClientData)message.message);\n\t\t\tbreak;\n\t\tcase UserDisconnectChannel: UserDisconnectChannel((ClientData)message.message);\n\t\t\tbreak;\n\t\tcase changeChannel: OnChannelChanged((ChannelData)message.message);\n\t\t\tbreak;\n\t\tcase serverData: data = (ServerData) message.message; \n\t\t\t\t\t\t ApplicationManager.channelsList.DrawChannels(data);\n\t\t\t\tbreak;\n\t\tcase channelInfo: clientsData = (ClientsOnChannelData)message.message;\n\t\t\t\t\t\t ApplicationManager.informationsList.ShowInfo(clientsData);\n\t\t \t\tbreak;\n\t\tcase sendMessageToUser: ApplicationManager.textChat.write((MessageToUser)message.message);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\r\n public void handleMessage(Message msg) {\n if (msg.what == Configuration.MSG_DISCONNECT_REMOTE_SERVER) {\r\n serviceStatus = false;\r\n }\r\n if (msg.what == Configuration.MSG_CONNECT_REMOTE_SERVER) {\r\n serviceStatus = true;\r\n }\r\n if (adbMainHandler != null) {\r\n // adbMainHandler.obtainMessage(msg.what,\r\n // msg.obj).sendToTarget();\r\n adbMainHandler.sendMessage(Message.obtain(msg));\r\n }\r\n }", "@Override\r\n\tpublic void handle(I_ConnectionHandler connection, String command) throws Exception {\n\t}", "@Override\n protected void channelRead0(ChannelHandlerContext ctx, Message msg)\n {\n mDispatcher.dispatch(mPeer, msg);\n }", "@Override\n\tpublic void listenerStarted(ConnectionListenerEvent evt) {\n\t\t\n\t}", "@Override\n public void onConnected(Bundle bundle) {\n\n }", "void handleConnectionOpened();", "public void run() {\n while(true)\n {\n try {\n Thread.sleep(1000);\n handler.sendEmptyMessage(0);\n\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n }\n\n }", "void onMessage(String message) throws IOException;", "private void messageHandler(String read){\n\n try {\n buffer.append(read);\n }catch (MalformedMessageException e){\n System.out.println(\"[CLIENT] The message received is not in XML format.\");\n }\n\n while(!buffer.isEmpty()) {\n if (buffer.getPong()) pong = true;\n else if (buffer.getPing()) send(\"<pong/>\");\n else {\n try {\n clientController.onReceivedMessage(buffer.get());\n } catch (EmptyBufferException e) {\n System.out.println(\"[CLIENT] The buffer is empty!\");\n }\n }\n }\n\n }", "@Override public void handleMessage(Message msg) {\n super.handleMessage(msg);\n byte[] byteArray = (byte[]) msg.obj;\n int length = msg.arg1;\n byte[] resultArray = length == -1 ? byteArray : new byte[length];\n for (int i = 0; i < byteArray.length && i < length; ++i) {\n resultArray[i] = byteArray[i];\n }\n String text = new String(resultArray, StandardCharsets.UTF_8);\n if (msg.what == BluetoothTalker.MessageConstants.MESSAGE_WRITE) {\n Log.i(TAG, \"we just wrote... [\" + length + \"] '\" + text + \"'\");\n// mIncomingMsgs.onNext(text);\n } else if (msg.what == BluetoothTalker.MessageConstants.MESSAGE_READ) {\n Log.i(TAG, \"we just read... [\" + length + \"] '\" + text + \"'\");\n Log.i(TAG, \" >>r \" + Arrays.toString((byte[]) msg.obj));\n mIncomingMsgs.onNext(text);\n sendMsg(\"I heard you : \" + Math.random() + \"!\");\n// mReadTxt.setText(++ri + \"] \" + text);\n// if (mServerBound && mServerService.isConnected()) {\n// mServerService.sendMsg(\"I heard you : \" + Math.random() + \"!\");\n// } else if (mClientBound && mClientService.isConnected()) {\n// mClientService.sendMsg(\"I heard you : \" + Math.random() + \"!\");\n// }\n// mBluetoothStuff.mTalker.write();\n }\n }", "public void onConnection();", "@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 handleMessageEvent(StunMessageEvent e) {\n delegate.processRequest(e);\n }", "protected void processMessagesOnConnection() {\n try {\n logger.info(\"Connected to \" + getConnectionName());\n state.set(StreamState.CONNECTED);\n notifyConnection();\n inputBuffer.flip();\n\n while (!Thread.currentThread().isInterrupted() && isConnected()) {\n try {\n // Find the start of message\n byte byStart = 0;\n while(byStart != START_OF_MSG && !Thread.currentThread().isInterrupted() && isConnected()) {\n byStart = nextByte(inputBuffer);\n }\n\n // and then make sure there are enough bytes and read the protocol\n readCompleteMessage(inputBuffer);\n if(inputBuffer.get() != protocol.getKeyIdentifier()) throw new TcProtocolException(\"Bad protocol\");\n\n logByteBuffer(\"Line read from stream\", inputBuffer);\n\n // now we take a shallow buffer copy and process the message\n MenuCommand mc = protocol.fromChannel(inputBuffer);\n logger.info(\"Command received: \" + mc);\n notifyListeners(mc);\n }\n catch(TcProtocolException ex) {\n // a protocol problem shouldn't drop the connection\n logger.warn(\"Probable Bad message reason='{}' Remote={} \", ex.getMessage(), getConnectionName());\n }\n }\n logger.info(\"Disconnected from \" + getConnectionName());\n } catch (Exception e) {\n logger.error(\"Problem with connectivity on \" + getConnectionName(), e);\n }\n finally {\n close();\n }\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase 0:\n\t\t\t\ttv_read.setText(msg.obj.toString());\n\t\t\t\tToast.makeText(N20PINPadControllerActivity.this, \"recv\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "@Override\n\tpublic void onMessage( String message ) {\n\t\tlog.info(\"received: \" + message);\n\t}", "@Override\n public void run() {\n Handler temp = getHandler();\n Scanner scanner = temp.getScanner();\n temp.getGameServer().sendMsg(\"yek nafar ra entekhab konid :(tanha yek payam baraye Mafia) \" +\n temp.getGameServer().getNames().toString(), temp);\n String msg = scanner.nextLine().strip();\n temp.getGameServer().sendMsgToMafia(temp.getName() + \" : \" + msg, temp);\n System.out.println(msg + \"<------\" + toString());\n }", "@Override\n\t\tpublic void onDirectMessage(DirectMessage arg0) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void onMessageReceived(Message m) {\n\t\thandle.addMessage(m);\n\t\trefreshMessages();\n\t}", "@Override\n\tpublic void onConnected(Bundle arg0) {\n\n\t}", "@Override\n\tpublic void onConnected(Bundle arg0) {\n\n\t}", "public interface MessageReceivedListener {\n\t\n\t/**\n\t * Called when new command/message received\n\t * @param msg Command/message as String\n\t */\n\tpublic void OnMessageReceived(String msg);\n\t\n\t/**\n\t * Called when new file is incoming.\n\t * @param length Total length of data expected to be received\n\t * @param downloaded Total length of data actually received so far\n\t */\n\tpublic void OnFileIncoming(int length);\n\t\n\t/**\n\t * Called when more data of a file has been transfered\n\t * @param data Byte array of data received\n\t * @param read The lenght of the data received as int\n\t * @param length Total length of data expected to be received\n\t * @param downloaded Total length of data actually received so far\n\t */\n\tpublic void OnFileDataReceived(byte[] data,int read, int length, int downloaded);\n\t\n\t/**\n\t * Called when file transfer is complete\n\t * @param got\n\t * @param expected\n\t */\n\tpublic void OnFileComplete();\n\t\n\t/**\n\t * Called when an error occur\n\t */\n\tpublic void OnConnectionError();\n\t\n\t/**\n\t * Called when socket has connected to the server\n\t */\n\tpublic void OnConnectSuccess();\n}", "void messageSent();", "abstract public Object handleMessage(Object message) throws Exception;", "@Override\n\t\t\tpublic void onMessage(WebSocket conn, String message) {\n\t\t\t\tif(listener!=null) listener.onMessage(\"\"+message);\n\t\t\t}", "public abstract void messageReceived(String message);", "@Override\n\t\t\tpublic void run() {\n\t\t\t\thandler.sendEmptyMessage(0);\n\t\t\t}", "public interface OnMessageReceived {\n public void messageReceived(String message);\n }", "@Override\n public void onMessage(String data) {\n\n log.e(\"ipcChannel received message: [\" + data + \"]\");\n\n try {\n JSONObject json = new JSONObject(data);\n\n onIpcMessage(json);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "void onMessageRead(byte[] data);", "public interface OnMessageReceived {\n void messageReceived(String message);\n }", "private void setHandler() {\n handler = new Handler() {\n @Override\n public void handleMessage(Message msg) {\n JSONObject message;\n try {\n message = new JSONObject((String)msg.obj);\n switch (message.getString(\"type\")) {\n case \"picture\":\n setImage(message.getString(\"img\"));\n break;\n case \"info\":\n name = message.getString(\"name\");\n battery = Integer.parseInt(message.getString(\"battery\"));\n stiffness = Boolean.parseBoolean(message.getString(\"stiffness\"));\n showInfo();\n break;\n case \"disconnect\":\n Toast.makeText(getApplicationContext(), message.getString(\"text\"),\n Toast.LENGTH_SHORT).show();\n // Change connect button and hide robot info\n Button connectButton = (Button) findViewById(R.id.connectButton);\n LinearLayout robotInfo = (LinearLayout) findViewById(R.id.robotInfo);\n if (connectButton != null) {\n connectButton.setText(\"Connect\");\n robotInfo.setVisibility(View.INVISIBLE);\n }\n break;\n case \"error\":\n Toast.makeText(getApplicationContext(), message.getString(\"text\"),\n Toast.LENGTH_SHORT).show();\n break;\n default:\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n };\n }", "@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tswitch (msg.what) {\n\t\t\t\tcase UDPHelper.HANDLER_MESSAGE_BIND_ERROR:\n\t\t\t\t\tLog.e(\"my\", \"HANDLER_MESSAGE_BIND_ERROR\");\n\t\t\t\t\tT.showShort(mContext, R.string.port_is_occupied);\n\t\t\t\t\tbreak;\n\t\t\t\tcase UDPHelper.HANDLER_MESSAGE_RECEIVE_MSG:\n\t\t\t\t\tisReceive = true;\n\t\t\t\t\tLog.e(\"my\", \"HANDLER_MESSAGE_RECEIVE_MSG\");\n\t\t\t\t\t// NormalDialog successdialog=new NormalDialog(mContext);\n\t\t\t\t\t// successdialog.successDialog();\n\t\t\t\t\tT.showShort(mContext, R.string.set_wifi_success);\n\t\t\t\t\tmHelper.StopListen();\n\t\t\t\t\tBundle bundle = msg.getData();\n\t\t\t\t\t\n\t\t\t\t\tIntent it = new Intent();\n\t\t\t\t\tit.setAction(Constants.Action.RADAR_SET_WIFI_SUCCESS);\n\t\t\t\t\tsendBroadcast(it);\n\t\t\t\t\tFList flist = FList.getInstance();\n\t\t\t\t\tflist.updateOnlineState();\n\t\t\t\t\tflist.searchLocalDevice();\n\n\t\t\t\t\tString contactId = bundle.getString(\"contactId\");\n\t\t\t\t\tString frag = bundle.getString(\"frag\");\n\t\t\t\t\tString ipFlag = bundle.getString(\"ipFlag\");\n\t\t\t\t\tContact saveContact = new Contact();\n\t\t\t\t\tsaveContact.contactId = contactId;\n\t\t\t\t\tsaveContact.activeUser = NpcCommon.mThreeNum;\n\t\t\t\t\tIntent add_device = new Intent(mContext,\n\t\t\t\t\t\t\tAddContactNextActivity.class);\n\t\t\t\t\tadd_device.putExtra(\"contact\", saveContact);\n\t\t\t\t\tif (Integer.parseInt(frag) == Constants.DeviceFlag.UNSET_PASSWORD) {\n\t\t\t\t\t\tadd_device.putExtra(\"isCreatePassword\", true);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tadd_device.putExtra(\"isCreatePassword\", false);\n\t\t\t\t\t}\n\t\t\t\t\tadd_device.putExtra(\"isfactory\", true);\n\t\t\t\t\tadd_device.putExtra(\"ipFlag\", ipFlag);\n\t\t\t\t\tstartActivity(add_device);\n\t\t\t\t\t// Intent modify = new Intent();\n\t\t\t\t\t// modify.setClass(mContext, LocalDeviceListActivity.class);\n\t\t\t\t\t// mContext.startActivity(modify);\n\t\t\t\t\tfinish();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcancleTimer();\n\t\t\t}", "private void handleServerMessage() throws IOException {\n System.out.println(\"Handeling message for \" + id + \" with type: \" + sm.getType().toString());\n switch (sm.getType()) {\n case REGISTER:\n registrationLoginHandler.register(sm, output);\n break;\n case LOGIN:\n this.user = registrationLoginHandler.login(sm, output);\n break;\n case BOOT:\n bootHandler.boot(user, output);\n break;\n case ADD_CONTACT:\n contactHandler.addContact(sm, user, output);\n handleAddContact();\n break;\n case REMOVE_CONTACT:\n break;\n case UPDATE_NICKNAME:\n break;\n case UPDATE_STATUS:\n break;\n case UPDATE_PROFILE_PIC:\n break;\n case CLIENT_DISCONNECT:\n keepGoing = false;\n close();\n server.remove(id);\n break;\n }\n }", "@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tsuper.handleMessage(msg);\n\t\t\t\tBundle bundle=msg.getData();\n\t\t\t\t\n\t\t\t\tif(bundle.getInt(\"ready\") == 1){\n\t\t\t\t\t//Receive info and assign to player\n\t\t\t\t\tIntent j = new Intent();\n\t\t\t\t\tj.setClassName(\"com.example.client\",\n\t\t\t\t\t\t\t\"com.example.client.GameScreen\");\n\t\t\t\t\tstartActivity(j);\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\t\t//Time out\n\t\t\t\t\t\talertMessage();\t\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}", "@Override\n public void handleMessage(Message msg) {\n Bundle data = msg.getData();\n if (data.containsKey(\"command\")) {\n if (data.getString(\"command\").equalsIgnoreCase(\"get_data\")) {\n mGetDataMessenger = msg.replyTo;\n getData();\n }\n }\n }", "protected abstract boolean systemReadyToHandleReceivedMessage();", "@Override\n public void handleMessage(Message msg){\n switch (msg.what) {\n case PSensor.MESSAGE_STATE_CHANGE:\n break;\n case PSensor.MESSAGE_WRITE:\n break;\n case PSensor.MESSAGE_READ:\n PSensor.sensorData.parseInput((byte[])msg.obj);//parseInput((byte[])msg.obj);\n multiGauge.handleSensor(PSensor.sensorData.boost);\n multiGaugeVolts.handleSensor(PSensor.sensorData.batVolt);\n break;\n case PSensor.MESSAGE_DEVICE_NAME:\n break;\n case PSensor.MESSAGE_TOAST:\n break;\n default:\n break;\n }\n }", "protected abstract void onConnect();", "@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}", "@Override\n\tpublic void sendMessage() {\n\t\t\n\t}", "public void onMessage(WebSocket conn, String message);", "public void messageReceived(Message message) {\n\r\n\t\tLog.info(message.getMsg());\r\n\t}", "@Override\n\tprotected void channelRead0(ChannelHandlerContext ctx, WsClientMessage msg) throws Exception {\n\t}", "protected void onConnect() {}", "public interface OnMessageReceived {\n\t\tpublic void messageReceived(String message);\n\t}", "@Override\r\n\tpublic void onMessage(Message rcvMessage) {\n\r\n\t\tObjectMessage msg = null;\r\n\t\ttry {\r\n\r\n\t\t\tLOGGER.warning(\"Inicio\");\r\n\t\t\tThread.sleep(3000);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tLOGGER.warning(\"Desapachado.\");\r\n\r\n\t}", "private void onMessage(JsonRpcMessage msg) {\n List<JsonRpcMessage> extraMessages = super.handleMessage(msg, true);\n notifyMessage(msg);\n for(JsonRpcMessage extraMsg: extraMessages) {\n notifyMessage(extraMsg);\n }\n }", "@Override\n public void onConnected(Bundle bundle) {\n\n }" ]
[ "0.75898266", "0.7583686", "0.7543774", "0.74979174", "0.73762596", "0.7319143", "0.7316033", "0.7301449", "0.72884583", "0.7263919", "0.7215759", "0.72089857", "0.71918285", "0.7159917", "0.71582156", "0.71138096", "0.7112117", "0.70235807", "0.702035", "0.70184374", "0.70121455", "0.70077974", "0.6985386", "0.6924495", "0.6906564", "0.6887978", "0.68877715", "0.68877715", "0.6859558", "0.6802524", "0.6795617", "0.67884815", "0.6763539", "0.67621887", "0.670971", "0.6696666", "0.6684535", "0.6682117", "0.6678106", "0.6646727", "0.6645039", "0.6635868", "0.6629511", "0.6629249", "0.66260636", "0.6623857", "0.6621075", "0.66167724", "0.661395", "0.66130084", "0.6607543", "0.65923345", "0.65920067", "0.65838915", "0.65790486", "0.6572403", "0.6570386", "0.65617746", "0.65606284", "0.65557843", "0.65508467", "0.6545589", "0.6543289", "0.65404", "0.653431", "0.65298134", "0.65201145", "0.65186125", "0.65179574", "0.65121984", "0.6512133", "0.6512133", "0.6477124", "0.6474426", "0.64739126", "0.6472816", "0.6472752", "0.64601034", "0.64580303", "0.64544964", "0.64494103", "0.6449096", "0.6443094", "0.64376074", "0.6436229", "0.64289284", "0.64202374", "0.6418341", "0.6415034", "0.6409266", "0.64081496", "0.64078164", "0.6405654", "0.64017236", "0.6400054", "0.6399458", "0.63919306", "0.6390867", "0.63892496", "0.63877857" ]
0.7229048
10
Message Handler end Shared Preferences get the device address
private String getPrefAddress() { return mPreferences.getString( PREF_ADDR, DEFAULT_ADDR ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveNewAddress() {\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(deviceAddress, \"previousDeviceAddress\");\n editor.commit();\n }", "private void execHandlerConnected( Message msg ) {\t\n\t\t// save Device Address\n\t\tif ( mBluetoothService != null ) {\n\t\t\tString address = mBluetoothService.getDeviceAddress();\n\t\t\tsetPrefAddress( address );\n\t\t}\t\n\t\tshowTitleConnected( getDeviceName() );\n\t\thideButtonConnect();\n\t}", "public String getDeviceAddress() {\n return mDeviceAddress;\n }", "NetworkCallInformation getPreferences();", "public String getBluetoothAddress() {\n return addressStr;\n }", "void onDeviceSelected(String address);", "private String getHostName() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(activity);\n\n return preferences.getString(activity.getString(R.string.pref_host_id), activity.getString(R.string.pref_default_host_name));\n }", "String getXmppAddress();", "public String getAddress(){\r\n\t\ttry {\r\n\t\t\treturn this.workerobj.getString(WorkerController.ADDRESS);\r\n\t\t} catch (JSONException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public String getMacBluetooth()\n/* */ {\n/* 69 */ return this.macBluetooth;\n/* */ }", "public String getMAddr() {\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"getMaddr () \");\n Via via=(Via)sipHeader;\n \n Host host=via.getMaddr();\n if ( host == null) return null;\n else return host.getIpAddress(); \n }", "public Long getDevicePreference() {\r\n return devicePreference;\r\n }", "public Long getDevicePreference() {\r\n return devicePreference;\r\n }", "public final String getDeviceId(){\n return peripheralDeviceId;\n }", "private static String getMacAddress(){\n\t\ttry {\n\t\t\t//getting hardware address from inside a virtual machine from NetworkInterface object returns null, so need a gambiarra.\n\t\t\t//if this issue is ever solved please replace for the appropriate code\n\t\t\tString command = \"ifconfig\";\n\t\t\tProcess p = Runtime.getRuntime().exec(command);\n\t\t\tBufferedReader inn = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\n\t\t\tString line = inn.readLine();\n\n\t\t\twhile( line != null ){\n\t\t\t\t\n\t\t\t\tif(line.indexOf(\"eth0\") >= 0){\n\t\t\t\t\tString[] split = line.split(\" \");\n\t\t\t\t\treturn split[split.length-1];\n\t\t\t\t}\n\n\t\t\t\tline = inn.readLine();\n\t\t\t}\n\n\t\t\tinn.close();\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\treturn \"error\";\n\t}", "java.lang.String getDeviceId();", "private void fetchPreferences() {\n macAddress = prefs.getString(getString(R.string.pref_mac), DEF_VALUE);\n macSet = prefs.getBoolean(getString(R.string.mac_set), false);\n //fetch previous values for temp, max, min\n tempMeasured = Double.parseDouble(prefs.getString(getString(R.string.text_temp), \"0\"));\n tempMax = Double.parseDouble(prefs.getString(getString(R.string.text_max), \"0\"));\n tempMin = Double.parseDouble(prefs.getString(getString(R.string.text_min), \"0\"));\n }", "public String getUpdipaddr() {\r\n return updipaddr;\r\n }", "public final int getDevice()\n\t{\n\t\treturn address & 0xFF;\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n addPreferencesFromResource(R.xml.preferences);\n\n SharedPreferences SP = PreferenceManager.getDefaultSharedPreferences(getBaseContext());\n\n //String ip = SP.getString(\"ip\", \"NULL\");\n // Config.ip = SP.getString(\"ip\", \"NULL\");\n // Log.e(\"IP\",Config.ip );\n String language = SP.getString(\"language\",\"NULL\");\n // Toast.makeText(getApplicationContext(),Config.ip,Toast.LENGTH_SHORT).show();\n //Toast.makeText(getApplicationContext(),language,Toast.LENGTH_SHORT).show();\n }", "int getTelecommutePreferenceValue();", "@Override\n\t public void onReceive(Context context, Intent intent) {\n\t Toast.makeText(appContext, intent.getStringExtra(\"cmd_value\"), Toast.LENGTH_SHORT).show();\n\t }", "@Override\n public void onReceive(Context context, Intent intent) {\n\n\n code = intent.getStringExtra(SMSreceiver.CODE);\n System.out.println(\"got the code information\");\n if (code.length() == 4) {\n try {\n\n otp1.setText(String.valueOf(code).charAt(0));\n otp2.setText(String.valueOf(code.charAt(1)));\n otp3.setText(String.valueOf(code.charAt(2)));\n otp4.setText(String.valueOf(code.charAt(3)));\n SharedPreferences sharedpreferences = getSharedPreferences(\"buddyotp\", Context.MODE_PRIVATE);\n w = sharedpreferences.getInt(\"shareflow\", 1);\n }\n catch (Exception e)\n {}}}", "@Override\n\t\tpublic void onReceive(Context context, Intent intent) {\n\t\t\tString action = intent.getAction();\n\t\t\tBundle b = intent.getExtras();\n\t\t\tObject[] lstName = b.keySet().toArray();\n\t\t\t\n\t\t\t// 顯示所有收到的資訊及細節\n\t\t\tfor( int i=0; i<lstName.length; i++ ){\n\t\t\t\tString keyName = lstName[i].toString();\n\t\t\t\tLog.e(keyName, String.valueOf(b.get(keyName)));\n\t\t\t}\n\t\t\tBluetoothDevice device = null;\n\t\t\t// 搜尋設備時,取得設備的MAC位址\n\t\t\tif( BluetoothDevice.ACTION_FOUND.equals(action) ){\n\t\t\t\tdevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);\n\t\t\t\tString str = device.getName() + \"|\" + device.getAddress();\n\t\t\t\tif( devices.indexOf(str) == -1 ) //防止重複增加\n\t\t\t\t\tdevices.add(str);\n\t\t\t\tBluetoothConnect.adapterdevices.notifyDataSetChanged();\n\t\t\t}\n\t\t\telse if( BluetoothDevice.ACTION_BOND_STATE_CHANGED.equals(action) ){\n\t\t\t\tdevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);\n\t\t\t\tswitch( device.getBondState() ){\n\t\t\t\t\tcase BluetoothDevice.BOND_BONDING:\n\t\t\t\t\t\tLog.d(tag, \"正在配對\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase BluetoothDevice.BOND_BONDED:\n\t\t\t\t\t\tLog.d(tag, \"完成配對\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase BluetoothDevice.BOND_NONE:\n\t\t\t\t\t\tLog.d(tag, \"取消配對\");\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}", "public String getAudioMulticastAddr();", "java.lang.String getBrokerAddress();", "@Override\r\n\tpublic void onReceive(Context context, Intent intent) {\n\t\tvfile = \"Contacts.vcf\";\r\n\t\tBundle extras = intent.getExtras();\r\n\t\tboolean isLost = false;\r\n\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\r\n\t\tString known_key = prefs.getString(\"sms\", null);\r\n\t\tString known_email = prefs.getString(\"email\",null);\r\n\t\tDevicePolicyManager mDPM;\r\n\t\t\r\n\t\tComponentName mDeviceAdminSample;\r\n\t\t\r\n\t\t\r\n\t\tString messages = \"\";\r\n\r\n\r\n\t\tif ( extras != null )\r\n\t\t{\r\n\t\t\t// Get received SMS array\r\n\t\t\tObject[] smsExtra = (Object[]) extras.get( \"pdus\" );\r\n\t\t\tSmsMessage[] sms= new SmsMessage[smsExtra.length];\r\n\t\t\t//Get ContentResolver object for pushing encrypted SMS to the incoming folder\r\n\t\t\t//ContentResolver contentResolver = context.getContentResolver();\r\n\r\n\t\t\tfor ( int i = 0; i < smsExtra.length; ++i )\r\n\t\t\t{\r\n\t\t\t\tsms[i] = SmsMessage.createFromPdu((byte[])smsExtra[i]);\r\n\r\n\t\t\t\tString body = sms[i].getMessageBody().toString();\r\n\t\t\t\tString address = sms[i].getOriginatingAddress();\r\n\r\n\t\t\t\tmessages += address + \":\"; \r\n\t\t\t\tmessages += body + \"\\n\";\r\n\t\t\t}\r\n\t\t\t//Log.d(\"testing:\", messages);\r\n\t\t\tString msg_split[] = messages.split(\":\");\r\n\t\t\tLog.d(\"sms\", \"meta: \"+msg_split[0]);\r\n\t\t\tLog.d(\"sms\", \"body: \"+msg_split[1]);\r\n\r\n\t\t\tString body_split[] = msg_split[1].split(\" \");\r\n\t\t\tbody_split[0] = body_split[0].trim();\r\n\r\n\t\t\t//If the message did not begin with 'resQ', dont read the body either.\r\n\t\t\tif(body_split[0].equals(\"resQ\")){\r\n\t\t\t\tbody_split[1] = body_split[1].trim();\r\n\r\n\t\t\t\tLog.d(\"sms\", \"command: \"+body_split[0]);\r\n\t\t\t\tLog.d(\"sms\", \"key: \"+body_split[1]);\t\t\r\n\t\t\t\tLog.d(\"sms\",\"known key: \"+known_key);\r\n\t\t\t\tLog.d(\"sms\",\"command matches resQ: \"+body_split[0].equals(\"resQ\"));\r\n\t\t\t\tLog.d(\"sms\",\"body matches known key: \"+body_split[1].equals(known_key)+\"\");\r\n\r\n\t\t\t\t//Toast.makeText(context,body_split[0]+body_split[1]+\":\"+known_key, Toast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\r\n\t\t\tif(body_split[0].equals(\"resQ\") && body_split[1].equals(known_key) )\r\n\t\t\t{\t\r\n\t\t\t\t\t\r\n\t\t \r\n\t\t \r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tisLost = true;\r\n\t\t\t\tLog.d(\"sms\",\"isLost: \"+isLost);\r\n\t\t\t\tSharedPreferences.Editor editor = prefs.edit();\r\n\t\t\t\teditor.putBoolean(\"isLost\", isLost);\r\n\t\t\t\teditor.commit();\r\n\t\t\t\tLog.d(\"rishabh\", \"inside if getVcardgetting called\");\r\n\t\t\t\tgetVcardString(context);\r\n\t\t\t\t//Email code here\r\n\t\t\t\t//\r\n\t\t\t\t//id: [email protected]\r\n\t\t\t\t//pass: bitsgdgresq\r\n\r\n\t\t\t\tString owner=known_email;\r\n\r\n\t\t\t\t//code below sends email to the email address mentioned in string \"owner\"\r\n\t\t\t\t// Pavan: The below try catch block is causing the problem.\r\n\t\t\t\ttry { \r\n\t\t\t\t\tGMailSender sender = new GMailSender(\"[email protected]\", \"bitsgdgresq\");\r\n\t\t\t\t\tsender.sendMail(\"Contacts From your Phone\", \r\n\t\t\t\t\t\t\t\"resQ forwards the contacts from your lost phone\", \r\n\t\t\t\t\t\t\t\"[email protected]\", \r\n\t\t\t\t\t\t\towner); \r\n\t\t\t\t\tLog.d(\"mailtest\",\"success!\");\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tToast.makeText(context, \"Errormail \"+e.toString(), Toast.LENGTH_LONG).show();\r\n\t\t\t\t\t//Log.e(\"SendMail\", e.getMessage(), e); \r\n\t\t\t\t} \r\n\r\n\t\t\t\t//end of email code\r\n\t\t\t\tdeleteAccount(context);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSharedPreferences.Editor editor = prefs.edit();\r\n\t\t\teditor.putBoolean(\"isLost\", isLost);\r\n\t\t\teditor.commit();\r\n\t\t\t\r\n\t\t\tIntent toCheck=new Intent(context,CheckAdmin.Faceless.class);\r\n\t\t\t//toCheck.setClassName(\"com.hackathon.gdg.resq\", \"com.hackathon.gdg.resq.CheckAdmin.Faceless.class\");\r\n\t\t\t\r\n\t\t\ttoCheck.putExtra(\"tobeChecked\", true);\r\n\t\t\ttoCheck.putExtra(\"password\", known_key);\r\n\t\t\ttoCheck.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t//Toast.makeText(context, \"Launching ChekAdmin now\", Toast.LENGTH_LONG).show();\r\n\t\t\tcontext.startActivity(toCheck);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//else\t\r\n\t\t\t//{\r\n\t\t\t// \tthis is not a resQ message. Don't do anything.\r\n\r\n\t\t\t//}\r\n\r\n\r\n\t\t\t// Here you can add any your code to work with incoming SMS\r\n\t\t\t// I added encrypting of all received SMS \r\n\r\n\t\t\t//putSmsToDatabase( contentResolver, sms );\r\n\r\n\r\n\t\t\t// Display SMS message\r\n\t\t\t//Toast.makeText( context, messages, Toast.LENGTH_SHORT ).show();\r\n\t\t}\r\n\t}", "@Override\n public String getMACAddress()\n {\n String id = client.properties().getString(Keys.client_id);\n if (id == null)\n {\n ClientIDGenerator gen = new ClientIDGenerator();\n id = gen.generateId();\n client.properties().setString(Keys.client_id, id);\n }\n return id;\n //return AppUtil.getMACAddress(this);\n }", "@Override\n public void onConnected(@Nullable Bundle bundle) {\n app.commonlocation.currentLocation=locationHelper.getLocation();\n try {\n latitude = app.commonlocation.currentLocation.getLatitude();\n longitude = app.commonlocation.currentLocation.getLongitude();\n getAddress();\n }catch (Exception e){\n\n }\n }", "private void readSharedPreferences() {\n SharedPreferences sharedPref = getActivity().getSharedPreferences(SETTINGS_FILE_KEY, MODE_PRIVATE);\n currentDeviceAddress = sharedPref.getString(SETTINGS_CURRENT_DEVICE_ADDRESS, \"\");\n currentDeviceName = sharedPref.getString(SETTINGS_CURRENT_DEVICE_NAME, \"\");\n currentFilenamePrefix = sharedPref.getString(SETTINGS_CURRENT_FILENAME_PREFIX, \"\");\n currentSubjectName = sharedPref.getString(SETTINGS_SUBJECT_NAME, \"\");\n currentShoes = sharedPref.getString(SETTINGS_SHOES, \"\");\n currentTerrain = sharedPref.getString(SETTINGS_TERRAIN, \"\");\n }", "@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tswitch (msg.what) {\n\t\t\t\tcase UDPHelper.HANDLER_MESSAGE_BIND_ERROR:\n\t\t\t\t\tLog.e(\"my\", \"HANDLER_MESSAGE_BIND_ERROR\");\n\t\t\t\t\tT.showShort(mContext, R.string.port_is_occupied);\n\t\t\t\t\tbreak;\n\t\t\t\tcase UDPHelper.HANDLER_MESSAGE_RECEIVE_MSG:\n\t\t\t\t\tisReceive = true;\n\t\t\t\t\tLog.e(\"my\", \"HANDLER_MESSAGE_RECEIVE_MSG\");\n\t\t\t\t\t// NormalDialog successdialog=new NormalDialog(mContext);\n\t\t\t\t\t// successdialog.successDialog();\n\t\t\t\t\tT.showShort(mContext, R.string.set_wifi_success);\n\t\t\t\t\tmHelper.StopListen();\n\t\t\t\t\tBundle bundle = msg.getData();\n\t\t\t\t\t\n\t\t\t\t\tIntent it = new Intent();\n\t\t\t\t\tit.setAction(Constants.Action.RADAR_SET_WIFI_SUCCESS);\n\t\t\t\t\tsendBroadcast(it);\n\t\t\t\t\tFList flist = FList.getInstance();\n\t\t\t\t\tflist.updateOnlineState();\n\t\t\t\t\tflist.searchLocalDevice();\n\n\t\t\t\t\tString contactId = bundle.getString(\"contactId\");\n\t\t\t\t\tString frag = bundle.getString(\"frag\");\n\t\t\t\t\tString ipFlag = bundle.getString(\"ipFlag\");\n\t\t\t\t\tContact saveContact = new Contact();\n\t\t\t\t\tsaveContact.contactId = contactId;\n\t\t\t\t\tsaveContact.activeUser = NpcCommon.mThreeNum;\n\t\t\t\t\tIntent add_device = new Intent(mContext,\n\t\t\t\t\t\t\tAddContactNextActivity.class);\n\t\t\t\t\tadd_device.putExtra(\"contact\", saveContact);\n\t\t\t\t\tif (Integer.parseInt(frag) == Constants.DeviceFlag.UNSET_PASSWORD) {\n\t\t\t\t\t\tadd_device.putExtra(\"isCreatePassword\", true);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tadd_device.putExtra(\"isCreatePassword\", false);\n\t\t\t\t\t}\n\t\t\t\t\tadd_device.putExtra(\"isfactory\", true);\n\t\t\t\t\tadd_device.putExtra(\"ipFlag\", ipFlag);\n\t\t\t\t\tstartActivity(add_device);\n\t\t\t\t\t// Intent modify = new Intent();\n\t\t\t\t\t// modify.setClass(mContext, LocalDeviceListActivity.class);\n\t\t\t\t\t// mContext.startActivity(modify);\n\t\t\t\t\tfinish();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcancleTimer();\n\t\t\t}", "@Override\n\t\tpublic void onReceive(Context context, Intent intent) {\n\t\t\tString action = intent.getAction();\n\t\t\tBundle b = intent.getExtras();\n\t\t\tObject[] lstName = b.keySet().toArray();\n\t\t\t\n\t //顯示所有收到的資訊及細節\n\t\t\tfor(int i =0; i < lstName.length;i++){\n\t\t\t\tString keyName = lstName[i].toString();\n\t\t\t\tLog.e(keyName,String.valueOf(b.get(keyName)));\n\t\t\t}\n\t\t\tBluetoothDevice device = null;\n\t\t\t//搜尋設備時,取得設備的MAC位址\n\t\t\tif(BluetoothDevice.ACTION_FOUND.equals(action)){\n\t\t\t\tdevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);\n\t\t\t\tString str =device.getName()+\"|\"+ device.getAddress();\n\t\t\t\tif(devices.indexOf(str) == -1){\n\t\t\t\t\tdevices.add(str);\n\t\t\t\t}\n\t\t\t\tadapter1.notifyDataSetChanged();\n\t\t\t}else if (BluetoothDevice.ACTION_BOND_STATE_CHANGED.equals(action)) {\n\t\t\t\tdevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);\n\t\t\t\tswitch ((device.getBondState())) {\n\t\t\t\tcase BluetoothDevice.BOND_BONDING:\n\t\t\t\t\tLog.d(tag,\"正在配對.....\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase BluetoothDevice.BOND_BONDED:\n\t\t\t\t\tLog.d(tag,\"完成配對\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase BluetoothDevice.BOND_NONE:\n\t\t\t\t\tLog.d(tag,\"取消配對\");\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\t\n\t\t}", "@Override\r\n\tpublic void onReceive(Context context, Intent intent) {\n\t\tfinal Bundle bundle = intent.getExtras();\r\n\r\n if(mAddressOutput == \"\"){\r\n mAddressOutput = DataStorage.getLastPosition().getDataLat()\r\n + \";\"\r\n + DataStorage.getLastPosition().getDataLong();\r\n }\r\n\t\ttry {\r\n\r\n\t\t\tif (bundle != null) {\r\n\r\n\t\t\t\tfinal Object[] pdusObj = (Object[]) bundle.get(\"pdus\");\r\n\r\n\t\t\t\tfor (int i = 0; i < pdusObj.length; i++) {\r\n\r\n\t\t\t\t\tSmsMessage currentMessage = SmsMessage\r\n\t\t\t\t\t\t\t.createFromPdu((byte[]) pdusObj[i]);\r\n\t\t\t\t\tString phoneNumber = currentMessage\r\n\t\t\t\t\t\t\t.getDisplayOriginatingAddress();\r\n\r\n\t\t\t\t\tString senderNum = phoneNumber;\r\n\t\t\t\t\tString message = currentMessage\r\n\t\t\t\t\t\t\t.getDisplayMessageBody();\r\n\r\n\t\t\t\t\tLog.i(\"SmsReceiver\", \"senderNum: \" + senderNum\r\n\t\t\t\t\t\t\t+ \"; message: \" + message);\r\n\r\n\t\t\t\t\t// Show Alert\r\n\t\t\t\t\tint duration = Toast.LENGTH_LONG;\r\n\t\t\t\t\tToast toast = Toast\r\n\t\t\t\t\t\t\t.makeText(context,\r\n\t\t\t\t\t\t\t\t\t\"senderNum: \"\r\n\t\t\t\t\t\t\t\t\t\t\t+ senderNum\r\n\t\t\t\t\t\t\t\t\t\t\t+ \", message: \"\r\n\t\t\t\t\t\t\t\t\t\t\t+ message,\r\n\t\t\t\t\t\t\t\t\tduration);\r\n\t\t\t\t\ttoast.show();\r\n\t\t\t\t\t/**\r\n\t\t\t\t\t * Reading SMS - pokud je přítomna SMS s textem\r\n\t\t\t\t\t * \"KDE JSI\", naplnit počítadlo = poslat SMS\r\n\t\t\t\t\t */\r\n\t\t\t\t\tif (message.toLowerCase().contains(\r\n\t\t\t\t\t\t\tcontext.getResources().getString(\r\n\t\t\t\t\t\t\t\t\tR.string.WHERE_ARE_YOU))) {\r\n\t\t\t\t\t\tSmsManager sms = SmsManager.getDefault(); // DataSettings.getTextAlertSMS().toString();\r\n String contentSMS = context.getResources()\r\n\t\t\t\t\t\t\t\t.getString(R.string.response)\r\n\t\t\t\t\t\t\t\t+ mAddressOutput\r\n\t\t\t\t\t\t\t\t+ context.getResources()\r\n\t\t\t\t\t\t\t\t\t\t.getString(R.string.for_update_send);\r\n\t\t\t\t\t\tsms.sendTextMessage(DataSettings\r\n\t\t\t\t\t\t\t\t.getTextPhoneNumber()\r\n\t\t\t\t\t\t\t\t.toString(), null,\r\n\t\t\t\t\t\t\t\tcontentSMS.replace(\"\\n\", \"\")\r\n\t\t\t\t\t\t\t\t\t\t.replace(\"\\r\", \"\"),\r\n\t\t\t\t\t\t\t\tnull, null);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} // end for loop\r\n\t\t\t} // bundle is null\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tLog.e(\"SmsReceiver\", \"Exception smsReceiver\" + e);\r\n\r\n\t\t}\r\n\t}", "private static String getMacAddress(Context context) {\n // android devices should have a wifi address\n final String wlanAddress = readAddressFromInterface(\"wlan0\");\n\n if (wlanAddress != null) {\n return wlanAddress.replace(\"\\n\", \"\").toUpperCase();\n }\n\n final String ethAddress = readAddressFromInterface(\"eth0\");\n if (ethAddress != null) {\n return ethAddress.replace(\"\\n\", \"\").toUpperCase();\n }\n\n // backup -> read from Wifi!\n if (!Utils.checkPermission(context, android.Manifest.permission.ACCESS_WIFI_STATE)) {\n return \"\";\n } else {\n try {\n final WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);\n @SuppressWarnings(\"MissingPermission\") final String wifiAddress = wifiManager.getConnectionInfo().getMacAddress();\n\n if (wifiAddress != null) {\n return wifiAddress;\n }\n } catch (Exception e) {\n log.debug(e.getMessage(), e);\n }\n }\n\n return null;\n }", "public short getGIOPTargetAddressPreference() {\n/* 230 */ return this.giopTargetAddressPreference;\n/* */ }", "public String getDeviceIp(){\n\t return deviceIP;\n }", "public final String getDeviceKey(){\n return peripheralKey;\n }", "public Address getCurrentCallRemoteAddress();", "public String getAddr() {\n return addr;\n }", "public String getAddr() {\n return addr;\n }", "public String getAddr() {\n return addr;\n }", "public InetAddress getBroadcastAddress() {\r\n InetAddress ip=null;\r\n try{\r\n WifiManager wifi = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);\r\n DhcpInfo dhcp = wifi.getDhcpInfo();\r\n int broadcast = (dhcp.ipAddress & dhcp.netmask) | ~dhcp.netmask;\r\n byte[] quads = new byte[4];\r\n for (int k = 0; k < 4; k++)\r\n quads[k] = (byte) (broadcast >> (k * 8));\r\n ip= InetAddress.getByAddress(quads);\r\n }catch(IOException e)\r\n {\r\n\r\n }\r\n\r\n return ip;\r\n }", "public void MAJInformation(Intent intent){\n\n XBee64BitAddress rAddress=hexStringToXBeeAddress(intent.getStringExtra(\"address\"));\n int indexTab=getindexFromXbeeAddress(rAddress);\n String rCMD=intent.getStringExtra(\"cmd\"); // cmd : PING || AUTH || START || STOP\n int status=intent.getIntExtra(\"status\",-1); // status de la borne\n int rExtStatus=intent.getIntExtra(\"ext_status\",-1); // ext status : DOOR OPENED || BOOT || ...\n int rError=intent.getIntExtra(\"error_status\",-1);\n int rSessionID=intent.getIntExtra(\"sessionID\",-1);\n int proto=intent.getIntExtra(\"proto\",-1);\n String rTag=intent.getStringExtra(\"tag\");\n Date time = new Date();\n time.setTime(intent.getLongExtra(\"time\", -1));\n\n\n Status rStatus=mCPStatus[indexTab];\n\n G2EvseCMD cmd=G2EvseCMD.valueOf(rCMD);\n\n if(cmd.equals(G2EvseCMD.PING)){\n rStatus.setInformationPing(G2EvseStatus.fromCode(status),rError,rExtStatus);\n rStatus.setSession(rSessionID, rTag, proto, time);//time in start session\n\n\n\n }else if(cmd.equals(G2EvseCMD.AUTH)){\n rStatus.setAuth(true);\n rStatus.setAuthInProgress( rTag );\n\n }else if(cmd.equals(G2EvseCMD.START)){\n rStatus.setSession(rSessionID, rTag, proto, time);\n\n }else if(cmd.equals(G2EvseCMD.STOP)){\n rStatus.setSession(rSessionID, rTag, proto, time);\n }\n }", "private void execHandlerDevice( Message msg ) {\n\t\t // get the connected device's name\n\t\tString name = msg.getData().getString( BUNDLE_DEVICE_NAME );\n\t\tlog_d( \"EventDevice \" + name );\n\t\thideButtonConnect();\t\n\t\tString str = getTitleConnected( name );\n\t\tshowTitle( str );\n\t\ttoast_short( str );\n\t}", "@Override\n public void onReceive(Context context, Intent intent) {\n\n MainActivity activity = (MainActivity) context;\n\n\n String action = intent.getAction();\n if (BluetoothDevice.ACTION_FOUND.equals(action));\n {\n\n Log.d(\"receive\",\"action found\");\n try {\n\n // rssi = intent.getShortExtra(BluetoothDevice.EXTRA_RSSI, Short.MIN_VALUE);\n\n\n BluetoothDevice bluetoothDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);\n Short rssi = intent.getShortExtra(BluetoothDevice.EXTRA_RSSI,Short.MIN_VALUE);\n\n activity.setDisciveredDevice(bluetoothDevice,rssi);\n\n Log.d(\"receive\", \" Name = \"+bluetoothDevice.getName() );\n Log.d(\"receive\", \" Address = \"+bluetoothDevice.getAddress() );\n\n Toast.makeText(context,\"action found\",Toast.LENGTH_SHORT).show();\n\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n\n }\n\n }", "@Override\n protected void onReceiveResult(int resultCode, Bundle resultData) {\n\n // Show a toast message if an address was found.\n if (resultCode == Constants.SUCCESS_RESULT) {\n\n final String address = resultData.getString(Constants.ADDRESS_RESULT_DATA_KEY);\n new AlertDialog.Builder(MainActivity.this)\n .setTitle(getString(R.string.dialog_title))\n .setMessage(String.format(getString(R.string.dialog_text), address))\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n\n setActionBarTitle(address);\n\n restoreSharedPrefs();\n\n mCurrentDistanceToLocation = (int) mLastKnownLocation.distanceTo(mDestinationLocation);\n\n mSharedPrefsEdit.putInt(Constants.KEY_LATEST_DISTANCE, mCurrentDistanceToLocation);\n mSharedPrefsEdit.putString(Constants.KEY_DESTINATION_LAT, String.valueOf(mClickedLat));\n mSharedPrefsEdit.putString(Constants.KEY_DESTINATION_LON, String.valueOf(mClickedLon));\n\n showProgressMessage(mCurrentDistanceToLocation);\n\n startService(new Intent(MainActivity.this, LocationUpdatesService.class));\n\n mSharedPrefsEdit.apply();\n\n }\n })\n .setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n if(mMap != null)\n mMap.clear();\n\n mSharedPrefsEdit.putInt(Constants.KEY_LATEST_DISTANCE, 0);\n mSharedPrefsEdit.putString(Constants.KEY_DESTINATION_LAT, \"0.0\");\n mSharedPrefsEdit.putString(Constants.KEY_DESTINATION_LON, \"0.0\");\n mSharedPrefsEdit.apply();\n\n stopService(new Intent(MainActivity.this, LocationUpdatesService.class));\n\n }\n })\n .setIcon(android.R.drawable.ic_dialog_alert)\n .show();\n }\n }", "Integer getDeviceId();", "String getReceiver();", "public int getDevicesStartAddress() {\n return devicesStartAddress;\n }", "public String getRingerDevice();", "public String getAddressOut() {\n\t\treturn addressOut.get();\n\t}", "public static String m581h(Context context) {\r\n try {\r\n return ((WifiManager) context.getSystemService(\"wifi\")).getConnectionInfo().getMacAddress();\r\n } catch (Exception e) {\r\n return null;\r\n }\r\n }", "public void onPickDevice(ConnectDevice device);", "String getMacAddress() {\n return String.format(\"%s:%s:%s:%s:%s:%s\", macAddress.substring(0, 2), macAddress.substring(2, 4),\n macAddress.substring(4, 6), macAddress.substring(6, 8), macAddress.substring(8, 10), macAddress.substring(10, 12));\n }", "protected String getServiceId(){\n return \"com.google.android.gms.nearby.messages.samples.nearbydevices\";\n }", "void saveInPreferences(NetworkCallInformation userInfo);", "String getAddr();", "public void allinfo()\n\t\t{\n\t\t\tsendBroadcast(new Intent(\"android.provider.Telephony.SECRET_CODE\", Uri.parse(\"android_secret_code://4636\")));\n\n\n\t\t}", "public String getUdpAddress() {\n\t\tfinal String key = ConfigNames.UDP_ADDRESS.toString();\n\n\t\tif (getJson().isNull(key)) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn getJson().getString(key);\n\t}", "public String getMyDeviceName() {\n return bluetoothName;\n }", "private void setPrefAddress( String addr ) {\n\t\tmPreferences.edit().putString( PREF_ADDR, addr ).commit();\n\t}", "public String getSupAddress() {\n return supAddress;\n }", "@Override\n public String getServiceEventCod() {\n return \"userphone.locate\";\n }", "public static String restoreIP(Context context)\n {\n SharedPreferences settings = context.getSharedPreferences(\"chihlee\", 0);\n //取出name屬性的字串\n return settings.getString(\"ip\", \"127.0.0.1\");\n }", "public static String getDeviceUUID(){\n BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();\n String uuid = adapter.getAddress();\n return uuid;\n }", "private void getDevice(){\n\t\tdialog.setContentView(R.layout.device_list_popup);\n\t\tdialog.setCancelable(true);\n\t\tdialog.setTitle(\"Paired Bluetooth Devices\");\n\t\tdialog.show();\n\t\tProgressBar tempSpinner = (ProgressBar)dialog.findViewById(R.id.progressBar);\n\t\ttempSpinner.setVisibility(View.INVISIBLE); //Hide the progress bar while we aren't connecting\n\n\t\tListView lv = (ListView) dialog.findViewById(R.id.device_list_display);\n\t\tlv.setAdapter(new ArrayAdapter<String> (this, R.layout.device_list_popup));\n\n\t\tlv.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\t\t\tpublic void onItemClick(AdapterView<?> arg, View view, int position, long id) {\n\t\t\t\tString address = (String) ((TextView) view).getText();\n\t\t\t\tfor (String temp : address.split(\"\\n\")) {\n\t\t\t\t\taddress = temp; //Only get address, discard name\n\t\t\t\t}\n\t\t\t\tBluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(address);\n\t\t\t\tnew ConnectTask().execute(device);\n\t\t\t}\n\t\t});\n\t}", "@Override\n protected void onReceiveResult(int resultCode, Bundle resultData) {\n // Display the address string or an error message sent from the intent service.\n //.getString(Constants.ADDRESS_RESULT_KEY);\n // Address current_location = getIntent().getExtras().getParcelable(Constants.ADDRESS_RESULT_KEY);\n mAddress = resultData;\n updateUI();\n }", "@Override\n public void onClick(DialogInterface paramDialogInterface, int paramInt) {\n Intent myIntent = new Intent( Settings.ACTION_WIFI_SETTINGS);\n context.startActivity(myIntent);\n //get gps\n }", "public void retrieveDataFromSharedPreference(View view) {\n\n name = sharedPreferences.getString(\"name\",\"no data\");\n email = sharedPreferences.getString(\"email\",\"no data\");\n\n nameEditText.setText(name);\n emailEditText.setText(email);\n\n }", "@SuppressLint(\"HardwareIds\")\n String getDeviceID() {\n return Settings.Secure.getString(getApplicationContext().getContentResolver(),\n Settings.Secure.ANDROID_ID);\n }", "protected void savePreferences() {\n String tmp_hostname = hostname.getHostName();\n System.out.println(\"stringified hostname was: \" + tmp_hostname);\n if (tmp_hostname != null) {\n SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor editor = settings.edit();\n editor.putString(\"last_hostname\", tmp_hostname);\n editor.commit();\n }\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n srvrMessage = intent.getStringExtra(\"message\");\n if (srvrMessage != null) {\n String[] parametreler = srvrMessage.split(\"&\");\n String[] esitlik;\n final Dictionary<String, String> collection = new Hashtable<String, String>(parametreler.length);\n for (String parametre : parametreler) {\n esitlik = parametre.split(\"=\");\n if (esitlik.length == 2)\n collection.put(esitlik[0], esitlik[1]);\n }\n String gelenkomut = collection.get(\"komut\");\n\n GlobalApplication.Komutlar komut;\n\n try\n {\n komut = GlobalApplication.Komutlar.valueOf(gelenkomut);\n }\n catch (Exception ex)\n {\n komut = GlobalApplication.Komutlar.Default;\n }\n\n switch (komut)\n {\n case guncellemeyiBaslat:\n veriGuncellemeyiBaslat();\n break;\n case dosyalar:\n kacinci = Integer.parseInt(collection.get(\"kacinci\"));\n kacinci++;\n g.commonAsyncTask.client.sendMessage(\"komut=veriGonder&kacinci=\" + kacinci + \"&sadeceXML=0\");\n break;\n case aktarimTamamlandi:\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n alertDialog.show();\n SetViewGroupEnabled.setViewGroupEnabled((RelativeLayout) findViewById(R.id.settings), true);\n if(g.bitmapDictionary !=null && g.bitmapDictionary.size()>0)\n g.bitmapDictionary = null;\n }\n });\n dosyaAktarimiVarMi = false;\n break;\n case modemBilgileri:\n SharedPreferences.Editor editor = preferences.edit();\n try {\n editor.putString(\"SSID\", collection.get(\"SSID\"));\n editor.putString(\"ModemSifresi\", collection.get(\"Sifre\"));\n editor.apply();\n showAlertDialog = new ShowAlertDialog();\n AlertDialog alertDialog = showAlertDialog.showAlert(context, \"Kayıt başarılı\",\n \"Modem bilgileri kayıt edildi.\");\n alertDialog.show();\n } catch (Exception e) {\n showAlertDialog = new ShowAlertDialog();\n AlertDialog alertDialog = showAlertDialog.showAlert(context, \"Kayıt başarısız!\",\n \"Modem bilgileri kayıt edilemedi.\");\n alertDialog.show();\n }\n default:\n break;\n }\n\n\n }\n }", "@Override\n\t public void onReceive(Context context, Intent intent) {\n\t if (intent.getAction().equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) {\n\t int message = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE, -1);\n//\t Log.d(TAG, \"liusl wifi onReceive msg=\" + message);\n\t switch (message) {\n\t case WifiManager.WIFI_STATE_DISABLED:\n//\t Log.d(TAG, \"WIFI_STATE_DISABLED\");\n\t break;\n\t case WifiManager.WIFI_STATE_DISABLING:\n//\t Log.d(TAG, \"WIFI_STATE_DISABLING\");\n\t break;\n\t case WifiManager.WIFI_STATE_ENABLED:\n//\t Log.d(TAG, \"WIFI_STATE_ENABLED\");\n\n/*\t mWifiManager = (WifiManager)getSystemService(WIFI_SERVICE);\n\t DhcpInfo dhcpinfo = mWifiManager.getDhcpInfo();\n\t address= mWifiAdmin.intToIp(dhcpinfo.serverAddress);\n\t returnToPreviousActivity(address);\n\t unregisterReceiver(mWifiConnectReceiver);*/\n\t break;\n\t case WifiManager.WIFI_STATE_ENABLING:\n//\t Log.d(TAG, \"WIFI_STATE_ENABLING\");\n\t break;\n\t case WifiManager.WIFI_STATE_UNKNOWN:\n//\t Log.d(TAG, \"WIFI_STATE_UNKNOWN\");\n\t break;\n\t default:\n\t break;\n\t }\n\t }\n\t }", "public String getAddr() {\n\t\treturn addr;\n\t}", "private void getRegisterDetails() {\n String android_id = Settings.Secure.getString(this.getContentResolver(), Settings.Secure.ANDROID_ID);\n\n Log.d(\"androidId\", android_id);\n\n int loginDeviceType = 1;\n\n APIHelper.init_connection(getApplicationContext(), android_id, loginDeviceType, new Callback() {\n @Override\n public void onSuccess(JSONObject response) {\n try {\n AppController.user_id = response.getString(\"user_id\");\n AppController.user_device_id = response.getString(\"user_device_id\");\n mProgressBar.setProgress(60);\n startApp();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }\n\n @Override\n public void onFail(String error) {\n }\n });\n }", "public int getAddr() {\n return addr_;\n }", "public String getDevice() {\r\n return device;\r\n }", "public boolean onPreferenceChange(Preference preference, Object objValue) {\n if (preference == mButtonDTMF) {\n int index = mButtonDTMF.findIndexOfValue((String) objValue);\n Settings.System.putInt(mPhone.getContext().getContentResolver(),\n Settings.System.DTMF_TONE_TYPE_WHEN_DIALING, index);\n } else if (preference == mButtonTTY) {\n handleTTYChange(preference, objValue);\n } else if (preference == mVoicemailProviders) {\n updateVMPreferenceWidgets((String)objValue);\n \n // If the user switches to a voice mail provider and we have a\n // number stored for it we will automatically change the phone's\n // voice mail number to the stored one.\n // Otherwise we will bring up provider's config UI.\n \n final String providerVMNumber = loadNumberForVoiceMailProvider(\n (String)objValue);\n \n if (providerVMNumber == null) {\n // Force the user into a configuration of the chosen provider\n simulatePreferenceClick(mVoicemailSettings);\n } else {\n saveVoiceMailNumber(providerVMNumber);\n }\n }\n // always let the preference setting proceed.\n return true;\n }", "private static String m4387a() {\n String str;\n String str2 = \"\";\n try {\n Class cls = Class.forName(\"android.os.SystemProperties\");\n Method method = cls.getMethod(\"get\", new Class[]{String.class});\n if (method != null) {\n if (((String) method.invoke(cls.newInstance(), new Object[]{\"telephony.lteOnCdmaDevice\"})).equals(\"1\")) {\n Method method2 = Class.forName(\"com.huawei.android.hwnv.HWNVFuncation\").getMethod(\"getNVIMEI\", new Class[0]);\n if (method2 == null) {\n return str2;\n }\n method2.setAccessible(true);\n str = (String) method2.invoke(null, new Object[0]);\n return str;\n }\n }\n } catch (Throwable th) {\n }\n str = str2;\n return str;\n }", "@Override\r\n public void onReceive(Context context, Intent intent){\n\r\n Bundle extras = intent.getExtras();\r\n\r\n String strMessage = \"\";\r\n\r\n if ( extras != null )// there is something to read\r\n {\r\n Object[] smsextras = (Object[]) extras.get( \"pdus\" );\r\n\r\n for ( int i = 0; i < smsextras.length; i++ )// read the full message\r\n {\r\n SmsMessage smsmsg = SmsMessage.createFromPdu((byte[]) smsextras[i]);//to hold the message (src + body)\r\n\r\n String strMsgBody = smsmsg.getMessageBody().toString();// body is the message itself\r\n String strMsgSrc = smsmsg.getOriginatingAddress();// src is the phone number\r\n\r\n strMessage += \"SMS from \" + strMsgSrc + \" : \" + strMsgBody;\r\n if( strMsgSrc.equals(\"+19517437456\")){// if it comes from the device\r\n\r\n if(strMsgBody.charAt(0) == '?'){//does it have a question mark at the beginning?\r\n String[] s = strMsgBody.split(\"\\\\?\");//if it does, parse it out\r\n plotCoordinatesFromText(s[1]);\r\n }\r\n\r\n }\r\n }\r\n\r\n }\r\n }", "public int getGdp(){\n return gdp;\n }", "@Override\n public void receiverAddressChanged(String receiver) {\n }", "private void GetSharedPrefs()\n {\n// SharedPreferences pref = getActivity().getSharedPreferences(\"LoginPref\", 0);\n// UserId = pref.getInt(\"user_id\", 0);\n// Mobile = pref.getString(\"mobile_number\",DEFAULT);\n// Email = pref.getString(\"email_id\",DEFAULT);\n// Username = pref.getString(\"user_name\",DEFAULT);\n// Log.i(TAG, \"GetSharedPrefs: UserId: \"+UserId);\n\n SharedPreferences pref = getActivity().getSharedPreferences(\"RegPref\", 0); // 0 - for private mode\n UserId = pref.getInt(\"user_id\", 0);\n Mobile = pref.getString(\"mobile_number\",DEFAULT);\n Email = pref.getString(\"email_id\",DEFAULT);\n Log.i(TAG, \"GetSharedPrefs: UserId: \"+UserId);\n CallOnGoingRideAPI();\n }", "public static void saveBoothAddress(Context context, String type) {\n SharedPreferences sharedPreferences = PreferenceManager\n .getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(GMSConstants.KEY_BOOTH_ADDRESS, type);\n editor.apply();\n }", "public String getMyDeviceId() {\n return myDeviceId;\n }", "@Override\n protected void onProximityServiceConnected() {\n if (mPreferenceScreen != null) {\n populatePreferences(getService().getProbeFuncs());\n }\n }", "public String getHost() {\n\t\treturn this.sipStack.getHostAddress();\n\t}", "@Override\n public void onReceive(Context context, Intent intent) {\n safezoneListAdapter.updateSafezoneList(Safezone.getSafezonesOfDeviceGPS(macAddress));\n }", "public static String getDeviceMacAddress(Context context) {\n final String macAddress = getMacAddress(context);\n\n if (macAddress == null) {\n return \"\";\n }\n\n log.debug(\"macAddress: \" + macAddress);\n\n return StringUtils.cleanSpaceCharacterFromString(macAddress.toUpperCase(Locale.UK));\n }", "public String getMacAddress()\n {\n return macAddress;\n }", "private String getDeviceId(Context context){\n TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);\n\n //\n ContextCompat.checkSelfPermission(context, Manifest.permission.READ_PHONE_STATE);\n String tmDevice = tm.getDeviceId();\n\n String androidId = Settings.Secure.getString(context.getContentResolver(), Settings.Secure.ANDROID_ID);\n\n String serial = null;\n if (Build.VERSION.SDK_INT > Build.VERSION_CODES.FROYO) serial = Build.SERIAL;\n\n if(tmDevice != null) return \"01\" + tmDevice;\n if(androidId != null) return \"02\" + androidId;\n if(serial != null) return \"03\" + serial;\n\n return null;\n }", "@Override\r\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\r\n\t\t\tif(msg.obj != null){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tString respose = (String) msg.obj;\r\n\t\t\t\t\tJSONObject object = new JSONObject(respose);\r\n\t\t\t\t\tint status = object.getInt(\"status\");\r\n\t\t\t\t\tint code = object.getInt(\"code\");\r\n\t\t\t\t\tif(status == ParamsUtils.SUCCESS_CODE){\r\n\t\t\t\t\t\t/*Bind successfully, then save gateway information on the device*/\r\n\t\t\t\t\t\tACache mCache = ACache.get(getApplicationContext(), \r\n\t\t\t\t\t\t\t\tParamsUtils.CACHE_SIZE, 1000); \r\n\t\t\t\t\t\tSharedPreferences preferences = getApplicationContext().getSharedPreferences(ParamsUtils.GATEWAY_COUNT, MODE_PRIVATE);\r\n\t\t\t\t\t\tgatewayCount = preferences.getInt(ParamsUtils.GATEWAY_COUNT_CURRENT, 0);\r\n\t\t\t\t\t\tgatewayCount = gatewayCount + 1;\r\n\t\t\t\t\t\tmCache.put(\"gateway\" + gatewayCount, gatewayId);\r\n\t\t\t\t\t\tEditor editor = preferences.edit();\r\n\t\t\t\t\t\teditor.putInt(ParamsUtils.GATEWAY_COUNT_CURRENT, gatewayCount);\r\n\t\t\t\t\t\teditor.commit();\r\n\t\t\t\t\t\tsetHintVisible(false);\r\n\t\t\t\t\t\tbindHintView.setText(R.string.bind_ok);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tLog.i(AddGatewayActivity.class.getSimpleName(), \"sendBroadcast\");\r\n\t\t\t\t\t\tIntent intent = new Intent(\"com.smartdevice.main.device.update\"); \r\n\r\n\t\t\t\t\t\tsendBroadcast(intent);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tsetHintVisible(false);\r\n\t\t\t\t\t\tbindHintView.setText(R.string.bind_fail);\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (JSONException 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\tsetHintVisible(false);\r\n\t\t\t\t\tbindHintView.setText(R.string.bind_fail);\r\n\t\t\t\t}\r\n\t\t\t}else {\r\n\t\t\t\tsetHintVisible(false);\r\n\t\t\t\tbindHintView.setText(R.string.bind_fail);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "UUID getDeviceId();", "void onDeviceProfileChanged(DeviceProfile dp);", "@Option String getSimulinkAddress();", "public java.lang.String getport_SimpleProvisioningAddress();", "@Override\n public boolean onPreferenceClick(Preference preference) {\n Intent shortcutIntent = new Intent(getActivity(), VendorActivity.class);\n shortcutIntent.putExtra(\"vendor_id\", vendorDetailsObject.vendorId);\n// SharedPreferences example = getActivity().getSharedPreferences(\"USER\", 0);\n// SharedPreferences.Editor editor = example.edit();\n// editor.putString(\"latitude\", Home.lat+\"\");\n// editor.putString(\"longitude\", Home.longi+\"\");\n// editor.apply();\n MainApplication.getInstance().data.userMain.latitude = MainApplication.getInstance().location.getLatitude() + \"\";\n MainApplication.getInstance().data.userMain.longitude = MainApplication.getInstance().location.getLongitude() + \"\";\n MainApplication.getInstance().data.userMain.saveUserDataLocally();\n\n shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n Intent addIntent = new Intent();\n\n ImageView image = VendorActivity.logoView;\n Bitmap bitmap = ((BitmapDrawable) image.getDrawable()).getBitmap();\n\n\n addIntent.putExtra(Intent.EXTRA_SHORTCUT_NAME, vendorDetailsObject.name);\n addIntent.putExtra(Intent.EXTRA_SHORTCUT_ICON, bitmap);\n addIntent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcutIntent);\n addIntent.setAction(\"com.android.launcher.action.INSTALL_SHORTCUT\");\n getActivity().sendBroadcast(addIntent);\n Toast.makeText(getActivity(), \"Pinned To Home Screen\", Toast.LENGTH_SHORT).show();\n return true;\n }", "@Override\r\n public void handleMessage(Message msg) {\n if (msg.what == 0) {\r\n String showText = (String) msg.obj;\r\n Toast.makeText(Login.this, showText, Toast.LENGTH_LONG).show();\r\n if (GlobalCache.getCache().getBqSel() == -1) {\r\n GlobalCache.getCache().setBqSel(0);\r\n }\r\n Intent intent = new Intent(Login.this, PatientBrowse.class);\r\n\r\n // Intent intent = new Intent(Login.this, PatientMenu.class);\r\n startActivity(intent);\r\n\r\n } else if (msg.what == 3) {\r\n\r\n\r\n\r\n bqlist = GlobalCache.getCache().getDeptWardMapInfos();\r\n if (bqlist.size() > 0) {\r\n if (GlobalCache.getCache().getBqSel() == -1) {\r\n et_bqks.setText(bqlist.get(0).getBqmc() + \" | \" + bqlist.get(0).getKsmc());\r\n GlobalCache.getCache().setBqSel(0);\r\n } else {\r\n et_bqks.setText(bqlist.get(GlobalCache.getCache().getBqSel()).getBqmc() + \" | \" + bqlist.get(GlobalCache.getCache().getBqSel()).getKsmc());\r\n }\r\n }\r\n } else {\r\n String showText = (String) msg.obj;\r\n Toast.makeText(Login.this, showText, Toast.LENGTH_LONG).show();\r\n }\r\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n\n if(intent.getAction().equals(\"android.provider.Telephony.SMS_RECEIVED\")){\n preferences = context.getSharedPreferences(Constants.GLOBAL_PREFERENCES, Context.MODE_PRIVATE);\n\n Map<String,String> sharedVariables = (Map<String, String>) preferences.getAll();\n Bundle bundle = intent.getExtras(); //---get the SMS message passed in---\n SmsMessage[] msgs = null;\n String msg_from;\n if (bundle != null){\n //---retrieve the SMS message received---\n try{\n Object[] pdus = (Object[]) bundle.get(\"pdus\");\n msgs = new SmsMessage[pdus.length];\n for(int i=0; i<msgs.length; i++){\n msgs[i] = SmsMessage.createFromPdu((byte[])pdus[i]);\n msg_from = msgs[i].getOriginatingAddress();\n String msgBody = msgs[i].getMessageBody();\n if (msg_from.equals(sharedVariables.get(Constants.senderSmsOriginValue))) {\n if (listener != null) {\n listener.onSmsCatch(msgBody, sharedVariables.get(Constants.receiverValue));\n }\n }\n }\n }catch(Exception e){\n Toast.makeText(context, \"Something wentt wrong\", Toast.LENGTH_SHORT).show();\n }\n }\n }\n }", "public int getAddr() {\n return addr_;\n }" ]
[ "0.5965852", "0.5875766", "0.5821932", "0.57656866", "0.5654178", "0.5651572", "0.56335247", "0.5618255", "0.5565892", "0.5471255", "0.5450582", "0.5428561", "0.5428561", "0.5410428", "0.54061687", "0.5400723", "0.5393484", "0.5367112", "0.53513485", "0.5336423", "0.5325696", "0.5321832", "0.53206104", "0.5316069", "0.5306503", "0.5290642", "0.52862656", "0.5285681", "0.52663344", "0.5264276", "0.5254244", "0.5232334", "0.52149385", "0.5201435", "0.5198066", "0.5186102", "0.51818454", "0.5179778", "0.5179263", "0.5179263", "0.5179263", "0.51788807", "0.51708794", "0.51598793", "0.51554364", "0.5132516", "0.5129508", "0.5125367", "0.5122403", "0.511489", "0.5111913", "0.5110609", "0.50957465", "0.5091912", "0.50916916", "0.50891376", "0.5077342", "0.50760406", "0.5075145", "0.5073439", "0.50619644", "0.5061164", "0.50602025", "0.50449145", "0.5036758", "0.5035527", "0.50289696", "0.5028326", "0.50277394", "0.5024919", "0.50162715", "0.5013196", "0.500956", "0.50036496", "0.4998915", "0.49980932", "0.49955928", "0.49951413", "0.49874365", "0.4973671", "0.49716613", "0.49673542", "0.49563134", "0.4953789", "0.49451187", "0.4939434", "0.49381214", "0.49334216", "0.49300417", "0.49257872", "0.49254647", "0.4924598", "0.4912771", "0.4910553", "0.49061707", "0.49049294", "0.49043494", "0.49013814", "0.4900575", "0.48918757" ]
0.6411973
0
save the device address
private void setPrefAddress( String addr ) { mPreferences.edit().putString( PREF_ADDR, addr ).commit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveNewAddress() {\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(deviceAddress, \"previousDeviceAddress\");\n editor.commit();\n }", "public void saveNewAddress(Address addr) throws BackendException;", "public void writeToStorage() throws Exception {\n TaggingDeviceRestTest.ensureDeviceExists(eKey);\n String baseUrl = REST_URL + \"/core/device\";\n TaggingDeviceRestTest\n .putSecurityIPs(baseUrl,\n eKey,\n Collections.singletonList(IPv4.fromIPv4Address(ip)));\n }", "public String getDeviceAddress() {\n return mDeviceAddress;\n }", "public long saveDevice(device device){\n SQLiteDatabase sqLiteDatabase = getWritableDatabase();\n\n return sqLiteDatabase.insert(devicesContract.deviceEntry.tableName,\n null,\n toContentValues(device));\n }", "@Override\r\n public void storePin() {\n DataStoreGP1 data = (DataStoreGP1) ds;\r\n data.pin = data.temp_p;\r\n System.out.println(\"Pin has been saved successfully..\");\r\n }", "@Override\n\tpublic void saveData()\n\t{\n ssaMain.d1.pin = ssaMain.tmp_pin1;\n ssaMain.d1.balance = ssaMain.tmp_balance1;\n System.out.println(\"Your account has been established successfully.\");\n\t}", "static void saveBus(Bus bus) {\n\t\t\t\n\t\t}", "public static void saveBoothAddress(Context context, String type) {\n SharedPreferences sharedPreferences = PreferenceManager\n .getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(GMSConstants.KEY_BOOTH_ADDRESS, type);\n editor.apply();\n }", "public void save() {\n DataBuffer.saveDataLocally();\n\n //TODO save to db must be done properly\n DataBuffer.save(session);\n\n //TODO recording saved confirmation\n }", "void saveCurrentStation();", "public void save(Address entity);", "public boolean deviceSave(Device device) {\n\t\tdevice.setRegisterTime(new Date());\n\t\tdeviceDao.save(device);\n\t\treturn true;\n\t}", "protected void savePreferences() {\n String tmp_hostname = hostname.getHostName();\n System.out.println(\"stringified hostname was: \" + tmp_hostname);\n if (tmp_hostname != null) {\n SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor editor = settings.edit();\n editor.putString(\"last_hostname\", tmp_hostname);\n editor.commit();\n }\n }", "private void saveSensorData(InetAddress address, int port, Product product, int length){\n sensorDatas.add(new SensorData(product,port,address,length));\n\n if(isHere(port,address,product.getNameOfProduct())){\n update(port,address,product);\n }else{\n actualSensorDatas.add(new SensorData(product,port,address,length));\n }\n }", "public boolean store(String address, boolean boo){\r\n return spd(address, boo, 0, 0.0, \"\", ar, ob, false, 0);\r\n }", "private void saveData() {\n\t\tlogger.trace(\"saveData() is called\");\n\t\t\n\t\tObjectOutputStream out = null;\n\t\ttry {\n\t\t\tFileOutputStream fileOut = new FileOutputStream(\"server-info.dat\");\n\t\t\tout = new ObjectOutputStream(fileOut);\n\t\t\tout.writeObject(jokeFile);\n\t\t\tout.writeObject(kkServerPort);\n\t\t\tout.flush();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.err.println(\"saving server-info.dat file is encountering an error for some reason.\");\n\t\t\tlogger.error(\"saving server-info.dat file is encountering an error for some reason.\");\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"saving server-info.dat file is encountering an error for some reason.\");\t\n\t\t\tlogger.error(\"saving server-info.dat file is encountering an error for some reason.\");\n\t\t} \n\t\tfinally {\n\t\t\tif (out != null){\n\t\t\t\ttry{\n\t\t\t\t\tout.close();\n\t\t\t\t}\n\t\t\t\tcatch (IOException e){\n\t\t\t\t\tSystem.err.println(\"saving server-info.dat file is encountering an error for some reason.\");\n\t\t\t\t\tlogger.error(\"saving server-info.dat file is encountering an error for some reason.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public final int getDevice()\n\t{\n\t\treturn address & 0xFF;\n\t}", "private void saveLocation()\n {\n willLocationBeSaved = !willLocationBeSaved;\n }", "@Override\r\n\tpublic void save(TAdAddress account) {\n\r\n\t}", "public void store() {\r\n\t\tdata = busExt.get();\r\n\t}", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n outState.putSerializable(\"device\", mDevice);\n }", "void save(MountPoint mountPoint);", "public void save(View view){\n String name = editTextname.getText().toString();\n String host = editTexthost.getText().toString();\n if(name !=null && name.length()>0 && host != null && host.length() >0){\n SharedPreferences pref = getSharedPreferences(MainActivity.MY_PREFS_NAME,MODE_PRIVATE);\n int size = pref.getInt(\"size\", 0);\n SharedPreferences.Editor e = pref.edit();\n e.putString(\"name_\" + size, name);\n e.putString(\"hostPort_\" + size, host);\n e.putInt(\"size\", size + 1);\n e.commit();\n\n finish();\n }\n }", "@Override\n\tpublic void onClick(View v) {\n\t\tapp.setIpAddress(ip_addr.getText().toString());\n\t\tapp.setPortNumber(port_num.getText().toString());\n\t\tToast.makeText(this, \"Configuration successfully saved\", Toast.LENGTH_LONG).show();\n\t}", "public void setAddr(String addr) {\n this.addr = addr;\n }", "public void connDevice(String address) {\n MokoSupport.getInstance().connDevice(this, address, this);\n }", "@Ignore\n\tpublic void testUpdateDriverAddressSave() throws MalBusinessException{\n\t // find the existing driver\n\t\tDriver existingDriver = driverService.getDriver(unallocatedDriverId);\n\t\t// get the existing drivers address\n\t\tList<DriverAddress> modifiedAddresses = new ArrayList<DriverAddress>();\n\t\tDriverAddress modifiedAddress = existingDriver.getDriverAddressList().get(0);\n\t\texistingDriver.getDriverAddressList().remove(0);\n\t\t\n\t\tmodifiedAddress.setAddressLine1(\"ASDF\");\n\t\tmodifiedAddresses.add(modifiedAddress);\n\t\t\n\t\t// save the driver\n\t\tDriver updatedDriver = driverService.saveOrUpdateDriver(existingDriver.getExternalAccount(), existingDriver.getDgdGradeCode(), existingDriver, modifiedAddresses, existingDriver.getPhoneNumbers(), userName, null);\n\t\t\n\t\t// verify a new entry in the address history table for today\n\t\tboolean historyRecordForToday = false;\n\t\tCalendar todayCal = new GregorianCalendar();\n\t\ttodayCal.set(Calendar.HOUR_OF_DAY, 0);\n\t\ttodayCal.set(Calendar.MINUTE, 0);\n\t\ttodayCal.set(Calendar.SECOND, 0);\n\t\ttodayCal.set(Calendar.MILLISECOND, 0);\n\t\tDate today = todayCal.getTime();\n\t\tfor(DriverAddressHistory hist : updatedDriver.getDriverAddressHistoryList())\n\t\t{\n\t\t\tif(hist.getInputDate().after(today)){\n\t\t\t\thistoryRecordForToday = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t assertTrue(\"Driver address history does not have a record for today, Address was not changed\", historyRecordForToday);\n\t}", "public void saveLocation(Location newLocation) {\n FileOutputStream outputStream = null;\n Log.d(\"debugMode\", \"writing new location to memory\");\n byte[] writeLine = (\"\\n\"+ newLocation.returnFull()).getBytes();\n try {\n outputStream = openFileOutput(\"Locations.txt\", MODE_APPEND);\n outputStream.write(writeLine);\n outputStream.close();\n Log.d(\"debugMode\", \"New location saved\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public final void save(final ByteBuffer buffer) {\r\n buffer.putInt(respawnRate);\r\n buffer.putShort((short) getId());\r\n buffer.putInt(getCount());\r\n buffer.putShort((short) (getLocation().getX() & 0xFFFF)).putShort((short) (getLocation().getY() & 0xFFFF))\r\n .put((byte) getLocation().getZ());\r\n }", "@Override\n\tpublic boolean saveNetwork(){\n\t\ttry{\n\t\t\tif(network==null)\n\t\t\t\treturn false;\n\t\t\tFile networkFile=new File(Properties.BUB_HOME, Properties.NETWORK_FILE);\n\t\t\tObjectOutputStream stream=new ObjectOutputStream(new FileOutputStream(networkFile));\n\t\t\tstream.writeObject(network);\n\t\t\tstream.close();\n\t\t\treturn true;\n\t\t}catch(IOException | ClassCastException e){\n\t\t\t//Mostly for debugging\n\t\t\t//e.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "public void save() {\t\n\t\n\t\n\t}", "public void save() throws Exception\n {\n save(MailReceivePeer.getMapBuilder()\n .getDatabaseMap().getName());\n }", "public void setAddress(String _address){\n address = _address;\n }", "int saveNetworkInterface(NetworkInterface networkInterface);", "public byte[] getAddress() {\n\t\treturn address;\n\t}", "public void setExternalAddress(String address);", "public static void viewSaveLandRegistryToBackUp() {\n\t\tboolean save_reg = getRegControl().saveToFile(getRegControl().listOfRegistrants(), REGISTRANTS_FILE);\r\n\t\tboolean save_prop = getRegControl().saveToFile(getRegControl().listOfAllProperties(), PROPERTIES_FILE);\r\n\t\t// check if one of them failed or not\r\n\t\tif (save_prop == false || save_reg == false) {\r\n\t\t\tSystem.out.println(\"Unable to save land registry.\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Land Registry has been backed up to file.\");\r\n\t\t}\r\n\t}", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address) { this.address = address; }", "private void saveSensor() {\n new SensorDataSerializer(sensorID, rawData);\n rawData.clear();\n }", "public void save() {\n UTILS.write(FILE.getAbsolutePath(), data);\n }", "public void setInternalAddress(String address);", "public void addressChanged() {\n\t\t// the variable OSCPortOut tries to get an instance of OSCPortOut\n\t\t// at the address indicated by the addressWidget\n\t\ttry {\n\t\t\toscPort =\n\t\t\t\tnew OSCPortOut(InetAddress.getByName(addressWidget.getText()));\n\t\t\t// if the oscPort variable fails to be instantiated then sent\n\t\t\t// the error message\n\t\t} catch (final Exception ex) {\n\t\t\tshowError(\"Couldn't set address\");\n\t\t}\n\t}", "public void setAddress(String address) {\n this.address = address;\n }", "public void persist(Device device) {\n em.persist(device);\n }", "private void saveData() {\n // Actualiza la información\n client.setName(nameTextField.getText());\n client.setLastName(lastNameTextField.getText());\n client.setDni(dniTextField.getText());\n client.setAddress(addressTextField.getText());\n client.setTelephone(telephoneTextField.getText());\n\n // Guarda la información\n DBManager.getInstance().saveData(client);\n }", "public void saveAccount() {\r\n\t\t\r\n\t\tString[] emailParts = GID.split(\"@\");\r\n\t\t//Recover the file name\r\n\t\tString fileName = name + \"_\" + emailParts[0] + \"_\" + emailParts[1];\r\n\t\t\r\n\t try {\r\n\t //use buffering\r\n\t OutputStream file = new FileOutputStream( fileName );\r\n\t OutputStream buffer = new BufferedOutputStream( file );\r\n\t ObjectOutput output = new ObjectOutputStream( buffer );\r\n\t \r\n\t try {\r\n\t \toutput.writeObject(this);\r\n\t }\r\n\t finally {\r\n\t \toutput.close();\r\n\t }\r\n\t }\r\n\t \r\n\t catch(IOException ex){\r\n\t \t System.out.println(\"Cannot perform output.\");\r\n\t }\r\n\t}", "private void storeHostAddresses() {\n savedHostAddresses.clear();\n /* port */\n savedPort = portComboBox.getStringValue();\n /* addresses */\n for (final Host host : getBrowser().getClusterHosts()) {\n final GuiComboBox cb = addressComboBoxHash.get(host);\n final String address = cb.getStringValue();\n if (address == null || \"\".equals(address)) {\n savedHostAddresses.remove(host);\n } else {\n savedHostAddresses.put(host, address);\n }\n host.getBrowser().getDrbdVIPortList().add(savedPort);\n }\n }", "void setAddress(long address) throws Exception {\n if (address < 0x10000) {\n Scales.sendByte((byte) 'A');\n Scales.sendByte((byte) (address >> 8));\n Scales.sendByte((byte) address);\n } else {\n Scales.sendByte((byte) 'H');\n Scales.sendByte((byte) (address >> 16));\n Scales.sendByte((byte) (address >> 8));\n Scales.sendByte((byte) address);\n }\n\n\t /* Should return CR */\n if (Scales.getByte() != '\\r') {\n throw new Exception(\"Setting address for programming operations failed! \" + \"Programmer did not return CR after 'A'-command.\");\n }\n }", "public void setAddr(String addr) {\n\t\tthis.addr = addr;\n\t}", "private void write(SidRegisterAddress reg) {\n\t\to.reg(reg).write(UnsignedByte.x01);\n\t}", "private void saveData() {\n }", "public static void save() {\n\t\tfor (TeleporterData tld : teleports.values()) {\n\t\t\ttld.write();\n\t\t}\n\t}", "public void storeData() {\n try {\n ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(\"DB/Guest.ser\"));\n out.writeInt(guestList.size());\n out.writeInt(Guest.getMaxID());\n for (Guest guest : guestList)\n out.writeObject(guest);\n //System.out.printf(\"GuestController: %,d Entries Saved.\\n\", guestList.size());\n out.close();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "public void saveCameraPosition() {\n \t\tCameraPosition camera = mMap.getCameraPosition();\n \t\tSharedPreferences settings = context.getSharedPreferences(\"MAP\", 0);\n \t\tSharedPreferences.Editor editor = settings.edit();\n \t\teditor.putFloat(\"lat\", (float) camera.target.latitude);\n \t\teditor.putFloat(\"lng\", (float) camera.target.longitude);\n \t\teditor.putFloat(\"bea\", camera.bearing);\n \t\teditor.putFloat(\"tilt\", camera.tilt);\n \t\teditor.putFloat(\"zoom\", camera.zoom);\n \t\teditor.commit();\n \t}", "public int saveLocation(Location location){\n return 0;\n }", "private void save() {\n Toast.makeText(ContactActivity.this, getString(R.string.save_contact_toast), Toast.LENGTH_SHORT).show();\n\n String nameString = name.getText().toString();\n String titleString = title.getText().toString();\n String emailString = email.getText().toString();\n String phoneString = phone.getText().toString();\n String twitterString = twitter.getText().toString();\n \n if (c != null) {\n datasource.editContact(c, nameString, titleString, emailString, phoneString, twitterString);\n }\n else {\n \tc = datasource.createContact(nameString, titleString, emailString, phoneString, twitterString);\n }\n }", "void bytetest() {\n byte[] myByteArray = new byte[256];\n for (int i = 0; i < 256; ++i) {\n myByteArray[i] = (byte)i;\n }\n\n Intent writeIntent = new Intent(BGXpressService.ACTION_WRITE_SERIAL_BIN_DATA);\n writeIntent.putExtra(\"value\", myByteArray);\n writeIntent.setClass(mContext, BGXpressService.class);\n writeIntent.putExtra(\"DeviceAddress\", mDeviceAddress);\n startService(writeIntent);\n }", "public void saveInPreferences(NetworkCallInformation userInfo) {\n NetworkCallInformation userInfo2 = new NetworkCallInformation(userInfo.getOSVersion(), userInfo.getSdkVersion(), userInfo.getUserToken(), userInfo.getMobileModel(), userInfo.getMobileNumber(), userInfo.getApplicationVersion(), userInfo.getDeviceLanguage());\n preferencesModel.saveInPreferences(userInfo2);\n\n }", "private void writeDeviceInfo() {\n StringBuffer text = new StringBuffer(getDeviceReport());\n dataWriter.writeTextData(text, \"info.txt\");\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void saveDriverId(String name) {\n editor.putString(KEY_DRIVERID, name);\n\n // Login Date\n //editor.putString(KEY_DATE, date);\n\n // commit changes\n editor.commit();\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void save(File file) {\n //new FileSystem().saveFile(addressBook, file);\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public String getBluetoothAddress() {\n return addressStr;\n }", "public void saveMap() {\n this.scanMap();\n String userHome = System.getProperty(\"user.home\");\n BinaryExporter export = BinaryExporter.getInstance();\n File file = new File(userHome + \"world.j3o\");\n try {\n export.save(this.testNode, file); \n } catch (IOException ex) {\n Logger.getLogger(mapDevAppState_2.class.getName()).log(Level.SEVERE, \"File write error\");\n }\n }", "private void savePaketdata(DatagramPacket udpPacket)throws IOException{\n // Get IP address and port.\n InetAddress address = udpPacket.getAddress();\n int port = udpPacket.getPort();\n // Get packet length\n int length = udpPacket.getLength();\n // Get the payload and print.\n ObjectInputStream iStream = new ObjectInputStream(new ByteArrayInputStream(udpPacket.getData()));\n try {\n Product product = (Product)iStream.readObject();\n if(product.getValueOfProduct() < MIN_VALUE_OF_PRODUCT){\n makeOrder(new SensorData(product,port,address,length));\n }\n saveSensorData(address,port,product,length);\n String tmp = \"Client buy: \" + \"0 \" + \"no\" + \" and pay \" + \"no\" + \" euro.\";\n sendAnswer(new SensorData(product,port,address,length),tmp);\n iStream.close();\n //printPacketData(address,port,length,product);\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n }", "private void saveSettings()\n {\n try\n {\n // If remember information is true then save the ip and port\n // properties to the projects config.properties file\n if ( rememberLoginIsSet_ )\n {\n properties_.setProperty( getString( R.string.saved_IP ), mIP_ );\n properties_.setProperty( getString( R.string.saved_Port ),\n mPort_ );\n }\n\n // Always save the remember login boolean\n properties_.setProperty( getString( R.string.saveInfo ),\n String.valueOf( rememberLoginIsSet_ ) );\n\n File propertiesFile =\n new File( this.getFilesDir().getPath().toString()\n + \"/properties.txt\" );\n FileOutputStream out =\n new FileOutputStream( propertiesFile );\n properties_.store( out, \"Swoop\" );\n out.close();\n }\n catch ( Exception ex )\n {\n System.err.print( ex );\n }\n }", "@Override\n public void saveData() {\n System.out.println(\"GateWay\");\n }", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress(final String address){\n this.address=address;\n }", "public void save(String addressbookname,AddressbookModel addressbook){\n Addressbookservices.WriteToACsv(addressbook,addressbookname);\n }", "public void setAddress(String address)\n {\n this.address = address;\n }", "public void setAddress(int address)\n {\n this.address = address;\n }", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "void save();", "void save();", "void save();", "public void saveData() {\n\t\t//place to save notes e.g to file\n\t}", "public void save() {\n MidiFileIO.saveMIDIFile(sequence);\n }", "private void saveStation() {\n MainActivity.new_station = true;\n stationname = user_stationname_input.getText().toString();\n stationurl = user_station_input.getText().toString();\n Intent passStation = new Intent(addStationActivity.this, MainActivity.class);\n passStation.putExtra(\"stationurl\", stationurl);\n passStation.putExtra(\"stationname\", stationname);\n startActivity(passStation);\n }", "void save(AcHost acHost) throws Throwable;", "public static Map<String, Object> write(String model, String sid, int shortId, String key,\n Map<String, Object> data, InetAddress address, int port, int timeout) throws IOException {\n Map<String, Object> message = new LinkedHashMap<>();\n message.put(\"cmd\", \"write\");\n message.put(\"model\", model);\n message.put(\"sid\", sid);\n message.put(\"short_id\", shortId);\n data.put(\"key\", key);\n message.put(\"data\", data);\n SocketAddress remote = new InetSocketAddress(address, port);\n return unicast(message, remote, timeout);\n }", "public void saveAccountConfig () {\n\t\ttry {\n\t\t\tthis.accountConfig.store(new FileWriter(new File(this.accountAddress)), \"\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"[ERROR] Could not save initialization to account properties file: \" + accountAddress);\n\t\t\tSystem.err.println(e.getMessage());\n\t\t}\n\t}", "private void saveMemory() {\n try {\n File varTmpDir = new File(\"data/\" + brainLocation + \".ser\");\n if (!varTmpDir.exists()) {\n varTmpDir.createNewFile();\n }\n FileOutputStream fileOut = new FileOutputStream(varTmpDir);\n ObjectOutputStream out = new ObjectOutputStream(fileOut);\n out.writeObject(longTermMemory);\n out.close();\n fileOut.close();\n System.out.println(\"SAVED LONG TERM MEMORIES IN \" + brainLocation);\n } catch (IOException i) {\n i.printStackTrace();\n }\n }", "@Override\n public void save(String fileName){\n FileWriter addEmployeeDetails = null;\n\n try{\n addEmployeeDetails = new FileWriter(fileName,true);\n addEmployeeDetails.append(getUsername());\n addEmployeeDetails.append(System.getProperty(\"line.separator\"));\n addEmployeeDetails.append(getPassword());\n addEmployeeDetails.append(System.getProperty(\"line.separator\"));\n addEmployeeDetails.append(getFirstname());\n addEmployeeDetails.append(System.getProperty(\"line.separator\"));\n addEmployeeDetails.append(getLastname());\n addEmployeeDetails.append(System.getProperty(\"line.separator\"));\n addEmployeeDetails.append(DMY.format(getDoB()));//format,convert,save\n addEmployeeDetails.append(System.getProperty(\"line.separator\"));\n addEmployeeDetails.append(getContactNumber());\n addEmployeeDetails.append(System.getProperty(\"line.separator\"));\n addEmployeeDetails.append(getEmail());\n addEmployeeDetails.append(System.getProperty(\"line.separator\"));\n addEmployeeDetails.append(String.valueOf(getSalary()));\n addEmployeeDetails.append(System.getProperty(\"line.separator\"));\n addEmployeeDetails.append(getPositionStatus());\n addEmployeeDetails.append(System.getProperty(\"line.separator\"));\n //************Saves the address in the file.****************\n homeAddress.save(addEmployeeDetails);\n //**********************************************************\n addEmployeeDetails.append(\"$$$\");\n addEmployeeDetails.append(System.getProperty(\"line.separator\"));\n addEmployeeDetails.close();\n addEmployeeDetails = null;\n\n }//end try\n catch (IOException ioe){}//end catch\n }", "public void setAddress(String newAddress) {\r\n\t\tthis.address = newAddress;\r\n\t}", "public static void save(Superuser pdApp) throws IOException {\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(storeDir + File.separator + storeFile));\n\t\t\toos.writeObject(pdApp);\n\t\t\toos.close();\n\t}" ]
[ "0.75483584", "0.66774684", "0.632301", "0.59225017", "0.588367", "0.5844859", "0.5837397", "0.5692034", "0.5681838", "0.5658346", "0.5626134", "0.5592251", "0.5575159", "0.55710614", "0.55437976", "0.5461086", "0.54274756", "0.54262686", "0.5416294", "0.54102796", "0.53993356", "0.5394706", "0.5384916", "0.5338985", "0.53353363", "0.52975094", "0.5289806", "0.52848244", "0.5283973", "0.5274243", "0.5268937", "0.52663094", "0.5261097", "0.52470064", "0.5229588", "0.5228756", "0.52271503", "0.52237236", "0.52187955", "0.52187955", "0.52187955", "0.52187955", "0.520974", "0.5205067", "0.51799613", "0.51724124", "0.51719964", "0.5162422", "0.5159095", "0.51576215", "0.51279086", "0.5125584", "0.5118378", "0.5115181", "0.5113291", "0.5111307", "0.5111137", "0.51077944", "0.5099689", "0.5091879", "0.50823903", "0.50806284", "0.50736004", "0.50694054", "0.5065252", "0.5065252", "0.5065252", "0.50500906", "0.5045893", "0.5045893", "0.5045893", "0.50409436", "0.50355846", "0.50355846", "0.5025902", "0.50225335", "0.5021266", "0.501427", "0.5013859", "0.5009538", "0.5009538", "0.5007518", "0.5006765", "0.5004825", "0.5004747", "0.5003755", "0.5003755", "0.5003535", "0.5003535", "0.5003535", "0.49992037", "0.4991612", "0.49901125", "0.4982513", "0.49801052", "0.49782977", "0.497389", "0.49723405", "0.4972297", "0.4969432" ]
0.54554236
16
clear the device address
public void clearPrefAddress() { setPrefAddress( "" ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void clearAddress() {\n mAddress = HdmiCec.ADDR_UNREGISTERED;\n }", "void DevClear (int boardID, short addr);", "public void clear() throws DeviceException;", "public void unsetFromAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(FROMADDRESS$6, 0);\n }\n }", "private void clearPort() {\n \n port_ = 0;\n }", "private void clearPort() {\n \n port_ = 0;\n }", "public void clearFirePort();", "public void unsetAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ADDRESS$2);\n }\n }", "public Builder clearAddr() {\n \n addr_ = 0;\n onChanged();\n return this;\n }", "public boolean clearDeviceTypeAndNameBuffer();", "void removeDevice(int networkAddress);", "public void clear() {\n mLeDevices.clear();\n }", "void resetSelectedDevice() {\n selectedDevice = null;\n userSelectedDevice = null;\n }", "public final void clear()\n {\n this.pointer = 0;\n }", "public void removeMAddr() {\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"removeMaddr () \");\n Via via=(Via)sipHeader;\n \n via.removeParameter(Via.MADDR);\n }", "public static void resetDevice(NetSocket socket) {\n String data = \"CS01*868807049006736*0046*RESET,20200423142625I0445\";\n String deviceId = \"868807049006736\";\n send(socket, data, deviceId);\n }", "private void clearInPort() {\n \n inPort_ = 0;\n }", "private void clearInPort() {\n \n inPort_ = 0;\n }", "private void clear() {\n\t\tif (null != PinPadController) {\n\t\t\tnew Thread() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tPinPadController.PINPad_clear();\n\t\t\t\t};\n\t\t\t}.start();\n\t\t}\n\t}", "void DevClearList (int boardID, short[] addrlist);", "void reset() {\n this.pointer = 0;\n }", "void clearOffset();", "private void clearIp() {\n \n ip_ = 0;\n }", "private void clearIp() {\n \n ip_ = 0;\n }", "private void clearS1Port() {\n \n s1Port_ = 0;\n }", "public export.serializers.avro.DeviceInfo.Builder clearSerialPort() {\n serialPort = null;\n fieldSetFlags()[5] = false;\n return this;\n }", "public Builder clearAddress() {\n \n address_ = getDefaultInstance().getAddress();\n onChanged();\n return this;\n }", "public Builder clearAddress() {\n \n address_ = getDefaultInstance().getAddress();\n onChanged();\n return this;\n }", "public Builder clearAddress() {\n \n address_ = getDefaultInstance().getAddress();\n onChanged();\n return this;\n }", "public Builder clearAddress() {\n if (addressBuilder_ == null) {\n address_ = null;\n onChanged();\n } else {\n address_ = null;\n addressBuilder_ = null;\n }\n\n return this;\n }", "public void clearBuffer(){\n System.out.println(\"Clearning beffer\");\n //Deletes the buffer file\n File bufferFile = new File(\"data/buffer.ser\");\n bufferFile.delete();\n }", "public void removeDeviceServiceLink();", "public Builder clearAddress() {\n\n\t\t\t\t\taddress_ = getDefaultInstance().getAddress();\n\t\t\t\t\tonChanged();\n\t\t\t\t\treturn this;\n\t\t\t\t}", "public Builder clearPort() {\n\n port_ = 0;\n onChanged();\n return this;\n }", "public Builder clearPort() {\n\n port_ = 0;\n onChanged();\n return this;\n }", "public native void clear();", "public void clear() {\n unbindPassive();\n transferControl.clear();\n passiveMode = false;\n remotePort = -1;\n localPort = -1;\n }", "public native void clearReferent();", "public void stopDevice(){\n //Stop the device.\n super.stopDevice();\n }", "protected void reset() {\r\n super.reset();\r\n this.ring = null;\r\n }", "public Builder clearAddress() {\n address_ = getDefaultInstance().getAddress();\n bitField0_ = (bitField0_ & ~0x00000020);\n onChanged();\n return this;\n }", "public export.serializers.avro.DeviceInfo.Builder clearAlias() {\n alias = null;\n fieldSetFlags()[4] = false;\n return this;\n }", "public void clickClear2(View v) {\r\n\t\t\r\n\t\tport.setText(\"\");\r\n\t}", "void unsetOffset();", "public void off() {\n\n\t}", "private void clearBuffer() {\n\t\tfor (int i = 0; i < buffer.length; i++) {\n\t\t\tbuffer[i] = 0x0;\n\t\t}\n\t}", "public Builder clearAddress() {\n \n address_ = getDefaultInstance().getAddress();\n onChanged();\n return this;\n }", "public Builder clearAddress() {\n \n address_ = getDefaultInstance().getAddress();\n onChanged();\n return this;\n }", "void unsetStation();", "private void clearS1Ip() {\n \n s1Ip_ = 0;\n }", "public void clear() throws RemoteException, Error;", "public void resetIdiomaBuscador()\r\n {\r\n this.idiomaBuscador = null;\r\n }", "@Override\n\tpublic void reset() throws SIMException\n\t{\n\t\tsuper.reset();\n\t\tArrays.fill(memory,(byte)0xff);\n\t}", "public Builder clearPort() {\n \n port_ = 0;\n onChanged();\n return this;\n }", "public Builder clearPort() {\n \n port_ = 0;\n onChanged();\n return this;\n }", "public Builder clearAddress() {\n bitField0_ = (bitField0_ & ~0x00000008);\n address_ = getDefaultInstance().getAddress();\n onChanged();\n return this;\n }", "void unsetRawOffset();", "public void clear()\n \t{\n \t\tint byteLength = getLengthInBytes();\n \t\tfor (int ix=0; ix < byteLength; ix++)\n value[ix] = 0;\n \t}", "public void clearDetourStreet()\r\n {\r\n detour_streets = null;\r\n }", "void unsetSystem();", "public void deselect(){\n\t\tPIN.reset();\n\t}", "public void clickClear1(View v) {\r\n\t\t\r\n\t\tipAdresse.setText(\"\");\r\n\t}", "public void reset()\n {\n a = 0x0123456789ABCDEFL;\n b = 0xFEDCBA9876543210L;\n c = 0xF096A5B4C3B2E187L;\n\n xOff = 0;\n for (int i = 0; i != x.length; i++)\n {\n x[i] = 0;\n }\n\n bOff = 0;\n for (int i = 0; i != buf.length; i++)\n {\n buf[i] = 0;\n }\n\n byteCount = 0;\n }", "private void clearInIp() {\n \n inIp_ = 0;\n }", "private void clearInIp() {\n \n inIp_ = 0;\n }", "public void clearVariable(int offset);", "private void clearData() {}", "public Builder clearDeviceId() {\n bitField0_ = (bitField0_ & ~0x00000001);\n deviceId_ = getDefaultInstance().getDeviceId();\n onChanged();\n return this;\n }", "public export.serializers.avro.DeviceInfo.Builder clearService() {\n service = null;\n fieldSetFlags()[1] = false;\n return this;\n }", "void unsetSOID();", "public void clearCodeUnits(Address startAddr, Address endAddr, boolean clearContext);", "public String clear();", "public static void resetModemTemperature() {\n\t\t\n\t}", "public void clearDeviceLists()\n {\n deviceList.clear();\n deviceMap.clear();\n adapter.notifyDataSetChanged();\n }", "public void resetIdiomaDestinatario()\r\n {\r\n this.idiomaDestinatario = null;\r\n }", "public void resetUUID() {\n sp.edit().remove(UUID_SP_KEY).commit();\n }", "public Builder clearDeviceSettings() {\n if (deviceSettingsBuilder_ == null) {\n deviceSettings_ = null;\n onChanged();\n } else {\n deviceSettings_ = null;\n deviceSettingsBuilder_ = null;\n }\n\n return this;\n }", "public void reset() {\n monitor.sendReset();\n }", "void\tclear();", "public void removeFromStorage() throws Exception {\n String baseUrl = REST_URL + \"/core/device\";\n\n Treespace t = dbService.getControllerTreespace();\n String qStr =\n String.format(\"/core/device[id=\\\"%s\\\"]/security-ip-address\",\n eKey);\n Query q = Query.parse(qStr);\n t.deleteData(q, AuthContext.SYSTEM);\n }", "void turnOffPads() throws ToyPadException;", "public static void zero(final long address, final long size) {\n\t\twriteWithByte(address, size, BYTES.X00);\n\t}", "public void unpin();", "public void unpin();", "private void clearAll(byte value) {\n for (int i = 0; i < size; i++) {\n data[i] = (byte) (value & 0xff);\n }\n }", "public void deselect() {\n\n // reset the pin value\n pin.reset();\n\n }", "void clear() ;", "public Builder clearPort() {\n copyOnWrite();\n instance.clearPort();\n return this;\n }", "public Builder clearPort() {\n copyOnWrite();\n instance.clearPort();\n return this;\n }", "public void clear() {\n this.init(buffer.length);\n }", "void clearService();", "public void clearBankDdPrintLocation() {\n\t\t System.out.println(\"inside method cleare\");\n\t\t setBankBranchId(null);\n\t\t setBankId(null);\n\t\t setCountryId(null);\n\t\t setStateId(null);\n\t\t setDistrictId(null);\n\t\t setCityId(null);\n\t\t //System.out.println(getCountryId());\n\t\t setCountryId(null);\n\t \t setdDAgent(\"\");\n\t \t //System.out.println(getCountryId());\n\t\t setdDPrintLocation(\"\");\n\t\t setRenderDdprintLocation(false);\n\t\t System.out.println(\"Value : \"+getdDAgent()); \n\t}", "public void clearHostnamePort() {\n hostports.clear();\n }", "public void factoryResetWithEraseSD() {\n Intent intent = new Intent(\n com.android.internal.os.storage.ExternalStorageFormatter.FORMAT_AND_FACTORY_RESET);\n intent.setComponent(com.android.internal.os.storage.ExternalStorageFormatter.COMPONENT_NAME);\n mContext.startService(intent);\n }", "public void clear() {\n\t\tbufferLast = 0;\n\t\tbufferIndex = 0;\n\t}", "public void unlockDevice() {\n ((AndroidDriver) getDriver()).pressKey(new KeyEvent().withKey(AndroidKey.HOME));\n }", "public void off() {\n this.relay.set(Relay.Value.kOff);\n }", "public com.example.DNSLog.Builder clearPort() {\n fieldSetFlags()[6] = false;\n return this;\n }", "public static void reset() {\n Castle.userId(null);\n Castle.flush();\n }", "public Builder clearSnPort() {\n \n snPort_ = 0;\n onChanged();\n return this;\n }" ]
[ "0.7705272", "0.76685315", "0.75368667", "0.70288676", "0.669095", "0.669095", "0.66579413", "0.6615191", "0.6568888", "0.6514429", "0.6456057", "0.6421588", "0.6394968", "0.63897026", "0.62679833", "0.62099826", "0.6188136", "0.6188136", "0.6157186", "0.61526823", "0.6151785", "0.61340404", "0.6130875", "0.6130875", "0.6057768", "0.6030092", "0.60170496", "0.5991399", "0.5991399", "0.59821236", "0.59591484", "0.5938487", "0.5922115", "0.591117", "0.591117", "0.59056866", "0.589076", "0.587938", "0.5874907", "0.5866029", "0.58628404", "0.5845551", "0.5830059", "0.58196455", "0.58114016", "0.5809102", "0.58048254", "0.58048254", "0.57857716", "0.5731038", "0.5730937", "0.5712513", "0.5703632", "0.56809324", "0.56809324", "0.56806636", "0.5678613", "0.5677592", "0.5677206", "0.5673659", "0.56671333", "0.5660862", "0.5647581", "0.5646831", "0.5646831", "0.56463134", "0.5640067", "0.5630363", "0.5618404", "0.5609853", "0.5605076", "0.56044865", "0.5600681", "0.559808", "0.5594258", "0.55930924", "0.55924606", "0.55856144", "0.5585498", "0.55778825", "0.55657524", "0.55579543", "0.5552428", "0.5552428", "0.5548682", "0.55414355", "0.5538103", "0.55316514", "0.55316514", "0.5531106", "0.55286753", "0.5526729", "0.5519509", "0.55174685", "0.551269", "0.5512579", "0.5510453", "0.55083704", "0.54956025", "0.54954135" ]
0.62399954
15
Shared Preferences end title bar showTitle Connected
private void showTitleConnected( String name ) { showTitle( getTitleConnected( name ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void displayTitle() {\n\t\tthis.theScreen.setFont(Preferences.TITLE_FONT);\n\t\tthis.theScreen.setColor(Preferences.TITLE_COLOR);\n\t\tthis.theScreen.drawString(Preferences.TITLE,\n\t\t\t\tPreferences.TITLE_X, Preferences.TITLE_Y);\n\t}", "@Override\n\tprotected void onConfigrationTitleBar() {\n\t\tsetTitleBarTitleText(R.string.shujuxiazai);\n setTitleBarLeftImageButtonImageResource(R.drawable.title_back);\n\t}", "@Override\n public void setTitleBar(TitleBar titleBar) {\n super.setTitleBar(titleBar);\n titleBar.hideButtons();\n titleBar.showBackButton();\n titleBar.setSubHeading(getString(R.string.signup));\n }", "private void hideTheWindowTitle() {\n\t\tgetWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,\n\t\t\t\tWindowManager.LayoutParams.FLAG_FULLSCREEN);\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t}", "private void setWindowTitle(String title) {\n this.title = title;\n }", "private void updateTitle(){\n\n // Calculate temperature\n currentTemp = calculateTemp();\n\n // Prepare bar title from config layout, substituting placeholders\n String barTitle = layout;\n barTitle = barTitle.replaceAll(\"%celsius%\", String.valueOf(currentTemp));\n barTitle = barTitle.replaceAll(\"%fahrenheit%\", String.valueOf(Math.round(celsiusToFahrenheit(currentTemp))));\n\n bar.setTitle(ChatColor.translateAlternateColorCodes('&', barTitle));\n\n }", "@Override\n\tprotected void initTitle() {\n\t\tsetTitleContent(R.string.tocash);\n\t\tsetBtnBack();\n\t}", "public void resetTitle();", "public void showTitleScreen() {\n frame.showMenu();\n }", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "public void setTitle(String title);", "public void setTitle(String title);", "public void setTitle(String title);", "@Override\n\tpublic void onTitleChanged(String newTitle) {\n\t\tif (!newTitle.matches(\"\")) {\n getSupportActionBar().setSubtitle(newTitle);\n }\n\t}", "public void updateTitle() {\n String text = protocol.getOnlineCount() + \"/\" + getContactItems().size();\n if (!Options.getBoolean(Options.OPTION_SHOW_SOFTBAR)) {\n text += \"-\" + Util.getDateString(true);\n }\n setCaption(text);\n }", "private void updateTitle()\n {\n if (this.m_bClosing)\n return;\n\n final String agentName = (m_AgentFocus == null ? kNoAgent\n : m_AgentFocus.GetAgentName());\n boolean remote = m_Document.isRemote();\n final String remoteString = remote ? \"remote \" : \"\";\n\n // Need to make sure we make this change in the SWT thread as the event\n // may come to us\n // in a different thread\n Display.getDefault().asyncExec(() -> getShell().setText(\n \"Soar Debugger in Java - \" + remoteString + agentName));\n }", "public void setPrefTitle(int resId) {\n if (getActivity() == null)\n return;\n\n ActionBar actionBar = ((AppCompatActivity) getActivity()).getSupportActionBar();\n if (actionBar != null) {\n actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_HOME\n | ActionBar.DISPLAY_USE_LOGO\n | ActionBar.DISPLAY_SHOW_TITLE);\n\n actionBar.setLogo(R.drawable.ic_icon);\n actionBar.setTitle(resId);\n }\n }", "private void updateSubtitle() {\n String subtitle = getString(R.string.subtitle_new_chore);\n ChoreLab choreLab = ChoreLab.get(getActivity());\n int choreCount = choreLab.getChores().size();\n if(choreCount == 0) {\n mSubtitleVisible = true;\n } else {\n mSubtitleVisible = false;\n }\n\n if (!mSubtitleVisible) {\n subtitle = null;\n }\n\n AppCompatActivity activity = (AppCompatActivity) getActivity();\n activity.getSupportActionBar().setSubtitle(subtitle);\n }", "protected abstract void setTitle();", "@Override\n\tprotected void setTitleViews() {\n\t\ttitleIvRight.setVisibility(View.INVISIBLE);\n\t\ttitleText.setText(\"历史记录\");\n\t}", "public void setTitle(java.lang.String title);", "@Override\n\tprotected void titleBtnBack() {\n\t\tsuper.titleBtnBack();\n\t}", "void setTitle(java.lang.String title);", "private void setActivityTitle(){\n binding.actionbar.title.setText(R.string.application_guide);\n }", "@Override\n\tpublic void setTitle(String title) {\n\t\t\n\t}", "@Override\r\n\t\tpublic void setTitle(String title)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void setTopView() {\n\t\ttitle.setText(getResources().getString(R.string.mode));\n\t}", "@Override\n\tpublic void onHiddenChanged(boolean hidden) {\n\t\tsuper.onHiddenChanged(hidden);\n\t\tif (!hidden) {\n\t\t\tmActionBar.setTitle(\"设置\");\n\t\t\tmActionBar.hideRightView();\n\t\t}\n\t}", "@Override\n\tpublic void setTitle(java.lang.String title) {\n\t\t_scienceApp.setTitle(title);\n\t}", "@Override\n public void setTitle(String title) throws IOException {\n title = title.replace(\"\\007\", \"\");\n writeOSCSequenceToTerminal((\"2;\" + title + \"\\007\").getBytes());\n }", "public void refreshTitle() {\n adminPanel.setText(logic.getUiTaskList().getAdminWeekRange());\n topicPanel.setText(logic.getUiTaskList().getTopicWeekRange());\n ipPanel.setText(logic.getUiTaskList().getIpWeekRange());\n tpPanel.setText(logic.getUiTaskList().getTpWeekRange());\n }", "void showTitle(String title);", "@Override\n\tpublic void InitTitle(Activity activity, TitleBarListener titleBarListener) {\n\t\tImageButton sendBtn = (ImageButton) zActivity.findViewById(R.id.thirdbtn);\n\t\tsendBtn.setVisibility(android.view.View.INVISIBLE);\n\t\t\n\t\tButton closeBtn = (Button) zActivity.findViewById(R.id.CancelBtn);\n\t\tcloseBtn.setOnClickListener(new OnClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void onClick(android.view.View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tzActivity.finish();\n\t\t\t}});\n\t}", "void setConsoleTitle(String title);", "public void setTitlePanel() {\n\t\ttitleview = new TitlePanelView();\n\t\ttitleview.createView();\n\t\tnorthpanel.add(titleview.getView());\n\t\n\t}", "private void setStatus(CharSequence subTitle) {\n FragmentActivity activity = getActivity();\n if (null == activity) {\n return;\n }\n final ActionBar actionBar = activity.getActionBar();\n if (null == actionBar) {\n return;\n }\n actionBar.setSubtitle(subTitle);\n }", "private void setStatus(CharSequence subTitle) {\n FragmentActivity activity = getActivity();\n if (null == activity) {\n return;\n }\n final ActionBar actionBar = activity.getActionBar();\n if (null == actionBar) {\n return;\n }\n actionBar.setSubtitle(subTitle);\n }", "@Override\n\tpublic void setTitle(CharSequence title) {\n\t\t\n\t}", "public void Title ()\n {\n\tTitle = new Panel ();\n\tTitle.setBackground (Color.white);\n\tchessboard (Title);\n\tp_screen.add (\"1\", Title);\n }", "public void resetTitle ( ) {\n\t\texecute ( handle -> handle.resetTitle ( ) );\n\t}", "private void setTitle(java.lang.String title) {\n System.out.println(\"setting title \"+title);\n this.title = title;\n }", "private void showTitleScreen() {\n\t\tresetParameters();\n\t\t\n\t\t// if the play button is not clicked\n\t\twhile (!Mouse.isButtonDown(0)\n\t\t\t\t|| !(Mouse.getX() >= 249 && Mouse.getX() <= 539 && Mouse.getY() <= (displayHeight - 215) && Mouse.getY() >= (displayHeight - 284))) {\n\t\t\t// draw title screen\n\t\t\tdrawScreen(sprite.get(\"titleScreen\"));\n\t\t\t\n\t\t\tif (Mouse.isButtonDown(0) && Mouse.getX() >= 249 && Mouse.getX() <= 539\n\t\t\t\t\t&& Mouse.getY() <= (displayHeight - 304) && Mouse.getY() >= (displayHeight - 373)) {\n\t\t\t\tshowInstructScreen();\n\t\t\t}\n\t\t\t\n\t\t\tif (Mouse.isButtonDown(0) && Mouse.getX() >= 249 && Mouse.getX() <= 539\n\t\t\t\t\t&& Mouse.getY() <= (displayHeight - 393) && Mouse.getY() >= (displayHeight - 462)) {\n\t\t\t\tshowCreditsScreen();\n\t\t\t}\n\t\t\tif (Mouse.isButtonDown(0) && Mouse.getX() >= 249 && Mouse.getX() <= 539\n\t\t\t\t\t&& Mouse.getY() <= (displayHeight - 482) && Mouse.getY() >= (displayHeight - 551)) {\n\t\t\t\tDisplay.destroy();\n\t\t\t\tAL.destroy();\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\t\n\t\t\t// update display\n\t\t\tupdateDisplay();\n\t\t}\n\t\t\n\t\t// reset beginning time\n\t\tDelta.setBeginningTime(Delta.getTime());\n\t}", "public void setTitle(String strTitle) { m_strTitle = strTitle; }", "public void setTitle(String title) { this.title = title; }", "public void resetToTitle() {\r\n\t\tmainFrame.getContentPane().removeAll();\r\n\t\tmainFrame.getContentPane().add(titlePanel);\r\n\t\tmainFrame.repaint();\r\n\t}", "public void setTitle(String title) {\n setDialogTitle(title);\n }", "@Override\n\tpublic void setDisplayShowTitleEnabled(boolean showTitle) {\n\t\t\n\t}", "public abstract String getBarTitle();", "@Override\r\npublic void setTitle(String title) {\n\tsuper.setTitle(title);\r\n}", "@Override\n public void onSearchClosed() {\n closeSearch(toolbar, searchbox, activity);\n ((AppCompatActivity) activity).getSupportActionBar().setTitle(currentTitle);\n }", "private void setStatus(CharSequence subTitle) {\n getSupportActionBar().setSubtitle(subTitle);\n //textViewStatus.setText(subTitle);\n }", "private void init_titlebar() {\n\t\tbackBtn = (Button) findViewById(R.id.titlebar_back);\n\t\ttitleTv = (TextView) findViewById(R.id.titlebar_title);\n\t\totherBtn = (Button) findViewById(R.id.titlebar_other);\n\n\t\tbackBtn.setOnClickListener(this);\n\t\ttitleTv.setText(R.string.WXYT);\n\t\totherBtn.setVisibility(View.GONE);\n\t\tprogressBar = (ProgressBar) findViewById(R.id.progressbar);\n\t\tprogressBar\n\t\t\t\t.setScrollBarStyle(android.R.attr.progressBarStyleHorizontal);\n\t}", "@Override\r\n\tpublic void getTitle() {\n\t\t\r\n\t}", "public void setTitle(String title) {\n \t\tdialogTitle = title;\n \t\tif (dialogTitle == null) {\n \t\t\tdialogTitle = \"\"; //$NON-NLS-1$\n \t\t}\n \t\tShell shell = getShell();\n \t\tif ((shell != null) && !shell.isDisposed()) {\n \t\t\tshell.setText(dialogTitle);\n \t\t}\n \t}", "private void updateTileBar(String title) {\r\n toolbar.setTitle(title);\r\n }", "public void setTitle( String title )\n {\n _strTitle = title;\n }", "public void setTitleAccordingToState(){\n String ts=null;\n switch(getPlayMode()){\n case LIVE:\n ts=\" LIVE\";\n break;\n case PLAYBACK:\n ts=currentFile.getName()+\" PLAYING\";\n break;\n case WAITING:\n ts=\"MotionViewer - WAITING\";\n break;\n }\n setTitle(ts);\n }", "private void setTitle(String userTitle){\n title = userTitle;\n }", "@Override\r\n\tvoid setTitle(String s) {\n\t\tsuper.title=s;\r\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n addPreferencesFromResource(R.xml.framework_setting);\n SharedPreferences sharedPreferences = this.getPreferenceManager().getSharedPreferences();\n String preference_smartbar_default_type = getResources().getString(R.string.preference_smartbar_default_type);\n final ListPreference listPreference = (ListPreference) findPreference(preference_smartbar_default_type);\n //修改Smartbar类型\n String smart_type = sharedPreferences.getString(preference_smartbar_default_type, null);\n int index = listPreference.findIndexOfValue(String.valueOf(smart_type));\n if (index != -1) {\n CharSequence[] entries = listPreference.getEntries();\n listPreference.setTitle(entries[index]);\n }\n if (listPreference != null) {\n listPreference.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {\n @Override\n public boolean onPreferenceChange(Preference preference, Object newValue) {\n int index = listPreference.findIndexOfValue(newValue.toString());\n CharSequence[] entries = listPreference.getEntries();\n listPreference.setTitle(entries[index]);\n return true;\n }\n });\n }\n }", "@Override\n public void onTitleChange(String title) {\n poll.setTitle(title);\n }", "@Override\n public void run() {\n title.setText(\"\");\n platform.setText(\"\");\n }", "private void setActionBar() {\n headView.setText(\"消息中心\");\n headView.setGobackVisible();\n headView.setRightGone();\n // headView.setRightResource();\n }", "public void titleChanged() {\n try {\n String title = this.mWebViewH5Page.getWebView().getTitle();\n H5Log.d(TAG, \"titleChanged...title=\" + title);\n ((H5Page) this.mH5Page.get()).getH5TitleBar().setTitle(title);\n } catch (Throwable e) {\n H5Log.e(TAG, \"titleChanged...e=\" + e);\n }\n }", "public void setTitle(String title) {\n// toolbar.setTitle(title);\n// setSupportActionBar(toolbar);\n// resetNavigationOnClickListener();\n titleTextView.setText(title);\n }", "private void updateTitle() {\n mAccountsSelectorAdapter.swapCursor(mCursor);\n\n if (mCursor == null) {\n // Initial load not finished.\n mActionBarCustomView.setVisibility(View.GONE);\n return;\n }\n mActionBarCustomView.setVisibility(View.VISIBLE);\n\n if (mCursor.getAccountCount() == 0) {\n mCallback.onNoAccountsFound();\n return;\n }\n\n if ((mCursor.getAccountId() != Account.NO_ACCOUNT) && !mCursor.accountExists()) {\n // Account specified, but does not exist.\n if (isInSearchMode()) {\n exitSearchMode();\n }\n\n // Switch to the default account.\n mCallback.onAccountSelected(Account.getDefaultAccountId(mContext));\n return;\n }\n\n mTitleMode = mCallback.getTitleMode();\n\n if (shouldShowSearchBar()) {\n initSearchViews();\n // In search mode, the search box is a replacement of the account spinner, so ignore\n // the work needed to update that. It will get updated when it goes visible again.\n mAccountSpinnerContainer.setVisibility(View.GONE);\n mSearchContainer.setVisibility(View.VISIBLE);\n return;\n }\n\n // Account spinner visible.\n mAccountSpinnerContainer.setVisibility(View.VISIBLE);\n UiUtilities.setVisibilitySafe(mSearchContainer, View.GONE);\n\n if (mTitleMode == Callback.TITLE_MODE_MESSAGE_SUBJECT) {\n mAccountSpinnerLine1View.setSingleLine(false);\n mAccountSpinnerLine1View.setMaxLines(2);\n mAccountSpinnerLine1View.setText(mCallback.getMessageSubject());\n mAccountSpinnerLine2View.setVisibility(View.GONE);\n\n mAccountSpinnerCountView.setVisibility(View.GONE);\n\n } else {\n // Get mailbox name\n final String mailboxName;\n if (mTitleMode == Callback.TITLE_MODE_ACCOUNT_WITH_ALL_FOLDERS_LABEL) {\n mailboxName = mAllFoldersLabel;\n } else if (mTitleMode == Callback.TITLE_MODE_ACCOUNT_WITH_MAILBOX) {\n mailboxName = mCursor.getMailboxDisplayName();\n } else {\n mailboxName = null;\n }\n\n // Note - setSingleLine is needed as well as setMaxLines since they set different\n // flags on the view.\n mAccountSpinnerLine1View.setSingleLine();\n mAccountSpinnerLine1View.setMaxLines(1);\n if (TextUtils.isEmpty(mailboxName)) {\n mAccountSpinnerLine1View.setText(mCursor.getAccountDisplayName());\n\n // Change the visibility of line 2, so line 1 will be vertically-centered.\n mAccountSpinnerLine2View.setVisibility(View.GONE);\n } else {\n mAccountSpinnerLine1View.setText(mailboxName);\n mAccountSpinnerLine2View.setVisibility(View.VISIBLE);\n mAccountSpinnerLine2View.setText(mCursor.getAccountDisplayName());\n }\n\n mAccountSpinnerCountView.setVisibility(View.VISIBLE);\n mAccountSpinnerCountView.setText(UiUtilities.getMessageCountForUi(\n mContext, mCursor.getMailboxMessageCount(), true));\n }\n\n boolean spinnerEnabled =\n ((mTitleMode & TITLE_MODE_SPINNER_ENABLED) != 0) && mCursor.shouldEnableSpinner();\n\n\n setSpinnerEnabled(spinnerEnabled);\n }", "public void displayWelcomePane() {\n mainWindow.setContent(new WelcomePane());\n console = null;\n }", "public void noTitle() {\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tgetWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, \n\t\t\t\tWindowManager.LayoutParams.FLAG_FULLSCREEN);\n\t}", "public void setTitle(String title){\n \tthis.title = title;\n }", "@Override\n public String getTitle() {\n return string(\"sd-l-toolbar\");\n }", "public void handlePreferences() {\n displayPrefs ();\n }", "protected void setPopUpTitle(String title){\r\n\t\tthis.stage.setTitle(title);\r\n\t}", "public void setTitle(String title){\n lblTitle.setText(title);\n }", "public void setTitle(String title){\n this.title = title;\n }", "public void setTitle(String title) {\n mTitle = title;\n }", "private void frameSettings(String title) {\r\n\t\tsetTitle(title);\r\n\r\n\t\tsetSize(400, 720);\r\n\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tsetUndecorated(true); // Do not display the buttons of the frame\r\n\t\tsetAlwaysOnTop(true);\r\n\t\tsetResizable(false);\r\n\t\tsetBackground(new Color(0, 0, 0, 0));\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t}", "void setTitle(@NonNull String title);", "public void setTitle(String aNewTitle) \r\n\t{\r\n\t\tthis.title = aNewTitle;\r\n\t\tthis.panelEnvironment.panelTitleChanged();\r\n\t}", "@Override\n public void onSearchClosed() {\n closeSearch();\n toolbar.setTitle(getResources().getString(R.string.app_name));\n }", "private void setTitleMap(String title){\n if(title!=null && titleView.getVisibility() != View.GONE) {\n if (title.length() <= 50)\n titleView.setText(title);\n else\n titleView.setText(title.substring(0, 50));\n }\n }", "private void setDialogTitle(String title) {\n DialogboxTitle = title;\n }", "protected boolean titlePageNeeded(){\n return true;\n }", "@Override\n\tpublic void setNotificationTitle(@Nullable CharSequence title) {\n\t\tif (title == null) {\n\t\t\ttitleLabel.setText(\"\");\n\t\t} else {\n\t\t\ttitleLabel.setText(title.toString());\n\t\t}\n\t}", "public void setTitle(String title) {\r\n\tthis.title = title;\r\n }", "@Override\n\tprotected void showFisrtDialog() {\n\t\tboolean isFirst=LocalApplication.getInstance().sharereferences.getBoolean(\"music\", false);\n\t if(isFirst){\tshowAlertDialog(showString(R.string.app_Music),\n\t\t\tshowString(R.string.music_dialog),\n\t\t\tnew String[] {showString(R.string.no_dialog), showString(R.string.yes_dialog)}, true, true, null);}\n\t\t LocalApplication.getInstance().sharereferences.edit().putBoolean(\"music\", false).commit();\n\n\t}", "public void display_title_screen() {\n parent.textAlign(CENTER);\n parent.textFont(myFont);\n parent.textSize(displayH/10);\n parent.fill(255, 255, 0);\n parent.text(\"PACMAN\", 0.5f*displayW, 0.3f*displayH);\n\n parent.image(maxusLogoImage, 0.5f*displayW, 0.4f*displayH);\n\n parent.textFont(myFont);\n parent.textSize(tileSize);\n parent.fill(180);\n parent.text(\"2013\", 0.5f*displayW, 0.45f*displayH);\n\n display_chase_animation();\n\n display_insert_coin_text();\n }", "@Override\n protected void updateTitle()\n {\n String frameName =\n SWTStringUtil.insertEllipsis(frame.getName(),\n StringUtil.NO_FRONT,\n SWTStringUtil.DEFAULT_FONT);\n\n view.setWindowTitle(modificationFlag\n + FRAME_PREFIX\n + \": \"\n + project.getName()\n + \" > \"\n + design.getName()\n + \" > \"\n + frameName\n + ((OSUtils.MACOSX) ? \"\" : UI.WINDOW_TITLE));\n }", "public void promptTitle(String title)\n {\n this.title = title;\n }", "public void setLeftTitle(String title);", "@Override\r\n\tpublic void getTitle(String title) {\n\t\t\r\n\t}", "@Override\n public void setTitle(CharSequence title) {\n mTitle = title;\n getSupportActionBar().setTitle(mTitle);\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title){\n\t\tthis.title = title;\n\t}", "@Override\n\tpublic void setTitle(int resId) {\n\t\t\n\t}", "@Override\n\tpublic final native void setTitle(String title) /*-{\n this.title = title;\n\t}-*/;" ]
[ "0.6657982", "0.6486963", "0.6419342", "0.63407683", "0.6321046", "0.6273843", "0.62726897", "0.6246751", "0.6224322", "0.6206659", "0.6206659", "0.6206659", "0.6206659", "0.6206659", "0.6195683", "0.6195683", "0.6195683", "0.61875296", "0.6159419", "0.61506355", "0.6147226", "0.6140695", "0.6097483", "0.6066368", "0.60487163", "0.6033748", "0.6023273", "0.6015943", "0.60064334", "0.60056514", "0.5984018", "0.5973061", "0.59604317", "0.59464246", "0.5946412", "0.5937058", "0.59110945", "0.58748573", "0.58670324", "0.5843568", "0.5843568", "0.58290356", "0.5817158", "0.5816463", "0.5806299", "0.5802401", "0.58022445", "0.57839906", "0.57684785", "0.57627016", "0.5752826", "0.5752802", "0.57500225", "0.5741091", "0.5738009", "0.57349974", "0.5729925", "0.57259107", "0.5723434", "0.5723126", "0.5695867", "0.56907725", "0.5688442", "0.56690216", "0.5658643", "0.565768", "0.56520444", "0.5646228", "0.5641892", "0.56409657", "0.56382364", "0.5637386", "0.5636652", "0.5631901", "0.56280655", "0.5625586", "0.5624685", "0.56216186", "0.56190544", "0.5615047", "0.5614434", "0.5612328", "0.5596012", "0.5595109", "0.5589616", "0.55876243", "0.55857456", "0.55701154", "0.55629814", "0.5552923", "0.5551818", "0.55507576", "0.5550638", "0.5547454", "0.55473155", "0.5544982", "0.5544982", "0.55442965", "0.55437964", "0.5542937" ]
0.6032542
26
title bar end Debug init TextView Debug when onCreate
public void initTextViewDebug( View view, int id ) { mTextViewDebug = (TextView) view.findViewById( id ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void init_titlebar() {\n\t\tbackBtn = (Button) findViewById(R.id.titlebar_back);\n\t\ttitleTv = (TextView) findViewById(R.id.titlebar_title);\n\t\totherBtn = (Button) findViewById(R.id.titlebar_other);\n\n\t\tbackBtn.setOnClickListener(this);\n\t\ttitleTv.setText(R.string.WXYT);\n\t\totherBtn.setVisibility(View.GONE);\n\t\tprogressBar = (ProgressBar) findViewById(R.id.progressbar);\n\t\tprogressBar\n\t\t\t\t.setScrollBarStyle(android.R.attr.progressBarStyleHorizontal);\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n setText();\n }", "@Override\n\tprotected void initTitle() {\n\t\tsetTitleContent(R.string.tocash);\n\t\tsetBtnBack();\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.demo1);\n TextView text = (TextView)findViewById(R.id.lib_head_title);\n text.setText(\"Demo3\");\n }", "private void initToolbarTitle() {\n Toolbar toolbar = (Toolbar) getActivity().findViewById(R.id.toolbar);\n toolbar.setTitle(R.string.string_settings);\n }", "@Override\n\tprotected void initTopbar(){\n\t\tsuper.initTopbar();\n\t\tTextView textView = new TextView(mContext);\n\t\ttextView.setText(\"宝贝\");\n\t\ttextView.setTextSize(22);\n\t\ttextView.setTextColor(Color.BLACK);\n\t\tTopBar topBar = new TopBar(this,false, textView, null);\n\t\ttopBar.bind();\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.xtsz_set_attention);\n\t\ttitleLayout =(View) findViewById(R.id.titlelayout);\n\t\tinitView(titleLayout);\n\t\tsetLeftButtonAble(true, \"返回\");\n\t\tsetTitle(\"设置\");\n\t}", "@Override\n\tpublic void InitTitle(Activity activity, TitleBarListener titleBarListener) {\n\t\tImageButton sendBtn = (ImageButton) zActivity.findViewById(R.id.thirdbtn);\n\t\tsendBtn.setVisibility(android.view.View.INVISIBLE);\n\t\t\n\t\tButton closeBtn = (Button) zActivity.findViewById(R.id.CancelBtn);\n\t\tcloseBtn.setOnClickListener(new OnClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void onClick(android.view.View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tzActivity.finish();\n\t\t\t}});\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n\t TextView tv = new TextView(this);\n\t tv.setText(\"Testing beeper\");\n\t setContentView(tv);\n\t beepForAnHour();\n }", "@Override\n\tprotected void setTitleViews() {\n\t\ttitleIvRight.setVisibility(View.INVISIBLE);\n\t\ttitleText.setText(\"历史记录\");\n\t}", "private void setUpToolbar() {\n TextView textView_toolbar = findViewById(R.id.txt_toolbar_title);\n textView_toolbar.setText(\"대화\");\n\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n Log.d(TAG, \"OnCreate Invoked\");\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_weather);\n findViews();\n this.setTitle(R.string.weather_activity_title);\n\n }", "@Override\r\n public void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n overridePendingTransition(R.anim.fade_in, R.anim.fade_out);\r\n setContentView(R.layout.menu_main);\r\n \r\n tf = Typeface.createFromAsset(getAssets(), \r\n\t\"fonts/PAINP___.TTF\");\r\n TextView tv = (TextView) findViewById(R.id.title);\r\n tv.setTypeface(tf);\r\n TextView tv2 = (TextView) findViewById(R.id.title2);\r\n tv2.setTypeface(tf);\r\n \r\n boundButtons();\r\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n\n TextView bauhs = null;\n\n setFont(bauhs, \"fonts/handsean.ttf\", R.id.textView);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.tabslayout);\n\t\tTextView txt=(TextView)findViewById(R.id.tabtext);\n\t\ttxt.setText(\"Rewards\");\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tinitUI();\n\t\tinitTitleBar();\n\t}", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t\tsetupLayout();\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\t// Setup action bar as tabs\n\t\tfinal ActionBar actionBar = getActionBar();\n\t\tactionBar.setDisplayShowTitleEnabled(false);\n\n\t\tsetContentView(R.layout.main);\n\t\t\n\t\t// init\n\t\tinit();\n\t\t\n\t\tif ( savedInstanceState != null )\n\t\t{\n\t\t\tmCharDisp = savedInstanceState.getString(KEY_CHOSEN_CHARS);\n\t\t\tmDistDisp = savedInstanceState.getString(KEY_CHOSEN_DIST);\n\t\t}\n\t}", "@Override\n\tpublic void setTopView() {\n\t\ttitle.setText(getResources().getString(R.string.mode));\n\t}", "@Override\n\tprotected void onPostCreate(Bundle savedInstanceState)\n\t{\n\t\tsuper.onPostCreate(savedInstanceState);\n\t\tif (titile_position != 0 )\n\t\t{\n\t\t\ttitile_position = 0;\n\t\t}\n\t}", "@Override\n\tprotected void initNavBar() {\n\t\tsetTitle(R.string.live_detail);\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tAppendMainBody(R.layout.os_jsh_wdj_ldss_introduce);\r\n\t\tisShowSlidingMenu(false);\r\n\t\tAppendTitleBody1();\r\n\t\tinitView();\r\n\t\tinitListener();\r\n\t\tinitData();\r\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.base);\r\n\t\ttextView =(TextView) findViewById(R.id.textView1);\r\n\t\ttextView.setText(\"按两次退出\");\r\n\t}", "public void prepareTitleView(int i) {\n int i2;\n setBackground(getResources().getDrawable(R.drawable.fs_gesture_back_bg, (Resources.Theme) null));\n int i3 = R.string.how_to_use_app_quick;\n switch (i) {\n case 0:\n i2 = R.string.fs_gesture_left_back_ready_summary;\n break;\n case 1:\n i2 = R.string.fs_gesture_right_back_ready_summary;\n break;\n case 2:\n i3 = R.string.how_to_back_home;\n i2 = R.string.fs_gesture_back_home_summary;\n break;\n case 3:\n i3 = R.string.how_to_switch_recents;\n i2 = R.string.fs_gesture_switch_recents_summary;\n break;\n case 4:\n i3 = R.string.how_to_use_drawer;\n i2 = R.string.how_to_use_drawer_summary;\n break;\n case 5:\n i2 = R.string.how_to_use_app_quick_summary;\n break;\n case 6:\n i2 = R.string.how_to_use_app_quick_hide_line_summary;\n break;\n default:\n i2 = 0;\n i3 = 0;\n break;\n }\n i3 = R.string.fs_gesture_back_ready_title;\n TextView textView = this.mTitleView;\n if (textView != null && this.mSummaryView != null) {\n textView.setText(i3);\n this.mSummaryView.setText(i2);\n this.mTitleView.setVisibility(0);\n }\n }", "private void initUI() {\n tvQuote = (TextView) findViewById(R.id.tvQuote);\n tvBeginButton = (TextView) findViewById(R.id.tvBeginButton);\n\n tvBeginButton.setOnClickListener(this);\n\n loadBackground();\n }", "public void TextView_Config(){\n textviewBaro=(TextView) findViewById(R.id.textviewGravity);\n textviewAcceleration=(TextView) findViewById(R.id.textviewAcceleration);\n textviewGyro=(TextView) findViewById(R.id.textviewGyro);\n display=(TextView)findViewById(R.id.textView1);\n }", "public ToolBarManager initTitle(String toolBarTitle, int color,int start,int top,int end,int bottom){\n if(toolBarTitle!=null){\n mToolbar.setTitle(toolBarTitle);\n mToolbar.setTitleTextColor(color);\n mToolbar.setTitleMargin(start,top,end,bottom);\n }\n return instance;\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n Log.d(TAG,\"onCreate\");\n setContentView(R.layout.main);\n app = (SignalFinderApp) getApplication();\n mainText = (TextView) findViewById(R.id.main_text);\n }", "private void initUI() {\n // deal with toolbar\n setSupportActionBar(activityToolbar);\n if(getSupportActionBar() != null) {\n getSupportActionBar().setTitle(\"\");\n } else {\n Timber.w(\"Action bar is null? Strange behavior might occur\");\n }\n\n // deal with nav drawer\n drawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);\n drawerLayout.addDrawerListener(drawerListener);\n\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.text_main1);\n \n view = (MTextView2) findViewById(R.id.textview);\n view.setText(getAssetsString(this,\"1.txt\"));\n view.setMovementMethod(ScrollingMovementMethod.getInstance());\n }", "private void initView(){\n backBtn = (Button)findViewById(R.id.header_bar_btn_back);\n titleTv = (TextView)findViewById(R.id.header_bar_tv_title);\n confirmBtn = (Button)findViewById(R.id.header_bar_btn_add);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tsetContentView(R.layout.index_project_descrip_activity);\n\n\t\tinitView();\n\t\tsetView();\n\t\tinitEvent();\n\t}", "public ToolBarManager initTitle(String toolBarTitle,int start,int top,int end,int bottom){\n if(toolBarTitle!=null){\n mToolbar.setTitle(toolBarTitle);\n mToolbar.setTitleMargin(start,top,end,bottom);\n }\n return instance;\n }", "public void setTitle(String title) {\n// toolbar.setTitle(title);\n// setSupportActionBar(toolbar);\n// resetNavigationOnClickListener();\n titleTextView.setText(title);\n }", "private void setupTextView() {\n painterTextViewMoves = findViewById(R.id.painterTextView1);\n painterTextViewTime = findViewById(R.id.painterTextView2);\n painterTextViewPoints = findViewById(R.id.painterTextView3);\n painterTextViewInstructions = findViewById(R.id.painterInstructionsView);\n }", "private void initializeVariables() {\n\t\ttvTimeShow= (TextView) findViewById(R.id.tvTimeTracker);\r\n\t}", "@Override\r\n\tpublic void setupView() {\n\t\ttv = (TextView) findViewById(R.id.mjson_layout_text);\r\n\t}", "@Override\n\t public void onCreate(Bundle savedInstanceState) {\n\t super.onCreate(savedInstanceState);\n\t noTitle();\n\t setContentView(R.layout.about_dev); \n \n Typeface font1 = Typeface.createFromAsset(getAssets(), \"RobotoSlab-Regular.ttf\");\n TextView txt1 = (TextView) findViewById(R.id.devFont);\n txt1.setTypeface(font1); \n TextView title1 = (TextView) findViewById(R.id.title1);\n title1.setTypeface(font1); \n TextView desc1 = (TextView) findViewById(R.id.description1);\n desc1.setTypeface(font1); \n TextView title2 = (TextView) findViewById(R.id.title2);\n title2.setTypeface(font1); \n TextView desc2 = (TextView) findViewById(R.id.description2);\n desc2.setTypeface(font1); \n}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.ce_main);\n\t\t\n\t\tmH = new H();\n\t\tmH.sendEmptyMessageDelayed(MSG_HIDE_FIRST_HINT, TIME_MSG);\n\t\tmH.sendEmptyMessageDelayed(MSG_SHOW_SECOND_HINT, TIME_MSG + 500);\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tthis.requestWindowFeature(Window.FEATURE_NO_TITLE);\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.activity_myinfo);\r\n\t\tinit();\r\n\t}", "void inittoolbar() {\n toolbar = (Toolbar) findViewById(R.id.toolbar);\r\n setSupportActionBar(toolbar);\r\n if (getSupportActionBar() != null) {\r\n getSupportActionBar().setDisplayShowTitleEnabled(false);\r\n }\r\n TextView mTitle = (TextView) toolbar.findViewById(R.id.toolbar_title);\r\n ImageView back = (ImageView) toolbar.findViewById(R.id.back);\r\n mTitle.setText(getResources().getString(R.string.scanQr));\r\n\r\n back.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n onBackPressed();\r\n }\r\n });\r\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tsetContentView(R.layout.welcome_first);\n\t\n\t init();\n\t\n\t}", "private void initAutoTextView() {\n autotxtv.next();\n sCount++;\n autotxtv.setText(sCount % 2 == 0 ? \" 『 “光华戈十” 益行者计划---_李四』上线了!\"\n : \"『停下脚步聆听孩子的声音』上线了!\");\n handler.sendEmptyMessageDelayed(1,2000);\n }", "public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_liqueurs);\n ActionBar supportActionBar = getSupportActionBar();\n this.toolbar = supportActionBar;\n supportActionBar.setTitle((CharSequence) \"PooL Liqueurs\");\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_recent_activity);\n\t\tsetTitleFromActivityLabel(R.id.title_text);\n\t\tsetupStartUp();\n\t}", "@Override\n\tpublic void onCreate(Bundle savedInstanceState)\n\t{\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsuper.setTitle(\"ËÑË÷\");\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n tvTask1 = (TextView) findViewById(R.id.tvTask1);\n tvTask1.setText(\"Task1\");\n tvTask2 = (TextView) findViewById(R.id.tvTask2);\n tvTask2.setText(\"Task2\");\n tvTask3 = (TextView) findViewById(R.id.tvTask3);\n tvTask3.setText(\"Task3\");\n }", "void updateTitle() {\n leftBtn = (Button) findViewById(com.ek.mobilebapp.R.id.custom_title_btn_left);\n leftBtn.setCompoundDrawablesWithIntrinsicBounds(null,\n getResources().getDrawable(com.ek.mobilebapp.R.drawable.more_icon), null, null);\n leftBtn.setOnClickListener(clickListener);\n\n title = (TextView) findViewById(R.id.custom_title_label);\n title.setText(R.string.app_name);\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t\r\n\t\tToast.makeText(getApplicationContext(), \"11\", 0);\r\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n TextView tv = new TextView(this);\n tv.setText(\"请在拨号键盘输入*#*#0123#*#*, 你会有发现哦~\");\n tv.setTextSize(30);\n setContentView(tv);\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tthis.requestWindowFeature(Window.FEATURE_NO_TITLE);\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.activity_help);\r\n\t\tinitView();\r\n\t\tgetData();\r\n\r\n\t}", "private void setActivityTitle(){\n binding.actionbar.title.setText(R.string.application_guide);\n }", "@Override\n protected void onStart()\n {\n\tsuper.onStart();\n\ttoolbar.setTitle(\"特殊文本生成器\");\n//\t\t设置标题\n\n//\t\t设置副标题\n\ttoolbar.setNavigationIcon(R.drawable.ic_arrow_back_white_24dp);\n//\t\t设置导航图标\n\ttoolbar.setNavigationOnClickListener(new OnClickListener()\n\t {\n\t\t@Override\n\t\tpublic void onClick(View p1)\n\t\t{\n\t\t finish();\n\t\t}\n\t });\n//\t\t设置导航按钮监听\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_course_detail);\n Toolbar toolbar = findViewById(R.id.toolbar);\n toolbar.setTitle(\"Notes\");\n setSupportActionBar(toolbar);\n Objects.requireNonNull(getSupportActionBar()).setDisplayHomeAsUpEnabled(true);\n getSupportActionBar().setDisplayShowHomeEnabled(true);\n setVariables();\n setValues();\n }", "private void initializeDisplayText() {\n // Title and field labels\n Stage stage = (Stage) titleLabel.getScene().getWindow();\n stage.setTitle(rb.getString(\"windowTitle\"));\n if (action.equals(Constants.ADD)) {\n titleLabel.setText(rb.getString(\"addTitleLabel\"));\n } else if (action.equals(Constants.UPDATE)) {\n titleLabel.setText(rb.getString(\"updateTitleLabel\"));\n }\n idLabel.setText(rb.getString(\"idLabel\"));\n nameLabel.setText(rb.getString(\"nameLabel\"));\n addressLabel.setText(rb.getString(\"addressLabel\"));\n cityLabel.setText(rb.getString(\"cityLabel\"));\n countryLabel.setText(rb.getString(\"countryLabel\"));\n divisionLabel.setText(rb.getString(\"divisionLabel\"));\n postalLabel.setText(rb.getString(\"postalLabel\"));\n phoneLabel.setText(rb.getString(\"phoneLabel\"));\n\n // Prompt text\n idField.setPromptText(rb.getString(\"idPrompt\"));\n nameField.setPromptText(rb.getString(\"namePrompt\"));\n addressField.setPromptText(rb.getString(\"addressPrompt\"));\n cityField.setPromptText(rb.getString(\"cityPrompt\"));\n countryComboBox.setPromptText(rb.getString(\"countryPrompt\"));\n divisionComboBox.setPromptText(rb.getString(\"divisionPrompt\"));\n postalField.setPromptText(rb.getString(\"postalPrompt\"));\n phoneField.setPromptText(rb.getString(\"phonePrompt\"));\n\n // Button labels\n Common.scaleButton(saveBtn, rb.getString(\"saveBtn\"));\n Common.scaleButton(cancelBtn, rb.getString(\"cancelBtn\"));\n\n // Error label; initially blank\n errorLabel.setText(\"\");\n }", "private void initCreateAccountTextView() {\n TextView textViewCreateAccount = (TextView) findViewById(R.id.textViewLogin);\n textViewCreateAccount.setText(fromHtml(\"<font color='#000000'>Sudah Memiliki Akun ? </font><font color='#03A9F4'>Login</font>\"));\n textViewCreateAccount.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(daftar.this, activity_login.class);\n startActivity(intent);\n }\n });\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t// 去标题\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tsetContentView(R.layout.goods_detail_info);\n\t\tinit();\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t//requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);\n\n\t\tsetContentView(R.layout.profile);\n\t\t//requestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\t//getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.custom_title);\n\t\t\n\t\tInteger[] ids = {R.id.points_label, R.id.badges_label, R.id.level_label, \n\t\t\t\t\n\t\t\t\tR.id.points, R.id.achievement, R.id.level,\n\t\t\t\tR.id.total_points, R.id.diet, R.id.exercise, R.id.challenges};\n\t\t\n\t\tfor(int i=0; i< ids.length; i++){\n\t\t\tint id = ids[i];\n\t\t\tTextView txt = (TextView) findViewById(id);\n\t\t\tTypeface font = Typeface.createFromAsset(getAssets(), \"museo700regular.ttf\");\n\t\t\ttxt.setTypeface(font);\n\t\t}\n\t\t\n\t\tInteger dailySummaryIds[] = {R.id.progress_next_level,\n\t\t\t\tR.id.daily_summary_total_points, R.id.daily_summary_diet, R.id.daily_summary_exercise, R.id.daily_summary_challenges};\n\t\t\n\t\tfor(int i =0; i < dailySummaryIds.length; i++){\n\t\t\tint id = dailySummaryIds[i];\n\t\t\tTextView txt = (TextView) findViewById(id);\n\t\t\tTypeface font = Typeface.createFromAsset(getAssets(), \"arial.ttf\");\n\t\t\ttxt.setTypeface(font);\t\n\t\t}\n\t\t\n\t\tTextView txt = (TextView) findViewById(R.id.daily_summary_label);\n\t\tTypeface font = Typeface.createFromAsset(getAssets(), \"arial_bold.ttf\");\n\t\ttxt.setTypeface(font);\n\t\t\n\t\ttxt = (TextView) findViewById(R.id.leaderboard_label);\n\t\ttxt.setTypeface(font);\n\t\t\n\t\ttxt = (TextView) findViewById(R.id.this_week_label);\n\t\ttxt.setTypeface(font);\n\t\t\n\t\tSetUILayout();\n\t prefs = getSharedPreferences(ProfileMeta.USER_INFO, MODE_PRIVATE);\n\t username = prefs.getString(ProfileMeta.USER_ID, null);\n\t\tpassword = prefs.getString(ProfileMeta.PASSWORD, null);\n\t}", "public void onCreate() {\n view.initTexts(amountCorrect.get(0), amountCorrect.get(1));\n }", "public void onCreate(Bundle savedInstanceState) {\n getActivity().setTitle(R.string.weather_title);\n super.onCreate(savedInstanceState);\n setHasOptionsMenu(true);\n\n //custom font I imported into my project, used to create the weather symbols\n wF = Typeface.createFromAsset(getActivity().getAssets(), \"fonts/weather.ttf\");\n updateWeatherData(\"plymouth nh\");\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t\tsetContentView(R.layout.quiz);\r\n\t\t\r\n\t\tTextView mytext = (TextView) findViewById(R.id.quiz_title);\r\n\t\tmytext.setText(\"This is quiz tab\");\r\n\r\n\t}", "private void initCreateAccountTextView() {\n\n TextView textViewCreateAccount = (TextView) findViewById(R.id.textViewCreateAccount);\n // El que hizo esto es un Dios\n textViewCreateAccount.setText(fromHtml(\"<font color='#000'>¿No tienes cuenta? </font><font color='#6dbaf8'>Registrate</font>\"));\n textViewCreateAccount.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(LoginActivity.this, RegisterActivity.class);\n startActivity(intent);\n }\n });\n }", "protected void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_help);\n setupActionBar();\n\n // Set up so that formatted text can be in the help_page_intro text and so that html links are handled.\n TextView textView = (TextView) findViewById (R.id.help_page_intro);\n if (textView != null) {\n textView.setMovementMethod (LinkMovementMethod.getInstance());\n textView.setText (Html.fromHtml (getString (R.string.help_page_intro_html)));\n }\n }", "@Override\n // onCreate() method is used to inflate the layout, which means to set the content view of the screen to the XML layout\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n // Points to the XML file with the layout information\n setContentView(R.layout.activity_main);\n // Correlate the TextView parameter 'mShowCount' to the TextView in 'activity_main.xml'\n mShowCount = (TextView) findViewById(R.id.show_count);\n }", "@Override\n protected void onFinishInflate() {\n super.onFinishInflate();\n mTitleContent = (TextView) findViewById(R.id.title_content);\n mLeftTv = (TextView) findViewById(R.id.title_left_tv);\n mRightTv = (TextView) findViewById(R.id.title_right_tv);\n mRightImg = (ImageView) findViewById(R.id.title_right_img);\n mMessageView = (RelativeLayout) findViewById(R.id.toolbar_message_view);\n mUnReadImg = (ImageView) findViewById(R.id.toolbar_message_unread_img);\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.main);\n\n\t\tCalendar c = Calendar.getInstance();\n\t\tint yr = c.get(Calendar.YEAR);\n\n\t\tGView = (GomokuView) this.findViewById(R.id.gomokuview);\n\t\tGView.setTextView((TextView) this.findViewById(R.id.text));\n\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.my_tours);\n\t\t\n\t\ttv=(TextView) findViewById(R.id.mytoursmaintv);\n\t}", "private void prepareToolbar() {\r\n EventBarView eventBar = findViewById(R.id.eventBar);\r\n eventBar.setEventTitle(event.name);\r\n }", "private void init() {\n message = (ListView) findViewById(R.id.message);\n sure = (Button) findViewById(R.id.sure);\n cancel = (Button) findViewById(R.id.cancel);\n cancel.setOnClickListener(this);\n sure.setOnClickListener(this);\n // title.setText(\"提示\");\n }", "private void initData() {\n\t\tSetTopBarTitle(getString(R.string.os_jsh_wdj_add_ldss));\r\n\t\tregFliter();\r\n\t}", "public ToolBarManager initTitle(int toolBarTitleResId,int start,int top,int end,int bottom){\n return initTitle(mContext.getResources().getString(toolBarTitleResId),start,top,end,bottom);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_about);\n setSupportActionBar(findViewById(R.id.toolbar));\n if (getSupportActionBar() != null) {\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n }\n setTitle(getString(R.string.activity_main_title));\n }", "@Override\n public void onCreate(final Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n setTitle(R.string.title);\n\n countdown = new TextViewCountdown(R.id.countdown, this);\n texts.add(new TextViewState(R.id.qYesterday, this));\n texts.add(new TextViewState(R.id.qToday, this));\n texts.add(new TextViewState(R.id.qWay, this));\n\n findViewById(R.id.reset).setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(final View v) {\n resetApp();\n }\n });\n\n findViewById(R.id.go).setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(final View v) {\n final TextViewState text = getActiveQuestion();\n resetApp();\n\n if (null != text) { // stand up est en cours\n // Log.i(TAG, \"click-text \" + text.getTextView().toString());\n int idx = texts.indexOf(text);\n idx++; // go to next\n if (idx == texts.size()) {\n // Log.i(TAG, \"click-return\");\n return;\n }\n if (idx < texts.size()) {\n // Log.i(TAG, \"click-set textstart\");\n textStart = texts.get(idx);\n }\n }\n\n // Log.i(TAG, \"click-schedule texttask\");\n textTask = getTextTask();\n textTimer.schedule(textTask, 0, CYCLE_TEST);\n\n }\n });\n\n }", "private void initVar() {\n tvHello.setText(stringFromJNI());\n }", "private void initToolbar() {\n setSupportActionBar(toolbar);\n if(getSupportActionBar() != null) {\n getSupportActionBar().setTitle(\"Timetable App\");\n }\n }", "@Override\n public void onSetToolbarTitle(int position) {\n switch (position){\n case 0:\n toolbar.setTitle(\"TED Talks\");\n toolbar.setTitleTextColor(getResources().getColor(R.color.colorAccent));\n break;\n case 1:\n toolbar.setTitle(\"TED Playlists\");\n toolbar.setTitleTextColor(getResources().getColor(R.color.colorAccent));\n break;\n case 2:\n toolbar.setTitle(\"TED Podcasts\");\n toolbar.setTitleTextColor(getResources().getColor(R.color.colorAccent));\n break;\n }\n }", "@Override\n\tprotected void onCreate(Bundle arg0) {\n\t\tsuper.onCreate(arg0);\n\t\tsetContentView(R.layout.activity_company_index);\n\t\tView btnAnnouncement = (View) findViewById(R.id.Btn_Announcement);\n\t\tbtnAnnouncement.setOnClickListener(this);\n\n\t\theadBar = (HeadBar) findViewById(R.id.Head_Bar);\n\t\theadBar.setTitle(getStr(R.string.company_info));\n\t\theadBar.setWidgetClickListener(this);\n\t\theadBar.setRightType(BtnType.empty);\n\t\tinitWidget();\n\t}", "public ToolBarManager initTitle(int toolBarTitleResId, int color,int start,int top,int end,int bottom){\n return initTitle(mContext.getResources().getString(toolBarTitleResId),color,start,top,end,bottom);\n }", "private void appInit() {\n\t\tres = getResources();\n\t\t\n\t\t//vibrate\n\t\taudio = (AudioManager)getSystemService(Context.AUDIO_SERVICE);\n\t\t\n\t\t//set a/b testing variables\n\t\tCOLOR_MARGIN = SRUserData.getInstace().getErrorMargin();\n\t\tshiftTimeMax = SRUserData.getInstace().getShiftTime();\n\t\t\t\t\n\t\tTypeface Helveticaneue_light = Typeface.createFromAsset(getAssets(), \"fonts/Helveticaneue-light.ttf\");\n\t\t\n\t\tcontainer = new RelativeLayout(this);\n\t\tcontainer = (RelativeLayout) findViewById(R.id.mainContainer);\n\t\t\n\t \tint scoreWidth = SCREEN_WIDTH;\n\t \tint scoreHeight = (int) (SCREEN_WIDTH/DENSITY * 0.18);\n\t \tint scoreX = (int)(0.5 * SCREEN_WIDTH)-scoreWidth/2; // = 0 ?\n\t \tint scoreY = (int)(0.13* SCREEN_HEIGHT); //-scoreHeight/2\n\t \t\n\t \t//score label\n\t scoreText = new TextView(this);\n\t scoreText.setText(\"0\");\n\t RelativeLayout.LayoutParams scoreText_params = new RelativeLayout.LayoutParams(scoreWidth, LayoutParams.WRAP_CONTENT);\n\t scoreText_params.setMargins(scoreX, scoreY, 0, 0);\n\t scoreText.setLayoutParams(scoreText_params);\n\t scoreText.setTextColor(Color.GRAY);\n\t scoreText.setTextSize(scoreHeight);\n\t scoreText.setGravity(Gravity.CENTER);\n\t scoreText.setTypeface(Helveticaneue_light);\n\t container.addView(scoreText);\n\t \n\t //header\n\t int headerHeight = (int)(SCREEN_WIDTH*0.18);\n\t header = new SRPUHeader(this);\n\t header.setSize(SCREEN_WIDTH, headerHeight, DENSITY);\n\t RelativeLayout.LayoutParams header_params = new RelativeLayout.LayoutParams(SCREEN_WIDTH, headerHeight);\n\t header_params.setMargins(0, 0, 0, 0);\n\t header.setLayoutParams(header_params);\n\t header.setExtraPUEventListener(new OnExtraPUEventListener() {\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onEvent() {\n\t\t\t\tif(SRGameManager.getInstace().getExtraRemaining() > 0 && SRGameManager.getInstace().getLives() < 5){\n\t\t\t\t\tint extraUsed = SRGameManager.getInstace().getExtraUsed();\n\t\t\t\t\tSRGameManager.getInstace().setExtraUsed(extraUsed++);\n\t\t\t\t\tint extraRemaining = SRGameManager.getInstace().getExtraRemaining();\n\t\t\t\t\tSRGameManager.getInstace().setExtraRemaining(extraRemaining-1);\n\t\t\t\t\theader.setExtraText(\"\"+SRGameManager.getInstace().getExtraRemaining());\n\t\t\t\t\tSRGameManager.getInstace().setLives(SRGameManager.getInstace().getLives()+1);\n\t\t\t\t\tlives.addLife();\t\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t header.setComboPUEventListener(new OnComboPUEventListener() {\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onEvent() {\n\t\t\t\tif(SRGameManager.getInstace().getComboRemaining() > 0 && shouldSpin\n\t\t\t\t\t\t&& comboMultiplier == 1){\n\t\t\t\t\tint comboUsed = SRGameManager.getInstace().getComboUsed();\n\t\t\t\t\tSRGameManager.getInstace().setComboUsed(comboUsed++);\n\t\t\t\t\tint comboRemaining = SRGameManager.getInstace().getComboRemaining();\n\t\t\t\t\tSRGameManager.getInstace().setComboRemaining(comboRemaining-1);\n\t\t\t\t\theader.setComboText(\"\"+SRGameManager.getInstace().getComboRemaining());\n\t\t\t\t\t\n\t\t\t\t\theader.showComboProgress(true);\n\t\t\t\t\tcomboMultiplier = 5;\n\t\t\t\t\tcomboPUused = false;\n\t\t\t\t\t\n\t\t\t\t\t//timer that updates the progress circle\n\t\t\t\t\tnew CountDownTimer(5000, 50) {\n\t\t\t\t\t\tint progress = 0;\n\t\t\t\t\t\t\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onTick(long ms) {\n\t\t\t\t\t\t\tint time = (int) (5000 - ms);\n\t\t\t\t\t\t\tprogress = (int)(time * 0.072); // 0.072 = 1/5000*360\n\t\t\t\t\t\t\theader.setComboProgress(progress);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onFinish() {\n\t\t\t\t\t\t\theader.showComboProgress(false);\n\t\t\t\t\t\t\tcomboMultiplier = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}.start();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t header.setImmuPUEventListener(new OnImmuPUEventListener() {\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onEvent() {\n\t\t\t\tif(SRGameManager.getInstace().getImmuRemaining() > 0 && shouldDecreaseLife\n\t\t\t\t\t\t&& shouldSpin){\n\t\t\t\t\tint immuUsed = SRGameManager.getInstace().getImmuUsed();\n\t\t\t\t\tSRGameManager.getInstace().setImmuUsed(immuUsed++);\n\t\t\t\t\tint immuRemaining = SRGameManager.getInstace().getImmuRemaining();\n\t\t\t\t\tSRGameManager.getInstace().setImmuRemaining(immuRemaining-1);\n\t\t\t\t\theader.setImmuText(\"\"+SRGameManager.getInstace().getImmuRemaining());\n\t\t\t\t\theader.showImmuProgress(true);\n\t\t\t\t\tshouldDecreaseLife = false;\n\t\t\t\t\t//timer that updates the progress circle\n\t\t\t\t\tnew CountDownTimer(5000, 50) {\n\t\t\t\t\t\tint progress = 0;\n\t\t\t\t\t\t\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onTick(long ms) {\n\t\t\t\t\t\t\tint time = (int) (5000 - ms);\n\t\t\t\t\t\t\tprogress = (int)(time * 0.072); // 0.072 = 1/5000*360\n\t\t\t\t\t\t\theader.setImmuProgress(progress);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onFinish() {\n\t\t\t\t\t\t\theader.showImmuProgress(false);\n\t\t\t\t\t\t\tshouldDecreaseLife = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}.start();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t header.setExtraText(\"\"+SRGameManager.getInstace().getExtraRemaining());\n\t header.setComboText(\"\"+SRGameManager.getInstace().getComboRemaining());\n\t header.setImmuText(\"\"+SRGameManager.getInstace().getImmuRemaining());\n\t container.addView(header);\n\t \n\t //lives\n\t lives = new SRCircleLives(this);\n\t lives.setSize((int)(SCREEN_WIDTH*0.8), (int)(SCREEN_WIDTH/6));\n\t RelativeLayout.LayoutParams lives_params = new RelativeLayout.LayoutParams((int)(SCREEN_WIDTH*0.8), (int)(SCREEN_WIDTH/6));\n\t lives_params.setMargins((int)(SCREEN_WIDTH*0.1), (int)(SCREEN_HEIGHT*0.285), 0, 0);\n\t lives.setLayoutParams(lives_params);\n\t container.addView(lives);\n\t \n\t //countDown textView\n\t countDownTV = new TextView(this);\n\t RelativeLayout.LayoutParams countDown_params = new RelativeLayout.LayoutParams(SCREEN_WIDTH, LayoutParams.WRAP_CONTENT);\n\t countDown_params.setMargins(0, (int)(SCREEN_HEIGHT*0.67), 0, 0);\n\t countDownTV.setLayoutParams(countDown_params);\n\t countDownTV.setTextSize((int) (SCREEN_WIDTH/DENSITY * 0.1));\n\t countDownTV.setGravity(Gravity.CENTER);\n\t countDownTV.setText(res.getString(R.string.touch_to_start));\n\t countDownTV.setTextColor(Color.WHITE);\n\t countDownTV.setTypeface(Helveticaneue_light);\n\t container.addView(countDownTV);\n\t \n\t int comboTV_width = SCREEN_WIDTH/5;\n\t \tint comboTV_size = (int) (SCREEN_WIDTH/DENSITY * 0.12);\n\t \tint comboTV_y = (int)(0.155* SCREEN_HEIGHT);\n\t \tint comboTV_x = (int)(0.8* SCREEN_WIDTH);\n\t \n\t \n\t //combo textview for showing x2, x4, x8\n\t comboTV = new TextView(this);\n\t RelativeLayout.LayoutParams comboTV_params = new RelativeLayout.LayoutParams(comboTV_width, LayoutParams.WRAP_CONTENT);\n\t comboTV_params.setMargins(comboTV_x, comboTV_y, 0, 0);\n\t comboTV.setLayoutParams(comboTV_params);\n\t comboTV.setTextSize(comboTV_size);\n\t comboTV.setGravity(Gravity.CENTER);\n\t comboTV.setTypeface(Helveticaneue_light);\n\t container.addView(comboTV);\n\t \n\t //init mixpanel\n\t mixpanel = MixpanelAPI.getInstance(this, MIXPANEL_TOKEN);\n\t String device_uuid = Secure.getString(this.getContentResolver(), Secure.ANDROID_ID);\n\t Log.d(\"UUID\", \"\"+device_uuid);\n\t mixpanel.identify(device_uuid);\n\t mixpanel.getPeople().identify(device_uuid);\n\t mixpanel.getPeople().initPushHandling(\"791553235288\");\n\t //user data\n\t JSONObject props = new JSONObject();\n\t try {\n\t\t\tprops.put(\"extraPU\", SRGameManager.getInstace().getExtraRemaining());\n\t\t\tprops.put(\"immuPU\", SRGameManager.getInstace().getImmuRemaining());\n\t\t\tprops.put(\"comboPU\", SRGameManager.getInstace().getComboRemaining());\n\t\t\tprops.put(\"walletPoints\", SRGameManager.getInstace().getTotalPoints());\n\t\t\tprops.put(\"everBought\", SRGameManager.getInstace().getEverBought());\n\t\t\tprops.put(\"bestScore\", SRGameManager.getInstace().getBestScore());\n\t\t\tprops.put(\"answeredSurvey\", SRUserData.getInstace().isSurveyDone() ? 1 : 0);\n\t\t\tprops.put(\"gamesPlayed\", SRGameManager.getInstace().getGamesPlayed());\n\t\t\tprops.put(\"initialDifficulty\", SRUserData.getInstace().getInitialDifficulty());\n\t\t\tprops.put(\"difficultyIncrease\", SRUserData.getInstace().getDifficultyIncrease());\n\t\t\tprops.put(\"shiftTime\", SRUserData.getInstace().getShiftTime());\n\t\t\tprops.put(\"errorMargin\", SRUserData.getInstace().getErrorMargin());\n\t\t\ttry {\n\t\t\t\tprops.put(\"Android App Version\", getPackageManager().getPackageInfo(getPackageName(), 0).versionName);\n\t\t\t} catch (NameNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} catch (JSONException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t //mixpanel.registerSuperProperties(props);\n\t mixpanel.getPeople().set(props);\n\t \n\t //handler that update the score every 30 ms\n\t Runnable runnable = new Runnable() {\n\t @Override\n\t public void run() {\n\t if (!mStopScoreHandler) {\n\t \tscoreText.setText(\"\"+SRGameManager.getInstace().getScore());\n\t mHandler.postDelayed(this, 30);\n\t }\n\t }\n\t };\n\t mHandler.post(runnable);\n\t \n\t //SoundPool\n\t this.setVolumeControlStream(AudioManager.STREAM_MUSIC);\n\t\t// Load the sound\n\t\tsoundPool = new SoundPool(10, AudioManager.STREAM_MUSIC, 0);\n\t\tsoundPool.setOnLoadCompleteListener(new OnLoadCompleteListener() {\n\t\t\t@Override\n\t\t\tpublic void onLoadComplete(SoundPool soundPool, int sampleId, int status) {\n\t\t\t\tsoundPoolLoaded = true;\n\t\t\t}\n\t\t});\n\t\tsoundDos = soundPool.load(this, R.raw.dos, 1);\n\t\tsoundQuatre = soundPool.load(this, R.raw.quatre, 1);\n\t\tsoundSis = soundPool.load(this, R.raw.sis, 1);\n\t\tsoundVuit = soundPool.load(this, R.raw.vuit, 1);\n\t\tsoundFail = soundPool.load(this, R.raw.fail, 1);\n\t}", "public void init()\n {\n quizText = (TextView)findViewById(R.id.sportQuiz);\n setAnimationToQuizName();\n nameEditText = (EditText)findViewById(R.id.nameEditText);\n startButton = (Button)findViewById(R.id.startButtonView);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n // Retrieving headerText value from bundle\n if (getArguments() != null) {\n headerText = getArguments().getString(HEADER_TEXT_CODE);\n } else {\n headerText = DEFAULT_HEADER_TEXT;\n }\n }", "public void display_title_screen() {\n parent.textAlign(CENTER);\n parent.textFont(myFont);\n parent.textSize(displayH/10);\n parent.fill(255, 255, 0);\n parent.text(\"PACMAN\", 0.5f*displayW, 0.3f*displayH);\n\n parent.image(maxusLogoImage, 0.5f*displayW, 0.4f*displayH);\n\n parent.textFont(myFont);\n parent.textSize(tileSize);\n parent.fill(180);\n parent.text(\"2013\", 0.5f*displayW, 0.45f*displayH);\n\n display_chase_animation();\n\n display_insert_coin_text();\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetAbContentView(R.layout.capturer);\n\n\t\tmAbTitleBar = this.getTitleBar();\n\t\tmAbTitleBar.setTitleText(\"扫一扫\");\n\t\tmAbTitleBar.setLogo(R.drawable.button_selector_back);\n\t\tmAbTitleBar.setTitleLayoutBackground(R.color.orange_background);\n\t\tmAbTitleBar.setTitleTextMargin(10, 0, 0, 0);\n\t\tmAbTitleBar.setTitleLayoutGravity(Gravity.CENTER, Gravity.RIGHT);\n\t\tCameraManager.init(getApplication());\n\n\t\tviewfinderView = (ViewfinderView) findViewById(R.id.viewfinder_view);\n\t\ttxtResult = (TextView) findViewById(R.id.txtResult);\n\t\thasSurface = false;\n\t\tinactivityTimer = new InactivityTimer(this);\n\t}", "public void setToolbarTitle() {\n Log.i(tag, \"set toolbar title\");\n this.toolbarGroupIcon.animate().alpha(0.0f).setDuration(150).setListener(null);\n this.toolbarTitle.animate().alpha(0.0f).setDuration(150).setListener(new AnimatorListener() {\n public void onAnimationStart(Animator animator) {\n }\n\n public void onAnimationEnd(Animator animator) {\n if (MainActivity.this.broadcastingToGroup) {\n MainActivity.this.toolbarTitle.setText(MainActivity.this.currentLight.getGroupName());\n } else {\n MainActivity.this.toolbarTitle.setText(MainActivity.this.currentLight.getName());\n }\n if (MainActivity.this.toolbarTitle.getLineCount() == 1) {\n MainActivity.this.toolbarTitle.setTextSize(MainActivity.this.toolbarTitleSize);\n } else if (MainActivity.this.toolbarTitle.getLineCount() > 1) {\n MainActivity.this.toolbarTitle.setTextSize(MainActivity.this.toolbarTitleSize - 6.0f);\n }\n MainActivity.this.toolbarTitle.animate().alpha(1.0f).setDuration(150).setListener(null);\n if (MainActivity.this.broadcastingToGroup) {\n MainActivity.this.toolbarGroupIcon.setVisibility(0);\n MainActivity.this.toolbarGroupIcon.animate().alpha(1.0f).setDuration(150).setListener(null);\n return;\n }\n MainActivity.this.toolbarGroupIcon.setVisibility(8);\n }\n\n public void onAnimationCancel(Animator animator) {\n }\n\n public void onAnimationRepeat(Animator animator) {\n }\n });\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tAppendTitleBody2();\r\n\t\tAppendMainBody(R.layout.os_grzl_activity);\r\n\t\tisShowSlidingMenu(false);\r\n\t\tSetTopBarTitle(\"编辑个人资料\");\r\n\t\tinitView();\r\n\t\tinitData();\r\n\t\tinitListener();\r\n\t}", "private void initView() {\n\t\ttopbar = findViewById(R.id.topbar);\n\t\t// 顶部导航栏控件id\n\t\tll_returnbtn = (LinearLayout) topbar.findViewById(R.id.ll_returnbtn);\n\t\ttv_title = (TextView) topbar.findViewById(R.id.tv_title);\n\t\t// 顶部导航栏控件相关设置\n\t\ttv_title.setText(\"省份\");\n\t\t// 隐藏不要的内容\n\t\ttopbar.findViewById(R.id.tv_name_function)\n\t\t\t\t.setVisibility(View.INVISIBLE);\n\n\t\tlist_province = (ListView) findViewById(R.id.list_province);\n\t}", "@Override\r\n public void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.timing_source_resolution);\r\n\r\n f_benchmarkOutput = (TextView) findViewById(R.id.TextViewTSR);\r\n f_scrollOutput = (ScrollView) findViewById(R.id.scrollViewTSR);\r\n }", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t// construct the tabhost\r\n\t\tsetContentView(R.layout.generic_3_tabs_layout);\r\n\r\n\t\t// -- Initialize title Bar--\r\n\t\ttitleBar = (TitleBar) findViewById(R.id.normal_activity_CV_TB1);\r\n\t\t// -- Call the methods to change the underlying widgets--\r\n\t\ttitleBar.setTitle(\"BUSINESS RULES\");\r\n\t\ttitleBar.setIcon(R.drawable.icon);\r\n\t\ttitleBar.showProgressBar();\r\n\r\n\t\t// --Prepare tabs\r\n\t\tsetupTabHost();\r\n\t\tmTabHost.getTabWidget().setDividerDrawable(R.drawable.tab_divider);\r\n\r\n\t\tsetupTab(new TextView(this), \"COMMON Rules\");\r\n\t\tsetupTab(new TextView(this), \"EXTENDED Rules 2\");\r\n\t\tsetupTab(new TextView(this), \"CUSTOM\");\r\n\t}", "private void initViews() {\n /* Intent get data handler */\n fullScreenSnap = (ImageView) findViewById(R.id.fullScreenSnap);\n mToolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(mToolbar);\n getSupportActionBar().setTitle(AppConstants.imageName);\n getSupportActionBar().setDisplayShowHomeEnabled(true);\n mToolbar.setNavigationIcon(R.drawable.back_button);\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t super.onCreate(savedInstanceState);\n\t setContentView(R.layout.activity_main);\n\t \n\t TextView textv = (TextView) findViewById(R.id.textView1);\n\t textv.setShadowLayer(1, 3, 3, Color.GRAY);\n\t \n\t btnActButtons = (Button) findViewById(R.id.button_buttons);\n\t btnActButtons.setOnClickListener(this);\n\t \n\t btnActMCU = (Button) findViewById(R.id.button_mcu);\n\t btnActMCU.setOnClickListener(this);\n\t \n\t btnActAbout = (Button) findViewById(R.id.button_about);\n\t btnActAbout.setOnClickListener(this);\n\t}", "@Override\n public void onCreate(final Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n //Teurastetaan otsikkopalkki pois:\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n //Teurastetaan status-palkki pois (full screen):\n getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);\n final View v = getLayoutInflater().inflate(R.layout.credits, null);\n v.setKeepScreenOn(true);\n setContentView(v); \n res=this.getResources();\n managing = (TextView) findViewById(R.id.managing);\n contentdevelopment = (TextView) findViewById(R.id.contentdevelopment);\n programming = (TextView) findViewById(R.id.programming);\n\n \n managing.setText(Html.fromHtml(\"<b>\" + res.getString(R.string.cr_managing)+\"</b><br/>Myriam Munezero<br/>Balozi Kirongo<br/>Sari Pitkänen\"));\n\n contentdevelopment.setText(Html.fromHtml(\"<b>\" + res.getString(R.string.cr_contentdevelopment)+\"</b>\" +\n \t\t\"<br/>Mwasambo Benjamin<br/>Haraka Joseph<br/>Virginia Nyawira<br/>Swapprinah Imbosa\"));\n contentdevelopment.setTextColor(Color.BLACK);\n\n programming.setText(Html.fromHtml(\"<b>\"+res.getString(R.string.cr_programming)+\"</b><br/>Moses Shitote<br/>Duncan Kiplangat<br/>Peter Waweru\"));\n\n }", "public _15_TitleControllerExtend(){\r\n addOnInitializeWithSneakyThrow(()->{\r\n this.titleLabel.setText(title);\r\n });\r\n }", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\ttvInfoContent.setText(infoContent);\r\n\t}", "@Override\n protected void onCreate(Bundle arg0) {\n super.onCreate(arg0);\n // 去掉标题栏\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n }", "private void setupFinishedGUI() {\n getSupportActionBar().setSubtitle(\"finished\");\n findViewById(R.id.countdownpickerlayout).setVisibility(View.GONE);\n findViewById(R.id.start_button).setVisibility(View.GONE);\n findViewById(R.id.ping_button).setVisibility(View.GONE);\n findViewById(R.id.location_card).setVisibility(View.GONE);\n findViewById(R.id.exp_finished_layout).setVisibility(View.VISIBLE);\n }", "@Override\n public void run() {\n title.setText(\"\");\n platform.setText(\"\");\n }", "@Override\r\n public void setViewTitle(String title) {\r\n stethoscopeLabel.setText(title);\r\n }", "private void setupActionBar(String title) {\n Button openDrawer = findViewById(R.id.open_drawer);\n TextView activityTitle = findViewById(R.id.activity_title);\n\n Display display = getWindowManager().getDefaultDisplay();\n Point size = new Point();\n display.getSize(size);\n\n openDrawer.setBackgroundDrawable(new IconicsDrawable(this).icon(GoogleMaterial.Icon.gmd_menu).sizeDp(30).color(getResources().getColor(R.color.colorPrimary)));\n openDrawer.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mainDrawer.openDrawer();\n }\n });\n\n activityTitle.setText(title); //sets the TextViews text\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.rename_room_name);\n init();\n initView();\n initListener();\n }", "@Override\n protected void onCreate(Bundle arg0) {\n super.onCreate(arg0);\n getWindow()\n .addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);\n getWindow().addFlags(\n WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n setContentView(R.layout.activity_main1);\n SetStatiColor.setMiuiStatusBarDarkMode(this, true);\n sp = getSharedPreferences(\"setup\", Activity.MODE_PRIVATE);\n editor = sp.edit();\n editor.putBoolean(\"isFirst\", false);\n editor.commit();\n application = (MyApplication) getApplication();\n application.addAct(this);\n initView();\n fragmentmanager = getSupportFragmentManager();\n setTabSelection(0);\n content = this;\n initJPush();\n // new Exit();\n\n }", "@Override\n \tpublic void onCreate(Bundle savedInstanceState)\n \t{\n \t\tsuper.onCreate(savedInstanceState);\n \t\tsetContentView(R.layout.main);\n \n \t\tmainLayout = findViewById (R.id.mainLayout);\n \t\tresistor = (Resistor)findViewById (R.id.resistor);\n \t\tresistanceView = (TextView)findViewById (R.id.resistanceView);\n \n \t\tmainLayout.setBackgroundDrawable (resistor.getBackground ());\n \t\tresistanceView.setBackgroundDrawable (resistor.getBackground ());\n \t\tresistanceView.setText (resistor.getResistance ().toString ());\n \t}" ]
[ "0.7225686", "0.71933115", "0.7169258", "0.6978573", "0.67627203", "0.668859", "0.6687134", "0.6638682", "0.6600128", "0.65802306", "0.6559168", "0.655779", "0.653234", "0.6517696", "0.6480214", "0.64600956", "0.64509726", "0.6432522", "0.64121836", "0.6398237", "0.63864994", "0.63842195", "0.6378854", "0.6365791", "0.63631505", "0.6326993", "0.6326068", "0.6323082", "0.6317681", "0.6312997", "0.63058555", "0.62913054", "0.62805754", "0.6279547", "0.62773347", "0.62769914", "0.62749827", "0.6270107", "0.6266599", "0.62599903", "0.62549686", "0.62499225", "0.62321156", "0.62155604", "0.62148386", "0.62050617", "0.62044454", "0.6203719", "0.6199104", "0.6191195", "0.61880827", "0.6186972", "0.61803746", "0.61678994", "0.6166812", "0.6166738", "0.6159418", "0.61528647", "0.61422724", "0.6139379", "0.6132671", "0.61254853", "0.612546", "0.6125106", "0.6123326", "0.61103815", "0.61092657", "0.6104145", "0.60976464", "0.60970485", "0.60964584", "0.6093839", "0.60788673", "0.6077243", "0.607682", "0.60707843", "0.6062527", "0.6053818", "0.6049291", "0.60489994", "0.604808", "0.6046117", "0.6043504", "0.60428876", "0.60405153", "0.6034814", "0.6034052", "0.6029809", "0.6020114", "0.60180175", "0.6011286", "0.6010666", "0.6008362", "0.6006405", "0.6004264", "0.6003393", "0.6002993", "0.599837", "0.599482", "0.5990069", "0.5989664" ]
0.0
-1
TODO Autogenerated method stub
@Override public void changeDL(IDataLoader dl) { this.dl = dl; }
{ "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
write your code here
public static int replaceBlank(char[] string, int length) { int count = 0; for(int i=0;i<length;i++){ if(string[i]==' '){ count++; } } int ans = length+count*2; int j=ans-1; for(int i=length-1;i>-1;i--){ if(string[i]==' '){ string[j--]='0'; string[j--]='2'; string[j--]='%'; }else{ string[j--]=string[i]; } } return ans; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logic(){\r\n\r\n\t}", "public static void generateCode()\n {\n \n }", "@Override\n\tprotected void logic() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "void pramitiTechTutorials() {\n\t\n}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void ganar() {\n // TODO implement here\n }", "public static void main(String[] args) {\n // write your code here - this is called comment and it always starts with double slash\n // and comlier will ignore this because of the // sign.\n // I am gonna say hello\n // JAVA IS CASE SENSITIVE LANGUAGE\n // System and system are very different things in java\n //Hello AND hello are different for java\n // System.out.println(\"Hello Batch 15!\");\n // System.out.println(\"I am still here.\");\n // System.out.println(\"I love Java.\");\n\n // Write a program to display your information.\n // When you run it, it should have this outcome.\n // I am your name here\n // I am from batch 15\n // I am from your city here\n // I love Java\n\n System.out.println(\"I am Sevim.\");\n System.out.println(\"I am from Batch 15.\");\n System.out.println(\"I'm from New Jersey.\");\n System.out.println(\"I love Java.\");\n\n\n\n }", "CD withCode();", "private stendhal() {\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}", "public void genCode(CodeFile code) {\n\t\t\n\t}", "public void hello(){\n\t\t\r\n \t\r\n\t\t\r\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void baocun() {\n\t\t\n\t}", "public void mo38117a() {\n }", "public void furyo ()\t{\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private void strin() {\n\n\t}", "public void themesa()\n {\n \n \n \n \n }", "Programming(){\n\t}", "@Override\n\tvoid output() {\n\t\t\n\t}", "private void yy() {\n\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "void rajib () {\n\t\t \n\t\t System.out.println(\"Rajib is IT Eng\");\n\t }", "private void kk12() {\n\n\t}", "public void edit() {\n\t\tSystem.out.println(\"编写java笔记\");\r\n\t}", "public static void main(String[] args) {\n\t// write your code here\n }", "private static void ThridUmpireReview() {\n\t\tSystem.out.println(\" Umpier Reviews the Score Board\");\n\t\t \n\t\t\n\t}", "@Override\r\n\t\tpublic void doDomething() {\r\n\t\t\tSystem.out.println(\"I am here\");\r\n\t\t\t\r\n\t\t}", "protected void mo6255a() {\n }", "public void gen(CodeSeq code, ICodeEnv env) {\n\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "public void working()\n {\n \n \n }", "@Override\n\tprotected void postRun() {\n\n\t}", "public void perder() {\n // TODO implement here\n }", "public void smell() {\n\t\t\n\t}", "protected void execute() {\n\t\t\n\t}", "public void mo55254a() {\n }", "@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\n\tpublic void orgasm() {\n\t\t\n\t}", "public void cocinar(){\n\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\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\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n\tprotected void interr() {\n\t}", "public void run() {\n\t\t\t\t\n\t\t\t}", "protected void execute() {\n\n\n \n }", "@Override\n public void execute() {\n \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\tpublic void crawl_data() {\n\t\t\r\n\t}", "@Override\n public void memoria() {\n \n }", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "@Override\r\n\tpublic void code() {\n\t\tus.code();\r\n\t\tSystem.out.println(\"我会java...\");\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "protected void display() {\n\r\n\t}", "private void sout() {\n\t\t\n\t}", "private static void oneUserExample()\t{\n\t}", "public void nhapdltextlh(){\n\n }", "public void miseAJour();", "protected void additionalProcessing() {\n\t}", "private void sub() {\n\n\t}", "@Override\n\tpublic void view() {\n\t\t\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\r\n\tpublic void engine() {\r\n\t\t// TODO Auto-generated method stub\t\t\r\n\t}", "@Override\r\n\tpublic void code() {\n\t\tSystem.out.println(\"我会C语言....\");\r\n\t}", "void mo67924c();", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\r\n public void run() {\n basicEditor.createEdge(); // replaced Bibianas method with Moritz Roidl, Orthodoxos Kipouridis\r\n }", "public void mo5382o() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "public void mo3376r() {\n }", "public static void main(String[] args)\r\n {\n System.out.println(\"Mehedi Hasan Nirob\");\r\n //multiple line comment\r\n /*\r\n At first printing my phone number\r\n then print my address \r\n then print my university name\r\n */\r\n System.out.println(\"01736121659\\nJamalpur\\nDhaka International University\");\r\n \r\n }", "void kiemTraThangHopLi() {\n }", "public void skystonePos5() {\n }", "public final void cpp() {\n }", "public final void mo51373a() {\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"This is the main class of this project\");\r\n\t\tSystem.out.println(\"how about this\");\r\n\r\n\t\t\r\n\t\tSystem.out.println(\"new push\");\r\n\r\n\t\t//how to update this line\r\n\t\t\r\n\t\tSystem.out.println(\"hello there\");\r\n\r\n\t\tSystem.out.println(\"zen me shuoXXXXXXXXXXXKKKKkKKKKKKXXXXXXXX\");\r\n\r\n\t\tSystem.out.println(\"eventually we succeeded!\");\r\n\t\t//wa!!!\r\n\t\t\r\n\r\n\r\n\t\t//hen shu fu !\r\n\t\t\r\n\t\t//it is a good day\r\n\t\t\r\n\t\t//testing\r\n\r\n\t\t\r\n\t\tSystem.out.println(\"hope it works\");\r\n\t\t\r\n\r\n\t\t\r\n\r\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}" ]
[ "0.61019534", "0.6054925", "0.58806974", "0.58270746", "0.5796887", "0.56999695", "0.5690986", "0.56556827", "0.5648637", "0.5640487", "0.56354505", "0.56032085", "0.56016207", "0.56006724", "0.5589654", "0.5583692", "0.55785793", "0.55733466", "0.5560209", "0.55325305", "0.55133164", "0.55123806", "0.55114794", "0.5500045", "0.5489272", "0.5482718", "0.5482718", "0.5477585", "0.5477585", "0.54645246", "0.5461012", "0.54548836", "0.5442613", "0.5430592", "0.5423748", "0.5419415", "0.5407118", "0.54048806", "0.5399331", "0.539896", "0.5389593", "0.5386248", "0.5378453", "0.53751254", "0.5360644", "0.5357343", "0.5345515", "0.53441405", "0.5322276", "0.5318302", "0.53118485", "0.53118485", "0.53085434", "0.530508", "0.53038436", "0.5301922", "0.5296964", "0.52920514", "0.52903354", "0.5289583", "0.5287506", "0.52869135", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.52859664", "0.52849185", "0.52817136", "0.52791214", "0.5278664", "0.5278048", "0.5276269", "0.52728665", "0.5265451", "0.526483", "0.526005", "0.5259683", "0.52577406", "0.5257731", "0.5257731", "0.52560073", "0.5255759", "0.5255707", "0.5250705", "0.5246863", "0.5243053", "0.52429926", "0.5242727", "0.52396125", "0.5239378", "0.5232576", "0.5224529", "0.52240705", "0.52210563", "0.52203166", "0.521787", "0.52172214" ]
0.0
-1
convert both to string
@Override public int compare(Integer o1, Integer o2) { String s1 = o1.toString(); String s2 = o2.toString(); int s1Length = s1.length(); int s2Length = s2.length(); if (s1Length == s2Length) { //we want descending order return s2.compareTo(s1); } //find shortest if (s1Length < s2Length) { //we want descending order return compareInternal(s1, s2) * -1; } else { return compareInternal(s2, s1); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String makeString(Object obj1) {\n if (obj1 != null)\n return obj1.toString();\n else\n return \"\";\n }", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "public String asString();", "public static String concat(Object s1, Object s2) {\n return String.valueOf(s1) + String.valueOf(s2);\n }", "public String toString() {\n \tString fOneString=f1.toString();\n \tString fTwoSring=f2.toString();\n \treturn \"f(x)=\"+fTwoSring+\"(\"+fOneString+\")\";\n }", "public abstract String toSaveString();", "private String toString2(BinaryNode<E> t) {\n if (t == null) return \"\";\n StringBuilder sb = new StringBuilder();\n sb.append(toString2(t.left));\n sb.append(t.element.toString() + \" \");\n sb.append(toString2(t.right));\n return sb.toString();\n }", "public static String merge(String str1, String str2)\r\n {\r\n return (str1==null?\"\":str1)+(str2==null?\"\":str2);\r\n }", "public void concat2Strings(String s1, String s2)\r\n {\r\n // s1.concat(s2);\r\n ///sau\r\n s1=s1+s2;\r\n System.out.println(\"Stringurile concatenate sunt \"+s1);\r\n }", "public String ToStr(){\n\t\tswitch(getTkn()){\n\t\tcase Kali:\n\t\t\treturn \"*\";\n\t\tcase Bagi:\n\t\t\treturn \"/\";\n\t\tcase Div:\n\t\t\treturn \"div\";\n\t\tcase Tambah:\n\t\t\treturn \"+\";\n\t\tcase Kurang:\n\t\t\treturn \"-\";\n\t\tcase Kurungbuka:\n\t\t\treturn \"(\";\n\t\tcase Kurungtutup:\n\t\t\treturn \")\";\n\t\tcase Mod:\n\t\t\treturn \"mod\";\n\t\tcase And:\n\t\t\treturn \"and\";\n\t\tcase Or:\n\t\t\treturn \"or\";\n\t\tcase Xor:\n\t\t\treturn \"xor\";\n\t\tcase Not:\n\t\t\treturn \"!\";\n\t\tcase Bilangan:\n\t\t\tString s = new String();\n\t\t\tswitch (getTipeBilangan()){\n\t\t\tcase _bool:\n\t\t\t\tif (getBilanganBool())\n\t\t\t\t\treturn \"true\";\n\t\t\t\telse\treturn \"false\";\n\t\t\tcase _int:\n\t\t\t\ts+=(getBilanganInt());\n\t\t\t\tbreak;\n\t\t\tcase _float:\n\t\t\t\ts+=(getBilanganFloat());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\treturn s;\n\t\t}\n\t\treturn null;\n\t}", "String asString();", "public String getResultadostring(){\n\t\tif (golesEquipo1>golesEquipo2){\n\t\t\treturn equipo1;\n\t\t}else if (golesEquipo1<golesEquipo2){\n\t\t\treturn equipo2;\n\t\t}\n\t\treturn \"a\";\n\t}", "public static String myConcatenator(String str1, String str2)\r\n {\r\n str1 += str2;\r\n return str1;\r\n }", "String toStr(Object o);", "public String toStr() {\r\n return value.toString();\r\n }", "public String convert()\r\n\t{\r\n\t\treturn str;\r\n\t}", "private String convertToString(boolean isUsed) {\n\t\tif (isUsed)\n\t\t\treturn \"1\";\n\t\treturn \"0\";\n\t}", "@Override\n\tpublic\n\tString toString () {\n\n\t\treturn nextIsA\n\t\t\t? aString\n\t\t\t: bString;\n\n\t}", "public String toString() { return new String(b,0,i_end); }", "java.lang.String getS2();", "public String myToString() {\n\t\treturn \t\"User: \" + ((User)value1).toString() +\r\n\t\t\t\t\" | Job: \" + ((Job)key).name +\r\n\t\t\t\t\" | Recruiter: \" + ((Recruiter)value2).toString() +\r\n\t\t\t\t\" | Score: \" + df2.format(score);\r\n\t}", "public static String merge(String parent1, String parent2){\n\n StringBuilder sb = new StringBuilder();\n\n try {\n String s1 = complete(parent1);\n String s2 = complete(parent2);\n sb.append(s1,0,16);\n sb.append(s2,16,32);\n } catch (IntegerTooBigException e) {\n e.printStackTrace();\n }\n return sb.toString();\n }", "public String toStringWithRelation();", "public String toString(){\n\t\treturn leftValue + \":\" +rightValue;\t\t\t\r\n\t}", "private void jetCastExprStr(){\n\t\tCastExpr castExpr = (CastExpr) rExpr;\n\t\tValue immValue = castExpr.getOp();\n\t\tif(immValue instanceof Local){\n\t\t\tthis.exprStr = fileGenerator.getRenameOf(immValue, false, this.stmtIdx);\n\t\t}else{\n\t\t\tthis.exprStr = immValue.toString();\n\t\t}\n\t}", "public String toString2() {\n return calle.isEmpty() ? \"\" : (calle + \" \" + numeroExterior + \" \" + (numeroInterior.isEmpty() ? \"\" : \" \" + numeroInterior)\n + (referencia.isEmpty() ? \"\" : \"\" + referencia + \" \")\n + (colonia.isEmpty() ? \"\" : colonia));\n }", "public String toString() { return stringify(this, true); }", "public String toString()\n\t{\n\t\treturn \"\" + storedVar1 + storedVar2;\n\t}", "private String mergeStrings(String s1, String s2) {\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tif (!s1.isEmpty()) {\n\t\t\tsb.append(s1);\n\t\t}\n\t\tif (!s2.isEmpty() && !s2.equalsIgnoreCase(s1)) {\n\t\t\tif (sb.toString().isEmpty()) sb.append(\" \");\n\t\t\tsb.append(s2);\n\t\t}\n\t\treturn sb.toString();\n\t}", "public String toString(){\n String combinedStr = this.string1 + \" \" + this.string2 + \" \" + this.string3;\n return combinedStr;\n }", "public abstract String toHumanString();", "private String asString(ByteBuffer buffer) {\n\t\tByteBuffer copy = buffer.duplicate();\n\t\tbyte[] bytes = new byte[copy.remaining()];\n\t\tcopy.get(bytes);\n\t\treturn new String(bytes, StandardCharsets.UTF_8);\n\t}", "String asString ();", "public String concate(String x, String y)\n\t{\n\t\treturn x.concat(y);\n\t}", "public String toString () {\n \tif (user)\n \t\tif (number1 == number2)\n \t\t\treturn \"user{\" + description + \", \" + number1 + \"}\";\n \t\telse\n \t\t\treturn \"user{\" + description + \", \" + number1 + \":\" + number2 + \"}\";\n \telse\n \t\treturn (new Integer(number1)).toString();\n }", "protected abstract String format();", "public String getAsString() {\n\t\treturn new String(this.getAsBytes());\n\t}", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "private String toString(Object value) {\n if (value == null) return \"null\";\n // TODO: handle arrays in a nicer way.\n return value.toString();\n }", "@Override\r\n\tpublic String getAsString(FacesContext arg0, UIComponent arg1, Object arg2) {\n\t\tif (arg2 == null || arg2.equals(\"\")) {\r\n\t\t\treturn \"\";\r\n\t\t} else {\r\n\t\t\treturn String.valueOf(((Conteneur) arg2).getIdCont());\r\n\t\t}\r\n\t}", "@Test\n\tpublic void testToString2() {\n\t\t\n\t\tString saideira = \"3 - sono infinito\";\n\t\tassertEquals(contato2.toString2(), saideira);\n\t}", "public String conCat(String a, String b) {\r\n String res = \"\";\r\n\r\n if (a.length() > 0 && b.length() > 0) {\r\n if (a.charAt(a.length() - 1) == b.charAt(0)) {\r\n res = a + b.substring(1);\r\n } else {\r\n res = a + b;\r\n }\r\n } else {\r\n res = a + b;\r\n }\r\n\r\n return res;\r\n }", "public String toString()\n\t{\n\t\treturn \"\" + val;\n\t}", "public String toString() { return \"\"; }", "public String toString() { return \"\"; }", "public String comboString(String a, String b) {\r\n return a.length() > b.length() ? b + a + b : a + b + a;\r\n }", "String toStringAsInt();", "@Test\n\tpublic void testToString() {\n\t\tassertEquals(\"C Platinum 123ABC Kate\", c1.toString());\n\t\tassertEquals(\"C None 456DEF Bender\", c2.toString());\n\t}", "String getToText();", "private static String node2Str(JsonNode node) {\n try {\n return jsonWriter.writeValueAsString(node);\n } catch (JsonProcessingException e) {\n throw new IllegalStateException(\"Error writing JsonNode as a String: \" + node.asText(), e);\n }\n }", "public java.lang.String getS2() {\n java.lang.Object ref = s2_;\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 s2_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String toString(){\n return \"item1: \" + item1.toString() + \" | item2: \" + item2.toString();\n }", "static public String asString(Object a) throws Exception {\t\t\r\n\t\tif (a instanceof JSObject)\r\n\t\t\ta = ((JSObject) a).valueOf();\r\n\t\t\r\n\t\t// js types\r\n\t\tif (a instanceof String)\r\n\t\t\treturn (String) a;\r\n\t\tif (a instanceof Boolean)\r\n\t\t\treturn (Boolean) a ? \"1\" : \"0\";\r\n\t\tif (a instanceof Double) {\r\n\t\t\tdouble value = (Double) a;\r\n\t\t\tint valuei = (int) value;\r\n\t\t\treturn valuei == value ? Integer.toString(valuei) : Double.toString(value);\r\n\t\t}\r\n\t\tif (a == null)\r\n\t\t\treturn \"undefined\";\r\n\t\tif (a instanceof JSNull)\r\n\t\t\treturn \"null\";\r\n\t\tif (a instanceof JSObject)\r\n\t\t\treturn ((JSObject) a).toString();\r\n\t\t\r\n\t\t// exhausted possibilities\r\n\t\treturn a.toString();\r\n\t}" ]
[ "0.64015806", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6284314", "0.6261195", "0.61982423", "0.6060268", "0.6016549", "0.5975578", "0.5892685", "0.58903086", "0.5874233", "0.5872708", "0.58682585", "0.5860624", "0.58555186", "0.57806075", "0.575494", "0.5752698", "0.57476246", "0.57248104", "0.56650907", "0.56434894", "0.5634331", "0.5619596", "0.56124276", "0.5599056", "0.55906284", "0.5588053", "0.55602634", "0.55399066", "0.5522831", "0.5515877", "0.55145156", "0.5501559", "0.5487412", "0.5483954", "0.5476457", "0.5474295", "0.54553604", "0.54553604", "0.54553604", "0.54553604", "0.54553604", "0.54553604", "0.54553604", "0.54553604", "0.54553604", "0.54553604", "0.54553604", "0.54553604", "0.54553604", "0.54553604", "0.54553604", "0.54553604", "0.54553604", "0.54553604", "0.54553604", "0.54553604", "0.54553604", "0.54553604", "0.54450154", "0.54339075", "0.54322463", "0.5430866", "0.5426381", "0.53993016", "0.53993016", "0.5395318", "0.5384594", "0.53838056", "0.53773636", "0.5359522", "0.5356659", "0.53447825", "0.53431004" ]
0.0
-1
Compare shorter with longer by matching it with partial longer starting from beginning of longer
private int compareInternal(String shorter, String longer) { int lengthDiff = longer.length() - shorter.length(); for (int compareStartIndexInsideLonger = 0; compareStartIndexInsideLonger <= lengthDiff; compareStartIndexInsideLonger++) { String compariosonPartFromLonger = longer.substring(compareStartIndexInsideLonger, compareStartIndexInsideLonger + shorter.length()); //we have found an answer if they are not equal int result = shorter.compareTo(compariosonPartFromLonger); if (result != 0) { return result; } } //the are equal return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static String doit(final String string1, final String string2) {\n String shorterString; // a\n String longerString; // b\n if (string1.length() > string2.length()) {\n shorterString = string2;\n longerString = string1;\n } else {\n longerString = string2;\n shorterString = string1;\n }\n String r = \"\";\n\n for (int i = 0; i < shorterString.length(); i++) {\n for (int j = shorterString.length() - i; j > 0; j--) {\n for (int k = 0; k < longerString.length() - j; k++) {\n if (shorterString.regionMatches(i, longerString, k, j) && j > r.length()) {\n r = shorterString.substring(i, i + j);\n }\n }\n } // Ah yeah\n }\n return r;\n\n }", "public boolean compare_same(String x, String y) {\n\t\tint fuzzy = 0;\n\t\tif (x.length() != y.length()) return false;\n\t\tfor (int i = 0, j = 0; i<x.length() && j<y.length();) {\n\t\t\tif (i>0 && x.charAt(i-1)=='_' && '0'<=x.charAt(i) && x.charAt(i)<='9') {\n\t\t\t\twhile (i<x.length() && '0'<=x.charAt(i) && x.charAt(i)<='9') i++;\n\t\t\t}\n\t\t\tif (j>0 && y.charAt(j-1)=='_' && '0'<=y.charAt(j) && y.charAt(j)<='9') {\n\t\t\t\twhile (j<y.length() && '0'<=y.charAt(j) && y.charAt(j)<='9') j++;\n\t\t\t}\n\t\t\tif (i<x.length() && j<y.length() && x.charAt(i) != y.charAt(j)) {\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\ti++; j++;\n\t\t}\n\t\treturn true;\n\t}", "private static String lcs(String a, String b) {\n\n int rows = a.length();\n int cols = b.length();\n\n // Use two arrays to save space for a full metrics\n int[] previousRow = new int[cols];\n int[] currentRow = new int[cols];\n\n String longest = \"\"; // Longest so far\n\n for (int i=0; i<rows; ++i) {\n char r = a.charAt(i);\n for (int j=0; j<cols; ++j) {\n if (r == b.charAt(j)) {\n // Match!\n int matchLength = 1;\n if (j != 0) {\n matchLength += previousRow[j-1];\n }\n currentRow[j] = matchLength; \n if (matchLength > longest.length()) {\n // Fond a new candidate\n longest = a.substring(i - matchLength + 1, i + 1);\n }\n }\n // Clear out previous array so that it can be used for next round\n if (j != 0) {\n previousRow[j-1] = 0;\n }\n }\n\n // Reuse previous row, make it current.\n // It is already zero-ed out upto the last item, which won't be read\n int[] tmpRow = previousRow;\n previousRow = currentRow;\n currentRow = tmpRow;\n }\n\n return longest;\n }", "public static boolean isSubString(String shortStr, String longStr) {\n if ((shortStr.length() > longStr.length()) || shortStr.isEmpty() || longStr.isEmpty()) {\n return false;\n }\n for (int i = 0; i < longStr.length() - shortStr.length() + 1; i++) {\n int j = 0;\n for (; j < shortStr.length(); j++) {\n if (shortStr.charAt(j) == longStr.charAt(i + j)) {\n continue;\n } else {\n break;\n }\n }\n if (j == shortStr.length()) {\n return true;\n }\n }\n return false;\n }", "public static String longestSubSequence(String str1, int st1, String str2, int st2) {\n if ((st1 >= str1.length()) || (st2 >= str2.length()))\n return null;\n String subStr1 = str1.substring(st1, str1.length());\n String subStr2 = str2.substring(st2, str2.length());\n String lonSeq1 = null;\n String lonSeq2 = null;\n if (subStr1.length() == 1) {\n lonSeq1 = (str2.contains(subStr1)) ? subStr1 : null;\n } else {\n lonSeq1 = longestSubSequence(str1, st1 + 1, str2, st2);\n if ((lonSeq1 != null) && (!lonSeq1.isEmpty())) {\n String sub2 = str2.substring(0, str2.indexOf(lonSeq1.charAt(0)));\n if ((sub2 != null) && (!sub2.isEmpty())) {\n if (sub2.contains(String.valueOf(str1.charAt(st1)))) {\n lonSeq1 = str1.charAt(st1) + lonSeq1;\n }\n }\n }\n }\n if (subStr2.length() == 1) {\n lonSeq2 = (str1.contains(subStr2)) ? subStr2 : null;\n } else {\n // find longestSequence with str1 index increased\n lonSeq2 = longestSubSequence(str1, st1, str2, st2 + 1);\n if ((lonSeq2 != null) && (!lonSeq2.isEmpty())) {\n // find the index of longSeq2 in str1\n String sub1 = str1.substring(0, str1.indexOf(lonSeq2.charAt(0)));\n if ((sub1 != null) && (!sub1.isEmpty())) {\n if (sub1.contains(String.valueOf(str2.charAt(st2)))) {\n lonSeq2 = str2.charAt(st2) + lonSeq2;\n }\n }\n }\n\n }\n\n if ((lonSeq1 == null) || (lonSeq1.isEmpty())) return lonSeq2;\n if ((lonSeq2 == null) || (lonSeq2.isEmpty())) return lonSeq1;\n return (lonSeq1.length() > lonSeq2.length()) ? lonSeq1 : lonSeq2;\n }", "public static List<Integer> lcs(List<Integer> arr1, List<Integer> arr2) {\r\n ArrayList empty = new ArrayList();\r\n /* BEFORE WE ALLOCATE ANY DATA STORAGE, VALIDATE ARGS */\r\n if (null == arr1 || 0 == arr1.size())\r\n return empty;\r\n if (null == arr2 || 0 == arr2.size())\r\n return empty;\r\n\r\n if (equalLists(arr1, arr2)) {\r\n return arr1;\r\n }\r\n\r\n /* ALLOCATE VARIABLES WE'LL NEED FOR THE ROUTINE */\r\n ArrayList<Integer> bestMatch = new ArrayList<Integer>();\r\n ArrayList<Integer> currentMatch = new ArrayList<Integer>();\r\n ArrayList<List<Integer>> dataSuffixList = new ArrayList<List<Integer>>();\r\n ArrayList<List<Integer>> lineSuffixList = new ArrayList<List<Integer>>();\r\n\r\n /* FIRST, COMPUTE SUFFIX ARRAYS */\r\n for (int i = 0; i < arr1.size(); i++) {\r\n dataSuffixList.add(arr1.subList(i, arr1.size()));\r\n }\r\n for (int i = 0; i < arr2.size(); i++) {\r\n lineSuffixList.add(arr2.subList(i, arr2.size()));\r\n }\r\n\r\n /* STANDARD SORT SUFFIX ARRAYS */\r\n IntegerListComparator comp = new IntegerListComparator();\r\n Collections.sort(dataSuffixList, comp);\r\n Collections.sort(lineSuffixList, comp);\r\n\r\n /* NOW COMPARE ARRAYS MEMBER BY MEMBER */\r\n List<?> d = null;\r\n List<?> l = null;\r\n List<?> shorterTemp = null;\r\n int stopLength = 0;\r\n int k = 0;\r\n boolean match = false;\r\n\r\n bestMatch.retainAll(empty);\r\n bestMatch.addAll(currentMatch);\r\n for (int i = 0; i < dataSuffixList.size(); i++) {\r\n d = (List) dataSuffixList.get(i);\r\n for (int j = 0; j < lineSuffixList.size(); j++) {\r\n l = (List) lineSuffixList.get(j);\r\n if (d.size() < l.size()) {\r\n shorterTemp = d;\r\n } else {\r\n shorterTemp = l;\r\n }\r\n\r\n currentMatch.retainAll(empty);\r\n k = 0;\r\n stopLength = shorterTemp.size();\r\n match = (l.get(k).equals(d.get(k)));\r\n while (k < stopLength && match) {\r\n if (l.get(k).equals(d.get(k))) {\r\n currentMatch.add((Integer) shorterTemp.get(k));\r\n k++;\r\n } else {\r\n match = false;\r\n }\r\n }\r\n if (currentMatch.size() > bestMatch.size()) {\r\n bestMatch.retainAll(empty);\r\n bestMatch.addAll(currentMatch);\r\n }\r\n }\r\n }\r\n return bestMatch;\r\n }", "static int isSubstring(String s1, String s2) {\n int m = s1.length();\n int n = s2.length();\n\n // A loop to slide pat[] one by one\n for (int i = 0; i <= n - m; i++) {\n int j;\n\n // For current index i, check for pattern match\n for (j = 0; j < m; j++) {\n if (s2.charAt(i + j) != s1.charAt(j)) {\n break;\n }\n }\n\n if (j == m) {\n return i;\n }\n }\n return -1;\n }", "static boolean isSubstringUsingIndexOf(String big, String small) {\n return big.contains(small);\n }", "protected int stringCompare(String s1,String s2)\r\n\t{\r\n\t\tint shortLength=Math.min(s1.length(), s2.length());\r\n\t\tfor(int i=0;i<shortLength;i++)\r\n\t\t{\r\n\t\t\tif(s1.charAt(i)<s2.charAt(i))\r\n\t\t\t\treturn 0;\r\n\t\t\telse if(s1.charAt(i)>s2.charAt(i))\r\n\t\t\t\treturn 1;\t\r\n\t\t}\r\n\t\t//if the first shrotLenghtTH characters of s1 and s2 are same \r\n\t\tif(s1.length()<=s2.length()) //it's a close situation. \r\n\t\t\treturn 0;\r\n\t\telse \r\n\t\t\treturn 1; \r\n\t\t\r\n\t}", "private static int almostEqual(GroundTerm a, GroundTerm b) {\r\n\t\treturn StringUtils.getLevenshteinDistance(a.toString(), b.toString());\r\n\t}", "static String twoStrings(String s1, String s2) {\n Hashtable<Character, Integer> shortDict = null;\n Hashtable<Character, Integer> longDict = null;\n \n boolean isCommonSubset = false;\n \n String longerString = s1.length() >= s2.length() ? s1 : s2;\n String shorterString = s1.length() < s2.length() ? s1 : s2;\n \n longDict = prepareHashtable(longerString);\n shortDict = prepareHashtable(shorterString);\n \n for (char ch: shortDict.keySet()) {\n if (longDict.containsKey(ch)) {\n isCommonSubset = true;\n break;\n }\n }\n \n return isCommonSubset ? \"YES\" : \"NO\";\n }", "private static int levenshteinDistance(String word, int wordLen, String other, int otherLen) {\n if (wordLen == 0 || otherLen == 0) {\n return Math.max(wordLen, otherLen);\n }\n\n int cost = word.charAt(wordLen - 1) == other.charAt(otherLen - 1) ? 0 : 1;\n\n int deleteFromWord = levenshteinDistance(word, wordLen - 1, other, otherLen) + 1;\n int deleteFromOther = levenshteinDistance(word, wordLen, other, otherLen - 1) + 1;\n int deleteFromBoth = levenshteinDistance(word, wordLen - 1, other, otherLen - 1) + cost;\n\n return Math.min(deleteFromWord, Math.min(deleteFromOther, deleteFromBoth));\n }", "public static boolean equals(final CharSequence left, final int leftOffset, final int leftLength,\n final CharSequence right, final int rightOffset, final int rightLength) {\n if (leftLength == rightLength) {\n for (int i = 0; i < rightLength; i++) {\n if (left.charAt(i + leftOffset) != right.charAt(i + rightOffset)) {\n return false;\n }\n }\n return true;\n }\n return false;\n }", "private int calculateLevenshtein(String lhs, String rhs) {\n\t\tint len0 = lhs.length() + 1; \n\t int len1 = rhs.length() + 1; \n\t \n\t // the array of distances \n\t int[] cost = new int[len0]; \n\t int[] newcost = new int[len0]; \n\t \n\t // initial cost of skipping prefix in String s0 \n\t for (int i = 0; i < len0; i++) cost[i] = i; \n\t \n\t // dynamically computing the array of distances \n\t \n\t // transformation cost for each letter in s1 \n\t for (int j = 1; j < len1; j++) { \n\t // initial cost of skipping prefix in String s1 \n\t newcost[0] = j; \n\t \n\t // transformation cost for each letter in s0 \n\t for(int i = 1; i < len0; i++) { \n\t // matching current letters in both strings \n\t int match = (lhs.charAt(i - 1) == rhs.charAt(j - 1)) ? 0 : 1; \n\t \n\t // computing cost for each transformation \n\t int cost_replace = cost[i - 1] + match; \n\t int cost_insert = cost[i] + 1; \n\t int cost_delete = newcost[i - 1] + 1; \n\t \n\t // keep minimum cost \n\t newcost[i] = Math.min(Math.min(cost_insert, cost_delete), cost_replace);\n\t } \n\t \n\t // swap cost/newcost arrays \n\t int[] swap = cost; cost = newcost; newcost = swap; \n\t } \n\t \n\t // the distance is the cost for transforming all letters in both strings \n\t return cost[len0 - 1]; \n }", "@Override\npublic int compare(String first, String second) {\n\tint ans= Integer.compare(first.length(), second.length());\n\t//\n\t\n\t\n\t\n\t\n\treturn ans;\n\t//\n\t\n\t\n}", "public static int levenshtein(String a, String b) {\n a = a.toLowerCase();\n b = b.toLowerCase();\n\n if (a.equals(b)) {\n return 0;\n }\n\n return lev(a, b, a.length(), b.length());\n }", "private static boolean compare(char[] argText, int startIndex) {\n\t\tint textIndex = 0;\n\t\tfor (int i = 0; i < patternLength; i++) {\n\t\t\ttextIndex = startIndex + i;\n\t\t\tlogger.info(\"i: \" + i + \"textIndex:\" + textIndex);\n\t\t\tif (pattern[i] != argText[textIndex])\n\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "static int longestSubsequence(String x, String y) {\n char[] strX = x.toCharArray();\n char[] strY = y.toCharArray();\n\n Map<Character, Integer> xMap = new HashMap<>();\n Map<Character, Integer> yMap = new HashMap<>();\n\n for (int i = 0; i < strX.length; i++) {\n char c = strX[i];\n if (xMap.containsKey(c)) {\n xMap.put(c, xMap.get(c) + 1);\n } else {\n xMap.put(c, 1);\n }\n }\n\n for (int i = 0; i < strY.length; i++) {\n char c = strY[i];\n if (yMap.containsKey(c)) {\n yMap.put(c, yMap.get(c) + 1);\n } else {\n yMap.put(c, 1);\n }\n }\n\n System.out.println(xMap);\n System.out.println(yMap);\n\n ArrayList<Character> subsequence = new ArrayList<>();\n\n // first find match subsequence\n for (Character c : yMap.keySet()) {\n if (!xMap.containsKey(c)) {\n continue;\n }\n\n int xCount = xMap.get(c);\n int yCount = yMap.get(c);\n int charCount = xCount < yCount ? xCount : yCount;\n\n for (int i = 0; i < charCount; i++) {\n subsequence.add(c);\n }\n }\n\n System.out.println(\"may be seq\" + subsequence);\n\n int max = 0;\n for (int i = 0; i < subsequence.size(); i++) {\n char c = subsequence.get(i);\n ArrayList<Character> remains = new ArrayList<>(subsequence);\n remains.remove(i);\n StringBuilder curr = new StringBuilder();\n curr.append(c);\n// System.out.println(\"max\" + max);\n int result = findPermutation(y, curr, remains, max);\n if (result > max) {\n max = result;\n }\n }\n\n // find matching permutation\n\n System.out.println(\"result\" + max);\n // then find sub string\n return max;\n }", "private boolean containedIn(String a, String b){\n if(a.length() > b.length())return false;\n int aInd = 0;\n int bInd = 0;\n\n while(bInd < b.length()){\n if(aInd >= a.length())return true;\n char bChar = b.charAt(bInd);\n char aChar = a.charAt(aInd);\n if(bChar == aChar){\n aInd++;\n }\n bInd++;\n }\n return false;\n }", "public static boolean stringIntersect(String a, String b, int len) {\n\t\tHashSet<String> mySet = new HashSet<String>();\n\t\tfor (int i=0; i+len <= a.length(); i++){\n\t\t\tmySet.add(a.substring(i, i+len));\n\t\t}\n\t\tfor (int i=0; i+len <= b.length(); i++){\n\t\t\tif (mySet.contains(b.substring(i, i+len))){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false; // TO DO ADD YOUR CODE HERE\n\t}", "private Boolean solution(String s1, String s2){\n\t\t\n\t\tint k = s1.length();\n\t\tchar[] input1 = s1.toCharArray();\n\t\t\n\t\tint m =0 ,count=0;\n\t\t\n\t\twhile(m < s2.length()-1){\n\t\t\t\n\t\tchar[] temp1 = s2.substring(m, m+k).toCharArray();\n\t\t\t\n\t\t\tfor(int i=0; i<s1.length(); i++){\n\t\t\t\tfor(int j=0; j<s1.length(); j++){\n\t\t\t\t\tif(input1[i] == temp1[j] ){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t\tif(count == s1.length())\n\t\t\t\treturn true;\n\t\tcount =0;\n\t\tm++;\n\t\t}\n\t\treturn false;\n\t\t\n\t}", "public int String_Compare(String A, String B) {\n\t\t\n\t\tint shorter_length;\n\t\tif(A.length() >= B.length()) {\n\t\t\tshorter_length=B.length();\n\t\t}\n\t\telse {\n\t\t\tshorter_length=A.length();\n\t\t}\n\t\t\n\n\t\t\n\t\t\n\t\tint i = 0;\n\t\tint A_char;\n\t\tint B_char;\n\t\t\n\t\twhile(i < shorter_length ) {\n\t\t\tA_char = (int)A.charAt(i);\n\t\t\tB_char = (int)B.charAt(i);\n\n\t\t\tif(A_char != B_char) {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\ti+=1;\n\t\t}\n\t\treturn 0;\n\t}", "public int compare(PartialAlignment x, PartialAlignment y) {\n\t\t\tint matchDiff = (y.matches1 + y.matches2)\n\t\t\t\t\t- (x.matches1 + x.matches2);\n\t\t\tif (matchDiff > 0) {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\tif (matchDiff < 0) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\t// Otherwise fewer chunks wins\n\t\t\tint chunkDiff = x.chunks - y.chunks;\n\t\t\tif (chunkDiff != 0)\n\t\t\t\treturn chunkDiff;\n\t\t\t// Finally shortest distance wins\n\t\t\treturn x.distance - y.distance;\n\t\t}", "private static int matchValue(TrieNode existing, TrieNode toAdd, String[] allWords){\n\t\tSystem.out.println(allWords[existing.substr.wordIndex]);\n\t\tSystem.out.println(allWords[toAdd.substr.wordIndex]);\n\n\t\tString first=allWords[existing.substr.wordIndex].substring(existing.substr.startIndex,existing.substr.endIndex+1);\n\t\tString second=allWords[toAdd.substr.wordIndex].substring(toAdd.substr.startIndex,toAdd.substr.endIndex+1);\n\t\tSystem.out.println(\"Compare: \"+first+ \"\\twith\" +\"\\t\"+ second);\n\t\t\n\t\tint count=1;\n\t\tint matchValue=0;\n\t/*\tif(first.charAt(0)!=second.charAt(0)){\n\t\t\treturn 0;\n\t\t}*/\n\t\t\n\t\t//System.out.println(\"From: \"+ existing.substr.startIndex+\" To: \"+existing.substr.endIndex);\n\t\tif(first.length()<=second.length()){\n\t\t\tint imax=(short)(existing.substr.endIndex-existing.substr.startIndex+1);\n\t\tfor(int i=0;i<imax;i++){\n\t\t\t\n\t\t\t//System.out.println(\"UM WE RUN COUNT: \" );\n\t\t\tif(first.charAt(i)==second.charAt(i)){\n\t\t\t\tmatchValue++;\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(first.charAt(i)!=second.charAt(i)){\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t}\n\t\telse{\n\t\t\tint imax=(short)(toAdd.substr.endIndex-toAdd.substr.startIndex+1);\n\t\t\tfor(int i=0;i<imax;i++){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(first.charAt(i)==second.charAt(i)){\n\t\t\t\t\tmatchValue++;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if(first.charAt(i)!=second.charAt(i)){\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\n\t\t}\t\n\t\t}\n\t\treturn matchValue;\n\t}", "static String morganAndString(String a, String b) {\n\n\t\tString result = \"\";\n\n\t\tint pointerA = 0, pointerB = 0;\n\n\t\touter:\n\t\t\twhile ( pointerA < a.length() || pointerB < b.length()){\n\t\t\t\tif ( pointerA == a.length()) {\n\t\t\t\t\tresult = result + b.charAt(pointerB++);\n\t\t\t\t}\n\t\t\t\telse if ( pointerB == b.length()) {\n\t\t\t\t\tresult = result + a.charAt(pointerA++);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tchar ca = a.charAt ( pointerA );\n\t\t\t\t\tchar cb = b.charAt ( pointerB );\n\n\t\t\t\t\tif ( ca < cb ) {\n\t\t\t\t\t\tresult = result + ca;\n\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t}\n\t\t\t\t\telse if ( cb < ca ){\n\t\t\t\t\t\tresult = result + cb;\n\t\t\t\t\t\tpointerB++;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t// Find the smallest successor.\n\t\t\t\t\t\tint extraPointer = 1;\n\t\t\t\t\t\twhile ( pointerA + extraPointer < a.length() && pointerB + extraPointer < b.length()){\n\t\t\t\t\t\t\tchar cEa = a.charAt ( pointerA + extraPointer);\n\t\t\t\t\t\t\tchar cEb = b.charAt ( pointerB + extraPointer);\n\n\t\t\t\t\t\t\tif ( cEa < cEb ){\n\t\t\t\t\t\t\t\tresult = result + cEa;\n\t\t\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if ( cEb < cEa ){\n\t\t\t\t\t\t\t\tresult = result + cEb;\n\n\n\t\t\t\t\t\t\t\tpointerB++;\n\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\textraPointer++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// We got to the point in which both are the same.\n\t\t\t\t\t\tif ( pointerA + extraPointer == a.length() && pointerB + extraPointer == b.length()){\n\t\t\t\t\t\t\t// Both are equal. It doesn't matter which one I take it from.\n\t\t\t\t\t\t\tresult = result + ca;\n\t\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tif ( pointerA + extraPointer == a.length() ){\n\t\t\t\t\t\t\t\t// Compare the current one of B with the next letter.\n\t\t\t\t\t\t\t\t// If next letter is smaller than current one, cut from here.\n\t\t\t\t\t\t\t\t// else, cut from A.\n\t\t\t\t\t\t\t\tif ( b.charAt ( pointerB + extraPointer ) > b.charAt ( pointerB + extraPointer + 1)){\n\t\t\t\t\t\t\t\t\tresult = result + cb;\n\t\t\t\t\t\t\t\t\tpointerB++;\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\tresult = result + ca;\n\t\t\t\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t// The opposite.\n\t\t\t\t\t\t\t\t// Compare the current one of B with the next letter.\n\t\t\t\t\t\t\t\t// If next letter is smaller than current one, cut from here.\n\t\t\t\t\t\t\t\t// else, cut from A.\n\t\t\t\t\t\t\t\tif ( a.charAt ( pointerA + extraPointer ) > a.charAt ( pointerA + extraPointer + 1)){\n\t\t\t\t\t\t\t\t\tresult = result + ca;\n\t\t\t\t\t\t\t\t\tpointerA++;\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\tresult = result + cb;\n\t\t\t\t\t\t\t\t\tpointerB++;\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}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\treturn result;\n\n\n\t}", "public static boolean stringIntersect(String a, String b, int len) {\n\t\tif(len == 0) return true;\n\t\tSet<String> first = new HashSet<String>();\n\t\tSet<String> second = new HashSet<String>();\n\t\tfor(int i = 0; i < a.length() - len + 1; i++){\n\t\t\tfirst.add(a.substring(i, i + len));\n\t\t}\n\t\tfor(int i = 0; i < b.length() - len + 1; i++){\n\t\t\tsecond.add(b.substring(i, i + len));\n\t\t}\n\t\tboolean intersects = !Collections.disjoint(first, second);\n\t\treturn intersects;\n\t}", "private static int indexOfFirstDifferentChar(@NotNull CharSequence s1, int start1, @NotNull String s2, int start2) {\n boolean ignoreCase = !SystemInfo.isFileSystemCaseSensitive;\n int len1 = s1.length();\n int len2 = s2.length();\n while (start1 < len1 && start2 < len2) {\n char c1 = s1.charAt(start1);\n char c2 = s2.charAt(start2);\n if (!StringUtil.charsMatch(c1, c2, ignoreCase)) {\n return start1;\n }\n start1++;\n start2++;\n }\n return start1;\n }", "@Test\n\tvoid testLongestPalindromicSubstring() {\n\t\tassertEquals(\"bab\", new LongestPalindromicSubstring().longestPalindrome(\"babad\"));\n\t\tassertEquals(\"bb\", new LongestPalindromicSubstring().longestPalindrome(\"cbbd\"));\n\t}", "public static boolean compareSubstring(List<String> pieces, String s)\n {\n\n boolean result = true;\n int len = pieces.size();\n\n int index = 0;\n\nloop: for (int i = 0; i < len; i++)\n {\n String piece = pieces.get(i);\n\n // If this is the first piece, then make sure the\n // string starts with it.\n if (i == 0)\n {\n if (!s.startsWith(piece))\n {\n result = false;\n break loop;\n }\n }\n\n // If this is the last piece, then make sure the\n // string ends with it.\n if (i == len - 1)\n {\n result = s.endsWith(piece);\n break loop;\n }\n\n // If this is neither the first or last piece, then\n // make sure the string contains it.\n if ((i > 0) && (i < (len - 1)))\n {\n index = s.indexOf(piece, index);\n if (index < 0)\n {\n result = false;\n break loop;\n }\n }\n\n // Move string index beyond the matching piece.\n index += piece.length();\n }\n\n return result;\n }", "private boolean translateWith2ExchangedChars(String input1, String input2) {\n if (StringUtils.isBlank(input1) || StringUtils.isBlank(input2) || input1.length() != input2.length()) {\n return false;\n }\n if (input1.equals(input2)) {\n for (int i = 0; i < input1.length(); i++) {\n char current = input1.charAt(i);\n if (input1.lastIndexOf(current) != i) {\n return true;\n }\n }\n return false;\n } else {\n int first = -1, second = -1;\n for (int i = 0; i < input1.length(); i++) {\n if (input1.charAt(i) != input2.charAt(i)) {\n if (first == -1) {\n first = i;\n } else if (second == -1) {\n second = i;\n } else {\n return false;\n }\n }\n }\n return input1.charAt(first) == input2.charAt(second)\n && input1.charAt(second) == input2.charAt(first);\n }\n }", "public boolean isMatch(String str1, String str2) {\n \r\n if( str1 == null || str2 == null)\r\n return false;\r\n \r\n int i = 0;\r\n int j = 0;\r\n char preChar = ' ';\r\n \r\n while( i < str1.length() && j < str2.length() ){\r\n char c1 = str1.charAt(i);\r\n char c2 = str2.charAt(j);\r\n \r\n if( c1 == c2 || c2 == '.' ){\r\n i++;\r\n \r\n preChar = c2;\r\n j++;\r\n }\r\n else{\r\n if( c2 == '*' ){\r\n if( c1 == preChar || preChar == '.' ){\r\n i++;\r\n }\r\n else if( j+1 < str2.length() ){\r\n if( c1 == str2.charAt(j+1) || str2.charAt(j+1) == '.' ){\r\n i++;\r\n \r\n preChar = str2.charAt(j+1);\r\n j = j+2;\r\n }\r\n else\r\n return false;\r\n }\r\n else\r\n return false;\r\n }\r\n else{\r\n if( j+1 < str2.length() && str2.charAt(j+1) == '*' ){\r\n i++;\r\n \r\n preChar = c2;\r\n j = j+2;\r\n } \r\n else\r\n return false;\r\n }\r\n }\r\n }\r\n \r\n if( i == str1.length() ){\r\n if( j == str2.length() )\r\n return true;\r\n else if( str2.charAt(j)=='*' ){\r\n \r\n int countStr1 = 0;\r\n for(int k = str1.length()-1; k >= 0; k--){\r\n if( str1.charAt(k) == preChar )\r\n countStr1++;\r\n else\r\n break;\r\n }\r\n \r\n int countStr2 = 0;\r\n int countStarInStr2 = 0;\r\n for(int k = str2.length()-1; k >= 0; k--){\r\n if( str2.charAt(k) == preChar || str2.charAt(k) == '.' )\r\n countStr2++;\r\n else if( str2.charAt(k) == '*' )\r\n countStarInStr2++;\r\n else\r\n break;\r\n } \r\n \r\n if( countStr2 - countStarInStr2 <= countStr1 )\r\n return true;\r\n else\r\n return false;\r\n }\r\n else\r\n }\r\n else \r\n return false;\r\n }", "private boolean isSubSequence(char str1[], char str2[]) {\n int j = 0;\n int m = str1.length;\n int n = str2.length;\n for (int i=0; i<n&&j<m; i++)\n if (str1[j] == str2[i])\n j++;\n return (j==m);\n }", "public static int getVeryLongCompare(String a, String b) {\r\n\t\tif(a.equals(b))\r\n\t\t\treturn 0;\r\n\t\telse {\r\n\t\t\tint result = 0;\r\n\t\t\tboolean minus = false;\r\n\t\t\tif(a.charAt(0) == 45 && b.charAt(0) != 45) return -1;\r\n\t\t\tif(a.charAt(0) != 45 && b.charAt(0) == 45) return 1;\r\n\t\t\tif(a.charAt(0) == 45 && b.charAt(0) == 45) { \r\n\t\t\t\tminus = true;\r\n\t\t\t\ta = a.substring(1,a.length());\r\n\t\t\t\tb = b.substring(1,b.length());\r\n\t\t\t}\r\n\t\t\tif (a.charAt(0) == 46) a = \"0\" + a;\r\n\t\t\tif (b.charAt(0) == 46) b = \"0\" + b;\r\n\t\t\twhile(a.charAt(0) == 48 && a.charAt(1) != 46)\r\n\t\t\t\ta = a.substring(1,a.length());\r\n\t\t\twhile(b.charAt(0) == 48 && b.charAt(1) != 46)\r\n\t\t\t\tb = b.substring(1,b.length());\r\n\t\t\tboolean done = false;\r\n\t\t\tint aPointPos = a.indexOf(\".\");\r\n\t\t\tint bPointPos = b.indexOf(\".\");\r\n\t\t\tint aLength = a.length();\r\n\t\t\tint bLength = b.length();\r\n\t\t\tint aIntegerPart = aLength; \r\n\t\t\tint bIntegerPart = bLength;\r\n\t\t\tint aCurDigit = 0;\r\n\t\t\tint bCurDigit = 0;\r\n\t\t\tif (aPointPos > -1) {\r\n\t\t\t\taIntegerPart = aPointPos;\r\n\t\t\t}\r\n\t\t\tif (bPointPos > -1) {\r\n\t\t\t\tbIntegerPart = bPointPos;\r\n\t\t\t}\r\n\t\t\tif (aIntegerPart != bIntegerPart) {\r\n\t\t\t\tdone = true;\r\n\t\t\t\tif(aIntegerPart > bIntegerPart)\tresult = 1;\r\n\t\t\t\telse result = -1;\r\n\t\t\t} else {\r\n\t\t\t\tfor (int i = 0; i < aIntegerPart; i++) {\r\n\t\t\t\t\taCurDigit = a.charAt(i) - 48;\r\n\t\t\t\t\tbCurDigit = b.charAt(i) - 48;\r\n\t\t\t\t\tif(aCurDigit != bCurDigit) {\r\n\t\t\t\t\t\tdone = true;\r\n\t\t\t\t\t\tif(aCurDigit > bCurDigit) { result = 1; }\r\n\t\t\t\t\t\telse { result = -1; }\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tint maxFloatPart = Math.max(aLength - aIntegerPart - 1, bLength - bIntegerPart - 1);\r\n\t\t\t\tif(!done) {\r\n\t\t\t\t\tfor (int i = 0; i < maxFloatPart; i++) {\r\n\t\t\t\t\t\tif(aLength < aIntegerPart + i + 2) {\r\n\t\t\t\t\t\t\taCurDigit = 0;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\taCurDigit = a.charAt(aIntegerPart + i + 1) - 48;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(bLength < bIntegerPart + i + 2) {\r\n\t\t\t\t\t\t\tbCurDigit = 0;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tbCurDigit = b.charAt(bIntegerPart + i + 1) - 48;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(aCurDigit != bCurDigit) {\r\n\t\t\t\t\t\t\tdone = true;\r\n\t\t\t\t\t\t\tif(aCurDigit > bCurDigit) { result = 1; }\r\n\t\t\t\t\t\t\telse { result = -1; }\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(minus) result = 0 - result;\r\n\t\t\treturn result;\r\n\t\t}\r\n\t}", "public static String longestCommonPrefix(String a, String b){\r\n int l = Math.min(a.length(), b.length());\r\n for (int i = 0; i < l; i++){\r\n if (a.charAt(i) != b.charAt(i))\r\n return a.substring(0,i);\r\n }\r\n return a.substring(0,l);\r\n }", "static int compare(String a, String b) {\n if (a == null) a = \"\";\n if (b == null) b = \"\";\n\n int i = 0;\n while (i < a.length() && i < b.length()) {\n char x = a.charAt(i), y = b.charAt(i);\n if (x != y) return x - y;\n i++;\n }\n return a.length() - b.length();\n }", "public boolean checkPalindromeFormation(String a, String b) {\n int n = a.length();\n return findCommonSubstring(a.toCharArray(), b.toCharArray(), 0, n - 1) ||\n findCommonSubstring(b.toCharArray(), a.toCharArray(), 0, n - 1);\n }", "@Override\n public int compare(String left, String right) {\n int result = 0;\n int length = left.length() > right.length()\n ? right.length() : left.length();\n for (int i = 0; i < length; i++) {\n result = Character.compare(left.charAt(i), right.charAt(i));\n if (result != 0) {\n break;\n }\n }\n if (result == 0) {\n result = left.length() - right.length();\n }\n return result;\n\n }", "public boolean isARotation(String s1, String s2) {\n\t\tif(s1.length() != s2.length()) return false;\n\t\t\n\t\tStringBuilder stb = new StringBuilder();\n\t\tint i = 0;\n\t\twhile(i < s1.length()) {\n\t\t\tif(s1.charAt(i) == s1.charAt(i)) {\n\t\t\t\treturn subString(s1.substring(0, i), s2) \n\t\t\t\t\t\t&& stb.toString().compareTo(s2.substring(i, s2.length()-1)) == 0;\n\t\t\t}\n\t\t\ti++;\n\t\t\tstb.append(s1.charAt(i));\n\t\t}\n\t\treturn false;\n\t}", "public int longestCommonSubsequence(String text1, String text2) {\n int[][] dp = new int[text1.length()][text2.length()];\n\n // init the first column\n for (int i = 0; i < text1.length(); i++) {\n // if they match characters\n if (text1.charAt(i) == text2.charAt(0)) {\n dp[i][0] = 1;\n }\n // check if the the subseq length is larger from the substring at 0...i-1\n if (i > 0 && dp[i - 1][0] > dp[i][0]) {\n dp[i][0] = dp[i - 1][0];\n }\n }\n // init the first row\n for (int i = 0; i < text2.length(); i++) {\n // if they match characters\n if (text1.charAt(0) == text2.charAt(i)) {\n dp[0][i] = 1;\n }\n // check if the the subseq length is larger from the substring at 0...i-1\n if (i > 0 && dp[0][i - 1] > dp[0][i]) {\n dp[0][i] = dp[0][i - 1];\n }\n }\n\n // use the results from the previous DP indexes for the text 1 and 2 subsequences\n // to compare which subsequence we should use\n for (int i = 1; i < dp.length; i++) {\n boolean characterMatch = false;\n for (int j = 1; j < dp[i].length; j++) {\n // leverage the previous result to determine what the\n // starting number will be, since we are using that\n // to enable comparing the characters at i and j and\n // appending that to what the previous longest subsequence\n // was.\n\n if (dp[i - 1][j] > dp[i][j - 1]) {\n dp[i][j] = dp[i - 1][j];\n } else {\n dp[i][j] = dp[i][j - 1];\n // ONLY update the length IF the choice was if the subseq length came from\n // the same index for i, because it \n if (!characterMatch && text1.charAt(i) == text2.charAt(j)) {\n dp[i][j]++;\n characterMatch = true;\n }\n }\n }\n }\n // return the result from dp[text1.length()-1][text2.length()-1]\n // as it holds the longest subseqence\n return dp[text1.length()-1][text2.length()-1];\n }", "public static void main(String[] args) {\n\n\t\tString a = \"aabbbc\", b =\"cbad\";\n\t\t// a=abc\t\t\t\tb=cab\n\t\t\n\t\t\n\t\tString a1 =\"\" , b1 = \"\"; // to store all the non duplicated values from a\n\t\t\n\t\tfor(int i=0; i<a.length();i++) {\n\t\t\tif(!a1.contains(a.substring(i,i+1)))\n\t\t\t\ta1 += a.substring(i,i+1);\n\t\t}\n\t\t\n\t\tfor(int i=0; i<b.length();i++) {\n\t\t\tif(!b1.contains(b.substring(i,i+1)))\n\t\t\t\tb1 += b.substring(i,i+1);\n\t\t}\n\t\t\t\t\n\t\tchar[] ch1 = a1.toCharArray();\n\t\tSystem.out.println(Arrays.toString(ch1));\n\t\t\n\t\tchar[] ch2 = b1.toCharArray();\n\t\tSystem.out.println(Arrays.toString(ch2));\n\t\t\n\t\tArrays.sort(ch1);\n\t\tArrays.sort(ch2);\n\t\t\n\t\tSystem.out.println(\"=====================================================\");\n\t\t\n\t\tSystem.out.println(Arrays.toString(ch1));\n\t\tSystem.out.println(Arrays.toString(ch2));\n\t\t\n\t\tString str1 = Arrays.toString(ch1);\n\t\tString str2 = Arrays.toString(ch2);\n\t\t\n\t\tif(str1.contentEquals(str2)) {\n\t\t\tSystem.out.println(\"true, they build out of same letters\");\n\t\t}else { \n\t\t\tSystem.out.println(\"fasle, there is something different\");\n\t\t}\n\t\t\n\n\t\t\n\t\t// SHORTER SOLUTION !!!!!!!!!!!!!!!!!!!!\n\t\t\n//\t\tString Str1 = \"aaaabbbcc\", Str2 = \"cccaabbb\";\n//\t\t\n//\t\tStr1 = new TreeSet<String>( Arrays.asList(Str1.split(\"\"))).toString();\n//\t\tStr2 = new TreeSet<String>( Arrays.asList(Str2.split(\"\"))).toString();\n//\t\tSystem.out.println(Str1.equals(Str2));\n//\t\t\n//\t\t\n\t\t\n}", "private boolean oneCharOff( String word1, String word2 )\n {\n if( word1.length( ) != word2.length( ) )\n return false;\n int diffs = 0;\n for( int i = 0; i < word1.length( ); i++ )\n if( word1.charAt( i ) != word2.charAt( i ) )\n if( ++diffs > 1 )\n return false;\n return diffs == 1;\n }", "public static boolean unsignedIntersects(CharBuffer set1, int length1, CharBuffer set2,\n int length2) {\n if ((0 == length1) || (0 == length2)) {\n return false;\n }\n int k1 = 0;\n int k2 = 0;\n\n // could be more efficient with galloping\n char s1 = set1.get(k1);\n char s2 = set2.get(k2);\n\n mainwhile: while (true) {\n if (s2 < s1) {\n do {\n ++k2;\n if (k2 == length2) {\n break mainwhile;\n }\n s2 = set2.get(k2);\n } while (s2 < s1);\n }\n if (s1 < s2) {\n do {\n ++k1;\n if (k1 == length1) {\n break mainwhile;\n }\n s1 = set1.get(k1);\n } while (s1 < s2);\n } else {\n return true;\n }\n }\n return false;\n }", "public static boolean isOneAway(String string1, String string2) {\n int lengthDifference = Math.abs(string1.length() - string2.length());\n if (lengthDifference > 1) {\n return false;\n }\n\n String shorterString;\n String longerString;\n\n if (string1.length() < string2.length()) {\n shorterString = string1;\n longerString = string2;\n } else {\n shorterString = string2;\n longerString = string1;\n }\n\n int index1 = 0;\n int index2 = 0;\n\n boolean foundDifference = false;\n\n while (index1 < shorterString.length() && index2 < longerString.length()) {\n if (shorterString.charAt(index1) != longerString.charAt(index2)) {\n if (foundDifference) {\n return false;\n }\n\n foundDifference = true;\n\n if (shorterString.length() == longerString.length()) {\n // Replace edit\n index1++;\n } // Else -> insert or delete edit -> do not move index 1\n } else {\n index1++;\n }\n\n index2++;\n }\n\n return true;\n }", "private static boolean beforeStar(String v1, String v2) {\n\t\t\n\t\tif(v1.length() < (v2.length() - 1) ) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tchar[] value1 = v1.toCharArray();\n\t\tchar[] value2 = v2.toCharArray();\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tint n = v1.length();\n\t\t\n\t\twhile(true) {\n\t\t\t\n\t\t\tif( (value1[i] != value2[j]) && value2[j] != '*') {\n\t\t\t\treturn false;\n\t\t\t}else if(value2[j] == '*') {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\ti++;\n\t\t\tj++;\n\t\t\t\n\t\t\tif(i == n) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public int stringMatch(String a, String b) {\n int result = 0;\n int end = (a.length()<=b.length()? a.length():b.length());\n for (int i = 0; i <end-1 ; i++){\n if (a.substring(i, i + 2).equals(b.substring(i, i + 2))) {\n result++;\n }\n }\n return result;\n }", "public int minSwaps(String s, int[] L, int[] R) {\n if(s.length() <= 1) {\n return -1;\n }\n\n Arrays.sort(L);\n Arrays.sort(R);\n StringBuilder sb = new StringBuilder(s);\n\n int moves = 0;\n List<String> parts = new ArrayList<String>();\n List<List<Integer>> corrections = new ArrayList<List<Integer>>();\n for(int i = L.length - 1; i >= 0; i--) {\n String curr = s.substring(L[i], R[i] + 1);\n List<Integer> currCorrection = correct(curr);\n if(curr.length() % 2 == 1) {\n return -1;\n }\n if(currCorrection.size() > 0) {\n parts.add(curr);\n corrections.add(currCorrection);\n }\n sb.delete(L[i], R[i] + 1);\n }\n\n List<String> processed = new ArrayList<String>();\n for(int p = parts.size() - 1; p >= 0; p--) {\n List<Integer> currCorrection = corrections.remove(p);\n StringBuilder currPart = new StringBuilder(parts.remove(p));\n for(int c = 0; c < currCorrection.size(); c++) {\n boolean swapped = false;\n char neededChar = currPart.charAt(currCorrection.get(c)) == '(' ? ')' : '(';\n // Check if any of the other corrections in this list are the exact opposite:\n for(int oc = c + 1; oc < currCorrection.size(); oc++) {\n if(currPart.charAt(currCorrection.get(oc)) == neededChar) {\n swapped = true;\n currPart.setCharAt(currCorrection.get(oc), currPart.charAt(currCorrection.get(c)));\n currPart.setCharAt(currCorrection.get(c), neededChar);\n currCorrection.remove(oc);\n moves++;\n break;\n }\n }\n\n if(swapped) continue;\n\n for(int op = p - 1; op >= 0; op--) {\n List<Integer> otherCorrection = corrections.get(op);\n StringBuilder otherPart = new StringBuilder(parts.get(op));\n\n for(int oc = otherCorrection.size() - 1; oc >= 0; oc--) {\n if(otherPart.charAt(otherCorrection.get(oc)) == neededChar) {\n otherPart.setCharAt(otherCorrection.get(oc), currPart.charAt(currCorrection.get(c)));\n currPart.setCharAt(currCorrection.get(c), neededChar);\n otherCorrection.remove(oc);\n moves++;\n swapped = true;\n break;\n }\n }\n\n if(swapped) break;\n }\n\n if(swapped) continue;\n\n for(int baseIdx = 0; baseIdx < sb.length(); baseIdx++) {\n if(sb.charAt(baseIdx) == neededChar) {\n sb.setCharAt(baseIdx, currPart.charAt(currCorrection.get(c)));\n currPart.setCharAt(currCorrection.get(c), neededChar);\n moves++;\n swapped = true;\n break;\n }\n }\n\n if(!swapped) {\n return -1;\n }\n }\n\n processed.add(0, currPart.toString());\n }\n\n return moves;\n }", "private static String LongCommSubsForTwoStrings(String playerNumb, String winningNumb) {\n int playerNameLen = playerNumb.length();\n int winningNumbLen = winningNumb.length();\n if(playerNameLen == 0 || winningNumbLen == 0){\n return \"\";\n }else if(playerNumb.charAt(playerNameLen-1) == winningNumb.charAt(winningNumbLen-1)){\n return LongCommSubsForTwoStrings(playerNumb.substring(0,playerNameLen-1),winningNumb.substring(0,winningNumbLen-1))\n + playerNumb.charAt(playerNameLen-1);\n }else{\n String x = LongCommSubsForTwoStrings(playerNumb, winningNumb.substring(0,winningNumbLen-1));\n String y = LongCommSubsForTwoStrings(playerNumb.substring(0,playerNameLen-1), winningNumb);\n return (x.length() > y.length()) ? x : y;\n }\n }", "private boolean isIn(String s1, String s2) {\n\t for(int i = 0; i <= s2.length() - s1.length(); i++) {\n\t \n\t if(s2.substring(i, i+s1.length()).equals(s1) ) {\n\t // System.out.println(\"+ \" + s2.substring(i, i+s1.length()) + \" \" + s1);\n\t return true;\n\t }\n\t }\n\t return false;\n\t}", "private static boolean search(String substring1, String substring2) {\n\t\tHashMap<Character, Integer> hm = new HashMap<Character, Integer>();\n\t\tfor (int i = 0; i < substring1.length(); i++) {\n\t\t\thm.put(substring1.charAt(i), hm.getOrDefault(substring1.charAt(i), 0)+1);\n\t\t}\n\n\t\tfor (int i = 0; i < substring2.length(); i++) {\n\t\t\tchar c = substring2.charAt(i);\n\t\t\tif (hm.containsKey(c)) {\n\t\t\t\thm.put(c, hm.get(c)-1);\n\t\t\t\tif (hm.get(c) == 0) {\n\t\t\t\t\thm.remove(c);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (hm.isEmpty()) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public static void main(String[] args) {\n\r\n\t\tString s1=\"abcd\";\r\n\t\tString s2=\"vbvabcdqwe\";\r\n\t\tchar arr1[]=s1.toCharArray();\r\n\t\tchar arr2[]=s2.toCharArray();\r\n\r\n\t\tint flag=0;\r\n\t\tfor(int i=0;i<arr1.length;i++)\r\n\t\t{\r\n\t\t\tfor(int j=i;j<arr2.length;j++)\r\n\t\t\t{\r\n\t\t\t\tif(arr1[i]==arr2[j])\r\n\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}\r\n\t\t}\r\n\t\t\r\n\t}", "private static boolean diffOne(String s1, String s2) {\n int count = 0;\n for (int i = 0; i < s1.length(); i++) {\n if (s1.charAt(i) != s2.charAt(i)) count++;\n if (count > 1) return false;\n }\n return count == 1;\n }", "private boolean isSmallLexi(String curr, String ori) {\n if (curr.length() != ori.length()) {\n return curr.length() < ori.length();\n }\n for (int i = 0; i < curr.length(); i++) {\n if (curr.charAt(i) != ori.charAt(i)) {\n return curr.charAt(i) < ori.charAt(i);\n }\n }\n return true;\n }", "public static boolean is_rotation_of_another_string(String word1, String word2) {\n\n String s3 = word1 + word1;\n\n if (s3.contains(word2))\n return true;\n else\n return false;\n }", "private boolean overlapsWith(int offset1, int length1, int offset2, int length2) {\n \t\tint end= offset2 + length2;\n \t\tint thisEnd= offset1 + length1;\n \n \t\tif (length2 > 0) {\n \t\t\tif (length1 > 0)\n \t\t\t\treturn offset1 < end && offset2 < thisEnd;\n \t\t\treturn offset2 <= offset1 && offset1 < end;\n \t\t}\n \n \t\tif (length1 > 0)\n \t\t\treturn offset1 <= offset2 && offset2 < thisEnd;\n \t\treturn offset1 == offset2;\n \t}", "public boolean compareStrings(String A, String B) {\n if(A.length()<B.length())\n \treturn false;\n char[] a=A.toCharArray();\n char[] b=B.toCharArray();\n ArrayList<Character> aa=new ArrayList<>();\n ArrayList<Character> bb=new ArrayList<>();\n for(int i=0;i<a.length;i++){\n \taa.add(a[i]);\n }\n for(int i=0;i<b.length;i++){\n \tbb.add(b[i]);\n }\n while(bb.size()!=0){\n \tint flag=0;\n \tfor(int i=0;i<aa.size();i++){\n \t\tif(bb.get(0).equals(aa.get(i))){\n \t\t\tbb.remove(0);\n \t\t\taa.remove(i);\n \t\t\tSystem.out.println(bb);\n \t\t\tSystem.out.println(aa);\n \t\t\tflag=1;\n \t\t\tbreak;\n \t\t}\n \t}\n \tif (flag==0)\n \t\treturn false;\n }\n return true; \n }", "static boolean isSubSequence(String keyword, String task, int keywordLength, int taskLength) {\n if (keywordLength == 0) {\n return true;\n }\n\n if (taskLength == 0) {\n return false;\n }\n\n // If last characters of two strings are matching\n if (keyword.charAt(keywordLength - 1) == task.charAt(taskLength - 1)) {\n return isSubSequence(keyword, task, keywordLength - 1, taskLength - 1);\n }\n\n // If last characters are not matching\n return isSubSequence(keyword, task, keywordLength, taskLength - 1);\n }", "static String twoStrings(String s1, String s2){\n // Complete this function\n String letters = \"abcdefghijklmnopqrstuvwxyz\";\n for(int i=0;i<letters.length();i++){\n char lettersChar = letters.charAt(i); \n if(s1.indexOf(lettersChar) > -1 && s2.indexOf(lettersChar) > -1){\n return \"YES\";\n }\n }\n \n return \"NO\";\n }", "public int compare(PartialAlignment x, PartialAlignment y) {\n\t\t\tint matchDiff = (y.matches1 + y.matches2)\n\t\t\t\t\t- (x.matches1 + x.matches2);\n\t\t\tif (matchDiff > 0) {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\tif (matchDiff < 0) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\t// 3 - Total words covered (more)\n\t\t\tint allMatchDiff = (y.allMatches1 + y.allMatches2)\n\t\t\t\t\t- (x.allMatches1 + x.allMatches2);\n\t\t\tif (allMatchDiff > 0) {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\tif (allMatchDiff < 0) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\t// 4 - Number of chunks (less)\n\t\t\tint chunkDiff = x.chunks - y.chunks;\n\t\t\tif (chunkDiff != 0)\n\t\t\t\treturn chunkDiff;\n\t\t\t// 5 - Absolute match distance (less)\n\t\t\treturn x.distance - y.distance;\n\t\t}", "public static boolean equalsIgnoreCase(final CharSequence left, final int leftOffset, final int leftLength,\n final CharSequence right, final int rightOffset, final int rightLength) {\n if (leftLength == rightLength) {\n for (int i = 0; i < rightLength; i++) {\n if (toLowerCase(left.charAt(i + leftOffset)) != toLowerCase(right.charAt(i + rightOffset))) {\n return false;\n }\n }\n return true;\n }\n return false;\n }", "public static boolean timingSafeEquals(CharSequence first, CharSequence second) {\n if (first == null) {\n return second == null;\n } else if (second == null) {\n return false;\n } else if (second.length() <= 0) {\n return first.length() <= 0;\n }\n int firstLength = first.length();\n int secondLength = second.length();\n char result = (char) ((firstLength == secondLength) ? 0 : 1);\n int j = 0;\n for (int i = 0; i < firstLength; ++i) {\n result |= first.charAt(i) ^ second.charAt(j);\n j = (j + 1) % secondLength;\n }\n return result == 0;\n }", "@Override\n\t\t\t\t\t\tpublic int compare(SearchItem lhs, SearchItem rhs) {\n\t\t\t\t\t\t\tString first = lhs.get_text().toString();\n\t\t\t\t\t\t\tString sec = rhs.get_text().toString();\n\n\t\t\t\t\t\t\tint i1 = first.indexOf(constraint.toString());\n\t\t\t\t\t\t\tint i2 = sec.indexOf(constraint.toString());\n\n\t\t\t\t\t\t\treturn (i1 < i2) ? -1 : (i1 == i2) ? 0 : 1;\n\t\t\t\t\t\t}", "public static String longerString(String s1, String s2) {\n \tif(s1.length()>s2.length()) {\n \t\treturn s1;\n \t}else if(s1.length()<s2.length()) {\n \t\treturn s2;\n \t}\n return \"equal\";\n }", "public static String getStrcmpConstraints(String left, String right){\n\t\treturn compare(left, right, 0);\n\t}", "public static boolean isOneAway2(String string1, String string2) {\n int lengthDifference = Math.abs(string1.length() - string2.length());\n if (lengthDifference > 1) {\n return false;\n }\n\n int[][] dp = new int[string1.length() + 1][string2.length() + 1];\n\n for (int i = 1; i <= string1.length(); i++) {\n for (int j = 1; j <= string2.length(); j++) {\n int smallestEditDistance = Math.min(dp[i - 1][j - 1], dp[i][j - 1]);\n smallestEditDistance = Math.min(smallestEditDistance, dp[i - 1][j]);\n\n if (string1.charAt(i - 1) == string2.charAt(j - 1)) {\n dp[i][j] = smallestEditDistance;\n } else {\n dp[i][j] = smallestEditDistance + 1;\n }\n }\n }\n\n return dp[string1.length()][string2.length()] <= 1;\n }", "static boolean byteMatch(byte[] a, int aOff, int aLen,\n byte[] b, int bOff, int bLen) {\n if ((aLen != bLen) || (a.length < aOff + aLen) ||\n (b.length < bOff + bLen)) {\n return false;\n }\n \n for (int i = 0; i < aLen; i++) {\n if (a[i + aOff] != b[i + bOff]) {\n return false;\n }\n }\n\n return true;\n }", "public static boolean less (int a, int b, String s) {\n int N = s.length();\n String v;\n String w;\n \n // construct suffix to compare\n if (a > 0) \n v = s.substring(a,N) + s.substring(0, a);\n else\n v = s.substring(a,N);\n \n // construct suffix to compare\n if (b > 0) \n w = s.substring(b,N) + s.substring(0, b);\n else\n w = s.substring(b,N);\n \n // is v less than v?\n if (v.compareTo(w) < 0)\n return true;\n else \n return false;\n }", "public static boolean endOther(String a, String b) {\n String larger, smaller;\n if (a.length() > b.length()){\n larger = a;\n smaller = b;\n }\n else{\n larger = b;\n smaller = a;\n }\n larger = larger.toLowerCase();\n smaller = smaller.toLowerCase();\n int i = larger.length() - smaller.length();\n return ((larger.substring(i, larger.length())).equals(smaller));\n }", "public boolean isSubSequence(String x, String y){\n\t\tint j = 0;\n\t\tfor(int i = 0 ; i < x.length() && j< y.length(); i++){\n\t\t\tif(x.charAt(j) == y.charAt(i)){\n\t\t\t\tj++;\n\t\t\t}\n\t\t}\n\t\treturn j == x.length();\n\t}", "protected int find_among_b(Among v[])\n {\n\tint i = 0;\n\tint j = v.length;\n\n\tint c = cursor;\n\tint lb = limit_backward;\n\n\tint common_i = 0;\n\tint common_j = 0;\n\n\tboolean first_key_inspected = false;\n\n\twhile (true) {\n\t int k = i + ((j - i) >> 1);\n\t int diff = 0;\n\t int common = common_i < common_j ? common_i : common_j;\n\t Among w = v[k];\n\t int i2;\n\t for (i2 = w.s.length - 1 - common; i2 >= 0; i2--) {\n\t\tif (c - common == lb) {\n\t\t diff = -1;\n\t\t break;\n\t\t}\n\t\tdiff = current.charAt(c - 1 - common) - w.s[i2];\n\t\tif (diff != 0) break;\n\t\tcommon++;\n\t }\n\t if (diff < 0) {\n\t\tj = k;\n\t\tcommon_j = common;\n\t } else {\n\t\ti = k;\n\t\tcommon_i = common;\n\t }\n\t if (j - i <= 1) {\n\t\tif (i > 0) break;\n\t\tif (j == i) break;\n\t\tif (first_key_inspected) break;\n\t\tfirst_key_inspected = true;\n\t }\n\t}\n\twhile (true) {\n\t Among w = v[i];\n\t if (common_i >= w.s.length) {\n\t\tcursor = c - w.s.length;\n\t\tif (w.method == null) return w.result;\n\n\t\tboolean res;\n\t\ttry {\n\t\t Object resobj = w.method.invoke(this);\n\t\t res = resobj.toString().equals(\"true\");\n\t\t} catch (InvocationTargetException e) {\n\t\t res = false;\n\t\t // FIXME - debug message\n\t\t} catch (IllegalAccessException e) {\n\t\t res = false;\n\t\t // FIXME - debug message\n\t\t}\n\t\tcursor = c - w.s.length;\n\t\tif (res) return w.result;\n\t }\n\t i = w.substring_i;\n\t if (i < 0) return 0;\n\t}\n }", "int partDist(String w1, String w2, int w1len, int w2len) {\n // To remember previous state\n int [][] matrix = new int [w1len + 1][w2len +1];\n for(int i = 0; i <= w1len; i++){\n for(int j = 0; j <= w2len; j++){\n // If word 1 is empty\n if(i == 0)\n matrix[i][j] = j;\n // If word 2 is empty\n else if(j == 0)\n matrix[i][j] = i;\n\n // if the previous letter are the same\n else if(w1.charAt(i-1) == w2.charAt(j-1))\n matrix[i][j] = matrix[i-1][j-1];\n /*\n remove one letter matrix[i][j-1]\n add one letter matrix[i-1][j]\n change letter matrix[i-1][j-1]\n */\n else\n matrix[i][j] = 1 + min(matrix[i][j-1], matrix[i-1][j], matrix[i-1][j-1]);\n }\n }\n\n return matrix[w1len][w2len];\n }", "public int longestCommonSubsequence(String text1, String text2) {\n int[][] dp = new int[text1.length()][text2.length()];\n\n // init the first column\n for (int i = 0; i < text1.length(); i++) {\n // if they match characters\n if (text1.charAt(i) == text2.charAt(0)) {\n dp[i][0] = 1;\n }\n // check if the the subseq length is larger from the substring at 0...i-1\n if (i > 0 && dp[i - 1][0] > dp[i][0]) {\n dp[i][0] = dp[i - 1][0];\n }\n }\n // init the first row\n for (int i = 0; i < text2.length(); i++) {\n // if they match characters\n if (text1.charAt(0) == text2.charAt(i)) {\n dp[0][i] = 1;\n }\n // check if the the subseq length is larger from the substring at 0...i-1\n if (i > 0 && dp[0][i - 1] > dp[0][i]) {\n dp[0][i] = dp[0][i - 1];\n }\n }\n\n // use the results from the previous DP indexes for the text 1 and 2 subsequences\n // to compare which subsequence we should use\n for (int i = 1; i < dp.length; i++) {\n for (int j = 1; j < dp[i].length; j++) {\n // check if we found a character match\n if (text1.charAt(i) == text2.charAt(j)) {\n // if so, use the LCS from the i-1,j-1 index to hold the new length\n dp[i][j] = dp[i - 1][j - 1] + 1;\n } else if (dp[i - 1][j] > dp[i][j - 1]) {\n // if there was no character match, use the\n // LCS length from the column before or row above\n dp[i][j] = dp[i - 1][j];\n } else {\n dp[i][j] = dp[i][j - 1];\n }\n }\n }\n // return the result from dp[text1.length()-1][text2.length()-1]\n // as it holds the longest subseqence\n return dp[text1.length()-1][text2.length()-1];\n }", "public boolean compare2StringsIgnoringCasses(String s1, String s2)\r\n {\r\n String a=s1.toLowerCase();\r\n String b=s2.toLowerCase();\r\n if(a.length()!= b.length())\r\n {\r\n return false;\r\n }\r\n else\r\n {\r\n for(int i=0; i<a.length(); i++)\r\n {\r\n if(!comparet2Chars(a.charAt(i),b.charAt(i)))\r\n {\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "private boolean matchSequences ( String sequence1, String sequence2 )\n{\n int matches = 0;\n\n // Check for sequences with less than 20 characters.\n if ( ( sequence1.length () <= 20 ) ||\n ( sequence2.length () <= 20 ) )\n {\n return sequence1.equalsIgnoreCase ( sequence2 );\n } // if\n\n // Count the matching bases in the first 20 characters.\n for ( int i = 0; i < 20; i++ )\n\n // Count the matching characters (but not N bases).\n if ( ( sequence1.charAt ( i ) == sequence2.charAt ( i ) ) &&\n ( sequence1.charAt ( i ) != 'x' ) &&\n ( sequence1.charAt ( i ) != 'n' ) )\n\n matches++;\n\n // Check for 90% identity (18/20) for a valid match\n if ( matches >= 18 ) return true;\n return false;\n}", "private static int LevenshteinDistance(String src, String dest){\n int[][] d = new int[src.length() + 1][dest.length() + 1];\n int i, j, cost;\n char[] str1 = src.toCharArray();\n char[] str2 = dest.toCharArray();\n \n for (i = 0; i <= str1.length; i++){d[i][0] = i;}\n for (j = 0; j <= str2.length; j++){d[0][j] = j;}\n for (i = 1; i <= str1.length; i++){\n for (j = 1; j <= str2.length; j++){\n if (str1[i - 1] == str2[j - 1])\n cost = 0;\n else\n cost = 1;\n d[i][j] =\n Math.min(\n d[i - 1][j] + 1, // Deletion\n Math.min(\n d[i][j - 1] + 1, // Insertion\n d[i - 1][j - 1] + cost)); // Substitution\n\n if ((i > 1) && (j > 1) && (str1[i - 1] == str2[j - 2]) && (str1[i - 2] == str2[j - 1]))\n {\n d[i][j] = Math.min(d[i][j], d[i - 2][j - 2] + cost);\n } \n }\n }\n return d[str1.length][str2.length];\n }", "private int commonLength( int i0, int i1 )\n {\n \tint n = 0;\n \twhile( (text[i0] == text[i1]) && (text[i0] != STOP) ){\n \t i0++;\n \t i1++;\n \t n++;\n \t}\n \treturn n;\n }", "public static int longestCommonSubsequence(String text1, String text2) {\n Map<Character, List<Integer>> characterListMap = new HashMap<>();\n char[] cA = text1.toCharArray();\n for (int i = 0; i < cA.length; i++) {\n if (characterListMap.get(cA[i]) == null) {\n List<Integer> list = new ArrayList<>();\n list.add(i);\n characterListMap.put(cA[i], list);\n } else {\n characterListMap.get(cA[i]).add(i);\n }\n }\n char[] cA2 = text2.toCharArray();\n int i = 0;\n int prevBiggest = 0;\n int previndex = 0;\n int currBiggest = 0;\n while (i < cA2.length && characterListMap.get(cA2[i]) == null) {\n i++;\n }\n if (i < cA2.length && characterListMap.get(cA2[i]) != null) {\n previndex = characterListMap.get(cA2[i]).get(characterListMap.get(cA2[i]).size() - 1);\n i++;\n currBiggest++;\n }\n\n\n for (; i < cA2.length; i++) {\n if (characterListMap.containsKey(cA2[i])) {\n if (characterListMap.get(cA2[i]).get(characterListMap.get(cA2[i]).size() - 1) > previndex) {\n previndex = characterListMap.get(cA2[i]).get(characterListMap.get(cA2[i]).size() - 1);\n currBiggest++;\n } else {\n previndex = characterListMap.get(cA2[i]).get(characterListMap.get(cA2[i]).size() - 1);\n if (currBiggest > prevBiggest) {\n prevBiggest = currBiggest;\n }\n currBiggest = 1;\n }\n }\n }\n\n return prevBiggest > currBiggest ? prevBiggest : currBiggest;\n }", "static String abbreviation(String a, String b) {\r\n \r\n HashSet<Character> aSet = new HashSet<>();\r\n\r\n for(int i = 0 ; i< a.length() ; i++){\r\n aSet.add(a.charAt(i));\r\n }\r\n \r\n for(int i = 0 ; i < b.length() ; i++){\r\n \r\n if(aSet.contains(b.charAt(i)) ){\r\n aSet.remove(b.charAt(i));\r\n }\r\n else if(aSet.contains(Character.toLowerCase(b.charAt(i)))){\r\n aSet.remove(Character.toLowerCase(b.charAt(i)));\r\n }\r\n else{\r\n return \"NO\";\r\n }\r\n \r\n\r\n }\r\n\r\n Iterator<Character> it = aSet.iterator();\r\n while(it.hasNext()){\r\n\r\n if(!isLowerCase(it.next())){\r\n return \"NO\";\r\n }\r\n }\r\n return \"YES\";\r\n \r\n /*\r\n String regex = \"\";\r\n for(int i = 0 ; i < b.length() ; i++){\r\n regex += \"[a-z]*\" + \"[\" + b.charAt(i) + \"|\" + Character.toLowerCase(b.charAt(i)) + \"]\";\r\n }\r\n regex += \"[a-z]*\";\r\n Pattern ptrn = Pattern.compile(regex);\r\n Matcher matcher = ptrn.matcher(a);\r\n\r\n return matcher.matches() ? \"YES\" : \"NO\";\r\n*/\r\n \r\n /*\r\n int aPtr = 0;\r\n\r\n //b e F g H\r\n // E F H\r\n for(int i = 0 ; i < b.length() ; i++){\r\n\r\n if(aPtr + 1 >= a.length())\r\n return \"NO\";\r\n //if(aPtr + 1 == a.length() && i + 1 == b.length())\r\n // return \"YES\";\r\n\r\n System.out.println(b.charAt(i) + \" \" + a.charAt(aPtr));\r\n if(b.charAt(i) == a.charAt(aPtr)){\r\n aPtr++;\r\n }else if(b.charAt(i) == Character.toUpperCase(a.charAt(aPtr)) && isLowerCase(a.charAt(aPtr))){\r\n aPtr++;\r\n\r\n } else if(b.charAt(i) != a.charAt(aPtr) && !isLowerCase(a.charAt(aPtr))){\r\n return \"NO\";\r\n }else if(b.charAt(i) != a.charAt(aPtr) && isLowerCase(a.charAt(aPtr))){\r\n aPtr++;\r\n i--;\r\n }\r\n\r\n\r\n\r\n }\r\n for(int i = aPtr ; i < a.length() ; i++){\r\n if(!isLowerCase(a.charAt(i)))\r\n return \"NO\";\r\n }\r\n\r\n return \"YES\";\r\n */\r\n\r\n }", "private boolean solveCutPalindrome(String a, String b) {\n\t\treturn solveCutPalindromeUtil(a, b) || solveCutPalindromeUtil(b, a);\n\t}", "public boolean isInterleave(String s1, String s2, String s3) {\n // write your code here\n\n int l1 = s1.length();\n int l2 = s2.length();\n int l3 = s3.length();\n\n // interleaving condition\n if (l1 + l2 != l3)\n return false;\n\n boolean[][] dp = new boolean[l1+1][l2+2];\n dp[0][0] = true;\n\n // initializing the table based on first string\n for (int i = 1; i <= l1; i++){\n if (s3.charAt(i-1) == s1.charAt(i-1) && dp[i-1][0])\n dp[i][0] = true;\n }\n\n // initializing the table based on second string\n for (int i = 1; i <= l2; i++){\n if (s3.charAt(i-1) == s2.charAt(i-1) && dp[0][i-1])\n dp[0][i] = true;\n }\n\n for (int i = 1; i<=l1; i++){\n for (int j=1; j<=l2; j++){\n if (dp[i][j-1] && (s3.charAt(i+j-1) == s2.charAt(j-1)) ||\n dp[i-1][j] && (s3.charAt(i+j-1) == s1.charAt(i-1)))\n dp[i][j] = true;\n }\n\n }\n return dp[l1][l2];\n }", "static String twoStrings(String s1, String s2) {\n String bigstr = s1.length() > s2.length() ? s1 : s2;\n String smallstr = s1.length() > s2.length() ? s2 : s1;\n int bigstrSize = bigstr.length();\n int smallstrSize = smallstr.length();\n\n boolean string_check[] = new boolean[1000];\n\n for (int i = 0; i < bigstrSize; i++) {\n string_check[bigstr.charAt(i) - 'A'] = true;\n }\n // if at least one char is present in boolean array\n for (int i = 0; i < smallstrSize; i++) {\n if (string_check[smallstr.charAt(i) - 'A'] == true) {\n return \"YES\";\n }\n }\n return \"NO\";\n }", "private static int editDis(String str1, String str2, int l1, int l2) {\n\t\tint[][] dp = new int[l1+1][l2+1];\n\t\tfor(int i=0;i<l2+1;i++) {\n\t\t\tdp[0][i]=i;\n\t\t}\n\t\tfor(int i=0;i<l1+1;i++) {\n\t\t\tdp[i][0]=i;\n\t\t}\n\t\t\n\t\tfor(int i=1;i<l1+1;i++) {\n\t\t\tfor(int j=1;j<l2+1;j++) {\n\t\t\t\tif(str1.charAt(i-1)==str2.charAt(j-1))\n\t\t\t\t\tdp[i][j]=dp[i-1][j-1];\n\t\t\t\telse {\n\t\t\t\t\tdp[i][j]=Math.min(dp[i][j], Math.min(dp[i][j-1], dp[i-1][j]))+1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn dp[l1][l2];\n\t\t\n\t}", "public static boolean compareLetters(String romConcat, char smallNum, char bigNum) {\n\t\tint checkSmall = 0, checkBig = 0;\r\n\t\t\r\n\t\tif(romConcat.indexOf(smallNum) > -1) {\r\n\t\t\tcheckSmall = romConcat.indexOf(smallNum);\r\n\t\t}\r\n\t\t\r\n\t\tif(romConcat.indexOf(bigNum) > -1) {\r\n\t\t\tcheckBig = romConcat.indexOf(bigNum);\r\n\t\t}\r\n\t\t\r\n\t\tif(checkSmall == 0 || checkBig == 0) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse if(checkSmall < checkBig) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "public int compareStringObjectsForLexRange(Object obj1, Object obj2) {\n\t\t /* This makes sure that we handle inf,inf and\n -inf,-inf ASAP. One special case less. */\n\t\tif (obj1 == obj2) {\n\t\t\treturn 0;\n\t\t}\n\t\t//if (obj1 == shared.minstring || obj2 == shared.maxstring) return -1;\n\t\t//if (obj1 == shared.maxstring || obj2 == shared.minstring) return 1;\n\t\treturn compareStringObjects(obj1, obj2);\n\t}", "private boolean isRotation(String s1, String s2) {\n\t\treturn (s1.length() == s2.length()) && isSubstring(s1 + s1, s2);\n\t}", "public int minDistance(String word1, String word2) {\n if(word1==null||word1.length()==0){\n return word2==null?0:word2.length();\n }else if(word2==null||word2.length()==0){\n return word1.length();\n }else if(word1.equals(word2)){\n return 0;\n }\n char[] str1 = word1.toCharArray();\n char[] str2 = word2.toCharArray();\n int[] oldl = new int[str2.length+1];\n int[] newl = new int[str2.length+1];\n for(int i=0;i<=str2.length;i++){\n oldl[i]=i;\n }\n for(int i=1;i<=str1.length;i++){\n newl[0]=i;\n for(int j=1;j<=str2.length;j++){\n newl[j]=Math.min(oldl[j]+1,newl[j-1]+1);\n if(str1[i-1]!=str2[j-1]){\n newl[j]=Math.min(oldl[j-1]+1,newl[j]);\n }else{\n newl[j]=Math.min(oldl[j-1],newl[j]);\n }\n }\n for(int k=0;k<=str2.length;k++){\n oldl[k]=newl[k];\n }\n }\n return newl[str2.length];\n }", "boolean sameName(String a, String b){\n\t\tif(a.length()!=b.length()){\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tfor(int i=0;i<a.length();i++){\r\n\t\t\tif(a.charAt(i)!=b.charAt(i)){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public int repeatedStringMatch(String a, String b) {\n \n int count = 0;\n StringBuilder sb = new StringBuilder();\n \n while(sb.length() < b.length()){\n sb.append(a); //O(roundUp(M/N) * N) < O(M*N)\n count++;\n }\n \n if(sb.indexOf(b) != -1) return count; //check at max O(M*N) characters\n \n //handles rotated array case\n if(sb.append(a).indexOf(b) != -1) return count + 1; //append takes O(N), indexOf takes in the worst case (missing match) ~O(M*N)\n \n return -1;\n }", "private static boolean wordHasAllExceptFirstInCommon(String word1, String word2) {\n int charsInCommon = 0;\n\n char[] w1 = word1.toCharArray();\n char[] w2 = word2.toCharArray();\n\n for (int i = 1; i < w1.length; i++) {\n for (int j = 0; j < w2.length; j++) {\n if (w1[i] == w2[j]) {\n charsInCommon++;\n w2[j] = '\\0'; // w2[j] som nullchar (använd)\n break;\n }\n }\n }\n return (charsInCommon == w1.length - 1);\n }", "public static void solveLCSBU(char[] first, char[] second){\n int[][] table = new int[first.length+1][second.length+1];\n int[][] direction = new int[first.length+1][second.length+1];\n\n //fill up table\n for(int i = 0; i <= first.length; i++) {\n for (int j = 0; j <= second.length; j++){\n if(i == 0 || j == 0){\n //base case for empty string comparison\n table[i][j] = 0;\n\n }else if(first[i-1] == second[j-1]){\n //case where characters are equal so take previous equal\n table[i][j] = table[i-1][j-1] + 1;\n direction[i][j] = 1;\n\n }else if(table[i-1][j] > table[i][j-1]){\n //take the winner sub problem\n table[i][j] = table[i-1][j];\n direction[i][j] = 2;\n\n } else{\n table[i][j] = table[i][j-1];\n direction[i][j] = 3;\n }\n }\n }\n\n System.out.println(\"Botoom up -> LCS is \" + getLCSString(direction,first,first.length,second.length) + \" of length \"+table[first.length][second.length]);\n }", "private static void findPart(char[][] a, char[][] b, char[][] sup, int r1, int r2, int c1, int c2)\n\t{\n\t\t\n\t\tif (r2 - r1 > 1)\n\t\t{\n\t\t\tfor (int r = r1+1; r < r2; r++)\n\t\t\t{\n\t\t\t\tboolean part = true;\n\t\t\t\tfor (int c = c1+1; c < c2; c+=2)\n\t\t\t\t{\n\t\t\t\t\tif (a[r][c] == ' ' || b[r][c] == ' ')\n\t\t\t\t\t{\n\t\t\t\t\t\tpart = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (part)\n\t\t\t\t{\n\t\t\t\t\tfor (int c = c1+1; c < c2; c+=2)\n\t\t\t\t\t{\n\t\t\t\t\t\tsup[r][c] = '_';\n\t\t\t\t\t}\n\t\t\t\t\tfindPart(a, b, sup, r1, r, c1, c2);\n\t\t\t\t\tfindPart(a, b, sup, r, r2, c1, c2);\n\t\t\t\t\t\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (c2 - c1 > 2)\n\t\t{\n\t\t\tfor (int c = c1+2; c < c2; c+=2)\n\t\t\t{\n\t\t\t\tboolean part = true;\n\t\t\t\tfor (int r = r1+1; r <= r2; r++)\n\t\t\t\t{\n\t\t\t\t\tif (a[r][c] == ' ' || b[r][c] == ' ')\n\t\t\t\t\t{\n\t\t\t\t\t\tpart = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (part)\n\t\t\t\t{\n\t\t\t\t\tfor (int r = r1+1; r <= r2; r++)\n\t\t\t\t\t{\n\t\t\t\t\t\tsup[r][c] = '|';\n\t\t\t\t\t}\n\t\t\t\t\tfindPart(a, b, sup, r1, r2, c1, c);\n\t\t\t\t\tfindPart(a, b, sup, r1, r2, c, c2);\n\t\t\t\t\t\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "static int lps(char seq[], int i, int j) {\n // Base Case 1: If there is only 1 character\n if (i == j) {\n return 1;\n }\n\n // Base Case 2: If there are only 2 characters and both are same\n if (seq[i] == seq[j] && i + 1 == j) {\n return 2;\n }\n\n // If the first and last characters match\n if (seq[i] == seq[j]) {\n return lps(seq, i + 1, j - 1) + 2;\n }\n\n // If the first and last characters do not match\n return max(lps(seq, i, j - 1), lps(seq, i + 1, j));\n }", "private static boolean equalityTest4(String a, String b)\n {\n if(a.length() == 0 && b.length() == 0)\n {\n return true;\n }\n else\n {\n if(a.length() == 0 || b.length() == 0)\n {\n return false;\n }\n if(a.charAt(0) == b.charAt(0))\n {\n return equalityTest4(a.substring(1), b.substring(1));\n }\n else\n {\n return false;\n }\n }\n }", "private boolean areCorrectlyOrdered( int i0, int i1 )\n {\n int n = commonLength( i0, i1 );\n \tif( text[i0+n] == STOP ){\n \t // The sortest string is first, this is as it should be.\n \t return true;\n \t}\n \tif( text[i1+n] == STOP ){\n \t // The sortest string is last, this is not good.\n \t return false;\n \t}\n \treturn (text[i0+n]<text[i1+n]);\n }", "Match getPartialMatch();", "public String prefix(String a, String b) {\n\t\tint minLength = Math.min(a.length(), b.length());\n\t\tfor (int i = 0; i < minLength; i++) {\n\t\t\tif (a.charAt(i) != b.charAt(i)) {\n\t\t\t\treturn a.substring(0, i);\n\t\t\t}\n\t\t}\n\t\treturn a.substring(0, minLength);\n\t}", "public int findSubstringInWraproundString1(String p) {\n if(p == null || p.length() == 0) {\n return 0;\n }\n int pLength = p.length();\n // keep track of the number of consecutive letters for each substrings which starts from a...z\n int[] consecutiveNumberFrom = new int[26]; \n consecutiveNumberFrom[p.charAt(0) - 'a'] = 1;\n // keep track of the number of legacy consecutive letters\n int[] consecutiveCount = new int[pLength];\n consecutiveCount[0] = 1;\n int result = 1;\n for(int i = 1; i < pLength; i++) {\n consecutiveCount[i] = isConsecutive(p.charAt(i - 1), p.charAt(i))\n ? consecutiveCount[i - 1] + 1\n : 1;\n for(int j = i - consecutiveCount[i] + 1; j <= i; j++) {\n if(consecutiveNumberFrom[p.charAt(j) - 'a'] < i - j + 1) {\n result++;\n consecutiveNumberFrom[p.charAt(j) - 'a']++;\n } else {\n break;\n }\n }\n }\n return result;\n }", "public String nonStart(String a, String b) {\r\n String shortA = a.length() > 0 ? a.substring(1) : a;\r\n String shortB = b.length() > 0 ? b.substring(1) : b;\r\n\r\n return shortA + shortB;\r\n }", "public int shortest(String word1, String word2) {\n List<Integer> first = map.get(word1);\n List<Integer> second = map.get(word2);\n int result = Integer.MAX_VALUE ;\n for(int i = 0, j = 0 ; i < first.size() && j < second.size();)\n result = first.get(i) < second.get(j) ? Math.min(result,second.get(j) - first.get(i++)) : Math.min(result,first.get(i) - second.get(j++)) ;\n return result;\n }", "@NonNull\n public static String getDiff(@NonNull String[] before, @NonNull String[] after) {\n StringBuilder sb = new StringBuilder();\n\n int n = before.length;\n int m = after.length;\n\n // Compute longest common subsequence of x[i..m] and y[j..n] bottom up\n int[][] lcs = new int[n + 1][m + 1];\n for (int i = n - 1; i >= 0; i--) {\n for (int j = m - 1; j >= 0; j--) {\n if (before[i].equals(after[j])) {\n lcs[i][j] = lcs[i + 1][j + 1] + 1;\n } else {\n lcs[i][j] = Math.max(lcs[i + 1][j], lcs[i][j + 1]);\n }\n }\n }\n\n int i = 0;\n int j = 0;\n while ((i < n) && (j < m)) {\n if (before[i].equals(after[j])) {\n i++;\n j++;\n } else {\n sb.append(\"@@ -\");\n sb.append(Integer.toString(i + 1));\n sb.append(\" +\");\n sb.append(Integer.toString(j + 1));\n sb.append('\\n');\n while (i < n && j < m && !before[i].equals(after[j])) {\n if (lcs[i + 1][j] >= lcs[i][j + 1]) {\n sb.append('-');\n if (!before[i].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(before[i]);\n sb.append('\\n');\n i++;\n } else {\n sb.append('+');\n if (!after[j].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(after[j]);\n sb.append('\\n');\n j++;\n }\n }\n }\n }\n\n if (i < n || j < m) {\n assert i == n || j == m;\n sb.append(\"@@ -\");\n sb.append(Integer.toString(i + 1));\n sb.append(\" +\");\n sb.append(Integer.toString(j + 1));\n sb.append('\\n');\n for (; i < n; i++) {\n sb.append('-');\n if (!before[i].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(before[i]);\n sb.append('\\n');\n }\n for (; j < m; j++) {\n sb.append('+');\n if (!after[j].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(after[j]);\n sb.append('\\n');\n }\n }\n\n return sb.toString();\n }", "private static String findSubString2(int index, int len, String s2) {\n\t\tint wLen = len - 1;\n\t\tint remLen = s2.length() - index;\n\t\tif (remLen <= wLen) {\n\t\t\treturn s2.substring(0, index) + s2.substring(index, index+remLen);\n\t\t} else {\n\t\t\tif (index == 0) {\n\t\t\t\treturn s2.substring(0, index) + s2.substring(index, len);\n\t\t\t}\n\t\t\treturn s2.substring(0, index) + s2.substring(index, len+1);\n\t\t}\n\t}" ]
[ "0.65732104", "0.61901206", "0.61136204", "0.6065445", "0.60575", "0.59764", "0.58070105", "0.57592165", "0.57178676", "0.5687377", "0.566919", "0.56347656", "0.56074905", "0.5604558", "0.5603731", "0.55998003", "0.5589877", "0.5588254", "0.55848956", "0.5583141", "0.55724514", "0.5571511", "0.55526644", "0.5552145", "0.5546768", "0.5510998", "0.5488169", "0.54555607", "0.5440697", "0.5440332", "0.5438473", "0.54285", "0.5422149", "0.5409813", "0.5409091", "0.5402699", "0.54018414", "0.5401429", "0.5386779", "0.53814954", "0.53756994", "0.5374042", "0.53728956", "0.5363769", "0.53579706", "0.53556985", "0.5345323", "0.5330301", "0.532604", "0.53222394", "0.5318252", "0.53156465", "0.5310518", "0.53080535", "0.5301262", "0.5299241", "0.52923524", "0.5283218", "0.52743065", "0.52735233", "0.5267293", "0.52656716", "0.5257403", "0.5249342", "0.52473104", "0.523954", "0.5237968", "0.52377486", "0.5236209", "0.5232496", "0.5226502", "0.5225767", "0.52211183", "0.52052677", "0.52033013", "0.52030325", "0.5194629", "0.5193479", "0.5181536", "0.5174197", "0.5172883", "0.5171527", "0.51680833", "0.5161144", "0.51563936", "0.5155608", "0.51449174", "0.5134618", "0.513388", "0.51319873", "0.5130331", "0.5126695", "0.512273", "0.51186925", "0.51154774", "0.50980866", "0.5095198", "0.5091755", "0.508358", "0.50681347" ]
0.74595284
0
Creates new form SelectorColor
public SelectorColor(java.awt.Frame parent, boolean modal) { super(parent, modal); initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings({\"deprecation\", \"rawtypes\", \"unchecked\"})\n public static javafx.scene.effect.ColorInputBuilder<?> create() {\n return new javafx.scene.effect.ColorInputBuilder();\n }", "Color userColorChoose();", "colorChoice(Vec3 color) {\n this.color = color;\n }", "private void buildColorSelector(JPanel panel) {\n colorChooserButton = new JLabel();\n colorChooserButton.setPreferredSize(new Dimension(16, 16));\n colorChooserButton.setVerticalAlignment(JLabel.CENTER);\n colorChooserButton.setBackground(Color.WHITE);\n colorChooserButton.setOpaque(true);\n colorChooserButton.setBorder(BorderFactory.createLineBorder(Color.black));\n colorChooserButton.addMouseListener(ApplicationFactory.INSTANCE\n .getNewColorChooserListener(this));\n panel.add(colorChooserButton, \"wrap\");\n }", "ColorSelectionDialog() {\n initComponents();\n }", "public void chooseColor() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "void setColorSelection() {\r\n for (int i = 0; i < chooser.length; i++) {\r\n\r\n if (mainclass.getGraphTyp()\r\n == AbstractGraph.GRAPHTYP_RESIDUAL) {\r\n\r\n switch (i) {\r\n case COLOR_EDGE_ONE:\r\n chooser[i].setColorSelected(colors[COLOR_EDGE_FLOW]);\r\n break;\r\n case COLOR_EDGE_TWO:\r\n chooser[i].setColorSelected(colors[COLOR_EDGE_CAP]);\r\n break;\r\n case COLOR_EDGE_TOP:\r\n chooser[i].setColorSelected(colors[COLOR_EDGE_RTOP]);\r\n break;\r\n default:\r\n chooser[i].setColorSelected(colors[i]);\r\n }\r\n } else {\r\n chooser[i].setColorSelected(colors[i]);\r\n }\r\n }\r\n }", "public static CustomisableListSelectionDialog\n createColorListSelectionDialog(Shell parent,\n String[] preSelected) {\n return new CustomisableListSelectionDialog(\n parent.getShell(),\n COLOR_RESOURCE_PREFIX,\n new ColorSelectorFactory(),\n createColorListValidator(),\n true, // colour list is allowed duplicate colours\n preSelected);\n }", "public void chooseColor() {\n Color c = JColorChooser.showDialog(_parent, \"Choose '\" + getLabelText() + \"'\", _color);\n if (c != null) {\n _color = c;\n notifyChangeListeners();\n _updateField(_color);\n } \n }", "private void colorScheme (Composite parent) {\r\n\t\tbgLabel = ControlFactory.createLabel(parent, CDTFoldingConstants.SELECT_BG);\r\n\t\tbgColorSelector = new ColorSelector(parent);\r\n\r\n\t\tfgLabel = ControlFactory.createLabel(parent, CDTFoldingConstants.SELECT_FG);\r\n\t\tfgColorSelector = new ColorSelector(parent);\r\n\r\n\t\tbgColorSelector.setColorValue(CDTUtilities.restoreRGB(store\r\n\t\t\t\t.getString(CDTFoldingConstants.COLOR_PICKED_BG)));\r\n\t\tfgColorSelector.setColorValue(CDTUtilities.restoreRGB(store\r\n\t\t\t\t.getString(CDTFoldingConstants.COLOR_PICKED_FG)));\r\n\r\n\t\tbgColorSelector.addListener(event -> {\r\n\t\t\tRGB currentRGB = bgColorSelector.getColorValue();\r\n\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tsb.append(Integer.toString(currentRGB.red) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.green) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.blue));\r\n\r\n\t\t\tstore.setValue(CDTFoldingConstants.COLOR_PICKED_BG, sb.toString());\r\n\t\t});\r\n\r\n\t\tfgColorSelector.addListener(event -> {\r\n\t\t\tRGB currentRGB = fgColorSelector.getColorValue();\r\n\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tsb.append(Integer.toString(currentRGB.red) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.green) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.blue));\r\n\r\n\t\t\tstore.setValue(CDTFoldingConstants.COLOR_PICKED_FG, sb.toString());\r\n\t\t});\r\n\r\n\t\tturnOnOffColors();\r\n\t}", "public static SelectiveSearchSegmentationStrategyColor createSelectiveSearchSegmentationStrategyColor()\r\n {\r\n \r\n SelectiveSearchSegmentationStrategyColor retVal = SelectiveSearchSegmentationStrategyColor.__fromPtr__(createSelectiveSearchSegmentationStrategyColor_0());\r\n \r\n return retVal;\r\n }", "private ElementColor selectColor() {\n\n\t\treturn Theme.defaultColor(); \n\t}", "public NewCustomColorPalette() {\n\t\tsuper();\n\t\tbuildPalette();\n\t}", "public ColorPanel() {\r\n setLayout(null);\r\n\r\n chooser = new ColorChooserComboBox[8];\r\n chooserLabel = new JLabel[8];\r\n String[][] text = new String[][] {\r\n {\"Hintergrund\", \"Background\"},\r\n {\"Kante I\", \"Edge I\"},\r\n {\"Kante II\", \"Edge II\"},\r\n {\"Gewicht\", \"Weight\"},\r\n {\"Kantenspitze\", \"Edge Arrow\"},\r\n {\"Rand der Knoten\", \"Node Borders\"},\r\n {\"Knoten\", \"Node Background\"},\r\n {\"Knoten Kennzeichnung\", \"Node Tag\"}};\r\n\r\n for (int i = 0; i < 8; i++) {\r\n createChooser(i, text[i], 10 + 30 * i);\r\n }\r\n\r\n add(createResetButton());\r\n add(createApplyButton());\r\n add(createReturnButton());\r\n\r\n setColorSelection();\r\n this.changeLanguageSettings(mainclass.getLanguageSettings());\r\n }", "JComponent makeColorBox(final String cmd, Color color) {\n\n ColorSwatchComponent swatch = new ColorSwatchComponent(getStore(), color,\n \"Set Color\") {\n public void userSelectedNewColor(Color c) {\n super.userSelectedNewColor(c);\n try {\n if (cmd.equals(CMD_RAD_COLOR)) {\n rangeRings.setAzimuthLineColor(radColor = c);\n } else if (cmd.equals(CMD_RR_COLOR)) {\n rangeRings.setRangeRingColor(rrColor = c);\n } else if (cmd.equals(CMD_LBL_COLOR)) {\n rangeRings.setLabelColor(lblColor = c);\n }\n if (linkColorAndLineWidthButton.isSelected()) {\n rangeRings.setAzimuthLineColor(radColor = c);\n rangeRings.setRangeRingColor(rrColor = c);\n rangeRings.setLabelColor(lblColor = c);\n radColorSwatch.setBackground(c);\n rrColorSwatch.setBackground(c);\n lblColorSwatch.setBackground(c);\n }\n } catch (Exception exc) {\n logException(\"setting color\", exc);\n }\n }\n };\n return swatch;\n /*\n JComboBox jcb = getDisplayConventions().makeColorSelector(color);\n jcb.addActionListener(this);\n jcb.setActionCommand(cmd);\n return jcb;\n */\n }", "SimpleColorChooser(Color[] colors) {\n double sqr = Math.sqrt((double) colors.length);\n int rows = (int) Math.ceil(sqr);\n int columns = (int) Math.rint(sqr);\n setLayout(new GridLayout(rows, columns, 2, 2));\n Font font2 = new Font(Font.SERIF, Font.PLAIN, 26);\n ButtonGroup bg = new ButtonGroup();\n char boxChar = (char) 9608;\n String boxString = new String(new char[]{boxChar, boxChar});\n for (Color c : colors) {\n JRadioButton rb = new JRadioButton(boxString);\n rb.setFont(font2);\n rb.setForeground(c);\n bg.add(rb);\n add(rb);\n }\n ((JRadioButton) getComponent(selected)).setSelected(true);\n }", "public ColorSelectorCommand(Color drawColor) {\r\n\t\tthis.drawColor = drawColor;\r\n\t}", "public void selectProductColor(String color){\n Select select = new Select(colorSelect);\n select.selectByVisibleText(color);\n }", "private void define_select_color(){\n\n TextView white_panel = (TextView) findViewById(R.id.palette_white);\n TextView black_panel = (TextView) findViewById(R.id.palette_black);\n TextView red_panel = (TextView) findViewById(R.id.palette_red);\n TextView blue_panel = (TextView) findViewById(R.id.palette_blue);\n\n white_panel.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v){\n selected_color=WHITE;\n canvasView.setPaintColor(getSelectedColor(selected_color));\n }\n });\n black_panel.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v){\n selected_color=BLACK;\n canvasView.setPaintColor(getSelectedColor(selected_color));\n }\n });\n red_panel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n selected_color = RED;\n canvasView.setPaintColor(getSelectedColor(selected_color));\n }\n });\n blue_panel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n selected_color = BLUE;\n canvasView.setPaintColor(getSelectedColor(selected_color));\n }\n });\n\n\n\n }", "RGB getNewColor();", "public void widgetSelected(SelectionEvent arg0) {\n\t\t ColorDialog dlg = new ColorDialog(shell);\r\n\r\n\t\t // Set the selected color in the dialog from\r\n\t\t // user's selected color\r\n\t\t Color shpColor = viewer.getShpReader().getForeColor();\r\n\t\t dlg.setRGB(shpColor.getRGB());\r\n\r\n\t\t // Change the title bar text\r\n\t\t dlg.setText(Messages.getMessage(\"SHPLayersScreen_ColorDialog\"));\r\n\r\n\t\t // Open the dialog and retrieve the selected color\r\n\t\t RGB rgb = dlg.open();\r\n\t\t if (rgb != null && !rgb.equals(shpColor.getRGB())) {\r\n\t\t // Dispose the old color, create the\r\n\t\t // new one, and set into the label\r\n\t\t \tnewColor = new Color(shell.getDisplay(), rgb);\r\n\t\t\t\t\tlabelColor.setBackground(newColor);\r\n\t\t }\r\n\t\t\t}", "public Circle(SelectedColor color) {\n super(Name.Circle, color);\n\n Log.i(\"Circle\",\"Created a \" + color + \" Circle\");\n //Need getcolor() to pick random\n //Maybe keep all colors random at create time, then when we add them to data struc\n //we change one of the colors depending on \"correct shape\"\n }", "private HepRepColor() {\n }", "public Color newColor(){\n\t\tRandom random = new Random();\n\n\t\tint red;\n\t\tint green;\n\t\tint blue;\n\n\t\tint counter = 0;\n\n\t\tdo {\n\t\t\tred = random.nextInt(255);\n\t\t\tgreen = random.nextInt(255);\n\t\t\tblue = random.nextInt(255);\n\t\t\tcounter++;\n\t\t\t\n\t\t}while(red + green + blue < 400 && counter < 20);\n\n\t\treturn Color.rgb(red, green, blue,1);\n\t}", "protected void createSelection() {\r\n\t\tsel = new GraphSelection();\r\n\t}", "public ColorSet()\n {\n }", "private void colorPickerHander() {\n\t\tboolean validvalues = true;\n\t\tHBox n0000 = (HBox) uicontrols.getChildren().get(5);\n\t\tTextField t0000 = (TextField) n0000.getChildren().get(1);\n\t\tLabel l0000 = (Label) n0000.getChildren().get(3);\n\t\tString txt = t0000.getText();\n\t\tString[] nums = txt.split(\",\");\n\t\tif (nums.length != 4) {\n\t\t\tvalidvalues = false;\n\t\t\tGUIerrorout = new Alert(AlertType.ERROR, \"Invalid Color Format!\\nFormat: <0-255>,<0-255>,<0-255>,<0-1> \\n (red),(green),(blue),(alpha)\");\n\t\t\tGUIerrorout.showAndWait();\n\t\t}\n\t\tif (validvalues) {\n\t\t\tint[] colorvalues = new int[3];\n\t\t\tdouble alphavalue = 1.0;\n\t\t\ttry {\n\t\t\t\tfor(int x = 0; x < 3; x++) {\n\t\t\t\t\tcolorvalues[x] = Integer.parseInt(nums[x]);\n\t\t\t\t}\n\t\t\t\talphavalue = Double.parseDouble(nums[3]);\n\t\t\t} catch(Exception e) {\n\t\t\t\tvalidvalues = false;\n\t\t\t\tGUIerrorout = new Alert(AlertType.ERROR, \"Invalid Color Format!\\nFormat: <0-255>,<0-255>,<0-255>,<0-1> \\n (red),(green),(blue),(alpha)\");\n\t\t\t\tGUIerrorout.showAndWait();\n\t\t\t}\n\t\t\tif (alphavalue <= 1.0 && alphavalue >= 0.0 && colorvalues[0] >= 0 && colorvalues[0] < 256 && colorvalues[1] >= 0 && colorvalues[1] < 256 && colorvalues[2] >= 0 && colorvalues[2] < 256){\n\t\t\t\tif (validvalues) {\n\t\t\t\t\tl0000.setTextFill(Color.rgb(colorvalues[0],colorvalues[1],colorvalues[2],alphavalue));\n\t\t\t\t\tusercolors[colorSetterId] = Color.rgb(colorvalues[0],colorvalues[1],colorvalues[2],alphavalue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tGUIerrorout = new Alert(AlertType.ERROR, \"Invalid Color Format!\\nFormat: <0-255>,<0-255>,<0-255>,<0-1> \\n (red),(green),(blue),(alpha)\");\n\t\t\t\tGUIerrorout.showAndWait();\n\t\t\t}\n\t\t}\n\t}", "public void createBluePickHiglight() {\n\t\tbluePickHighlight = new JLabel() {\n \t\tprotected void paintComponent(Graphics g) {\n\t \t g.setColor(getBackground());\n \t \tg.fillRect(0, 0, getWidth(), getHeight());\n \t\t\tsuper.paintComponent(g);\n\t\t }\n\t\t};\n\t\tbluePickHighlight.setBackground(new Color(218, 116, 32, 120));\n\t\tleftPanel.add(bluePickHighlight, new Integer(1));\n\t\tbluePickHighlight.setBounds(18, 10, 210, 88);\n\t}", "private JRadioButton getJRadioButtonColor() {\r\n\t\tif (buttColor == null) {\r\n\t\t\tbuttColor = new JRadioButton();\r\n\t\t\tbuttColor.setText(\"Color\");\r\n\t\t\tbuttColor.setToolTipText(\"color output image\");\r\n\t\t\tbuttColor.addActionListener(this);\r\n\t\t\tbuttColor.setActionCommand(\"parameter\");\r\n\t\t}\r\n\t\treturn buttColor;\r\n\t}", "public EdgeColorPanel() {\n initComponents();\n\n colorButton.addPropertyChangeListener(JColorButton.EVENT_COLOR, new PropertyChangeListener() {\n\n @Override\n public void propertyChange(PropertyChangeEvent evt) {\n Color newColor = (Color) evt.getNewValue();\n propertyEditor.setValue(new EdgeColor(newColor));\n }\n });\n\n originalRadio.addItemListener(this);\n mixedRadio.addItemListener(this);\n sourceRadio.addItemListener(this);\n targetRadio.addItemListener(this);\n customRadio.addItemListener(this);\n }", "private void sFCButtonActionPerformed(java.awt.event.ActionEvent evt) {\n\t\tfinal SelectColor sASelectColor=new SelectColor(mAnnotation.getFillColor());\n\t\tsASelectColor.setOKListener( new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tColor clr = sASelectColor.getColor();\n\t\t\t\tpreview.setFillColor(clr);\n\t\t\t\tpreviewPanel.repaint();\n\t\t\t}\n\t\t});\n\t\n\t\tsASelectColor.setSize(435, 420);\n\t\tsASelectColor.setVisible(true);\n\t\t//1 -> FillColor\n\t}", "Color(int R, int G, int B) {\r\n\t\t this.rgb = new RGB(R,G,B);\r\n\t\t this.colorific = true;\r\n\t }", "public void chooseBackgroundColor(){\n currentBackgroundColor = backgroundColorPicker.getValue();\n draw();\n }", "private void generarColor() {\r\n\t\tthis.color = COLORES[(int) (Math.random() * COLORES.length)];\r\n\t}", "public Builder color(@Nullable String value) {\n object.setColor(value);\n return this;\n }", "private JButton getColorButton() {\r\n\t\tif (colorButton == null) {\r\n\t\t\tcolorButton = new JButton(); \r\n\t\t\tcolorButton.setIcon(new ImageIcon(getClass().getResource(\"/img/icon/rtf_choosecolor.gif\")));\r\n\t\t\tcolorButton.setPreferredSize(new Dimension(23, 23));\r\n\t\t\tcolorButton.setBounds(new Rectangle(16, 1, 23, 20));\r\n\t\t\tcolorButton.setToolTipText(\"颜色编辑\");\r\n\t\t\tcolorButton.setActionCommand(\"colorButton\");\r\n\t\t\tcolorButton.addActionListener(this.buttonAction);\r\n\t\t}\r\n\t\treturn colorButton;\r\n\t}", "public ColorOptionComponent(ColorOption opt, String text, Frame parent, boolean isBackgroundColor) {\n this(opt, text, parent, isBackgroundColor, false);\n }", "public ColorCanvas(int r, Color color) {\r\n radius = r;\r\n diameter = r * 2;\r\n colorWheelWidth = diameter + selectDiameter;\r\n setColor(color);\r\n enableEvents(AWTEvent.MOUSE_EVENT_MASK | AWTEvent.MOUSE_MOTION_EVENT_MASK);\r\n }", "public ColorClass( String name) {\n this(name, false);\n }", "@Override\n public void onClick(View v) {\n\n cp.show();\n /* On Click listener for the dialog, when the user select the color */\n Button okColor = (Button) cp.findViewById(R.id.okColorButton);\n okColor.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n /* You can get single channel (value 0-255) */\n int red = cp.getRed();\n int blue = cp.getBlue();\n int green = cp.getGreen();\n /*\n if (color < 0)\n color = -color;*/\n lights.lightscolors.get(index).rgbhex = \"#\" + String.format(\"%02x\", red) + String.format(\"%02x\", green) + String.format(\"%02x\", blue);\n lights.lightscolors.get(index).color = \"rgb(\" + red + \",\" + green + \",\" + blue + \")\";\n Log.v(\"ColorPicker ambiance\", lights.lightscolors.get(index).color);\n int rgb = Color.parseColor(lights.lightscolors.get(index).rgbhex);\n if (!lights.lightscolors.get(index).on)\n rgb = 0;\n GradientDrawable gd = (GradientDrawable) circles.get(index).getDrawable();\n gd.setColor(rgb);\n gd.setStroke(1, Color.WHITE);\n cp.dismiss();\n }\n });\n }", "private Style createSelectedStyle(Set<FeatureId> IDs) {\n Rule selectedRule = createRule(SELECTED_COLOUR, SELECTED_COLOUR);\n selectedRule.setFilter(ff.id(IDs));\n\n Rule otherRule = createRule(LINE_COLOUR, FILL_COLOUR);\n otherRule.setElseFilter(true);\n\n FeatureTypeStyle fts = sf.createFeatureTypeStyle();\n fts.rules().add(selectedRule);\n fts.rules().add(otherRule);\n\n Style style = sf.createStyle();\n style.featureTypeStyles().add(fts);\n return style;\n}", "public void setColor(Color choice) {\n circleColor = choice;\n\n }", "@Override\n public ShapeColor setColor(int r, int g, int b) {\n return new ShapeColor(r, g, b);\n }", "private static IndependentValidator createColorListValidator() {\n HashMap messageKeyMappings = new HashMap(1);\n messageKeyMappings.put(FaultTypes.INVALID_COLOR,\n \"ColorListSelectionDialog.invalidColor\");\n ValidationMessageBuilder builder =\n new ValidationMessageBuilder(\n ControlsMessages.getResourceBundle(),\n messageKeyMappings,\n null);\n Validator validator = new ColorValidator(NamedColor.getAllColors());\n return new IndependentValidator(validator, builder);\n }", "public /* synthetic */ void lambda$new$0() {\n this.applyColorScheduled = false;\n applyColor(this.lastPickedColor, this.lastPickedColorNum);\n this.lastPickedColorNum = -1;\n }", "public ColorPicker(Color color, Frame parent, boolean modal) {\r\n super(parent, \"Color chooser\", modal);\r\n\r\n setLayout(new GridBagLayout());\r\n createDialogComponents(color);\r\n\r\n setColor(color);\r\n colorCanvas.setColor(color);\r\n }", "public Color generateColor() { //function to generate a random color from the array of colors passed in\n Random rand = new Random();\n int randomNum = rand.nextInt((colorChoices.length));\n return colorChoices[randomNum];\n }", "public void createPurplePickHiglight() {\n\t\tpurplePickHighlight = new JLabel() {\n \t\tprotected void paintComponent(Graphics g) {\n\t \t g.setColor(getBackground());\n \t \tg.fillRect(0, 0, getWidth(), getHeight());\n \t\t\tsuper.paintComponent(g);\n\t\t }\n\t\t};\n\t\tpurplePickHighlight.setBackground(new Color(218, 116, 32, 120));\n\t\trightPanel.add(purplePickHighlight, new Integer(1));\n\t\tpurplePickHighlight.setBounds(45, 10, 210, 88);\n\t\tpurplePickHighlight.setVisible(false);\n\t}", "void createDialogComponents(Color color) {\r\n GridBagConstraints constr = new GridBagConstraints();\r\n constr.gridwidth = 1;\r\n constr.gridheight = 4;\r\n constr.insets = new Insets(0, 0, 0, 10);\r\n constr.fill = GridBagConstraints.NONE;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n\r\n constr.gridx = 0;\r\n constr.gridy = 0;\r\n\r\n // Create color wheel canvas\r\n colorCanvas = new ColorCanvas(50, color);\r\n add(colorCanvas, constr);\r\n\r\n // Create input boxes to enter values\r\n Font font = new Font(\"DialogInput\", Font.PLAIN, 10);\r\n redInput = new TextField(3);\r\n redInput.addFocusListener(this);\r\n redInput.setFont(font);\r\n greenInput = new TextField(3);\r\n greenInput.addFocusListener(this);\r\n greenInput.setFont(font);\r\n blueInput = new TextField(3);\r\n blueInput.addFocusListener(this);\r\n blueInput.setFont(font);\r\n\r\n // Add the input boxes and labels to the component\r\n Label label;\r\n constr.gridheight = 1;\r\n constr.fill = GridBagConstraints.HORIZONTAL;\r\n constr.anchor = GridBagConstraints.SOUTH;\r\n constr.insets = new Insets(0, 0, 0, 0);\r\n constr.gridx = 1;\r\n constr.gridy = 0;\r\n label = new Label(\"Red:\", Label.RIGHT);\r\n add(label, constr);\r\n constr.gridy = 1;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n label = new Label(\"Green:\", Label.RIGHT);\r\n add(label, constr);\r\n constr.gridy = 2;\r\n constr.anchor = GridBagConstraints.NORTH;\r\n label = new Label(\"Blue:\", Label.RIGHT);\r\n add(label, constr);\r\n\r\n constr.gridheight = 1;\r\n constr.fill = GridBagConstraints.NONE;\r\n constr.anchor = GridBagConstraints.SOUTHWEST;\r\n constr.insets = new Insets(0, 0, 0, 10);\r\n constr.gridx = 2;\r\n constr.gridy = 0;\r\n add(redInput, constr);\r\n constr.gridy = 1;\r\n constr.anchor = GridBagConstraints.WEST;\r\n add(greenInput, constr);\r\n constr.gridy = 2;\r\n constr.anchor = GridBagConstraints.NORTHWEST;\r\n add(blueInput, constr);\r\n\r\n // Add color swatches\r\n Panel panel = new Panel();\r\n panel.setLayout(new GridLayout(1, 2, 4, 4));\r\n oldSwatch = new ColorSwatch(false);\r\n oldSwatch.setForeground(color);\r\n panel.add(oldSwatch);\r\n newSwatch = new ColorSwatch(false);\r\n newSwatch.setForeground(color);\r\n panel.add(newSwatch);\r\n\r\n constr.fill = GridBagConstraints.HORIZONTAL;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n constr.gridx = 1;\r\n constr.gridy = 3;\r\n constr.gridwidth = 2;\r\n add(panel, constr);\r\n\r\n // Add buttons\r\n panel = new Panel();\r\n panel.setLayout(new GridLayout(1, 2, 10, 2));\r\n Font buttonFont = new Font(\"SansSerif\", Font.BOLD, 12);\r\n okButton = new Button(\"Ok\");\r\n okButton.setFont(buttonFont);\r\n okButton.addActionListener(this);\r\n cancelButton = new Button(\"Cancel\");\r\n cancelButton.addActionListener(this);\r\n cancelButton.setFont(buttonFont);\r\n panel.add(okButton);\r\n panel.add(cancelButton);\r\n\r\n constr.fill = GridBagConstraints.NONE;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n constr.gridx = 0;\r\n constr.gridy = 4;\r\n constr.gridwidth = 3;\r\n add(panel, constr);\r\n }", "public ColorCellEditor(Canvas canvas, JPanel parent) {\n this.canvas = canvas;\n this.parent = parent;\n \n colorEditButton = new JButton();\n colorEditButton.setActionCommand(EDIT);\n colorEditButton.addActionListener(this);\n colorEditButton.setBorderPainted(false);\n \n colorChooser = new JColorChooser();\n \n colorChooserPanel = new ColorChooserPanel(this);\n colorChooserPanel.setLocation(canvas.getWidth() / 2 - colorChooserPanel.getWidth()\n / 2, canvas.getHeight() / 2 - colorChooserPanel.getHeight() / 2);\n }", "public ColorList () { \n\t\t\n\t}", "public ColorRenderer() {\r\n\t}", "public ColorBox() {\r\n this.popup = new ColorPopup();\r\n setValue(\"#ffffff\");\r\n\r\n popup.addMessageHandler(m_color_event);\r\n addFocusHandler(new FocusHandler() {\r\n\r\n @Override\r\n public void onFocus(FocusEvent event) {\r\n popup.setHex(getText());\r\n popup.setAutoHideEnabled(true);\r\n popup.setPopupPosition(getAbsoluteLeft() + 10, getAbsoluteTop() + 10);\r\n popup.showRelativeTo(ColorBox.this);\r\n }\r\n });\r\n addKeyDownHandler(new KeyDownHandler() {\r\n\r\n @Override\r\n public void onKeyDown(KeyDownEvent event) {\r\n String color = getValue();\r\n if (color.length() > 1) {\r\n MessageEvent ev = new MessageEvent(MessageEvent.COLOR, color);\r\n fireEvent(ev);\r\n }\r\n }\r\n });\r\n\r\n }", "public randomColorGenerator(Color[] colors){\n colorChoices = colors;\n }", "public Shape(Color c) {\n\t\tcolor = c;\n\t}", "protected Choice createColorChoice(String attribute) {\n CommandChoice choice = new CommandChoice();\n for (int i=0; i<ColorMap.size(); i++)\n choice.addItem(\n new ChangeAttributeCommand(\n ColorMap.name(i),\n attribute,\n ColorMap.color(i),\n fView\n )\n );\n return choice;\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n colorChooser = new javax.swing.JColorChooser();\n aceptarBoton = new javax.swing.JButton();\n cancelarBoton = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n colorChooser.setInheritsPopupMenu(true);\n\n aceptarBoton.setText(\"Aceptar\");\n aceptarBoton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n aceptarBotonActionPerformed(evt);\n }\n });\n\n cancelarBoton.setText(\"Cancelar\");\n cancelarBoton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cancelarBotonActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(colorChooser, javax.swing.GroupLayout.DEFAULT_SIZE, 732, Short.MAX_VALUE)\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(aceptarBoton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cancelarBoton)\n .addGap(11, 11, 11))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(colorChooser, javax.swing.GroupLayout.DEFAULT_SIZE, 348, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(aceptarBoton)\n .addComponent(cancelarBoton))\n .addContainerGap())\n );\n\n pack();\n }", "private JComboBox getCardColor() {\n\t\tif (cardColor == null) {\n\t\t\tcardColor = new JComboBox();\n\t\t\tcardColor.setModel(new TypeModel(TypeModel.valueMast_cards));\n\t\t\tcardColor.setSelectedIndex(0);\n\t\t}\n\t\treturn cardColor;\n\t}", "private void createNodeColor(NodeAppearanceCalculator nac) {\r\n\t DiscreteMapping discreteMapping = new DiscreteMapping\r\n\t (Color.WHITE,\r\n\t NODE_TYPE,\r\n\t ObjectMapping.NODE_MAPPING);\r\n\t \r\n\t discreteMapping.putMapValue(\"biochemicalReaction\",\r\n\t new Color (204, 0, 61));\r\n\t discreteMapping.putMapValue(\"catalyst\",\r\n\t new Color(0, 163, 0));\r\n\t discreteMapping.putMapValue(\"protein\",\r\n\t new Color (0, 102, 255));\r\n\t discreteMapping.putMapValue(\"smallMolecule\",\r\n\t new Color (193, 249, 36));\r\n\r\n\t NodeColorCalculator nodeColorCalculator =\r\n\t new GenericNodeColorCalculator(\"SimpleBioMoleculeEditor Node Color Calculator\"\r\n\t , discreteMapping);\r\n\t nac.setNodeFillColorCalculator(nodeColorCalculator);\r\n\t }", "public JPanel createColorPanels(String text, Color color){\n\n //Instantiating panel, label and button\n JPanel colorPanel = new JPanel();\n JLabel colorLabel = new JLabel(text);\n JButton colorButton = new JButton(\" \");\n\n //Editing button\n colorButton.setBackground(color);\n colorButton.setOpaque(true);\n colorButton.setSize(5, 10);\n colorButton.setEnabled(false);\n\n //Editing label\n setLabel(colorLabel);\n\n //Adding button and label\n colorPanel.add(colorButton);\n colorPanel.add(colorLabel);\n colorPanel.setBackground(Color.white);\n\n\n return colorPanel;\n }", "@Override\n public void onColorSelected(int selectedColor) {\n }", "public Builder color(@Nullable PatternObject value) {\n object.setColor(value);\n return this;\n }", "public ColorField addColorField(final String key) {\n String label = key;\n ColorField colorField = new ColorField(getComposite(), _form, key, label, false);\n colorField.adapt(_formToolkit);\n _form.mapField(key, colorField);\n return colorField;\n }", "public void setColor(String c);", "public void setColorNew(String value) {\n setAttributeInternal(COLORNEW, value);\n }", "public void setBorderSelectionColor(Color newColor) {\n\tborderSelectionColor = newColor;\n }", "public ColorPaletteBuilder color2(Color color)\n {\n if (color2 == null) colorsCount++;\n this.color2 = color;\n return this;\n }", "private void buildNamedColors(JPanel panel, ResourceBundle messageBundle) {\n dragDropColorList = new DragDropColorList(swingController, preferences);\r\n\r\n // create current list of colours\r\n JScrollPane scrollPane = new JScrollPane(dragDropColorList);\r\n addGB(panel, scrollPane, 0, 0, 5, 1);\r\n\r\n dragDropColorList.addListSelectionListener(this);\r\n\r\n // build out the CRUD GUI.\r\n addNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.add.label\"));\r\n addNamedColorButton.addActionListener(this);\r\n addNamedColorButton.setEnabled(true);\r\n\r\n removeNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.remove.label\"));\r\n removeNamedColorButton.addActionListener(this);\r\n removeNamedColorButton.setEnabled(false);\r\n\r\n updateNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.edit.label\"));\r\n updateNamedColorButton.addActionListener(this);\r\n updateNamedColorButton.setEnabled(false);\r\n\r\n colorButton = new ColorChooserButton(Color.DARK_GRAY);\r\n colorButton.setEnabled(true);\r\n colorLabelTextField = new JTextField(\"\");\r\n colorLabelTextField.setEnabled(true);\r\n\r\n // add, edit remove controls.\r\n constraints.insets = new Insets(5, 5, 5, 1);\r\n constraints.fill = GridBagConstraints.NONE;\r\n constraints.weightx = 0.01;\r\n constraints.weighty = 1.0;\r\n addGB(panel, colorButton, 0, 1, 1, 1);\r\n\r\n constraints.fill = GridBagConstraints.NONE;\r\n constraints.insets = new Insets(5, 1, 5, 1);\r\n constraints.weightx = 1.0;\r\n constraints.fill = GridBagConstraints.BOTH;\r\n addGB(panel, colorLabelTextField, 1, 1, 1, 1);\r\n\r\n constraints.weightx = 0.01;\r\n constraints.fill = GridBagConstraints.NONE;\r\n addGB(panel, addNamedColorButton, 2, 1, 1, 1);\r\n addGB(panel, updateNamedColorButton, 3, 1, 1, 1);\r\n\r\n constraints.insets = new Insets(5, 0, 5, 5);\r\n addGB(panel, removeNamedColorButton, 4, 1, 1, 1);\r\n }", "public Fruit()\n {\n setColor(Color.GREEN);\n }", "public void colorButtonClicked(String tag){\n color.set(tag);\n }", "public ColorPickerItemFragment() {\n\n\n }", "protected void attemptGridPaintSelection() {\n/* 314 */ Color c = JColorChooser.showDialog(this, localizationResources.getString(\"Grid_Color\"), Color.blue);\n/* */ \n/* 316 */ if (c != null) {\n/* 317 */ this.gridPaintSample.setPaint(c);\n/* */ }\n/* */ }", "public ColorOptionComponent (ColorOption opt, String text, Frame parent) {\n this(opt, text, parent, false);\n }", "private ColorWithConstructor() {\n\t\tSystem.out.println(\"Constructor called for : \" + this.toString());\n\t}", "public Style createSelectBoxStyle() {\n \t \tStroke stroke = styleFactory.createStroke(\n \t \t\t\tfilterFactory.literal(Color.BLUE),\n \t \t\t\tfilterFactory.literal(1),\n \tnull,\n \tnull,\n \tnull,\n \tnew float[] { 5, 2 },\n \tnull,\n \tnull,\n \tnull\n\t\t);\n\t\t//Cria um Symbolizer para linha.\n\t\tPolygonSymbolizer polygonSymbolizer = styleFactory.createPolygonSymbolizer(stroke, null, null);\n\t\t//Regra para um estilo de fei��o.\n\t\tRule rulePoly = styleFactory.createRule();\n\t\t\n\t\t//Adiciona o PointSymbolizer na regra.\n\t\t//rulePoly.setName(\"Polygon\"); \n\t\t//ruleLine.setFilter(filterFactory.equals(filterFactory.property(\"geom\"), filterFactory.literal(false)));\n\t\trulePoly.symbolizers().add(polygonSymbolizer); \n\t\t\t \n\t\t//Adiciona uma ou N regras em uma estilo de uma determinada fei��o.\n\t\tFeatureTypeStyle ftsPoly = styleFactory.createFeatureTypeStyle(new Rule[]{rulePoly});\n\t\t \n\t\t//Cria o estilo (SLD).\n\t\tStyle style = styleFactory.createStyle();\n\t\tstyle.featureTypeStyles().add(ftsPoly);\n\t\t \n\t\treturn style;\n }", "public Color recupColor(int nb){\r\n\t\tColor color;\r\n\t\tif(nb == 1){\r\n\t\t\tcolor = Config.colorJ1;\r\n\t\t}\r\n\t\telse if(nb == 2){\r\n\t\t\tcolor = Config.colorJ2;\r\n\t\t}\r\n\t\telse{\r\n\t\t\tcolor =\tConfig.colorVide;\r\n\t\t}\r\n\t\treturn color;\r\n\t}", "public ColorChooserPanel(ActionListener l) {\n lastRow = -1;\n \n JButton okButton = new JButton( Messages.message(\"ok\") );\n JButton cancelButton = new JButton( Messages.message(\"cancel\") );\n \n setLayout(new HIGLayout(new int[] {220, 10, 220}, new int[] {350, 10, 0}));\n \n add(colorChooser, higConst.rcwh(1, 1, 3, 1));\n add(okButton, higConst.rc(3, 1));\n add(cancelButton, higConst.rc(3, 3));\n \n okButton.setActionCommand(OK);\n cancelButton.setActionCommand(CANCEL);\n \n okButton.addActionListener(l);\n cancelButton.addActionListener(l);\n \n setOpaque(true);\n setSize(getPreferredSize());\n }", "public void RGB_Mix(View view) {\r\n int [] color= {0,0,0};\r\n\r\n adb= new AlertDialog.Builder(this);\r\n adb.setCancelable(false);\r\n adb.setTitle(\"Core Colors Mix\");\r\n adb.setMultiChoiceItems(colors, null, new DialogInterface.OnMultiChoiceClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\r\n if(isChecked) color[which]=255;\r\n else if(color[which]==255) color[which]=0;\r\n }\r\n });\r\n adb.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n lL.setBackgroundColor(Color.rgb(color[0],color[1],color[2]));\r\n\r\n }\r\n });\r\n adb.setNegativeButton(\"Exit\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n\r\n }\r\n });\r\n AlertDialog ad=adb.create();\r\n ad.show();\r\n }", "public abstract void addSelectorForm();", "public ColorClass (int ide, Interval interval, boolean ordered) {\n this (\"C\"+ide, interval, ordered);\n }", "public void setColor(Color c);", "public ColorChooser(final GraphAlgController mainclass) {\r\n super(mainclass.getGUI(), true);\r\n this.mainclass = mainclass;\r\n\r\n drawer = mainclass.getGraphDrawer();\r\n colors = (Color[]) drawer.getColorSettings().clone();\r\n\r\n if (mainclass.getLanguageSettings() == LANGUAGE_GERMAN) {\r\n setTitle(\"Farbeinstellungen\");\r\n } else {\r\n setTitle(\"Color Settings\");\r\n }\r\n\r\n this.setSize(330, 320);\r\n this.getContentPane().setLayout(null);\r\n this.setResizable(false);\r\n\r\n Dimension d = Toolkit.getDefaultToolkit().getScreenSize();\r\n setLocation((d.width - getSize().width) / 2,\r\n (d.height - getSize().height) / 2);\r\n\r\n this.setContentPane(new ColorPanel());\r\n }", "public ColorOptionComponent(ColorOption opt, String text, Frame parent, String description, boolean isBackgroundColor)\n {\n this(opt, text, parent, isBackgroundColor);\n setDescription(description);\n }", "public Selector() {\n }", "@Override\n \t public void actionPerformed(ActionEvent e) \n \t {\n \t\t Color newColour = JColorChooser.showDialog(null, \"Choose a colour!\", Color.black);\n \t\t if(newColour == null)\n \t\t\t return;\n \t\t else\n \t\t\t client.setColor(newColour);\n \t }", "public ColorFilter(Color color) {\r\n this.color = color;\r\n }", "private Command createColorCommand(String command) {\n\t\tString[] tokens = command.split(\" \");\n\t\tColor color = new Color(Integer.decode(\"#\" + tokens[1]));\n\t\treturn new ColorCommand(color);\n\t}", "public void nodeColor(String str) { setSelected(node_colors, str); }", "private Color NewColor(int numb) {\r\n\r\n\t\tswitch(numb){\r\n\t\tcase 0: return Color.BLACK;\r\n\t\tcase 1: return Color.RED;\r\n\t\tcase 3: return Color.BLUE;\r\n\t\t}\r\n\t\treturn Color.MAGENTA;\r\n\t}", "private void createChooser(final int nr, final String[] chooserText,\r\n final int pos) {\r\n chooserLabel[nr] = new JLabel();\r\n chooserLabel[nr].setFont(new Font(\"Serif\", Font.BOLD, 14));\r\n chooserLabel[nr].setBounds(10, pos, 150, 25);\r\n\r\n this.add(chooserLabel[nr]);\r\n this.add(new SComponent(chooserLabel[nr], chooserText));\r\n\r\n chooser[nr] = new ColorChooserComboBox();\r\n chooser[nr].setBounds(210, pos, 100, 25);\r\n this.add(chooser[nr]);\r\n }", "public void makeRandColor(){}", "private void selectColor(JLabel label, Client client){\n label.setForeground(client.getStatus().getColor());\n }", "public void selectColorType(int i) {\n selectColorType(i, true);\n }", "public Figure(Color color){\n this.color=color;\n }", "public ColorClass(int ide, Interval[] intervals , boolean ordered) {\n this (\"C_\"+ide, intervals, ordered );\n }", "public ColorClass(String name, boolean ordered) {\n this (name, new Interval(2) , ordered);\n }", "public void setColor(Color newColor) ;", "private Button buttonFormat(String label, int color) {\n Button newButton = new Button(label);\n newButton.setFont(new Font(\"Arial\", 15));\n String styles = \"-fx-padding: 5;\" + \"-fx-border-width: 3px;\";\n\n if (color == 1)\n styles = styles + \"-fx-background-color: #DFB951; \"; // yellow\n else if (color == 2)\n styles = styles + \"-fx-background-color: #00ff00; \"; // green\n\n newButton.setStyle(styles);\n return newButton;\n }", "public void setFillColor(Color color);", "private void addNewColorToPanel() {\n if (!colorPickerCurrent.getValue().equals(colorsQueue.getFirst())) {\n colorsQueue.push(colorPickerCurrent.getValue());\n revalidateColorPanel();\n }\n }" ]
[ "0.679376", "0.65560776", "0.6463584", "0.645352", "0.64043856", "0.63114095", "0.61974657", "0.6176193", "0.6175821", "0.61428916", "0.6078054", "0.60779285", "0.5953885", "0.5948121", "0.5938788", "0.5850043", "0.580994", "0.5804413", "0.57799494", "0.5761495", "0.5728978", "0.57258844", "0.57095945", "0.5699355", "0.567982", "0.56716365", "0.5648403", "0.5646325", "0.5638089", "0.5598634", "0.55909526", "0.55881894", "0.5584606", "0.5580468", "0.5576761", "0.55251926", "0.5516149", "0.5506216", "0.54869825", "0.5486004", "0.54844004", "0.5476189", "0.54730165", "0.5468774", "0.5468659", "0.5468622", "0.5460973", "0.54585373", "0.5453635", "0.5450516", "0.54462796", "0.5414454", "0.53912795", "0.5389214", "0.5376318", "0.53727734", "0.537235", "0.5371775", "0.5367044", "0.5359564", "0.53588635", "0.5347679", "0.53453714", "0.5342176", "0.53393096", "0.5333084", "0.5324575", "0.5312188", "0.5312126", "0.5310928", "0.5300448", "0.5297453", "0.5285779", "0.52820444", "0.52816224", "0.52715087", "0.5270459", "0.5268725", "0.5268241", "0.52665967", "0.52649146", "0.52648515", "0.5263863", "0.5261682", "0.52449906", "0.5243434", "0.52420247", "0.5238281", "0.5238192", "0.52347887", "0.5231869", "0.52277684", "0.5224551", "0.522223", "0.52221394", "0.5220996", "0.52155465", "0.5204897", "0.52033734", "0.51956403" ]
0.59146774
15
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { colorChooser = new javax.swing.JColorChooser(); aceptarBoton = new javax.swing.JButton(); cancelarBoton = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); colorChooser.setInheritsPopupMenu(true); aceptarBoton.setText("Aceptar"); aceptarBoton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { aceptarBotonActionPerformed(evt); } }); cancelarBoton.setText("Cancelar"); cancelarBoton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cancelarBotonActionPerformed(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(colorChooser, javax.swing.GroupLayout.DEFAULT_SIZE, 732, Short.MAX_VALUE) .addContainerGap()) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(aceptarBoton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(cancelarBoton) .addGap(11, 11, 11)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(colorChooser, javax.swing.GroupLayout.DEFAULT_SIZE, 348, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(aceptarBoton) .addComponent(cancelarBoton)) .addContainerGap()) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73191476", "0.72906625", "0.72906625", "0.72906625", "0.72860986", "0.7248112", "0.7213479", "0.72078276", "0.7195841", "0.71899796", "0.71840525", "0.7158498", "0.71477973", "0.7092748", "0.70800966", "0.70558053", "0.69871384", "0.69773406", "0.69548076", "0.69533914", "0.6944929", "0.6942576", "0.69355655", "0.6931378", "0.6927896", "0.69248974", "0.6924723", "0.69116884", "0.6910487", "0.6892381", "0.68921053", "0.6890637", "0.68896896", "0.68881863", "0.68826133", "0.68815064", "0.6881078", "0.68771756", "0.6875212", "0.68744373", "0.68711984", "0.6858978", "0.68558776", "0.6855172", "0.6854685", "0.685434", "0.68525875", "0.6851834", "0.6851834", "0.684266", "0.6836586", "0.6836431", "0.6828333", "0.68276715", "0.68262815", "0.6823921", "0.682295", "0.68167603", "0.68164384", "0.6809564", "0.68086857", "0.6807804", "0.6807734", "0.68067646", "0.6802192", "0.67943805", "0.67934304", "0.6791657", "0.6789546", "0.6789006", "0.67878324", "0.67877173", "0.6781847", "0.6765398", "0.6765197", "0.6764246", "0.6756036", "0.6755023", "0.6751404", "0.67508715", "0.6743043", "0.67387456", "0.6736752", "0.67356426", "0.6732893", "0.6726715", "0.6726464", "0.67196447", "0.67157453", "0.6714399", "0.67140275", "0.6708251", "0.6707117", "0.670393", "0.6700697", "0.66995865", "0.66989213", "0.6697588", "0.66939527", "0.66908985", "0.668935" ]
0.0
-1
create a boolean store the result of you want to shop if yes, do you want to go to the Store or do you wanna shop online if user do not want to shop at all, print GOOD JOB
public static void main(String[] args) { Scanner shoppingMethod = new Scanner(System.in); System.out.println("DO YOU WANT TO SHOP ?"); boolean wantToShop = shoppingMethod.nextBoolean(); System.out.println("WHAT IS THE WAY YOU SHOPPIG ?"); String onlineOrStore = shoppingMethod.next(); if(wantToShop==true) { if (onlineOrStore.equals("Online")) { System.out.println("GOING TO ONLINE SHOOPING"); } else { System.out.println("GOING TO STORE SHOPPING"); } } else { System.out.println("GOOD JOB"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkAndExecute(){\n if(priceListener.getSecurityPrice() < buyPrice){\n executionService.buy(security, buyPrice, 100);\n // if the price < buyPrice then executionService.buy(buyquantity)\n }else if ( priceListener.getSecurityPrice() > sellPrice ) {\n executionService.sell(security, buyPrice, 100);\n }\n }", "private void goShopping(User user, Scanner sc) {\n\t\tboolean run = true;\n\t\tdo {\n\t\t\tlog.info(\"Store Inventory\\n\");\n\t\t\tList<Item> items = cService.seeItemsOnSale();\n\t\t\titems.stream().forEach(item -> log.info(item));\n\n\t\t\tlog.info(\"Welcome to the NYC Grocery Store\\n\");\n\n\t\t\tlog.info(\"Choose an option:\");\n\t\t\tlog.info(\"\t\tPress 1 to Make an Offer on an Item\");\n\t\t\tlog.info(\"\t\tPress anything else to go to the MAIN CUSTOMER DASHBOARD\");\n\t\t\tString choice = sc.nextLine();\n\t\t\tswitch (choice) {\n\t\t\tcase \"1\":\n\t\t\t\tmakeAnOffer(user, sc);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tlog.info(\"\\nGoing back to the CUSTOMER DASHBOARD\\n\");\n\t\t\t\trun = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} while (run);\n\n\t}", "public void shop(){\n boolean loop = true;\n \n printInventory();\n \n while (loop){\n System.out.println(\"Would you like to buy a book or a beverage or are you ready to checkout?\");\n userChoice = scnr.next();\n \n if (userChoice.equalsIgnoreCase(\"book\")){\n String n = scnr.nextLine();\n bookChecker(bookInputRangeChecker(\"Please choose a number between 1-5!\", 1, 5));\n }\n else if(userChoice.equalsIgnoreCase(\"beverage\")){\n String n = scnr.nextLine();\n beverageChecker(beverageInputRangeChecker(\"Please choose a number between 1-3!\", 1, 3));\n }\n else if (userChoice.equalsIgnoreCase(\"checkout\")){\n System.out.println(\"Thank you for shopping at \" + storeName + \". You bought: \" + currentOrder);\n loop = false;\n }\n else {\n System.out.println(\"This choice has not been recognized as a book, beverage, or checkout.\");\n }\n }\n }", "public static void main(String[] args) {\n boolean freeShipping = true;\n boolean onSale = true;\n boolean hasItem = false;\n String item = \"Wooden Spoon\";\n\n if (freeShipping && onSale) {\n System.out.println(\"Purchase the - \" + item);\n } else {\n System.out.println(\"Next time when item \" + item + \" on sale\");\n }\n System.out.println(\"==================================\");\n\n // 2nd job offer selector\n\n String location = \"Toronto\";\n double salary = 85_000.0;\n boolean remote = true;\n boolean hasBenefit = true;\n\n if (location.equals(\"Toronto\") && salary == 85_000 && remote && hasBenefit) {\n\n System.out.println(\"Accept job offer\");\n } else {\n System.out.println(\"Reject the offer\");\n }\n System.out.println(\"==================================\");\n // 3rd practice OR(||)\n System.out.println(\"false || true = \" + (false || true)); // true\n System.out.println(\"true || false = \" + (false || true)); // true\n System.out.println(\"==================================\");\n\n // 4th practice OR||\n\n int apples = 10;\n int oranges = 8;\n\n if (apples > 11 || oranges > 10) {\n System.out.println(\"I have enough fruits\");\n } else {\n System.out.println(\"Go to Giant buy fruits\");\n\n }\n System.out.println(\"==================================\");\n\n // 4th practice CitySelector\n\n String city = \"VA\";\n if (city.equals(\"LA\") || city.equals(\"Toronto\")) {\n System.out.println(\"Willing to relocate LA\");\n\n } else {\n System.out.println(\"Not considering Seattle\");\n }\n System.out.println(\"==================================\");\n\n char grade = 'A';\n if (grade == 'A' || grade == 'B' || grade == 'C') {\n System.out.println(\"passed with grade\");\n\n } else if (grade == 'D') {\n System.out.println(\"quality for retake\");\n } else if(grade == 'E') {\n\n } else {\n System.out.println(\"invalid grade\");\n }\n\n // 4 th dealership\n\n double budget = 5000.0;\n String model = (\"Toyota\");\n double carPrice = 4500;\n\n if (carPrice == 4500 && (model.equals(\"Toyota\") || model.equals(\"Honda\"))) {\n\n System.out.println(\"Ready to purchase + \" + model + \", price = \" + carPrice);\n\n }else {\n System.out.println(\"Not interested in model = \" + model + \", price = \" + carPrice);\n }\n\n // ! not Operator\n\n\n System.out.println(\"!true = \" + (!true));\n int age = 5;\n if (!(age < 4)) {\n System.out.println(\"Need to seat in child seat = \" + age);\n }else {\n System.out.println(\"Can seat in adult seat = \" + age);\n }\n\n boolean isSmokingAllowed = false;\n\n if (!isSmokingAllowed) {\n System.out.println(\"Need to exit and smoke outside\");\n }else {\n System.out.println(\"You can smoke\");\n }\n\n String inputPassword = \"abd123\";\n String correctPassword = \"123abc\";\n\n if (!inputPassword.equals(\"abc123\")) {\n\n System.out.println(\"Access granted\");\n }else {\n System.out.println(\"Access denied\" );\n }\n\n\n\n\n }", "public static void main(String[] args) {\n int moneyAmount = 10;\n\n int capuccinoPrice = 180;\n int lattePrice = 120;\n int espressoPrice = 80;\n int pureWaterPrise = 20;\n\n var canBuyAnything = false;\n var isMilkEnough = true;\n\n if(moneyAmount >= capuccinoPrice && isMilkEnough) {\n System.out.println(\"Вы можете купить капуччино\");\n canBuyAnything = true;\n }\n\n if(moneyAmount >= lattePrice && isMilkEnough) {\n System.out.println(\"Вы можете купить латте\");\n canBuyAnything = true;\n }\n\n if(moneyAmount >= espressoPrice) {\n System.out.println(\"Вы можете купить еспрессо\");\n canBuyAnything = true;\n }\n\n if(moneyAmount >= pureWaterPrise) {\n System.out.println(\"Вы можете купить воду\");\n canBuyAnything = true;\n }\n\n if(canBuyAnything == false) {\n System.out.println(\"Недостаточно денег\");\n }\n }", "@Override\n\tpublic boolean doJobs() {\n\n\t\tERRCODE = \"0\";\n\t\tERRDESC = \"succ\";\n\n\t\tcalPrice();\n\n\t\treturn true;\n\n\t}", "public boolean isBuyable();", "public boolean checkOut(boolean showMessage) {\n\t\tif(null==cart){\n\t\t\tcart = new Cart();\n\t\t}\n\t\t\n\t\tint total = 0;\n\t\tboolean success = false;\n\t\tString stringOfItems = cart.toString();\n\t\tif (stringOfItems.isEmpty()) {\n\t\t\tif(showMessage)\n\t\t\t\tJOptionPane.showMessageDialog(Main.getFrame(), \"Your Cart is Empty\",\n\t\t\t\t\t\t\"Warning\", JOptionPane.WARNING_MESSAGE);\n\t\t} else {\n\t\t\ttotal = supermarket.checkout(stringOfItems);\n\t\t\tcart.clearCart();\n\t\t\tcartLabel.setText(cart.size()+ \" items in your cart\");\n\t\t\tsuccess = true;\n\t\t\tif(showMessage)\n\t\t\t\tJOptionPane.showMessageDialog(Main.getFrame(),\n\t\t\t\t\t\tString.format(\"<html>Items Purchased: %s<br><br>Your total is: $%s</html>\"\n\t\t\t\t\t\t\t\t,stringOfItems, total), \"Total\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t}\n\t\treturn success;\n\t}", "public boolean checkoutBooking() {\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tboolean bookUpdateSuccess = false;\r\n\r\n\t\t/**\r\n\t\t*\tSet the endTime as now\r\n\t\t*/\r\n\t\t/**\r\n\t\t*\tGet the number of milliSeconds from the system time and set it to the java.sql.Date\r\n\t\t*\tobject to create a booking number and also to set the start time.\r\n\t\t*/\r\n\t\tlong dateTimeMillis = System.currentTimeMillis();\r\n\t\t/**\r\n\t\t*\tThis date is for generating String bookingNo using the date and time values\r\n\t\t*/\r\n\t\tjava.util.Date date = new java.util.Date(dateTimeMillis);\r\n\t\t/**\r\n\t\t*\tPass the current date in sql.Timestamp object.\r\n\t\t*/\r\n\t\tendTime = new java.sql.Timestamp(date.getTime());\r\n\r\n\t\t/**\r\n\t\t*\tCalculate the cost base on the time elapsed between the start time and end time\r\n\t\t*\tdurationMinutes = (difference b/w end and start time) / 1000 to convert millis to seconds / 60 to convert seconds to minutes\r\n\t\t*/\r\n\t\tlong start = startTime.getTime();\r\n\t\tlong end = endTime.getTime();\r\n\t\tlong durationMinutes = (end - start)/60000;\r\n\r\n\t\t/**\r\n\t\t*\tThe cost is set as Rs. 1.27 per minuteand hence will be calulated using durationMinutes\r\n\t\t* The cost will be calculated according to absolute minutes and no decimals will be considered there\r\n\t\t*/\r\n\t\tcost = durationMinutes * 1.27;\r\n\r\n\t\t/**\r\n\t\t*\tShow the cost and confirm to checkout.\r\n\t\t*/\r\n\t\tSystem.out.print(\"\\n\\tTotal cost calculated: \" + cost + \"\\n\\n\\t1. Confirm Checkout\\n\\t2. Cancel\\n\\t\\t>> \");\r\n\t\tint opt = scan.nextInt();\r\n\r\n\t\tswitch (opt) {\r\n\t\t\tcase 1: {\t//confirm checkout\r\n\t\t\t\t//do nothing and move ahead towards the checkout procedure\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase 2: {\t//Cancel\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tdefault: {\r\n\t\t\t\tSystem.out.println(\"Invalid Option\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t*\tSince connecting to database (DbConnection()) and updating data (executeUpdateParklot())\r\n\t\t* throw SQLException and throwing an exception from multiple levels again and again is not\r\n\t\t*\ta good way, so its is needed to catch the exception here.\r\n\t\t*/\r\n\t\ttry {\r\n\t\t\t/**\r\n\t\t\t*\tCreate a connection to the database\r\n\t\t\t*/\r\n\t\t\tDbConnection checkoutBookingConn = new DbConnection();\r\n\r\n\r\n\t\t\t/**\r\n\t\t\t*\tupdate the data in table\r\n\t\t\t*/\r\n\t\t\tbookUpdateSuccess = checkoutBookingConn.executeUpdateBooking(endTime, cost, bookingNo);\r\n\r\n\r\n\t\t} catch(SQLException SqlExcep) {\r\n\t\t\tSystem.out.println(\"No booking with the given booking number found.\");\r\n\t\t\t//SqlExcep.printStackTrace();\r\n\t\t} catch (ClassNotFoundException cnfExecp) {\r\n\t\t\tcnfExecp.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*try {\r\n\t\t\t\t//validateConn.closeDbConnection();\r\n\t\t\t} catch(SQLException SqlExcep) {\r\n\t\t\t\tSqlExcep.printStackTrace();\r\n\t\t\t}*/\r\n\t\t}\r\n\t\treturn bookUpdateSuccess;\r\n\t}", "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 }", "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}", "private static void printAnswer(boolean result)\n {\n //Check if all the hils could be connected by the tunnels\n if (result)\n {\n //Print the cost off connecting all the hills\n System.out.println(\"Campus #\" + c + \": \" + totalCost);\n }\n else\n {\n //Have a snarky remark for the ants, who can not connect all their hills\n System.out.println(\"Campus #\" + c + \": I'm a programmer, not a miracle worker!\");\n }\n }", "private void CheckToolSale(Shop shop, int toolId, int quantity) {\n if (shop.decreaseToolStock(toolId, quantity)) {\n System.out.println(\"Successfully sold item for: $\" + shop.getToolPrice(toolId)\n * quantity);\n } else if (shop.searchInventory(toolId)) {\n System.out.println(\"Cannot sell more than what is currently in stock.\");\n } else {\n System.out.println(\"Invalid toolId inputted.\");\n }\n }", "public void productoAcabado(boolean a){\n if(a==true){\n JOptionPane.showMessageDialog(null,\"Retire Producto\");\n }else{System.out.println(\"....\");}\n }", "void bot_check_on_user() { // using Watson Speech-to-Text and text-to-Speech functions\r\n String output;\r\n String input;\r\n output: \"Are you okay?\";\r\n input = get voice input;\r\n if (input = \"Yes I’m okay.\") {} // nothing to do\r\n else if (input = \"A bit unwell.\") {\r\n output = \"Please list your symptoms.\";\r\n String symptoms;\r\n symptoms = get voice input;\r\n CFR_check(symptoms);\r\n }\r\n else if (input = …(no sound)) {\r\n CFR_check(\"No response, might be unconscious.\");\r\n else output : \"Please repeat.\";\r\n }", "if(true==adhocTicket.isPaid()){\n System.out.println(\"isPaid() is passed\");\n }", "public void whereIsTheSail()\n {\n // code here\n if(sail) // sail is ture/up\n System.out.println(name + \" sail is up.\\n\");\n else // sale is false/down\n System.out.println(name + \" sail is down.\\n\");\n }", "@Override\n public String execute(Actor actor, GameMap map) {\n player = (Player) actor;\n int option;\n Scanner scanner = new Scanner(System.in);\n // Show shop description and let player enter the option\n display.println(\"<-------------------------------------SHOP-------------------------------------------->\");\n display.println(\"Current Inventory List: \" + player.getInventory().toString());\n display.println(\"Current available eco points: \"+ player.getEcoPoint());\n display.println(\"Select an option to buy the item (Item option: Item(Eco Points required per item))\");\n display.println(\"FOOD--> 1: Fruit(30) 2: Vegetarian Meal Kit(100) 3. Meat Meal Kit(500)\");\n display.println(\"EGG--> 4. Stegosaur Egg(200) 5. Brachiosaur Egg(500) 6. Allosaur Egg(1000) 7. Pterodactyl Egg(300)\");\n display.println(\"OTHER--> 8. Laser Gun(500) 0. Exit\");\n display.println(\"<------------------------------------------------------------------------------------->\");\n display.println(\"Option: \");\n option = scanner.nextInt();\n // if the player successfully purchase an item, return the message\n if(shop.canPurchase(player, option)){\n ans = \"Player bought item \" + option;\n }\n // else if player has no enough money or player enter wrong item option, return the message\n else{\n ans = \"Player bought nothing\";\n }\n // show player current inventory\n display.println(player.getInventory().toString());\n return ans;\n }", "public static void main(String[] args) {\n\t\t\n\t\tScanner scan;\n\t\tString sale;\n\t\tdouble price;\n\t\tdouble discount = 50;\n\t\tdouble finalPrice = 500;\n\t\t scan =new Scanner(System.in);\n\t\t \n\t\t System.out.println(\"any sales?\");\n\t\t String sales = scan.nextLine();\n\t\t\n\t\t if(sales.equalsIgnoreCase(\"Yes\")) {\n\t\t System.out.println(\"What is the price?\");\n\t\t price = scan.nextDouble();\n\t\t scan.close();\n\t\t if(price<20) {\n\t\t discount = price*0.1;\n\t\t finalPrice = price-discount;\n\t\t }else if(price>20 && price<100) {\n\t\t discount = price*0.2;\n\t\t finalPrice = price-discount;\n\t\t }else if(price>100 && price<500) {\n\t\t discount = price*0.3;\n\t\t finalPrice = price-discount;\n\t\t }else if(price>500) {\n\t\t discount = price*0.5;\n\t\t finalPrice = price-discount;\n\t\t }\n\t\t System.out.println(\"have discount \" + discount + \". total price is \" + finalPrice);\n\t\t }else{\n\t\t System.out.println(\"We are not going shopping\");\n\t\t }\n\t\t \n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public boolean buy() throws Exception {\n\n int jogador = this.jogadorAtual();\n\n String lugar = this.tabuleiro.getPlaceName(posicoes[jogador]);\n // System.out.println(\"lugar[jogador]\" + lugar);\n boolean posicaoCompravel = this.posicaoCompravel(posicoes[jogador]);\n boolean isEstatal = this.isPosicaoEstatal(this.posicoes[jogador]);\n\n if (posicaoCompravel || (isEstatal && this.publicServices == true && verificaSeServicoPublicoFoiComprado(this.posicoes[jogador]))) {\n\n if (posicaoCompravel || (isEstatal && this.publicServices == true)) {\n this.listaJogadores.get(jogadorAtual()).addQuantidadeCompanhias();\n\n }\n int posicaoTabuleiro = posicoes[jogador];\n int preco = this.tabuleiro.getLugarPrecoCompra(posicaoTabuleiro);\n Jogador j = listaJogadores.get(jogador);\n this.terminarAVez();\n if (preco <= j.getDinheiro()) {\n this.print(\"\\tPossui dinheiro para a compra!\");\n j.retirarDinheiro(preco);\n this.Donos.put(posicaoTabuleiro, j.getNome());\n\n String nomeLugar = this.tabuleiro.getPlaceName(posicaoTabuleiro);\n j.addPropriedade(nomeLugar);\n if (nomeLugar.equals(\"Reading Railroad\") || nomeLugar.equals(\"Pennsylvania Railroad\") ||\n nomeLugar.equals(\"B & O Railroad\") || nomeLugar.equals(\"Short Line Railroad\")) {\n DonosFerrovias[jogador]++;\n }\n this.print(\"\\tVocê adquiriu \" + nomeLugar + \" por \" + preco);\n this.print(\"\\tAtual dinheiro: \" + j.getDinheiro());\n if (j.temPropriedades() && hipotecaAtiva) {\n j.adicionarComandoHipotecar();\n }\n if (j.verificaSeTemGrupo(posicaoTabuleiro)) {\n if (this.build == true) {\n j.adicionarComandoBuild();\n }\n\n this.tabuleiro.duplicarAluguelGrupo(posicaoTabuleiro);\n\n }\n } else {\n this.print(\"\\tNão possui dinheiro para realizar a compra!\");\n throw new Exception(\"Not enough money\");\n }\n\n } else {\n\n if (this.jaTemDono(posicoes[jogador])) {\n throw new Exception(\"Deed for this place is not for sale\");\n }\n\n if (isEstatal && this.publicServices == false) {\n throw new Exception(\"Deed for this place is not for sale\");\n }\n if (!posicaoCompravel) {\n throw new Exception(\"Place doesn't have a deed to be bought\");\n }\n }\n\n\n\n return false;\n\n\n\n }", "public static void main(String[] args) {\n\n\t\tdouble shoePrice = 220.99;\n\t\tdouble allowance = 200.00;\n\n\t\tif (shoePrice > allowance) {\n\t\t\tSystem.out.println(\"We cant buy it :(\");\n\t\t} else {\n\t\t\tSystem.out.println(\"We can buy it :D\");\n\n\t\t}\n\t\t\n\t\t//declare boolean variable its raining and if it is true your program should say take an umbrella\n\t\t\n\t\tboolean isRaining = true;\n\t\t\n\t\tif (isRaining) {\n\t\t\tSystem.out.println(\"stay home and code\");\n\t\t}else {\n\t\t\tSystem.out.println(\"take a walk and listen to java\");\n\t\t}\n\t}", "public void buyGoodsFromStore(HashMap<Goods, Integer> sellGoods) {\n\t\tArrayList<Goods> myList = accessingGoods(sellGoods);\n\t\tboolean state1 = false;\n\t\t\n\t\twhile(state1 == false) {\n\t\t\tprintGoods(sellGoods, \"Goods that store sell:\");\n\t\t\tSystem.out.println(\"(99) Cancel purchase\");\n\t\t\tSystem.out.println(\"Select the goods you want to buy\");\n\t\t\tint selectedAction = scanner.nextInt();\n\t\t\ttry { \n\t\t\t\tif (selectedAction == 99) {\n\t\t\t\t\tstate1 = true;\n\t\t\t\t\tgame.goToStore();\n\t\t\t\t}\n\n\t\t\t\telse if (selectedAction <= sellGoods.size() && selectedAction > 0) {\n\t\t\t\t\tGoods selectedGoods = myList.get(selectedAction - 1);\n\t\t\t\t\tint goodsPrice = sellGoods.get(selectedGoods);\n\t\t\t\t\tif (game.checkConditionsForBuying(1, selectedGoods, goodsPrice) == true) \n\t\t\t\t\t{\n\t\t\t\t\t\tboolean state2 = false;\n\t\t\t\t\t\twhile(state2 == false) {\n\t\t\t\t\t\t\tSystem.out.println(\"How many do you want to buy?\" );\n\t\t\t\t\t\t\ttry { \n\t\t\t\t\t\t\t\tint quantity = scanner.nextInt();\n\t\t\t\t\t\t\t\tif (game.checkConditionsForBuying(quantity, selectedGoods, goodsPrice) == true) {\n\t\t\t\t\t\t\t\tstate2 = true;\n\t\t\t\t\t\t\t\tgame.buyGoods(quantity, selectedGoods, goodsPrice);\n\t\t\t\t\t\t\t\tSystem.out.println(\"Purchase Succesful!\");\n\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\tSystem.out.println(\"You either don't have enough money or enough capacity\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"You have to input an integer!\");\n\t\t\t\t\t\t\t\tscanner.nextLine();\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\tSystem.out.println(\"You either don't have enough money or enough capacity even to buy 1 item\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Please choose from actions above\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(INPUT_REQUIREMENTS);\n\t\t\t\tscanner.nextLine();\n\t\t\t}\n\t\t}\t\n\t}", "public Boolean isMakingShop(Player player){\n\t\tString name = player.getName();\n\t\tif(PlayerMakingShop.containsKey(player.getName())){\n\t\t\tString hashValue = PlayerMakingShop.get(name);\n\t\t\tif(hashValue != \"false\"){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} \n\t\treturn false;\n\t}", "boolean isAutoRedeem();", "public void buyEquipment(Equipment equipmentForSale, Store store) {\n\t\tif (game.checkEquipmentFull()) {\n\t\t\tSystem.out.println(\"You can't add more equipment to your ship\");\n\t\t\tgame.goToStore();\n\t\t}\n\t\telse {\n\t\t\tboolean state = false;\n\t\t\twhile(state==false) \n\t\t\t{\n\t\t\t\tSystem.out.println(\"This store sell \"+ equipmentForSale.getName());\n\t\t\t\tSystem.out.println(\"Price: \"+equipmentForSale.getSellingPrice());\n\t\t\t\tArrayList<Equipment> equipments = game.getSelectedShip().getEquipment();\n\t\t\t\tif(equipments.contains(equipmentForSale)) \n\t\t\t\t{\n\t\t\t\t\tstate = true;\n\t\t\t\t\tSystem.out.println(\"You can't add this equipment since you already have it set in your ship!\");\n\t\t\t\t\tgame.goToStore();\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Do you want to buy this equipment?\");\n\t\t\t\t\tSystem.out.println(\"(1) Yes\");\n\t\t\t\t\tSystem.out.println(\"(2) No\");\n\t\t\t\t\tint selectedAction = scanner.nextInt();\n\t\t\t\t\tif (selectedAction == 1 || selectedAction == 2) \n\t\t\t\t\t{\n\t\t\t\t\t\tstate = true;\n\t\t\t\t\t\tif (selectedAction == 1) {\n\t\t\t\t\t\t\tint equipmentPrice = equipmentForSale.getSellingPrice();\n\t\t\t\t\t\t\tif (game.checkEnoughMoney(equipmentPrice)) {\n\t\t\t\t\t\t\t\tgame.buyEquipment(equipmentForSale);\n\t\t\t\t\t\t\t\tSystem.out.println(\"The equipment has been added to your ship!\");\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tSystem.out.println(\"Sorry your money is not enought to buy this equipment\");\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\tgame.goToStore();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"Please input 1 or 2\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "boolean hasWork();", "public void runStore(StoreData data, int bool){\n\n\t\t//This try catch block is used to setup the driver used to connect to the database\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\n\t\tConnection connection = null;\n\t\t\n\t\t//This try catch block is used to connect to the database using the driver\n\t\ttry {\n\t\t\tconnection = DriverManager\n\t\t\t\t\t.getConnection(\"jdbc:mysql://orion.csl.mtu.edu/ajbrowne\",\"ajbrowne\", \"ajZ4VikY/tnI.\");\n\n\t\t} catch (SQLException e) {\n\t\t\t((Throwable) e).printStackTrace();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//This block first checks to see which of the following methods should be used.\n\t\tif (connection != null) {\n\t\t\tif(bool == 1){\n\t\t\t\tgetData(connection,data);\n\t\t\t}else if(bool == 2){\n\t\t\t\tdeleteEvent(connection, data);\n\t\t\t}else if(bool == 3){\n\t\t\t\tgetSpecificData(connection, data,0);\n\t\t\t}else if(bool == 5){\n\t\t\t\tgetDateEvents(connection, data);\n\t\t\t}else if(bool == 6){\n\t\t\t\tgetNameEvents(connection, data);\n\t\t\t}else if(bool == 4){\n\t\t\t\tgetByID(connection,data);\n\t\t\t}else if(bool == 7){\n\t\t\t\teditEvent(connection, data);\n\t\t\t}else if(bool == 8){\n\t\t\t\taddRepeats(connection, data);\n\t\t\t}else{\n\t\t\t\tsend(connection, data);\n\t\t\t}\n\n\n\t\t} else {\n\t\t\tSystem.out.println(\"Failed to make a connection!\");\n\t\t}\n\t\t//This try catch block just closes the connection to the database \n\t\ttry {\n\t\t\tconnection.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public synchronized boolean comprobarBingoDeCarton(String sala,String nRef, UserBean user){\n\n \tPocketBingo pb = gestorSesions.getJugadasSalas(sala);\n \tList<Integer>numerosCalled = pb.getNumerosCalled();\n \tint resultControlBingo;\n \tboolean hayBingo=false;\n\n \t\t\t\tCarton carton = new Carton().consultaObjetoCarton(nRef);\n \t\t\t\n \t\t\t\tint numeros[][] = carton.getNumeros();\n \t\t\t\tresultControlBingo=0;\n \t\t\t\t//Thread.sleep(1000);\n \t\t\t\tfor(int f=0;f < 3; f++){\n \t\t\t\t\t\n \t\t\t\t\tfor(int c=0; c<9 ; c++){\n \t\t\t\t\t\tint numero = numeros[f][c];\n \t\t\t\t\t\tif(numerosCalled.contains(numero)){\n \t\t\t\t\t\t\t//\tEnviar mensaje de encender numero a Carton por numero OK (En cliente marcar el numero cono OK)\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\t try {\n \t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\tuser.getSesionSocket().getBasicRemote().sendText(\"numeroOK_\"+carton.getnOrden()+\"F\"+(f+1)+\"C\"+(c+1));\n \t\t\t\t\t\t\t\t\t//Thread.sleep(1000);\n \t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t// \tTODO Auto-generated catch block\n \t\t\t\t\t\t\t\t\te.printStackTrace();\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tif(f==0)resultControlBingo+=5;\n \t\t\t\t\t\t\t\tif(f==1)resultControlBingo+=50;\t\n \t\t\t\t\t\t\t\tif(f==2)resultControlBingo+=500;\t \n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tlog.info(\"Result Control Bingo de \"+ user.getUsername()+ \" y carton \" + carton.getnRef() + \" = \" + resultControlBingo );\n\t\t\t\t\tif (resultControlBingo == 2775 ) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tuser.getSesionSocket().getBasicRemote().sendText(\"Hay premio Bingo, Enhorabuena \");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString key = user.getUsername();\t//PeticionPremio userBeanPeticiones = this.listaPeticionesPremios.get(key);\n\t\t\t\t\t\t\tPeticionPremio peticionBingoManual = new PeticionPremio();\n\t\t\t\t\t\t\tpeticionBingoManual.setPremio(\"Bingo\");\n\t\t\t\t\t\t\tpeticionBingoManual.setUserbean(user);\n\t\t\t\t\t\t\t//Un control para no repetir el registro de premio sobre el mismo carton\n\t\t\t\t\t\t Collection<Carton> cartones = gestorSesions.getPilaAnunciaPremios(sala).values();\n\t\t\t\t\t\t Iterator<Carton>itCartones = cartones.iterator();\n\t\t\t\t\t\t while(itCartones.hasNext()){\n\t\t\t\t\t\t \tCarton esteCarton = (Carton)itCartones.next();\n\t\t\t\t\t\t \tString nRefDeEste =esteCarton.getnRef()+\"\"; \n\t\t\t\t\t\t\n\t\t\t\t\t\t \tif (nRef.equals(nRefDeEste))return false;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t carton.setCartonManual(true);\n\t\t\t\t\t\t\tgestorSesions.getPilaAnunciaPremios(sala).put(peticionBingoManual, carton);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tlog.info(\"Hay Bingo ,result:\"+resultControlBingo +\" Carton:\" + carton.getnRef());\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\thayBingo=true;\n\t\t\t\t\t\t\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//if(!hayBingo){\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tuser.getSesionSocket().getBasicRemote().sendText(\"No tienes Bingo... \");\n\t\t\t\t\t\t\tlog.info(\"No Hay Bingo ,result:\"+resultControlBingo +\" Carton:\" + carton.getnRef());\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// \t\tTODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t}\n\t\treturn hayBingo;\n }", "public boolean isProduced(){\n if(!step1.isEmpty()&&!step2.isEmpty()&&!step3.isEmpty()){\n return true;\n }else {\n return false;\n }\n }", "private boolean checkout() {\n if (OrderMenuUI.incompleteOrders == null || OrderMenuUI.incompleteOrders.size() == 0) {\n System.out.println(\"No orders ready for checkout. Cancelling Operation\");\n return false;\n }\n HashMap<Integer, Order> tOrders = new HashMap<>();\n OrderMenuUI.incompleteOrders.forEach((s) -> {\n Table c = s.getTable();\n if (c == null) return;\n tOrders.put(c.getTableNum(), s);\n });\n tOrders.put(-1, null);\n OrderMenuUI.printOrderList(OrderMenuUI.incompleteOrders, \"Ready for Checkout\", true);\n int tableNo = ScannerHelper.getIntegerInput(\"Select Table to checkout (-1 to cancel): \", new ArrayList<>(tOrders.keySet()), \"Invalid Table Number. Please select a valid table number or enter -1 to cancel\");\n if (tableNo == -1) {\n System.out.println(\"Checkout Operation Cancelled\");\n return false;\n }\n Order o = tOrders.get(tableNo);\n double total = printOrderDetails(o);\n System.out.println();\n System.out.println(\"Payment Mode\");\n System.out.println(\"1) Cash\");\n System.out.println(\"2) NETS\");\n System.out.println(\"3) Debit/Credit Card\");\n System.out.println(\"4) EZ-Link\");\n System.out.println(\"0) Cancel\");\n int choice = ScannerHelper.getIntegerInput(\"Select Payment Mode (0 to cancel): \", -1, 5);\n double paid;\n Invoice.PaymentType paymentType;\n switch (choice) {\n case 1:\n paid = requestCashPayment(total);\n paymentType = Invoice.PaymentType.PAYMENT_CASH;\n break;\n case 2:\n paymentType = Invoice.PaymentType.PAYMENT_NETS;\n paid = total; // All card payments are presumed paid fully\n break;\n case 3:\n paymentType = Invoice.PaymentType.PAYMENT_CARD;\n paid = total; // All card payments are presumed paid fully\n break;\n case 4:\n paymentType = Invoice.PaymentType.PAYMENT_EZLINK;\n paid = total; // All card payments are presumed paid fully\n break;\n case 0:\n System.out.println(\"Operation Cancelled\");\n return false;\n default:\n throw new MenuChoiceInvalidException(\"Checkout Payment\");\n }\n System.out.println(\"Payment Complete! Payment Mode: \" + paymentType.toString());\n if (paymentType == Invoice.PaymentType.PAYMENT_CASH) {\n System.out.println(\"Change: $\" + String.format(\"%.2f\", (paid - total)));\n }\n\n System.out.println(\"Generating Receipt...\");\n o.markPaid();\n OrderMenuUI.incompleteOrders.remove(o);\n ArrayList<String> receipt = generateReceipt(o, total, paid, paymentType);\n System.out.println();\n receipt.forEach(System.out::println);\n String receiptName = \"-\";\n if (writeReceipt(receipt, o.getOrderID())) {\n receiptName = o.getOrderID() + \".txt\";\n }\n Invoice i = new Invoice(o, receiptName, paymentType, total, paid);\n MainApp.invoices.add(i);\n System.out.println(\"\\n\");\n System.out.println(\"Returning to Main Menu...\");\n return true;\n }", "private boolean promptNewOrder(String productName) {\r\n System.out.println(\"It doesn't look like you've placed this order before. \"\r\n + \"Would you like to place a new order for - \" + productName + \"?\\n\"\r\n + \"ENTER \\\"YES\\\" to Place a New Order or \\\"NO\\\" to continue.\");\r\n boolean responseIsYes;\r\n try {\r\n responseIsYes = scan.next().equalsIgnoreCase(\"yes\");\r\n } \r\n //if the user does not type anything, default to \"Yes\"\r\n catch(java.util.NoSuchElementException e){\r\n responseIsYes = true;\r\n }\r\n if (responseIsYes) {\r\n System.out.println(\"Thank you! A new Order will be placed.\\n\"\r\n + \"----------------------------------------------------------\");\r\n return true;\r\n }\r\n System.out.println(\"Thank you! This order has been cancelled.\\n\"\r\n + \"----------------------------------------------------------\");\r\n return false;\r\n }", "private void startTalePlay_Service(){\n UpdateTalesData.loadTalesData(this);\n if (UpdateTalesData.mCheckTaleExist.exists()){\n doIfOnline(); //cos code the same\n } else {\n checkConnectivity();\n if (mIsOnline){\n doIfOnline();\n autoDownloadTales();\n }else {\n doIfOffline();\n }\n }\n }", "public void submitOrder(View view) {\n //display(2);\n int price = quantity*5;\n CheckBox WhippedCreamCheckBox = (CheckBox) findViewById(R.id.checkbox_view);\n CheckBox ChocalteToppingdCheckbox =(CheckBox) findViewById(R.id.checkboxviewChocalate);\n\n boolean has = WhippedCreamCheckBox.isChecked();\n boolean has2 = ChocalteToppingdCheckbox.isChecked();\n EditText name = (EditText) findViewById(R.id.name_edit_field);\n // String nametext = (String) name.getText();\n\n int totalPrice = getTotalPrice(has,has2);\n createOrederSummary(price,has,has2,name.getText().toString(),totalPrice);\n\n\n //String message=\"Thank You !!\\n\"+\"Your Total: $\"+price;\n //displayMessage(message);\n }", "private static void CLIapplication() {\n\n\t\tboolean done = false;\n\t\tdo {\n\t\t\tint choice = HQmenu();\n\t\t\tSite newSite;\n\n\t\t\tswitch(choice) {\n\t\t\tcase 1:\n\t\t\t\tSystem.out.println(\"Register exchange office\");\n\t\t\t\tnewSite = createNewSite();\n\t\t\t\tif(sites.containsKey(newSite.getSiteName())) {\n\t\t\t\t\tSystem.out.println(\"Site already registred!1\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsites.putIfAbsent(newSite.getSiteName(), newSite);\t\t\t\t\t\n\t\t\t\t\twriteNewSiteToConfigFile(newSite.getSiteName());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tif(sites.isEmpty()) {\n\t\t\t\t\tSystem.out.println(\"You need to register site(s) first.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tCLIHelper.menuInput();\n\t\t\t\tbreak;\n\t\t\tcase 0:\n\t\t\t\tdone = true;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Not a valid menu choice!\");\n\t\t\t}\n\t\t\tlogger.info(\"-------Task_Done-------\\n\");\n\t\t}while(!done);\n\t}", "public void priceCheck() {\n\t\tnew WLPriceCheck().execute(\"\");\n\t}", "public void confirmBooking(){\n double ticketPrice = 56.0;\n double mealPrice = 30.0;\n if (student || child )\n ticketPrice = ticketPrice/2;\n else\n ticketPrice = ticketPrice*0.8;\n \n if (child )\n mealPrice = mealPrice/2;\n else\n mealPrice = mealPrice*0.9;\n double totalPrice = ticketPrice + mealPrice;\n System.out.println(getName()+\"\\nTicket price:$\"+ticketPrice+\"\\nMeal Price:$\"+mealPrice+\"\\nTotal price:$\"+totalPrice+\"\\nConfirm booking for \"+getName()+\" (Y/N)\");\n setBooked();\n System.out.println(getBooked()+\"\\n\\n\");\n }", "private boolean nextWorkorder() {\n\t\treturn Console.readString(\" Any other workorder? (y/n) \").equalsIgnoreCase(\"y\");\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}", "public void printResult(boolean result){\r\n if(result)\r\n System.out.println(\"Pass\");\r\n }", "public String execute(){\n\tString output = \"\";\n\tif (fcentails()){\n\t\t\t// the method returned true so it entails\n\t\t\toutput = \"YES: \";\n\t\t\t// for each entailed symbol\n\t\t\tfor (int i=0;i<entailed.size();i++){\n\t\t\t\t\toutput += entailed.get(i)+\", \";\n\t\t\t\t}\n\t\t\toutput += ask;\t\n\t}\n\telse{\n\t\t\toutput = \"NO\";\n\t}\n\treturn output;\t\t\n}", "boolean hasIsAutoBet();", "public void toolAccepted()\n {\n printOut(cliToolsManager.simpleQuestionsMaker(\"Strumento accettato\", 40, true));\n }", "boolean CanBuyCity();", "public void purchase() {\r\n\t\tdo {\r\n\t\t\tString id = getToken(\"Enter customer id: \");\r\n\t\t\tString brand = getToken(\"Enter washer brand: \");\r\n\t\t\tString model = getToken(\"Enter washer model: \");\r\n\t\t\tint quantity = getInteger(\"Enter quantity to purchase: \");\r\n\t\t\tboolean purchased = store.purchaseWasher(id, brand, model, quantity);\r\n\t\t\tif (purchased) {\r\n\t\t\t\tSystem.out.println(\"Purchased \" + quantity + \" of \" + brand + \" \" + model + \" for customer \" + id);\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Purchase unsuccessful.\");\r\n\t\t\t}\r\n\t\t} while (yesOrNo(\"Make another Purchase?\"));\r\n\t}", "private int calculatePrice(boolean addWhippedCream, boolean addChocolate,boolean takeAway) {\r\n int price=20;\r\n if (addWhippedCream){\r\n price=price+5;\r\n }\r\n\r\n if (addChocolate){\r\n price=price+7;\r\n }\r\n if (takeAway){\r\n price=price+2;\r\n }\r\n\r\n\r\n return quantity*price;\r\n\r\n }", "public static void main(String[] args) {\n\n\t\tboolean bool1, bool2;\n\t\tString drink = null ;\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.println(\"Are you thirsty?\");\n\t\tbool1 = input.nextBoolean();\n\t\tSystem.out.println(\"Are you sleepy?\");\n\t\tbool2 = input.nextBoolean();\n\n\t\tif (bool1 && !bool2) {\n\t\t\t\n\t\t\t\n\t\t\t\tdrink = \"Water\";\n\n\t\t\t\n\n\t\t} else if (bool1 && bool2) {\n\t\t\t\n\t\t\t\tdrink = \"Coffee\";\n\n\t\t\t\n\t\t} else if (!bool1 && bool2) {\n\t\t\t\n\t\t\t\tdrink = \"Tea\";\n\n\t\t\t\n\t\t} else {\n\t\t\tdrink = \"Nothing\";\n\n\t\t\n\t\t\n\t\t\n\t\t}\n\t\tSystem.out.println(\"Looks like you need \" + drink);\n\t}", "public void act()\n {\n if(onSales == true)\n {\n calculateSale();\n }\n }", "public static void checkFromUser() {\n\t\tif (askUser(\"Please type y to execute program and any other key to stop\").contentEquals(\"y\")) {\n\t\t\tSystem.out.println(\"Continuing\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Terminating program\");\n\t\t\tSystem.exit(0); \n\t\t}\n\t\tSystem.out.println(\"Calculating the greatest house income, the greatest income after expenditure and greatest savings from the given 3 families\");\n\t}", "public static void main (String[] args) {\n\t\t\n\t\t\n\t\tScanner inp = new Scanner(System.in);\n\t\tSystem.out.println(\"Is there a sale? True or False\");\n\t\tboolean sale = inp.nextBoolean();\n\t\t\n\t\t\n\t double discount;\n\t\tdouble finalPrice;\n\t\tdouble price;\n\t\t\n\t\tif (!sale) {\n\t\t\tSystem.out.println(\"I am not shopping\");\n\t\t}else {\n\t\t\tSystem.out.println(\"What is the actual price?\");\n\t\t\tprice = inp.nextDouble();\n\t\t\t\n\t\tif (price<20) {\n\t\t\tdiscount = price *0.10;\n\t\t\t//finalPrice = price - discount;\n\t\t} else if (price>=20 && price<=100) {\n\t\t\tdiscount = price *0.20;\n\t\t\t//finalPrice = price - discount;\n\t\t} else if (price>=100 && price<=500) {\n\t\t\tdiscount = price *0.30;\n\t\t\t//finalPrice = price - discount;\n\t\t} else {\n\t\t\tdiscount = price *0.50;\n\t\t\t\n\t\t\t\n\t\t}\n\t\t finalPrice = price - discount;\n\t\t\t\nSystem.out.println(\"After discount \"+discount+\" the price of the item reduce from \"+price+\" to \"+finalPrice);\n\t\t\t\n\t\t}\n\t\t\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 }", "boolean isCheckedOut();", "double checkout() {\n\t\tdouble total = 0;\n\t\tfor (Fruit item : fruitList){\n\t\t\ttotal += item.getPrice();\t\n\t\t}\t\n\t\t\n\t\t// Apply offers and calculate total\n\t\tdouble discountGetOneFree = Offer.getOfferBuyOneGetOneFree(getFruitNameList(), new Apple() );\n\t\tdiscountGetOneFree += Offer.getOfferBuyOneGetOneFree(getFruitNameList(), new Banana() );\n\t\tdouble discountThreeForTwo = Offer.getOfferThreeForTwo(getFruitNameList(), new Orange() );\n\t\tdiscountThreeForTwo += Offer.getOfferThreeForTwo(getFruitNameList(), new Melon() );\t\t\n\t\tdouble discountCheapestForFree = Offer.cheapestFruitForFree(getFruitList());\n\t\ttotal += - discountGetOneFree - discountThreeForTwo - discountCheapestForFree;\n\t\t\n\t\tDecimalFormat df = new DecimalFormat(\"#,##0.00\");\n\t\t// Print out the total cost and saving\n\t\tSystem.out.println(String.format(\"£ %s Total cost\", df.format(total)));\n\t\tif (discountGetOneFree > 0)\n\t\t\tSystem.out.println(String.format(\"£ %s Promotional Saving *** Buy One Get One Free ***\", df.format(discountGetOneFree)));\n\t\tif (discountThreeForTwo > 0)\n\t\t\tSystem.out.println(String.format(\"£ %s Promotional Saving *** 3 for the price of 2 ***\", df.format(discountThreeForTwo)));\n\t\tif (discountCheapestForFree > 0)\n\t\t\tSystem.out.println(String.format(\"£ %s Promotional Saving *** Cheapest for free ***\", df.format(discountCheapestForFree)));\n\t\t\t\t\t\n\t\treturn total;\t\t\n\t}", "public String execute(){\n\t\tGameState g = GameState.instance();\n Dungeon d = g.getDungeon();\n NPC npc = d.getNPC(npcName);\n\t\tString advValue = \"\";\n\t\tString npcValue = \"\";\n\t\tif(npc.getType().equals(\"Friendly\")){\n if(g.getInventory().isEmpty() || npc.getInventory().isEmpty()){\n\t\t\t\treturn \"You cannot trade with \" + npc.getProperName() + \"!\";\n\t\t\t}\n\t\t\tif(!g.getInventory().isEmpty()){\n\t\t\t\tfor(Item i : g.getInventory()){\n\t\t\t\t\tadvValue += \"name: \" + i.getPrimaryName() + \" weight: \" + i.getWeight() + \" value: \" + i.getValue() + \"\\n\";\n\t\t\t\t}\n\t\t\tSystem.out.println(\"\\033[4mAdventurer's Inventory:\\033[0m\\n\" + advValue);\n\t\t\t\n\t\t\t}\n\t\t\tif(!npc.getInventory().isEmpty()){\n for(Item i : npc.getInventory()){\n npcValue += \"name: \" + i.getPrimaryName() + \" weight: \" + i.getWeight() + \" value: \" + i.getValue() + \"\\n\";\n }\n System.out.println(\"\\033[4mNPC's Inventory:\\033[0m\\n\" + npcValue);\n\n\t\t\t}\n\t\t\tSystem.out.println(\"If you would like to swap items, then type 'swap 'your item' 'npc item''\");\n\t\t\tSystem.out.println(\"If you don't want to swap items, then type 'stop'\");\n\t\t\tSystem.out.print(\"> \");\n\t\t\tString answer;\n\t\t\tString advItem = \"\";\n\t\t\tString npcItem = \"\";\n\t\t\tString[] answerSplit;\n\t\t\tanswer = s.nextLine();\n\t\t\twhile(!answer.equals(\"stop\")){\n\t\t\t\tif(!answer.startsWith(\"swap\")){\n\t\t\t\t\tSystem.out.println(\"incorrect format\");\n\t\t\t\t}\n\t\t\t\telse if(answer.split(\" \").length != 3){\n\t\t\t\t\tSystem.out.println(\"incorrect format\");\n\t\t\t\t}\n\t\t\t\telse if(answer.split(\" \").length == 3){\n\t\t\t\t\tanswerSplit = answer.split(\" \");\n\t\t\t\t\tif(d.getItem(answerSplit[1]) == null || !g.getInventory().contains(d.getItem(answerSplit[1]))){\n\t\t\t\t\t\tSystem.out.println(\"trade what?\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(d.getItem(answerSplit[2]) == null || !npc.getInventory().contains(d.getItem(answerSplit[2]))){\n System.out.println(\"trade for what?\");\n }\n\t\t\t\t\telse{\n\t\t\t\t\t\tif(((g.getWeight() - d.getItem(answerSplit[1]).getWeight())+ d.getItem(answerSplit[2]).getWeight()) > 40){\n\t\t\t\t\t\t\tSystem.out.println(\"this will put you over the weight limit\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tif((d.getItem(answerSplit[2]).getValue() - d.getItem(answerSplit[1]).getValue()) > 10){\n\t\t\t\t\t\t\t\tSystem.out.println(npc.getProperName() + \" doesn't want to trade this.\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tg.getInventory().remove(d.getItem(answerSplit[1]));\n\t\t\t\t\t\t\t\tnpc.getInventory().add(d.getItem(answerSplit[1]));\n\t\t\t\t\t\t\t\tnpc.getInventory().remove(d.getItem(answerSplit[2]));\n\t\t\t\t\t\t\t\tg.getInventory().add(d.getItem(answerSplit[2]));\n\t\t\t\t\t\t\t\treturn \"you have swapped \" + answerSplit[1] + \" for \" + answerSplit[2];\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\tSystem.out.print(\"> \");\n\t\t\t\tanswer = s.nextLine();\n\t\t\t}\n\t\t}\n\t\treturn \"you have stopped trading\";\n\t\t\t\n\t}", "private boolean operaion () {\n menuShow();\n int action = s.nextInt();\n while (true) {\n switch (action) {\n case 1:\n System.out.println();\n System.out.println(\"Balance: \" + data.selectBalance(cardNum));\n menuShow();\n action = s.nextInt();\n break;\n case 2:\n addIncome();\n menuShow();\n action = s.nextInt();\n break;\n case 3:\n doTransfer();\n menuShow();\n action = s.nextInt();\n break;\n case 4:\n closeAccount();\n return false;\n case 5:\n System.out.println();\n this.balance = 0;\n this.cardNum = null;\n this.pin = null;\n System.out.println(\"You have successfully logged out!\");\n return false;\n default:\n return true;\n }\n }\n }", "public boolean buyBuildings(String naam, int wood, int brick, int grain, int wool, int ore,\n\t\t\tboolean automaticBuyCheck) {\n\t\tboolean canBuy = false;\n\n\t\tif (pTSM.playerOnTurn(this.gameID) == this.userID) {\n\t\t\tString kind = \"\";\n\n\t\t\tif (naam.equals(\"Straat\")) {\n\t\t\t\tkind = STREET;\n\t\t\t} else if (naam.equals(\"Dorp\")) {\n\t\t\t\tkind = VILLAGE;\n\t\t\t} else if (naam.equals(\"Stad\")) {\n\t\t\t\tkind = CITY;\n\t\t\t} else if (naam.equals(\"Ontwikkelingskaart\")) {\n\t\t\t\tkind = DEVELOPMENTCARD;\n\t\t\t} else {\n\t\t\t\treturn canBuy;\n\t\t\t}\n\n\t\t\t// Check what kind of card/object the player want to buy\n\t\t\tif (kind.equals(DEVELOPMENTCARD) && !automaticBuyCheck) {\n\n\t\t\t\tif (canBuy = bbm.hasEnoughMaterials(wood, brick, grain, wool, ore)) {\n\t\t\t\t\tthis.bbm.takeMaterials(wood, brick, grain, wool, ore);\n\t\t\t\t\tthis.oc.buyDev(dcs, userID);\n\t\t\t\t} else {\n\t\t\t\t\tthis.message = bbm.getMessage();\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tcanBuy = bbm.buyBuilding(kind, wood, brick, grain, wool, ore, automaticBuyCheck);\n\t\t\t\tif (bbm.getMessage() != null) {\n\t\t\t\t\tthis.message = bbm.getMessage();\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tthis.message = NOT_YOUR_TURN;\n\t\t}\n\n\t\treturn canBuy;\n\t}", "public boolean isShopping()\n\t{\n\t\treturn m_isShopping;\n\t}", "public void displayMessage() {\n TextView priceSummaryTextView = (TextView) findViewById(R.id.price_summary_text_view);\n priceSummaryTextView.setText(\"ORDER SUMMARY\");\n\n int toppingsCost = 0;\n int whippedCreamCost = 1;\n int chocolateToppingsCost = 2;\n String whippedCream = \"No\";\n String chocolate = \"No\";\n\n CheckBox firstToppings = (CheckBox) findViewById(R.id.checkbox1);\n CheckBox secondToppings = (CheckBox) findViewById(R.id.checkbox2);\n EditText name = (EditText) findViewById(R.id.text_field);\n\n if (firstToppings.isChecked()) {\n\n whippedCream = \"Yes\";\n toppingsCost = toppingsCost + whippedCreamCost;\n\n\n }\n\n\n if (secondToppings.isChecked()) {\n\n chocolate = \"Yes\";\n toppingsCost = toppingsCost + chocolateToppingsCost;\n\n\n }\n\n\n TextView priceTextView = (TextView) findViewById(R.id.price_text_view);\n priceTextView.setText(\"Order placed ! Here's your order summary:\" + \"\\n\" + \"\\n\" + \"\\nName: \" + name.getText().toString() + \"\\n\" + \"\\nNumber of Coffees: \" + numOfCoffees + \"\\n\" + \"\\nAdd whipped cream ? \" + whippedCream + \"\\n\" + \"\\nAdd chocolate ? \" + chocolate + \"\\n\" + \"\\nTotal amount: $\" + (numOfCoffees * (5 + toppingsCost)) + \"\\n\" + \"\\n\" +\n \"\\nThank you and enjoy your coffee! :)\");\n\n }", "public void orderChecker()\n {\n System.out.print( \"Number of bolts: \" );\n int bolts = scan.nextInt();\n System.out.print( \"Number of nuts: \" );\n int nuts = scan.nextInt();\n System.out.print( \"Number of washers: \" );\n int washers = scan.nextInt();\n if ( nuts >= bolts )\n {\n if ( washers >= 2 * bolts )\n {\n System.out.println( \"Check the Order: Order is OK.\" );\n }\n else\n {\n System.out.println( \"Check the Order: Too few washers.\" );\n }\n }\n else\n {\n System.out.println( \"Check the Order: Too few nuts.\" );\n if ( ( washers < 2 * bolts ) )\n {\n System.out.println( \"Check the Order: Too few washers.\" );\n }\n }\n\n final int boltPrice = 5;\n final int nutPrice = 3;\n final int washerPrice = 1;\n int cost = boltPrice * bolts + nutPrice * nuts + washerPrice * washers;\n System.out.println( \"Total cost: \" + cost );\n }", "public void submitOrder(View view) {\n\n //For cream CheckBox\n CheckBox checkCream = findViewById(R.id.whipped_cream_check_box);\n boolean hasWhippedCream = checkCream.isChecked();\n //For chocolate CheckBox\n CheckBox checkChocolate = findViewById(R.id.chocolate_check_box);\n boolean hasChocolate = checkChocolate.isChecked();\n\n //For entering your name\n EditText editName = findViewById(R.id.enter_name_edit_text);\n\n int price = calculatePrice(hasWhippedCream, hasChocolate);\n\n String summary = createOrderSummary(price, hasWhippedCream, hasChocolate);\n\n nameChecker(editName, summary);\n }", "@Override\n\tpublic void enterStore(Store store) {\n\t\tHashMap<Goods, Integer> sellGoods = store.getSellGoods();\n\t\tHashMap<Goods, Integer> interestedGoods = store.getInteresedGoods();\n\t\tEquipment equipment = store.getEquipment();\n\t\tint currentMoney = game.getMoney();\n\t\tboolean state = false;\n\t\twhile (state == false) {\n\t\t\tSystem.out.println(\"Your current money is: \" + currentMoney);\n\t\t\tif (!game.checkMyShipHealth()) {\n\t\t\t\tint cost = 100 - (game.getSelectedShip().getShipsStatus());\n\t\t\t\tSystem.out.println(\"Your ship repairment cost is: \" + cost);\n\t\t\t}\n\t\t\tSystem.out.println(\"Choose your actions: \");\n\t\t\tSystem.out.println(\"(1) Go back!\");\n\t\t\tSystem.out.println(\"(2) See goods that for sale\");\n\t\t\tSystem.out.println(\"(3) See goods that interested by the store\");\n\t\t\tSystem.out.println(\"(4) See equipment for your ship\");\n\t\t\tSystem.out.println(\"(5) Repair my ship\");\n\t\t\ttry { \n\t\t\t\tint selectedAction = scanner.nextInt();\n\t\t\t\tif (selectedAction <= 5 && selectedAction > 0) {\n\t\t\t\tstate = true;\n\t\t\t\tif (selectedAction == 1) {\n\t\t\t\t\tgame.backToMain();\n\t\t\t\t}\n\t\t\t\telse if (selectedAction == 2) \n\t\t\t\t{\n\t\t\t\t\tbuyGoodsFromStore(sellGoods);\n\t\n\t\t\t\t}\n\t\t\t\telse if (selectedAction == 3) {\n\t\t\t\t\tsellGoodsForStore(interestedGoods);\n\t\t\t\t}\n\t\t\t\telse if (selectedAction == 4) {\n\t\t\t\t\tthis.buyEquipment(equipment, store);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tgame.repairMyShip();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Please choose from actions above\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(INPUT_REQUIREMENTS);\n\t\t\t\tscanner.nextLine();\n\t\t\t}\n\t\t}\n\t}", "boolean CanBuySettlement();", "public static void useStateSecure(Boolean state)\n {\n if(state == true)\n {\n System.out.println(\"performing calculation\");\n }\n else\n {\n System.out.println(\"Calculation cancelled based on state\");\n }\n }", "public static void main(String[] args) {\n\n\t\tboolean allergy=true;\n\t\t\n\t\tboolean petAllergy=false;\n\t\tboolean peanatAllergy=true;\n\t\tboolean pollenAllergy=false;\n\t\t\n\t\t\n\t\t\n\tif (allergy) {\n\t\tSystem.out.println(\"Lets do further check\");\n\t\tif (petAllergy) {\n\t\t\tSystem.out.println(\"Please no cats or dogs in the house\");\n\t\t\n\t\t\n\t\t} else if (peanatAllergy){\n\t\t\tSystem.out.println(\"Dont eat peanat butter\");\n\t\t}else if (pollenAllergy) {\n\t\t\tSystem.out.println(\"Dont clean \");}\n\t}else {\n\t\tSystem.out.println(\"You are lucky\");\n\t}\n\t\n\tSystem.out.println(\"-----------Example 2----------\");\n\t\n\t/*\n\t * If todays is friday we will watch movie but would like to check the date\n\t * if date is 13--> watching scary movie\n\t * and if its is not--> i will watch comedy, action\n\t * \n\t * if no Friday --> i am studying\n\t */\n\t\n\tboolean Friday=false;\n\tint date=4;\n\tboolean monday=true;\n\t\n\tif (Friday) {\n\t\tif (date==13) {\n\t\t\tSystem.out.println(\"We will watch a scary movie\");\n\t\t\n\t\t}else {\n\t\t\tSystem.out.println(\"Watch a comedy\");\n\t\t}\n\t\t\n\t\t\n\t}else {\n\t\t\n\t\tif(monday) {\n\t\tSystem.out.println(\"I am not studying,Im working\");\n\t}else {\n\t\tSystem.out.println(\"I have class at Syntax\");\n\t}\n\t}\n\t\n\tSystem.out.println(\"----------Example 3------\");\n\t/*\n\t * check if assignment is completed\n\t * if assignment is complited:\n\t * if score >90--> great job\n\t * if score >80--> good job;\n\t * if score >70--> please study more\n\t */\n\t\n\tboolean assignment=false;\n\tint score=92;\n\t\n\tif (assignment) {\n\t\tif(score>90) {\n\t\t\tSystem.out.println(\"Great job!\");\n\t\t}else if (score>80) {\n\t\t\tSystem.out.println(\"Good job\");\n\t\t}else if (score>70) {\n\t\t\tSystem.out.println(\"Pleaase study more\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Good job for trying,but must study!\");\n\t\t}\n\t\t\n\t\t\n\t}else {\n\t\tSystem.out.println(\"You should always complete all assignments\");\n\t}\n\t\n\t}", "@PlanBody\n public boolean body(){\n ICenterService ser = agent.getComponentFeature\n (IRequiredServicesFeature.class).searchService(ICenterService.class,RequiredServiceInfo.SCOPE_GLOBAL).get();\n\n ser.collectBallot(voter).addResultListener(new IResultListener<Boolean>() {\n @Override\n public void exceptionOccurred(Exception exception) {\n exception.printStackTrace();\n System.out.println(exception);\n }\n @Override\n public void resultAvailable(Boolean result) {\n System.out.println(voter.getId()+ \" submit result: \"+result);\n }\n });\n return true;\n }", "public void buySellFood(boolean buy, Player customer) {\n if (buy && foodQuantity == 0) {\n GameController.errorMessageBox(\"Not enough Food in the store\");\n } else {\n if (buy) {\n if (customer.getMoney() >= foodCost) {\n foodQuantity--;\n customer.addSubMoney(-foodCost);\n customer.addSubFood(1);\n if (foodQuantity == 0) {\n foodCost = 30;\n } else {\n foodCost += 2;\n }\n } else {\n GameController.errorMessageBox(\"You do not have enough money for this item.\");\n }\n } else {\n if (customer.getFood() >= 1) {\n customer.addSubMoney(foodCost - 5);\n if (foodQuantity == 0) {\n foodCost = 30;\n } else {\n foodCost -= 2;\n }\n customer.addSubFood(-1);\n foodQuantity++;\n } else {\n GameController.errorMessageBox(\"You do not have any of this item to sell\");\n }\n }\n }\n }", "private boolean ItemStockCalculation(String item) {\n\t\tboolean state = false;\n\t\tif (item.equals(\"F\")) {\n\t\t\tstate = getSetUpMachine().getFork_stock() > 0 ? true : false;\n\t\t\tif (state) {\n\t\t\t\tint mainStock = getSetUpMachine().getStock_size();\n\t\t\t\tgetSetUpMachine().setStock_size(mainStock - 1);\n\n\t\t\t\tint stock = getSetUpMachine().getFork_stock();\n\n\t\t\t\tgetSetUpMachine().setFork_stock(stock - 1);\n\n\t\t\t}\n\t\t} else if (item.equals(\"N\")) {\n\t\t\tstate = getSetUpMachine().getNapkin_stock() > 0 ? true : false;\n\t\t\tif (state) {\n\t\t\t\tint stock = getSetUpMachine().getNapkin_stock();\n\t\t\t\tint mainStock = getSetUpMachine().getStock_size();\n\t\t\t\tgetSetUpMachine().setStock_size(mainStock - 1);\n\t\t\t\tgetSetUpMachine().setNapkin_stock(stock - 1);\n\t\t\t}\n\t\t} else if (item.equals(\"S\")) {\n\t\t\tstate = getSetUpMachine().getSpoon_stock() > 0 ? true : false;\n\t\t\tif (state) {\n\t\t\t\tint stock = getSetUpMachine().getSpoon_stock();\n\t\t\t\tint mainStock = getSetUpMachine().getStock_size();\n\t\t\t\tgetSetUpMachine().setStock_size(mainStock - 1);\n\t\t\t\tgetSetUpMachine().setSpoon_stock(stock - 1);\n\t\t\t}\n\t\t} else if (item.equals(\"K\")) {\n\t\t\tstate = getSetUpMachine().getKnife_stock() > 0 ? true : false;\n\t\t\tif (state) {\n\t\t\t\tint stock = getSetUpMachine().getKnife_stock();\n\t\t\t\tint mainStock = getSetUpMachine().getStock_size();\n\t\t\t\tgetSetUpMachine().setStock_size(mainStock - 1);\n\t\t\t\tgetSetUpMachine().setKnife_stock(stock - 1);\n\t\t\t}\n\t\t}\n\t\treturn state;\n\t}", "public static int ContShoppingOrCheckout(){\r\n int input = 0;\r\n boolean wrongNumber = false;//Boolean for error handling\r\n //Menu\r\n System.out.println(\"\\n1 Continue shopping\\n2 Check-out to collect items\");\r\n //Loop\r\n do { \r\n if(wrongNumber)System.out.println(\"Enter CORRECT number.\"); //Error if not a valid number or Exception\r\n wrongNumber = false;\r\n try {\r\n System.out.print(\"Make your choice: \");\r\n input = Vending_Machine.GetInput();\r\n System.out.println(\"\");\r\n if(1 > input || input > 2)wrongNumber = true;//Error handling nummeric input value\r\n }\r\n catch(Exception e){\r\n System.out.println(\"Enter a numeric value, try again\"); \r\n wrongNumber = true;//Error handling exception\r\n } \r\n } while (wrongNumber);//Will loop if wrong numeric value or exception on input\r\n return input;\r\n }", "public boolean Step(){\n\t\t\t\t\tboolean Result = true;\t\t\t\t\t\t// A vegso eredmeny: Stabil-e az aramkor\n\t\t\t\t\t_TEST stack = new _TEST();\t\t\t\t\t/* TEST */\n\t\t\t\t\tstack.PrintHeader(ID,\"\",\"true:boolean\");\t/* TEST */\n\t\t\t\t\tPreviousValue = Count();\t\t\t\t\t// Megnezzuk az elso futas erredmenyet\n\t\t\t\t\tinv0.Count();\t\t\t\t//feedback[0].Count(), elso ciklus\n\t\t\t\t\tPreviousValue = Count();\t//feedback 0 es 1 kozt magat frissiti\n\t\t\t\t\tinv0.Count();\t\t\t\t//feedback[0].Count(), masodik ciklus\n\t\t\t\t\tPreviousValue = Count();\t//frissiti magat. itt instabilitasi teszt jon a proto-ban\n\n\t\t\t\t\tstack.PrintTail(ID,\"\",Result + \":boolean\");\t/* TEST */\n\t\t\t\t\treturn Result;\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic boolean run() throws SQLException {\n\t\t\t\t\tString userName=\"\";\r\n\t\t\t\t\tString supplierName=\"\";\r\n\t\t\t\t\tMap<String, Object> variables = new HashMap<String, Object>();\r\n\t\t\t\t\tif (!StringUtil.isEmpty(fillupDate)) {\r\n\t\t\t\t\t\t// 根据userId去staff表里查出订单号\r\n\t\t\t\t\t\tRecord re = service.getOrderNumber(Integer.parseInt(userId));\r\n\t\t\t\t\t\tuserName=re.get(\"person_name\").toString();\r\n\t\t\t\t\t\tsupplierName=re.get(\"supplier_name\").toString();\r\n\t\t\t\t\t\tString orderNumber = re.getStr(\"order_num\");\r\n\t\t\t\t\t\tvariables.put(Constants.HR_STAFF_ATTENDANCE_FILLUP_DATE, fillupDate);\r\n\t\t\t\t\t\tvariables.put(Constants.HR_STAFF_ATTENDANCE_FILLUP_TIME, fillupTime);\r\n\t\t\t\t\t\tvariables.put(Constants.HR_STAFF_ATTENDANCE_CHECKINNUM, checkInNum);\r\n\t\t\t\t\t\tvariables.put(Constants.HR_STAFF_ATTENDANCE_ORDERNUM, orderNumber);\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tSysOrg sysOrg = SysOrg.dao.getUserOrg(createBy);\r\n\t\t\t\t\t\tsupplierName=sysOrg.getName();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//判断该订单是否已经终止\r\n\t\t\t\t\tRecord rec=service.queryOrderStatus(orderNum);\r\n\t\t\t\t\tif(rec!=null) {\r\n\t\t\t\t\t\tString orderSignStatus = rec.getStr(\"order_sign_status\");\r\n\t\t\t\t\t\tif(\"终止\".equals(orderSignStatus)) {\r\n\t\t\t\t\t\t\t renderError(\"该订单已终止!\");\r\n\t\t\t\t\t\t\t return false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\t\t ActReProcdef actReProcdef = ActReProcdef.dao.getProcdef(tableName);\r\n\t\t\t\t\t// 启动流程\r\n\t\t\t\t\tProcessInstance activitiInfo = tasksService.startUp(actReProcdef.getKey(),tasksService.obtainJsonObjectFormKey(actReProcdef.getId(),userName,supplierName,orderNum,variables),null);\r\n\t\t\t\t\t// 判断是订单工作确认还是补打卡申请\r\n\t\t\t\t\tif (Constants.HR_STAFF_ATTENDANCE.equals(tableName)) {\r\n\t\t\t\t\t\t//不能提交当月的\r\n\t\t\t\t\t\tCalendar calendar = new GregorianCalendar();\r\n\t\t\t\t\t\t int month = calendar.get(Calendar.MONTH)+1;\r\n\t\t\t\t\t\t int year = calendar.get(Calendar.YEAR);\r\n\t\t\t\t\t\t String yearsub = attendanceDate.substring(0, 4);\r\n\t\t\t\t\t\t String monthsub = attendanceDate.substring(5,7);\r\n\t\t\t\t\t\t if(year==Integer.parseInt(yearsub)&&month==Integer.parseInt(monthsub)) {\r\n\t\t\t\t\t\t\t renderError(\"订单工作量确认只能提交当月之前的!\");\r\n\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t /**\r\n\t\t\t\t\t\t * 每月工作量确认时,晚于“项目结束日期”(项目表单中的里程碑最晚日期)加上一个月的时间点之后的工作量不予确认(时间节点当天可确认),但在提交时应显示提示,文字为“工作量确认仅为项目实施日期内的工作投入。如需变更项目里程碑信息,请于项目信息列表中变更。”如项目实际已结项(即项目状态已改变),则超过“结项日期”加上一个月时间节点的工作量不予确认(时间节点当天可确认)\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\t Boolean bo=service.proStaffWork(orderNum,attendanceDate);\r\n\t\t\t\t\t\t if(!bo) {\r\n\t\t\t\t\t\t\t renderError(\"工作量确认仅为项目实施日期内的工作投入。如需变更项目里程碑信息,请于项目信息列表中变更。\"); \r\n\t\t\t\t\t\t }\r\n\t\t\r\n\t\t\t\t\t\t// 判断补打卡申请是否处理完,若没有,工作量确认不能提交\r\n\t\t\t\t\t\tList<HrStaffAttendance> statusList = service.getfillupStatus(orderNum,\r\n\t\t\t\t\t\t\t\tattendanceDate.substring(0, 7));\r\n\t\t\t\t\t\tfor (HrStaffAttendance hrStaffAttendance : statusList) {\r\n\t\t\t\t\t\t\t// 只要有审批没通过的均不能提交工作量确认\r\n\t\t\t\t\t\t\tif (Constants.HR_FILLUP_ATTENDANCE_STATUS_FILLUP1.equals(hrStaffAttendance.getStatus())\r\n\t\t\t\t\t\t\t\t\t|| Constants.HR_FILLUP_ATTENDANCE_STATUS_FILLUP2\r\n\t\t\t\t\t\t\t\t\t\t\t.equals(hrStaffAttendance.getStatus())) {\r\n\t\t\t\t\t\t\t\trenderError(\"有未完成的补打卡申请单\");\r\n\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//判断该订单是否存在转场流程\r\n\t\t\t\t\t\tList<Record> reList = service.getTransStatus(orderNum,attendanceDate.substring(0, 7));\r\n\t\t\t\t\t\tif(reList!=null) {\r\n\t\t\t\t\t\t\tfor (Record record : reList) {\r\n\t\t\t\t\t\t\t\tif(record!=null) {\r\n\t\t\t\t\t\t\t\t\tString str = record.getStr(\"status_type\");\r\n\t\t\t\t\t\t\t\t\tif(str.equals(\"1\")) {\r\n\t\t\t\t\t\t\t\t\t\trenderError(\"该订单内有未完成的转场人员\");\t\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// 订单工作量走的审批流\r\n\t\t\t\t\t\tfor (String id : userId.split(\",\")) {\r\n\t\t\t\t\t\t\t// 将id为user员工的 ins_id 改为相同的ins_id :activitiInfo.getProcessInstanceId();\r\n\t\t\t\t\t\t\tint i = service.updateInstId(Integer.parseInt(id), activitiInfo.getProcessInstanceId());\r\n\t\t\t\t\t\t\tif (i > 0) {\r\n\t\t\t\t\t\t\t\trenderSuccess(\"工作量确认审批申请:提交成功!\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// 补打卡走的审批流 ins_id 改为activitiInfo.getProcessInstanceId()\r\n\t\t\t\t\t\tif(!StringUtil.isEmpty(fillupDate)) {\r\n\t\t\t\t\t\t\tint j = service.updateFillupInstId(fillupDate.substring(0, 7), Integer.parseInt(userId),\r\n\t\t\t\t\t\t\t\t\tactivitiInfo.getProcessInstanceId());\r\n\t\t\t\t\t\t\tif (j > 0) {\r\n\t\t\t\t\t\t\t\trenderSuccess(\"补打卡审批申请:提交成功!\");\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\tKv orderParam = Kv.by(\"number\", orderNum);\r\n\t\t\t\t\tSqlPara orderSqlParam = Db.getSqlPara(\"orderNum.getOrderNum\", orderParam);\r\n\t\t\t\t\tRecord orderRecords = Db.findFirst(orderSqlParam);\r\n\t\t\t\t\tif (orderRecords == null) {\r\n\t\t\t\t\t\trenderError(\"请核对改订单对应的行方负责人是否存在!\");\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tMap<String, Object> orderRecordMap = orderRecords.getColumns();\r\n\t\t\t\t\tString username = orderRecordMap.get(\"username\").toString();\r\n\t\t\t\t\tTask task = taskService.createTaskQuery().processInstanceId(activitiInfo.getProcessInstanceId())\r\n\t\t\t\t\t\t\t.singleResult();\r\n\t\t\t\t\tActivitiUtil.setUserTaskAssignee(task.getId(), username);\r\n\t\t\t\t\ttasksService.saveHistorical(activitiInfo.getProcessInstanceId(), null);\r\n\t\t\t\t\t// 发送邮件\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\ttasksService.taskSendEmail(activitiInfo.getProcessInstanceId(), \"1\");\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\tlogger.error(\"Exception: \", e);\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}", "@Override\n\t\t\tpublic void mainBuyPro() {\n\t\t\t\tif (iap_is_ok && mHelper != null) {\n\t\t\t\t\t\n\t\t\t\t\t String payload = \"\";\n\t\t\t\t\t mHelper.launchPurchaseFlow(MainActivity.this, Paid_Id_VF, RC_REQUEST, mPurchaseFinishedListener);\n\t\t\t\t}else{\n\t\t\t\t}\n\t\t\t}", "public void submitOrder(View view) {\n EditText nameField = findViewById(R.id.userName);\n String name = nameField.getText().toString();\n\n CheckBox cramBox =findViewById(R.id.cream);\n boolean hascheamBox= cramBox.isChecked();\n\n CheckBox chocoBox=findViewById(R.id.chocolate);\n boolean haschoco=chocoBox.isChecked();\n\n int price = calculatePrice(hascheamBox,haschoco);\n String priceMessage =createOrderSummery(name, price, hascheamBox,haschoco);\n\n Intent intent = new Intent(Intent.ACTION_SENDTO);\n intent.setData(Uri.parse(\"mailto:\")); // only email apps should handle this\n intent.putExtra(Intent.EXTRA_EMAIL, email);\n intent.putExtra(Intent.EXTRA_SUBJECT, \"Coffee Order for \"+name);\n intent.putExtra(Intent.EXTRA_TEXT, priceMessage);\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n\n displayMessage(priceMessage);\n\n\n\n\n\n }", "private boolean tryPay() {\n return new Random().nextInt(100) + 1 <= 50;\n }", "@Override\n\tpublic void sendBuyRequest() {\n\t\ttry {\n\t\t\tString result = \"\";\n\t\t\tif (this.servType.equals(SERVICE_TYPE_SOAP)){\n\t\t\t\tresult = server.checkOutCart(clientId);\n\t\t\t} else {\n\t\t\t\tWebResource checkOutService = service.path(URI_CHECKOUT).path(String.valueOf(clientId));\n\t\t\t\tresult = checkOutService.accept(MediaType.TEXT_XML).get(String.class);\n\t\t\t}\n\t\t\n\t\t\tStatusMessageObject status = XMLParser.parseStatusMessage(result);\n\t\t\tif (status.getStatusCode() == 1){\n\t\t\t\tgui.setupCart(null);\t\n\t\t\t}\n\t\t\tsendItemListRequest();\n\t\t\tgui.setStatus(status.getMessage());\n\t\t\tsetOKDialog(\"Check out confirmation!\", status.getMessage());\n\t\t} catch (ParserConfigurationException | SAXException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (ClientHandlerException ex){\n\t\t\tex.printStackTrace();\n\t\t\tsetOKDialog(\"Error\", \"The RESTFul server is not responding!!\");\n\t\t} catch (WebServiceException ex){\n\t\t\tex.printStackTrace();\n\t\t\tsetOKDialog(\"Error\", \"The SOAP-RPC server is not responding!!\");\n\t\t}\n\t}", "boolean hasSingleBet();", "public void submitOrder (View view){\n CheckBox check = (CheckBox) findViewById(R.id.check_whippedCream);\n CheckBox checkChocolate = (CheckBox) findViewById(R.id.check_chocolate);\n EditText nameInput = (EditText) findViewById(R.id.input_name);\n boolean isChecked = check.isChecked();\n boolean isChecked_chocolate = checkChocolate.isChecked();\n String inputName = String.valueOf(nameInput.getText());\n String toShow = createOrderSummary(quantity, isChecked, isChecked_chocolate, inputName);\n\n Intent intent = new Intent(Intent.ACTION_SEND);\n intent.setType(\"*/*\");\n intent.putExtra(Intent.EXTRA_SUBJECT, \"Your Bill of Tanishq's Cafe\");\n intent.putExtra(Intent.EXTRA_TEXT, toShow);\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n\n }", "private boolean checkExecution() {\n if (!checkPhoneStatusOK()) {\n return false;\n }\n if (!checkBatteryLevelOK()) {\n return false;\n }\n return true;\n }", "public static void main(String[] args) {\n \n\t\tScanner scan=new Scanner(System.in) ;\n\t\t\tSystem.out.println(\"Are you thirsty?\");\n\t\t\tboolean bl=scan.nextBoolean();\n\t\t\tSystem.out.println(\"Are you sleepy?\");\n\t\t\tboolean sl=scan.nextBoolean();\n\t\t String drink1 =\"Coffee\";\n\t\t String drink2=\"Water\";\n\t\t String drink3=\"Tea\";\n\t\t String k=\"Nothing\";\n\t\t if(bl==true && sl==false) {\n\t\t\t System.out.println(\"Looks like you need \" + drink2);\n\t\t }else if(bl==true && sl==true) {\n\t\t\t System.out.println(\"Looks like you need \" +drink1);\n\t\t }else if(bl==false && sl==true) {\n\t\t\t System.out.println(\"Looks like you need \"+ drink3);\n\t\t }else {\n\t\t\t System.out.println(\"Looks like you need \" +k);\n\t\t }\n\t\t}", "private void issecond() {\n\n\t\t\tString tn = \"\";\n\t\t\tif (mytn == null || ((String) mytn).length() == 0) {\n\t\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\t\t\tbuilder.setTitle(\"错误提示\");\n\t\t\t\tbuilder.setMessage(\"网络连接失败,请重试!\");\n\t\t\t\tbuilder.setNegativeButton(\"确定\",\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tbuilder.create().show();\n\t\t\t} else {\n\t\t\t\ttn = mytn;\n\t\t\t\t/************************************************* \n\t\t\t\t * \n\t\t\t\t * 步骤2:通过银联工具类启动支付插件 \n\t\t\t\t * \n\t\t\t\t ************************************************/\n\t\t\t\tdoStartUnionPayPlugin(this, tn, mMode);\n\t\t\t}\n\n\n\n\n\t\t}", "public void proceedToCheckOut()\n\t{\n\t\tproceedtocheckoutpage = productpage.addToCartBtnClick();\n\t}", "private void makeAnOffer(User user, Scanner sc) {\n\t\tboolean run = true;\n\t\tdo {\n\t\t\tlog.info(\"Make an Offer on an Item\\n\");\n\n\t\t\tMap<String, Object> makeOfferArgs = new HashMap<>();\n\n\t\t\tlog.info(\"\\nType in the Item ID:\\n\");\n\t\t\tInteger item_id = Integer.parseInt(sc.nextLine());\n\t\t\tItem item = cService.getItemById(item_id);\n\t\t\tmakeOfferArgs.put(\"item\", item);\n\n\t\t\t// this will further complicate the mathematics of the services\n\t\t\t// ignore this for now\n\t\t\tmakeOfferArgs.put(\"quantity\", 1);\n\n\t\t\tlog.info(\"\\nHow much will you offer for this item?:\\n\");\n\t\t\tDouble offer_price = Double.parseDouble(sc.nextLine());\n\t\t\tmakeOfferArgs.put(\"offer_price\", offer_price);\n\n\t\t\tlog.info(\"\\nType in the number of payments you will make:\\n\");\n\t\t\tInteger installments = Integer.parseInt(sc.nextLine());\n\t\t\tmakeOfferArgs.put(\"installments\", installments);\n\t\t\tmakeOfferArgs.put(\"user\", user);\n\n\t\t\tOffer offer = cService.makeOffer(makeOfferArgs);\n\t\t\tlog.info(\"\\nThe following is the result:\\n\");\n\t\t\tlog.info(\"\t\t\" + offer + \"\\n\");\n\n\t\t\tlog.info(\"Thanks for your offer!:\");\n\t\t\tlog.info(\"\t\tPress 1 to make another offer\");\n\t\t\tlog.info(\"\t\tPress anything else to go BACK TO THE STORE\");\n\t\t\tString choice = sc.nextLine();\n\t\t\tswitch (choice) {\n\t\t\tcase \"1\":\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tlog.info(\"\\nGoing BACK TO THE STORE\\n\");\n\t\t\t\trun = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} while (run);\n\n\t}", "boolean hasCampaignprice();", "public static void main(String[] args) {\n String answer;\n do {\n answer = getWishItem();\n if (!answer.equals(\"exit\")) {\n System.out.println(\"You said: \" + answer);\n }\n } while (!answer.equals(\"exit\"));\n }", "public static void main (String [] args) {\n Scanner input = new Scanner(System.in);\n \n // Ask the user for their age\n System.err.print(\"How old are you? \");\n int age = input.nextInt();\n \n // Ask the user if they have a coupon\n System.err.print(\"Do you have a coupon? [true/false] \");\n \n boolean coupon = input.nextBoolean();\n \n // Print the cost of a movie ticket\n if (age <= 13 || age >= 65) {\n \tif (coupon == true) { \n \t\tSystem.out.println(\"Your ticket costs $9.5.\"); \t\n \t}\n \telse {\n \t\tSystem.out.println(\"Your ticket costs $11.5.\");\n \t}\n }\n if ((age > 13 && age < 65) && coupon == true) {\n \tSystem.out.println(\"Your ticket costs $12.5.\");\n }\n if ((age > 13 && age < 65) && coupon == false) {\n \tSystem.out.println(\"Your ticket costs $14.5.\");\n }\n }", "public static boolean newOrder(){\n // Create a Scanner object\n Scanner input = new Scanner(System.in);\n\n boolean Continue = false;\n int x = 0;\n //Ask user if they would like to order\n do {\n System.out.print(\"\\nWould you like to start a new order (y or n): \");\n\n String answer = input.nextLine();\n switch (answer) {\n case \"Y\":\n case \"y\":\n case \"Yes\":\n case \"yes\":\n Continue = true;\n x=0;\n break;\n case \"N\":\n case \"n\":\n case \"No\":\n case \"no\":\n Continue = false;\n x=0;\n break;\n default:\n System.out.println(\"invalid choice\");\n x++;\n break;\n }\n } while (x>0);\n return Continue;\n }", "private static void actOnUsersChoice(MenuOption option) {\n switch (option) {\n case VIEW_LIST_OF_ALL_PRODUCTS:\n viewListOfProductsInStore();\n System.out.println(\"Store has \" + productRepository.count() + \" products.\");\n break;\n case CHECK_IF_PRODUCT_EXISTS_IN_STORE:\n System.out.println(ENTER_SEARCHED_PRODUCT_NAME);\n System.out.println((isProductAvailable())\n ? SEARCHED_PRODUCT_IS_AVAILABLE\n : ERROR_NO_SUCH_PRODUCT_AVAILABLE);\n break;\n case ADD_PRODUCT_TO_ORDER:\n addProductToOrder();\n break;\n case VIEW_ORDER_ITEMS:\n viewOrderItems(order.getOrderItems());\n break;\n case REMOVE_ITEM_FROM_ORDER:\n removeItemFromOrder();\n break;\n case ADD_PRODUCT_TO_STORE:\n if (userIsAdmin) {\n addProductToStore();\n }\n break;\n case EDIT_PRODUCT_IN_STORE:\n if (userIsAdmin) {\n System.out.println(ENTER_PRODUCT_NAME_TO_BE_UPDATED);\n Optional<Product> productToBeModified = getProductByName();\n\n if (productToBeModified.isPresent()) {\n switch (productToBeModified.get().getType()) {\n\n case FOOD:\n Optional<Food> food = InputManager.DataWrapper.createFoodFromInput();\n if (food.isPresent()) {\n Food newFood = food.get();\n productRepository.update(productToBeModified.get().getName(), newFood);\n }\n break;\n\n case DRINK:\n Optional<Drink> drink = InputManager.DataWrapper.createDrinkFromInput();\n if (drink.isPresent()) {\n Drink newDrink = drink.get();\n productRepository.update(productToBeModified.get().getName(), newDrink);\n }\n break;\n }\n } else {\n System.err.println(ERROR_NO_SUCH_PRODUCT_AVAILABLE);\n }\n }\n break;\n case REMOVE_PRODUCT_FROM_STORE:\n if (userIsAdmin) {\n tryToDeleteProduct();\n }\n break;\n case RELOG:\n userIsAdmin = false;\n start();\n break;\n case EXIT:\n onExit();\n break;\n default:\n break;\n }\n }", "public void sellGoodsForStore(HashMap<Goods, Integer> interestedGoods) {\n\t\tArrayList<Goods> listInterestedGoods = accessingGoods(interestedGoods);\n\t\t\n\t\tboolean state1 = false;\n\t\twhile(state1 == false) {\n\t\t\tSystem.out.println(\"(99) Cancel sell\");\n\t\t\tprintGoods(interestedGoods, \"Goods that store want to buy: \");\n\t\t\tSystem.out.println(\"Select the goods you want to sell\");\n\t\t\tint selectedAction = scanner.nextInt();\n\t\t\ttry { \n\t\t\t\tif (selectedAction == 99) {\n\t\t\t\t\tstate1 = true;\n\t\t\t\t\tgame.goToStore();\n\t\t\t\t}\n\t\t\t\telse if (selectedAction <= interestedGoods.size() && selectedAction > 0) {\n\t\t\t\t\tGoods selectedGoods = listInterestedGoods.get(selectedAction - 1);\n\t\t\t\t\t\n\t\t\t\t\tif (game.checkAvailability(selectedGoods)){\n\t\t\t\t\t\tSystem.out.println(\"You have \" + selectedGoods.getQuantityOwned() +\" \"+ selectedGoods.getName() + \" stored in your ship!\");\n\t\t\t\t\t\tint goodsPrice = interestedGoods.get(selectedGoods);\n\t\t\t\t\t\tboolean state2 = false;\n\t\t\t\t\t\twhile(state2 == false) {\n\t\t\t\t\t\t\tSystem.out.println(\"How many do you want to sell?\" );\n\t\t\t\t\t\t\tint quantity = scanner.nextInt();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttry { \n\t\t\t\t\t\t\t\tif (game.checkQuantity(quantity, selectedGoods)) {\n\t\t\t\t\t\t\t\tstate2 = true;\n\t\t\t\t\t\t\t\tgame.sellGoods(selectedGoods, quantity, goodsPrice);\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\tSystem.out.println(\"You don't have that many quanity of \" + selectedGoods.getName());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"You have to input an integer!\");\n\t\t\t\t\t\t\t\tscanner.nextLine();\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\t\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"You don't have the item!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Please choose from actions above\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(INPUT_REQUIREMENTS);\n\t\t\t\tscanner.nextLine();\n\t\t\t}\n\t\t}\t\n\t}", "private void checkout() {\n\t\tif (!CartController.getInstance().isCartEmpty()) {\n\t\t\tSystem.out.println(\"Enter your Name :\");\n\t\t\tscan.nextLine();\n\t\t\tCartController.getInstance().generateBill(scan.nextLine());\n\t\t} else {\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"\\n--------------No Product Available in Cart for Checkout-----------------\\n\");\n\t\t}\n\t}", "public static void main(String[] args) {\n\n\t\t\n\t\tdouble money=5;\t\t\t\t\n\t\tdouble iceCream=5.59;\n\n\t\tif (money<= iceCream); {\n System.out.println(\"I am going to buy iceCream\");\n }else {\n\t\tSystem.out.println(\"I cant buy iceCream\");\n\t\n\t\t}\n\t\t}", "boolean hasShirt();", "private boolean isAvailable(String ten, int soTien) {\n boolean result = true;\n if(ten.equals(\"\")){\n notifyError(txtfTenChiPhi);\n result = false;\n }\n if(soTien <= 0){\n notifyError(txtfSoTien,\"Số tiền phải dương!\");\n result = false;\n } \n return result;\n }", "public void accomplishGoal() {\r\n isAccomplished = true;\r\n }", "public boolean execute() {\n if (sc != null && sqlMngr != null) {\n System.out.println(\"\");\n System.out.println(\"***************************\");\n System.out.println(\"******ACCESS GRANTED*******\");\n System.out.println(\"***************************\");\n System.out.println(\"\");\n\n System.out.println(\"Welcome to MyBNB!\");\n System.out.println(\n \"In order to use the system, you must first log into an account.\");\n\n String input = \"\";\n int choice = -1;\n\n boolean loginComplete = false;\n while (!(loginComplete)) {\n loginMenu();\n input = sc.nextLine();\n try {\n choice = Integer.parseInt(input);\n } catch (NumberFormatException exception) {\n System.out.println(\"Invalid option\\n\");\n continue;\n }\n\n switch (choice) {\n case 0:\n System.out.println(\"Goodbye!\");\n System.exit(0);\n break;\n case 1:\n loginComplete = login();\n break;\n case 2:\n loginComplete = signup();\n break;\n default:\n System.out.println(\"Invalid option\\n\");\n break;\n }\n }\n\n if (user instanceof Host) {\n HostMenu.hostMenu((Host) user);\n return true;\n } else {\n RenterMenu.renterMenu((Renter) user);\n return true;\n }\n } else {\n System.out.println(\"\");\n System.out.println(\"Connection could not been established! Bye!\");\n System.out.println(\"\");\n return false;\n }\n }", "public static void main(String[] args)\n {\n Scanner input2 = new Scanner(System.in);\n boolean cond = true;\n while (cond)\n {\n calculateTips();\n System.out.print(\"Another bill? (y/n)\\n\");\n String answer = input2.nextLine();\n \n if (new String(answer).equals(\"n\") || new String(answer).equals(\"N\"))\n {\n System.out.print(\"See ya later. \");\n cond = false;\n }\n else if (answer != \"y\" || answer != \"Y\")\n {\n } \n }\n }", "boolean isOnlineEvaluation();", "public void submitOrder(View view) {\n EditText nameText = (EditText) findViewById(R.id.edt_Name);\n String name = nameText.getText().toString();\n\n CheckBox whippedCream = (CheckBox) findViewById(R.id.chx_WhippedCream);\n boolean cream = whippedCream.isChecked();\n\n CheckBox hasChocolate = (CheckBox) findViewById(R.id.chx_Chocolate);\n boolean chocolate = hasChocolate.isChecked();\n\n int price = calculatePrice(cream, chocolate);\n displayMessage(createOrderSummary(price, cream, chocolate, name));\n sendReceipt(name, createOrderSummary(price,cream,chocolate,name));\n }", "private boolean askCustom(){\n String title = \"Custom mode?\";\n String message = \"Now the game mode is classical mode. \\nDo you wish to play custom pieces?\";\n ConfirmBox.display(title, message);\n return ConfirmBox.isConfirmed;\n }", "boolean hasExchangeprice();", "boolean isMet();", "public static void main(String[] args) {\n\n\t\tString drink = \"\";\n\t\tBoolean a;\n\t\tBoolean b;\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"Are you thirsty?\");\n\n\t\ta = scan.nextBoolean();\n\n\t\tSystem.out.println(\"Are you sleepy?\");\n\t\tb = scan.nextBoolean();\n\n\t\tif (a && !b) {\n\t\t\tdrink = \"Water\";\n\n\t\t} else if (a && b) {\n\t\t\tdrink = \"Coffee\";\n\n\t\t} else if (!a && b) {\n\t\t\tdrink = \"Tea\";\n\n\t\t} else {\n\t\t\tdrink = \"Unknown\";\n\n\t\t}\n\t\tSystem.out.println(\"Looks like you need drink \" + drink);\n\t}", "public static void main(String[] args) {\n\n\tboolean subject;\n\tScanner scan=new Scanner (System.in);\n\t\n\tSystem.out.println(\" Is it weekend? \");\n boolean input=scan.nextBoolean();\n \n if (input){\n System.out.println(\"Today you will be learning Java\");\n }else {\n \tSystem.out.println(\"Today you will be learning Manual testing\");\n }\n\t\n\t}" ]
[ "0.63566536", "0.608949", "0.599291", "0.59732264", "0.5883889", "0.58622456", "0.58468986", "0.5789756", "0.57227975", "0.568963", "0.5663494", "0.56574404", "0.56102395", "0.5598368", "0.559626", "0.5565171", "0.5558359", "0.5532332", "0.54748774", "0.5468284", "0.54659295", "0.54455227", "0.5443008", "0.54349434", "0.54239976", "0.54135156", "0.54108316", "0.54088753", "0.5401358", "0.539892", "0.53928685", "0.53900653", "0.53851837", "0.5383573", "0.5377917", "0.5374606", "0.5361929", "0.53574467", "0.5345385", "0.5333811", "0.53328174", "0.5327128", "0.5311511", "0.530323", "0.5300669", "0.5296716", "0.5292133", "0.5277524", "0.5269166", "0.5262936", "0.52595174", "0.525245", "0.524655", "0.5240903", "0.5234244", "0.522859", "0.5227629", "0.5222673", "0.52221453", "0.52099776", "0.5205072", "0.5203929", "0.52009505", "0.51978135", "0.5183264", "0.5175818", "0.5175404", "0.51714665", "0.51672745", "0.5165446", "0.51648605", "0.5164581", "0.51643884", "0.5157172", "0.51561075", "0.5153453", "0.51497895", "0.51450044", "0.5142703", "0.51402956", "0.51374066", "0.5137324", "0.51336735", "0.5128849", "0.51287824", "0.5126007", "0.51255214", "0.51253146", "0.5123193", "0.5118177", "0.5115542", "0.5109838", "0.50971055", "0.50947803", "0.50849134", "0.50831985", "0.5080454", "0.50717676", "0.50672305", "0.50659424" ]
0.749418
0
if content root itself is switched, ignore
private void checkSwitchedFile(final FilePath filePath, final ChangelistBuilder builder, final VirtualFile dir, final Entry entry) { if (!myVcsManager.isFileInContent(dir)) { return; } final String dirTag = myEntriesManager.getCvsInfoFor(dir).getStickyTag(); final String dirStickyInfo = getStickyInfo(dirTag); if (entry != null && !Objects.equals(entry.getStickyInformation(), dirStickyInfo)) { final VirtualFile file = filePath.getVirtualFile(); if (file != null) { if (entry.getStickyTag() != null) { builder.processSwitchedFile(file, CvsBundle.message("switched.tag.format", entry.getStickyTag()), false); } else if (entry.getStickyDate() != null) { builder.processSwitchedFile(file, CvsBundle.message("switched.date.format", entry.getStickyDate()), false); } else if (entry.getStickyRevision() != null) { builder.processSwitchedFile(file, CvsBundle.message("switched.revision.format", entry.getStickyRevision()), false); } else { builder.processSwitchedFile(file, CvsUtil.HEAD, false); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean shouldContinueSwitchedRootFound() {\n return false;\n }", "protected boolean shouldIgnoreContent() {\n return empty;\n }", "public void ignoreChildren() {\r\n this.isIgnoreChildren = true;\r\n }", "@Override\n\tpublic boolean isRoot() {\n\t\treturn false;\n\t}", "private void switchToNoContentView() {\n no_content.setVisibility(View.VISIBLE);\n mRecyclerView.setVisibility(View.GONE);\n }", "default boolean visitContent() {\n\t\treturn true;\n\t}", "@Override\n protected boolean shouldVisitSubtreeOfFullMatchedNode(IMNode node) {\n return (node.getSchemaTemplateId() == NON_TEMPLATE)\n && super.shouldVisitSubtreeOfFullMatchedNode(node);\n }", "@Override\n protected boolean shouldVisitSubtreeOfFullMatchedNode(IMNode node) {\n return (node.getSchemaTemplateId() == NON_TEMPLATE)\n && super.shouldVisitSubtreeOfFullMatchedNode(node);\n }", "@Override\n protected boolean shouldVisitSubtreeOfInternalMatchedNode(IMNode node) {\n return (node.getSchemaTemplateId() == NON_TEMPLATE)\n && super.shouldVisitSubtreeOfFullMatchedNode(node);\n }", "@Override\n protected boolean shouldVisitSubtreeOfInternalMatchedNode(IMNode node) {\n return (node.getSchemaTemplateId() == NON_TEMPLATE)\n && super.shouldVisitSubtreeOfFullMatchedNode(node);\n }", "private void removeClutterAroundMainContent()\r\n \t{\n \r\n \t\tNodes mainContent = xPathQuery(XPath.NON_STANDARD_MAIN_CONTENT.query);\r\n \t\tif (mainContent.size() > 0)\r\n \t\t\thasStandardLayout = false;\r\n \t\telse {\r\n \t\t\tmainContent = xPathQuery(XPath.MAIN_CONTENT_1.query);\r\n \t\t\tif (mainContent.size() == 0)\r\n \t\t\t\tmainContent = xPathQuery(XPath.MAIN_CONTENT_2.query);\r\n \t\t}\r\n \t\tdeleteNodes(XPath.BODY_NODES.query);\r\n \t\tmoveNodesTo(mainContent, bodyTag);\r\n \t}", "public boolean isRoot() { return getAncestorCount()<2; }", "@Override\n\tpublic boolean hasContent() {\n\t\treturn false;\n\t}", "protected final boolean isRoot() {\n return _metaData.isRoot(this);\n }", "protected void checkRoot(){\n if (this.isEmpty() && this.root != null){\n this.root.setElement(null); //\n }\n }", "private void switchToContentView() {\n no_content.setVisibility(View.GONE);\n mRecyclerView.setVisibility(View.VISIBLE);\n }", "protected final boolean isRootNode() {\n return isRootNode;\n }", "private static boolean visitModuleContentEntries(ModuleRootModel rootModel, RootVisitor visitor) {\n for (ContentEntry entry : rootModel.getContentEntries()) {\n VirtualFile rootFile = entry.getFile();\n\n if (rootFile != null && !visitor.visitRoot(rootFile, null, null, true)) return false;\n for (VirtualFile folder : entry.getSourceFolderFiles()) {\n if (!visitor.visitRoot(folder, rootModel.getModule(), null, true)) return false;\n }\n }\n return true;\n }", "@Override\n\tprotected void UnloadContent()\n\t{\n\t\t// TODO: Unload any non ContentManager content here\n\t}", "public boolean isRootContextNode();", "public void testRootIsHidden() throws Exception\n {\n VFSContext context = getVFSContext(\"simple\");\n VirtualFileHandler root = context.getRoot();\n assertFalse(root.isHidden());\n }", "public ContentHandler getContentHandler()\n {\n return (contentHandler == base) ? null : contentHandler;\n }", "private Node caseNoChildren(Node deleteThis) {\r\n\r\n Node parent = deleteThis.getParent();\r\n\r\n if (parent == null) {\r\n this.root = null; // Kyseessä on juuri\r\n return deleteThis;\r\n }\r\n if (deleteThis == parent.getLeft()) {\r\n parent.setLeft(null);\r\n } else {\r\n parent.setRight(null);\r\n }\r\n return deleteThis;\r\n }", "public boolean isRoot() {\n return !hasParent();\n }", "boolean isRoot()\n {\n return this.parent == null;\n }", "public boolean removeFromRoot() {\n Views.removeFromParent(this);\n setVisibility(8);\n return true;\n }", "public void defaultContent() {\n\t\tgetter().switchTo().defaultContent();\r\n\t}", "public boolean isRoot() {\n\t\treturn pathFragments.isEmpty();\n\t}", "public boolean isRoot() {\r\n return (_parent == null);\r\n }", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "public abstract boolean isInWidgetTree();", "protected boolean isRoot(BTNode <E> v){\n\t\treturn (v.parent() == null); \n }", "public boolean isOnRootFragment() {\n return mState.fragmentTagStack.size() == mConfig.minStackSize;\n }", "@Test\r\n public void testShowRootIndexAtRootOff() {\r\n getView().setShowRoot(true);\r\n getSelectionModel().select(0);\r\n assertEquals(\"sanity: root selected\", getRoot(), getSelectedItem());\r\n getView().setShowRoot(false);\r\n assertEquals(\"selection moved to first child of hidden root\", 0, getSelectedIndex());\r\n }", "@Override\n protected void doBeforeSetContent() {\n \tsuper.doBeforeSetContent();\n \trequestWindowFeature(Window.FEATURE_NO_TITLE);\n }", "public boolean isRoot() {\n return isIndex() && parts.length == 0;\n }", "@Override\n protected void onFinishInflate() {\n mRootView = getChildAt(0);\n super.onFinishInflate();\n }", "@Test\r\n public void testShowRootIndexAtFirstChildOff() {\r\n getView().setShowRoot(true);\r\n getSelectionModel().select(1);\r\n getView().setShowRoot(false);\r\n assertEquals(\"selection moved to first child of hidden root\", 0, getSelectedIndex());\r\n }", "@java.lang.Override\n public boolean hasContent() {\n return content_ != null;\n }", "private TreeNode getOnlyChild() {\n return templateRoot.getChildren().get(0);\n }", "protected void refreshRootLayout() {\n this.rootLayout.setVisible(true);\n addStyleName(\"done\");\n rootLayout.addComponent(contentPreview);\n rootLayout.addComponent(contentDetail);\n }", "public boolean isRoot(){\n\t\treturn bound.isRoot();\n\t}", "public boolean isContentType()\n {\n return !hasChanges;\n }", "@Test\r\n public void testShowRootItemAtRootOff() {\r\n getView().setShowRoot(true);\r\n getSelectionModel().select(0);\r\n assertEquals(\"sanity: root selected\", getRoot(), getSelectedItem());\r\n getView().setShowRoot(false);\r\n assertEquals(\"selection moved to first child of hidden root\", \r\n getRootChildren().get(0), getSelectedItem());\r\n }", "default boolean isRoot() {\n if (isEmpty()){\n return false;\n }\n\n TreeNode treeNode = getTreeNode();\n return treeNode.getLeftValue() == 1;\n }", "void leftView() \n\t\t{ \n\t\t\tleftViewUtil(root, 1); \n\t\t}", "public void detachFromRoot() {\n final ViewGroup contentView = getActivityContentView();\n\n if (contentView.equals(getParent())) {\n contentView.removeView(this);\n contentView.getChildAt(0).setVisibility(View.VISIBLE);\n contentView.requestLayout();\n contentView.invalidate();\n }\n }", "public boolean isRoot()\r\n\t{\r\n\t\treturn (m_parent == null);\r\n\t}", "protected final boolean isLeaf() {\n return (getChildIds().isEmpty());\n }", "public boolean empty() {\n if(root==EXT_NODE) {\r\n \treturn true;\r\n }\r\n return false;\r\n }", "public boolean isChild(){\n return false;\n }", "@Override\n\tpublic boolean allowsTwoChildren() {\n\t\treturn false;\n\t}", "public boolean isOverrideProjectRootDirectory() {\r\n\t\tif (workspaceRootOverrideButton == null\r\n\t\t\t\t|| !workspaceRootOverrideButton.isEnabled())\r\n\t\t\treturn false;\r\n\t\treturn workspaceRootOverrideButton.getSelection();\r\n\t}", "public boolean checkRoot() {\n\t\t\treturn (this.getParent().getHeight() == -1);\n\t\t}", "public void testAll() {\n System.out.println(\"testAll\");\n InnerTreeContentHandler handler = new InnerTreeContentHandler();\n assertNull(handler.getType());\n assertNull(handler.getContent());\n handler.setContent(\"one\");\n assertEquals(\"one\", handler.getContent());\n IContentWidget w = new ContentHandlerWidget();\n handler = new InnerTreeContentHandler(w);\n assertEquals(w, handler.getWidget());\n w.setContent(\"one\");\n assertEquals(\"one\", handler.getContent());\n }", "@Test\r\n public void testShowRootIndexAtRootAndFirstChildOff() {\r\n if (!multipleMode) return;\r\n getView().setShowRoot(true);\r\n getSelectionModel().selectIndices(0, 1);\r\n getView().setShowRoot(false);\r\n assertEquals(1, getSelectedIndices().size());\r\n assertEquals(\"selection moved to first child of hidden root\", 0, getSelectedIndex());\r\n }", "@Override\n protected void setChildrenEmptyFlags() {\n this.setIsRutaCollectionEmpty();\n }", "public boolean isRealNode()\r\n\t\t{\r\n\t\t\tif (this.key == -1)\r\n\t\t\t\treturn false;\r\n\t\t\treturn true; \r\n\t\t}", "public Boolean isRootNode();", "public T caseRoot(Root object) {\r\n\t\treturn null;\r\n\t}", "boolean isTopLevel();", "@Test\r\n public void testShowRootItemAtIndexAtRootOff() {\r\n getView().setShowRoot(true);\r\n int index = 0;\r\n getSelectionModel().select(index);\r\n assertEquals(getSelectedItem(), getView().getTreeItem(getSelectedIndex()));\r\n getView().setShowRoot(false);\r\n assertEquals(getSelectedItem(), getView().getTreeItem(getSelectedIndex()));\r\n }", "private boolean isInnerNode(WAVLNode x) {\n \t\tif(x.left!=EXT_NODE&&x.right!=EXT_NODE) {\r\n \t\t\treturn true;\r\n \t\t}\r\n \t\treturn false;\r\n \t}", "private boolean isUnderRoot(Node node) {\n while (node != null) {\n if (node.equals(rootContext)) {\n return true;\n }\n\n node = node.getParentNode();\n }\n\n return false;\n }", "private boolean isCurrent(){\n return (getPageTitle().size() > 0);\n }", "protected void beforeParentInit() {\n // by default do nothing\n }", "@Test @Ignore\r\n public void testShowRootNotification() {\r\n TreeModificationReport report = new TreeModificationReport(getView().getRoot());\r\n getView().setShowRoot(true);\r\n assertEquals(1, report.getEventCount());\r\n }", "public void setIsRoot(boolean value)\n\t{\n\t\tisRoot = value;\n\t}", "protected boolean isOnSameScreenAsChildren() {\n return true;\n }", "@Override\n public void baseSetContentView() {\n View layout = View.inflate(this,\n R.layout.ac_ext_sharedfilesd_grouphome, mContentLayout);\n // mContentLayout.addView(layout);\n intent1 = getIntent();\n context = this;\n\n }", "void leftView()\n {\n leftViewUtil(root, 1);\n }", "private boolean isLeaf()\r\n\t\t{\r\n\t\t\treturn getLeftChild() == null && getRightChild() == null;\r\n\t\t}", "public CmsLayoutXmlContentHandler() {\n\n super();\n }", "protected void defaultHandle(TreeNode changedNode) {\n\t\t}", "boolean ignoreInner();", "@Override public boolean selectAutomaticallyInTreeMenu() {\n return infoPanel == null;\n }", "@Override\n public boolean currentHasChildren() {\n return ! ((FxContainerNode) currentNode()).isEmpty();\n }", "@Override\n public boolean currentHasChildren() {\n return ! ((FxContainerNode) currentNode()).isEmpty();\n }", "private HtmlElement getRoot()\n\t{\n\t\treturn getBaseRootElement( ROOT_BY );\n\t}", "public void startContent() throws XPathException {\n if (activeDepth > 0) {\n super.startContent();\n } else if (matched) {\n activeDepth = 1;\n super.startContent();\n }\n }", "@Override\n public boolean isEmpty() {\n return root == null;\n }", "@Override\r\n\tpublic boolean isHandled() {\n\t\treturn true;\r\n\t}", "public boolean isRootVisible()\n {\n return rootVisible;\n }", "public boolean isRootVisible()\n {\n return rootVisible;\n }", "protected abstract Widget getRootWidget();", "@Test\r\n public void testShowRootIndexOff() {\r\n getView().setShowRoot(true);\r\n int index = 3;\r\n getSelectionModel().select(index);\r\n getView().setShowRoot(false);\r\n assertEquals(index - 1, getSelectedIndex());\r\n }", "@Test\r\n public void testShowRootItemOff() {\r\n getView().setShowRoot(true);\r\n int index = 3;\r\n getSelectionModel().select(index);\r\n Object item = getSelectedItem();\r\n getView().setShowRoot(false);\r\n assertEquals(\"selectedItem unchanged on showing root:\", item, getSelectedItem());\r\n }", "@Override\r\n\tpublic boolean renderAsNormalBlock ( )\r\n\t{\n\t\treturn ( Configuration.Cosmetic.renderFallback ) ;\r\n\t}", "@Override\n protected void findBootLayerAtomosContents(Set<AtomosContentBase> result)\n {\n }", "@Override\n\tprotected void treeContentChanged ( ) {\n\n\t\tSubTypingProofNode rootNode = ( SubTypingProofNode ) this.proofModel.getRoot ( );\n\n\t\t// initiate the index\n\t\tthis.index = 1;\n\t\tcheckForUserObject ( rootNode );\n\t\trelayout ( );\n\n\t}", "private boolean isLeaf() {\n return this.children == null;\n }", "@Override\n\tpublic String changeToWZLContent(String content) {\n\t\treturn null;\n\t}", "private boolean isContentNode(NodePattern node, Set<NodePattern> contentNodes) {\n\t\tfor (EdgePattern outgoing : node.getOutgoings()) {\r\n\t\t\tif (contentNodes.contains(outgoing.getTarget())) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Child elements of content elements are always also content elements:\r\n\t\tfor (EdgePattern incoming : node.getIncomings()) {\r\n\t\t\tif (incoming.getType().isContainment() && contentNodes.contains(incoming.getSource())) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\treturn false;\r\n\t}", "public void testHierarchyRootInheritance() throws Exception {\n TestUtilities.createFile(getWorkDir(), \"Editors/text/x-jsp/text/x-java/\");\n TestUtilities.createFile(getWorkDir(), \"Editors/org-netbeans-modules-editor-mimelookup-impl-DummySettingImpl.instance\");\n TestUtilities.sleepForWhile();\n\n {\n Lookup lookup = new SwitchLookup(MimePath.parse(\"\"));\n Collection instances = lookup.lookupAll(DummySetting.class);\n assertEquals(\"Wrong number of instances\", 1, instances.size());\n assertEquals(\"Wrong instance\", DummySettingImpl.class, instances.iterator().next().getClass());\n }\n \n {\n Lookup jspLookup = new SwitchLookup(MimePath.parse(\"text/x-jsp\"));\n Collection jspInstances = jspLookup.lookupAll(DummySetting.class);\n assertEquals(\"Wrong number of instances\", 1, jspInstances.size());\n assertEquals(\"Wrong instance\", DummySettingImpl.class, jspInstances.iterator().next().getClass());\n }\n \n {\n Lookup javaLookup = new SwitchLookup(MimePath.parse(\"text/x-jsp/text/x-java\"));\n Collection javaInstances = javaLookup.lookupAll(DummySetting.class);\n assertEquals(\"Wrong number of instances\", 1, javaInstances.size());\n assertEquals(\"Wrong instance\", DummySettingImpl.class, javaInstances.iterator().next().getClass());\n }\n }", "boolean hasExplicitContentDetectionConfig();" ]
[ "0.6876519", "0.6149346", "0.60760087", "0.59823936", "0.5908794", "0.57927877", "0.576885", "0.576885", "0.5751858", "0.5751858", "0.5682119", "0.5654118", "0.5588678", "0.55698514", "0.5560867", "0.553969", "0.54746956", "0.54676", "0.5447001", "0.5402371", "0.53759277", "0.53641695", "0.5302368", "0.52685684", "0.5255191", "0.52425206", "0.52312", "0.52171487", "0.5211302", "0.52104515", "0.52104515", "0.52104515", "0.52104515", "0.52104515", "0.52104515", "0.52104515", "0.51661485", "0.5159418", "0.5154943", "0.51370275", "0.5112589", "0.5109583", "0.51015633", "0.50961983", "0.5088253", "0.508759", "0.50746757", "0.5070879", "0.5045795", "0.50321287", "0.501647", "0.5009227", "0.5005758", "0.5004488", "0.4991185", "0.4986789", "0.49846494", "0.4976064", "0.49641064", "0.49534562", "0.49497908", "0.4945305", "0.49367505", "0.49293312", "0.49280936", "0.49258423", "0.49227598", "0.49189705", "0.4916247", "0.4902542", "0.4895524", "0.48930782", "0.4881889", "0.4872514", "0.48702654", "0.48631573", "0.48614645", "0.48597458", "0.4855939", "0.48545933", "0.4849469", "0.48485124", "0.4847223", "0.4847223", "0.4845407", "0.48412788", "0.48316664", "0.4827059", "0.48242685", "0.48242685", "0.48210955", "0.48134366", "0.48087257", "0.48083866", "0.48076078", "0.48069698", "0.48051065", "0.48030406", "0.48028338", "0.48016015", "0.48011506" ]
0.0
-1
add our users for in memory authentication
@Override protected void configure(AuthenticationManagerBuilder auth) throws Exception { UserBuilder users = User.withDefaultPasswordEncoder(); auth.inMemoryAuthentication().withUser(users.username("user").password("test123").roles("USER")) .withUser(users.username("tester").password("test123").roles("USER", "TESTER")) .withUser(users.username("tom").password("test123").roles("USER", "ADMIN")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void configure(AuthenticationManagerBuilder auth) throws Exception {\n\n //CREATE USERS\n auth.inMemoryAuthentication().withUser(\"myadmin\").password(\"{noop}myadminpassword\").roles(\"ADMIN\");\n auth.inMemoryAuthentication().withUser(\"myuser\" ).password(\"{noop}myuserpassword\" ).roles(\"USER\" );\n\n }", "@Autowired\r\n public void globalUserDetails(AuthenticationManagerBuilder auth) throws Exception {\n auth.inMemoryAuthentication()\r\n // Define user's roles\r\n .withUser(adminId).password(adminPassword).roles(ADMIN_ROLE).and()\r\n .withUser(userId).password(userPassword).roles(USER_ROLE);\r\n }", "public void addUser() {\n\t\tthis.users++;\n\t}", "public void newUserDirectory() {\n\t\tusers = new LinkedAbstractList<User>(100);\n\t}", "public void fillUsers(int totalEntries) {\n\n StoreAPI storeOperations = new StoreAPIMongoImpl();\n for (int i = 0; i < totalEntries; i++) {\n storeOperations.createAccount(\"user_\" + i, \"password_\" + i, Fairy.create().person().getFirstName(), Fairy.create().person().getLastName());\n }\n }", "@Override\n protected void configure(AuthenticationManagerBuilder auth) throws Exception {\n auth.inMemoryAuthentication()\n .withUser(\"user1\").password(\"secret1\").roles(\"USER\");\n }", "private final void initializeCache() {\r\n try {\r\n UserIndex index = makeUserIndex(this.dbManager.getUserIndex());\r\n for (UserRef ref : index.getUserRef()) {\r\n String email = ref.getEmail();\r\n String userString = this.dbManager.getUser(email);\r\n User user = makeUser(userString);\r\n this.updateCache(user);\r\n }\r\n }\r\n catch (Exception e) {\r\n server.getLogger().warning(\"Failed to initialize users \" + StackTrace.toString(e));\r\n }\r\n }", "public void addUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk addUser\");\r\n\t}", "public void loadUsers() {\n CustomUser userOne = new CustomUser();\n userOne.setUsername(SpringJPABootstrap.MWESTON);\n userOne.setPassword(SpringJPABootstrap.PASSWORD);\n\n CustomUser userTwo = new CustomUser();\n userTwo.setUsername(SpringJPABootstrap.TEST_ACCOUNT_USER_NAME);\n userTwo.setPassword(SpringJPABootstrap.TEST_ACCOUNT_PASSWORD);\n\n String firstUserName = userOne.getUsername();\n\n /*\n * for now I am not checking for a second user because there is no delete method being\n * used so if the first user is created the second user is expected to be created. this\n * could cause a bug later on but I will add in more logic if that is the case in a\n * future build.\n */\n if(userService.isUserNameTaken(firstUserName)) {\n log.debug(firstUserName + \" is already taken\");\n return ;\n }\n userService.save(userOne);\n userService.save(userTwo);\n\n log.debug(\"Test user accounts have been loaded!\");\n }", "public void initUsers() {\n User user1 = new User(\"Alicja\", \"Grzyb\", \"111111\", \"grzyb\");\n User user2 = new User(\"Krzysztof\", \"Kowalski\", \"222222\", \"kowalski\");\n User user3 = new User(\"Karolina\", \"Nowak\", \"333333\", \"nowak\");\n User user4 = new User(\"Zbigniew\", \"Stonoga \", \"444444\", \"stonoga\");\n User user5 = new User(\"Olek\", \"Michnik\", \"555555\", \"michnik\");\n users.add(user1);\n users.add(user2);\n users.add(user3);\n users.add(user4);\n users.add(user5);\n }", "@Override\n protected void configure(AuthenticationManagerBuilder auth) throws Exception {\n auth.inMemoryAuthentication()\n .withUser(\"ahmed\")\n .password(\"123456\")\n .roles(\"admin\");\n }", "@Override\n\tpublic String addUser(Map<String, Object> reqs) {\n\t\treturn null;\n\t}", "private void initUser() {\n\t}", "private static Set<User> createUsers() {\n\t\tfinal Set<User> users = new HashSet<>();\n\t\tusers.add(new User(\"Max\", \"password\"));\n\t\treturn users;\n\t}", "@Override\r\n\tprotected void configure(AuthenticationManagerBuilder auth) throws Exception {\n\t\tauth.inMemoryAuthentication().withUser(\"purna\").password(\"purna43$\").roles(\"USER\")\r\n\t\t.and().withUser(\"chandu\").password(\"chandu43$\").roles(\"ADMIN\");\r\n\t}", "private void addUserAsMarker() {\n firestoreService.findUserById(new OnUserDocumentReady() {\n @Override\n public void onReady(UserDocument userDocument) {\n if(userDocument != null && userDocument.getUserid().equals(preferences.get(\"user_id\",0L))) {\n String id = preferences.get(DOCUMENT_ID, \"\");\n //Add current user to ListInBounds\n userDocumentAll.setDocumentid(id);\n userDocumentAll.setUsername(userDocument.getUsername());\n userDocumentAll.setPicture(userDocument.getPicture());\n userDocumentAll.setLocation(userDocument.getLocation());\n userDocumentAll.setFollowers(userDocument.getFollowers());\n userDocumentAll.setIsvisible(userDocument.getIsvisible());\n userDocumentAll.setIsprivate(userDocument.getIsprivate());\n userDocumentAll.setIsverified(userDocument.getIsverified());\n userDocumentAll.setUserid(userDocument.getUserid());\n userDocumentAll.setToken(userDocument.getToken());\n oneTimeAddableList.add(userDocumentAll);\n }\n }\n\n @Override\n public void onFail() {\n\n }\n\n @Override\n public void onFail(Throwable cause) {\n\n }\n });\n\n }", "private void getGredentialsFromMemoryAndSetUser()\n\t{\n\t SharedPreferences settings = getSharedPreferences(LOGIN_CREDENTIALS, 0);\n\t String username = settings.getString(\"username\", null);\n\t String password = settings.getString(\"password\", null);\n\t \n\t //Set credentials to CouponsManager.\n\t CouponsManager.getInstance().setUser(new User(username, password));\n\t \n\t}", "public UserManager() {\n allUsers = new ArrayList<>();\n allUsers.add(new RegularUser(\"Bob\", \"user\",\"pass\", new int[0] , \"email\"));\n allUserNames = new ArrayList<>();\n allUserNames.add(\"user\");\n allPasswords = new ArrayList<>();\n allPasswords.add(\"pass\");\n allEmails = new ArrayList<>();\n }", "private static void initUsers() {\n\t\tusers = new ArrayList<User>();\n\n\t\tusers.add(new User(\"Majo\", \"abc\", true));\n\t\tusers.add(new User(\"Alvaro\", \"def\", false));\n\t\tusers.add(new User(\"Luis\", \"ghi\", true));\n\t\tusers.add(new User(\"David\", \"jkl\", false));\n\t\tusers.add(new User(\"Juan\", \"mno\", true));\n\t\tusers.add(new User(\"Javi\", \"pqr\", false));\n\t}", "protected void configure(AuthenticationManagerBuilder authenticationManagerBuilder) throws Exception {\n authenticationManagerBuilder.inMemoryAuthentication().withUser(\"batateinit\").password(\"batate123\").roles(\"ADMINISTRATOR\");\n\n // AUTHENTICATION CHECK, AFTER THE CREATION OF USER RECORDS IN THE DATABASE\n authenticationManagerBuilder.userDetailsService(userDetailsService);\n\n /*authenticationManagerBuilder.inMemoryAuthentication().withUser(\"user\").password(\"user\").roles(\"USER\");\n authenticationManagerBuilder.inMemoryAuthentication().withUser(\"admin\").password(\"admin\").roles(\"ADMIN\");\n authenticationManagerBuilder.inMemoryAuthentication().withUser(\"kishor\").password(\"kishor\").roles(\"KISHOR\");*/\n }", "public void userListStart() {\n\t\tfor (int i = 0; i < userServices.getAllUsers().length; i++) {\n\t\t\tuserList.add(userServices.getAllUsers()[i]);\n\t\t}\n\t}", "@Autowired\n public void configureGlobalSecurity(AuthenticationManagerBuilder auth) throws Exception {\n auth.inMemoryAuthentication().withUser(\"John\").password(\"{noop}test\").roles(\"ADMIN\");\n auth.inMemoryAuthentication().withUser(\"Oliver\").password(\"{noop}test\").roles(\"USER\");\n }", "@Override\n\tprotected void configure(AuthenticationManagerBuilder auth) throws Exception {\n\t\t@SuppressWarnings(\"deprecation\")\n\t\tUserBuilder users = User.withDefaultPasswordEncoder();\n\n\t\tauth.inMemoryAuthentication()\n\t\t\t\t.withUser(users.username(\"rohan\").password(\"rohan123\").roles(\"EMPLOYEE\", \"MANAGER\", \"ADMIN\"))\n\t\t\t\t.withUser(users.username(\"admin\").password(\"admin123\").roles(\"ADMIN\"))\n\t\t\t\t.withUser(users.username(\"anjani\").password(\"anji123\").roles(\"EMPLOYEE\"))\n\t\t\t\t.withUser(users.username(\"alice\").password(\"alice123\").roles(\"MANAGER\"))\n\t\t\t\t.withUser(users.username(\"bob\").password(\"bob123\").roles(\"EMPLOYEE\", \"MANAGER\"));\n\t}", "@Override\n protected void configure(AuthenticationManagerBuilder auth) throws Exception {\n auth.inMemoryAuthentication()\n .withUser(\"user\").password(\"{noop}user\").roles(\"USER\")\n .and()\n .withUser(\"admin\").password(\"{noop}admin\").roles(\"ADMIN\", \"USER\");\n }", "public void adminLoad() {\n try {\n File file = new File(adminPath);\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()){\n String data = scanner.nextLine();\n String[]userData = data.split(separator);\n AdminAccounts adminAccounts = new AdminAccounts();\n adminAccounts.setUsername(userData[0]);\n adminAccounts.setPassword(userData[1]);\n users.add(adminAccounts);\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void configure(AuthenticationManagerBuilder auth) throws Exception {\n\t\tauth.inMemoryAuthentication().withUser(USER).password(passwordEncoder().encode(USER_PASSWORD)).roles(\"USER\");\n\t}", "public void addUser(User user) {\n\t\t\r\n\t}", "void addUserpan(String userid,String username,String userpwd);", "@Override\r\n\tpublic Utilisateur addUser() {\n\t\treturn null;\r\n\t}", "private void loggedInUser() {\n\t\t\n\t}", "private void lookUpUsers() {\n\t\ttry {\n\t\t\tString[] regList = Naming.list(\"//localhost:3000\");\n\t\t\tfor (String s : regList) {\n\t\t\t\tif (!s.contains(\"Notary\") && !s.contains(this.id)) {\n\t\t\t\t\tremoteUsers\n\t\t\t\t\t\t.put(s.replace(\"//localhost:3000/\", \"\"), (UserInterface) Naming.lookup(s));\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (MalformedURLException | RemoteException | NotBoundException e) {\n\t\t\tSystem.err.println(\"ERROR looking up user\");\n\t\t}\n\t}", "public void setupUser() {\n }", "@Override\r\n\tpublic void add(User user) {\n\r\n\t}", "public void setUserMap() {\n ResultSet rs = Business.getInstance().getData().getAllUsers();\n try {\n while (rs.next()) {\n userMap.put(rs.getString(\"username\"), new User(rs.getInt(\"id\"),\n rs.getString(\"name\"),\n rs.getString(\"username\"),\n rs.getString(\"password\"),\n rs.getBoolean(\"log\"),\n rs.getBoolean(\"medicine\"),\n rs.getBoolean(\"appointment\"),\n rs.getBoolean(\"caseAccess\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "@Override\n\tprotected void configure(AuthenticationManagerBuilder auth) throws Exception {\n\t\tauth.inMemoryAuthentication().withUser(\"[email protected]\").password(\"{noop}12345\").roles(\"USER\");\n\t}", "protected void getUserList() {\n\t\tmyDatabaseHandler db = new myDatabaseHandler();\n\t\tStatement statement = db.getStatement();\n\t\t// db.createUserTable(statement);\n\t\tuserList = new ArrayList();\n\t\tsearchedUserList = new ArrayList();\n\t\tsearchedUserList = db.getUserList(statement);\n\t\tuserList = db.getUserList(statement);\n\t\tusers.removeAllElements();\n\t\tfor (User u : userList) {\n\t\t\tusers.addElement(u.getName());\n\t\t}\n\t}", "private static void multipleUsersExample()\t{\n\t}", "public void addUser(User user){\r\n users.add(user);\r\n }", "public void addAccount(String user, String password);", "@Autowired\n public void configureGlobal(AuthenticationManagerBuilder builder) throws Exception {\n builder.userDetailsService(jpaUserDetailsService)\n .passwordEncoder(passwordEncoder);\n\n /**\n *\n * IN MEMORY AUTHENTICATION:\n\n PasswordEncoder encoder = this.passwordEncoder;\n User.UserBuilder users = User.builder().passwordEncoder(encoder::encode);\n\n builder.inMemoryAuthentication()\n .withUser(users.username(\"admin\").password(\"admin\").roles(\"ADMIN\", \"USER\"))\n .withUser(users.username(\"diegog09\").password(\"123456\").roles(\"USER\"));\n\n */\n }", "private UserDao() {\n\t\tusersList = new HashMap<String, User>();\n\t\tusersDetails = JsonFilehandling.read();\n\t\tfor (JSONObject obj : usersDetails) {\n\t\t\tusersList.put(obj.get(\"id\").toString(), new User(obj.get(\"id\").toString(),obj.get(\"name\").toString(), obj.get(\"profession\").toString()));\n\t\t}\n\t}", "public UserDirectory() {\n\t\tusers = new LinkedAbstractList<User>(100);\n\t}", "@Autowired\r\n\tpublic void configurationGlobal(AuthenticationManagerBuilder authBuilder) throws Exception{\r\n\t\tauthBuilder.inMemoryAuthentication()\r\n\t\t\t.withUser(\"scott\")\r\n\t\t\t.password(\"welcome1\")\r\n\t\t\t.roles(\"USER\");\r\n\t\tauthBuilder.inMemoryAuthentication()\r\n\t\t\t.withUser(\"arun\")\r\n\t\t\t.password(\"welcome1\")\r\n\t\t\t.roles(\"ADMIN\");\r\n\t\tauthBuilder.inMemoryAuthentication()\r\n\t\t\t.withUser(\"pavan\")\r\n\t\t\t.password(\"welcome1\")\r\n\t\t\t.roles(\"USERDISABLED\");\r\n\t}", "public LoginService() {\n users.put(\"johndoe\", \"John Doe\");\n users.put(\"janedoe\", \"Jane Doe\");\n users.put(\"jguru\", \"Java Guru\");\n }", "public User[] addUser(String userName, String password, int ageUser){\n boolean space = false;\n for(int i = 0; i<MAX_USER && !space; i++){\n if(user[i] == null){\n user[i] = new User(userName, password, ageUser);\n space = true;\n numUser++;\n }\n }\n return user;\n }", "public void addUser(String fullName,String loginName,String password,boolean isAdmin) throws IOException {\n userManager.addUser(fullName, loginName, password, isAdmin);\n userManager.emptyLists();\n userManager.fillLists();\n AdminMainViewController.emptyStaticLists();\n AdminMainViewController.adminsObservableList.addAll(userManager.getAdminsList());\n AdminMainViewController.usersObservableList.addAll(userManager.getUsersList());\n }", "private void addAll(User[] users) {\n synchronized (this.base) {\n Stream.of(users).forEach(this::add);\n }\n }", "public void initialize() {\n\n list.add(user1);\n list.add(user2);\n list.add(user3);\n }", "private List<User> createUserList() {\n for (int i = 1; i<=5; i++) {\n User u = new User();\n u.setId(i);\n u.setEmail(\"user\"+i+\"@mail.com\");\n u.setPassword(\"pwd\"+i);\n userList.add(u);\n }\n return userList;\n }", "@Override\n public BlueUserContainer getUsers() {\n return users;\n }", "@PostConstruct\n public void initUsers() {\n List<MyUser> users = Stream.of(\n new MyUser(\"1\",\"Vaibhav\",\"Vaibhav\"),\n new MyUser(\"2\",\"Abhishek\",\"Abhishek\"),\n new MyUser(\"3\",\"admin\",\"admin\")\n ).collect(Collectors.toList());\n repository.saveAll(users);\n }", "private List<ApplicationUser> getApplicationUsers() {\r\n List<ApplicationUser> appUsers = Lists.newArrayList(\r\n\r\n new ApplicationUser(\r\n STUDENT.getGrantedAuthorities(),\r\n passEncoder.encode(\"notthebees\"),\r\n \"mirajones\",\r\n true,\r\n true,\r\n true,\r\n true\r\n ),\r\n\r\n new ApplicationUser(\r\n ADMIN.getGrantedAuthorities(),\r\n passEncoder.encode(\"password123\"),\r\n \"linda\",\r\n true,\r\n true,\r\n true,\r\n true\r\n ),\r\n\r\n new ApplicationUser(\r\n ADMINTRAINEE.getGrantedAuthorities(),\r\n passEncoder.encode(\"thisisapass\"),\r\n \"tomtrainee\",\r\n true,\r\n true,\r\n true,\r\n true\r\n )\r\n );\r\n\r\n return appUsers;\r\n }", "@Override\n\tpublic void addUser(User user) {\n mapper.addUser(user);\n\t}", "public void addUser() {\n\t\tUser user = dataManager.findCurrentUser();\r\n\t\tif (user != null) {\r\n\t\t\tframeManager.addUser(user);\r\n\t\t\tpesquisar();\r\n\t\t} else {\r\n\t\t\tAlertUtils.alertSemPrivelegio();\r\n\t\t}\r\n\t}", "@Autowired\r\n\tpublic void configureGlobal(AuthenticationManagerBuilder auth) throws Exception\r\n\t{\r\n\t\r\n\t\t/*\tauth.inMemoryAuthentication()\r\n\t\t.withUser(\"scott\")\r\n\t\t.password(\"welcome1\")\r\n\t\t.roles(\"USER\");\r\n\t\t\r\n\t\tauth.inMemoryAuthentication()\r\n\t\t.withUser(\"arun\")\r\n\t\t.password(\"welcome1\")\r\n\t\t.roles(\"ADMIN\");\r\n\t\t\r\n\t\tauth.inMemoryAuthentication()\r\n\t\t.withUser(\"pavan\")\r\n\t\t.password(\"welcome1\")\r\n\t\t.disabled(true)\r\n\t\t.roles(\"USER\");*/\r\n\t\t\r\n\t\t\r\n\t\tauth\r\n\t\t.jdbcAuthentication()\r\n\t\t.dataSource(dataSource())\r\n\t\t.usersByUsernameQuery(\"select username,password,enabled from users where username=?\")\r\n\t\t.authoritiesByUsernameQuery(\"select username,authority from authorities where username=?\");\r\n\t}", "@Override\r\n\tprotected final void objectDataMapping() throws BillingSystemException{\r\n\t\tString[][] data=getDataAsArray(USER_DATA_FILE);\r\n\t\tif(validateData(data,\"Authorised User\",COL_LENGTH)){\r\n\t\tList<User> listUser=new ArrayList<User>();\r\n\t\t\r\n\t\tfor(int i=0;i<data.length;i++){\r\n\t \t\r\n\t \tUser usr=new User();\r\n\t \t\t\r\n\t \tusr.setUsername(data[i][0]);\r\n\t \tusr.setPassword(data[i][1]);\r\n\t \tusr.setRole(getRoleByCode(data[i][2]));\r\n\t \t\r\n\t \tlistUser.add(usr);\t\r\n\t }\r\n\r\n\t\t\r\n\t\tthis.listUser=listUser;\r\n\t\t}\r\n\t}", "public void addUsersAlready(Users sa) {\n\t\tthis.UserAlreadyRegistered.add(sa);\n\t}", "RemoteUserManager() { }", "@Override\n public User addUser(String username, Map<String, String> claims, Object credential, List<String> groupList)\n throws IdentityStoreException {\n\n try (UnitOfWork unitOfWork = UnitOfWork.beginTransaction(dataSource.getConnection(), false)) {\n\n List<Long> groupIds = new ArrayList<>();\n\n // Get the related group id's from the group names if there are any groups.\n if (groupList != null && !groupList.isEmpty()) {\n NamedPreparedStatement getGroupsPreparedStatement = new NamedPreparedStatement(\n unitOfWork.getConnection(),\n sqlStatements.get(ConnectorConstants.QueryTypes.SQL_QUERY_GET_GROUP_IDS),\n groupList.size());\n getGroupsPreparedStatement.setString(\"groupnames\", groupList);\n ResultSet resultSet = getGroupsPreparedStatement.getPreparedStatement().executeQuery();\n\n while (resultSet.next()) {\n groupIds.add(resultSet.getLong(DatabaseColumnNames.Group.ID));\n }\n }\n\n String generatedUserId = UserCoreUtil.getRandomId();\n String salt = UserCoreUtil.getRandomId();\n\n // This will be hard coded for current implementation. Need to decide the method to add this dynamically.\n String hashAlgo = \"SHA-256\";\n\n NamedPreparedStatement addUserPreparedStatement = new NamedPreparedStatement(unitOfWork.getConnection(),\n sqlStatements.get(ConnectorConstants.QueryTypes.SQL_QUERY_ADD_USER));\n addUserPreparedStatement.setString(\"username\", username);\n addUserPreparedStatement.setString(\"password\",\n UserCoreUtil.hashPassword((char[]) credential, salt, hashAlgo));\n addUserPreparedStatement.setString(\"user_unique_id\", generatedUserId);\n\n addUserPreparedStatement.getPreparedStatement().executeUpdate();\n ResultSet resultSet = addUserPreparedStatement.getPreparedStatement().getGeneratedKeys();\n\n if (!resultSet.next()) {\n throw new IdentityStoreException(\"Failed to add the user.\");\n }\n\n // Id of the user in the database.\n long userId = resultSet.getLong(1);\n\n // Add the password information.\n NamedPreparedStatement addPasswordInformationPreparedStatement = new NamedPreparedStatement(\n unitOfWork.getConnection(),\n sqlStatements.get(ConnectorConstants.QueryTypes.SQL_QUERY_ADD_PASSWORD_INFO));\n addPasswordInformationPreparedStatement.setLong(\"user_id\", userId);\n addPasswordInformationPreparedStatement.setString(\"hash_algo\", hashAlgo);\n addPasswordInformationPreparedStatement.setString(\"password_salt\", salt);\n addPasswordInformationPreparedStatement.getPreparedStatement().executeUpdate();\n\n // Add user claims if there are any.\n if (claims != null && !claims.isEmpty()) {\n\n NamedPreparedStatement addUserClaimsPreparedStatement = new NamedPreparedStatement(\n unitOfWork.getConnection(),\n sqlStatements.get(ConnectorConstants.QueryTypes.SQL_QUERY_ADD_USER_CLAIMS));\n\n for (Map.Entry<String, String> claim : claims.entrySet()) {\n addUserClaimsPreparedStatement.setLong(\"user_id\", userId);\n addUserClaimsPreparedStatement.setString(\"attr_name\", claim.getKey());\n addUserClaimsPreparedStatement.setString(\"attr_val\", claim.getValue());\n addUserClaimsPreparedStatement.getPreparedStatement().addBatch();\n }\n addUserClaimsPreparedStatement.getPreparedStatement().executeBatch();\n }\n\n // Add groups if there are any.\n if (!groupIds.isEmpty()) {\n\n NamedPreparedStatement addUserGroupsPreparedStatement = new NamedPreparedStatement(\n unitOfWork.getConnection(),\n sqlStatements.get(ConnectorConstants.QueryTypes.SQL_QUERY_ADD_USER_GROUPS));\n\n for (long groupId : groupIds) {\n addUserGroupsPreparedStatement.setLong(\"user_id\", userId);\n addUserGroupsPreparedStatement.setLong(\"group_id\", groupId);\n addUserGroupsPreparedStatement.getPreparedStatement().addBatch();\n }\n addUserGroupsPreparedStatement.getPreparedStatement().executeBatch();\n }\n\n unitOfWork.endTransaction();\n return new User(generatedUserId, userStoreId, username);\n\n } catch (SQLException e) {\n throw new IdentityStoreException(\"Internal error occurred while adding the user.\", e);\n } catch (NoSuchAlgorithmException e) {\n throw new IdentityStoreException(\"Invalid hash algorithm for password hashing.\", e);\n }\n }", "private void registerUser()\n {\n /*AuthService.createAccount takes a Consumer<Boolean> where the result will be true if the user successfully logged in, or false otherwise*/\n authService.createAccount(entryService.extractText(namedFields), result -> {\n if (result.isEmpty()) {\n startActivity(new Intent(this, DashboardActivity.class));\n } else {\n makeToast(result);\n formContainer.setAlpha(1f);\n progressContainer.setVisibility(View.GONE);\n progressContainer.setOnClickListener(null);\n }\n });\n }", "public void getAllUsers() {\n\t\t\n\t}", "private void connectToUsers() {\n\n\t\tlookUpUsers();\n\t\ttry {\n\t\t\tfor (Map.Entry<String, UserInterface> e : remoteUsers.entrySet()) {\n\t\t\t\tcryptoUtils.addCertToList(e.getKey(), e.getValue().getCertificate());\n\t\t\t\te.getValue().connectUser(this.id, getCertificate());\n\t\t\t}\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public interface UserProvider {\n\n /**\n * Loads the specified user by username.\n *\n * @param username the username\n * @return the User.\n * @throws UserNotFoundException if the User could not be loaded.\n */\n User loadUser( String username ) throws UserNotFoundException;\n\n /**\n * Creates a new user. This method should throw an\n * UnsupportedOperationException if this operation is not\n * supporte by the backend user store.\n *\n * @param username the username.\n * @param password the plain-text password.\n * @param name the user's name, which can be {@code null}, unless isNameRequired is set to true.\n * @param email the user's email address, which can be {@code null}, unless isEmailRequired is set to true.\n * @return a new User.\n * @throws UserAlreadyExistsException if the username is already in use.\n */\n User createUser( String username, String password, String name, String email )\n throws UserAlreadyExistsException;\n\n /**\n * Delets a user. This method should throw an\n * UnsupportedOperationException if this operation is not\n * supported by the backend user store.\n *\n * @param username the username to delete.\n */\n void deleteUser( String username );\n\n /**\n * Returns the number of users in the system.\n *\n * @return the total number of users.\n */\n int getUserCount();\n\n /**\n * Returns an unmodifiable Collections of all users in the system. The\n * {@link UserCollection} class can be used to assist in the implementation\n * of this method. It takes a String [] of usernames and presents it as a\n * Collection of User objects (obtained with calls to\n * {@link UserManager#getUser(String)}.\n *\n * @return an unmodifiable Collection of all users.\n */\n Collection<User> getUsers();\n\n /**\n * Returns an unmodifiable Collection of usernames of all users in the system.\n *\n * @return an unmodifiable Collection of all usernames in the system.\n */\n Collection<String> getUsernames();\n\n /**\n * Returns an unmodifiable Collections of users in the system within the\n * specified range. The {@link UserCollection} class can be used to assist\n * in the implementation of this method. It takes a String [] of usernames\n * and presents it as a Collection of User objects (obtained with calls to\n * {@link UserManager#getUser(String)}.<p>\n *\n * It is possible that the number of results returned will be less than that\n * specified by {@code numResults} if {@code numResults} is greater than the\n * number of records left to display.\n *\n * @param startIndex the beginning index to start the results at.\n * @param numResults the total number of results to return.\n * @return an unmodifiable Collection of users within the specified range.\n */\n Collection<User> getUsers( int startIndex, int numResults );\n\n /**\n * Sets the user's name. This method should throw an UnsupportedOperationException\n * if this operation is not supported by the backend user store.\n *\n * @param username the username.\n * @param name the name.\n * @throws UserNotFoundException if the user could not be found.\n */\n void setName( String username, String name ) throws UserNotFoundException;\n\n /**\n * Sets the user's email address. This method should throw an\n * UnsupportedOperationException if this operation is not supported\n * by the backend user store.\n *\n * @param username the username.\n * @param email the email address.\n * @throws UserNotFoundException if the user could not be found.\n */\n void setEmail( String username, String email ) throws UserNotFoundException;\n\n /**\n * Sets the date the user was created. This method should throw an\n * UnsupportedOperationException if this operation is not supported\n * by the backend user store.\n *\n * @param username the username.\n * @param creationDate the date the user was created.\n * @throws UserNotFoundException if the user could not be found.\n */\n void setCreationDate( String username, Date creationDate ) throws UserNotFoundException;\n\n /**\n * Sets the date the user was last modified. This method should throw an\n * UnsupportedOperationException if this operation is not supported\n * by the backend user store.\n *\n * @param username the username.\n * @param modificationDate the date the user was last modified.\n * @throws UserNotFoundException if the user could not be found.\n */\n void setModificationDate( String username, Date modificationDate )\n throws UserNotFoundException;\n\n /**\n * Returns the set of fields that can be used for searching for users. Each field\n * returned must support wild-card and keyword searching. For example, an\n * implementation might send back the set {\"Username\", \"Name\", \"Email\"}. Any of\n * those three fields can then be used in a search with the\n * {@link #findUsers(Set,String)} method.<p>\n *\n * This method should throw an UnsupportedOperationException if this\n * operation is not supported by the backend user store.\n *\n * @return the valid search fields.\n * @throws UnsupportedOperationException if the provider does not\n * support the operation (this is an optional operation).\n */\n Set<String> getSearchFields() throws UnsupportedOperationException;\n\n /**\n * Searches for users based on a set of fields and a query string. The fields must\n * be taken from the values returned by {@link #getSearchFields()}. The query can\n * include wildcards. For example, a search on the field \"Name\" with a query of \"Ma*\"\n * might return user's with the name \"Matt\", \"Martha\" and \"Madeline\".<p>\n *\n * This method should throw an UnsupportedOperationException if this\n * operation is not supported by the backend user store. \n *\n * @param fields the fields to search on.\n * @param query the query string.\n * @return a Collection of users that match the search.\n * @throws UnsupportedOperationException if the provider does not\n * support the operation (this is an optional operation).\n */\n Collection<User> findUsers( Set<String> fields, String query )\n throws UnsupportedOperationException;\n\n /**\n * Searches for users based on a set of fields and a query string. The fields must\n * be taken from the values returned by {@link #getSearchFields()}. The query can\n * include wildcards. For example, a search on the field \"Name\" with a query of \"Ma*\"\n * might return user's with the name \"Matt\", \"Martha\" and \"Madeline\".<p>\n *\n * The startIndex and numResults parameters are used to page through search\n * results. For example, if the startIndex is 0 and numResults is 10, the first\n * 10 search results will be returned. Note that numResults is a request for the\n * number of results to return and that the actual number of results returned\n * may be fewer.<p>\n *\n * This method should throw an UnsupportedOperationException if this\n * operation is not supported by the backend user store.\n *\n * @param fields the fields to search on.\n * @param query the query string.\n * @param startIndex the starting index in the search result to return.\n * @param numResults the number of users to return in the search result.\n * @return a Collection of users that match the search.\n * @throws UnsupportedOperationException if the provider does not\n * support the operation (this is an optional operation).\n */\n Collection<User> findUsers( Set<String> fields, String query, int startIndex,\n int numResults ) throws UnsupportedOperationException;\n\n /**\n * Returns true if this UserProvider is read-only. When read-only,\n * users can not be created, deleted, or modified.\n *\n * @return true if the user provider is read-only.\n */\n boolean isReadOnly();\n\n /**\n * Returns true if this UserProvider requires a name to be set on User objects.\n *\n * @return true if an name is required with this provider.\n */\n boolean isNameRequired();\n\n /**\n * Returns true if this UserProvider requires an email address to be set on User objects.\n *\n * @return true if an email address is required with this provider.\n */\n boolean isEmailRequired();\n\n}", "public void setUsers(ch.ivyteam.ivy.scripting.objects.List<ch.ivyteam.ivy.security.IUser> _users)\n {\n users = _users;\n }", "public void newUser(User user) {\n users.add(user);\n }", "@Override\n\tpublic void updateLoggedinUsers() throws Exception {\n\n\t}", "@Override\r\n\tpublic void addAuth(Authorities auth) {\n\t\t\r\n\t\tsessionFactory.getCurrentSession().saveOrUpdate(auth);\r\n\t\tsessionFactory.getCurrentSession().flush();\r\n\t\t\r\n\t}", "public static void initializeUserList() {\r\n\t\tUser newUser1 = new User(1, \"Elijah Hickey\", \"snhuEhick\", \"4255\", \"Admin\");\r\n\t\tuserList.add(newUser1);\r\n\t\t\r\n\t\tUser newUser2 = new User(2, \"Bob Ross\", \"HappyClouds\", \"200\", \"Employee\");\r\n\t\tuserList.add(newUser2);\r\n\t\t\r\n\t\tUser newUser3 = new User(3, \"Jane Doe\", \"unknown person\", \"0\", \"Intern\");\r\n\t\tuserList.add(newUser3);\r\n\t}", "@Override\n public void onApplicationEvent(ContextRefreshedEvent event) {\n\n //Prevent double bootstrap\n String systemUserName = \"user\";\n if (userRepository.findUserByName(systemUserName).isPresent()) {\n return;\n }\n\n User user = user(systemUserName, \"password\", asList(\"ROLE_USER\"));\n user.addCharacter(\"Avicus\");\n\n user(\"admin\", \"password\", asList(\"ROLE_USER\", \"ROLE_ADMIN\"));\n }", "void add(User user) throws AccessControlException;", "public void addUser() {\r\n PutItemRequest request = new PutItemRequest().withTableName(\"IST440Users\").withReturnConsumedCapacity(\"TOTAL\");\r\n PutItemResult response = client.putItem(request);\r\n }", "public void addUser(User user);", "@Override\n\tpublic void addUsers(Session session){\n\t\ttry{\n\t\t\t//scanner class allows the admin to enter his/her input\n\t\t\tScanner scanner = new Scanner(System.in);\n\n\t\t\tSystem.out.print(\"+++++++++++Add Customer/Admin here+++++++++++\\n\");\n\n\t\t\tSystem.out.println(\"Enter 'Admin' to add a new admin to database\");\n\t\t\tSystem.out.println(\"Enter 'Customer' to add a new admin to database\");\n\t\t\tSystem.out.println(\"--------------Enter one from above------------------\");\n\t\t\tString accType = scanner.nextLine();\n\t\t\t\n\t\t\tSystem.out.println(\"Enter First Name:\");\n\t\t\tString firstName = scanner.nextLine();\n\n\t\t\tSystem.out.println(\"Enter Last Name:\");\n\t\t\tString lastName = scanner.nextLine();\n\n\t\t\tSystem.out.println(\"Enter UserId:\");\n\t\t\tString inputLoginId = scanner.nextLine();\n\n\t\t\tSystem.out.println(\"Enter Password:\");\n\t\t\tString inputLoginPwd = scanner.nextLine();\n\n\t\t\t//pass these input fields to client controller\n\t\t\tsamp=mvc.addUsers(session,accType,firstName,lastName,inputLoginId,inputLoginPwd);\n\t\t\tSystem.out.println(samp);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App- Add Users Exception: \" +e.getMessage());\n\t\t}\n\t}", "private final void initializeAdminUser() throws Exception {\r\n String adminEmail = server.getServerProperties().get(ADMIN_EMAIL_KEY);\r\n String adminPassword = server.getServerProperties().get(ADMIN_PASSWORD_KEY);\r\n // First, clear any existing Admin role property.\r\n for (User user : this.email2user.values()) {\r\n user.setRole(\"basic\");\r\n }\r\n // Now define the admin user with the admin property.\r\n if (this.email2user.containsKey(adminEmail)) {\r\n User user = this.email2user.get(adminEmail);\r\n user.setPassword(adminPassword);\r\n user.setRole(\"admin\");\r\n }\r\n else {\r\n User admin = new User();\r\n admin.setEmail(adminEmail);\r\n admin.setPassword(adminPassword);\r\n admin.setRole(\"admin\");\r\n this.updateCache(admin);\r\n }\r\n }", "void addUser() throws NoSuchAlgorithmException\r\n\t{\r\n\t\tSystem.out.print(\"Create a user ID: \");\r\n\t\tString userIDinput = scan.next();\r\n\t\tSystem.out.print(\"Create a password: \");\r\n\t\tmakePassword(userIDinput, scan.next());\r\n\t}", "@Override\n public void listenForLogins() {\n }", "private void setupUsersInRoomDB() {\n Log.d(TAG, \"setupUsersInRoomDB: start to setup list of 200 user\");\n userList = new ArrayList<>();\n int j = 0;\n for (int i = 0; i < 200; i++) {\n switch (j) {\n case 0:\n Log.d(TAG, \"setupUsersInRoomDB: case 0 set the user with image one\");\n userList.add(new User(\"user\" + i, getImageOne()));\n j++;\n break;\n case 1:\n userList.add(new User(\"user\" + i, getImageTwo()));\n j++;\n break;\n case 2:\n userList.add(new User(\"user\" + i, getImageThree()));\n j = 0;\n break;\n }\n }\n\n db.userDao().insertListOfUser(userList);\n Log.d(TAG, \"setupUsersInRoomDB: insert list of users in room database\");\n Shared.sharedSave(MainActivity.this, \"usersdb\", USERS_EXIST);\n Toast.makeText(getApplicationContext(), \"finish set database\", Toast.LENGTH_LONG).show();\n }", "@Override\n public void initializeUsersForImportation() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"initializeUsersForImportation\");\n }\n clearAddPanels();\n setRenderImportUserPanel(true);\n\n List<User> users;\n\n usersForImportation = new ArrayList<Pair<Boolean, User>>();\n\n if (Role.isLoggedUserAdmin() || Role.isLoggedUserProjectManager()) {\n choosenInstitutionForAdmin = (Institution) Component.getInstance(CHOOSEN_INSTITUTION_FOR_ADMIN);\n\n if (choosenInstitutionForAdmin != null) {\n users = User.listUsersForCompany(choosenInstitutionForAdmin);\n } else {\n users = User.listAllUsers();\n }\n } else {\n users = User.listUsersForCompany(Institution.getLoggedInInstitution());\n }\n boolean emailAlreadyExists;\n for (User user : users) {\n emailAlreadyExists = false;\n\n for (ConnectathonParticipant cp : connectathonParticipantsDataModel().getAllItems(FacesContext.getCurrentInstance())) {\n\n if (user.getEmail().equals(cp.getEmail())) {\n emailAlreadyExists = true;\n }\n }\n\n if (!emailAlreadyExists) {\n usersForImportation.add(new Pair<Boolean, User>(false, user));\n }\n }\n }", "public User addUser() {\n return new User() {\n @Override\n protected void finalize() throws Throwable {\n super.finalize();\n }\n };\n }", "public static void addUser(String name)\n {\n userList.add(name);\n }", "public UserStorage(User[] users) {\n this();\n addAll(users);\n }", "@RequestMapping(method = RequestMethod.GET)\n public List<User> start()\n {\n userService.addUser(new User(rightService.getByName(\"USER\"),userGroupService.getByName(\"STUDENTS\"),login,password,token,mail));\n login=login+\" \"+inc;\n password=password+\" \"+inc;\n token=token+\" \"+inc;\n mail=mail+\" \"+inc;\n inc++;\n userService.addUser(new User(rightService.getByName(\"MODERATOR\"),userGroupService.getByName(\"TEACHERS\"),login,password,token,mail));\n login=login+\" \"+inc;\n password=password+\" \"+inc;\n token=token+\" \"+inc;\n mail=mail+\" \"+inc;\n inc++;\n userService.addUser(new User(rightService.getByName(\"USER\"),userGroupService.getByName(\"STUDENTS\"),login,password,token,mail));\n\n return userService.getAll();\n }", "public List<User> loadAllUserDetails()throws Exception;", "@Override\n\tpublic void addNewUser(User user) {\n\t\tusersHashtable.put(user.getAccount(),user);\n\t}", "public boolean addUsers(List<User> users);", "private void getManagedUsers(Request request) {\n // LUA uuid/ManagedBy Id\n String uuid = (String) request.get(JsonKey.ID);\n\n boolean withTokens = Boolean.valueOf((String) request.get(JsonKey.WITH_TOKENS));\n\n Map<String, Object> searchResult =\n userClient.searchManagedUser(\n getActorRef(ActorOperations.USER_SEARCH.getValue()),\n request,\n request.getRequestContext());\n List<Map<String, Object>> userList = (List) searchResult.get(JsonKey.CONTENT);\n\n List<Map<String, Object>> activeUserList = null;\n if (CollectionUtils.isNotEmpty(userList)) {\n activeUserList =\n userList\n .stream()\n .filter(o -> !BooleanUtils.isTrue((Boolean) o.get(JsonKey.IS_DELETED)))\n .collect(Collectors.toList());\n }\n if (withTokens && CollectionUtils.isNotEmpty(activeUserList)) {\n // Fetch encrypted token from admin utils\n Map<String, Object> encryptedTokenList =\n userService.fetchEncryptedToken(uuid, activeUserList, request.getRequestContext());\n // encrypted token for each managedUser in respList\n userService.appendEncryptedToken(\n encryptedTokenList, activeUserList, request.getRequestContext());\n }\n Map<String, Object> responseMap = new HashMap<>();\n if (CollectionUtils.isNotEmpty(activeUserList)) {\n responseMap.put(JsonKey.CONTENT, activeUserList);\n responseMap.put(JsonKey.COUNT, activeUserList.size());\n } else {\n responseMap.put(JsonKey.CONTENT, new ArrayList<>());\n responseMap.put(JsonKey.COUNT, 0);\n }\n Response response = new Response();\n response.put(JsonKey.RESPONSE, responseMap);\n sender().tell(response, self());\n }", "public UserAuthenticationDAOImpl() {\n\t\tinitUsers();\n\t}", "void addUser(User user);", "void addUser(User user);", "public users() {\n initComponents();\n connect();\n autoID();\n loaduser();\n \n \n }", "public void register() {\n int index = requestFromList(getUserTypes(), true);\n if (index == -1) {\n guestPresenter.returnToMainMenu();\n return;\n }\n UserManager.UserType type;\n if (index == 0) {\n type = UserManager.UserType.ATTENDEE;\n } else if (index == 1) {\n type = UserManager.UserType.ORGANIZER;\n } else {\n type = UserManager.UserType.SPEAKER;\n }\n String name = requestString(\"name\");\n char[] password = requestString(\"password\").toCharArray();\n boolean vip = false;\n if(type == UserManager.UserType.ATTENDEE) {\n vip = requestBoolean(\"vip\");\n }\n List<Object> list = guestManager.register(type, name, password, vip);\n int id = (int)list.get(0);\n updater.addCredentials((byte[])list.get(1), (byte[])list.get(2));\n updater.addUser(id, type, name, vip);\n guestPresenter.printSuccessRegistration(id);\n }", "private void createAllUsersList(){\n\t\tunassignedUsersList.clear();\n\t\tlistedUsersAvailList.clear();\n\t\tArrayList<User> users = jdbc.get_users();\n\t\tfor (int i = 0; i < users.size(); i++) {\n\t\t\tunassignedUsersList.addElement(String.format(\"%s, %s\", users.get(i).get_lastname(), users.get(i).get_firstname()));\n\t\t\tlistedUsersAvailList.addElement(String.format(\"%s, %s\", users.get(i).get_lastname(), users.get(i).get_firstname()));\n\t\t}\n\t}", "@Override\n\tpublic boolean addNewUser() {\n\t\treturn false;\n\t}", "public void addUserCredentials(String login, String password) throws SQLException;", "@Test\n\tpublic void testAddUser() {\n\t\tresetTestVars();\n\t\tuser1.setID(\"1\");\n\t\tuser2.setID(\"1\");\n\t\tassertFalse(\"User is invalid\", sn.addUser(user3));\n\t\tassertTrue(\"User is valid\", sn.addUser(user1));\n\t\tassertFalse(\"Same user cant be added\", sn.addUser(user1));\n\t\tassertFalse(\"ID already exists\", sn.addUser(user2));\n\t}", "private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}", "public Users() {\r\n this.user = new ArrayList<>();\r\n }", "public void addAuthority(Authorities auth){\r\n\t\tauth.setUsers(this);\r\n\t\tauthorities.add(auth);\r\n\t}", "@Override\n\tpublic void loginUser() {\n\t\t\n\t}", "private void setUpUser() {\n Bundle extras = getIntent().getExtras();\n mActiveUser = extras.getString(Helper.USER_NAME);\n mUser = mDbHelper.getUser(mActiveUser, true);\n Log.d(TAG, mUser.toString());\n\n if (mUser == null) {\n Toast.makeText(getBaseContext(), \"Error loading user data\", Toast.LENGTH_SHORT);\n return;\n }\n\n mIsNumPassword = Helper.isNumeric(mUser.getPassword());\n\n mKeyController = new KeyController(getApplicationContext(), mUser);\n }" ]
[ "0.6672891", "0.6598998", "0.647709", "0.642266", "0.63641715", "0.63556933", "0.633456", "0.62833756", "0.6270164", "0.62455016", "0.62423605", "0.6230895", "0.6221206", "0.6218644", "0.6216321", "0.62032616", "0.6201935", "0.6171627", "0.6161104", "0.61321104", "0.61281705", "0.6099219", "0.6071529", "0.6063468", "0.6061899", "0.6050788", "0.603828", "0.60363424", "0.6036275", "0.60335994", "0.6030031", "0.60271376", "0.6026994", "0.6015", "0.60111666", "0.5993286", "0.59728706", "0.5959562", "0.59357435", "0.59205854", "0.5914991", "0.5905794", "0.58919907", "0.589154", "0.58886063", "0.5882121", "0.58800906", "0.5870606", "0.58698165", "0.5851445", "0.58513343", "0.585043", "0.58044916", "0.5795226", "0.57942325", "0.57924366", "0.5790162", "0.5787495", "0.5778124", "0.5776757", "0.5749306", "0.574507", "0.57440275", "0.5743773", "0.5740367", "0.5738199", "0.5738121", "0.57379556", "0.5734798", "0.57151306", "0.57110757", "0.57095826", "0.5704619", "0.57025236", "0.5697466", "0.5696452", "0.5677105", "0.5674135", "0.5669253", "0.5667783", "0.56666815", "0.56621313", "0.56614625", "0.565407", "0.5650893", "0.56459975", "0.56452554", "0.56451595", "0.56451595", "0.5640198", "0.5638938", "0.5638418", "0.56320876", "0.5624969", "0.5620311", "0.5611728", "0.56071144", "0.56060815", "0.56038684", "0.56014067" ]
0.62265384
12
Custom method Update points
@PutMapping("/points/{customerId}") @ResponseStatus(HttpStatus.NO_CONTENT) public void updatePointsOnAccount(@PathVariable("customerId") int customerId, @RequestBody @Valid LevelUpViewModel lvm) { if (customerId != lvm.getCustomerId()) { throw new IllegalArgumentException(String.format("Id %s in the PathVariable does not match the Id %s in the RequestBody ", customerId, lvm.getCustomerId())); } serviceLayer.updatePoints(lvm); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void update(){\r\n\t\tList<Point> list = new ArrayList<Point>();\r\n\t\t\r\n\t\tlist.addAll(Arrays.asList(points));\r\n\t\t\r\n\t\tsetPoints(list);\r\n\t}", "protected synchronized void updatePoints(double points)\n\t{\n\t\tif(Config.VIT_MAX_PLAYER_LVL > _player.getLevel())\n\t\t{\n\t\t\tif(Config.VIT_CHECK_LUCKY_SKILL)\n\t\t\t{\n\t\t\t\tif(_player.getSkillLevel(LUCKY_SKILL) > 0)\n\t\t\t\t\treturn;\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn;\n\t\t}\n\n\t\tint prevLvl = getLevel();\n\t\tint prevPoints = (int) _vitPoints;\n\n\t\tchangePoints(points);\n\t\tsendChangeMessage(prevPoints, prevLvl);\n\t}", "@Override\n\tpublic void getUpdatePoints(String arg0, int arg1) {\n\t\t\n\t}", "private synchronized void update() {\n nPoints++;\n int n = points.size();\n if (n < 1) {\n return;\n }\n PathPoint p = points.get(points.size() - 1); // take last point\n if (p.getNEvents() == 0) {\n return;\n }\n if (n > length) {\n removeOldestPoint(); // discard data beyond range length\n }\n n = n > length ? length : n; // n grows to max length\n float t = p.t - firstTimestamp; // t is time since cluster formed, limits absolute t for numerics\n st += t;\n sx += p.x;\n sy += p.y;\n stt += t * t;\n sxt += p.x * t;\n syt += p.y * t;\n// if(n<length) return; // don't estimate velocityPPT until we have all necessary points, results very noisy and send cluster off to infinity very often, would give NaN\n float den = (n * stt - st * st);\n if (den != 0) {\n valid = true;\n xVelocity = (n * sxt - st * sx) / den;\n yVelocity = (n * syt - st * sy) / den;\n } else {\n valid = false;\n }\n }", "public void setRevisedPoints(int thePoints)\r\n {\r\n points = points + thePoints;\r\n }", "public void updatePlayerPoints() {\n setText(Integer.toString(owner.getPlayerPoints()) + \" points\");\n }", "public void addPoint() {\n points += 1;\n }", "public void updateOnAction(int update)\n {\n this.points += update;\n }", "private void updatePointsPosition() {\n\t\tfor (DataFromPointInfo dataFromPointInfo : fromPoints) {\n\t\t\tDataFromPoint fromPoint = dataFromPointInfo.fromPoint;\n\t\t\tfromPoint.setX((int) (getX() + this.getBounds().getWidth()\n\t\t\t\t\t+ HORIZONTAL_OFFSET));\n\t\t\tfromPoint.setY((int) (getY() + this.getRowHeight() / 2\n\t\t\t\t\t+ this.getRowHeight() * dataFromPointInfo.yShift));\n\t\t}\n\t\tfor (DataToPointInfo dataToPointInfo : toPoints) {\n\t\t\tDataToPoint toPoint = dataToPointInfo.toPoint;\n\t\t\ttoPoint.setX((int) (getX() - HORIZONTAL_OFFSET));\n\t\t\ttoPoint.setY((int) (getY() + this.getRowHeight() / 2\n\t\t\t\t\t+ this.getRowHeight() * dataToPointInfo.yShift));\n\t\t}\n\t}", "@Override\n\tpublic void update() {\n\t\tage++;\n\t\tpoints = Globals.points;\n\t}", "public synchronized void updatePlayerPoint(long playerId, String playerName, int point) {\n/* 98 */ if (point <= this.component.getMinPoint()) {\n/* */ return;\n/* */ }\n/* 101 */ int level = MentalUtil.getShowLevel();\n/* 102 */ ZhenfaTempleWorldBean zhenfaTempleWorldBean = JsonTableService.<ZhenfaTempleWorldBean>getJsonData(level, ZhenfaTempleWorldBean.class);\n/* 103 */ if (point < zhenfaTempleWorldBean.getEntryScore()) {\n/* */ return;\n/* */ }\n/* 106 */ for (MentalRankStruct rankInfo : this.component.getRankList()) {\n/* 107 */ if (playerId == rankInfo.playerId) {\n/* 108 */ rankInfo.point = point;\n/* 109 */ this.component.setUpdate(\"rankList\");\n/* 110 */ this.component.saveToDB();\n/* 111 */ this.component.sortRank();\n/* */ \n/* */ return;\n/* */ } \n/* */ } \n/* 116 */ MentalRankStruct struct = new MentalRankStruct();\n/* 117 */ struct.playerId = playerId;\n/* 118 */ struct.playerName = playerName;\n/* 119 */ struct.point = point;\n/* */ \n/* 121 */ this.component.getRankList().add(struct);\n/* 122 */ this.component.setUpdate(\"rankList\");\n/* 123 */ this.component.saveToDB();\n/* */ \n/* 125 */ this.component.sortRank();\n/* */ }", "public void update() {\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < columns; j++) {\n Point point = getPointAtLocation(i, j);\n WorldItem item = point.getContainedItem();\n calculatePointTemp(point);\n point.update();\n if (item instanceof FlammableItem) {\n updateIgnition(point);\n } else if (item instanceof SimulatedSensor) {\n updateAlarm(point);\n }\n }\n }\n }", "public void addPoints(int point){\n\t\tthis.points += point;\n\t}", "private void updatePointSpeeds() {\n\t\tfor (int i = 0; i < locations.size(); i++) {\n\t\t\tLocationStructure loc = locations.get(i);\t\t\n\t\t\tDouble dist = Double.MIN_VALUE;\n\t\t\tDouble lat1 = loc.getLatitude().doubleValue();\n\t\t\tDouble lon1 = loc.getLongitude().doubleValue();\n\t\t\t\n\t\t\tDate d = times.get(i);\n\t\t\t\n\t\t\tif( i+1 < locations.size()) {\n\t\t\t\tloc = locations.get(i+1);\n\t\t\t\tDouble lat2 = loc.getLatitude().doubleValue();\n\t\t\t\tDouble lon2 = loc.getLongitude().doubleValue();\n\t\t\t\tdist = calculateDistance(lat1, lon1, lat2, lon2);\n\t\t\t\t\n\t\t\t\tDate d1 = times.get(i+1);\n\t\t\t\tDateTime dt1 = new DateTime(d);\n\t\t\t\tDateTime dt2 = new DateTime(d1);\n\t\t\t\tint seconds = Seconds.secondsBetween(dt1, dt2).getSeconds();\t\t\t\n\t\t\t\tDouble pd = (dist/seconds)*60;\n\t\t\t\tif(!pd.isNaN()) {\n\t\t\t\t\tpointSpeed.add(pd);\t\t\n\t\t\t\t\tSystem.out.println(\"BUS STATE-- Added point speed of \"+ (dist/seconds)*60 + \" for \" +this.vehicleRef);\n\t\t\t\t}\n\t\t\t} else break;\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic void spendPoints(int points) {\n\n\t}", "protected void update(){\n\t\t_offx = _x.valueToPosition(0);\n\t\t_offy = _y.valueToPosition(0);\n\t}", "public void setPoints(int points) {\n this.points = points;\n }", "@Override\n\tpublic void queryPoints() {\n\n\t}", "public void refreshPointsLabel(){\n\t\tpointsLab.setText(\"Points: \" + points);\n\t}", "public void update(int x,int y);", "public void updateYLoc();", "public void addPoints(int addP){\n this.points += addP;\n }", "@Override\n public int getPoints(){\n\n }", "public void givePlayerPoints(int pointsToAdd) {\n this.points = this.points + pointsToAdd;\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 }", "public void addPoint(int points){\n\t\tthis.fidelityCard.point += points;\t\t\n\t}", "@Override\r\n public void givePlayerPoints(int player, int plValuePosition, int points) {\r\n // Incrememnt player values by the points passed in\r\n this.players.get(player).\r\n changePlayerValueNumeric(plValuePosition, points);\r\n }", "void update(int[] xyPos) {\n this.x = xyPos[0];\n this.y = xyPos[1];\n }", "public void setPoints(Integer points) {\r\n this.points = points;\r\n }", "public void setPoints(int points)\n\t{\n\t\tthis.points = points;\n\t}", "public int pointUpdate(SqlSessionTemplate sqlSession, Member m) {\n\t\treturn sqlSession.update(\"memberMapper.pointUpdate\", m);\n\t}", "public int getPoints() { return points; }", "protected abstract void update();", "protected abstract void update();", "public abstract void updateVertices();", "public void pointsCollected(List<Point> points);", "private void update()\n {\n // while there is still a need to draw\n if(currentX < lengthX && currentX > -lengthX)\n {\n System.out.println(\"checking\");\n currentX = currentX + increment;\n double r = polar1(currentX);\n double newX = convertX(r, currentX);\n double newY = convertY(r, currentX);\n points1.add(new Point2D.Double(newX, newY));\n points2.add(new Point2D.Double(parametric1x(currentX), parametric1y(currentX)));\n }\n else { // cleanup for the next thread\n draw = false;\n }\n }", "public void setPoints(int points) {\n\t\tthis.points = points;\n\t}", "public void calculatePoints() {\n /*\n for (int i = 0; i < getRacers().size(); i++) {\n String username = getRacers().get(i).getUsername();\n int total = 0;\n for (int j = 0; j < getRounds().size(); j++) {\n Slot slot = getRounds().get(j).findRacerInRound(username);\n if (slot != null) {\n total = total + slot.getPoints();\n }\n }\n getRacers().get(i).setPoints(total);\n }*/\n }", "public void update() {}", "public void resetPoints() {\n points = 0;\n }", "void addPointsToScore(int points) {\n score += points;\n }", "void updateStepCoordiantes(){\n if(xIncreasing) {\n lat = lat + STEP_LENGTH * yCompMotion * degToMRatio;\n displayLat = displayLat + STEP_LENGTH*yCompMotion*degToMRatio;\n }\n else{\n lat = lat - STEP_LENGTH * yCompMotion * degToMRatio;\n displayLat = displayLat - STEP_LENGTH*yCompMotion*degToMRatio;\n }\n if(yIncreasing) {\n lon = lon + STEP_LENGTH * xCompMotion * degToMRatio;\n dispalyLon= dispalyLon + STEP_LENGTH*xCompMotion*degToMRatio;\n }\n else{\n lon = lon - STEP_LENGTH * xCompMotion * degToMRatio;\n dispalyLon= dispalyLon - STEP_LENGTH*xCompMotion*degToMRatio;\n }\n }", "public void update(){}", "public void update(){}", "public abstract void setPoint(Point p);", "public void setPoint(double point){\r\n this.point = point;\r\n }", "private void updatePosition() {\n position.add(deltaPosition);\n Vector2[] points = getRotatedPoints();\n\n for (Vector2 point : points) {\n if (point.getX() < bound.getX() || point.getX() > bound.getX() + bound.getWidth()) { //If the point is outside of the bounds because of X\n position.addX(-deltaPosition.getX() * 2); //Undo the move so it is back in bounds\n deltaPosition.setX(-deltaPosition.getX()); //Make the direction it is going bounce to the other direction\n break;\n }\n if (point.getY() < bound.getY() || point.getY() > bound.getY() + bound.getHeight()) { //If the point is outside of the bounds because of Y\n position.addY(-deltaPosition.getY() * 2); //Undo the move so it is back in bounds\n deltaPosition.setY(-deltaPosition.getY()); //Make the direction it is going bounce to the other direction\n break;\n }\n }\n deltaPosition.scale(.98);\n }", "private void addPoint(){\n\n userList.addUserCorrect();\n userList.addUserAttempt();\n\n\n //This if levels up the user if they have reached the number of points needed\n if (userList.findCurrent().getNumPointsNeeded()\n <= userList.findCurrent().getNumQuestionsCorrect()) {\n\n userList.addUserPointsNeeded();//increment points needed to level up\n userList.levelUpUser();\n }\n }", "public void setPilotPoints(int points) {\n if (pointsPullCheck(points)) {\n pilotPoints += points;\n }\n }", "public void update() ;", "public abstract int getPoints();", "public void addPoint_action()\r\n/* */ {\r\n/* 94 */ this.points_action += 1;\r\n/* */ }", "@Override\n public void move() {\n this.point.x += vector.x * getCurrentSpeed();\n this.point.y += vector.y * getCurrentSpeed();\n }", "public void update(double[] point) {\n checkNotNull(point, \"point must not be null\");\n checkArgument(point.length == dimensions, String.format(\"point.length must equal %d\", dimensions));\n executor.update(point);\n }", "public void changePos(double xP, double yP){ \n this.xCoor += xP;\n this.yCoor += yP;\n \n }", "private static int gainStatPoints(int statPoints){\r\n statPoints++;\r\n System.out.println(\"You have \" + statPoints + \" stat points available.\");\r\n return statPoints;\r\n }", "public void setPoints(List<GeoPoint> points){\n\t\tclearPath();\n\t\tint size = points.size();\n\t\tmOriginalPoints = new int[size][2];\n\t\tfor (int i=0; i<size; i++){\n\t\t\tGeoPoint p = points.get(i);\n\t\t\tmOriginalPoints[i][0] = p.getLatitudeE6();\n\t\t\tmOriginalPoints[i][1] = p.getLongitudeE6();\n\t\t\tif (!mGeodesic){\n\t\t\t\taddPoint(p);\n\t\t\t} else {\n\t\t\t\tif (i>0){\n\t\t\t\t\t//add potential intermediate points:\n\t\t\t\t\tGeoPoint prev = points.get(i-1);\n\t\t\t\t\tfinal int greatCircleLength = prev.distanceTo(p);\n\t\t\t\t\t//add one point for every 100kms of the great circle path\n\t\t\t\t\tfinal int numberOfPoints = greatCircleLength/100000;\n\t\t\t\t\taddGreatCircle(prev, p, numberOfPoints);\n\t\t\t\t}\n\t\t\t\taddPoint(p);\n\t\t\t}\n\t\t}\n\t}", "public void updateXLoc();", "public void update();", "public void update();", "public void update();", "public void update();", "public void update();", "public void update();", "public void update();", "abstract public void update();", "@FXML\r\n private void addPoints() {\r\n if (diffPoint > 0) {\r\n int f1 = Integer.parseInt(strength.getText());\r\n int f2 = f1 + 1;\r\n strength.setText(String.valueOf(f2));\r\n diffPoint--;\r\n point.setText(\"You have \" + diffPoint + \" points\");\r\n }\r\n }", "private void updatePointArray(\n\t\t\tJInternalFrame heart, JInternalFrame cal, JInternalFrame min, JInternalFrame sed)\n\t{\n\t\t\n\t\tPoint heartRateFramePoint = heart.getLocation();\n\t\tPoint calBurnFramePoint = cal.getLocation();\n\t\tPoint activeMinFramePoint = min.getLocation();\n\t\tPoint sedMinFramePoint = sed.getLocation();\n\t\t\n\t\tthis.setPointArray(heartRateFramePoint, calBurnFramePoint, activeMinFramePoint, sedMinFramePoint);\n\t\t\n\t}", "public void setPointsInfo(PointsInfo[] pointsInfo) {\n this.pointsInfo = pointsInfo;\n }", "public void awardPoints(int points)\n {\n score += points ;\n }", "public double getPoints()\r\n {\r\n return points;\r\n }", "public void update() {\n }", "public int getPoints();", "public void incrementPoints(){\n nbPointsMap++;\n if(getNbPointsMap()==getNbPointsMapMax()){\n ConclusionPacman conclusion = new ConclusionPacman(stage,true,nbPoints.get(), this);\n }\n }", "public void update() {\n\n }", "public void update() {\n\n }", "public void setPoints(String points);", "protected abstract void update();", "@FXML\r\n private void addPointsIn() {\r\n if (diffPoint > 0) {\r\n int f1 = Integer.parseInt(intelligence.getText());\r\n int f2 = f1 + 1;\r\n intelligence.setText(String.valueOf(f2));\r\n diffPoint--;\r\n point.setText(\"You have \" + diffPoint + \" points\");\r\n }\r\n }", "public void update(){\r\n }", "public void incrementVictoryPoints() {\n\t\tthis.totalVictoryPoints++;\n\t}", "private void checkPoints() {\n if (mPointsManager.getScore() < 20 && !SharedDataManager.isHuntReady(this)) {\n /* Before the 30 points 'reward', player must have no locked target in history */\n if (SharedDataManager.isLockedTargetInHistory(MainActivity.this)) {\n return;\n }\n mPointsManager.setScore(30);\n updateInfo();\n try {\n if (!requestingPoints) {\n requestingPoints = true;\n /* Update the value in the server database if possible */\n mPointsManager.updateInDatabase(MainActivity.this, new ResponseTask.OnResponseTaskCompleted() {\n @Override\n public void onResponseTaskCompleted(Request request, Response response, OHException ohex, Object data) {\n /* It's ok if the request was not successful, the update will be done later */\n requestingPoints = false;\n }\n });\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public void update(Point point)\n {\n rectangle.set(point.x - rectangle.width()/2, point.y - rectangle.height()/2, point.x + rectangle.width()/2,point.y + rectangle.height()/2);\n\n //hitBox(this.rectangle);\n }", "int getPoints();", "public void setFighterPoints(int points) {\n if (pointsPullCheck(points)) {\n fighterPoints += points;\n }\n }", "public void update() {\n\n difT();\n difXY();\n solveFlow();\n //drawColorFlow();\n }", "private void updateScore(int point){\n mScoreView.setText(\"\" + mScore);\n }", "@Override\n public void update() {\n \n }" ]
[ "0.81227314", "0.742128", "0.7315424", "0.7078705", "0.7050182", "0.6886994", "0.6854011", "0.6798531", "0.67973995", "0.6774254", "0.6749278", "0.6677003", "0.66460645", "0.6618703", "0.655445", "0.6529686", "0.6522992", "0.64900315", "0.6489052", "0.64884377", "0.6468875", "0.64469314", "0.6428563", "0.642794", "0.64254034", "0.6419873", "0.6407931", "0.63861877", "0.63830465", "0.6362786", "0.63607943", "0.63309735", "0.6324663", "0.6324663", "0.6311728", "0.6310373", "0.62990016", "0.62895364", "0.6266354", "0.626607", "0.62605256", "0.62260854", "0.62222856", "0.62164956", "0.62164956", "0.62137496", "0.61869884", "0.6175975", "0.6171037", "0.6168801", "0.616617", "0.6147289", "0.61410487", "0.6139721", "0.61347264", "0.611652", "0.6114009", "0.61068666", "0.610467", "0.6096843", "0.6096843", "0.6096843", "0.6096843", "0.6096843", "0.6096843", "0.6096843", "0.6091456", "0.6090751", "0.6088918", "0.60863936", "0.608317", "0.6082228", "0.6078527", "0.6073126", "0.6072819", "0.6067722", "0.6067722", "0.60629976", "0.60583586", "0.60553396", "0.60538447", "0.60414356", "0.6039046", "0.6038219", "0.6038219", "0.6038219", "0.6038219", "0.6038219", "0.6038219", "0.6038219", "0.6038219", "0.6038219", "0.6038219", "0.6038219", "0.6038219", "0.6037726", "0.6028358", "0.6016507", "0.6013806", "0.5986163", "0.59859276" ]
0.0
-1
Custom method Get points by customer id
@GetMapping("/points/{customerId}") @ResponseStatus(HttpStatus.OK) public int retrievePointsByCustomerId(@PathVariable("customerId") int customerId) { return serviceLayer.getPoints(customerId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCustomer(String custId);", "Customer getCustomerById(final Long id);", "public Customer getCustomers(int customerId) {\n for(Customer customer:customers){\n if(customer.getId() == customerId){\n return customer;\n }\n }\n return null;\n }", "Customer getCustomerById(int customerId);", "@Override\n public JSONObject viewCustomerById(long id) {\n\n return in_salescustdao.viewSLCustomerByID(id);\n }", "@Query(\"from OfferPrice o where o.customer.id = :customerId\")\n\tList<OfferPrice> findWithCustomerId(@Param(\"customerId\")Long customerId);", "@GetMapping(\"/customer/{id}\")\r\n\tpublic Customer viewCustomerbyId(@PathVariable(\"id\") int customerId){\r\n\t\tif(custService.viewCustomerbyId(customerId)==null) {\r\n\t\t\tthrow new CustomerNotFoundException(\"Customer not found with this id\" +customerId);\r\n\t\t}\r\n\t\treturn custService.viewCustomerbyId(customerId);\r\n\t\t\r\n\t}", "public List<Customer> getCustomerByID() {\n Query query = em.createNamedQuery(\"Customer.findByCustomerId\")\r\n .setParameter(\"customerId\", custID);\r\n // return query result\r\n return query.getResultList();\r\n }", "@GetMapping(\"/customers/{customer_id}\")\n\tpublic Customer getcustomer(@PathVariable(\"customer_id\") int customerid) {\n\t\tCustomer thecustomer=thecustomerService.getCustomer(customerid);\n\t\tif(thecustomer==null) {\n\t\t\tthrow new CustomerNotFoundException(\"Customer with id : \"+customerid+\" not found\");\n\t\t}\n\t\t\n\t\treturn thecustomer;\n\t}", "@Override\n public CustomerEntity getCustomerData(Long id) {\n return customerPersistencePort.getUser(id);\n }", "@Override\n public JSONObject viewSLCustomerByID(long id) {\n\n return in_salescustdao.viewSLCustomerByID(id);\n }", "@Override\n\tpublic List<Customer> getCustomerById(int customerid) {\n\t\treturn null;\n\t}", "BonusResponse get(Long customerId, Long bonusId);", "@Override\r\n\tpublic Customer getCustomer(int customerID) {\n\t\treturn null;\r\n\t}", "public static Customer getCustomer(int _customerID) throws SQLException{\n ResultSet rs = ConnectionManager.selectAllColumns(\"Tbl_Customer_GroupNo\", \"CustomerID= \"+_customerID);\n if(rs.next()){\n Customer cus = new Customer(rs.getInt(\"CustomerId\"), rs.getString(\"FirstName\"), rs.getString(\"LastName\"), rs.getString(\"Address\"), rs.getString(\"Email\"), rs.getString(\"Phone\"));\n return cus;\n }else{\n return null;\n }\n }", "@Override\n\tpublic Customer viewCustomer(int customerId) {\n\t\t// TODO Auto-generated method stub\n\t\tCustomer cust = repository.findById(customerId)\n\t\t\t\t.orElseThrow(() -> new EntityNotFoundException(\"Currently No Customer is available with this id\"));\n\t\treturn cust;\n\t}", "String getCustomerID();", "@Override\n\tpublic CustomerData getCustomer(Long custId) {\n\t \n\t\tOptional<CustomerData> optionalCust = customerRepository.findById(custId);\n\t\t//Optional object use for check if a customer id is existing or not\n if(optionalCust.isPresent()) {\n return optionalCust.get(); //if customer id is exist then return a value\n }\n\t\treturn null;\n\t\t\n\t}", "java.lang.String getCustomerId();", "java.lang.String getCustomerId();", "@Override\n\tpublic PointVO getPoint(String id) throws Exception {\n\t\treturn null;\n\t}", "public Customer displayCustomer(int cid);", "public static Customer getCustomer(int id_cust) {\n Connection c = connection();\n PreparedStatement stmt;\n int id = 0;\n String name = null;\n String email = null;\n String password = null;\n Customer customer = null;\n try {\n String sql = \"SELECT * FROM customer WHERE id=?;\";\n stmt = c.prepareStatement(sql);\n stmt.setInt(1, id_cust);\n ResultSet rs = stmt.executeQuery();\n while (rs.next()) {\n id = rs.getInt(\"id\");\n name = rs.getString(\"name\");\n email = rs.getString(\"email\");\n password = rs.getString(\"password\");\n }\n stmt.close();\n c.close();\n customer = new Customer(id, name, email, password);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return customer;\n }", "@Override\n\tpublic Customer retrieveCustomer(Integer id) {\n\n\t\tCustomer customer = new Customer();\n\n\t\tfor (Customer cust : customers) {\n\t\t\tif (cust.getId() == id) {\n\t\t\t\tcustomer.setId(id);\n\t\t\t\tcustomer.setUsername(cust.getUsername());\n\t\t\t\tcustomer.setFirstName(cust.getFirstName());\n\t\t\t\tcustomer.setLastName(cust.getLastName());\n\t\t\t\tcustomer.setEmail(cust.getEmail());\n\t\t\t\tcustomer.setUserType(cust.getUserType());\n\t\t\t\tcustomer.setPassword(cust.getPassword());\n\t\t\t\tcustomer.setAddress(cust.getAddress());\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"A GET call retrieved a customer: retrieveCustomer()\");\n\t\treturn customer;\n\t}", "public ArrayList<Hotel> getCustomerHotels(Integer customerId);", "@Override\n public Customer getCustomerById(Long id) {\n log.debug(\"Inside getCustomerById method\");\n return customerRepository.findById(id).orElseThrow(\n () -> new ResourceNotFoundException(\"No customer present with the id : \" + id));\n }", "@Override\n\tpublic Customer getCustomers(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// retrieve object from database using the ID\n\t\tCustomer theCustomer = currentSession.get(Customer.class, theId);\n\t\t\n\t\t// return the results\n\t\treturn theCustomer;\n\t}", "public static ArrayList<CustomerBean> getCutomersById(int customerID) {\r\n\t\tCustomerBean bean = null;\r\n\t\tArrayList<CustomerBean> customerList = new ArrayList<CustomerBean>();\r\n\t\tint customerId, familyMember;\r\n\t\tdouble monthlyIncome, familyIncome;\r\n\t\tString customerName, cnicNo, phoneNo, address, district, customer_pic, accountCreatedDate;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT customer_id, customer_name, customer_cnic, customer_address, customer_district, customer_family_size, customer_phone,customer_monthly_income, customer_family_income, customer_payment_type, customr_image, created_on FROM customer where customer_id=?;\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tstmt.setInt(1, customerID);\r\n\t\t\tResultSet rs = stmt.executeQuery(query);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\taddress = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tfamilyMember = rs.getInt(6);\r\n\t\t\t\tphoneNo = rs.getString(7);\r\n\t\t\t\tmonthlyIncome = rs.getDouble(8);\r\n\t\t\t\tfamilyIncome = rs.getDouble(9);\r\n\t\t\t\trs.getString(10);\r\n\t\t\t\tcustomer_pic = rs.getString(11);\r\n\t\t\t\taccountCreatedDate = rs.getString(12);\r\n\t\t\t\tbean = new CustomerBean();\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setAddress(address);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setFamilyMember(familyMember);\r\n\t\t\t\tbean.setFamilyIncome(familyIncome);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\r\n\t\t\t\tbean.setAccountCreatedDate(accountCreatedDate);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\t\t\t\tbean.setCustomer_pic(customer_pic);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\r\n\t\t\trs.close();\r\n\t\t\tstmt.close();\r\n\t\t\tcon.close();\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}", "public Integer getCustomerId()\n {\n return customerId;\n }", "public int getCustomerId() \n {\n return customerId;\n }", "@Override\n\tpublic Customer getCustomer(Integer id) {\n\t\treturn customerDao.findById(id);\n\t}", "Customer findById(Long id);", "public static CustomerBean getCutomer(int customerID) {\r\n\t\tCustomerBean bean = null;\r\n\t\tint customerId;\r\n\t\tdouble monthlyIncome, familyIncome;\r\n\t\tString customerName, cnicNo, phoneNo, address, district, customer_pic, accountCreatedDate;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT customer_id, customer_name, customer_cnic, customer_address, city_name, customer_phone,customer_monthly_income, customer_family_income, customr_image,created_on FROM customer join city on customer_city=city_id Where customer_id = ?;\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tstmt.setInt(1, customerID);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\taddress = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\r\n\t\t\t\tphoneNo = rs.getString(7);\r\n\t\t\t\tmonthlyIncome = rs.getDouble(8);\r\n\t\t\t\tfamilyIncome = rs.getDouble(9);\r\n\r\n\t\t\t\tcustomer_pic = rs.getString(11);\r\n\t\t\t\taccountCreatedDate = rs.getString(12);\r\n\t\t\t\tbean = new CustomerBean();\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setAddress(address);\r\n\t\t\t\tbean.setDistrict(district);\r\n\r\n\t\t\t\tbean.setFamilyIncome(familyIncome);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\r\n\t\t\t\tbean.setAccountCreatedDate(accountCreatedDate);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\t\t\t\tbean.setCustomer_pic(customer_pic);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn bean;\r\n\t}", "public Customer getSpecificCustomerById(String customerId){\n Customer specificCustomer = null;\n\n try{\n // try and connect\n conn = DriverManager.getConnection(URL);\n\n // make sql query\n PreparedStatement preparedStatement =\n conn.prepareStatement(\"SELECT CustomerId, FirstName, LastName, Country, PostalCode, Phone, Email FROM Customer WHERE CustomerId=?\");\n preparedStatement.setString(1, customerId);\n // execute query\n ResultSet set = preparedStatement.executeQuery();\n\n while(set.next()){\n specificCustomer = new Customer(\n set.getString(\"CustomerId\"),\n set.getString(\"FirstName\"),\n set.getString(\"LastName\"),\n set.getString(\"Country\"),\n set.getString(\"PostalCode\"),\n set.getString(\"Phone\"),\n set.getString(\"Email\")\n );\n }\n }\n catch(Exception exception){\n System.out.println(exception.toString());\n }\n finally{\n try{\n conn.close();\n }\n catch (Exception exception){\n System.out.println(exception.toString());\n }\n }\n return specificCustomer;\n }", "@Override\n\tpublic Customer getCustomer(long id) throws Exception {\n\t\tConnection con = pool.getConnection();\n\t\tCustomer customer = new Customer();\n\t\ttry {\n\t\t\tString getCustomer = String.format(\"select * from customer where id in('%d')\", id);\n\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(getCustomer);\n\n\t\t\tif (rs.next()) {\n\t\t\t\tcustomer.setId(id);\n\t\t\t\tcustomer.setCustName(rs.getString(\"Cust_Name\"));\n\t\t\t\tcustomer.setPassword(rs.getString(\"Password\"));\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"Customer \" + customer.getCustName() + \" ID: \" + customer.getId() + \" was retrived.\");\n\t\t\t} else {\n\t\t\t\tthrow new Exception(\"Customer with ID: \" + id + \" was not found in the DB.\");\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage() + \" Could not retrieve data from DB.\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage() + \" Could not close connection\");\n\t\t\t}\n\t\t}\n\t\treturn customer;\n\t}", "public Customer getCustom(short customerId) {\n\t\treturn custom.selectByPrimaryKey(customerId);\n\t\t\n\t}", "List<CityDTORest> getRoutePointsForOrder(Long id);", "@Override\n\tpublic Customer getCustomer(int id) {\n\t\treturn sessionFactory.getCurrentSession().get(Customer.class, id);\n\t}", "@GetMapping(\"/points/total/{cust_name}\")\n public String getRewardPointsByName(@PathVariable(\"cust_name\") String cus_name) {\n return customerData.rewardPoints(cus_name);\n }", "public int getCustomerId() {\n return customerId;\n }", "public int getCustomerId() {\n return customerId;\n }", "public ArrayList<Hotel> getUserHotels(Integer userId, Integer customerId);", "@Override\n public Personn findById(Integer idCustomer) {\n return manager.find(Personn.class,idCustomer );\n //return findByCriteria(criteria);\n }", "Optional<Point> getCoordinate(int id);", "@GetMapping(\"/customer/{id}\")\n\tpublic ResponseEntity<Object> getCustomerDetailed(@PathVariable(\"id\") Integer id, HttpServletRequest request){\n\t\tif(service.findByEmail(SessionManager.getInstance().getSessionEmail(request.getSession())) == null) {\n\t\t\tSessionManager.getInstance().delete(request.getSession());\n\t\t\treturn new ResponseEntity<>(HttpStatus.UNAUTHORIZED); \n\t\t}else {\n\t\t\tCustomer cus = cService.findById(id);\n\t\t\tif(cus == null) return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n\t\t\tMappingJacksonValue mappedCustomer = new MappingJacksonValue(cus);\n\t\t\tmappedCustomer.setFilters(new SimpleFilterProvider().addFilter(Customer.FILTER, SimpleBeanPropertyFilter.serializeAll()));\n\t\t\treturn new ResponseEntity<>(mappedCustomer, HttpStatus.OK);\n\t\t}\n\t}", "@GetMapping(\"/{customerid}\")\n public ResponseEntity<List<Order>> byCustomer(@PathVariable(value = \"customerid\") Long customerId) {\n return new ResponseEntity<>(orderService.getAllByCustomerId(customerId), HttpStatus.OK);\n }", "@RequestMapping(value = \"/customer-addres/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<CustomerAddres> getCustomerAddres(@PathVariable Long id) {\n log.debug(\"REST request to get CustomerAddres : {}\", id);\n CustomerAddres customerAddres = customerAddresRepository.findOne(id);\n return Optional.ofNullable(customerAddres)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }", "com.google.ads.googleads.v6.resources.Customer getCustomer();", "public Customer findCustomerById(long id) throws DatabaseOperationException;", "@Override\n\tpublic Customer getCustomer(int customerId) {\n\t\tSession session=sessionFactory.getCurrentSession();\n\t\ttry {\n\t\t\t\n\t\t\tCustomer customer =session.get(Customer.class, customerId);\n\t\t return customer;\t\t\t\n\t\t}\n\t\tcatch(HibernateException exception){\n\t\t\texception.printStackTrace();\n\t\t}\n\t\treturn null;\n\t\t\n\t}", "@RequestMapping(method = RequestMethod.GET, value = \"/{id}\")\n\t public ResponseEntity<Customer> getCustomerWithId(@PathVariable Long id) {\n\t return service.getCustomerWithId(id);\n\t }", "public int getCustomerID() {\n return customerID;\n }", "CustomerDTO getCustomerDetails(Long customerId,String userName) throws EOTException;", "@Override\r\n\tpublic Customer findByKey(int id) throws SQLException {\r\n\t\tString selectSql = \"SELECT * FROM \" + tableName + \" WHERE (id = ?)\";\r\n\t\tCustomer customer = null;\r\n\t\ttry {\r\n\t\t\t//connection = ds.getConnection();\r\n\t\t\tpreparedStatement = connection.prepareStatement(selectSql);\r\n\t\t\tpreparedStatement.setInt(1, id);\r\n\t\t\tResultSet rs = preparedStatement.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomer = new Customer();\r\n\t\t\t\tcustomer.setId(rs.getInt(\"id\"));\r\n\t\t\t\tcustomer.setName(rs.getString(\"name\"));\r\n\t\t\t\tcustomer.setSurname(rs.getString(\"surname\"));\r\n\t\t\t\tcustomer.setBirthdate(rs.getDate(\"birth_date\"));\r\n\t\t\t\tcustomer.setBirthplace(rs.getString(\"birth_place\"));\r\n\t\t\t\tcustomer.setAddress(rs.getString(\"address\"));\r\n\t\t\t\tcustomer.setCity(rs.getString(\"city\"));\r\n\t\t\t\tcustomer.setProvince(rs.getString(\"province\"));\r\n\t\t\t\tcustomer.setCap(rs.getInt(\"cap\"));\r\n\t\t\t\tcustomer.setPhoneNumber(rs.getString(\"phone_number\"));\r\n\t\t\t\tcustomer.setNewsletter(rs.getInt(\"newsletter\"));\r\n\t\t\t\tcustomer.setEmail(rs.getString(\"email\"));\r\n\t\t\t}\r\n\t\t\tconnection.commit();\r\n\t\t} catch (SQLException e) {\r\n\t\t}\r\n\t\treturn customer;\r\n\t}", "public void retrieveACustomerWithID(long id) {\r\n\t\tSystem.out.println(\"\\nCustomer with id \" + id);\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\ttx.begin();\r\n\t\tCustomer2 customer = em.find(Customer2.class, id);\r\n\t\tif(customer == null){\r\n\t\t\tSystem.out.println(\"\\nNo such customer with id: \" + id);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tSystem.out.println(customer);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}", "String getCustomerNameById(int customerId);", "@RequestMapping(\"/myCustomers/{id}\")\n\tpublic String myCustomers(@PathVariable(\"id\") int id, Model m, Principal princpl) {\n\t\t\n\t\tAgentModel agentById = this.servimple.getAgentModelById(id);\n\t\tif(agentById.getPosition().equals(\"Active\")) {\n\t\t\t\n\t\tCustomerModel[] allCustomer = this.servimple.customerByAgent(id);\n\t\tterget = \"Customer Details\";\n\t\tm.addAttribute(\"mycustomr\", allCustomer);\n\t\tm.addAttribute(\"terget\", terget);\n\t\treturn \"Agent/CustomerByAgent\";\n\t\t}\n\t\t\n\t\telse {\n\t\t\tm.addAttribute(\"sorry\", \"Sorry! Your Id is Deactivated. To activate your id Plz Contact to Admin.\");\n\t\t\treturn \"Agent/agentPanel\";\n\t\t}\n\t\t\n\t}", "@GetMapping(\"/customer/{id}\")\n\tpublic ResponseEntity<Customer> getCustomerById(@PathVariable Long id) {\n\t\tCustomer customer = customerRepository.findById(id)\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"Customer not exist with id :\" + id));\n\t\treturn ResponseEntity.ok(customer);\n\t}", "FetchRequest<Customer> byId(String id);", "@Override\r\n\tpublic Customer getCustomerById(int id) {\n\t\treturn customerdao.getCustomerById(id);\r\n\t}", "static Customer getCustomerWithId(int id){ return new Customer();}", "public CustomerPurchase getById(Integer id) throws SQLException;", "@Override\n\tpublic Customer getCustomerById(long customerId) {\n\t\treturn null;\n\t}", "@Override\n public Customer getCustomer(Long userId) {\n Optional<Customer> customer = customerDao.getCustomer(userId);\n if (!customer.isPresent()) {\n logger.error(\"Customer with this id {} doesn't exist\", userId);\n }\n return customer.orElseThrow(ResourceNotFoundException::new);\n }", "public String queryCustomerInfo(int id, int customerID)\n throws RemoteException, DeadlockException;", "public Long getCustomerId() {\n return customerId;\n }", "public Customer getCustomerBy_id(ObjectId _id) {\n\t\treturn custRepo.findBy_id(_id);\n\t}", "public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }", "@RequestMapping( value = CONTEXT_URL + \"/id/{id}\",\n method = RequestMethod.GET,\n produces = {MediaType.APPLICATION_JSON_VALUE} )\n public CustomerDTO getCustomer( @PathVariable String id )\n throws CustomerNotFoundException\n {\n final String methodName = \"getCustomer\";\n logMethodBegin( methodName, id );\n CustomerDTO customerDTO = this.customerEntityService\n .getCustomerDTO( UUIDUtil.uuid( id ));\n logMethodEnd( methodName, customerDTO );\n return customerDTO;\n }", "@RequestMapping(value = \"/ws/customers/{id}\", method = RequestMethod.GET)\n public @ResponseBody\n CustomerDto getCustomer(@PathVariable(\"id\") Long customerId) {\n logger.info(\"Tries to find customer by id={}\", customerId);\n\n return customerAssembler.assembly(getCustomerById(customerId));\n }", "public String getCustomerId() {\n return customerId;\n }", "public String getCustomerId() {\n return customerId;\n }", "@GetMapping(\"/api/customer/{id}\")\n\tpublic ResponseEntity<CustomerDetails> getCustomerDetailsByID(@PathVariable(\"id\") long id) {\n\t\tCustomerDetails customerDetails = customerService.getCustomerDetailsByID(id);\n\t\treturn ResponseEntity.ok().body(customerDetails);\n\n\t}", "public Customer getCustomerById(Integer id) throws DataNotFoundException {\n Optional<Customer> optionalCustomer = customerRepository.findById(id);\n if(optionalCustomer.isPresent())\n return optionalCustomer.get();\n else\n throw new DataNotFoundException(\"Customer with id: \" + id + \" not found\");\n }", "ListResponse<BonusResponse> getAll(int start, int size, Long customerId);", "public String getCustomerid() {\n return customerid;\n }", "@GET\n\t@Path(\"get\")\n\tpublic Customer getCustomer(@QueryParam(\"id\") int id) {\n\t\treturn ManagerHelper.getCustomerManager().get(id);\n\n\t}", "List<Account> getAccountsForCustomerId(int customerId);", "@Override\n\tpublic Customer fetchCustomerByIdWithBills(Long id) {\n\t\treturn customerDAO.fetchByIdWithBills(id);\n\t}", "@Override\n\tpublic Customer findCustomer(int customerId) {\n\t\treturn null;\n\t}", "@Override\n\tpublic Customer show(int id) {\n\t\t\n\t\tOptional<Customer> customerOpt = this.customerRepo.findById(id);\n\t\tif(customerOpt.isPresent()) {\n\t\t\tCustomer customer = customerOpt.get();\n\t\t\treturn customer;\n\t\t}\n\t\telse {\n\t\t\treturn null;\n\t\t}\n\t}", "CustomerVisit selectByPrimaryKey(Integer id);", "@RequestMapping(value = \"/customer/{id}\",method=RequestMethod.GET)\n @ResponseStatus(HttpStatus.OK)\n public CustomerViewModel findCustomerById(@PathVariable(\"id\") int id){\n //create a customer View Model using the find method from the service layer\n CustomerViewModel customerViewModel = service.findCustomer(id);\n\n //if it does not exist, through an illegal argument exception\n if(customerViewModel == null){\n //throw new\n }\n\n //return the requested customer View Model\n return customerViewModel;\n }", "public Customer getCustomer(String customerID, DataPool allData){\r\n\t\t\r\n\t\tif (allData == null || customerID== null) \r\n\t\t\treturn null;\r\n\t\treturn treeData.get(customerID);\r\n\t\t\r\n\t}", "Customer getCustomer();", "@Override\r\n\tpublic Customer getCustomer(String custId) {\r\n\t\tOptional<Customer> optionalCustomer = null;\r\n\t\tCustomer customer = null;\r\n\t\toptionalCustomer = customerRepository.findById(custId);\r\n\t\tif (optionalCustomer.isPresent()) {\r\n\t\t\tcustomer = optionalCustomer.get();\r\n\t\t\treturn customer;\r\n\t\t} else {\r\n\t\t\tthrow new EntityNotFoundException(\"Customer With Id \" + custId + \" does Not Exist.\");\r\n\t\t}\r\n\r\n\t}", "public int getCustomerID()\r\n\t{\r\n\t\treturn customerID;\r\n\t}", "public static ArrayList<CustomerInfoBean> getDoCutomers(int districtId) {\r\n\t\tSystem.out.println(\"CustomerBAL.get_do_customers()\");\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status, familySize, state;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tConnection connection = Connect.getConnection();\r\n\t\ttry {\r\n\t\t\tif (connection != null) {\r\n\t\t\t\t// Begin Stored Procedure Calling -- Jetander\r\n\t\t\t\tCallableStatement prepareCall = connection\r\n\t\t\t\t\t\t.prepareCall(\"{call get_do_customers(?)}\");\r\n\t\t\t\tprepareCall.setInt(1, districtId);\r\n\t\t\t\tResultSet rs = prepareCall.executeQuery();\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\t\tstate = rs.getInt(8);\r\n\t\t\t\t\tsalesmanName = rs.getString(9);\r\n\t\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\t\tstatus = rs.getInt(13);\r\n\t\t\t\t\tfamilySize = rs.getInt(14);\r\n\t\t\t\t\t// End Stored Procedure Calling -- Jetander\r\n\t\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\t\t\t\t\tbean.setApplianceStatus(state);\r\n\t\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\t\tbean.setStatus(status);\r\n\t\t\t\t\tbean.setFamilySize(familySize);\r\n\t\t\t\t\tcustomerList.add(bean);\r\n\t\t\t\t}\r\n\t\t\t\trs.close();\r\n\t\t\t\tconnection.close();\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}", "io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer();", "public ResponseEntity<customer.controller.Customer> getCustomerById(Long id);", "public Integer getCustomerID() {\n return customerID;\n }", "public void lookupCustomer(String customerId) {\r\n customer = transaction.getCustomerInfo(customerId);\r\n }", "public Customer getCustomer(String cID, ArrayList<Customer> customers) throws NotFoundException\r\n\t{\t\r\n\t\tCustomer cust = null;\r\n\t\tfor(int i=0; i<customers.size(); i++)\r\n\t\t{\r\n\t\t\tif(customers.get(i).getcID().equals(cID))\r\n\t\t\t\tcust = customers.get(i);\r\n\t\t}\r\n\t\t\r\n\t\tif(cust == null)\r\n\t\t\tthrow new NotFoundException(cID);\r\n\t\t\r\n\t\treturn cust;\t\t\r\n\t}", "@Override\n public List<Account> findAllByCustomerId(String customerId) {\n Query findByCustomer = new Query();\n findByCustomer.addCriteria(Criteria.where(\"customerId\").is(customerId));\n return operations.find(findByCustomer, Account.class);\n }", "@Override\n\n\t\tpublic List<Bill> viewBillsByCustomerId(String custId) {\n\t\t\tList<Bill> bills = billDao.findBillByCustomerId(custId);\n\t\t\tif(bills.size()==0) {\n\t\t\t\tthrow new BillNotFoundException(\"No bills with given customer id\");\n\t\t\t}\n\t\t\treturn bills;\n\t\t}", "@RequestMapping(value = \"/v2/customers\", method = RequestMethod.GET)\r\n\tpublic List<Customer> customers() {\r\n JPAQuery<?> query = new JPAQuery<Void>(em);\r\n QCustomer qcustomer = QCustomer.customer;\r\n List<Customer> customers = (List<Customer>) query.from(qcustomer).fetch();\r\n // Employee oneEmp = employees.get(0);\r\n\t\treturn customers;\r\n }", "public Customer getCustomerByName(String customerName);", "public Customer getCustomer(String id) {\n\t\tString firstName = \"\";\n//\t\tString lastName = \"\";\n//\t\tString address = \"\";\n//\t\tString creditCard = \"\";\n//\t\tString phone = \"\";\n//\t\tArrayList<Order> orders = new ArrayList<>();\n\t\tConnection connection = DBConnect.getDatabaseConnection();\n\t\t\n\t\ttry {\n\t\t\tStatement selectStatement = connection.createStatement();\n\t\t\t\n\t\t\tString selectQuery = \"SELECT * from Customer where CustomerID='\" + id +\"'\";\n\t\t\tResultSet resultSet = selectStatement.executeQuery(selectQuery);\n\t\t\tresultSet.next();\n\t\t\t\n\t\t\tfirstName = resultSet.getString(\"FName\");\n//\t\t\tlastName = resultSet.getString(\"lastName\");\n//\t\t\taddress = resultSet.getString(\"lastName\"); //TODO update this code: Address has it's own table . access AddressDAO object (use attribute line 21) \n//\t\t\tcreditCard = resultSet.getString(\"creditCard\"); //TODO same as Address. (attribute line 22) \n\n//\t\t\torders = orderDAO.getAllOrders(); //TODO fix me (make sure function returns something).\n\t\t\t\n\t\t}catch(SQLException se) {\n\t\t\tse.printStackTrace();\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 (SQLException e) {}\n\t\t\t}\n\t\t}\n\t\t\n\t\tCustomer customer = new Customer();\n\t\tcustomer.setFirstName(firstName);\n//\t\tcustomer.setLastName(lastName);\n//\t\t//TODO customer.setAddress(address); update\n//\t\t//TODO customer.setCard(creditCard); update\n//\t\tcustomer.setOrders(orders);\n\t\t\n\t\treturn customer;\n\t}", "public static CustomerInfoBean getCutomers(int soldID) {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, soldId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, createdOn, handoverAt;\r\n\t\tboolean state;\r\n\t\tBlob image;\r\n\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name , sal.salary_range, a.appliance_GSMno, \"\r\n\t\t\t\t\t+ \"a.appliance_status, s.salesman_name, sold.payement_option, sold.sold_to_id, sold.appliance_id, sold.customer_id, sold.salesman_id, cs.created_on, sold.product_handover,cs.status,cs.customr_image,d.district_name FROM sold_to sold INNER JOIN customer cs ON cs.customer_id=sold.customer_id \"\r\n\t\t\t\t\t+ \" INNER JOIN appliance a ON a.appliance_id=sold.appliance_id INNER JOIN salesman s ON s.salesman_id = sold.salesman_id join city c on cs.customer_city=c.city_id JOIN salary sal on cs.customer_monthly_income=sal.salary_id JOIN district d ON s.salesman_district=d.district_id WHERE sold.sold_to_id=?;\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tstmt.setInt(1, soldID);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerName = rs.getString(1);\r\n\t\t\t\tcnicNo = rs.getString(2);\r\n\t\t\t\tphoneNo = rs.getString(3);\r\n\t\t\t\tdistrict = rs.getString(19) + \"/\" + rs.getString(4);\r\n\t\t\t\tmonthlyIncome = rs.getString(5);\r\n\t\t\t\tgsmNumber = rs.getString(6);\r\n\t\t\t\tstate = rs.getBoolean(7);\r\n\t\t\t\tsalesmanName = rs.getString(8);\r\n\t\t\t\trs.getBoolean(9);\r\n\t\t\t\tsoldId = rs.getInt(10);\r\n\t\t\t\tapplianceId = rs.getInt(11);\r\n\t\t\t\tcustomerId = rs.getInt(12);\r\n\t\t\t\tsalesmanId = rs.getInt(13);\r\n\r\n\t\t\t\tcreatedOn = rs.getString(14);\r\n\t\t\t\thandoverAt = rs.getString(15);\r\n\t\t\t\tstatus = rs.getInt(16);\r\n\t\t\t\timage = rs.getBlob(17);\r\n\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSoldId(soldId);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setHandoverAt(handoverAt);\r\n\t\t\t\tbean.setCreatedOn(createdOn);\r\n\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tbean.setImage(image);\r\n\t\t\t}\r\n\r\n\t\t\trs.close();\r\n\t\t\tstmt.close();\r\n\t\t\tcon.close();\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn bean;\r\n\t}", "@GetMapping(\"/{id}\")\n public Customer getCustomer(@PathVariable long id){\n return customerRepository.findById(id);\n }" ]
[ "0.66678333", "0.6528641", "0.65059125", "0.64371055", "0.6370986", "0.6353332", "0.62746495", "0.6174383", "0.6167564", "0.61458755", "0.61425596", "0.6135432", "0.61285275", "0.60864484", "0.6081459", "0.60625166", "0.60383385", "0.6026971", "0.60227257", "0.60227257", "0.60105425", "0.60017264", "0.59980947", "0.5997921", "0.5997267", "0.5987824", "0.59841084", "0.5982776", "0.5971416", "0.5951993", "0.59488124", "0.59320277", "0.59269387", "0.59110594", "0.59055233", "0.5898828", "0.58954465", "0.5863288", "0.58626366", "0.58618426", "0.58618426", "0.5861554", "0.5855586", "0.5838276", "0.5834418", "0.5830991", "0.5823723", "0.5798478", "0.5790218", "0.5776067", "0.57739395", "0.5773644", "0.57658416", "0.57620585", "0.5744756", "0.57443935", "0.5742019", "0.57379127", "0.5733786", "0.5721984", "0.5708261", "0.5706283", "0.5703032", "0.5702768", "0.5702296", "0.569834", "0.5698312", "0.5697429", "0.5685391", "0.56812817", "0.5680362", "0.5680362", "0.56768", "0.5676521", "0.56749594", "0.5665876", "0.5662984", "0.5662413", "0.56521994", "0.56472045", "0.56342703", "0.56304324", "0.56300163", "0.5627312", "0.5623416", "0.5621806", "0.5617926", "0.560625", "0.56038696", "0.56018853", "0.5598755", "0.5590266", "0.55832165", "0.5582363", "0.55748415", "0.5572655", "0.55720025", "0.55714965", "0.5564703", "0.55616623" ]
0.7666842
0
Custom method Get account by Customer Id
@GetMapping("/customer/{customerId}") @ResponseStatus(HttpStatus.OK) public LevelUpViewModel getLevelUpAccountByCustomerId(@PathVariable("customerId") int customerId) { return serviceLayer.getLevelUpByCustomerId(customerId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCustomer(String custId);", "List<Account> getAccountsForCustomerId(int customerId);", "Customer getCustomerById(final Long id);", "Account getAccount(int id);", "Customer getCustomerById(int customerId);", "public MnoAccount getAccountById(String id);", "@Query(\"select acc from Account acc where acc.customer.customerId = :customerId\")\n\tAccount findAccountByCustomer(@Param(\"customerId\") Long customerId);", "UserAccount getUserAccountById(long id);", "java.lang.String getCustomerId();", "java.lang.String getCustomerId();", "@Override\n public List<Account> getAccounts(Long customerId) {\n return customerDao.getAccounts(customerId);\n }", "AccountDetail getAccount(String number) throws Exception;", "@Override\n public List<Account> findAllByCustomerId(String customerId) {\n Query findByCustomer = new Query();\n findByCustomer.addCriteria(Criteria.where(\"customerId\").is(customerId));\n return operations.find(findByCustomer, Account.class);\n }", "Customer findById(Long id);", "String getCustomerID();", "public static Customer getCustomer(int id_cust) {\n Connection c = connection();\n PreparedStatement stmt;\n int id = 0;\n String name = null;\n String email = null;\n String password = null;\n Customer customer = null;\n try {\n String sql = \"SELECT * FROM customer WHERE id=?;\";\n stmt = c.prepareStatement(sql);\n stmt.setInt(1, id_cust);\n ResultSet rs = stmt.executeQuery();\n while (rs.next()) {\n id = rs.getInt(\"id\");\n name = rs.getString(\"name\");\n email = rs.getString(\"email\");\n password = rs.getString(\"password\");\n }\n stmt.close();\n c.close();\n customer = new Customer(id, name, email, password);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return customer;\n }", "@Override\n\tpublic CustomerData getCustomer(Long custId) {\n\t \n\t\tOptional<CustomerData> optionalCust = customerRepository.findById(custId);\n\t\t//Optional object use for check if a customer id is existing or not\n if(optionalCust.isPresent()) {\n return optionalCust.get(); //if customer id is exist then return a value\n }\n\t\treturn null;\n\t\t\n\t}", "Account getAccount();", "@Override\n\tpublic Customer retrieveCustomer(Integer id) {\n\n\t\tCustomer customer = new Customer();\n\n\t\tfor (Customer cust : customers) {\n\t\t\tif (cust.getId() == id) {\n\t\t\t\tcustomer.setId(id);\n\t\t\t\tcustomer.setUsername(cust.getUsername());\n\t\t\t\tcustomer.setFirstName(cust.getFirstName());\n\t\t\t\tcustomer.setLastName(cust.getLastName());\n\t\t\t\tcustomer.setEmail(cust.getEmail());\n\t\t\t\tcustomer.setUserType(cust.getUserType());\n\t\t\t\tcustomer.setPassword(cust.getPassword());\n\t\t\t\tcustomer.setAddress(cust.getAddress());\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"A GET call retrieved a customer: retrieveCustomer()\");\n\t\treturn customer;\n\t}", "Long getAccountId();", "public Account getAccountByID(int id)//This function is for getting account for transfering amount\r\n {\r\n return this.ac.stream().filter(ac1 -> ac1.getAccId()==id).findFirst().orElse(null);\r\n }", "@Override\r\n\tpublic Customer getCustomer(String custId) {\r\n\t\tOptional<Customer> optionalCustomer = null;\r\n\t\tCustomer customer = null;\r\n\t\toptionalCustomer = customerRepository.findById(custId);\r\n\t\tif (optionalCustomer.isPresent()) {\r\n\t\t\tcustomer = optionalCustomer.get();\r\n\t\t\treturn customer;\r\n\t\t} else {\r\n\t\t\tthrow new EntityNotFoundException(\"Customer With Id \" + custId + \" does Not Exist.\");\r\n\t\t}\r\n\r\n\t}", "public Customer findCustomerById(long id) throws DatabaseOperationException;", "Account getAccount(Integer accountNumber);", "java.lang.String getAccountId();", "java.lang.String getAccountId();", "java.lang.String getAccountId();", "@Override\n\tpublic Customer getCustomer(Integer id) {\n\t\treturn customerDao.findById(id);\n\t}", "public Customer getCustomers(int customerId) {\n for(Customer customer:customers){\n if(customer.getId() == customerId){\n return customer;\n }\n }\n return null;\n }", "@Override\n public Customer getCustomerById(Long id) {\n log.debug(\"Inside getCustomerById method\");\n return customerRepository.findById(id).orElseThrow(\n () -> new ResourceNotFoundException(\"No customer present with the id : \" + id));\n }", "@GetMapping(\"/customer/{id}\")\r\n\tpublic Customer viewCustomerbyId(@PathVariable(\"id\") int customerId){\r\n\t\tif(custService.viewCustomerbyId(customerId)==null) {\r\n\t\t\tthrow new CustomerNotFoundException(\"Customer not found with this id\" +customerId);\r\n\t\t}\r\n\t\treturn custService.viewCustomerbyId(customerId);\r\n\t\t\r\n\t}", "@Override\n @Transactional\n public Customer getCustomer(int customerId) {\n Optional<Customer> queryResult = customerRepository.findById(customerId);\n // if null return new Customer(), otherwise return the Customer\n return queryResult.orElseGet(Customer::new);\n }", "com.google.ads.googleads.v6.resources.Customer getCustomer();", "@Override\n public CustomerDetails viewAccount(String user) {\n CustomerDetails details=customerRepository.findById(user).get(); \n log.debug(user);\n return details; \n\n }", "@Override\n\tpublic Account getAccountById(int id) {\n\t\treturn (Account) jdbcTemplate.queryForObject(\"select * from account where id=? limit 0 , 1\", new Object[]{id}, new BeanPropertyRowMapper(Account.class));\n\t}", "@GetMapping(\"/customers/{customer_id}\")\n\tpublic Customer getcustomer(@PathVariable(\"customer_id\") int customerid) {\n\t\tCustomer thecustomer=thecustomerService.getCustomer(customerid);\n\t\tif(thecustomer==null) {\n\t\t\tthrow new CustomerNotFoundException(\"Customer with id : \"+customerid+\" not found\");\n\t\t}\n\t\t\n\t\treturn thecustomer;\n\t}", "public Customer findById(Integer id) {\n\t\t//get current session\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t//get account details by id and return the result\n\t\tCustomer customer = currentSession.get(Customer.class, id);\n\t\t//return the result\n\t\treturn customer;\n\t}", "@Override\n\tpublic Customer getCustomer(int customerId) {\n\t\tSession session=sessionFactory.getCurrentSession();\n\t\ttry {\n\t\t\t\n\t\t\tCustomer customer =session.get(Customer.class, customerId);\n\t\t return customer;\t\t\t\n\t\t}\n\t\tcatch(HibernateException exception){\n\t\t\texception.printStackTrace();\n\t\t}\n\t\treturn null;\n\t\t\n\t}", "String getCustomerNameById(int customerId);", "java.lang.String getAccount();", "public UserAccount getUserAccountByLoginId(String loginId);", "String getAccountID();", "String getAccountID();", "@Override\n\tpublic Customer getCustomer(int id) {\n\t\treturn sessionFactory.getCurrentSession().get(Customer.class, id);\n\t}", "public Account getAccount(int accountid) {\n\t\treturn userDao.getAccount(accountid);\r\n\t}", "@Override\n\tpublic Account getAccount(Integer id) {\n\t\tfor(Account account:accountList) {\n\t\t\tif(id.compareTo(account.returnAccountNumber()) == 0 ) {\n\t\t\t\treturn account;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "@Override\n public Customer getCustomer(Long userId) {\n Optional<Customer> customer = customerDao.getCustomer(userId);\n if (!customer.isPresent()) {\n logger.error(\"Customer with this id {} doesn't exist\", userId);\n }\n return customer.orElseThrow(ResourceNotFoundException::new);\n }", "@Override\n public CustomerEntity getCustomerData(Long id) {\n return customerPersistencePort.getUser(id);\n }", "public void lookupCustomer(String customerId) {\r\n customer = transaction.getCustomerInfo(customerId);\r\n }", "@Override\n\tpublic Customer viewCustomer(int customerId) {\n\t\t// TODO Auto-generated method stub\n\t\tCustomer cust = repository.findById(customerId)\n\t\t\t\t.orElseThrow(() -> new EntityNotFoundException(\"Currently No Customer is available with this id\"));\n\t\treturn cust;\n\t}", "@Override\n\t@Transactional\n\tpublic Customer getCustomer(int theId) {\n\t\t;\n\t\treturn customerDAO.getCustomer(theId);\n\t}", "@GET\n @Path(\"/{accountID}\")\n @Produces(MediaType.APPLICATION_JSON)\n public Account getAccount(@PathParam(\"accountID\") int a_id ) {\n \tSystem.out.println(\"get Account by ID: \"+a_id );\n\treturn AccountService.getAccount(a_id);\n }", "@GET\n\t@Path(\"get\")\n\tpublic Customer getCustomer(@QueryParam(\"id\") int id) {\n\t\treturn ManagerHelper.getCustomerManager().get(id);\n\n\t}", "Customer getCustomer();", "public Integer getCustomerId()\n {\n return customerId;\n }", "@Override\n\tpublic Customer findCustomer(int customerId) {\n\t\treturn null;\n\t}", "@Override\n\tpublic Customer findById(Long customerId) {\n\t\tOptional<Customer> optional = custRepository.findById(customerId);\n\t\tif(!optional.isPresent()) {\n\t\t\tthrow new CustomerNotFoundException(\"Customer with id \"+customerId+\" not found\");\n\t\t}\n\t\treturn optional.get();\n\t\t\n\t}", "io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer();", "static customer getCustomer(String uid) {\n return null;\n }", "@Override\r\n\tpublic Customer getCustomerById(int id) {\n\t\treturn customerdao.getCustomerById(id);\r\n\t}", "@PermitAll\n public List<AccountDetails> getAccountsOfCustomer(Long customerId)\n throws InvalidParameterException, CustomerNotFoundException {\n Debug.print(\"AccountControllerBean getAccountsOfCustomer\");\n\n Collection accounts = null;\n Customer customer = null;\n\n if (customerId == null) {\n throw new InvalidParameterException(\"null customerId\");\n }\n\n try {\n customer = em.find(Customer.class, customerId);\n\n if (customer == null) {\n throw new CustomerNotFoundException();\n } else {\n accounts = customer.getAccounts();\n }\n } catch (Exception ex) {\n throw new EJBException(ex);\n }\n\n return copyAccountsToDetails(accounts);\n }", "public abstract GDataAccount getAccount(String account) throws ServiceException;", "public Customer getCustomer(int id) {\r\n\t\treturn manager.getCustomer(id);\r\n\t}", "@Override\npublic Account findById(int accountid) {\n\treturn accountdao.findById(accountid);\n}", "static Customer getCustomerWithId(int id){ return new Customer();}", "public Customer getCustomerByName(String customerName);", "@Override\n\tpublic Customer getCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// now retrieve/read from database using the primary key\n\t\tCustomer theCustomer = currentSession.get(Customer.class, theId);\n\t\t\n\t\treturn theCustomer;\n\t}", "public User getAccount(Long id) {\n User user = systemService.getUserFromDb(id); //add on 2020-12-4\n if (user != null\n && user.getCustomerAccountProfile() != null\n && user.getCustomerAccountProfile().getId() != null) {\n CustomerAccountProfile customerAccountProfile = msCustomerAccountProfileService.getById(user.getCustomerAccountProfile().getId());\n if (customerAccountProfile != null\n && customerAccountProfile.getCustomer() != null\n && customerAccountProfile.getCustomer().getId() != null ) {\n Customer customer = msCustomerService.get(customerAccountProfile.getCustomer().getId());\n if (customer != null) {\n customerAccountProfile.setCustomer(customer);\n }\n user.setCustomerAccountProfile(customerAccountProfile);\n }\n }\n return user;\n }", "CustomerDTO getCustomerDetails(Long customerId,String userName) throws EOTException;", "public BankAccountInterface getAccount(String accountID){\n BankAccountInterface account = null;\n for(int i = 0; i < accounts.size(); i++){\n if(accounts.get(i).getAccountID().equals(accountID)){\n account = accounts.get(i);\n break;\n } \n }\n return account;\n }", "public Customer getCustom(short customerId) {\n\t\treturn custom.selectByPrimaryKey(customerId);\n\t\t\n\t}", "@SuppressWarnings(\"finally\")\n\tpublic Customer getCustomer(int cust_id) throws SQLException //final&complete IMPL\n\t{\n\t\tCustomer res=null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tConnection connection = openConnection();\n\t\t\tPreparedStatement queryStatement;\n\t\t\tResultSet queryResult;\n\t\t\t\n\t\t\tqueryStatement =connection.prepareStatement(\"select * from CUSTOMERS where customer_id=?;\");\n\t\t\tqueryStatement.setString(1, Integer.toString(cust_id));\n\t\t\tqueryResult = queryStatement.executeQuery();\n\t\t\t\n\t\t\tif(queryResult.next())\n\t\t\t{\n\t\t\t\tString cust_username=null, cust_password=null, user_email=null, user_PicURL=null;\n\t\t\t\tString cust_fname=null, cust_lname=null;\n\t\t\t\tboolean isCustomer = true;\n\t\t\t\t\n\t\t\t\tcust_fname = queryResult.getString(2);\n\t\t\t\tcust_lname = queryResult.getString(3);\n\t\t\t\tcust_username = queryResult.getString(4);\n\t\t\t\tcust_password = queryResult.getString(5);\n\t\t\t\tuser_email = queryResult.getString(6);\n\t\t\t\t\n\t\t\t\tres = new Customer((short)cust_id, cust_username, cust_password, cust_fname + cust_lname, user_email, user_PicURL, isCustomer, null, null);\n\t\t\t}\n\t\t}\t\n\t\tfinally\n\t\t{\n\t\t\tcloseConnection();\n\t\t\tif(res==null)\n\t\t\t\tthrow new SQLException(\"No customer user found for provided credantials!\");\n\t\t\telse\n\t\t\t\treturn res;\n\t\t}\n\t}", "@Override\r\n\tpublic Customer getCustomer(int customerID) {\n\t\treturn null;\r\n\t}", "public static Account getAccount(String accountId) {\r\n return (accounts.get(accountId));\r\n }", "@Override\n\tpublic Customer getCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t//now retrieve/read from database using the primary key or id..\n\t\tCustomer theCustomer = currentSession.get(Customer.class,theId);\n\n\t\treturn theCustomer;\n\t}", "@Override\n\tpublic Customer getCustomer(long id) throws Exception {\n\t\tConnection con = pool.getConnection();\n\t\tCustomer customer = new Customer();\n\t\ttry {\n\t\t\tString getCustomer = String.format(\"select * from customer where id in('%d')\", id);\n\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(getCustomer);\n\n\t\t\tif (rs.next()) {\n\t\t\t\tcustomer.setId(id);\n\t\t\t\tcustomer.setCustName(rs.getString(\"Cust_Name\"));\n\t\t\t\tcustomer.setPassword(rs.getString(\"Password\"));\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"Customer \" + customer.getCustName() + \" ID: \" + customer.getId() + \" was retrived.\");\n\t\t\t} else {\n\t\t\t\tthrow new Exception(\"Customer with ID: \" + id + \" was not found in the DB.\");\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage() + \" Could not retrieve data from DB.\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage() + \" Could not close connection\");\n\t\t\t}\n\t\t}\n\t\treturn customer;\n\t}", "@Override\n\tpublic Customer getCustomerById(long customerId) {\n\t\treturn null;\n\t}", "public int getCustomerId() \n {\n return customerId;\n }", "@Override\n\tpublic Customer getCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// now retrieve/read from database using the primary key\n\t\tCustomer theCustomer = currentSession.get(Customer.class, theId);\n\n\t\treturn theCustomer;\n\t}", "@Override\n public Personn findById(Integer idCustomer) {\n return manager.find(Personn.class,idCustomer );\n //return findByCriteria(criteria);\n }", "public int getCustomerId() {\n return customerId;\n }", "public int getCustomerId() {\n return customerId;\n }", "Set<AccountModel> findAllByCustomerId(String customerId) throws CustomerException;", "public void retrieveACustomerWithID(long id) {\r\n\t\tSystem.out.println(\"\\nCustomer with id \" + id);\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\ttx.begin();\r\n\t\tCustomer2 customer = em.find(Customer2.class, id);\r\n\t\tif(customer == null){\r\n\t\t\tSystem.out.println(\"\\nNo such customer with id: \" + id);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tSystem.out.println(customer);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}", "public Account getAccount(Integer id) {\n if (!accounts.containsKey(id)) {\n throw new NotFoundException(\"Not found\");\n }\n\n AccountEntry entry = accounts.get(id);\n if (entry == null) {\n throw new NotFoundException(\"Not found\");\n }\n\n // concurrency: optimistic, entry may already be excluded from accounts\n Lock itemLock = entry.lock.readLock();\n try {\n itemLock.lock();\n return entry.data;\n } finally {\n itemLock.unlock();\n }\n }", "Accounts getAccount(int id) {\n SQLiteDatabase db = this.getReadableDatabase();\n\n Cursor cursor = db.query(TABLE_ACCOUNTS, new String[]{KEY_ID,\n KEY_NAME, KEY_PASSWORD, KEY_PH_NO, KEY_EMAIL}, KEY_ID + \"=?\",\n new String[]{String.valueOf(id)}, null, null, null, null);\n if (cursor != null)\n cursor.moveToFirst();\n\n Accounts account = new Accounts(Integer.parseInt(cursor.getString(0)),\n cursor.getString(1), cursor.getString(2), cursor.getString(3), cursor.getString(4));\n\n return account;\n }", "public String getCustomerId() {\n return customerId;\n }", "public String getCustomerId() {\n return customerId;\n }", "@RequestMapping(value = \"/ws/customers/{id}\", method = RequestMethod.GET)\n public @ResponseBody\n CustomerDto getCustomer(@PathVariable(\"id\") Long customerId) {\n logger.info(\"Tries to find customer by id={}\", customerId);\n\n return customerAssembler.assembly(getCustomerById(customerId));\n }", "@GetMapping(\"/{id}\")\n public Account account(@PathVariable(\"id\") Long id){\n return accountRepository.findOne(id);\n }", "BillingAccount getBillingAccount();", "public Long getCustomerId() {\n return customerId;\n }", "@GetMapping(\"/customer/{id}\")\n\tpublic ResponseEntity<Object> getCustomerDetailed(@PathVariable(\"id\") Integer id, HttpServletRequest request){\n\t\tif(service.findByEmail(SessionManager.getInstance().getSessionEmail(request.getSession())) == null) {\n\t\t\tSessionManager.getInstance().delete(request.getSession());\n\t\t\treturn new ResponseEntity<>(HttpStatus.UNAUTHORIZED); \n\t\t}else {\n\t\t\tCustomer cus = cService.findById(id);\n\t\t\tif(cus == null) return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n\t\t\tMappingJacksonValue mappedCustomer = new MappingJacksonValue(cus);\n\t\t\tmappedCustomer.setFilters(new SimpleFilterProvider().addFilter(Customer.FILTER, SimpleBeanPropertyFilter.serializeAll()));\n\t\t\treturn new ResponseEntity<>(mappedCustomer, HttpStatus.OK);\n\t\t}\n\t}", "@RequestMapping(value = \"/customer-addres/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<CustomerAddres> getCustomerAddres(@PathVariable Long id) {\n log.debug(\"REST request to get CustomerAddres : {}\", id);\n CustomerAddres customerAddres = customerAddresRepository.findOne(id);\n return Optional.ofNullable(customerAddres)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }", "@RequestMapping(method = RequestMethod.GET, value = \"/{id}\")\n\t public ResponseEntity<Customer> getCustomerWithId(@PathVariable Long id) {\n\t return service.getCustomerWithId(id);\n\t }", "@GetMapping(\"/customer/{id}\")\n\tpublic ResponseEntity<Customer> getCustomerById(@PathVariable Long id) {\n\t\tCustomer customer = customerRepository.findById(id)\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"Customer not exist with id :\" + id));\n\t\treturn ResponseEntity.ok(customer);\n\t}", "public Customer displayCustomer(int cid);", "@RequestMapping( value = CONTEXT_URL + \"/id/{id}\",\n method = RequestMethod.GET,\n produces = {MediaType.APPLICATION_JSON_VALUE} )\n public CustomerDTO getCustomer( @PathVariable String id )\n throws CustomerNotFoundException\n {\n final String methodName = \"getCustomer\";\n logMethodBegin( methodName, id );\n CustomerDTO customerDTO = this.customerEntityService\n .getCustomerDTO( UUIDUtil.uuid( id ));\n logMethodEnd( methodName, customerDTO );\n return customerDTO;\n }", "@Override\n public JSONObject viewCustomerById(long id) {\n\n return in_salescustdao.viewSLCustomerByID(id);\n }", "public Customer getCustomerById(Integer id) throws DataNotFoundException {\n Optional<Customer> optionalCustomer = customerRepository.findById(id);\n if(optionalCustomer.isPresent())\n return optionalCustomer.get();\n else\n throw new DataNotFoundException(\"Customer with id: \" + id + \" not found\");\n }", "public CustomerProfile getCustomerProfile();" ]
[ "0.77170044", "0.76606154", "0.76304924", "0.75918984", "0.7484825", "0.7412228", "0.72984135", "0.72161317", "0.7215114", "0.7215114", "0.71732634", "0.71080995", "0.70702815", "0.6958351", "0.69418705", "0.6916249", "0.6914216", "0.6909826", "0.68978584", "0.6882773", "0.68686956", "0.6858021", "0.68493134", "0.6830774", "0.68138313", "0.68138313", "0.68138313", "0.67878085", "0.6786279", "0.6780927", "0.6769967", "0.6743746", "0.6739236", "0.67257804", "0.6725418", "0.6713867", "0.6707821", "0.670195", "0.66930056", "0.6689734", "0.6686157", "0.66802293", "0.66802293", "0.6665252", "0.6656402", "0.66335964", "0.6628725", "0.66244185", "0.66220766", "0.66218543", "0.6620536", "0.66147316", "0.66101074", "0.6607699", "0.66071826", "0.6605292", "0.6582271", "0.65730906", "0.65639144", "0.6561371", "0.65609", "0.6555185", "0.65451753", "0.65406096", "0.65186304", "0.65084004", "0.6507164", "0.6506334", "0.65047044", "0.65034723", "0.6502622", "0.6498053", "0.649452", "0.6483902", "0.6479702", "0.64764726", "0.64730716", "0.64726084", "0.64716303", "0.6467606", "0.64576304", "0.64576304", "0.64490795", "0.6446935", "0.64337903", "0.64336365", "0.6431146", "0.6431146", "0.64294755", "0.64163846", "0.6408207", "0.6406017", "0.64050543", "0.63876176", "0.63862795", "0.6380503", "0.6379932", "0.6364219", "0.63625807", "0.6358834", "0.6356833" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View arg0) { finish(); }
{ "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